guix-manual.zh_CN.po 2.4 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701657026570365704657056570665707657086570965710657116571265713657146571565716657176571865719657206572165722657236572465725657266572765728657296573065731657326573365734657356573665737657386573965740657416574265743657446574565746657476574865749657506575165752657536575465755657566575765758657596576065761657626576365764657656576665767657686576965770657716577265773657746577565776657776577865779657806578165782657836578465785657866578765788657896579065791657926579365794657956579665797657986579965800658016580265803658046580565806658076580865809658106581165812658136581465815658166581765818658196582065821658226582365824658256582665827658286582965830658316583265833658346583565836658376583865839658406584165842658436584465845658466584765848658496585065851658526585365854658556585665857658586585965860658616586265863658646586565866658676586865869658706587165872658736587465875658766587765878658796588065881658826588365884658856588665887658886588965890658916589265893658946589565896658976589865899659006590165902659036590465905659066590765908659096591065911659126591365914659156591665917659186591965920659216592265923659246592565926659276592865929659306593165932659336593465935659366593765938659396594065941659426594365944659456594665947659486594965950659516595265953659546595565956659576595865959659606596165962659636596465965659666596765968659696597065971659726597365974659756597665977659786597965980659816598265983659846598565986659876598865989659906599165992659936599465995659966599765998659996600066001660026600366004660056600666007660086600966010660116601266013660146601566016660176601866019660206602166022660236602466025660266602766028660296603066031660326603366034660356603666037660386603966040660416604266043660446604566046660476604866049660506605166052660536605466055660566605766058660596606066061660626606366064660656606666067660686606966070660716607266073660746607566076660776607866079660806608166082660836608466085660866608766088660896609066091660926609366094660956609666097660986609966100661016610266103661046610566106661076610866109661106611166112661136611466115661166611766118661196612066121661226612366124661256612666127661286612966130661316613266133661346613566136661376613866139661406614166142661436614466145661466614766148661496615066151661526615366154661556615666157661586615966160661616616266163661646616566166661676616866169661706617166172661736617466175661766617766178661796618066181661826618366184661856618666187661886618966190661916619266193661946619566196661976619866199662006620166202662036620466205662066620766208662096621066211662126621366214662156621666217662186621966220662216622266223662246622566226662276622866229662306623166232662336623466235662366623766238662396624066241662426624366244662456624666247662486624966250662516625266253662546625566256662576625866259662606626166262662636626466265662666626766268662696627066271662726627366274662756627666277662786627966280662816628266283662846628566286662876628866289662906629166292662936629466295662966629766298662996630066301663026630366304663056630666307663086630966310663116631266313663146631566316663176631866319663206632166322663236632466325663266632766328663296633066331663326633366334663356633666337663386633966340663416634266343663446634566346663476634866349663506635166352663536635466355663566635766358663596636066361663626636366364663656636666367663686636966370663716637266373663746637566376663776637866379663806638166382663836638466385663866638766388663896639066391663926639366394663956639666397663986639966400664016640266403664046640566406664076640866409664106641166412664136641466415664166641766418664196642066421664226642366424664256642666427664286642966430664316643266433664346643566436664376643866439664406644166442664436644466445664466644766448664496645066451664526645366454664556645666457664586645966460664616646266463664646646566466664676646866469664706647166472664736647466475664766647766478664796648066481664826648366484664856648666487664886648966490664916649266493664946649566496664976649866499665006650166502665036650466505665066650766508665096651066511665126651366514665156651666517665186651966520665216652266523665246652566526665276652866529665306653166532665336653466535665366653766538665396654066541665426654366544665456654666547665486654966550665516655266553665546655566556665576655866559665606656166562665636656466565665666656766568665696657066571665726657366574665756657666577665786657966580665816658266583665846658566586665876658866589665906659166592665936659466595665966659766598665996660066601666026660366604666056660666607666086660966610666116661266613666146661566616666176661866619666206662166622666236662466625666266662766628666296663066631666326663366634666356663666637666386663966640666416664266643666446664566646666476664866649666506665166652666536665466655666566665766658666596666066661666626666366664666656666666667666686666966670666716667266673666746667566676666776667866679666806668166682666836668466685666866668766688666896669066691666926669366694666956669666697666986669966700667016670266703667046670566706667076670866709667106671166712667136671466715667166671766718667196672066721667226672366724667256672666727667286672966730667316673266733667346673566736667376673866739667406674166742667436674466745667466674766748667496675066751667526675366754667556675666757667586675966760667616676266763667646676566766667676676866769667706677166772667736677466775667766677766778667796678066781667826678366784667856678666787667886678966790667916679266793667946679566796667976679866799668006680166802668036680466805668066680766808668096681066811668126681366814668156681666817668186681966820668216682266823668246682566826668276682866829668306683166832668336683466835668366683766838668396684066841668426684366844668456684666847668486684966850668516685266853668546685566856668576685866859668606686166862668636686466865668666686766868668696687066871668726687366874668756687666877668786687966880668816688266883668846688566886668876688866889668906689166892668936689466895668966689766898668996690066901669026690366904669056690666907669086690966910669116691266913669146691566916669176691866919669206692166922669236692466925669266692766928669296693066931669326693366934669356693666937669386693966940669416694266943669446694566946669476694866949669506695166952669536695466955669566695766958669596696066961669626696366964669656696666967669686696966970669716697266973669746697566976669776697866979669806698166982669836698466985669866698766988669896699066991669926699366994669956699666997669986699967000670016700267003670046700567006670076700867009670106701167012670136701467015670166701767018670196702067021670226702367024670256702667027670286702967030670316703267033670346703567036670376703867039670406704167042670436704467045670466704767048670496705067051670526705367054670556705667057670586705967060670616706267063670646706567066670676706867069670706707167072670736707467075670766707767078670796708067081670826708367084670856708667087670886708967090670916709267093670946709567096670976709867099671006710167102671036710467105671066710767108671096711067111671126711367114671156711667117671186711967120671216712267123671246712567126671276712867129671306713167132671336713467135671366713767138671396714067141671426714367144671456714667147671486714967150671516715267153671546715567156671576715867159671606716167162671636716467165671666716767168671696717067171671726717367174671756717667177671786717967180671816718267183671846718567186671876718867189671906719167192671936719467195671966719767198671996720067201672026720367204672056720667207672086720967210672116721267213672146721567216672176721867219672206722167222672236722467225672266722767228672296723067231672326723367234672356723667237672386723967240672416724267243672446724567246672476724867249672506725167252672536725467255672566725767258672596726067261672626726367264672656726667267672686726967270672716727267273672746727567276672776727867279672806728167282672836728467285672866728767288672896729067291672926729367294672956729667297672986729967300673016730267303673046730567306673076730867309673106731167312673136731467315673166731767318673196732067321673226732367324673256732667327673286732967330673316733267333673346733567336673376733867339673406734167342673436734467345673466734767348673496735067351673526735367354673556735667357673586735967360673616736267363673646736567366673676736867369673706737167372673736737467375673766737767378673796738067381673826738367384673856738667387673886738967390673916739267393673946739567396673976739867399674006740167402674036740467405674066740767408674096741067411674126741367414674156741667417674186741967420674216742267423674246742567426674276742867429674306743167432674336743467435674366743767438674396744067441674426744367444674456744667447674486744967450674516745267453674546745567456674576745867459674606746167462674636746467465674666746767468674696747067471674726747367474674756747667477674786747967480674816748267483674846748567486674876748867489674906749167492674936749467495674966749767498674996750067501675026750367504675056750667507675086750967510675116751267513675146751567516675176751867519675206752167522675236752467525675266752767528675296753067531675326753367534675356753667537675386753967540675416754267543675446754567546675476754867549675506755167552675536755467555675566755767558675596756067561675626756367564675656756667567675686756967570675716757267573675746757567576675776757867579675806758167582675836758467585675866758767588675896759067591675926759367594675956759667597675986759967600676016760267603676046760567606676076760867609676106761167612676136761467615676166761767618676196762067621676226762367624676256762667627676286762967630676316763267633676346763567636676376763867639676406764167642676436764467645676466764767648676496765067651676526765367654676556765667657676586765967660676616766267663676646766567666676676766867669676706767167672676736767467675676766767767678676796768067681676826768367684676856768667687676886768967690676916769267693676946769567696676976769867699677006770167702677036770467705677066770767708677096771067711677126771367714677156771667717677186771967720677216772267723677246772567726677276772867729677306773167732677336773467735677366773767738677396774067741677426774367744677456774667747677486774967750677516775267753677546775567756677576775867759677606776167762677636776467765677666776767768677696777067771677726777367774677756777667777677786777967780677816778267783677846778567786677876778867789677906779167792677936779467795677966779767798677996780067801678026780367804678056780667807678086780967810678116781267813678146781567816678176781867819678206782167822678236782467825678266782767828678296783067831678326783367834678356783667837678386783967840678416784267843678446784567846678476784867849678506785167852678536785467855678566785767858678596786067861678626786367864678656786667867678686786967870678716787267873678746787567876678776787867879678806788167882678836788467885678866788767888678896789067891678926789367894678956789667897678986789967900679016790267903679046790567906679076790867909679106791167912679136791467915679166791767918679196792067921679226792367924679256792667927679286792967930679316793267933679346793567936679376793867939679406794167942679436794467945679466794767948679496795067951679526795367954679556795667957679586795967960679616796267963679646796567966679676796867969679706797167972679736797467975679766797767978679796798067981679826798367984679856798667987679886798967990679916799267993679946799567996679976799867999680006800168002680036800468005680066800768008680096801068011680126801368014680156801668017680186801968020680216802268023680246802568026680276802868029680306803168032680336803468035680366803768038680396804068041680426804368044680456804668047680486804968050680516805268053680546805568056680576805868059680606806168062680636806468065680666806768068680696807068071680726807368074680756807668077680786807968080680816808268083680846808568086680876808868089680906809168092680936809468095680966809768098680996810068101681026810368104681056810668107681086810968110681116811268113681146811568116681176811868119681206812168122681236812468125681266812768128681296813068131681326813368134681356813668137681386813968140681416814268143681446814568146681476814868149681506815168152681536815468155681566815768158681596816068161681626816368164681656816668167681686816968170681716817268173681746817568176681776817868179681806818168182681836818468185681866818768188681896819068191681926819368194681956819668197681986819968200682016820268203682046820568206682076820868209682106821168212682136821468215682166821768218682196822068221682226822368224682256822668227682286822968230682316823268233682346823568236682376823868239682406824168242682436824468245682466824768248682496825068251682526825368254682556825668257682586825968260682616826268263682646826568266682676826868269682706827168272682736827468275682766827768278682796828068281682826828368284682856828668287682886828968290682916829268293682946829568296682976829868299683006830168302683036830468305683066830768308683096831068311683126831368314683156831668317683186831968320683216832268323683246832568326683276832868329683306833168332683336833468335683366833768338683396834068341683426834368344683456834668347683486834968350683516835268353683546835568356683576835868359683606836168362683636836468365683666836768368683696837068371683726837368374683756837668377683786837968380683816838268383683846838568386683876838868389683906839168392683936839468395683966839768398683996840068401684026840368404684056840668407684086840968410684116841268413684146841568416684176841868419684206842168422684236842468425684266842768428684296843068431684326843368434684356843668437684386843968440684416844268443684446844568446684476844868449684506845168452684536845468455684566845768458684596846068461684626846368464684656846668467684686846968470684716847268473684746847568476684776847868479684806848168482684836848468485684866848768488684896849068491684926849368494684956849668497684986849968500685016850268503685046850568506685076850868509685106851168512685136851468515685166851768518685196852068521685226852368524685256852668527685286852968530685316853268533685346853568536685376853868539685406854168542685436854468545685466854768548685496855068551685526855368554685556855668557685586855968560685616856268563685646856568566685676856868569685706857168572685736857468575685766857768578685796858068581685826858368584685856858668587685886858968590685916859268593685946859568596685976859868599686006860168602686036860468605686066860768608686096861068611686126861368614686156861668617686186861968620686216862268623686246862568626686276862868629686306863168632686336863468635686366863768638686396864068641686426864368644686456864668647686486864968650686516865268653686546865568656686576865868659686606866168662686636866468665686666866768668686696867068671686726867368674686756867668677686786867968680686816868268683686846868568686686876868868689686906869168692686936869468695686966869768698686996870068701687026870368704687056870668707687086870968710687116871268713687146871568716687176871868719687206872168722687236872468725687266872768728687296873068731687326873368734687356873668737687386873968740687416874268743687446874568746687476874868749687506875168752687536875468755687566875768758687596876068761687626876368764687656876668767687686876968770687716877268773687746877568776687776877868779687806878168782687836878468785687866878768788687896879068791687926879368794687956879668797687986879968800688016880268803688046880568806688076880868809688106881168812688136881468815688166881768818688196882068821688226882368824688256882668827688286882968830688316883268833688346883568836688376883868839688406884168842688436884468845688466884768848688496885068851688526885368854688556885668857688586885968860688616886268863688646886568866688676886868869688706887168872688736887468875688766887768878688796888068881688826888368884688856888668887688886888968890688916889268893688946889568896688976889868899689006890168902689036890468905689066890768908689096891068911689126891368914689156891668917689186891968920689216892268923689246892568926689276892868929689306893168932689336893468935689366893768938689396894068941689426894368944689456894668947689486894968950689516895268953689546895568956689576895868959689606896168962689636896468965689666896768968689696897068971689726897368974689756897668977689786897968980689816898268983689846898568986689876898868989689906899168992689936899468995689966899768998689996900069001690026900369004690056900669007690086900969010690116901269013690146901569016690176901869019690206902169022690236902469025690266902769028690296903069031690326903369034690356903669037690386903969040690416904269043690446904569046690476904869049690506905169052690536905469055690566905769058690596906069061690626906369064690656906669067690686906969070690716907269073690746907569076690776907869079690806908169082690836908469085690866908769088690896909069091690926909369094690956909669097690986909969100691016910269103691046910569106691076910869109691106911169112691136911469115691166911769118691196912069121691226912369124691256912669127691286912969130691316913269133691346913569136691376913869139691406914169142691436914469145691466914769148691496915069151691526915369154691556915669157691586915969160691616916269163691646916569166691676916869169691706917169172691736917469175691766917769178691796918069181691826918369184691856918669187691886918969190691916919269193691946919569196691976919869199692006920169202692036920469205692066920769208692096921069211692126921369214692156921669217692186921969220692216922269223692246922569226692276922869229692306923169232692336923469235692366923769238692396924069241692426924369244692456924669247692486924969250692516925269253692546925569256692576925869259692606926169262692636926469265692666926769268692696927069271692726927369274692756927669277692786927969280692816928269283692846928569286692876928869289692906929169292692936929469295692966929769298692996930069301693026930369304693056930669307693086930969310693116931269313693146931569316693176931869319693206932169322693236932469325693266932769328693296933069331693326933369334693356933669337693386933969340693416934269343693446934569346693476934869349693506935169352693536935469355693566935769358693596936069361693626936369364693656936669367693686936969370693716937269373693746937569376693776937869379693806938169382693836938469385693866938769388693896939069391693926939369394693956939669397693986939969400694016940269403694046940569406694076940869409694106941169412694136941469415694166941769418694196942069421694226942369424694256942669427694286942969430694316943269433694346943569436694376943869439694406944169442694436944469445694466944769448694496945069451694526945369454694556945669457694586945969460694616946269463694646946569466694676946869469694706947169472694736947469475694766947769478694796948069481694826948369484694856948669487694886948969490694916949269493694946949569496694976949869499695006950169502695036950469505695066950769508695096951069511695126951369514695156951669517695186951969520695216952269523695246952569526695276952869529695306953169532695336953469535695366953769538695396954069541695426954369544695456954669547695486954969550695516955269553695546955569556695576955869559695606956169562695636956469565695666956769568695696957069571695726957369574695756957669577695786957969580695816958269583695846958569586695876958869589695906959169592695936959469595695966959769598695996960069601696026960369604696056960669607696086960969610696116961269613696146961569616696176961869619696206962169622696236962469625696266962769628696296963069631696326963369634696356963669637696386963969640696416964269643696446964569646696476964869649696506965169652696536965469655696566965769658696596966069661696626966369664696656966669667696686966969670696716967269673696746967569676696776967869679696806968169682696836968469685696866968769688696896969069691696926969369694696956969669697696986969969700697016970269703697046970569706697076970869709697106971169712697136971469715697166971769718697196972069721697226972369724697256972669727697286972969730697316973269733697346973569736697376973869739697406974169742697436974469745697466974769748697496975069751697526975369754697556975669757697586975969760697616976269763697646976569766697676976869769697706977169772697736977469775697766977769778697796978069781697826978369784697856978669787697886978969790697916979269793697946979569796697976979869799698006980169802698036980469805698066980769808698096981069811698126981369814698156981669817698186981969820698216982269823698246982569826698276982869829698306983169832698336983469835698366983769838698396984069841698426984369844698456984669847698486984969850698516985269853698546985569856698576985869859698606986169862698636986469865698666986769868698696987069871698726987369874698756987669877698786987969880698816988269883698846988569886698876988869889698906989169892698936989469895698966989769898698996990069901699026990369904699056990669907699086990969910699116991269913699146991569916699176991869919699206992169922699236992469925699266992769928699296993069931699326993369934699356993669937699386993969940699416994269943699446994569946699476994869949699506995169952699536995469955699566995769958699596996069961699626996369964699656996669967699686996969970699716997269973699746997569976699776997869979699806998169982699836998469985699866998769988699896999069991699926999369994699956999669997699986999970000700017000270003700047000570006700077000870009700107001170012700137001470015700167001770018700197002070021700227002370024700257002670027700287002970030700317003270033700347003570036700377003870039700407004170042700437004470045700467004770048700497005070051700527005370054700557005670057700587005970060700617006270063700647006570066700677006870069700707007170072700737007470075700767007770078700797008070081700827008370084700857008670087700887008970090700917009270093700947009570096700977009870099701007010170102701037010470105701067010770108701097011070111701127011370114701157011670117701187011970120701217012270123701247012570126701277012870129701307013170132701337013470135701367013770138701397014070141701427014370144701457014670147701487014970150701517015270153701547015570156701577015870159701607016170162701637016470165701667016770168701697017070171701727017370174701757017670177701787017970180701817018270183701847018570186701877018870189701907019170192701937019470195701967019770198701997020070201702027020370204702057020670207702087020970210702117021270213702147021570216702177021870219702207022170222702237022470225702267022770228702297023070231702327023370234702357023670237702387023970240702417024270243702447024570246702477024870249702507025170252
  1. # Chinese (simplified) translation of the Guix manual.
  2. # Copyright (C) 2013-2019 the authors of Guix (msgids) and the following authors (msgstr)
  3. # This file is distributed under the same license as the guix manual package.
  4. # Meiyo Peng <meiyo@riseup.net>, 2019.
  5. # 郑俊杰 <873216071@qq.com>, 2021.
  6. # Liu Tao <lyuutau@outlook.com>, 2021.
  7. # Xinglu Chen <public@yoctocell.xyz>, 2021.
  8. # Charles Lee <lchopn@gmail.com>, 2021.
  9. # Went He <1437061699@qq.com>, 2021.
  10. # Whired Planck <fungdaat31@outlook.com>, 2022.
  11. msgid ""
  12. msgstr ""
  13. "Project-Id-Version: guix-manual 1.0.1-pre1\n"
  14. "Report-Msgid-Bugs-To: bug-guix@gnu.org\n"
  15. "POT-Creation-Date: 2022-02-15 15:18+0000\n"
  16. "PO-Revision-Date: 2022-01-27 19:16+0000\n"
  17. "Last-Translator: Whired Planck <fungdaat31@outlook.com>\n"
  18. "Language-Team: Chinese (Simplified) <https://translate.fedoraproject.org/projects/guix/documentation-manual/zh_CN/>\n"
  19. "Language: zh_CN\n"
  20. "MIME-Version: 1.0\n"
  21. "Content-Type: text/plain; charset=UTF-8\n"
  22. "Content-Transfer-Encoding: 8bit\n"
  23. "Plural-Forms: nplurals=1; plural=0;\n"
  24. "X-Generator: Weblate 4.10.1\n"
  25. "X-Bugs: Report translation errors to the Language-Team address.\n"
  26. #. #-#-#-#-# contributing.pot (guix manual checkout) #-#-#-#-#
  27. #. type: chapter
  28. #. #-#-#-#-# guix.pot (guix manual checkout) #-#-#-#-#
  29. #. type: menuentry
  30. #: guix-git/doc/contributing.texi:1 guix-git/doc/contributing.texi:2
  31. #: guix-git/doc/guix.texi:184
  32. #, no-wrap
  33. msgid "Contributing"
  34. msgstr "贡献"
  35. #. type: Plain text
  36. #: guix-git/doc/contributing.texi:9
  37. msgid "This project is a cooperative effort, and we need your help to make it grow! Please get in touch with us on @email{guix-devel@@gnu.org} and @code{#guix} on the Libera Chat IRC network. We welcome ideas, bug reports, patches, and anything that may be helpful to the project. We particularly welcome help on packaging (@pxref{Packaging Guidelines})."
  38. msgstr "本项目是团体合作成果,我们需要您的帮助以更好地发展。请通过 @email{guix-devel@@gnu.org} 邮箱和 Libera Chat IRC 网络上的 @code{#guix} 频道联系我们。我们欢迎您的想法、Bug 反馈、补丁和任何可能对项目有帮助的贡献。我们特别欢迎帮助我们打包(@pxref{Packaging Guidelines})。"
  39. #. type: cindex
  40. #: guix-git/doc/contributing.texi:10
  41. #, no-wrap
  42. msgid "code of conduct, of contributors"
  43. msgstr "行为准则和贡献者"
  44. #. type: cindex
  45. #: guix-git/doc/contributing.texi:11
  46. #, no-wrap
  47. msgid "contributor covenant"
  48. msgstr "贡献者契约"
  49. #. type: Plain text
  50. #: guix-git/doc/contributing.texi:17
  51. msgid "We want to provide a warm, friendly, and harassment-free environment, so that anyone can contribute to the best of their abilities. To this end our project uses a ``Contributor Covenant'', which was adapted from @url{https://contributor-covenant.org/}. You can find a local version in the @file{CODE-OF-CONDUCT} file in the source tree."
  52. msgstr "我们希望提供一个温暖、友好,并且没有骚扰的的环境,这样每个人都能尽最大努力贡献。为了这个目的,我们的项目遵循“贡献者契约”,这个契约是根据 @url{https://contributor-covenant.org/} 制定的。你可以在源代码目录里的 @file{CODE-OF-CONDUCT} 文件里找到一份本地版。"
  53. #. type: Plain text
  54. #: guix-git/doc/contributing.texi:21
  55. msgid "Contributors are not required to use their legal name in patches and on-line communication; they can use any name or pseudonym of their choice."
  56. msgstr "贡献者在提交补丁和网上交流时不需要使用法律认可的名字。他们可以使用任何名字或者假名。"
  57. #. type: section
  58. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:35
  59. #: guix-git/doc/contributing.texi:36
  60. #, no-wrap
  61. msgid "Building from Git"
  62. msgstr "从Git构建"
  63. #. type: menuentry
  64. #: guix-git/doc/contributing.texi:33
  65. msgid "The latest and greatest."
  66. msgstr "最新的并且最好的。"
  67. #. type: section
  68. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:192
  69. #: guix-git/doc/contributing.texi:193
  70. #, no-wrap
  71. msgid "Running Guix Before It Is Installed"
  72. msgstr "在安装之前运行Guix"
  73. #. type: menuentry
  74. #: guix-git/doc/contributing.texi:33
  75. msgid "Hacker tricks."
  76. msgstr "黑客技巧。"
  77. #. type: section
  78. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:284
  79. #: guix-git/doc/contributing.texi:285
  80. #, no-wrap
  81. msgid "The Perfect Setup"
  82. msgstr "完美的配置"
  83. #. type: menuentry
  84. #: guix-git/doc/contributing.texi:33
  85. msgid "The right tools."
  86. msgstr "正确的工具。"
  87. #. type: section
  88. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:375
  89. #: guix-git/doc/contributing.texi:376
  90. #, no-wrap
  91. msgid "Packaging Guidelines"
  92. msgstr "打包指导"
  93. #. type: menuentry
  94. #: guix-git/doc/contributing.texi:33
  95. msgid "Growing the distribution."
  96. msgstr "帮助发行版成长。"
  97. #. type: section
  98. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:939
  99. #: guix-git/doc/contributing.texi:940
  100. #, no-wrap
  101. msgid "Coding Style"
  102. msgstr "代码风格"
  103. #. type: menuentry
  104. #: guix-git/doc/contributing.texi:33
  105. msgid "Hygiene of the contributor."
  106. msgstr "出资者的卫生状况。"
  107. #. type: section
  108. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:1032
  109. #: guix-git/doc/contributing.texi:1033
  110. #, no-wrap
  111. msgid "Submitting Patches"
  112. msgstr "提交补丁"
  113. #. type: menuentry
  114. #: guix-git/doc/contributing.texi:33
  115. msgid "Share your work."
  116. msgstr "分享你的工作。"
  117. #. type: section
  118. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:1317
  119. #: guix-git/doc/contributing.texi:1318
  120. #, no-wrap
  121. msgid "Tracking Bugs and Patches"
  122. msgstr "跟踪 Bug 和补丁"
  123. #. type: menuentry
  124. #: guix-git/doc/contributing.texi:33
  125. msgid "Keeping it all organized."
  126. msgstr "保持井井有条。"
  127. #. type: section
  128. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:1432
  129. #: guix-git/doc/contributing.texi:1433
  130. #, no-wrap
  131. msgid "Commit Access"
  132. msgstr "提交权利"
  133. #. type: menuentry
  134. #: guix-git/doc/contributing.texi:33
  135. msgid "Pushing to the official repository."
  136. msgstr "推送到管方的仓库。"
  137. #. type: section
  138. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:1663
  139. #: guix-git/doc/contributing.texi:1664
  140. #, no-wrap
  141. msgid "Updating the Guix Package"
  142. msgstr "更新Guix软件包"
  143. #. type: menuentry
  144. #: guix-git/doc/contributing.texi:33
  145. msgid "Updating the Guix package definition."
  146. msgstr "更新Guix的软件包定义。"
  147. #. type: section
  148. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:1704
  149. #: guix-git/doc/contributing.texi:1705
  150. #, no-wrap
  151. msgid "Translating Guix"
  152. msgstr "翻译 Guix"
  153. #. type: menuentry
  154. #: guix-git/doc/contributing.texi:33
  155. msgid "Make Guix speak your native language."
  156. msgstr "用您的母语翻译 Guix。"
  157. #. type: Plain text
  158. #: guix-git/doc/contributing.texi:40
  159. msgid "If you want to hack Guix itself, it is recommended to use the latest version from the Git repository:"
  160. msgstr "如果你想折腾Guix本身,建议使用Git仓库里最新的版本:"
  161. #. type: example
  162. #: guix-git/doc/contributing.texi:43
  163. #, no-wrap
  164. msgid "git clone https://git.savannah.gnu.org/git/guix.git\n"
  165. msgstr "git clone https://git.savannah.gnu.org/git/guix.git\n"
  166. #. type: cindex
  167. #: guix-git/doc/contributing.texi:45
  168. #, no-wrap
  169. msgid "authentication, of a Guix checkout"
  170. msgstr ""
  171. #. type: Plain text
  172. #: guix-git/doc/contributing.texi:50
  173. msgid "How do you ensure that you obtained a genuine copy of the repository? To do that, run @command{guix git authenticate}, passing it the commit and OpenPGP fingerprint of the @dfn{channel introduction} (@pxref{Invoking guix git authenticate}):"
  174. msgstr ""
  175. #. type: example
  176. #: guix-git/doc/contributing.texi:57
  177. #, no-wrap
  178. msgid ""
  179. "git fetch origin keyring:keyring\n"
  180. "guix git authenticate 9edb3f66fd807b096b48283debdcddccfea34bad \\\n"
  181. " \"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA\"\n"
  182. msgstr ""
  183. #. type: Plain text
  184. #: guix-git/doc/contributing.texi:62
  185. msgid "This command completes with exit code zero on success; it prints an error message and exits with a non-zero code otherwise."
  186. msgstr ""
  187. #. type: Plain text
  188. #: guix-git/doc/contributing.texi:69
  189. msgid "As you can see, there is a chicken-and-egg problem: you first need to have Guix installed. Typically you would install Guix System (@pxref{System Installation}) or Guix on top of another distro (@pxref{Binary Installation}); in either case, you would verify the OpenPGP signature on the installation medium. This ``bootstraps'' the trust chain."
  190. msgstr ""
  191. #. type: Plain text
  192. #: guix-git/doc/contributing.texi:74
  193. msgid "The easiest way to set up a development environment for Guix is, of course, by using Guix! The following command starts a new shell where all the dependencies and appropriate environment variables are set up to hack on Guix:"
  194. msgstr "设置Guix开发环境的最简单的方式当然是使用Guix!下面这些命令启动一个shell,所有的依赖和环境变量都为折腾Guix设置好了:"
  195. #. type: example
  196. #: guix-git/doc/contributing.texi:77
  197. #, fuzzy, no-wrap
  198. #| msgid "guix environment guix --pure\n"
  199. msgid "guix shell -D guix --pure\n"
  200. msgstr "guix environment guix --pure\n"
  201. #. type: Plain text
  202. #: guix-git/doc/contributing.texi:80
  203. #, fuzzy
  204. msgid "@xref{Invoking guix shell}, for more information on that command."
  205. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  206. #. type: Plain text
  207. #: guix-git/doc/contributing.texi:84
  208. #, fuzzy
  209. msgid "If you are unable to use Guix when building Guix from a checkout, the following are the required packages in addition to those mentioned in the installation instructions (@pxref{Requirements})."
  210. msgstr "当从Git检出构建Guix时,除安装指导(@pxref{Requirements})里提及的软件包之外还需要这些包。"
  211. #. type: item
  212. #: guix-git/doc/contributing.texi:86
  213. #, no-wrap
  214. msgid "@url{https://gnu.org/software/autoconf/, GNU Autoconf};"
  215. msgstr "@url{https://gnu.org/software/autoconf/, GNU Autoconf};"
  216. #. type: item
  217. #: guix-git/doc/contributing.texi:87
  218. #, no-wrap
  219. msgid "@url{https://gnu.org/software/automake/, GNU Automake};"
  220. msgstr "@url{https://gnu.org/software/automake/, GNU Automake};"
  221. #. type: item
  222. #: guix-git/doc/contributing.texi:88
  223. #, no-wrap
  224. msgid "@url{https://gnu.org/software/gettext/, GNU Gettext};"
  225. msgstr "@url{https://gnu.org/software/gettext/, GNU Gettext};"
  226. #. type: item
  227. #: guix-git/doc/contributing.texi:89
  228. #, no-wrap
  229. msgid "@url{https://gnu.org/software/texinfo/, GNU Texinfo};"
  230. msgstr "@url{https://gnu.org/software/texinfo/, GNU Texinfo};"
  231. #. type: item
  232. #: guix-git/doc/contributing.texi:90
  233. #, no-wrap
  234. msgid "@url{https://www.graphviz.org/, Graphviz};"
  235. msgstr "@url{https://www.graphviz.org/, Graphviz};"
  236. #. type: item
  237. #: guix-git/doc/contributing.texi:91
  238. #, no-wrap
  239. msgid "@url{https://www.gnu.org/software/help2man/, GNU Help2man (optional)}."
  240. msgstr "@url{https://www.gnu.org/software/help2man/, GNU Help2man(可选)}。"
  241. #. type: Plain text
  242. #: guix-git/doc/contributing.texi:96
  243. msgid "On Guix, extra dependencies can be added by instead running @command{guix shell}:"
  244. msgstr ""
  245. #. type: example
  246. #: guix-git/doc/contributing.texi:99
  247. #, fuzzy, no-wrap
  248. #| msgid "guix environment guix --pure --ad-hoc help2man git strace\n"
  249. msgid "guix shell -D guix help2man git strace --pure\n"
  250. msgstr "guix environment guix --pure --ad-hoc help2man git strace\n"
  251. #. type: Plain text
  252. #: guix-git/doc/contributing.texi:103
  253. #, fuzzy
  254. #| msgid "Run @command{./bootstrap} to generate the build system infrastructure using Autoconf and Automake. If you get an error like this one:"
  255. msgid "From there you can generate the build system infrastructure using Autoconf and Automake:"
  256. msgstr "运行 @command{./bootstrap} 以使用Autoconf和Automake生成构建系统的基础框架。如果你的得到这样的错误:"
  257. #. type: example
  258. #: guix-git/doc/contributing.texi:106
  259. #, fuzzy, no-wrap
  260. #| msgid "Bootstrapping"
  261. msgid "./bootstrap\n"
  262. msgstr "引导"
  263. #. type: Plain text
  264. #: guix-git/doc/contributing.texi:109
  265. msgid "If you get an error like this one:"
  266. msgstr ""
  267. #. type: example
  268. #: guix-git/doc/contributing.texi:112
  269. #, no-wrap
  270. msgid "configure.ac:46: error: possibly undefined macro: PKG_CHECK_MODULES\n"
  271. msgstr "configure.ac:46: error: possibly undefined macro: PKG_CHECK_MODULES\n"
  272. #. type: Plain text
  273. #: guix-git/doc/contributing.texi:121
  274. msgid "it probably means that Autoconf couldn’t find @file{pkg.m4}, which is provided by pkg-config. Make sure that @file{pkg.m4} is available. The same holds for the @file{guile.m4} set of macros provided by Guile. For instance, if you installed Automake in @file{/usr/local}, it wouldn’t look for @file{.m4} files in @file{/usr/share}. In that case, you have to invoke the following command:"
  275. msgstr "它可能意味着Autoconf无法找到由pkg-config提供的@file{pkg.m4}。请确保@file{pkg.m4}可用。由Guile提供的@file{guile.m4}宏也类似。假如你的Automake安装在@file{/usr/local},那么它不会从@file{/usr/share}里寻找@file{.m4}文件。这种情况下,你必须执行下面这个命令:"
  276. #. type: example
  277. #: guix-git/doc/contributing.texi:124
  278. #, no-wrap
  279. msgid "export ACLOCAL_PATH=/usr/share/aclocal\n"
  280. msgstr "export ACLOCAL_PATH=/usr/share/aclocal\n"
  281. #. type: Plain text
  282. #: guix-git/doc/contributing.texi:128
  283. msgid "@xref{Macro Search Path,,, automake, The GNU Automake Manual}, for more information."
  284. msgstr "参考@xref{Macro Search Path,,, automake, The GNU Automake Manual}."
  285. #. type: Plain text
  286. #: guix-git/doc/contributing.texi:130
  287. msgid "Then, run:"
  288. msgstr ""
  289. #. type: example
  290. #: guix-git/doc/contributing.texi:133
  291. #, no-wrap
  292. msgid "./configure --localstatedir=/var\n"
  293. msgstr ""
  294. #. type: Plain text
  295. #: guix-git/doc/contributing.texi:140
  296. msgid "... where @file{/var} is the normal @code{localstatedir} value (@pxref{The Store}, for information about this). Note that you will probably not run @command{make install} at the end (you don't have to) but it's still important to pass the right @code{localstatedir}."
  297. msgstr ""
  298. #. type: Plain text
  299. #: guix-git/doc/contributing.texi:143
  300. msgid "Finally, you can build Guix and, if you feel so inclined, run the tests (@pxref{Running the Test Suite}):"
  301. msgstr ""
  302. #. type: example
  303. #: guix-git/doc/contributing.texi:147
  304. #, fuzzy, no-wrap
  305. #| msgid "make check\n"
  306. msgid ""
  307. "make\n"
  308. "make check\n"
  309. msgstr "make check\n"
  310. #. type: Plain text
  311. #: guix-git/doc/contributing.texi:153
  312. #, fuzzy
  313. msgid "If anything fails, take a look at installation instructions (@pxref{Installation}) or send a message to the @email{guix-devel@@gnu.org, mailing list}."
  314. msgstr "最后,用@code{make check}执行测试(@pxref{Running the Test Suite})。如果遇到任何错误,请参考“安装指导”(@pxref{Installation})或者给@email{guix-devel@@gnu.org, 邮件列表}发邮件。"
  315. #. type: Plain text
  316. #: guix-git/doc/contributing.texi:156
  317. msgid "From there on, you can authenticate all the commits included in your checkout by running:"
  318. msgstr ""
  319. #. type: example
  320. #: guix-git/doc/contributing.texi:159
  321. #, fuzzy, no-wrap
  322. msgid "make authenticate\n"
  323. msgstr "make check\n"
  324. #. type: Plain text
  325. #: guix-git/doc/contributing.texi:162
  326. msgid "The first run takes a couple of minutes, but subsequent runs are faster."
  327. msgstr ""
  328. #. type: Plain text
  329. #: guix-git/doc/contributing.texi:168
  330. msgid "Or, when your configuration for your local Git repository doesn't match the default one, you can provide the reference for the @code{keyring} branch through the variable @code{GUIX_GIT_KEYRING}. The following example assumes that you have a Git remote called @samp{myremote} pointing to the official repository:"
  331. msgstr ""
  332. #. type: example
  333. #: guix-git/doc/contributing.texi:171
  334. #, no-wrap
  335. msgid "make authenticate GUIX_GIT_KEYRING=myremote/keyring\n"
  336. msgstr ""
  337. #. type: quotation
  338. #: guix-git/doc/contributing.texi:173 guix-git/doc/contributing.texi:1515
  339. #: guix-git/doc/guix.texi:607 guix-git/doc/guix.texi:656
  340. #: guix-git/doc/guix.texi:846 guix-git/doc/guix.texi:1832
  341. #: guix-git/doc/guix.texi:2095 guix-git/doc/guix.texi:2279
  342. #: guix-git/doc/guix.texi:2500 guix-git/doc/guix.texi:2712
  343. #: guix-git/doc/guix.texi:3843 guix-git/doc/guix.texi:4588
  344. #: guix-git/doc/guix.texi:4602 guix-git/doc/guix.texi:4684
  345. #: guix-git/doc/guix.texi:4914 guix-git/doc/guix.texi:5657
  346. #: guix-git/doc/guix.texi:6143 guix-git/doc/guix.texi:6400
  347. #: guix-git/doc/guix.texi:6521 guix-git/doc/guix.texi:6549
  348. #: guix-git/doc/guix.texi:6602 guix-git/doc/guix.texi:9687
  349. #: guix-git/doc/guix.texi:9811 guix-git/doc/guix.texi:9881
  350. #: guix-git/doc/guix.texi:11618 guix-git/doc/guix.texi:11658
  351. #: guix-git/doc/guix.texi:11932 guix-git/doc/guix.texi:11944
  352. #: guix-git/doc/guix.texi:14463 guix-git/doc/guix.texi:15094
  353. #: guix-git/doc/guix.texi:16001 guix-git/doc/guix.texi:16991
  354. #: guix-git/doc/guix.texi:19651 guix-git/doc/guix.texi:19821
  355. #: guix-git/doc/guix.texi:28086 guix-git/doc/guix.texi:31860
  356. #: guix-git/doc/guix.texi:35713 guix-git/doc/guix.texi:35947
  357. #: guix-git/doc/guix.texi:36117 guix-git/doc/guix.texi:36281
  358. #: guix-git/doc/guix.texi:36383 guix-git/doc/guix.texi:36422
  359. #: guix-git/doc/guix.texi:36496 guix-git/doc/guix.texi:36833
  360. #: guix-git/doc/guix.texi:37991 guix-git/doc/guix.texi:38066
  361. #: guix-git/doc/guix.texi:38116 guix-git/doc/guix.texi:38166
  362. #: guix-git/doc/guix.texi:38254 guix-git/doc/guix.texi:38786
  363. #: guix-git/doc/guix.texi:39341
  364. #, no-wrap
  365. msgid "Note"
  366. msgstr "注"
  367. #. type: quotation
  368. #: guix-git/doc/contributing.texi:177
  369. 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."
  370. msgstr ""
  371. #. type: Plain text
  372. #: guix-git/doc/contributing.texi:181
  373. msgid "After updating the repository, @command{make} might fail with an error similar to the following example:"
  374. msgstr ""
  375. #. type: example
  376. #: guix-git/doc/contributing.texi:185
  377. #, no-wrap
  378. msgid ""
  379. "error: failed to load 'gnu/packages/dunst.scm':\n"
  380. "ice-9/eval.scm:293:34: In procedure abi-check: #<record-type <origin>>: record ABI mismatch; recompilation needed\n"
  381. msgstr ""
  382. #. type: Plain text
  383. #: guix-git/doc/contributing.texi:191
  384. msgid "This means that one of the record types that Guix defines (in this example, the @code{origin} record) has changed, and all of guix needs to be recompiled to take that change into account. To do so, run @command{make clean-go} followed by @command{make}."
  385. msgstr ""
  386. #. type: Plain text
  387. #: guix-git/doc/contributing.texi:199
  388. 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."
  389. msgstr "为了保持一个合适的工作环境,你会发现在你的本地代码树里测试修改而不用安装它们会很有用。TODO: So that you can distinguish between your ``end-user'' hat and your ``motley'' costume."
  390. #. type: Plain text
  391. #: guix-git/doc/contributing.texi:210
  392. #, fuzzy
  393. 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):"
  394. 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模块。}:"
  395. #. type: example
  396. #: guix-git/doc/contributing.texi:213
  397. #, fuzzy, no-wrap
  398. msgid "$ ./pre-inst-env guix build hello\n"
  399. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  400. #. type: Plain text
  401. #: guix-git/doc/contributing.texi:217
  402. msgid "Similarly, an example for a Guile session using the Guix modules:"
  403. msgstr "同样,一个使用 Guix 模块的 Guile 会话的例子:"
  404. #. type: example
  405. #: guix-git/doc/contributing.texi:220
  406. #, no-wrap
  407. msgid ""
  408. "$ ./pre-inst-env guile -c '(use-modules (guix utils)) (pk (%current-system))'\n"
  409. "\n"
  410. msgstr ""
  411. "$ ./pre-inst-env guile -c '(use-modules (guix utils)) (pk (%current-system))'\n"
  412. "\n"
  413. #. type: example
  414. #: guix-git/doc/contributing.texi:222
  415. #, no-wrap
  416. msgid ";;; (\"x86_64-linux\")\n"
  417. msgstr ";;; (\"x86_64-linux\")\n"
  418. #. type: cindex
  419. #: guix-git/doc/contributing.texi:225
  420. #, no-wrap
  421. msgid "REPL"
  422. msgstr "REPL"
  423. #. type: cindex
  424. #: guix-git/doc/contributing.texi:226
  425. #, no-wrap
  426. msgid "read-eval-print loop"
  427. msgstr "read-eval-print loop"
  428. #. type: Plain text
  429. #: guix-git/doc/contributing.texi:229
  430. msgid "@dots{} and for a REPL (@pxref{Using Guile Interactively,,, guile, Guile Reference Manual}):"
  431. msgstr "@dots{} and for a REPL (@pxref{Using Guile Interactively,,, guile, Guile Reference Manual}):"
  432. #. type: example
  433. #: guix-git/doc/contributing.texi:244
  434. #, no-wrap
  435. msgid ""
  436. "$ ./pre-inst-env guile\n"
  437. "scheme@@(guile-user)> ,use(guix)\n"
  438. "scheme@@(guile-user)> ,use(gnu)\n"
  439. "scheme@@(guile-user)> (define snakes\n"
  440. " (fold-packages\n"
  441. " (lambda (package lst)\n"
  442. " (if (string-prefix? \"python\"\n"
  443. " (package-name package))\n"
  444. " (cons package lst)\n"
  445. " lst))\n"
  446. " '()))\n"
  447. "scheme@@(guile-user)> (length snakes)\n"
  448. "$1 = 361\n"
  449. msgstr ""
  450. "$ ./pre-inst-env guile\n"
  451. "scheme@@(guile-user)> ,use(guix)\n"
  452. "scheme@@(guile-user)> ,use(gnu)\n"
  453. "scheme@@(guile-user)> (define snakes\n"
  454. " (fold-packages\n"
  455. " (lambda (package lst)\n"
  456. " (if (string-prefix? \"python\"\n"
  457. " (package-name package))\n"
  458. " (cons package lst)\n"
  459. " lst))\n"
  460. " '()))\n"
  461. "scheme@@(guile-user)> (length snakes)\n"
  462. "$1 = 361\n"
  463. #. type: Plain text
  464. #: guix-git/doc/contributing.texi:252
  465. #, fuzzy
  466. 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.}:"
  467. 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模块。}:"
  468. #. type: example
  469. #: guix-git/doc/contributing.texi:255
  470. #, fuzzy, no-wrap
  471. msgid "$ sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild\n"
  472. msgstr ""
  473. "$ sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild\n"
  474. "$ ./pre-inst-env guix build hello\n"
  475. #. type: Plain text
  476. #: guix-git/doc/contributing.texi:259
  477. 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}."
  478. msgstr "@command{pre-inst-env}脚本设置为此好了所有必要的的环境变量,包括@env{PATH}和@env{GUILE_LOAD_PATH}。"
  479. #. type: Plain text
  480. #: guix-git/doc/contributing.texi:264
  481. 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."
  482. msgstr "@command{./pre-inst-env guix pull} @emph{不} 会更新本地源代码树,它只更新符号链接@file{~/.config/guix/current} (@pxref{Invoking guix pull})。如果你想更新本地源代码树,请运行@command{git pull}。"
  483. #. type: Plain text
  484. #: guix-git/doc/contributing.texi:268
  485. msgid "Sometimes, especially if you have recently updated your repository, running @command{./pre-inst-env} will print a message similar to the following example:"
  486. msgstr ""
  487. #. type: example
  488. #: guix-git/doc/contributing.texi:272
  489. #, no-wrap
  490. msgid ""
  491. ";;; note: source file /home/user/projects/guix/guix/progress.scm\n"
  492. ";;; newer than compiled /home/user/projects/guix/guix/progress.go\n"
  493. msgstr ""
  494. #. type: Plain text
  495. #: guix-git/doc/contributing.texi:278
  496. msgid "This is only a note and you can safely ignore it. You can get rid of the message by running @command{make -j4}. Until you do, Guile will run slightly slower because it will interpret the code instead of using prepared Guile object (@file{.go}) files."
  497. msgstr ""
  498. #. type: Plain text
  499. #: guix-git/doc/contributing.texi:283
  500. msgid "You can run @command{make} automatically as you work using @command{watchexec} from the @code{watchexec} package. For example, to build again each time you update a package file, you can run @samp{watchexec -w gnu/packages make -j4}."
  501. msgstr ""
  502. #. type: Plain text
  503. #: guix-git/doc/contributing.texi:292
  504. 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:"
  505. 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}。为此,运行:"
  506. #. type: example
  507. #: guix-git/doc/contributing.texi:295
  508. #, fuzzy, no-wrap
  509. #| msgid "guix package -i emacs guile emacs-geiser\n"
  510. msgid "guix package -i emacs guile emacs-geiser emacs-geiser-guile\n"
  511. msgstr "guix package -i emacs guile emacs-geiser\n"
  512. #. type: Plain text
  513. #: guix-git/doc/contributing.texi:304
  514. 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:"
  515. msgstr "Geiser 允许在 Emacs 里进行交互式的、增长式的开发:buffer 里的代码补全和执行,获取一行的文档 (docstrings),上下文敏感的补全,@kbd{M-.} 跳转到对象定义,测试代码的 REPL,及更多(@pxref{Introduction,,, geiser, Geiser User Manual})。为了方便的 Guix 开发,请确保修改 Guile 的加载路径 (load path) 以使其能从你的项目里找到源代码文件:"
  516. #. type: lisp
  517. #: guix-git/doc/contributing.texi:309
  518. #, no-wrap
  519. msgid ""
  520. ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  521. "(with-eval-after-load 'geiser-guile\n"
  522. " (add-to-list 'geiser-guile-load-path \"~/src/guix\"))\n"
  523. msgstr ""
  524. ";; @r{假设Guix项目在 ~/src/guix.}\n"
  525. "(with-eval-after-load 'geiser-guile\n"
  526. " (add-to-list 'geiser-guile-load-path \"~/src/guix\"))\n"
  527. #. type: Plain text
  528. #: guix-git/doc/contributing.texi:317
  529. 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."
  530. msgstr "真正编辑代码时别忘了 Emacs 自带了方便的 Scheme 模式。而且,一定不要错过 @url{https://www.emacswiki.org/emacs/ParEdit, Paredit}。它提供了直接操作语法树的的功能,例如,用 S- 表达式替换父节点,为 S- 表达式添加、删除前后的括号,删除后面的 S- 表达式,等等。"
  531. #. type: cindex
  532. #: guix-git/doc/contributing.texi:318
  533. #, no-wrap
  534. msgid "code snippets"
  535. msgstr "代码片段"
  536. #. type: cindex
  537. #: guix-git/doc/contributing.texi:319
  538. #, no-wrap
  539. msgid "templates"
  540. msgstr "模板"
  541. #. type: cindex
  542. #: guix-git/doc/contributing.texi:320
  543. #, no-wrap
  544. msgid "reducing boilerplate"
  545. msgstr "减少样板"
  546. #. type: Plain text
  547. #: guix-git/doc/contributing.texi:327
  548. #, fuzzy
  549. 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."
  550. msgstr "在@file{etc/snippets}文件夹里,我们还为普通的git commit信息和软件包定义提供模板。这些模板可以通过@url{http://joaotavora.github.io/yasnippet/, YASnippet}使用,它可以把短的触发字符串扩展成交互式的文字片段。你可能希望将这个文件夹添加到Emacs的@var{yas-snippet-dirs}变量里。"
  551. #. type: lisp
  552. #: guix-git/doc/contributing.texi:332
  553. #, no-wrap
  554. msgid ""
  555. ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  556. "(with-eval-after-load 'yasnippet\n"
  557. " (add-to-list 'yas-snippet-dirs \"~/src/guix/etc/snippets\"))\n"
  558. msgstr ""
  559. ";; @r{假设Guix项目在 ~/src/guix.}\n"
  560. "(with-eval-after-load 'yasnippet\n"
  561. " (add-to-list 'yas-snippet-dirs \"~/src/guix/etc/snippets\"))\n"
  562. #. type: Plain text
  563. #: guix-git/doc/contributing.texi:340
  564. 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."
  565. msgstr "commit信息片段显示staged文件需要依赖@url{https://magit.vc/, Magit}。编辑commit信息时,输入@code{add},然后按@kbd{TAB}就可以插入一段用于新增软件包的模板;输入@code{update},然后按@kbd{TAB}可以插入一段更新软件包的模板;输入@code{https}然后按@kbd{TAB}可以插入一段修改主页URI为HTTPS的模板。"
  566. #. type: Plain text
  567. #: guix-git/doc/contributing.texi:346
  568. 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."
  569. msgstr "@code{scheme-mode}最重要的模板可以通过输入@code{package...},然后按@kbd{TAB}触发。这个片段还插入了触发字符串@code{origin...},以进一步展开。@code{origin}片段更进一步的可能插入其它以@code{...}结尾的触发字符串,它们可以被继续展开。"
  570. #. type: cindex
  571. #: guix-git/doc/contributing.texi:347
  572. #, no-wrap
  573. msgid "insert or update copyright"
  574. msgstr ""
  575. #. type: code{#1}
  576. #: guix-git/doc/contributing.texi:348
  577. #, no-wrap
  578. msgid "M-x guix-copyright"
  579. msgstr ""
  580. #. type: code{#1}
  581. #: guix-git/doc/contributing.texi:349
  582. #, no-wrap
  583. msgid "M-x copyright-update"
  584. msgstr ""
  585. #. type: Plain text
  586. #: guix-git/doc/contributing.texi:353
  587. 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."
  588. msgstr ""
  589. #. type: lisp
  590. #: guix-git/doc/contributing.texi:359
  591. #, no-wrap
  592. msgid ""
  593. "(setq user-full-name \"Alice Doe\")\n"
  594. "(setq user-mail-address \"alice@@mail.org\")\n"
  595. ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  596. "(load-file \"~/src/guix/etc/copyright.el\")\n"
  597. msgstr ""
  598. #. type: Plain text
  599. #: guix-git/doc/contributing.texi:362
  600. msgid "To insert a copyright at the current line invoke @code{M-x guix-copyright}."
  601. msgstr ""
  602. #. type: Plain text
  603. #: guix-git/doc/contributing.texi:364
  604. msgid "To update a copyright you need to specify a @code{copyright-names-regexp}."
  605. msgstr ""
  606. #. type: lisp
  607. #: guix-git/doc/contributing.texi:368
  608. #, no-wrap
  609. msgid ""
  610. "(setq copyright-names-regexp\n"
  611. " (format \"%s <%s>\" user-full-name user-mail-address))\n"
  612. msgstr ""
  613. #. type: Plain text
  614. #: guix-git/doc/contributing.texi:374
  615. 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."
  616. msgstr ""
  617. #. type: cindex
  618. #: guix-git/doc/contributing.texi:378
  619. #, no-wrap
  620. msgid "packages, creating"
  621. msgstr "软件包, 创建"
  622. #. type: Plain text
  623. #: guix-git/doc/contributing.texi:382
  624. 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."
  625. msgstr "这个GNU发行版正在开发的早期阶段,可能缺少一些你喜欢的软件。这个章节介绍你可以怎样帮助这个发行版成长。"
  626. #. type: Plain text
  627. #: guix-git/doc/contributing.texi:390
  628. 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."
  629. msgstr "自由软件通常以@dfn{源代码包}的形式分发,通常是包含完整代码的@file{tar.gz}包。添加软件包到这个发行版意味着两件事:添加描述如何构建包的@dfn{配方}和一系列依赖软件,以及添加配方之外的@dfn{软件包元数据},如一段文字描述和证书信息。"
  630. #. type: Plain text
  631. #: guix-git/doc/contributing.texi:399
  632. 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}."
  633. msgstr "在Guix里所有这些信息都包含在@dfn{软件包定义}里。软件包定义提供了软件包的高层视角。它们使用Scheme编程语言编写,事实上,对每个软件包我们都定义一个绑定到软件包定义的的变量,并且从模块(@pxref{Package Modules})中导出那个变量。然而,深入的Scheme知识@emph{不}是创建软件包的前提条件。若要了解软件包的更多信息,@pxref{Defining Packages}。"
  634. #. type: Plain text
  635. #: guix-git/doc/contributing.texi:405
  636. 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}):"
  637. msgstr "一旦软件包定义准备好了,并且包存在Guix代码树的一个文件里,你可以用@command{guix build} (@pxref{Invoking guix build})命令测试它。假设这个新软件包的名字叫做@code{gnew},你可以在Guix构建树里运行这个命令(@pxref{Running Guix Before It Is Installed}):"
  638. #. type: example
  639. #: guix-git/doc/contributing.texi:408
  640. #, no-wrap
  641. msgid "./pre-inst-env guix build gnew --keep-failed\n"
  642. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  643. #. type: Plain text
  644. #: guix-git/doc/contributing.texi:414
  645. 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."
  646. msgstr "使用@code{--keep-failed}参数会保留失败的构建树,这可以使调试构建错误更容易。@code{--log-file}也是一个调试时很有用的参数,它可以用来访问构建日志。"
  647. #. type: Plain text
  648. #: guix-git/doc/contributing.texi:419
  649. 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:"
  650. msgstr "如果@command{guix}命令找不到这个软件包,那可能是因为源文件包含语法错误,或者缺少导出软件包的@code{define-public}语句。为了查找错误,你可以用Guile导入这个模块以了解这个错误的详情:"
  651. #. type: example
  652. #: guix-git/doc/contributing.texi:422
  653. #, no-wrap
  654. msgid "./pre-inst-env guile -c '(use-modules (gnu packages gnew))'\n"
  655. msgstr "./pre-inst-env guile -c '(use-modules (gnu packages gnew))'\n"
  656. #. type: Plain text
  657. #: guix-git/doc/contributing.texi:429
  658. #, fuzzy
  659. 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}."
  660. msgstr "一旦你的软件包可以正确构建,请给我们发送补丁(@pxref{Submitting Patches})。当然,如果你需要帮助,我们也会很乐意帮助你。一旦补丁被提交到 Guix 仓库里,这个新的软件包会被自动地在支持的平台上构建 @url{@value{SUBSTITUTE-URL}, our continuous integration system}。"
  661. #. type: cindex
  662. #: guix-git/doc/contributing.texi:430
  663. #, no-wrap
  664. msgid "substituter"
  665. msgstr "substitutes"
  666. #. type: Plain text
  667. #: guix-git/doc/contributing.texi:437
  668. #, fuzzy
  669. #| 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."
  670. 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."
  671. msgstr "用户可以通过运行@command{guix pull}命令获取最新的软件包定义(@pxref{Invoking guix pull})。当@code{@value{SUBSTITUTE-SERVER}}构建好这些软件包之后,安装这些软件包时会自动从服务器(@pxref{Substitutes})上下载构建好的二进制包。唯一需要人工干预的地方是评审和应用代码补丁。"
  672. #. type: subsection
  673. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:453
  674. #: guix-git/doc/contributing.texi:454
  675. #, no-wrap
  676. msgid "Software Freedom"
  677. msgstr "软件自由"
  678. #. type: menuentry
  679. #: guix-git/doc/contributing.texi:451
  680. msgid "What may go into the distribution."
  681. msgstr "什么可以进入这个发行版。"
  682. #. type: subsection
  683. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:481
  684. #: guix-git/doc/contributing.texi:482
  685. #, no-wrap
  686. msgid "Package Naming"
  687. msgstr "软件包命名"
  688. #. type: menuentry
  689. #: guix-git/doc/contributing.texi:451
  690. msgid "What's in a name?"
  691. msgstr "名字里包含什么?"
  692. #. type: subsection
  693. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:514
  694. #: guix-git/doc/contributing.texi:515
  695. #, no-wrap
  696. msgid "Version Numbers"
  697. msgstr "版本号"
  698. #. type: menuentry
  699. #: guix-git/doc/contributing.texi:451
  700. msgid "When the name is not enough."
  701. msgstr "当名字不够时。"
  702. #. type: subsection
  703. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:621
  704. #: guix-git/doc/contributing.texi:622
  705. #, no-wrap
  706. msgid "Synopses and Descriptions"
  707. msgstr "简介和描述"
  708. #. type: menuentry
  709. #: guix-git/doc/contributing.texi:451
  710. msgid "Helping users find the right package."
  711. msgstr "帮助用户寻找合适的软件包。"
  712. #. type: subsection
  713. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:700
  714. #: guix-git/doc/contributing.texi:701
  715. #, no-wrap
  716. msgid "Snippets versus Phases"
  717. msgstr ""
  718. #. type: menuentry
  719. #: guix-git/doc/contributing.texi:451
  720. msgid "Whether to use a snippet, or a build phase."
  721. msgstr ""
  722. #. type: subsection
  723. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:715
  724. #: guix-git/doc/contributing.texi:716 guix-git/doc/guix.texi:2030
  725. #, no-wrap
  726. msgid "Emacs Packages"
  727. msgstr ""
  728. #. type: menuentry
  729. #: guix-git/doc/contributing.texi:451
  730. msgid "Your Elisp fix."
  731. msgstr ""
  732. #. type: subsection
  733. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:755
  734. #: guix-git/doc/contributing.texi:756
  735. #, no-wrap
  736. msgid "Python Modules"
  737. msgstr "Python模块"
  738. #. type: menuentry
  739. #: guix-git/doc/contributing.texi:451
  740. msgid "A touch of British comedy."
  741. msgstr "接触英式的喜剧。"
  742. #. type: subsection
  743. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:831
  744. #: guix-git/doc/contributing.texi:832
  745. #, no-wrap
  746. msgid "Perl Modules"
  747. msgstr "Perl模块"
  748. #. type: menuentry
  749. #: guix-git/doc/contributing.texi:451
  750. msgid "Little pearls."
  751. msgstr "小珍珠。"
  752. #. type: subsection
  753. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:847
  754. #: guix-git/doc/contributing.texi:848
  755. #, no-wrap
  756. msgid "Java Packages"
  757. msgstr "Java包"
  758. #. type: menuentry
  759. #: guix-git/doc/contributing.texi:451
  760. msgid "Coffee break."
  761. msgstr "喝咖啡休息。"
  762. #. type: subsection
  763. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:867
  764. #: guix-git/doc/contributing.texi:868
  765. #, no-wrap
  766. msgid "Rust Crates"
  767. msgstr ""
  768. #. type: menuentry
  769. #: guix-git/doc/contributing.texi:451
  770. msgid "Beware of oxidation."
  771. msgstr "谨防氧化。"
  772. #. type: subsection
  773. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:901
  774. #: guix-git/doc/contributing.texi:902
  775. #, no-wrap
  776. msgid "Fonts"
  777. msgstr "字体"
  778. #. type: menuentry
  779. #: guix-git/doc/contributing.texi:451
  780. msgid "Fond of fonts."
  781. msgstr "字体的乐趣。"
  782. #. type: cindex
  783. #: guix-git/doc/contributing.texi:457
  784. #, no-wrap
  785. msgid "free software"
  786. msgstr "自由软件"
  787. #. type: Plain text
  788. #: guix-git/doc/contributing.texi:465
  789. 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."
  790. msgstr "开发 GNU 操作系统是为了用户拥有计算的自由。GNU是@dfn{自由软件},这意味着它有@url{https://www.gnu.org/philosophy/free-sw.html,四项重要的自由}:运行程序的自由,以源代码形式学习和修改程序的自由,原样重新分发副本的自由,和分发修改后的版本的自由。GNU 发行版里包含的软件包只提供遵守这四项自由的软件。"
  791. #. type: Plain text
  792. #: guix-git/doc/contributing.texi:471
  793. 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."
  794. msgstr "此外,GNU 发行版遵循@url{https://www.gnu.org/distros/free-system-distribution-guidelines.html,自由软件发行版准则}。这些准则拒绝非自由的固件和对非自由软件的推荐,并讨论解决商标和专利的方法。"
  795. #. type: Plain text
  796. #: guix-git/doc/contributing.texi:479
  797. 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."
  798. msgstr "某些上游的软件包源代码包含一小部分违反上述准则的可选的子集,比如这个子集本身就是非自由代码。这时,这些讨厌的代码需要用合适的补丁或者软件包定义(@pxref{Defining Packages})里的@code{origin}里的代码片段移除。这样,@code{guix build --source}就可以返回自由的源代码而不是未经修改的上游源代码。"
  799. #. type: cindex
  800. #: guix-git/doc/contributing.texi:484
  801. #, no-wrap
  802. msgid "package name"
  803. msgstr "软件包名字"
  804. #. type: Plain text
  805. #: guix-git/doc/contributing.texi:492
  806. #, fuzzy
  807. 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}."
  808. msgstr "一个软件包事实上有两个名字:第一个是@emph{Scheme变量}的名字,即用@code{define-public}定义的名字。通过这个名字,软件包可以被Scheme代码找到,如用作其它软件包的输入。第二个名字是软件包定义里的@code{name}属性的字符串值。这个名字用于软件包管理命令,如:@command{guix package},@command{guix build}"
  809. #. type: Plain text
  810. #: guix-git/doc/contributing.texi:497
  811. 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}."
  812. msgstr "两个名字通常是相同的,常是上游项目名字转成小写字母并把下划线替换成连字符的结果。比如,GNUnet转成@code{gnunet},SDL_net转成@code{sdl-net}。"
  813. #. type: Plain text
  814. #: guix-git/doc/contributing.texi:505
  815. 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."
  816. msgstr ""
  817. #. type: Plain text
  818. #: guix-git/doc/contributing.texi:510
  819. 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."
  820. msgstr "我们不给库软件包添加@code{lib}前缀,除非它是项目官方名字的一部分。但是@pxref{Python Modules}和@ref{Perl Modules}有关于Python和Perl语言的特殊规则。"
  821. #. type: Plain text
  822. #: guix-git/doc/contributing.texi:512
  823. msgid "Font package names are handled differently, @pxref{Fonts}."
  824. msgstr "字体软件包的名字处理起来不同,@pxref{Fonts}."
  825. #. type: cindex
  826. #: guix-git/doc/contributing.texi:517
  827. #, no-wrap
  828. msgid "package version"
  829. msgstr "软件包版本"
  830. #. type: Plain text
  831. #: guix-git/doc/contributing.texi:526
  832. 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."
  833. msgstr "我们通常只为每个自由软件的最新版本打包。但是有时候,比如对于版本不兼容的库,需要有同一个软件包的两个或更多版本。它们需要使用不同的Scheme变量名。我们为最新的版本使用@ref{Package Naming}里规定的名字,旧的版本使用加上后缀的名字,后缀是@code{-}和可以区分开版本号的版本号的最小前缀。"
  834. #. type: Plain text
  835. #: guix-git/doc/contributing.texi:529
  836. msgid "The name inside the package definition is the same for all versions of a package and does not contain any version number."
  837. msgstr "软件包定义里的名字对于同一个软件包的所有版本都是相同的,并且不含有版本号。"
  838. #. type: Plain text
  839. #: guix-git/doc/contributing.texi:531
  840. msgid "For instance, the versions 2.24.20 and 3.9.12 of GTK+ may be packaged as follows:"
  841. msgstr "例如,GTK+的2.24.20和3.9.12两个版本可以这样打包:"
  842. #. type: lisp
  843. #: guix-git/doc/contributing.texi:543
  844. #, no-wrap
  845. msgid ""
  846. "(define-public gtk+\n"
  847. " (package\n"
  848. " (name \"gtk+\")\n"
  849. " (version \"3.9.12\")\n"
  850. " ...))\n"
  851. "(define-public gtk+-2\n"
  852. " (package\n"
  853. " (name \"gtk+\")\n"
  854. " (version \"2.24.20\")\n"
  855. " ...))\n"
  856. msgstr ""
  857. "(define-public gtk+\n"
  858. " (package\n"
  859. " (name \"gtk+\")\n"
  860. " (version \"3.9.12\")\n"
  861. " ...))\n"
  862. "(define-public gtk+-2\n"
  863. " (package\n"
  864. " (name \"gtk+\")\n"
  865. " (version \"2.24.20\")\n"
  866. " ...))\n"
  867. #. type: Plain text
  868. #: guix-git/doc/contributing.texi:545
  869. msgid "If we also wanted GTK+ 3.8.2, this would be packaged as"
  870. msgstr "如果我们还需要GTK+ 3.8.2,就这样打包"
  871. #. type: lisp
  872. #: guix-git/doc/contributing.texi:551
  873. #, no-wrap
  874. msgid ""
  875. "(define-public gtk+-3.8\n"
  876. " (package\n"
  877. " (name \"gtk+\")\n"
  878. " (version \"3.8.2\")\n"
  879. " ...))\n"
  880. msgstr ""
  881. "(define-public gtk+-3.8\n"
  882. " (package\n"
  883. " (name \"gtk+\")\n"
  884. " (version \"3.8.2\")\n"
  885. " ...))\n"
  886. #. type: cindex
  887. #: guix-git/doc/contributing.texi:555
  888. #, no-wrap
  889. msgid "version number, for VCS snapshots"
  890. msgstr "用于版本控制快照的版本号"
  891. #. type: Plain text
  892. #: guix-git/doc/contributing.texi:561
  893. 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?"
  894. msgstr "有时候,我们为软件包上游的版本控制系统(VCS)的快照而不是正式发布版打包。这是特殊情况,因为决定哪个是稳定版的权力应该属于上游开发者。然而,有时候这是必须的。那么,我们该如何决定写在@code{version}里的版本号呢?"
  895. #. type: Plain text
  896. #: guix-git/doc/contributing.texi:569
  897. 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:"
  898. msgstr "显然,我们需要让VCS快照的commit ID在版本号中体现出来,但是我们也需要确保版本号单调递增,以便@command{guix package --upgrade}决定哪个版本号更新。由于commit ID,尤其是Git的commit ID,不是单调递增的,我们添加一个每次升级快照时都手动增长的revision数字。最后的版本号字符串看起来是这样:"
  899. #. type: example
  900. #: guix-git/doc/contributing.texi:578
  901. #, no-wrap
  902. msgid ""
  903. "2.0.11-3.cabba9e\n"
  904. " ^ ^ ^\n"
  905. " | | `-- upstream commit ID\n"
  906. " | |\n"
  907. " | `--- Guix package revision\n"
  908. " |\n"
  909. "latest upstream version\n"
  910. msgstr ""
  911. "2.0.11-3.cabba9e\n"
  912. " ^ ^ ^\n"
  913. " | | `-- 上游的commit ID\n"
  914. " | |\n"
  915. " | `--- Guix软件包的revision\n"
  916. " |\n"
  917. "最新的上游版本号\n"
  918. #. type: Plain text
  919. #: guix-git/doc/contributing.texi:588
  920. #, fuzzy
  921. 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:"
  922. msgstr "把@code{版本号}里的commit ID截短,比如只取7个数字,是一个好主意。它避免了美学上的烦恼(假设美学在这里很重要),以及操作系统限制引起的问题(比如Linux内核的127字节)。尽管如此,在@code{origin}里最好使用完整的commit ID,以避免混淆。"
  923. #. type: lisp
  924. #: guix-git/doc/contributing.texi:605
  925. #, no-wrap
  926. msgid ""
  927. "(define my-package\n"
  928. " (let ((commit \"c3f29bc928d5900971f65965feaae59e1272a3f7\")\n"
  929. " (revision \"1\")) ;Guix package revision\n"
  930. " (package\n"
  931. " (version (git-version \"0.9\" revision commit))\n"
  932. " (source (origin\n"
  933. " (method git-fetch)\n"
  934. " (uri (git-reference\n"
  935. " (url \"git://example.org/my-package.git\")\n"
  936. " (commit commit)))\n"
  937. " (sha256 (base32 \"1mbikn@dots{}\"))\n"
  938. " (file-name (git-file-name name version))))\n"
  939. " ;; @dots{}\n"
  940. " )))\n"
  941. msgstr ""
  942. "(define my-package\n"
  943. " (let ((commit \"c3f29bc928d5900971f65965feaae59e1272a3f7\")\n"
  944. " (revision \"1\")) ;Guix软件包的revision\n"
  945. " (package\n"
  946. " (version (git-version \"0.9\" revision commit))\n"
  947. " (source (origin\n"
  948. " (method git-fetch)\n"
  949. " (uri (git-reference\n"
  950. " (url \"git://example.org/my-package.git\")\n"
  951. " (commit commit)))\n"
  952. " (sha256 (base32 \"1mbikn@dots{}\"))\n"
  953. " (file-name (git-file-name name version))))\n"
  954. " ;; @dots{}\n"
  955. " )))\n"
  956. #. type: deffn
  957. #: guix-git/doc/contributing.texi:607
  958. #, no-wrap
  959. msgid "{Scheme Procedure} git-version @var{VERSION} @var{REVISION} @var{COMMIT}"
  960. msgstr ""
  961. #. type: deffn
  962. #: guix-git/doc/contributing.texi:609
  963. msgid "Return the version string for packages using @code{git-fetch}."
  964. msgstr ""
  965. #. type: lisp
  966. #: guix-git/doc/contributing.texi:613
  967. #, no-wrap
  968. msgid ""
  969. "(git-version \"0.2.3\" \"0\" \"93818c936ee7e2f1ba1b315578bde363a7d43d05\")\n"
  970. "@result{} \"0.2.3-0.93818c9\"\n"
  971. msgstr ""
  972. #. type: deffn
  973. #: guix-git/doc/contributing.texi:616
  974. #, no-wrap
  975. msgid "{Scheme Procedure} hg-version @var{VERSION} @var{REVISION} @var{CHANGESET}"
  976. msgstr ""
  977. #. type: deffn
  978. #: guix-git/doc/contributing.texi:619
  979. msgid "Return the version string for packages using @code{hg-fetch}. It works in the same way as @code{git-version}."
  980. msgstr ""
  981. #. type: cindex
  982. #: guix-git/doc/contributing.texi:624
  983. #, no-wrap
  984. msgid "package description"
  985. msgstr "软件包描述"
  986. #. type: cindex
  987. #: guix-git/doc/contributing.texi:625
  988. #, no-wrap
  989. msgid "package synopsis"
  990. msgstr "软件包简介"
  991. #. type: Plain text
  992. #: guix-git/doc/contributing.texi:632
  993. 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."
  994. msgstr "我们已经看到,GNU@tie{}Guix里的每个软件包都包含一个简介(synopsis)和一个描述(description)(@pxref{Defining Packages})。简介和描述很重要:它们是@command{guix package --search}搜索的信息,并且是帮助用户决定一个软件包是否符合自己需求的重要信息。因此,打包的人应该关注怎样写它们的内容。"
  995. #. type: Plain text
  996. #: guix-git/doc/contributing.texi:640
  997. 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''."
  998. 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''。"
  999. #. type: Plain text
  1000. #: guix-git/doc/contributing.texi:650
  1001. 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."
  1002. msgstr "记住,简介必须能被广大的听众理解。例如,“以SAM格式修改对齐”可能对经验丰富的生物信息科研工作者来说能理解,但是对普通对听众则是无用的甚至是令人误解的。简介最好说明软件包应用的领域。在这个例子中,应该这样描述“修改核苷酸序列的对齐格式”,这会让用户更容易判断这是不是他们想要的。"
  1003. #. type: Plain text
  1004. #: guix-git/doc/contributing.texi:658
  1005. 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."
  1006. msgstr "描述应该在5至10句话之间。使用完整的句子,并且避免在未介绍的情况下使用缩写。请避免推广营销性对词汇,如“世界领先”,“行业最强”,“下一代”,并且避免高级的形容词,如“最先进的”--他们对用户寻找软件包是无用的,甚至是可疑的。相反的,尽量务实,提及用例和功能。"
  1007. #. type: cindex
  1008. #: guix-git/doc/contributing.texi:659
  1009. #, no-wrap
  1010. msgid "Texinfo markup, in package descriptions"
  1011. msgstr "软件包描述里的Texinfo标记"
  1012. #. type: Plain text
  1013. #: guix-git/doc/contributing.texi:668
  1014. 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."
  1015. msgstr "描述可以含有Texinfo标记,这对格式化有帮助,如@code{@@code}、@code{@@dfn}、列表、超链接(@pxref{Overview,,, texinfo, GNU Texinfo})。但是,在使用某些字符时应该小心,如@samp{@@}和花括号是基本的Texinfo特殊字符(@pxref{Special Characters,,, texinfo, GNU Texinfo})。@command{guix package --show}之类的用户界面会解决渲染问题。"
  1016. #. type: Plain text
  1017. #: guix-git/doc/contributing.texi:674
  1018. #, fuzzy
  1019. 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."
  1020. msgstr "简介和描述会由@uref{http://translationproject.org/domain/guix-packages.html, Translation Project}项目的志愿者翻译,从而使尽可能多的用户可以用母语阅读。用户界面用当前区域设置的语言搜索和展示这些信息。"
  1021. #. type: Plain text
  1022. #: guix-git/doc/contributing.texi:679
  1023. 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:"
  1024. msgstr "为了让@command{xgettext}可以把它们提取成待翻译的字符串,简介和描述@emph{必须是文字字符串}。这意味着你不能使用@code{string-append}或@code{format}来合成字符串:"
  1025. #. type: lisp
  1026. #: guix-git/doc/contributing.texi:685
  1027. #, no-wrap
  1028. msgid ""
  1029. "(package\n"
  1030. " ;; @dots{}\n"
  1031. " (synopsis \"This is translatable\")\n"
  1032. " (description (string-append \"This is \" \"*not*\" \" translatable.\")))\n"
  1033. msgstr ""
  1034. "(package\n"
  1035. " ;; @dots{}\n"
  1036. " (synopsis \"这是可以翻译的\")\n"
  1037. " (description (string-append \"这是\" \"*不可以*\" \"翻译的\")))\n"
  1038. #. type: Plain text
  1039. #: guix-git/doc/contributing.texi:693
  1040. 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}):"
  1041. msgstr "翻译是很繁重的工作,所以,作为打包者请更加注意你的简介和介绍,每一个改动都会增加翻译的工作量。为了帮助他们,你可以插入这类可以被他们看到的建议和指示(@pxref{xgettext Invocation,,, gettext, GNU Gettext}):"
  1042. #. type: lisp
  1043. #: guix-git/doc/contributing.texi:698
  1044. #, no-wrap
  1045. msgid ""
  1046. ";; TRANSLATORS: \"X11 resize-and-rotate\" should not be translated.\n"
  1047. "(description \"ARandR is designed to provide a simple visual front end\n"
  1048. "for the X11 resize-and-rotate (RandR) extension. @dots{}\")\n"
  1049. msgstr ""
  1050. ";; TRANSLATORS: \"X11 resize-and-rotate\"不需要翻译。\n"
  1051. "(description \"ARandR为X11 resize-and-rotate (RandR)扩展提供简单的图形界面。@dots{}\")\n"
  1052. #. type: cindex
  1053. #: guix-git/doc/contributing.texi:703
  1054. #, no-wrap
  1055. msgid "snippets, when to use"
  1056. msgstr ""
  1057. #. type: Plain text
  1058. #: guix-git/doc/contributing.texi:714
  1059. 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})."
  1060. msgstr ""
  1061. #. type: cindex
  1062. #: guix-git/doc/contributing.texi:718
  1063. #, no-wrap
  1064. msgid "emacs, packaging"
  1065. msgstr ""
  1066. #. type: cindex
  1067. #: guix-git/doc/contributing.texi:719
  1068. #, no-wrap
  1069. msgid "elisp, packaging"
  1070. msgstr ""
  1071. #. type: Plain text
  1072. #: guix-git/doc/contributing.texi:731
  1073. 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."
  1074. msgstr ""
  1075. #. type: Plain text
  1076. #: guix-git/doc/contributing.texi:736
  1077. 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}."
  1078. msgstr ""
  1079. #. type: Plain text
  1080. #: guix-git/doc/contributing.texi:745
  1081. 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:"
  1082. msgstr ""
  1083. #. type: lisp
  1084. #: guix-git/doc/contributing.texi:748
  1085. #, no-wrap
  1086. msgid "#:include (cons \"^snippets/\" %default-include)\n"
  1087. msgstr ""
  1088. #. type: Plain text
  1089. #: guix-git/doc/contributing.texi:754
  1090. 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."
  1091. msgstr ""
  1092. #. type: cindex
  1093. #: guix-git/doc/contributing.texi:758
  1094. #, no-wrap
  1095. msgid "python"
  1096. msgstr "python"
  1097. #. type: Plain text
  1098. #: guix-git/doc/contributing.texi:764
  1099. 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}."
  1100. msgstr "我们目前为Python 2和Python 3打包,如@ref{Version Numbers}的规则所述,它们的Scheme变量名分别是@code{python-2}和@code{python}。为了避免和其他编程语言的冲突,Python模块的软件包名字最好含有@code{python}。"
  1101. #. type: Plain text
  1102. #: guix-git/doc/contributing.texi:771
  1103. #, fuzzy
  1104. 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."
  1105. msgstr "某些模块仅和一个版本的Python兼容,其它的和两个版本都兼容。如果一个叫做Foo的软件包仅和Python 3兼容,我们把它命名为@code{python-foo};如果它仅和Python 2兼容,我们把它命名为@code{python2-foo}。如果它和两个版本都兼容,我们创建两个软件包,名字如前所述。"
  1106. #. type: Plain text
  1107. #: guix-git/doc/contributing.texi:777
  1108. 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."
  1109. msgstr "如果一个项目的名字已经含有@code{python}这个单词,我们把它丢掉;例如,python-dateutil模块打包后的名字是@code{python-dateutil}和@code{python2-dateutil}。如果项目的名字以@code{py}开头(如@: @code{pytz}),我们把它保留,并且添加上面所述的前缀。"
  1110. #. type: subsubsection
  1111. #: guix-git/doc/contributing.texi:778
  1112. #, no-wrap
  1113. msgid "Specifying Dependencies"
  1114. msgstr "指定依赖"
  1115. #. type: cindex
  1116. #: guix-git/doc/contributing.texi:779
  1117. #, no-wrap
  1118. msgid "inputs, for Python packages"
  1119. msgstr "Python软件包的输入"
  1120. #. type: Plain text
  1121. #: guix-git/doc/contributing.texi:784
  1122. 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}."
  1123. msgstr "Python软件包的依赖信息通常在包的源代码树里,各种文件有不同的精确度:@file{setup.py}文件,@file{requirements.txt}文件,@file{tox.ini}文件。"
  1124. #. type: Plain text
  1125. #: guix-git/doc/contributing.texi:790
  1126. 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."
  1127. msgstr "你在写软件包配方时的任务是把这些依赖转换成相应的“输入”(@pxref{package Reference, inputs})。尽管@code{pypi}导入工具通常可以做得很好(@pxref{Invoking guix import}),你可能想检查下面这个清单,以决定每个依赖放在哪儿。"
  1128. #. type: itemize
  1129. #: guix-git/doc/contributing.texi:798
  1130. 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."
  1131. msgstr "默认地,我们为Python 2打包时像Python 3一样安装了@code{setuptools}和@code{pip}。所以你不需要把它们两个指定为依赖,否则@command{guix lint}会警告你。"
  1132. #. type: itemize
  1133. #: guix-git/doc/contributing.texi:804
  1134. 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."
  1135. msgstr "运行时需要的Python依赖要放进@code{propagated-inputs}。它们通常由@file{setup.py}文件里的@code{install_requires}关键字或@file{requirements.txt}文件定义。"
  1136. #. type: itemize
  1137. #: guix-git/doc/contributing.texi:812
  1138. 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."
  1139. msgstr "仅在构建时依赖的Python包--如,@file{setup.py}里的@code{setup_requires}关键字列举的包--或仅在测试时依赖的包--如,@code{tests_require}里的包--要放进@code{native-inputs}。因为,(1)在运行时不需要它们,因此不需要propagate,并且(2)在交叉编译时,它们属于“native”输入。"
  1140. #. type: itemize
  1141. #: guix-git/doc/contributing.texi:816
  1142. 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}."
  1143. msgstr "例如@code{pytest},@code{mock},@code{nose}测试框架。当然,如果在运行时需要这里的任何一个包,它需要被加进@code{propagated-inputs}。"
  1144. #. type: itemize
  1145. #: guix-git/doc/contributing.texi:821
  1146. 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."
  1147. msgstr "任何不属于上述类别的包都要被加进@code{inputs},如,构建含有C语言扩展的Python包所需的程序和C语言库。"
  1148. #. type: itemize
  1149. #: guix-git/doc/contributing.texi:827
  1150. 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}})."
  1151. msgstr "如果一个Python软件包由可选的依赖(@code{extras_require}),由你根据它们的性价比(用处/负担)决定是否添加它们(@pxref{Submitting Patches, @command{guix size}})。"
  1152. #. type: cindex
  1153. #: guix-git/doc/contributing.texi:834
  1154. #, no-wrap
  1155. msgid "perl"
  1156. msgstr "perl"
  1157. #. type: Plain text
  1158. #: guix-git/doc/contributing.texi:845
  1159. 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}."
  1160. msgstr "Perl程序和其它软件包的命名规则类似,用小写的上游名字命名。对于仅包含一个类的Perl包,我们使用小写的类名,把所有的@code{::}替换成破折号,并且添加@code{perl-}前缀。所以类@code{XML::Parser}变成@code{perl-xml-parser}。包含多个类的模块保留它们上游的名字,并且添加@code{perl-}前缀。这类模块的名字通常含有@code{perl},这个单词需要被删掉。例如,@code{libwww-perl}变成@code{perl-libwww}。"
  1161. #. type: cindex
  1162. #: guix-git/doc/contributing.texi:850
  1163. #, no-wrap
  1164. msgid "java"
  1165. msgstr "java"
  1166. #. type: Plain text
  1167. #: guix-git/doc/contributing.texi:853
  1168. msgid "Java programs standing for themselves are named as any other package, using the lowercase upstream name."
  1169. msgstr "Java程序和其它软件包的命名规则类似,用小写的上游名字命名。"
  1170. #. type: Plain text
  1171. #: guix-git/doc/contributing.texi:859
  1172. 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}."
  1173. msgstr "为了避免和其它编程语言混淆和命名冲突,Java软件包的名字最好有@code{java-}前缀。如果一个项目的名字已经含有@code{java},我们把它删掉;例如,@code{ngsjava}打包后的名字是@code{java-ngs}。"
  1174. #. type: Plain text
  1175. #: guix-git/doc/contributing.texi:865
  1176. 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}."
  1177. msgstr "对于仅包含一个或很少几个类的Java软件包,我们使用小写的类名,把所有的@code{.}替换成破折号,并且添加@code{java-}前缀。因此,类@code{apache.commons.cli}打包后的名字是@code{java-apache-commons-cli}。"
  1178. #. type: cindex
  1179. #: guix-git/doc/contributing.texi:870
  1180. #, no-wrap
  1181. msgid "rust"
  1182. msgstr ""
  1183. #. type: Plain text
  1184. #: guix-git/doc/contributing.texi:873
  1185. msgid "Rust programs standing for themselves are named as any other package, using the lowercase upstream name."
  1186. msgstr "Rust 程序和其它软件包的命名规则类似,用小写的上游名字命名。"
  1187. #. type: Plain text
  1188. #: guix-git/doc/contributing.texi:877
  1189. 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."
  1190. msgstr ""
  1191. #. type: Plain text
  1192. #: guix-git/doc/contributing.texi:883
  1193. 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}."
  1194. msgstr ""
  1195. #. type: Plain text
  1196. #: guix-git/doc/contributing.texi:893
  1197. 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."
  1198. msgstr ""
  1199. #. type: Plain text
  1200. #: guix-git/doc/contributing.texi:899
  1201. 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."
  1202. msgstr ""
  1203. #. type: cindex
  1204. #: guix-git/doc/contributing.texi:904 guix-git/doc/guix.texi:1965
  1205. #, no-wrap
  1206. msgid "fonts"
  1207. msgstr "字体"
  1208. #. type: Plain text
  1209. #: guix-git/doc/contributing.texi:910
  1210. 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."
  1211. msgstr "对于通常不会被用户安装用于排版的字体,或者随更大的软件包分发的字体,我们使用通常的命名规则。例如,这适用于X.Org系统附带的字体或TeX Live附带的字体。"
  1212. #. type: Plain text
  1213. #: guix-git/doc/contributing.texi:914
  1214. 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."
  1215. msgstr "为了让用户更容易搜索字体,其它仅含有字体的软件包按以下规则命名,不管上游的包名是什么。"
  1216. #. type: Plain text
  1217. #: guix-git/doc/contributing.texi:922
  1218. 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}."
  1219. msgstr "仅含有一个字体家族的软件包需要以@code{font-}开头;如果作者名字已知,则添加作者名字和@code{-},接着是字体家族名字(把空格替换成破折号),(和通常一样,把所有的大写字母转换成小写字母)。例如,由SIL设计的Gentium字体家族打包后的名字是@code{font-sil-gentium}。"
  1220. #. type: Plain text
  1221. #: guix-git/doc/contributing.texi:931
  1222. 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}."
  1223. msgstr "对于一个含有多个字体家族的软件包,用集合的名字替换字体家族的名字。例如,Liberation字体含有三个家族,Liberation Sans、Liberation Serif和Liberation Mono。它们可以用@code{font-liberation-sans}等名字分开打包;但是由于它们以一个共同的名字分发,我们倾向于以@code{font-liberation}名字统一打包。"
  1224. #. type: Plain text
  1225. #: guix-git/doc/contributing.texi:937
  1226. 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."
  1227. msgstr "当同一个字体家族或字体集合的不同格式分开打包时,把破折号和格式(缩写)添加在软件包名字后面。我们用@code{-ttf}代表TrueType字体,@code{-otf}代表OpenType字体,@code{-type1}代表PostScript Type 1字体。"
  1228. #. type: Plain text
  1229. #: guix-git/doc/contributing.texi:945
  1230. 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."
  1231. msgstr "总的来说,我们的代码遵循GNU代码规范(@pxref{Top,,, standards, GNU代码规范})。但是,这个规范对Scheme的介绍不多,所以这儿提供一些额外的规则。"
  1232. #. type: subsection
  1233. #: guix-git/doc/contributing.texi:951 guix-git/doc/contributing.texi:953
  1234. #: guix-git/doc/contributing.texi:954
  1235. #, no-wrap
  1236. msgid "Programming Paradigm"
  1237. msgstr "编程范例"
  1238. #. type: menuentry
  1239. #: guix-git/doc/contributing.texi:951
  1240. msgid "How to compose your elements."
  1241. msgstr "怎样合成元素。"
  1242. #. type: subsection
  1243. #: guix-git/doc/contributing.texi:951 guix-git/doc/contributing.texi:960
  1244. #: guix-git/doc/contributing.texi:961
  1245. #, no-wrap
  1246. msgid "Modules"
  1247. msgstr "模块"
  1248. #. type: menuentry
  1249. #: guix-git/doc/contributing.texi:951
  1250. msgid "Where to store your code?"
  1251. msgstr "在哪里保存代码?"
  1252. #. type: subsection
  1253. #: guix-git/doc/contributing.texi:951 guix-git/doc/contributing.texi:971
  1254. #: guix-git/doc/contributing.texi:972
  1255. #, no-wrap
  1256. msgid "Data Types and Pattern Matching"
  1257. msgstr "数据类型和模式匹配"
  1258. #. type: menuentry
  1259. #: guix-git/doc/contributing.texi:951
  1260. msgid "Implementing data structures."
  1261. msgstr "实现数据结构。"
  1262. #. type: subsection
  1263. #: guix-git/doc/contributing.texi:951 guix-git/doc/contributing.texi:986
  1264. #: guix-git/doc/contributing.texi:987
  1265. #, no-wrap
  1266. msgid "Formatting Code"
  1267. msgstr "格式化代码"
  1268. #. type: menuentry
  1269. #: guix-git/doc/contributing.texi:951
  1270. msgid "Writing conventions."
  1271. msgstr "书写规范。"
  1272. #. type: Plain text
  1273. #: guix-git/doc/contributing.texi:959
  1274. 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."
  1275. msgstr "Guix里的Scheme代码是以纯函数的风格写的。一个例外是有关输入/输出的代码,和实现底层概念的过程,如@code{memoize}过程。"
  1276. #. type: Plain text
  1277. #: guix-git/doc/contributing.texi:967
  1278. 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."
  1279. msgstr "用于构建的Guile模块必须放在@code{(guix build @dots{})}命名空间里。它们不允许引用其它Guix或GNU模块。但是,主机端(host-side)模块可以使用构建端(build-side)模块。"
  1280. #. type: Plain text
  1281. #: guix-git/doc/contributing.texi:970
  1282. msgid "Modules that deal with the broader GNU system should be in the @code{(gnu @dots{})} name space rather than @code{(guix @dots{})}."
  1283. msgstr "关于更广的GNU系统的模块应该在@code{(gnu @dots{})}命名空间里而不是@code{(guix @dots{})}。"
  1284. #. type: Plain text
  1285. #: guix-git/doc/contributing.texi:979
  1286. 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."
  1287. msgstr "经典的Lisp倾向于用列表表示所有的东西,然后用@code{car},@code{cdr},@code{cadr}等手动浏览它们。这种风格有几个问题,特别是难以阅读,易出错,并且妨碍生成合适的类型错误报告。"
  1288. #. type: Plain text
  1289. #: guix-git/doc/contributing.texi:985
  1290. #, fuzzy
  1291. 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})."
  1292. msgstr "Guix代码应该定义合适的数据类型(例如,用@code{define-record-type*})而不是滥用列表。而且,它应该利用Guile的@code{(ice-9 match)}模块使用模式匹配,特别是匹配列表的时候。"
  1293. #. type: cindex
  1294. #: guix-git/doc/contributing.texi:989
  1295. #, no-wrap
  1296. msgid "formatting code"
  1297. msgstr "格式化代码"
  1298. #. type: cindex
  1299. #: guix-git/doc/contributing.texi:990
  1300. #, no-wrap
  1301. msgid "coding style"
  1302. msgstr "代码风格"
  1303. #. type: Plain text
  1304. #: guix-git/doc/contributing.texi:997
  1305. #, fuzzy
  1306. 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."
  1307. msgstr "在写Scheme代码时,我们遵循Scheme程序员的通用智慧。通常,我们遵循@url{http://mumble.net/~campbell/scheme/style.txt, Riastradh的Lisp风格}。这个文档碰巧描述了在Guile代码里大量使用的惯例。它很周到,而且写的很好,所以务必阅读。"
  1308. #. type: Plain text
  1309. #: guix-git/doc/contributing.texi:1004
  1310. 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})."
  1311. msgstr "一些Guix添加的special form,如@code{substitute*}宏,有特殊的缩进规则。它们的规则在@file{.dir-locals.el}文件里定义,Emacs会自动使用。另外,Emacs-Guix提供的@code{guix-devel-mode}模式可以正确地缩进和高亮Guix代码(@pxref{Development,,, emacs-guix, Emacs-Guix参考手册})。"
  1312. #. type: cindex
  1313. #: guix-git/doc/contributing.texi:1005
  1314. #, no-wrap
  1315. msgid "indentation, of code"
  1316. msgstr "代码缩进"
  1317. #. type: cindex
  1318. #: guix-git/doc/contributing.texi:1006
  1319. #, no-wrap
  1320. msgid "formatting, of code"
  1321. msgstr "代码格式化"
  1322. #. type: Plain text
  1323. #: guix-git/doc/contributing.texi:1009
  1324. 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:"
  1325. msgstr "如果你不使用Emacs,请确保让你的编辑器知道这些规则。为了自动地缩进软件包定义,你也可以运行:"
  1326. #. type: example
  1327. #: guix-git/doc/contributing.texi:1012
  1328. #, fuzzy, no-wrap
  1329. msgid "./pre-inst-env guix style @var{package}\n"
  1330. msgstr "guix install emacs-guix\n"
  1331. #. type: Plain text
  1332. #: guix-git/doc/contributing.texi:1016
  1333. #, fuzzy
  1334. msgid "@xref{Invoking guix style}, for more information."
  1335. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  1336. #. type: cindex
  1337. #: guix-git/doc/contributing.texi:1017
  1338. #, no-wrap
  1339. msgid "Vim, Scheme code editing"
  1340. msgstr "Vim,编辑Scheme代码"
  1341. #. type: Plain text
  1342. #: guix-git/doc/contributing.texi:1023
  1343. 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."
  1344. msgstr "如果你用Vim编辑代码,我们推荐你运行@code{:set autoindent},以使你在输入时自动缩进代码。另外,@uref{https://www.vim.org/scripts/script.php?script_id=3998, @code{paredit.vim}}可以帮你处理括号。"
  1345. #. type: Plain text
  1346. #: guix-git/doc/contributing.texi:1027
  1347. 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."
  1348. msgstr "我们要求所有的顶级过程附带一个docstring。这个要求对@code{(guix build @dots{})}命名空间里的简单的私有过程可以放宽。"
  1349. #. type: Plain text
  1350. #: guix-git/doc/contributing.texi:1030
  1351. msgid "Procedures should not have more than four positional parameters. Use keyword parameters for procedures that take more than four parameters."
  1352. msgstr "过程不应该有多于四个定位参数。对于接收多于四个定位参数的过程应使用关键字参数。"
  1353. #. type: Plain text
  1354. #: guix-git/doc/contributing.texi:1044
  1355. #, fuzzy
  1356. 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})."
  1357. msgstr "开发是使用Git分布式版本控制系统完成的。因此,对仓库的访问权限不是必须的。我们欢迎以向@email{guix-patches@@gnu.org}邮件列表发送@code{git format-patch}补丁的方式共享代码。"
  1358. #. type: Plain text
  1359. #: guix-git/doc/contributing.texi:1051
  1360. #, fuzzy
  1361. 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})."
  1362. msgstr "这个邮件列表的后端是一个Debbugs实例(可以从@uref{https://bugs.gnu.org/guix-patches}访问),它允许我们跟踪提交的bug。每个发送到那个邮件列表的消息都会被分配一个跟踪数字;之后人们可以通过向@code{@var{NNN}@@debbugs.gnu.org}发送邮件来跟进提交(@var{NNN}是跟踪数字,@pxref{Sending a Patch Series})。"
  1363. #. type: Plain text
  1364. #: guix-git/doc/contributing.texi:1055
  1365. msgid "Please write commit logs in the ChangeLog format (@pxref{Change Logs,,, standards, GNU Coding Standards}); you can check the commit history for examples."
  1366. msgstr "请以ChangeLog格式(@pxref{Change Logs,,, standards, GNU代码规范})写commit日志;你可以浏览commit历史里的例子。"
  1367. #. type: Plain text
  1368. #: guix-git/doc/contributing.texi:1058
  1369. msgid "Before submitting a patch that adds or modifies a package definition, please run through this check list:"
  1370. msgstr "提交添加或者修改软件包定义的补丁之前,请过一遍这个检查列表:"
  1371. #. type: code{#1}
  1372. #: guix-git/doc/contributing.texi:1060 guix-git/doc/contributing.texi:1270
  1373. #, no-wrap
  1374. msgid "git format-patch"
  1375. msgstr ""
  1376. #. type: code{#1}
  1377. #: guix-git/doc/contributing.texi:1061
  1378. #, no-wrap
  1379. msgid "git-format-patch"
  1380. msgstr ""
  1381. #. type: enumerate
  1382. #: guix-git/doc/contributing.texi:1068
  1383. 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."
  1384. msgstr ""
  1385. #. type: enumerate
  1386. #: guix-git/doc/contributing.texi:1074
  1387. 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."
  1388. msgstr "如果软件包的作者为发布的文件包提供了密码学签名,请验证文件的真实性。对于独立的 GPG 签名文件,这可以通过 @code{gpg --verify} 命令完成。"
  1389. #. type: enumerate
  1390. #: guix-git/doc/contributing.texi:1078
  1391. msgid "Take some time to provide an adequate synopsis and description for the package. @xref{Synopses and Descriptions}, for some guidelines."
  1392. msgstr "花些时间为软件包提供一个合适的简介和描述。更多指导,@xref{Synopses and Descriptions}。"
  1393. #. type: enumerate
  1394. #: guix-git/doc/contributing.texi:1083
  1395. 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})."
  1396. msgstr "运行@code{guix lint @var{软件包}},@var{软件包}是新添加的或修改过的软件包的名字,修复它报告的错误(@pxref{Invoking guix lint})。"
  1397. #. type: enumerate
  1398. #: guix-git/doc/contributing.texi:1087
  1399. #, fuzzy
  1400. #| 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})."
  1401. msgid "Run @code{guix style @var{package}} to format the new package definition according to the project's conventions (@pxref{Invoking guix style})."
  1402. msgstr "运行@code{guix lint @var{软件包}},@var{软件包}是新添加的或修改过的软件包的名字,修复它报告的错误(@pxref{Invoking guix lint})。"
  1403. #. type: enumerate
  1404. #: guix-git/doc/contributing.texi:1091
  1405. msgid "Make sure the package builds on your platform, using @code{guix build @var{package}}."
  1406. msgstr "用@code{guix build @var{软件包}}命令确保这个软件包可以在你的平台上构建。"
  1407. #. type: enumerate
  1408. #: guix-git/doc/contributing.texi:1099
  1409. #, fuzzy
  1410. #| msgid "We recommend you also try building the package on other supported platforms. As you may not have access to actual hardware platforms, we recommend using the @code{qemu-binfmt-service-type} to emulate them. In order to enable it, add the following service to the list of services in your @code{operating-system} configuration:"
  1411. 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:"
  1412. msgstr "我们建议你同时尝试在别的支持的平台上构建这个软件包。你可能没有别的平台的真实的硬件,我们推荐使用@code{qemu-binfmt-service-type}来模拟它们。为了启用这个功能,把下面这个服务添加到你的@code{操作系统}配置的服务列表里:"
  1413. #. type: lisp
  1414. #: guix-git/doc/contributing.texi:1104
  1415. #, fuzzy, no-wrap
  1416. msgid ""
  1417. "(service qemu-binfmt-service-type\n"
  1418. " (qemu-binfmt-configuration\n"
  1419. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))))\n"
  1420. msgstr ""
  1421. "(service qemu-binfmt-service-type\n"
  1422. " (qemu-binfmt-configuration\n"
  1423. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  1424. " (guix-support? #t)))\n"
  1425. #. type: enumerate
  1426. #: guix-git/doc/contributing.texi:1107
  1427. msgid "Then reconfigure your system."
  1428. msgstr "然后重新配置你的系统。"
  1429. #. type: enumerate
  1430. #: guix-git/doc/contributing.texi:1112
  1431. #, fuzzy
  1432. #| msgid "You can then build packages for different platforms by specifying the @code{--system} option. For example, to build the \"hello\" package for the armhf, aarch64, or mips64 architectures, you would run the following commands, respectively:"
  1433. 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:"
  1434. msgstr "你之后可以用@code{--system}参数为不同的平台构建软件包。例如,为armhf,aarch64,或mips64架构构建\"hello\"软件包,你可以依次运行如下的命令:"
  1435. #. type: example
  1436. #: guix-git/doc/contributing.texi:1115
  1437. #, fuzzy, no-wrap
  1438. msgid ""
  1439. "guix build --system=armhf-linux --rounds=2 hello\n"
  1440. "guix build --system=aarch64-linux --rounds=2 hello\n"
  1441. msgstr ""
  1442. "guix build --system=armhf-linux --rounds=2 hello\n"
  1443. "guix build --system=aarch64-linux --rounds=2 hello\n"
  1444. "guix build --system=mips64el-linux --rounds=2 hello\n"
  1445. #. type: cindex
  1446. #: guix-git/doc/contributing.texi:1118
  1447. #, no-wrap
  1448. msgid "bundling"
  1449. msgstr "构建"
  1450. #. type: enumerate
  1451. #: guix-git/doc/contributing.texi:1121
  1452. msgid "Make sure the package does not use bundled copies of software already available as separate packages."
  1453. msgstr "请确保软件包里不捆绑出现已经被打过包的软件的副本。"
  1454. #. type: enumerate
  1455. #: guix-git/doc/contributing.texi:1130
  1456. 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."
  1457. msgstr "有时,软件包为了方便用户,捆绑了依赖库的源代码。然而,当依赖库在发行版里已经存在时,做为一个发行版,我们希望确保这些软件包使用发行版里已有的副本。这提高资源使用率(依赖库只构建一次,存储一份),并且使发行版更容易管理,如仅在一个地方对某个软件包进行安全更新就可以影响整个系统--捆绑软件会妨碍这么做。"
  1458. #. type: enumerate
  1459. #: guix-git/doc/contributing.texi:1139
  1460. #, fuzzy
  1461. 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."
  1462. msgstr "看一下@command{guix size}(@pxref{Invoking guix size})的分析报告。这会让你注意到对其它软件包无意中的引用。它也可以帮助决定是否要把一个软件包分割成几个输出(@pxref{有多个输出的软件包}),以及需要使用哪些可选的依赖。特别地,避免把@code{texlive}添加为依赖:因为它太大了,请使用@code{texlive-tiny}或@code{texlive-union}代替它。"
  1463. #. type: enumerate
  1464. #: guix-git/doc/contributing.texi:1144
  1465. #, fuzzy
  1466. #| 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})."
  1467. 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})."
  1468. msgstr "对于重要的更改,确保依赖它的软件包没有受到影响。@code{guix refresh --list-dependent @var{软件包}}会帮你检查(@pxref{Invoking guix refresh})。"
  1469. #. type: cindex
  1470. #: guix-git/doc/contributing.texi:1146
  1471. #, no-wrap
  1472. msgid "branching strategy"
  1473. msgstr "分支策略"
  1474. #. type: cindex
  1475. #: guix-git/doc/contributing.texi:1147
  1476. #, no-wrap
  1477. msgid "rebuild scheduling strategy"
  1478. msgstr "重新构建的调度策略"
  1479. #. type: enumerate
  1480. #: guix-git/doc/contributing.texi:1150
  1481. msgid "Depending on the number of dependent packages and thus the amount of rebuilding induced, commits go to different branches, along these lines:"
  1482. msgstr "取决于受影响的软件包的数量,即需要重新构建的数量,commit需要被提交到不同的分支,具体如下:"
  1483. #. type: item
  1484. #: guix-git/doc/contributing.texi:1152
  1485. #, no-wrap
  1486. msgid "300 dependent packages or less"
  1487. msgstr "300个或更少的受影响的软件包"
  1488. #. type: table
  1489. #: guix-git/doc/contributing.texi:1154
  1490. msgid "@code{master} branch (non-disruptive changes)."
  1491. msgstr "@code{master}分支(非破坏性的更改)。"
  1492. #. type: item
  1493. #: guix-git/doc/contributing.texi:1155
  1494. #, no-wrap
  1495. msgid "between 300 and 1,800 dependent packages"
  1496. msgstr "300 至 1800 个受影响的软件包"
  1497. #. type: table
  1498. #: guix-git/doc/contributing.texi:1161
  1499. #, fuzzy
  1500. 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."
  1501. msgstr "@code{staging}分支(非破坏性的更改)。这个分支每隔大约3周会被合并进@code{master}。对某个主题的更改(如对GNOME系列的更新)可以放进一个特定的分支(如@code{gnome-updates})。"
  1502. #. type: item
  1503. #: guix-git/doc/contributing.texi:1162
  1504. #, no-wrap
  1505. msgid "more than 1,800 dependent packages"
  1506. msgstr "超过 1800 个受影响的软件包"
  1507. #. type: table
  1508. #: guix-git/doc/contributing.texi:1167
  1509. #, fuzzy
  1510. 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."
  1511. msgstr "@code{core-updates}分支(可能含有重要的或破坏性的更改)。这个分支每隔大约2.5个月会被合并进@code{master}。"
  1512. #. type: enumerate
  1513. #: guix-git/doc/contributing.texi:1174
  1514. #, fuzzy
  1515. #| 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."
  1516. 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."
  1517. msgstr "所有这些分支都@uref{@value{SUBSTITUTE-URL}, 被构建农场跟踪},并且当一切都被顺利构建时合并进@code{master}。这使我们在影响到用户之前就能改正问题,并且缩小没有准备好预构建的二进制包的窗口期。"
  1518. #. type: enumerate
  1519. #: guix-git/doc/contributing.texi:1183
  1520. 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."
  1521. msgstr ""
  1522. #. type: cindex
  1523. #: guix-git/doc/contributing.texi:1185
  1524. #, no-wrap
  1525. msgid "determinism, of build processes"
  1526. msgstr "构建过程的确定性"
  1527. #. type: cindex
  1528. #: guix-git/doc/contributing.texi:1186
  1529. #, no-wrap
  1530. msgid "reproducible builds, checking"
  1531. msgstr "检查可复现的构建"
  1532. #. type: enumerate
  1533. #: guix-git/doc/contributing.texi:1190
  1534. 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."
  1535. msgstr "检查软件包的构建过程是不是确定性的。这通常意味着检查对软件包的独立构建是否能得到每一个比特都完全相同的结果。"
  1536. #. type: enumerate
  1537. #: guix-git/doc/contributing.texi:1193
  1538. 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}):"
  1539. msgstr "为此,一个简单的做法是在你的机器上多次构建同一个软件包(@pxref{Invoking guix build}):"
  1540. #. type: example
  1541. #: guix-git/doc/contributing.texi:1196
  1542. #, no-wrap
  1543. msgid "guix build --rounds=2 my-package\n"
  1544. msgstr "guix build --rounds=2 <我的软件包>\n"
  1545. #. type: enumerate
  1546. #: guix-git/doc/contributing.texi:1200
  1547. msgid "This is enough to catch a class of common non-determinism issues, such as timestamps or randomly-generated output in the build result."
  1548. msgstr "这足以查出一批普通的不确定性问题,如构建结果里存在时间戳或随机生成的输出。"
  1549. #. type: enumerate
  1550. #: guix-git/doc/contributing.texi:1210
  1551. #, fuzzy
  1552. #| msgid "Another option is to use @command{guix challenge} (@pxref{Invoking guix challenge}). You may run it once the package has been committed and built by @code{@value{SUBSTITUTE-SERVER}} to check whether it obtains the same result as you did. Better yet: Find another machine that can build it and run @command{guix publish}. Since the remote build machine is likely different from yours, this can catch non-determinism issues related to the hardware---e.g., use of different instruction set extensions---or to the operating system kernel---e.g., reliance on @code{uname} or @file{/proc} files."
  1553. 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."
  1554. msgstr "另一个选择是使用@command{guix challenge}(@pxref{Invoking guix challenge})。当软件包被提交并且被@code{@value{SUBSTITUTE-SERVER}}构建之后,你可以运行这个命令检查你是否得到相同的构建结果。更好的:找另一台可以构建的机器,运行@command{guix publish}。由于远程的构建机器很可能和你的机器不同,这可以捕捉到由硬件不同引起的不确定性问题--如,使用不同的指令集--或不同操作系统内核引起的问题--如,对@code{uname}或@file{/proc}文件的依赖。"
  1555. #. type: enumerate
  1556. #: guix-git/doc/contributing.texi:1216
  1557. 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."
  1558. msgstr "在编写文档时,请用性别中立的词语指代人,如@uref{https://en.wikipedia.org/wiki/Singular_they, “他”@comma{} “他的”},等。"
  1559. #. type: enumerate
  1560. #: guix-git/doc/contributing.texi:1220
  1561. msgid "Verify that your patch contains only one set of related changes. Bundling unrelated changes together makes reviewing harder and slower."
  1562. msgstr "检查你的补丁只包含一些相关的更改。把不相关的更改捆绑在一起会让评审更困难和更慢。"
  1563. #. type: enumerate
  1564. #: guix-git/doc/contributing.texi:1223
  1565. msgid "Examples of unrelated changes include the addition of several packages, or a package update along with fixes to that package."
  1566. msgstr "不相关的更改的例子有:同时新增多个软件包,或更新软件包同时修补这个软件包。"
  1567. #. type: enumerate
  1568. #: guix-git/doc/contributing.texi:1228
  1569. #, fuzzy
  1570. #| 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})."
  1571. msgid "Please follow our code formatting rules, possibly running @command{guix style} script to do that automatically for you (@pxref{Formatting Code})."
  1572. msgstr "请遵守我们的代码格式规范,最好运行@command{etc/indent-code.el}脚本以自动为你格式化(@pxref{Formatting Code})。"
  1573. #. type: enumerate
  1574. #: guix-git/doc/contributing.texi:1236
  1575. 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."
  1576. msgstr "当可能时,请在源URL里使用镜像@pxref{Invoking guix download}。使用可靠的而不是生成的URL。例如,GitHub的下载文件每次生成时不一定是相同的,所以这时最好克隆仓库。不要在URL里使用@command{name}变量:这没有什么用,而且如果名字变了,URL很可能就错了。"
  1577. #. type: enumerate
  1578. #: guix-git/doc/contributing.texi:1240
  1579. msgid "Check if Guix builds (@pxref{Building from Git}) and address the warnings, especially those about use of undefined symbols."
  1580. msgstr ""
  1581. #. type: enumerate
  1582. #: guix-git/doc/contributing.texi:1243
  1583. msgid "Make sure your changes do not break Guix and simulate a @code{guix pull} with:"
  1584. msgstr ""
  1585. #. type: example
  1586. #: guix-git/doc/contributing.texi:1245
  1587. #, no-wrap
  1588. msgid "guix pull --url=/path/to/your/checkout --profile=/tmp/guix.master\n"
  1589. msgstr ""
  1590. #. type: Plain text
  1591. #: guix-git/doc/contributing.texi:1258
  1592. #, fuzzy
  1593. 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."
  1594. msgstr "在提交补丁到邮件列表时,使用@samp{[PATCH] @dots{}}做为主题。你可以使用你的邮件客户端或者@command{git send-email}命令(@pxref{Sending a Patch Series})。我们倾向于接收纯文本的邮件,无论是在正文里还是在MIME附件里。建议你注意你的邮件客户端是否会自动修改换行或缩进,这可能会损坏补丁。"
  1595. #. type: Plain text
  1596. #: guix-git/doc/contributing.texi:1263
  1597. 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."
  1598. msgstr ""
  1599. #. type: Plain text
  1600. #: guix-git/doc/contributing.texi:1266
  1601. msgid "When a bug is resolved, please close the thread by sending an email to @email{@var{NNN}-done@@debbugs.gnu.org}."
  1602. msgstr "当一个bug被修复时,请通过向@email{@var{NNN}-done@@debbugs.gnu.org}发邮件的方式关闭thread。"
  1603. #. type: subsection
  1604. #: guix-git/doc/contributing.texi:1267 guix-git/doc/contributing.texi:1268
  1605. #, fuzzy, no-wrap
  1606. #| msgid "Configuring the boot loader."
  1607. msgid "Configuring Git"
  1608. msgstr "设置引导程序。"
  1609. #. type: cindex
  1610. #: guix-git/doc/contributing.texi:1269
  1611. #, fuzzy, no-wrap
  1612. msgid "git configuration"
  1613. msgstr "系统配置"
  1614. #. type: code{#1}
  1615. #: guix-git/doc/contributing.texi:1271 guix-git/doc/contributing.texi:1306
  1616. #, no-wrap
  1617. msgid "git send-email"
  1618. msgstr "git send-email"
  1619. #. type: Plain text
  1620. #: guix-git/doc/contributing.texi:1279
  1621. 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}."
  1622. msgstr ""
  1623. #. type: Plain text
  1624. #: guix-git/doc/contributing.texi:1285
  1625. 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:"
  1626. msgstr ""
  1627. #. type: example
  1628. #: guix-git/doc/contributing.texi:1288
  1629. #, no-wrap
  1630. msgid "git config --local include.path ../etc/git/gitconfig\n"
  1631. msgstr ""
  1632. #. type: Plain text
  1633. #: guix-git/doc/contributing.texi:1292
  1634. msgid "From then on, any changes to @file{etc/git/gitconfig} would automatically take effect."
  1635. msgstr ""
  1636. #. type: Plain text
  1637. #: guix-git/doc/contributing.texi:1297
  1638. 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}:"
  1639. msgstr ""
  1640. #. type: example
  1641. #: guix-git/doc/contributing.texi:1301
  1642. #, no-wrap
  1643. msgid ""
  1644. "git config --local format.thread shallow\n"
  1645. "git config --local sendemail.thread no\n"
  1646. msgstr ""
  1647. #. type: anchor{#1}
  1648. #: guix-git/doc/contributing.texi:1303 guix-git/doc/contributing.texi:1305
  1649. #, no-wrap
  1650. msgid "Sending a Patch Series"
  1651. msgstr "发送补丁系列"
  1652. #. type: cindex
  1653. #: guix-git/doc/contributing.texi:1305
  1654. #, no-wrap
  1655. msgid "patch series"
  1656. msgstr "补丁系列"
  1657. #. type: Plain text
  1658. #: guix-git/doc/contributing.texi:1316
  1659. #, fuzzy
  1660. 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}."
  1661. msgstr "在发送补丁系列时(如,使用@code{git send-email}),请先向@email{guix-patches@@gnu.org}发送一封邮件,再把后续的补丁发送到@email{@var{NNN}@@debbugs.gnu.org},以确保他们被归在一起。见@uref{https://debbugs.gnu.org/Advanced.html, Debbugs文档}以了解更多信息。"
  1662. #. type: Plain text
  1663. #: guix-git/doc/contributing.texi:1322
  1664. msgid "This section describes how the Guix project tracks its bug reports and patch submissions."
  1665. msgstr ""
  1666. #. type: subsection
  1667. #: guix-git/doc/contributing.texi:1327 guix-git/doc/contributing.texi:1329
  1668. #: guix-git/doc/contributing.texi:1330
  1669. #, no-wrap
  1670. msgid "The Issue Tracker"
  1671. msgstr ""
  1672. #. type: menuentry
  1673. #: guix-git/doc/contributing.texi:1327
  1674. msgid "The official bug and patch tracker."
  1675. msgstr ""
  1676. #. type: subsection
  1677. #: guix-git/doc/contributing.texi:1327 guix-git/doc/contributing.texi:1343
  1678. #: guix-git/doc/contributing.texi:1344
  1679. #, fuzzy, no-wrap
  1680. #| msgid "user interfaces"
  1681. msgid "Debbugs User Interfaces"
  1682. msgstr "用户界面"
  1683. #. type: menuentry
  1684. #: guix-git/doc/contributing.texi:1327
  1685. msgid "Ways to interact with Debbugs."
  1686. msgstr ""
  1687. #. type: subsection
  1688. #: guix-git/doc/contributing.texi:1327 guix-git/doc/contributing.texi:1383
  1689. #: guix-git/doc/contributing.texi:1384
  1690. #, no-wrap
  1691. msgid "Debbugs Usertags"
  1692. msgstr ""
  1693. #. type: menuentry
  1694. #: guix-git/doc/contributing.texi:1327
  1695. msgid "Tag reports with custom labels."
  1696. msgstr ""
  1697. #. type: cindex
  1698. #: guix-git/doc/contributing.texi:1332
  1699. #, no-wrap
  1700. msgid "bug reports, tracking"
  1701. msgstr ""
  1702. #. type: cindex
  1703. #: guix-git/doc/contributing.texi:1333
  1704. #, no-wrap
  1705. msgid "patch submissions, tracking"
  1706. msgstr ""
  1707. #. type: cindex
  1708. #: guix-git/doc/contributing.texi:1334
  1709. #, no-wrap
  1710. msgid "issue tracking"
  1711. msgstr ""
  1712. #. type: cindex
  1713. #: guix-git/doc/contributing.texi:1335
  1714. #, no-wrap
  1715. msgid "Debbugs, issue tracking system"
  1716. msgstr ""
  1717. #. type: Plain text
  1718. #: guix-git/doc/contributing.texi:1342
  1719. 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})."
  1720. msgstr ""
  1721. #. type: Plain text
  1722. #: guix-git/doc/contributing.texi:1348
  1723. msgid "A web interface (actually @emph{two} web interfaces!) are available to browse issues:"
  1724. msgstr ""
  1725. #. type: itemize
  1726. #: guix-git/doc/contributing.texi:1357
  1727. 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;"
  1728. msgstr ""
  1729. #. type: itemize
  1730. #: guix-git/doc/contributing.texi:1359
  1731. #, fuzzy
  1732. msgid "@url{https://bugs.gnu.org/guix} lists bug reports;"
  1733. msgstr "@url{https://gnupg.org/, GNU libgcrypt};"
  1734. #. type: itemize
  1735. #: guix-git/doc/contributing.texi:1361
  1736. msgid "@url{https://bugs.gnu.org/guix-patches} lists patch submissions."
  1737. msgstr ""
  1738. #. type: Plain text
  1739. #: guix-git/doc/contributing.texi:1366
  1740. 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}}."
  1741. msgstr ""
  1742. #. type: Plain text
  1743. #: guix-git/doc/contributing.texi:1369
  1744. msgid "If you use Emacs, you may find it more convenient to interact with issues using @file{debbugs.el}, which you can install with:"
  1745. msgstr ""
  1746. #. type: example
  1747. #: guix-git/doc/contributing.texi:1372
  1748. #, fuzzy, no-wrap
  1749. msgid "guix install emacs-debbugs\n"
  1750. msgstr "guix install emacs-guix\n"
  1751. #. type: Plain text
  1752. #: guix-git/doc/contributing.texi:1375
  1753. msgid "For example, to list all open issues on @code{guix-patches}, hit:"
  1754. msgstr ""
  1755. #. type: example
  1756. #: guix-git/doc/contributing.texi:1378
  1757. #, no-wrap
  1758. msgid "@kbd{C-u} @kbd{M-x} debbugs-gnu @kbd{RET} @kbd{RET} guix-patches @kbd{RET} n y\n"
  1759. msgstr ""
  1760. #. type: Plain text
  1761. #: guix-git/doc/contributing.texi:1382
  1762. #, fuzzy
  1763. msgid "@xref{Top,,, debbugs-ug, Debbugs User Guide}, for more information on this nifty tool!"
  1764. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  1765. #. type: cindex
  1766. #: guix-git/doc/contributing.texi:1386
  1767. #, no-wrap
  1768. msgid "usertags, for debbugs"
  1769. msgstr ""
  1770. #. type: cindex
  1771. #: guix-git/doc/contributing.texi:1387
  1772. #, no-wrap
  1773. msgid "Debbugs usertags"
  1774. msgstr ""
  1775. #. type: Plain text
  1776. #: guix-git/doc/contributing.texi:1393
  1777. 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.}."
  1778. msgstr ""
  1779. #. type: Plain text
  1780. #: guix-git/doc/contributing.texi:1399
  1781. 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}."
  1782. msgstr ""
  1783. #. type: Plain text
  1784. #: guix-git/doc/contributing.texi:1403
  1785. 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."
  1786. msgstr ""
  1787. #. type: Plain text
  1788. #: guix-git/doc/contributing.texi:1408
  1789. 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:"
  1790. msgstr ""
  1791. #. type: item
  1792. #: guix-git/doc/contributing.texi:1411 guix-git/doc/guix.texi:559
  1793. #, fuzzy, no-wrap
  1794. msgid "powerpc64le-linux"
  1795. msgstr "aarch64-linux"
  1796. #. type: table
  1797. #: guix-git/doc/contributing.texi:1419
  1798. 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."
  1799. msgstr ""
  1800. #. #-#-#-#-# contributing.pot (guix manual checkout) #-#-#-#-#
  1801. #. type: item
  1802. #. #-#-#-#-# guix.pot (guix manual checkout) #-#-#-#-#
  1803. #. type: cindex
  1804. #: guix-git/doc/contributing.texi:1420 guix-git/doc/guix.texi:3105
  1805. #: guix-git/doc/guix.texi:4811
  1806. #, no-wrap
  1807. msgid "reproducibility"
  1808. msgstr ""
  1809. #. type: table
  1810. #: guix-git/doc/contributing.texi:1424
  1811. 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."
  1812. msgstr ""
  1813. #. type: Plain text
  1814. #: guix-git/doc/contributing.texi:1431
  1815. 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."
  1816. msgstr ""
  1817. #. type: cindex
  1818. #: guix-git/doc/contributing.texi:1435
  1819. #, no-wrap
  1820. msgid "commit access, for developers"
  1821. msgstr ""
  1822. #. type: Plain text
  1823. #: guix-git/doc/contributing.texi:1446
  1824. msgid "Everyone can contribute to Guix without having commit access (@pxref{Submitting Patches}). However, for frequent contributors, having write access to the repository can be convenient. As a rule of thumb, a contributor should have accumulated fifty (50) reviewed commits to be considered as a committer and have sustained their activity in the project for at least 6 months. This ensures enough interactions with the contributor, which is essential for mentoring and assessing whether they are ready to become a committer. Commit access should not be thought of as a ``badge of honor'' but rather as a responsibility a contributor is willing to take to help the project."
  1825. msgstr ""
  1826. #. type: Plain text
  1827. #: guix-git/doc/contributing.texi:1450
  1828. 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."
  1829. msgstr ""
  1830. #. type: subsection
  1831. #: guix-git/doc/contributing.texi:1451
  1832. #, fuzzy, no-wrap
  1833. #| msgid "Commit Access"
  1834. msgid "Applying for Commit Access"
  1835. msgstr "提交权利"
  1836. #. type: Plain text
  1837. #: guix-git/doc/contributing.texi:1455
  1838. msgid "When you deem it necessary, consider applying for commit access by following these steps:"
  1839. msgstr ""
  1840. #. type: enumerate
  1841. #: guix-git/doc/contributing.texi:1464
  1842. 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."
  1843. msgstr ""
  1844. #. type: enumerate
  1845. #: guix-git/doc/contributing.texi:1470
  1846. 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''."
  1847. msgstr ""
  1848. #. type: enumerate
  1849. #: guix-git/doc/contributing.texi:1477
  1850. 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."
  1851. msgstr ""
  1852. #. type: enumerate
  1853. #: guix-git/doc/contributing.texi:1483
  1854. 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}):"
  1855. msgstr ""
  1856. #. type: example
  1857. #: guix-git/doc/contributing.texi:1486
  1858. #, no-wrap
  1859. msgid "digest-algo sha512\n"
  1860. msgstr ""
  1861. #. type: enumerate
  1862. #: guix-git/doc/contributing.texi:1491
  1863. msgid "Maintainers ultimately decide whether to grant you commit access, usually following your referrals' recommendation."
  1864. msgstr ""
  1865. #. type: cindex
  1866. #: guix-git/doc/contributing.texi:1493
  1867. #, no-wrap
  1868. msgid "OpenPGP, signed commits"
  1869. msgstr ""
  1870. #. type: enumerate
  1871. #: guix-git/doc/contributing.texi:1498
  1872. 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."
  1873. msgstr ""
  1874. #. type: quotation
  1875. #: guix-git/doc/contributing.texi:1499 guix-git/doc/guix.texi:18473
  1876. #, no-wrap
  1877. msgid "Important"
  1878. msgstr ""
  1879. #. type: quotation
  1880. #: guix-git/doc/contributing.texi:1501
  1881. msgid "Before you can push for the first time, maintainers must:"
  1882. msgstr ""
  1883. #. type: enumerate
  1884. #: guix-git/doc/contributing.texi:1505
  1885. msgid "add your OpenPGP key to the @code{keyring} branch;"
  1886. msgstr ""
  1887. #. type: enumerate
  1888. #: guix-git/doc/contributing.texi:1508
  1889. msgid "add your OpenPGP fingerprint to the @file{.guix-authorizations} file of the branch(es) you will commit to."
  1890. msgstr ""
  1891. #. type: enumerate
  1892. #: guix-git/doc/contributing.texi:1513
  1893. msgid "Make sure to read the rest of this section and... profit!"
  1894. msgstr ""
  1895. #. type: quotation
  1896. #: guix-git/doc/contributing.texi:1519
  1897. 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!"
  1898. msgstr ""
  1899. #. type: quotation
  1900. #: guix-git/doc/contributing.texi:1523
  1901. 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!"
  1902. msgstr ""
  1903. #. type: Plain text
  1904. #: guix-git/doc/contributing.texi:1530
  1905. 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:"
  1906. msgstr ""
  1907. #. type: example
  1908. #: guix-git/doc/contributing.texi:1533
  1909. #, no-wrap
  1910. msgid ""
  1911. "git config commit.gpgsign true\n"
  1912. "\n"
  1913. msgstr ""
  1914. #. type: example
  1915. #: guix-git/doc/contributing.texi:1536
  1916. #, no-wrap
  1917. msgid ""
  1918. "# Substitute the fingerprint of your public PGP key.\n"
  1919. "git config user.signingkey CABBA6EA1DC0FF33\n"
  1920. msgstr ""
  1921. #. type: Plain text
  1922. #: guix-git/doc/contributing.texi:1541
  1923. 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}:"
  1924. msgstr ""
  1925. #. type: example
  1926. #: guix-git/doc/contributing.texi:1544
  1927. #, no-wrap
  1928. msgid "cp etc/git/pre-push .git/hooks/pre-push\n"
  1929. msgstr ""
  1930. #. type: subsection
  1931. #: guix-git/doc/contributing.texi:1546
  1932. #, fuzzy, no-wrap
  1933. #| msgid "Commit Access"
  1934. msgid "Commit Policy"
  1935. msgstr "提交权利"
  1936. #. type: Plain text
  1937. #: guix-git/doc/contributing.texi:1551
  1938. 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})."
  1939. msgstr ""
  1940. #. type: Plain text
  1941. #: guix-git/doc/contributing.texi:1556
  1942. 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})."
  1943. msgstr ""
  1944. #. type: Plain text
  1945. #: guix-git/doc/contributing.texi:1565
  1946. 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}."
  1947. msgstr ""
  1948. #. type: Plain text
  1949. #: guix-git/doc/contributing.texi:1570
  1950. 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."
  1951. msgstr ""
  1952. #. type: Plain text
  1953. #: guix-git/doc/contributing.texi:1574
  1954. 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:"
  1955. msgstr ""
  1956. #. type: example
  1957. #: guix-git/doc/contributing.texi:1577
  1958. #, fuzzy, no-wrap
  1959. msgid "make check-channel-news\n"
  1960. msgstr "make check\n"
  1961. #. type: Plain text
  1962. #: guix-git/doc/contributing.texi:1583
  1963. 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."
  1964. msgstr ""
  1965. #. type: Plain text
  1966. #: guix-git/doc/contributing.texi:1586
  1967. msgid "That last part is subject to being adjusted, allowing individuals to commit directly on non-controversial changes on parts they’re familiar with."
  1968. msgstr ""
  1969. #. type: subsection
  1970. #: guix-git/doc/contributing.texi:1587
  1971. #, no-wrap
  1972. msgid "Addressing Issues"
  1973. msgstr ""
  1974. #. type: Plain text
  1975. #: guix-git/doc/contributing.texi:1598
  1976. 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."
  1977. msgstr ""
  1978. #. type: Plain text
  1979. #: guix-git/doc/contributing.texi:1603
  1980. 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."
  1981. msgstr ""
  1982. #. type: cindex
  1983. #: guix-git/doc/contributing.texi:1604
  1984. #, no-wrap
  1985. msgid "reverting commits"
  1986. msgstr ""
  1987. #. type: Plain text
  1988. #: guix-git/doc/contributing.texi:1610
  1989. 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."
  1990. msgstr ""
  1991. #. type: Plain text
  1992. #: guix-git/doc/contributing.texi:1616
  1993. 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."
  1994. msgstr ""
  1995. #. type: Plain text
  1996. #: guix-git/doc/contributing.texi:1625
  1997. 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."
  1998. msgstr ""
  1999. #. type: subsection
  2000. #: guix-git/doc/contributing.texi:1626
  2001. #, fuzzy, no-wrap
  2002. #| msgid "Log Rotation"
  2003. msgid "Commit Revocation"
  2004. msgstr "日志轮替"
  2005. #. type: Plain text
  2006. #: guix-git/doc/contributing.texi:1633
  2007. 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."
  2008. msgstr ""
  2009. #. type: Plain text
  2010. #: guix-git/doc/contributing.texi:1643
  2011. 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:"
  2012. msgstr ""
  2013. #. type: item
  2014. #: guix-git/doc/contributing.texi:1645
  2015. #, no-wrap
  2016. msgid "repeated violation of the commit policy stated above;"
  2017. msgstr ""
  2018. #. type: item
  2019. #: guix-git/doc/contributing.texi:1646
  2020. #, no-wrap
  2021. msgid "repeated failure to take peer criticism into account;"
  2022. msgstr ""
  2023. #. type: item
  2024. #: guix-git/doc/contributing.texi:1647
  2025. #, no-wrap
  2026. msgid "breaching trust through a series of grave incidents."
  2027. msgstr ""
  2028. #. type: Plain text
  2029. #: guix-git/doc/contributing.texi:1654
  2030. 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."
  2031. msgstr ""
  2032. #. type: subsection
  2033. #: guix-git/doc/contributing.texi:1655
  2034. #, no-wrap
  2035. msgid "Helping Out"
  2036. msgstr ""
  2037. #. type: Plain text
  2038. #: guix-git/doc/contributing.texi:1662
  2039. 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!"
  2040. msgstr ""
  2041. #. type: cindex
  2042. #: guix-git/doc/contributing.texi:1666
  2043. #, fuzzy, no-wrap
  2044. msgid "update-guix-package, updating the guix package"
  2045. msgstr "guix package:调用guix package"
  2046. #. type: Plain text
  2047. #: guix-git/doc/contributing.texi:1672
  2048. 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:"
  2049. msgstr ""
  2050. #. type: example
  2051. #: guix-git/doc/contributing.texi:1675
  2052. #, no-wrap
  2053. msgid "make update-guix-package\n"
  2054. msgstr ""
  2055. #. type: Plain text
  2056. #: guix-git/doc/contributing.texi:1682
  2057. 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."
  2058. msgstr ""
  2059. #. type: Plain text
  2060. #: guix-git/doc/contributing.texi:1686
  2061. 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:"
  2062. msgstr ""
  2063. #. type: example
  2064. #: guix-git/doc/contributing.texi:1689
  2065. #, fuzzy, no-wrap
  2066. msgid "./pre-inst-env guix build guix\n"
  2067. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  2068. #. type: Plain text
  2069. #: guix-git/doc/contributing.texi:1694
  2070. 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."
  2071. msgstr ""
  2072. #. type: Plain text
  2073. #: guix-git/doc/contributing.texi:1699
  2074. 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."
  2075. msgstr ""
  2076. #. type: cindex
  2077. #: guix-git/doc/contributing.texi:1700
  2078. #, fuzzy, no-wrap
  2079. #| msgid "isolation"
  2080. msgid "translation"
  2081. msgstr "隔离"
  2082. #. type: cindex
  2083. #: guix-git/doc/contributing.texi:1701
  2084. #, no-wrap
  2085. msgid "l10n"
  2086. msgstr ""
  2087. #. type: cindex
  2088. #: guix-git/doc/contributing.texi:1702
  2089. #, no-wrap
  2090. msgid "i18n"
  2091. msgstr ""
  2092. #. type: cindex
  2093. #: guix-git/doc/contributing.texi:1703
  2094. #, no-wrap
  2095. msgid "native language support"
  2096. msgstr ""
  2097. #. type: Plain text
  2098. #: guix-git/doc/contributing.texi:1713
  2099. 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!"
  2100. msgstr ""
  2101. #. type: Plain text
  2102. #: guix-git/doc/contributing.texi:1719
  2103. 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."
  2104. msgstr ""
  2105. #. type: Plain text
  2106. #: guix-git/doc/contributing.texi:1726
  2107. 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."
  2108. msgstr ""
  2109. #. type: Plain text
  2110. #: guix-git/doc/contributing.texi:1731
  2111. 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}."
  2112. msgstr ""
  2113. #. type: Plain text
  2114. #: guix-git/doc/contributing.texi:1733
  2115. msgid "Guix has five components hosted on Weblate."
  2116. msgstr ""
  2117. #. type: item
  2118. #: guix-git/doc/contributing.texi:1735
  2119. #, no-wrap
  2120. msgid "@code{guix} contains all the strings from the Guix software (the"
  2121. msgstr ""
  2122. #. type: itemize
  2123. #: guix-git/doc/contributing.texi:1737
  2124. msgid "guided system installer, the package manager, etc), excluding packages."
  2125. msgstr ""
  2126. #. type: item
  2127. #: guix-git/doc/contributing.texi:1737
  2128. #, no-wrap
  2129. msgid "@code{packages} contains the synopsis (single-sentence description"
  2130. msgstr ""
  2131. #. type: itemize
  2132. #: guix-git/doc/contributing.texi:1739
  2133. msgid "of a package) and description (longer description) of packages in Guix."
  2134. msgstr ""
  2135. #. type: item
  2136. #: guix-git/doc/contributing.texi:1739
  2137. #, no-wrap
  2138. msgid "@code{website} contains the official Guix website, except for"
  2139. msgstr ""
  2140. #. type: itemize
  2141. #: guix-git/doc/contributing.texi:1741
  2142. msgid "blog posts and multimedia content."
  2143. msgstr ""
  2144. #. type: item
  2145. #: guix-git/doc/contributing.texi:1741
  2146. #, no-wrap
  2147. msgid "@code{documentation-manual} corresponds to this manual."
  2148. msgstr ""
  2149. #. type: item
  2150. #: guix-git/doc/contributing.texi:1742
  2151. #, no-wrap
  2152. msgid "@code{documentation-cookbook} is the component for the cookbook."
  2153. msgstr ""
  2154. #. type: subsubheading
  2155. #: guix-git/doc/contributing.texi:1745
  2156. #, no-wrap
  2157. msgid "General Directions"
  2158. msgstr ""
  2159. #. type: Plain text
  2160. #: guix-git/doc/contributing.texi:1753
  2161. 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."
  2162. msgstr ""
  2163. #. type: Plain text
  2164. #: guix-git/doc/contributing.texi:1758
  2165. 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."
  2166. msgstr ""
  2167. #. type: Plain text
  2168. #: guix-git/doc/contributing.texi:1769
  2169. 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."
  2170. msgstr ""
  2171. #. type: Plain text
  2172. #: guix-git/doc/contributing.texi:1774
  2173. 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."
  2174. msgstr ""
  2175. #. type: subsubheading
  2176. #: guix-git/doc/contributing.texi:1775
  2177. #, no-wrap
  2178. msgid "Translation Components"
  2179. msgstr ""
  2180. #. type: Plain text
  2181. #: guix-git/doc/contributing.texi:1780
  2182. 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!"
  2183. msgstr ""
  2184. #. type: item
  2185. #: guix-git/doc/contributing.texi:1782 guix-git/doc/guix.texi:9840
  2186. #, no-wrap
  2187. msgid "guix"
  2188. msgstr ""
  2189. #. type: table
  2190. #: guix-git/doc/contributing.texi:1787
  2191. 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."
  2192. msgstr ""
  2193. #. type: table
  2194. #: guix-git/doc/contributing.texi:1796
  2195. 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."
  2196. msgstr ""
  2197. #. type: table
  2198. #: guix-git/doc/contributing.texi:1800
  2199. 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."
  2200. msgstr ""
  2201. #. type: table
  2202. #: guix-git/doc/contributing.texi:1808
  2203. 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."
  2204. msgstr ""
  2205. #. #-#-#-#-# contributing.pot (guix manual checkout) #-#-#-#-#
  2206. #. type: item
  2207. #. #-#-#-#-# guix.pot (guix manual checkout) #-#-#-#-#
  2208. #. type: cindex
  2209. #: guix-git/doc/contributing.texi:1809 guix-git/doc/guix.texi:3023
  2210. #, no-wrap
  2211. msgid "packages"
  2212. msgstr ""
  2213. #. type: table
  2214. #: guix-git/doc/contributing.texi:1814
  2215. 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."
  2216. msgstr ""
  2217. #. type: table
  2218. #: guix-git/doc/contributing.texi:1823
  2219. 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})."
  2220. msgstr ""
  2221. #. type: item
  2222. #: guix-git/doc/contributing.texi:1824
  2223. #, no-wrap
  2224. msgid "documentation-manual and documentation-cookbook"
  2225. msgstr ""
  2226. #. type: table
  2227. #: guix-git/doc/contributing.texi:1828
  2228. msgid "The first step to ensure a successful translation of the manual is to find and translate the following strings @emph{first}:"
  2229. msgstr ""
  2230. #. type: item
  2231. #: guix-git/doc/contributing.texi:1830
  2232. #, no-wrap
  2233. msgid "@code{version.texi}: Translate this string as @code{version-xx.texi},"
  2234. msgstr ""
  2235. #. type: itemize
  2236. #: guix-git/doc/contributing.texi:1833
  2237. msgid "where @code{xx} is your language code (the one shown in the URL on weblate)."
  2238. msgstr ""
  2239. #. type: item
  2240. #: guix-git/doc/contributing.texi:1833
  2241. #, no-wrap
  2242. msgid "@code{contributing.texi}: Translate this string as"
  2243. msgstr ""
  2244. #. type: itemize
  2245. #: guix-git/doc/contributing.texi:1835
  2246. msgid "@code{contributing.xx.texi}, where @code{xx} is the same language code."
  2247. msgstr ""
  2248. #. type: item
  2249. #: guix-git/doc/contributing.texi:1835
  2250. #, no-wrap
  2251. msgid "@code{Top}: Do not translate this string, it is important for Texinfo."
  2252. msgstr ""
  2253. #. type: itemize
  2254. #: guix-git/doc/contributing.texi:1838
  2255. 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."
  2256. msgstr ""
  2257. #. type: table
  2258. #: guix-git/doc/contributing.texi:1843
  2259. 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."
  2260. msgstr ""
  2261. #. type: table
  2262. #: guix-git/doc/contributing.texi:1850
  2263. 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."
  2264. msgstr ""
  2265. #. type: table
  2266. #: guix-git/doc/contributing.texi:1858
  2267. 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."
  2268. msgstr ""
  2269. #. type: table
  2270. #: guix-git/doc/contributing.texi:1868
  2271. 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."
  2272. msgstr ""
  2273. #. type: item
  2274. #: guix-git/doc/contributing.texi:1869
  2275. #, fuzzy, no-wrap
  2276. #| msgid "official website"
  2277. msgid "website"
  2278. msgstr "官方网站"
  2279. #. type: table
  2280. #: guix-git/doc/contributing.texi:1876
  2281. 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."
  2282. msgstr ""
  2283. #. type: example
  2284. #: guix-git/doc/contributing.texi:1883
  2285. #, no-wrap
  2286. msgid ""
  2287. "#. TRANSLATORS: Defining Packages is a section name\n"
  2288. "#. in the English (en) manual.\n"
  2289. "#: apps/base/templates/about.scm:64\n"
  2290. "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"
  2291. "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"
  2292. msgstr ""
  2293. #. type: table
  2294. #: guix-git/doc/contributing.texi:1886
  2295. msgid "Note that you need to include the same markups. You cannot skip any."
  2296. msgstr ""
  2297. #. type: Plain text
  2298. #: guix-git/doc/contributing.texi:1894
  2299. 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."
  2300. msgstr ""
  2301. #. type: subsubheading
  2302. #: guix-git/doc/contributing.texi:1895
  2303. #, no-wrap
  2304. msgid "Outside of Weblate"
  2305. msgstr ""
  2306. #. type: Plain text
  2307. #: guix-git/doc/contributing.texi:1898
  2308. msgid "Currently, some parts of Guix cannot be translated on Weblate, help wanted!"
  2309. msgstr ""
  2310. #. type: item
  2311. #: guix-git/doc/contributing.texi:1900
  2312. #, no-wrap
  2313. msgid "@command{guix pull} news can be translated in @file{news.scm}, but is not"
  2314. msgstr ""
  2315. #. type: itemize
  2316. #: guix-git/doc/contributing.texi:1906
  2317. 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."
  2318. msgstr ""
  2319. #. type: item
  2320. #: guix-git/doc/contributing.texi:1906
  2321. #, no-wrap
  2322. msgid "Guix blog posts cannot currently be translated."
  2323. msgstr ""
  2324. #. type: item
  2325. #: guix-git/doc/contributing.texi:1907
  2326. #, no-wrap
  2327. msgid "The installer script (for foreign distributions) is entirely in English."
  2328. msgstr ""
  2329. #. type: item
  2330. #: guix-git/doc/contributing.texi:1908
  2331. #, no-wrap
  2332. msgid "Some of the libraries Guix uses cannot be translated or are translated"
  2333. msgstr ""
  2334. #. type: itemize
  2335. #: guix-git/doc/contributing.texi:1910
  2336. msgid "outside of the Guix project. Guile itself is not internationalized."
  2337. msgstr ""
  2338. #. type: item
  2339. #: guix-git/doc/contributing.texi:1910
  2340. #, no-wrap
  2341. msgid "Other manuals linked from this manual or the cookbook might not be"
  2342. msgstr ""
  2343. #. type: itemize
  2344. #: guix-git/doc/contributing.texi:1912
  2345. msgid "translated."
  2346. msgstr ""
  2347. #. type: subsubheading
  2348. #: guix-git/doc/contributing.texi:1914
  2349. #, no-wrap
  2350. msgid "Translation Infrastructure"
  2351. msgstr ""
  2352. #. type: Plain text
  2353. #: guix-git/doc/contributing.texi:1925
  2354. 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."
  2355. msgstr ""
  2356. #. type: Plain text
  2357. #: guix-git/doc/contributing.texi:1929
  2358. 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."
  2359. msgstr ""
  2360. #. type: Plain text
  2361. #: guix-git/doc/contributing.texi:1935
  2362. 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."
  2363. msgstr ""
  2364. #. type: Plain text
  2365. #: guix-git/doc/contributing.texi:1939
  2366. 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."
  2367. msgstr ""
  2368. #. type: item
  2369. #: guix-git/doc/contributing.texi:1941
  2370. #, no-wrap
  2371. msgid "New po files for the @code{guix} and @code{packages} components must"
  2372. msgstr ""
  2373. #. type: itemize
  2374. #: guix-git/doc/contributing.texi:1944
  2375. msgid "be registered by adding the new language to @file{po/guix/LINGUAS} or @file{po/packages/LINGUAS}."
  2376. msgstr ""
  2377. #. type: item
  2378. #: guix-git/doc/contributing.texi:1944
  2379. #, no-wrap
  2380. msgid "New po files for the @code{documentation-manual} component must be"
  2381. msgstr ""
  2382. #. type: itemize
  2383. #: guix-git/doc/contributing.texi:1950
  2384. 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}."
  2385. msgstr ""
  2386. #. type: item
  2387. #: guix-git/doc/contributing.texi:1950
  2388. #, no-wrap
  2389. msgid "New po files for the @code{documentation-cookbook} component must be"
  2390. msgstr ""
  2391. #. type: itemize
  2392. #: guix-git/doc/contributing.texi:1956
  2393. 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}."
  2394. msgstr ""
  2395. #. type: item
  2396. #: guix-git/doc/contributing.texi:1956
  2397. #, no-wrap
  2398. msgid "New po files for the @code{website} component must be added to the"
  2399. msgstr ""
  2400. #. type: itemize
  2401. #: guix-git/doc/contributing.texi:1961
  2402. 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)."
  2403. msgstr ""
  2404. #. type: Plain text
  2405. #: guix-git/doc/guix.texi:7
  2406. msgid "@documentencoding UTF-8"
  2407. msgstr "@documentencoding UTF-8"
  2408. #. type: title
  2409. #: guix-git/doc/guix.texi:7 guix-git/doc/guix.texi:132
  2410. #, no-wrap
  2411. msgid "GNU Guix Reference Manual"
  2412. msgstr "GNU Guix 参考手册"
  2413. #. type: include
  2414. #: guix-git/doc/guix.texi:10
  2415. #, no-wrap
  2416. msgid "version.texi"
  2417. msgstr "version-zh_CN.texi"
  2418. #. type: copying
  2419. #: guix-git/doc/guix.texi:104
  2420. msgid "Copyright @copyright{} 2012-2022 Ludovic Courtès@* Copyright @copyright{} 2013, 2014, 2016 Andreas Enge@* Copyright @copyright{} 2013 Nikita Karetnikov@* Copyright @copyright{} 2014, 2015, 2016 Alex Kost@* Copyright @copyright{} 2015, 2016 Mathieu Lirzin@* Copyright @copyright{} 2014 Pierre-Antoine Rault@* Copyright @copyright{} 2015 Taylan Ulrich Bayırlı/Kammer@* Copyright @copyright{} 2015, 2016, 2017, 2019, 2020, 2021 Leo Famulari@* Copyright @copyright{} 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ricardo Wurmus@* Copyright @copyright{} 2016 Ben Woodcroft@* Copyright @copyright{} 2016, 2017, 2018, 2021 Chris Marusich@* Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021, 2022 Efraim Flashner@* Copyright @copyright{} 2016 John Darrington@* Copyright @copyright{} 2016, 2017 Nikita Gillmann@* Copyright @copyright{} 2016, 2017, 2018, 2019, 2020 Jan Nieuwenhuizen@* Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021 Julien Lepiller@* Copyright @copyright{} 2016 Alex ter Weele@* Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021 Christopher Baines@* Copyright @copyright{} 2017, 2018, 2019 Clément Lassieur@* Copyright @copyright{} 2017, 2018, 2020, 2021 Mathieu Othacehe@* Copyright @copyright{} 2017 Federico Beffa@* Copyright @copyright{} 2017, 2018 Carlo Zancanaro@* Copyright @copyright{} 2017 Thomas Danckaert@* Copyright @copyright{} 2017 humanitiesNerd@* Copyright @copyright{} 2017, 2021 Christine Lemmer-Webber@* Copyright @copyright{} 2017, 2018, 2019, 2020, 2021, 2022 Marius Bakke@* Copyright @copyright{} 2017, 2019, 2020 Hartmut Goebel@* Copyright @copyright{} 2017, 2019, 2020, 2021 Maxim Cournoyer@* Copyright @copyright{} 2017–2022 Tobias Geerinckx-Rice@* Copyright @copyright{} 2017 George Clemmer@* Copyright @copyright{} 2017 Andy Wingo@* Copyright @copyright{} 2017, 2018, 2019, 2020 Arun Isaac@* Copyright @copyright{} 2017 nee@* Copyright @copyright{} 2018 Rutger Helling@* Copyright @copyright{} 2018, 2021 Oleg Pykhalov@* Copyright @copyright{} 2018 Mike Gerwitz@* Copyright @copyright{} 2018 Pierre-Antoine Rouby@* Copyright @copyright{} 2018, 2019 Gábor Boskovits@* Copyright @copyright{} 2018, 2019, 2020 Florian Pelz@* Copyright @copyright{} 2018 Laura Lazzati@* Copyright @copyright{} 2018 Alex Vong@* Copyright @copyright{} 2019 Josh Holland@* Copyright @copyright{} 2019, 2020 Diego Nicola Barbato@* Copyright @copyright{} 2019 Ivan Petkov@* Copyright @copyright{} 2019 Jakob L. Kreuze@* Copyright @copyright{} 2019 Kyle Andrews@* Copyright @copyright{} 2019 Alex Griffin@* Copyright @copyright{} 2019, 2020, 2021, 2022 Guillaume Le Vaillant@* Copyright @copyright{} 2020 Liliana Marie Prikler@* Copyright @copyright{} 2019, 2020, 2021, 2022 Simon Tournier@* Copyright @copyright{} 2020 Wiktor Żelazny@* Copyright @copyright{} 2020 Damien Cassou@* Copyright @copyright{} 2020 Jakub Kądziołka@* Copyright @copyright{} 2020 Jack Hill@* Copyright @copyright{} 2020 Naga Malleswari@* Copyright @copyright{} 2020, 2021 Brice Waegeneire@* Copyright @copyright{} 2020 R Veera Kumar@* Copyright @copyright{} 2020, 2021 Pierre Langlois@* Copyright @copyright{} 2020 pinoaffe@* Copyright @copyright{} 2020 André Batista@* Copyright @copyright{} 2020, 2021 Alexandru-Sergiu Marton@* Copyright @copyright{} 2020 raingloom@* Copyright @copyright{} 2020 Daniel Brooks@* Copyright @copyright{} 2020 John Soo@* Copyright @copyright{} 2020 Jonathan Brielmaier@* Copyright @copyright{} 2020 Edgar Vincent@* Copyright @copyright{} 2021 Maxime Devos@* Copyright @copyright{} 2021 B. Wilson@* Copyright @copyright{} 2021 Xinglu Chen@* Copyright @copyright{} 2021 Raghav Gururajan@* Copyright @copyright{} 2021 Domagoj Stolfa@* Copyright @copyright{} 2021 Hui Lu@* Copyright @copyright{} 2021 pukkamustard@* Copyright @copyright{} 2021 Alice Brenon@* Copyright @copyright{} 2021 Josselin Poiret@* Copyright @copyright{} 2021 Andrew Tropin@* Copyright @copyright{} 2021 Sarah Morgensen@* Copyright @copyright{} 2021 Josselin Poiret@* Copyright @copyright{} 2022 Remco van 't Veer@*"
  2421. msgstr ""
  2422. #. type: copying
  2423. #: guix-git/doc/guix.texi:111
  2424. 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''."
  2425. 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''."
  2426. #. type: dircategory
  2427. #: guix-git/doc/guix.texi:113
  2428. #, no-wrap
  2429. msgid "System administration"
  2430. msgstr "系统管理"
  2431. #. type: menuentry
  2432. #: guix-git/doc/guix.texi:121
  2433. msgid "Guix: (guix)"
  2434. msgstr "Guix:(guix)"
  2435. #. type: menuentry
  2436. #: guix-git/doc/guix.texi:121
  2437. msgid "Manage installed software and system configuration."
  2438. msgstr "管理安装的软件和系统配置。"
  2439. #. type: menuentry
  2440. #: guix-git/doc/guix.texi:121
  2441. msgid "guix package: (guix)Invoking guix package"
  2442. msgstr "guix package:调用guix package"
  2443. #. type: menuentry
  2444. #: guix-git/doc/guix.texi:121
  2445. msgid "Installing, removing, and upgrading packages."
  2446. msgstr "安装、删除和升级软件包。"
  2447. #. type: menuentry
  2448. #: guix-git/doc/guix.texi:121
  2449. msgid "guix gc: (guix)Invoking guix gc"
  2450. msgstr "guix gc:调用guix gc"
  2451. #. type: menuentry
  2452. #: guix-git/doc/guix.texi:121
  2453. msgid "Reclaiming unused disk space."
  2454. msgstr "回收不使用的硬盘空间。"
  2455. #. type: menuentry
  2456. #: guix-git/doc/guix.texi:121
  2457. msgid "guix pull: (guix)Invoking guix pull"
  2458. msgstr "guix pull:调用guix pull"
  2459. #. type: menuentry
  2460. #: guix-git/doc/guix.texi:121
  2461. msgid "Update the list of available packages."
  2462. msgstr "更新可用的软件包列表。"
  2463. #. type: menuentry
  2464. #: guix-git/doc/guix.texi:121
  2465. msgid "guix system: (guix)Invoking guix system"
  2466. msgstr "guix system:调用guix system"
  2467. #. type: menuentry
  2468. #: guix-git/doc/guix.texi:121
  2469. msgid "Manage the operating system configuration."
  2470. msgstr "管理操作系统配置。"
  2471. #. type: menuentry
  2472. #: guix-git/doc/guix.texi:121
  2473. #, fuzzy
  2474. msgid "guix deploy: (guix)Invoking guix deploy"
  2475. msgstr "guix pull:调用guix pull"
  2476. #. type: menuentry
  2477. #: guix-git/doc/guix.texi:121
  2478. #, fuzzy
  2479. msgid "Manage operating system configurations for remote hosts."
  2480. msgstr "管理操作系统配置。"
  2481. #. type: dircategory
  2482. #: guix-git/doc/guix.texi:123
  2483. #, no-wrap
  2484. msgid "Software development"
  2485. msgstr "软件开发"
  2486. #. type: menuentry
  2487. #: guix-git/doc/guix.texi:129
  2488. #, fuzzy
  2489. #| msgid "guix pull: (guix)Invoking guix pull"
  2490. msgid "guix shell: (guix)Invoking guix shell"
  2491. msgstr "guix pull:调用guix pull"
  2492. #. type: menuentry
  2493. #: guix-git/doc/guix.texi:129
  2494. #, fuzzy
  2495. #| msgid "Creating software bundles."
  2496. msgid "Creating software environments."
  2497. msgstr "创建软件bundle。"
  2498. #. type: menuentry
  2499. #: guix-git/doc/guix.texi:129
  2500. msgid "guix environment: (guix)Invoking guix environment"
  2501. msgstr "guix environment:调用guix environment"
  2502. #. type: menuentry
  2503. #: guix-git/doc/guix.texi:129
  2504. msgid "Building development environments with Guix."
  2505. msgstr "用Guix构建开发环境。"
  2506. #. type: menuentry
  2507. #: guix-git/doc/guix.texi:129
  2508. msgid "guix build: (guix)Invoking guix build"
  2509. msgstr "guix build:(guix)调用guix build"
  2510. #. type: menuentry
  2511. #: guix-git/doc/guix.texi:129
  2512. msgid "Building packages."
  2513. msgstr "构建软件包。"
  2514. #. type: menuentry
  2515. #: guix-git/doc/guix.texi:129
  2516. msgid "guix pack: (guix)Invoking guix pack"
  2517. msgstr "guix pack:(guix)调用guix pack"
  2518. #. type: menuentry
  2519. #: guix-git/doc/guix.texi:129
  2520. msgid "Creating binary bundles."
  2521. msgstr "创建二进制bundle。"
  2522. #. type: subtitle
  2523. #: guix-git/doc/guix.texi:133
  2524. #, no-wrap
  2525. msgid "Using the GNU Guix Functional Package Manager"
  2526. msgstr "使用GNU Guix函数式包管理器"
  2527. #. type: author
  2528. #: guix-git/doc/guix.texi:134
  2529. #, no-wrap
  2530. msgid "The GNU Guix Developers"
  2531. msgstr "GNU Guix开发者"
  2532. #. type: titlepage
  2533. #: guix-git/doc/guix.texi:140
  2534. msgid "Edition @value{EDITION} @* @value{UPDATED} @*"
  2535. msgstr "版本@value{EDITION} @* @value{UPDATED} @*"
  2536. #. type: node
  2537. #: guix-git/doc/guix.texi:147
  2538. #, no-wrap
  2539. msgid "Top"
  2540. msgstr "Top"
  2541. #. type: top
  2542. #: guix-git/doc/guix.texi:148
  2543. #, no-wrap
  2544. msgid "GNU Guix"
  2545. msgstr "GNU Guix"
  2546. #. type: Plain text
  2547. #: guix-git/doc/guix.texi:152
  2548. msgid "This document describes GNU Guix version @value{VERSION}, a functional package management tool written for the GNU system."
  2549. msgstr "这份文档介绍GNU Guix版本@value{VERSION},一个为GNU系统编写的函数式包管理器。"
  2550. #. type: Plain text
  2551. #: guix-git/doc/guix.texi:164
  2552. #, fuzzy
  2553. 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})."
  2554. 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}。"
  2555. #. type: chapter
  2556. #: guix-git/doc/guix.texi:184 guix-git/doc/guix.texi:194
  2557. #: guix-git/doc/guix.texi:405 guix-git/doc/guix.texi:406
  2558. #, no-wrap
  2559. msgid "Introduction"
  2560. msgstr "介绍"
  2561. #. type: menuentry
  2562. #: guix-git/doc/guix.texi:184
  2563. msgid "What is Guix about?"
  2564. msgstr "Guix是关于什么的?"
  2565. #. type: chapter
  2566. #: guix-git/doc/guix.texi:184 guix-git/doc/guix.texi:199
  2567. #: guix-git/doc/guix.texi:602 guix-git/doc/guix.texi:603
  2568. #, no-wrap
  2569. msgid "Installation"
  2570. msgstr "安装"
  2571. #. type: menuentry
  2572. #: guix-git/doc/guix.texi:184
  2573. msgid "Installing Guix."
  2574. msgstr "安装Guix。"
  2575. #. type: chapter
  2576. #: guix-git/doc/guix.texi:184 guix-git/doc/guix.texi:215
  2577. #: guix-git/doc/guix.texi:2084 guix-git/doc/guix.texi:2085
  2578. #, no-wrap
  2579. msgid "System Installation"
  2580. msgstr "系统安装"
  2581. #. type: menuentry
  2582. #: guix-git/doc/guix.texi:184
  2583. msgid "Installing the whole operating system."
  2584. msgstr "安装整个操作系统。"
  2585. #. type: chapter
  2586. #: guix-git/doc/guix.texi:184 guix-git/doc/guix.texi:2812
  2587. #: guix-git/doc/guix.texi:2813
  2588. #, no-wrap
  2589. msgid "Getting Started"
  2590. msgstr "入门"
  2591. #. type: menuentry
  2592. #: guix-git/doc/guix.texi:184
  2593. msgid "Your first steps."
  2594. msgstr ""
  2595. #. type: chapter
  2596. #: guix-git/doc/guix.texi:184 guix-git/doc/guix.texi:232
  2597. #: guix-git/doc/guix.texi:3020 guix-git/doc/guix.texi:3021
  2598. #, no-wrap
  2599. msgid "Package Management"
  2600. msgstr "软件包管理"
  2601. #. type: menuentry
  2602. #: guix-git/doc/guix.texi:184
  2603. msgid "Package installation, upgrade, etc."
  2604. msgstr "软件包安装、升级等。"
  2605. #. type: chapter
  2606. #: guix-git/doc/guix.texi:184 guix-git/doc/guix.texi:255
  2607. #: guix-git/doc/guix.texi:5093 guix-git/doc/guix.texi:5094
  2608. #, no-wrap
  2609. msgid "Channels"
  2610. msgstr "通道"
  2611. #. type: menuentry
  2612. #: guix-git/doc/guix.texi:184
  2613. msgid "Customizing the package collection."
  2614. msgstr "定制软件包集合。"
  2615. #. type: chapter
  2616. #: guix-git/doc/guix.texi:184 guix-git/doc/guix.texi:269
  2617. #: guix-git/doc/guix.texi:5623 guix-git/doc/guix.texi:5624
  2618. #, no-wrap
  2619. msgid "Development"
  2620. msgstr "开发"
  2621. #. type: menuentry
  2622. #: guix-git/doc/guix.texi:184
  2623. msgid "Guix-aided software development."
  2624. msgstr "Guix辅助的软件开发。"
  2625. #. type: chapter
  2626. #: guix-git/doc/guix.texi:184 guix-git/doc/guix.texi:277
  2627. #: guix-git/doc/guix.texi:6866 guix-git/doc/guix.texi:6867
  2628. #, no-wrap
  2629. msgid "Programming Interface"
  2630. msgstr "编程接口"
  2631. #. type: menuentry
  2632. #: guix-git/doc/guix.texi:184
  2633. msgid "Using Guix in Scheme."
  2634. msgstr "在Scheme里使用Guix。"
  2635. #. type: chapter
  2636. #: guix-git/doc/guix.texi:184 guix-git/doc/guix.texi:297
  2637. #: guix-git/doc/guix.texi:11194 guix-git/doc/guix.texi:11195
  2638. #, no-wrap
  2639. msgid "Utilities"
  2640. msgstr "工具"
  2641. #. type: menuentry
  2642. #: guix-git/doc/guix.texi:184
  2643. msgid "Package management commands."
  2644. msgstr "软件包管理命令。"
  2645. #. type: chapter
  2646. #: guix-git/doc/guix.texi:184 guix-git/doc/guix.texi:323
  2647. #: guix-git/doc/guix.texi:14741 guix-git/doc/guix.texi:14742
  2648. #, no-wrap
  2649. msgid "System Configuration"
  2650. msgstr "系统配置"
  2651. #. type: menuentry
  2652. #: guix-git/doc/guix.texi:184
  2653. msgid "Configuring the operating system."
  2654. msgstr "配置操作系统。"
  2655. #. type: chapter
  2656. #: guix-git/doc/guix.texi:184 guix-git/doc/guix.texi:37976
  2657. #: guix-git/doc/guix.texi:37977
  2658. #, fuzzy, no-wrap
  2659. #| msgid "System Configuration"
  2660. msgid "Home Configuration"
  2661. msgstr "系统配置"
  2662. #. type: menuentry
  2663. #: guix-git/doc/guix.texi:184
  2664. #, fuzzy
  2665. #| msgid "Configuring the boot loader."
  2666. msgid "Configuring the home environment."
  2667. msgstr "设置引导程序。"
  2668. #. type: chapter
  2669. #: guix-git/doc/guix.texi:184 guix-git/doc/guix.texi:38984
  2670. #: guix-git/doc/guix.texi:38985
  2671. #, no-wrap
  2672. msgid "Documentation"
  2673. msgstr "文档"
  2674. #. type: menuentry
  2675. #: guix-git/doc/guix.texi:184
  2676. msgid "Browsing software user manuals."
  2677. msgstr "浏览软件用户手册。"
  2678. #. type: chapter
  2679. #: guix-git/doc/guix.texi:184 guix-git/doc/guix.texi:392
  2680. #: guix-git/doc/guix.texi:39050 guix-git/doc/guix.texi:39051
  2681. #, no-wrap
  2682. msgid "Installing Debugging Files"
  2683. msgstr "安装调试文件"
  2684. #. type: menuentry
  2685. #: guix-git/doc/guix.texi:184
  2686. msgid "Feeding the debugger."
  2687. msgstr "为调试工具提供输入。"
  2688. #. type: node
  2689. #: guix-git/doc/guix.texi:184 guix-git/doc/guix.texi:39205
  2690. #, no-wrap
  2691. msgid "Using TeX and LaTeX"
  2692. msgstr ""
  2693. #. type: menuentry
  2694. #: guix-git/doc/guix.texi:184
  2695. #, fuzzy
  2696. #| msgid "Testing Guix."
  2697. msgid "Typesetting."
  2698. msgstr "测试Guix。"
  2699. #. type: chapter
  2700. #: guix-git/doc/guix.texi:184 guix-git/doc/guix.texi:39346
  2701. #: guix-git/doc/guix.texi:39347
  2702. #, no-wrap
  2703. msgid "Security Updates"
  2704. msgstr "安全更新"
  2705. #. type: menuentry
  2706. #: guix-git/doc/guix.texi:184
  2707. msgid "Deploying security fixes quickly."
  2708. msgstr "快速部署安全补丁。"
  2709. #. type: chapter
  2710. #: guix-git/doc/guix.texi:184 guix-git/doc/guix.texi:397
  2711. #: guix-git/doc/guix.texi:39461 guix-git/doc/guix.texi:39462
  2712. #, no-wrap
  2713. msgid "Bootstrapping"
  2714. msgstr "引导"
  2715. #. type: menuentry
  2716. #: guix-git/doc/guix.texi:184
  2717. msgid "GNU/Linux built from scratch."
  2718. msgstr "从头开始构建GNU/Linux。"
  2719. #. type: node
  2720. #: guix-git/doc/guix.texi:184 guix-git/doc/guix.texi:39753
  2721. #, no-wrap
  2722. msgid "Porting"
  2723. msgstr "移植"
  2724. #. type: menuentry
  2725. #: guix-git/doc/guix.texi:184
  2726. msgid "Targeting another platform or kernel."
  2727. msgstr "以别的平台或内核为目标。"
  2728. #. type: menuentry
  2729. #: guix-git/doc/guix.texi:184
  2730. msgid "Your help needed!"
  2731. msgstr "你需要帮助!"
  2732. #. type: chapter
  2733. #: guix-git/doc/guix.texi:189 guix-git/doc/guix.texi:39801
  2734. #: guix-git/doc/guix.texi:39802
  2735. #, no-wrap
  2736. msgid "Acknowledgments"
  2737. msgstr "致谢"
  2738. #. type: menuentry
  2739. #: guix-git/doc/guix.texi:189
  2740. msgid "Thanks!"
  2741. msgstr "感谢!"
  2742. #. type: appendix
  2743. #: guix-git/doc/guix.texi:189 guix-git/doc/guix.texi:39823
  2744. #: guix-git/doc/guix.texi:39824
  2745. #, no-wrap
  2746. msgid "GNU Free Documentation License"
  2747. msgstr "GNU自由文档许可证"
  2748. #. type: menuentry
  2749. #: guix-git/doc/guix.texi:189
  2750. msgid "The license of this manual."
  2751. msgstr "这个用户手册的许可证。"
  2752. #. type: unnumbered
  2753. #: guix-git/doc/guix.texi:189 guix-git/doc/guix.texi:39829
  2754. #: guix-git/doc/guix.texi:39830
  2755. #, no-wrap
  2756. msgid "Concept Index"
  2757. msgstr "概念索引"
  2758. #. type: menuentry
  2759. #: guix-git/doc/guix.texi:189
  2760. msgid "Concepts."
  2761. msgstr "概念。"
  2762. #. type: unnumbered
  2763. #: guix-git/doc/guix.texi:189 guix-git/doc/guix.texi:39833
  2764. #: guix-git/doc/guix.texi:39834
  2765. #, no-wrap
  2766. msgid "Programming Index"
  2767. msgstr "编程索引"
  2768. #. type: menuentry
  2769. #: guix-git/doc/guix.texi:189
  2770. msgid "Data types, functions, and variables."
  2771. msgstr "数据类型、函数和变量。"
  2772. #. type: menuentry
  2773. #: guix-git/doc/guix.texi:192
  2774. msgid "--- The Detailed Node Listing ---"
  2775. msgstr "---详细的章节列表---"
  2776. #. type: section
  2777. #: guix-git/doc/guix.texi:197 guix-git/doc/guix.texi:432
  2778. #: guix-git/doc/guix.texi:434 guix-git/doc/guix.texi:435
  2779. #, no-wrap
  2780. msgid "Managing Software the Guix Way"
  2781. msgstr "以Guix的方式管理软件"
  2782. #. type: menuentry
  2783. #: guix-git/doc/guix.texi:197 guix-git/doc/guix.texi:432
  2784. msgid "What's special."
  2785. msgstr "特殊的地方。"
  2786. #. type: section
  2787. #: guix-git/doc/guix.texi:197 guix-git/doc/guix.texi:432
  2788. #: guix-git/doc/guix.texi:489 guix-git/doc/guix.texi:490
  2789. #, no-wrap
  2790. msgid "GNU Distribution"
  2791. msgstr "GNU发行版"
  2792. #. type: menuentry
  2793. #: guix-git/doc/guix.texi:197 guix-git/doc/guix.texi:432
  2794. msgid "The packages and tools."
  2795. msgstr "软件包和工具。"
  2796. #. type: section
  2797. #: guix-git/doc/guix.texi:207 guix-git/doc/guix.texi:642
  2798. #: guix-git/doc/guix.texi:644 guix-git/doc/guix.texi:645
  2799. #, no-wrap
  2800. msgid "Binary Installation"
  2801. msgstr "二进制文件安装"
  2802. #. type: menuentry
  2803. #: guix-git/doc/guix.texi:207 guix-git/doc/guix.texi:642
  2804. msgid "Getting Guix running in no time!"
  2805. msgstr "立刻运行Guix!"
  2806. #. type: section
  2807. #: guix-git/doc/guix.texi:207 guix-git/doc/guix.texi:642
  2808. #: guix-git/doc/guix.texi:884 guix-git/doc/guix.texi:885
  2809. #, no-wrap
  2810. msgid "Requirements"
  2811. msgstr "需求"
  2812. #. type: menuentry
  2813. #: guix-git/doc/guix.texi:207 guix-git/doc/guix.texi:642
  2814. msgid "Software needed to build and run Guix."
  2815. msgstr "构建和运行Guix需要的软件。"
  2816. #. type: section
  2817. #: guix-git/doc/guix.texi:207 guix-git/doc/guix.texi:642
  2818. #: guix-git/doc/guix.texi:971 guix-git/doc/guix.texi:972
  2819. #, no-wrap
  2820. msgid "Running the Test Suite"
  2821. msgstr "运行测试套件"
  2822. #. type: menuentry
  2823. #: guix-git/doc/guix.texi:207 guix-git/doc/guix.texi:642
  2824. msgid "Testing Guix."
  2825. msgstr "测试Guix。"
  2826. #. type: section
  2827. #: guix-git/doc/guix.texi:207 guix-git/doc/guix.texi:209
  2828. #: guix-git/doc/guix.texi:642 guix-git/doc/guix.texi:1068
  2829. #: guix-git/doc/guix.texi:1069
  2830. #, no-wrap
  2831. msgid "Setting Up the Daemon"
  2832. msgstr "设置后台进程"
  2833. #. type: menuentry
  2834. #: guix-git/doc/guix.texi:207 guix-git/doc/guix.texi:642
  2835. msgid "Preparing the build daemon's environment."
  2836. msgstr "准备“构建后台进程”的环境。"
  2837. #. type: node
  2838. #: guix-git/doc/guix.texi:207 guix-git/doc/guix.texi:642
  2839. #: guix-git/doc/guix.texi:1544
  2840. #, no-wrap
  2841. msgid "Invoking guix-daemon"
  2842. msgstr "调用guix-daemon"
  2843. #. type: menuentry
  2844. #: guix-git/doc/guix.texi:207 guix-git/doc/guix.texi:642
  2845. msgid "Running the build daemon."
  2846. msgstr "运行“构建后台进程”"
  2847. #. type: section
  2848. #: guix-git/doc/guix.texi:207 guix-git/doc/guix.texi:642
  2849. #: guix-git/doc/guix.texi:1846 guix-git/doc/guix.texi:1847
  2850. #, no-wrap
  2851. msgid "Application Setup"
  2852. msgstr "设置应用程序"
  2853. #. type: menuentry
  2854. #: guix-git/doc/guix.texi:207 guix-git/doc/guix.texi:642
  2855. msgid "Application-specific setup."
  2856. msgstr "应用程序相关的设置。"
  2857. #. type: section
  2858. #: guix-git/doc/guix.texi:207 guix-git/doc/guix.texi:642
  2859. #: guix-git/doc/guix.texi:2047 guix-git/doc/guix.texi:2048
  2860. #, fuzzy, no-wrap
  2861. msgid "Upgrading Guix"
  2862. msgstr "安装Guix"
  2863. #. type: menuentry
  2864. #: guix-git/doc/guix.texi:207 guix-git/doc/guix.texi:642
  2865. msgid "Upgrading Guix and its build daemon."
  2866. msgstr "升级 Guix 及其构建守护进程。"
  2867. #. type: subsection
  2868. #: guix-git/doc/guix.texi:213 guix-git/doc/guix.texi:1088
  2869. #: guix-git/doc/guix.texi:1090 guix-git/doc/guix.texi:1091
  2870. #, no-wrap
  2871. msgid "Build Environment Setup"
  2872. msgstr "设置构建环境"
  2873. #. type: menuentry
  2874. #: guix-git/doc/guix.texi:213 guix-git/doc/guix.texi:1088
  2875. msgid "Preparing the isolated build environment."
  2876. msgstr "准备隔离的构建环境。"
  2877. #. type: node
  2878. #: guix-git/doc/guix.texi:213 guix-git/doc/guix.texi:1088
  2879. #: guix-git/doc/guix.texi:1214
  2880. #, no-wrap
  2881. msgid "Daemon Offload Setup"
  2882. msgstr "下发工作给后台进程的设置"
  2883. #. type: menuentry
  2884. #: guix-git/doc/guix.texi:213 guix-git/doc/guix.texi:1088
  2885. msgid "Offloading builds to remote machines."
  2886. msgstr "下发构建工作给远程的机器。"
  2887. #. type: subsection
  2888. #: guix-git/doc/guix.texi:213 guix-git/doc/guix.texi:1088
  2889. #: guix-git/doc/guix.texi:1453 guix-git/doc/guix.texi:1454
  2890. #, no-wrap
  2891. msgid "SELinux Support"
  2892. msgstr "SELinux的支持"
  2893. #. type: menuentry
  2894. #: guix-git/doc/guix.texi:213 guix-git/doc/guix.texi:1088
  2895. msgid "Using an SELinux policy for the daemon."
  2896. msgstr "为后台进程使用SELinux规则。"
  2897. #. type: section
  2898. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:1489
  2899. #: guix-git/doc/guix.texi:2118 guix-git/doc/guix.texi:2120
  2900. #: guix-git/doc/guix.texi:2121
  2901. #, no-wrap
  2902. msgid "Limitations"
  2903. msgstr "限制"
  2904. #. type: menuentry
  2905. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:2118
  2906. msgid "What you can expect."
  2907. msgstr "你可以期待什么。"
  2908. #. type: section
  2909. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:2118
  2910. #: guix-git/doc/guix.texi:2146 guix-git/doc/guix.texi:2147
  2911. #, no-wrap
  2912. msgid "Hardware Considerations"
  2913. msgstr "硬件的考虑"
  2914. #. type: menuentry
  2915. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:2118
  2916. msgid "Supported hardware."
  2917. msgstr "支持的硬件。"
  2918. #. type: section
  2919. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:2118
  2920. #: guix-git/doc/guix.texi:2181 guix-git/doc/guix.texi:2182
  2921. #, no-wrap
  2922. msgid "USB Stick and DVD Installation"
  2923. msgstr "U盘和DVD安装"
  2924. #. type: menuentry
  2925. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:2118
  2926. msgid "Preparing the installation medium."
  2927. msgstr "准备安装介质。"
  2928. #. type: section
  2929. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:2118
  2930. #: guix-git/doc/guix.texi:2262 guix-git/doc/guix.texi:2263
  2931. #, no-wrap
  2932. msgid "Preparing for Installation"
  2933. msgstr "准备安装"
  2934. #. type: menuentry
  2935. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:2118
  2936. msgid "Networking, partitioning, etc."
  2937. msgstr "网络、分区等。"
  2938. #. type: section
  2939. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:2118
  2940. #: guix-git/doc/guix.texi:2285 guix-git/doc/guix.texi:2286
  2941. #, no-wrap
  2942. msgid "Guided Graphical Installation"
  2943. msgstr "指导的图形安装"
  2944. #. type: menuentry
  2945. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:2118
  2946. msgid "Easy graphical installation."
  2947. msgstr "简单的图形安装。"
  2948. #. type: section
  2949. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:227
  2950. #: guix-git/doc/guix.texi:2118 guix-git/doc/guix.texi:2316
  2951. #: guix-git/doc/guix.texi:2317
  2952. #, no-wrap
  2953. msgid "Manual Installation"
  2954. msgstr "手动安装"
  2955. #. type: menuentry
  2956. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:2118
  2957. msgid "Manual installation for wizards."
  2958. msgstr "适合巫师的手动安装。"
  2959. #. type: section
  2960. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:2118
  2961. #: guix-git/doc/guix.texi:2695 guix-git/doc/guix.texi:2696
  2962. #, no-wrap
  2963. msgid "After System Installation"
  2964. msgstr "系统安装之后"
  2965. #. type: menuentry
  2966. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:2118
  2967. msgid "When installation succeeded."
  2968. msgstr "当安装成功后。"
  2969. #. type: node
  2970. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:2118
  2971. #: guix-git/doc/guix.texi:2729
  2972. #, no-wrap
  2973. msgid "Installing Guix in a VM"
  2974. msgstr "在虚拟机里安装 Guix"
  2975. #. type: menuentry
  2976. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:2118
  2977. msgid "Guix System playground."
  2978. msgstr "Guix系统游乐场。"
  2979. #. type: section
  2980. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:2118
  2981. #: guix-git/doc/guix.texi:2780 guix-git/doc/guix.texi:2781
  2982. #, no-wrap
  2983. msgid "Building the Installation Image"
  2984. msgstr "构建安装镜像"
  2985. #. type: menuentry
  2986. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:2118
  2987. msgid "How this comes to be."
  2988. msgstr "这是怎样实现的。"
  2989. #. type: node
  2990. #: guix-git/doc/guix.texi:230 guix-git/doc/guix.texi:2334
  2991. #: guix-git/doc/guix.texi:2336
  2992. #, no-wrap
  2993. msgid "Keyboard Layout and Networking and Partitioning"
  2994. msgstr "键盘布局、网络和分区"
  2995. #. type: menuentry
  2996. #: guix-git/doc/guix.texi:230 guix-git/doc/guix.texi:2334
  2997. msgid "Initial setup."
  2998. msgstr "初始设置。"
  2999. #. type: subsection
  3000. #: guix-git/doc/guix.texi:230 guix-git/doc/guix.texi:2334
  3001. #: guix-git/doc/guix.texi:2606 guix-git/doc/guix.texi:2607
  3002. #, no-wrap
  3003. msgid "Proceeding with the Installation"
  3004. msgstr "继续安装步骤"
  3005. #. type: menuentry
  3006. #: guix-git/doc/guix.texi:230 guix-git/doc/guix.texi:2334
  3007. msgid "Installing."
  3008. msgstr "安装。"
  3009. #. type: section
  3010. #: guix-git/doc/guix.texi:243 guix-git/doc/guix.texi:3052
  3011. #: guix-git/doc/guix.texi:3054 guix-git/doc/guix.texi:3055
  3012. #, no-wrap
  3013. msgid "Features"
  3014. msgstr "功能"
  3015. #. type: menuentry
  3016. #: guix-git/doc/guix.texi:243 guix-git/doc/guix.texi:3052
  3017. msgid "How Guix will make your life brighter."
  3018. msgstr "Guix怎样让你的生活更美好。"
  3019. #. type: node
  3020. #: guix-git/doc/guix.texi:243 guix-git/doc/guix.texi:3052
  3021. #: guix-git/doc/guix.texi:3144
  3022. #, no-wrap
  3023. msgid "Invoking guix package"
  3024. msgstr "调用guix package"
  3025. #. type: menuentry
  3026. #: guix-git/doc/guix.texi:243 guix-git/doc/guix.texi:3052
  3027. msgid "Package installation, removal, etc."
  3028. msgstr "软件包安装,移除等。"
  3029. #. type: section
  3030. #: guix-git/doc/guix.texi:243 guix-git/doc/guix.texi:245
  3031. #: guix-git/doc/guix.texi:3052 guix-git/doc/guix.texi:3774
  3032. #: guix-git/doc/guix.texi:3775
  3033. #, no-wrap
  3034. msgid "Substitutes"
  3035. msgstr "substitutes"
  3036. #. type: menuentry
  3037. #: guix-git/doc/guix.texi:243 guix-git/doc/guix.texi:3052
  3038. msgid "Downloading pre-built binaries."
  3039. msgstr "下载构建好的二进制文件。"
  3040. #. type: section
  3041. #: guix-git/doc/guix.texi:243 guix-git/doc/guix.texi:3052
  3042. #: guix-git/doc/guix.texi:4110 guix-git/doc/guix.texi:4111
  3043. #, no-wrap
  3044. msgid "Packages with Multiple Outputs"
  3045. msgstr "有多个输出的软件包"
  3046. #. type: menuentry
  3047. #: guix-git/doc/guix.texi:243 guix-git/doc/guix.texi:3052
  3048. msgid "Single source package, multiple outputs."
  3049. msgstr "单个输入多个输出的软件包。"
  3050. #. type: node
  3051. #: guix-git/doc/guix.texi:243 guix-git/doc/guix.texi:3052
  3052. #: guix-git/doc/guix.texi:4164
  3053. #, no-wrap
  3054. msgid "Invoking guix gc"
  3055. msgstr "调用guix gc"
  3056. #. type: menuentry
  3057. #: guix-git/doc/guix.texi:243 guix-git/doc/guix.texi:3052
  3058. msgid "Running the garbage collector."
  3059. msgstr "运行垃圾回收器。"
  3060. #. type: node
  3061. #: guix-git/doc/guix.texi:243 guix-git/doc/guix.texi:3052
  3062. #: guix-git/doc/guix.texi:4374
  3063. #, no-wrap
  3064. msgid "Invoking guix pull"
  3065. msgstr "调用guix pull"
  3066. #. type: menuentry
  3067. #: guix-git/doc/guix.texi:243 guix-git/doc/guix.texi:3052
  3068. msgid "Fetching the latest Guix and distribution."
  3069. msgstr "获取最新的Guix和发行版。"
  3070. #. type: node
  3071. #: guix-git/doc/guix.texi:243 guix-git/doc/guix.texi:3052
  3072. #: guix-git/doc/guix.texi:4625
  3073. #, fuzzy, no-wrap
  3074. msgid "Invoking guix time-machine"
  3075. msgstr "调用guix archive"
  3076. #. type: menuentry
  3077. #: guix-git/doc/guix.texi:243 guix-git/doc/guix.texi:3052
  3078. #, fuzzy
  3079. msgid "Running an older revision of Guix."
  3080. msgstr "和其它版本的Guix交互。"
  3081. #. type: section
  3082. #: guix-git/doc/guix.texi:243 guix-git/doc/guix.texi:3052
  3083. #: guix-git/doc/guix.texi:4680 guix-git/doc/guix.texi:4681
  3084. #, no-wrap
  3085. msgid "Inferiors"
  3086. msgstr ""
  3087. #. type: menuentry
  3088. #: guix-git/doc/guix.texi:243 guix-git/doc/guix.texi:3052
  3089. msgid "Interacting with another revision of Guix."
  3090. msgstr "和其它版本的Guix交互。"
  3091. #. type: node
  3092. #: guix-git/doc/guix.texi:243 guix-git/doc/guix.texi:3052
  3093. #: guix-git/doc/guix.texi:4808
  3094. #, no-wrap
  3095. msgid "Invoking guix describe"
  3096. msgstr "调用guix describe"
  3097. #. type: menuentry
  3098. #: guix-git/doc/guix.texi:243 guix-git/doc/guix.texi:3052
  3099. msgid "Display information about your Guix revision."
  3100. msgstr "显示你的Guix版本信息。"
  3101. #. type: node
  3102. #: guix-git/doc/guix.texi:243 guix-git/doc/guix.texi:3052
  3103. #: guix-git/doc/guix.texi:4903
  3104. #, no-wrap
  3105. msgid "Invoking guix archive"
  3106. msgstr "调用guix archive"
  3107. #. type: menuentry
  3108. #: guix-git/doc/guix.texi:243 guix-git/doc/guix.texi:3052
  3109. msgid "Exporting and importing store files."
  3110. msgstr "导出和导入仓库文件。"
  3111. #. type: subsection
  3112. #: guix-git/doc/guix.texi:253 guix-git/doc/guix.texi:3798
  3113. #: guix-git/doc/guix.texi:3800 guix-git/doc/guix.texi:3801
  3114. #, fuzzy, no-wrap
  3115. #| msgid "Official Substitute Server"
  3116. msgid "Official Substitute Servers"
  3117. msgstr "官方的substitute服务器"
  3118. #. type: menuentry
  3119. #: guix-git/doc/guix.texi:253 guix-git/doc/guix.texi:3798
  3120. msgid "One particular source of substitutes."
  3121. msgstr "substitute的一个特殊来源。"
  3122. #. type: subsection
  3123. #: guix-git/doc/guix.texi:253 guix-git/doc/guix.texi:3798
  3124. #: guix-git/doc/guix.texi:3830 guix-git/doc/guix.texi:3831
  3125. #, no-wrap
  3126. msgid "Substitute Server Authorization"
  3127. msgstr "授权substitute服务器。"
  3128. #. type: menuentry
  3129. #: guix-git/doc/guix.texi:253 guix-git/doc/guix.texi:3798
  3130. msgid "How to enable or disable substitutes."
  3131. msgstr "怎么开启或关闭substitute。"
  3132. #. type: subsection
  3133. #: guix-git/doc/guix.texi:253 guix-git/doc/guix.texi:3798
  3134. #: guix-git/doc/guix.texi:3900 guix-git/doc/guix.texi:3901
  3135. #, no-wrap
  3136. msgid "Getting Substitutes from Other Servers"
  3137. msgstr ""
  3138. #. type: menuentry
  3139. #: guix-git/doc/guix.texi:253 guix-git/doc/guix.texi:3798
  3140. #, fuzzy
  3141. msgid "Substitute diversity."
  3142. msgstr "substitutes"
  3143. #. type: subsection
  3144. #: guix-git/doc/guix.texi:253 guix-git/doc/guix.texi:3798
  3145. #: guix-git/doc/guix.texi:4005 guix-git/doc/guix.texi:4006
  3146. #, no-wrap
  3147. msgid "Substitute Authentication"
  3148. msgstr "验证substitute"
  3149. #. type: menuentry
  3150. #: guix-git/doc/guix.texi:253 guix-git/doc/guix.texi:3798
  3151. msgid "How Guix verifies substitutes."
  3152. msgstr "Guix怎样验证substitute。"
  3153. #. type: subsection
  3154. #: guix-git/doc/guix.texi:253 guix-git/doc/guix.texi:3798
  3155. #: guix-git/doc/guix.texi:4040 guix-git/doc/guix.texi:4041
  3156. #, no-wrap
  3157. msgid "Proxy Settings"
  3158. msgstr "代理设置"
  3159. #. type: menuentry
  3160. #: guix-git/doc/guix.texi:253 guix-git/doc/guix.texi:3798
  3161. msgid "How to get substitutes via proxy."
  3162. msgstr "怎样通过代理获取substitute。"
  3163. #. type: subsection
  3164. #: guix-git/doc/guix.texi:253 guix-git/doc/guix.texi:3798
  3165. #: guix-git/doc/guix.texi:4052 guix-git/doc/guix.texi:4053
  3166. #, no-wrap
  3167. msgid "Substitution Failure"
  3168. msgstr "substitute失败"
  3169. #. type: menuentry
  3170. #: guix-git/doc/guix.texi:253 guix-git/doc/guix.texi:3798
  3171. msgid "What happens when substitution fails."
  3172. msgstr "当substitute失败时会发生什么。"
  3173. #. type: subsection
  3174. #: guix-git/doc/guix.texi:253 guix-git/doc/guix.texi:3798
  3175. #: guix-git/doc/guix.texi:4080 guix-git/doc/guix.texi:4081
  3176. #, no-wrap
  3177. msgid "On Trusting Binaries"
  3178. msgstr "关于信任二进制文件"
  3179. #. type: menuentry
  3180. #: guix-git/doc/guix.texi:253 guix-git/doc/guix.texi:3798
  3181. msgid "How can you trust that binary blob?"
  3182. msgstr "你怎么能信任二进制的 blob 呢?"
  3183. #. type: section
  3184. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3185. #: guix-git/doc/guix.texi:5126 guix-git/doc/guix.texi:5127
  3186. #, no-wrap
  3187. msgid "Specifying Additional Channels"
  3188. msgstr ""
  3189. #. type: menuentry
  3190. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3191. msgid "Extending the package collection."
  3192. msgstr "拓展软件包集合。"
  3193. #. type: section
  3194. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3195. #: guix-git/doc/guix.texi:5176 guix-git/doc/guix.texi:5177
  3196. #, no-wrap
  3197. msgid "Using a Custom Guix Channel"
  3198. msgstr ""
  3199. #. type: menuentry
  3200. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3201. msgid "Using a customized Guix."
  3202. msgstr ""
  3203. #. type: section
  3204. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3205. #: guix-git/doc/guix.texi:5198 guix-git/doc/guix.texi:5199
  3206. #, no-wrap
  3207. msgid "Replicating Guix"
  3208. msgstr ""
  3209. #. type: menuentry
  3210. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3211. msgid "Running the @emph{exact same} Guix."
  3212. msgstr ""
  3213. #. type: section
  3214. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3215. #: guix-git/doc/guix.texi:5239 guix-git/doc/guix.texi:5240
  3216. #, fuzzy, no-wrap
  3217. msgid "Channel Authentication"
  3218. msgstr "验证substitute"
  3219. #. type: menuentry
  3220. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3221. #, fuzzy
  3222. msgid "How Guix verifies what it fetches."
  3223. msgstr "Guix怎样验证substitute。"
  3224. #. type: section
  3225. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3226. #: guix-git/doc/guix.texi:5279 guix-git/doc/guix.texi:5280
  3227. #, fuzzy, no-wrap
  3228. msgid "Channels with Substitutes"
  3229. msgstr "分享substitute。"
  3230. #. type: menuentry
  3231. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3232. msgid "Using channels with available substitutes."
  3233. msgstr ""
  3234. #. type: section
  3235. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3236. #: guix-git/doc/guix.texi:5304 guix-git/doc/guix.texi:5305
  3237. #, no-wrap
  3238. msgid "Creating a Channel"
  3239. msgstr "创建一个频道"
  3240. #. type: menuentry
  3241. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3242. msgid "How to write your custom channel."
  3243. msgstr ""
  3244. #. type: section
  3245. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3246. #: guix-git/doc/guix.texi:5371 guix-git/doc/guix.texi:5372
  3247. #, fuzzy, no-wrap
  3248. msgid "Package Modules in a Sub-directory"
  3249. msgstr "软件包模块"
  3250. #. type: menuentry
  3251. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3252. #, fuzzy
  3253. msgid "Specifying the channel's package modules location."
  3254. msgstr "指定如何构建软件包。"
  3255. #. type: section
  3256. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3257. #: guix-git/doc/guix.texi:5385 guix-git/doc/guix.texi:5386
  3258. #, no-wrap
  3259. msgid "Declaring Channel Dependencies"
  3260. msgstr ""
  3261. #. type: menuentry
  3262. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3263. msgid "How to depend on other channels."
  3264. msgstr ""
  3265. #. type: section
  3266. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3267. #: guix-git/doc/guix.texi:5427 guix-git/doc/guix.texi:5428
  3268. #, no-wrap
  3269. msgid "Specifying Channel Authorizations"
  3270. msgstr ""
  3271. #. type: menuentry
  3272. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3273. msgid "Defining channel authors authorizations."
  3274. msgstr ""
  3275. #. type: section
  3276. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3277. #: guix-git/doc/guix.texi:5530 guix-git/doc/guix.texi:5531
  3278. #, no-wrap
  3279. msgid "Primary URL"
  3280. msgstr ""
  3281. #. type: menuentry
  3282. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3283. msgid "Distinguishing mirror to original."
  3284. msgstr ""
  3285. #. type: section
  3286. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3287. #: guix-git/doc/guix.texi:5553 guix-git/doc/guix.texi:5554
  3288. #, no-wrap
  3289. msgid "Writing Channel News"
  3290. msgstr ""
  3291. #. type: menuentry
  3292. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:5124
  3293. msgid "Communicating information to channel's users."
  3294. msgstr ""
  3295. #. type: node
  3296. #: guix-git/doc/guix.texi:275 guix-git/doc/guix.texi:5643
  3297. #: guix-git/doc/guix.texi:5645
  3298. #, fuzzy, no-wrap
  3299. #| msgid "Invoking guix size"
  3300. msgid "Invoking guix shell"
  3301. msgstr "调用guix size"
  3302. #. type: menuentry
  3303. #: guix-git/doc/guix.texi:275 guix-git/doc/guix.texi:5643
  3304. #, fuzzy
  3305. #| msgid "Preparing the isolated build environment."
  3306. msgid "Spawning one-off software environments."
  3307. msgstr "准备隔离的构建环境。"
  3308. #. type: node
  3309. #: guix-git/doc/guix.texi:275 guix-git/doc/guix.texi:5643
  3310. #: guix-git/doc/guix.texi:6017
  3311. #, no-wrap
  3312. msgid "Invoking guix environment"
  3313. msgstr "调用guix environment"
  3314. #. type: menuentry
  3315. #: guix-git/doc/guix.texi:275 guix-git/doc/guix.texi:5643
  3316. msgid "Setting up development environments."
  3317. msgstr "设置开发环境。"
  3318. #. type: node
  3319. #: guix-git/doc/guix.texi:275 guix-git/doc/guix.texi:5643
  3320. #: guix-git/doc/guix.texi:6392
  3321. #, no-wrap
  3322. msgid "Invoking guix pack"
  3323. msgstr "调用guix pack"
  3324. #. type: menuentry
  3325. #: guix-git/doc/guix.texi:275 guix-git/doc/guix.texi:5643
  3326. msgid "Creating software bundles."
  3327. msgstr "创建软件bundle。"
  3328. #. type: section
  3329. #: guix-git/doc/guix.texi:275 guix-git/doc/guix.texi:5643
  3330. #: guix-git/doc/guix.texi:6778 guix-git/doc/guix.texi:6779
  3331. #, no-wrap
  3332. msgid "The GCC toolchain"
  3333. msgstr ""
  3334. #. type: menuentry
  3335. #: guix-git/doc/guix.texi:275 guix-git/doc/guix.texi:5643
  3336. msgid "Working with languages supported by GCC."
  3337. msgstr ""
  3338. #. type: node
  3339. #: guix-git/doc/guix.texi:275 guix-git/doc/guix.texi:5643
  3340. #: guix-git/doc/guix.texi:6804
  3341. #, fuzzy, no-wrap
  3342. msgid "Invoking guix git authenticate"
  3343. msgstr "调用guix edit。"
  3344. #. type: menuentry
  3345. #: guix-git/doc/guix.texi:275 guix-git/doc/guix.texi:5643
  3346. #, fuzzy
  3347. msgid "Authenticating Git repositories."
  3348. msgstr "认证HTTPS服务器。"
  3349. #. type: section
  3350. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3351. #: guix-git/doc/guix.texi:6909 guix-git/doc/guix.texi:6910
  3352. #, no-wrap
  3353. msgid "Package Modules"
  3354. msgstr "软件包模块"
  3355. #. type: menuentry
  3356. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3357. msgid "Packages from the programmer's viewpoint."
  3358. msgstr "从程序员的角度看软件包。"
  3359. #. type: section
  3360. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:292
  3361. #: guix-git/doc/guix.texi:6907 guix-git/doc/guix.texi:6971
  3362. #: guix-git/doc/guix.texi:6972
  3363. #, no-wrap
  3364. msgid "Defining Packages"
  3365. msgstr "定义软件包"
  3366. #. type: menuentry
  3367. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3368. msgid "Defining new packages."
  3369. msgstr "定义新软件包。"
  3370. #. type: section
  3371. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3372. #: guix-git/doc/guix.texi:7636 guix-git/doc/guix.texi:7637
  3373. #, fuzzy, no-wrap
  3374. msgid "Defining Package Variants"
  3375. msgstr "定义软件包"
  3376. #. type: menuentry
  3377. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3378. #, fuzzy
  3379. msgid "Customizing packages."
  3380. msgstr "构建软件包。"
  3381. #. type: section
  3382. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3383. #: guix-git/doc/guix.texi:7903 guix-git/doc/guix.texi:7904
  3384. #, no-wrap
  3385. msgid "Build Systems"
  3386. msgstr "构建系统"
  3387. #. type: menuentry
  3388. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3389. msgid "Specifying how packages are built."
  3390. msgstr "指定如何构建软件包。"
  3391. #. type: subsection
  3392. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3393. #: guix-git/doc/guix.texi:8942 guix-git/doc/guix.texi:8943
  3394. #: guix-git/doc/guix.texi:9451
  3395. #, fuzzy, no-wrap
  3396. msgid "Build Phases"
  3397. msgstr "构建系统"
  3398. #. type: menuentry
  3399. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3400. msgid "Phases of the build process of a package."
  3401. msgstr ""
  3402. #. type: section
  3403. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3404. #: guix-git/doc/guix.texi:9140 guix-git/doc/guix.texi:9141
  3405. #, fuzzy, no-wrap
  3406. msgid "Build Utilities"
  3407. msgstr "工具"
  3408. #. type: menuentry
  3409. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3410. #, fuzzy
  3411. msgid "Helpers for your package definitions and more."
  3412. msgstr "导入软件包定义。"
  3413. #. type: section
  3414. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3415. #: guix-git/doc/guix.texi:9610 guix-git/doc/guix.texi:9611
  3416. #, no-wrap
  3417. msgid "Search Paths"
  3418. msgstr ""
  3419. #. type: menuentry
  3420. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3421. #, fuzzy
  3422. #| msgid "Preparing the isolated build environment."
  3423. msgid "Declaring search path environment variables."
  3424. msgstr "准备隔离的构建环境。"
  3425. #. type: section
  3426. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3427. #: guix-git/doc/guix.texi:9789 guix-git/doc/guix.texi:9790
  3428. #, no-wrap
  3429. msgid "The Store"
  3430. msgstr "仓库"
  3431. #. type: menuentry
  3432. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3433. msgid "Manipulating the package store."
  3434. msgstr "操纵软件包仓库。"
  3435. #. type: section
  3436. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3437. #: guix-git/doc/guix.texi:9942 guix-git/doc/guix.texi:9943
  3438. #, no-wrap
  3439. msgid "Derivations"
  3440. msgstr ""
  3441. #. type: menuentry
  3442. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3443. msgid "Low-level interface to package derivations."
  3444. msgstr "软件包derivation的底层接口。"
  3445. #. type: section
  3446. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3447. #: guix-git/doc/guix.texi:10136 guix-git/doc/guix.texi:10137
  3448. #, no-wrap
  3449. msgid "The Store Monad"
  3450. msgstr "仓库monad"
  3451. #. type: menuentry
  3452. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3453. msgid "Purely functional interface to the store."
  3454. msgstr "仓库的纯函数式接口。"
  3455. #. type: section
  3456. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3457. #: guix-git/doc/guix.texi:10455 guix-git/doc/guix.texi:10456
  3458. #, no-wrap
  3459. msgid "G-Expressions"
  3460. msgstr "G-表达式"
  3461. #. type: menuentry
  3462. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3463. msgid "Manipulating build expressions."
  3464. msgstr "操纵构建表达式。"
  3465. #. type: node
  3466. #: guix-git/doc/guix.texi:290 guix-git/doc/guix.texi:6907
  3467. #: guix-git/doc/guix.texi:11094
  3468. #, no-wrap
  3469. msgid "Invoking guix repl"
  3470. msgstr "调用guix repl"
  3471. #. type: menuentry
  3472. #: guix-git/doc/guix.texi:290
  3473. #, fuzzy
  3474. msgid "Programming Guix in Guile."
  3475. msgstr "编程索引"
  3476. #. type: node
  3477. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:7168
  3478. #: guix-git/doc/guix.texi:7171
  3479. #, no-wrap
  3480. msgid "package Reference"
  3481. msgstr "软件包引用"
  3482. #. type: menuentry
  3483. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:7168
  3484. msgid "The package data type."
  3485. msgstr "软件包数据类型。"
  3486. #. type: node
  3487. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:7168
  3488. #: guix-git/doc/guix.texi:7444
  3489. #, no-wrap
  3490. msgid "origin Reference"
  3491. msgstr "origin参考手册"
  3492. #. type: menuentry
  3493. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:7168
  3494. msgid "The origin data type."
  3495. msgstr "origin数据类型。"
  3496. #. type: node
  3497. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3498. #: guix-git/doc/guix.texi:11221
  3499. #, no-wrap
  3500. msgid "Invoking guix build"
  3501. msgstr "调用guix build"
  3502. #. type: menuentry
  3503. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3504. msgid "Building packages from the command line."
  3505. msgstr "用命令行构建软件包。"
  3506. #. type: node
  3507. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3508. #: guix-git/doc/guix.texi:12119
  3509. #, no-wrap
  3510. msgid "Invoking guix edit"
  3511. msgstr "调用guix edit。"
  3512. #. type: menuentry
  3513. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3514. msgid "Editing package definitions."
  3515. msgstr "编辑软件包定义。"
  3516. #. type: node
  3517. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3518. #: guix-git/doc/guix.texi:12149
  3519. #, no-wrap
  3520. msgid "Invoking guix download"
  3521. msgstr "调用guix download"
  3522. #. type: menuentry
  3523. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3524. msgid "Downloading a file and printing its hash."
  3525. msgstr "下载一个文件并打印它的hash。"
  3526. #. type: node
  3527. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3528. #: guix-git/doc/guix.texi:12207
  3529. #, no-wrap
  3530. msgid "Invoking guix hash"
  3531. msgstr "调用guix hash"
  3532. #. type: menuentry
  3533. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3534. msgid "Computing the cryptographic hash of a file."
  3535. msgstr "计算一个文件的密码学hash。"
  3536. #. type: node
  3537. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3538. #: guix-git/doc/guix.texi:12298
  3539. #, no-wrap
  3540. msgid "Invoking guix import"
  3541. msgstr "调用guix import"
  3542. #. type: menuentry
  3543. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3544. msgid "Importing package definitions."
  3545. msgstr "导入软件包定义。"
  3546. #. type: node
  3547. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3548. #: guix-git/doc/guix.texi:12833
  3549. #, no-wrap
  3550. msgid "Invoking guix refresh"
  3551. msgstr "调用guix refresh"
  3552. #. type: menuentry
  3553. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3554. msgid "Updating package definitions."
  3555. msgstr "更新软件包定义。"
  3556. #. type: node
  3557. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3558. #: guix-git/doc/guix.texi:13205
  3559. #, fuzzy, no-wrap
  3560. #| msgid "Invoking guix system"
  3561. msgid "Invoking guix style"
  3562. msgstr "调用guix system"
  3563. #. type: menuentry
  3564. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3565. #, fuzzy
  3566. #| msgid "Editing package definitions."
  3567. msgid "Styling package definitions."
  3568. msgstr "编辑软件包定义。"
  3569. #. type: node
  3570. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3571. #: guix-git/doc/guix.texi:13343
  3572. #, no-wrap
  3573. msgid "Invoking guix lint"
  3574. msgstr "调用guix lint"
  3575. #. type: menuentry
  3576. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3577. msgid "Finding errors in package definitions."
  3578. msgstr "从软件包定义里寻找错误。"
  3579. #. type: node
  3580. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3581. #: guix-git/doc/guix.texi:13519
  3582. #, no-wrap
  3583. msgid "Invoking guix size"
  3584. msgstr "调用guix size"
  3585. #. type: menuentry
  3586. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3587. msgid "Profiling disk usage."
  3588. msgstr "分析硬盘使用情况。"
  3589. #. type: node
  3590. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3591. #: guix-git/doc/guix.texi:13663
  3592. #, no-wrap
  3593. msgid "Invoking guix graph"
  3594. msgstr "调用guix graph"
  3595. #. type: menuentry
  3596. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3597. msgid "Visualizing the graph of packages."
  3598. msgstr "展示软件包的关系图。"
  3599. #. type: node
  3600. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3601. #: guix-git/doc/guix.texi:13944
  3602. #, no-wrap
  3603. msgid "Invoking guix publish"
  3604. msgstr "调用guix publish"
  3605. #. type: menuentry
  3606. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3607. msgid "Sharing substitutes."
  3608. msgstr "分享substitute。"
  3609. #. type: node
  3610. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3611. #: guix-git/doc/guix.texi:14213
  3612. #, no-wrap
  3613. msgid "Invoking guix challenge"
  3614. msgstr "调用guix challenge"
  3615. #. type: menuentry
  3616. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3617. msgid "Challenging substitute servers."
  3618. msgstr "挑战subtitute服务器。"
  3619. #. type: node
  3620. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3621. #: guix-git/doc/guix.texi:14396
  3622. #, no-wrap
  3623. msgid "Invoking guix copy"
  3624. msgstr "调用guix copy"
  3625. #. type: menuentry
  3626. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3627. msgid "Copying to and from a remote store."
  3628. msgstr "复制到远程的仓库,或从远程的仓库复制。"
  3629. #. type: node
  3630. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3631. #: guix-git/doc/guix.texi:14459
  3632. #, no-wrap
  3633. msgid "Invoking guix container"
  3634. msgstr "调用guix container"
  3635. #. type: menuentry
  3636. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3637. msgid "Process isolation."
  3638. msgstr "进程隔离。"
  3639. #. type: node
  3640. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3641. #: guix-git/doc/guix.texi:14513
  3642. #, no-wrap
  3643. msgid "Invoking guix weather"
  3644. msgstr "调用guix weather"
  3645. #. type: menuentry
  3646. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3647. msgid "Assessing substitute availability."
  3648. msgstr "评估substitute的可用性。"
  3649. #. type: node
  3650. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3651. #: guix-git/doc/guix.texi:14643
  3652. #, no-wrap
  3653. msgid "Invoking guix processes"
  3654. msgstr "调用guix processes"
  3655. #. type: menuentry
  3656. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11219
  3657. msgid "Listing client processes."
  3658. msgstr "列出客户端进程。"
  3659. #. type: section
  3660. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:11222
  3661. #, no-wrap
  3662. msgid "Invoking @command{guix build}"
  3663. msgstr "调用@command{guix build}"
  3664. #. type: subsection
  3665. #: guix-git/doc/guix.texi:321 guix-git/doc/guix.texi:11273
  3666. #: guix-git/doc/guix.texi:11275 guix-git/doc/guix.texi:11276
  3667. #, no-wrap
  3668. msgid "Common Build Options"
  3669. msgstr "普通的构建选项"
  3670. #. type: menuentry
  3671. #: guix-git/doc/guix.texi:321 guix-git/doc/guix.texi:11273
  3672. msgid "Build options for most commands."
  3673. msgstr "大部分命令的构建选项。"
  3674. #. type: subsection
  3675. #: guix-git/doc/guix.texi:321 guix-git/doc/guix.texi:11273
  3676. #: guix-git/doc/guix.texi:11430 guix-git/doc/guix.texi:11431
  3677. #, no-wrap
  3678. msgid "Package Transformation Options"
  3679. msgstr "软件包变换选项。"
  3680. #. type: menuentry
  3681. #: guix-git/doc/guix.texi:321 guix-git/doc/guix.texi:11273
  3682. msgid "Creating variants of packages."
  3683. msgstr "创建软件包的变体。"
  3684. #. type: subsection
  3685. #: guix-git/doc/guix.texi:321 guix-git/doc/guix.texi:11273
  3686. #: guix-git/doc/guix.texi:11801 guix-git/doc/guix.texi:11802
  3687. #, no-wrap
  3688. msgid "Additional Build Options"
  3689. msgstr "额外的构建选项"
  3690. #. type: menuentry
  3691. #: guix-git/doc/guix.texi:321 guix-git/doc/guix.texi:11273
  3692. msgid "Options specific to 'guix build'."
  3693. msgstr "只属于'guix build'的选项。"
  3694. #. type: subsection
  3695. #: guix-git/doc/guix.texi:321 guix-git/doc/guix.texi:11273
  3696. #: guix-git/doc/guix.texi:12039 guix-git/doc/guix.texi:12040
  3697. #, no-wrap
  3698. msgid "Debugging Build Failures"
  3699. msgstr "调试构建错误"
  3700. #. type: menuentry
  3701. #: guix-git/doc/guix.texi:321 guix-git/doc/guix.texi:11273
  3702. msgid "Real life packaging experience."
  3703. msgstr "真实的打包经验。"
  3704. #. type: section
  3705. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3706. #: guix-git/doc/guix.texi:14787 guix-git/doc/guix.texi:14788
  3707. #, no-wrap
  3708. msgid "Using the Configuration System"
  3709. msgstr "使用配置系统"
  3710. #. type: menuentry
  3711. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3712. msgid "Customizing your GNU system."
  3713. msgstr "定制你的GNU系统。"
  3714. #. type: node
  3715. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3716. #: guix-git/doc/guix.texi:15038
  3717. #, no-wrap
  3718. msgid "operating-system Reference"
  3719. msgstr "操作系统参考"
  3720. #. type: menuentry
  3721. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3722. msgid "Detail of operating-system declarations."
  3723. msgstr "操作系统声明详情。"
  3724. #. type: section
  3725. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3726. #: guix-git/doc/guix.texi:15261 guix-git/doc/guix.texi:15262
  3727. #, no-wrap
  3728. msgid "File Systems"
  3729. msgstr "文件系统"
  3730. #. type: menuentry
  3731. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3732. msgid "Configuring file system mounts."
  3733. msgstr "设置文件系统挂载。"
  3734. #. type: section
  3735. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3736. #: guix-git/doc/guix.texi:15614 guix-git/doc/guix.texi:15615
  3737. #, no-wrap
  3738. msgid "Mapped Devices"
  3739. msgstr "映射的设备"
  3740. #. type: menuentry
  3741. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3742. msgid "Block device extra processing."
  3743. msgstr "块设备额外的处理。"
  3744. #. type: section
  3745. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3746. #: guix-git/doc/guix.texi:15763 guix-git/doc/guix.texi:15764
  3747. #, no-wrap
  3748. msgid "Swap Space"
  3749. msgstr ""
  3750. #. type: menuentry
  3751. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3752. msgid "Backing RAM with disk space."
  3753. msgstr ""
  3754. #. type: section
  3755. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3756. #: guix-git/doc/guix.texi:15880 guix-git/doc/guix.texi:15881
  3757. #, no-wrap
  3758. msgid "User Accounts"
  3759. msgstr "用户帐号"
  3760. #. type: menuentry
  3761. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3762. msgid "Specifying user accounts."
  3763. msgstr "指定用户帐号。"
  3764. #. type: section
  3765. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:2343
  3766. #: guix-git/doc/guix.texi:14785 guix-git/doc/guix.texi:16061
  3767. #: guix-git/doc/guix.texi:16062
  3768. #, no-wrap
  3769. msgid "Keyboard Layout"
  3770. msgstr "键盘布局"
  3771. #. type: menuentry
  3772. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3773. msgid "How the system interprets key strokes."
  3774. msgstr "系统怎样理解按键。"
  3775. #. type: section
  3776. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:1854
  3777. #: guix-git/doc/guix.texi:14785 guix-git/doc/guix.texi:16207
  3778. #: guix-git/doc/guix.texi:16208
  3779. #, no-wrap
  3780. msgid "Locales"
  3781. msgstr "区域"
  3782. #. type: menuentry
  3783. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3784. msgid "Language and cultural convention settings."
  3785. msgstr "语言和文化惯例设置。"
  3786. #. type: section
  3787. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:348
  3788. #: guix-git/doc/guix.texi:14785 guix-git/doc/guix.texi:16347
  3789. #: guix-git/doc/guix.texi:16348
  3790. #, no-wrap
  3791. msgid "Services"
  3792. msgstr "服务"
  3793. #. type: menuentry
  3794. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3795. msgid "Specifying system services."
  3796. msgstr "指定系统服务。"
  3797. #. type: section
  3798. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3799. #: guix-git/doc/guix.texi:35088 guix-git/doc/guix.texi:35089
  3800. #, no-wrap
  3801. msgid "Setuid Programs"
  3802. msgstr "setuid程序"
  3803. #. type: menuentry
  3804. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3805. msgid "Programs running with root privileges."
  3806. msgstr "以root权限运行的程序。"
  3807. #. type: section
  3808. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:2019
  3809. #: guix-git/doc/guix.texi:14785 guix-git/doc/guix.texi:35174
  3810. #: guix-git/doc/guix.texi:35175
  3811. #, no-wrap
  3812. msgid "X.509 Certificates"
  3813. msgstr "X.509证书"
  3814. #. type: menuentry
  3815. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3816. msgid "Authenticating HTTPS servers."
  3817. msgstr "认证HTTPS服务器。"
  3818. #. type: section
  3819. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:1913
  3820. #: guix-git/doc/guix.texi:14785 guix-git/doc/guix.texi:35237
  3821. #: guix-git/doc/guix.texi:35238
  3822. #, no-wrap
  3823. msgid "Name Service Switch"
  3824. msgstr "Name Service Switch"
  3825. #. type: menuentry
  3826. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3827. msgid "Configuring libc's name service switch."
  3828. msgstr "设置libc的name service switch。"
  3829. #. type: section
  3830. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3831. #: guix-git/doc/guix.texi:35375 guix-git/doc/guix.texi:35376
  3832. #, no-wrap
  3833. msgid "Initial RAM Disk"
  3834. msgstr "初始的内存虚拟硬盘"
  3835. #. type: menuentry
  3836. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3837. msgid "Linux-Libre bootstrapping."
  3838. msgstr "Linux-Libre引导。"
  3839. #. type: section
  3840. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3841. #: guix-git/doc/guix.texi:35580 guix-git/doc/guix.texi:35581
  3842. #, no-wrap
  3843. msgid "Bootloader Configuration"
  3844. msgstr "引导设置"
  3845. #. type: menuentry
  3846. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3847. msgid "Configuring the boot loader."
  3848. msgstr "设置引导程序。"
  3849. #. type: node
  3850. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3851. #: guix-git/doc/guix.texi:35878
  3852. #, no-wrap
  3853. msgid "Invoking guix system"
  3854. msgstr "调用guix system"
  3855. #. type: menuentry
  3856. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3857. msgid "Instantiating a system configuration."
  3858. msgstr "实例化一个系统配置。"
  3859. #. type: node
  3860. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3861. #: guix-git/doc/guix.texi:36486
  3862. #, no-wrap
  3863. msgid "Invoking guix deploy"
  3864. msgstr "调用 guix deploy"
  3865. #. type: menuentry
  3866. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3867. #, fuzzy
  3868. msgid "Deploying a system configuration to a remote host."
  3869. msgstr "实例化一个系统配置。"
  3870. #. type: node
  3871. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3872. #: guix-git/doc/guix.texi:36726
  3873. #, no-wrap
  3874. msgid "Running Guix in a VM"
  3875. msgstr "在虚拟机里运行Guix"
  3876. #. type: menuentry
  3877. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3878. msgid "How to run Guix System in a virtual machine."
  3879. msgstr "怎样在虚拟机里运行Guix。"
  3880. #. type: section
  3881. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:384
  3882. #: guix-git/doc/guix.texi:14785 guix-git/doc/guix.texi:36860
  3883. #: guix-git/doc/guix.texi:36861
  3884. #, no-wrap
  3885. msgid "Defining Services"
  3886. msgstr "定义服务"
  3887. #. type: menuentry
  3888. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:14785
  3889. msgid "Adding new service definitions."
  3890. msgstr "添加新的服务定义。"
  3891. #. type: menuentry
  3892. #: guix-git/doc/guix.texi:344
  3893. #, fuzzy
  3894. #| msgid "System Configuration"
  3895. msgid "Home Environment Configuration"
  3896. msgstr "系统配置"
  3897. #. type: node
  3898. #: guix-git/doc/guix.texi:346 guix-git/doc/guix.texi:38039
  3899. #: guix-git/doc/guix.texi:38674
  3900. #, fuzzy, no-wrap
  3901. #| msgid "Invoking guix hash"
  3902. msgid "Invoking guix home"
  3903. msgstr "调用guix hash"
  3904. #. type: menuentry
  3905. #: guix-git/doc/guix.texi:346
  3906. #, fuzzy
  3907. #| msgid "Instantiating a system configuration."
  3908. msgid "Instantiating a home environment configuration."
  3909. msgstr "实例化一个系统配置。"
  3910. #. type: subsection
  3911. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  3912. #: guix-git/doc/guix.texi:16433 guix-git/doc/guix.texi:16434
  3913. #, no-wrap
  3914. msgid "Base Services"
  3915. msgstr "基础服务"
  3916. #. type: menuentry
  3917. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  3918. msgid "Essential system services."
  3919. msgstr "必要的系统服务。"
  3920. #. type: subsection
  3921. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  3922. #: guix-git/doc/guix.texi:17381 guix-git/doc/guix.texi:17382
  3923. #, no-wrap
  3924. msgid "Scheduled Job Execution"
  3925. msgstr "执行计划任务"
  3926. #. type: menuentry
  3927. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  3928. msgid "The mcron service."
  3929. msgstr "mcron服务。"
  3930. #. type: subsection
  3931. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  3932. #: guix-git/doc/guix.texi:17531 guix-git/doc/guix.texi:17532
  3933. #, no-wrap
  3934. msgid "Log Rotation"
  3935. msgstr "日志轮替"
  3936. #. type: menuentry
  3937. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  3938. msgid "The rottlog service."
  3939. msgstr "rottlog服务。"
  3940. #. type: subsection
  3941. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  3942. #: guix-git/doc/guix.texi:17644 guix-git/doc/guix.texi:17645
  3943. #, fuzzy, no-wrap
  3944. #| msgid "Networking Services"
  3945. msgid "Networking Setup"
  3946. msgstr "网络服务"
  3947. #. type: menuentry
  3948. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  3949. #, fuzzy
  3950. #| msgid "user interfaces"
  3951. msgid "Setting up network interfaces."
  3952. msgstr "用户界面"
  3953. #. type: subsection
  3954. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  3955. #: guix-git/doc/guix.texi:18062 guix-git/doc/guix.texi:18063
  3956. #, no-wrap
  3957. msgid "Networking Services"
  3958. msgstr "网络服务"
  3959. #. type: menuentry
  3960. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  3961. #, fuzzy
  3962. #| msgid "Network setup, SSH daemon, etc."
  3963. msgid "Firewall, SSH daemon, etc."
  3964. msgstr "网络设置,SSH后台进程,等"
  3965. #. type: subsection
  3966. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  3967. #: guix-git/doc/guix.texi:19531 guix-git/doc/guix.texi:19532
  3968. #, no-wrap
  3969. msgid "Unattended Upgrades"
  3970. msgstr ""
  3971. #. type: menuentry
  3972. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  3973. msgid "Automated system upgrades."
  3974. msgstr ""
  3975. #. type: subsection
  3976. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  3977. #: guix-git/doc/guix.texi:19669 guix-git/doc/guix.texi:19670
  3978. #, no-wrap
  3979. msgid "X Window"
  3980. msgstr "X窗口"
  3981. #. type: menuentry
  3982. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  3983. msgid "Graphical display."
  3984. msgstr "图形显示器。"
  3985. #. type: subsection
  3986. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  3987. #: guix-git/doc/guix.texi:20067 guix-git/doc/guix.texi:20068
  3988. #, no-wrap
  3989. msgid "Printing Services"
  3990. msgstr "打印服务"
  3991. #. type: menuentry
  3992. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  3993. msgid "Local and remote printer support."
  3994. msgstr "本地和远程打印机的支持。"
  3995. #. type: subsection
  3996. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  3997. #: guix-git/doc/guix.texi:20920 guix-git/doc/guix.texi:20921
  3998. #, no-wrap
  3999. msgid "Desktop Services"
  4000. msgstr "桌面服务"
  4001. #. type: menuentry
  4002. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4003. msgid "D-Bus and desktop services."
  4004. msgstr "D-Bus和桌面服务。"
  4005. #. type: subsection
  4006. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4007. #: guix-git/doc/guix.texi:21880 guix-git/doc/guix.texi:21881
  4008. #, no-wrap
  4009. msgid "Sound Services"
  4010. msgstr "声音服务"
  4011. #. type: menuentry
  4012. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4013. msgid "ALSA and Pulseaudio services."
  4014. msgstr "ALSA和Pulseaudio服务。"
  4015. #. type: subsection
  4016. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4017. #: guix-git/doc/guix.texi:22053 guix-git/doc/guix.texi:22054
  4018. #, no-wrap
  4019. msgid "Database Services"
  4020. msgstr "数据库服务"
  4021. #. type: menuentry
  4022. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4023. msgid "SQL databases, key-value stores, etc."
  4024. msgstr "SQL数据库,键值仓库,等"
  4025. #. type: subsection
  4026. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4027. #: guix-git/doc/guix.texi:22388 guix-git/doc/guix.texi:22389
  4028. #, no-wrap
  4029. msgid "Mail Services"
  4030. msgstr "邮件服务"
  4031. #. type: menuentry
  4032. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4033. msgid "IMAP, POP3, SMTP, and all that."
  4034. msgstr "IMAP,POP3,SMTP,等"
  4035. #. type: subsection
  4036. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4037. #: guix-git/doc/guix.texi:24247 guix-git/doc/guix.texi:24248
  4038. #, no-wrap
  4039. msgid "Messaging Services"
  4040. msgstr "消息服务"
  4041. #. type: menuentry
  4042. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4043. msgid "Messaging services."
  4044. msgstr "消息服务。"
  4045. #. type: subsection
  4046. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4047. #: guix-git/doc/guix.texi:24750 guix-git/doc/guix.texi:24751
  4048. #, no-wrap
  4049. msgid "Telephony Services"
  4050. msgstr "电话服务"
  4051. #. type: menuentry
  4052. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4053. msgid "Telephony services."
  4054. msgstr "电话服务。"
  4055. #. type: subsection
  4056. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4057. #: guix-git/doc/guix.texi:25981 guix-git/doc/guix.texi:25982
  4058. #, no-wrap
  4059. msgid "Monitoring Services"
  4060. msgstr "监控服务"
  4061. #. type: menuentry
  4062. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4063. msgid "Monitoring services."
  4064. msgstr "监控服务。"
  4065. #. type: subsection
  4066. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4067. #: guix-git/doc/guix.texi:26402 guix-git/doc/guix.texi:26403
  4068. #, no-wrap
  4069. msgid "Kerberos Services"
  4070. msgstr "Kerberos服务"
  4071. #. type: menuentry
  4072. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4073. msgid "Kerberos services."
  4074. msgstr "Kerberos服务。"
  4075. #. type: subsection
  4076. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4077. #: guix-git/doc/guix.texi:26528 guix-git/doc/guix.texi:26529
  4078. #, no-wrap
  4079. msgid "LDAP Services"
  4080. msgstr ""
  4081. #. type: menuentry
  4082. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4083. msgid "LDAP services."
  4084. msgstr ""
  4085. #. type: subsection
  4086. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4087. #: guix-git/doc/guix.texi:27007 guix-git/doc/guix.texi:27008
  4088. #, no-wrap
  4089. msgid "Web Services"
  4090. msgstr "Web服务"
  4091. #. type: menuentry
  4092. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4093. msgid "Web servers."
  4094. msgstr "Web服务。"
  4095. #. type: subsection
  4096. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4097. #: guix-git/doc/guix.texi:28218 guix-git/doc/guix.texi:28219
  4098. #, no-wrap
  4099. msgid "Certificate Services"
  4100. msgstr "证书服务"
  4101. #. type: menuentry
  4102. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4103. msgid "TLS certificates via Let's Encrypt."
  4104. msgstr "Let's Encrypt TLS证书。"
  4105. #. type: subsection
  4106. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4107. #: guix-git/doc/guix.texi:28399 guix-git/doc/guix.texi:28400
  4108. #, no-wrap
  4109. msgid "DNS Services"
  4110. msgstr "DNS服务"
  4111. #. type: menuentry
  4112. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4113. msgid "DNS daemons."
  4114. msgstr "DNS后台进程。"
  4115. #. type: subsection
  4116. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4117. #: guix-git/doc/guix.texi:29156 guix-git/doc/guix.texi:29157
  4118. #, no-wrap
  4119. msgid "VPN Services"
  4120. msgstr "VPN服务"
  4121. #. type: menuentry
  4122. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4123. msgid "VPN daemons."
  4124. msgstr "VPN后台进程。"
  4125. #. type: subsection
  4126. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4127. #: guix-git/doc/guix.texi:29668 guix-git/doc/guix.texi:29669
  4128. #, no-wrap
  4129. msgid "Network File System"
  4130. msgstr "网络文件系统"
  4131. #. type: menuentry
  4132. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4133. msgid "NFS related services."
  4134. msgstr "网络文件系统相关的服务。"
  4135. #. type: subsection
  4136. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4137. #: guix-git/doc/guix.texi:29864 guix-git/doc/guix.texi:29865
  4138. #, no-wrap
  4139. msgid "Continuous Integration"
  4140. msgstr "持续集成"
  4141. #. type: menuentry
  4142. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4143. #, fuzzy
  4144. msgid "Cuirass and Laminar services."
  4145. msgstr "Cuirass服务。"
  4146. #. type: subsection
  4147. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4148. #: guix-git/doc/guix.texi:30150 guix-git/doc/guix.texi:30151
  4149. #, no-wrap
  4150. msgid "Power Management Services"
  4151. msgstr "电源管理服务"
  4152. #. type: menuentry
  4153. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4154. msgid "Extending battery life."
  4155. msgstr "延长电池寿命。"
  4156. #. type: subsection
  4157. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4158. #: guix-git/doc/guix.texi:30716 guix-git/doc/guix.texi:30717
  4159. #, no-wrap
  4160. msgid "Audio Services"
  4161. msgstr "音频服务"
  4162. #. type: menuentry
  4163. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4164. msgid "The MPD."
  4165. msgstr "MPD。"
  4166. #. type: subsection
  4167. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4168. #: guix-git/doc/guix.texi:30835 guix-git/doc/guix.texi:30836
  4169. #, no-wrap
  4170. msgid "Virtualization Services"
  4171. msgstr "虚拟化服务"
  4172. #. type: menuentry
  4173. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4174. msgid "Virtualization services."
  4175. msgstr "虚拟化服务。"
  4176. #. type: subsection
  4177. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4178. #: guix-git/doc/guix.texi:32507 guix-git/doc/guix.texi:32508
  4179. #, no-wrap
  4180. msgid "Version Control Services"
  4181. msgstr "版本控制服务"
  4182. #. type: menuentry
  4183. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4184. msgid "Providing remote access to Git repositories."
  4185. msgstr "远程访问Git仓库。"
  4186. #. type: subsection
  4187. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4188. #: guix-git/doc/guix.texi:33843 guix-git/doc/guix.texi:33844
  4189. #, no-wrap
  4190. msgid "Game Services"
  4191. msgstr "游戏服务"
  4192. #. type: menuentry
  4193. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4194. msgid "Game servers."
  4195. msgstr "游戏服务器。"
  4196. #. type: subsection
  4197. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4198. #: guix-git/doc/guix.texi:33875 guix-git/doc/guix.texi:33876
  4199. #, fuzzy, no-wrap
  4200. msgid "PAM Mount Service"
  4201. msgstr "声音服务"
  4202. #. type: menuentry
  4203. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4204. msgid "Service to mount volumes when logging in."
  4205. msgstr ""
  4206. #. type: subsection
  4207. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4208. #: guix-git/doc/guix.texi:33958 guix-git/doc/guix.texi:33959
  4209. #, fuzzy, no-wrap
  4210. msgid "Guix Services"
  4211. msgstr "音频服务"
  4212. #. type: menuentry
  4213. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4214. msgid "Services relating specifically to Guix."
  4215. msgstr ""
  4216. #. type: subsection
  4217. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4218. #: guix-git/doc/guix.texi:34322 guix-git/doc/guix.texi:34323
  4219. #, fuzzy, no-wrap
  4220. msgid "Linux Services"
  4221. msgstr "邮件服务"
  4222. #. type: menuentry
  4223. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4224. msgid "Services tied to the Linux kernel."
  4225. msgstr ""
  4226. #. type: subsection
  4227. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4228. #: guix-git/doc/guix.texi:34549 guix-git/doc/guix.texi:34550
  4229. #, fuzzy, no-wrap
  4230. msgid "Hurd Services"
  4231. msgstr "声音服务"
  4232. #. type: menuentry
  4233. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4234. msgid "Services specific for a Hurd System."
  4235. msgstr ""
  4236. #. type: subsection
  4237. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4238. #: guix-git/doc/guix.texi:34591 guix-git/doc/guix.texi:34592
  4239. #, no-wrap
  4240. msgid "Miscellaneous Services"
  4241. msgstr "其它各种服务"
  4242. #. type: menuentry
  4243. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:16431
  4244. msgid "Other services."
  4245. msgstr "其它服务。"
  4246. #. type: subsection
  4247. #: guix-git/doc/guix.texi:390 guix-git/doc/guix.texi:36873
  4248. #: guix-git/doc/guix.texi:36875 guix-git/doc/guix.texi:36876
  4249. #, no-wrap
  4250. msgid "Service Composition"
  4251. msgstr "合成服务"
  4252. #. type: menuentry
  4253. #: guix-git/doc/guix.texi:390 guix-git/doc/guix.texi:36873
  4254. msgid "The model for composing services."
  4255. msgstr "服务合成的模型。"
  4256. #. type: subsection
  4257. #: guix-git/doc/guix.texi:390 guix-git/doc/guix.texi:36873
  4258. #: guix-git/doc/guix.texi:36931 guix-git/doc/guix.texi:36932
  4259. #, no-wrap
  4260. msgid "Service Types and Services"
  4261. msgstr "服务类型和服务"
  4262. #. type: menuentry
  4263. #: guix-git/doc/guix.texi:390 guix-git/doc/guix.texi:36873
  4264. msgid "Types and services."
  4265. msgstr "类型和服务。"
  4266. #. type: subsection
  4267. #: guix-git/doc/guix.texi:390 guix-git/doc/guix.texi:36873
  4268. #: guix-git/doc/guix.texi:37068 guix-git/doc/guix.texi:37069
  4269. #, no-wrap
  4270. msgid "Service Reference"
  4271. msgstr "服务参考"
  4272. #. type: menuentry
  4273. #: guix-git/doc/guix.texi:390 guix-git/doc/guix.texi:36873
  4274. msgid "API reference."
  4275. msgstr "API参考。"
  4276. #. type: subsection
  4277. #: guix-git/doc/guix.texi:390 guix-git/doc/guix.texi:36873
  4278. #: guix-git/doc/guix.texi:37387 guix-git/doc/guix.texi:37388
  4279. #, no-wrap
  4280. msgid "Shepherd Services"
  4281. msgstr "Shepherd服务"
  4282. #. type: menuentry
  4283. #: guix-git/doc/guix.texi:390 guix-git/doc/guix.texi:36873
  4284. msgid "A particular type of service."
  4285. msgstr "一种特别的服务。"
  4286. #. type: subsection
  4287. #: guix-git/doc/guix.texi:390 guix-git/doc/guix.texi:36873
  4288. #: guix-git/doc/guix.texi:37606 guix-git/doc/guix.texi:37607
  4289. #, fuzzy, no-wrap
  4290. #| msgid "System Configuration"
  4291. msgid "Complex Configurations"
  4292. msgstr "系统配置"
  4293. #. type: menuentry
  4294. #: guix-git/doc/guix.texi:390 guix-git/doc/guix.texi:36873
  4295. #, fuzzy
  4296. #| msgid "Instantiating a system configuration."
  4297. msgid "Defining bindings for complex configurations."
  4298. msgstr "实例化一个系统配置。"
  4299. #. type: section
  4300. #: guix-git/doc/guix.texi:395 guix-git/doc/guix.texi:39067
  4301. #: guix-git/doc/guix.texi:39069 guix-git/doc/guix.texi:39070
  4302. #, no-wrap
  4303. msgid "Separate Debug Info"
  4304. msgstr ""
  4305. #. type: menuentry
  4306. #: guix-git/doc/guix.texi:395 guix-git/doc/guix.texi:39067
  4307. #, fuzzy
  4308. msgid "Installing 'debug' outputs."
  4309. msgstr "安装调试文件"
  4310. #. type: section
  4311. #: guix-git/doc/guix.texi:395 guix-git/doc/guix.texi:39067
  4312. #: guix-git/doc/guix.texi:39142 guix-git/doc/guix.texi:39143
  4313. #, no-wrap
  4314. msgid "Rebuilding Debug Info"
  4315. msgstr ""
  4316. #. type: menuentry
  4317. #: guix-git/doc/guix.texi:395 guix-git/doc/guix.texi:39067
  4318. msgid "Building missing debug info."
  4319. msgstr ""
  4320. #. type: node
  4321. #: guix-git/doc/guix.texi:400 guix-git/doc/guix.texi:39500
  4322. #: guix-git/doc/guix.texi:39502
  4323. #, no-wrap
  4324. msgid "Reduced Binary Seed Bootstrap"
  4325. msgstr ""
  4326. #. type: menuentry
  4327. #: guix-git/doc/guix.texi:400 guix-git/doc/guix.texi:39500
  4328. msgid "A Bootstrap worthy of GNU."
  4329. msgstr ""
  4330. #. type: section
  4331. #: guix-git/doc/guix.texi:400 guix-git/doc/guix.texi:39500
  4332. #: guix-git/doc/guix.texi:39577 guix-git/doc/guix.texi:39578
  4333. #, no-wrap
  4334. msgid "Preparing to Use the Bootstrap Binaries"
  4335. msgstr ""
  4336. #. type: menuentry
  4337. #: guix-git/doc/guix.texi:400 guix-git/doc/guix.texi:39500
  4338. msgid "Building that what matters most."
  4339. msgstr ""
  4340. #. type: cindex
  4341. #: guix-git/doc/guix.texi:408
  4342. #, no-wrap
  4343. msgid "purpose"
  4344. msgstr "目的"
  4345. #. type: Plain text
  4346. #: guix-git/doc/guix.texi:416
  4347. 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."
  4348. msgstr "GNU Guix@footnote{``Guix''读做``geeks'',或``ɡiːks''(国际音标)}是GNU系统的包管理器和发行版。Guix让无特权的用户可以轻松地安装,升级,或删除软件包,回滚到前一个软件包集合,从源代码构建软件包,及辅助软件环境的创建和维护。"
  4349. #. type: cindex
  4350. #: guix-git/doc/guix.texi:417 guix-git/doc/guix.texi:492
  4351. #, no-wrap
  4352. msgid "Guix System"
  4353. msgstr "Guix系统"
  4354. #. type: cindex
  4355. #: guix-git/doc/guix.texi:418
  4356. #, no-wrap
  4357. msgid "GuixSD, now Guix System"
  4358. msgstr "GuixSD,现在称为Guix系统"
  4359. #. type: cindex
  4360. #: guix-git/doc/guix.texi:419
  4361. #, no-wrap
  4362. msgid "Guix System Distribution, now Guix System"
  4363. msgstr "Guix系统发行版,现在称为Guix系统"
  4364. #. type: Plain text
  4365. #: guix-git/doc/guix.texi:428
  4366. 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}."
  4367. msgstr "你可以在现有的GNU/Linux发行版上安装GNU@tie{}Guix(@pxref{Installation}),Guix可以补充已有的工具,并且不会和它们产生冲突。或者你可以把它当作独立的操作系统发行版(@dfn{Guix@tie{}系统}@footnote{我们以前把Guix系统称为``Guix系统发行版''或``GuixSD''。我们现在觉得把一切都统一在``Guix''的旗帜下更合理,因为,毕竟即使在别的发行版上你也可以随时通过@command{guix system}命令获得Guix系统})。@xref{GNU Distribution}."
  4368. #. type: cindex
  4369. #: guix-git/doc/guix.texi:437
  4370. #, no-wrap
  4371. msgid "user interfaces"
  4372. msgstr "用户界面"
  4373. #. type: Plain text
  4374. #: guix-git/doc/guix.texi:443
  4375. #, fuzzy
  4376. 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})."
  4377. msgstr "Guix提供了命令行软件包管理接口(@pxref{Package Management}),辅助软件开发的工具(@pxref{Development}),高级用法的命令行接口(@pxref{Utilities}),以及Scheme编程语言接口(@pxref{Programming Interface})。"
  4378. #. type: cindex
  4379. #: guix-git/doc/guix.texi:443
  4380. #, no-wrap
  4381. msgid "build daemon"
  4382. msgstr "构建后台进程"
  4383. #. type: Plain text
  4384. #: guix-git/doc/guix.texi:447
  4385. 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})."
  4386. msgstr "@dfn{构建后台进程}为用户构建软件包(@pxref{Setting Up the Daemon}),及从授权的源(@pxref{Substitutes})下载预构建的二进制文件。"
  4387. #. type: cindex
  4388. #: guix-git/doc/guix.texi:448
  4389. #, no-wrap
  4390. msgid "extensibility of the distribution"
  4391. msgstr "发行版的扩展性"
  4392. #. type: cindex
  4393. #: guix-git/doc/guix.texi:449 guix-git/doc/guix.texi:6931
  4394. #, no-wrap
  4395. msgid "customization, of packages"
  4396. msgstr "定制软件包"
  4397. #. type: Plain text
  4398. #: guix-git/doc/guix.texi:458
  4399. 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})."
  4400. 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})。"
  4401. #. type: cindex
  4402. #: guix-git/doc/guix.texi:459
  4403. #, no-wrap
  4404. msgid "functional package management"
  4405. msgstr "函数式包管理器"
  4406. #. type: cindex
  4407. #: guix-git/doc/guix.texi:460
  4408. #, no-wrap
  4409. msgid "isolation"
  4410. msgstr "隔离"
  4411. #. type: Plain text
  4412. #: guix-git/doc/guix.texi:475
  4413. 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."
  4414. msgstr "在底层,Guix实现了由Nix(@pxref{Acknowledgments})开创的@dfn{函数式包管理器}。在Guix里,软件包构建和安装过程被视为数学意义上的@emph{函数}。函数获取输入,如构建脚本、编译器和库,并且返回一个安装好的软件包。作为一个纯函数,它的结果只取决于它的输入--例如,它不能引用没有作为显式输入传入的软件和脚本。当传入特定的输入时,一个构建函数总是得到相同的结果。它不能以任何方式修改运行系统的环境,例如,它不能创建,修改,或删除构建和安装环境之外的文件夹。这是通过在隔离的环境(@dfn{容器})里运行构建进程实现的,在这个环境里只能访问到显式的输入。"
  4415. #. type: cindex
  4416. #: guix-git/doc/guix.texi:476 guix-git/doc/guix.texi:9792
  4417. #, no-wrap
  4418. msgid "store"
  4419. msgstr "仓库"
  4420. #. type: Plain text
  4421. #: guix-git/doc/guix.texi:483
  4422. 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."
  4423. msgstr "软件包构建函数的结果被@dfn{缓存}在文件系统里的一个叫做@dfn{仓库}(@pxref{The Store})的特殊文件夹内。每个软件包都被安装在仓库(默认在@file{/gnu/store})里的一个独立的文件夹内。这个文件夹的名字含有用于构建这个软件包的所有输入的hash,所以,修改输入会得到一个不同的文件夹名。"
  4424. #. type: Plain text
  4425. #: guix-git/doc/guix.texi:487
  4426. 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})."
  4427. msgstr "这种手段是实现Guix的突出功能的基础:对事务型软件包升级和回滚的支持,每个用户独立的安装,软件包垃圾回收@pxref{Features}。"
  4428. #. type: Plain text
  4429. #: guix-git/doc/guix.texi:502
  4430. 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."
  4431. msgstr "Guix提供了一个GNU系统发行版,这个发新版只包含自由软件@footnote{这里的“自由”指的是@url{https://www.gnu.org/philosophy/free-sw.html,软件提供给用户的自由}。}。这个发行版可以独立安装(@pxref{System Installation}),但是把Guix安装为一个已经安装好的GNU/Linux系统的包管理器也是可行的(@pxref{Installation})。当我们需要区分这两者时,我们把独立的发行版称为“Guix系统”。"
  4432. #. type: Plain text
  4433. #: guix-git/doc/guix.texi:508
  4434. 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}):"
  4435. msgstr "这个发行版提供了GNU核心软件包,如libc、gcc和Binutils,以及很多GNU和非GNU应用程序。可用的软件包的完整列表可以在@url{https://www.gnu.org/software/guix/packages,on-line}浏览,或者通过运行@command{guix package}(@pxref{Invoking guix package})获得:"
  4436. #. type: example
  4437. #: guix-git/doc/guix.texi:511
  4438. #, no-wrap
  4439. msgid "guix package --list-available\n"
  4440. msgstr "guix package --list-available\n"
  4441. #. type: Plain text
  4442. #: guix-git/doc/guix.texi:517
  4443. 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."
  4444. msgstr "我们的目标是提供一个基于Linux和其它GNU变体的可用的100%自由的软件发行版,我们的重点是推广和紧密集成GNU组件,以及强调帮助用户行使那些自由的程序和工具。"
  4445. #. type: Plain text
  4446. #: guix-git/doc/guix.texi:519
  4447. msgid "Packages are currently available on the following platforms:"
  4448. msgstr "目前这些平台提供软件包:"
  4449. #. type: item
  4450. #: guix-git/doc/guix.texi:522 guix-git/doc/guix.texi:2190
  4451. #, no-wrap
  4452. msgid "x86_64-linux"
  4453. msgstr "x86_64-linux"
  4454. #. type: table
  4455. #: guix-git/doc/guix.texi:524
  4456. msgid "Intel/AMD @code{x86_64} architecture, Linux-Libre kernel."
  4457. msgstr "Intel/AMD @code{x86_64} 架构,Linux-Libre 内核。"
  4458. #. type: item
  4459. #: guix-git/doc/guix.texi:525 guix-git/doc/guix.texi:2193
  4460. #, no-wrap
  4461. msgid "i686-linux"
  4462. msgstr "i686-linux"
  4463. #. type: table
  4464. #: guix-git/doc/guix.texi:527
  4465. msgid "Intel 32-bit architecture (IA32), Linux-Libre kernel."
  4466. msgstr "Intel 32 位架构(IA32),Linux-Libre 内核。"
  4467. #. type: item
  4468. #: guix-git/doc/guix.texi:528
  4469. #, no-wrap
  4470. msgid "armhf-linux"
  4471. msgstr "armhf-linux"
  4472. #. type: table
  4473. #: guix-git/doc/guix.texi:532
  4474. msgid "ARMv7-A architecture with hard float, Thumb-2 and NEON, using the EABI hard-float application binary interface (ABI), and Linux-Libre kernel."
  4475. msgstr "ARMv7-A架构,带硬件浮点数、Thumb-2和NEON扩展,EABI硬件浮点数应用二进制接口(ABI),和Linux-Libre内核。"
  4476. #. type: item
  4477. #: guix-git/doc/guix.texi:533
  4478. #, no-wrap
  4479. msgid "aarch64-linux"
  4480. msgstr "aarch64-linux"
  4481. #. type: table
  4482. #: guix-git/doc/guix.texi:535
  4483. #, fuzzy
  4484. msgid "little-endian 64-bit ARMv8-A processors, Linux-Libre kernel."
  4485. msgstr "小端序64位MIPS处理器,龙芯系列,n32 ABI,Linux-Libre内核。"
  4486. #. type: item
  4487. #: guix-git/doc/guix.texi:536
  4488. #, no-wrap
  4489. msgid "i586-gnu"
  4490. msgstr ""
  4491. #. type: table
  4492. #: guix-git/doc/guix.texi:539
  4493. msgid "@uref{https://hurd.gnu.org, GNU/Hurd} on the Intel 32-bit architecture (IA32)."
  4494. msgstr ""
  4495. #. type: table
  4496. #: guix-git/doc/guix.texi:545
  4497. 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!"
  4498. msgstr ""
  4499. #. type: item
  4500. #: guix-git/doc/guix.texi:546
  4501. #, fuzzy, no-wrap
  4502. msgid "mips64el-linux (unsupported)"
  4503. msgstr "mips64el-linux"
  4504. #. type: table
  4505. #: guix-git/doc/guix.texi:552
  4506. 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."
  4507. msgstr ""
  4508. #. type: item
  4509. #: guix-git/doc/guix.texi:553
  4510. #, no-wrap
  4511. msgid "powerpc-linux (unsupported)"
  4512. msgstr ""
  4513. #. type: table
  4514. #: guix-git/doc/guix.texi:558
  4515. msgid "big-endian 32-bit PowerPC processors, specifically the PowerPC G4 with AltiVec support, and Linux-Libre kernel. This configuration is not fully supported and there is no ongoing work to ensure this architecture works."
  4516. msgstr ""
  4517. #. type: table
  4518. #: guix-git/doc/guix.texi:569
  4519. 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!"
  4520. msgstr ""
  4521. #. type: item
  4522. #: guix-git/doc/guix.texi:570
  4523. #, fuzzy, no-wrap
  4524. #| msgid "aarch64-linux"
  4525. msgid "riscv64-linux"
  4526. msgstr "aarch64-linux"
  4527. #. type: table
  4528. #: guix-git/doc/guix.texi:578
  4529. msgid "little-endian 64-bit RISC-V processors, specifically RV64GC, and Linux-Libre kernel. This playform is available as a \"technology preview\": although it is supported, substitutes are not yet available from the build farm (@pxref{Substitutes}), and some packages may fail to build (@pxref{Tracking Bugs and Patches}). That said, the Guix community is actively working on improving this support, and now is a great time to try it and get involved!"
  4530. msgstr ""
  4531. #. type: Plain text
  4532. #: guix-git/doc/guix.texi:588
  4533. 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."
  4534. msgstr "在Guix系统里,你@emph{声明}操作系统所有方面的配置,然后Guix以事务型的,可重复的,和无状态的方式解决实例化配置的问题(@pxref{System Configuration})。Guix系统使用Linux-Libre内核,Shepherd初始化系统@pxref{Introduction,,, shepherd, GNU Shepherd用户手册},知名的GNU工具和工具链,以及你可选的图形界面环境和系统服务。"
  4535. #. type: Plain text
  4536. #: guix-git/doc/guix.texi:592
  4537. #, fuzzy
  4538. msgid "Guix System is available on all the above platforms except @code{mips64el-linux}, @code{powerpc-linux}, @code{powerpc64le-linux} and @code{riscv64-linux}."
  4539. msgstr "Guix系统在上面所有的平台上都可用,除了@code{mips64el-linux}。"
  4540. #. type: Plain text
  4541. #: guix-git/doc/guix.texi:596
  4542. msgid "For information on porting to other architectures or kernels, @pxref{Porting}."
  4543. msgstr "关于移植到其它架构或内核的信息,@pxref{Porting}。"
  4544. #. type: Plain text
  4545. #: guix-git/doc/guix.texi:599
  4546. msgid "Building this distribution is a cooperative effort, and you are invited to join! @xref{Contributing}, for information about how you can help."
  4547. msgstr "构建这个发行版需要努力合作,欢迎你加入!关于你可以怎样提供帮助的信息,@xref{Contributing}。"
  4548. #. type: cindex
  4549. #: guix-git/doc/guix.texi:605
  4550. #, no-wrap
  4551. msgid "installing Guix"
  4552. msgstr "安装Guix"
  4553. #. type: quotation
  4554. #: guix-git/doc/guix.texi:617
  4555. 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."
  4556. 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用户身份运行。"
  4557. #. type: cindex
  4558. #: guix-git/doc/guix.texi:619 guix-git/doc/guix.texi:1849
  4559. #, no-wrap
  4560. msgid "foreign distro"
  4561. msgstr "别的发行版"
  4562. #. type: cindex
  4563. #: guix-git/doc/guix.texi:620
  4564. #, no-wrap
  4565. msgid "directories related to foreign distro"
  4566. msgstr "和foreign distro相关的文件夹"
  4567. #. type: Plain text
  4568. #: guix-git/doc/guix.texi:625
  4569. 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."
  4570. msgstr "在foreign distro上安装时,GNU@tie{}Guix可以在不引起冲突的前提下补充现有的工具。它的数据只存放在两个文件夹里,通常是@file{/gnu/store}和@file{/var/guix};系统上的其它文件,如@file{/etc},不会被修改。"
  4571. #. type: Plain text
  4572. #: guix-git/doc/guix.texi:628
  4573. msgid "Once installed, Guix can be updated by running @command{guix pull} (@pxref{Invoking guix pull})."
  4574. msgstr "一旦安装好了,可以通过运行@command{guix pull}升级Guix(@pxref{Invoking guix pull})。"
  4575. #. type: Plain text
  4576. #: guix-git/doc/guix.texi:633
  4577. 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."
  4578. msgstr "如果你希望手动执行安装步骤,或者想改变安装步骤,接下来这些小节会很有用。它们介绍Guix的软件依赖,以及如何手动安装和使用Guix。"
  4579. #. type: cindex
  4580. #: guix-git/doc/guix.texi:647
  4581. #, no-wrap
  4582. msgid "installing Guix from binaries"
  4583. msgstr "用二进制文件安装Guix"
  4584. #. type: cindex
  4585. #: guix-git/doc/guix.texi:648
  4586. #, no-wrap
  4587. msgid "installer script"
  4588. msgstr "安装脚本"
  4589. #. type: Plain text
  4590. #: guix-git/doc/guix.texi:654
  4591. 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."
  4592. msgstr "这个小节介绍如何在任意的系统上用独立的Guix二进制文件包安装Guix和它的依赖。这通常比从源代码安装更快,下一小节会介绍如何从源代码安装。唯一的需求是有GNU@tie{}tar和Xz。"
  4593. #. type: quotation
  4594. #: guix-git/doc/guix.texi:662
  4595. #, fuzzy
  4596. 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:"
  4597. msgstr "我们推荐使用这个@uref{https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh, shell安装脚本}。这个脚本自动执行下述的下载、安装并且初始化Guix的过程。它需要以root用户身份运行。"
  4598. #. type: example
  4599. #: guix-git/doc/guix.texi:668
  4600. #, no-wrap
  4601. msgid ""
  4602. "cd /tmp\n"
  4603. "wget https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh\n"
  4604. "chmod +x guix-install.sh\n"
  4605. "./guix-install.sh\n"
  4606. msgstr ""
  4607. #. type: quotation
  4608. #: guix-git/doc/guix.texi:672
  4609. msgid "When you're done, @pxref{Application Setup} for extra configuration you might need, and @ref{Getting Started} for your first steps!"
  4610. msgstr ""
  4611. #. type: Plain text
  4612. #: guix-git/doc/guix.texi:675
  4613. msgid "Installing goes along these lines:"
  4614. msgstr "安装步骤如下:"
  4615. #. type: cindex
  4616. #: guix-git/doc/guix.texi:678
  4617. #, no-wrap
  4618. msgid "downloading Guix binary"
  4619. msgstr "下载Guix二进制文件"
  4620. #. type: enumerate
  4621. #: guix-git/doc/guix.texi:684
  4622. #, fuzzy
  4623. 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})."
  4624. msgstr "从@indicateurl{@value{BASE-URL}/guix-binary-@value{VERSION}.@var{系统}.tar.xz}下载二进制安装包,对于运行Linux内核的@code{x86_64}机器来说@var{系统}是@code{x86_64-linux},以此类推。"
  4625. #. type: enumerate
  4626. #: guix-git/doc/guix.texi:688
  4627. msgid "Make sure to download the associated @file{.sig} file and to verify the authenticity of the tarball against it, along these lines:"
  4628. msgstr "请确保下载相关的@file{.sig}文件,并且用它验证文件包的可靠性,方法如下:"
  4629. #. type: example
  4630. #: guix-git/doc/guix.texi:692
  4631. #, fuzzy, no-wrap
  4632. msgid ""
  4633. "$ wget @value{BASE-URL}/guix-binary-@value{VERSION}.x86_64-linux.tar.xz.sig\n"
  4634. "$ gpg --verify guix-binary-@value{VERSION}.x86_64-linux.tar.xz.sig\n"
  4635. msgstr ""
  4636. "$ wget @value{BASE-URL}/guix-binary-@value{VERSION}.@var{系统}.tar.xz.sig\n"
  4637. "$ gpg --verify guix-binary-@value{VERSION}.@var{系统}.tar.xz.sig\n"
  4638. #. type: Plain text
  4639. #: guix-git/doc/guix.texi:696 guix-git/doc/guix.texi:2208
  4640. msgid "If that command fails because you do not have the required public key, then run this command to import it:"
  4641. msgstr "如果那个命令因为缺少所需的公钥而失败了,那么用这个命令导入它:"
  4642. #. type: example
  4643. #: guix-git/doc/guix.texi:700
  4644. #, no-wrap
  4645. msgid ""
  4646. "$ wget '@value{OPENPGP-SIGNING-KEY-URL}' \\\n"
  4647. " -qO - | gpg --import -\n"
  4648. msgstr ""
  4649. #. type: Plain text
  4650. #: guix-git/doc/guix.texi:704 guix-git/doc/guix.texi:2216
  4651. msgid "and rerun the @code{gpg --verify} command."
  4652. msgstr "再次运行@code{gpg --verify}命令。"
  4653. #. type: Plain text
  4654. #: guix-git/doc/guix.texi:707 guix-git/doc/guix.texi:2219
  4655. msgid "Take note that a warning like ``This key is not certified with a trusted signature!'' is normal."
  4656. msgstr ""
  4657. #. type: enumerate
  4658. #: guix-git/doc/guix.texi:713
  4659. 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:"
  4660. msgstr "现在你需要成为@code{root}用户。基于你的发行版,你可能需要执行@code{su -}或@code{sudo -i}。以@code{root}用户身份,执行:"
  4661. #. type: example
  4662. #: guix-git/doc/guix.texi:719
  4663. #, fuzzy, no-wrap
  4664. msgid ""
  4665. "# cd /tmp\n"
  4666. "# tar --warning=no-timestamp -xf \\\n"
  4667. " /path/to/guix-binary-@value{VERSION}.x86_64-linux.tar.xz\n"
  4668. "# mv var/guix /var/ && mv gnu /\n"
  4669. msgstr ""
  4670. "# cd /tmp\n"
  4671. "# tar --warning=no-timestamp -xf \\\n"
  4672. " guix-binary-@value{VERSION}.@var{系统}.tar.xz\n"
  4673. "# mv var/guix /var/ && mv gnu /\n"
  4674. #. type: enumerate
  4675. #: guix-git/doc/guix.texi:724
  4676. #, fuzzy
  4677. 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)."
  4678. msgstr "这会创建@file{/gnu/store}(@pxref{The Store})和@file{/var/guix}。后一个文件夹为@code{root}用户提供了一个立即可用的profile(见下一步)。"
  4679. #. type: enumerate
  4680. #: guix-git/doc/guix.texi:727
  4681. msgid "Do @emph{not} unpack the tarball on a working Guix system since that would overwrite its own essential files."
  4682. msgstr "@emph{不要}在一个正常的Guix系统上解压这个文件包,因为那会把现有的重要的文件覆盖。"
  4683. #. type: enumerate
  4684. #: guix-git/doc/guix.texi:737
  4685. #, fuzzy
  4686. 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."
  4687. msgstr "@code{--warning=no-timestamp}选项使GNU@tie{}tar不输出有关“implausibly old time stamps”的警告(这类警告会被GNU@tie{}tar 1.26或更老的版本触发;新的版本没事)。这类警告是因为文件包里的所有文件的修改时间戳都被设置为0(即1970年1月1日)。这是故意的,为了确保文件包的内容独立于创建的时间,从而使它可再现。"
  4688. #. type: enumerate
  4689. #: guix-git/doc/guix.texi:741
  4690. msgid "Make the profile available under @file{~root/.config/guix/current}, which is where @command{guix pull} will install updates (@pxref{Invoking guix pull}):"
  4691. msgstr "使profile出现在@file{~root/.config/guix/current},这是@command{guix pull}安装更新的位置(@pxref{Invoking guix pull}):"
  4692. #. type: example
  4693. #: guix-git/doc/guix.texi:746
  4694. #, no-wrap
  4695. msgid ""
  4696. "# mkdir -p ~root/.config/guix\n"
  4697. "# ln -sf /var/guix/profiles/per-user/root/current-guix \\\n"
  4698. " ~root/.config/guix/current\n"
  4699. msgstr ""
  4700. "# mkdir -p ~root/.config/guix\n"
  4701. "# ln -sf /var/guix/profiles/per-user/root/current-guix \\\n"
  4702. " ~root/.config/guix/current\n"
  4703. #. type: enumerate
  4704. #: guix-git/doc/guix.texi:750
  4705. #, fuzzy
  4706. msgid "Source @file{etc/profile} to augment @env{PATH} and other relevant environment variables:"
  4707. msgstr "执行@file{etc/profile}以更新@code{PATH}和其它相关的环境变量:"
  4708. #. type: example
  4709. #: guix-git/doc/guix.texi:754
  4710. #, no-wrap
  4711. msgid ""
  4712. "# GUIX_PROFILE=\"`echo ~root`/.config/guix/current\" ; \\\n"
  4713. " source $GUIX_PROFILE/etc/profile\n"
  4714. msgstr ""
  4715. "# GUIX_PROFILE=\"`echo ~root`/.config/guix/current\" ; \\\n"
  4716. " source $GUIX_PROFILE/etc/profile\n"
  4717. #. type: enumerate
  4718. #: guix-git/doc/guix.texi:759
  4719. msgid "Create the group and user accounts for build users as explained below (@pxref{Build Environment Setup})."
  4720. msgstr "像下面解释的那样为“构建用户”创建用户组和用户(@pxref{Build Environment Setup})。"
  4721. #. type: enumerate
  4722. #: guix-git/doc/guix.texi:762
  4723. msgid "Run the daemon, and set it to automatically start on boot."
  4724. msgstr "运行后台进程,并设置为开机自启动。"
  4725. #. type: enumerate
  4726. #: guix-git/doc/guix.texi:765
  4727. msgid "If your host distro uses the systemd init system, this can be achieved with these commands:"
  4728. msgstr "如果你的主机的发行版使用systemd init系统,可以用这些命令:"
  4729. #. type: example
  4730. #: guix-git/doc/guix.texi:778
  4731. #, fuzzy, no-wrap
  4732. msgid ""
  4733. "# cp ~root/.config/guix/current/lib/systemd/system/gnu-store.mount \\\n"
  4734. " ~root/.config/guix/current/lib/systemd/system/guix-daemon.service \\\n"
  4735. " /etc/systemd/system/\n"
  4736. "# systemctl enable --now gnu-store.mount guix-daemon\n"
  4737. msgstr ""
  4738. "# cp ~root/.config/guix/current/lib/systemd/system/guix-daemon.service \\\n"
  4739. " /etc/systemd/system/\n"
  4740. "# systemctl start guix-daemon && systemctl enable guix-daemon\n"
  4741. #. type: enumerate
  4742. #: guix-git/doc/guix.texi:781
  4743. msgid "You may also want to arrange for @command{guix gc} to run periodically:"
  4744. msgstr ""
  4745. #. type: example
  4746. #: guix-git/doc/guix.texi:787
  4747. #, fuzzy, no-wrap
  4748. msgid ""
  4749. "# cp ~root/.config/guix/current/lib/systemd/system/guix-gc.service \\\n"
  4750. " ~root/.config/guix/current/lib/systemd/system/guix-gc.timer \\\n"
  4751. " /etc/systemd/system/\n"
  4752. "# systemctl enable --now guix-gc.timer\n"
  4753. msgstr ""
  4754. "# cp ~root/.config/guix/current/lib/systemd/system/guix-daemon.service \\\n"
  4755. " /etc/systemd/system/\n"
  4756. "# systemctl start guix-daemon && systemctl enable guix-daemon\n"
  4757. #. type: enumerate
  4758. #: guix-git/doc/guix.texi:791
  4759. msgid "You may want to edit @file{guix-gc.service} to adjust the command line options to fit your needs (@pxref{Invoking guix gc})."
  4760. msgstr ""
  4761. #. type: itemize
  4762. #: guix-git/doc/guix.texi:793 guix-git/doc/guix.texi:14203
  4763. msgid "If your host distro uses the Upstart init system:"
  4764. msgstr "如果你的主机的发行版使用Upstart init系统:"
  4765. #. type: example
  4766. #: guix-git/doc/guix.texi:799
  4767. #, no-wrap
  4768. msgid ""
  4769. "# initctl reload-configuration\n"
  4770. "# cp ~root/.config/guix/current/lib/upstart/system/guix-daemon.conf \\\n"
  4771. " /etc/init/\n"
  4772. "# start guix-daemon\n"
  4773. msgstr ""
  4774. "# initctl reload-configuration\n"
  4775. "# cp ~root/.config/guix/current/lib/upstart/system/guix-daemon.conf \\\n"
  4776. " /etc/init/\n"
  4777. "# start guix-daemon\n"
  4778. #. type: enumerate
  4779. #: guix-git/doc/guix.texi:802
  4780. msgid "Otherwise, you can still start the daemon manually with:"
  4781. msgstr "此外,你可以手动启动后台进程:"
  4782. #. type: example
  4783. #: guix-git/doc/guix.texi:806
  4784. #, no-wrap
  4785. msgid ""
  4786. "# ~root/.config/guix/current/bin/guix-daemon \\\n"
  4787. " --build-users-group=guixbuild\n"
  4788. msgstr ""
  4789. "# ~root/.config/guix/current/bin/guix-daemon \\\n"
  4790. " --build-users-group=guixbuild\n"
  4791. #. type: enumerate
  4792. #: guix-git/doc/guix.texi:811
  4793. msgid "Make the @command{guix} command available to other users on the machine, for instance with:"
  4794. msgstr "使机器上的其他用户也可以使用@command{guix}命令:"
  4795. #. type: example
  4796. #: guix-git/doc/guix.texi:816
  4797. #, no-wrap
  4798. msgid ""
  4799. "# mkdir -p /usr/local/bin\n"
  4800. "# cd /usr/local/bin\n"
  4801. "# ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix\n"
  4802. msgstr ""
  4803. "# mkdir -p /usr/local/bin\n"
  4804. "# cd /usr/local/bin\n"
  4805. "# ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix\n"
  4806. #. type: enumerate
  4807. #: guix-git/doc/guix.texi:820
  4808. msgid "It is also a good idea to make the Info version of this manual available there:"
  4809. msgstr "最好让这个用户手册的Info版也可以被访问:"
  4810. #. type: example
  4811. #: guix-git/doc/guix.texi:826
  4812. #, no-wrap
  4813. msgid ""
  4814. "# mkdir -p /usr/local/share/info\n"
  4815. "# cd /usr/local/share/info\n"
  4816. "# for i in /var/guix/profiles/per-user/root/current-guix/share/info/* ;\n"
  4817. " do ln -s $i ; done\n"
  4818. msgstr ""
  4819. "# mkdir -p /usr/local/share/info\n"
  4820. "# cd /usr/local/share/info\n"
  4821. "# for i in /var/guix/profiles/per-user/root/current-guix/share/info/* ;\n"
  4822. " do ln -s $i ; done\n"
  4823. #. type: enumerate
  4824. #: guix-git/doc/guix.texi:832
  4825. #, fuzzy
  4826. 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)."
  4827. msgstr "那样,假设@file{/usr/local/share/info}在搜索路径里,运行@command{info guix}命令就会打开这个用户手册(@pxref{Other Info Directories,,, texinfo, GNU Texinfo},更多关于Info搜索路径的信息)。"
  4828. #. type: cindex
  4829. #: guix-git/doc/guix.texi:834 guix-git/doc/guix.texi:3834
  4830. #: guix-git/doc/guix.texi:16978
  4831. #, no-wrap
  4832. msgid "substitutes, authorization thereof"
  4833. msgstr "substitutes,对其授权"
  4834. #. type: enumerate
  4835. #: guix-git/doc/guix.texi:838
  4836. #, fuzzy
  4837. #| msgid "To use substitutes from @code{@value{SUBSTITUTE-SERVER}} or one of its mirrors (@pxref{Substitutes}), authorize them:"
  4838. msgid "To use substitutes from @code{@value{SUBSTITUTE-SERVER-1}}, @code{@value{SUBSTITUTE-SERVER-2}} or a mirror (@pxref{Substitutes}), authorize them:"
  4839. msgstr "为了使用@code{@value{SUBSTITUTE-SERVER}}或其镜像的substitute(@pxref{Substitutes}),对其授权:"
  4840. #. type: example
  4841. #: guix-git/doc/guix.texi:844
  4842. #, fuzzy, no-wrap
  4843. #| msgid ""
  4844. #| "# guix archive --authorize < \\\n"
  4845. #| " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER}.pub\n"
  4846. msgid ""
  4847. "# guix archive --authorize < \\\n"
  4848. " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER-1}.pub\n"
  4849. "# guix archive --authorize < \\\n"
  4850. " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER-2}.pub\n"
  4851. msgstr ""
  4852. "# guix archive --authorize < \\\n"
  4853. " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER}.pub\n"
  4854. #. type: quotation
  4855. #: guix-git/doc/guix.texi:851
  4856. 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."
  4857. msgstr ""
  4858. #. type: enumerate
  4859. #: guix-git/doc/guix.texi:856
  4860. msgid "Each user may need to perform a few additional steps to make their Guix environment ready for use, @pxref{Application Setup}."
  4861. msgstr "每个用户可能需要执行一些额外的步骤以使各自的Guix环境可用,@pxref{Application Setup}。"
  4862. #. type: Plain text
  4863. #: guix-git/doc/guix.texi:859
  4864. msgid "Voilà, the installation is complete!"
  4865. msgstr "瞧,安装完成了!"
  4866. #. type: Plain text
  4867. #: guix-git/doc/guix.texi:862
  4868. msgid "You can confirm that Guix is working by installing a sample package into the root profile:"
  4869. msgstr "你可以通过给root profile安装一个软件包来确认Guix可以正常工作。"
  4870. #. type: example
  4871. #: guix-git/doc/guix.texi:865
  4872. #, no-wrap
  4873. msgid "# guix install hello\n"
  4874. msgstr "# guix install hello\n"
  4875. #. type: Plain text
  4876. #: guix-git/doc/guix.texi:869
  4877. msgid "The binary installation tarball can be (re)produced and verified simply by running the following command in the Guix source tree:"
  4878. msgstr "二进制安装包可以通过在Guix源代码树里运行下面这些命令来重现和验证:"
  4879. #. type: example
  4880. #: guix-git/doc/guix.texi:872
  4881. #, no-wrap
  4882. msgid "make guix-binary.@var{system}.tar.xz\n"
  4883. msgstr "make guix-binary.@var{系统}.tar.xz\n"
  4884. #. type: Plain text
  4885. #: guix-git/doc/guix.texi:876
  4886. msgid "...@: which, in turn, runs:"
  4887. msgstr "...@: 这个命令会执行:"
  4888. #. type: example
  4889. #: guix-git/doc/guix.texi:880
  4890. #, no-wrap
  4891. msgid ""
  4892. "guix pack -s @var{system} --localstatedir \\\n"
  4893. " --profile-name=current-guix guix\n"
  4894. msgstr ""
  4895. "guix pack -s @var{系统} --localstatedir \\\n"
  4896. " --profile-name=current-guix guix\n"
  4897. #. type: Plain text
  4898. #: guix-git/doc/guix.texi:883
  4899. msgid "@xref{Invoking guix pack}, for more info on this handy tool."
  4900. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  4901. #. type: Plain text
  4902. #: guix-git/doc/guix.texi:891
  4903. 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."
  4904. msgstr "这个小节列举了从源代码构建Guix的需求。构建Guix的步骤和其它GNU软件相同,这里不介绍。请阅读Guix源代码树里的@file{README}和@file{INSTALL}文件以了解更多的信息。"
  4905. #. type: cindex
  4906. #: guix-git/doc/guix.texi:892
  4907. #, no-wrap
  4908. msgid "official website"
  4909. msgstr "官方网站"
  4910. #. type: Plain text
  4911. #: guix-git/doc/guix.texi:895
  4912. msgid "GNU Guix is available for download from its website at @url{https://www.gnu.org/software/guix/}."
  4913. msgstr "GNU Guix可以从它的网站下载@url{https://www.gnu.org/software/guix/}。"
  4914. #. type: Plain text
  4915. #: guix-git/doc/guix.texi:897
  4916. msgid "GNU Guix depends on the following packages:"
  4917. msgstr "GNU Guix依赖这些软件包:"
  4918. #. type: item
  4919. #: guix-git/doc/guix.texi:899
  4920. #, fuzzy, no-wrap
  4921. msgid "@url{https://gnu.org/software/guile/, GNU Guile}, version 3.0.x,"
  4922. msgstr "@url{https://gnu.org/software/guile/, GNU Guile},版本2.2.x;"
  4923. #. type: itemize
  4924. #: guix-git/doc/guix.texi:901
  4925. #, fuzzy
  4926. msgid "version 3.0.3 or later;"
  4927. msgstr "0.1.0或更新;"
  4928. #. type: item
  4929. #: guix-git/doc/guix.texi:901
  4930. #, no-wrap
  4931. msgid "@url{https://notabug.org/cwebber/guile-gcrypt, Guile-Gcrypt}, version"
  4932. msgstr "@url{https://notabug.org/cwebber/guile-gcrypt, Guile-Gcrypt},版本"
  4933. #. type: itemize
  4934. #: guix-git/doc/guix.texi:903
  4935. msgid "0.1.0 or later;"
  4936. msgstr "0.1.0或更新;"
  4937. #. type: itemize
  4938. #: guix-git/doc/guix.texi:907
  4939. 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});"
  4940. msgstr "@uref{https://gnutls.org/, GnuTLS},特别是它的Guile接口(@pxref{Guile Preparations, 怎样为Guile安装GnuTLS接口,, gnutls-guile, GnuTLS-Guile});"
  4941. #. type: itemize
  4942. #: guix-git/doc/guix.texi:910
  4943. msgid "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3}, version 0.1.0 or later;"
  4944. msgstr "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3},版本0.1.0或更新;"
  4945. #. type: item
  4946. #: guix-git/doc/guix.texi:910
  4947. #, fuzzy, no-wrap
  4948. msgid "@uref{https://notabug.org/guile-zlib/guile-zlib, Guile-zlib},"
  4949. msgstr "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3},版本0.1.0或更新;"
  4950. #. type: itemize
  4951. #: guix-git/doc/guix.texi:912
  4952. #, fuzzy
  4953. msgid "version 0.1.0 or later;"
  4954. msgstr "0.1.0或更新;"
  4955. #. type: item
  4956. #: guix-git/doc/guix.texi:912
  4957. #, fuzzy, no-wrap
  4958. msgid "@uref{https://notabug.org/guile-lzlib/guile-lzlib, Guile-lzlib};"
  4959. msgstr "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3},版本0.1.0或更新;"
  4960. #. type: item
  4961. #: guix-git/doc/guix.texi:913
  4962. #, no-wrap
  4963. msgid "@uref{https://www.nongnu.org/guile-avahi/, Guile-Avahi};"
  4964. msgstr "@uref{https://www.nongnu.org/guile-avahi/, Guile-Avahi};"
  4965. #. type: itemize
  4966. #: guix-git/doc/guix.texi:917
  4967. #, fuzzy
  4968. msgid "@uref{https://gitlab.com/guile-git/guile-git, Guile-Git}, version 0.5.0 or later;"
  4969. msgstr "@uref{https://gitlab.com/guile-git/guile-git, Guile-Git},2017年8月及之后的版本;"
  4970. #. type: item
  4971. #: guix-git/doc/guix.texi:917
  4972. #, fuzzy, no-wrap
  4973. msgid "@uref{https://savannah.nongnu.org/projects/guile-json/, Guile-JSON}"
  4974. msgstr "@uref{https://savannah.nongnu.org/projects/guile-json/, Guile-JSON};"
  4975. #. type: itemize
  4976. #: guix-git/doc/guix.texi:919
  4977. #, fuzzy
  4978. msgid "4.3.0 or later;"
  4979. msgstr "0.1.0或更新;"
  4980. #. type: item
  4981. #: guix-git/doc/guix.texi:919
  4982. #, no-wrap
  4983. msgid "@url{https://www.gnu.org/software/make/, GNU Make}."
  4984. msgstr "@url{https://www.gnu.org/software/make/, GNU Make}。"
  4985. #. type: Plain text
  4986. #: guix-git/doc/guix.texi:923
  4987. msgid "The following dependencies are optional:"
  4988. msgstr "这些依赖是可选的:"
  4989. #. type: itemize
  4990. #: guix-git/doc/guix.texi:931
  4991. #, fuzzy
  4992. 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."
  4993. 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或更新。"
  4994. #. type: itemize
  4995. #: guix-git/doc/guix.texi:936
  4996. 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})."
  4997. msgstr ""
  4998. #. type: itemize
  4999. #: guix-git/doc/guix.texi:940
  5000. msgid "@uref{https://ngyro.com/software/guile-semver.html, Guile-Semver} for the @code{crate} importer (@pxref{Invoking guix import})."
  5001. msgstr ""
  5002. #. type: itemize
  5003. #: guix-git/doc/guix.texi:945
  5004. 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})."
  5005. msgstr ""
  5006. #. type: itemize
  5007. #: guix-git/doc/guix.texi:949
  5008. msgid "When @url{http://www.bzip.org, libbz2} is available, @command{guix-daemon} can use it to compress build logs."
  5009. msgstr "当@url{http://www.bzip.org, libbz2}存在时,@command{guix-daemon}可以用它压缩构建日志。"
  5010. #. type: Plain text
  5011. #: guix-git/doc/guix.texi:953
  5012. #, fuzzy
  5013. msgid "Unless @option{--disable-daemon} was passed to @command{configure}, the following packages are also needed:"
  5014. msgstr "除非@code{--disable-daemon}参数被传给@command{configure},这些软件包也是需要的依赖:"
  5015. #. type: item
  5016. #: guix-git/doc/guix.texi:955
  5017. #, no-wrap
  5018. msgid "@url{https://gnupg.org/, GNU libgcrypt};"
  5019. msgstr "@url{https://gnupg.org/, GNU libgcrypt};"
  5020. #. type: item
  5021. #: guix-git/doc/guix.texi:956
  5022. #, no-wrap
  5023. msgid "@url{https://sqlite.org, SQLite 3};"
  5024. msgstr "@url{https://sqlite.org, SQLite 3};"
  5025. #. type: item
  5026. #: guix-git/doc/guix.texi:957
  5027. #, no-wrap
  5028. msgid "@url{https://gcc.gnu.org, GCC's g++}, with support for the"
  5029. msgstr "@url{https://gcc.gnu.org, GCC's g++},支持"
  5030. #. type: itemize
  5031. #: guix-git/doc/guix.texi:959
  5032. msgid "C++11 standard."
  5033. msgstr "C++11标准。"
  5034. #. type: cindex
  5035. #: guix-git/doc/guix.texi:961
  5036. #, no-wrap
  5037. msgid "state directory"
  5038. msgstr "状态文件夹"
  5039. #. type: Plain text
  5040. #: guix-git/doc/guix.texi:970
  5041. #, fuzzy
  5042. 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})."
  5043. msgstr "当在一个已经安装Guix的系统上配置Guix时,请确保用@command{configure}的@code{--localstatedir}参数指定和现有的安装相同的状态文件夹(@pxref{Directory Variables, @code{localstatedir},, standards, GNU Coding Standards})。@command{configure}保护你免于误设置@var{localstatedir},从而不会无意中损坏仓库(@pxref{The Store})。"
  5044. #. type: cindex
  5045. #: guix-git/doc/guix.texi:974
  5046. #, no-wrap
  5047. msgid "test suite"
  5048. msgstr "测试套件"
  5049. #. type: Plain text
  5050. #: guix-git/doc/guix.texi:980
  5051. 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:"
  5052. msgstr "成功执行@command{configure}和@code{make}之后,最好运行测试套件。它可以帮助查找设置和环境的错误,或者是Guix自身的bug--并且,报告测试错误是帮助改进软件的好方法。输入下面的命令以执行测试套件。"
  5053. #. type: example
  5054. #: guix-git/doc/guix.texi:983
  5055. #, no-wrap
  5056. msgid "make check\n"
  5057. msgstr "make check\n"
  5058. #. type: Plain text
  5059. #: guix-git/doc/guix.texi:990
  5060. 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."
  5061. msgstr "测试用例可以并行运行:你可以用GNU@tie{}make的@code{-j}参数来加速运行。才一台较新的机器上第一次运行可能会花几分钟,后续的运行会更快,因为为测试创建的仓库已经包含了各种缓存。"
  5062. #. type: Plain text
  5063. #: guix-git/doc/guix.texi:993
  5064. msgid "It is also possible to run a subset of the tests by defining the @code{TESTS} makefile variable as in this example:"
  5065. msgstr "你还可以通过定义makefile的@code{TESTS}变量只运行测试的一个子集:"
  5066. #. type: example
  5067. #: guix-git/doc/guix.texi:996
  5068. #, no-wrap
  5069. msgid "make check TESTS=\"tests/store.scm tests/cpio.scm\"\n"
  5070. msgstr "make check TESTS=\"tests/store.scm tests/cpio.scm\"\n"
  5071. #. type: Plain text
  5072. #: guix-git/doc/guix.texi:1001
  5073. 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:"
  5074. msgstr "默认情况下,测试结果只展示到文件层级。为了看每个独立的测试用例的详情,可以像这样定义@code{SCM_LOG_DRIVER_FLAGS} makefile变量:"
  5075. #. type: example
  5076. #: guix-git/doc/guix.texi:1004
  5077. #, no-wrap
  5078. msgid "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  5079. msgstr "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  5080. #. type: Plain text
  5081. #: guix-git/doc/guix.texi:1012
  5082. 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'':"
  5083. msgstr ""
  5084. #. type: example
  5085. #: guix-git/doc/guix.texi:1016
  5086. #, no-wrap
  5087. msgid ""
  5088. "export SCM_LOG_DRIVER_FLAGS=\"--select=^transaction-upgrade-entry\"\n"
  5089. "make check TESTS=\"tests/packages.scm\"\n"
  5090. msgstr ""
  5091. #. type: Plain text
  5092. #: guix-git/doc/guix.texi:1022
  5093. 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:"
  5094. msgstr ""
  5095. #. type: example
  5096. #: guix-git/doc/guix.texi:1025
  5097. #, fuzzy, no-wrap
  5098. msgid "make check SCM_LOG_DRIVER_FLAGS=\"--brief=no --errors-only=yes\" VERBOSE=1\n"
  5099. msgstr "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  5100. #. type: Plain text
  5101. #: guix-git/doc/guix.texi:1030
  5102. 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}:"
  5103. msgstr ""
  5104. #. type: example
  5105. #: guix-git/doc/guix.texi:1033
  5106. #, fuzzy, no-wrap
  5107. msgid "make check SCM_LOG_DRIVER_FLAGS=\"--brief=no --show-duration=yes\"\n"
  5108. msgstr "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  5109. #. type: Plain text
  5110. #: guix-git/doc/guix.texi:1037
  5111. msgid "@xref{Parallel Test Harness,,,automake,GNU Automake} for more information about the Automake Parallel Test Harness."
  5112. msgstr ""
  5113. #. type: Plain text
  5114. #: guix-git/doc/guix.texi:1042
  5115. 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."
  5116. msgstr "遇到错误时,请给@email{bug-guix@@gnu.org}发邮件,并附带@file{test-suite.log}文件。请在消息里说明使用的Guix的版本信息和依赖(@pxref{Requirements})的版本信息。"
  5117. #. type: Plain text
  5118. #: guix-git/doc/guix.texi:1046
  5119. 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:"
  5120. msgstr "Guix还附带了一个可以测试整个Guix系统实例的全系统测试套件。它只能在已经安装Guix的系统上运行:"
  5121. #. type: example
  5122. #: guix-git/doc/guix.texi:1049
  5123. #, no-wrap
  5124. msgid "make check-system\n"
  5125. msgstr "make check-system\n"
  5126. #. type: Plain text
  5127. #: guix-git/doc/guix.texi:1053
  5128. msgid "or, again, by defining @code{TESTS} to select a subset of tests to run:"
  5129. msgstr "或者,同样的,通过定义@code{TESTS}只运行测试的一个子集:"
  5130. #. type: example
  5131. #: guix-git/doc/guix.texi:1056
  5132. #, no-wrap
  5133. msgid "make check-system TESTS=\"basic mcron\"\n"
  5134. msgstr "make check-system TESTS=\"basic mcron\"\n"
  5135. #. type: Plain text
  5136. #: guix-git/doc/guix.texi:1064
  5137. 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."
  5138. msgstr "这些系统测试是在@code{(gnu tests @dots{})}模块里定义的。它们在虚拟机(VM)里运行轻量的指令。它们的计算量可能很多也可能很少,这取决于它们依赖的substitute(@pxref{Substitutes})是否已经存在。它们之中有些需要很多存储空间以保存虚拟机硬盘。"
  5139. #. type: Plain text
  5140. #: guix-git/doc/guix.texi:1067
  5141. msgid "Again in case of test failures, please send @email{bug-guix@@gnu.org} all the details."
  5142. msgstr "再重复一遍,如果遇到测试错误,请给@email{bug-guix@@gnu.org}发邮件,并附带详细的说明。"
  5143. #. type: cindex
  5144. #: guix-git/doc/guix.texi:1071
  5145. #, no-wrap
  5146. msgid "daemon"
  5147. msgstr "后台进程"
  5148. #. type: Plain text
  5149. #: guix-git/doc/guix.texi:1079
  5150. 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."
  5151. msgstr "构建软件包或运行垃圾回收器之类的操作都是由一个特殊的进程代替客户执行的,即@dfn{构建后台进程}。只有这个进程可以访问仓库和相关的数据库。因此,所有修改仓库的操作都通过这个后台进程执行。例如,@command{guix package}和@command{guix build}之类的命令行工具通过和这个后台进程通信(@i{通过}远程过程调用)来指示它该做什么。"
  5152. #. type: Plain text
  5153. #: guix-git/doc/guix.texi:1083
  5154. 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."
  5155. msgstr "接下来的几个小节介绍如何准备“构建后台进程”的环境。参考@ref{Substitutes},了解怎样允许这个后台进程下载预构建好的二进制文件。"
  5156. #. type: cindex
  5157. #: guix-git/doc/guix.texi:1093 guix-git/doc/guix.texi:1561
  5158. #, no-wrap
  5159. msgid "build environment"
  5160. msgstr "构建环境"
  5161. #. type: Plain text
  5162. #: guix-git/doc/guix.texi:1101
  5163. 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."
  5164. msgstr "在一个标准的多用户设置里,Guix和它的后台进程--@command{guix-daemon}程序--是由@code{root}用户安装的,并且@command{guix-daemon}以@code{root}用户身份运行。无特权的用户可以用Guix的工具构建软件包或访问仓库,这个后台进程会代替用户进行这些操作,以确保仓库保持一致的状态,并且允许构建好的软件包可以在不同用户间共享。"
  5165. #. type: cindex
  5166. #: guix-git/doc/guix.texi:1102
  5167. #, no-wrap
  5168. msgid "build users"
  5169. msgstr "构建用户"
  5170. #. type: Plain text
  5171. #: guix-git/doc/guix.texi:1113
  5172. 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})."
  5173. msgstr "当@command{guix-daemon}以@code{root}用户身份运行时,由于安全方面的考虑,你可能不希望软件包构建进程也以@code{root}用户身份运行。为了避免那样,我们需要创建一个@dfn{构建用户}池,以供后台进程启动的构建进程使用。这些构建用户不需要拥有shell和家目录:他们只会在后台进程为构建进程剥夺@code{root}特权时使用。拥有多个这类用户使后台进程可以以不同的UID启动不同的构建进程,这保证它们不会互相干扰--这是一个重要的功能,因为构建被视为纯函数(@pxref{Introduction})。"
  5174. #. type: Plain text
  5175. #: guix-git/doc/guix.texi:1116
  5176. msgid "On a GNU/Linux system, a build user pool may be created like this (using Bash syntax and the @code{shadow} commands):"
  5177. msgstr "在一个GNU/Linux系统上,可以这样创建一个构建用户池(用bash语法和@code{shadow}命令):"
  5178. #. type: example
  5179. #: guix-git/doc/guix.texi:1128
  5180. #, fuzzy, no-wrap
  5181. msgid ""
  5182. "# groupadd --system guixbuild\n"
  5183. "# for i in $(seq -w 1 10);\n"
  5184. " do\n"
  5185. " useradd -g guixbuild -G guixbuild \\\n"
  5186. " -d /var/empty -s $(which nologin) \\\n"
  5187. " -c \"Guix build user $i\" --system \\\n"
  5188. " guixbuilder$i;\n"
  5189. " done\n"
  5190. msgstr ""
  5191. "# groupadd --system guixbuild\n"
  5192. "# for i in `seq -w 1 10`;\n"
  5193. " do\n"
  5194. " useradd -g guixbuild -G guixbuild \\\n"
  5195. " -d /var/empty -s `which nologin` \\\n"
  5196. " -c \"Guix build user $i\" --system \\\n"
  5197. " guixbuilder$i;\n"
  5198. " done\n"
  5199. #. type: Plain text
  5200. #: guix-git/doc/guix.texi:1138
  5201. 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})."
  5202. 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})。"
  5203. #. type: Plain text
  5204. #: guix-git/doc/guix.texi:1147
  5205. 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}.}:"
  5206. 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}文件夹里}:"
  5207. #. type: example
  5208. #: guix-git/doc/guix.texi:1150 guix-git/doc/guix.texi:1554
  5209. #, no-wrap
  5210. msgid "# guix-daemon --build-users-group=guixbuild\n"
  5211. msgstr "# guix-daemon --build-users-group=guixbuild\n"
  5212. #. type: cindex
  5213. #: guix-git/doc/guix.texi:1152 guix-git/doc/guix.texi:1559
  5214. #, no-wrap
  5215. msgid "chroot"
  5216. msgstr "chroot"
  5217. #. type: Plain text
  5218. #: guix-git/doc/guix.texi:1157
  5219. 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:"
  5220. msgstr "这样,后台进程在一个chroot环境里,以一个@code{guixbuilder}用户组成员的身份启动构建进程。在GNU/Linux上,默认的,这个chroot环境仅包含这些东西:"
  5221. #. type: itemize
  5222. #: guix-git/doc/guix.texi:1165
  5223. 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.};"
  5224. msgstr "一个和主机@code{/dev}独立的@footnote{大致这样,因为虽然chroot环境里的@code{/dev}包含的文件是固定的,大部分这些文件只有在主机有对应的文件时才能创建。},最小的@code{/dev}文件夹;"
  5225. #. type: itemize
  5226. #: guix-git/doc/guix.texi:1169
  5227. msgid "the @code{/proc} directory; it only shows the processes of the container since a separate PID name space is used;"
  5228. msgstr "@code{/proc}文件夹;它只含有当前容器的进程,因为用了一个独立的进程PID命名空间;"
  5229. #. type: itemize
  5230. #: guix-git/doc/guix.texi:1173
  5231. msgid "@file{/etc/passwd} with an entry for the current user and an entry for user @file{nobody};"
  5232. msgstr "@file{/etc/passwd},仅包含当前用户和@file{nobody};"
  5233. #. type: itemize
  5234. #: guix-git/doc/guix.texi:1176
  5235. msgid "@file{/etc/group} with an entry for the user's group;"
  5236. msgstr "@file{/etc/group},包含用户的组;"
  5237. #. type: itemize
  5238. #: guix-git/doc/guix.texi:1180
  5239. msgid "@file{/etc/hosts} with an entry that maps @code{localhost} to @code{127.0.0.1};"
  5240. msgstr "@file{/etc/hosts},包含@code{localhost}映射到@code{127.0.0.1}的条目;"
  5241. #. type: itemize
  5242. #: guix-git/doc/guix.texi:1183
  5243. msgid "a writable @file{/tmp} directory."
  5244. msgstr "一个可写的@file{/tmp}文件夹。"
  5245. #. type: Plain text
  5246. #: guix-git/doc/guix.texi:1189
  5247. msgid "The chroot does not contain a @file{/home} directory, and the @env{HOME} environment variable is set to the non-existent @file{/homeless-shelter}. This helps to highlight inappropriate uses of @env{HOME} in the build scripts of packages."
  5248. msgstr ""
  5249. #. type: Plain text
  5250. #: guix-git/doc/guix.texi:1197
  5251. #, fuzzy
  5252. 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."
  5253. msgstr "你可以@i{通过}@code{TMPDIR}环境变量修改后台进程保存构建树的位置。但是,chroot里的构建树总是在@file{/tmp/guix-build-@var{名字}.drv-0},@var{名字}是derivation的名字--如@code{coreutils-8.24}。这样,@code{TMPDIR}的值就不会泄漏到构建环境里,这可以避免由构建进程读取构建树名字引起的问题。"
  5254. #. type: vindex
  5255. #: guix-git/doc/guix.texi:1198 guix-git/doc/guix.texi:4043
  5256. #, no-wrap
  5257. msgid "http_proxy"
  5258. msgstr "http_proxy"
  5259. #. type: vindex
  5260. #: guix-git/doc/guix.texi:1199 guix-git/doc/guix.texi:4044
  5261. #, fuzzy, no-wrap
  5262. msgid "https_proxy"
  5263. msgstr "http_proxy"
  5264. #. type: Plain text
  5265. #: guix-git/doc/guix.texi:1204
  5266. #, fuzzy
  5267. 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})."
  5268. msgstr "后台进程通过HTTP下载时还遵守@code{http_proxy}环境变量,无论是下载derivation(@pxref{Derivations}),还是下载substitute(@pxref{Substitutes})。"
  5269. #. type: Plain text
  5270. #: guix-git/doc/guix.texi:1212
  5271. #, fuzzy
  5272. 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."
  5273. msgstr "如果你是以无特权的用户的身份安装Guix,你仍可以运行@command{guix-daemon},只要添加@code{--disable-chroot}参数就行了。但是,构建进程不会互相隔离,也不会和系统的其它部分隔离。因此,构建进程有可能互相干扰,可以访问程序、库和系统上的其它文件--这样就很难把它看作@emph{纯}函数。"
  5274. #. type: subsection
  5275. #: guix-git/doc/guix.texi:1215
  5276. #, no-wrap
  5277. msgid "Using the Offload Facility"
  5278. msgstr "使用任务下发设施"
  5279. #. type: cindex
  5280. #: guix-git/doc/guix.texi:1217 guix-git/doc/guix.texi:1620
  5281. #, no-wrap
  5282. msgid "offloading"
  5283. msgstr "下发"
  5284. #. type: cindex
  5285. #: guix-git/doc/guix.texi:1218
  5286. #, no-wrap
  5287. msgid "build hook"
  5288. msgstr "构建钩子"
  5289. #. type: Plain text
  5290. #: guix-git/doc/guix.texi:1237
  5291. #, fuzzy
  5292. 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:"
  5293. 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复制到目标机器,然后继续构建;成功后,构建输出的结果被复制回初始的机器上。"
  5294. #. type: enumerate
  5295. #: guix-git/doc/guix.texi:1243
  5296. 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."
  5297. msgstr ""
  5298. #. type: enumerate
  5299. #: guix-git/doc/guix.texi:1247
  5300. msgid "Its relative speed, as defined via the @code{speed} field of its @code{build-machine} object."
  5301. msgstr ""
  5302. #. type: enumerate
  5303. #: guix-git/doc/guix.texi:1252
  5304. 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."
  5305. msgstr ""
  5306. #. type: enumerate
  5307. #: guix-git/doc/guix.texi:1255
  5308. msgid "Disk space availability. More than a 100 MiB must be available."
  5309. msgstr ""
  5310. #. type: Plain text
  5311. #: guix-git/doc/guix.texi:1258
  5312. msgid "The @file{/etc/guix/machines.scm} file typically looks like this:"
  5313. msgstr "@file{/etc/guix/machines.scm}文件通常是这样的:"
  5314. #. type: lisp
  5315. #: guix-git/doc/guix.texi:1266
  5316. #, fuzzy, no-wrap
  5317. msgid ""
  5318. "(list (build-machine\n"
  5319. " (name \"eightysix.example.org\")\n"
  5320. " (systems (list \"x86_64-linux\" \"i686-linux\"))\n"
  5321. " (host-key \"ssh-ed25519 AAAAC3Nza@dots{}\")\n"
  5322. " (user \"bob\")\n"
  5323. " (speed 2.)) ;incredibly fast!\n"
  5324. "\n"
  5325. msgstr ""
  5326. "(list (build-machine\n"
  5327. " (name \"eightysix.example.org\")\n"
  5328. " (system \"x86_64-linux\")\n"
  5329. " (host-key \"ssh-ed25519 AAAAC3Nza@dots{}\")\n"
  5330. " (user \"bob\")\n"
  5331. " (speed 2.)) ;非常快!\n"
  5332. "\n"
  5333. #. type: lisp
  5334. #: guix-git/doc/guix.texi:1272
  5335. #, fuzzy, no-wrap
  5336. msgid ""
  5337. " (build-machine\n"
  5338. " (name \"armeight.example.org\")\n"
  5339. " (systems (list \"aarch64-linux\"))\n"
  5340. " (host-key \"ssh-rsa AAAAB3Nza@dots{}\")\n"
  5341. " (user \"alice\")\n"
  5342. "\n"
  5343. msgstr ""
  5344. "(list (build-machine\n"
  5345. " (name \"eightysix.example.org\")\n"
  5346. " (system \"x86_64-linux\")\n"
  5347. " (host-key \"ssh-ed25519 AAAAC3Nza@dots{}\")\n"
  5348. " (user \"bob\")\n"
  5349. " (speed 2.)) ;非常快!\n"
  5350. "\n"
  5351. #. type: lisp
  5352. #: guix-git/doc/guix.texi:1276
  5353. #, no-wrap
  5354. msgid ""
  5355. " ;; Remember 'guix offload' is spawned by\n"
  5356. " ;; 'guix-daemon' as root.\n"
  5357. " (private-key \"/root/.ssh/identity-for-guix\")))\n"
  5358. msgstr ""
  5359. #. type: Plain text
  5360. #: guix-git/doc/guix.texi:1282
  5361. #, fuzzy
  5362. 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."
  5363. msgstr "在上面的例子里,我们指定了一个包含两个构建机器的列表,一个是@code{x86_64}架构,一个是@code{mips64el}架构。"
  5364. #. type: Plain text
  5365. #: guix-git/doc/guix.texi:1291
  5366. 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."
  5367. msgstr "事实上,这个文件--并不意外地--是一个Scheme文件,当@code{下发}钩子被启动时执行。它的返回值必须是一个包含@code{build-machine}对象的列表。虽然这个例子展示的是一个固定的列表,你可以想象,使用DNS-SD来返回一个包含从局域网内发现的构建机器的列表,@pxref{Introduction, Guile-Avahi,, guile-avahi, 在Guile Scheme程序里使用Avahi}。@code{build-machine}数据类型的详细信息如下。"
  5368. #. type: deftp
  5369. #: guix-git/doc/guix.texi:1292
  5370. #, no-wrap
  5371. msgid "{Data Type} build-machine"
  5372. msgstr "{数据类型} build-machine"
  5373. #. type: deftp
  5374. #: guix-git/doc/guix.texi:1295
  5375. msgid "This data type represents build machines to which the daemon may offload builds. The important fields are:"
  5376. msgstr "这个数据类型表示后台进程可以下发构建任务的构建机器。重要的项有:"
  5377. #. type: item
  5378. #: guix-git/doc/guix.texi:1298 guix-git/doc/guix.texi:7181
  5379. #: guix-git/doc/guix.texi:15926 guix-git/doc/guix.texi:16025
  5380. #: guix-git/doc/guix.texi:16266 guix-git/doc/guix.texi:17815
  5381. #: guix-git/doc/guix.texi:18436 guix-git/doc/guix.texi:18710
  5382. #: guix-git/doc/guix.texi:22254 guix-git/doc/guix.texi:25164
  5383. #: guix-git/doc/guix.texi:26463 guix-git/doc/guix.texi:27075
  5384. #: guix-git/doc/guix.texi:27429 guix-git/doc/guix.texi:27470
  5385. #: guix-git/doc/guix.texi:29645 guix-git/doc/guix.texi:32018
  5386. #: guix-git/doc/guix.texi:32038 guix-git/doc/guix.texi:34798
  5387. #: guix-git/doc/guix.texi:34815 guix-git/doc/guix.texi:35354
  5388. #: guix-git/doc/guix.texi:37190 guix-git/doc/guix.texi:37517
  5389. #, no-wrap
  5390. msgid "name"
  5391. msgstr "名字"
  5392. #. type: table
  5393. #: guix-git/doc/guix.texi:1300
  5394. msgid "The host name of the remote machine."
  5395. msgstr "远程机器的主机名。"
  5396. #. type: item
  5397. #: guix-git/doc/guix.texi:1301
  5398. #, fuzzy, no-wrap
  5399. msgid "systems"
  5400. msgstr "系统"
  5401. #. type: table
  5402. #: guix-git/doc/guix.texi:1304
  5403. #, fuzzy
  5404. msgid "The system types the remote machine supports---e.g., @code{(list \"x86_64-linux\" \"i686-linux\")}."
  5405. msgstr "远程机器的系统类型--如,@code{\"x86_64-linux\"}。"
  5406. #. type: code{#1}
  5407. #: guix-git/doc/guix.texi:1305 guix-git/doc/guix.texi:18446
  5408. #, no-wrap
  5409. msgid "user"
  5410. msgstr "用户"
  5411. #. type: table
  5412. #: guix-git/doc/guix.texi:1309
  5413. 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."
  5414. msgstr "通过SSH连接远程机器时使用的用户帐号。注意,SSH密钥@emph{不}能被密码保护,以支持无交互的登录。"
  5415. #. type: item
  5416. #: guix-git/doc/guix.texi:1310
  5417. #, no-wrap
  5418. msgid "host-key"
  5419. msgstr "主机公钥"
  5420. #. type: table
  5421. #: guix-git/doc/guix.texi:1314
  5422. 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:"
  5423. msgstr "这必须是机器的OpenSSH格式的SSH@dfn{公钥}。这是用来在连接机器时认证身份的。它是一个像这样的长字符串:"
  5424. #. type: example
  5425. #: guix-git/doc/guix.texi:1317
  5426. #, no-wrap
  5427. msgid "ssh-ed25519 AAAAC3NzaC@dots{}mde+UhL hint@@example.org\n"
  5428. msgstr "ssh-ed25519 AAAAC3NzaC@dots{}mde+UhL hint@@example.org\n"
  5429. #. type: table
  5430. #: guix-git/doc/guix.texi:1322
  5431. 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}."
  5432. msgstr "如果这个机器正在运行OpenSSH后台进程,@command{sshd},那么主机公钥可以在@file{/etc/ssh/ssh_host_ed25519_key.pub}找到。"
  5433. #. type: table
  5434. #: guix-git/doc/guix.texi:1327
  5435. 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}):"
  5436. msgstr "如果这个机器正在运行GNU@tie{}lsh,@command{lshd},那么主机公钥可以在@file{/etc/lsh/host-key.pub}或类似的位置找到。它可以通过@command{lsh-export-key}命令转换成OpenSSH格式(@pxref{Converting keys,,, lsh, LSH用户手册}):"
  5437. #. type: example
  5438. #: guix-git/doc/guix.texi:1331
  5439. #, fuzzy, no-wrap
  5440. msgid ""
  5441. "$ lsh-export-key --openssh < /etc/lsh/host-key.pub\n"
  5442. "ssh-rsa AAAAB3NzaC1yc2EAAAAEOp8FoQAAAQEAs1eB46LV@dots{}\n"
  5443. msgstr ""
  5444. "$ lsh-export-key --openssh < /etc/lsh/host-key.pub \n"
  5445. "ssh-rsa AAAAB3NzaC1yc2EAAAAEOp8FoQAAAQEAs1eB46LV@dots{}\n"
  5446. #. type: deftp
  5447. #: guix-git/doc/guix.texi:1336
  5448. msgid "A number of optional fields may be specified:"
  5449. msgstr "一些可选的项:"
  5450. #. type: item
  5451. #: guix-git/doc/guix.texi:1339 guix-git/doc/guix.texi:36666
  5452. #, no-wrap
  5453. msgid "@code{port} (default: @code{22})"
  5454. msgstr "@code{port}(默认值:@code{22})"
  5455. #. type: table
  5456. #: guix-git/doc/guix.texi:1341
  5457. msgid "Port number of SSH server on the machine."
  5458. msgstr "机器上的SSH服务器的端口号。"
  5459. #. type: item
  5460. #: guix-git/doc/guix.texi:1342
  5461. #, no-wrap
  5462. msgid "@code{private-key} (default: @file{~root/.ssh/id_rsa})"
  5463. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  5464. #. type: table
  5465. #: guix-git/doc/guix.texi:1345
  5466. 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."
  5467. msgstr "连接机器时使用的SSH私钥,OpenSSH格式。这个私钥不能被密码保护。"
  5468. #. type: table
  5469. #: guix-git/doc/guix.texi:1348
  5470. msgid "Note that the default value is the private key @emph{of the root account}. Make sure it exists if you use the default."
  5471. msgstr "注意,默认值是@emph{root帐号}的私钥。使用默认值时请确保它存在。"
  5472. #. type: item
  5473. #: guix-git/doc/guix.texi:1349
  5474. #, no-wrap
  5475. msgid "@code{compression} (default: @code{\"zlib@@openssh.com,zlib\"})"
  5476. msgstr "@code{compression}(默认值:@code{\"zlib@@openssh.com,zlib\"})"
  5477. #. type: itemx
  5478. #: guix-git/doc/guix.texi:1350
  5479. #, no-wrap
  5480. msgid "@code{compression-level} (default: @code{3})"
  5481. msgstr "@code{compression-level}(默认值:@code{3})"
  5482. #. type: table
  5483. #: guix-git/doc/guix.texi:1352
  5484. msgid "The SSH-level compression methods and compression level requested."
  5485. msgstr "SSH压缩算法和压缩级别。"
  5486. #. type: table
  5487. #: guix-git/doc/guix.texi:1355
  5488. msgid "Note that offloading relies on SSH compression to reduce bandwidth usage when transferring files to and from build machines."
  5489. msgstr "下发任务依赖SSH压缩来减少传输文件到构建机器时使用的带宽。"
  5490. #. type: item
  5491. #: guix-git/doc/guix.texi:1356
  5492. #, no-wrap
  5493. msgid "@code{daemon-socket} (default: @code{\"/var/guix/daemon-socket/socket\"})"
  5494. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  5495. #. type: table
  5496. #: guix-git/doc/guix.texi:1359
  5497. msgid "File name of the Unix-domain socket @command{guix-daemon} is listening to on that machine."
  5498. msgstr "那台机器上的@command{guix-daemon}监听的Unix套接字文件名。"
  5499. #. type: item
  5500. #: guix-git/doc/guix.texi:1360
  5501. #, fuzzy, no-wrap
  5502. msgid "@code{overload-threshold} (default: @code{0.6})"
  5503. msgstr "@code{features} (@code{'()})"
  5504. #. type: table
  5505. #: guix-git/doc/guix.texi:1366
  5506. 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}."
  5507. msgstr ""
  5508. #. type: item
  5509. #: guix-git/doc/guix.texi:1367
  5510. #, no-wrap
  5511. msgid "@code{parallel-builds} (default: @code{1})"
  5512. msgstr "@code{parallel-builds}(默认值:@code{1})"
  5513. #. type: table
  5514. #: guix-git/doc/guix.texi:1369
  5515. msgid "The number of builds that may run in parallel on the machine."
  5516. msgstr "那台机器上可以并行运行的构建任务数量。"
  5517. #. type: item
  5518. #: guix-git/doc/guix.texi:1370
  5519. #, no-wrap
  5520. msgid "@code{speed} (default: @code{1.0})"
  5521. msgstr "@code{speed}(默认值:@code{1.0})"
  5522. #. type: table
  5523. #: guix-git/doc/guix.texi:1373
  5524. msgid "A ``relative speed factor''. The offload scheduler will tend to prefer machines with a higher speed factor."
  5525. msgstr "一个相对的速度值。下发调度器会偏好速度更快的机器。"
  5526. #. type: item
  5527. #: guix-git/doc/guix.texi:1374
  5528. #, no-wrap
  5529. msgid "@code{features} (default: @code{'()})"
  5530. msgstr "@code{features} (@code{'()})"
  5531. #. type: table
  5532. #: guix-git/doc/guix.texi:1379
  5533. 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."
  5534. msgstr "一个表示机器支持的功能的字符串列表。例如,@code{\"kvm\"}表示机器有KVM Linux模块和相关的硬件支持。Derivation可以通过名字请求需要的功能,然后被分发到匹配的机器的任务队列里。"
  5535. #. type: Plain text
  5536. #: guix-git/doc/guix.texi:1385
  5537. 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:"
  5538. msgstr "@command{guix}命令必须在构建机器的搜素路径里。你可以通过这个命令检查:"
  5539. #. type: example
  5540. #: guix-git/doc/guix.texi:1388
  5541. #, no-wrap
  5542. msgid "ssh build-machine guix repl --version\n"
  5543. msgstr "ssh build-machine guix repl --version\n"
  5544. #. type: Plain text
  5545. #: guix-git/doc/guix.texi:1395
  5546. 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}):"
  5547. msgstr "@file{machines.scm}到位后,还有一件要做的事。如上所述,下发任务时会在机器的仓库之间传输文件。为此,你需要在每台机器上生成一个密钥对,以使后台进程可以从仓库导出签名后的文件包(@pxref{Invoking guix archive}):"
  5548. #. type: example
  5549. #: guix-git/doc/guix.texi:1398 guix-git/doc/guix.texi:36570
  5550. #, no-wrap
  5551. msgid "# guix archive --generate-key\n"
  5552. msgstr "# guix archive --generate-key\n"
  5553. #. type: Plain text
  5554. #: guix-git/doc/guix.texi:1403
  5555. msgid "Each build machine must authorize the key of the master machine so that it accepts store items it receives from the master:"
  5556. msgstr "每台构建机器都必须认证主机器的公钥,从而接收从主机器接收的仓库文件:"
  5557. #. type: example
  5558. #: guix-git/doc/guix.texi:1406
  5559. #, no-wrap
  5560. msgid "# guix archive --authorize < master-public-key.txt\n"
  5561. msgstr "# guix archive --authorize < master-public-key.txt\n"
  5562. #. type: Plain text
  5563. #: guix-git/doc/guix.texi:1410
  5564. msgid "Likewise, the master machine must authorize the key of each build machine."
  5565. msgstr "类似的,主机器必须认证每台构建机器的公钥:"
  5566. #. type: Plain text
  5567. #: guix-git/doc/guix.texi:1416
  5568. 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."
  5569. msgstr "所有这些有关公钥的繁琐事宜都是为了表达主服务器和构建服务器之间成对的互相信任关系。具体地,当主机器从构建机器接收文件时(反之亦然),它的构建后台进程可以确保文件是原样的,没有被篡改,并且被认证的公钥签名过。"
  5570. #. type: cindex
  5571. #: guix-git/doc/guix.texi:1417
  5572. #, no-wrap
  5573. msgid "offload test"
  5574. msgstr "下发测试"
  5575. #. type: Plain text
  5576. #: guix-git/doc/guix.texi:1420
  5577. msgid "To test whether your setup is operational, run this command on the master node:"
  5578. msgstr "为了测试你的设置是否能正常工作,在主节点上运行这个命令:"
  5579. #. type: example
  5580. #: guix-git/doc/guix.texi:1423
  5581. #, no-wrap
  5582. msgid "# guix offload test\n"
  5583. msgstr "# guix offload test\n"
  5584. #. type: Plain text
  5585. #: guix-git/doc/guix.texi:1429
  5586. #, fuzzy
  5587. 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."
  5588. msgstr "这会尝试连接每台在@file{/etc/guix/machines.scm}里指定的构建机器,确保Guile和Guix模块在每台机器上都可用,尝试导出到这些机器和从这些机器导入,并且报告这个过程中遇到的任何错误。"
  5589. #. type: Plain text
  5590. #: guix-git/doc/guix.texi:1432
  5591. msgid "If you want to test a different machine file, just specify it on the command line:"
  5592. msgstr "如果你希望用别的文件测试,只需要在命令行指定它:"
  5593. #. type: example
  5594. #: guix-git/doc/guix.texi:1435
  5595. #, no-wrap
  5596. msgid "# guix offload test machines-qualif.scm\n"
  5597. msgstr "# guix offload test machines-qualif.scm\n"
  5598. #. type: Plain text
  5599. #: guix-git/doc/guix.texi:1439
  5600. msgid "Last, you can test the subset of the machines whose name matches a regular expression like this:"
  5601. msgstr "最后,你可以像这样只测试机器列表里名字匹配某个正则表达式的子集:"
  5602. #. type: example
  5603. #: guix-git/doc/guix.texi:1442
  5604. #, no-wrap
  5605. msgid "# guix offload test machines.scm '\\.gnu\\.org$'\n"
  5606. msgstr "# guix offload test machines.scm '\\.gnu\\.org$'\n"
  5607. #. type: cindex
  5608. #: guix-git/doc/guix.texi:1444
  5609. #, no-wrap
  5610. msgid "offload status"
  5611. msgstr "下发状态"
  5612. #. type: Plain text
  5613. #: guix-git/doc/guix.texi:1447
  5614. msgid "To display the current load of all build hosts, run this command on the main node:"
  5615. msgstr "若想展示所有构建主机的当前负载,在主节点上运行这个命令:"
  5616. #. type: example
  5617. #: guix-git/doc/guix.texi:1450
  5618. #, no-wrap
  5619. msgid "# guix offload status\n"
  5620. msgstr "# guix offload status\n"
  5621. #. type: cindex
  5622. #: guix-git/doc/guix.texi:1456
  5623. #, no-wrap
  5624. msgid "SELinux, daemon policy"
  5625. msgstr "SELinux,后台进程策略"
  5626. #. type: cindex
  5627. #: guix-git/doc/guix.texi:1457
  5628. #, no-wrap
  5629. msgid "mandatory access control, SELinux"
  5630. msgstr "强制访问控制,SELinux"
  5631. #. type: cindex
  5632. #: guix-git/doc/guix.texi:1458
  5633. #, no-wrap
  5634. msgid "security, guix-daemon"
  5635. msgstr "安全,guix-daemon"
  5636. #. type: Plain text
  5637. #: guix-git/doc/guix.texi:1464
  5638. 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."
  5639. msgstr "Guix附带一个SELinux策略文件,位置在@file{etc/guix-daemon.cil},它可以在启用SELinux的系统上安装,为Guix的文件添加标签及指定后台进程的期望行为。由于Guix系统不提供SELinux基础策略,这个后台进程策略不能在Guix系统上使用。"
  5640. #. type: subsubsection
  5641. #: guix-git/doc/guix.texi:1465
  5642. #, no-wrap
  5643. msgid "Installing the SELinux policy"
  5644. msgstr "安装SELinux策略"
  5645. #. type: cindex
  5646. #: guix-git/doc/guix.texi:1466
  5647. #, no-wrap
  5648. msgid "SELinux, policy installation"
  5649. msgstr "SELinux,安装策略"
  5650. #. type: Plain text
  5651. #: guix-git/doc/guix.texi:1468
  5652. msgid "To install the policy run this command as root:"
  5653. msgstr "用root用户执行这个命令以安装策略:"
  5654. #. type: example
  5655. #: guix-git/doc/guix.texi:1471
  5656. #, no-wrap
  5657. msgid "semodule -i etc/guix-daemon.cil\n"
  5658. msgstr "semodule -i etc/guix-daemon.cil\n"
  5659. #. type: Plain text
  5660. #: guix-git/doc/guix.texi:1475
  5661. msgid "Then relabel the file system with @code{restorecon} or by a different mechanism provided by your system."
  5662. msgstr "用@code{restorecon}或者你的系统提供的其它机制重新给文件系统打标签。"
  5663. #. type: Plain text
  5664. #: guix-git/doc/guix.texi:1480
  5665. 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:"
  5666. msgstr "一旦安装好策略,为文件系统重新打好标签,并且重启了后台进程,它应该在@code{guix_daemon_t}环境里运行。你可以用下面这个命令确认:"
  5667. #. type: example
  5668. #: guix-git/doc/guix.texi:1483
  5669. #, no-wrap
  5670. msgid "ps -Zax | grep guix-daemon\n"
  5671. msgstr "ps -Zax | grep guix-daemon\n"
  5672. #. type: Plain text
  5673. #: guix-git/doc/guix.texi:1488
  5674. 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."
  5675. msgstr "运行@code{guix build hello}之类的命令并监控SELinux日志以说服你自己SELinux允许所有的操作。"
  5676. #. type: cindex
  5677. #: guix-git/doc/guix.texi:1490
  5678. #, no-wrap
  5679. msgid "SELinux, limitations"
  5680. msgstr "SELinux,限制"
  5681. #. type: Plain text
  5682. #: guix-git/doc/guix.texi:1495
  5683. 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."
  5684. msgstr "这个策略不是完美的。这里有一个关于限制和缺陷的列表,当为Guix后台进程部署提供的SELinux策略时该认真考虑。"
  5685. #. type: enumerate
  5686. #: guix-git/doc/guix.texi:1502
  5687. #, fuzzy
  5688. 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."
  5689. msgstr "@code{guix_daemon_socket_t}没有被实际使用。所有的套接字操作都和@code{guix_daemon_socket_t}没有任何关系。存在这个没被使用的标签并不碍事,但是为这个标签定义套接字规则是更好的选择。"
  5690. #. type: enumerate
  5691. #: guix-git/doc/guix.texi:1513
  5692. 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."
  5693. msgstr "@code{guix gc}不可以任意访问指向profile的链接。由于设计的原因,符号链接的目标的文件标签和符号链接本身的文件标签是不同的。尽管$localstatedir里的所有profile都被打上了标签,指向这些profile的符号链接继承它们所在的文件夹的标签。对于普通用户的家目录里的链接,标签是@code{user_home_t}。但是对于root用户的家目录,或@file{/tmp},或HTTP服务器的工作目录等文件夹里的链接不是这样。@code{guix gc}会被阻止读取和跟随这些链接。"
  5694. #. type: enumerate
  5695. #: guix-git/doc/guix.texi:1518
  5696. 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."
  5697. msgstr "后台进程监听TCP连接的功能不再可用。这可能需要额外的规则,因为SELinux区别对待网络套接字和文件。"
  5698. #. type: enumerate
  5699. #: guix-git/doc/guix.texi:1529
  5700. 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."
  5701. 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无法阻止它访问所在域的进程可以访问的文件。"
  5702. #. type: enumerate
  5703. #: guix-git/doc/guix.texi:1534
  5704. 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."
  5705. msgstr ""
  5706. #. type: enumerate
  5707. #: guix-git/doc/guix.texi:1542
  5708. 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."
  5709. msgstr "我们可以在安装时生成一个更严格的策略,仅当前安装的@code{guix-daemon}的@emph{精确的}的文件名会被打上@code{guix_daemon_exec_t}标签,而不是用一个宽泛的正则表达式。这样的缺点是root必须在每次安装提供@code{guix-daemon}的Guix软件包时安装或升级策略。"
  5710. #. type: section
  5711. #: guix-git/doc/guix.texi:1545
  5712. #, no-wrap
  5713. msgid "Invoking @command{guix-daemon}"
  5714. msgstr "调用@command{guix-daemon}"
  5715. #. type: Plain text
  5716. #: guix-git/doc/guix.texi:1551
  5717. 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:"
  5718. msgstr "@command{guix-daemon}程序实现了所有访问仓库的功能。包括启动构建进程,运行垃圾回收器,查询构建结果,等。它通常以@code{root}身份运行:"
  5719. #. type: Plain text
  5720. #: guix-git/doc/guix.texi:1558
  5721. msgid "For details on how to set it up, @pxref{Setting Up the Daemon}."
  5722. msgstr "关于如何设置它,@pxref{Setting Up the Daemon}。"
  5723. #. type: cindex
  5724. #: guix-git/doc/guix.texi:1560
  5725. #, no-wrap
  5726. msgid "container, build environment"
  5727. msgstr "容器,构建环境"
  5728. #. type: cindex
  5729. #: guix-git/doc/guix.texi:1562 guix-git/doc/guix.texi:3106
  5730. #: guix-git/doc/guix.texi:4024 guix-git/doc/guix.texi:14216
  5731. #, no-wrap
  5732. msgid "reproducible builds"
  5733. msgstr "可复现的构建"
  5734. #. type: Plain text
  5735. #: guix-git/doc/guix.texi:1574
  5736. #, fuzzy
  5737. 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})."
  5738. 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})。"
  5739. #. type: Plain text
  5740. #: guix-git/doc/guix.texi:1580
  5741. #, fuzzy
  5742. 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}."
  5743. msgstr "当后台进程代替用户执行构建时,它在@file{/tmp}或@code{TMPDIR}环境变量指定的文件夹里创建一个文件夹。在构建期间,这个文件夹被共享给容器,然而容器内,这个构建树总是叫做@file{/tmp/guix-build-@var{name}.drv-0}。"
  5744. #. type: Plain text
  5745. #: guix-git/doc/guix.texi:1584
  5746. #, fuzzy
  5747. 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}})."
  5748. msgstr "结束时构建文件夹就被自动删除了,除非构建失败并且客户端指定了@option{--keep-failed}参数(@pxref{Invoking guix build, @option{--keep-failed}})。"
  5749. #. type: Plain text
  5750. #: guix-git/doc/guix.texi:1590
  5751. #, fuzzy
  5752. 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."
  5753. msgstr "后台进程监听连接并且为每个客户端(@command{guix}的子命令)启动的会话生成一个子进程。@command{guix processes}命令允许你获取系统上的活动的概况,浏览每个活动会话和客户端。@xref{Invoking guix processes},以了解更多信息。"
  5754. #. type: Plain text
  5755. #: guix-git/doc/guix.texi:1592
  5756. msgid "The following command-line options are supported:"
  5757. msgstr "下面这些命令行选项受支持:"
  5758. #. type: item
  5759. #: guix-git/doc/guix.texi:1594
  5760. #, no-wrap
  5761. msgid "--build-users-group=@var{group}"
  5762. msgstr "--build-users-group=@var{用户组}"
  5763. #. type: table
  5764. #: guix-git/doc/guix.texi:1597
  5765. msgid "Take users from @var{group} to run build processes (@pxref{Setting Up the Daemon, build users})."
  5766. msgstr "这会从@var{用户组}里选取用户,以运行构建进程(@pxref{Setting Up the Daemon,构建用户})。"
  5767. #. type: item
  5768. #: guix-git/doc/guix.texi:1598 guix-git/doc/guix.texi:11335
  5769. #, no-wrap
  5770. msgid "--no-substitutes"
  5771. msgstr "--no-substitutes"
  5772. #. type: cindex
  5773. #: guix-git/doc/guix.texi:1599 guix-git/doc/guix.texi:3118
  5774. #: guix-git/doc/guix.texi:3777
  5775. #, no-wrap
  5776. msgid "substitutes"
  5777. msgstr "substitutes"
  5778. #. type: table
  5779. #: guix-git/doc/guix.texi:1603 guix-git/doc/guix.texi:11339
  5780. msgid "Do not use substitutes for build products. That is, always build things locally instead of allowing downloads of pre-built binaries (@pxref{Substitutes})."
  5781. msgstr "不要为构建商品使用substitute。即,总是在本地构建,而不是下载预构建的二进制文件(@pxref{Substitutes})。"
  5782. #. type: table
  5783. #: guix-git/doc/guix.texi:1607
  5784. #, fuzzy
  5785. 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})."
  5786. msgstr "当后台进程用@code{--no-substitutes}参数启动时,客户端仍然可以显式地@i{通过}@code{set-build-options}远程过程调用来启用substitute(@pxref{The Store})。"
  5787. #. type: anchor{#1}
  5788. #: guix-git/doc/guix.texi:1609
  5789. msgid "daemon-substitute-urls"
  5790. msgstr "daemon-substitute-urls"
  5791. #. type: item
  5792. #: guix-git/doc/guix.texi:1609 guix-git/doc/guix.texi:11322
  5793. #: guix-git/doc/guix.texi:13623 guix-git/doc/guix.texi:14362
  5794. #: guix-git/doc/guix.texi:14587
  5795. #, no-wrap
  5796. msgid "--substitute-urls=@var{urls}"
  5797. msgstr "--substitute-urls=@var{urls}"
  5798. #. type: table
  5799. #: guix-git/doc/guix.texi:1613
  5800. #, fuzzy
  5801. #| 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."
  5802. msgid "Consider @var{urls} the default whitespace-separated list of substitute source URLs. When this option is omitted, @indicateurl{@value{SUBSTITUTE-URLS}} is used."
  5803. msgstr "@var{urls}是用空格分隔的substitute源URL列表。当这个选项被省略时,默认使用@indicateurl{https://@value{SUBSTITUTE-SERVER}}。"
  5804. #. type: table
  5805. #: guix-git/doc/guix.texi:1616
  5806. msgid "This means that substitutes may be downloaded from @var{urls}, as long as they are signed by a trusted signature (@pxref{Substitutes})."
  5807. msgstr "这意味着可以从@var{urls}下载substitute,只要它们的签名可信(@pxref{Substitutes})。"
  5808. #. type: table
  5809. #: guix-git/doc/guix.texi:1619
  5810. msgid "@xref{Getting Substitutes from Other Servers}, for more information on how to configure the daemon to get substitutes from other servers."
  5811. msgstr ""
  5812. #. type: item
  5813. #: guix-git/doc/guix.texi:1621 guix-git/doc/guix.texi:11358
  5814. #, fuzzy, no-wrap
  5815. msgid "--no-offload"
  5816. msgstr "下发"
  5817. #. type: table
  5818. #: guix-git/doc/guix.texi:1625 guix-git/doc/guix.texi:11362
  5819. #, fuzzy
  5820. 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."
  5821. msgstr "不要为构建商品使用substitute。即,总是在本地构建,而不是下载预构建的二进制文件(@pxref{Substitutes})。"
  5822. #. type: item
  5823. #: guix-git/doc/guix.texi:1626
  5824. #, no-wrap
  5825. msgid "--cache-failures"
  5826. msgstr "--cache-failures"
  5827. #. type: table
  5828. #: guix-git/doc/guix.texi:1628
  5829. msgid "Cache build failures. By default, only successful builds are cached."
  5830. msgstr "缓存失败的构建。默认地,只缓存成功的构建。"
  5831. #. type: table
  5832. #: guix-git/doc/guix.texi:1633
  5833. 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}."
  5834. msgstr "当这个选项被使用时,可以用@command{guix gc --list-failures}查询被标记为失败的仓库文件;@command{guix gc --clear-failures}从仓库里删除失败的缓存。@xref{Invoking guix gc}。"
  5835. #. type: item
  5836. #: guix-git/doc/guix.texi:1634 guix-git/doc/guix.texi:11388
  5837. #, no-wrap
  5838. msgid "--cores=@var{n}"
  5839. msgstr "--cores=@var{n}"
  5840. #. type: itemx
  5841. #: guix-git/doc/guix.texi:1635 guix-git/doc/guix.texi:11389
  5842. #, no-wrap
  5843. msgid "-c @var{n}"
  5844. msgstr "-c @var{n}"
  5845. #. type: table
  5846. #: guix-git/doc/guix.texi:1638
  5847. msgid "Use @var{n} CPU cores to build each derivation; @code{0} means as many as available."
  5848. msgstr "用@var{n}个CPU核来构建每个derivation;@code{0}表示有多少就用多少。"
  5849. #. type: table
  5850. #: guix-git/doc/guix.texi:1642
  5851. #, fuzzy
  5852. 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})."
  5853. msgstr "默认值是@code{0},但是它的值可以被客户端覆盖,例如@command{guix build}的@code{--cores}选项(@pxref{Invoking guix build})。"
  5854. #. type: table
  5855. #: guix-git/doc/guix.texi:1646
  5856. #, fuzzy
  5857. 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}."
  5858. msgstr "他的作用是在构建进程里设置@code{NIX_BUILD_CORES}环境变量,从而用它来利用内部的并行机制--例如,通过运行@code{make -j$NIX_BUILD_CORES}。"
  5859. #. type: item
  5860. #: guix-git/doc/guix.texi:1647 guix-git/doc/guix.texi:11393
  5861. #, no-wrap
  5862. msgid "--max-jobs=@var{n}"
  5863. msgstr "--max-jobs=@var{n}"
  5864. #. type: itemx
  5865. #: guix-git/doc/guix.texi:1648 guix-git/doc/guix.texi:11394
  5866. #, no-wrap
  5867. msgid "-M @var{n}"
  5868. msgstr "-M @var{n}"
  5869. #. type: table
  5870. #: guix-git/doc/guix.texi:1653
  5871. 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."
  5872. msgstr "最多允许@var{n}个并行的构建任务。默认值是@code{1}。设置为@code{0}表示不在本地执行构建;而是下发构建任务(@pxref{Daemon Offload Setup}),或者直接失败。"
  5873. #. type: item
  5874. #: guix-git/doc/guix.texi:1654 guix-git/doc/guix.texi:11363
  5875. #, no-wrap
  5876. msgid "--max-silent-time=@var{seconds}"
  5877. msgstr "--max-silent-time=@var{seconds}"
  5878. #. type: table
  5879. #: guix-git/doc/guix.texi:1657 guix-git/doc/guix.texi:11366
  5880. msgid "When the build or substitution process remains silent for more than @var{seconds}, terminate it and report a build failure."
  5881. msgstr "当构建或substitution进程超过@var{seconds}秒仍然保持静默,就把它结束掉并报告构建失败。"
  5882. #. type: table
  5883. #: guix-git/doc/guix.texi:1659 guix-git/doc/guix.texi:1668
  5884. msgid "The default value is @code{0}, which disables the timeout."
  5885. msgstr "默认值是@code{0},表示关闭超时。"
  5886. #. type: table
  5887. #: guix-git/doc/guix.texi:1662
  5888. #, fuzzy
  5889. msgid "The value specified here can be overridden by clients (@pxref{Common Build Options, @option{--max-silent-time}})."
  5890. msgstr "这里指定的值可以被客户端覆盖(@pxref{Common Build Options, @code{--max-silent-time}})。"
  5891. #. type: item
  5892. #: guix-git/doc/guix.texi:1663 guix-git/doc/guix.texi:11370
  5893. #, no-wrap
  5894. msgid "--timeout=@var{seconds}"
  5895. msgstr "--timeout=@var{seconds}"
  5896. #. type: table
  5897. #: guix-git/doc/guix.texi:1666 guix-git/doc/guix.texi:11373
  5898. msgid "Likewise, when the build or substitution process lasts for more than @var{seconds}, terminate it and report a build failure."
  5899. msgstr "类似地,当构建或substitution进程执行超过@var{seconds}秒,就把它结束掉并报告构建失败。"
  5900. #. type: table
  5901. #: guix-git/doc/guix.texi:1671
  5902. #, fuzzy
  5903. msgid "The value specified here can be overridden by clients (@pxref{Common Build Options, @option{--timeout}})."
  5904. msgstr "这里指定的值可以被客户端覆盖(@pxref{Common Build Options, @code{--timeout}})。"
  5905. #. type: item
  5906. #: guix-git/doc/guix.texi:1672
  5907. #, no-wrap
  5908. msgid "--rounds=@var{N}"
  5909. msgstr "--rounds=@var{N}"
  5910. #. type: table
  5911. #: guix-git/doc/guix.texi:1677
  5912. 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})."
  5913. msgstr "为每个derivation构建@var{n}次,如果连续的构建结果不是每个比特都相同就报告错误。这个设置可以被@command{guix build}之类的客户端覆盖(@pxref{Invoking guix build})。"
  5914. #. type: table
  5915. #: guix-git/doc/guix.texi:1681 guix-git/doc/guix.texi:11357
  5916. #: guix-git/doc/guix.texi:11981
  5917. 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."
  5918. msgstr "当和@option{--keep-failed}一起使用时,不同的输出保存在@file{/gnu/store/@dots{}-check}。这让检查两个结果的区别更容易。"
  5919. #. type: item
  5920. #: guix-git/doc/guix.texi:1682
  5921. #, no-wrap
  5922. msgid "--debug"
  5923. msgstr "--debug"
  5924. #. type: table
  5925. #: guix-git/doc/guix.texi:1684
  5926. msgid "Produce debugging output."
  5927. msgstr "生成调试输出。"
  5928. #. type: table
  5929. #: guix-git/doc/guix.texi:1688
  5930. #, fuzzy
  5931. 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})."
  5932. msgstr "这对调试后台进程的启动问题很有用,但是之后它可能会被客户端覆盖,例如@command{guix build}命令的@code{--verbosity}选项(@pxref{Invoking guix build})。"
  5933. #. type: item
  5934. #: guix-git/doc/guix.texi:1689
  5935. #, no-wrap
  5936. msgid "--chroot-directory=@var{dir}"
  5937. msgstr "--chroot-directory=@var{dir}"
  5938. #. type: table
  5939. #: guix-git/doc/guix.texi:1691
  5940. msgid "Add @var{dir} to the build chroot."
  5941. msgstr "把@var{dir}添加到构建的chroot。"
  5942. #. type: table
  5943. #: guix-git/doc/guix.texi:1697
  5944. 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."
  5945. msgstr "这么做可能会改变构建进程的结果--例如,如果它们使用了在@var{dir}里发现的可选依赖。因此,建议不要这么做,而是确保每个derivation声明所需的全部输入。"
  5946. #. type: item
  5947. #: guix-git/doc/guix.texi:1698
  5948. #, no-wrap
  5949. msgid "--disable-chroot"
  5950. msgstr "--disable-chroot"
  5951. #. type: table
  5952. #: guix-git/doc/guix.texi:1700
  5953. msgid "Disable chroot builds."
  5954. msgstr "关闭chroot构建。"
  5955. #. type: table
  5956. #: guix-git/doc/guix.texi:1705
  5957. 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."
  5958. msgstr "不建议使用这个选项,因为它会允许构建进程访问到没被声明的依赖。但是,当@command{guix-daemon}以没有特权的用户身份运行时,这个选项是必须的。"
  5959. #. type: item
  5960. #: guix-git/doc/guix.texi:1706
  5961. #, no-wrap
  5962. msgid "--log-compression=@var{type}"
  5963. msgstr "--log-compression=@var{type}"
  5964. #. type: table
  5965. #: guix-git/doc/guix.texi:1709
  5966. msgid "Compress build logs according to @var{type}, one of @code{gzip}, @code{bzip2}, or @code{none}."
  5967. msgstr "以@var{type}方式压缩构建日志,可选的值:@code{gzip},@code{bzip2},@code{none}。"
  5968. #. type: table
  5969. #: guix-git/doc/guix.texi:1713
  5970. #, fuzzy
  5971. msgid "Unless @option{--lose-logs} is used, all the build logs are kept in the @var{localstatedir}. To save space, the daemon automatically compresses them with gzip by default."
  5972. msgstr "除非使用了@code{--lose-logs},所有的构建日志都保存在@var{localstatedir}里。为了节省空间,后台进程默认使用bzip2对它们进行压缩。"
  5973. #. type: item
  5974. #: guix-git/doc/guix.texi:1714
  5975. #, no-wrap
  5976. msgid "--discover[=yes|no]"
  5977. msgstr ""
  5978. #. type: table
  5979. #: guix-git/doc/guix.texi:1717 guix-git/doc/guix.texi:17059
  5980. msgid "Whether to discover substitute servers on the local network using mDNS and DNS-SD."
  5981. msgstr ""
  5982. #. type: table
  5983. #: guix-git/doc/guix.texi:1720
  5984. msgid "This feature is still experimental. However, here are a few considerations."
  5985. msgstr ""
  5986. #. type: enumerate
  5987. #: guix-git/doc/guix.texi:1724
  5988. msgid "It might be faster/less expensive than fetching from remote servers;"
  5989. msgstr ""
  5990. #. type: enumerate
  5991. #: guix-git/doc/guix.texi:1727
  5992. msgid "There are no security risks, only genuine substitutes will be used (@pxref{Substitute Authentication});"
  5993. msgstr ""
  5994. #. type: enumerate
  5995. #: guix-git/doc/guix.texi:1731
  5996. msgid "An attacker advertising @command{guix publish} on your LAN cannot serve you malicious binaries, but they can learn what software you’re installing;"
  5997. msgstr ""
  5998. #. type: enumerate
  5999. #: guix-git/doc/guix.texi:1734
  6000. msgid "Servers may serve substitute over HTTP, unencrypted, so anyone on the LAN can see what software you’re installing."
  6001. msgstr ""
  6002. #. type: table
  6003. #: guix-git/doc/guix.texi:1738
  6004. msgid "It is also possible to enable or disable substitute server discovery at run-time by running:"
  6005. msgstr ""
  6006. #. type: example
  6007. #: guix-git/doc/guix.texi:1742
  6008. #, no-wrap
  6009. msgid ""
  6010. "herd discover guix-daemon on\n"
  6011. "herd discover guix-daemon off\n"
  6012. msgstr ""
  6013. #. type: item
  6014. #: guix-git/doc/guix.texi:1744
  6015. #, no-wrap
  6016. msgid "--disable-deduplication"
  6017. msgstr "--disable-deduplication"
  6018. #. type: cindex
  6019. #: guix-git/doc/guix.texi:1745 guix-git/doc/guix.texi:4362
  6020. #, no-wrap
  6021. msgid "deduplication"
  6022. msgstr "去重"
  6023. #. type: table
  6024. #: guix-git/doc/guix.texi:1747
  6025. msgid "Disable automatic file ``deduplication'' in the store."
  6026. msgstr "关闭自动对仓库文件“去重”。"
  6027. #. type: table
  6028. #: guix-git/doc/guix.texi:1754
  6029. 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."
  6030. msgstr "默认地,添加到仓库的文件会被自动“去重”:如果新添加的文件和仓库里找到的某个文件完全相同,后台进程把这个新文件变成另一个文件的硬链接。这可以明显地减少硬盘使用,代价是构建结束后轻微地增加输入/输出负载。这个选项关闭这个优化。"
  6031. #. type: item
  6032. #: guix-git/doc/guix.texi:1755
  6033. #, no-wrap
  6034. msgid "--gc-keep-outputs[=yes|no]"
  6035. msgstr "--gc-keep-outputs[=yes|no]"
  6036. #. type: table
  6037. #: guix-git/doc/guix.texi:1758
  6038. msgid "Tell whether the garbage collector (GC) must keep outputs of live derivations."
  6039. msgstr "垃圾收集器(GC)是否必须保留存活的derivation的输出。"
  6040. #. type: cindex
  6041. #: guix-git/doc/guix.texi:1759 guix-git/doc/guix.texi:4175
  6042. #, no-wrap
  6043. msgid "GC roots"
  6044. msgstr "GC根"
  6045. #. type: cindex
  6046. #: guix-git/doc/guix.texi:1760 guix-git/doc/guix.texi:4176
  6047. #, no-wrap
  6048. msgid "garbage collector roots"
  6049. msgstr "垃圾收集的根"
  6050. #. type: table
  6051. #: guix-git/doc/guix.texi:1766
  6052. #, fuzzy
  6053. 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."
  6054. msgstr "当设置为“yes”时,GC会保留仓库里每个存活的derivation(@code{.drv}文件)的输出。默认是“no”,表示只有当从GC根可以访问时才保留derivation的输出。@xref{Invoking guix gc},了解更多关于GC根的信息。"
  6055. #. type: item
  6056. #: guix-git/doc/guix.texi:1767
  6057. #, no-wrap
  6058. msgid "--gc-keep-derivations[=yes|no]"
  6059. msgstr "--gc-keep-derivations[=yes|no]"
  6060. #. type: table
  6061. #: guix-git/doc/guix.texi:1770
  6062. msgid "Tell whether the garbage collector (GC) must keep derivations corresponding to live outputs."
  6063. msgstr "垃圾收集器(GC)是否必须保留和存活的输出相关的derivation。"
  6064. #. type: table
  6065. #: guix-git/doc/guix.texi:1776
  6066. #, fuzzy
  6067. 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."
  6068. msgstr "当设置为“yes”时(默认),只要derivation(即@code{.drv}文件)的输出至少有一个是存活的,GC就将其保留。这让用户可以追踪仓库里物品的源头。设置为“no”可以节省一点硬盘空间。"
  6069. #. type: table
  6070. #: guix-git/doc/guix.texi:1785
  6071. #, fuzzy
  6072. 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."
  6073. msgstr "这样,设置@code{--gc-keep-derivations}为“yes”使存活性从“输出”传递到“derivation”,设置@code{--gc-keep-outputs}为“yes”使存活性从“derivation”传递到“输出”。当两者都设置为“yes”时,效果是保留所有在仓库里的存活对象的构建先决条件(源代码,编译器,库,和其它构建时的工具),不管这些先决条件是否能从某个GC根访问到。这对开发者来说很方便,因为它避免了重复构建和下载。"
  6074. #. type: item
  6075. #: guix-git/doc/guix.texi:1786
  6076. #, no-wrap
  6077. msgid "--impersonate-linux-2.6"
  6078. msgstr "--impersonate-linux-2.6"
  6079. #. type: table
  6080. #: guix-git/doc/guix.texi:1789
  6081. #, fuzzy
  6082. 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."
  6083. msgstr "在基于Linux的系统上,伪装成Linux 2.6。这意味着内核的@code{uname}系统调用会把版本号报告为2.6。"
  6084. #. type: table
  6085. #: guix-git/doc/guix.texi:1792
  6086. msgid "This might be helpful to build programs that (usually wrongfully) depend on the kernel version number."
  6087. msgstr "这可能会有助于构建那些(通常是错误地)依赖内核版本号的程序。"
  6088. #. type: item
  6089. #: guix-git/doc/guix.texi:1793
  6090. #, no-wrap
  6091. msgid "--lose-logs"
  6092. msgstr "--lose-logs"
  6093. #. type: table
  6094. #: guix-git/doc/guix.texi:1796
  6095. #, fuzzy
  6096. msgid "Do not keep build logs. By default they are kept under @file{@var{localstatedir}/guix/log}."
  6097. msgstr "不保留构建日志。默认保存在@code{@var{localstatedir}/guix/log}。"
  6098. #. type: item
  6099. #: guix-git/doc/guix.texi:1797 guix-git/doc/guix.texi:4607
  6100. #: guix-git/doc/guix.texi:5883 guix-git/doc/guix.texi:6296
  6101. #: guix-git/doc/guix.texi:6696 guix-git/doc/guix.texi:11925
  6102. #: guix-git/doc/guix.texi:13650 guix-git/doc/guix.texi:13915
  6103. #: guix-git/doc/guix.texi:14592 guix-git/doc/guix.texi:36300
  6104. #, no-wrap
  6105. msgid "--system=@var{system}"
  6106. msgstr "--system=@var{system}"
  6107. #. type: table
  6108. #: guix-git/doc/guix.texi:1801
  6109. 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}."
  6110. msgstr "假设@var{system}是当前的系统类型。默认值是configure时发现的架构/内核元组,如@code{x86_64-linux}。"
  6111. #. type: item
  6112. #: guix-git/doc/guix.texi:1802 guix-git/doc/guix.texi:11167
  6113. #, no-wrap
  6114. msgid "--listen=@var{endpoint}"
  6115. msgstr "--listen=@var{endpoint}"
  6116. #. type: table
  6117. #: guix-git/doc/guix.texi:1807
  6118. 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:"
  6119. msgstr ""
  6120. #. type: item
  6121. #: guix-git/doc/guix.texi:1809
  6122. #, no-wrap
  6123. msgid "--listen=/gnu/var/daemon"
  6124. msgstr ""
  6125. #. type: table
  6126. #: guix-git/doc/guix.texi:1812
  6127. msgid "Listen for connections on the @file{/gnu/var/daemon} Unix-domain socket, creating it if needed."
  6128. msgstr ""
  6129. #. type: item
  6130. #: guix-git/doc/guix.texi:1813
  6131. #, no-wrap
  6132. msgid "--listen=localhost"
  6133. msgstr ""
  6134. #. type: cindex
  6135. #: guix-git/doc/guix.texi:1814 guix-git/doc/guix.texi:9841
  6136. #, no-wrap
  6137. msgid "daemon, remote access"
  6138. msgstr ""
  6139. #. type: cindex
  6140. #: guix-git/doc/guix.texi:1815 guix-git/doc/guix.texi:9842
  6141. #, no-wrap
  6142. msgid "remote access to the daemon"
  6143. msgstr ""
  6144. #. type: cindex
  6145. #: guix-git/doc/guix.texi:1816 guix-git/doc/guix.texi:9843
  6146. #, no-wrap
  6147. msgid "daemon, cluster setup"
  6148. msgstr ""
  6149. #. type: cindex
  6150. #: guix-git/doc/guix.texi:1817 guix-git/doc/guix.texi:9844
  6151. #, no-wrap
  6152. msgid "clusters, daemon setup"
  6153. msgstr ""
  6154. #. type: table
  6155. #: guix-git/doc/guix.texi:1820
  6156. msgid "Listen for TCP connections on the network interface corresponding to @code{localhost}, on port 44146."
  6157. msgstr ""
  6158. #. type: item
  6159. #: guix-git/doc/guix.texi:1821
  6160. #, no-wrap
  6161. msgid "--listen=128.0.0.42:1234"
  6162. msgstr ""
  6163. #. type: table
  6164. #: guix-git/doc/guix.texi:1824
  6165. msgid "Listen for TCP connections on the network interface corresponding to @code{128.0.0.42}, on port 1234."
  6166. msgstr ""
  6167. #. type: table
  6168. #: guix-git/doc/guix.texi:1831
  6169. 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}})."
  6170. msgstr ""
  6171. #. type: quotation
  6172. #: guix-git/doc/guix.texi:1838
  6173. 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."
  6174. msgstr ""
  6175. #. type: table
  6176. #: guix-git/doc/guix.texi:1843
  6177. 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}."
  6178. msgstr ""
  6179. #. type: Plain text
  6180. #: guix-git/doc/guix.texi:1853
  6181. 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."
  6182. msgstr ""
  6183. #. type: anchor{#1}
  6184. #: guix-git/doc/guix.texi:1857
  6185. msgid "locales-and-locpath"
  6186. msgstr ""
  6187. #. type: cindex
  6188. #: guix-git/doc/guix.texi:1857
  6189. #, no-wrap
  6190. msgid "locales, when not on Guix System"
  6191. msgstr ""
  6192. #. type: vindex
  6193. #: guix-git/doc/guix.texi:1858 guix-git/doc/guix.texi:16250
  6194. #, no-wrap
  6195. msgid "LOCPATH"
  6196. msgstr ""
  6197. #. type: vindex
  6198. #: guix-git/doc/guix.texi:1859
  6199. #, no-wrap
  6200. msgid "GUIX_LOCPATH"
  6201. msgstr ""
  6202. #. type: Plain text
  6203. #: guix-git/doc/guix.texi:1864
  6204. 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:"
  6205. msgstr ""
  6206. #. type: example
  6207. #: guix-git/doc/guix.texi:1868
  6208. #, no-wrap
  6209. msgid ""
  6210. "$ guix install glibc-locales\n"
  6211. "$ export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale\n"
  6212. msgstr ""
  6213. #. type: Plain text
  6214. #: guix-git/doc/guix.texi:1880
  6215. msgid "Note that the @code{glibc-locales} package contains data for all the locales supported by the GNU@tie{}libc and weighs in at around 930@tie{}MiB@footnote{The size of the @code{glibc-locales} package is reduced down to about 213@tie{}MiB with store deduplication and further down to about 67@tie{}MiB when using a zstd-compressed Btrfs file system.}. If you only need a few locales, you can define your custom locales package via the @code{make-glibc-utf8-locales} procedure from the @code{(gnu packages base)} module. The following example defines a package containing the various Canadian UTF-8 locales known to the GNU@tie{}libc, that weighs around 14@tie{}MiB:"
  6216. msgstr ""
  6217. #. type: lisp
  6218. #: guix-git/doc/guix.texi:1883
  6219. #, fuzzy, no-wrap
  6220. #| msgid "./pre-inst-env guile -c '(use-modules (gnu packages gnew))'\n"
  6221. msgid ""
  6222. "(use-modules (gnu packages base))\n"
  6223. "\n"
  6224. msgstr "./pre-inst-env guile -c '(use-modules (gnu packages gnew))'\n"
  6225. #. type: lisp
  6226. #: guix-git/doc/guix.texi:1889
  6227. #, no-wrap
  6228. msgid ""
  6229. "(define my-glibc-locales\n"
  6230. " (make-glibc-utf8-locales\n"
  6231. " glibc\n"
  6232. " #:locales (list \"en_CA\" \"fr_CA\" \"ik_CA\" \"iu_CA\" \"shs_CA\")\n"
  6233. " #:name \"glibc-canadian-utf8-locales\"))\n"
  6234. msgstr ""
  6235. #. type: Plain text
  6236. #: guix-git/doc/guix.texi:1894
  6237. 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:"
  6238. msgstr ""
  6239. #. type: enumerate
  6240. #: guix-git/doc/guix.texi:1901
  6241. 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."
  6242. msgstr ""
  6243. #. type: enumerate
  6244. #: guix-git/doc/guix.texi:1908
  6245. 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."
  6246. msgstr ""
  6247. #. type: Plain text
  6248. #: guix-git/doc/guix.texi:1912
  6249. msgid "This is important because the locale data format used by different libc versions may be incompatible."
  6250. msgstr ""
  6251. #. type: cindex
  6252. #: guix-git/doc/guix.texi:1915
  6253. #, no-wrap
  6254. msgid "name service switch, glibc"
  6255. msgstr ""
  6256. #. type: cindex
  6257. #: guix-git/doc/guix.texi:1916
  6258. #, no-wrap
  6259. msgid "NSS (name service switch), glibc"
  6260. msgstr ""
  6261. #. type: cindex
  6262. #: guix-git/doc/guix.texi:1917
  6263. #, no-wrap
  6264. msgid "nscd (name service caching daemon)"
  6265. msgstr ""
  6266. #. type: cindex
  6267. #: guix-git/doc/guix.texi:1918
  6268. #, no-wrap
  6269. msgid "name service caching daemon (nscd)"
  6270. msgstr ""
  6271. #. type: Plain text
  6272. #: guix-git/doc/guix.texi:1925
  6273. 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."
  6274. msgstr ""
  6275. #. type: file{#1}
  6276. #: guix-git/doc/guix.texi:1926
  6277. #, no-wrap
  6278. msgid "nsswitch.conf"
  6279. msgstr ""
  6280. #. type: Plain text
  6281. #: guix-git/doc/guix.texi:1931
  6282. 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})."
  6283. msgstr ""
  6284. #. type: cindex
  6285. #: guix-git/doc/guix.texi:1932
  6286. #, no-wrap
  6287. msgid "Network information service (NIS)"
  6288. msgstr ""
  6289. #. type: cindex
  6290. #: guix-git/doc/guix.texi:1933
  6291. #, no-wrap
  6292. msgid "NIS (Network information service)"
  6293. msgstr ""
  6294. #. type: Plain text
  6295. #: guix-git/doc/guix.texi:1942
  6296. 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})."
  6297. msgstr ""
  6298. #. type: Plain text
  6299. #: guix-git/doc/guix.texi:1952
  6300. 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)."
  6301. msgstr ""
  6302. #. type: Plain text
  6303. #: guix-git/doc/guix.texi:1957
  6304. 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."
  6305. msgstr ""
  6306. #. type: Plain text
  6307. #: guix-git/doc/guix.texi:1962
  6308. 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."
  6309. msgstr ""
  6310. #. type: subsection
  6311. #: guix-git/doc/guix.texi:1963
  6312. #, no-wrap
  6313. msgid "X11 Fonts"
  6314. msgstr ""
  6315. #. type: Plain text
  6316. #: guix-git/doc/guix.texi:1973
  6317. msgid "The majority of graphical applications use Fontconfig to locate and load fonts and perform X11-client-side rendering. The @code{fontconfig} package in Guix looks for fonts in @file{$HOME/.guix-profile} by default. Thus, to allow graphical applications installed with Guix to display fonts, you have to install fonts with Guix as well. Essential font packages include @code{font-ghostscript}, @code{font-dejavu}, and @code{font-gnu-freefont}."
  6318. msgstr ""
  6319. #. type: code{#1}
  6320. #: guix-git/doc/guix.texi:1974
  6321. #, no-wrap
  6322. msgid "fc-cache"
  6323. msgstr ""
  6324. #. type: cindex
  6325. #: guix-git/doc/guix.texi:1975
  6326. #, no-wrap
  6327. msgid "font cache"
  6328. msgstr ""
  6329. #. type: Plain text
  6330. #: guix-git/doc/guix.texi:1979
  6331. 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:"
  6332. msgstr ""
  6333. #. type: example
  6334. #: guix-git/doc/guix.texi:1983
  6335. #, no-wrap
  6336. msgid ""
  6337. "guix install fontconfig\n"
  6338. "fc-cache -rv\n"
  6339. msgstr ""
  6340. #. type: Plain text
  6341. #: guix-git/doc/guix.texi:1991
  6342. 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:"
  6343. msgstr ""
  6344. #. type: example
  6345. #: guix-git/doc/guix.texi:1994
  6346. #, no-wrap
  6347. msgid "guix install font-adobe-source-han-sans:cn\n"
  6348. msgstr ""
  6349. #. type: code{#1}
  6350. #: guix-git/doc/guix.texi:1996
  6351. #, no-wrap
  6352. msgid "xterm"
  6353. msgstr ""
  6354. #. type: Plain text
  6355. #: guix-git/doc/guix.texi:2000
  6356. 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:"
  6357. msgstr ""
  6358. #. type: example
  6359. #: guix-git/doc/guix.texi:2003
  6360. #, no-wrap
  6361. msgid "-*-dejavu sans-medium-r-normal-*-*-100-*-*-*-*-*-1\n"
  6362. msgstr ""
  6363. #. type: Plain text
  6364. #: guix-git/doc/guix.texi:2007
  6365. 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:"
  6366. msgstr ""
  6367. #. type: example
  6368. #: guix-git/doc/guix.texi:2012
  6369. #, no-wrap
  6370. msgid "xset +fp $(dirname $(readlink -f ~/.guix-profile/share/fonts/truetype/fonts.dir))\n"
  6371. msgstr ""
  6372. #. type: code{#1}
  6373. #: guix-git/doc/guix.texi:2014
  6374. #, no-wrap
  6375. msgid "xlsfonts"
  6376. msgstr ""
  6377. #. type: Plain text
  6378. #: guix-git/doc/guix.texi:2017
  6379. msgid "After that, you can run @code{xlsfonts} (from @code{xlsfonts} package) to make sure your TrueType fonts are listed there."
  6380. msgstr ""
  6381. #. type: code{#1}
  6382. #: guix-git/doc/guix.texi:2021 guix-git/doc/guix.texi:35195
  6383. #, no-wrap
  6384. msgid "nss-certs"
  6385. msgstr ""
  6386. #. type: Plain text
  6387. #: guix-git/doc/guix.texi:2024
  6388. msgid "The @code{nss-certs} package provides X.509 certificates, which allow programs to authenticate Web servers accessed over HTTPS."
  6389. msgstr ""
  6390. #. type: Plain text
  6391. #: guix-git/doc/guix.texi:2029
  6392. 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."
  6393. msgstr ""
  6394. #. type: code{#1}
  6395. #: guix-git/doc/guix.texi:2032
  6396. #, no-wrap
  6397. msgid "emacs"
  6398. msgstr ""
  6399. #. type: Plain text
  6400. #: guix-git/doc/guix.texi:2038
  6401. 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."
  6402. msgstr ""
  6403. #. type: Plain text
  6404. #: guix-git/doc/guix.texi:2045
  6405. 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})."
  6406. msgstr ""
  6407. #. type: cindex
  6408. #: guix-git/doc/guix.texi:2050
  6409. #, no-wrap
  6410. msgid "Upgrading Guix, on a foreign distro"
  6411. msgstr ""
  6412. #. type: Plain text
  6413. #: guix-git/doc/guix.texi:2053
  6414. msgid "To upgrade Guix, run:"
  6415. msgstr ""
  6416. #. type: example
  6417. #: guix-git/doc/guix.texi:2056 guix-git/doc/guix.texi:2914
  6418. #, no-wrap
  6419. msgid "guix pull\n"
  6420. msgstr "guix pull\n"
  6421. #. type: Plain text
  6422. #: guix-git/doc/guix.texi:2059
  6423. #, fuzzy
  6424. msgid "@xref{Invoking guix pull}, for more information."
  6425. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  6426. #. type: cindex
  6427. #: guix-git/doc/guix.texi:2060
  6428. #, no-wrap
  6429. msgid "upgrading Guix for the root user, on a foreign distro"
  6430. msgstr ""
  6431. #. type: cindex
  6432. #: guix-git/doc/guix.texi:2061
  6433. #, no-wrap
  6434. msgid "upgrading the Guix daemon, on a foreign distro"
  6435. msgstr ""
  6436. #. type: cindex
  6437. #: guix-git/doc/guix.texi:2062
  6438. #, no-wrap
  6439. msgid "@command{guix pull} for the root user, on a foreign distro"
  6440. msgstr ""
  6441. #. type: Plain text
  6442. #: guix-git/doc/guix.texi:2065
  6443. msgid "On a foreign distro, you can upgrade the build daemon by running:"
  6444. msgstr ""
  6445. #. type: example
  6446. #: guix-git/doc/guix.texi:2068
  6447. #, no-wrap
  6448. msgid "sudo -i guix pull\n"
  6449. msgstr "sudo -i guix pull\n"
  6450. #. type: Plain text
  6451. #: guix-git/doc/guix.texi:2073
  6452. msgid "followed by (assuming your distro uses the systemd service management tool):"
  6453. msgstr ""
  6454. #. type: example
  6455. #: guix-git/doc/guix.texi:2076
  6456. #, fuzzy, no-wrap
  6457. msgid "systemctl restart guix-daemon.service\n"
  6458. msgstr "semodule -i etc/guix-daemon.cil\n"
  6459. #. type: Plain text
  6460. #: guix-git/doc/guix.texi:2080
  6461. msgid "On Guix System, upgrading the daemon is achieved by reconfiguring the system (@pxref{Invoking guix system, @code{guix system reconfigure}})."
  6462. msgstr ""
  6463. #. type: cindex
  6464. #: guix-git/doc/guix.texi:2087
  6465. #, no-wrap
  6466. msgid "installing Guix System"
  6467. msgstr ""
  6468. #. type: cindex
  6469. #: guix-git/doc/guix.texi:2088
  6470. #, no-wrap
  6471. msgid "Guix System, installation"
  6472. msgstr ""
  6473. #. type: Plain text
  6474. #: guix-git/doc/guix.texi:2093
  6475. 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}."
  6476. msgstr ""
  6477. #. type: quotation
  6478. #: guix-git/doc/guix.texi:2102
  6479. 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."
  6480. msgstr ""
  6481. #. type: quotation
  6482. #: guix-git/doc/guix.texi:2105
  6483. msgid "Alternatively, run @command{info info} in another tty to keep the manual available."
  6484. msgstr ""
  6485. #. type: Plain text
  6486. #: guix-git/doc/guix.texi:2126
  6487. 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."
  6488. msgstr ""
  6489. #. type: Plain text
  6490. #: guix-git/doc/guix.texi:2129
  6491. msgid "Nevertheless, before you proceed with the installation, be aware of the following noteworthy limitations applicable to version @value{VERSION}:"
  6492. msgstr ""
  6493. #. type: itemize
  6494. #: guix-git/doc/guix.texi:2134
  6495. msgid "More and more system services are provided (@pxref{Services}), but some may be missing."
  6496. msgstr ""
  6497. #. type: itemize
  6498. #: guix-git/doc/guix.texi:2139
  6499. 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."
  6500. msgstr ""
  6501. #. type: Plain text
  6502. #: guix-git/doc/guix.texi:2144
  6503. 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."
  6504. msgstr ""
  6505. #. type: cindex
  6506. #: guix-git/doc/guix.texi:2149
  6507. #, no-wrap
  6508. msgid "hardware support on Guix System"
  6509. msgstr ""
  6510. #. type: Plain text
  6511. #: guix-git/doc/guix.texi:2158
  6512. 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."
  6513. msgstr ""
  6514. #. type: cindex
  6515. #: guix-git/doc/guix.texi:2159
  6516. #, no-wrap
  6517. msgid "WiFi, hardware support"
  6518. msgstr ""
  6519. #. type: Plain text
  6520. #: guix-git/doc/guix.texi:2168
  6521. 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}})."
  6522. msgstr ""
  6523. #. type: cindex
  6524. #: guix-git/doc/guix.texi:2169
  6525. #, no-wrap
  6526. msgid "RYF, Respects Your Freedom"
  6527. msgstr ""
  6528. #. type: Plain text
  6529. #: guix-git/doc/guix.texi:2175
  6530. 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."
  6531. msgstr ""
  6532. #. type: Plain text
  6533. #: guix-git/doc/guix.texi:2179
  6534. 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."
  6535. msgstr ""
  6536. #. type: Plain text
  6537. #: guix-git/doc/guix.texi:2188
  6538. 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:"
  6539. msgstr ""
  6540. #. type: table
  6541. #: guix-git/doc/guix.texi:2192
  6542. msgid "for a GNU/Linux system on Intel/AMD-compatible 64-bit CPUs;"
  6543. msgstr ""
  6544. #. type: table
  6545. #: guix-git/doc/guix.texi:2195
  6546. msgid "for a 32-bit GNU/Linux system on Intel-compatible CPUs."
  6547. msgstr ""
  6548. #. type: Plain text
  6549. #: guix-git/doc/guix.texi:2200
  6550. msgid "Make sure to download the associated @file{.sig} file and to verify the authenticity of the image against it, along these lines:"
  6551. msgstr ""
  6552. #. type: example
  6553. #: guix-git/doc/guix.texi:2204
  6554. #, no-wrap
  6555. msgid ""
  6556. "$ wget @value{BASE-URL}/guix-system-install-@value{VERSION}.x86_64-linux.iso.sig\n"
  6557. "$ gpg --verify guix-system-install-@value{VERSION}.x86_64-linux.iso.sig\n"
  6558. msgstr ""
  6559. "$ wget @value{BASE-URL}/guix-system-install-@value{VERSION}.@var{系统}.iso.sig\n"
  6560. "$ gpg --verify guix-system-install-@value{VERSION}.@var{系统}.iso.sig\n"
  6561. #. type: example
  6562. #: guix-git/doc/guix.texi:2212
  6563. #, no-wrap
  6564. msgid ""
  6565. "$ wget @value{OPENPGP-SIGNING-KEY-URL} \\\n"
  6566. " -qO - | gpg --import -\n"
  6567. msgstr ""
  6568. #. type: Plain text
  6569. #: guix-git/doc/guix.texi:2224
  6570. 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."
  6571. msgstr ""
  6572. #. type: unnumberedsubsec
  6573. #: guix-git/doc/guix.texi:2225
  6574. #, no-wrap
  6575. msgid "Copying to a USB Stick"
  6576. msgstr ""
  6577. #. type: Plain text
  6578. #: guix-git/doc/guix.texi:2230
  6579. 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:"
  6580. msgstr ""
  6581. #. type: example
  6582. #: guix-git/doc/guix.texi:2234
  6583. #, no-wrap
  6584. msgid ""
  6585. "dd if=guix-system-install-@value{VERSION}.x86_64-linux.iso of=/dev/sdX status=progress\n"
  6586. "sync\n"
  6587. msgstr ""
  6588. #. type: Plain text
  6589. #: guix-git/doc/guix.texi:2237
  6590. msgid "Access to @file{/dev/sdX} usually requires root privileges."
  6591. msgstr ""
  6592. #. type: unnumberedsubsec
  6593. #: guix-git/doc/guix.texi:2238
  6594. #, no-wrap
  6595. msgid "Burning on a DVD"
  6596. msgstr ""
  6597. #. type: Plain text
  6598. #: guix-git/doc/guix.texi:2243
  6599. 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:"
  6600. msgstr ""
  6601. #. type: example
  6602. #: guix-git/doc/guix.texi:2246
  6603. #, no-wrap
  6604. msgid "growisofs -dvd-compat -Z /dev/srX=guix-system-install-@value{VERSION}.x86_64-linux.iso\n"
  6605. msgstr ""
  6606. #. type: Plain text
  6607. #: guix-git/doc/guix.texi:2249
  6608. msgid "Access to @file{/dev/srX} usually requires root privileges."
  6609. msgstr ""
  6610. #. type: unnumberedsubsec
  6611. #: guix-git/doc/guix.texi:2250
  6612. #, no-wrap
  6613. msgid "Booting"
  6614. msgstr ""
  6615. #. type: Plain text
  6616. #: guix-git/doc/guix.texi:2257
  6617. 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}."
  6618. msgstr ""
  6619. #. type: Plain text
  6620. #: guix-git/doc/guix.texi:2260
  6621. msgid "@xref{Installing Guix in a VM}, if, instead, you would like to install Guix System in a virtual machine (VM)."
  6622. msgstr ""
  6623. #. type: Plain text
  6624. #: guix-git/doc/guix.texi:2270
  6625. 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})."
  6626. msgstr ""
  6627. #. type: Plain text
  6628. #: guix-git/doc/guix.texi:2278
  6629. 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."
  6630. msgstr ""
  6631. #. type: quotation
  6632. #: guix-git/doc/guix.texi:2283
  6633. msgid "Installation requires access to the Internet so that any missing dependencies of your system configuration can be downloaded. See the ``Networking'' section below."
  6634. msgstr ""
  6635. #. type: Plain text
  6636. #: guix-git/doc/guix.texi:2290
  6637. 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."
  6638. msgstr ""
  6639. #. type: Plain text
  6640. #: guix-git/doc/guix.texi:2295
  6641. 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."
  6642. msgstr ""
  6643. #. type: Plain text
  6644. #: guix-git/doc/guix.texi:2297
  6645. msgid "@image{images/installer-network,5in,, networking setup with the graphical installer}"
  6646. msgstr ""
  6647. #. type: Plain text
  6648. #: guix-git/doc/guix.texi:2302
  6649. 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."
  6650. msgstr ""
  6651. #. type: Plain text
  6652. #: guix-git/doc/guix.texi:2304
  6653. msgid "@image{images/installer-partitions,5in,, partitioning with the graphical installer}"
  6654. msgstr ""
  6655. #. type: Plain text
  6656. #: guix-git/doc/guix.texi:2307
  6657. 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."
  6658. msgstr ""
  6659. #. type: Plain text
  6660. #: guix-git/doc/guix.texi:2309
  6661. msgid "@image{images/installer-resume,5in,, resuming the installation process}"
  6662. msgstr ""
  6663. #. type: Plain text
  6664. #: guix-git/doc/guix.texi:2314
  6665. 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!"
  6666. msgstr ""
  6667. #. type: Plain text
  6668. #: guix-git/doc/guix.texi:2324
  6669. 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})."
  6670. msgstr ""
  6671. #. type: Plain text
  6672. #: guix-git/doc/guix.texi:2330
  6673. 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})."
  6674. msgstr ""
  6675. #. type: subsection
  6676. #: guix-git/doc/guix.texi:2337
  6677. #, no-wrap
  6678. msgid "Keyboard Layout, Networking, and Partitioning"
  6679. msgstr ""
  6680. #. type: Plain text
  6681. #: guix-git/doc/guix.texi:2342
  6682. 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."
  6683. msgstr ""
  6684. #. type: cindex
  6685. #: guix-git/doc/guix.texi:2345 guix-git/doc/guix.texi:16064
  6686. #, no-wrap
  6687. msgid "keyboard layout"
  6688. msgstr ""
  6689. #. type: Plain text
  6690. #: guix-git/doc/guix.texi:2349
  6691. 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:"
  6692. msgstr "安装镜像使用的是美国的 qwerty 键盘布局,如果想更改,可以使用 @command{loadkeys} 命令。 例如,用以下命令选择 Dvorak 键盘布局:"
  6693. #. type: example
  6694. #: guix-git/doc/guix.texi:2352
  6695. #, no-wrap
  6696. msgid "loadkeys dvorak\n"
  6697. msgstr ""
  6698. #. type: Plain text
  6699. #: guix-git/doc/guix.texi:2357
  6700. 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."
  6701. msgstr ""
  6702. #. type: subsubsection
  6703. #: guix-git/doc/guix.texi:2358
  6704. #, no-wrap
  6705. msgid "Networking"
  6706. msgstr ""
  6707. #. type: Plain text
  6708. #: guix-git/doc/guix.texi:2361
  6709. msgid "Run the following command to see what your network interfaces are called:"
  6710. msgstr "运行以下命令查看你的网络接口的名称:"
  6711. #. type: example
  6712. #: guix-git/doc/guix.texi:2364
  6713. #, no-wrap
  6714. msgid "ifconfig -a\n"
  6715. msgstr ""
  6716. #. type: table
  6717. #: guix-git/doc/guix.texi:2368 guix-git/doc/guix.texi:2390
  6718. msgid "@dots{} or, using the GNU/Linux-specific @command{ip} command:"
  6719. msgstr "@dots{} 或者,使用 GNU/Linux 特有的 @command{ip} 命令:"
  6720. #. type: example
  6721. #: guix-git/doc/guix.texi:2371
  6722. #, no-wrap
  6723. msgid "ip address\n"
  6724. msgstr ""
  6725. #. type: Plain text
  6726. #: guix-git/doc/guix.texi:2378
  6727. 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}."
  6728. msgstr ""
  6729. #. type: item
  6730. #: guix-git/doc/guix.texi:2380
  6731. #, no-wrap
  6732. msgid "Wired connection"
  6733. msgstr "有线连接"
  6734. #. type: table
  6735. #: guix-git/doc/guix.texi:2383
  6736. msgid "To configure a wired network run the following command, substituting @var{interface} with the name of the wired interface you want to use."
  6737. msgstr ""
  6738. #. type: example
  6739. #: guix-git/doc/guix.texi:2386
  6740. #, no-wrap
  6741. msgid "ifconfig @var{interface} up\n"
  6742. msgstr ""
  6743. #. type: example
  6744. #: guix-git/doc/guix.texi:2393
  6745. #, no-wrap
  6746. msgid "ip link set @var{interface} up\n"
  6747. msgstr ""
  6748. #. type: item
  6749. #: guix-git/doc/guix.texi:2395
  6750. #, no-wrap
  6751. msgid "Wireless connection"
  6752. msgstr "无线连接"
  6753. #. type: cindex
  6754. #: guix-git/doc/guix.texi:2396 guix-git/doc/guix.texi:17985
  6755. #, no-wrap
  6756. msgid "wireless"
  6757. msgstr ""
  6758. #. type: cindex
  6759. #: guix-git/doc/guix.texi:2397 guix-git/doc/guix.texi:17986
  6760. #, no-wrap
  6761. msgid "WiFi"
  6762. msgstr ""
  6763. #. type: table
  6764. #: guix-git/doc/guix.texi:2402
  6765. 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}:"
  6766. msgstr ""
  6767. #. type: example
  6768. #: guix-git/doc/guix.texi:2405
  6769. #, no-wrap
  6770. msgid "nano wpa_supplicant.conf\n"
  6771. msgstr ""
  6772. #. type: table
  6773. #: guix-git/doc/guix.texi:2410
  6774. 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:"
  6775. msgstr ""
  6776. #. type: example
  6777. #: guix-git/doc/guix.texi:2417
  6778. #, no-wrap
  6779. msgid ""
  6780. "network=@{\n"
  6781. " ssid=\"@var{my-ssid}\"\n"
  6782. " key_mgmt=WPA-PSK\n"
  6783. " psk=\"the network's secret passphrase\"\n"
  6784. "@}\n"
  6785. msgstr ""
  6786. #. type: table
  6787. #: guix-git/doc/guix.texi:2422
  6788. 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):"
  6789. msgstr ""
  6790. #. type: example
  6791. #: guix-git/doc/guix.texi:2425
  6792. #, no-wrap
  6793. msgid "wpa_supplicant -c wpa_supplicant.conf -i @var{interface} -B\n"
  6794. msgstr ""
  6795. #. type: table
  6796. #: guix-git/doc/guix.texi:2428
  6797. msgid "Run @command{man wpa_supplicant} for more information."
  6798. msgstr ""
  6799. #. type: cindex
  6800. #: guix-git/doc/guix.texi:2430
  6801. #, no-wrap
  6802. msgid "DHCP"
  6803. msgstr ""
  6804. #. type: Plain text
  6805. #: guix-git/doc/guix.texi:2433
  6806. 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:"
  6807. msgstr ""
  6808. #. type: example
  6809. #: guix-git/doc/guix.texi:2436
  6810. #, no-wrap
  6811. msgid "dhclient -v @var{interface}\n"
  6812. msgstr ""
  6813. #. type: Plain text
  6814. #: guix-git/doc/guix.texi:2439
  6815. msgid "Try to ping a server to see if networking is up and running:"
  6816. msgstr ""
  6817. #. type: example
  6818. #: guix-git/doc/guix.texi:2442
  6819. #, no-wrap
  6820. msgid "ping -c 3 gnu.org\n"
  6821. msgstr ""
  6822. #. type: Plain text
  6823. #: guix-git/doc/guix.texi:2446
  6824. 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."
  6825. msgstr ""
  6826. #. type: cindex
  6827. #: guix-git/doc/guix.texi:2447
  6828. #, fuzzy, no-wrap
  6829. msgid "proxy, during system installation"
  6830. msgstr "系统安装之后"
  6831. #. type: Plain text
  6832. #: guix-git/doc/guix.texi:2450
  6833. msgid "If you need HTTP and HTTPS access to go through a proxy, run the following command:"
  6834. msgstr ""
  6835. #. type: example
  6836. #: guix-git/doc/guix.texi:2453
  6837. #, no-wrap
  6838. msgid "herd set-http-proxy guix-daemon @var{URL}\n"
  6839. msgstr ""
  6840. #. type: Plain text
  6841. #: guix-git/doc/guix.texi:2458
  6842. msgid "where @var{URL} is the proxy URL, for example @code{http://example.org:8118}."
  6843. msgstr ""
  6844. #. type: cindex
  6845. #: guix-git/doc/guix.texi:2459
  6846. #, no-wrap
  6847. msgid "installing over SSH"
  6848. msgstr ""
  6849. #. type: Plain text
  6850. #: guix-git/doc/guix.texi:2462
  6851. msgid "If you want to, you can continue the installation remotely by starting an SSH server:"
  6852. msgstr ""
  6853. #. type: example
  6854. #: guix-git/doc/guix.texi:2465
  6855. #, no-wrap
  6856. msgid "herd start ssh-daemon\n"
  6857. msgstr ""
  6858. #. type: Plain text
  6859. #: guix-git/doc/guix.texi:2469
  6860. msgid "Make sure to either set a password with @command{passwd}, or configure OpenSSH public key authentication before logging in."
  6861. msgstr ""
  6862. #. type: subsubsection
  6863. #: guix-git/doc/guix.texi:2470
  6864. #, no-wrap
  6865. msgid "Disk Partitioning"
  6866. msgstr "磁盘分区"
  6867. #. type: Plain text
  6868. #: guix-git/doc/guix.texi:2474
  6869. msgid "Unless this has already been done, the next step is to partition, and then format the target partition(s)."
  6870. msgstr ""
  6871. #. type: Plain text
  6872. #: guix-git/doc/guix.texi:2479
  6873. 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:"
  6874. msgstr ""
  6875. #. type: example
  6876. #: guix-git/doc/guix.texi:2482
  6877. #, no-wrap
  6878. msgid "cfdisk\n"
  6879. msgstr ""
  6880. #. type: Plain text
  6881. #: guix-git/doc/guix.texi:2488
  6882. 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})."
  6883. msgstr ""
  6884. #. type: cindex
  6885. #: guix-git/doc/guix.texi:2489
  6886. #, no-wrap
  6887. msgid "EFI, installation"
  6888. msgstr ""
  6889. #. type: cindex
  6890. #: guix-git/doc/guix.texi:2490
  6891. #, no-wrap
  6892. msgid "UEFI, installation"
  6893. msgstr ""
  6894. #. type: cindex
  6895. #: guix-git/doc/guix.texi:2491
  6896. #, no-wrap
  6897. msgid "ESP, EFI system partition"
  6898. msgstr ""
  6899. #. type: Plain text
  6900. #: guix-git/doc/guix.texi:2495
  6901. 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}:"
  6902. msgstr ""
  6903. #. type: example
  6904. #: guix-git/doc/guix.texi:2498
  6905. #, no-wrap
  6906. msgid "parted /dev/sda set 1 esp on\n"
  6907. msgstr ""
  6908. #. type: vindex
  6909. #: guix-git/doc/guix.texi:2501 guix-git/doc/guix.texi:35624
  6910. #, no-wrap
  6911. msgid "grub-bootloader"
  6912. msgstr ""
  6913. #. type: vindex
  6914. #: guix-git/doc/guix.texi:2502 guix-git/doc/guix.texi:35618
  6915. #, no-wrap
  6916. msgid "grub-efi-bootloader"
  6917. msgstr ""
  6918. #. type: quotation
  6919. #: guix-git/doc/guix.texi:2509
  6920. 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."
  6921. msgstr ""
  6922. #. type: Plain text
  6923. #: guix-git/doc/guix.texi:2517
  6924. 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:"
  6925. msgstr ""
  6926. #. type: example
  6927. #: guix-git/doc/guix.texi:2520
  6928. #, no-wrap
  6929. msgid "mkfs.fat -F32 /dev/sda1\n"
  6930. msgstr ""
  6931. #. type: Plain text
  6932. #: guix-git/doc/guix.texi:2527
  6933. 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})."
  6934. msgstr ""
  6935. #. type: Plain text
  6936. #: guix-git/doc/guix.texi:2534
  6937. 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:"
  6938. msgstr ""
  6939. #. type: example
  6940. #: guix-git/doc/guix.texi:2537
  6941. #, no-wrap
  6942. msgid "mkfs.ext4 -L my-root /dev/sda2\n"
  6943. msgstr ""
  6944. #. type: cindex
  6945. #: guix-git/doc/guix.texi:2539 guix-git/doc/guix.texi:14938
  6946. #, no-wrap
  6947. msgid "encrypted disk"
  6948. msgstr ""
  6949. #. type: Plain text
  6950. #: guix-git/doc/guix.texi:2544
  6951. 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)."
  6952. msgstr ""
  6953. #. type: quotation
  6954. #: guix-git/doc/guix.texi:2545 guix-git/doc/guix.texi:5320
  6955. #: guix-git/doc/guix.texi:6556 guix-git/doc/guix.texi:15064
  6956. #: guix-git/doc/guix.texi:21965 guix-git/doc/guix.texi:21972
  6957. #, no-wrap
  6958. msgid "Warning"
  6959. msgstr ""
  6960. #. type: quotation
  6961. #: guix-git/doc/guix.texi:2552
  6962. 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."
  6963. msgstr ""
  6964. #. type: Plain text
  6965. #: guix-git/doc/guix.texi:2557
  6966. 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:"
  6967. msgstr ""
  6968. #. type: example
  6969. #: guix-git/doc/guix.texi:2562
  6970. #, no-wrap
  6971. msgid ""
  6972. "cryptsetup luksFormat --type luks2 --pbkdf pbkdf2 /dev/sda2\n"
  6973. "cryptsetup open /dev/sda2 my-partition\n"
  6974. "mkfs.ext4 -L my-root /dev/mapper/my-partition\n"
  6975. msgstr ""
  6976. #. type: Plain text
  6977. #: guix-git/doc/guix.texi:2567
  6978. 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):"
  6979. msgstr ""
  6980. #. type: example
  6981. #: guix-git/doc/guix.texi:2570
  6982. #, no-wrap
  6983. msgid "mount LABEL=my-root /mnt\n"
  6984. msgstr ""
  6985. #. type: Plain text
  6986. #: guix-git/doc/guix.texi:2576
  6987. 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."
  6988. msgstr ""
  6989. #. type: Plain text
  6990. #: guix-git/doc/guix.texi:2580
  6991. 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:"
  6992. msgstr ""
  6993. #. type: example
  6994. #: guix-git/doc/guix.texi:2584
  6995. #, no-wrap
  6996. msgid ""
  6997. "mkswap /dev/sda3\n"
  6998. "swapon /dev/sda3\n"
  6999. msgstr ""
  7000. #. type: Plain text
  7001. #: guix-git/doc/guix.texi:2592
  7002. 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}.}:"
  7003. msgstr ""
  7004. #. type: example
  7005. #: guix-git/doc/guix.texi:2600
  7006. #, no-wrap
  7007. msgid ""
  7008. "# This is 10 GiB of swap space. Adjust \"count\" to change the size.\n"
  7009. "dd if=/dev/zero of=/mnt/swapfile bs=1MiB count=10240\n"
  7010. "# For security, make the file readable and writable only by root.\n"
  7011. "chmod 600 /mnt/swapfile\n"
  7012. "mkswap /mnt/swapfile\n"
  7013. "swapon /mnt/swapfile\n"
  7014. msgstr ""
  7015. #. type: Plain text
  7016. #: guix-git/doc/guix.texi:2605
  7017. 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."
  7018. msgstr ""
  7019. #. type: Plain text
  7020. #: guix-git/doc/guix.texi:2611
  7021. msgid "With the target partitions ready and the target root mounted on @file{/mnt}, we're ready to go. First, run:"
  7022. msgstr ""
  7023. #. type: example
  7024. #: guix-git/doc/guix.texi:2614
  7025. #, no-wrap
  7026. msgid "herd start cow-store /mnt\n"
  7027. msgstr ""
  7028. #. type: Plain text
  7029. #: guix-git/doc/guix.texi:2621
  7030. 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."
  7031. msgstr ""
  7032. #. type: Plain text
  7033. #: guix-git/doc/guix.texi:2632
  7034. 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."
  7035. msgstr ""
  7036. #. type: Plain text
  7037. #: guix-git/doc/guix.texi:2639
  7038. 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:"
  7039. msgstr ""
  7040. #. type: example
  7041. #: guix-git/doc/guix.texi:2644
  7042. #, no-wrap
  7043. msgid ""
  7044. "# mkdir /mnt/etc\n"
  7045. "# cp /etc/configuration/desktop.scm /mnt/etc/config.scm\n"
  7046. "# nano /mnt/etc/config.scm\n"
  7047. msgstr ""
  7048. #. type: Plain text
  7049. #: guix-git/doc/guix.texi:2648
  7050. msgid "You should pay attention to what your configuration file contains, and in particular:"
  7051. msgstr ""
  7052. #. type: itemize
  7053. #: guix-git/doc/guix.texi:2660
  7054. 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."
  7055. msgstr ""
  7056. #. type: itemize
  7057. #: guix-git/doc/guix.texi:2666
  7058. 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."
  7059. msgstr ""
  7060. #. type: itemize
  7061. #: guix-git/doc/guix.texi:2670
  7062. msgid "If there are encrypted or RAID partitions, make sure to add a @code{mapped-devices} field to describe them (@pxref{Mapped Devices})."
  7063. msgstr ""
  7064. #. type: Plain text
  7065. #: guix-git/doc/guix.texi:2675
  7066. 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}):"
  7067. msgstr ""
  7068. #. type: example
  7069. #: guix-git/doc/guix.texi:2678
  7070. #, no-wrap
  7071. msgid "guix system init /mnt/etc/config.scm /mnt\n"
  7072. msgstr ""
  7073. #. type: Plain text
  7074. #: guix-git/doc/guix.texi:2685
  7075. 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."
  7076. msgstr ""
  7077. #. type: Plain text
  7078. #: guix-git/doc/guix.texi:2693
  7079. 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!"
  7080. msgstr ""
  7081. #. type: Plain text
  7082. #: guix-git/doc/guix.texi:2700
  7083. msgid "Success, you've now booted into Guix System! From then on, you can update the system whenever you want by running, say:"
  7084. msgstr ""
  7085. #. type: example
  7086. #: guix-git/doc/guix.texi:2704
  7087. #, no-wrap
  7088. msgid ""
  7089. "guix pull\n"
  7090. "sudo guix system reconfigure /etc/config.scm\n"
  7091. msgstr ""
  7092. #. type: Plain text
  7093. #: guix-git/doc/guix.texi:2710
  7094. 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})."
  7095. msgstr ""
  7096. #. type: cindex
  7097. #: guix-git/doc/guix.texi:2713
  7098. #, no-wrap
  7099. msgid "sudo vs. @command{guix pull}"
  7100. msgstr ""
  7101. #. type: quotation
  7102. #: guix-git/doc/guix.texi:2717
  7103. 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{}}."
  7104. msgstr ""
  7105. #. type: quotation
  7106. #: guix-git/doc/guix.texi:2722
  7107. 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."
  7108. msgstr ""
  7109. #. type: Plain text
  7110. #: guix-git/doc/guix.texi:2727
  7111. 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!"
  7112. msgstr ""
  7113. #. type: section
  7114. #: guix-git/doc/guix.texi:2730
  7115. #, no-wrap
  7116. msgid "Installing Guix in a Virtual Machine"
  7117. msgstr ""
  7118. #. type: cindex
  7119. #: guix-git/doc/guix.texi:2732
  7120. #, no-wrap
  7121. msgid "virtual machine, Guix System installation"
  7122. msgstr ""
  7123. #. type: cindex
  7124. #: guix-git/doc/guix.texi:2733
  7125. #, no-wrap
  7126. msgid "virtual private server (VPS)"
  7127. msgstr ""
  7128. #. type: cindex
  7129. #: guix-git/doc/guix.texi:2734
  7130. #, no-wrap
  7131. msgid "VPS (virtual private server)"
  7132. msgstr ""
  7133. #. type: Plain text
  7134. #: guix-git/doc/guix.texi:2738
  7135. 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."
  7136. msgstr ""
  7137. #. type: Plain text
  7138. #: guix-git/doc/guix.texi:2741
  7139. msgid "To boot a @uref{https://qemu.org/,QEMU} VM for installing Guix System in a disk image, follow these steps:"
  7140. msgstr ""
  7141. #. type: enumerate
  7142. #: guix-git/doc/guix.texi:2746
  7143. msgid "First, retrieve and decompress the Guix system installation image as described previously (@pxref{USB Stick and DVD Installation})."
  7144. msgstr ""
  7145. #. type: enumerate
  7146. #: guix-git/doc/guix.texi:2750
  7147. msgid "Create a disk image that will hold the installed system. To make a qcow2-formatted disk image, use the @command{qemu-img} command:"
  7148. msgstr ""
  7149. #. type: example
  7150. #: guix-git/doc/guix.texi:2753
  7151. #, no-wrap
  7152. msgid "qemu-img create -f qcow2 guix-system.img 50G\n"
  7153. msgstr ""
  7154. #. type: enumerate
  7155. #: guix-git/doc/guix.texi:2757
  7156. 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."
  7157. msgstr ""
  7158. #. type: enumerate
  7159. #: guix-git/doc/guix.texi:2760
  7160. msgid "Boot the USB installation image in an VM:"
  7161. msgstr ""
  7162. #. type: example
  7163. #: guix-git/doc/guix.texi:2766
  7164. #, no-wrap
  7165. msgid ""
  7166. "qemu-system-x86_64 -m 1024 -smp 1 -enable-kvm \\\n"
  7167. " -nic user,model=virtio-net-pci -boot menu=on,order=d \\\n"
  7168. " -drive file=guix-system.img \\\n"
  7169. " -drive media=cdrom,file=guix-system-install-@value{VERSION}.@var{system}.iso\n"
  7170. msgstr ""
  7171. #. type: enumerate
  7172. #: guix-git/doc/guix.texi:2770
  7173. msgid "@code{-enable-kvm} is optional, but significantly improves performance, @pxref{Running Guix in a VM}."
  7174. msgstr ""
  7175. #. type: enumerate
  7176. #: guix-git/doc/guix.texi:2774
  7177. msgid "You're now root in the VM, proceed with the installation process. @xref{Preparing for Installation}, and follow the instructions."
  7178. msgstr ""
  7179. #. type: Plain text
  7180. #: guix-git/doc/guix.texi:2779
  7181. 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."
  7182. msgstr ""
  7183. #. type: cindex
  7184. #: guix-git/doc/guix.texi:2783
  7185. #, no-wrap
  7186. msgid "installation image"
  7187. msgstr ""
  7188. #. type: Plain text
  7189. #: guix-git/doc/guix.texi:2786
  7190. msgid "The installation image described above was built using the @command{guix system} command, specifically:"
  7191. msgstr ""
  7192. #. type: example
  7193. #: guix-git/doc/guix.texi:2789
  7194. #, no-wrap
  7195. msgid "guix system image -t iso9660 gnu/system/install.scm\n"
  7196. msgstr ""
  7197. #. type: Plain text
  7198. #: guix-git/doc/guix.texi:2794
  7199. 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."
  7200. msgstr ""
  7201. #. type: section
  7202. #: guix-git/doc/guix.texi:2795
  7203. #, no-wrap
  7204. msgid "Building the Installation Image for ARM Boards"
  7205. msgstr ""
  7206. #. type: Plain text
  7207. #: guix-git/doc/guix.texi:2799
  7208. msgid "Many ARM boards require a specific variant of the @uref{https://www.denx.de/wiki/U-Boot/, U-Boot} bootloader."
  7209. msgstr ""
  7210. #. type: Plain text
  7211. #: guix-git/doc/guix.texi:2803
  7212. 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:"
  7213. msgstr ""
  7214. #. type: example
  7215. #: guix-git/doc/guix.texi:2806
  7216. #, no-wrap
  7217. msgid "guix system image --system=armhf-linux -e '((@@ (gnu system install) os-with-u-boot) (@@ (gnu system install) installation-os) \"A20-OLinuXino-Lime2\")'\n"
  7218. msgstr ""
  7219. #. type: Plain text
  7220. #: guix-git/doc/guix.texi:2810
  7221. 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."
  7222. msgstr ""
  7223. #. type: Plain text
  7224. #: guix-git/doc/guix.texi:2820
  7225. 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."
  7226. msgstr ""
  7227. #. type: Plain text
  7228. #: guix-git/doc/guix.texi:2824
  7229. 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:"
  7230. msgstr ""
  7231. #. type: example
  7232. #: guix-git/doc/guix.texi:2827
  7233. #, no-wrap
  7234. msgid "guix search text editor\n"
  7235. msgstr ""
  7236. #. type: Plain text
  7237. #: guix-git/doc/guix.texi:2834
  7238. 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}!):"
  7239. msgstr ""
  7240. #. type: example
  7241. #: guix-git/doc/guix.texi:2837
  7242. #, fuzzy, no-wrap
  7243. msgid "guix install emacs\n"
  7244. msgstr "guix install emacs-guix\n"
  7245. #. type: cindex
  7246. #: guix-git/doc/guix.texi:2839 guix-git/doc/guix.texi:3151
  7247. #: guix-git/doc/guix.texi:3203
  7248. #, no-wrap
  7249. msgid "profile"
  7250. msgstr ""
  7251. #. type: Plain text
  7252. #: guix-git/doc/guix.texi:2847
  7253. 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)."
  7254. msgstr ""
  7255. #. type: Plain text
  7256. #: guix-git/doc/guix.texi:2850
  7257. msgid "Unless you're using Guix System, the @command{guix install} command must have printed this hint:"
  7258. msgstr ""
  7259. #. type: example
  7260. #: guix-git/doc/guix.texi:2853
  7261. #, no-wrap
  7262. msgid ""
  7263. "hint: Consider setting the necessary environment variables by running:\n"
  7264. "\n"
  7265. msgstr ""
  7266. #. type: example
  7267. #: guix-git/doc/guix.texi:2856
  7268. #, no-wrap
  7269. msgid ""
  7270. " GUIX_PROFILE=\"$HOME/.guix-profile\"\n"
  7271. " . \"$GUIX_PROFILE/etc/profile\"\n"
  7272. "\n"
  7273. msgstr ""
  7274. " GUIX_PROFILE=\"$HOME/.guix-profile\"\n"
  7275. " . \"$GUIX_PROFILE/etc/profile\"\n"
  7276. "\n"
  7277. #. type: example
  7278. #: guix-git/doc/guix.texi:2858
  7279. #, no-wrap
  7280. msgid "Alternately, see `guix package --search-paths -p \"$HOME/.guix-profile\"'.\n"
  7281. msgstr ""
  7282. #. type: Plain text
  7283. #: guix-git/doc/guix.texi:2872
  7284. msgid "Indeed, you must now tell your shell where @command{emacs} and other programs installed with Guix are to be found. Pasting the two lines above will do just that: it will add @code{$HOME/.guix-profile/bin}---which is where the installed package is---to the @code{PATH} environment variable. You can paste these two lines in your shell so they take effect right away, but more importantly you should add them to @file{~/.bash_profile} (or equivalent file if you do not use Bash) so that environment variables are set next time you spawn a shell. You only need to do this once and other search paths environment variables will be taken care of similarly---e.g., if you eventually install @code{python} and Python libraries, @env{GUIX_PYTHONPATH} will be defined."
  7285. msgstr ""
  7286. #. type: Plain text
  7287. #: guix-git/doc/guix.texi:2875
  7288. msgid "You can go on installing packages at your will. To list installed packages, run:"
  7289. msgstr ""
  7290. #. type: example
  7291. #: guix-git/doc/guix.texi:2878
  7292. #, fuzzy, no-wrap
  7293. msgid "guix package --list-installed\n"
  7294. msgstr "guix package --list-available\n"
  7295. #. type: Plain text
  7296. #: guix-git/doc/guix.texi:2883
  7297. 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:"
  7298. msgstr ""
  7299. #. type: example
  7300. #: guix-git/doc/guix.texi:2886
  7301. #, fuzzy, no-wrap
  7302. msgid "guix package --roll-back\n"
  7303. msgstr "guix package --list-available\n"
  7304. #. type: Plain text
  7305. #: guix-git/doc/guix.texi:2891
  7306. 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:"
  7307. msgstr ""
  7308. #. type: example
  7309. #: guix-git/doc/guix.texi:2894
  7310. #, fuzzy, no-wrap
  7311. msgid "guix package --list-generations\n"
  7312. msgstr "guix package --list-available\n"
  7313. #. type: Plain text
  7314. #: guix-git/doc/guix.texi:2897
  7315. msgid "Now you know the basics of package management!"
  7316. msgstr "现在你知道包管理的基本知识了吧!"
  7317. #. type: quotation
  7318. #: guix-git/doc/guix.texi:2898 guix-git/doc/guix.texi:2957
  7319. #, no-wrap
  7320. msgid "Going further"
  7321. msgstr ""
  7322. #. type: quotation
  7323. #: guix-git/doc/guix.texi:2906
  7324. 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."
  7325. msgstr ""
  7326. #. type: Plain text
  7327. #: guix-git/doc/guix.texi:2911
  7328. 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:"
  7329. msgstr ""
  7330. #. type: Plain text
  7331. #: guix-git/doc/guix.texi:2921
  7332. 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}:"
  7333. msgstr ""
  7334. #. type: example
  7335. #: guix-git/doc/guix.texi:2925
  7336. #, no-wrap
  7337. msgid ""
  7338. "GUIX_PROFILE=\"$HOME/.config/guix/current\"\n"
  7339. ". \"$GUIX_PROFILE/etc/profile\"\n"
  7340. msgstr ""
  7341. "GUIX_PROFILE=\"$HOME/.config/guix/current\"\n"
  7342. ". \"$GUIX_PROFILE/etc/profile\"\n"
  7343. #. type: Plain text
  7344. #: guix-git/doc/guix.texi:2929
  7345. msgid "You must also instruct your shell to point to this new @command{guix}:"
  7346. msgstr ""
  7347. #. type: example
  7348. #: guix-git/doc/guix.texi:2932
  7349. #, no-wrap
  7350. msgid "hash guix\n"
  7351. msgstr ""
  7352. #. type: Plain text
  7353. #: guix-git/doc/guix.texi:2936
  7354. 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:"
  7355. msgstr ""
  7356. #. type: example
  7357. #: guix-git/doc/guix.texi:2939
  7358. #, no-wrap
  7359. msgid "guix upgrade\n"
  7360. msgstr ""
  7361. #. type: Plain text
  7362. #: guix-git/doc/guix.texi:2945
  7363. 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!"
  7364. msgstr ""
  7365. #. type: Plain text
  7366. #: guix-git/doc/guix.texi:2948
  7367. msgid "You can display the exact revision of Guix you're currently using by running:"
  7368. msgstr ""
  7369. #. type: example
  7370. #: guix-git/doc/guix.texi:2951
  7371. #, no-wrap
  7372. msgid "guix describe\n"
  7373. msgstr "guix describe\n"
  7374. #. type: Plain text
  7375. #: guix-git/doc/guix.texi:2956
  7376. 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."
  7377. msgstr ""
  7378. #. type: quotation
  7379. #: guix-git/doc/guix.texi:2962
  7380. 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})."
  7381. msgstr ""
  7382. #. type: Plain text
  7383. #: guix-git/doc/guix.texi:2967
  7384. 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:"
  7385. msgstr ""
  7386. #. type: example
  7387. #: guix-git/doc/guix.texi:2970
  7388. #, no-wrap
  7389. msgid "sudo guix system reconfigure /etc/config.scm\n"
  7390. msgstr ""
  7391. #. type: Plain text
  7392. #: guix-git/doc/guix.texi:2979
  7393. 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}:"
  7394. msgstr ""
  7395. #. type: example
  7396. #: guix-git/doc/guix.texi:2982
  7397. #, no-wrap
  7398. msgid "sudo guix system roll-back\n"
  7399. msgstr ""
  7400. #. type: Plain text
  7401. #: guix-git/doc/guix.texi:2989
  7402. 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."
  7403. msgstr ""
  7404. #. type: Plain text
  7405. #: guix-git/doc/guix.texi:2991
  7406. msgid "Now you know enough to get started!"
  7407. msgstr ""
  7408. #. type: quotation
  7409. #: guix-git/doc/guix.texi:2992
  7410. #, no-wrap
  7411. msgid "Resources"
  7412. msgstr ""
  7413. #. type: quotation
  7414. #: guix-git/doc/guix.texi:2995
  7415. msgid "The rest of this manual provides a reference for all things Guix. Here are some additional resources you may find useful:"
  7416. msgstr ""
  7417. #. type: itemize
  7418. #: guix-git/doc/guix.texi:3000
  7419. msgid "@xref{Top,,, guix-cookbook, The GNU Guix Cookbook}, for a list of ``how-to'' style of recipes for a variety of applications."
  7420. msgstr ""
  7421. #. type: itemize
  7422. #: guix-git/doc/guix.texi:3005
  7423. 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."
  7424. msgstr ""
  7425. #. type: itemize
  7426. #: guix-git/doc/guix.texi:3010
  7427. 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."
  7428. msgstr ""
  7429. #. type: itemize
  7430. #: guix-git/doc/guix.texi:3014
  7431. msgid "@xref{Documentation}, to learn how to access documentation on your computer."
  7432. msgstr ""
  7433. #. type: quotation
  7434. #: guix-git/doc/guix.texi:3017
  7435. msgid "We hope you will enjoy Guix as much as the community enjoys building it!"
  7436. msgstr ""
  7437. #. type: Plain text
  7438. #: guix-git/doc/guix.texi:3028
  7439. 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."
  7440. msgstr ""
  7441. #. type: Plain text
  7442. #: guix-git/doc/guix.texi:3036
  7443. 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):"
  7444. msgstr ""
  7445. #. type: example
  7446. #: guix-git/doc/guix.texi:3039
  7447. #, no-wrap
  7448. msgid "guix install emacs-guix\n"
  7449. msgstr "guix install emacs-guix\n"
  7450. #. type: Plain text
  7451. #: guix-git/doc/guix.texi:3060
  7452. 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."
  7453. msgstr ""
  7454. #. type: Plain text
  7455. #: guix-git/doc/guix.texi:3064
  7456. 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."
  7457. msgstr ""
  7458. #. type: Plain text
  7459. #: guix-git/doc/guix.texi:3069
  7460. 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}."
  7461. msgstr ""
  7462. #. type: Plain text
  7463. #: guix-git/doc/guix.texi:3077
  7464. 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."
  7465. msgstr ""
  7466. #. type: Plain text
  7467. #: guix-git/doc/guix.texi:3081
  7468. 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}."
  7469. msgstr ""
  7470. #. type: cindex
  7471. #: guix-git/doc/guix.texi:3082 guix-git/doc/guix.texi:3165
  7472. #, no-wrap
  7473. msgid "transactions"
  7474. msgstr ""
  7475. #. type: Plain text
  7476. #: guix-git/doc/guix.texi:3089
  7477. 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."
  7478. msgstr ""
  7479. #. type: Plain text
  7480. #: guix-git/doc/guix.texi:3097
  7481. 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})."
  7482. msgstr ""
  7483. #. type: Plain text
  7484. #: guix-git/doc/guix.texi:3104
  7485. 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."
  7486. msgstr ""
  7487. #. type: Plain text
  7488. #: guix-git/doc/guix.texi:3117
  7489. 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})."
  7490. msgstr ""
  7491. #. type: Plain text
  7492. #: guix-git/doc/guix.texi:3128
  7493. 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})."
  7494. msgstr ""
  7495. #. type: Plain text
  7496. #: guix-git/doc/guix.texi:3134
  7497. 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})."
  7498. msgstr ""
  7499. #. type: cindex
  7500. #: guix-git/doc/guix.texi:3135
  7501. #, no-wrap
  7502. msgid "replication, of software environments"
  7503. msgstr ""
  7504. #. type: cindex
  7505. #: guix-git/doc/guix.texi:3136
  7506. #, no-wrap
  7507. msgid "provenance tracking, of software artifacts"
  7508. msgstr ""
  7509. #. type: Plain text
  7510. #: guix-git/doc/guix.texi:3143
  7511. 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."
  7512. msgstr ""
  7513. #. type: section
  7514. #: guix-git/doc/guix.texi:3145
  7515. #, no-wrap
  7516. msgid "Invoking @command{guix package}"
  7517. msgstr ""
  7518. #. type: cindex
  7519. #: guix-git/doc/guix.texi:3147
  7520. #, no-wrap
  7521. msgid "installing packages"
  7522. msgstr ""
  7523. #. type: cindex
  7524. #: guix-git/doc/guix.texi:3148
  7525. #, no-wrap
  7526. msgid "removing packages"
  7527. msgstr ""
  7528. #. type: cindex
  7529. #: guix-git/doc/guix.texi:3149
  7530. #, no-wrap
  7531. msgid "package installation"
  7532. msgstr ""
  7533. #. type: cindex
  7534. #: guix-git/doc/guix.texi:3150
  7535. #, no-wrap
  7536. msgid "package removal"
  7537. msgstr ""
  7538. #. type: Plain text
  7539. #: guix-git/doc/guix.texi:3160
  7540. 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:"
  7541. msgstr ""
  7542. #. type: example
  7543. #: guix-git/doc/guix.texi:3163
  7544. #, no-wrap
  7545. msgid "guix package @var{options}\n"
  7546. msgstr ""
  7547. #. type: Plain text
  7548. #: guix-git/doc/guix.texi:3170
  7549. 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."
  7550. msgstr ""
  7551. #. type: Plain text
  7552. #: guix-git/doc/guix.texi:3173
  7553. msgid "For example, to remove @code{lua} and install @code{guile} and @code{guile-cairo} in a single transaction:"
  7554. msgstr ""
  7555. #. type: example
  7556. #: guix-git/doc/guix.texi:3176
  7557. #, no-wrap
  7558. msgid "guix package -r lua -i guile guile-cairo\n"
  7559. msgstr ""
  7560. #. type: cindex
  7561. #: guix-git/doc/guix.texi:3178
  7562. #, no-wrap
  7563. msgid "aliases, for @command{guix package}"
  7564. msgstr ""
  7565. #. type: Plain text
  7566. #: guix-git/doc/guix.texi:3180
  7567. msgid "For your convenience, we also provide the following aliases:"
  7568. msgstr ""
  7569. #. type: itemize
  7570. #: guix-git/doc/guix.texi:3184
  7571. msgid "@command{guix search} is an alias for @command{guix package -s},"
  7572. msgstr ""
  7573. #. type: itemize
  7574. #: guix-git/doc/guix.texi:3186
  7575. msgid "@command{guix install} is an alias for @command{guix package -i},"
  7576. msgstr ""
  7577. #. type: itemize
  7578. #: guix-git/doc/guix.texi:3188
  7579. msgid "@command{guix remove} is an alias for @command{guix package -r},"
  7580. msgstr ""
  7581. #. type: itemize
  7582. #: guix-git/doc/guix.texi:3190
  7583. msgid "@command{guix upgrade} is an alias for @command{guix package -u},"
  7584. msgstr ""
  7585. #. type: itemize
  7586. #: guix-git/doc/guix.texi:3192
  7587. msgid "and @command{guix show} is an alias for @command{guix package --show=}."
  7588. msgstr ""
  7589. #. type: Plain text
  7590. #: guix-git/doc/guix.texi:3197
  7591. 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."
  7592. msgstr ""
  7593. #. type: Plain text
  7594. #: guix-git/doc/guix.texi:3202
  7595. 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}})."
  7596. msgstr ""
  7597. #. type: Plain text
  7598. #: guix-git/doc/guix.texi:3209
  7599. 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."
  7600. msgstr ""
  7601. #. type: cindex
  7602. #: guix-git/doc/guix.texi:3209 guix-git/doc/guix.texi:3453
  7603. #, no-wrap
  7604. msgid "search paths"
  7605. msgstr ""
  7606. #. type: Plain text
  7607. #: guix-git/doc/guix.texi:3214
  7608. 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:"
  7609. msgstr ""
  7610. #. type: example
  7611. #: guix-git/doc/guix.texi:3218
  7612. #, no-wrap
  7613. msgid ""
  7614. "GUIX_PROFILE=\"$HOME/.guix-profile\" ; \\\n"
  7615. "source \"$GUIX_PROFILE/etc/profile\"\n"
  7616. msgstr ""
  7617. "GUIX_PROFILE=\"$HOME/.guix-profile\" ; \\\n"
  7618. "source \"$GUIX_PROFILE/etc/profile\"\n"
  7619. #. type: Plain text
  7620. #: guix-git/doc/guix.texi:3229
  7621. 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}."
  7622. msgstr ""
  7623. #. type: Plain text
  7624. #: guix-git/doc/guix.texi:3231
  7625. msgid "The @var{options} can be among the following:"
  7626. msgstr ""
  7627. #. type: item
  7628. #: guix-git/doc/guix.texi:3234
  7629. #, no-wrap
  7630. msgid "--install=@var{package} @dots{}"
  7631. msgstr ""
  7632. #. type: itemx
  7633. #: guix-git/doc/guix.texi:3235
  7634. #, no-wrap
  7635. msgid "-i @var{package} @dots{}"
  7636. msgstr ""
  7637. #. type: table
  7638. #: guix-git/doc/guix.texi:3237
  7639. msgid "Install the specified @var{package}s."
  7640. msgstr ""
  7641. #. type: table
  7642. #: guix-git/doc/guix.texi:3242
  7643. 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)."
  7644. msgstr ""
  7645. #. type: table
  7646. #: guix-git/doc/guix.texi:3250
  7647. 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})."
  7648. msgstr ""
  7649. #. type: cindex
  7650. #: guix-git/doc/guix.texi:3251
  7651. #, no-wrap
  7652. msgid "propagated inputs"
  7653. msgstr ""
  7654. #. type: table
  7655. #: guix-git/doc/guix.texi:3257
  7656. 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)."
  7657. msgstr ""
  7658. #. type: anchor{#1}
  7659. #: guix-git/doc/guix.texi:3264
  7660. msgid "package-cmd-propagated-inputs"
  7661. msgstr ""
  7662. #. type: table
  7663. #: guix-git/doc/guix.texi:3264
  7664. 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."
  7665. msgstr ""
  7666. #. type: table
  7667. #: guix-git/doc/guix.texi:3269
  7668. 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."
  7669. msgstr ""
  7670. #. type: item
  7671. #: guix-git/doc/guix.texi:3270
  7672. #, no-wrap
  7673. msgid "--install-from-expression=@var{exp}"
  7674. msgstr ""
  7675. #. type: itemx
  7676. #: guix-git/doc/guix.texi:3271
  7677. #, no-wrap
  7678. msgid "-e @var{exp}"
  7679. msgstr ""
  7680. #. type: table
  7681. #: guix-git/doc/guix.texi:3273
  7682. msgid "Install the package @var{exp} evaluates to."
  7683. msgstr ""
  7684. #. type: table
  7685. #: guix-git/doc/guix.texi:3278
  7686. 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)}."
  7687. msgstr ""
  7688. #. type: table
  7689. #: guix-git/doc/guix.texi:3282
  7690. 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."
  7691. msgstr ""
  7692. #. type: item
  7693. #: guix-git/doc/guix.texi:3283
  7694. #, no-wrap
  7695. msgid "--install-from-file=@var{file}"
  7696. msgstr ""
  7697. #. type: itemx
  7698. #: guix-git/doc/guix.texi:3284 guix-git/doc/guix.texi:5823
  7699. #: guix-git/doc/guix.texi:11816
  7700. #, no-wrap
  7701. msgid "-f @var{file}"
  7702. msgstr ""
  7703. #. type: table
  7704. #: guix-git/doc/guix.texi:3286
  7705. msgid "Install the package that the code within @var{file} evaluates to."
  7706. msgstr ""
  7707. #. type: table
  7708. #: guix-git/doc/guix.texi:3289 guix-git/doc/guix.texi:5829
  7709. #: guix-git/doc/guix.texi:6223
  7710. msgid "As an example, @var{file} might contain a definition like this (@pxref{Defining Packages}):"
  7711. msgstr ""
  7712. #. type: include
  7713. #: guix-git/doc/guix.texi:3291 guix-git/doc/guix.texi:11824
  7714. #, no-wrap
  7715. msgid "package-hello.scm"
  7716. msgstr ""
  7717. #. type: table
  7718. #: guix-git/doc/guix.texi:3298
  7719. 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})."
  7720. msgstr ""
  7721. #. type: table
  7722. #: guix-git/doc/guix.texi:3303
  7723. 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}:"
  7724. msgstr ""
  7725. #. type: example
  7726. #: guix-git/doc/guix.texi:3306 guix-git/doc/guix.texi:11834
  7727. #, no-wrap
  7728. msgid "@verbatiminclude package-hello.json\n"
  7729. msgstr ""
  7730. #. type: item
  7731. #: guix-git/doc/guix.texi:3308
  7732. #, no-wrap
  7733. msgid "--remove=@var{package} @dots{}"
  7734. msgstr ""
  7735. #. type: itemx
  7736. #: guix-git/doc/guix.texi:3309
  7737. #, no-wrap
  7738. msgid "-r @var{package} @dots{}"
  7739. msgstr ""
  7740. #. type: table
  7741. #: guix-git/doc/guix.texi:3311
  7742. msgid "Remove the specified @var{package}s."
  7743. msgstr ""
  7744. #. type: table
  7745. #: guix-git/doc/guix.texi:3316
  7746. 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}."
  7747. msgstr ""
  7748. #. type: item
  7749. #: guix-git/doc/guix.texi:3317
  7750. #, no-wrap
  7751. msgid "--upgrade[=@var{regexp} @dots{}]"
  7752. msgstr ""
  7753. #. type: itemx
  7754. #: guix-git/doc/guix.texi:3318
  7755. #, no-wrap
  7756. msgid "-u [@var{regexp} @dots{}]"
  7757. msgstr ""
  7758. #. type: cindex
  7759. #: guix-git/doc/guix.texi:3319
  7760. #, no-wrap
  7761. msgid "upgrading packages"
  7762. msgstr ""
  7763. #. type: table
  7764. #: guix-git/doc/guix.texi:3323
  7765. 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."
  7766. msgstr ""
  7767. #. type: table
  7768. #: guix-git/doc/guix.texi:3328
  7769. 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})."
  7770. msgstr ""
  7771. #. type: cindex
  7772. #: guix-git/doc/guix.texi:3329
  7773. #, fuzzy, no-wrap
  7774. msgid "package transformations, upgrades"
  7775. msgstr "软件包变换选项。"
  7776. #. type: table
  7777. #: guix-git/doc/guix.texi:3334
  7778. 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:"
  7779. msgstr ""
  7780. #. type: example
  7781. #: guix-git/doc/guix.texi:3337
  7782. #, no-wrap
  7783. msgid "guix install emacs-next --with-branch=emacs-next=master\n"
  7784. msgstr ""
  7785. #. type: table
  7786. #: guix-git/doc/guix.texi:3342
  7787. 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."
  7788. msgstr ""
  7789. #. type: table
  7790. #: guix-git/doc/guix.texi:3347
  7791. 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:"
  7792. msgstr ""
  7793. #. type: example
  7794. #: guix-git/doc/guix.texi:3350
  7795. #, fuzzy, no-wrap
  7796. msgid "guix install @var{package}\n"
  7797. msgstr "guix install emacs-guix\n"
  7798. #. type: item
  7799. #: guix-git/doc/guix.texi:3352
  7800. #, no-wrap
  7801. msgid "--do-not-upgrade[=@var{regexp} @dots{}]"
  7802. msgstr ""
  7803. #. type: table
  7804. #: guix-git/doc/guix.texi:3357
  7805. 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'':"
  7806. msgstr ""
  7807. #. type: example
  7808. #: guix-git/doc/guix.texi:3360
  7809. #, no-wrap
  7810. msgid "$ guix package --upgrade . --do-not-upgrade emacs\n"
  7811. msgstr ""
  7812. #. type: anchor{#1}
  7813. #: guix-git/doc/guix.texi:3362
  7814. #, no-wrap
  7815. msgid "profile-manifest"
  7816. msgstr ""
  7817. #. type: item
  7818. #: guix-git/doc/guix.texi:3362 guix-git/doc/guix.texi:5841
  7819. #: guix-git/doc/guix.texi:6228 guix-git/doc/guix.texi:6682
  7820. #: guix-git/doc/guix.texi:12956 guix-git/doc/guix.texi:14598
  7821. #, no-wrap
  7822. msgid "--manifest=@var{file}"
  7823. msgstr ""
  7824. #. type: itemx
  7825. #: guix-git/doc/guix.texi:3363 guix-git/doc/guix.texi:5842
  7826. #: guix-git/doc/guix.texi:6229 guix-git/doc/guix.texi:6683
  7827. #: guix-git/doc/guix.texi:12957
  7828. #, no-wrap
  7829. msgid "-m @var{file}"
  7830. msgstr ""
  7831. #. type: cindex
  7832. #: guix-git/doc/guix.texi:3364
  7833. #, no-wrap
  7834. msgid "profile declaration"
  7835. msgstr ""
  7836. #. type: cindex
  7837. #: guix-git/doc/guix.texi:3365
  7838. #, no-wrap
  7839. msgid "profile manifest"
  7840. msgstr ""
  7841. #. type: table
  7842. #: guix-git/doc/guix.texi:3369
  7843. 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."
  7844. msgstr ""
  7845. #. type: table
  7846. #: guix-git/doc/guix.texi:3375
  7847. 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."
  7848. msgstr ""
  7849. #. type: table
  7850. #: guix-git/doc/guix.texi:3379
  7851. msgid "@var{file} must return a @dfn{manifest} object, which is roughly a list of packages:"
  7852. msgstr ""
  7853. #. type: findex
  7854. #: guix-git/doc/guix.texi:3380
  7855. #, no-wrap
  7856. msgid "packages->manifest"
  7857. msgstr ""
  7858. #. type: lisp
  7859. #: guix-git/doc/guix.texi:3383
  7860. #, no-wrap
  7861. msgid ""
  7862. "(use-package-modules guile emacs)\n"
  7863. "\n"
  7864. msgstr ""
  7865. #. type: lisp
  7866. #: guix-git/doc/guix.texi:3389
  7867. #, no-wrap
  7868. msgid ""
  7869. "(packages->manifest\n"
  7870. " (list emacs\n"
  7871. " guile-2.0\n"
  7872. " ;; Use a specific package output.\n"
  7873. " (list guile-2.0 \"debug\")))\n"
  7874. msgstr ""
  7875. #. type: findex
  7876. #: guix-git/doc/guix.texi:3391
  7877. #, no-wrap
  7878. msgid "specifications->manifest"
  7879. msgstr ""
  7880. #. type: table
  7881. #: guix-git/doc/guix.texi:3398
  7882. 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:"
  7883. msgstr ""
  7884. #. type: lisp
  7885. #: guix-git/doc/guix.texi:3402
  7886. #, no-wrap
  7887. msgid ""
  7888. "(specifications->manifest\n"
  7889. " '(\"emacs\" \"guile@@2.2\" \"guile@@2.2:debug\"))\n"
  7890. msgstr ""
  7891. #. type: findex
  7892. #: guix-git/doc/guix.texi:3404
  7893. #, no-wrap
  7894. msgid "package->development-manifest"
  7895. msgstr ""
  7896. #. type: table
  7897. #: guix-git/doc/guix.texi:3407
  7898. msgid "You might also want to create a manifest for all the dependencies of a package, rather than the package itself:"
  7899. msgstr ""
  7900. #. type: lisp
  7901. #: guix-git/doc/guix.texi:3410
  7902. #, no-wrap
  7903. msgid "(package->development-manifest (specification->package \"emacs\"))\n"
  7904. msgstr ""
  7905. #. type: table
  7906. #: guix-git/doc/guix.texi:3414
  7907. msgid "The example above gives you all the software required to develop Emacs, similar to what @command{guix environment emacs} provides."
  7908. msgstr ""
  7909. #. type: table
  7910. #: guix-git/doc/guix.texi:3417
  7911. msgid "@xref{export-manifest, @option{--export-manifest}}, to learn how to obtain a manifest file from an existing profile."
  7912. msgstr ""
  7913. #. type: item
  7914. #: guix-git/doc/guix.texi:3418 guix-git/doc/guix.texi:4532
  7915. #, no-wrap
  7916. msgid "--roll-back"
  7917. msgstr ""
  7918. #. type: cindex
  7919. #: guix-git/doc/guix.texi:3419 guix-git/doc/guix.texi:4533
  7920. #: guix-git/doc/guix.texi:36050 guix-git/doc/guix.texi:38863
  7921. #, no-wrap
  7922. msgid "rolling back"
  7923. msgstr ""
  7924. #. type: cindex
  7925. #: guix-git/doc/guix.texi:3420 guix-git/doc/guix.texi:4534
  7926. #, no-wrap
  7927. msgid "undoing transactions"
  7928. msgstr ""
  7929. #. type: cindex
  7930. #: guix-git/doc/guix.texi:3421 guix-git/doc/guix.texi:4535
  7931. #, no-wrap
  7932. msgid "transactions, undoing"
  7933. msgstr ""
  7934. #. type: table
  7935. #: guix-git/doc/guix.texi:3424
  7936. msgid "Roll back to the previous @dfn{generation} of the profile---i.e., undo the last transaction."
  7937. msgstr ""
  7938. #. type: table
  7939. #: guix-git/doc/guix.texi:3427
  7940. msgid "When combined with options such as @option{--install}, roll back occurs before any other actions."
  7941. msgstr ""
  7942. #. type: table
  7943. #: guix-git/doc/guix.texi:3431
  7944. 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."
  7945. msgstr ""
  7946. #. type: table
  7947. #: guix-git/doc/guix.texi:3435
  7948. 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."
  7949. msgstr ""
  7950. #. type: item
  7951. #: guix-git/doc/guix.texi:3436 guix-git/doc/guix.texi:4539
  7952. #, no-wrap
  7953. msgid "--switch-generation=@var{pattern}"
  7954. msgstr ""
  7955. #. type: itemx
  7956. #: guix-git/doc/guix.texi:3437 guix-git/doc/guix.texi:4540
  7957. #, no-wrap
  7958. msgid "-S @var{pattern}"
  7959. msgstr ""
  7960. #. type: cindex
  7961. #: guix-git/doc/guix.texi:3438 guix-git/doc/guix.texi:3671
  7962. #: guix-git/doc/guix.texi:4541 guix-git/doc/guix.texi:36008
  7963. #, no-wrap
  7964. msgid "generations"
  7965. msgstr ""
  7966. #. type: table
  7967. #: guix-git/doc/guix.texi:3440 guix-git/doc/guix.texi:4543
  7968. msgid "Switch to a particular generation defined by @var{pattern}."
  7969. msgstr ""
  7970. #. type: table
  7971. #: guix-git/doc/guix.texi:3446 guix-git/doc/guix.texi:4549
  7972. 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}."
  7973. msgstr ""
  7974. #. type: table
  7975. #: guix-git/doc/guix.texi:3451
  7976. 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."
  7977. msgstr ""
  7978. #. type: item
  7979. #: guix-git/doc/guix.texi:3452
  7980. #, no-wrap
  7981. msgid "--search-paths[=@var{kind}]"
  7982. msgstr ""
  7983. #. type: table
  7984. #: guix-git/doc/guix.texi:3458
  7985. 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."
  7986. msgstr ""
  7987. #. type: table
  7988. #: guix-git/doc/guix.texi:3467
  7989. msgid "For example, GCC needs the @env{CPATH} and @env{LIBRARY_PATH} environment variables to be defined so it can look for headers and libraries in the user's profile (@pxref{Environment Variables,,, gcc, Using the GNU Compiler Collection (GCC)}). If GCC and, say, the C library are installed in the profile, then @option{--search-paths} will suggest setting these variables to @file{@var{profile}/include} and @file{@var{profile}/lib}, respectively (@pxref{Search Paths}, for info on search path specifications associated with packages.)"
  7990. msgstr ""
  7991. #. type: table
  7992. #: guix-git/doc/guix.texi:3470
  7993. msgid "The typical use case is to define these environment variables in the shell:"
  7994. msgstr ""
  7995. #. type: example
  7996. #: guix-git/doc/guix.texi:3473
  7997. #, no-wrap
  7998. msgid "$ eval `guix package --search-paths`\n"
  7999. msgstr ""
  8000. #. type: table
  8001. #: guix-git/doc/guix.texi:3479
  8002. 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}."
  8003. msgstr ""
  8004. #. type: table
  8005. #: guix-git/doc/guix.texi:3482
  8006. msgid "This option can also be used to compute the @emph{combined} search paths of several profiles. Consider this example:"
  8007. msgstr ""
  8008. #. type: example
  8009. #: guix-git/doc/guix.texi:3487
  8010. #, no-wrap
  8011. msgid ""
  8012. "$ guix package -p foo -i guile\n"
  8013. "$ guix package -p bar -i guile-json\n"
  8014. "$ guix package -p foo -p bar --search-paths\n"
  8015. msgstr ""
  8016. #. type: table
  8017. #: guix-git/doc/guix.texi:3492
  8018. 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."
  8019. msgstr ""
  8020. #. type: cindex
  8021. #: guix-git/doc/guix.texi:3494
  8022. #, no-wrap
  8023. msgid "profile, choosing"
  8024. msgstr ""
  8025. #. type: item
  8026. #: guix-git/doc/guix.texi:3495 guix-git/doc/guix.texi:4569
  8027. #: guix-git/doc/guix.texi:4898 guix-git/doc/guix.texi:5851
  8028. #: guix-git/doc/guix.texi:6264
  8029. #, no-wrap
  8030. msgid "--profile=@var{profile}"
  8031. msgstr ""
  8032. #. type: itemx
  8033. #: guix-git/doc/guix.texi:3496 guix-git/doc/guix.texi:4570
  8034. #: guix-git/doc/guix.texi:4899 guix-git/doc/guix.texi:5852
  8035. #: guix-git/doc/guix.texi:6265
  8036. #, no-wrap
  8037. msgid "-p @var{profile}"
  8038. msgstr ""
  8039. #. type: table
  8040. #: guix-git/doc/guix.texi:3498
  8041. msgid "Use @var{profile} instead of the user's default profile."
  8042. msgstr ""
  8043. #. type: table
  8044. #: guix-git/doc/guix.texi:3503
  8045. 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:"
  8046. msgstr ""
  8047. #. type: example
  8048. #: guix-git/doc/guix.texi:3509
  8049. #, no-wrap
  8050. msgid ""
  8051. "$ guix install hello -p ~/code/my-profile\n"
  8052. "@dots{}\n"
  8053. "$ ~/code/my-profile/bin/hello\n"
  8054. "Hello, world!\n"
  8055. msgstr ""
  8056. #. type: table
  8057. #: guix-git/doc/guix.texi:3513
  8058. msgid "All it takes to get rid of the profile is to remove this symlink and its siblings that point to specific generations:"
  8059. msgstr ""
  8060. #. type: example
  8061. #: guix-git/doc/guix.texi:3516
  8062. #, no-wrap
  8063. msgid "$ rm ~/code/my-profile ~/code/my-profile-*-link\n"
  8064. msgstr ""
  8065. #. type: item
  8066. #: guix-git/doc/guix.texi:3518
  8067. #, no-wrap
  8068. msgid "--list-profiles"
  8069. msgstr ""
  8070. #. type: table
  8071. #: guix-git/doc/guix.texi:3520
  8072. msgid "List all the user's profiles:"
  8073. msgstr ""
  8074. #. type: example
  8075. #: guix-git/doc/guix.texi:3527
  8076. #, no-wrap
  8077. msgid ""
  8078. "$ guix package --list-profiles\n"
  8079. "/home/charlie/.guix-profile\n"
  8080. "/home/charlie/code/my-profile\n"
  8081. "/home/charlie/code/devel-profile\n"
  8082. "/home/charlie/tmp/test\n"
  8083. msgstr ""
  8084. #. type: table
  8085. #: guix-git/doc/guix.texi:3530
  8086. msgid "When running as root, list all the profiles of all the users."
  8087. msgstr ""
  8088. #. type: cindex
  8089. #: guix-git/doc/guix.texi:3531
  8090. #, no-wrap
  8091. msgid "collisions, in a profile"
  8092. msgstr ""
  8093. #. type: cindex
  8094. #: guix-git/doc/guix.texi:3532
  8095. #, no-wrap
  8096. msgid "colliding packages in profiles"
  8097. msgstr ""
  8098. #. type: cindex
  8099. #: guix-git/doc/guix.texi:3533
  8100. #, no-wrap
  8101. msgid "profile collisions"
  8102. msgstr ""
  8103. #. type: item
  8104. #: guix-git/doc/guix.texi:3534
  8105. #, no-wrap
  8106. msgid "--allow-collisions"
  8107. msgstr ""
  8108. #. type: table
  8109. #: guix-git/doc/guix.texi:3536
  8110. msgid "Allow colliding packages in the new profile. Use at your own risk!"
  8111. msgstr ""
  8112. #. type: table
  8113. #: guix-git/doc/guix.texi:3540
  8114. 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."
  8115. msgstr ""
  8116. #. type: item
  8117. #: guix-git/doc/guix.texi:3541 guix-git/doc/guix.texi:4612
  8118. #: guix-git/doc/guix.texi:6768
  8119. #, no-wrap
  8120. msgid "--bootstrap"
  8121. msgstr ""
  8122. #. type: table
  8123. #: guix-git/doc/guix.texi:3544
  8124. msgid "Use the bootstrap Guile to build the profile. This option is only useful to distribution developers."
  8125. msgstr ""
  8126. #. type: Plain text
  8127. #: guix-git/doc/guix.texi:3550
  8128. 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:"
  8129. msgstr ""
  8130. #. type: item
  8131. #: guix-git/doc/guix.texi:3553
  8132. #, no-wrap
  8133. msgid "--search=@var{regexp}"
  8134. msgstr ""
  8135. #. type: itemx
  8136. #: guix-git/doc/guix.texi:3554
  8137. #, no-wrap
  8138. msgid "-s @var{regexp}"
  8139. msgstr ""
  8140. #. type: anchor{#1}
  8141. #: guix-git/doc/guix.texi:3556
  8142. msgid "guix-search"
  8143. msgstr ""
  8144. #. type: cindex
  8145. #: guix-git/doc/guix.texi:3556
  8146. #, no-wrap
  8147. msgid "searching for packages"
  8148. msgstr ""
  8149. #. type: table
  8150. #: guix-git/doc/guix.texi:3562
  8151. 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})."
  8152. msgstr ""
  8153. #. type: table
  8154. #: guix-git/doc/guix.texi:3565
  8155. msgid "This allows specific fields to be extracted using the @command{recsel} command, for instance:"
  8156. msgstr ""
  8157. #. type: example
  8158. #: guix-git/doc/guix.texi:3571
  8159. #, no-wrap
  8160. msgid ""
  8161. "$ guix package -s malloc | recsel -p name,version,relevance\n"
  8162. "name: jemalloc\n"
  8163. "version: 4.5.0\n"
  8164. "relevance: 6\n"
  8165. "\n"
  8166. msgstr ""
  8167. #. type: example
  8168. #: guix-git/doc/guix.texi:3575
  8169. #, no-wrap
  8170. msgid ""
  8171. "name: glibc\n"
  8172. "version: 2.25\n"
  8173. "relevance: 1\n"
  8174. "\n"
  8175. msgstr ""
  8176. #. type: example
  8177. #: guix-git/doc/guix.texi:3579
  8178. #, no-wrap
  8179. msgid ""
  8180. "name: libgc\n"
  8181. "version: 7.6.0\n"
  8182. "relevance: 1\n"
  8183. msgstr ""
  8184. #. type: table
  8185. #: guix-git/doc/guix.texi:3583
  8186. msgid "Similarly, to show the name of all the packages available under the terms of the GNU@tie{}LGPL version 3:"
  8187. msgstr ""
  8188. #. type: example
  8189. #: guix-git/doc/guix.texi:3587
  8190. #, no-wrap
  8191. msgid ""
  8192. "$ guix package -s \"\" | recsel -p name -e 'license ~ \"LGPL 3\"'\n"
  8193. "name: elfutils\n"
  8194. "\n"
  8195. msgstr ""
  8196. #. type: example
  8197. #: guix-git/doc/guix.texi:3590
  8198. #, no-wrap
  8199. msgid ""
  8200. "name: gmp\n"
  8201. "@dots{}\n"
  8202. msgstr ""
  8203. #. type: table
  8204. #: guix-git/doc/guix.texi:3596
  8205. 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):"
  8206. msgstr ""
  8207. #. type: example
  8208. #: guix-git/doc/guix.texi:3601
  8209. #, no-wrap
  8210. msgid ""
  8211. "$ guix search '\\<board\\>' game | recsel -p name\n"
  8212. "name: gnubg\n"
  8213. "@dots{}\n"
  8214. msgstr ""
  8215. #. type: table
  8216. #: guix-git/doc/guix.texi:3607
  8217. 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."
  8218. msgstr ""
  8219. #. type: table
  8220. #: guix-git/doc/guix.texi:3611
  8221. 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:"
  8222. msgstr ""
  8223. #. type: example
  8224. #: guix-git/doc/guix.texi:3615
  8225. #, no-wrap
  8226. msgid ""
  8227. "$ guix search crypto library | \\\n"
  8228. " recsel -e '! (name ~ \"^(ghc|perl|python|ruby)\")' -p name,synopsis\n"
  8229. msgstr ""
  8230. #. type: table
  8231. #: guix-git/doc/guix.texi:3620
  8232. msgid "@xref{Selection Expressions,,, recutils, GNU recutils manual}, for more information on @dfn{selection expressions} for @code{recsel -e}."
  8233. msgstr ""
  8234. #. type: item
  8235. #: guix-git/doc/guix.texi:3621
  8236. #, no-wrap
  8237. msgid "--show=@var{package}"
  8238. msgstr ""
  8239. #. type: table
  8240. #: guix-git/doc/guix.texi:3625
  8241. 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})."
  8242. msgstr ""
  8243. #. type: example
  8244. #: guix-git/doc/guix.texi:3630
  8245. #, no-wrap
  8246. msgid ""
  8247. "$ guix package --show=guile | recsel -p name,version\n"
  8248. "name: guile\n"
  8249. "version: 3.0.5\n"
  8250. "\n"
  8251. msgstr ""
  8252. #. type: example
  8253. #: guix-git/doc/guix.texi:3633
  8254. #, no-wrap
  8255. msgid ""
  8256. "name: guile\n"
  8257. "version: 3.0.2\n"
  8258. "\n"
  8259. msgstr ""
  8260. #. type: example
  8261. #: guix-git/doc/guix.texi:3637
  8262. #, no-wrap
  8263. msgid ""
  8264. "name: guile\n"
  8265. "version: 2.2.7\n"
  8266. "@dots{}\n"
  8267. msgstr ""
  8268. #. type: table
  8269. #: guix-git/doc/guix.texi:3641
  8270. 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):"
  8271. msgstr ""
  8272. #. type: example
  8273. #: guix-git/doc/guix.texi:3645
  8274. #, no-wrap
  8275. msgid ""
  8276. "$ guix show guile@@3.0.5 | recsel -p name,version\n"
  8277. "name: guile\n"
  8278. "version: 3.0.5\n"
  8279. msgstr ""
  8280. #. type: item
  8281. #: guix-git/doc/guix.texi:3647
  8282. #, no-wrap
  8283. msgid "--list-installed[=@var{regexp}]"
  8284. msgstr ""
  8285. #. type: itemx
  8286. #: guix-git/doc/guix.texi:3648
  8287. #, no-wrap
  8288. msgid "-I [@var{regexp}]"
  8289. msgstr ""
  8290. #. type: table
  8291. #: guix-git/doc/guix.texi:3652
  8292. 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}."
  8293. msgstr ""
  8294. #. type: table
  8295. #: guix-git/doc/guix.texi:3658
  8296. 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."
  8297. msgstr ""
  8298. #. type: item
  8299. #: guix-git/doc/guix.texi:3659
  8300. #, no-wrap
  8301. msgid "--list-available[=@var{regexp}]"
  8302. msgstr ""
  8303. #. type: itemx
  8304. #: guix-git/doc/guix.texi:3660
  8305. #, no-wrap
  8306. msgid "-A [@var{regexp}]"
  8307. msgstr ""
  8308. #. type: table
  8309. #: guix-git/doc/guix.texi:3664
  8310. 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}."
  8311. msgstr ""
  8312. #. type: table
  8313. #: guix-git/doc/guix.texi:3668
  8314. 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."
  8315. msgstr ""
  8316. #. type: item
  8317. #: guix-git/doc/guix.texi:3669 guix-git/doc/guix.texi:4515
  8318. #, no-wrap
  8319. msgid "--list-generations[=@var{pattern}]"
  8320. msgstr ""
  8321. #. type: itemx
  8322. #: guix-git/doc/guix.texi:3670 guix-git/doc/guix.texi:4516
  8323. #, no-wrap
  8324. msgid "-l [@var{pattern}]"
  8325. msgstr ""
  8326. #. type: table
  8327. #: guix-git/doc/guix.texi:3676
  8328. 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."
  8329. msgstr ""
  8330. #. type: table
  8331. #: guix-git/doc/guix.texi:3681
  8332. 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."
  8333. msgstr ""
  8334. #. type: table
  8335. #: guix-git/doc/guix.texi:3684
  8336. msgid "When @var{pattern} is used, the command returns only matching generations. Valid patterns include:"
  8337. msgstr ""
  8338. #. type: item
  8339. #: guix-git/doc/guix.texi:3686
  8340. #, no-wrap
  8341. msgid "@emph{Integers and comma-separated integers}. Both patterns denote"
  8342. msgstr ""
  8343. #. type: itemize
  8344. #: guix-git/doc/guix.texi:3689
  8345. msgid "generation numbers. For instance, @option{--list-generations=1} returns the first one."
  8346. msgstr ""
  8347. #. type: itemize
  8348. #: guix-git/doc/guix.texi:3692
  8349. msgid "And @option{--list-generations=1,8,2} outputs three generations in the specified order. Neither spaces nor trailing commas are allowed."
  8350. msgstr ""
  8351. #. type: item
  8352. #: guix-git/doc/guix.texi:3693
  8353. #, no-wrap
  8354. msgid "@emph{Ranges}. @option{--list-generations=2..9} prints the"
  8355. msgstr ""
  8356. #. type: itemize
  8357. #: guix-git/doc/guix.texi:3696
  8358. msgid "specified generations and everything in between. Note that the start of a range must be smaller than its end."
  8359. msgstr ""
  8360. #. type: itemize
  8361. #: guix-git/doc/guix.texi:3700
  8362. msgid "It is also possible to omit the endpoint. For example, @option{--list-generations=2..}, returns all generations starting from the second one."
  8363. msgstr ""
  8364. #. type: item
  8365. #: guix-git/doc/guix.texi:3701
  8366. #, no-wrap
  8367. msgid "@emph{Durations}. You can also get the last @emph{N}@tie{}days, weeks,"
  8368. msgstr ""
  8369. #. type: itemize
  8370. #: guix-git/doc/guix.texi:3705
  8371. 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."
  8372. msgstr ""
  8373. #. type: item
  8374. #: guix-git/doc/guix.texi:3707 guix-git/doc/guix.texi:4550
  8375. #, no-wrap
  8376. msgid "--delete-generations[=@var{pattern}]"
  8377. msgstr ""
  8378. #. type: itemx
  8379. #: guix-git/doc/guix.texi:3708 guix-git/doc/guix.texi:4551
  8380. #, no-wrap
  8381. msgid "-d [@var{pattern}]"
  8382. msgstr ""
  8383. #. type: table
  8384. #: guix-git/doc/guix.texi:3711 guix-git/doc/guix.texi:4554
  8385. msgid "When @var{pattern} is omitted, delete all generations except the current one."
  8386. msgstr ""
  8387. #. type: table
  8388. #: guix-git/doc/guix.texi:3717 guix-git/doc/guix.texi:4560
  8389. 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."
  8390. msgstr ""
  8391. #. type: table
  8392. #: guix-git/doc/guix.texi:3720
  8393. msgid "If the current generation matches, it is @emph{not} deleted. Also, the zeroth generation is never deleted."
  8394. msgstr ""
  8395. #. type: table
  8396. #: guix-git/doc/guix.texi:3723 guix-git/doc/guix.texi:4565
  8397. msgid "Note that deleting generations prevents rolling back to them. Consequently, this command must be used with care."
  8398. msgstr ""
  8399. #. type: cindex
  8400. #: guix-git/doc/guix.texi:3724
  8401. #, no-wrap
  8402. msgid "manifest, exporting"
  8403. msgstr ""
  8404. #. type: anchor{#1}
  8405. #: guix-git/doc/guix.texi:3726
  8406. msgid "export-manifest"
  8407. msgstr ""
  8408. #. type: item
  8409. #: guix-git/doc/guix.texi:3726
  8410. #, no-wrap
  8411. msgid "--export-manifest"
  8412. msgstr ""
  8413. #. type: table
  8414. #: guix-git/doc/guix.texi:3729
  8415. msgid "Write to standard output a manifest suitable for @option{--manifest} corresponding to the chosen profile(s)."
  8416. msgstr ""
  8417. #. type: table
  8418. #: guix-git/doc/guix.texi:3733
  8419. 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."
  8420. msgstr ""
  8421. #. type: table
  8422. #: guix-git/doc/guix.texi:3738
  8423. 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."
  8424. msgstr ""
  8425. #. type: table
  8426. #: guix-git/doc/guix.texi:3743
  8427. 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."
  8428. msgstr ""
  8429. #. type: cindex
  8430. #: guix-git/doc/guix.texi:3744
  8431. #, fuzzy, no-wrap
  8432. msgid "pinning, channel revisions of a profile"
  8433. msgstr "和其它版本的Guix交互。"
  8434. #. type: item
  8435. #: guix-git/doc/guix.texi:3745
  8436. #, no-wrap
  8437. msgid "--export-channels"
  8438. msgstr ""
  8439. #. type: table
  8440. #: guix-git/doc/guix.texi:3749
  8441. 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})."
  8442. msgstr ""
  8443. #. type: table
  8444. #: guix-git/doc/guix.texi:3753
  8445. msgid "Together with @option{--export-manifest}, this option provides information allowing you to replicate the current profile (@pxref{Replicating Guix})."
  8446. msgstr ""
  8447. #. type: table
  8448. #: guix-git/doc/guix.texi:3761
  8449. 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})."
  8450. msgstr ""
  8451. #. type: table
  8452. #: guix-git/doc/guix.texi:3766
  8453. 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."
  8454. msgstr ""
  8455. #. type: Plain text
  8456. #: guix-git/doc/guix.texi:3773
  8457. 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})."
  8458. msgstr ""
  8459. #. type: cindex
  8460. #: guix-git/doc/guix.texi:3778
  8461. #, no-wrap
  8462. msgid "pre-built binaries"
  8463. msgstr ""
  8464. #. type: Plain text
  8465. #: guix-git/doc/guix.texi:3784
  8466. 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."
  8467. msgstr ""
  8468. #. type: Plain text
  8469. #: guix-git/doc/guix.texi:3789
  8470. 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."
  8471. msgstr ""
  8472. #. type: cindex
  8473. #: guix-git/doc/guix.texi:3803
  8474. #, no-wrap
  8475. msgid "build farm"
  8476. msgstr ""
  8477. #. type: Plain text
  8478. #: guix-git/doc/guix.texi:3814
  8479. 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})."
  8480. msgstr ""
  8481. #. type: Plain text
  8482. #: guix-git/doc/guix.texi:3820
  8483. 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."
  8484. msgstr ""
  8485. #. type: Plain text
  8486. #: guix-git/doc/guix.texi:3829
  8487. 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."
  8488. msgstr ""
  8489. #. type: cindex
  8490. #: guix-git/doc/guix.texi:3833
  8491. #, no-wrap
  8492. msgid "security"
  8493. msgstr ""
  8494. #. type: cindex
  8495. #: guix-git/doc/guix.texi:3835
  8496. #, no-wrap
  8497. msgid "access control list (ACL), for substitutes"
  8498. msgstr ""
  8499. #. type: cindex
  8500. #: guix-git/doc/guix.texi:3836
  8501. #, no-wrap
  8502. msgid "ACL (access control list), for substitutes"
  8503. msgstr ""
  8504. #. type: Plain text
  8505. #: guix-git/doc/guix.texi:3842
  8506. 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."
  8507. msgstr ""
  8508. #. type: quotation
  8509. #: guix-git/doc/guix.texi:3847
  8510. 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."
  8511. msgstr ""
  8512. #. type: Plain text
  8513. #: guix-git/doc/guix.texi:3855
  8514. 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:"
  8515. msgstr ""
  8516. #. type: example
  8517. #: guix-git/doc/guix.texi:3859
  8518. #, no-wrap
  8519. msgid ""
  8520. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-1}.pub\n"
  8521. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-2}.pub\n"
  8522. msgstr ""
  8523. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-1}.pub\n"
  8524. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-2}.pub\n"
  8525. #. type: Plain text
  8526. #: guix-git/doc/guix.texi:3863
  8527. msgid "Once this is in place, the output of a command like @code{guix build} should change from something like:"
  8528. msgstr ""
  8529. #. type: example
  8530. #: guix-git/doc/guix.texi:3872
  8531. #, no-wrap
  8532. msgid ""
  8533. "$ guix build emacs --dry-run\n"
  8534. "The following derivations would be built:\n"
  8535. " /gnu/store/yr7bnx8xwcayd6j95r2clmkdl1qh688w-emacs-24.3.drv\n"
  8536. " /gnu/store/x8qsh1hlhgjx6cwsjyvybnfv2i37z23w-dbus-1.6.4.tar.gz.drv\n"
  8537. " /gnu/store/1ixwp12fl950d15h2cj11c73733jay0z-alsa-lib-1.0.27.1.tar.bz2.drv\n"
  8538. " /gnu/store/nlma1pw0p603fpfiqy7kn4zm105r5dmw-util-linux-2.21.drv\n"
  8539. "@dots{}\n"
  8540. msgstr ""
  8541. #. type: Plain text
  8542. #: guix-git/doc/guix.texi:3876
  8543. msgid "to something like:"
  8544. msgstr ""
  8545. #. type: example
  8546. #: guix-git/doc/guix.texi:3885
  8547. #, no-wrap
  8548. msgid ""
  8549. "$ guix build emacs --dry-run\n"
  8550. "112.3 MB would be downloaded:\n"
  8551. " /gnu/store/pk3n22lbq6ydamyymqkkz7i69wiwjiwi-emacs-24.3\n"
  8552. " /gnu/store/2ygn4ncnhrpr61rssa6z0d9x22si0va3-libjpeg-8d\n"
  8553. " /gnu/store/71yz6lgx4dazma9dwn2mcjxaah9w77jq-cairo-1.12.16\n"
  8554. " /gnu/store/7zdhgp0n1518lvfn8mb96sxqfmvqrl7v-libxrender-0.9.7\n"
  8555. "@dots{}\n"
  8556. msgstr ""
  8557. #. type: Plain text
  8558. #: guix-git/doc/guix.texi:3892
  8559. 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."
  8560. msgstr ""
  8561. #. type: cindex
  8562. #: guix-git/doc/guix.texi:3893
  8563. #, no-wrap
  8564. msgid "substitutes, how to disable"
  8565. msgstr ""
  8566. #. type: Plain text
  8567. #: guix-git/doc/guix.texi:3899
  8568. 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."
  8569. msgstr ""
  8570. #. type: cindex
  8571. #: guix-git/doc/guix.texi:3903
  8572. #, fuzzy, no-wrap
  8573. msgid "substitute servers, adding more"
  8574. msgstr "授权substitute服务器。"
  8575. #. type: Plain text
  8576. #: guix-git/doc/guix.texi:3910
  8577. 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."
  8578. msgstr ""
  8579. #. type: Plain text
  8580. #: guix-git/doc/guix.texi:3915
  8581. 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."
  8582. msgstr ""
  8583. #. type: Plain text
  8584. #: guix-git/doc/guix.texi:3922
  8585. 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}})."
  8586. msgstr ""
  8587. #. type: Plain text
  8588. #: guix-git/doc/guix.texi:3928
  8589. 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:"
  8590. msgstr ""
  8591. #. type: lisp
  8592. #: guix-git/doc/guix.texi:3945
  8593. #, no-wrap
  8594. msgid ""
  8595. "(operating-system\n"
  8596. " ;; @dots{}\n"
  8597. " (services\n"
  8598. " ;; Assume we're starting from '%desktop-services'. Replace it\n"
  8599. " ;; with the list of services you're actually using.\n"
  8600. " (modify-services %desktop-services\n"
  8601. " (guix-service-type config =>\n"
  8602. " (guix-configuration\n"
  8603. " (inherit config)\n"
  8604. " (substitute-urls\n"
  8605. " (append (list \"https://guix.example.org\")\n"
  8606. " %default-substitute-urls))\n"
  8607. " (authorized-keys\n"
  8608. " (append (list (local-file \"./key.pub\"))\n"
  8609. " %default-authorized-guix-keys)))))))\n"
  8610. msgstr ""
  8611. #. type: Plain text
  8612. #: guix-git/doc/guix.texi:3952
  8613. 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:"
  8614. msgstr ""
  8615. #. type: example
  8616. #: guix-git/doc/guix.texi:3956
  8617. #, no-wrap
  8618. msgid ""
  8619. "$ sudo guix system reconfigure /etc/config.scm\n"
  8620. "$ sudo herd restart guix-daemon\n"
  8621. msgstr ""
  8622. #. type: Plain text
  8623. #: guix-git/doc/guix.texi:3960
  8624. msgid "If you're running Guix on a ``foreign distro'', you would instead take the following steps to get substitutes from additional servers:"
  8625. msgstr ""
  8626. #. type: enumerate
  8627. #: guix-git/doc/guix.texi:3969
  8628. 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}}):"
  8629. msgstr ""
  8630. #. type: example
  8631. #: guix-git/doc/guix.texi:3972
  8632. #, no-wrap
  8633. msgid "@dots{} --substitute-urls='https://guix.example.org @value{SUBSTITUTE-URLS}'\n"
  8634. msgstr ""
  8635. #. type: enumerate
  8636. #: guix-git/doc/guix.texi:3976
  8637. msgid "Restart the daemon. For systemd, it goes like this:"
  8638. msgstr ""
  8639. #. type: example
  8640. #: guix-git/doc/guix.texi:3980
  8641. #, no-wrap
  8642. msgid ""
  8643. "systemctl daemon-reload\n"
  8644. "systemctl restart guix-daemon.service\n"
  8645. msgstr ""
  8646. #. type: enumerate
  8647. #: guix-git/doc/guix.texi:3984
  8648. msgid "Authorize the key of the new server (@pxref{Invoking guix archive}):"
  8649. msgstr ""
  8650. #. type: example
  8651. #: guix-git/doc/guix.texi:3987
  8652. #, fuzzy, no-wrap
  8653. msgid "guix archive --authorize < key.pub\n"
  8654. msgstr "# guix archive --authorize < master-public-key.txt\n"
  8655. #. type: enumerate
  8656. #: guix-git/doc/guix.texi:3991
  8657. msgid "Again this assumes @file{key.pub} contains the public key that @code{guix.example.org} uses to sign substitutes."
  8658. msgstr ""
  8659. #. type: Plain text
  8660. #: guix-git/doc/guix.texi:4000
  8661. 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."
  8662. msgstr ""
  8663. #. type: Plain text
  8664. #: guix-git/doc/guix.texi:4004
  8665. 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."
  8666. msgstr ""
  8667. #. type: cindex
  8668. #: guix-git/doc/guix.texi:4008
  8669. #, no-wrap
  8670. msgid "digital signatures"
  8671. msgstr ""
  8672. #. type: Plain text
  8673. #: guix-git/doc/guix.texi:4012
  8674. 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."
  8675. msgstr ""
  8676. #. type: Plain text
  8677. #: guix-git/doc/guix.texi:4018
  8678. 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:"
  8679. msgstr ""
  8680. #. type: example
  8681. #: guix-git/doc/guix.texi:4021
  8682. #, no-wrap
  8683. msgid "--substitute-urls=\"https://a.example.org https://b.example.org\"\n"
  8684. msgstr ""
  8685. #. type: Plain text
  8686. #: guix-git/doc/guix.texi:4032
  8687. 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)."
  8688. msgstr ""
  8689. #. type: Plain text
  8690. #: guix-git/doc/guix.texi:4039
  8691. 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)."
  8692. msgstr ""
  8693. #. type: Plain text
  8694. #: guix-git/doc/guix.texi:4051
  8695. 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}."
  8696. msgstr ""
  8697. #. type: Plain text
  8698. #: guix-git/doc/guix.texi:4060
  8699. 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."
  8700. msgstr ""
  8701. #. type: Plain text
  8702. #: guix-git/doc/guix.texi:4074
  8703. 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."
  8704. msgstr ""
  8705. #. type: Plain text
  8706. #: guix-git/doc/guix.texi:4079
  8707. 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."
  8708. msgstr ""
  8709. #. type: cindex
  8710. #: guix-git/doc/guix.texi:4083
  8711. #, no-wrap
  8712. msgid "trust, of pre-built binaries"
  8713. msgstr ""
  8714. #. type: Plain text
  8715. #: guix-git/doc/guix.texi:4093
  8716. 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})."
  8717. msgstr ""
  8718. #. type: Plain text
  8719. #: guix-git/doc/guix.texi:4105
  8720. 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}})."
  8721. msgstr ""
  8722. #. type: Plain text
  8723. #: guix-git/doc/guix.texi:4109
  8724. 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}."
  8725. msgstr ""
  8726. #. type: cindex
  8727. #: guix-git/doc/guix.texi:4113
  8728. #, no-wrap
  8729. msgid "multiple-output packages"
  8730. msgstr ""
  8731. #. type: cindex
  8732. #: guix-git/doc/guix.texi:4114
  8733. #, no-wrap
  8734. msgid "package outputs"
  8735. msgstr ""
  8736. #. type: cindex
  8737. #: guix-git/doc/guix.texi:4115
  8738. #, no-wrap
  8739. msgid "outputs"
  8740. msgstr ""
  8741. #. type: Plain text
  8742. #: guix-git/doc/guix.texi:4125
  8743. 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."
  8744. msgstr ""
  8745. #. type: Plain text
  8746. #: guix-git/doc/guix.texi:4133
  8747. 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:"
  8748. msgstr ""
  8749. #. type: example
  8750. #: guix-git/doc/guix.texi:4136
  8751. #, no-wrap
  8752. msgid "guix install glib\n"
  8753. msgstr "guix install glib\n"
  8754. #. type: item
  8755. #: guix-git/doc/guix.texi:4138 guix-git/doc/guix.texi:37463
  8756. #: guix-git/doc/guix.texi:37520
  8757. #, no-wrap
  8758. msgid "documentation"
  8759. msgstr ""
  8760. #. type: Plain text
  8761. #: guix-git/doc/guix.texi:4140
  8762. msgid "The command to install its documentation is:"
  8763. msgstr ""
  8764. #. type: example
  8765. #: guix-git/doc/guix.texi:4143
  8766. #, no-wrap
  8767. msgid "guix install glib:doc\n"
  8768. msgstr ""
  8769. #. type: Plain text
  8770. #: guix-git/doc/guix.texi:4154
  8771. 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})."
  8772. msgstr ""
  8773. #. type: Plain text
  8774. #: guix-git/doc/guix.texi:4162
  8775. 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})."
  8776. msgstr ""
  8777. #. type: section
  8778. #: guix-git/doc/guix.texi:4165
  8779. #, no-wrap
  8780. msgid "Invoking @command{guix gc}"
  8781. msgstr ""
  8782. #. type: cindex
  8783. #: guix-git/doc/guix.texi:4167
  8784. #, no-wrap
  8785. msgid "garbage collector"
  8786. msgstr ""
  8787. #. type: cindex
  8788. #: guix-git/doc/guix.texi:4168
  8789. #, no-wrap
  8790. msgid "disk space"
  8791. msgstr ""
  8792. #. type: Plain text
  8793. #: guix-git/doc/guix.texi:4174
  8794. 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!"
  8795. msgstr ""
  8796. #. type: Plain text
  8797. #: guix-git/doc/guix.texi:4185
  8798. 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."
  8799. msgstr ""
  8800. #. type: Plain text
  8801. #: guix-git/doc/guix.texi:4191
  8802. 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})."
  8803. msgstr ""
  8804. #. type: Plain text
  8805. #: guix-git/doc/guix.texi:4195
  8806. 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:"
  8807. msgstr ""
  8808. #. type: example
  8809. #: guix-git/doc/guix.texi:4198
  8810. #, no-wrap
  8811. msgid "guix gc -F 5G\n"
  8812. msgstr ""
  8813. #. type: Plain text
  8814. #: guix-git/doc/guix.texi:4207
  8815. 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."
  8816. msgstr ""
  8817. #. type: Plain text
  8818. #: guix-git/doc/guix.texi:4213
  8819. 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:"
  8820. msgstr ""
  8821. #. type: item
  8822. #: guix-git/doc/guix.texi:4215
  8823. #, no-wrap
  8824. msgid "--collect-garbage[=@var{min}]"
  8825. msgstr ""
  8826. #. type: itemx
  8827. #: guix-git/doc/guix.texi:4216
  8828. #, no-wrap
  8829. msgid "-C [@var{min}]"
  8830. msgstr ""
  8831. #. type: table
  8832. #: guix-git/doc/guix.texi:4220
  8833. msgid "Collect garbage---i.e., unreachable @file{/gnu/store} files and sub-directories. This is the default operation when no option is specified."
  8834. msgstr ""
  8835. #. type: table
  8836. #: guix-git/doc/guix.texi:4225
  8837. 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})."
  8838. msgstr ""
  8839. #. type: table
  8840. #: guix-git/doc/guix.texi:4227
  8841. msgid "When @var{min} is omitted, collect all the garbage."
  8842. msgstr ""
  8843. #. type: item
  8844. #: guix-git/doc/guix.texi:4228
  8845. #, no-wrap
  8846. msgid "--free-space=@var{free}"
  8847. msgstr ""
  8848. #. type: itemx
  8849. #: guix-git/doc/guix.texi:4229
  8850. #, no-wrap
  8851. msgid "-F @var{free}"
  8852. msgstr ""
  8853. #. type: table
  8854. #: guix-git/doc/guix.texi:4233
  8855. 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."
  8856. msgstr ""
  8857. #. type: table
  8858. #: guix-git/doc/guix.texi:4236
  8859. msgid "When @var{free} or more is already available in @file{/gnu/store}, do nothing and exit immediately."
  8860. msgstr ""
  8861. #. type: item
  8862. #: guix-git/doc/guix.texi:4237
  8863. #, no-wrap
  8864. msgid "--delete-generations[=@var{duration}]"
  8865. msgstr ""
  8866. #. type: itemx
  8867. #: guix-git/doc/guix.texi:4238
  8868. #, no-wrap
  8869. msgid "-d [@var{duration}]"
  8870. msgstr ""
  8871. #. type: table
  8872. #: guix-git/doc/guix.texi:4242
  8873. 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}."
  8874. msgstr ""
  8875. #. type: table
  8876. #: guix-git/doc/guix.texi:4246
  8877. 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:"
  8878. msgstr ""
  8879. #. type: example
  8880. #: guix-git/doc/guix.texi:4249
  8881. #, no-wrap
  8882. msgid "guix gc -d 2m -F 10G\n"
  8883. msgstr ""
  8884. #. type: item
  8885. #: guix-git/doc/guix.texi:4251
  8886. #, no-wrap
  8887. msgid "--delete"
  8888. msgstr ""
  8889. #. type: itemx
  8890. #: guix-git/doc/guix.texi:4252 guix-git/doc/guix.texi:5782
  8891. #, no-wrap
  8892. msgid "-D"
  8893. msgstr ""
  8894. #. type: table
  8895. #: guix-git/doc/guix.texi:4256
  8896. 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."
  8897. msgstr ""
  8898. #. type: item
  8899. #: guix-git/doc/guix.texi:4257
  8900. #, no-wrap
  8901. msgid "--list-failures"
  8902. msgstr ""
  8903. #. type: table
  8904. #: guix-git/doc/guix.texi:4259
  8905. msgid "List store items corresponding to cached build failures."
  8906. msgstr ""
  8907. #. type: table
  8908. #: guix-git/doc/guix.texi:4263
  8909. msgid "This prints nothing unless the daemon was started with @option{--cache-failures} (@pxref{Invoking guix-daemon, @option{--cache-failures}})."
  8910. msgstr ""
  8911. #. type: item
  8912. #: guix-git/doc/guix.texi:4264
  8913. #, no-wrap
  8914. msgid "--list-roots"
  8915. msgstr ""
  8916. #. type: table
  8917. #: guix-git/doc/guix.texi:4267
  8918. msgid "List the GC roots owned by the user; when run as root, list @emph{all} the GC roots."
  8919. msgstr ""
  8920. #. type: item
  8921. #: guix-git/doc/guix.texi:4268
  8922. #, no-wrap
  8923. msgid "--list-busy"
  8924. msgstr ""
  8925. #. type: table
  8926. #: guix-git/doc/guix.texi:4271
  8927. msgid "List store items in use by currently running processes. These store items are effectively considered GC roots: they cannot be deleted."
  8928. msgstr ""
  8929. #. type: item
  8930. #: guix-git/doc/guix.texi:4272
  8931. #, no-wrap
  8932. msgid "--clear-failures"
  8933. msgstr ""
  8934. #. type: table
  8935. #: guix-git/doc/guix.texi:4274
  8936. msgid "Remove the specified store items from the failed-build cache."
  8937. msgstr ""
  8938. #. type: table
  8939. #: guix-git/doc/guix.texi:4277
  8940. msgid "Again, this option only makes sense when the daemon is started with @option{--cache-failures}. Otherwise, it does nothing."
  8941. msgstr ""
  8942. #. type: item
  8943. #: guix-git/doc/guix.texi:4278
  8944. #, no-wrap
  8945. msgid "--list-dead"
  8946. msgstr ""
  8947. #. type: table
  8948. #: guix-git/doc/guix.texi:4281
  8949. 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."
  8950. msgstr ""
  8951. #. type: item
  8952. #: guix-git/doc/guix.texi:4282
  8953. #, no-wrap
  8954. msgid "--list-live"
  8955. msgstr ""
  8956. #. type: table
  8957. #: guix-git/doc/guix.texi:4284
  8958. msgid "Show the list of live store files and directories."
  8959. msgstr ""
  8960. #. type: Plain text
  8961. #: guix-git/doc/guix.texi:4288
  8962. msgid "In addition, the references among existing store files can be queried:"
  8963. msgstr ""
  8964. #. type: item
  8965. #: guix-git/doc/guix.texi:4291
  8966. #, no-wrap
  8967. msgid "--references"
  8968. msgstr ""
  8969. #. type: itemx
  8970. #: guix-git/doc/guix.texi:4292
  8971. #, no-wrap
  8972. msgid "--referrers"
  8973. msgstr ""
  8974. #. type: cindex
  8975. #: guix-git/doc/guix.texi:4293 guix-git/doc/guix.texi:13668
  8976. #, no-wrap
  8977. msgid "package dependencies"
  8978. msgstr ""
  8979. #. type: table
  8980. #: guix-git/doc/guix.texi:4296
  8981. msgid "List the references (respectively, the referrers) of store files given as arguments."
  8982. msgstr ""
  8983. #. type: item
  8984. #: guix-git/doc/guix.texi:4297
  8985. #, no-wrap
  8986. msgid "--requisites"
  8987. msgstr ""
  8988. #. type: itemx
  8989. #: guix-git/doc/guix.texi:4298 guix-git/doc/guix.texi:6568
  8990. #, no-wrap
  8991. msgid "-R"
  8992. msgstr ""
  8993. #. type: item
  8994. #: guix-git/doc/guix.texi:4299 guix-git/doc/guix.texi:13524
  8995. #: guix-git/doc/guix.texi:13552 guix-git/doc/guix.texi:13633
  8996. #, no-wrap
  8997. msgid "closure"
  8998. msgstr ""
  8999. #. type: table
  9000. #: guix-git/doc/guix.texi:4304
  9001. 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."
  9002. msgstr ""
  9003. #. type: table
  9004. #: guix-git/doc/guix.texi:4308
  9005. 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."
  9006. msgstr ""
  9007. #. type: item
  9008. #: guix-git/doc/guix.texi:4309
  9009. #, no-wrap
  9010. msgid "--derivers"
  9011. msgstr ""
  9012. #. type: item
  9013. #: guix-git/doc/guix.texi:4310 guix-git/doc/guix.texi:6882
  9014. #: guix-git/doc/guix.texi:13380 guix-git/doc/guix.texi:13777
  9015. #, no-wrap
  9016. msgid "derivation"
  9017. msgstr ""
  9018. #. type: table
  9019. #: guix-git/doc/guix.texi:4313
  9020. msgid "Return the derivation(s) leading to the given store items (@pxref{Derivations})."
  9021. msgstr ""
  9022. #. type: table
  9023. #: guix-git/doc/guix.texi:4315
  9024. msgid "For example, this command:"
  9025. msgstr ""
  9026. #. type: example
  9027. #: guix-git/doc/guix.texi:4318
  9028. #, no-wrap
  9029. msgid "guix gc --derivers $(guix package -I ^emacs$ | cut -f4)\n"
  9030. msgstr ""
  9031. #. type: table
  9032. #: guix-git/doc/guix.texi:4323
  9033. msgid "returns the @file{.drv} file(s) leading to the @code{emacs} package installed in your profile."
  9034. msgstr ""
  9035. #. type: table
  9036. #: guix-git/doc/guix.texi:4327
  9037. 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."
  9038. msgstr ""
  9039. #. type: Plain text
  9040. #: guix-git/doc/guix.texi:4331
  9041. msgid "Lastly, the following options allow you to check the integrity of the store and to control disk usage."
  9042. msgstr ""
  9043. #. type: item
  9044. #: guix-git/doc/guix.texi:4334
  9045. #, no-wrap
  9046. msgid "--verify[=@var{options}]"
  9047. msgstr ""
  9048. #. type: cindex
  9049. #: guix-git/doc/guix.texi:4335
  9050. #, no-wrap
  9051. msgid "integrity, of the store"
  9052. msgstr ""
  9053. #. type: cindex
  9054. #: guix-git/doc/guix.texi:4336
  9055. #, no-wrap
  9056. msgid "integrity checking"
  9057. msgstr ""
  9058. #. type: table
  9059. #: guix-git/doc/guix.texi:4338
  9060. msgid "Verify the integrity of the store."
  9061. msgstr ""
  9062. #. type: table
  9063. #: guix-git/doc/guix.texi:4341
  9064. 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}."
  9065. msgstr ""
  9066. #. type: table
  9067. #: guix-git/doc/guix.texi:4344
  9068. msgid "When provided, @var{options} must be a comma-separated list containing one or more of @code{contents} and @code{repair}."
  9069. msgstr ""
  9070. #. type: table
  9071. #: guix-git/doc/guix.texi:4350
  9072. 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."
  9073. msgstr ""
  9074. #. type: cindex
  9075. #: guix-git/doc/guix.texi:4351
  9076. #, no-wrap
  9077. msgid "repairing the store"
  9078. msgstr ""
  9079. #. type: cindex
  9080. #: guix-git/doc/guix.texi:4352 guix-git/doc/guix.texi:11984
  9081. #, no-wrap
  9082. msgid "corruption, recovering from"
  9083. msgstr ""
  9084. #. type: table
  9085. #: guix-git/doc/guix.texi:4360
  9086. 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})."
  9087. msgstr ""
  9088. #. type: item
  9089. #: guix-git/doc/guix.texi:4361
  9090. #, no-wrap
  9091. msgid "--optimize"
  9092. msgstr ""
  9093. #. type: table
  9094. #: guix-git/doc/guix.texi:4365
  9095. msgid "Optimize the store by hard-linking identical files---this is @dfn{deduplication}."
  9096. msgstr ""
  9097. #. type: table
  9098. #: guix-git/doc/guix.texi:4371
  9099. 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}."
  9100. msgstr ""
  9101. #. type: section
  9102. #: guix-git/doc/guix.texi:4375
  9103. #, no-wrap
  9104. msgid "Invoking @command{guix pull}"
  9105. msgstr ""
  9106. #. type: cindex
  9107. #: guix-git/doc/guix.texi:4377
  9108. #, no-wrap
  9109. msgid "upgrading Guix"
  9110. msgstr ""
  9111. #. type: cindex
  9112. #: guix-git/doc/guix.texi:4378
  9113. #, no-wrap
  9114. msgid "updating Guix"
  9115. msgstr ""
  9116. #. type: command{#1}
  9117. #: guix-git/doc/guix.texi:4379
  9118. #, no-wrap
  9119. msgid "guix pull"
  9120. msgstr ""
  9121. #. type: cindex
  9122. #: guix-git/doc/guix.texi:4380
  9123. #, no-wrap
  9124. msgid "pull"
  9125. msgstr ""
  9126. #. type: cindex
  9127. #: guix-git/doc/guix.texi:4381
  9128. #, fuzzy, no-wrap
  9129. msgid "security, @command{guix pull}"
  9130. msgstr "调用@command{guix build}"
  9131. #. type: cindex
  9132. #: guix-git/doc/guix.texi:4382
  9133. #, no-wrap
  9134. msgid "authenticity, of code obtained with @command{guix pull}"
  9135. msgstr ""
  9136. #. type: Plain text
  9137. #: guix-git/doc/guix.texi:4392
  9138. 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."
  9139. msgstr ""
  9140. #. type: Plain text
  9141. #: guix-git/doc/guix.texi:4395
  9142. msgid "Specifically, @command{guix pull} downloads code from the @dfn{channels} (@pxref{Channels}) specified by one of the followings, in this order:"
  9143. msgstr ""
  9144. #. type: enumerate
  9145. #: guix-git/doc/guix.texi:4399
  9146. msgid "the @option{--channels} option;"
  9147. msgstr ""
  9148. #. type: enumerate
  9149. #: guix-git/doc/guix.texi:4401
  9150. msgid "the user's @file{~/.config/guix/channels.scm} file;"
  9151. msgstr ""
  9152. #. type: enumerate
  9153. #: guix-git/doc/guix.texi:4403
  9154. msgid "the system-wide @file{/etc/guix/channels.scm} file;"
  9155. msgstr ""
  9156. #. type: enumerate
  9157. #: guix-git/doc/guix.texi:4406
  9158. msgid "the built-in default channels specified in the @code{%default-channels} variable."
  9159. msgstr ""
  9160. #. type: Plain text
  9161. #: guix-git/doc/guix.texi:4413
  9162. 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."
  9163. msgstr ""
  9164. #. type: Plain text
  9165. #: guix-git/doc/guix.texi:4419
  9166. 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."
  9167. msgstr ""
  9168. #. type: Plain text
  9169. #: guix-git/doc/guix.texi:4425
  9170. 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}):"
  9171. msgstr ""
  9172. #. type: example
  9173. #: guix-git/doc/guix.texi:4429
  9174. #, no-wrap
  9175. msgid ""
  9176. "export PATH=\"$HOME/.config/guix/current/bin:$PATH\"\n"
  9177. "export INFOPATH=\"$HOME/.config/guix/current/share/info:$INFOPATH\"\n"
  9178. msgstr ""
  9179. #. type: Plain text
  9180. #: guix-git/doc/guix.texi:4433
  9181. msgid "The @option{--list-generations} or @option{-l} option lists past generations produced by @command{guix pull}, along with details about their provenance:"
  9182. msgstr ""
  9183. #. type: example
  9184. #: guix-git/doc/guix.texi:4441
  9185. #, no-wrap
  9186. msgid ""
  9187. "$ guix pull -l\n"
  9188. "Generation 1\tJun 10 2018 00:18:18\n"
  9189. " guix 65956ad\n"
  9190. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  9191. " branch: origin/master\n"
  9192. " commit: 65956ad3526ba09e1f7a40722c96c6ef7c0936fe\n"
  9193. "\n"
  9194. msgstr ""
  9195. #. type: example
  9196. #: guix-git/doc/guix.texi:4447
  9197. #, no-wrap
  9198. msgid ""
  9199. "Generation 2\tJun 11 2018 11:02:49\n"
  9200. " guix e0cc7f6\n"
  9201. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  9202. " branch: origin/master\n"
  9203. " commit: e0cc7f669bec22c37481dd03a7941c7d11a64f1d\n"
  9204. "\n"
  9205. msgstr ""
  9206. #. type: example
  9207. #: guix-git/doc/guix.texi:4453
  9208. #, no-wrap
  9209. msgid ""
  9210. "Generation 3\tJun 13 2018 23:31:07\t(current)\n"
  9211. " guix 844cc1c\n"
  9212. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  9213. " branch: origin/master\n"
  9214. " commit: 844cc1c8f394f03b404c5bb3aee086922373490c\n"
  9215. msgstr ""
  9216. #. type: Plain text
  9217. #: guix-git/doc/guix.texi:4457
  9218. msgid "@xref{Invoking guix describe, @command{guix describe}}, for other ways to describe the current status of Guix."
  9219. msgstr ""
  9220. #. type: Plain text
  9221. #: guix-git/doc/guix.texi:4462
  9222. 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:"
  9223. msgstr ""
  9224. #. type: example
  9225. #: guix-git/doc/guix.texi:4468
  9226. #, no-wrap
  9227. msgid ""
  9228. "$ guix pull --roll-back\n"
  9229. "switched from generation 3 to 2\n"
  9230. "$ guix pull --delete-generations=1\n"
  9231. "deleting /var/guix/profiles/per-user/charlie/current-guix-1-link\n"
  9232. msgstr ""
  9233. #. type: Plain text
  9234. #: guix-git/doc/guix.texi:4472
  9235. msgid "You can also use @command{guix package} (@pxref{Invoking guix package}) to manage the profile by naming it explicitly:"
  9236. msgstr ""
  9237. #. type: example
  9238. #: guix-git/doc/guix.texi:4477
  9239. #, no-wrap
  9240. msgid ""
  9241. "$ guix package -p ~/.config/guix/current --roll-back\n"
  9242. "switched from generation 3 to 2\n"
  9243. "$ guix package -p ~/.config/guix/current --delete-generations=1\n"
  9244. "deleting /var/guix/profiles/per-user/charlie/current-guix-1-link\n"
  9245. msgstr ""
  9246. #. type: Plain text
  9247. #: guix-git/doc/guix.texi:4481
  9248. msgid "The @command{guix pull} command is usually invoked with no arguments, but it supports the following options:"
  9249. msgstr ""
  9250. #. type: item
  9251. #: guix-git/doc/guix.texi:4483 guix-git/doc/guix.texi:4651
  9252. #, no-wrap
  9253. msgid "--url=@var{url}"
  9254. msgstr ""
  9255. #. type: itemx
  9256. #: guix-git/doc/guix.texi:4484 guix-git/doc/guix.texi:4652
  9257. #, no-wrap
  9258. msgid "--commit=@var{commit}"
  9259. msgstr ""
  9260. #. type: itemx
  9261. #: guix-git/doc/guix.texi:4485 guix-git/doc/guix.texi:4653
  9262. #, no-wrap
  9263. msgid "--branch=@var{branch}"
  9264. msgstr ""
  9265. #. type: table
  9266. #: guix-git/doc/guix.texi:4489
  9267. 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}."
  9268. msgstr ""
  9269. #. type: cindex
  9270. #: guix-git/doc/guix.texi:4490 guix-git/doc/guix.texi:5097
  9271. #, no-wrap
  9272. msgid "@file{channels.scm}, configuration file"
  9273. msgstr ""
  9274. #. type: cindex
  9275. #: guix-git/doc/guix.texi:4491 guix-git/doc/guix.texi:5098
  9276. #, no-wrap
  9277. msgid "configuration file for channels"
  9278. msgstr ""
  9279. #. type: table
  9280. #: guix-git/doc/guix.texi:4495
  9281. 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)."
  9282. msgstr ""
  9283. #. type: item
  9284. #: guix-git/doc/guix.texi:4496 guix-git/doc/guix.texi:4658
  9285. #, no-wrap
  9286. msgid "--channels=@var{file}"
  9287. msgstr ""
  9288. #. type: itemx
  9289. #: guix-git/doc/guix.texi:4497 guix-git/doc/guix.texi:4659
  9290. #, no-wrap
  9291. msgid "-C @var{file}"
  9292. msgstr ""
  9293. #. type: table
  9294. #: guix-git/doc/guix.texi:4503
  9295. 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."
  9296. msgstr ""
  9297. #. type: cindex
  9298. #: guix-git/doc/guix.texi:4504
  9299. #, fuzzy, no-wrap
  9300. msgid "channel news"
  9301. msgstr "通道"
  9302. #. type: item
  9303. #: guix-git/doc/guix.texi:4505
  9304. #, no-wrap
  9305. msgid "--news"
  9306. msgstr ""
  9307. #. type: itemx
  9308. #: guix-git/doc/guix.texi:4506 guix-git/doc/guix.texi:5901
  9309. #: guix-git/doc/guix.texi:6314 guix-git/doc/guix.texi:36353
  9310. #: guix-git/doc/guix.texi:38754
  9311. #, no-wrap
  9312. msgid "-N"
  9313. msgstr ""
  9314. #. type: table
  9315. #: guix-git/doc/guix.texi:4511
  9316. msgid "Display news written by channel authors for their users for changes made since the previous generation (@pxref{Channels, Writing Channel News}). When @option{--details} is passed, additionally display new and upgraded packages."
  9317. msgstr ""
  9318. #. type: table
  9319. #: guix-git/doc/guix.texi:4514
  9320. msgid "You can view that information for previous generations with @command{guix pull -l}."
  9321. msgstr ""
  9322. #. type: table
  9323. #: guix-git/doc/guix.texi:4521
  9324. 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})."
  9325. msgstr ""
  9326. #. type: table
  9327. #: guix-git/doc/guix.texi:4526
  9328. msgid "By default, this prints information about the channels used in each revision as well as the corresponding news entries. If you pass @option{--details}, it will also print the list of packages added and upgraded in each generation compared to the previous one."
  9329. msgstr ""
  9330. #. type: item
  9331. #: guix-git/doc/guix.texi:4527
  9332. #, no-wrap
  9333. msgid "--details"
  9334. msgstr ""
  9335. #. type: table
  9336. #: guix-git/doc/guix.texi:4531
  9337. msgid "Instruct @option{--list-generations} or @option{--news} to display more information about the differences between subsequent generations---see above."
  9338. msgstr ""
  9339. #. type: table
  9340. #: guix-git/doc/guix.texi:4538
  9341. msgid "Roll back to the previous @dfn{generation} of @file{~/.config/guix/current}---i.e., undo the last transaction."
  9342. msgstr ""
  9343. #. type: table
  9344. #: guix-git/doc/guix.texi:4562
  9345. msgid "If the current generation matches, it is @emph{not} deleted."
  9346. msgstr ""
  9347. #. type: table
  9348. #: guix-git/doc/guix.texi:4568
  9349. msgid "@xref{Invoking guix describe}, for a way to display information about the current generation only."
  9350. msgstr ""
  9351. #. type: table
  9352. #: guix-git/doc/guix.texi:4572
  9353. msgid "Use @var{profile} instead of @file{~/.config/guix/current}."
  9354. msgstr ""
  9355. #. type: item
  9356. #: guix-git/doc/guix.texi:4573 guix-git/doc/guix.texi:11313
  9357. #: guix-git/doc/guix.texi:13268
  9358. #, no-wrap
  9359. msgid "--dry-run"
  9360. msgstr ""
  9361. #. type: itemx
  9362. #: guix-git/doc/guix.texi:4574 guix-git/doc/guix.texi:11314
  9363. #: guix-git/doc/guix.texi:13269 guix-git/doc/guix.texi:13506
  9364. #, no-wrap
  9365. msgid "-n"
  9366. msgstr ""
  9367. #. type: table
  9368. #: guix-git/doc/guix.texi:4577
  9369. msgid "Show which channel commit(s) would be used and what would be built or substituted but do not actually do it."
  9370. msgstr ""
  9371. #. type: item
  9372. #: guix-git/doc/guix.texi:4578 guix-git/doc/guix.texi:36372
  9373. #: guix-git/doc/guix.texi:38972
  9374. #, no-wrap
  9375. msgid "--allow-downgrades"
  9376. msgstr ""
  9377. #. type: table
  9378. #: guix-git/doc/guix.texi:4581
  9379. msgid "Allow pulling older or unrelated revisions of channels than those currently in use."
  9380. msgstr ""
  9381. #. type: cindex
  9382. #: guix-git/doc/guix.texi:4582
  9383. #, no-wrap
  9384. msgid "downgrade attacks, protection against"
  9385. msgstr ""
  9386. #. type: table
  9387. #: guix-git/doc/guix.texi:4587
  9388. 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."
  9389. msgstr ""
  9390. #. type: quotation
  9391. #: guix-git/doc/guix.texi:4591 guix-git/doc/guix.texi:36386
  9392. msgid "Make sure you understand its security implications before using @option{--allow-downgrades}."
  9393. msgstr ""
  9394. #. type: item
  9395. #: guix-git/doc/guix.texi:4593
  9396. #, fuzzy, no-wrap
  9397. msgid "--disable-authentication"
  9398. msgstr "--disable-deduplication"
  9399. #. type: table
  9400. #: guix-git/doc/guix.texi:4595
  9401. msgid "Allow pulling channel code without authenticating it."
  9402. msgstr ""
  9403. #. type: cindex
  9404. #: guix-git/doc/guix.texi:4596 guix-git/doc/guix.texi:5243
  9405. #, fuzzy, no-wrap
  9406. msgid "authentication, of channel code"
  9407. msgstr "代码缩进"
  9408. #. type: table
  9409. #: guix-git/doc/guix.texi:4601
  9410. 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."
  9411. msgstr ""
  9412. #. type: quotation
  9413. #: guix-git/doc/guix.texi:4605
  9414. msgid "Make sure you understand its security implications before using @option{--disable-authentication}."
  9415. msgstr ""
  9416. #. type: itemx
  9417. #: guix-git/doc/guix.texi:4608 guix-git/doc/guix.texi:5884
  9418. #: guix-git/doc/guix.texi:6297 guix-git/doc/guix.texi:6697
  9419. #: guix-git/doc/guix.texi:11926 guix-git/doc/guix.texi:13651
  9420. #: guix-git/doc/guix.texi:13916 guix-git/doc/guix.texi:14593
  9421. #: guix-git/doc/guix.texi:36301
  9422. #, no-wrap
  9423. msgid "-s @var{system}"
  9424. msgstr ""
  9425. #. type: table
  9426. #: guix-git/doc/guix.texi:4611 guix-git/doc/guix.texi:6700
  9427. msgid "Attempt to build for @var{system}---e.g., @code{i686-linux}---instead of the system type of the build host."
  9428. msgstr ""
  9429. #. type: table
  9430. #: guix-git/doc/guix.texi:4615
  9431. msgid "Use the bootstrap Guile to build the latest Guix. This option is only useful to Guix developers."
  9432. msgstr ""
  9433. #. type: Plain text
  9434. #: guix-git/doc/guix.texi:4621
  9435. 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."
  9436. msgstr ""
  9437. #. type: Plain text
  9438. #: guix-git/doc/guix.texi:4624
  9439. msgid "In addition, @command{guix pull} supports all the common build options (@pxref{Common Build Options})."
  9440. msgstr ""
  9441. #. type: section
  9442. #: guix-git/doc/guix.texi:4626
  9443. #, fuzzy, no-wrap
  9444. msgid "Invoking @command{guix time-machine}"
  9445. msgstr "调用@command{guix-daemon}"
  9446. #. type: command{#1}
  9447. #: guix-git/doc/guix.texi:4628
  9448. #, no-wrap
  9449. msgid "guix time-machine"
  9450. msgstr ""
  9451. #. type: cindex
  9452. #: guix-git/doc/guix.texi:4629 guix-git/doc/guix.texi:5201
  9453. #, no-wrap
  9454. msgid "pinning, channels"
  9455. msgstr ""
  9456. #. type: cindex
  9457. #: guix-git/doc/guix.texi:4630 guix-git/doc/guix.texi:4812
  9458. #: guix-git/doc/guix.texi:5202
  9459. #, no-wrap
  9460. msgid "replicating Guix"
  9461. msgstr ""
  9462. #. type: cindex
  9463. #: guix-git/doc/guix.texi:4631 guix-git/doc/guix.texi:5203
  9464. #, no-wrap
  9465. msgid "reproducibility, of Guix"
  9466. msgstr ""
  9467. #. type: Plain text
  9468. #: guix-git/doc/guix.texi:4639
  9469. 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})."
  9470. msgstr ""
  9471. #. type: Plain text
  9472. #: guix-git/doc/guix.texi:4641 guix-git/doc/guix.texi:5665
  9473. #: guix-git/doc/guix.texi:6035 guix-git/doc/guix.texi:6820
  9474. #: guix-git/doc/guix.texi:11109 guix-git/doc/guix.texi:11233
  9475. #: guix-git/doc/guix.texi:12217 guix-git/doc/guix.texi:12313
  9476. #: guix-git/doc/guix.texi:13254 guix-git/doc/guix.texi:13481
  9477. #: guix-git/doc/guix.texi:13974 guix-git/doc/guix.texi:14347
  9478. #: guix-git/doc/guix.texi:14436 guix-git/doc/guix.texi:14475
  9479. #: guix-git/doc/guix.texi:14572
  9480. msgid "The general syntax is:"
  9481. msgstr ""
  9482. #. type: example
  9483. #: guix-git/doc/guix.texi:4644
  9484. #, no-wrap
  9485. msgid "guix time-machine @var{options}@dots{} -- @var{command} @var {arg}@dots{}\n"
  9486. msgstr ""
  9487. #. type: Plain text
  9488. #: guix-git/doc/guix.texi:4649
  9489. 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}):"
  9490. msgstr ""
  9491. #. type: table
  9492. #: guix-git/doc/guix.texi:4657
  9493. 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}."
  9494. msgstr ""
  9495. #. type: table
  9496. #: guix-git/doc/guix.texi:4663
  9497. 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."
  9498. msgstr ""
  9499. #. type: Plain text
  9500. #: guix-git/doc/guix.texi:4667
  9501. 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"
  9502. msgstr ""
  9503. #. type: example
  9504. #: guix-git/doc/guix.texi:4670
  9505. #, no-wrap
  9506. msgid "guix time-machine -- build hello\n"
  9507. msgstr ""
  9508. #. type: Plain text
  9509. #: guix-git/doc/guix.texi:4675
  9510. 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!"
  9511. msgstr ""
  9512. #. type: Plain text
  9513. #: guix-git/doc/guix.texi:4679
  9514. 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})."
  9515. msgstr ""
  9516. #. type: quotation
  9517. #: guix-git/doc/guix.texi:4687
  9518. msgid "The functionality described here is a ``technology preview'' as of version @value{VERSION}. As such, the interface is subject to change."
  9519. msgstr ""
  9520. #. type: cindex
  9521. #: guix-git/doc/guix.texi:4689 guix-git/doc/guix.texi:11146
  9522. #, no-wrap
  9523. msgid "inferiors"
  9524. msgstr ""
  9525. #. type: cindex
  9526. #: guix-git/doc/guix.texi:4690
  9527. #, no-wrap
  9528. msgid "composition of Guix revisions"
  9529. msgstr ""
  9530. #. type: Plain text
  9531. #: guix-git/doc/guix.texi:4695
  9532. 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."
  9533. msgstr ""
  9534. #. type: cindex
  9535. #: guix-git/doc/guix.texi:4696 guix-git/doc/guix.texi:4761
  9536. #, no-wrap
  9537. msgid "inferior packages"
  9538. msgstr ""
  9539. #. type: Plain text
  9540. #: guix-git/doc/guix.texi:4702
  9541. 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}."
  9542. msgstr ""
  9543. #. type: Plain text
  9544. #: guix-git/doc/guix.texi:4712
  9545. 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:"
  9546. msgstr ""
  9547. #. type: lisp
  9548. #: guix-git/doc/guix.texi:4716
  9549. #, no-wrap
  9550. msgid ""
  9551. "(use-modules (guix inferior) (guix channels)\n"
  9552. " (srfi srfi-1)) ;for 'first'\n"
  9553. "\n"
  9554. msgstr ""
  9555. #. type: lisp
  9556. #: guix-git/doc/guix.texi:4725
  9557. #, no-wrap
  9558. msgid ""
  9559. "(define channels\n"
  9560. " ;; This is the old revision from which we want to\n"
  9561. " ;; extract guile-json.\n"
  9562. " (list (channel\n"
  9563. " (name 'guix)\n"
  9564. " (url \"https://git.savannah.gnu.org/git/guix.git\")\n"
  9565. " (commit\n"
  9566. " \"65956ad3526ba09e1f7a40722c96c6ef7c0936fe\"))))\n"
  9567. "\n"
  9568. msgstr ""
  9569. #. type: lisp
  9570. #: guix-git/doc/guix.texi:4729
  9571. #, no-wrap
  9572. msgid ""
  9573. "(define inferior\n"
  9574. " ;; An inferior representing the above revision.\n"
  9575. " (inferior-for-channels channels))\n"
  9576. "\n"
  9577. msgstr ""
  9578. #. type: lisp
  9579. #: guix-git/doc/guix.texi:4735
  9580. #, no-wrap
  9581. msgid ""
  9582. ";; Now create a manifest with the current \"guile\" package\n"
  9583. ";; and the old \"guile-json\" package.\n"
  9584. "(packages->manifest\n"
  9585. " (list (first (lookup-inferior-packages inferior \"guile-json\"))\n"
  9586. " (specification->package \"guile\")))\n"
  9587. msgstr ""
  9588. #. type: Plain text
  9589. #: guix-git/doc/guix.texi:4740
  9590. 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."
  9591. msgstr ""
  9592. #. type: Plain text
  9593. #: guix-git/doc/guix.texi:4743
  9594. msgid "The @code{(guix inferior)} module provides the following procedures to open an inferior:"
  9595. msgstr ""
  9596. #. type: deffn
  9597. #: guix-git/doc/guix.texi:4744
  9598. #, no-wrap
  9599. msgid "{Scheme Procedure} inferior-for-channels @var{channels} @"
  9600. msgstr ""
  9601. #. type: deffn
  9602. #: guix-git/doc/guix.texi:4749
  9603. 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."
  9604. msgstr ""
  9605. #. type: deffn
  9606. #: guix-git/doc/guix.texi:4752
  9607. msgid "As a side effect, this procedure may build or substitute binaries for @var{channels}, which can take time."
  9608. msgstr ""
  9609. #. type: deffn
  9610. #: guix-git/doc/guix.texi:4754
  9611. #, no-wrap
  9612. msgid "{Scheme Procedure} open-inferior @var{directory} @"
  9613. msgstr ""
  9614. #. type: deffn
  9615. #: guix-git/doc/guix.texi:4759
  9616. 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."
  9617. msgstr ""
  9618. #. type: Plain text
  9619. #: guix-git/doc/guix.texi:4764
  9620. msgid "The procedures listed below allow you to obtain and manipulate inferior packages."
  9621. msgstr ""
  9622. #. type: deffn
  9623. #: guix-git/doc/guix.texi:4765
  9624. #, no-wrap
  9625. msgid "{Scheme Procedure} inferior-packages @var{inferior}"
  9626. msgstr ""
  9627. #. type: deffn
  9628. #: guix-git/doc/guix.texi:4767
  9629. msgid "Return the list of packages known to @var{inferior}."
  9630. msgstr ""
  9631. #. type: deffn
  9632. #: guix-git/doc/guix.texi:4769
  9633. #, no-wrap
  9634. msgid "{Scheme Procedure} lookup-inferior-packages @var{inferior} @var{name} @"
  9635. msgstr ""
  9636. #. type: deffn
  9637. #: guix-git/doc/guix.texi:4774
  9638. 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}."
  9639. msgstr ""
  9640. #. type: deffn
  9641. #: guix-git/doc/guix.texi:4776
  9642. #, no-wrap
  9643. msgid "{Scheme Procedure} inferior-package? @var{obj}"
  9644. msgstr ""
  9645. #. type: deffn
  9646. #: guix-git/doc/guix.texi:4778
  9647. msgid "Return true if @var{obj} is an inferior package."
  9648. msgstr ""
  9649. #. type: deffn
  9650. #: guix-git/doc/guix.texi:4780
  9651. #, no-wrap
  9652. msgid "{Scheme Procedure} inferior-package-name @var{package}"
  9653. msgstr ""
  9654. #. type: deffnx
  9655. #: guix-git/doc/guix.texi:4781
  9656. #, no-wrap
  9657. msgid "{Scheme Procedure} inferior-package-version @var{package}"
  9658. msgstr ""
  9659. #. type: deffnx
  9660. #: guix-git/doc/guix.texi:4782
  9661. #, no-wrap
  9662. msgid "{Scheme Procedure} inferior-package-synopsis @var{package}"
  9663. msgstr ""
  9664. #. type: deffnx
  9665. #: guix-git/doc/guix.texi:4783
  9666. #, no-wrap
  9667. msgid "{Scheme Procedure} inferior-package-description @var{package}"
  9668. msgstr ""
  9669. #. type: deffnx
  9670. #: guix-git/doc/guix.texi:4784
  9671. #, no-wrap
  9672. msgid "{Scheme Procedure} inferior-package-home-page @var{package}"
  9673. msgstr ""
  9674. #. type: deffnx
  9675. #: guix-git/doc/guix.texi:4785
  9676. #, no-wrap
  9677. msgid "{Scheme Procedure} inferior-package-location @var{package}"
  9678. msgstr ""
  9679. #. type: deffnx
  9680. #: guix-git/doc/guix.texi:4786
  9681. #, no-wrap
  9682. msgid "{Scheme Procedure} inferior-package-inputs @var{package}"
  9683. msgstr ""
  9684. #. type: deffnx
  9685. #: guix-git/doc/guix.texi:4787
  9686. #, no-wrap
  9687. msgid "{Scheme Procedure} inferior-package-native-inputs @var{package}"
  9688. msgstr ""
  9689. #. type: deffnx
  9690. #: guix-git/doc/guix.texi:4788
  9691. #, no-wrap
  9692. msgid "{Scheme Procedure} inferior-package-propagated-inputs @var{package}"
  9693. msgstr ""
  9694. #. type: deffnx
  9695. #: guix-git/doc/guix.texi:4789
  9696. #, no-wrap
  9697. msgid "{Scheme Procedure} inferior-package-transitive-propagated-inputs @var{package}"
  9698. msgstr ""
  9699. #. type: deffnx
  9700. #: guix-git/doc/guix.texi:4790
  9701. #, no-wrap
  9702. msgid "{Scheme Procedure} inferior-package-native-search-paths @var{package}"
  9703. msgstr ""
  9704. #. type: deffnx
  9705. #: guix-git/doc/guix.texi:4791
  9706. #, no-wrap
  9707. msgid "{Scheme Procedure} inferior-package-transitive-native-search-paths @var{package}"
  9708. msgstr ""
  9709. #. type: deffnx
  9710. #: guix-git/doc/guix.texi:4792
  9711. #, no-wrap
  9712. msgid "{Scheme Procedure} inferior-package-search-paths @var{package}"
  9713. msgstr ""
  9714. #. type: deffn
  9715. #: guix-git/doc/guix.texi:4797
  9716. 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."
  9717. msgstr ""
  9718. #. type: Plain text
  9719. #: guix-git/doc/guix.texi:4807
  9720. 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."
  9721. msgstr ""
  9722. #. type: section
  9723. #: guix-git/doc/guix.texi:4809
  9724. #, no-wrap
  9725. msgid "Invoking @command{guix describe}"
  9726. msgstr ""
  9727. #. type: Plain text
  9728. #: guix-git/doc/guix.texi:4820
  9729. 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."
  9730. msgstr ""
  9731. #. type: Plain text
  9732. #: guix-git/doc/guix.texi:4824
  9733. 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}):"
  9734. msgstr ""
  9735. #. type: example
  9736. #: guix-git/doc/guix.texi:4832
  9737. #, no-wrap
  9738. msgid ""
  9739. "$ guix describe\n"
  9740. "Generation 10\tSep 03 2018 17:32:44\t(current)\n"
  9741. " guix e0fa68c\n"
  9742. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  9743. " branch: master\n"
  9744. " commit: e0fa68c7718fffd33d81af415279d6ddb518f727\n"
  9745. msgstr ""
  9746. #. type: Plain text
  9747. #: guix-git/doc/guix.texi:4841
  9748. 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."
  9749. msgstr ""
  9750. #. type: Plain text
  9751. #: guix-git/doc/guix.texi:4844
  9752. 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:"
  9753. msgstr ""
  9754. #. type: example
  9755. #: guix-git/doc/guix.texi:4857
  9756. #, no-wrap
  9757. msgid ""
  9758. "$ guix describe -f channels\n"
  9759. "(list (channel\n"
  9760. " (name 'guix)\n"
  9761. " (url \"https://git.savannah.gnu.org/git/guix.git\")\n"
  9762. " (commit\n"
  9763. " \"e0fa68c7718fffd33d81af415279d6ddb518f727\")\n"
  9764. " (introduction\n"
  9765. " (make-channel-introduction\n"
  9766. " \"9edb3f66fd807b096b48283debdcddccfea34bad\"\n"
  9767. " (openpgp-fingerprint\n"
  9768. " \"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA\")))))\n"
  9769. msgstr ""
  9770. #. type: Plain text
  9771. #: guix-git/doc/guix.texi:4866
  9772. 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!"
  9773. msgstr ""
  9774. #. type: Plain text
  9775. #: guix-git/doc/guix.texi:4869
  9776. msgid "The details of the options supported by @command{guix describe} are as follows:"
  9777. msgstr ""
  9778. #. type: item
  9779. #: guix-git/doc/guix.texi:4871 guix-git/doc/guix.texi:6498
  9780. #: guix-git/doc/guix.texi:14705
  9781. #, no-wrap
  9782. msgid "--format=@var{format}"
  9783. msgstr ""
  9784. #. type: itemx
  9785. #: guix-git/doc/guix.texi:4872 guix-git/doc/guix.texi:6499
  9786. #: guix-git/doc/guix.texi:14706
  9787. #, no-wrap
  9788. msgid "-f @var{format}"
  9789. msgstr ""
  9790. #. type: table
  9791. #: guix-git/doc/guix.texi:4874 guix-git/doc/guix.texi:14708
  9792. msgid "Produce output in the specified @var{format}, one of:"
  9793. msgstr ""
  9794. #. type: item
  9795. #: guix-git/doc/guix.texi:4876
  9796. #, no-wrap
  9797. msgid "human"
  9798. msgstr ""
  9799. #. type: table
  9800. #: guix-git/doc/guix.texi:4878
  9801. msgid "produce human-readable output;"
  9802. msgstr ""
  9803. #. type: cindex
  9804. #: guix-git/doc/guix.texi:4878 guix-git/doc/guix.texi:5096
  9805. #, no-wrap
  9806. msgid "channels"
  9807. msgstr ""
  9808. #. type: table
  9809. #: guix-git/doc/guix.texi:4882
  9810. 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});"
  9811. msgstr ""
  9812. #. type: item
  9813. #: guix-git/doc/guix.texi:4882
  9814. #, no-wrap
  9815. msgid "channels-sans-intro"
  9816. msgstr ""
  9817. #. type: table
  9818. #: guix-git/doc/guix.texi:4888
  9819. 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;"
  9820. msgstr ""
  9821. #. type: item
  9822. #: guix-git/doc/guix.texi:4888 guix-git/doc/guix.texi:12530
  9823. #, no-wrap
  9824. msgid "json"
  9825. msgstr ""
  9826. #. type: cindex
  9827. #: guix-git/doc/guix.texi:4889
  9828. #, no-wrap
  9829. msgid "JSON"
  9830. msgstr ""
  9831. #. type: table
  9832. #: guix-git/doc/guix.texi:4891
  9833. msgid "produce a list of channel specifications in JSON format;"
  9834. msgstr ""
  9835. #. type: item
  9836. #: guix-git/doc/guix.texi:4891 guix-git/doc/guix.texi:14710
  9837. #, no-wrap
  9838. msgid "recutils"
  9839. msgstr ""
  9840. #. type: table
  9841. #: guix-git/doc/guix.texi:4893
  9842. msgid "produce a list of channel specifications in Recutils format."
  9843. msgstr ""
  9844. #. type: item
  9845. #: guix-git/doc/guix.texi:4895
  9846. #, no-wrap
  9847. msgid "--list-formats"
  9848. msgstr ""
  9849. #. type: table
  9850. #: guix-git/doc/guix.texi:4897
  9851. msgid "Display available formats for @option{--format} option."
  9852. msgstr ""
  9853. #. type: table
  9854. #: guix-git/doc/guix.texi:4901
  9855. msgid "Display information about @var{profile}."
  9856. msgstr ""
  9857. #. type: section
  9858. #: guix-git/doc/guix.texi:4904
  9859. #, no-wrap
  9860. msgid "Invoking @command{guix archive}"
  9861. msgstr ""
  9862. #. type: command{#1}
  9863. #: guix-git/doc/guix.texi:4906
  9864. #, no-wrap
  9865. msgid "guix archive"
  9866. msgstr ""
  9867. #. type: cindex
  9868. #: guix-git/doc/guix.texi:4907
  9869. #, no-wrap
  9870. msgid "archive"
  9871. msgstr "归档"
  9872. #. type: Plain text
  9873. #: guix-git/doc/guix.texi:4913
  9874. 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."
  9875. msgstr ""
  9876. #. type: quotation
  9877. #: guix-git/doc/guix.texi:4917
  9878. msgid "If you're looking for a way to produce archives in a format suitable for tools other than Guix, @pxref{Invoking guix pack}."
  9879. msgstr ""
  9880. #. type: cindex
  9881. #: guix-git/doc/guix.texi:4919
  9882. #, no-wrap
  9883. msgid "exporting store items"
  9884. msgstr ""
  9885. #. type: Plain text
  9886. #: guix-git/doc/guix.texi:4921
  9887. msgid "To export store files as an archive to standard output, run:"
  9888. msgstr ""
  9889. #. type: example
  9890. #: guix-git/doc/guix.texi:4924
  9891. #, no-wrap
  9892. msgid "guix archive --export @var{options} @var{specifications}...\n"
  9893. msgstr ""
  9894. #. type: Plain text
  9895. #: guix-git/doc/guix.texi:4931
  9896. 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}:"
  9897. msgstr ""
  9898. #. type: example
  9899. #: guix-git/doc/guix.texi:4934
  9900. #, no-wrap
  9901. msgid "guix archive --export git:gui /gnu/store/...-emacs-24.3 > great.nar\n"
  9902. msgstr ""
  9903. #. type: Plain text
  9904. #: guix-git/doc/guix.texi:4939
  9905. 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})."
  9906. msgstr ""
  9907. #. type: Plain text
  9908. #: guix-git/doc/guix.texi:4942
  9909. msgid "To transfer the @code{emacs} package to a machine connected over SSH, one would run:"
  9910. msgstr ""
  9911. #. type: example
  9912. #: guix-git/doc/guix.texi:4945
  9913. #, no-wrap
  9914. msgid "guix archive --export -r emacs | ssh the-machine guix archive --import\n"
  9915. msgstr ""
  9916. #. type: Plain text
  9917. #: guix-git/doc/guix.texi:4950
  9918. msgid "Similarly, a complete user profile may be transferred from one machine to another like this:"
  9919. msgstr ""
  9920. #. type: example
  9921. #: guix-git/doc/guix.texi:4954
  9922. #, no-wrap
  9923. msgid ""
  9924. "guix archive --export -r $(readlink -f ~/.guix-profile) | \\\n"
  9925. " ssh the-machine guix archive --import\n"
  9926. msgstr ""
  9927. #. type: Plain text
  9928. #: guix-git/doc/guix.texi:4964
  9929. 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})."
  9930. msgstr ""
  9931. #. type: cindex
  9932. #: guix-git/doc/guix.texi:4965
  9933. #, no-wrap
  9934. msgid "nar, archive format"
  9935. msgstr ""
  9936. #. type: cindex
  9937. #: guix-git/doc/guix.texi:4966
  9938. #, no-wrap
  9939. msgid "normalized archive (nar)"
  9940. msgstr ""
  9941. #. type: cindex
  9942. #: guix-git/doc/guix.texi:4967
  9943. #, no-wrap
  9944. msgid "nar bundle, archive format"
  9945. msgstr ""
  9946. #. type: Plain text
  9947. #: guix-git/doc/guix.texi:4972
  9948. 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}."
  9949. msgstr ""
  9950. #. type: Plain text
  9951. #: guix-git/doc/guix.texi:4982
  9952. 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."
  9953. msgstr ""
  9954. #. type: Plain text
  9955. #: guix-git/doc/guix.texi:4986
  9956. 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."
  9957. msgstr ""
  9958. #. type: Plain text
  9959. #: guix-git/doc/guix.texi:4992
  9960. 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."
  9961. msgstr ""
  9962. #. type: Plain text
  9963. #: guix-git/doc/guix.texi:4994
  9964. msgid "The main options are:"
  9965. msgstr ""
  9966. #. type: item
  9967. #: guix-git/doc/guix.texi:4996
  9968. #, no-wrap
  9969. msgid "--export"
  9970. msgstr ""
  9971. #. type: table
  9972. #: guix-git/doc/guix.texi:4999
  9973. msgid "Export the specified store files or packages (see below). Write the resulting archive to the standard output."
  9974. msgstr ""
  9975. #. type: table
  9976. #: guix-git/doc/guix.texi:5002
  9977. msgid "Dependencies are @emph{not} included in the output, unless @option{--recursive} is passed."
  9978. msgstr ""
  9979. #. type: itemx
  9980. #: guix-git/doc/guix.texi:5003 guix-git/doc/guix.texi:12250
  9981. #: guix-git/doc/guix.texi:12377 guix-git/doc/guix.texi:12402
  9982. #: guix-git/doc/guix.texi:12434 guix-git/doc/guix.texi:12605
  9983. #: guix-git/doc/guix.texi:12646 guix-git/doc/guix.texi:12697
  9984. #: guix-git/doc/guix.texi:12722 guix-git/doc/guix.texi:12738
  9985. #: guix-git/doc/guix.texi:12786 guix-git/doc/guix.texi:12822
  9986. #, no-wrap
  9987. msgid "-r"
  9988. msgstr ""
  9989. #. type: item
  9990. #: guix-git/doc/guix.texi:5004 guix-git/doc/guix.texi:12249
  9991. #: guix-git/doc/guix.texi:12376 guix-git/doc/guix.texi:12401
  9992. #: guix-git/doc/guix.texi:12433 guix-git/doc/guix.texi:12604
  9993. #: guix-git/doc/guix.texi:12645 guix-git/doc/guix.texi:12696
  9994. #: guix-git/doc/guix.texi:12721 guix-git/doc/guix.texi:12737
  9995. #: guix-git/doc/guix.texi:12785 guix-git/doc/guix.texi:12821
  9996. #: guix-git/doc/guix.texi:12870
  9997. #, no-wrap
  9998. msgid "--recursive"
  9999. msgstr ""
  10000. #. type: table
  10001. #: guix-git/doc/guix.texi:5009
  10002. 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."
  10003. msgstr ""
  10004. #. type: item
  10005. #: guix-git/doc/guix.texi:5010
  10006. #, no-wrap
  10007. msgid "--import"
  10008. msgstr ""
  10009. #. type: table
  10010. #: guix-git/doc/guix.texi:5015
  10011. 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)."
  10012. msgstr ""
  10013. #. type: item
  10014. #: guix-git/doc/guix.texi:5016
  10015. #, no-wrap
  10016. msgid "--missing"
  10017. msgstr ""
  10018. #. type: table
  10019. #: guix-git/doc/guix.texi:5020
  10020. 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."
  10021. msgstr ""
  10022. #. type: item
  10023. #: guix-git/doc/guix.texi:5021
  10024. #, no-wrap
  10025. msgid "--generate-key[=@var{parameters}]"
  10026. msgstr ""
  10027. #. type: cindex
  10028. #: guix-git/doc/guix.texi:5022
  10029. #, no-wrap
  10030. msgid "signing, archives"
  10031. msgstr ""
  10032. #. type: table
  10033. #: guix-git/doc/guix.texi:5029
  10034. 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."
  10035. msgstr ""
  10036. #. type: table
  10037. #: guix-git/doc/guix.texi:5039
  10038. 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})."
  10039. msgstr ""
  10040. #. type: item
  10041. #: guix-git/doc/guix.texi:5040
  10042. #, no-wrap
  10043. msgid "--authorize"
  10044. msgstr ""
  10045. #. type: cindex
  10046. #: guix-git/doc/guix.texi:5041
  10047. #, no-wrap
  10048. msgid "authorizing, archives"
  10049. msgstr ""
  10050. #. type: table
  10051. #: guix-git/doc/guix.texi:5045
  10052. 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."
  10053. msgstr ""
  10054. #. type: table
  10055. #: guix-git/doc/guix.texi:5052
  10056. 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)}."
  10057. msgstr ""
  10058. #. type: item
  10059. #: guix-git/doc/guix.texi:5053
  10060. #, no-wrap
  10061. msgid "--extract=@var{directory}"
  10062. msgstr ""
  10063. #. type: itemx
  10064. #: guix-git/doc/guix.texi:5054
  10065. #, no-wrap
  10066. msgid "-x @var{directory}"
  10067. msgstr ""
  10068. #. type: table
  10069. #: guix-git/doc/guix.texi:5058
  10070. 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."
  10071. msgstr ""
  10072. #. type: table
  10073. #: guix-git/doc/guix.texi:5061
  10074. msgid "For example, the following command extracts the substitute for Emacs served by @code{@value{SUBSTITUTE-SERVER-1}} to @file{/tmp/emacs}:"
  10075. msgstr ""
  10076. #. type: example
  10077. #: guix-git/doc/guix.texi:5066
  10078. #, no-wrap
  10079. msgid ""
  10080. "$ wget -O - \\\n"
  10081. " https://@value{SUBSTITUTE-SERVER-1}/nar/gzip/@dots{}-emacs-24.5 \\\n"
  10082. " | gunzip | guix archive -x /tmp/emacs\n"
  10083. msgstr ""
  10084. #. type: table
  10085. #: guix-git/doc/guix.texi:5073
  10086. 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."
  10087. msgstr ""
  10088. #. type: table
  10089. #: guix-git/doc/guix.texi:5077
  10090. msgid "The primary purpose of this operation is to facilitate inspection of archive contents coming from possibly untrusted substitute servers (@pxref{Invoking guix challenge})."
  10091. msgstr ""
  10092. #. type: item
  10093. #: guix-git/doc/guix.texi:5078
  10094. #, no-wrap
  10095. msgid "--list"
  10096. msgstr ""
  10097. #. type: itemx
  10098. #: guix-git/doc/guix.texi:5079 guix-git/doc/guix.texi:12592
  10099. #: guix-git/doc/guix.texi:12639
  10100. #, no-wrap
  10101. msgid "-t"
  10102. msgstr ""
  10103. #. type: table
  10104. #: guix-git/doc/guix.texi:5083
  10105. 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:"
  10106. msgstr ""
  10107. #. type: example
  10108. #: guix-git/doc/guix.texi:5088
  10109. #, no-wrap
  10110. msgid ""
  10111. "$ wget -O - \\\n"
  10112. " https://@value{SUBSTITUTE-SERVER-1}/nar/lzip/@dots{}-emacs-26.3 \\\n"
  10113. " | lzip -d | guix archive -t\n"
  10114. msgstr ""
  10115. #. type: cindex
  10116. #: guix-git/doc/guix.texi:5099
  10117. #, no-wrap
  10118. msgid "@command{guix pull}, configuration file"
  10119. msgstr ""
  10120. #. type: cindex
  10121. #: guix-git/doc/guix.texi:5100
  10122. #, no-wrap
  10123. msgid "configuration of @command{guix pull}"
  10124. msgstr ""
  10125. #. type: Plain text
  10126. #: guix-git/doc/guix.texi:5111
  10127. 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."
  10128. msgstr ""
  10129. #. type: cindex
  10130. #: guix-git/doc/guix.texi:5129
  10131. #, no-wrap
  10132. msgid "extending the package collection (channels)"
  10133. msgstr ""
  10134. #. type: cindex
  10135. #: guix-git/doc/guix.texi:5130
  10136. #, no-wrap
  10137. msgid "variant packages (channels)"
  10138. msgstr ""
  10139. #. type: Plain text
  10140. #: guix-git/doc/guix.texi:5134
  10141. 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):"
  10142. msgstr ""
  10143. #. type: vindex
  10144. #: guix-git/doc/guix.texi:5135
  10145. #, no-wrap
  10146. msgid "%default-channels"
  10147. msgstr ""
  10148. #. type: lisp
  10149. #: guix-git/doc/guix.texi:5142
  10150. #, no-wrap
  10151. msgid ""
  10152. ";; Add variant packages to those Guix provides.\n"
  10153. "(cons (channel\n"
  10154. " (name 'variant-packages)\n"
  10155. " (url \"https://example.org/variant-packages.git\"))\n"
  10156. " %default-channels)\n"
  10157. msgstr ""
  10158. #. type: Plain text
  10159. #: guix-git/doc/guix.texi:5152
  10160. 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:"
  10161. msgstr ""
  10162. #. type: example
  10163. #: guix-git/doc/guix.texi:5167
  10164. #, no-wrap
  10165. msgid ""
  10166. "$ guix pull --list-generations\n"
  10167. "@dots{}\n"
  10168. "Generation 19\tAug 27 2018 16:20:48\n"
  10169. " guix d894ab8\n"
  10170. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  10171. " branch: master\n"
  10172. " commit: d894ab8e9bfabcefa6c49d9ba2e834dd5a73a300\n"
  10173. " variant-packages dd3df5e\n"
  10174. " repository URL: https://example.org/variant-packages.git\n"
  10175. " branch: master\n"
  10176. " commit: dd3df5e2c8818760a8fc0bd699e55d3b69fef2bb\n"
  10177. " 11 new packages: variant-gimp, variant-emacs-with-cool-features, @dots{}\n"
  10178. " 4 packages upgraded: emacs-racket-mode@@0.0.2-2.1b78827, @dots{}\n"
  10179. msgstr ""
  10180. #. type: Plain text
  10181. #: guix-git/doc/guix.texi:5175
  10182. 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."
  10183. msgstr ""
  10184. #. type: Plain text
  10185. #: guix-git/doc/guix.texi:5184
  10186. 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:"
  10187. msgstr ""
  10188. #. type: lisp
  10189. #: guix-git/doc/guix.texi:5191
  10190. #, no-wrap
  10191. msgid ""
  10192. ";; Tell 'guix pull' to use another repo.\n"
  10193. "(list (channel\n"
  10194. " (name 'guix)\n"
  10195. " (url \"https://example.org/another-guix.git\")\n"
  10196. " (branch \"super-hacks\")))\n"
  10197. msgstr ""
  10198. #. type: Plain text
  10199. #: guix-git/doc/guix.texi:5197
  10200. 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})."
  10201. msgstr ""
  10202. #. type: Plain text
  10203. #: guix-git/doc/guix.texi:5208
  10204. 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:"
  10205. msgstr ""
  10206. #. type: lisp
  10207. #: guix-git/doc/guix.texi:5219
  10208. #, no-wrap
  10209. msgid ""
  10210. ";; Deploy specific commits of my channels of interest.\n"
  10211. "(list (channel\n"
  10212. " (name 'guix)\n"
  10213. " (url \"https://git.savannah.gnu.org/git/guix.git\")\n"
  10214. " (commit \"6298c3ffd9654d3231a6f25390b056483e8f407c\"))\n"
  10215. " (channel\n"
  10216. " (name 'variant-packages)\n"
  10217. " (url \"https://example.org/variant-packages.git\")\n"
  10218. " (commit \"dd3df5e2c8818760a8fc0bd699e55d3b69fef2bb\")))\n"
  10219. msgstr ""
  10220. #. type: Plain text
  10221. #: guix-git/doc/guix.texi:5226
  10222. 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})."
  10223. msgstr ""
  10224. #. type: Plain text
  10225. #: guix-git/doc/guix.texi:5233
  10226. 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."
  10227. msgstr ""
  10228. #. type: Plain text
  10229. #: guix-git/doc/guix.texi:5238
  10230. 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."
  10231. msgstr ""
  10232. #. type: anchor{#1}
  10233. #: guix-git/doc/guix.texi:5243
  10234. msgid "channel-authentication"
  10235. msgstr ""
  10236. #. type: Plain text
  10237. #: guix-git/doc/guix.texi:5249
  10238. 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."
  10239. msgstr ""
  10240. #. type: Plain text
  10241. #: guix-git/doc/guix.texi:5254
  10242. 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:"
  10243. msgstr ""
  10244. #. type: lisp
  10245. #: guix-git/doc/guix.texi:5264
  10246. #, no-wrap
  10247. msgid ""
  10248. "(channel\n"
  10249. " (name 'some-channel)\n"
  10250. " (url \"https://example.org/some-channel.git\")\n"
  10251. " (introduction\n"
  10252. " (make-channel-introduction\n"
  10253. " \"6f0d8cc0d88abb59c324b2990bfee2876016bb86\"\n"
  10254. " (openpgp-fingerprint\n"
  10255. " \"CABB A931 C0FF EEC6 900D 0CFB 090B 1199 3D9A EBB5\"))))\n"
  10256. msgstr ""
  10257. #. type: Plain text
  10258. #: guix-git/doc/guix.texi:5270
  10259. 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{}}."
  10260. msgstr ""
  10261. #. type: Plain text
  10262. #: guix-git/doc/guix.texi:5276
  10263. 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."
  10264. msgstr ""
  10265. #. type: Plain text
  10266. #: guix-git/doc/guix.texi:5278
  10267. msgid "If you're curious about the authentication mechanics, read on!"
  10268. msgstr ""
  10269. #. type: Plain text
  10270. #: guix-git/doc/guix.texi:5289
  10271. 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}."
  10272. msgstr ""
  10273. #. type: lisp
  10274. #: guix-git/doc/guix.texi:5292
  10275. #, no-wrap
  10276. msgid ""
  10277. "(use-modules (guix ci))\n"
  10278. "\n"
  10279. msgstr ""
  10280. #. type: lisp
  10281. #: guix-git/doc/guix.texi:5296
  10282. #, no-wrap
  10283. msgid ""
  10284. "(list (channel-with-substitutes-available\n"
  10285. " %default-guix-channel\n"
  10286. " \"https://ci.guix.gnu.org\"))\n"
  10287. msgstr ""
  10288. #. type: Plain text
  10289. #: guix-git/doc/guix.texi:5303
  10290. 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."
  10291. msgstr ""
  10292. #. type: cindex
  10293. #: guix-git/doc/guix.texi:5307
  10294. #, no-wrap
  10295. msgid "personal packages (channels)"
  10296. msgstr ""
  10297. #. type: cindex
  10298. #: guix-git/doc/guix.texi:5308
  10299. #, no-wrap
  10300. msgid "channels, for personal packages"
  10301. msgstr ""
  10302. #. type: Plain text
  10303. #: guix-git/doc/guix.texi:5316
  10304. 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?"
  10305. msgstr ""
  10306. #. type: quotation
  10307. #: guix-git/doc/guix.texi:5324
  10308. 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:"
  10309. msgstr ""
  10310. #. type: itemize
  10311. #: guix-git/doc/guix.texi:5332
  10312. 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."
  10313. msgstr ""
  10314. #. type: itemize
  10315. #: guix-git/doc/guix.texi:5341
  10316. 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."
  10317. msgstr ""
  10318. #. type: itemize
  10319. #: guix-git/doc/guix.texi:5345
  10320. 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."
  10321. msgstr ""
  10322. #. type: quotation
  10323. #: guix-git/doc/guix.texi:5352
  10324. 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."
  10325. msgstr ""
  10326. #. type: Plain text
  10327. #: guix-git/doc/guix.texi:5364
  10328. 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})."
  10329. msgstr ""
  10330. #. type: Plain text
  10331. #: guix-git/doc/guix.texi:5369
  10332. 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."
  10333. msgstr ""
  10334. #. type: cindex
  10335. #: guix-git/doc/guix.texi:5374
  10336. #, no-wrap
  10337. msgid "subdirectory, channels"
  10338. msgstr ""
  10339. #. type: Plain text
  10340. #: guix-git/doc/guix.texi:5378
  10341. 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:"
  10342. msgstr ""
  10343. #. type: lisp
  10344. #: guix-git/doc/guix.texi:5383
  10345. #, no-wrap
  10346. msgid ""
  10347. "(channel\n"
  10348. " (version 0)\n"
  10349. " (directory \"guix\"))\n"
  10350. msgstr ""
  10351. #. type: cindex
  10352. #: guix-git/doc/guix.texi:5388
  10353. #, no-wrap
  10354. msgid "dependencies, channels"
  10355. msgstr ""
  10356. #. type: cindex
  10357. #: guix-git/doc/guix.texi:5389
  10358. #, no-wrap
  10359. msgid "meta-data, channels"
  10360. msgstr ""
  10361. #. type: Plain text
  10362. #: guix-git/doc/guix.texi:5394
  10363. 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."
  10364. msgstr ""
  10365. #. type: Plain text
  10366. #: guix-git/doc/guix.texi:5396
  10367. msgid "The meta-data file should contain a simple S-expression like this:"
  10368. msgstr ""
  10369. #. type: lisp
  10370. #: guix-git/doc/guix.texi:5404
  10371. #, no-wrap
  10372. msgid ""
  10373. "(channel\n"
  10374. " (version 0)\n"
  10375. " (dependencies\n"
  10376. " (channel\n"
  10377. " (name some-collection)\n"
  10378. " (url \"https://example.org/first-collection.git\")\n"
  10379. "\n"
  10380. msgstr ""
  10381. #. type: lisp
  10382. #: guix-git/doc/guix.texi:5416
  10383. #, no-wrap
  10384. msgid ""
  10385. " ;; The 'introduction' bit below is optional: you would\n"
  10386. " ;; provide it for dependencies that can be authenticated.\n"
  10387. " (introduction\n"
  10388. " (channel-introduction\n"
  10389. " (version 0)\n"
  10390. " (commit \"a8883b58dc82e167c96506cf05095f37c2c2c6cd\")\n"
  10391. " (signer \"CABB A931 C0FF EEC6 900D 0CFB 090B 1199 3D9A EBB5\"))))\n"
  10392. " (channel\n"
  10393. " (name some-other-collection)\n"
  10394. " (url \"https://example.org/second-collection.git\")\n"
  10395. " (branch \"testing\"))))\n"
  10396. msgstr ""
  10397. #. type: Plain text
  10398. #: guix-git/doc/guix.texi:5422
  10399. 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."
  10400. msgstr ""
  10401. #. type: Plain text
  10402. #: guix-git/doc/guix.texi:5426
  10403. 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."
  10404. msgstr ""
  10405. #. type: cindex
  10406. #: guix-git/doc/guix.texi:5430
  10407. #, no-wrap
  10408. msgid "channel authorizations"
  10409. msgstr ""
  10410. #. type: anchor{#1}
  10411. #: guix-git/doc/guix.texi:5444
  10412. msgid "channel-authorizations"
  10413. msgstr ""
  10414. #. type: Plain text
  10415. #: guix-git/doc/guix.texi:5444
  10416. 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:"
  10417. msgstr ""
  10418. #. type: lisp
  10419. #: guix-git/doc/guix.texi:5447
  10420. #, no-wrap
  10421. msgid ""
  10422. ";; Example '.guix-authorizations' file.\n"
  10423. "\n"
  10424. msgstr ""
  10425. #. type: lisp
  10426. #: guix-git/doc/guix.texi:5450
  10427. #, no-wrap
  10428. msgid ""
  10429. "(authorizations\n"
  10430. " (version 0) ;current file format version\n"
  10431. "\n"
  10432. msgstr ""
  10433. #. type: lisp
  10434. #: guix-git/doc/guix.texi:5457
  10435. #, no-wrap
  10436. msgid ""
  10437. " ((\"AD17 A21E F8AE D8F1 CC02 DBD9 F8AE D8F1 765C 61E3\"\n"
  10438. " (name \"alice\"))\n"
  10439. " (\"2A39 3FFF 68F4 EF7A 3D29 12AF 68F4 EF7A 22FB B2D5\"\n"
  10440. " (name \"bob\"))\n"
  10441. " (\"CABB A931 C0FF EEC6 900D 0CFB 090B 1199 3D9A EBB5\"\n"
  10442. " (name \"charlie\"))))\n"
  10443. msgstr ""
  10444. #. type: Plain text
  10445. #: guix-git/doc/guix.texi:5461
  10446. msgid "Each fingerprint is followed by optional key/value pairs, as in the example above. Currently these key/value pairs are ignored."
  10447. msgstr ""
  10448. #. type: Plain text
  10449. #: guix-git/doc/guix.texi:5466
  10450. 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?"
  10451. msgstr ""
  10452. #. type: cindex
  10453. #: guix-git/doc/guix.texi:5467
  10454. #, fuzzy, no-wrap
  10455. msgid "channel introduction"
  10456. msgstr "介绍"
  10457. #. type: Plain text
  10458. #: guix-git/doc/guix.texi:5476
  10459. msgid "Channel introductions answer these questions by describing the first commit of a channel that should be authenticated. The first time a channel is fetched with @command{guix pull} or @command{guix time-machine}, the command looks up the introductory commit and verifies that it is signed by the specified OpenPGP key. From then on, it authenticates commits according to the rule above. Authentication fails if the target commit is neither a descendant nor an ancestor of the introductory commit."
  10460. msgstr ""
  10461. #. type: Plain text
  10462. #: guix-git/doc/guix.texi:5483
  10463. 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:"
  10464. msgstr ""
  10465. #. type: lisp
  10466. #: guix-git/doc/guix.texi:5488
  10467. #, no-wrap
  10468. msgid ""
  10469. "(channel\n"
  10470. " (version 0)\n"
  10471. " (keyring-reference \"my-keyring-branch\"))\n"
  10472. msgstr ""
  10473. #. type: Plain text
  10474. #: guix-git/doc/guix.texi:5492
  10475. msgid "To summarize, as the author of a channel, there are three things you have to do to allow users to authenticate your code:"
  10476. msgstr ""
  10477. #. type: enumerate
  10478. #: guix-git/doc/guix.texi:5498
  10479. 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})."
  10480. msgstr ""
  10481. #. type: enumerate
  10482. #: guix-git/doc/guix.texi:5503
  10483. 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.)"
  10484. msgstr ""
  10485. #. type: enumerate
  10486. #: guix-git/doc/guix.texi:5509
  10487. 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."
  10488. msgstr ""
  10489. #. type: Plain text
  10490. #: guix-git/doc/guix.texi:5514
  10491. 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:"
  10492. msgstr ""
  10493. #. type: example
  10494. #: guix-git/doc/guix.texi:5517
  10495. #, no-wrap
  10496. msgid "guix git authenticate @var{commit} @var{signer}\n"
  10497. msgstr ""
  10498. #. type: Plain text
  10499. #: guix-git/doc/guix.texi:5522
  10500. msgid "where @var{commit} and @var{signer} are your channel introduction. @xref{Invoking guix git authenticate}, for details."
  10501. msgstr ""
  10502. #. type: Plain text
  10503. #: guix-git/doc/guix.texi:5529
  10504. 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."
  10505. msgstr ""
  10506. #. type: cindex
  10507. #: guix-git/doc/guix.texi:5533
  10508. #, no-wrap
  10509. msgid "primary URL, channels"
  10510. msgstr ""
  10511. #. type: Plain text
  10512. #: guix-git/doc/guix.texi:5536
  10513. msgid "Channel authors can indicate the primary URL of their channel's Git repository in the @file{.guix-channel} file, like so:"
  10514. msgstr ""
  10515. #. type: lisp
  10516. #: guix-git/doc/guix.texi:5541
  10517. #, no-wrap
  10518. msgid ""
  10519. "(channel\n"
  10520. " (version 0)\n"
  10521. " (url \"https://example.org/guix.git\"))\n"
  10522. msgstr ""
  10523. #. type: Plain text
  10524. #: guix-git/doc/guix.texi:5548
  10525. 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."
  10526. msgstr ""
  10527. #. type: Plain text
  10528. #: guix-git/doc/guix.texi:5552
  10529. 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."
  10530. msgstr ""
  10531. #. type: cindex
  10532. #: guix-git/doc/guix.texi:5556
  10533. #, no-wrap
  10534. msgid "news, for channels"
  10535. msgstr ""
  10536. #. type: Plain text
  10537. #: guix-git/doc/guix.texi:5560
  10538. 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."
  10539. msgstr ""
  10540. #. type: Plain text
  10541. #: guix-git/doc/guix.texi:5565
  10542. 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."
  10543. msgstr ""
  10544. #. type: Plain text
  10545. #: guix-git/doc/guix.texi:5568
  10546. msgid "To do that, channel authors must first declare the name of the news file in their @file{.guix-channel} file:"
  10547. msgstr ""
  10548. #. type: lisp
  10549. #: guix-git/doc/guix.texi:5573
  10550. #, no-wrap
  10551. msgid ""
  10552. "(channel\n"
  10553. " (version 0)\n"
  10554. " (news-file \"etc/news.txt\"))\n"
  10555. msgstr ""
  10556. #. type: Plain text
  10557. #: guix-git/doc/guix.texi:5577
  10558. msgid "The news file itself, @file{etc/news.txt} in this example, must look something like this:"
  10559. msgstr ""
  10560. #. type: lisp
  10561. #: guix-git/doc/guix.texi:5590
  10562. #, no-wrap
  10563. msgid ""
  10564. "(channel-news\n"
  10565. " (version 0)\n"
  10566. " (entry (tag \"the-bug-fix\")\n"
  10567. " (title (en \"Fixed terrible bug\")\n"
  10568. " (fr \"Oh la la\"))\n"
  10569. " (body (en \"@@emph@{Good news@}! It's fixed!\")\n"
  10570. " (eo \"Certe ĝi pli bone funkcias nun!\")))\n"
  10571. " (entry (commit \"bdcabe815cd28144a2d2b4bc3c5057b051fa9906\")\n"
  10572. " (title (en \"Added a great package\")\n"
  10573. " (ca \"Què vol dir guix?\"))\n"
  10574. " (body (en \"Don't miss the @@code@{hello@} package!\"))))\n"
  10575. msgstr ""
  10576. #. type: Plain text
  10577. #: guix-git/doc/guix.texi:5597
  10578. 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."
  10579. msgstr ""
  10580. #. type: Plain text
  10581. #: guix-git/doc/guix.texi:5602
  10582. 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."
  10583. msgstr ""
  10584. #. type: Plain text
  10585. #: guix-git/doc/guix.texi:5608
  10586. 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."
  10587. msgstr ""
  10588. #. type: Plain text
  10589. #: guix-git/doc/guix.texi:5614
  10590. 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:"
  10591. msgstr ""
  10592. #. type: example
  10593. #: guix-git/doc/guix.texi:5617
  10594. #, no-wrap
  10595. msgid "xgettext -o news.po -l scheme -ken etc/news.txt\n"
  10596. msgstr ""
  10597. #. type: Plain text
  10598. #: guix-git/doc/guix.texi:5621
  10599. 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."
  10600. msgstr ""
  10601. #. type: cindex
  10602. #: guix-git/doc/guix.texi:5626
  10603. #, no-wrap
  10604. msgid "software development"
  10605. msgstr ""
  10606. #. type: Plain text
  10607. #: guix-git/doc/guix.texi:5630
  10608. 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."
  10609. msgstr ""
  10610. #. type: Plain text
  10611. #: guix-git/doc/guix.texi:5636
  10612. 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."
  10613. msgstr ""
  10614. #. type: section
  10615. #: guix-git/doc/guix.texi:5646
  10616. #, fuzzy, no-wrap
  10617. #| msgid "Invoking @command{guix build}"
  10618. msgid "Invoking @command{guix shell}"
  10619. msgstr "调用@command{guix build}"
  10620. #. type: cindex
  10621. #: guix-git/doc/guix.texi:5648
  10622. #, no-wrap
  10623. msgid "reproducible build environments"
  10624. msgstr ""
  10625. #. type: cindex
  10626. #: guix-git/doc/guix.texi:5649
  10627. #, no-wrap
  10628. msgid "development environments"
  10629. msgstr ""
  10630. #. type: command{#1}
  10631. #: guix-git/doc/guix.texi:5650
  10632. #, no-wrap
  10633. msgid "guix environment"
  10634. msgstr ""
  10635. #. type: cindex
  10636. #: guix-git/doc/guix.texi:5651
  10637. #, no-wrap
  10638. msgid "environment, package build environment"
  10639. msgstr ""
  10640. #. type: Plain text
  10641. #: guix-git/doc/guix.texi:5656
  10642. 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."
  10643. msgstr ""
  10644. #. type: quotation
  10645. #: guix-git/doc/guix.texi:5662
  10646. 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."
  10647. msgstr ""
  10648. #. type: example
  10649. #: guix-git/doc/guix.texi:5668
  10650. #, no-wrap
  10651. msgid "guix shell [@var{options}] [@var{package}@dots{}]\n"
  10652. msgstr ""
  10653. #. type: Plain text
  10654. #: guix-git/doc/guix.texi:5673
  10655. 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:"
  10656. msgstr ""
  10657. #. type: example
  10658. #: guix-git/doc/guix.texi:5676
  10659. #, no-wrap
  10660. msgid "guix shell python python-numpy -- python3\n"
  10661. msgstr ""
  10662. #. type: Plain text
  10663. #: guix-git/doc/guix.texi:5681
  10664. 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:"
  10665. msgstr ""
  10666. #. type: example
  10667. #: guix-git/doc/guix.texi:5684
  10668. #, no-wrap
  10669. msgid "guix shell --development inkscape\n"
  10670. msgstr ""
  10671. #. type: Plain text
  10672. #: guix-git/doc/guix.texi:5690
  10673. 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."
  10674. msgstr ""
  10675. #. type: Plain text
  10676. #: guix-git/doc/guix.texi:5697
  10677. 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:"
  10678. msgstr ""
  10679. #. type: example
  10680. #: guix-git/doc/guix.texi:5700
  10681. #, fuzzy, no-wrap
  10682. #| msgid "guix pull\n"
  10683. msgid "guix shell\n"
  10684. msgstr "guix pull\n"
  10685. #. type: Plain text
  10686. #: guix-git/doc/guix.texi:5704
  10687. msgid "This provides an easy way to define, share, and enter development environments."
  10688. msgstr ""
  10689. #. type: Plain text
  10690. #: guix-git/doc/guix.texi:5715
  10691. 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:"
  10692. msgstr ""
  10693. #. type: example
  10694. #: guix-git/doc/guix.texi:5718
  10695. #, no-wrap
  10696. msgid "guix shell --container emacs gcc-toolchain\n"
  10697. msgstr ""
  10698. #. type: Plain text
  10699. #: guix-git/doc/guix.texi:5726
  10700. 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."
  10701. msgstr ""
  10702. #. type: Plain text
  10703. #: guix-git/doc/guix.texi:5733
  10704. 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:"
  10705. msgstr ""
  10706. #. type: example
  10707. #: guix-git/doc/guix.texi:5737
  10708. #, no-wrap
  10709. msgid ""
  10710. "guix shell --container --network --no-cwd ungoogled-chromium \\\n"
  10711. " --preserve='^DISPLAY$' -- chromium\n"
  10712. msgstr ""
  10713. #. type: vindex
  10714. #: guix-git/doc/guix.texi:5739 guix-git/doc/guix.texi:6069
  10715. #, no-wrap
  10716. msgid "GUIX_ENVIRONMENT"
  10717. msgstr ""
  10718. #. type: Plain text
  10719. #: guix-git/doc/guix.texi:5745
  10720. 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}):"
  10721. msgstr ""
  10722. #. type: example
  10723. #: guix-git/doc/guix.texi:5751 guix-git/doc/guix.texi:6081
  10724. #, no-wrap
  10725. msgid ""
  10726. "if [ -n \"$GUIX_ENVIRONMENT\" ]\n"
  10727. "then\n"
  10728. " export PS1=\"\\u@@\\h \\w [dev]\\$ \"\n"
  10729. "fi\n"
  10730. msgstr ""
  10731. #. type: Plain text
  10732. #: guix-git/doc/guix.texi:5755 guix-git/doc/guix.texi:6085
  10733. msgid "...@: or to browse the profile:"
  10734. msgstr ""
  10735. #. type: example
  10736. #: guix-git/doc/guix.texi:5758 guix-git/doc/guix.texi:6088
  10737. #, no-wrap
  10738. msgid "$ ls \"$GUIX_ENVIRONMENT/bin\"\n"
  10739. msgstr ""
  10740. #. type: Plain text
  10741. #: guix-git/doc/guix.texi:5761 guix-git/doc/guix.texi:6164
  10742. msgid "The available options are summarized below."
  10743. msgstr ""
  10744. #. type: item
  10745. #: guix-git/doc/guix.texi:5763 guix-git/doc/guix.texi:6166
  10746. #: guix-git/doc/guix.texi:11966
  10747. #, no-wrap
  10748. msgid "--check"
  10749. msgstr ""
  10750. #. type: table
  10751. #: guix-git/doc/guix.texi:5768
  10752. 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."
  10753. msgstr ""
  10754. #. type: table
  10755. #: guix-git/doc/guix.texi:5772
  10756. 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."
  10757. msgstr ""
  10758. #. type: table
  10759. #: guix-git/doc/guix.texi:5780
  10760. 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."
  10761. msgstr ""
  10762. #. type: item
  10763. #: guix-git/doc/guix.texi:5781
  10764. #, fuzzy, no-wrap
  10765. #| msgid "Development"
  10766. msgid "--development"
  10767. msgstr "开发"
  10768. #. type: table
  10769. #: guix-git/doc/guix.texi:5788
  10770. 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:"
  10771. msgstr ""
  10772. #. type: example
  10773. #: guix-git/doc/guix.texi:5791
  10774. #, no-wrap
  10775. msgid "guix shell -D guile autoconf automake libtool\n"
  10776. msgstr ""
  10777. #. type: item
  10778. #: guix-git/doc/guix.texi:5793 guix-git/doc/guix.texi:6187
  10779. #: guix-git/doc/guix.texi:6674 guix-git/doc/guix.texi:11841
  10780. #: guix-git/doc/guix.texi:12915 guix-git/doc/guix.texi:13307
  10781. #: guix-git/doc/guix.texi:13905 guix-git/doc/guix.texi:36292
  10782. #: guix-git/doc/guix.texi:38966
  10783. #, no-wrap
  10784. msgid "--expression=@var{expr}"
  10785. msgstr ""
  10786. #. type: itemx
  10787. #: guix-git/doc/guix.texi:5794 guix-git/doc/guix.texi:6188
  10788. #: guix-git/doc/guix.texi:6675 guix-git/doc/guix.texi:11842
  10789. #: guix-git/doc/guix.texi:12916 guix-git/doc/guix.texi:13308
  10790. #: guix-git/doc/guix.texi:13906 guix-git/doc/guix.texi:36293
  10791. #: guix-git/doc/guix.texi:38967
  10792. #, no-wrap
  10793. msgid "-e @var{expr}"
  10794. msgstr ""
  10795. #. type: table
  10796. #: guix-git/doc/guix.texi:5797 guix-git/doc/guix.texi:6191
  10797. msgid "Create an environment for the package or list of packages that @var{expr} evaluates to."
  10798. msgstr ""
  10799. #. type: table
  10800. #: guix-git/doc/guix.texi:5799 guix-git/doc/guix.texi:6193
  10801. #: guix-git/doc/guix.texi:13312
  10802. msgid "For example, running:"
  10803. msgstr ""
  10804. #. type: example
  10805. #: guix-git/doc/guix.texi:5802
  10806. #, no-wrap
  10807. msgid "guix shell -D -e '(@@ (gnu packages maths) petsc-openmpi)'\n"
  10808. msgstr ""
  10809. #. type: table
  10810. #: guix-git/doc/guix.texi:5806 guix-git/doc/guix.texi:6200
  10811. msgid "starts a shell with the environment for this specific variant of the PETSc package."
  10812. msgstr ""
  10813. #. type: table
  10814. #: guix-git/doc/guix.texi:5808 guix-git/doc/guix.texi:6202
  10815. msgid "Running:"
  10816. msgstr ""
  10817. #. type: example
  10818. #: guix-git/doc/guix.texi:5811
  10819. #, no-wrap
  10820. msgid "guix shell -e '(@@ (gnu) %base-packages)'\n"
  10821. msgstr ""
  10822. #. type: table
  10823. #: guix-git/doc/guix.texi:5814 guix-git/doc/guix.texi:6208
  10824. msgid "starts a shell with all the base system packages available."
  10825. msgstr ""
  10826. #. type: table
  10827. #: guix-git/doc/guix.texi:5817 guix-git/doc/guix.texi:6211
  10828. msgid "The above commands only use the default output of the given packages. To select other outputs, two element tuples can be specified:"
  10829. msgstr ""
  10830. #. type: example
  10831. #: guix-git/doc/guix.texi:5820
  10832. #, no-wrap
  10833. msgid "guix shell -e '(list (@@ (gnu packages bash) bash) \"include\")'\n"
  10834. msgstr ""
  10835. #. type: item
  10836. #: guix-git/doc/guix.texi:5822 guix-git/doc/guix.texi:11815
  10837. #, no-wrap
  10838. msgid "--file=@var{file}"
  10839. msgstr ""
  10840. #. type: table
  10841. #: guix-git/doc/guix.texi:5826
  10842. msgid "Create an environment containing the package or list of packages that the code within @var{file} evaluates to."
  10843. msgstr ""
  10844. #. type: lisp
  10845. #: guix-git/doc/guix.texi:5832 guix-git/doc/guix.texi:6226
  10846. #, no-wrap
  10847. msgid "@verbatiminclude environment-gdb.scm\n"
  10848. msgstr ""
  10849. #. type: table
  10850. #: guix-git/doc/guix.texi:5836
  10851. msgid "With the file above, you can enter a development environment for GDB by running:"
  10852. msgstr ""
  10853. #. type: example
  10854. #: guix-git/doc/guix.texi:5839
  10855. #, no-wrap
  10856. msgid "guix shell -D -f gdb-devel.scm\n"
  10857. msgstr ""
  10858. #. type: table
  10859. #: guix-git/doc/guix.texi:5846 guix-git/doc/guix.texi:6233
  10860. 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."
  10861. msgstr ""
  10862. #. type: table
  10863. #: guix-git/doc/guix.texi:5850 guix-git/doc/guix.texi:6237
  10864. msgid "This is similar to the same-named option in @command{guix package} (@pxref{profile-manifest, @option{--manifest}}) and uses the same manifest files."
  10865. msgstr ""
  10866. #. type: table
  10867. #: guix-git/doc/guix.texi:5856 guix-git/doc/guix.texi:6269
  10868. msgid "Create an environment containing the packages installed in @var{profile}. Use @command{guix package} (@pxref{Invoking guix package}) to create and manage profiles."
  10869. msgstr ""
  10870. #. type: item
  10871. #: guix-git/doc/guix.texi:5857 guix-git/doc/guix.texi:6270
  10872. #, no-wrap
  10873. msgid "--pure"
  10874. msgstr ""
  10875. #. type: table
  10876. #: guix-git/doc/guix.texi:5861 guix-git/doc/guix.texi:6274
  10877. 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."
  10878. msgstr ""
  10879. #. type: item
  10880. #: guix-git/doc/guix.texi:5862 guix-git/doc/guix.texi:6275
  10881. #, no-wrap
  10882. msgid "--preserve=@var{regexp}"
  10883. msgstr ""
  10884. #. type: itemx
  10885. #: guix-git/doc/guix.texi:5863 guix-git/doc/guix.texi:6276
  10886. #, no-wrap
  10887. msgid "-E @var{regexp}"
  10888. msgstr ""
  10889. #. type: table
  10890. #: guix-git/doc/guix.texi:5868 guix-git/doc/guix.texi:6281
  10891. 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."
  10892. msgstr ""
  10893. #. type: example
  10894. #: guix-git/doc/guix.texi:5872
  10895. #, no-wrap
  10896. msgid ""
  10897. "guix shell --pure --preserve=^SLURM openmpi @dots{} \\\n"
  10898. " -- mpirun @dots{}\n"
  10899. msgstr ""
  10900. #. type: table
  10901. #: guix-git/doc/guix.texi:5878 guix-git/doc/guix.texi:6291
  10902. 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.)."
  10903. msgstr ""
  10904. #. type: item
  10905. #: guix-git/doc/guix.texi:5879 guix-git/doc/guix.texi:6292
  10906. #, no-wrap
  10907. msgid "--search-paths"
  10908. msgstr ""
  10909. #. type: table
  10910. #: guix-git/doc/guix.texi:5882 guix-git/doc/guix.texi:6295
  10911. msgid "Display the environment variable definitions that make up the environment."
  10912. msgstr ""
  10913. #. type: table
  10914. #: guix-git/doc/guix.texi:5886 guix-git/doc/guix.texi:6299
  10915. msgid "Attempt to build for @var{system}---e.g., @code{i686-linux}."
  10916. msgstr ""
  10917. #. type: item
  10918. #: guix-git/doc/guix.texi:5887 guix-git/doc/guix.texi:6300
  10919. #, no-wrap
  10920. msgid "--container"
  10921. msgstr ""
  10922. #. type: itemx
  10923. #: guix-git/doc/guix.texi:5888 guix-git/doc/guix.texi:6301
  10924. #, no-wrap
  10925. msgid "-C"
  10926. msgstr ""
  10927. #. type: item
  10928. #: guix-git/doc/guix.texi:5889 guix-git/doc/guix.texi:6130
  10929. #: guix-git/doc/guix.texi:6302 guix-git/doc/guix.texi:14461
  10930. #: guix-git/doc/guix.texi:36260 guix-git/doc/guix.texi:38735
  10931. #, no-wrap
  10932. msgid "container"
  10933. msgstr "容器"
  10934. #. type: table
  10935. #: guix-git/doc/guix.texi:5895 guix-git/doc/guix.texi:6308
  10936. 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."
  10937. msgstr ""
  10938. #. type: table
  10939. #: guix-git/doc/guix.texi:5899 guix-git/doc/guix.texi:6312
  10940. 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)."
  10941. msgstr ""
  10942. #. type: item
  10943. #: guix-git/doc/guix.texi:5900 guix-git/doc/guix.texi:6313
  10944. #: guix-git/doc/guix.texi:36352 guix-git/doc/guix.texi:38753
  10945. #, no-wrap
  10946. msgid "--network"
  10947. msgstr ""
  10948. #. type: table
  10949. #: guix-git/doc/guix.texi:5905 guix-git/doc/guix.texi:6318
  10950. msgid "For containers, share the network namespace with the host system. Containers created without this flag only have access to the loopback device."
  10951. msgstr ""
  10952. #. type: item
  10953. #: guix-git/doc/guix.texi:5906 guix-git/doc/guix.texi:6319
  10954. #, no-wrap
  10955. msgid "--link-profile"
  10956. msgstr ""
  10957. #. type: itemx
  10958. #: guix-git/doc/guix.texi:5907 guix-git/doc/guix.texi:6320
  10959. #, no-wrap
  10960. msgid "-P"
  10961. msgstr ""
  10962. #. type: table
  10963. #: guix-git/doc/guix.texi:5915
  10964. 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."
  10965. msgstr ""
  10966. #. type: table
  10967. #: guix-git/doc/guix.texi:5921 guix-git/doc/guix.texi:6334
  10968. 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."
  10969. msgstr ""
  10970. #. type: item
  10971. #: guix-git/doc/guix.texi:5922 guix-git/doc/guix.texi:6335
  10972. #: guix-git/doc/guix.texi:14038
  10973. #, no-wrap
  10974. msgid "--user=@var{user}"
  10975. msgstr ""
  10976. #. type: itemx
  10977. #: guix-git/doc/guix.texi:5923 guix-git/doc/guix.texi:6336
  10978. #: guix-git/doc/guix.texi:14039
  10979. #, no-wrap
  10980. msgid "-u @var{user}"
  10981. msgstr ""
  10982. #. type: table
  10983. #: guix-git/doc/guix.texi:5930 guix-git/doc/guix.texi:6343
  10984. 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."
  10985. msgstr ""
  10986. #. type: table
  10987. #: guix-git/doc/guix.texi:5935 guix-git/doc/guix.texi:6348
  10988. 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."
  10989. msgstr ""
  10990. #. type: example
  10991. #: guix-git/doc/guix.texi:5942
  10992. #, no-wrap
  10993. msgid ""
  10994. "# will expose paths as /home/foo/wd, /home/foo/test, and /home/foo/target\n"
  10995. "cd $HOME/wd\n"
  10996. "guix shell --container --user=foo \\\n"
  10997. " --expose=$HOME/test \\\n"
  10998. " --expose=/tmp/target=$HOME/target\n"
  10999. msgstr ""
  11000. #. type: table
  11001. #: guix-git/doc/guix.texi:5947 guix-git/doc/guix.texi:6360
  11002. 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."
  11003. msgstr ""
  11004. #. type: item
  11005. #: guix-git/doc/guix.texi:5948 guix-git/doc/guix.texi:6361
  11006. #, no-wrap
  11007. msgid "--no-cwd"
  11008. msgstr ""
  11009. #. type: table
  11010. #: guix-git/doc/guix.texi:5955 guix-git/doc/guix.texi:6368
  11011. 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}."
  11012. msgstr ""
  11013. #. type: item
  11014. #: guix-git/doc/guix.texi:5956 guix-git/doc/guix.texi:6369
  11015. #: guix-git/doc/guix.texi:38757
  11016. #, no-wrap
  11017. msgid "--expose=@var{source}[=@var{target}]"
  11018. msgstr ""
  11019. #. type: itemx
  11020. #: guix-git/doc/guix.texi:5957 guix-git/doc/guix.texi:6370
  11021. #: guix-git/doc/guix.texi:38758
  11022. #, no-wrap
  11023. msgid "--share=@var{source}[=@var{target}]"
  11024. msgstr ""
  11025. #. type: table
  11026. #: guix-git/doc/guix.texi:5963 guix-git/doc/guix.texi:6376
  11027. 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."
  11028. msgstr ""
  11029. #. type: table
  11030. #: guix-git/doc/guix.texi:5967 guix-git/doc/guix.texi:6380
  11031. 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:"
  11032. msgstr ""
  11033. #. type: example
  11034. #: guix-git/doc/guix.texi:5970
  11035. #, no-wrap
  11036. msgid "guix shell --container --expose=$HOME=/exchange guile -- guile\n"
  11037. msgstr ""
  11038. #. type: item
  11039. #: guix-git/doc/guix.texi:5972
  11040. #, fuzzy, no-wrap
  11041. #| msgid "--no-build-hook"
  11042. msgid "--rebuild-cache"
  11043. msgstr "--no-build-hook"
  11044. #. type: cindex
  11045. #: guix-git/doc/guix.texi:5973
  11046. #, fuzzy, no-wrap
  11047. msgid "caching, of profiles"
  11048. msgstr "代码格式化"
  11049. #. type: cindex
  11050. #: guix-git/doc/guix.texi:5974
  11051. #, fuzzy, no-wrap
  11052. #| msgid "Invoking @command{guix build}"
  11053. msgid "caching, in @command{guix shell}"
  11054. msgstr "调用@command{guix build}"
  11055. #. type: table
  11056. #: guix-git/doc/guix.texi:5980
  11057. msgid "In most cases, @command{guix shell} caches the environment so that subsequent uses are instantaneous. Least-recently used cache entries are periodically removed. The cache is also invalidated, when using @option{--file} or @option{--manifest}, anytime the corresponding file is modified."
  11058. msgstr ""
  11059. #. type: table
  11060. #: guix-git/doc/guix.texi:5986
  11061. msgid "The @option{--rebuild-cache} forces the cached environment to be refreshed. This is useful when using @option{--file} or @option{--manifest} and the @command{guix.scm} or @command{manifest.scm} file has external dependencies, or if its behavior depends, say, on environment variables."
  11062. msgstr ""
  11063. #. type: item
  11064. #: guix-git/doc/guix.texi:5987 guix-git/doc/guix.texi:6171
  11065. #: guix-git/doc/guix.texi:6742 guix-git/doc/guix.texi:11995
  11066. #: guix-git/doc/guix.texi:36357
  11067. #, no-wrap
  11068. msgid "--root=@var{file}"
  11069. msgstr ""
  11070. #. type: itemx
  11071. #: guix-git/doc/guix.texi:5988 guix-git/doc/guix.texi:6172
  11072. #: guix-git/doc/guix.texi:6743 guix-git/doc/guix.texi:11996
  11073. #: guix-git/doc/guix.texi:36358
  11074. #, no-wrap
  11075. msgid "-r @var{file}"
  11076. msgstr ""
  11077. #. type: cindex
  11078. #: guix-git/doc/guix.texi:5989 guix-git/doc/guix.texi:6173
  11079. #, no-wrap
  11080. msgid "persistent environment"
  11081. msgstr ""
  11082. #. type: cindex
  11083. #: guix-git/doc/guix.texi:5990 guix-git/doc/guix.texi:6174
  11084. #, no-wrap
  11085. msgid "garbage collector root, for environments"
  11086. msgstr ""
  11087. #. type: table
  11088. #: guix-git/doc/guix.texi:5993 guix-git/doc/guix.texi:6177
  11089. msgid "Make @var{file} a symlink to the profile for this environment, and register it as a garbage collector root."
  11090. msgstr ""
  11091. #. type: table
  11092. #: guix-git/doc/guix.texi:5996 guix-git/doc/guix.texi:6180
  11093. msgid "This is useful if you want to protect your environment from garbage collection, to make it ``persistent''."
  11094. msgstr ""
  11095. #. type: table
  11096. #: guix-git/doc/guix.texi:6002
  11097. msgid "When this option is omitted, @command{guix shell} caches profiles so that subsequent uses of the same environment are instantaneous---this is comparable to using @option{--root} except that @command{guix shell} takes care of periodically removing the least-recently used garbage collector roots."
  11098. msgstr ""
  11099. #. type: table
  11100. #: guix-git/doc/guix.texi:6009
  11101. msgid "In some cases, @command{guix shell} does not cache profiles---e.g., if transformation options such as @option{--with-latest} are used. In those cases, the environment is protected from garbage collection only for the duration of the @command{guix shell} session. This means that next time you recreate the same environment, you could have to rebuild or re-download packages."
  11102. msgstr ""
  11103. #. type: table
  11104. #: guix-git/doc/guix.texi:6011
  11105. #, fuzzy
  11106. msgid "@xref{Invoking guix gc}, for more on GC roots."
  11107. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  11108. #. type: Plain text
  11109. #: guix-git/doc/guix.texi:6016
  11110. 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})."
  11111. msgstr ""
  11112. #. type: section
  11113. #: guix-git/doc/guix.texi:6018
  11114. #, no-wrap
  11115. msgid "Invoking @command{guix environment}"
  11116. msgstr ""
  11117. #. type: Plain text
  11118. #: guix-git/doc/guix.texi:6022
  11119. msgid "The purpose of @command{guix environment} is to assist in creating development environments."
  11120. msgstr ""
  11121. #. type: quotation
  11122. #: guix-git/doc/guix.texi:6023
  11123. #, no-wrap
  11124. msgid "Deprecation warning"
  11125. msgstr ""
  11126. #. type: quotation
  11127. #: guix-git/doc/guix.texi:6027
  11128. 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}."
  11129. msgstr ""
  11130. #. type: quotation
  11131. #: guix-git/doc/guix.texi:6032
  11132. 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."
  11133. msgstr ""
  11134. #. type: example
  11135. #: guix-git/doc/guix.texi:6038
  11136. #, no-wrap
  11137. msgid "guix environment @var{options} @var{package}@dots{}\n"
  11138. msgstr ""
  11139. #. type: Plain text
  11140. #: guix-git/doc/guix.texi:6042
  11141. msgid "The following example spawns a new shell set up for the development of GNU@tie{}Guile:"
  11142. msgstr ""
  11143. #. type: example
  11144. #: guix-git/doc/guix.texi:6045
  11145. #, no-wrap
  11146. msgid "guix environment guile\n"
  11147. msgstr ""
  11148. #. type: Plain text
  11149. #: guix-git/doc/guix.texi:6062
  11150. 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.}."
  11151. msgstr ""
  11152. #. type: Plain text
  11153. #: guix-git/doc/guix.texi:6068
  11154. 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."
  11155. msgstr ""
  11156. #. type: Plain text
  11157. #: guix-git/doc/guix.texi:6075
  11158. 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}):"
  11159. msgstr ""
  11160. #. type: Plain text
  11161. #: guix-git/doc/guix.texi:6094
  11162. 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:"
  11163. msgstr ""
  11164. #. type: example
  11165. #: guix-git/doc/guix.texi:6097
  11166. #, no-wrap
  11167. msgid "guix environment guile emacs\n"
  11168. msgstr ""
  11169. #. type: Plain text
  11170. #: guix-git/doc/guix.texi:6102
  11171. 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:"
  11172. msgstr ""
  11173. #. type: example
  11174. #: guix-git/doc/guix.texi:6105
  11175. #, no-wrap
  11176. msgid "guix environment guile -- make -j4\n"
  11177. msgstr ""
  11178. #. type: Plain text
  11179. #: guix-git/doc/guix.texi:6111
  11180. msgid "In other situations, it is more convenient to specify the list of packages needed in the environment. For example, the following command runs @command{python} from an environment containing Python@tie{}3 and NumPy:"
  11181. msgstr ""
  11182. #. type: example
  11183. #: guix-git/doc/guix.texi:6114
  11184. #, no-wrap
  11185. msgid "guix environment --ad-hoc python-numpy python -- python3\n"
  11186. msgstr ""
  11187. #. type: Plain text
  11188. #: guix-git/doc/guix.texi:6125
  11189. 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:"
  11190. msgstr ""
  11191. #. type: example
  11192. #: guix-git/doc/guix.texi:6128
  11193. #, fuzzy, no-wrap
  11194. msgid "guix environment --pure guix --ad-hoc git strace\n"
  11195. msgstr "guix environment guix --ad-hoc help2man git strace\n"
  11196. #. type: Plain text
  11197. #: guix-git/doc/guix.texi:6138
  11198. 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:"
  11199. msgstr ""
  11200. #. type: example
  11201. #: guix-git/doc/guix.texi:6141
  11202. #, no-wrap
  11203. msgid "guix environment --ad-hoc --container guile -- guile\n"
  11204. msgstr ""
  11205. #. type: quotation
  11206. #: guix-git/doc/guix.texi:6145
  11207. msgid "The @option{--container} option requires Linux-libre 3.19 or newer."
  11208. msgstr ""
  11209. #. type: cindex
  11210. #: guix-git/doc/guix.texi:6147
  11211. #, fuzzy, no-wrap
  11212. msgid "certificates"
  11213. msgstr "X.509证书"
  11214. #. type: Plain text
  11215. #: guix-git/doc/guix.texi:6154
  11216. 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."
  11217. msgstr ""
  11218. #. type: example
  11219. #: guix-git/doc/guix.texi:6161
  11220. #, no-wrap
  11221. msgid ""
  11222. "guix environment --preserve='^DISPLAY$' --container --network \\\n"
  11223. " --expose=/etc/machine-id \\\n"
  11224. " --expose=/etc/ssl/certs/ \\\n"
  11225. " --share=$HOME/.local/share/eolie/=$HOME/.local/share/eolie/ \\\n"
  11226. " --ad-hoc eolie nss-certs dbus -- eolie\n"
  11227. msgstr ""
  11228. #. type: table
  11229. #: guix-git/doc/guix.texi:6170
  11230. msgid "Set up the environment and check whether the shell would clobber environment variables. @xref{Invoking guix shell, @option{--check}}, for more info."
  11231. msgstr ""
  11232. #. type: table
  11233. #: guix-git/doc/guix.texi:6186
  11234. 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."
  11235. msgstr ""
  11236. #. type: example
  11237. #: guix-git/doc/guix.texi:6196
  11238. #, no-wrap
  11239. msgid "guix environment -e '(@@ (gnu packages maths) petsc-openmpi)'\n"
  11240. msgstr ""
  11241. #. type: example
  11242. #: guix-git/doc/guix.texi:6205
  11243. #, no-wrap
  11244. msgid "guix environment --ad-hoc -e '(@@ (gnu) %base-packages)'\n"
  11245. msgstr ""
  11246. #. type: example
  11247. #: guix-git/doc/guix.texi:6214
  11248. #, no-wrap
  11249. msgid "guix environment --ad-hoc -e '(list (@@ (gnu packages bash) bash) \"include\")'\n"
  11250. msgstr ""
  11251. #. type: item
  11252. #: guix-git/doc/guix.texi:6216
  11253. #, no-wrap
  11254. msgid "--load=@var{file}"
  11255. msgstr ""
  11256. #. type: itemx
  11257. #: guix-git/doc/guix.texi:6217
  11258. #, no-wrap
  11259. msgid "-l @var{file}"
  11260. msgstr ""
  11261. #. type: table
  11262. #: guix-git/doc/guix.texi:6220
  11263. msgid "Create an environment for the package or list of packages that the code within @var{file} evaluates to."
  11264. msgstr ""
  11265. #. type: item
  11266. #: guix-git/doc/guix.texi:6238
  11267. #, no-wrap
  11268. msgid "--ad-hoc"
  11269. msgstr ""
  11270. #. type: table
  11271. #: guix-git/doc/guix.texi:6243
  11272. 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."
  11273. msgstr ""
  11274. #. type: table
  11275. #: guix-git/doc/guix.texi:6245
  11276. msgid "For instance, the command:"
  11277. msgstr ""
  11278. #. type: example
  11279. #: guix-git/doc/guix.texi:6248
  11280. #, no-wrap
  11281. msgid "guix environment --ad-hoc guile guile-sdl -- guile\n"
  11282. msgstr ""
  11283. #. type: table
  11284. #: guix-git/doc/guix.texi:6252
  11285. msgid "runs @command{guile} in an environment where Guile and Guile-SDL are available."
  11286. msgstr ""
  11287. #. type: table
  11288. #: guix-git/doc/guix.texi:6257
  11289. 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})."
  11290. msgstr ""
  11291. #. type: table
  11292. #: guix-git/doc/guix.texi:6263
  11293. 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."
  11294. msgstr ""
  11295. #. type: example
  11296. #: guix-git/doc/guix.texi:6285
  11297. #, no-wrap
  11298. msgid ""
  11299. "guix environment --pure --preserve=^SLURM --ad-hoc openmpi @dots{} \\\n"
  11300. " -- mpirun @dots{}\n"
  11301. msgstr ""
  11302. #. type: table
  11303. #: guix-git/doc/guix.texi:6328
  11304. 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."
  11305. msgstr ""
  11306. #. type: example
  11307. #: guix-git/doc/guix.texi:6355
  11308. #, no-wrap
  11309. msgid ""
  11310. "# will expose paths as /home/foo/wd, /home/foo/test, and /home/foo/target\n"
  11311. "cd $HOME/wd\n"
  11312. "guix environment --container --user=foo \\\n"
  11313. " --expose=$HOME/test \\\n"
  11314. " --expose=/tmp/target=$HOME/target\n"
  11315. msgstr ""
  11316. #. type: example
  11317. #: guix-git/doc/guix.texi:6383
  11318. #, no-wrap
  11319. msgid "guix environment --container --expose=$HOME=/exchange --ad-hoc guile -- guile\n"
  11320. msgstr ""
  11321. #. type: Plain text
  11322. #: guix-git/doc/guix.texi:6391
  11323. 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})."
  11324. msgstr ""
  11325. #. type: section
  11326. #: guix-git/doc/guix.texi:6393
  11327. #, no-wrap
  11328. msgid "Invoking @command{guix pack}"
  11329. msgstr ""
  11330. #. type: Plain text
  11331. #: guix-git/doc/guix.texi:6399
  11332. 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."
  11333. msgstr ""
  11334. #. type: quotation
  11335. #: guix-git/doc/guix.texi:6404
  11336. 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}."
  11337. msgstr ""
  11338. #. type: cindex
  11339. #: guix-git/doc/guix.texi:6406
  11340. #, no-wrap
  11341. msgid "pack"
  11342. msgstr ""
  11343. #. type: cindex
  11344. #: guix-git/doc/guix.texi:6407
  11345. #, no-wrap
  11346. msgid "bundle"
  11347. msgstr ""
  11348. #. type: cindex
  11349. #: guix-git/doc/guix.texi:6408
  11350. #, no-wrap
  11351. msgid "application bundle"
  11352. msgstr ""
  11353. #. type: cindex
  11354. #: guix-git/doc/guix.texi:6409
  11355. #, no-wrap
  11356. msgid "software bundle"
  11357. msgstr ""
  11358. #. type: Plain text
  11359. #: guix-git/doc/guix.texi:6418
  11360. 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."
  11361. msgstr ""
  11362. #. type: Plain text
  11363. #: guix-git/doc/guix.texi:6421
  11364. msgid "For example, to create a bundle containing Guile, Emacs, Geiser, and all their dependencies, you can run:"
  11365. msgstr ""
  11366. #. type: example
  11367. #: guix-git/doc/guix.texi:6426
  11368. #, no-wrap
  11369. msgid ""
  11370. "$ guix pack guile emacs emacs-geiser\n"
  11371. "@dots{}\n"
  11372. "/gnu/store/@dots{}-pack.tar.gz\n"
  11373. msgstr ""
  11374. #. type: Plain text
  11375. #: guix-git/doc/guix.texi:6434
  11376. 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})."
  11377. msgstr ""
  11378. #. type: Plain text
  11379. #: guix-git/doc/guix.texi:6439
  11380. 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:"
  11381. msgstr ""
  11382. #. type: example
  11383. #: guix-git/doc/guix.texi:6442
  11384. #, fuzzy, no-wrap
  11385. msgid "guix pack -S /opt/gnu/bin=bin guile emacs emacs-geiser\n"
  11386. msgstr "guix package -i emacs guile emacs-geiser\n"
  11387. #. type: Plain text
  11388. #: guix-git/doc/guix.texi:6446
  11389. msgid "That way, users can happily type @file{/opt/gnu/bin/guile} and enjoy."
  11390. msgstr ""
  11391. #. type: cindex
  11392. #: guix-git/doc/guix.texi:6447
  11393. #, no-wrap
  11394. msgid "relocatable binaries, with @command{guix pack}"
  11395. msgstr ""
  11396. #. type: Plain text
  11397. #: guix-git/doc/guix.texi:6455
  11398. 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}."
  11399. msgstr ""
  11400. #. type: cindex
  11401. #: guix-git/doc/guix.texi:6456
  11402. #, no-wrap
  11403. msgid "Docker, build an image with guix pack"
  11404. msgstr ""
  11405. #. type: Plain text
  11406. #: guix-git/doc/guix.texi:6459
  11407. msgid "Alternatively, you can produce a pack in the Docker image format using the following command:"
  11408. msgstr ""
  11409. #. type: example
  11410. #: guix-git/doc/guix.texi:6462
  11411. #, no-wrap
  11412. msgid "guix pack -f docker -S /bin=bin guile guile-readline\n"
  11413. msgstr ""
  11414. #. type: Plain text
  11415. #: guix-git/doc/guix.texi:6467
  11416. msgid "The result is a tarball that can be passed to the @command{docker load} command, followed by @code{docker run}:"
  11417. msgstr ""
  11418. #. type: example
  11419. #: guix-git/doc/guix.texi:6471
  11420. #, no-wrap
  11421. msgid ""
  11422. "docker load < @var{file}\n"
  11423. "docker run -ti guile-guile-readline /bin/guile\n"
  11424. msgstr ""
  11425. #. type: Plain text
  11426. #: guix-git/doc/guix.texi:6478
  11427. 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."
  11428. msgstr ""
  11429. #. type: cindex
  11430. #: guix-git/doc/guix.texi:6479
  11431. #, no-wrap
  11432. msgid "Singularity, build an image with guix pack"
  11433. msgstr ""
  11434. #. type: cindex
  11435. #: guix-git/doc/guix.texi:6480
  11436. #, no-wrap
  11437. msgid "SquashFS, build an image with guix pack"
  11438. msgstr ""
  11439. #. type: Plain text
  11440. #: guix-git/doc/guix.texi:6483
  11441. msgid "Yet another option is to produce a SquashFS image with the following command:"
  11442. msgstr ""
  11443. #. type: example
  11444. #: guix-git/doc/guix.texi:6486
  11445. #, fuzzy, no-wrap
  11446. msgid "guix pack -f squashfs bash guile emacs emacs-geiser\n"
  11447. msgstr "guix package -i emacs guile emacs-geiser\n"
  11448. #. type: Plain text
  11449. #: guix-git/doc/guix.texi:6494
  11450. 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}."
  11451. msgstr ""
  11452. #. type: Plain text
  11453. #: guix-git/doc/guix.texi:6496
  11454. msgid "Several command-line options allow you to customize your pack:"
  11455. msgstr ""
  11456. #. type: table
  11457. #: guix-git/doc/guix.texi:6501
  11458. msgid "Produce a pack in the given @var{format}."
  11459. msgstr ""
  11460. #. type: table
  11461. #: guix-git/doc/guix.texi:6503
  11462. msgid "The available formats are:"
  11463. msgstr ""
  11464. #. type: item
  11465. #: guix-git/doc/guix.texi:6505
  11466. #, no-wrap
  11467. msgid "tarball"
  11468. msgstr ""
  11469. #. type: table
  11470. #: guix-git/doc/guix.texi:6508
  11471. msgid "This is the default format. It produces a tarball containing all the specified binaries and symlinks."
  11472. msgstr ""
  11473. #. type: item
  11474. #: guix-git/doc/guix.texi:6509
  11475. #, no-wrap
  11476. msgid "docker"
  11477. msgstr ""
  11478. #. type: table
  11479. #: guix-git/doc/guix.texi:6515
  11480. 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."
  11481. msgstr ""
  11482. #. type: item
  11483. #: guix-git/doc/guix.texi:6516
  11484. #, no-wrap
  11485. msgid "squashfs"
  11486. msgstr ""
  11487. #. type: table
  11488. #: guix-git/doc/guix.texi:6520
  11489. 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."
  11490. msgstr ""
  11491. #. type: quotation
  11492. #: guix-git/doc/guix.texi:6526
  11493. 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:"
  11494. msgstr ""
  11495. #. type: example
  11496. #: guix-git/doc/guix.texi:6529
  11497. #, no-wrap
  11498. msgid "guix pack -f squashfs bash @dots{}\n"
  11499. msgstr ""
  11500. #. type: quotation
  11501. #: guix-git/doc/guix.texi:6534
  11502. 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."
  11503. msgstr ""
  11504. #. type: item
  11505. #: guix-git/doc/guix.texi:6536
  11506. #, fuzzy, no-wrap
  11507. #| msgid "--debug"
  11508. msgid "deb"
  11509. msgstr "--debug"
  11510. #. type: table
  11511. #: guix-git/doc/guix.texi:6544
  11512. 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."
  11513. msgstr ""
  11514. #. type: example
  11515. #: guix-git/doc/guix.texi:6547
  11516. #, no-wrap
  11517. msgid "guix pack -f deb -C xz -S /usr/bin/hello=bin/hello hello\n"
  11518. msgstr ""
  11519. #. type: quotation
  11520. #: guix-git/doc/guix.texi:6554
  11521. 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."
  11522. msgstr ""
  11523. #. type: quotation
  11524. #: guix-git/doc/guix.texi:6562
  11525. 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."
  11526. msgstr ""
  11527. #. type: cindex
  11528. #: guix-git/doc/guix.texi:6566
  11529. #, no-wrap
  11530. msgid "relocatable binaries"
  11531. msgstr ""
  11532. #. type: item
  11533. #: guix-git/doc/guix.texi:6567
  11534. #, no-wrap
  11535. msgid "--relocatable"
  11536. msgstr ""
  11537. #. type: table
  11538. #: guix-git/doc/guix.texi:6571
  11539. msgid "Produce @dfn{relocatable binaries}---i.e., binaries that can be placed anywhere in the file system hierarchy and run from there."
  11540. msgstr ""
  11541. #. type: table
  11542. #: guix-git/doc/guix.texi:6579
  11543. 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."
  11544. msgstr ""
  11545. #. type: table
  11546. #: guix-git/doc/guix.texi:6581
  11547. msgid "For example, if you create a pack containing Bash with:"
  11548. msgstr ""
  11549. #. type: example
  11550. #: guix-git/doc/guix.texi:6584
  11551. #, no-wrap
  11552. msgid "guix pack -RR -S /mybin=bin bash\n"
  11553. msgstr ""
  11554. #. type: table
  11555. #: guix-git/doc/guix.texi:6589
  11556. msgid "...@: you can copy that pack to a machine that lacks Guix, and from your home directory as a normal user, run:"
  11557. msgstr ""
  11558. #. type: example
  11559. #: guix-git/doc/guix.texi:6593
  11560. #, no-wrap
  11561. msgid ""
  11562. "tar xf pack.tar.gz\n"
  11563. "./mybin/sh\n"
  11564. msgstr ""
  11565. #. type: table
  11566. #: guix-git/doc/guix.texi:6601
  11567. 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."
  11568. msgstr ""
  11569. #. type: quotation
  11570. #: guix-git/doc/guix.texi:6607
  11571. 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."
  11572. msgstr ""
  11573. #. type: quotation
  11574. #: guix-git/doc/guix.texi:6613
  11575. 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:"
  11576. msgstr ""
  11577. #. type: item
  11578. #: guix-git/doc/guix.texi:6615 guix-git/doc/guix.texi:17872
  11579. #, no-wrap
  11580. msgid "default"
  11581. msgstr ""
  11582. #. type: table
  11583. #: guix-git/doc/guix.texi:6618
  11584. msgid "Try user namespaces and fall back to PRoot if user namespaces are not supported (see below)."
  11585. msgstr ""
  11586. #. type: item
  11587. #: guix-git/doc/guix.texi:6619
  11588. #, fuzzy, no-wrap
  11589. msgid "performance"
  11590. msgstr "格式化代码"
  11591. #. type: table
  11592. #: guix-git/doc/guix.texi:6622
  11593. msgid "Try user namespaces and fall back to Fakechroot if user namespaces are not supported (see below)."
  11594. msgstr ""
  11595. #. type: item
  11596. #: guix-git/doc/guix.texi:6623
  11597. #, fuzzy, no-wrap
  11598. msgid "userns"
  11599. msgstr "用户"
  11600. #. type: table
  11601. #: guix-git/doc/guix.texi:6626
  11602. msgid "Run the program through user namespaces and abort if they are not supported."
  11603. msgstr ""
  11604. #. type: item
  11605. #: guix-git/doc/guix.texi:6627
  11606. #, fuzzy, no-wrap
  11607. msgid "proot"
  11608. msgstr "chroot"
  11609. #. type: table
  11610. #: guix-git/doc/guix.texi:6634
  11611. 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."
  11612. msgstr ""
  11613. #. type: item
  11614. #: guix-git/doc/guix.texi:6635
  11615. #, fuzzy, no-wrap
  11616. msgid "fakechroot"
  11617. msgstr "chroot"
  11618. #. type: table
  11619. #: guix-git/doc/guix.texi:6643
  11620. 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."
  11621. msgstr ""
  11622. #. type: vindex
  11623. #: guix-git/doc/guix.texi:6645
  11624. #, no-wrap
  11625. msgid "GUIX_EXECUTION_ENGINE"
  11626. msgstr ""
  11627. #. type: quotation
  11628. #: guix-git/doc/guix.texi:6649
  11629. 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."
  11630. msgstr ""
  11631. #. type: cindex
  11632. #: guix-git/doc/guix.texi:6651
  11633. #, no-wrap
  11634. msgid "entry point, for Docker images"
  11635. msgstr ""
  11636. #. type: item
  11637. #: guix-git/doc/guix.texi:6652
  11638. #, fuzzy, no-wrap
  11639. msgid "--entry-point=@var{command}"
  11640. msgstr "--timeout=@var{seconds}"
  11641. #. type: table
  11642. #: guix-git/doc/guix.texi:6657
  11643. 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."
  11644. msgstr ""
  11645. #. type: table
  11646. #: guix-git/doc/guix.texi:6661
  11647. 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:"
  11648. msgstr ""
  11649. #. type: example
  11650. #: guix-git/doc/guix.texi:6664
  11651. #, no-wrap
  11652. msgid "guix pack -f docker --entry-point=bin/guile guile\n"
  11653. msgstr ""
  11654. #. type: table
  11655. #: guix-git/doc/guix.texi:6668
  11656. msgid "The resulting pack can easily be loaded and @code{docker run} with no extra arguments will spawn @code{bin/guile}:"
  11657. msgstr ""
  11658. #. type: example
  11659. #: guix-git/doc/guix.texi:6672
  11660. #, no-wrap
  11661. msgid ""
  11662. "docker load -i pack.tar.gz\n"
  11663. "docker run @var{image-id}\n"
  11664. msgstr ""
  11665. #. type: table
  11666. #: guix-git/doc/guix.texi:6677 guix-git/doc/guix.texi:12918
  11667. #: guix-git/doc/guix.texi:13908
  11668. msgid "Consider the package @var{expr} evaluates to."
  11669. msgstr ""
  11670. #. type: table
  11671. #: guix-git/doc/guix.texi:6681
  11672. 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}})."
  11673. msgstr ""
  11674. #. type: table
  11675. #: guix-git/doc/guix.texi:6687
  11676. 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."
  11677. msgstr ""
  11678. #. type: table
  11679. #: guix-git/doc/guix.texi:6695
  11680. 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."
  11681. msgstr ""
  11682. #. type: item
  11683. #: guix-git/doc/guix.texi:6701 guix-git/doc/guix.texi:11959
  11684. #, no-wrap
  11685. msgid "--target=@var{triplet}"
  11686. msgstr ""
  11687. #. type: cindex
  11688. #: guix-git/doc/guix.texi:6702 guix-git/doc/guix.texi:7148
  11689. #: guix-git/doc/guix.texi:11960
  11690. #, no-wrap
  11691. msgid "cross-compilation"
  11692. msgstr ""
  11693. #. type: table
  11694. #: guix-git/doc/guix.texi:6706
  11695. 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})."
  11696. msgstr ""
  11697. #. type: item
  11698. #: guix-git/doc/guix.texi:6707
  11699. #, no-wrap
  11700. msgid "--compression=@var{tool}"
  11701. msgstr ""
  11702. #. type: itemx
  11703. #: guix-git/doc/guix.texi:6708
  11704. #, no-wrap
  11705. msgid "-C @var{tool}"
  11706. msgstr ""
  11707. #. type: table
  11708. #: guix-git/doc/guix.texi:6712
  11709. #, fuzzy
  11710. 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."
  11711. msgstr "以@var{type}方式压缩构建日志,可选的值:@code{gzip},@code{bzip2},@code{none}。"
  11712. #. type: item
  11713. #: guix-git/doc/guix.texi:6713
  11714. #, no-wrap
  11715. msgid "--symlink=@var{spec}"
  11716. msgstr ""
  11717. #. type: itemx
  11718. #: guix-git/doc/guix.texi:6714
  11719. #, no-wrap
  11720. msgid "-S @var{spec}"
  11721. msgstr ""
  11722. #. type: table
  11723. #: guix-git/doc/guix.texi:6717
  11724. msgid "Add the symlinks specified by @var{spec} to the pack. This option can appear several times."
  11725. msgstr ""
  11726. #. type: table
  11727. #: guix-git/doc/guix.texi:6721
  11728. 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."
  11729. msgstr ""
  11730. #. type: table
  11731. #: guix-git/doc/guix.texi:6724
  11732. 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."
  11733. msgstr ""
  11734. #. type: item
  11735. #: guix-git/doc/guix.texi:6725 guix-git/doc/guix.texi:36311
  11736. #, no-wrap
  11737. msgid "--save-provenance"
  11738. msgstr ""
  11739. #. type: table
  11740. #: guix-git/doc/guix.texi:6729
  11741. 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})."
  11742. msgstr ""
  11743. #. type: table
  11744. #: guix-git/doc/guix.texi:6735
  11745. 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."
  11746. msgstr ""
  11747. #. type: table
  11748. #: guix-git/doc/guix.texi:6741
  11749. 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."
  11750. msgstr ""
  11751. #. type: cindex
  11752. #: guix-git/doc/guix.texi:6744
  11753. #, fuzzy, no-wrap
  11754. msgid "garbage collector root, for packs"
  11755. msgstr "垃圾收集的根"
  11756. #. type: table
  11757. #: guix-git/doc/guix.texi:6747
  11758. msgid "Make @var{file} a symlink to the resulting pack, and register it as a garbage collector root."
  11759. msgstr ""
  11760. #. type: item
  11761. #: guix-git/doc/guix.texi:6748
  11762. #, no-wrap
  11763. msgid "--localstatedir"
  11764. msgstr ""
  11765. #. type: itemx
  11766. #: guix-git/doc/guix.texi:6749
  11767. #, no-wrap
  11768. msgid "--profile-name=@var{name}"
  11769. msgstr ""
  11770. #. type: table
  11771. #: guix-git/doc/guix.texi:6754
  11772. 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}."
  11773. msgstr ""
  11774. #. type: table
  11775. #: guix-git/doc/guix.texi:6760
  11776. 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."
  11777. msgstr ""
  11778. #. type: table
  11779. #: guix-git/doc/guix.texi:6763
  11780. msgid "One use case for this is the Guix self-contained binary tarball (@pxref{Binary Installation})."
  11781. msgstr ""
  11782. #. type: item
  11783. #: guix-git/doc/guix.texi:6764 guix-git/doc/guix.texi:36305
  11784. #, no-wrap
  11785. msgid "--derivation"
  11786. msgstr ""
  11787. #. type: itemx
  11788. #: guix-git/doc/guix.texi:6765 guix-git/doc/guix.texi:11991
  11789. #: guix-git/doc/guix.texi:36306
  11790. #, no-wrap
  11791. msgid "-d"
  11792. msgstr ""
  11793. #. type: table
  11794. #: guix-git/doc/guix.texi:6767
  11795. msgid "Print the name of the derivation that builds the pack."
  11796. msgstr ""
  11797. #. type: table
  11798. #: guix-git/doc/guix.texi:6771
  11799. msgid "Use the bootstrap binaries to build the pack. This option is only useful to Guix developers."
  11800. msgstr ""
  11801. #. type: Plain text
  11802. #: guix-git/doc/guix.texi:6776
  11803. 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})."
  11804. msgstr ""
  11805. #. type: cindex
  11806. #: guix-git/doc/guix.texi:6781
  11807. #, no-wrap
  11808. msgid "GCC"
  11809. msgstr ""
  11810. #. type: cindex
  11811. #: guix-git/doc/guix.texi:6782
  11812. #, no-wrap
  11813. msgid "ld-wrapper"
  11814. msgstr ""
  11815. #. type: cindex
  11816. #: guix-git/doc/guix.texi:6783
  11817. #, no-wrap
  11818. msgid "linker wrapper"
  11819. msgstr ""
  11820. #. type: cindex
  11821. #: guix-git/doc/guix.texi:6784
  11822. #, fuzzy, no-wrap
  11823. msgid "toolchain, for C development"
  11824. msgstr "软件开发"
  11825. #. type: cindex
  11826. #: guix-git/doc/guix.texi:6785
  11827. #, no-wrap
  11828. msgid "toolchain, for Fortran development"
  11829. msgstr ""
  11830. #. type: Plain text
  11831. #: guix-git/doc/guix.texi:6792
  11832. 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."
  11833. msgstr ""
  11834. #. type: Plain text
  11835. #: guix-git/doc/guix.texi:6798
  11836. 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}."
  11837. msgstr ""
  11838. #. type: Plain text
  11839. #: guix-git/doc/guix.texi:6802
  11840. 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})."
  11841. msgstr ""
  11842. #. type: section
  11843. #: guix-git/doc/guix.texi:6805
  11844. #, fuzzy, no-wrap
  11845. msgid "Invoking @command{guix git authenticate}"
  11846. msgstr "调用@command{guix build}"
  11847. #. type: Plain text
  11848. #: guix-git/doc/guix.texi:6813
  11849. 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)."
  11850. msgstr ""
  11851. #. type: Plain text
  11852. #: guix-git/doc/guix.texi:6818
  11853. 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."
  11854. msgstr ""
  11855. #. type: example
  11856. #: guix-git/doc/guix.texi:6823
  11857. #, no-wrap
  11858. msgid "guix git authenticate @var{commit} @var{signer} [@var{options}@dots{}]\n"
  11859. msgstr ""
  11860. #. type: Plain text
  11861. #: guix-git/doc/guix.texi:6832
  11862. 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."
  11863. msgstr ""
  11864. #. type: item
  11865. #: guix-git/doc/guix.texi:6834
  11866. #, fuzzy, no-wrap
  11867. msgid "--repository=@var{directory}"
  11868. msgstr "--chroot-directory=@var{dir}"
  11869. #. type: itemx
  11870. #: guix-git/doc/guix.texi:6835
  11871. #, fuzzy, no-wrap
  11872. msgid "-r @var{directory}"
  11873. msgstr "状态文件夹"
  11874. #. type: table
  11875. #: guix-git/doc/guix.texi:6838
  11876. msgid "Open the Git repository in @var{directory} instead of the current directory."
  11877. msgstr ""
  11878. #. type: item
  11879. #: guix-git/doc/guix.texi:6839
  11880. #, no-wrap
  11881. msgid "--keyring=@var{reference}"
  11882. msgstr ""
  11883. #. type: itemx
  11884. #: guix-git/doc/guix.texi:6840
  11885. #, fuzzy, no-wrap
  11886. msgid "-k @var{reference}"
  11887. msgstr "-c @var{n}"
  11888. #. type: table
  11889. #: guix-git/doc/guix.texi:6846
  11890. 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}."
  11891. msgstr ""
  11892. #. type: item
  11893. #: guix-git/doc/guix.texi:6847
  11894. #, no-wrap
  11895. msgid "--stats"
  11896. msgstr ""
  11897. #. type: table
  11898. #: guix-git/doc/guix.texi:6849
  11899. msgid "Display commit signing statistics upon completion."
  11900. msgstr ""
  11901. #. type: item
  11902. #: guix-git/doc/guix.texi:6850
  11903. #, fuzzy, no-wrap
  11904. msgid "--cache-key=@var{key}"
  11905. msgstr "--cores=@var{n}"
  11906. #. type: table
  11907. #: guix-git/doc/guix.texi:6854
  11908. 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."
  11909. msgstr ""
  11910. #. type: item
  11911. #: guix-git/doc/guix.texi:6855
  11912. #, no-wrap
  11913. msgid "--historical-authorizations=@var{file}"
  11914. msgstr ""
  11915. #. type: table
  11916. #: guix-git/doc/guix.texi:6862
  11917. 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})."
  11918. msgstr ""
  11919. #. type: Plain text
  11920. #: guix-git/doc/guix.texi:6875
  11921. 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."
  11922. msgstr ""
  11923. #. type: Plain text
  11924. #: guix-git/doc/guix.texi:6881
  11925. 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."
  11926. msgstr ""
  11927. #. type: Plain text
  11928. #: guix-git/doc/guix.texi:6890
  11929. 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."
  11930. msgstr ""
  11931. #. type: Plain text
  11932. #: guix-git/doc/guix.texi:6893
  11933. msgid "This chapter describes all these APIs in turn, starting from high-level package definitions."
  11934. msgstr ""
  11935. #. type: menuentry
  11936. #: guix-git/doc/guix.texi:6907
  11937. #, fuzzy
  11938. msgid "Programming Guix in Guile"
  11939. msgstr "编程索引"
  11940. #. type: Plain text
  11941. #: guix-git/doc/guix.texi:6923
  11942. 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})."
  11943. msgstr ""
  11944. #. type: Plain text
  11945. #: guix-git/doc/guix.texi:6930
  11946. 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."
  11947. msgstr ""
  11948. #. type: cindex
  11949. #: guix-git/doc/guix.texi:6932
  11950. #, no-wrap
  11951. msgid "package module search path"
  11952. msgstr ""
  11953. #. type: Plain text
  11954. #: guix-git/doc/guix.texi:6941
  11955. 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:"
  11956. msgstr ""
  11957. #. type: enumerate
  11958. #: guix-git/doc/guix.texi:6948
  11959. 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."
  11960. msgstr ""
  11961. #. type: enumerate
  11962. #: guix-git/doc/guix.texi:6954
  11963. 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."
  11964. msgstr ""
  11965. #. type: Plain text
  11966. #: guix-git/doc/guix.texi:6957
  11967. msgid "@env{GUIX_PACKAGE_PATH} works similarly to other search path variables:"
  11968. msgstr ""
  11969. #. type: defvr
  11970. #: guix-git/doc/guix.texi:6958
  11971. #, no-wrap
  11972. msgid "{Environment Variable} GUIX_PACKAGE_PATH"
  11973. msgstr ""
  11974. #. type: defvr
  11975. #: guix-git/doc/guix.texi:6962
  11976. 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."
  11977. msgstr ""
  11978. #. type: Plain text
  11979. #: guix-git/doc/guix.texi:6970
  11980. 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}."
  11981. msgstr ""
  11982. #. type: Plain text
  11983. #: guix-git/doc/guix.texi:6978
  11984. 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:"
  11985. msgstr ""
  11986. #. type: lisp
  11987. #: guix-git/doc/guix.texi:6986
  11988. #, no-wrap
  11989. msgid ""
  11990. "(define-module (gnu packages hello)\n"
  11991. " #:use-module (guix packages)\n"
  11992. " #:use-module (guix download)\n"
  11993. " #:use-module (guix build-system gnu)\n"
  11994. " #:use-module (guix licenses)\n"
  11995. " #:use-module (gnu packages gawk))\n"
  11996. "\n"
  11997. msgstr ""
  11998. #. type: lisp
  11999. #: guix-git/doc/guix.texi:7005
  12000. #, no-wrap
  12001. msgid ""
  12002. "(define-public hello\n"
  12003. " (package\n"
  12004. " (name \"hello\")\n"
  12005. " (version \"2.10\")\n"
  12006. " (source (origin\n"
  12007. " (method url-fetch)\n"
  12008. " (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
  12009. " \".tar.gz\"))\n"
  12010. " (sha256\n"
  12011. " (base32\n"
  12012. " \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"))))\n"
  12013. " (build-system gnu-build-system)\n"
  12014. " (arguments '(#:configure-flags '(\"--enable-silent-rules\")))\n"
  12015. " (inputs (list gawk))\n"
  12016. " (synopsis \"Hello, GNU world: An example GNU package\")\n"
  12017. " (description \"Guess what GNU Hello prints!\")\n"
  12018. " (home-page \"https://www.gnu.org/software/hello/\")\n"
  12019. " (license gpl3+)))\n"
  12020. msgstr ""
  12021. #. type: Plain text
  12022. #: guix-git/doc/guix.texi:7015
  12023. 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\"}."
  12024. msgstr ""
  12025. #. type: Plain text
  12026. #: guix-git/doc/guix.texi:7019
  12027. 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})."
  12028. msgstr ""
  12029. #. type: Plain text
  12030. #: guix-git/doc/guix.texi:7025
  12031. 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})."
  12032. msgstr ""
  12033. #. type: Plain text
  12034. #: guix-git/doc/guix.texi:7027
  12035. msgid "There are a few points worth noting in the above package definition:"
  12036. msgstr ""
  12037. #. type: itemize
  12038. #: guix-git/doc/guix.texi:7034
  12039. 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."
  12040. msgstr ""
  12041. #. type: itemize
  12042. #: guix-git/doc/guix.texi:7037
  12043. msgid "The @code{mirror://gnu} prefix instructs @code{url-fetch} to use one of the GNU mirrors defined in @code{(guix download)}."
  12044. msgstr ""
  12045. #. type: itemize
  12046. #: guix-git/doc/guix.texi:7044
  12047. 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})."
  12048. msgstr ""
  12049. #. type: cindex
  12050. #: guix-git/doc/guix.texi:7045
  12051. #, no-wrap
  12052. msgid "patches"
  12053. msgstr ""
  12054. #. type: itemize
  12055. #: guix-git/doc/guix.texi:7049
  12056. 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."
  12057. msgstr ""
  12058. #. type: cindex
  12059. #: guix-git/doc/guix.texi:7051
  12060. #, no-wrap
  12061. msgid "GNU Build System"
  12062. msgstr ""
  12063. #. type: itemize
  12064. #: guix-git/doc/guix.texi:7057
  12065. 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."
  12066. msgstr ""
  12067. #. type: itemize
  12068. #: guix-git/doc/guix.texi:7061
  12069. 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."
  12070. msgstr ""
  12071. #. type: itemize
  12072. #: guix-git/doc/guix.texi:7067
  12073. 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."
  12074. msgstr ""
  12075. #. type: findex
  12076. #: guix-git/doc/guix.texi:7068 guix-git/doc/guix.texi:7071
  12077. #, no-wrap
  12078. msgid "quote"
  12079. msgstr ""
  12080. #. type: cindex
  12081. #: guix-git/doc/guix.texi:7069
  12082. #, no-wrap
  12083. msgid "quoting"
  12084. msgstr ""
  12085. #. type: findex
  12086. #: guix-git/doc/guix.texi:7070
  12087. #, no-wrap
  12088. msgid "'"
  12089. msgstr ""
  12090. #. type: cindex
  12091. #: guix-git/doc/guix.texi:7072
  12092. #, no-wrap
  12093. msgid "backquote (quasiquote)"
  12094. msgstr ""
  12095. #. type: findex
  12096. #: guix-git/doc/guix.texi:7073
  12097. #, no-wrap
  12098. msgid "`"
  12099. msgstr ""
  12100. #. type: findex
  12101. #: guix-git/doc/guix.texi:7074
  12102. #, no-wrap
  12103. msgid "quasiquote"
  12104. msgstr ""
  12105. #. type: cindex
  12106. #: guix-git/doc/guix.texi:7075
  12107. #, no-wrap
  12108. msgid "comma (unquote)"
  12109. msgstr ""
  12110. #. type: findex
  12111. #: guix-git/doc/guix.texi:7076
  12112. #, no-wrap
  12113. msgid ","
  12114. msgstr ""
  12115. #. type: findex
  12116. #: guix-git/doc/guix.texi:7077
  12117. #, no-wrap
  12118. msgid "unquote"
  12119. msgstr ""
  12120. #. type: itemize
  12121. #: guix-git/doc/guix.texi:7087
  12122. msgid "What about these quote (@code{'}) characters? They are Scheme syntax to introduce a literal list; @code{'} is synonymous with @code{quote}. Sometimes you'll also see @code{`} (a backquote, synonymous with @code{quasiquote}) and @code{,} (a comma, synonymous with @code{unquote}). @xref{Expression Syntax, quoting,, guile, GNU Guile Reference Manual}, for details. Here the value of the @code{arguments} field is a list of arguments passed to the build system down the road, as with @code{apply} (@pxref{Fly Evaluation, @code{apply},, guile, GNU Guile Reference Manual})."
  12123. msgstr ""
  12124. #. type: itemize
  12125. #: guix-git/doc/guix.texi:7093
  12126. 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})."
  12127. msgstr ""
  12128. #. type: itemize
  12129. #: guix-git/doc/guix.texi:7099
  12130. msgid "The @code{inputs} field specifies inputs to the build process---i.e., build-time or run-time dependencies of the package. Here, we add an input, a reference to the @code{gawk} variable; @code{gawk} is itself bound to a @code{<package>} object."
  12131. msgstr ""
  12132. #. type: itemize
  12133. #: guix-git/doc/guix.texi:7103
  12134. 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})."
  12135. msgstr ""
  12136. #. type: itemize
  12137. #: guix-git/doc/guix.texi:7107
  12138. 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."
  12139. msgstr ""
  12140. #. type: Plain text
  12141. #: guix-git/doc/guix.texi:7110
  12142. msgid "@xref{package Reference}, for a full description of possible fields."
  12143. msgstr ""
  12144. #. type: Plain text
  12145. #: guix-git/doc/guix.texi:7121
  12146. 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."
  12147. msgstr ""
  12148. #. type: vindex
  12149. #: guix-git/doc/guix.texi:7121
  12150. #, no-wrap
  12151. msgid "GUIX_PACKAGE_PATH"
  12152. msgstr ""
  12153. #. type: Plain text
  12154. #: guix-git/doc/guix.texi:7125
  12155. msgid "Lastly, @pxref{Channels}, for information on how to extend the distribution by adding your own package definitions in a ``channel''."
  12156. msgstr ""
  12157. #. type: Plain text
  12158. #: guix-git/doc/guix.texi:7129
  12159. 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})."
  12160. msgstr ""
  12161. #. type: Plain text
  12162. #: guix-git/doc/guix.texi:7135
  12163. 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})."
  12164. msgstr ""
  12165. #. type: deffn
  12166. #: guix-git/doc/guix.texi:7136
  12167. #, no-wrap
  12168. msgid "{Scheme Procedure} package-derivation @var{store} @var{package} [@var{system}]"
  12169. msgstr ""
  12170. #. type: deffn
  12171. #: guix-git/doc/guix.texi:7139
  12172. msgid "Return the @code{<derivation>} object of @var{package} for @var{system} (@pxref{Derivations})."
  12173. msgstr ""
  12174. #. type: deffn
  12175. #: guix-git/doc/guix.texi:7145
  12176. 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})."
  12177. msgstr ""
  12178. #. type: Plain text
  12179. #: guix-git/doc/guix.texi:7151
  12180. msgid "Similarly, it is possible to compute a derivation that cross-builds a package for some other system:"
  12181. msgstr ""
  12182. #. type: deffn
  12183. #: guix-git/doc/guix.texi:7152
  12184. #, no-wrap
  12185. msgid "{Scheme Procedure} package-cross-derivation @var{store} @"
  12186. msgstr ""
  12187. #. type: deffn
  12188. #: guix-git/doc/guix.texi:7156
  12189. msgid "@var{package} @var{target} [@var{system}] Return the @code{<derivation>} object of @var{package} cross-built from @var{system} to @var{target}."
  12190. msgstr ""
  12191. #. type: deffn
  12192. #: guix-git/doc/guix.texi:7160
  12193. 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})."
  12194. msgstr ""
  12195. #. type: Plain text
  12196. #: guix-git/doc/guix.texi:7164
  12197. msgid "Once you have package definitions, you can easily define @emph{variants} of those packages. @xref{Defining Package Variants}, for more on that."
  12198. msgstr ""
  12199. #. type: subsection
  12200. #: guix-git/doc/guix.texi:7172
  12201. #, no-wrap
  12202. msgid "@code{package} Reference"
  12203. msgstr ""
  12204. #. type: Plain text
  12205. #: guix-git/doc/guix.texi:7176
  12206. msgid "This section summarizes all the options available in @code{package} declarations (@pxref{Defining Packages})."
  12207. msgstr ""
  12208. #. type: deftp
  12209. #: guix-git/doc/guix.texi:7177
  12210. #, no-wrap
  12211. msgid "{Data Type} package"
  12212. msgstr ""
  12213. #. type: deftp
  12214. #: guix-git/doc/guix.texi:7179
  12215. msgid "This is the data type representing a package recipe."
  12216. msgstr ""
  12217. #. type: table
  12218. #: guix-git/doc/guix.texi:7183
  12219. msgid "The name of the package, as a string."
  12220. msgstr ""
  12221. #. type: code{#1}
  12222. #: guix-git/doc/guix.texi:7184
  12223. #, no-wrap
  12224. msgid "version"
  12225. msgstr ""
  12226. #. type: table
  12227. #: guix-git/doc/guix.texi:7187
  12228. msgid "The version of the package, as a string. @xref{Version Numbers}, for guidelines."
  12229. msgstr ""
  12230. #. type: code{#1}
  12231. #: guix-git/doc/guix.texi:7188 guix-git/doc/guix.texi:13363
  12232. #: guix-git/doc/guix.texi:15644 guix-git/doc/guix.texi:16270
  12233. #, no-wrap
  12234. msgid "source"
  12235. msgstr ""
  12236. #. type: table
  12237. #: guix-git/doc/guix.texi:7195
  12238. 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}})."
  12239. msgstr ""
  12240. #. type: code{#1}
  12241. #: guix-git/doc/guix.texi:7196
  12242. #, no-wrap
  12243. msgid "build-system"
  12244. msgstr ""
  12245. #. type: table
  12246. #: guix-git/doc/guix.texi:7199
  12247. msgid "The build system that should be used to build the package (@pxref{Build Systems})."
  12248. msgstr ""
  12249. #. type: item
  12250. #: guix-git/doc/guix.texi:7200 guix-git/doc/guix.texi:18454
  12251. #, no-wrap
  12252. msgid "@code{arguments} (default: @code{'()})"
  12253. msgstr ""
  12254. #. type: table
  12255. #: guix-git/doc/guix.texi:7203
  12256. msgid "The arguments that should be passed to the build system. This is a list, typically containing sequential keyword-value pairs."
  12257. msgstr ""
  12258. #. type: item
  12259. #: guix-git/doc/guix.texi:7204
  12260. #, no-wrap
  12261. msgid "@code{inputs} (default: @code{'()})"
  12262. msgstr ""
  12263. #. type: itemx
  12264. #: guix-git/doc/guix.texi:7205
  12265. #, no-wrap
  12266. msgid "@code{native-inputs} (default: @code{'()})"
  12267. msgstr ""
  12268. #. type: itemx
  12269. #: guix-git/doc/guix.texi:7206
  12270. #, no-wrap
  12271. msgid "@code{propagated-inputs} (default: @code{'()})"
  12272. msgstr ""
  12273. #. type: cindex
  12274. #: guix-git/doc/guix.texi:7207
  12275. #, no-wrap
  12276. msgid "inputs, of packages"
  12277. msgstr ""
  12278. #. type: table
  12279. #: guix-git/doc/guix.texi:7214
  12280. msgid "These fields list dependencies of the package. Each element of these lists is either a package, origin, or other ``file-like object'' (@pxref{G-Expressions}); to specify the output of that file-like object that should be used, pass a two-element list where the second element is the output (@pxref{Packages with Multiple Outputs}, for more on package outputs). For example, the list below specifies three inputs:"
  12281. msgstr ""
  12282. #. type: lisp
  12283. #: guix-git/doc/guix.texi:7218
  12284. #, no-wrap
  12285. msgid ""
  12286. "(list libffi libunistring\n"
  12287. " `(,glib \"bin\")) ;the \"bin\" output of GLib\n"
  12288. msgstr ""
  12289. #. type: table
  12290. #: guix-git/doc/guix.texi:7222
  12291. msgid "In the example above, the @code{\"out\"} output of @code{libffi} and @code{libunistring} is used."
  12292. msgstr ""
  12293. #. type: quotation
  12294. #: guix-git/doc/guix.texi:7223
  12295. #, fuzzy, no-wrap
  12296. #| msgid "Nix, compatibility"
  12297. msgid "Compatibility Note"
  12298. msgstr "Nix,兼容性"
  12299. #. type: quotation
  12300. #: guix-git/doc/guix.texi:7230
  12301. msgid "Until version 1.3.0, input lists were a list of tuples, where each tuple has a label for the input (a string) as its first element, a package, origin, or derivation as its second element, and optionally the name of the output thereof that should be used, which defaults to @code{\"out\"}. For example, the list below is equivalent to the one above, but using the @dfn{old input style}:"
  12302. msgstr ""
  12303. #. type: lisp
  12304. #: guix-git/doc/guix.texi:7236
  12305. #, no-wrap
  12306. msgid ""
  12307. ";; Old input style (deprecated).\n"
  12308. "`((\"libffi\" ,libffi)\n"
  12309. " (\"libunistring\" ,libunistring)\n"
  12310. " (\"glib:bin\" ,glib \"bin\")) ;the \"bin\" output of GLib\n"
  12311. msgstr ""
  12312. #. type: quotation
  12313. #: guix-git/doc/guix.texi:7242
  12314. msgid "This style is now deprecated; it is still supported but support will be removed in a future version. It should not be used for new package definitions. @xref{Invoking guix style}, on how to migrate to the new style."
  12315. msgstr ""
  12316. #. type: cindex
  12317. #: guix-git/doc/guix.texi:7244
  12318. #, no-wrap
  12319. msgid "cross compilation, package dependencies"
  12320. msgstr ""
  12321. #. type: table
  12322. #: guix-git/doc/guix.texi:7250
  12323. 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."
  12324. msgstr ""
  12325. #. type: table
  12326. #: guix-git/doc/guix.texi:7255
  12327. 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})."
  12328. msgstr ""
  12329. #. type: anchor{#1}
  12330. #: guix-git/doc/guix.texi:7263
  12331. msgid "package-propagated-inputs"
  12332. msgstr ""
  12333. #. type: table
  12334. #: guix-git/doc/guix.texi:7263
  12335. 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)."
  12336. msgstr ""
  12337. #. type: table
  12338. #: guix-git/doc/guix.texi:7267
  12339. 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."
  12340. msgstr ""
  12341. #. type: table
  12342. #: guix-git/doc/guix.texi:7274
  12343. 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}."
  12344. msgstr ""
  12345. #. type: item
  12346. #: guix-git/doc/guix.texi:7275
  12347. #, no-wrap
  12348. msgid "@code{outputs} (default: @code{'(\"out\")})"
  12349. msgstr ""
  12350. #. type: table
  12351. #: guix-git/doc/guix.texi:7278
  12352. msgid "The list of output names of the package. @xref{Packages with Multiple Outputs}, for typical uses of additional outputs."
  12353. msgstr ""
  12354. #. type: item
  12355. #: guix-git/doc/guix.texi:7279
  12356. #, no-wrap
  12357. msgid "@code{native-search-paths} (default: @code{'()})"
  12358. msgstr ""
  12359. #. type: itemx
  12360. #: guix-git/doc/guix.texi:7280
  12361. #, no-wrap
  12362. msgid "@code{search-paths} (default: @code{'()})"
  12363. msgstr ""
  12364. #. type: table
  12365. #: guix-git/doc/guix.texi:7284
  12366. msgid "A list of @code{search-path-specification} objects describing search-path environment variables honored by the package. @xref{Search Paths}, for more on search path specifications."
  12367. msgstr ""
  12368. #. type: table
  12369. #: guix-git/doc/guix.texi:7290
  12370. msgid "As for inputs, the distinction between @code{native-search-paths} and @code{search-paths} only matters when cross-compiling. In a cross-compilation context, @code{native-search-paths} applies exclusively to native inputs whereas @code{search-paths} applies only to host inputs."
  12371. msgstr ""
  12372. #. type: table
  12373. #: guix-git/doc/guix.texi:7297
  12374. msgid "Packages such as cross-compilers care about target inputs---for instance, our (modified) GCC cross-compiler has @env{CROSS_C_INCLUDE_PATH} in @code{search-paths}, which allows it to pick @file{.h} files for the target system and @emph{not} those of native inputs. For the majority of packages though, only @code{native-search-paths} makes sense."
  12375. msgstr ""
  12376. #. type: item
  12377. #: guix-git/doc/guix.texi:7298
  12378. #, no-wrap
  12379. msgid "@code{replacement} (default: @code{#f})"
  12380. msgstr ""
  12381. #. type: table
  12382. #: guix-git/doc/guix.texi:7302
  12383. 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."
  12384. msgstr ""
  12385. #. type: item
  12386. #: guix-git/doc/guix.texi:7303 guix-git/doc/guix.texi:13355
  12387. #, no-wrap
  12388. msgid "synopsis"
  12389. msgstr ""
  12390. #. type: table
  12391. #: guix-git/doc/guix.texi:7305
  12392. msgid "A one-line description of the package."
  12393. msgstr ""
  12394. #. type: code{#1}
  12395. #: guix-git/doc/guix.texi:7306 guix-git/doc/guix.texi:13356
  12396. #: guix-git/doc/guix.texi:37054 guix-git/doc/guix.texi:37214
  12397. #, no-wrap
  12398. msgid "description"
  12399. msgstr ""
  12400. #. type: table
  12401. #: guix-git/doc/guix.texi:7308
  12402. msgid "A more elaborate description of the package."
  12403. msgstr ""
  12404. #. type: code{#1}
  12405. #: guix-git/doc/guix.texi:7309
  12406. #, no-wrap
  12407. msgid "license"
  12408. msgstr ""
  12409. #. type: cindex
  12410. #: guix-git/doc/guix.texi:7310
  12411. #, no-wrap
  12412. msgid "license, of packages"
  12413. msgstr ""
  12414. #. type: table
  12415. #: guix-git/doc/guix.texi:7313
  12416. msgid "The license of the package; a value from @code{(guix licenses)}, or a list of such values."
  12417. msgstr ""
  12418. #. type: itemx
  12419. #: guix-git/doc/guix.texi:7314 guix-git/doc/guix.texi:13364
  12420. #, no-wrap
  12421. msgid "home-page"
  12422. msgstr ""
  12423. #. type: table
  12424. #: guix-git/doc/guix.texi:7316
  12425. msgid "The URL to the home-page of the package, as a string."
  12426. msgstr ""
  12427. #. type: item
  12428. #: guix-git/doc/guix.texi:7317
  12429. #, fuzzy, no-wrap
  12430. msgid "@code{supported-systems} (default: @code{%supported-systems})"
  12431. msgstr "@code{port}(默认值:@code{22})"
  12432. #. type: table
  12433. #: guix-git/doc/guix.texi:7320
  12434. msgid "The list of systems supported by the package, as strings of the form @code{architecture-kernel}, for example @code{\"x86_64-linux\"}."
  12435. msgstr ""
  12436. #. type: item
  12437. #: guix-git/doc/guix.texi:7321
  12438. #, no-wrap
  12439. msgid "@code{location} (default: source location of the @code{package} form)"
  12440. msgstr ""
  12441. #. type: table
  12442. #: guix-git/doc/guix.texi:7325
  12443. 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."
  12444. msgstr ""
  12445. #. type: deffn
  12446. #: guix-git/doc/guix.texi:7328
  12447. #, no-wrap
  12448. msgid "{Scheme Syntax} this-package"
  12449. msgstr ""
  12450. #. type: deffn
  12451. #: guix-git/doc/guix.texi:7331
  12452. msgid "When used in the @emph{lexical scope} of a package field definition, this identifier resolves to the package being defined."
  12453. msgstr ""
  12454. #. type: deffn
  12455. #: guix-git/doc/guix.texi:7334
  12456. msgid "The example below shows how to add a package as a native input of itself when cross-compiling:"
  12457. msgstr ""
  12458. #. type: lisp
  12459. #: guix-git/doc/guix.texi:7339
  12460. #, no-wrap
  12461. msgid ""
  12462. "(package\n"
  12463. " (name \"guile\")\n"
  12464. " ;; ...\n"
  12465. "\n"
  12466. msgstr ""
  12467. #. type: lisp
  12468. #: guix-git/doc/guix.texi:7345
  12469. #, no-wrap
  12470. msgid ""
  12471. " ;; When cross-compiled, Guile, for example, depends on\n"
  12472. " ;; a native version of itself. Add it here.\n"
  12473. " (native-inputs (if (%current-target-system)\n"
  12474. " (list this-package)\n"
  12475. " '())))\n"
  12476. msgstr ""
  12477. #. type: deffn
  12478. #: guix-git/doc/guix.texi:7348
  12479. msgid "It is an error to refer to @code{this-package} outside a package definition."
  12480. msgstr ""
  12481. #. type: Plain text
  12482. #: guix-git/doc/guix.texi:7352
  12483. msgid "The following helper procedures are provided to help deal with package inputs."
  12484. msgstr ""
  12485. #. type: deffn
  12486. #: guix-git/doc/guix.texi:7353
  12487. #, no-wrap
  12488. msgid "{Scheme Procedure} lookup-package-input @var{package} @var{name}"
  12489. msgstr ""
  12490. #. type: deffnx
  12491. #: guix-git/doc/guix.texi:7354
  12492. #, no-wrap
  12493. msgid "{Scheme Procedure} lookup-package-native-input @var{package} @var{name}"
  12494. msgstr ""
  12495. #. type: deffnx
  12496. #: guix-git/doc/guix.texi:7355
  12497. #, no-wrap
  12498. msgid "{Scheme Procedure} lookup-package-propagated-input @var{package} @var{name}"
  12499. msgstr ""
  12500. #. type: deffnx
  12501. #: guix-git/doc/guix.texi:7356
  12502. #, no-wrap
  12503. msgid "{Scheme Procedure} lookup-package-direct-input @var{package} @var{name}"
  12504. msgstr ""
  12505. #. type: deffn
  12506. #: guix-git/doc/guix.texi:7359
  12507. msgid "Look up @var{name} among @var{package}'s inputs (or native, propagated, or direct inputs). Return it if found, @code{#f} otherwise."
  12508. msgstr ""
  12509. #. type: deffn
  12510. #: guix-git/doc/guix.texi:7362
  12511. msgid "@var{name} is the name of a package depended on. Here's how you might use it:"
  12512. msgstr ""
  12513. #. type: lisp
  12514. #: guix-git/doc/guix.texi:7365
  12515. #, no-wrap
  12516. msgid ""
  12517. "(use-modules (guix packages) (gnu packages base))\n"
  12518. "\n"
  12519. msgstr ""
  12520. #. type: lisp
  12521. #: guix-git/doc/guix.texi:7368
  12522. #, no-wrap
  12523. msgid ""
  12524. "(lookup-package-direct-input coreutils \"gmp\")\n"
  12525. "@result{} #<package gmp@@6.2.1 @dots{}>\n"
  12526. msgstr ""
  12527. #. type: deffn
  12528. #: guix-git/doc/guix.texi:7372
  12529. msgid "In this example we obtain the @code{gmp} package that is among the direct inputs of @code{coreutils}."
  12530. msgstr ""
  12531. #. type: cindex
  12532. #: guix-git/doc/guix.texi:7374
  12533. #, fuzzy, no-wrap
  12534. msgid "development inputs, of a package"
  12535. msgstr "创建软件包的变体。"
  12536. #. type: cindex
  12537. #: guix-git/doc/guix.texi:7375
  12538. #, fuzzy, no-wrap
  12539. #| msgid "inputs, for Python packages"
  12540. msgid "implicit inputs, of a package"
  12541. msgstr "Python软件包的输入"
  12542. #. type: Plain text
  12543. #: guix-git/doc/guix.texi:7380
  12544. 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."
  12545. msgstr ""
  12546. #. type: deffn
  12547. #: guix-git/doc/guix.texi:7381
  12548. #, no-wrap
  12549. msgid "{Scheme Procedure} package-development-inputs @var{package} @"
  12550. msgstr ""
  12551. #. type: deffn
  12552. #: guix-git/doc/guix.texi:7388
  12553. 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\"}."
  12554. msgstr ""
  12555. #. type: deffn
  12556. #: guix-git/doc/guix.texi:7392
  12557. 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:"
  12558. msgstr ""
  12559. #. type: lisp
  12560. #: guix-git/doc/guix.texi:7395
  12561. #, no-wrap
  12562. msgid ""
  12563. "(use-modules (gnu packages base) (guix packages))\n"
  12564. "\n"
  12565. msgstr ""
  12566. #. type: lisp
  12567. #: guix-git/doc/guix.texi:7398
  12568. #, no-wrap
  12569. msgid ""
  12570. "hello\n"
  12571. "@result{} #<package hello@@2.10 gnu/packages/base.scm:79 7f585d4f6790>\n"
  12572. "\n"
  12573. msgstr ""
  12574. #. type: lisp
  12575. #: guix-git/doc/guix.texi:7401
  12576. #, no-wrap
  12577. msgid ""
  12578. "(package-direct-inputs hello)\n"
  12579. "@result{} ()\n"
  12580. "\n"
  12581. msgstr ""
  12582. #. type: lisp
  12583. #: guix-git/doc/guix.texi:7404
  12584. #, no-wrap
  12585. msgid ""
  12586. "(package-development-inputs hello)\n"
  12587. "@result{} ((\"source\" @dots{}) (\"tar\" #<package tar@@1.32 @dots{}>) @dots{})\n"
  12588. msgstr ""
  12589. #. type: deffn
  12590. #: guix-git/doc/guix.texi:7413
  12591. 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})."
  12592. msgstr ""
  12593. #. type: Plain text
  12594. #: guix-git/doc/guix.texi:7419
  12595. 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."
  12596. msgstr ""
  12597. #. type: cindex
  12598. #: guix-git/doc/guix.texi:7420
  12599. #, no-wrap
  12600. msgid "tool chain, choosing a package's tool chain"
  12601. msgstr ""
  12602. #. type: deffn
  12603. #: guix-git/doc/guix.texi:7421
  12604. #, no-wrap
  12605. msgid "{Scheme Procedure} package-with-c-toolchain @var{package} @var{toolchain}"
  12606. msgstr ""
  12607. #. type: deffn
  12608. #: guix-git/doc/guix.texi:7426
  12609. 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."
  12610. msgstr ""
  12611. #. type: deffn
  12612. #: guix-git/doc/guix.texi:7430
  12613. 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:"
  12614. msgstr ""
  12615. #. type: lisp
  12616. #: guix-git/doc/guix.texi:7434
  12617. #, no-wrap
  12618. msgid ""
  12619. "(let ((toolchain (specification->package \"gcc-toolchain@@10\")))\n"
  12620. " (package-with-c-toolchain hello `((\"toolchain\" ,toolchain))))\n"
  12621. msgstr ""
  12622. #. type: deffn
  12623. #: guix-git/doc/guix.texi:7442
  12624. 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."
  12625. msgstr ""
  12626. #. type: subsection
  12627. #: guix-git/doc/guix.texi:7445
  12628. #, no-wrap
  12629. msgid "@code{origin} Reference"
  12630. msgstr ""
  12631. #. type: Plain text
  12632. #: guix-git/doc/guix.texi:7453
  12633. 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."
  12634. msgstr ""
  12635. #. type: deftp
  12636. #: guix-git/doc/guix.texi:7454
  12637. #, no-wrap
  12638. msgid "{Data Type} origin"
  12639. msgstr ""
  12640. #. type: deftp
  12641. #: guix-git/doc/guix.texi:7456
  12642. msgid "This is the data type representing a source code origin."
  12643. msgstr ""
  12644. #. type: code{#1}
  12645. #: guix-git/doc/guix.texi:7458 guix-git/doc/guix.texi:27448
  12646. #, no-wrap
  12647. msgid "uri"
  12648. msgstr ""
  12649. #. type: table
  12650. #: guix-git/doc/guix.texi:7463
  12651. 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."
  12652. msgstr ""
  12653. #. type: cindex
  12654. #: guix-git/doc/guix.texi:7464
  12655. #, no-wrap
  12656. msgid "fixed-output derivations, for download"
  12657. msgstr ""
  12658. #. type: code{#1}
  12659. #: guix-git/doc/guix.texi:7465
  12660. #, no-wrap
  12661. msgid "method"
  12662. msgstr ""
  12663. #. type: table
  12664. #: guix-git/doc/guix.texi:7472
  12665. 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})."
  12666. msgstr ""
  12667. #. type: table
  12668. #: guix-git/doc/guix.texi:7476
  12669. 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)."
  12670. msgstr ""
  12671. #. type: code{#1}
  12672. #: guix-git/doc/guix.texi:7477
  12673. #, no-wrap
  12674. msgid "sha256"
  12675. msgstr ""
  12676. #. type: table
  12677. #: guix-git/doc/guix.texi:7481
  12678. 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."
  12679. msgstr ""
  12680. #. type: code{#1}
  12681. #: guix-git/doc/guix.texi:7482
  12682. #, no-wrap
  12683. msgid "hash"
  12684. msgstr ""
  12685. #. type: table
  12686. #: guix-git/doc/guix.texi:7485
  12687. msgid "The @code{content-hash} object of the source---see below for how to use @code{content-hash}."
  12688. msgstr ""
  12689. #. type: table
  12690. #: guix-git/doc/guix.texi:7489
  12691. msgid "You can obtain this information using @code{guix download} (@pxref{Invoking guix download}) or @code{guix hash} (@pxref{Invoking guix hash})."
  12692. msgstr ""
  12693. #. type: item
  12694. #: guix-git/doc/guix.texi:7490
  12695. #, no-wrap
  12696. msgid "@code{file-name} (default: @code{#f})"
  12697. msgstr ""
  12698. #. type: table
  12699. #: guix-git/doc/guix.texi:7496
  12700. 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."
  12701. msgstr ""
  12702. #. type: item
  12703. #: guix-git/doc/guix.texi:7497
  12704. #, no-wrap
  12705. msgid "@code{patches} (default: @code{'()})"
  12706. msgstr ""
  12707. #. type: table
  12708. #: guix-git/doc/guix.texi:7500
  12709. 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."
  12710. msgstr ""
  12711. #. type: table
  12712. #: guix-git/doc/guix.texi:7504
  12713. 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}."
  12714. msgstr ""
  12715. #. type: item
  12716. #: guix-git/doc/guix.texi:7505
  12717. #, no-wrap
  12718. msgid "@code{snippet} (default: @code{#f})"
  12719. msgstr ""
  12720. #. type: table
  12721. #: guix-git/doc/guix.texi:7509
  12722. 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."
  12723. msgstr ""
  12724. #. type: item
  12725. #: guix-git/doc/guix.texi:7510
  12726. #, no-wrap
  12727. msgid "@code{patch-flags} (default: @code{'(\"-p1\")})"
  12728. msgstr ""
  12729. #. type: table
  12730. #: guix-git/doc/guix.texi:7513
  12731. msgid "A list of command-line flags that should be passed to the @code{patch} command."
  12732. msgstr ""
  12733. #. type: item
  12734. #: guix-git/doc/guix.texi:7514
  12735. #, no-wrap
  12736. msgid "@code{patch-inputs} (default: @code{#f})"
  12737. msgstr ""
  12738. #. type: table
  12739. #: guix-git/doc/guix.texi:7518
  12740. 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."
  12741. msgstr ""
  12742. #. type: item
  12743. #: guix-git/doc/guix.texi:7519 guix-git/doc/guix.texi:27320
  12744. #, no-wrap
  12745. msgid "@code{modules} (default: @code{'()})"
  12746. msgstr ""
  12747. #. type: table
  12748. #: guix-git/doc/guix.texi:7522
  12749. msgid "A list of Guile modules that should be loaded during the patching process and while running the code in the @code{snippet} field."
  12750. msgstr ""
  12751. #. type: item
  12752. #: guix-git/doc/guix.texi:7523
  12753. #, no-wrap
  12754. msgid "@code{patch-guile} (default: @code{#f})"
  12755. msgstr ""
  12756. #. type: table
  12757. #: guix-git/doc/guix.texi:7526
  12758. msgid "The Guile package that should be used in the patching process. When this is @code{#f}, a sensible default is used."
  12759. msgstr ""
  12760. #. type: deftp
  12761. #: guix-git/doc/guix.texi:7529
  12762. #, no-wrap
  12763. msgid "{Data Type} content-hash @var{value} [@var{algorithm}]"
  12764. msgstr ""
  12765. #. type: deftp
  12766. #: guix-git/doc/guix.texi:7533
  12767. 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}."
  12768. msgstr ""
  12769. #. type: deftp
  12770. #: guix-git/doc/guix.texi:7536
  12771. msgid "@var{value} can be a literal string, in which case it is base32-decoded, or it can be a bytevector."
  12772. msgstr ""
  12773. #. type: deftp
  12774. #: guix-git/doc/guix.texi:7538
  12775. #, fuzzy
  12776. msgid "The following forms are all equivalent:"
  12777. msgstr "这些依赖是可选的:"
  12778. #. type: lisp
  12779. #: guix-git/doc/guix.texi:7547
  12780. #, no-wrap
  12781. msgid ""
  12782. "(content-hash \"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj\")\n"
  12783. "(content-hash \"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj\"\n"
  12784. " sha256)\n"
  12785. "(content-hash (base32\n"
  12786. " \"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj\"))\n"
  12787. "(content-hash (base64 \"kkb+RPaP7uyMZmu4eXPVkM4BN8yhRd8BTHLslb6f/Rc=\")\n"
  12788. " sha256)\n"
  12789. msgstr ""
  12790. #. type: deftp
  12791. #: guix-git/doc/guix.texi:7552
  12792. 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}."
  12793. msgstr ""
  12794. #. type: Plain text
  12795. #: guix-git/doc/guix.texi:7558
  12796. 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."
  12797. msgstr ""
  12798. #. type: deffn
  12799. #: guix-git/doc/guix.texi:7559
  12800. #, no-wrap
  12801. msgid "{Scheme Procedure} url-fetch @var{url} @var{hash-algo} @var{hash} @"
  12802. msgstr ""
  12803. #. type: deffn
  12804. #: guix-git/doc/guix.texi:7567
  12805. 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."
  12806. msgstr ""
  12807. #. type: deffn
  12808. #: guix-git/doc/guix.texi:7570
  12809. 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}."
  12810. msgstr ""
  12811. #. type: deffn
  12812. #: guix-git/doc/guix.texi:7573
  12813. msgid "Alternatively, when URL starts with @code{file://}, return the corresponding file name in the store."
  12814. msgstr ""
  12815. #. type: Plain text
  12816. #: guix-git/doc/guix.texi:7579
  12817. 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."
  12818. msgstr ""
  12819. #. type: deffn
  12820. #: guix-git/doc/guix.texi:7580
  12821. #, no-wrap
  12822. msgid "{Scheme Procedure} git-fetch @var{ref} @var{hash-algo} @var{hash}"
  12823. msgstr ""
  12824. #. type: deffn
  12825. #: guix-git/doc/guix.texi:7585
  12826. 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}."
  12827. msgstr ""
  12828. #. type: deftp
  12829. #: guix-git/doc/guix.texi:7587
  12830. #, fuzzy, no-wrap
  12831. msgid "{Data Type} git-reference"
  12832. msgstr "{数据类型} build-machine"
  12833. #. type: deftp
  12834. #: guix-git/doc/guix.texi:7590
  12835. msgid "This data type represents a Git reference for @code{git-fetch} to retrieve."
  12836. msgstr ""
  12837. #. type: code{#1}
  12838. #: guix-git/doc/guix.texi:7592 guix-git/doc/guix.texi:25171
  12839. #, no-wrap
  12840. msgid "url"
  12841. msgstr ""
  12842. #. type: table
  12843. #: guix-git/doc/guix.texi:7594
  12844. msgid "The URL of the Git repository to clone."
  12845. msgstr ""
  12846. #. type: code{#1}
  12847. #: guix-git/doc/guix.texi:7595
  12848. #, no-wrap
  12849. msgid "commit"
  12850. msgstr ""
  12851. #. type: table
  12852. #: guix-git/doc/guix.texi:7600
  12853. 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}."
  12854. msgstr ""
  12855. #. type: item
  12856. #: guix-git/doc/guix.texi:7601
  12857. #, fuzzy, no-wrap
  12858. msgid "@code{recursive?} (default: @code{#f})"
  12859. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  12860. #. type: table
  12861. #: guix-git/doc/guix.texi:7603
  12862. msgid "This Boolean indicates whether to recursively fetch Git sub-modules."
  12863. msgstr ""
  12864. #. type: deftp
  12865. #: guix-git/doc/guix.texi:7607
  12866. msgid "The example below denotes the @code{v2.10} tag of the GNU@tie{}Hello repository:"
  12867. msgstr ""
  12868. #. type: lisp
  12869. #: guix-git/doc/guix.texi:7612
  12870. #, fuzzy, no-wrap
  12871. msgid ""
  12872. "(git-reference\n"
  12873. " (url \"https://git.savannah.gnu.org/git/hello.git\")\n"
  12874. " (commit \"v2.10\"))\n"
  12875. msgstr "git clone https://git.savannah.gnu.org/git/guix.git\n"
  12876. #. type: deftp
  12877. #: guix-git/doc/guix.texi:7616
  12878. msgid "This is equivalent to the reference below, which explicitly names the commit:"
  12879. msgstr ""
  12880. #. type: lisp
  12881. #: guix-git/doc/guix.texi:7621
  12882. #, no-wrap
  12883. msgid ""
  12884. "(git-reference\n"
  12885. " (url \"https://git.savannah.gnu.org/git/hello.git\")\n"
  12886. " (commit \"dc7dc56a00e48fe6f231a58f6537139fe2908fb9\"))\n"
  12887. msgstr ""
  12888. #. type: Plain text
  12889. #: guix-git/doc/guix.texi:7627
  12890. 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."
  12891. msgstr ""
  12892. #. type: deffn
  12893. #: guix-git/doc/guix.texi:7628
  12894. #, no-wrap
  12895. msgid "{Scheme Procedure} hg-fetch @var{ref} @var{hash-algo} @var{hash} @"
  12896. msgstr ""
  12897. #. type: deffn
  12898. #: guix-git/doc/guix.texi:7634
  12899. 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}."
  12900. msgstr ""
  12901. #. type: cindex
  12902. #: guix-git/doc/guix.texi:7639
  12903. #, fuzzy, no-wrap
  12904. msgid "customizing packages"
  12905. msgstr "定制软件包"
  12906. #. type: cindex
  12907. #: guix-git/doc/guix.texi:7640
  12908. #, fuzzy, no-wrap
  12909. msgid "variants, of packages"
  12910. msgstr "创建软件包的变体。"
  12911. #. type: Plain text
  12912. #: guix-git/doc/guix.texi:7650
  12913. 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!"
  12914. msgstr ""
  12915. #. type: cindex
  12916. #: guix-git/doc/guix.texi:7651
  12917. #, fuzzy, no-wrap
  12918. msgid "inherit, for package definitions"
  12919. msgstr "从软件包定义里寻找错误。"
  12920. #. type: Plain text
  12921. #: guix-git/doc/guix.texi:7658
  12922. 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."
  12923. msgstr ""
  12924. #. type: Plain text
  12925. #: guix-git/doc/guix.texi:7663
  12926. 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!):"
  12927. msgstr ""
  12928. #. type: lisp
  12929. #: guix-git/doc/guix.texi:7666
  12930. #, no-wrap
  12931. msgid ""
  12932. "(use-modules (gnu packages base)) ;for 'hello'\n"
  12933. "\n"
  12934. msgstr ""
  12935. #. type: lisp
  12936. #: guix-git/doc/guix.texi:7678
  12937. #, no-wrap
  12938. msgid ""
  12939. "(define hello-2.2\n"
  12940. " (package\n"
  12941. " (inherit hello)\n"
  12942. " (version \"2.2\")\n"
  12943. " (source (origin\n"
  12944. " (method url-fetch)\n"
  12945. " (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
  12946. " \".tar.gz\"))\n"
  12947. " (sha256\n"
  12948. " (base32\n"
  12949. " \"0lappv4slgb5spyqbh6yl5r013zv72yqg2pcl30mginf3wdqd8k9\"))))))\n"
  12950. msgstr ""
  12951. #. type: Plain text
  12952. #: guix-git/doc/guix.texi:7687
  12953. 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."
  12954. msgstr ""
  12955. #. type: Plain text
  12956. #: guix-git/doc/guix.texi:7693
  12957. 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:"
  12958. msgstr ""
  12959. #. type: lisp
  12960. #: guix-git/doc/guix.texi:7696
  12961. #, no-wrap
  12962. msgid ""
  12963. "(use-modules (gnu packages gdb)) ;for 'gdb'\n"
  12964. "\n"
  12965. msgstr ""
  12966. #. type: lisp
  12967. #: guix-git/doc/guix.texi:7702
  12968. #, no-wrap
  12969. msgid ""
  12970. "(define gdb-sans-guile\n"
  12971. " (package\n"
  12972. " (inherit gdb)\n"
  12973. " (inputs (modify-inputs (package-inputs gdb)\n"
  12974. " (delete \"guile\")))))\n"
  12975. msgstr ""
  12976. #. type: Plain text
  12977. #: guix-git/doc/guix.texi:7708
  12978. msgid "The @code{modify-inputs} form above removes the @code{\"guile\"} package from the @code{inputs} field of @code{gdb}. The @code{modify-inputs} macro is a helper that can prove useful anytime you want to remove, add, or replace package inputs."
  12979. msgstr ""
  12980. #. type: deffn
  12981. #: guix-git/doc/guix.texi:7709
  12982. #, no-wrap
  12983. msgid "{Scheme Syntax} modify-inputs @var{inputs} @var{clauses}"
  12984. msgstr ""
  12985. #. type: deffn
  12986. #: guix-git/doc/guix.texi:7713
  12987. msgid "Modify the given package inputs, as returned by @code{package-inputs} & co., according to the given clauses. Each clause must have one of the following forms:"
  12988. msgstr ""
  12989. #. type: item
  12990. #: guix-git/doc/guix.texi:7715
  12991. #, fuzzy, no-wrap
  12992. msgid "(delete @var{name}@dots{})"
  12993. msgstr "--log-compression=@var{type}"
  12994. #. type: table
  12995. #: guix-git/doc/guix.texi:7717
  12996. msgid "Delete from the inputs packages with the given @var{name}s (strings)."
  12997. msgstr ""
  12998. #. type: item
  12999. #: guix-git/doc/guix.texi:7718
  13000. #, fuzzy, no-wrap
  13001. msgid "(append @var{package}@dots{})"
  13002. msgstr "guix install emacs-guix\n"
  13003. #. type: table
  13004. #: guix-git/doc/guix.texi:7720
  13005. msgid "Add @var{package}s to the end of the input list."
  13006. msgstr ""
  13007. #. type: item
  13008. #: guix-git/doc/guix.texi:7721
  13009. #, fuzzy, no-wrap
  13010. msgid "(prepend @var{package}@dots{})"
  13011. msgstr "guix install emacs-guix\n"
  13012. #. type: table
  13013. #: guix-git/doc/guix.texi:7723
  13014. msgid "Add @var{package}s to the front of the input list."
  13015. msgstr ""
  13016. #. type: deffn
  13017. #: guix-git/doc/guix.texi:7727
  13018. msgid "The example below removes the GMP and ACL inputs of Coreutils and adds libcap to the back of the input list:"
  13019. msgstr ""
  13020. #. type: lisp
  13021. #: guix-git/doc/guix.texi:7732
  13022. #, no-wrap
  13023. msgid ""
  13024. "(modify-inputs (package-inputs coreutils)\n"
  13025. " (delete \"gmp\" \"acl\")\n"
  13026. " (append libcap))\n"
  13027. msgstr ""
  13028. #. type: deffn
  13029. #: guix-git/doc/guix.texi:7736
  13030. msgid "The example below replaces the @code{guile} package from the inputs of @code{guile-redis} with @code{guile-2.2}:"
  13031. msgstr ""
  13032. #. type: lisp
  13033. #: guix-git/doc/guix.texi:7740
  13034. #, no-wrap
  13035. msgid ""
  13036. "(modify-inputs (package-inputs guile-redis)\n"
  13037. " (replace \"guile\" guile-2.2))\n"
  13038. msgstr ""
  13039. #. type: deffn
  13040. #: guix-git/doc/guix.texi:7744
  13041. msgid "The last type of clause is @code{prepend}, to add inputs to the front of the list."
  13042. msgstr ""
  13043. #. type: Plain text
  13044. #: guix-git/doc/guix.texi:7753
  13045. 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:"
  13046. msgstr ""
  13047. #. type: lisp
  13048. #: guix-git/doc/guix.texi:7763
  13049. #, no-wrap
  13050. msgid ""
  13051. "(define (make-lua-socket name lua)\n"
  13052. " ;; Return a luasocket package built with LUA.\n"
  13053. " (package\n"
  13054. " (name name)\n"
  13055. " (version \"3.0\")\n"
  13056. " ;; several fields omitted\n"
  13057. " (inputs (list lua))\n"
  13058. " (synopsis \"Socket library for Lua\")))\n"
  13059. "\n"
  13060. msgstr ""
  13061. #. type: lisp
  13062. #: guix-git/doc/guix.texi:7766
  13063. #, no-wrap
  13064. msgid ""
  13065. "(define-public lua5.1-socket\n"
  13066. " (make-lua-socket \"lua5.1-socket\" lua-5.1))\n"
  13067. "\n"
  13068. msgstr ""
  13069. #. type: lisp
  13070. #: guix-git/doc/guix.texi:7769
  13071. #, no-wrap
  13072. msgid ""
  13073. "(define-public lua5.2-socket\n"
  13074. " (make-lua-socket \"lua5.2-socket\" lua-5.2))\n"
  13075. msgstr ""
  13076. #. type: Plain text
  13077. #: guix-git/doc/guix.texi:7777
  13078. 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})."
  13079. msgstr ""
  13080. #. type: cindex
  13081. #: guix-git/doc/guix.texi:7778
  13082. #, no-wrap
  13083. msgid "package transformations"
  13084. msgstr ""
  13085. #. type: Plain text
  13086. #: guix-git/doc/guix.texi:7783
  13087. 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}):"
  13088. msgstr ""
  13089. #. type: deffn
  13090. #: guix-git/doc/guix.texi:7784
  13091. #, no-wrap
  13092. msgid "{Scheme Procedure} options->transformation @var{opts}"
  13093. msgstr ""
  13094. #. type: deffn
  13095. #: guix-git/doc/guix.texi:7788
  13096. 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:"
  13097. msgstr ""
  13098. #. type: lisp
  13099. #: guix-git/doc/guix.texi:7792
  13100. #, no-wrap
  13101. msgid ""
  13102. "((with-branch . \"guile-gcrypt=master\")\n"
  13103. " (without-tests . \"libgcrypt\"))\n"
  13104. msgstr ""
  13105. #. type: deffn
  13106. #: guix-git/doc/guix.texi:7796
  13107. msgid "Each symbol names a transformation and the corresponding string is an argument to that transformation."
  13108. msgstr ""
  13109. #. type: Plain text
  13110. #: guix-git/doc/guix.texi:7799
  13111. msgid "For instance, a manifest equivalent to this command:"
  13112. msgstr ""
  13113. #. type: example
  13114. #: guix-git/doc/guix.texi:7804
  13115. #, no-wrap
  13116. msgid ""
  13117. "guix build guix \\\n"
  13118. " --with-branch=guile-gcrypt=master \\\n"
  13119. " --with-debug-info=zlib\n"
  13120. msgstr ""
  13121. #. type: Plain text
  13122. #: guix-git/doc/guix.texi:7808
  13123. msgid "... would look like this:"
  13124. msgstr ""
  13125. #. type: lisp
  13126. #: guix-git/doc/guix.texi:7811
  13127. #, no-wrap
  13128. msgid ""
  13129. "(use-modules (guix transformations))\n"
  13130. "\n"
  13131. msgstr ""
  13132. #. type: lisp
  13133. #: guix-git/doc/guix.texi:7817
  13134. #, no-wrap
  13135. msgid ""
  13136. "(define transform\n"
  13137. " ;; The package transformation procedure.\n"
  13138. " (options->transformation\n"
  13139. " '((with-branch . \"guile-gcrypt=master\")\n"
  13140. " (with-debug-info . \"zlib\"))))\n"
  13141. "\n"
  13142. msgstr ""
  13143. #. type: lisp
  13144. #: guix-git/doc/guix.texi:7820
  13145. #, no-wrap
  13146. msgid ""
  13147. "(packages->manifest\n"
  13148. " (list (transform (specification->package \"guix\"))))\n"
  13149. msgstr ""
  13150. #. type: cindex
  13151. #: guix-git/doc/guix.texi:7822
  13152. #, no-wrap
  13153. msgid "input rewriting"
  13154. msgstr ""
  13155. #. type: cindex
  13156. #: guix-git/doc/guix.texi:7823
  13157. #, no-wrap
  13158. msgid "dependency graph rewriting"
  13159. msgstr ""
  13160. #. type: Plain text
  13161. #: guix-git/doc/guix.texi:7830
  13162. 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."
  13163. msgstr ""
  13164. #. type: Plain text
  13165. #: guix-git/doc/guix.texi:7834
  13166. 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."
  13167. msgstr ""
  13168. #. type: deffn
  13169. #: guix-git/doc/guix.texi:7835
  13170. #, no-wrap
  13171. msgid "{Scheme Procedure} package-input-rewriting @var{replacements} @"
  13172. msgstr ""
  13173. #. type: deffn
  13174. #: guix-git/doc/guix.texi:7842
  13175. 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."
  13176. msgstr ""
  13177. #. type: deffn
  13178. #: guix-git/doc/guix.texi:7845
  13179. msgid "Optionally, @var{rewrite-name} is a one-argument procedure that takes the name of a package and returns its new name after rewrite."
  13180. msgstr ""
  13181. #. type: table
  13182. #: guix-git/doc/guix.texi:7849 guix-git/doc/guix.texi:11636
  13183. msgid "Consider this example:"
  13184. msgstr ""
  13185. #. type: lisp
  13186. #: guix-git/doc/guix.texi:7855
  13187. #, no-wrap
  13188. msgid ""
  13189. "(define libressl-instead-of-openssl\n"
  13190. " ;; This is a procedure to replace OPENSSL by LIBRESSL,\n"
  13191. " ;; recursively.\n"
  13192. " (package-input-rewriting `((,openssl . ,libressl))))\n"
  13193. "\n"
  13194. msgstr ""
  13195. #. type: lisp
  13196. #: guix-git/doc/guix.texi:7858
  13197. #, no-wrap
  13198. msgid ""
  13199. "(define git-with-libressl\n"
  13200. " (libressl-instead-of-openssl git))\n"
  13201. msgstr ""
  13202. #. type: Plain text
  13203. #: guix-git/doc/guix.texi:7866
  13204. 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}})."
  13205. msgstr ""
  13206. #. type: Plain text
  13207. #: guix-git/doc/guix.texi:7869
  13208. msgid "The following variant of @code{package-input-rewriting} can match packages to be replaced by name rather than by identity."
  13209. msgstr ""
  13210. #. type: deffn
  13211. #: guix-git/doc/guix.texi:7870
  13212. #, no-wrap
  13213. msgid "{Scheme Procedure} package-input-rewriting/spec @var{replacements} [#:deep? #t]"
  13214. msgstr ""
  13215. #. type: deffn
  13216. #: guix-git/doc/guix.texi:7877
  13217. 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."
  13218. msgstr ""
  13219. #. type: Plain text
  13220. #: guix-git/doc/guix.texi:7880
  13221. msgid "The example above could be rewritten this way:"
  13222. msgstr ""
  13223. #. type: lisp
  13224. #: guix-git/doc/guix.texi:7885
  13225. #, no-wrap
  13226. msgid ""
  13227. "(define libressl-instead-of-openssl\n"
  13228. " ;; Replace all the packages called \"openssl\" with LibreSSL.\n"
  13229. " (package-input-rewriting/spec `((\"openssl\" . ,(const libressl)))))\n"
  13230. msgstr ""
  13231. #. type: Plain text
  13232. #: guix-git/doc/guix.texi:7890
  13233. 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."
  13234. msgstr ""
  13235. #. type: Plain text
  13236. #: guix-git/doc/guix.texi:7894
  13237. msgid "A more generic procedure to rewrite a package dependency graph is @code{package-mapping}: it supports arbitrary changes to nodes in the graph."
  13238. msgstr ""
  13239. #. type: deffn
  13240. #: guix-git/doc/guix.texi:7895
  13241. #, no-wrap
  13242. msgid "{Scheme Procedure} package-mapping @var{proc} [@var{cut?}] [#:deep? #f]"
  13243. msgstr ""
  13244. #. type: deffn
  13245. #: guix-git/doc/guix.texi:7900
  13246. 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."
  13247. msgstr ""
  13248. #. type: cindex
  13249. #: guix-git/doc/guix.texi:7906
  13250. #, no-wrap
  13251. msgid "build system"
  13252. msgstr ""
  13253. #. type: Plain text
  13254. #: guix-git/doc/guix.texi:7911
  13255. 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."
  13256. msgstr ""
  13257. #. type: Plain text
  13258. #: guix-git/doc/guix.texi:7915
  13259. 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."
  13260. msgstr ""
  13261. #. type: cindex
  13262. #: guix-git/doc/guix.texi:7916
  13263. #, no-wrap
  13264. msgid "bag (low-level package representation)"
  13265. msgstr ""
  13266. #. type: Plain text
  13267. #: guix-git/doc/guix.texi:7926
  13268. 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}})."
  13269. msgstr ""
  13270. #. type: Plain text
  13271. #: guix-git/doc/guix.texi:7934
  13272. 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})."
  13273. msgstr ""
  13274. #. type: Plain text
  13275. #: guix-git/doc/guix.texi:7938
  13276. 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."
  13277. msgstr ""
  13278. #. type: defvr
  13279. #: guix-git/doc/guix.texi:7939
  13280. #, no-wrap
  13281. msgid "{Scheme Variable} gnu-build-system"
  13282. msgstr ""
  13283. #. type: defvr
  13284. #: guix-git/doc/guix.texi:7943
  13285. msgid "@code{gnu-build-system} represents the GNU Build System, and variants thereof (@pxref{Configuration, configuration and makefile conventions,, standards, GNU Coding Standards})."
  13286. msgstr ""
  13287. #. type: cindex
  13288. #: guix-git/doc/guix.texi:7944 guix-git/doc/guix.texi:8893
  13289. #: guix-git/doc/guix.texi:9453
  13290. #, no-wrap
  13291. msgid "build phases"
  13292. msgstr ""
  13293. #. type: defvr
  13294. #: guix-git/doc/guix.texi:7951
  13295. 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."
  13296. msgstr ""
  13297. #. type: defvr
  13298. #: guix-git/doc/guix.texi:7958
  13299. 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."
  13300. msgstr ""
  13301. #. type: defvr
  13302. #: guix-git/doc/guix.texi:7962
  13303. 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:"
  13304. msgstr ""
  13305. #. type: item
  13306. #: guix-git/doc/guix.texi:7964
  13307. #, no-wrap
  13308. msgid "#:phases"
  13309. msgstr ""
  13310. #. type: table
  13311. #: guix-git/doc/guix.texi:7967
  13312. msgid "This argument specifies build-side code that evaluates to an alist of build phases. @xref{Build Phases}, for more information."
  13313. msgstr ""
  13314. #. type: item
  13315. #: guix-git/doc/guix.texi:7968
  13316. #, fuzzy, no-wrap
  13317. msgid "#:configure-flags"
  13318. msgstr "系统配置"
  13319. #. type: table
  13320. #: guix-git/doc/guix.texi:7971
  13321. msgid "This is a list of flags (strings) passed to the @command{configure} script. @xref{Defining Packages}, for an example."
  13322. msgstr ""
  13323. #. type: item
  13324. #: guix-git/doc/guix.texi:7972
  13325. #, no-wrap
  13326. msgid "#:make-flags"
  13327. msgstr ""
  13328. #. type: table
  13329. #: guix-git/doc/guix.texi:7976
  13330. msgid "This list of strings contains flags passed as arguments to @command{make} invocations in the @code{build}, @code{check}, and @code{install} phases."
  13331. msgstr ""
  13332. #. type: item
  13333. #: guix-git/doc/guix.texi:7977
  13334. #, no-wrap
  13335. msgid "#:out-of-source?"
  13336. msgstr ""
  13337. #. type: table
  13338. #: guix-git/doc/guix.texi:7980
  13339. msgid "This Boolean, @code{#f} by default, indicates whether to run builds in a build directory separate from the source tree."
  13340. msgstr ""
  13341. #. type: table
  13342. #: guix-git/doc/guix.texi:7985
  13343. 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}."
  13344. msgstr ""
  13345. #. type: item
  13346. #: guix-git/doc/guix.texi:7986
  13347. #, no-wrap
  13348. msgid "#:tests?"
  13349. msgstr ""
  13350. #. type: table
  13351. #: guix-git/doc/guix.texi:7989
  13352. msgid "This Boolean, @code{#t} by default, indicates whether the @code{check} phase should run the package's test suite."
  13353. msgstr ""
  13354. #. type: item
  13355. #: guix-git/doc/guix.texi:7990
  13356. #, no-wrap
  13357. msgid "#:test-target"
  13358. msgstr ""
  13359. #. type: table
  13360. #: guix-git/doc/guix.texi:7993
  13361. msgid "This string, @code{\"check\"} by default, gives the name of the makefile target used by the @code{check} phase."
  13362. msgstr ""
  13363. #. type: item
  13364. #: guix-git/doc/guix.texi:7994
  13365. #, no-wrap
  13366. msgid "#:parallel-build?"
  13367. msgstr ""
  13368. #. type: itemx
  13369. #: guix-git/doc/guix.texi:7995
  13370. #, no-wrap
  13371. msgid "#:parallel-tests?"
  13372. msgstr ""
  13373. #. type: table
  13374. #: guix-git/doc/guix.texi:8002
  13375. 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}})."
  13376. msgstr ""
  13377. #. type: cindex
  13378. #: guix-git/doc/guix.texi:8003
  13379. #, no-wrap
  13380. msgid "RUNPATH, validation"
  13381. msgstr ""
  13382. #. type: item
  13383. #: guix-git/doc/guix.texi:8004
  13384. #, no-wrap
  13385. msgid "#:validate-runpath?"
  13386. msgstr ""
  13387. #. type: table
  13388. #: guix-git/doc/guix.texi:8008
  13389. 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."
  13390. msgstr ""
  13391. #. type: table
  13392. #: guix-git/doc/guix.texi:8016
  13393. 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}."
  13394. msgstr ""
  13395. #. type: item
  13396. #: guix-git/doc/guix.texi:8017
  13397. #, fuzzy, no-wrap
  13398. msgid "#:substitutable?"
  13399. msgstr "substitutes"
  13400. #. type: table
  13401. #: guix-git/doc/guix.texi:8021
  13402. 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})."
  13403. msgstr ""
  13404. #. type: item
  13405. #: guix-git/doc/guix.texi:8022
  13406. #, no-wrap
  13407. msgid "#:allowed-references"
  13408. msgstr ""
  13409. #. type: itemx
  13410. #: guix-git/doc/guix.texi:8023
  13411. #, no-wrap
  13412. msgid "#:disallowed-references"
  13413. msgstr ""
  13414. #. type: table
  13415. #: guix-git/doc/guix.texi:8028
  13416. 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."
  13417. msgstr ""
  13418. #. type: table
  13419. #: guix-git/doc/guix.texi:8033
  13420. 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})."
  13421. msgstr ""
  13422. #. type: defvr
  13423. #: guix-git/doc/guix.texi:8036
  13424. msgid "Most other build systems support these keyword arguments."
  13425. msgstr ""
  13426. #. type: Plain text
  13427. #: guix-git/doc/guix.texi:8043
  13428. 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."
  13429. msgstr ""
  13430. #. type: defvr
  13431. #: guix-git/doc/guix.texi:8044
  13432. #, no-wrap
  13433. msgid "{Scheme Variable} ant-build-system"
  13434. msgstr ""
  13435. #. type: defvr
  13436. #: guix-git/doc/guix.texi:8048
  13437. 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}."
  13438. msgstr ""
  13439. #. type: defvr
  13440. #: guix-git/doc/guix.texi:8053
  13441. 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."
  13442. msgstr ""
  13443. #. type: defvr
  13444. #: guix-git/doc/guix.texi:8059
  13445. 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''."
  13446. msgstr ""
  13447. #. type: defvr
  13448. #: guix-git/doc/guix.texi:8067
  13449. 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."
  13450. msgstr ""
  13451. #. type: defvr
  13452. #: guix-git/doc/guix.texi:8071
  13453. 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."
  13454. msgstr ""
  13455. #. type: defvr
  13456. #: guix-git/doc/guix.texi:8074
  13457. #, no-wrap
  13458. msgid "{Scheme Variable} android-ndk-build-system"
  13459. msgstr ""
  13460. #. type: cindex
  13461. #: guix-git/doc/guix.texi:8075
  13462. #, no-wrap
  13463. msgid "Android distribution"
  13464. msgstr ""
  13465. #. type: cindex
  13466. #: guix-git/doc/guix.texi:8076
  13467. #, no-wrap
  13468. msgid "Android NDK build system"
  13469. msgstr ""
  13470. #. type: defvr
  13471. #: guix-git/doc/guix.texi:8080
  13472. 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."
  13473. msgstr ""
  13474. #. type: defvr
  13475. #: guix-git/doc/guix.texi:8084
  13476. 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."
  13477. msgstr ""
  13478. #. type: defvr
  13479. #: guix-git/doc/guix.texi:8087
  13480. msgid "It's also assumed that the union of all the dependencies of a package has no conflicting files."
  13481. msgstr ""
  13482. #. type: defvr
  13483. #: guix-git/doc/guix.texi:8090
  13484. msgid "For the time being, cross-compilation is not supported - so right now the libraries and header files are assumed to be host tools."
  13485. msgstr ""
  13486. #. type: defvr
  13487. #: guix-git/doc/guix.texi:8093
  13488. #, no-wrap
  13489. msgid "{Scheme Variable} asdf-build-system/source"
  13490. msgstr ""
  13491. #. type: defvrx
  13492. #: guix-git/doc/guix.texi:8094
  13493. #, no-wrap
  13494. msgid "{Scheme Variable} asdf-build-system/sbcl"
  13495. msgstr ""
  13496. #. type: defvrx
  13497. #: guix-git/doc/guix.texi:8095
  13498. #, no-wrap
  13499. msgid "{Scheme Variable} asdf-build-system/ecl"
  13500. msgstr ""
  13501. #. type: defvr
  13502. #: guix-git/doc/guix.texi:8101
  13503. 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."
  13504. msgstr ""
  13505. #. type: defvr
  13506. #: guix-git/doc/guix.texi:8108
  13507. 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."
  13508. msgstr ""
  13509. #. type: defvr
  13510. #: guix-git/doc/guix.texi:8112
  13511. 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}."
  13512. msgstr ""
  13513. #. type: defvr
  13514. #: guix-git/doc/guix.texi:8116
  13515. 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."
  13516. msgstr ""
  13517. #. type: defvr
  13518. #: guix-git/doc/guix.texi:8124
  13519. 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."
  13520. msgstr ""
  13521. #. type: defvr
  13522. #: guix-git/doc/guix.texi:8133
  13523. 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."
  13524. msgstr ""
  13525. #. type: defvr
  13526. #: guix-git/doc/guix.texi:8138
  13527. 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."
  13528. msgstr ""
  13529. #. type: defvr
  13530. #: guix-git/doc/guix.texi:8141
  13531. #, no-wrap
  13532. msgid "{Scheme Variable} cargo-build-system"
  13533. msgstr ""
  13534. #. type: cindex
  13535. #: guix-git/doc/guix.texi:8142
  13536. #, no-wrap
  13537. msgid "Rust programming language"
  13538. msgstr ""
  13539. #. type: cindex
  13540. #: guix-git/doc/guix.texi:8143
  13541. #, no-wrap
  13542. msgid "Cargo (Rust build system)"
  13543. msgstr ""
  13544. #. type: defvr
  13545. #: guix-git/doc/guix.texi:8147
  13546. 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}."
  13547. msgstr ""
  13548. #. type: defvr
  13549. #: guix-git/doc/guix.texi:8150
  13550. 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."
  13551. msgstr ""
  13552. #. type: defvr
  13553. #: guix-git/doc/guix.texi:8160
  13554. 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."
  13555. msgstr ""
  13556. #. type: defvr
  13557. #: guix-git/doc/guix.texi:8170
  13558. 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."
  13559. msgstr ""
  13560. #. type: defvr
  13561. #: guix-git/doc/guix.texi:8172
  13562. #, no-wrap
  13563. msgid "{Scheme Variable} chicken-build-system"
  13564. msgstr ""
  13565. #. type: defvr
  13566. #: guix-git/doc/guix.texi:8177
  13567. 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."
  13568. msgstr ""
  13569. #. type: defvr
  13570. #: guix-git/doc/guix.texi:8180
  13571. msgid "This build system adds @code{chicken} to the package inputs, as well as the packages of @code{gnu-build-system}."
  13572. msgstr ""
  13573. #. type: defvr
  13574. #: guix-git/doc/guix.texi:8184
  13575. 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."
  13576. msgstr ""
  13577. #. type: defvr
  13578. #: guix-git/doc/guix.texi:8186
  13579. msgid "For example, if you are packaging the @code{srfi-1} egg:"
  13580. msgstr ""
  13581. #. type: lisp
  13582. #: guix-git/doc/guix.texi:8189
  13583. #, no-wrap
  13584. msgid "(arguments '(#:egg-name \"srfi-1\"))\n"
  13585. msgstr ""
  13586. #. type: defvr
  13587. #: guix-git/doc/guix.texi:8194
  13588. 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."
  13589. msgstr ""
  13590. #. type: defvr
  13591. #: guix-git/doc/guix.texi:8196
  13592. #, no-wrap
  13593. msgid "{Scheme Variable} copy-build-system"
  13594. msgstr ""
  13595. #. type: defvr
  13596. #: guix-git/doc/guix.texi:8200
  13597. 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."
  13598. msgstr ""
  13599. #. type: defvr
  13600. #: guix-git/doc/guix.texi:8205
  13601. 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}."
  13602. msgstr ""
  13603. #. type: defvr
  13604. #: guix-git/doc/guix.texi:8210
  13605. 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."
  13606. msgstr ""
  13607. #. type: item
  13608. #: guix-git/doc/guix.texi:8212
  13609. #, no-wrap
  13610. msgid "When @var{source} matches a file or directory without trailing slash, install it to @var{target}."
  13611. msgstr ""
  13612. #. type: item
  13613. #: guix-git/doc/guix.texi:8214
  13614. #, no-wrap
  13615. msgid "If @var{target} has a trailing slash, install @var{source} basename beneath @var{target}."
  13616. msgstr ""
  13617. #. type: item
  13618. #: guix-git/doc/guix.texi:8215
  13619. #, no-wrap
  13620. msgid "Otherwise install @var{source} as @var{target}."
  13621. msgstr ""
  13622. #. type: item
  13623. #: guix-git/doc/guix.texi:8218
  13624. #, no-wrap
  13625. msgid "When @var{source} is a directory with a trailing slash, or when @var{filters} are used,"
  13626. msgstr ""
  13627. #. type: itemize
  13628. #: guix-git/doc/guix.texi:8221
  13629. msgid "the trailing slash of @var{target} is implied with the same meaning as above."
  13630. msgstr ""
  13631. #. type: item
  13632. #: guix-git/doc/guix.texi:8222
  13633. #, no-wrap
  13634. msgid "Without @var{filters}, install the full @var{source} @emph{content} to @var{target}."
  13635. msgstr ""
  13636. #. type: item
  13637. #: guix-git/doc/guix.texi:8223
  13638. #, no-wrap
  13639. msgid "With @var{filters} among @code{#:include}, @code{#:include-regexp}, @code{#:exclude},"
  13640. msgstr ""
  13641. #. type: itemize
  13642. #: guix-git/doc/guix.texi:8226
  13643. msgid "@code{#:exclude-regexp}, only select files are installed depending on the filters. Each filters is specified by a list of strings."
  13644. msgstr ""
  13645. #. type: item
  13646. #: guix-git/doc/guix.texi:8227
  13647. #, no-wrap
  13648. msgid "With @code{#:include}, install all the files which the path suffix matches"
  13649. msgstr ""
  13650. #. type: itemize
  13651. #: guix-git/doc/guix.texi:8229
  13652. msgid "at least one of the elements in the given list."
  13653. msgstr ""
  13654. #. type: item
  13655. #: guix-git/doc/guix.texi:8229
  13656. #, no-wrap
  13657. msgid "With @code{#:include-regexp}, install all the files which the"
  13658. msgstr ""
  13659. #. type: itemize
  13660. #: guix-git/doc/guix.texi:8232
  13661. msgid "subpaths match at least one of the regular expressions in the given list."
  13662. msgstr ""
  13663. #. type: item
  13664. #: guix-git/doc/guix.texi:8232
  13665. #, no-wrap
  13666. msgid "The @code{#:exclude} and @code{#:exclude-regexp} filters"
  13667. msgstr ""
  13668. #. type: itemize
  13669. #: guix-git/doc/guix.texi:8237
  13670. 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."
  13671. msgstr ""
  13672. #. type: itemize
  13673. #: guix-git/doc/guix.texi:8241
  13674. msgid "In all cases, the paths relative to @var{source} are preserved within @var{target}."
  13675. msgstr ""
  13676. #. type: defvr
  13677. #: guix-git/doc/guix.texi:8244
  13678. msgid "Examples:"
  13679. msgstr ""
  13680. #. type: item
  13681. #: guix-git/doc/guix.texi:8246
  13682. #, no-wrap
  13683. msgid "@code{(\"foo/bar\" \"share/my-app/\")}: Install @file{bar} to @file{share/my-app/bar}."
  13684. msgstr ""
  13685. #. type: item
  13686. #: guix-git/doc/guix.texi:8247
  13687. #, no-wrap
  13688. msgid "@code{(\"foo/bar\" \"share/my-app/baz\")}: Install @file{bar} to @file{share/my-app/baz}."
  13689. msgstr ""
  13690. #. type: item
  13691. #: guix-git/doc/guix.texi:8248
  13692. #, no-wrap
  13693. msgid "@code{(\"foo/\" \"share/my-app\")}: Install the content of @file{foo} inside @file{share/my-app},"
  13694. msgstr ""
  13695. #. type: itemize
  13696. #: guix-git/doc/guix.texi:8250
  13697. msgid "e.g., install @file{foo/sub/file} to @file{share/my-app/sub/file}."
  13698. msgstr ""
  13699. #. type: item
  13700. #: guix-git/doc/guix.texi:8250
  13701. #, no-wrap
  13702. msgid "@code{(\"foo/\" \"share/my-app\" #:include (\"sub/file\"))}: Install only @file{foo/sub/file} to"
  13703. msgstr ""
  13704. #. type: itemize
  13705. #: guix-git/doc/guix.texi:8252
  13706. msgid "@file{share/my-app/sub/file}."
  13707. msgstr ""
  13708. #. type: item
  13709. #: guix-git/doc/guix.texi:8252
  13710. #, no-wrap
  13711. msgid "@code{(\"foo/sub\" \"share/my-app\" #:include (\"file\"))}: Install @file{foo/sub/file} to"
  13712. msgstr ""
  13713. #. type: itemize
  13714. #: guix-git/doc/guix.texi:8254
  13715. msgid "@file{share/my-app/file}."
  13716. msgstr ""
  13717. #. type: cindex
  13718. #: guix-git/doc/guix.texi:8258
  13719. #, no-wrap
  13720. msgid "Clojure (programming language)"
  13721. msgstr ""
  13722. #. type: cindex
  13723. #: guix-git/doc/guix.texi:8259
  13724. #, no-wrap
  13725. msgid "simple Clojure build system"
  13726. msgstr ""
  13727. #. type: defvr
  13728. #: guix-git/doc/guix.texi:8260
  13729. #, no-wrap
  13730. msgid "{Scheme Variable} clojure-build-system"
  13731. msgstr ""
  13732. #. type: defvr
  13733. #: guix-git/doc/guix.texi:8265
  13734. 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."
  13735. msgstr ""
  13736. #. type: defvr
  13737. #: guix-git/doc/guix.texi:8269
  13738. 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."
  13739. msgstr ""
  13740. #. type: defvr
  13741. #: guix-git/doc/guix.texi:8275
  13742. 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."
  13743. msgstr ""
  13744. #. type: defvr
  13745. #: guix-git/doc/guix.texi:8278
  13746. msgid "This build system is an extension of @code{ant-build-system}, but with the following phases changed:"
  13747. msgstr ""
  13748. #. type: item
  13749. #: guix-git/doc/guix.texi:8281 guix-git/doc/guix.texi:8854
  13750. #: guix-git/doc/guix.texi:8903 guix-git/doc/guix.texi:8976
  13751. #: guix-git/doc/guix.texi:36086 guix-git/doc/guix.texi:38890
  13752. #, no-wrap
  13753. msgid "build"
  13754. msgstr ""
  13755. #. type: table
  13756. #: guix-git/doc/guix.texi:8290
  13757. 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."
  13758. msgstr ""
  13759. #. type: item
  13760. #: guix-git/doc/guix.texi:8291 guix-git/doc/guix.texi:8858
  13761. #: guix-git/doc/guix.texi:8981
  13762. #, no-wrap
  13763. msgid "check"
  13764. msgstr ""
  13765. #. type: table
  13766. #: guix-git/doc/guix.texi:8298
  13767. 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."
  13768. msgstr ""
  13769. #. type: item
  13770. #: guix-git/doc/guix.texi:8299 guix-git/doc/guix.texi:8864
  13771. #: guix-git/doc/guix.texi:8907 guix-git/doc/guix.texi:8987
  13772. #, no-wrap
  13773. msgid "install"
  13774. msgstr ""
  13775. #. type: table
  13776. #: guix-git/doc/guix.texi:8301
  13777. msgid "This phase installs all jars built previously."
  13778. msgstr ""
  13779. #. type: defvr
  13780. #: guix-git/doc/guix.texi:8304
  13781. msgid "Apart from the above, this build system also contains an additional phase:"
  13782. msgstr ""
  13783. #. type: item
  13784. #: guix-git/doc/guix.texi:8307
  13785. #, no-wrap
  13786. msgid "install-doc"
  13787. msgstr ""
  13788. #. type: table
  13789. #: guix-git/doc/guix.texi:8312
  13790. 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."
  13791. msgstr ""
  13792. #. type: defvr
  13793. #: guix-git/doc/guix.texi:8315
  13794. #, no-wrap
  13795. msgid "{Scheme Variable} cmake-build-system"
  13796. msgstr ""
  13797. #. type: defvr
  13798. #: guix-git/doc/guix.texi:8319
  13799. 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}."
  13800. msgstr ""
  13801. #. type: defvr
  13802. #: guix-git/doc/guix.texi:8323
  13803. 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."
  13804. msgstr ""
  13805. #. type: defvr
  13806. #: guix-git/doc/guix.texi:8330
  13807. 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."
  13808. msgstr ""
  13809. #. type: defvr
  13810. #: guix-git/doc/guix.texi:8332
  13811. #, no-wrap
  13812. msgid "{Scheme Variable} dune-build-system"
  13813. msgstr ""
  13814. #. type: defvr
  13815. #: guix-git/doc/guix.texi:8339
  13816. 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."
  13817. msgstr ""
  13818. #. type: defvr
  13819. #: guix-git/doc/guix.texi:8343
  13820. 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."
  13821. msgstr ""
  13822. #. type: defvr
  13823. #: guix-git/doc/guix.texi:8347
  13824. 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."
  13825. msgstr ""
  13826. #. type: defvr
  13827. #: guix-git/doc/guix.texi:8351
  13828. 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}."
  13829. msgstr ""
  13830. #. type: defvr
  13831. #: guix-git/doc/guix.texi:8356
  13832. 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}."
  13833. msgstr ""
  13834. #. type: defvr
  13835. #: guix-git/doc/guix.texi:8359
  13836. #, no-wrap
  13837. msgid "{Scheme Variable} go-build-system"
  13838. msgstr ""
  13839. #. type: defvr
  13840. #: guix-git/doc/guix.texi:8364
  13841. 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}."
  13842. msgstr ""
  13843. #. type: defvr
  13844. #: guix-git/doc/guix.texi:8375
  13845. 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."
  13846. msgstr ""
  13847. #. type: defvr
  13848. #: guix-git/doc/guix.texi:8380
  13849. 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."
  13850. msgstr ""
  13851. #. type: defvr
  13852. #: guix-git/doc/guix.texi:8387
  13853. 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}."
  13854. msgstr ""
  13855. #. type: defvr
  13856. #: guix-git/doc/guix.texi:8389
  13857. #, no-wrap
  13858. msgid "{Scheme Variable} glib-or-gtk-build-system"
  13859. msgstr ""
  13860. #. type: defvr
  13861. #: guix-git/doc/guix.texi:8392
  13862. 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+."
  13863. msgstr ""
  13864. #. type: defvr
  13865. #: guix-git/doc/guix.texi:8395
  13866. msgid "This build system adds the following two phases to the ones defined by @code{gnu-build-system}:"
  13867. msgstr ""
  13868. #. type: item
  13869. #: guix-git/doc/guix.texi:8397 guix-git/doc/guix.texi:8880
  13870. #, no-wrap
  13871. msgid "glib-or-gtk-wrap"
  13872. msgstr ""
  13873. #. type: table
  13874. #: guix-git/doc/guix.texi:8404
  13875. 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."
  13876. msgstr ""
  13877. #. type: table
  13878. #: guix-git/doc/guix.texi:8411
  13879. 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+."
  13880. msgstr ""
  13881. #. type: item
  13882. #: guix-git/doc/guix.texi:8412 guix-git/doc/guix.texi:8884
  13883. #, no-wrap
  13884. msgid "glib-or-gtk-compile-schemas"
  13885. msgstr ""
  13886. #. type: table
  13887. #: guix-git/doc/guix.texi:8420
  13888. 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."
  13889. msgstr ""
  13890. #. type: defvr
  13891. #: guix-git/doc/guix.texi:8423
  13892. msgid "Both phases are executed after the @code{install} phase."
  13893. msgstr ""
  13894. #. type: defvr
  13895. #: guix-git/doc/guix.texi:8425
  13896. #, no-wrap
  13897. msgid "{Scheme Variable} guile-build-system"
  13898. msgstr ""
  13899. #. type: defvr
  13900. #: guix-git/doc/guix.texi:8432
  13901. 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."
  13902. msgstr ""
  13903. #. type: defvr
  13904. #: guix-git/doc/guix.texi:8435
  13905. msgid "This build system supports cross-compilation by using the @option{--target} option of @samp{guild compile}."
  13906. msgstr ""
  13907. #. type: defvr
  13908. #: guix-git/doc/guix.texi:8438
  13909. msgid "Packages built with @code{guile-build-system} must provide a Guile package in their @code{native-inputs} field."
  13910. msgstr ""
  13911. #. type: defvr
  13912. #: guix-git/doc/guix.texi:8440
  13913. #, no-wrap
  13914. msgid "{Scheme Variable} julia-build-system"
  13915. msgstr ""
  13916. #. type: defvr
  13917. #: guix-git/doc/guix.texi:8447
  13918. 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}."
  13919. msgstr ""
  13920. #. type: defvr
  13921. #: guix-git/doc/guix.texi:8452
  13922. msgid "The Julia package name and uuid is read from the file @file{Project.toml}. These values can be overridden by passing the argument @code{#:julia-package-name} (which must be correctly capitalized) or @code{#:julia-package-uuid}."
  13923. msgstr ""
  13924. #. type: defvr
  13925. #: guix-git/doc/guix.texi:8456
  13926. 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}."
  13927. msgstr ""
  13928. #. type: defvr
  13929. #: guix-git/doc/guix.texi:8461
  13930. 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."
  13931. msgstr ""
  13932. #. type: defvr
  13933. #: guix-git/doc/guix.texi:8465
  13934. 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:"
  13935. msgstr ""
  13936. #. type: lisp
  13937. #: guix-git/doc/guix.texi:8477
  13938. #, no-wrap
  13939. msgid ""
  13940. "(add-after 'unpack 'override-binary-path\n"
  13941. " (lambda* (#:key inputs #:allow-other-keys)\n"
  13942. " (for-each (lambda (wrapper)\n"
  13943. " (substitute* wrapper\n"
  13944. " ((\"generate_wrapper_header.*\")\n"
  13945. " (string-append\n"
  13946. " \"generate_wrapper_header(\\\"MbedTLS\\\", \\\"\"\n"
  13947. " (assoc-ref inputs \"mbedtls-apache\") \"\\\")\\n\"))))\n"
  13948. " ;; There's a Julia file for each platform, override them all.\n"
  13949. " (find-files \"src/wrappers/\" \"\\\\.jl$\"))))\n"
  13950. msgstr ""
  13951. #. type: defvr
  13952. #: guix-git/doc/guix.texi:8483
  13953. msgid "Some older packages that aren't using @file{Project.toml} yet, will require this file to be created, too. It is internally done if the arguments @code{#:julia-package-name} and @code{#:julia-package-uuid} are provided."
  13954. msgstr ""
  13955. #. type: defvr
  13956. #: guix-git/doc/guix.texi:8485
  13957. #, no-wrap
  13958. msgid "{Scheme Variable} maven-build-system"
  13959. msgstr ""
  13960. #. type: defvr
  13961. #: guix-git/doc/guix.texi:8492
  13962. 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."
  13963. msgstr ""
  13964. #. type: defvr
  13965. #: guix-git/doc/guix.texi:8502
  13966. 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."
  13967. msgstr ""
  13968. #. type: defvr
  13969. #: guix-git/doc/guix.texi:8505
  13970. 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."
  13971. msgstr ""
  13972. #. type: defvr
  13973. #: guix-git/doc/guix.texi:8511
  13974. 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}."
  13975. msgstr ""
  13976. #. type: defvr
  13977. #: guix-git/doc/guix.texi:8517
  13978. 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."
  13979. msgstr ""
  13980. #. type: defvr
  13981. #: guix-git/doc/guix.texi:8520
  13982. msgid "You can override the default @code{jdk} and @code{maven} packages with the corresponding argument, @code{#:jdk} and @code{#:maven}."
  13983. msgstr ""
  13984. #. type: defvr
  13985. #: guix-git/doc/guix.texi:8525
  13986. 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."
  13987. msgstr ""
  13988. #. type: defvr
  13989. #: guix-git/doc/guix.texi:8527
  13990. #, no-wrap
  13991. msgid "{Scheme Variable} minetest-mod-build-system"
  13992. msgstr ""
  13993. #. type: defvr
  13994. #: guix-git/doc/guix.texi:8533
  13995. 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."
  13996. msgstr ""
  13997. #. type: defvr
  13998. #: guix-git/doc/guix.texi:8535
  13999. #, no-wrap
  14000. msgid "{Scheme Variable} minify-build-system"
  14001. msgstr ""
  14002. #. type: defvr
  14003. #: guix-git/doc/guix.texi:8538
  14004. msgid "This variable is exported by @code{(guix build-system minify)}. It implements a minification procedure for simple JavaScript packages."
  14005. msgstr ""
  14006. #. type: defvr
  14007. #: guix-git/doc/guix.texi:8544
  14008. 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."
  14009. msgstr ""
  14010. #. type: defvr
  14011. #: guix-git/doc/guix.texi:8548
  14012. 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."
  14013. msgstr ""
  14014. #. type: defvr
  14015. #: guix-git/doc/guix.texi:8550
  14016. #, no-wrap
  14017. msgid "{Scheme Variable} ocaml-build-system"
  14018. msgstr ""
  14019. #. type: defvr
  14020. #: guix-git/doc/guix.texi:8556
  14021. 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."
  14022. msgstr ""
  14023. #. type: defvr
  14024. #: guix-git/doc/guix.texi:8566
  14025. 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."
  14026. msgstr ""
  14027. #. type: defvr
  14028. #: guix-git/doc/guix.texi:8571
  14029. 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."
  14030. msgstr ""
  14031. #. type: defvr
  14032. #: guix-git/doc/guix.texi:8575
  14033. 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."
  14034. msgstr ""
  14035. #. type: defvr
  14036. #: guix-git/doc/guix.texi:8583
  14037. 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."
  14038. msgstr ""
  14039. #. type: defvr
  14040. #: guix-git/doc/guix.texi:8591
  14041. 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."
  14042. msgstr ""
  14043. #. type: defvr
  14044. #: guix-git/doc/guix.texi:8593
  14045. #, no-wrap
  14046. msgid "{Scheme Variable} python-build-system"
  14047. msgstr ""
  14048. #. type: defvr
  14049. #: guix-git/doc/guix.texi:8598
  14050. 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{}}."
  14051. msgstr ""
  14052. #. type: defvr
  14053. #: guix-git/doc/guix.texi:8603
  14054. msgid "For packages that install stand-alone Python programs under @code{bin/}, it takes care of wrapping these programs so that their @env{GUIX_PYTHONPATH} environment variable points to all the Python libraries they depend on."
  14055. msgstr ""
  14056. #. type: defvr
  14057. #: guix-git/doc/guix.texi:8609
  14058. 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."
  14059. msgstr ""
  14060. #. type: defvr
  14061. #: guix-git/doc/guix.texi:8614
  14062. 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}."
  14063. msgstr ""
  14064. #. type: defvr
  14065. #: guix-git/doc/guix.texi:8620
  14066. msgid "If a @code{\"python\"} output is available, the package is installed into it instead of the default @code{\"out\"} output. This is useful for packages that include a Python package as only a part of the software, and thus want to combine the phases of @code{python-build-system} with another build system. Python bindings are a common usecase."
  14067. msgstr ""
  14068. #. type: defvr
  14069. #: guix-git/doc/guix.texi:8623
  14070. #, no-wrap
  14071. msgid "{Scheme Variable} perl-build-system"
  14072. msgstr ""
  14073. #. type: defvr
  14074. #: guix-git/doc/guix.texi:8635
  14075. 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."
  14076. msgstr ""
  14077. #. type: defvr
  14078. #: guix-git/doc/guix.texi:8639
  14079. 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."
  14080. msgstr ""
  14081. #. type: defvr
  14082. #: guix-git/doc/guix.texi:8641
  14083. msgid "Which Perl package is used can be specified with @code{#:perl}."
  14084. msgstr ""
  14085. #. type: defvr
  14086. #: guix-git/doc/guix.texi:8643
  14087. #, no-wrap
  14088. msgid "{Scheme Variable} renpy-build-system"
  14089. msgstr ""
  14090. #. type: defvr
  14091. #: guix-git/doc/guix.texi:8647
  14092. 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."
  14093. msgstr ""
  14094. #. type: defvr
  14095. #: guix-git/doc/guix.texi:8650
  14096. 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."
  14097. msgstr ""
  14098. #. type: defvr
  14099. #: guix-git/doc/guix.texi:8654
  14100. 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}."
  14101. msgstr ""
  14102. #. type: defvr
  14103. #: guix-git/doc/guix.texi:8656
  14104. #, no-wrap
  14105. msgid "{Scheme Variable} qt-build-system"
  14106. msgstr ""
  14107. #. type: defvr
  14108. #: guix-git/doc/guix.texi:8659
  14109. msgid "This variable is exported by @code{(guix build-system qt)}. It is intended for use with applications using Qt or KDE."
  14110. msgstr ""
  14111. #. type: defvr
  14112. #: guix-git/doc/guix.texi:8662
  14113. msgid "This build system adds the following two phases to the ones defined by @code{cmake-build-system}:"
  14114. msgstr ""
  14115. #. type: item
  14116. #: guix-git/doc/guix.texi:8664
  14117. #, no-wrap
  14118. msgid "check-setup"
  14119. msgstr ""
  14120. #. type: table
  14121. #: guix-git/doc/guix.texi:8671
  14122. 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}."
  14123. msgstr ""
  14124. #. type: table
  14125. #: guix-git/doc/guix.texi:8674
  14126. msgid "This phase is added before the @code{check} phase. It's a separate phase to ease adjusting if necessary."
  14127. msgstr ""
  14128. #. type: item
  14129. #: guix-git/doc/guix.texi:8675
  14130. #, no-wrap
  14131. msgid "qt-wrap"
  14132. msgstr ""
  14133. #. type: table
  14134. #: guix-git/doc/guix.texi:8681
  14135. 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."
  14136. msgstr ""
  14137. #. type: table
  14138. #: guix-git/doc/guix.texi:8687
  14139. 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."
  14140. msgstr ""
  14141. #. type: table
  14142. #: guix-git/doc/guix.texi:8689
  14143. msgid "This phase is added after the @code{install} phase."
  14144. msgstr ""
  14145. #. type: defvr
  14146. #: guix-git/doc/guix.texi:8692
  14147. #, no-wrap
  14148. msgid "{Scheme Variable} r-build-system"
  14149. msgstr ""
  14150. #. type: defvr
  14151. #: guix-git/doc/guix.texi:8700
  14152. 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}."
  14153. msgstr ""
  14154. #. type: defvr
  14155. #: guix-git/doc/guix.texi:8702
  14156. #, no-wrap
  14157. msgid "{Scheme Variable} rakudo-build-system"
  14158. msgstr ""
  14159. #. type: defvr
  14160. #: guix-git/doc/guix.texi:8710
  14161. 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."
  14162. msgstr ""
  14163. #. type: defvr
  14164. #: guix-git/doc/guix.texi:8718
  14165. 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."
  14166. msgstr ""
  14167. #. type: defvr
  14168. #: guix-git/doc/guix.texi:8720
  14169. #, no-wrap
  14170. msgid "{Scheme Variable} texlive-build-system"
  14171. msgstr ""
  14172. #. type: defvr
  14173. #: guix-git/doc/guix.texi:8725
  14174. 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."
  14175. msgstr ""
  14176. #. type: defvr
  14177. #: guix-git/doc/guix.texi:8734
  14178. 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."
  14179. msgstr ""
  14180. #. type: defvr
  14181. #: guix-git/doc/guix.texi:8737
  14182. msgid "The @code{#:tex-directory} parameter tells the build system where to install the built files under the texmf tree."
  14183. msgstr ""
  14184. #. type: defvr
  14185. #: guix-git/doc/guix.texi:8739
  14186. #, no-wrap
  14187. msgid "{Scheme Variable} ruby-build-system"
  14188. msgstr ""
  14189. #. type: defvr
  14190. #: guix-git/doc/guix.texi:8743
  14191. 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}."
  14192. msgstr ""
  14193. #. type: defvr
  14194. #: guix-git/doc/guix.texi:8751
  14195. 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."
  14196. msgstr ""
  14197. #. type: defvr
  14198. #: guix-git/doc/guix.texi:8755
  14199. 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."
  14200. msgstr ""
  14201. #. type: defvr
  14202. #: guix-git/doc/guix.texi:8757
  14203. #, no-wrap
  14204. msgid "{Scheme Variable} waf-build-system"
  14205. msgstr ""
  14206. #. type: defvr
  14207. #: guix-git/doc/guix.texi:8763
  14208. 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."
  14209. msgstr ""
  14210. #. type: defvr
  14211. #: guix-git/doc/guix.texi:8767
  14212. 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."
  14213. msgstr ""
  14214. #. type: defvr
  14215. #: guix-git/doc/guix.texi:8769
  14216. #, no-wrap
  14217. msgid "{Scheme Variable} scons-build-system"
  14218. msgstr ""
  14219. #. type: defvr
  14220. #: guix-git/doc/guix.texi:8775
  14221. 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."
  14222. msgstr ""
  14223. #. type: defvr
  14224. #: guix-git/doc/guix.texi:8782
  14225. 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."
  14226. msgstr ""
  14227. #. type: defvr
  14228. #: guix-git/doc/guix.texi:8784
  14229. #, no-wrap
  14230. msgid "{Scheme Variable} haskell-build-system"
  14231. msgstr ""
  14232. #. type: defvr
  14233. #: guix-git/doc/guix.texi:8798
  14234. 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."
  14235. msgstr ""
  14236. #. type: defvr
  14237. #: guix-git/doc/guix.texi:8801
  14238. msgid "Which Haskell compiler is used can be specified with the @code{#:haskell} parameter which defaults to @code{ghc}."
  14239. msgstr ""
  14240. #. type: defvr
  14241. #: guix-git/doc/guix.texi:8803
  14242. #, no-wrap
  14243. msgid "{Scheme Variable} dub-build-system"
  14244. msgstr ""
  14245. #. type: defvr
  14246. #: guix-git/doc/guix.texi:8808
  14247. 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."
  14248. msgstr ""
  14249. #. type: defvr
  14250. #: guix-git/doc/guix.texi:8811
  14251. msgid "Which D compiler is used can be specified with the @code{#:ldc} parameter which defaults to @code{ldc}."
  14252. msgstr ""
  14253. #. type: anchor{#1}
  14254. #: guix-git/doc/guix.texi:8814
  14255. msgid "emacs-build-system"
  14256. msgstr ""
  14257. #. type: defvr
  14258. #: guix-git/doc/guix.texi:8814
  14259. #, no-wrap
  14260. msgid "{Scheme Variable} emacs-build-system"
  14261. msgstr ""
  14262. #. type: defvr
  14263. #: guix-git/doc/guix.texi:8818
  14264. 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})."
  14265. msgstr ""
  14266. #. type: defvr
  14267. #: guix-git/doc/guix.texi:8824
  14268. 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}."
  14269. msgstr ""
  14270. #. type: defvr
  14271. #: guix-git/doc/guix.texi:8826
  14272. #, no-wrap
  14273. msgid "{Scheme Variable} font-build-system"
  14274. msgstr ""
  14275. #. type: defvr
  14276. #: guix-git/doc/guix.texi:8832
  14277. 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."
  14278. msgstr ""
  14279. #. type: defvr
  14280. #: guix-git/doc/guix.texi:8834
  14281. #, no-wrap
  14282. msgid "{Scheme Variable} meson-build-system"
  14283. msgstr ""
  14284. #. type: defvr
  14285. #: guix-git/doc/guix.texi:8838
  14286. 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."
  14287. msgstr ""
  14288. #. type: defvr
  14289. #: guix-git/doc/guix.texi:8842
  14290. 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."
  14291. msgstr ""
  14292. #. type: defvr
  14293. #: guix-git/doc/guix.texi:8845
  14294. msgid "This build system is an extension of @code{gnu-build-system}, but with the following phases changed to some specific for Meson:"
  14295. msgstr ""
  14296. #. type: item
  14297. #: guix-git/doc/guix.texi:8848 guix-git/doc/guix.texi:8899
  14298. #: guix-git/doc/guix.texi:8971
  14299. #, no-wrap
  14300. msgid "configure"
  14301. msgstr ""
  14302. #. type: table
  14303. #: guix-git/doc/guix.texi:8853
  14304. 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}."
  14305. msgstr ""
  14306. #. type: table
  14307. #: guix-git/doc/guix.texi:8857
  14308. msgid "The phase runs @code{ninja} to build the package in parallel by default, but this can be changed with @code{#:parallel-build?}."
  14309. msgstr ""
  14310. #. type: table
  14311. #: guix-git/doc/guix.texi:8863
  14312. msgid "The phase runs @samp{meson test} with a base set of options that cannot be overridden. This base set of options can be extended via the @code{#:test-options} argument, for example to select or skip a specific test suite."
  14313. msgstr ""
  14314. #. type: table
  14315. #: guix-git/doc/guix.texi:8866
  14316. msgid "The phase runs @code{ninja install} and can not be changed."
  14317. msgstr ""
  14318. #. type: defvr
  14319. #: guix-git/doc/guix.texi:8869
  14320. msgid "Apart from that, the build system also adds the following phases:"
  14321. msgstr ""
  14322. #. type: item
  14323. #: guix-git/doc/guix.texi:8872
  14324. #, no-wrap
  14325. msgid "fix-runpath"
  14326. msgstr ""
  14327. #. type: table
  14328. #: guix-git/doc/guix.texi:8879
  14329. msgid "This phase ensures that all binaries can find the libraries they need. It searches for required libraries in subdirectories of the package being built, and adds those to @code{RUNPATH} where needed. It also removes references to libraries left over from the build phase by @code{meson}, such as test dependencies, that aren't actually required for the program to run."
  14330. msgstr ""
  14331. #. type: table
  14332. #: guix-git/doc/guix.texi:8883 guix-git/doc/guix.texi:8887
  14333. 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?}."
  14334. msgstr ""
  14335. #. type: defvr
  14336. #: guix-git/doc/guix.texi:8890
  14337. #, no-wrap
  14338. msgid "{Scheme Variable} linux-module-build-system"
  14339. msgstr ""
  14340. #. type: defvr
  14341. #: guix-git/doc/guix.texi:8892
  14342. msgid "@code{linux-module-build-system} allows building Linux kernel modules."
  14343. msgstr ""
  14344. #. type: defvr
  14345. #: guix-git/doc/guix.texi:8896
  14346. msgid "This build system is an extension of @code{gnu-build-system}, but with the following phases changed:"
  14347. msgstr ""
  14348. #. type: table
  14349. #: guix-git/doc/guix.texi:8902
  14350. msgid "This phase configures the environment so that the Linux kernel's Makefile can be used to build the external kernel module."
  14351. msgstr ""
  14352. #. type: table
  14353. #: guix-git/doc/guix.texi:8906
  14354. msgid "This phase uses the Linux kernel's Makefile in order to build the external kernel module."
  14355. msgstr ""
  14356. #. type: table
  14357. #: guix-git/doc/guix.texi:8910
  14358. msgid "This phase uses the Linux kernel's Makefile in order to install the external kernel module."
  14359. msgstr ""
  14360. #. type: defvr
  14361. #: guix-git/doc/guix.texi:8915
  14362. 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)."
  14363. msgstr ""
  14364. #. type: defvr
  14365. #: guix-git/doc/guix.texi:8917
  14366. #, no-wrap
  14367. msgid "{Scheme Variable} node-build-system"
  14368. msgstr ""
  14369. #. type: defvr
  14370. #: guix-git/doc/guix.texi:8922
  14371. 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."
  14372. msgstr ""
  14373. #. type: defvr
  14374. #: guix-git/doc/guix.texi:8926
  14375. 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}."
  14376. msgstr ""
  14377. #. type: Plain text
  14378. #: guix-git/doc/guix.texi:8932
  14379. 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."
  14380. msgstr ""
  14381. #. type: defvr
  14382. #: guix-git/doc/guix.texi:8933
  14383. #, no-wrap
  14384. msgid "{Scheme Variable} trivial-build-system"
  14385. msgstr ""
  14386. #. type: defvr
  14387. #: guix-git/doc/guix.texi:8935
  14388. msgid "This variable is exported by @code{(guix build-system trivial)}."
  14389. msgstr ""
  14390. #. type: defvr
  14391. #: guix-git/doc/guix.texi:8940
  14392. 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}})."
  14393. msgstr ""
  14394. #. type: cindex
  14395. #: guix-git/doc/guix.texi:8945
  14396. #, fuzzy, no-wrap
  14397. msgid "build phases, for packages"
  14398. msgstr "Python软件包的输入"
  14399. #. type: Plain text
  14400. #: guix-git/doc/guix.texi:8951
  14401. 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})."
  14402. msgstr ""
  14403. #. type: Plain text
  14404. #: guix-git/doc/guix.texi:8955
  14405. 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:"
  14406. msgstr ""
  14407. #. type: item
  14408. #: guix-git/doc/guix.texi:8957
  14409. #, no-wrap
  14410. msgid "set-paths"
  14411. msgstr ""
  14412. #. type: table
  14413. #: guix-git/doc/guix.texi:8960
  14414. msgid "Define search path environment variables for all the input packages, including @env{PATH} (@pxref{Search Paths})."
  14415. msgstr ""
  14416. #. type: item
  14417. #: guix-git/doc/guix.texi:8961
  14418. #, no-wrap
  14419. msgid "unpack"
  14420. msgstr ""
  14421. #. type: table
  14422. #: guix-git/doc/guix.texi:8965
  14423. 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."
  14424. msgstr ""
  14425. #. type: item
  14426. #: guix-git/doc/guix.texi:8966
  14427. #, no-wrap
  14428. msgid "patch-source-shebangs"
  14429. msgstr ""
  14430. #. type: table
  14431. #: guix-git/doc/guix.texi:8970
  14432. 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}."
  14433. msgstr ""
  14434. #. type: table
  14435. #: guix-git/doc/guix.texi:8975
  14436. 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."
  14437. msgstr ""
  14438. #. type: table
  14439. #: guix-git/doc/guix.texi:8980
  14440. 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}."
  14441. msgstr ""
  14442. #. type: table
  14443. #: guix-git/doc/guix.texi:8986
  14444. 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}."
  14445. msgstr ""
  14446. #. type: table
  14447. #: guix-git/doc/guix.texi:8989
  14448. msgid "Run @code{make install} with the flags listed in @code{#:make-flags}."
  14449. msgstr ""
  14450. #. type: item
  14451. #: guix-git/doc/guix.texi:8990
  14452. #, no-wrap
  14453. msgid "patch-shebangs"
  14454. msgstr ""
  14455. #. type: table
  14456. #: guix-git/doc/guix.texi:8992
  14457. msgid "Patch shebangs on the installed executable files."
  14458. msgstr ""
  14459. #. type: item
  14460. #: guix-git/doc/guix.texi:8993
  14461. #, no-wrap
  14462. msgid "strip"
  14463. msgstr ""
  14464. #. type: table
  14465. #: guix-git/doc/guix.texi:8997
  14466. 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})."
  14467. msgstr ""
  14468. #. type: Plain text
  14469. #: guix-git/doc/guix.texi:9006
  14470. 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})."
  14471. msgstr ""
  14472. #. type: Plain text
  14473. #: guix-git/doc/guix.texi:9013
  14474. 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."
  14475. msgstr ""
  14476. #. type: vindex
  14477. #: guix-git/doc/guix.texi:9014
  14478. #, no-wrap
  14479. msgid "%standard-phases"
  14480. msgstr ""
  14481. #. type: Plain text
  14482. #: guix-git/doc/guix.texi:9020
  14483. 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!}:"
  14484. msgstr ""
  14485. #. type: lisp
  14486. #: guix-git/doc/guix.texi:9023
  14487. #, no-wrap
  14488. msgid ""
  14489. ";; The build phases of 'gnu-build-system'.\n"
  14490. "\n"
  14491. msgstr ""
  14492. #. type: lisp
  14493. #: guix-git/doc/guix.texi:9027
  14494. #, no-wrap
  14495. msgid ""
  14496. "(define* (unpack #:key source #:allow-other-keys)\n"
  14497. " ;; Extract the source tarball.\n"
  14498. " (invoke \"tar\" \"xvf\" source))\n"
  14499. "\n"
  14500. msgstr ""
  14501. #. type: lisp
  14502. #: guix-git/doc/guix.texi:9033
  14503. #, no-wrap
  14504. msgid ""
  14505. "(define* (configure #:key outputs #:allow-other-keys)\n"
  14506. " ;; Run the 'configure' script. Install to output \"out\".\n"
  14507. " (let ((out (assoc-ref outputs \"out\")))\n"
  14508. " (invoke \"./configure\"\n"
  14509. " (string-append \"--prefix=\" out))))\n"
  14510. "\n"
  14511. msgstr ""
  14512. #. type: lisp
  14513. #: guix-git/doc/guix.texi:9037
  14514. #, no-wrap
  14515. msgid ""
  14516. "(define* (build #:allow-other-keys)\n"
  14517. " ;; Compile.\n"
  14518. " (invoke \"make\"))\n"
  14519. "\n"
  14520. msgstr ""
  14521. #. type: lisp
  14522. #: guix-git/doc/guix.texi:9044
  14523. #, no-wrap
  14524. msgid ""
  14525. "(define* (check #:key (test-target \"check\") (tests? #true)\n"
  14526. " #:allow-other-keys)\n"
  14527. " ;; Run the test suite.\n"
  14528. " (if tests?\n"
  14529. " (invoke \"make\" test-target)\n"
  14530. " (display \"test suite not run\\n\")))\n"
  14531. "\n"
  14532. msgstr ""
  14533. #. type: lisp
  14534. #: guix-git/doc/guix.texi:9048
  14535. #, no-wrap
  14536. msgid ""
  14537. "(define* (install #:allow-other-keys)\n"
  14538. " ;; Install files to the prefix 'configure' specified.\n"
  14539. " (invoke \"make\" \"install\"))\n"
  14540. "\n"
  14541. msgstr ""
  14542. #. type: lisp
  14543. #: guix-git/doc/guix.texi:9057
  14544. #, no-wrap
  14545. msgid ""
  14546. "(define %standard-phases\n"
  14547. " ;; The list of standard phases (quite a few are omitted\n"
  14548. " ;; for brevity). Each element is a symbol/procedure pair.\n"
  14549. " (list (cons 'unpack unpack)\n"
  14550. " (cons 'configure configure)\n"
  14551. " (cons 'build build)\n"
  14552. " (cons 'check check)\n"
  14553. " (cons 'install install)))\n"
  14554. msgstr ""
  14555. #. type: Plain text
  14556. #: guix-git/doc/guix.texi:9067
  14557. 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."
  14558. msgstr ""
  14559. #. type: Plain text
  14560. #: guix-git/doc/guix.texi:9073
  14561. 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})."
  14562. msgstr ""
  14563. #. type: Plain text
  14564. #: guix-git/doc/guix.texi:9089
  14565. 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."
  14566. msgstr ""
  14567. #. type: cindex
  14568. #: guix-git/doc/guix.texi:9090
  14569. #, no-wrap
  14570. msgid "build phases, customizing"
  14571. msgstr ""
  14572. #. type: Plain text
  14573. #: guix-git/doc/guix.texi:9099
  14574. 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}})."
  14575. msgstr ""
  14576. #. type: Plain text
  14577. #: guix-git/doc/guix.texi:9104
  14578. 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}:"
  14579. msgstr ""
  14580. #. type: lisp
  14581. #: guix-git/doc/guix.texi:9124
  14582. #, no-wrap
  14583. msgid ""
  14584. "(define-public example\n"
  14585. " (package\n"
  14586. " (name \"example\")\n"
  14587. " ;; other fields omitted\n"
  14588. " (build-system gnu-build-system)\n"
  14589. " (arguments\n"
  14590. " '(#:phases (modify-phases %standard-phases\n"
  14591. " (delete 'configure)\n"
  14592. " (add-before 'build 'set-prefix-in-makefile\n"
  14593. " (lambda* (#:key outputs #:allow-other-keys)\n"
  14594. " ;; Modify the makefile so that its\n"
  14595. " ;; 'PREFIX' variable points to \"out\".\n"
  14596. " (let ((out (assoc-ref outputs \"out\")))\n"
  14597. " (substitute* \"Makefile\"\n"
  14598. " ((\"PREFIX =.*\")\n"
  14599. " (string-append \"PREFIX = \"\n"
  14600. " out \"\\n\")))\n"
  14601. " #true))))))))\n"
  14602. msgstr ""
  14603. #. type: Plain text
  14604. #: guix-git/doc/guix.texi:9130
  14605. 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}."
  14606. msgstr ""
  14607. #. type: cindex
  14608. #: guix-git/doc/guix.texi:9131 guix-git/doc/guix.texi:10466
  14609. #, no-wrap
  14610. msgid "code staging"
  14611. msgstr ""
  14612. #. type: cindex
  14613. #: guix-git/doc/guix.texi:9132 guix-git/doc/guix.texi:10467
  14614. #, fuzzy, no-wrap
  14615. msgid "staging, of code"
  14616. msgstr "代码格式化"
  14617. #. type: Plain text
  14618. #: guix-git/doc/guix.texi:9139
  14619. 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."
  14620. msgstr ""
  14621. #. type: Plain text
  14622. #: guix-git/doc/guix.texi:9149
  14623. 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."
  14624. msgstr ""
  14625. #. type: Plain text
  14626. #: guix-git/doc/guix.texi:9153
  14627. 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."
  14628. msgstr ""
  14629. #. type: Plain text
  14630. #: guix-git/doc/guix.texi:9158
  14631. 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}):"
  14632. msgstr ""
  14633. #. type: lisp
  14634. #: guix-git/doc/guix.texi:9165
  14635. #, no-wrap
  14636. msgid ""
  14637. "(with-imported-modules '((guix build utils)) ;import it\n"
  14638. " (computed-file \"empty-tree\"\n"
  14639. " #~(begin\n"
  14640. " ;; Put it in scope.\n"
  14641. " (use-modules (guix build utils))\n"
  14642. "\n"
  14643. msgstr ""
  14644. #. type: lisp
  14645. #: guix-git/doc/guix.texi:9168
  14646. #, no-wrap
  14647. msgid ""
  14648. " ;; Happily use its 'mkdir-p' procedure.\n"
  14649. " (mkdir-p (string-append #$output \"/a/b/c\")))))\n"
  14650. msgstr ""
  14651. #. type: Plain text
  14652. #: guix-git/doc/guix.texi:9172
  14653. msgid "The remainder of this section is the reference for most of the utility procedures provided by @code{(guix build utils)}."
  14654. msgstr ""
  14655. #. type: subsection
  14656. #: guix-git/doc/guix.texi:9175
  14657. #, no-wrap
  14658. msgid "Dealing with Store File Names"
  14659. msgstr ""
  14660. #. type: Plain text
  14661. #: guix-git/doc/guix.texi:9178
  14662. msgid "This section documents procedures that deal with store file names."
  14663. msgstr ""
  14664. #. type: deffn
  14665. #: guix-git/doc/guix.texi:9179
  14666. #, no-wrap
  14667. msgid "{Scheme Procedure} %store-directory"
  14668. msgstr ""
  14669. #. type: deffn
  14670. #: guix-git/doc/guix.texi:9181
  14671. #, fuzzy
  14672. msgid "Return the directory name of the store."
  14673. msgstr "仓库的纯函数式接口。"
  14674. #. type: deffn
  14675. #: guix-git/doc/guix.texi:9183
  14676. #, no-wrap
  14677. msgid "{Scheme Procedure} store-file-name? @var{file}"
  14678. msgstr ""
  14679. #. type: deffn
  14680. #: guix-git/doc/guix.texi:9185
  14681. msgid "Return true if @var{file} is in the store."
  14682. msgstr ""
  14683. #. type: deffn
  14684. #: guix-git/doc/guix.texi:9187
  14685. #, no-wrap
  14686. msgid "{Scheme Procedure} strip-store-file-name @var{file}"
  14687. msgstr ""
  14688. #. type: deffn
  14689. #: guix-git/doc/guix.texi:9190
  14690. 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."
  14691. msgstr ""
  14692. #. type: deffn
  14693. #: guix-git/doc/guix.texi:9192
  14694. #, no-wrap
  14695. msgid "{Scheme Procedure} package-name->name+version @var{name}"
  14696. msgstr ""
  14697. #. type: deffn
  14698. #: guix-git/doc/guix.texi:9197
  14699. 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."
  14700. msgstr ""
  14701. #. type: subsection
  14702. #: guix-git/doc/guix.texi:9199
  14703. #, fuzzy, no-wrap
  14704. msgid "File Types"
  14705. msgstr "文件系统"
  14706. #. type: Plain text
  14707. #: guix-git/doc/guix.texi:9202
  14708. msgid "The procedures below deal with files and file types."
  14709. msgstr ""
  14710. #. type: deffn
  14711. #: guix-git/doc/guix.texi:9203
  14712. #, no-wrap
  14713. msgid "{Scheme Procedure} directory-exists? @var{dir}"
  14714. msgstr ""
  14715. #. type: deffn
  14716. #: guix-git/doc/guix.texi:9205
  14717. msgid "Return @code{#t} if @var{dir} exists and is a directory."
  14718. msgstr ""
  14719. #. type: deffn
  14720. #: guix-git/doc/guix.texi:9207
  14721. #, no-wrap
  14722. msgid "{Scheme Procedure} executable-file? @var{file}"
  14723. msgstr ""
  14724. #. type: deffn
  14725. #: guix-git/doc/guix.texi:9209
  14726. msgid "Return @code{#t} if @var{file} exists and is executable."
  14727. msgstr ""
  14728. #. type: deffn
  14729. #: guix-git/doc/guix.texi:9211
  14730. #, no-wrap
  14731. msgid "{Scheme Procedure} symbolic-link? @var{file}"
  14732. msgstr ""
  14733. #. type: deffn
  14734. #: guix-git/doc/guix.texi:9213
  14735. msgid "Return @code{#t} if @var{file} is a symbolic link (aka. a ``symlink'')."
  14736. msgstr ""
  14737. #. type: deffn
  14738. #: guix-git/doc/guix.texi:9215
  14739. #, no-wrap
  14740. msgid "{Scheme Procedure} elf-file? @var{file}"
  14741. msgstr ""
  14742. #. type: deffnx
  14743. #: guix-git/doc/guix.texi:9216
  14744. #, no-wrap
  14745. msgid "{Scheme Procedure} ar-file? @var{file}"
  14746. msgstr ""
  14747. #. type: deffnx
  14748. #: guix-git/doc/guix.texi:9217
  14749. #, no-wrap
  14750. msgid "{Scheme Procedure} gzip-file? @var{file}"
  14751. msgstr ""
  14752. #. type: deffn
  14753. #: guix-git/doc/guix.texi:9220
  14754. 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."
  14755. msgstr ""
  14756. #. type: deffn
  14757. #: guix-git/doc/guix.texi:9222
  14758. #, no-wrap
  14759. msgid "{Scheme Procedure} reset-gzip-timestamp @var{file} [#:keep-mtime? #t]"
  14760. msgstr ""
  14761. #. type: deffn
  14762. #: guix-git/doc/guix.texi:9226
  14763. 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."
  14764. msgstr ""
  14765. #. type: subsection
  14766. #: guix-git/doc/guix.texi:9228
  14767. #, no-wrap
  14768. msgid "File Manipulation"
  14769. msgstr ""
  14770. #. type: Plain text
  14771. #: guix-git/doc/guix.texi:9235
  14772. 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})."
  14773. msgstr ""
  14774. #. type: deffn
  14775. #: guix-git/doc/guix.texi:9236
  14776. #, no-wrap
  14777. msgid "{Scheme Syntax} with-directory-excursion @var{directory} @var{body}@dots{}"
  14778. msgstr ""
  14779. #. type: deffn
  14780. #: guix-git/doc/guix.texi:9238
  14781. msgid "Run @var{body} with @var{directory} as the process's current directory."
  14782. msgstr ""
  14783. #. type: deffn
  14784. #: guix-git/doc/guix.texi:9245
  14785. 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."
  14786. msgstr ""
  14787. #. type: deffn
  14788. #: guix-git/doc/guix.texi:9247
  14789. #, no-wrap
  14790. msgid "{Scheme Procedure} mkdir-p @var{dir}"
  14791. msgstr ""
  14792. #. type: deffn
  14793. #: guix-git/doc/guix.texi:9249
  14794. msgid "Create directory @var{dir} and all its ancestors."
  14795. msgstr ""
  14796. #. type: deffn
  14797. #: guix-git/doc/guix.texi:9251
  14798. #, no-wrap
  14799. msgid "{Scheme Procedure} install-file @var{file} @var{directory}"
  14800. msgstr ""
  14801. #. type: deffn
  14802. #: guix-git/doc/guix.texi:9254
  14803. msgid "Create @var{directory} if it does not exist and copy @var{file} in there under the same name."
  14804. msgstr ""
  14805. #. type: deffn
  14806. #: guix-git/doc/guix.texi:9256
  14807. #, no-wrap
  14808. msgid "{Scheme Procedure} make-file-writable @var{file}"
  14809. msgstr ""
  14810. #. type: deffn
  14811. #: guix-git/doc/guix.texi:9258
  14812. msgid "Make @var{file} writable for its owner."
  14813. msgstr ""
  14814. #. type: deffn
  14815. #: guix-git/doc/guix.texi:9260
  14816. #, no-wrap
  14817. msgid "{Scheme Procedure} copy-recursively @var{source} @var{destination} @"
  14818. msgstr ""
  14819. #. type: deffn
  14820. #: guix-git/doc/guix.texi:9269
  14821. msgid "[#:log (current-output-port)] [#:follow-symlinks? #f] @ [#:copy-file copy-file] [#:keep-mtime? #f] [#:keep-permissions? #t] Copy @var{source} directory to @var{destination}. Follow symlinks if @var{follow-symlinks?} is true; otherwise, just preserve them. Call @var{copy-file} to copy regular files. When @var{keep-mtime?} is true, keep the modification time of the files in @var{source} on those of @var{destination}. When @var{keep-permissions?} is true, preserve file permissions. Write verbose output to the @var{log} port."
  14822. msgstr ""
  14823. #. type: deffn
  14824. #: guix-git/doc/guix.texi:9271
  14825. #, no-wrap
  14826. msgid "{Scheme Procedure} delete-file-recursively @var{dir} @"
  14827. msgstr ""
  14828. #. type: deffn
  14829. #: guix-git/doc/guix.texi:9276
  14830. 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."
  14831. msgstr ""
  14832. #. type: deffn
  14833. #: guix-git/doc/guix.texi:9278
  14834. #, no-wrap
  14835. msgid "{Scheme Syntax} substitute* @var{file} @"
  14836. msgstr ""
  14837. #. type: deffn
  14838. #: guix-git/doc/guix.texi:9283
  14839. 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:"
  14840. msgstr ""
  14841. #. type: lisp
  14842. #: guix-git/doc/guix.texi:9290
  14843. #, no-wrap
  14844. msgid ""
  14845. "(substitute* file\n"
  14846. " ((\"hello\")\n"
  14847. " \"good morning\\n\")\n"
  14848. " ((\"foo([a-z]+)bar(.*)$\" all letters end)\n"
  14849. " (string-append \"baz\" letters end)))\n"
  14850. msgstr ""
  14851. #. type: deffn
  14852. #: guix-git/doc/guix.texi:9296
  14853. 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."
  14854. msgstr ""
  14855. #. type: deffn
  14856. #: guix-git/doc/guix.texi:9299
  14857. msgid "When one of the @var{match-var} is @code{_}, no variable is bound to the corresponding match substring."
  14858. msgstr ""
  14859. #. type: deffn
  14860. #: guix-git/doc/guix.texi:9302
  14861. msgid "Alternatively, @var{file} may be a list of file names, in which case they are all subject to the substitutions."
  14862. msgstr ""
  14863. #. type: deffn
  14864. #: guix-git/doc/guix.texi:9305
  14865. 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."
  14866. msgstr ""
  14867. #. type: subsection
  14868. #: guix-git/doc/guix.texi:9307
  14869. #, fuzzy, no-wrap
  14870. msgid "File Search"
  14871. msgstr "文件系统"
  14872. #. type: cindex
  14873. #: guix-git/doc/guix.texi:9309
  14874. #, no-wrap
  14875. msgid "file, searching"
  14876. msgstr ""
  14877. #. type: Plain text
  14878. #: guix-git/doc/guix.texi:9311
  14879. msgid "This section documents procedures to search and filter files."
  14880. msgstr ""
  14881. #. type: deffn
  14882. #: guix-git/doc/guix.texi:9312
  14883. #, no-wrap
  14884. msgid "{Scheme Procedure} file-name-predicate @var{regexp}"
  14885. msgstr ""
  14886. #. type: deffn
  14887. #: guix-git/doc/guix.texi:9315
  14888. msgid "Return a predicate that returns true when passed a file name whose base name matches @var{regexp}."
  14889. msgstr ""
  14890. #. type: deffn
  14891. #: guix-git/doc/guix.texi:9317
  14892. #, no-wrap
  14893. msgid "{Scheme Procedure} find-files @var{dir} [@var{pred}] @"
  14894. msgstr ""
  14895. #. type: deffn
  14896. #: guix-git/doc/guix.texi:9328
  14897. 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."
  14898. msgstr ""
  14899. #. type: Plain text
  14900. #: guix-git/doc/guix.texi:9332
  14901. msgid "Here are a few examples where we assume that the current directory is the root of the Guix source tree:"
  14902. msgstr ""
  14903. #. type: lisp
  14904. #: guix-git/doc/guix.texi:9337
  14905. #, no-wrap
  14906. msgid ""
  14907. ";; List all the regular files in the current directory.\n"
  14908. "(find-files \".\")\n"
  14909. "@result{} (\"./.dir-locals.el\" \"./.gitignore\" @dots{})\n"
  14910. "\n"
  14911. msgstr ""
  14912. #. type: lisp
  14913. #: guix-git/doc/guix.texi:9341
  14914. #, no-wrap
  14915. msgid ""
  14916. ";; List all the .scm files under gnu/services.\n"
  14917. "(find-files \"gnu/services\" \"\\\\.scm$\")\n"
  14918. "@result{} (\"gnu/services/admin.scm\" \"gnu/services/audio.scm\" @dots{})\n"
  14919. "\n"
  14920. msgstr ""
  14921. #. type: lisp
  14922. #: guix-git/doc/guix.texi:9345
  14923. #, no-wrap
  14924. msgid ""
  14925. ";; List ar files in the current directory.\n"
  14926. "(find-files \".\" (lambda (file stat) (ar-file? file)))\n"
  14927. "@result{} (\"./libformat.a\" \"./libstore.a\" @dots{})\n"
  14928. msgstr ""
  14929. #. type: deffn
  14930. #: guix-git/doc/guix.texi:9347
  14931. #, no-wrap
  14932. msgid "{Scheme Procedure} which @var{program}"
  14933. msgstr ""
  14934. #. type: deffn
  14935. #: guix-git/doc/guix.texi:9350
  14936. msgid "Return the complete file name for @var{program} as found in @code{$PATH}, or @code{#f} if @var{program} could not be found."
  14937. msgstr ""
  14938. #. type: deffn
  14939. #: guix-git/doc/guix.texi:9352
  14940. #, no-wrap
  14941. msgid "{Scheme Procedure} search-input-file @var{inputs} @var{name}"
  14942. msgstr ""
  14943. #. type: deffnx
  14944. #: guix-git/doc/guix.texi:9353
  14945. #, no-wrap
  14946. msgid "{Scheme Procedure} search-input-directory @var{inputs} @var{name}"
  14947. msgstr ""
  14948. #. type: deffn
  14949. #: guix-git/doc/guix.texi:9358
  14950. msgid "Return the complete file name for @var{name} as found in @var{inputs}; @code{search-input-file} searches for a regular file and @code{search-input-directory} searches for a directory. If @var{name} could not be found, an exception is raised."
  14951. msgstr ""
  14952. #. type: deffn
  14953. #: guix-git/doc/guix.texi:9362
  14954. msgid "Here, @var{inputs} must be an association list like @code{inputs} and @code{native-inputs} as available to build phases (@pxref{Build Phases})."
  14955. msgstr ""
  14956. #. type: Plain text
  14957. #: guix-git/doc/guix.texi:9366
  14958. msgid "Here is a (simplified) example of how @code{search-input-file} is used in a build phase of the @code{wireguard-tools} package:"
  14959. msgstr ""
  14960. #. type: lisp
  14961. #: guix-git/doc/guix.texi:9375
  14962. #, no-wrap
  14963. msgid ""
  14964. "(add-after 'install 'wrap-wg-quick\n"
  14965. " (lambda* (#:key inputs outputs #:allow-other-keys)\n"
  14966. " (let ((coreutils (string-append (assoc-ref inputs \"coreutils\")\n"
  14967. " \"/bin\")))\n"
  14968. " (wrap-program (search-input-file outputs \"bin/wg-quick\")\n"
  14969. " #:sh (search-input-file inputs \"bin/bash\")\n"
  14970. " `(\"PATH\" \":\" prefix ,(list coreutils))))))\n"
  14971. msgstr ""
  14972. #. type: subsection
  14973. #: guix-git/doc/guix.texi:9377
  14974. #, fuzzy, no-wrap
  14975. #| msgid "Log Rotation"
  14976. msgid "Program Invocation"
  14977. msgstr "日志轮替"
  14978. #. type: cindex
  14979. #: guix-git/doc/guix.texi:9379
  14980. #, no-wrap
  14981. msgid "program invocation, from Scheme"
  14982. msgstr ""
  14983. #. type: cindex
  14984. #: guix-git/doc/guix.texi:9380
  14985. #, no-wrap
  14986. msgid "invoking programs, from Scheme"
  14987. msgstr ""
  14988. #. type: Plain text
  14989. #: guix-git/doc/guix.texi:9384
  14990. msgid "You'll find handy procedures to spawn processes in this module, essentially convenient wrappers around Guile's @code{system*} (@pxref{Processes, @code{system*},, guile, GNU Guile Reference Manual})."
  14991. msgstr ""
  14992. #. type: deffn
  14993. #: guix-git/doc/guix.texi:9385
  14994. #, no-wrap
  14995. msgid "{Scheme Procedure} invoke @var{program} @var{args}@dots{}"
  14996. msgstr ""
  14997. #. type: deffn
  14998. #: guix-git/doc/guix.texi:9389
  14999. msgid "Invoke @var{program} with the given @var{args}. Raise an @code{&invoke-error} exception if the exit code is non-zero; otherwise return @code{#t}."
  15000. msgstr ""
  15001. #. type: deffn
  15002. #: guix-git/doc/guix.texi:9393
  15003. msgid "The advantage compared to @code{system*} is that you do not need to check the return value. This reduces boilerplate in shell-script-like snippets for instance in package build phases."
  15004. msgstr ""
  15005. #. type: deffn
  15006. #: guix-git/doc/guix.texi:9395
  15007. #, no-wrap
  15008. msgid "{Scheme Procedure} invoke-error? @var{c}"
  15009. msgstr ""
  15010. #. type: deffn
  15011. #: guix-git/doc/guix.texi:9397
  15012. msgid "Return true if @var{c} is an @code{&invoke-error} condition."
  15013. msgstr ""
  15014. #. type: deffn
  15015. #: guix-git/doc/guix.texi:9399
  15016. #, no-wrap
  15017. msgid "{Scheme Procedure} invoke-error-program @var{c}"
  15018. msgstr ""
  15019. #. type: deffnx
  15020. #: guix-git/doc/guix.texi:9400
  15021. #, no-wrap
  15022. msgid "{Scheme Procedure} invoke-error-arguments @var{c}"
  15023. msgstr ""
  15024. #. type: deffnx
  15025. #: guix-git/doc/guix.texi:9401
  15026. #, no-wrap
  15027. msgid "{Scheme Procedure} invoke-error-exit-status @var{c}"
  15028. msgstr ""
  15029. #. type: deffnx
  15030. #: guix-git/doc/guix.texi:9402
  15031. #, no-wrap
  15032. msgid "{Scheme Procedure} invoke-error-term-signal @var{c}"
  15033. msgstr ""
  15034. #. type: deffnx
  15035. #: guix-git/doc/guix.texi:9403
  15036. #, no-wrap
  15037. msgid "{Scheme Procedure} invoke-error-stop-signal @var{c}"
  15038. msgstr ""
  15039. #. type: deffn
  15040. #: guix-git/doc/guix.texi:9405
  15041. msgid "Access specific fields of @var{c}, an @code{&invoke-error} condition."
  15042. msgstr ""
  15043. #. type: deffn
  15044. #: guix-git/doc/guix.texi:9407
  15045. #, no-wrap
  15046. msgid "{Scheme Procedure} report-invoke-error @var{c} [@var{port}]"
  15047. msgstr ""
  15048. #. type: deffn
  15049. #: guix-git/doc/guix.texi:9410
  15050. msgid "Report to @var{port} (by default the current error port) about @var{c}, an @code{&invoke-error} condition, in a human-friendly way."
  15051. msgstr ""
  15052. #. type: deffn
  15053. #: guix-git/doc/guix.texi:9412
  15054. msgid "Typical usage would look like this:"
  15055. msgstr ""
  15056. #. type: lisp
  15057. #: guix-git/doc/guix.texi:9416
  15058. #, no-wrap
  15059. msgid ""
  15060. "(use-modules (srfi srfi-34) ;for 'guard'\n"
  15061. " (guix build utils))\n"
  15062. "\n"
  15063. msgstr ""
  15064. #. type: lisp
  15065. #: guix-git/doc/guix.texi:9420
  15066. #, no-wrap
  15067. msgid ""
  15068. "(guard (c ((invoke-error? c)\n"
  15069. " (report-invoke-error c)))\n"
  15070. " (invoke \"date\" \"--imaginary-option\"))\n"
  15071. "\n"
  15072. msgstr ""
  15073. #. type: lisp
  15074. #: guix-git/doc/guix.texi:9422
  15075. #, no-wrap
  15076. msgid "@print{} command \"date\" \"--imaginary-option\" failed with status 1\n"
  15077. msgstr ""
  15078. #. type: deffn
  15079. #: guix-git/doc/guix.texi:9425
  15080. #, no-wrap
  15081. msgid "{Scheme Procedure} invoke/quiet @var{program} @var{args}@dots{}"
  15082. msgstr ""
  15083. #. type: deffn
  15084. #: guix-git/doc/guix.texi:9431
  15085. msgid "Invoke @var{program} with @var{args} and capture @var{program}'s standard output and standard error. If @var{program} succeeds, print nothing and return the unspecified value; otherwise, raise a @code{&message} error condition that includes the status code and the output of @var{program}."
  15086. msgstr ""
  15087. #. type: deffn
  15088. #: guix-git/doc/guix.texi:9433
  15089. msgid "Here's an example:"
  15090. msgstr ""
  15091. #. type: lisp
  15092. #: guix-git/doc/guix.texi:9438
  15093. #, no-wrap
  15094. msgid ""
  15095. "(use-modules (srfi srfi-34) ;for 'guard'\n"
  15096. " (srfi srfi-35) ;for 'message-condition?'\n"
  15097. " (guix build utils))\n"
  15098. "\n"
  15099. msgstr ""
  15100. #. type: lisp
  15101. #: guix-git/doc/guix.texi:9443
  15102. #, no-wrap
  15103. msgid ""
  15104. "(guard (c ((message-condition? c)\n"
  15105. " (display (condition-message c))))\n"
  15106. " (invoke/quiet \"date\") ;all is fine\n"
  15107. " (invoke/quiet \"date\" \"--imaginary-option\"))\n"
  15108. "\n"
  15109. msgstr ""
  15110. #. type: lisp
  15111. #: guix-git/doc/guix.texi:9445
  15112. #, no-wrap
  15113. msgid ""
  15114. "@print{} 'date --imaginary-option' exited with status 1; output follows:\n"
  15115. "\n"
  15116. msgstr ""
  15117. #. type: lisp
  15118. #: guix-git/doc/guix.texi:9448
  15119. #, no-wrap
  15120. msgid ""
  15121. " date: unrecognized option '--imaginary-option'\n"
  15122. " Try 'date --help' for more information.\n"
  15123. msgstr ""
  15124. #. type: Plain text
  15125. #: guix-git/doc/guix.texi:9460
  15126. 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})."
  15127. msgstr ""
  15128. #. type: Plain text
  15129. #: guix-git/doc/guix.texi:9464
  15130. 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."
  15131. msgstr ""
  15132. #. type: cindex
  15133. #: guix-git/doc/guix.texi:9465
  15134. #, fuzzy, no-wrap
  15135. msgid "build phases, modifying"
  15136. msgstr "构建后台进程"
  15137. #. type: deffn
  15138. #: guix-git/doc/guix.texi:9466
  15139. #, no-wrap
  15140. msgid "{Scheme Syntax} modify-phases @var{phases} @var{clause}@dots{}"
  15141. msgstr ""
  15142. #. type: deffn
  15143. #: guix-git/doc/guix.texi:9469
  15144. msgid "Modify @var{phases} sequentially as per each @var{clause}, which may have one of the following forms:"
  15145. msgstr ""
  15146. #. type: lisp
  15147. #: guix-git/doc/guix.texi:9475
  15148. #, no-wrap
  15149. msgid ""
  15150. "(delete @var{old-phase-name})\n"
  15151. "(replace @var{old-phase-name} @var{new-phase})\n"
  15152. "(add-before @var{old-phase-name} @var{new-phase-name} @var{new-phase})\n"
  15153. "(add-after @var{old-phase-name} @var{new-phase-name} @var{new-phase})\n"
  15154. msgstr ""
  15155. #. type: deffn
  15156. #: guix-git/doc/guix.texi:9479
  15157. msgid "Where every @var{phase-name} above is an expression evaluating to a symbol, and @var{new-phase} an expression evaluating to a procedure."
  15158. msgstr ""
  15159. #. type: Plain text
  15160. #: guix-git/doc/guix.texi:9490
  15161. 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:"
  15162. msgstr ""
  15163. #. type: lisp
  15164. #: guix-git/doc/guix.texi:9503
  15165. #, no-wrap
  15166. msgid ""
  15167. "(modify-phases %standard-phases\n"
  15168. " (add-after 'install 'fix-egrep-and-fgrep\n"
  15169. " ;; Patch 'egrep' and 'fgrep' to execute 'grep' via its\n"
  15170. " ;; absolute file name instead of searching for it in $PATH.\n"
  15171. " (lambda* (#:key outputs #:allow-other-keys)\n"
  15172. " (let* ((out (assoc-ref outputs \"out\"))\n"
  15173. " (bin (string-append out \"/bin\")))\n"
  15174. " (substitute* (list (string-append bin \"/egrep\")\n"
  15175. " (string-append bin \"/fgrep\"))\n"
  15176. " ((\"^exec grep\")\n"
  15177. " (string-append \"exec \" bin \"/grep\")))))))\n"
  15178. msgstr ""
  15179. #. type: Plain text
  15180. #: guix-git/doc/guix.texi:9510
  15181. 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:"
  15182. msgstr ""
  15183. #. type: lisp
  15184. #: guix-git/doc/guix.texi:9522
  15185. #, no-wrap
  15186. msgid ""
  15187. "(modify-phases %standard-phases\n"
  15188. " (delete 'configure) ;no 'configure' script\n"
  15189. " (replace 'install\n"
  15190. " (lambda* (#:key outputs #:allow-other-keys)\n"
  15191. " ;; The package's Makefile doesn't provide an \"install\"\n"
  15192. " ;; rule so do it by ourselves.\n"
  15193. " (let ((bin (string-append (assoc-ref outputs \"out\")\n"
  15194. " \"/bin\")))\n"
  15195. " (install-file \"footswitch\" bin)\n"
  15196. " (install-file \"scythe\" bin)))))\n"
  15197. msgstr ""
  15198. #. type: subsection
  15199. #: guix-git/doc/guix.texi:9526
  15200. #, no-wrap
  15201. msgid "Wrappers"
  15202. msgstr ""
  15203. #. type: cindex
  15204. #: guix-git/doc/guix.texi:9528
  15205. #, no-wrap
  15206. msgid "program wrappers"
  15207. msgstr ""
  15208. #. type: cindex
  15209. #: guix-git/doc/guix.texi:9529
  15210. #, no-wrap
  15211. msgid "wrapping programs"
  15212. msgstr ""
  15213. #. type: Plain text
  15214. #: guix-git/doc/guix.texi:9535
  15215. msgid "It is not unusual for a command to require certain environment variables to be set for proper functioning, typically search paths (@pxref{Search Paths}). Failing to do that, the command might fail to find files or other commands it relies on, or it might pick the ``wrong'' ones---depending on the environment in which it runs. Examples include:"
  15216. msgstr ""
  15217. #. type: itemize
  15218. #: guix-git/doc/guix.texi:9539
  15219. msgid "a shell script that assumes all the commands it uses are in @env{PATH};"
  15220. msgstr ""
  15221. #. type: itemize
  15222. #: guix-git/doc/guix.texi:9543
  15223. msgid "a Guile program that assumes all its modules are in @env{GUILE_LOAD_PATH} and @env{GUILE_LOAD_COMPILED_PATH};"
  15224. msgstr ""
  15225. #. type: itemize
  15226. #: guix-git/doc/guix.texi:9547
  15227. msgid "a Qt application that expects to find certain plugins in @env{QT_PLUGIN_PATH}."
  15228. msgstr ""
  15229. #. type: Plain text
  15230. #: guix-git/doc/guix.texi:9555
  15231. msgid "For a package writer, the goal is to make sure commands always work the same rather than depend on some external settings. One way to achieve that is to @dfn{wrap} commands in a thin script that sets those environment variables, thereby ensuring that those run-time dependencies are always found. The wrapper would be used to set @env{PATH}, @env{GUILE_LOAD_PATH}, or @env{QT_PLUGIN_PATH} in the examples above."
  15232. msgstr ""
  15233. #. type: Plain text
  15234. #: guix-git/doc/guix.texi:9558
  15235. msgid "To ease that task, the @code{(guix build utils)} module provides a couple of helpers to wrap commands."
  15236. msgstr ""
  15237. #. type: deffn
  15238. #: guix-git/doc/guix.texi:9559
  15239. #, no-wrap
  15240. msgid "{Scheme Procedure} wrap-program @var{program} @"
  15241. msgstr ""
  15242. #. type: deffn
  15243. #: guix-git/doc/guix.texi:9562
  15244. msgid "[#:sh @var{sh}] [#:rest @var{variables}] Make a wrapper for @var{program}. @var{variables} should look like this:"
  15245. msgstr ""
  15246. #. type: lisp
  15247. #: guix-git/doc/guix.texi:9565
  15248. #, no-wrap
  15249. msgid "'(@var{variable} @var{delimiter} @var{position} @var{list-of-directories})\n"
  15250. msgstr ""
  15251. #. type: deffn
  15252. #: guix-git/doc/guix.texi:9569
  15253. msgid "where @var{delimiter} is optional. @code{:} will be used if @var{delimiter} is not given."
  15254. msgstr ""
  15255. #. type: deffn
  15256. #: guix-git/doc/guix.texi:9571
  15257. msgid "For example, this call:"
  15258. msgstr ""
  15259. #. type: lisp
  15260. #: guix-git/doc/guix.texi:9577
  15261. #, no-wrap
  15262. msgid ""
  15263. "(wrap-program \"foo\"\n"
  15264. " '(\"PATH\" \":\" = (\"/gnu/.../bar/bin\"))\n"
  15265. " '(\"CERT_PATH\" suffix (\"/gnu/.../baz/certs\"\n"
  15266. " \"/qux/certs\")))\n"
  15267. msgstr ""
  15268. #. type: deffn
  15269. #: guix-git/doc/guix.texi:9581
  15270. msgid "will copy @file{foo} to @file{.foo-real} and create the file @file{foo} with the following contents:"
  15271. msgstr ""
  15272. #. type: example
  15273. #: guix-git/doc/guix.texi:9587
  15274. #, no-wrap
  15275. msgid ""
  15276. "#!location/of/bin/bash\n"
  15277. "export PATH=\"/gnu/.../bar/bin\"\n"
  15278. "export CERT_PATH=\"$CERT_PATH$@{CERT_PATH:+:@}/gnu/.../baz/certs:/qux/certs\"\n"
  15279. "exec -a $0 location/of/.foo-real \"$@@\"\n"
  15280. msgstr ""
  15281. #. type: deffn
  15282. #: guix-git/doc/guix.texi:9592
  15283. msgid "If @var{program} has previously been wrapped by @code{wrap-program}, the wrapper is extended with definitions for @var{variables}. If it is not, @var{sh} will be used as the interpreter."
  15284. msgstr ""
  15285. #. type: deffn
  15286. #: guix-git/doc/guix.texi:9594
  15287. #, no-wrap
  15288. msgid "{Scheme Procedure} wrap-script @var{program} @"
  15289. msgstr ""
  15290. #. type: deffn
  15291. #: guix-git/doc/guix.texi:9602
  15292. msgid "[#:guile @var{guile}] [#:rest @var{variables}] Wrap the script @var{program} such that @var{variables} are set first. The format of @var{variables} is the same as in the @code{wrap-program} procedure. This procedure differs from @code{wrap-program} in that it does not create a separate shell script. Instead, @var{program} is modified directly by prepending a Guile script, which is interpreted as a comment in the script's language."
  15293. msgstr ""
  15294. #. type: deffn
  15295. #: guix-git/doc/guix.texi:9605
  15296. msgid "Special encoding comments as supported by Python are recreated on the second line."
  15297. msgstr ""
  15298. #. type: deffn
  15299. #: guix-git/doc/guix.texi:9608
  15300. msgid "Note that this procedure can only be used once per file as Guile scripts are not supported."
  15301. msgstr ""
  15302. #. type: cindex
  15303. #: guix-git/doc/guix.texi:9613
  15304. #, no-wrap
  15305. msgid "search path"
  15306. msgstr ""
  15307. #. type: Plain text
  15308. #: guix-git/doc/guix.texi:9620
  15309. msgid "Many programs and libraries look for input data in a @dfn{search path}, a list of directories: shells like Bash look for executables in the command search path, a C compiler looks for @file{.h} files in its header search path, the Python interpreter looks for @file{.py} files in its search path, the spell checker has a search path for dictionaries, and so on."
  15310. msgstr ""
  15311. #. type: Plain text
  15312. #: guix-git/doc/guix.texi:9628
  15313. msgid "Search paths can usually be defined or overridden @i{via} environment variables (@pxref{Environment Variables,,, libc, The GNU C Library Reference Manual}). For example, the search paths mentioned above can be changed by defining the @env{PATH}, @env{C_INCLUDE_PATH}, @env{PYTHONPATH} (or @env{GUIX_PYTHONPATH}), and @env{DICPATH} environment variables---you know, all these something-PATH variables that you need to get right or things ``won't be found''."
  15314. msgstr ""
  15315. #. type: Plain text
  15316. #: guix-git/doc/guix.texi:9638
  15317. msgid "You may have noticed from the command line that Guix ``knows'' which search path environment variables should be defined, and how. When you install packages in your default profile, the file @file{~/.guix-profile/etc/profile} is created, which you can ``source'' from the shell to set those variables. Likewise, if you ask @command{guix shell} to create an environment containing Python and NumPy, a Python library, and if you pass it the @option{--search-paths} option, it will tell you about @env{PATH} and @env{GUIX_PYTHONPATH} (@pxref{Invoking guix shell}):"
  15318. msgstr ""
  15319. #. type: example
  15320. #: guix-git/doc/guix.texi:9643
  15321. #, no-wrap
  15322. msgid ""
  15323. "$ guix shell python python-numpy --pure --search-paths\n"
  15324. "export PATH=\"/gnu/store/@dots{}-profile/bin\"\n"
  15325. "export GUIX_PYTHONPATH=\"/gnu/store/@dots{}-profile/lib/python3.9/site-packages\"\n"
  15326. msgstr ""
  15327. #. type: Plain text
  15328. #: guix-git/doc/guix.texi:9647
  15329. msgid "When you omit @option{--search-paths}, it defines these environment variables right away, such that Python can readily find NumPy:"
  15330. msgstr ""
  15331. #. type: example
  15332. #: guix-git/doc/guix.texi:9656
  15333. #, no-wrap
  15334. msgid ""
  15335. "$ guix shell python python-numpy -- python3\n"
  15336. "Python 3.9.6 (default, Jan 1 1970, 00:00:01)\n"
  15337. "[GCC 10.3.0] on linux\n"
  15338. "Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n"
  15339. ">>> import numpy\n"
  15340. ">>> numpy.version.version\n"
  15341. "'1.20.3'\n"
  15342. msgstr ""
  15343. #. type: Plain text
  15344. #: guix-git/doc/guix.texi:9661
  15345. msgid "For this to work, the definition of the @code{python} package @emph{declares} the search path it cares about and its associated environment variable, @env{GUIX_PYTHONPATH}. It looks like this:"
  15346. msgstr ""
  15347. #. type: lisp
  15348. #: guix-git/doc/guix.texi:9671
  15349. #, no-wrap
  15350. msgid ""
  15351. "(package\n"
  15352. " (name \"python\")\n"
  15353. " (version \"3.9.9\")\n"
  15354. " ;; some fields omitted...\n"
  15355. " (native-search-paths\n"
  15356. " (list (search-path-specification\n"
  15357. " (variable \"GUIX_PYTHONPATH\")\n"
  15358. " (files (list \"lib/python/3.9/site-packages\"))))))\n"
  15359. msgstr ""
  15360. #. type: Plain text
  15361. #: guix-git/doc/guix.texi:9686
  15362. msgid "What this @code{native-search-paths} field says is that, when the @code{python} package is used, the @env{GUIX_PYTHONPATH} environment variable must be defined to include all the @file{lib/python/3.9/site-packages} sub-directories encountered in its environment. (The @code{native-} bit means that, if we are in a cross-compilation environment, only native inputs may be added to the search path; @pxref{package Reference, @code{search-paths}}.) In the NumPy example above, the profile where @code{python} appears contains exactly one such sub-directory, and @env{GUIX_PYTHONPATH} is set to that. When there are several @file{lib/python/3.9/site-packages}---this is the case in package build environments---they are all added to @env{GUIX_PYTHONPATH}, separated by colons (@code{:})."
  15363. msgstr ""
  15364. #. type: quotation
  15365. #: guix-git/doc/guix.texi:9693
  15366. msgid "Notice that @env{GUIX_PYTHONPATH} is specified as part of the definition of the @code{python} package, and @emph{not} as part of that of @code{python-numpy}. This is because this environment variable ``belongs'' to Python, not NumPy: Python actually reads the value of that variable and honors it."
  15367. msgstr ""
  15368. #. type: quotation
  15369. #: guix-git/doc/guix.texi:9697
  15370. msgid "Corollary: if you create a profile that does not contain @code{python}, @code{GUIX_PYTHONPATH} will @emph{not} be defined, even if it contains packages that provide @file{.py} files:"
  15371. msgstr ""
  15372. #. type: example
  15373. #: guix-git/doc/guix.texi:9701
  15374. #, no-wrap
  15375. msgid ""
  15376. "$ guix shell python-numpy --search-paths --pure\n"
  15377. "export PATH=\"/gnu/store/@dots{}-profile/bin\"\n"
  15378. msgstr ""
  15379. #. type: quotation
  15380. #: guix-git/doc/guix.texi:9705
  15381. msgid "This makes a lot of sense if we look at this profile in isolation: no software in this profile would read @env{GUIX_PYTHONPATH}."
  15382. msgstr ""
  15383. #. type: Plain text
  15384. #: guix-git/doc/guix.texi:9715
  15385. msgid "Of course, there are many variations on that theme: some packages honor more than one search path, some use separators other than colon, some accumulate several directories in their search path, and so on. A more complex example is the search path of libxml2: the value of the @env{XML_CATALOG_FILES} environment variable is space-separated, it must contain a list of @file{catalog.xml} files (not directories), which are to be found in @file{xml} sub-directories---nothing less. The search path specification looks like this:"
  15386. msgstr ""
  15387. #. type: lisp
  15388. #: guix-git/doc/guix.texi:9727
  15389. #, no-wrap
  15390. msgid ""
  15391. "(package\n"
  15392. " (name \"libxml2\")\n"
  15393. " ;; some fields omitted\n"
  15394. " (native-search-paths\n"
  15395. " (list (search-path-specification\n"
  15396. " (variable \"XML_CATALOG_FILES\")\n"
  15397. " (separator \" \")\n"
  15398. " (files '(\"xml\"))\n"
  15399. " (file-pattern \"^catalog\\\\.xml$\")\n"
  15400. " (file-type 'regular)))))\n"
  15401. msgstr ""
  15402. #. type: Plain text
  15403. #: guix-git/doc/guix.texi:9730
  15404. msgid "Worry not, search path specifications are usually not this tricky."
  15405. msgstr ""
  15406. #. type: Plain text
  15407. #: guix-git/doc/guix.texi:9734
  15408. msgid "The @code{(guix search-paths)} module defines the data type of search path specifications and a number of helper procedures. Below is the reference of search path specifications."
  15409. msgstr ""
  15410. #. type: deftp
  15411. #: guix-git/doc/guix.texi:9735
  15412. #, fuzzy, no-wrap
  15413. msgid "{Data Type} search-path-specification"
  15414. msgstr "管理操作系统配置。"
  15415. #. type: deftp
  15416. #: guix-git/doc/guix.texi:9737
  15417. #, fuzzy
  15418. msgid "The data type for search path specifications."
  15419. msgstr "管理操作系统配置。"
  15420. #. type: code{#1}
  15421. #: guix-git/doc/guix.texi:9739
  15422. #, no-wrap
  15423. msgid "variable"
  15424. msgstr ""
  15425. #. type: table
  15426. #: guix-git/doc/guix.texi:9741
  15427. msgid "The name of the environment variable for this search path (a string)."
  15428. msgstr ""
  15429. #. type: code{#1}
  15430. #: guix-git/doc/guix.texi:9742 guix-git/doc/guix.texi:17621
  15431. #, no-wrap
  15432. msgid "files"
  15433. msgstr ""
  15434. #. type: table
  15435. #: guix-git/doc/guix.texi:9745
  15436. msgid "The list of sub-directories (strings) that should be added to the search path."
  15437. msgstr ""
  15438. #. type: item
  15439. #: guix-git/doc/guix.texi:9746
  15440. #, fuzzy, no-wrap
  15441. msgid "@code{separator} (default: @code{\":\"})"
  15442. msgstr "@code{port}(默认值:@code{22})"
  15443. #. type: table
  15444. #: guix-git/doc/guix.texi:9748
  15445. msgid "The string used to separate search path components."
  15446. msgstr ""
  15447. #. type: table
  15448. #: guix-git/doc/guix.texi:9756
  15449. msgid "As a special case, a @code{separator} value of @code{#f} specifies a ``single-component search path''---in other words, a search path that cannot contain more than one element. This is useful in some cases, such as the @code{SSL_CERT_DIR} variable (honored by OpenSSL, cURL, and a few other packages) or the @code{ASPELL_DICT_DIR} variable (honored by the GNU Aspell spell checker), both of which must point to a single directory."
  15450. msgstr ""
  15451. #. type: item
  15452. #: guix-git/doc/guix.texi:9757
  15453. #, fuzzy, no-wrap
  15454. msgid "@code{file-type} (default: @code{'directory})"
  15455. msgstr "@code{mate}(默认值:@code{mate})"
  15456. #. type: table
  15457. #: guix-git/doc/guix.texi:9761
  15458. msgid "The type of file being matched---@code{'directory} or @code{'regular}, though it can be any symbol returned by @code{stat:type} (@pxref{File System, @code{stat},, guile, GNU Guile Reference Manual})."
  15459. msgstr ""
  15460. #. type: table
  15461. #: guix-git/doc/guix.texi:9764
  15462. msgid "In the libxml2 example above, we would match regular files; in the Python example, we would match directories."
  15463. msgstr ""
  15464. #. type: item
  15465. #: guix-git/doc/guix.texi:9765
  15466. #, fuzzy, no-wrap
  15467. msgid "@code{file-pattern} (default: @code{#f})"
  15468. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  15469. #. type: table
  15470. #: guix-git/doc/guix.texi:9769
  15471. msgid "This must be either @code{#f} or a regular expression specifying files to be matched @emph{within} the sub-directories specified by the @code{files} field."
  15472. msgstr ""
  15473. #. type: table
  15474. #: guix-git/doc/guix.texi:9771
  15475. msgid "Again, the libxml2 example shows a situation where this is needed."
  15476. msgstr ""
  15477. #. type: Plain text
  15478. #: guix-git/doc/guix.texi:9777
  15479. msgid "How do you turn search path specifications on one hand and a bunch of directories on the other hand in a set of environment variable definitions? That's the job of @code{evaluate-search-paths}."
  15480. msgstr ""
  15481. #. type: deffn
  15482. #: guix-git/doc/guix.texi:9778
  15483. #, no-wrap
  15484. msgid "{Scheme Procedure} evaluate-search-paths @var{search-paths} @"
  15485. msgstr ""
  15486. #. type: deffn
  15487. #: guix-git/doc/guix.texi:9784
  15488. msgid "@var{directories} [@var{getenv}] Evaluate @var{search-paths}, a list of search-path specifications, for @var{directories}, a list of directory names, and return a list of specification/value pairs. Use @var{getenv} to determine the current settings and report only settings not already effective."
  15489. msgstr ""
  15490. #. type: Plain text
  15491. #: guix-git/doc/guix.texi:9788
  15492. msgid "The @code{(guix profiles)} provides a higher-level helper procedure, @code{load-profile}, that sets the environment variables of a profile."
  15493. msgstr ""
  15494. #. type: cindex
  15495. #: guix-git/doc/guix.texi:9793
  15496. #, no-wrap
  15497. msgid "store items"
  15498. msgstr ""
  15499. #. type: cindex
  15500. #: guix-git/doc/guix.texi:9794
  15501. #, no-wrap
  15502. msgid "store paths"
  15503. msgstr ""
  15504. #. type: Plain text
  15505. #: guix-git/doc/guix.texi:9805
  15506. 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}."
  15507. msgstr ""
  15508. #. type: Plain text
  15509. #: guix-git/doc/guix.texi:9810
  15510. 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."
  15511. msgstr ""
  15512. #. type: quotation
  15513. #: guix-git/doc/guix.texi:9815
  15514. 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})."
  15515. msgstr ""
  15516. #. type: quotation
  15517. #: guix-git/doc/guix.texi:9819
  15518. 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."
  15519. msgstr ""
  15520. #. type: Plain text
  15521. #: guix-git/doc/guix.texi:9826
  15522. 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."
  15523. msgstr ""
  15524. #. type: defvr
  15525. #: guix-git/doc/guix.texi:9827
  15526. #, no-wrap
  15527. msgid "{Environment Variable} GUIX_DAEMON_SOCKET"
  15528. msgstr ""
  15529. #. type: defvr
  15530. #: guix-git/doc/guix.texi:9832
  15531. 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:"
  15532. msgstr ""
  15533. #. type: code{#1}
  15534. #: guix-git/doc/guix.texi:9834 guix-git/doc/guix.texi:27078
  15535. #, no-wrap
  15536. msgid "file"
  15537. msgstr ""
  15538. #. type: itemx
  15539. #: guix-git/doc/guix.texi:9835
  15540. #, no-wrap
  15541. msgid "unix"
  15542. msgstr ""
  15543. #. type: table
  15544. #: guix-git/doc/guix.texi:9839
  15545. msgid "These are for Unix-domain sockets. @code{file:///var/guix/daemon-socket/socket} is equivalent to @file{/var/guix/daemon-socket/socket}."
  15546. msgstr ""
  15547. #. type: table
  15548. #: guix-git/doc/guix.texi:9848
  15549. 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):"
  15550. msgstr ""
  15551. #. type: example
  15552. #: guix-git/doc/guix.texi:9851
  15553. #, no-wrap
  15554. msgid "guix://master.guix.example.org:1234\n"
  15555. msgstr ""
  15556. #. type: table
  15557. #: guix-git/doc/guix.texi:9856
  15558. 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}."
  15559. msgstr ""
  15560. #. type: table
  15561. #: guix-git/doc/guix.texi:9860
  15562. 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}})."
  15563. msgstr ""
  15564. #. type: item
  15565. #: guix-git/doc/guix.texi:9861
  15566. #, no-wrap
  15567. msgid "ssh"
  15568. msgstr ""
  15569. #. type: cindex
  15570. #: guix-git/doc/guix.texi:9862
  15571. #, no-wrap
  15572. msgid "SSH access to build daemons"
  15573. msgstr ""
  15574. #. type: table
  15575. #: guix-git/doc/guix.texi:9868
  15576. 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:"
  15577. msgstr ""
  15578. #. type: example
  15579. #: guix-git/doc/guix.texi:9871
  15580. #, no-wrap
  15581. msgid "ssh://charlie@@guix.example.org:22\n"
  15582. msgstr ""
  15583. #. type: table
  15584. #: guix-git/doc/guix.texi:9875
  15585. msgid "As for @command{guix copy}, the usual OpenSSH client configuration files are honored (@pxref{Invoking guix copy})."
  15586. msgstr ""
  15587. #. type: defvr
  15588. #: guix-git/doc/guix.texi:9878
  15589. msgid "Additional URI schemes may be supported in the future."
  15590. msgstr ""
  15591. #. type: quotation
  15592. #: guix-git/doc/guix.texi:9885
  15593. 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})."
  15594. msgstr ""
  15595. #. type: deffn
  15596. #: guix-git/doc/guix.texi:9888
  15597. #, no-wrap
  15598. msgid "{Scheme Procedure} open-connection [@var{uri}] [#:reserve-space? #t]"
  15599. msgstr ""
  15600. #. type: deffn
  15601. #: guix-git/doc/guix.texi:9893
  15602. 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."
  15603. msgstr ""
  15604. #. type: deffn
  15605. #: guix-git/doc/guix.texi:9896
  15606. msgid "@var{file} defaults to @code{%default-socket-path}, which is the normal location given the options that were passed to @command{configure}."
  15607. msgstr ""
  15608. #. type: deffn
  15609. #: guix-git/doc/guix.texi:9898
  15610. #, no-wrap
  15611. msgid "{Scheme Procedure} close-connection @var{server}"
  15612. msgstr ""
  15613. #. type: deffn
  15614. #: guix-git/doc/guix.texi:9900
  15615. msgid "Close the connection to @var{server}."
  15616. msgstr ""
  15617. #. type: defvr
  15618. #: guix-git/doc/guix.texi:9902
  15619. #, no-wrap
  15620. msgid "{Scheme Variable} current-build-output-port"
  15621. msgstr ""
  15622. #. type: defvr
  15623. #: guix-git/doc/guix.texi:9905
  15624. 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."
  15625. msgstr ""
  15626. #. type: Plain text
  15627. #: guix-git/doc/guix.texi:9909
  15628. msgid "Procedures that make RPCs all take a server object as their first argument."
  15629. msgstr ""
  15630. #. type: deffn
  15631. #: guix-git/doc/guix.texi:9910
  15632. #, no-wrap
  15633. msgid "{Scheme Procedure} valid-path? @var{server} @var{path}"
  15634. msgstr ""
  15635. #. type: cindex
  15636. #: guix-git/doc/guix.texi:9911
  15637. #, no-wrap
  15638. msgid "invalid store items"
  15639. msgstr ""
  15640. #. type: deffn
  15641. #: guix-git/doc/guix.texi:9916
  15642. 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)."
  15643. msgstr ""
  15644. #. type: deffn
  15645. #: guix-git/doc/guix.texi:9919
  15646. msgid "A @code{&store-protocol-error} condition is raised if @var{path} is not prefixed by the store directory (@file{/gnu/store})."
  15647. msgstr ""
  15648. #. type: deffn
  15649. #: guix-git/doc/guix.texi:9921
  15650. #, no-wrap
  15651. msgid "{Scheme Procedure} add-text-to-store @var{server} @var{name} @var{text} [@var{references}]"
  15652. msgstr ""
  15653. #. type: deffn
  15654. #: guix-git/doc/guix.texi:9925
  15655. 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."
  15656. msgstr ""
  15657. #. type: deffn
  15658. #: guix-git/doc/guix.texi:9927
  15659. #, no-wrap
  15660. msgid "{Scheme Procedure} build-derivations @var{store} @var{derivations} @"
  15661. msgstr ""
  15662. #. type: deffn
  15663. #: guix-git/doc/guix.texi:9932
  15664. 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."
  15665. msgstr ""
  15666. #. type: Plain text
  15667. #: guix-git/doc/guix.texi:9938
  15668. 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})."
  15669. msgstr ""
  15670. #. type: i{#1}
  15671. #: guix-git/doc/guix.texi:9941
  15672. msgid "This section is currently incomplete."
  15673. msgstr ""
  15674. #. type: cindex
  15675. #: guix-git/doc/guix.texi:9945
  15676. #, no-wrap
  15677. msgid "derivations"
  15678. msgstr ""
  15679. #. type: Plain text
  15680. #: guix-git/doc/guix.texi:9949
  15681. 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:"
  15682. msgstr ""
  15683. #. type: itemize
  15684. #: guix-git/doc/guix.texi:9954
  15685. msgid "The outputs of the derivation---derivations produce at least one file or directory in the store, but may produce more."
  15686. msgstr ""
  15687. #. type: cindex
  15688. #: guix-git/doc/guix.texi:9956
  15689. #, no-wrap
  15690. msgid "build-time dependencies"
  15691. msgstr ""
  15692. #. type: cindex
  15693. #: guix-git/doc/guix.texi:9957
  15694. #, no-wrap
  15695. msgid "dependencies, build-time"
  15696. msgstr ""
  15697. #. type: itemize
  15698. #: guix-git/doc/guix.texi:9961
  15699. 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.)."
  15700. msgstr ""
  15701. #. type: itemize
  15702. #: guix-git/doc/guix.texi:9964
  15703. msgid "The system type targeted by the derivation---e.g., @code{x86_64-linux}."
  15704. msgstr ""
  15705. #. type: itemize
  15706. #: guix-git/doc/guix.texi:9968
  15707. msgid "The file name of a build script in the store, along with the arguments to be passed."
  15708. msgstr ""
  15709. #. type: itemize
  15710. #: guix-git/doc/guix.texi:9971
  15711. msgid "A list of environment variables to be defined."
  15712. msgstr ""
  15713. #. type: cindex
  15714. #: guix-git/doc/guix.texi:9974
  15715. #, no-wrap
  15716. msgid "derivation path"
  15717. msgstr ""
  15718. #. type: Plain text
  15719. #: guix-git/doc/guix.texi:9982
  15720. 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})."
  15721. msgstr ""
  15722. #. type: cindex
  15723. #: guix-git/doc/guix.texi:9983
  15724. #, no-wrap
  15725. msgid "fixed-output derivations"
  15726. msgstr ""
  15727. #. type: Plain text
  15728. #: guix-git/doc/guix.texi:9990
  15729. 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."
  15730. msgstr ""
  15731. #. type: item
  15732. #: guix-git/doc/guix.texi:9991 guix-git/doc/guix.texi:13804
  15733. #, no-wrap
  15734. msgid "references"
  15735. msgstr ""
  15736. #. type: cindex
  15737. #: guix-git/doc/guix.texi:9992
  15738. #, no-wrap
  15739. msgid "run-time dependencies"
  15740. msgstr ""
  15741. #. type: cindex
  15742. #: guix-git/doc/guix.texi:9993
  15743. #, no-wrap
  15744. msgid "dependencies, run-time"
  15745. msgstr ""
  15746. #. type: Plain text
  15747. #: guix-git/doc/guix.texi:10000
  15748. 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."
  15749. msgstr ""
  15750. #. type: Plain text
  15751. #: guix-git/doc/guix.texi:10005
  15752. 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:"
  15753. msgstr ""
  15754. #. type: deffn
  15755. #: guix-git/doc/guix.texi:10006
  15756. #, no-wrap
  15757. msgid "{Scheme Procedure} derivation @var{store} @var{name} @var{builder} @"
  15758. msgstr ""
  15759. #. type: deffn
  15760. #: guix-git/doc/guix.texi:10015
  15761. 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."
  15762. msgstr ""
  15763. #. type: deffn
  15764. #: guix-git/doc/guix.texi:10022
  15765. 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."
  15766. msgstr ""
  15767. #. type: deffn
  15768. #: guix-git/doc/guix.texi:10027
  15769. 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."
  15770. msgstr ""
  15771. #. type: deffn
  15772. #: guix-git/doc/guix.texi:10032
  15773. 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."
  15774. msgstr ""
  15775. #. type: deffn
  15776. #: guix-git/doc/guix.texi:10039
  15777. 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."
  15778. msgstr ""
  15779. #. type: deffn
  15780. #: guix-git/doc/guix.texi:10044
  15781. 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."
  15782. msgstr ""
  15783. #. type: deffn
  15784. #: guix-git/doc/guix.texi:10049
  15785. 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."
  15786. msgstr ""
  15787. #. type: deffn
  15788. #: guix-git/doc/guix.texi:10052
  15789. msgid "@var{properties} must be an association list describing ``properties'' of the derivation. It is kept as-is, uninterpreted, in the derivation."
  15790. msgstr ""
  15791. #. type: Plain text
  15792. #: guix-git/doc/guix.texi:10058
  15793. 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:"
  15794. msgstr ""
  15795. #. type: lisp
  15796. #: guix-git/doc/guix.texi:10063
  15797. #, no-wrap
  15798. msgid ""
  15799. "(use-modules (guix utils)\n"
  15800. " (guix store)\n"
  15801. " (guix derivations))\n"
  15802. "\n"
  15803. msgstr ""
  15804. #. type: lisp
  15805. #: guix-git/doc/guix.texi:10072
  15806. #, no-wrap
  15807. msgid ""
  15808. "(let ((builder ; add the Bash script to the store\n"
  15809. " (add-text-to-store store \"my-builder.sh\"\n"
  15810. " \"echo hello world > $out\\n\" '())))\n"
  15811. " (derivation store \"foo\"\n"
  15812. " bash `(\"-e\" ,builder)\n"
  15813. " #:inputs `((,bash) (,builder))\n"
  15814. " #:env-vars '((\"HOME\" . \"/homeless\"))))\n"
  15815. "@result{} #<derivation /gnu/store/@dots{}-foo.drv => /gnu/store/@dots{}-foo>\n"
  15816. msgstr ""
  15817. #. type: Plain text
  15818. #: guix-git/doc/guix.texi:10079
  15819. 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}."
  15820. msgstr ""
  15821. #. type: Plain text
  15822. #: guix-git/doc/guix.texi:10084
  15823. 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}."
  15824. msgstr ""
  15825. #. type: deffn
  15826. #: guix-git/doc/guix.texi:10085
  15827. #, no-wrap
  15828. msgid "{Scheme Procedure} build-expression->derivation @var{store} @"
  15829. msgstr ""
  15830. #. type: deffn
  15831. #: guix-git/doc/guix.texi:10101
  15832. 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))}."
  15833. msgstr ""
  15834. #. type: deffn
  15835. #: guix-git/doc/guix.texi:10109
  15836. 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."
  15837. msgstr ""
  15838. #. type: deffn
  15839. #: guix-git/doc/guix.texi:10113
  15840. 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."
  15841. msgstr ""
  15842. #. type: deffn
  15843. #: guix-git/doc/guix.texi:10118
  15844. 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?}."
  15845. msgstr ""
  15846. #. type: Plain text
  15847. #: guix-git/doc/guix.texi:10123
  15848. msgid "Here's an example of a single-output derivation that creates a directory containing one file:"
  15849. msgstr ""
  15850. #. type: lisp
  15851. #: guix-git/doc/guix.texi:10131
  15852. #, no-wrap
  15853. msgid ""
  15854. "(let ((builder '(let ((out (assoc-ref %outputs \"out\")))\n"
  15855. " (mkdir out) ; create /gnu/store/@dots{}-goo\n"
  15856. " (call-with-output-file (string-append out \"/test\")\n"
  15857. " (lambda (p)\n"
  15858. " (display '(hello guix) p))))))\n"
  15859. " (build-expression->derivation store \"goo\" builder))\n"
  15860. "\n"
  15861. msgstr ""
  15862. #. type: lisp
  15863. #: guix-git/doc/guix.texi:10133
  15864. #, no-wrap
  15865. msgid "@result{} #<derivation /gnu/store/@dots{}-goo.drv => @dots{}>\n"
  15866. msgstr ""
  15867. #. type: cindex
  15868. #: guix-git/doc/guix.texi:10139
  15869. #, no-wrap
  15870. msgid "monad"
  15871. msgstr ""
  15872. #. type: Plain text
  15873. #: guix-git/doc/guix.texi:10145
  15874. 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."
  15875. msgstr ""
  15876. #. type: Plain text
  15877. #: guix-git/doc/guix.texi:10151
  15878. 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."
  15879. msgstr ""
  15880. #. type: cindex
  15881. #: guix-git/doc/guix.texi:10152
  15882. #, no-wrap
  15883. msgid "monadic values"
  15884. msgstr ""
  15885. #. type: cindex
  15886. #: guix-git/doc/guix.texi:10153
  15887. #, no-wrap
  15888. msgid "monadic functions"
  15889. msgstr ""
  15890. #. type: Plain text
  15891. #: guix-git/doc/guix.texi:10163
  15892. 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}."
  15893. msgstr ""
  15894. #. type: Plain text
  15895. #: guix-git/doc/guix.texi:10165
  15896. msgid "Consider this ``normal'' procedure:"
  15897. msgstr ""
  15898. #. type: lisp
  15899. #: guix-git/doc/guix.texi:10174
  15900. #, no-wrap
  15901. msgid ""
  15902. "(define (sh-symlink store)\n"
  15903. " ;; Return a derivation that symlinks the 'bash' executable.\n"
  15904. " (let* ((drv (package-derivation store bash))\n"
  15905. " (out (derivation->output-path drv))\n"
  15906. " (sh (string-append out \"/bin/bash\")))\n"
  15907. " (build-expression->derivation store \"sh\"\n"
  15908. " `(symlink ,sh %output))))\n"
  15909. msgstr ""
  15910. #. type: Plain text
  15911. #: guix-git/doc/guix.texi:10178
  15912. msgid "Using @code{(guix monads)} and @code{(guix gexp)}, it may be rewritten as a monadic function:"
  15913. msgstr ""
  15914. #. type: lisp
  15915. #: guix-git/doc/guix.texi:10186
  15916. #, no-wrap
  15917. msgid ""
  15918. "(define (sh-symlink)\n"
  15919. " ;; Same, but return a monadic value.\n"
  15920. " (mlet %store-monad ((drv (package->derivation bash)))\n"
  15921. " (gexp->derivation \"sh\"\n"
  15922. " #~(symlink (string-append #$drv \"/bin/bash\")\n"
  15923. " #$output))))\n"
  15924. msgstr ""
  15925. #. type: Plain text
  15926. #: guix-git/doc/guix.texi:10193
  15927. 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}."
  15928. msgstr ""
  15929. #. type: Plain text
  15930. #: guix-git/doc/guix.texi:10197
  15931. 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}):"
  15932. msgstr ""
  15933. #. type: lisp
  15934. #: guix-git/doc/guix.texi:10203
  15935. #, no-wrap
  15936. msgid ""
  15937. "(define (sh-symlink)\n"
  15938. " (gexp->derivation \"sh\"\n"
  15939. " #~(symlink (string-append #$bash \"/bin/bash\")\n"
  15940. " #$output)))\n"
  15941. msgstr ""
  15942. #. type: Plain text
  15943. #: guix-git/doc/guix.texi:10212
  15944. 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}:"
  15945. msgstr ""
  15946. #. type: lisp
  15947. #: guix-git/doc/guix.texi:10216
  15948. #, no-wrap
  15949. msgid ""
  15950. "(run-with-store (open-connection) (sh-symlink))\n"
  15951. "@result{} /gnu/store/...-sh-symlink\n"
  15952. msgstr ""
  15953. #. type: Plain text
  15954. #: guix-git/doc/guix.texi:10222
  15955. 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:"
  15956. msgstr ""
  15957. #. type: example
  15958. #: guix-git/doc/guix.texi:10226
  15959. #, no-wrap
  15960. msgid ""
  15961. "scheme@@(guile-user)> ,run-in-store (package->derivation hello)\n"
  15962. "$1 = #<derivation /gnu/store/@dots{}-hello-2.9.drv => @dots{}>\n"
  15963. msgstr ""
  15964. #. type: Plain text
  15965. #: guix-git/doc/guix.texi:10230
  15966. msgid "The latter enters a recursive REPL, where all the return values are automatically run through the store:"
  15967. msgstr ""
  15968. #. type: example
  15969. #: guix-git/doc/guix.texi:10239
  15970. #, no-wrap
  15971. msgid ""
  15972. "scheme@@(guile-user)> ,enter-store-monad\n"
  15973. "store-monad@@(guile-user) [1]> (package->derivation hello)\n"
  15974. "$2 = #<derivation /gnu/store/@dots{}-hello-2.9.drv => @dots{}>\n"
  15975. "store-monad@@(guile-user) [1]> (text-file \"foo\" \"Hello!\")\n"
  15976. "$3 = \"/gnu/store/@dots{}-foo\"\n"
  15977. "store-monad@@(guile-user) [1]> ,q\n"
  15978. "scheme@@(guile-user)>\n"
  15979. msgstr ""
  15980. #. type: Plain text
  15981. #: guix-git/doc/guix.texi:10244
  15982. msgid "Note that non-monadic values cannot be returned in the @code{store-monad} REPL."
  15983. msgstr ""
  15984. #. type: Plain text
  15985. #: guix-git/doc/guix.texi:10247
  15986. msgid "The main syntactic forms to deal with monads in general are provided by the @code{(guix monads)} module and are described below."
  15987. msgstr ""
  15988. #. type: deffn
  15989. #: guix-git/doc/guix.texi:10248
  15990. #, no-wrap
  15991. msgid "{Scheme Syntax} with-monad @var{monad} @var{body} ..."
  15992. msgstr ""
  15993. #. type: deffn
  15994. #: guix-git/doc/guix.texi:10251
  15995. msgid "Evaluate any @code{>>=} or @code{return} forms in @var{body} as being in @var{monad}."
  15996. msgstr ""
  15997. #. type: deffn
  15998. #: guix-git/doc/guix.texi:10253
  15999. #, no-wrap
  16000. msgid "{Scheme Syntax} return @var{val}"
  16001. msgstr ""
  16002. #. type: deffn
  16003. #: guix-git/doc/guix.texi:10255
  16004. msgid "Return a monadic value that encapsulates @var{val}."
  16005. msgstr ""
  16006. #. type: deffn
  16007. #: guix-git/doc/guix.texi:10257
  16008. #, no-wrap
  16009. msgid "{Scheme Syntax} >>= @var{mval} @var{mproc} ..."
  16010. msgstr ""
  16011. #. type: deffn
  16012. #: guix-git/doc/guix.texi:10264
  16013. 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:"
  16014. msgstr ""
  16015. #. type: lisp
  16016. #: guix-git/doc/guix.texi:10272
  16017. #, no-wrap
  16018. msgid ""
  16019. "(run-with-state\n"
  16020. " (with-monad %state-monad\n"
  16021. " (>>= (return 1)\n"
  16022. " (lambda (x) (return (+ 1 x)))\n"
  16023. " (lambda (x) (return (* 2 x)))))\n"
  16024. " 'some-state)\n"
  16025. "\n"
  16026. msgstr ""
  16027. #. type: lisp
  16028. #: guix-git/doc/guix.texi:10275
  16029. #, no-wrap
  16030. msgid ""
  16031. "@result{} 4\n"
  16032. "@result{} some-state\n"
  16033. msgstr ""
  16034. #. type: deffn
  16035. #: guix-git/doc/guix.texi:10278
  16036. #, no-wrap
  16037. msgid "{Scheme Syntax} mlet @var{monad} ((@var{var} @var{mval}) ...) @"
  16038. msgstr ""
  16039. #. type: deffn
  16040. #: guix-git/doc/guix.texi:10280
  16041. msgid "@var{body} ..."
  16042. msgstr ""
  16043. #. type: deffnx
  16044. #: guix-git/doc/guix.texi:10280
  16045. #, no-wrap
  16046. msgid "{Scheme Syntax} mlet* @var{monad} ((@var{var} @var{mval}) ...) @"
  16047. msgstr ""
  16048. #. type: deffn
  16049. #: guix-git/doc/guix.texi:10292
  16050. 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}."
  16051. msgstr ""
  16052. #. type: deffn
  16053. #: guix-git/doc/guix.texi:10295
  16054. msgid "@code{mlet*} is to @code{mlet} what @code{let*} is to @code{let} (@pxref{Local Bindings,,, guile, GNU Guile Reference Manual})."
  16055. msgstr ""
  16056. #. type: deffn
  16057. #: guix-git/doc/guix.texi:10297
  16058. #, no-wrap
  16059. msgid "{Scheme System} mbegin @var{monad} @var{mexp} ..."
  16060. msgstr ""
  16061. #. type: deffn
  16062. #: guix-git/doc/guix.texi:10301
  16063. 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."
  16064. msgstr ""
  16065. #. type: deffn
  16066. #: guix-git/doc/guix.texi:10305
  16067. 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."
  16068. msgstr ""
  16069. #. type: deffn
  16070. #: guix-git/doc/guix.texi:10307
  16071. #, no-wrap
  16072. msgid "{Scheme System} mwhen @var{condition} @var{mexp0} @var{mexp*} ..."
  16073. msgstr ""
  16074. #. type: deffn
  16075. #: guix-git/doc/guix.texi:10312
  16076. 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."
  16077. msgstr ""
  16078. #. type: deffn
  16079. #: guix-git/doc/guix.texi:10314
  16080. #, no-wrap
  16081. msgid "{Scheme System} munless @var{condition} @var{mexp0} @var{mexp*} ..."
  16082. msgstr ""
  16083. #. type: deffn
  16084. #: guix-git/doc/guix.texi:10319
  16085. 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."
  16086. msgstr ""
  16087. #. type: cindex
  16088. #: guix-git/doc/guix.texi:10321
  16089. #, no-wrap
  16090. msgid "state monad"
  16091. msgstr ""
  16092. #. type: Plain text
  16093. #: guix-git/doc/guix.texi:10325
  16094. 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."
  16095. msgstr ""
  16096. #. type: defvr
  16097. #: guix-git/doc/guix.texi:10326
  16098. #, no-wrap
  16099. msgid "{Scheme Variable} %state-monad"
  16100. msgstr ""
  16101. #. type: defvr
  16102. #: guix-git/doc/guix.texi:10329
  16103. msgid "The state monad. Procedures in the state monad can access and change the state that is threaded."
  16104. msgstr ""
  16105. #. type: defvr
  16106. #: guix-git/doc/guix.texi:10333
  16107. 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:"
  16108. msgstr ""
  16109. #. type: lisp
  16110. #: guix-git/doc/guix.texi:10340
  16111. #, no-wrap
  16112. msgid ""
  16113. "(define (square x)\n"
  16114. " (mlet %state-monad ((count (current-state)))\n"
  16115. " (mbegin %state-monad\n"
  16116. " (set-current-state (+ 1 count))\n"
  16117. " (return (* x x)))))\n"
  16118. "\n"
  16119. msgstr ""
  16120. #. type: lisp
  16121. #: guix-git/doc/guix.texi:10344
  16122. #, no-wrap
  16123. msgid ""
  16124. "(run-with-state (sequence %state-monad (map square (iota 3))) 0)\n"
  16125. "@result{} (0 1 4)\n"
  16126. "@result{} 3\n"
  16127. msgstr ""
  16128. #. type: defvr
  16129. #: guix-git/doc/guix.texi:10348
  16130. msgid "When ``run'' through @code{%state-monad}, we obtain that additional state value, which is the number of @code{square} calls."
  16131. msgstr ""
  16132. #. type: deffn
  16133. #: guix-git/doc/guix.texi:10350
  16134. #, no-wrap
  16135. msgid "{Monadic Procedure} current-state"
  16136. msgstr ""
  16137. #. type: deffn
  16138. #: guix-git/doc/guix.texi:10352
  16139. msgid "Return the current state as a monadic value."
  16140. msgstr ""
  16141. #. type: deffn
  16142. #: guix-git/doc/guix.texi:10354
  16143. #, no-wrap
  16144. msgid "{Monadic Procedure} set-current-state @var{value}"
  16145. msgstr ""
  16146. #. type: deffn
  16147. #: guix-git/doc/guix.texi:10357
  16148. msgid "Set the current state to @var{value} and return the previous state as a monadic value."
  16149. msgstr ""
  16150. #. type: deffn
  16151. #: guix-git/doc/guix.texi:10359
  16152. #, no-wrap
  16153. msgid "{Monadic Procedure} state-push @var{value}"
  16154. msgstr ""
  16155. #. type: deffn
  16156. #: guix-git/doc/guix.texi:10362
  16157. msgid "Push @var{value} to the current state, which is assumed to be a list, and return the previous state as a monadic value."
  16158. msgstr ""
  16159. #. type: deffn
  16160. #: guix-git/doc/guix.texi:10364
  16161. #, no-wrap
  16162. msgid "{Monadic Procedure} state-pop"
  16163. msgstr ""
  16164. #. type: deffn
  16165. #: guix-git/doc/guix.texi:10367
  16166. msgid "Pop a value from the current state and return it as a monadic value. The state is assumed to be a list."
  16167. msgstr ""
  16168. #. type: deffn
  16169. #: guix-git/doc/guix.texi:10369
  16170. #, no-wrap
  16171. msgid "{Scheme Procedure} run-with-state @var{mval} [@var{state}]"
  16172. msgstr ""
  16173. #. type: deffn
  16174. #: guix-git/doc/guix.texi:10372
  16175. msgid "Run monadic value @var{mval} starting with @var{state} as the initial state. Return two values: the resulting value, and the resulting state."
  16176. msgstr ""
  16177. #. type: Plain text
  16178. #: guix-git/doc/guix.texi:10376
  16179. msgid "The main interface to the store monad, provided by the @code{(guix store)} module, is as follows."
  16180. msgstr ""
  16181. #. type: defvr
  16182. #: guix-git/doc/guix.texi:10377
  16183. #, no-wrap
  16184. msgid "{Scheme Variable} %store-monad"
  16185. msgstr ""
  16186. #. type: defvr
  16187. #: guix-git/doc/guix.texi:10379
  16188. msgid "The store monad---an alias for @code{%state-monad}."
  16189. msgstr ""
  16190. #. type: defvr
  16191. #: guix-git/doc/guix.texi:10383
  16192. 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)."
  16193. msgstr ""
  16194. #. type: deffn
  16195. #: guix-git/doc/guix.texi:10385
  16196. #, no-wrap
  16197. msgid "{Scheme Procedure} run-with-store @var{store} @var{mval} [#:guile-for-build] [#:system (%current-system)]"
  16198. msgstr ""
  16199. #. type: deffn
  16200. #: guix-git/doc/guix.texi:10388
  16201. msgid "Run @var{mval}, a monadic value in the store monad, in @var{store}, an open store connection."
  16202. msgstr ""
  16203. #. type: deffn
  16204. #: guix-git/doc/guix.texi:10390
  16205. #, no-wrap
  16206. msgid "{Monadic Procedure} text-file @var{name} @var{text} [@var{references}]"
  16207. msgstr ""
  16208. #. type: deffn
  16209. #: guix-git/doc/guix.texi:10394
  16210. 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."
  16211. msgstr ""
  16212. #. type: deffn
  16213. #: guix-git/doc/guix.texi:10396
  16214. #, no-wrap
  16215. msgid "{Monadic Procedure} binary-file @var{name} @var{data} [@var{references}]"
  16216. msgstr ""
  16217. #. type: deffn
  16218. #: guix-git/doc/guix.texi:10400
  16219. 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."
  16220. msgstr ""
  16221. #. type: deffn
  16222. #: guix-git/doc/guix.texi:10402
  16223. #, no-wrap
  16224. msgid "{Monadic Procedure} interned-file @var{file} [@var{name}] @"
  16225. msgstr ""
  16226. #. type: deffn
  16227. #: guix-git/doc/guix.texi:10407
  16228. 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."
  16229. msgstr ""
  16230. #. type: deffn
  16231. #: guix-git/doc/guix.texi:10411 guix-git/doc/guix.texi:10834
  16232. 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."
  16233. msgstr ""
  16234. #. type: deffn
  16235. #: guix-git/doc/guix.texi:10416 guix-git/doc/guix.texi:10839
  16236. 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."
  16237. msgstr ""
  16238. #. type: deffn
  16239. #: guix-git/doc/guix.texi:10418
  16240. msgid "The example below adds a file to the store, under two different names:"
  16241. msgstr ""
  16242. #. type: lisp
  16243. #: guix-git/doc/guix.texi:10424
  16244. #, no-wrap
  16245. msgid ""
  16246. "(run-with-store (open-connection)\n"
  16247. " (mlet %store-monad ((a (interned-file \"README\"))\n"
  16248. " (b (interned-file \"README\" \"LEGU-MIN\")))\n"
  16249. " (return (list a b))))\n"
  16250. "\n"
  16251. msgstr ""
  16252. #. type: lisp
  16253. #: guix-git/doc/guix.texi:10426
  16254. #, no-wrap
  16255. msgid "@result{} (\"/gnu/store/rwm@dots{}-README\" \"/gnu/store/44i@dots{}-LEGU-MIN\")\n"
  16256. msgstr ""
  16257. #. type: Plain text
  16258. #: guix-git/doc/guix.texi:10432
  16259. msgid "The @code{(guix packages)} module exports the following package-related monadic procedures:"
  16260. msgstr ""
  16261. #. type: deffn
  16262. #: guix-git/doc/guix.texi:10433
  16263. #, no-wrap
  16264. msgid "{Monadic Procedure} package-file @var{package} [@var{file}] @"
  16265. msgstr ""
  16266. #. type: deffn
  16267. #: guix-git/doc/guix.texi:10441
  16268. 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."
  16269. msgstr ""
  16270. #. type: deffn
  16271. #: guix-git/doc/guix.texi:10445
  16272. 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."
  16273. msgstr ""
  16274. #. type: deffn
  16275. #: guix-git/doc/guix.texi:10447
  16276. #, no-wrap
  16277. msgid "{Monadic Procedure} package->derivation @var{package} [@var{system}]"
  16278. msgstr ""
  16279. #. type: deffnx
  16280. #: guix-git/doc/guix.texi:10448
  16281. #, no-wrap
  16282. msgid "{Monadic Procedure} package->cross-derivation @var{package} @"
  16283. msgstr ""
  16284. #. type: deffn
  16285. #: guix-git/doc/guix.texi:10452
  16286. msgid "@var{target} [@var{system}] Monadic version of @code{package-derivation} and @code{package-cross-derivation} (@pxref{Defining Packages})."
  16287. msgstr ""
  16288. #. type: cindex
  16289. #: guix-git/doc/guix.texi:10458
  16290. #, no-wrap
  16291. msgid "G-expression"
  16292. msgstr ""
  16293. #. type: cindex
  16294. #: guix-git/doc/guix.texi:10459
  16295. #, no-wrap
  16296. msgid "build code quoting"
  16297. msgstr ""
  16298. #. type: Plain text
  16299. #: guix-git/doc/guix.texi:10465
  16300. 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})."
  16301. msgstr ""
  16302. #. type: cindex
  16303. #: guix-git/doc/guix.texi:10468
  16304. #, no-wrap
  16305. msgid "strata of code"
  16306. msgstr ""
  16307. #. type: Plain text
  16308. #: guix-git/doc/guix.texi:10480
  16309. 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})."
  16310. msgstr ""
  16311. #. type: Plain text
  16312. #: guix-git/doc/guix.texi:10487
  16313. 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."
  16314. msgstr ""
  16315. #. type: Plain text
  16316. #: guix-git/doc/guix.texi:10496
  16317. 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:"
  16318. msgstr ""
  16319. #. type: itemize
  16320. #: guix-git/doc/guix.texi:10501
  16321. msgid "Gexps are meant to be written to a file and run or manipulated by other processes."
  16322. msgstr ""
  16323. #. type: itemize
  16324. #: guix-git/doc/guix.texi:10506
  16325. 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."
  16326. msgstr ""
  16327. #. type: itemize
  16328. #: guix-git/doc/guix.texi:10511
  16329. 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."
  16330. msgstr ""
  16331. #. type: cindex
  16332. #: guix-git/doc/guix.texi:10513 guix-git/doc/guix.texi:11070
  16333. #, no-wrap
  16334. msgid "lowering, of high-level objects in gexps"
  16335. msgstr ""
  16336. #. type: Plain text
  16337. #: guix-git/doc/guix.texi:10523
  16338. 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)."
  16339. msgstr ""
  16340. #. type: Plain text
  16341. #: guix-git/doc/guix.texi:10525
  16342. msgid "To illustrate the idea, here is an example of a gexp:"
  16343. msgstr ""
  16344. #. type: lisp
  16345. #: guix-git/doc/guix.texi:10533
  16346. #, no-wrap
  16347. msgid ""
  16348. "(define build-exp\n"
  16349. " #~(begin\n"
  16350. " (mkdir #$output)\n"
  16351. " (chdir #$output)\n"
  16352. " (symlink (string-append #$coreutils \"/bin/ls\")\n"
  16353. " \"list-files\")))\n"
  16354. msgstr ""
  16355. #. type: Plain text
  16356. #: guix-git/doc/guix.texi:10538
  16357. 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}:"
  16358. msgstr ""
  16359. #. type: lisp
  16360. #: guix-git/doc/guix.texi:10541
  16361. #, no-wrap
  16362. msgid "(gexp->derivation \"the-thing\" build-exp)\n"
  16363. msgstr ""
  16364. #. type: Plain text
  16365. #: guix-git/doc/guix.texi:10549
  16366. 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."
  16367. msgstr ""
  16368. #. type: cindex
  16369. #: guix-git/doc/guix.texi:10550
  16370. #, no-wrap
  16371. msgid "cross compilation"
  16372. msgstr ""
  16373. #. type: Plain text
  16374. #: guix-git/doc/guix.texi:10556
  16375. 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:"
  16376. msgstr ""
  16377. #. type: lisp
  16378. #: guix-git/doc/guix.texi:10567
  16379. #, no-wrap
  16380. msgid ""
  16381. "(gexp->derivation \"vi\"\n"
  16382. " #~(begin\n"
  16383. " (mkdir #$output)\n"
  16384. " (mkdir (string-append #$output \"/bin\"))\n"
  16385. " (system* (string-append #+coreutils \"/bin/ln\")\n"
  16386. " \"-s\"\n"
  16387. " (string-append #$emacs \"/bin/emacs\")\n"
  16388. " (string-append #$output \"/bin/vi\")))\n"
  16389. " #:target \"aarch64-linux-gnu\")\n"
  16390. msgstr ""
  16391. #. type: Plain text
  16392. #: guix-git/doc/guix.texi:10573
  16393. 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."
  16394. msgstr ""
  16395. #. type: cindex
  16396. #: guix-git/doc/guix.texi:10574
  16397. #, no-wrap
  16398. msgid "imported modules, for gexps"
  16399. msgstr ""
  16400. #. type: findex
  16401. #: guix-git/doc/guix.texi:10575
  16402. #, no-wrap
  16403. msgid "with-imported-modules"
  16404. msgstr ""
  16405. #. type: Plain text
  16406. #: guix-git/doc/guix.texi:10580
  16407. 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:"
  16408. msgstr ""
  16409. #. type: lisp
  16410. #: guix-git/doc/guix.texi:10591
  16411. #, no-wrap
  16412. msgid ""
  16413. "(let ((build (with-imported-modules '((guix build utils))\n"
  16414. " #~(begin\n"
  16415. " (use-modules (guix build utils))\n"
  16416. " (mkdir-p (string-append #$output \"/bin\"))))))\n"
  16417. " (gexp->derivation \"empty-dir\"\n"
  16418. " #~(begin\n"
  16419. " #$build\n"
  16420. " (display \"success!\\n\")\n"
  16421. " #t)))\n"
  16422. msgstr ""
  16423. #. type: Plain text
  16424. #: guix-git/doc/guix.texi:10597
  16425. 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."
  16426. msgstr ""
  16427. #. type: cindex
  16428. #: guix-git/doc/guix.texi:10598
  16429. #, no-wrap
  16430. msgid "module closure"
  16431. msgstr ""
  16432. #. type: findex
  16433. #: guix-git/doc/guix.texi:10599
  16434. #, no-wrap
  16435. msgid "source-module-closure"
  16436. msgstr ""
  16437. #. type: Plain text
  16438. #: guix-git/doc/guix.texi:10606
  16439. 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:"
  16440. msgstr ""
  16441. #. type: lisp
  16442. #: guix-git/doc/guix.texi:10609
  16443. #, no-wrap
  16444. msgid ""
  16445. "(use-modules (guix modules)) ;for 'source-module-closure'\n"
  16446. "\n"
  16447. msgstr ""
  16448. #. type: lisp
  16449. #: guix-git/doc/guix.texi:10618
  16450. #, no-wrap
  16451. msgid ""
  16452. "(with-imported-modules (source-module-closure\n"
  16453. " '((guix build utils)\n"
  16454. " (gnu build image)))\n"
  16455. " (gexp->derivation \"something-with-vms\"\n"
  16456. " #~(begin\n"
  16457. " (use-modules (guix build utils)\n"
  16458. " (gnu build image))\n"
  16459. " @dots{})))\n"
  16460. msgstr ""
  16461. #. type: cindex
  16462. #: guix-git/doc/guix.texi:10620
  16463. #, no-wrap
  16464. msgid "extensions, for gexps"
  16465. msgstr ""
  16466. #. type: findex
  16467. #: guix-git/doc/guix.texi:10621
  16468. #, no-wrap
  16469. msgid "with-extensions"
  16470. msgstr ""
  16471. #. type: Plain text
  16472. #: guix-git/doc/guix.texi:10626
  16473. 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:"
  16474. msgstr ""
  16475. #. type: lisp
  16476. #: guix-git/doc/guix.texi:10629
  16477. #, no-wrap
  16478. msgid ""
  16479. "(use-modules (gnu packages guile)) ;for 'guile-json'\n"
  16480. "\n"
  16481. msgstr ""
  16482. #. type: lisp
  16483. #: guix-git/doc/guix.texi:10635
  16484. #, no-wrap
  16485. msgid ""
  16486. "(with-extensions (list guile-json)\n"
  16487. " (gexp->derivation \"something-with-json\"\n"
  16488. " #~(begin\n"
  16489. " (use-modules (json))\n"
  16490. " @dots{})))\n"
  16491. msgstr ""
  16492. #. type: Plain text
  16493. #: guix-git/doc/guix.texi:10638
  16494. msgid "The syntactic form to construct gexps is summarized below."
  16495. msgstr ""
  16496. #. type: deffn
  16497. #: guix-git/doc/guix.texi:10639
  16498. #, no-wrap
  16499. msgid "{Scheme Syntax} #~@var{exp}"
  16500. msgstr ""
  16501. #. type: deffnx
  16502. #: guix-git/doc/guix.texi:10640
  16503. #, no-wrap
  16504. msgid "{Scheme Syntax} (gexp @var{exp})"
  16505. msgstr ""
  16506. #. type: deffn
  16507. #: guix-git/doc/guix.texi:10643
  16508. msgid "Return a G-expression containing @var{exp}. @var{exp} may contain one or more of the following forms:"
  16509. msgstr ""
  16510. #. type: item
  16511. #: guix-git/doc/guix.texi:10645
  16512. #, no-wrap
  16513. msgid "#$@var{obj}"
  16514. msgstr ""
  16515. #. type: itemx
  16516. #: guix-git/doc/guix.texi:10646
  16517. #, no-wrap
  16518. msgid "(ungexp @var{obj})"
  16519. msgstr ""
  16520. #. type: table
  16521. #: guix-git/doc/guix.texi:10651
  16522. 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}."
  16523. msgstr ""
  16524. #. type: table
  16525. #: guix-git/doc/guix.texi:10654
  16526. msgid "If @var{obj} is a list, it is traversed and references to supported objects are substituted similarly."
  16527. msgstr ""
  16528. #. type: table
  16529. #: guix-git/doc/guix.texi:10657
  16530. msgid "If @var{obj} is another gexp, its contents are inserted and its dependencies are added to those of the containing gexp."
  16531. msgstr ""
  16532. #. type: table
  16533. #: guix-git/doc/guix.texi:10659
  16534. msgid "If @var{obj} is another kind of object, it is inserted as is."
  16535. msgstr ""
  16536. #. type: item
  16537. #: guix-git/doc/guix.texi:10660
  16538. #, no-wrap
  16539. msgid "#$@var{obj}:@var{output}"
  16540. msgstr ""
  16541. #. type: itemx
  16542. #: guix-git/doc/guix.texi:10661
  16543. #, no-wrap
  16544. msgid "(ungexp @var{obj} @var{output})"
  16545. msgstr ""
  16546. #. type: table
  16547. #: guix-git/doc/guix.texi:10665
  16548. 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})."
  16549. msgstr ""
  16550. #. type: item
  16551. #: guix-git/doc/guix.texi:10666
  16552. #, no-wrap
  16553. msgid "#+@var{obj}"
  16554. msgstr ""
  16555. #. type: itemx
  16556. #: guix-git/doc/guix.texi:10667
  16557. #, no-wrap
  16558. msgid "#+@var{obj}:output"
  16559. msgstr ""
  16560. #. type: itemx
  16561. #: guix-git/doc/guix.texi:10668
  16562. #, no-wrap
  16563. msgid "(ungexp-native @var{obj})"
  16564. msgstr ""
  16565. #. type: itemx
  16566. #: guix-git/doc/guix.texi:10669
  16567. #, no-wrap
  16568. msgid "(ungexp-native @var{obj} @var{output})"
  16569. msgstr ""
  16570. #. type: table
  16571. #: guix-git/doc/guix.texi:10672
  16572. msgid "Same as @code{ungexp}, but produces a reference to the @emph{native} build of @var{obj} when used in a cross compilation context."
  16573. msgstr ""
  16574. #. type: item
  16575. #: guix-git/doc/guix.texi:10673
  16576. #, no-wrap
  16577. msgid "#$output[:@var{output}]"
  16578. msgstr ""
  16579. #. type: itemx
  16580. #: guix-git/doc/guix.texi:10674
  16581. #, no-wrap
  16582. msgid "(ungexp output [@var{output}])"
  16583. msgstr ""
  16584. #. type: table
  16585. #: guix-git/doc/guix.texi:10677
  16586. msgid "Insert a reference to derivation output @var{output}, or to the main output when @var{output} is omitted."
  16587. msgstr ""
  16588. #. type: table
  16589. #: guix-git/doc/guix.texi:10679
  16590. msgid "This only makes sense for gexps passed to @code{gexp->derivation}."
  16591. msgstr ""
  16592. #. type: item
  16593. #: guix-git/doc/guix.texi:10680
  16594. #, no-wrap
  16595. msgid "#$@@@var{lst}"
  16596. msgstr ""
  16597. #. type: itemx
  16598. #: guix-git/doc/guix.texi:10681
  16599. #, no-wrap
  16600. msgid "(ungexp-splicing @var{lst})"
  16601. msgstr ""
  16602. #. type: table
  16603. #: guix-git/doc/guix.texi:10684
  16604. msgid "Like the above, but splices the contents of @var{lst} inside the containing list."
  16605. msgstr ""
  16606. #. type: item
  16607. #: guix-git/doc/guix.texi:10685
  16608. #, no-wrap
  16609. msgid "#+@@@var{lst}"
  16610. msgstr ""
  16611. #. type: itemx
  16612. #: guix-git/doc/guix.texi:10686
  16613. #, no-wrap
  16614. msgid "(ungexp-native-splicing @var{lst})"
  16615. msgstr ""
  16616. #. type: table
  16617. #: guix-git/doc/guix.texi:10689
  16618. msgid "Like the above, but refers to native builds of the objects listed in @var{lst}."
  16619. msgstr ""
  16620. #. type: deffn
  16621. #: guix-git/doc/guix.texi:10694
  16622. msgid "G-expressions created by @code{gexp} or @code{#~} are run-time objects of the @code{gexp?} type (see below)."
  16623. msgstr ""
  16624. #. type: deffn
  16625. #: guix-git/doc/guix.texi:10696
  16626. #, no-wrap
  16627. msgid "{Scheme Syntax} with-imported-modules @var{modules} @var{body}@dots{}"
  16628. msgstr ""
  16629. #. type: deffn
  16630. #: guix-git/doc/guix.texi:10699
  16631. msgid "Mark the gexps defined in @var{body}@dots{} as requiring @var{modules} in their execution environment."
  16632. msgstr ""
  16633. #. type: deffn
  16634. #: guix-git/doc/guix.texi:10703
  16635. 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:"
  16636. msgstr ""
  16637. #. type: lisp
  16638. #: guix-git/doc/guix.texi:10709
  16639. #, no-wrap
  16640. msgid ""
  16641. "`((guix build utils)\n"
  16642. " (guix gcrypt)\n"
  16643. " ((guix config) => ,(scheme-file \"config.scm\"\n"
  16644. " #~(define-module @dots{}))))\n"
  16645. msgstr ""
  16646. #. type: deffn
  16647. #: guix-git/doc/guix.texi:10714
  16648. 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."
  16649. msgstr ""
  16650. #. type: deffn
  16651. #: guix-git/doc/guix.texi:10718
  16652. 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{}."
  16653. msgstr ""
  16654. #. type: deffn
  16655. #: guix-git/doc/guix.texi:10720
  16656. #, no-wrap
  16657. msgid "{Scheme Syntax} with-extensions @var{extensions} @var{body}@dots{}"
  16658. msgstr ""
  16659. #. type: deffn
  16660. #: guix-git/doc/guix.texi:10725
  16661. 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."
  16662. msgstr ""
  16663. #. type: deffn
  16664. #: guix-git/doc/guix.texi:10730
  16665. 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{}."
  16666. msgstr ""
  16667. #. type: deffn
  16668. #: guix-git/doc/guix.texi:10732
  16669. #, no-wrap
  16670. msgid "{Scheme Procedure} gexp? @var{obj}"
  16671. msgstr ""
  16672. #. type: deffn
  16673. #: guix-git/doc/guix.texi:10734
  16674. msgid "Return @code{#t} if @var{obj} is a G-expression."
  16675. msgstr ""
  16676. #. type: Plain text
  16677. #: guix-git/doc/guix.texi:10740
  16678. 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)."
  16679. msgstr ""
  16680. #. type: deffn
  16681. #: guix-git/doc/guix.texi:10741
  16682. #, no-wrap
  16683. msgid "{Monadic Procedure} gexp->derivation @var{name} @var{exp} @"
  16684. msgstr ""
  16685. #. type: deffn
  16686. #: guix-git/doc/guix.texi:10759
  16687. 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}."
  16688. msgstr ""
  16689. #. type: deffn
  16690. #: guix-git/doc/guix.texi:10767
  16691. 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))}."
  16692. msgstr ""
  16693. #. type: deffn
  16694. #: guix-git/doc/guix.texi:10770
  16695. 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\"}."
  16696. msgstr ""
  16697. #. type: deffn
  16698. #: guix-git/doc/guix.texi:10773
  16699. msgid "@var{graft?} determines whether packages referred to by @var{exp} should be grafted when applicable."
  16700. msgstr ""
  16701. #. type: deffn
  16702. #: guix-git/doc/guix.texi:10776
  16703. msgid "When @var{references-graphs} is true, it must be a list of tuples of one of the following forms:"
  16704. msgstr ""
  16705. #. type: example
  16706. #: guix-git/doc/guix.texi:10783
  16707. #, no-wrap
  16708. msgid ""
  16709. "(@var{file-name} @var{package})\n"
  16710. "(@var{file-name} @var{package} @var{output})\n"
  16711. "(@var{file-name} @var{derivation})\n"
  16712. "(@var{file-name} @var{derivation} @var{output})\n"
  16713. "(@var{file-name} @var{store-item})\n"
  16714. msgstr ""
  16715. #. type: deffn
  16716. #: guix-git/doc/guix.texi:10789
  16717. 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."
  16718. msgstr ""
  16719. #. type: deffn
  16720. #: guix-git/doc/guix.texi:10795
  16721. 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."
  16722. msgstr ""
  16723. #. type: deffn
  16724. #: guix-git/doc/guix.texi:10798
  16725. msgid "@var{deprecation-warnings} determines whether to show deprecation warnings while compiling modules. It can be @code{#f}, @code{#t}, or @code{'detailed}."
  16726. msgstr ""
  16727. #. type: deffn
  16728. #: guix-git/doc/guix.texi:10800
  16729. msgid "The other arguments are as for @code{derivation} (@pxref{Derivations})."
  16730. msgstr ""
  16731. #. type: cindex
  16732. #: guix-git/doc/guix.texi:10802
  16733. #, no-wrap
  16734. msgid "file-like objects"
  16735. msgstr ""
  16736. #. type: Plain text
  16737. #: guix-git/doc/guix.texi:10807
  16738. 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:"
  16739. msgstr ""
  16740. #. type: lisp
  16741. #: guix-git/doc/guix.texi:10811
  16742. #, no-wrap
  16743. msgid ""
  16744. "#~(system* #$(file-append glibc \"/sbin/nscd\") \"-f\"\n"
  16745. " #$(local-file \"/tmp/my-nscd.conf\"))\n"
  16746. msgstr ""
  16747. #. type: Plain text
  16748. #: guix-git/doc/guix.texi:10820
  16749. 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."
  16750. msgstr ""
  16751. #. type: deffn
  16752. #: guix-git/doc/guix.texi:10821
  16753. #, no-wrap
  16754. msgid "{Scheme Procedure} local-file @var{file} [@var{name}] @"
  16755. msgstr ""
  16756. #. type: deffn
  16757. #: guix-git/doc/guix.texi:10830
  16758. 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}."
  16759. msgstr ""
  16760. #. type: deffn
  16761. #: guix-git/doc/guix.texi:10842
  16762. msgid "This is the declarative counterpart of the @code{interned-file} monadic procedure (@pxref{The Store Monad, @code{interned-file}})."
  16763. msgstr ""
  16764. #. type: deffn
  16765. #: guix-git/doc/guix.texi:10844
  16766. #, no-wrap
  16767. msgid "{Scheme Procedure} plain-file @var{name} @var{content}"
  16768. msgstr ""
  16769. #. type: deffn
  16770. #: guix-git/doc/guix.texi:10847
  16771. 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."
  16772. msgstr ""
  16773. #. type: deffn
  16774. #: guix-git/doc/guix.texi:10849
  16775. msgid "This is the declarative counterpart of @code{text-file}."
  16776. msgstr ""
  16777. #. type: deffn
  16778. #: guix-git/doc/guix.texi:10851
  16779. #, no-wrap
  16780. msgid "{Scheme Procedure} computed-file @var{name} @var{gexp} @"
  16781. msgstr ""
  16782. #. type: deffn
  16783. #: guix-git/doc/guix.texi:10858
  16784. 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}."
  16785. msgstr ""
  16786. #. type: deffn
  16787. #: guix-git/doc/guix.texi:10860
  16788. msgid "This is the declarative counterpart of @code{gexp->derivation}."
  16789. msgstr ""
  16790. #. type: deffn
  16791. #: guix-git/doc/guix.texi:10862
  16792. #, no-wrap
  16793. msgid "{Monadic Procedure} gexp->script @var{name} @var{exp} @"
  16794. msgstr ""
  16795. #. type: deffn
  16796. #: guix-git/doc/guix.texi:10868
  16797. 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}."
  16798. msgstr ""
  16799. #. type: deffn
  16800. #: guix-git/doc/guix.texi:10871
  16801. msgid "The example below builds a script that simply invokes the @command{ls} command:"
  16802. msgstr ""
  16803. #. type: lisp
  16804. #: guix-git/doc/guix.texi:10874
  16805. #, no-wrap
  16806. msgid ""
  16807. "(use-modules (guix gexp) (gnu packages base))\n"
  16808. "\n"
  16809. msgstr ""
  16810. #. type: lisp
  16811. #: guix-git/doc/guix.texi:10878
  16812. #, no-wrap
  16813. msgid ""
  16814. "(gexp->script \"list-files\"\n"
  16815. " #~(execl #$(file-append coreutils \"/bin/ls\")\n"
  16816. " \"ls\"))\n"
  16817. msgstr ""
  16818. #. type: deffn
  16819. #: guix-git/doc/guix.texi:10883
  16820. 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:"
  16821. msgstr ""
  16822. #. type: example
  16823. #: guix-git/doc/guix.texi:10888
  16824. #, no-wrap
  16825. msgid ""
  16826. "#!/gnu/store/@dots{}-guile-2.0.11/bin/guile -ds\n"
  16827. "!#\n"
  16828. "(execl \"/gnu/store/@dots{}-coreutils-8.22\"/bin/ls\" \"ls\")\n"
  16829. msgstr ""
  16830. #. type: deffn
  16831. #: guix-git/doc/guix.texi:10891
  16832. #, no-wrap
  16833. msgid "{Scheme Procedure} program-file @var{name} @var{exp} @"
  16834. msgstr ""
  16835. #. type: deffn
  16836. #: guix-git/doc/guix.texi:10896
  16837. 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}."
  16838. msgstr ""
  16839. #. type: deffn
  16840. #: guix-git/doc/guix.texi:10898
  16841. msgid "This is the declarative counterpart of @code{gexp->script}."
  16842. msgstr ""
  16843. #. type: deffn
  16844. #: guix-git/doc/guix.texi:10900
  16845. #, no-wrap
  16846. msgid "{Monadic Procedure} gexp->file @var{name} @var{exp} @"
  16847. msgstr ""
  16848. #. type: deffn
  16849. #: guix-git/doc/guix.texi:10907
  16850. 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."
  16851. msgstr ""
  16852. #. type: deffn
  16853. #: guix-git/doc/guix.texi:10912
  16854. 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}."
  16855. msgstr ""
  16856. #. type: deffn
  16857. #: guix-git/doc/guix.texi:10915
  16858. msgid "The resulting file holds references to all the dependencies of @var{exp} or a subset thereof."
  16859. msgstr ""
  16860. #. type: deffn
  16861. #: guix-git/doc/guix.texi:10917
  16862. #, no-wrap
  16863. msgid "{Scheme Procedure} scheme-file @var{name} @var{exp} @"
  16864. msgstr ""
  16865. #. type: deffn
  16866. #: guix-git/doc/guix.texi:10921
  16867. msgid "[#:splice? #f] [#:set-load-path? #t] Return an object representing the Scheme file @var{name} that contains @var{exp}."
  16868. msgstr ""
  16869. #. type: deffn
  16870. #: guix-git/doc/guix.texi:10923
  16871. msgid "This is the declarative counterpart of @code{gexp->file}."
  16872. msgstr ""
  16873. #. type: deffn
  16874. #: guix-git/doc/guix.texi:10925
  16875. #, no-wrap
  16876. msgid "{Monadic Procedure} text-file* @var{name} @var{text} @dots{}"
  16877. msgstr ""
  16878. #. type: deffn
  16879. #: guix-git/doc/guix.texi:10931
  16880. 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."
  16881. msgstr ""
  16882. #. type: deffn
  16883. #: guix-git/doc/guix.texi:10936
  16884. 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:"
  16885. msgstr ""
  16886. #. type: lisp
  16887. #: guix-git/doc/guix.texi:10944
  16888. #, no-wrap
  16889. msgid ""
  16890. "(define (profile.sh)\n"
  16891. " ;; Return the name of a shell script in the store that\n"
  16892. " ;; initializes the 'PATH' environment variable.\n"
  16893. " (text-file* \"profile.sh\"\n"
  16894. " \"export PATH=\" coreutils \"/bin:\"\n"
  16895. " grep \"/bin:\" sed \"/bin\\n\"))\n"
  16896. msgstr ""
  16897. #. type: deffn
  16898. #: guix-git/doc/guix.texi:10949
  16899. 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."
  16900. msgstr ""
  16901. #. type: deffn
  16902. #: guix-git/doc/guix.texi:10951
  16903. #, no-wrap
  16904. msgid "{Scheme Procedure} mixed-text-file @var{name} @var{text} @dots{}"
  16905. msgstr ""
  16906. #. type: deffn
  16907. #: guix-git/doc/guix.texi:10955
  16908. 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:"
  16909. msgstr ""
  16910. #. type: lisp
  16911. #: guix-git/doc/guix.texi:10959
  16912. #, no-wrap
  16913. msgid ""
  16914. "(mixed-text-file \"profile\"\n"
  16915. " \"export PATH=\" coreutils \"/bin:\" grep \"/bin\")\n"
  16916. msgstr ""
  16917. #. type: deffn
  16918. #: guix-git/doc/guix.texi:10962
  16919. msgid "This is the declarative counterpart of @code{text-file*}."
  16920. msgstr ""
  16921. #. type: deffn
  16922. #: guix-git/doc/guix.texi:10964
  16923. #, no-wrap
  16924. msgid "{Scheme Procedure} file-union @var{name} @var{files}"
  16925. msgstr ""
  16926. #. type: deffn
  16927. #: guix-git/doc/guix.texi:10969
  16928. 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:"
  16929. msgstr ""
  16930. #. type: lisp
  16931. #: guix-git/doc/guix.texi:10976
  16932. #, no-wrap
  16933. msgid ""
  16934. "(file-union \"etc\"\n"
  16935. " `((\"hosts\" ,(plain-file \"hosts\"\n"
  16936. " \"127.0.0.1 localhost\"))\n"
  16937. " (\"bashrc\" ,(plain-file \"bashrc\"\n"
  16938. " \"alias ls='ls --color=auto'\"))))\n"
  16939. msgstr ""
  16940. #. type: deffn
  16941. #: guix-git/doc/guix.texi:10979
  16942. msgid "This yields an @code{etc} directory containing these two files."
  16943. msgstr ""
  16944. #. type: deffn
  16945. #: guix-git/doc/guix.texi:10981
  16946. #, no-wrap
  16947. msgid "{Scheme Procedure} directory-union @var{name} @var{things}"
  16948. msgstr ""
  16949. #. type: deffn
  16950. #: guix-git/doc/guix.texi:10984
  16951. 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:"
  16952. msgstr ""
  16953. #. type: lisp
  16954. #: guix-git/doc/guix.texi:10987
  16955. #, no-wrap
  16956. msgid "(directory-union \"guile+emacs\" (list guile emacs))\n"
  16957. msgstr ""
  16958. #. type: deffn
  16959. #: guix-git/doc/guix.texi:10990
  16960. msgid "yields a directory that is the union of the @code{guile} and @code{emacs} packages."
  16961. msgstr ""
  16962. #. type: deffn
  16963. #: guix-git/doc/guix.texi:10992
  16964. #, no-wrap
  16965. msgid "{Scheme Procedure} file-append @var{obj} @var{suffix} @dots{}"
  16966. msgstr ""
  16967. #. type: deffn
  16968. #: guix-git/doc/guix.texi:10996
  16969. 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."
  16970. msgstr ""
  16971. #. type: deffn
  16972. #: guix-git/doc/guix.texi:10998
  16973. msgid "As an example, consider this gexp:"
  16974. msgstr ""
  16975. #. type: lisp
  16976. #: guix-git/doc/guix.texi:11003
  16977. #, no-wrap
  16978. msgid ""
  16979. "(gexp->script \"run-uname\"\n"
  16980. " #~(system* #$(file-append coreutils\n"
  16981. " \"/bin/uname\")))\n"
  16982. msgstr ""
  16983. #. type: deffn
  16984. #: guix-git/doc/guix.texi:11006
  16985. msgid "The same effect could be achieved with:"
  16986. msgstr ""
  16987. #. type: lisp
  16988. #: guix-git/doc/guix.texi:11011
  16989. #, no-wrap
  16990. msgid ""
  16991. "(gexp->script \"run-uname\"\n"
  16992. " #~(system* (string-append #$coreutils\n"
  16993. " \"/bin/uname\")))\n"
  16994. msgstr ""
  16995. #. type: deffn
  16996. #: guix-git/doc/guix.texi:11017
  16997. 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}."
  16998. msgstr ""
  16999. #. type: deffn
  17000. #: guix-git/doc/guix.texi:11019
  17001. #, no-wrap
  17002. msgid "{Scheme Syntax} let-system @var{system} @var{body}@dots{}"
  17003. msgstr ""
  17004. #. type: deffnx
  17005. #: guix-git/doc/guix.texi:11020
  17006. #, no-wrap
  17007. msgid "{Scheme Syntax} let-system (@var{system} @var{target}) @var{body}@dots{}"
  17008. msgstr ""
  17009. #. type: deffn
  17010. #: guix-git/doc/guix.texi:11023
  17011. #, fuzzy
  17012. msgid "Bind @var{system} to the currently targeted system---e.g., @code{\"x86_64-linux\"}---within @var{body}."
  17013. msgstr "远程机器的系统类型--如,@code{\"x86_64-linux\"}。"
  17014. #. type: deffn
  17015. #: guix-git/doc/guix.texi:11028
  17016. 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."
  17017. msgstr ""
  17018. #. type: deffn
  17019. #: guix-git/doc/guix.texi:11031
  17020. 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:"
  17021. msgstr ""
  17022. #. type: lisp
  17023. #: guix-git/doc/guix.texi:11042
  17024. #, no-wrap
  17025. msgid ""
  17026. "#~(system*\n"
  17027. " #+(let-system system\n"
  17028. " (cond ((string-prefix? \"armhf-\" system)\n"
  17029. " (file-append qemu \"/bin/qemu-system-arm\"))\n"
  17030. " ((string-prefix? \"x86_64-\" system)\n"
  17031. " (file-append qemu \"/bin/qemu-system-x86_64\"))\n"
  17032. " (else\n"
  17033. " (error \"dunno!\"))))\n"
  17034. " \"-net\" \"user\" #$image)\n"
  17035. msgstr ""
  17036. #. type: deffn
  17037. #: guix-git/doc/guix.texi:11045
  17038. #, no-wrap
  17039. msgid "{Scheme Syntax} with-parameters ((@var{parameter} @var{value}) @dots{}) @var{exp}"
  17040. msgstr ""
  17041. #. type: deffn
  17042. #: guix-git/doc/guix.texi:11051
  17043. 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."
  17044. msgstr ""
  17045. #. type: deffn
  17046. #: guix-git/doc/guix.texi:11054
  17047. msgid "A typical use of @code{with-parameters} is to force the system in effect for a given object:"
  17048. msgstr ""
  17049. #. type: lisp
  17050. #: guix-git/doc/guix.texi:11058
  17051. #, no-wrap
  17052. msgid ""
  17053. "(with-parameters ((%current-system \"i686-linux\"))\n"
  17054. " coreutils)\n"
  17055. msgstr ""
  17056. #. type: deffn
  17057. #: guix-git/doc/guix.texi:11062
  17058. msgid "The example above returns an object that corresponds to the i686 build of Coreutils, regardless of the current value of @code{%current-system}."
  17059. msgstr ""
  17060. #. type: Plain text
  17061. #: guix-git/doc/guix.texi:11069
  17062. 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."
  17063. msgstr ""
  17064. #. type: Plain text
  17065. #: guix-git/doc/guix.texi:11075
  17066. 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."
  17067. msgstr ""
  17068. #. type: deffn
  17069. #: guix-git/doc/guix.texi:11076
  17070. #, no-wrap
  17071. msgid "{Monadic Procedure} lower-object @var{obj} [@var{system}] @"
  17072. msgstr ""
  17073. #. type: deffn
  17074. #: guix-git/doc/guix.texi:11082
  17075. 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>}."
  17076. msgstr ""
  17077. #. type: deffn
  17078. #: guix-git/doc/guix.texi:11084
  17079. #, no-wrap
  17080. msgid "{Procedure} gexp->approximate-sexp @var{gexp}"
  17081. msgstr ""
  17082. #. type: deffn
  17083. #: guix-git/doc/guix.texi:11092
  17084. 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."
  17085. msgstr ""
  17086. #. type: section
  17087. #: guix-git/doc/guix.texi:11095
  17088. #, no-wrap
  17089. msgid "Invoking @command{guix repl}"
  17090. msgstr ""
  17091. #. type: cindex
  17092. #: guix-git/doc/guix.texi:11097
  17093. #, fuzzy, no-wrap
  17094. msgid "REPL, read-eval-print loop, script"
  17095. msgstr "read-eval-print loop"
  17096. #. type: Plain text
  17097. #: guix-git/doc/guix.texi:11107
  17098. 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."
  17099. msgstr ""
  17100. #. type: example
  17101. #: guix-git/doc/guix.texi:11112
  17102. #, no-wrap
  17103. msgid "guix repl @var{options} [@var{file} @var{args}]\n"
  17104. msgstr ""
  17105. #. type: Plain text
  17106. #: guix-git/doc/guix.texi:11116
  17107. msgid "When a @var{file} argument is provided, @var{file} is executed as a Guile scripts:"
  17108. msgstr ""
  17109. #. type: example
  17110. #: guix-git/doc/guix.texi:11119
  17111. #, no-wrap
  17112. msgid "guix repl my-script.scm\n"
  17113. msgstr ""
  17114. #. type: Plain text
  17115. #: guix-git/doc/guix.texi:11123
  17116. msgid "To pass arguments to the script, use @code{--} to prevent them from being interpreted as arguments to @command{guix repl} itself:"
  17117. msgstr ""
  17118. #. type: example
  17119. #: guix-git/doc/guix.texi:11126
  17120. #, no-wrap
  17121. msgid "guix repl -- my-script.scm --input=foo.txt\n"
  17122. msgstr ""
  17123. #. type: Plain text
  17124. #: guix-git/doc/guix.texi:11131
  17125. 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:"
  17126. msgstr ""
  17127. #. type: example
  17128. #: guix-git/doc/guix.texi:11135
  17129. #, no-wrap
  17130. msgid ""
  17131. "@code{#!/usr/bin/env -S guix repl --}\n"
  17132. "@code{!#}\n"
  17133. msgstr ""
  17134. #. type: Plain text
  17135. #: guix-git/doc/guix.texi:11138
  17136. msgid "Without a file name argument, a Guile REPL is started:"
  17137. msgstr ""
  17138. #. type: example
  17139. #: guix-git/doc/guix.texi:11144
  17140. #, no-wrap
  17141. msgid ""
  17142. "$ guix repl\n"
  17143. "scheme@@(guile-user)> ,use (gnu packages base)\n"
  17144. "scheme@@(guile-user)> coreutils\n"
  17145. "$1 = #<package coreutils@@8.29 gnu/packages/base.scm:327 3e28300>\n"
  17146. msgstr ""
  17147. #. type: Plain text
  17148. #: guix-git/doc/guix.texi:11151
  17149. 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."
  17150. msgstr ""
  17151. #. type: Plain text
  17152. #: guix-git/doc/guix.texi:11153
  17153. msgid "The available options are as follows:"
  17154. msgstr ""
  17155. #. type: item
  17156. #: guix-git/doc/guix.texi:11155 guix-git/doc/guix.texi:13874
  17157. #, no-wrap
  17158. msgid "--type=@var{type}"
  17159. msgstr ""
  17160. #. type: itemx
  17161. #: guix-git/doc/guix.texi:11156 guix-git/doc/guix.texi:13875
  17162. #: guix-git/doc/guix.texi:36330
  17163. #, no-wrap
  17164. msgid "-t @var{type}"
  17165. msgstr ""
  17166. #. type: table
  17167. #: guix-git/doc/guix.texi:11158
  17168. msgid "Start a REPL of the given @var{TYPE}, which can be one of the following:"
  17169. msgstr ""
  17170. #. type: item
  17171. #: guix-git/doc/guix.texi:11160
  17172. #, no-wrap
  17173. msgid "guile"
  17174. msgstr ""
  17175. #. type: table
  17176. #: guix-git/doc/guix.texi:11162
  17177. msgid "This is default, and it spawns a standard full-featured Guile REPL."
  17178. msgstr ""
  17179. #. type: item
  17180. #: guix-git/doc/guix.texi:11162
  17181. #, no-wrap
  17182. msgid "machine"
  17183. msgstr ""
  17184. #. type: table
  17185. #: guix-git/doc/guix.texi:11165
  17186. msgid "Spawn a REPL that uses the machine-readable protocol. This is the protocol that the @code{(guix inferior)} module speaks."
  17187. msgstr ""
  17188. #. type: table
  17189. #: guix-git/doc/guix.texi:11171
  17190. 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:"
  17191. msgstr ""
  17192. #. type: item
  17193. #: guix-git/doc/guix.texi:11173
  17194. #, no-wrap
  17195. msgid "--listen=tcp:37146"
  17196. msgstr ""
  17197. #. type: table
  17198. #: guix-git/doc/guix.texi:11175
  17199. msgid "Accept connections on localhost on port 37146."
  17200. msgstr ""
  17201. #. type: item
  17202. #: guix-git/doc/guix.texi:11176
  17203. #, no-wrap
  17204. msgid "--listen=unix:/tmp/socket"
  17205. msgstr ""
  17206. #. type: table
  17207. #: guix-git/doc/guix.texi:11178
  17208. msgid "Accept connections on the Unix-domain socket @file{/tmp/socket}."
  17209. msgstr ""
  17210. #. type: item
  17211. #: guix-git/doc/guix.texi:11180 guix-git/doc/guix.texi:11285
  17212. #: guix-git/doc/guix.texi:13184 guix-git/doc/guix.texi:13302
  17213. #: guix-git/doc/guix.texi:13509 guix-git/doc/guix.texi:13654
  17214. #: guix-git/doc/guix.texi:13922
  17215. #, no-wrap
  17216. msgid "--load-path=@var{directory}"
  17217. msgstr ""
  17218. #. type: itemx
  17219. #: guix-git/doc/guix.texi:11181 guix-git/doc/guix.texi:11286
  17220. #: guix-git/doc/guix.texi:13303 guix-git/doc/guix.texi:13510
  17221. #: guix-git/doc/guix.texi:13655 guix-git/doc/guix.texi:13923
  17222. #, no-wrap
  17223. msgid "-L @var{directory}"
  17224. msgstr ""
  17225. #. type: table
  17226. #: guix-git/doc/guix.texi:11184 guix-git/doc/guix.texi:11289
  17227. #: guix-git/doc/guix.texi:13187 guix-git/doc/guix.texi:13306
  17228. #: guix-git/doc/guix.texi:13513 guix-git/doc/guix.texi:13658
  17229. #: guix-git/doc/guix.texi:13926
  17230. msgid "Add @var{directory} to the front of the package module search path (@pxref{Package Modules})."
  17231. msgstr ""
  17232. #. type: table
  17233. #: guix-git/doc/guix.texi:11187
  17234. msgid "This allows users to define their own packages and make them visible to the script or REPL."
  17235. msgstr ""
  17236. #. type: itemx
  17237. #: guix-git/doc/guix.texi:11188 guix-git/doc/guix.texi:11810
  17238. #, no-wrap
  17239. msgid "-q"
  17240. msgstr ""
  17241. #. type: table
  17242. #: guix-git/doc/guix.texi:11191
  17243. msgid "Inhibit loading of the @file{~/.guile} file. By default, that configuration file is loaded when spawning a @code{guile} REPL."
  17244. msgstr ""
  17245. #. type: Plain text
  17246. #: guix-git/doc/guix.texi:11201
  17247. 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."
  17248. msgstr ""
  17249. #. type: cindex
  17250. #: guix-git/doc/guix.texi:11224
  17251. #, no-wrap
  17252. msgid "package building"
  17253. msgstr ""
  17254. #. type: command{#1}
  17255. #: guix-git/doc/guix.texi:11225
  17256. #, no-wrap
  17257. msgid "guix build"
  17258. msgstr ""
  17259. #. type: Plain text
  17260. #: guix-git/doc/guix.texi:11231
  17261. 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."
  17262. msgstr ""
  17263. #. type: example
  17264. #: guix-git/doc/guix.texi:11236
  17265. #, no-wrap
  17266. msgid "guix build @var{options} @var{package-or-derivation}@dots{}\n"
  17267. msgstr ""
  17268. #. type: Plain text
  17269. #: guix-git/doc/guix.texi:11241
  17270. 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:"
  17271. msgstr ""
  17272. #. type: example
  17273. #: guix-git/doc/guix.texi:11244
  17274. #, no-wrap
  17275. msgid "guix build emacs guile\n"
  17276. msgstr ""
  17277. #. type: Plain text
  17278. #: guix-git/doc/guix.texi:11247
  17279. msgid "Similarly, the following command builds all the available packages:"
  17280. msgstr ""
  17281. #. type: example
  17282. #: guix-git/doc/guix.texi:11251
  17283. #, no-wrap
  17284. msgid ""
  17285. "guix build --quiet --keep-going \\\n"
  17286. " $(guix package -A | awk '@{ print $1 \"@@\" $2 @}')\n"
  17287. msgstr ""
  17288. #. type: Plain text
  17289. #: guix-git/doc/guix.texi:11259
  17290. 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})."
  17291. msgstr ""
  17292. #. type: Plain text
  17293. #: guix-git/doc/guix.texi:11264
  17294. 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."
  17295. msgstr ""
  17296. #. type: Plain text
  17297. #: guix-git/doc/guix.texi:11267
  17298. msgid "There may be zero or more @var{options}. The available options are described in the subsections below."
  17299. msgstr ""
  17300. #. type: Plain text
  17301. #: guix-git/doc/guix.texi:11282
  17302. 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:"
  17303. msgstr ""
  17304. #. type: table
  17305. #: guix-git/doc/guix.texi:11292 guix-git/doc/guix.texi:13190
  17306. #: guix-git/doc/guix.texi:13516 guix-git/doc/guix.texi:13661
  17307. #: guix-git/doc/guix.texi:13929
  17308. msgid "This allows users to define their own packages and make them visible to the command-line tools."
  17309. msgstr ""
  17310. #. type: item
  17311. #: guix-git/doc/guix.texi:11293
  17312. #, no-wrap
  17313. msgid "--keep-failed"
  17314. msgstr ""
  17315. #. type: itemx
  17316. #: guix-git/doc/guix.texi:11294
  17317. #, no-wrap
  17318. msgid "-K"
  17319. msgstr ""
  17320. #. type: table
  17321. #: guix-git/doc/guix.texi:11300
  17322. 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."
  17323. msgstr ""
  17324. #. type: table
  17325. #: guix-git/doc/guix.texi:11304
  17326. 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})."
  17327. msgstr ""
  17328. #. type: item
  17329. #: guix-git/doc/guix.texi:11305
  17330. #, no-wrap
  17331. msgid "--keep-going"
  17332. msgstr ""
  17333. #. type: itemx
  17334. #: guix-git/doc/guix.texi:11306
  17335. #, no-wrap
  17336. msgid "-k"
  17337. msgstr ""
  17338. #. type: table
  17339. #: guix-git/doc/guix.texi:11309
  17340. msgid "Keep going when some of the derivations fail to build; return only once all the builds have either completed or failed."
  17341. msgstr ""
  17342. #. type: table
  17343. #: guix-git/doc/guix.texi:11312
  17344. msgid "The default behavior is to stop as soon as one of the specified derivations has failed."
  17345. msgstr ""
  17346. #. type: table
  17347. #: guix-git/doc/guix.texi:11316
  17348. msgid "Do not build the derivations."
  17349. msgstr ""
  17350. #. type: anchor{#1}
  17351. #: guix-git/doc/guix.texi:11318
  17352. msgid "fallback-option"
  17353. msgstr ""
  17354. #. type: item
  17355. #: guix-git/doc/guix.texi:11318
  17356. #, no-wrap
  17357. msgid "--fallback"
  17358. msgstr ""
  17359. #. type: table
  17360. #: guix-git/doc/guix.texi:11321
  17361. msgid "When substituting a pre-built binary fails, fall back to building packages locally (@pxref{Substitution Failure})."
  17362. msgstr ""
  17363. #. type: anchor{#1}
  17364. #: guix-git/doc/guix.texi:11327
  17365. msgid "client-substitute-urls"
  17366. msgstr ""
  17367. #. type: table
  17368. #: guix-git/doc/guix.texi:11327
  17369. 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})."
  17370. msgstr ""
  17371. #. type: table
  17372. #: guix-git/doc/guix.texi:11331
  17373. 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})."
  17374. msgstr ""
  17375. #. type: table
  17376. #: guix-git/doc/guix.texi:11334
  17377. msgid "When @var{urls} is the empty string, substitutes are effectively disabled."
  17378. msgstr ""
  17379. #. type: item
  17380. #: guix-git/doc/guix.texi:11340
  17381. #, no-wrap
  17382. msgid "--no-grafts"
  17383. msgstr ""
  17384. #. type: table
  17385. #: guix-git/doc/guix.texi:11344
  17386. 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."
  17387. msgstr ""
  17388. #. type: item
  17389. #: guix-git/doc/guix.texi:11345
  17390. #, no-wrap
  17391. msgid "--rounds=@var{n}"
  17392. msgstr ""
  17393. #. type: table
  17394. #: guix-git/doc/guix.texi:11348
  17395. msgid "Build each derivation @var{n} times in a row, and raise an error if consecutive build results are not bit-for-bit identical."
  17396. msgstr ""
  17397. #. type: table
  17398. #: guix-git/doc/guix.texi:11353
  17399. 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."
  17400. msgstr ""
  17401. #. type: table
  17402. #: guix-git/doc/guix.texi:11369
  17403. msgid "By default, the daemon's setting is honored (@pxref{Invoking guix-daemon, @option{--max-silent-time}})."
  17404. msgstr ""
  17405. #. type: table
  17406. #: guix-git/doc/guix.texi:11376
  17407. msgid "By default, the daemon's setting is honored (@pxref{Invoking guix-daemon, @option{--timeout}})."
  17408. msgstr ""
  17409. #. type: cindex
  17410. #: guix-git/doc/guix.texi:11379
  17411. #, no-wrap
  17412. msgid "verbosity, of the command-line tools"
  17413. msgstr ""
  17414. #. type: cindex
  17415. #: guix-git/doc/guix.texi:11380
  17416. #, no-wrap
  17417. msgid "build logs, verbosity"
  17418. msgstr ""
  17419. #. type: item
  17420. #: guix-git/doc/guix.texi:11381
  17421. #, no-wrap
  17422. msgid "-v @var{level}"
  17423. msgstr ""
  17424. #. type: itemx
  17425. #: guix-git/doc/guix.texi:11382
  17426. #, no-wrap
  17427. msgid "--verbosity=@var{level}"
  17428. msgstr ""
  17429. #. type: table
  17430. #: guix-git/doc/guix.texi:11387
  17431. 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."
  17432. msgstr ""
  17433. #. type: table
  17434. #: guix-git/doc/guix.texi:11392
  17435. 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."
  17436. msgstr ""
  17437. #. type: table
  17438. #: guix-git/doc/guix.texi:11398
  17439. 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."
  17440. msgstr ""
  17441. #. type: item
  17442. #: guix-git/doc/guix.texi:11399
  17443. #, no-wrap
  17444. msgid "--debug=@var{level}"
  17445. msgstr ""
  17446. #. type: table
  17447. #: guix-git/doc/guix.texi:11403
  17448. 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."
  17449. msgstr ""
  17450. #. type: Plain text
  17451. #: guix-git/doc/guix.texi:11410
  17452. 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."
  17453. msgstr ""
  17454. #. type: Plain text
  17455. #: guix-git/doc/guix.texi:11414
  17456. 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."
  17457. msgstr ""
  17458. #. type: defvr
  17459. #: guix-git/doc/guix.texi:11415
  17460. #, no-wrap
  17461. msgid "{Environment Variable} GUIX_BUILD_OPTIONS"
  17462. msgstr ""
  17463. #. type: defvr
  17464. #: guix-git/doc/guix.texi:11420
  17465. 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:"
  17466. msgstr ""
  17467. #. type: example
  17468. #: guix-git/doc/guix.texi:11423
  17469. #, no-wrap
  17470. msgid "$ export GUIX_BUILD_OPTIONS=\"--no-substitutes -c 2 -L /foo/bar\"\n"
  17471. msgstr ""
  17472. #. type: defvr
  17473. #: guix-git/doc/guix.texi:11427
  17474. msgid "These options are parsed independently, and the result is appended to the parsed command-line options."
  17475. msgstr ""
  17476. #. type: cindex
  17477. #: guix-git/doc/guix.texi:11433
  17478. #, no-wrap
  17479. msgid "package variants"
  17480. msgstr ""
  17481. #. type: Plain text
  17482. #: guix-git/doc/guix.texi:11441
  17483. 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})."
  17484. msgstr ""
  17485. #. type: Plain text
  17486. #: guix-git/doc/guix.texi:11445
  17487. 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."
  17488. msgstr ""
  17489. #. type: Plain text
  17490. #: guix-git/doc/guix.texi:11450
  17491. 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)."
  17492. msgstr ""
  17493. #. type: cindex
  17494. #: guix-git/doc/guix.texi:11453
  17495. #, fuzzy, no-wrap
  17496. #| msgid "formatting code"
  17497. msgid "performance, tuning code"
  17498. msgstr "格式化代码"
  17499. #. type: cindex
  17500. #: guix-git/doc/guix.texi:11454
  17501. #, fuzzy, no-wrap
  17502. #| msgid "customization, of packages"
  17503. msgid "optimization, of package code"
  17504. msgstr "定制软件包"
  17505. #. type: cindex
  17506. #: guix-git/doc/guix.texi:11455
  17507. #, fuzzy, no-wrap
  17508. msgid "tuning, of package code"
  17509. msgstr "代码格式化"
  17510. #. type: cindex
  17511. #: guix-git/doc/guix.texi:11456
  17512. #, no-wrap
  17513. msgid "SIMD support"
  17514. msgstr ""
  17515. #. type: cindex
  17516. #: guix-git/doc/guix.texi:11457
  17517. #, fuzzy, no-wrap
  17518. #| msgid "Building packages."
  17519. msgid "tunable packages"
  17520. msgstr "构建软件包。"
  17521. #. type: cindex
  17522. #: guix-git/doc/guix.texi:11458
  17523. #, fuzzy, no-wrap
  17524. #| msgid "package version"
  17525. msgid "package multi-versioning"
  17526. msgstr "软件包版本"
  17527. #. type: item
  17528. #: guix-git/doc/guix.texi:11459
  17529. #, fuzzy, no-wrap
  17530. #| msgid "--rounds=@var{N}"
  17531. msgid "--tune[=@var{cpu}]"
  17532. msgstr "--rounds=@var{N}"
  17533. #. type: table
  17534. #: guix-git/doc/guix.texi:11463
  17535. msgid "Use versions of the packages marked as ``tunable'' optimized for @var{cpu}. When @var{cpu} is @code{native}, or when it is omitted, tune for the CPU on which the @command{guix} command is running."
  17536. msgstr ""
  17537. #. type: table
  17538. #: guix-git/doc/guix.texi:11469
  17539. msgid "Valid @var{cpu} names are those recognized by the underlying compiler, by default the GNU Compiler Collection. On x86_64 processors, this includes CPU names such as @code{nehalem}, @code{haswell}, and @code{skylake} (@pxref{x86 Options, @code{-march},, gcc, Using the GNU Compiler Collection (GCC)})."
  17540. msgstr ""
  17541. #. type: table
  17542. #: guix-git/doc/guix.texi:11476
  17543. msgid "As new generations of CPUs come out, they augment the standard instruction set architecture (ISA) with additional instructions, in particular instructions for single-instruction/multiple-data (SIMD) parallel processing. For example, while Core2 and Skylake CPUs both implement the x86_64 ISA, only the latter supports AVX2 SIMD instructions."
  17544. msgstr ""
  17545. #. type: table
  17546. #: guix-git/doc/guix.texi:11483
  17547. msgid "The primary gain one can expect from @option{--tune} is for programs that can make use of those SIMD capabilities @emph{and} that do not already have a mechanism to select the right optimized code at run time. Packages that have the @code{tunable?} property set are considered @dfn{tunable packages} by the @option{--tune} option; a package definition with the property set looks like this:"
  17548. msgstr ""
  17549. #. type: lisp
  17550. #: guix-git/doc/guix.texi:11488
  17551. #, no-wrap
  17552. msgid ""
  17553. "(package\n"
  17554. " (name \"hello-simd\")\n"
  17555. " ;; ...\n"
  17556. "\n"
  17557. msgstr ""
  17558. #. type: lisp
  17559. #: guix-git/doc/guix.texi:11492
  17560. #, no-wrap
  17561. msgid ""
  17562. " ;; This package may benefit from SIMD extensions so\n"
  17563. " ;; mark it as \"tunable\".\n"
  17564. " (properties '((tunable? . #t))))\n"
  17565. msgstr ""
  17566. #. type: table
  17567. #: guix-git/doc/guix.texi:11497
  17568. msgid "Other packages are not considered tunable. This allows Guix to use generic binaries in the cases where tuning for a specific CPU is unlikely to provide any gain."
  17569. msgstr ""
  17570. #. type: table
  17571. #: guix-git/doc/guix.texi:11503
  17572. msgid "Tuned packages are built with @code{-march=@var{CPU}}; under the hood, the @option{-march} option is passed to the actual wrapper by a compiler wrapper. Since the build machine may not be able to run code for the target CPU micro-architecture, the test suite is not run when building a tuned package."
  17573. msgstr ""
  17574. #. type: table
  17575. #: guix-git/doc/guix.texi:11507
  17576. msgid "To reduce rebuilds to the minimum, tuned packages are @emph{grafted} onto packages that depend on them (@pxref{Security Updates, grafts}). Thus, using @option{--no-grafts} cancels the effect of @option{--tune}."
  17577. msgstr ""
  17578. #. type: table
  17579. #: guix-git/doc/guix.texi:11513
  17580. msgid "We call this technique @dfn{package multi-versioning}: several variants of tunable packages may be built, one for each CPU variant. It is the coarse-grain counterpart of @dfn{function multi-versioning} as implemented by the GNU tool chain (@pxref{Function Multiversioning,,, gcc, Using the GNU Compiler Collection (GCC)})."
  17581. msgstr ""
  17582. #. type: item
  17583. #: guix-git/doc/guix.texi:11514
  17584. #, no-wrap
  17585. msgid "--with-source=@var{source}"
  17586. msgstr ""
  17587. #. type: itemx
  17588. #: guix-git/doc/guix.texi:11515
  17589. #, no-wrap
  17590. msgid "--with-source=@var{package}=@var{source}"
  17591. msgstr ""
  17592. #. type: itemx
  17593. #: guix-git/doc/guix.texi:11516
  17594. #, no-wrap
  17595. msgid "--with-source=@var{package}@@@var{version}=@var{source}"
  17596. msgstr ""
  17597. #. type: table
  17598. #: guix-git/doc/guix.texi:11521
  17599. 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})."
  17600. msgstr ""
  17601. #. type: table
  17602. #: guix-git/doc/guix.texi:11527
  17603. 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}."
  17604. msgstr ""
  17605. #. type: table
  17606. #: guix-git/doc/guix.texi:11530
  17607. 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}."
  17608. msgstr ""
  17609. #. type: table
  17610. #: guix-git/doc/guix.texi:11535
  17611. 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:"
  17612. msgstr ""
  17613. #. type: example
  17614. #: guix-git/doc/guix.texi:11538
  17615. #, no-wrap
  17616. msgid "guix build ed --with-source=mirror://gnu/ed/ed-1.7.tar.gz\n"
  17617. msgstr ""
  17618. #. type: table
  17619. #: guix-git/doc/guix.texi:11542
  17620. msgid "As a developer, @option{--with-source} makes it easy to test release candidates:"
  17621. msgstr ""
  17622. #. type: example
  17623. #: guix-git/doc/guix.texi:11545
  17624. #, no-wrap
  17625. msgid "guix build guile --with-source=../guile-2.0.9.219-e1bb7.tar.xz\n"
  17626. msgstr ""
  17627. #. type: table
  17628. #: guix-git/doc/guix.texi:11548
  17629. msgid "@dots{} or to build from a checkout in a pristine environment:"
  17630. msgstr ""
  17631. #. type: example
  17632. #: guix-git/doc/guix.texi:11552
  17633. #, no-wrap
  17634. msgid ""
  17635. "$ git clone git://git.sv.gnu.org/guix.git\n"
  17636. "$ guix build guix --with-source=guix@@1.0=./guix\n"
  17637. msgstr ""
  17638. #. type: item
  17639. #: guix-git/doc/guix.texi:11554
  17640. #, no-wrap
  17641. msgid "--with-input=@var{package}=@var{replacement}"
  17642. msgstr ""
  17643. #. type: table
  17644. #: guix-git/doc/guix.texi:11559
  17645. 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}."
  17646. msgstr ""
  17647. #. type: table
  17648. #: guix-git/doc/guix.texi:11563
  17649. 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}:"
  17650. msgstr ""
  17651. #. type: example
  17652. #: guix-git/doc/guix.texi:11566
  17653. #, no-wrap
  17654. msgid "guix build --with-input=guile=guile@@2.0 guix\n"
  17655. msgstr ""
  17656. #. type: table
  17657. #: guix-git/doc/guix.texi:11571
  17658. 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}."
  17659. msgstr ""
  17660. #. type: table
  17661. #: guix-git/doc/guix.texi:11574
  17662. msgid "This is implemented using the @code{package-input-rewriting} Scheme procedure (@pxref{Defining Packages, @code{package-input-rewriting}})."
  17663. msgstr ""
  17664. #. type: item
  17665. #: guix-git/doc/guix.texi:11575
  17666. #, no-wrap
  17667. msgid "--with-graft=@var{package}=@var{replacement}"
  17668. msgstr ""
  17669. #. type: table
  17670. #: guix-git/doc/guix.texi:11581
  17671. 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."
  17672. msgstr ""
  17673. #. type: table
  17674. #: guix-git/doc/guix.texi:11585
  17675. 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:"
  17676. msgstr ""
  17677. #. type: example
  17678. #: guix-git/doc/guix.texi:11588
  17679. #, no-wrap
  17680. msgid "guix build --with-graft=gnutls=gnutls@@3.5.4 wget\n"
  17681. msgstr ""
  17682. #. type: table
  17683. #: guix-git/doc/guix.texi:11597
  17684. 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!"
  17685. msgstr ""
  17686. #. type: cindex
  17687. #: guix-git/doc/guix.texi:11598 guix-git/doc/guix.texi:39145
  17688. #, no-wrap
  17689. msgid "debugging info, rebuilding"
  17690. msgstr ""
  17691. #. type: item
  17692. #: guix-git/doc/guix.texi:11599
  17693. #, no-wrap
  17694. msgid "--with-debug-info=@var{package}"
  17695. msgstr ""
  17696. #. type: table
  17697. #: guix-git/doc/guix.texi:11604
  17698. 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})."
  17699. msgstr ""
  17700. #. type: table
  17701. #: guix-git/doc/guix.texi:11610
  17702. 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:"
  17703. msgstr ""
  17704. #. type: example
  17705. #: guix-git/doc/guix.texi:11613 guix-git/doc/guix.texi:39176
  17706. #, no-wrap
  17707. msgid "guix install inkscape --with-debug-info=glib\n"
  17708. msgstr ""
  17709. #. type: table
  17710. #: guix-git/doc/guix.texi:11617
  17711. msgid "Only GLib needs to be recompiled so this takes a reasonable amount of time. @xref{Installing Debugging Files}, for more info."
  17712. msgstr ""
  17713. #. type: quotation
  17714. #: guix-git/doc/guix.texi:11623
  17715. 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."
  17716. msgstr ""
  17717. #. type: quotation
  17718. #: guix-git/doc/guix.texi:11627
  17719. 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."
  17720. msgstr ""
  17721. #. type: cindex
  17722. #: guix-git/doc/guix.texi:11629
  17723. #, no-wrap
  17724. msgid "tool chain, changing the build tool chain of a package"
  17725. msgstr ""
  17726. #. type: item
  17727. #: guix-git/doc/guix.texi:11630
  17728. #, no-wrap
  17729. msgid "--with-c-toolchain=@var{package}=@var{toolchain}"
  17730. msgstr ""
  17731. #. type: table
  17732. #: guix-git/doc/guix.texi:11634
  17733. 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++."
  17734. msgstr ""
  17735. #. type: example
  17736. #: guix-git/doc/guix.texi:11641
  17737. #, no-wrap
  17738. msgid ""
  17739. "guix build octave-cli \\\n"
  17740. " --with-c-toolchain=fftw=gcc-toolchain@@10 \\\n"
  17741. " --with-c-toolchain=fftwf=gcc-toolchain@@10\n"
  17742. msgstr ""
  17743. #. type: table
  17744. #: guix-git/doc/guix.texi:11648
  17745. 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}."
  17746. msgstr ""
  17747. #. type: table
  17748. #: guix-git/doc/guix.texi:11652
  17749. 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:"
  17750. msgstr ""
  17751. #. type: example
  17752. #: guix-git/doc/guix.texi:11656
  17753. #, no-wrap
  17754. msgid ""
  17755. "guix build --with-c-toolchain=hwloc=clang-toolchain \\\n"
  17756. " intel-mpi-benchmarks\n"
  17757. msgstr ""
  17758. #. type: quotation
  17759. #: guix-git/doc/guix.texi:11665
  17760. 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."
  17761. msgstr ""
  17762. #. type: item
  17763. #: guix-git/doc/guix.texi:11667
  17764. #, no-wrap
  17765. msgid "--with-git-url=@var{package}=@var{url}"
  17766. msgstr ""
  17767. #. type: cindex
  17768. #: guix-git/doc/guix.texi:11668
  17769. #, no-wrap
  17770. msgid "Git, using the latest commit"
  17771. msgstr ""
  17772. #. type: cindex
  17773. #: guix-git/doc/guix.texi:11669
  17774. #, no-wrap
  17775. msgid "latest commit, building"
  17776. msgstr ""
  17777. #. type: table
  17778. #: guix-git/doc/guix.texi:11673
  17779. 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."
  17780. msgstr ""
  17781. #. type: table
  17782. #: guix-git/doc/guix.texi:11676
  17783. msgid "For example, the following command builds the NumPy Python library against the latest commit of the master branch of Python itself:"
  17784. msgstr ""
  17785. #. type: example
  17786. #: guix-git/doc/guix.texi:11680
  17787. #, no-wrap
  17788. msgid ""
  17789. "guix build python-numpy \\\n"
  17790. " --with-git-url=python=https://github.com/python/cpython\n"
  17791. msgstr ""
  17792. #. type: table
  17793. #: guix-git/doc/guix.texi:11684
  17794. msgid "This option can also be combined with @option{--with-branch} or @option{--with-commit} (see below)."
  17795. msgstr ""
  17796. #. type: cindex
  17797. #: guix-git/doc/guix.texi:11685 guix-git/doc/guix.texi:29867
  17798. #, no-wrap
  17799. msgid "continuous integration"
  17800. msgstr ""
  17801. #. type: table
  17802. #: guix-git/doc/guix.texi:11691
  17803. 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)."
  17804. msgstr ""
  17805. #. type: table
  17806. #: guix-git/doc/guix.texi:11695
  17807. 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."
  17808. msgstr ""
  17809. #. type: item
  17810. #: guix-git/doc/guix.texi:11696
  17811. #, no-wrap
  17812. msgid "--with-branch=@var{package}=@var{branch}"
  17813. msgstr ""
  17814. #. type: table
  17815. #: guix-git/doc/guix.texi:11702
  17816. 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."
  17817. msgstr ""
  17818. #. type: table
  17819. #: guix-git/doc/guix.texi:11707
  17820. 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:"
  17821. msgstr ""
  17822. #. type: example
  17823. #: guix-git/doc/guix.texi:11710
  17824. #, no-wrap
  17825. msgid "guix build --with-branch=guile-sqlite3=master cuirass\n"
  17826. msgstr ""
  17827. #. type: item
  17828. #: guix-git/doc/guix.texi:11712
  17829. #, no-wrap
  17830. msgid "--with-commit=@var{package}=@var{commit}"
  17831. msgstr ""
  17832. #. type: table
  17833. #: guix-git/doc/guix.texi:11717
  17834. 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}."
  17835. msgstr ""
  17836. #. type: item
  17837. #: guix-git/doc/guix.texi:11718
  17838. #, no-wrap
  17839. msgid "--with-patch=@var{package}=@var{file}"
  17840. msgstr ""
  17841. #. type: table
  17842. #: guix-git/doc/guix.texi:11725
  17843. 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})."
  17844. msgstr ""
  17845. #. type: table
  17846. #: guix-git/doc/guix.texi:11728
  17847. msgid "As an example, the command below rebuilds Coreutils with the GNU C Library (glibc) patched with the given patch:"
  17848. msgstr ""
  17849. #. type: example
  17850. #: guix-git/doc/guix.texi:11731
  17851. #, no-wrap
  17852. msgid "guix build coreutils --with-patch=glibc=./glibc-frob.patch\n"
  17853. msgstr ""
  17854. #. type: table
  17855. #: guix-git/doc/guix.texi:11735
  17856. msgid "In this example, glibc itself as well as everything that leads to Coreutils in the dependency graph is rebuilt."
  17857. msgstr ""
  17858. #. type: cindex
  17859. #: guix-git/doc/guix.texi:11736
  17860. #, fuzzy, no-wrap
  17861. msgid "upstream, latest version"
  17862. msgstr "软件包版本"
  17863. #. type: item
  17864. #: guix-git/doc/guix.texi:11737
  17865. #, fuzzy, no-wrap
  17866. msgid "--with-latest=@var{package}"
  17867. msgstr "--log-compression=@var{type}"
  17868. #. type: table
  17869. #: guix-git/doc/guix.texi:11742
  17870. 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})."
  17871. msgstr ""
  17872. #. type: table
  17873. #: guix-git/doc/guix.texi:11746
  17874. 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."
  17875. msgstr ""
  17876. #. type: table
  17877. #: guix-git/doc/guix.texi:11749
  17878. msgid "As an example, the command below builds Guix against the latest version of Guile-JSON:"
  17879. msgstr ""
  17880. #. type: example
  17881. #: guix-git/doc/guix.texi:11752
  17882. #, no-wrap
  17883. msgid "guix build guix --with-latest=guile-json\n"
  17884. msgstr ""
  17885. #. type: table
  17886. #: guix-git/doc/guix.texi:11761
  17887. 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."
  17888. msgstr ""
  17889. #. type: table
  17890. #: guix-git/doc/guix.texi:11766
  17891. 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})."
  17892. msgstr ""
  17893. #. type: cindex
  17894. #: guix-git/doc/guix.texi:11767
  17895. #, fuzzy, no-wrap
  17896. msgid "test suite, skipping"
  17897. msgstr "测试套件"
  17898. #. type: item
  17899. #: guix-git/doc/guix.texi:11768
  17900. #, no-wrap
  17901. msgid "--without-tests=@var{package}"
  17902. msgstr ""
  17903. #. type: table
  17904. #: guix-git/doc/guix.texi:11774
  17905. 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."
  17906. msgstr ""
  17907. #. type: table
  17908. #: guix-git/doc/guix.texi:11778
  17909. 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:"
  17910. msgstr ""
  17911. #. type: example
  17912. #: guix-git/doc/guix.texi:11781
  17913. #, no-wrap
  17914. msgid "guix install --without-tests=python python-notebook\n"
  17915. msgstr ""
  17916. #. type: table
  17917. #: guix-git/doc/guix.texi:11787
  17918. 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."
  17919. msgstr ""
  17920. #. type: table
  17921. #: guix-git/doc/guix.texi:11793
  17922. 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."
  17923. msgstr ""
  17924. #. type: Plain text
  17925. #: guix-git/doc/guix.texi:11800
  17926. 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."
  17927. msgstr ""
  17928. #. type: Plain text
  17929. #: guix-git/doc/guix.texi:11806
  17930. msgid "The command-line options presented below are specific to @command{guix build}."
  17931. msgstr ""
  17932. #. type: item
  17933. #: guix-git/doc/guix.texi:11809
  17934. #, no-wrap
  17935. msgid "--quiet"
  17936. msgstr ""
  17937. #. type: table
  17938. #: guix-git/doc/guix.texi:11814
  17939. 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."
  17940. msgstr ""
  17941. #. type: table
  17942. #: guix-git/doc/guix.texi:11819
  17943. msgid "Build the package, derivation, or other file-like object that the code within @var{file} evaluates to (@pxref{G-Expressions, file-like objects})."
  17944. msgstr ""
  17945. #. type: table
  17946. #: guix-git/doc/guix.texi:11822
  17947. msgid "As an example, @var{file} might contain a package definition like this (@pxref{Defining Packages}):"
  17948. msgstr ""
  17949. #. type: table
  17950. #: guix-git/doc/guix.texi:11831
  17951. 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}:"
  17952. msgstr ""
  17953. #. type: item
  17954. #: guix-git/doc/guix.texi:11836
  17955. #, fuzzy, no-wrap
  17956. msgid "--manifest=@var{manifest}"
  17957. msgstr "--listen=@var{endpoint}"
  17958. #. type: itemx
  17959. #: guix-git/doc/guix.texi:11837
  17960. #, fuzzy, no-wrap
  17961. msgid "-m @var{manifest}"
  17962. msgstr "-c @var{n}"
  17963. #. type: table
  17964. #: guix-git/doc/guix.texi:11840
  17965. msgid "Build all packages listed in the given @var{manifest} (@pxref{profile-manifest, @option{--manifest}})."
  17966. msgstr ""
  17967. #. type: table
  17968. #: guix-git/doc/guix.texi:11844
  17969. msgid "Build the package or derivation @var{expr} evaluates to."
  17970. msgstr ""
  17971. #. type: table
  17972. #: guix-git/doc/guix.texi:11848
  17973. 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."
  17974. msgstr ""
  17975. #. type: table
  17976. #: guix-git/doc/guix.texi:11852
  17977. 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})."
  17978. msgstr ""
  17979. #. type: table
  17980. #: guix-git/doc/guix.texi:11856
  17981. 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}."
  17982. msgstr ""
  17983. #. type: item
  17984. #: guix-git/doc/guix.texi:11857
  17985. #, no-wrap
  17986. msgid "--source"
  17987. msgstr ""
  17988. #. type: itemx
  17989. #: guix-git/doc/guix.texi:11858
  17990. #, no-wrap
  17991. msgid "-S"
  17992. msgstr ""
  17993. #. type: table
  17994. #: guix-git/doc/guix.texi:11861
  17995. msgid "Build the source derivations of the packages, rather than the packages themselves."
  17996. msgstr ""
  17997. #. type: table
  17998. #: guix-git/doc/guix.texi:11865
  17999. 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."
  18000. msgstr ""
  18001. #. type: table
  18002. #: guix-git/doc/guix.texi:11869
  18003. msgid "The returned source tarball is the result of applying any patches and code snippets specified in the package @code{origin} (@pxref{Defining Packages})."
  18004. msgstr ""
  18005. #. type: cindex
  18006. #: guix-git/doc/guix.texi:11870
  18007. #, no-wrap
  18008. msgid "source, verification"
  18009. msgstr ""
  18010. #. type: table
  18011. #: guix-git/doc/guix.texi:11876
  18012. 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."
  18013. msgstr ""
  18014. #. type: table
  18015. #: guix-git/doc/guix.texi:11881
  18016. 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."
  18017. msgstr ""
  18018. #. type: item
  18019. #: guix-git/doc/guix.texi:11882
  18020. #, no-wrap
  18021. msgid "--sources"
  18022. msgstr ""
  18023. #. type: table
  18024. #: guix-git/doc/guix.texi:11889
  18025. 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:"
  18026. msgstr ""
  18027. #. type: item
  18028. #: guix-git/doc/guix.texi:11891 guix-git/doc/guix.texi:13715
  18029. #, no-wrap
  18030. msgid "package"
  18031. msgstr ""
  18032. #. type: table
  18033. #: guix-git/doc/guix.texi:11894
  18034. msgid "This value causes the @option{--sources} option to behave in the same way as the @option{--source} option."
  18035. msgstr ""
  18036. #. type: item
  18037. #: guix-git/doc/guix.texi:11895 guix-git/doc/guix.texi:20193
  18038. #, no-wrap
  18039. msgid "all"
  18040. msgstr ""
  18041. #. type: table
  18042. #: guix-git/doc/guix.texi:11898
  18043. msgid "Build the source derivations of all packages, including any source that might be listed as @code{inputs}. This is the default value."
  18044. msgstr ""
  18045. #. type: example
  18046. #: guix-git/doc/guix.texi:11904
  18047. #, no-wrap
  18048. msgid ""
  18049. "$ guix build --sources tzdata\n"
  18050. "The following derivations will be built:\n"
  18051. " /gnu/store/@dots{}-tzdata2015b.tar.gz.drv\n"
  18052. " /gnu/store/@dots{}-tzcode2015b.tar.gz.drv\n"
  18053. msgstr ""
  18054. #. type: item
  18055. #: guix-git/doc/guix.texi:11906
  18056. #, no-wrap
  18057. msgid "transitive"
  18058. msgstr ""
  18059. #. type: table
  18060. #: guix-git/doc/guix.texi:11910
  18061. 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."
  18062. msgstr ""
  18063. #. type: example
  18064. #: guix-git/doc/guix.texi:11921
  18065. #, no-wrap
  18066. msgid ""
  18067. "$ guix build --sources=transitive tzdata\n"
  18068. "The following derivations will be built:\n"
  18069. " /gnu/store/@dots{}-tzcode2015b.tar.gz.drv\n"
  18070. " /gnu/store/@dots{}-findutils-4.4.2.tar.xz.drv\n"
  18071. " /gnu/store/@dots{}-grep-2.21.tar.xz.drv\n"
  18072. " /gnu/store/@dots{}-coreutils-8.23.tar.xz.drv\n"
  18073. " /gnu/store/@dots{}-make-4.1.tar.xz.drv\n"
  18074. " /gnu/store/@dots{}-bash-4.3.tar.xz.drv\n"
  18075. "@dots{}\n"
  18076. msgstr ""
  18077. #. type: table
  18078. #: guix-git/doc/guix.texi:11931
  18079. 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."
  18080. msgstr ""
  18081. #. type: quotation
  18082. #: guix-git/doc/guix.texi:11936
  18083. 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."
  18084. msgstr ""
  18085. #. type: table
  18086. #: guix-git/doc/guix.texi:11943
  18087. 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."
  18088. msgstr ""
  18089. #. type: quotation
  18090. #: guix-git/doc/guix.texi:11948
  18091. 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."
  18092. msgstr ""
  18093. #. type: table
  18094. #: guix-git/doc/guix.texi:11954
  18095. 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."
  18096. msgstr ""
  18097. #. type: table
  18098. #: guix-git/doc/guix.texi:11958
  18099. 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."
  18100. msgstr ""
  18101. #. type: table
  18102. #: guix-git/doc/guix.texi:11964
  18103. 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})."
  18104. msgstr ""
  18105. #. type: anchor{#1}
  18106. #: guix-git/doc/guix.texi:11966
  18107. msgid "build-check"
  18108. msgstr ""
  18109. #. type: cindex
  18110. #: guix-git/doc/guix.texi:11967
  18111. #, no-wrap
  18112. msgid "determinism, checking"
  18113. msgstr ""
  18114. #. type: cindex
  18115. #: guix-git/doc/guix.texi:11968
  18116. #, no-wrap
  18117. msgid "reproducibility, checking"
  18118. msgstr ""
  18119. #. type: table
  18120. #: guix-git/doc/guix.texi:11972
  18121. 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."
  18122. msgstr ""
  18123. #. type: table
  18124. #: guix-git/doc/guix.texi:11977
  18125. 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."
  18126. msgstr ""
  18127. #. type: item
  18128. #: guix-git/doc/guix.texi:11982
  18129. #, no-wrap
  18130. msgid "--repair"
  18131. msgstr ""
  18132. #. type: cindex
  18133. #: guix-git/doc/guix.texi:11983
  18134. #, no-wrap
  18135. msgid "repairing store items"
  18136. msgstr ""
  18137. #. type: table
  18138. #: guix-git/doc/guix.texi:11987
  18139. msgid "Attempt to repair the specified store items, if they are corrupt, by re-downloading or rebuilding them."
  18140. msgstr ""
  18141. #. type: table
  18142. #: guix-git/doc/guix.texi:11989
  18143. msgid "This operation is not atomic and thus restricted to @code{root}."
  18144. msgstr ""
  18145. #. type: item
  18146. #: guix-git/doc/guix.texi:11990
  18147. #, no-wrap
  18148. msgid "--derivations"
  18149. msgstr ""
  18150. #. type: table
  18151. #: guix-git/doc/guix.texi:11994
  18152. msgid "Return the derivation paths, not the output paths, of the given packages."
  18153. msgstr ""
  18154. #. type: cindex
  18155. #: guix-git/doc/guix.texi:11997
  18156. #, no-wrap
  18157. msgid "GC roots, adding"
  18158. msgstr ""
  18159. #. type: cindex
  18160. #: guix-git/doc/guix.texi:11998
  18161. #, no-wrap
  18162. msgid "garbage collector roots, adding"
  18163. msgstr ""
  18164. #. type: table
  18165. #: guix-git/doc/guix.texi:12001 guix-git/doc/guix.texi:36361
  18166. msgid "Make @var{file} a symlink to the result, and register it as a garbage collector root."
  18167. msgstr ""
  18168. #. type: table
  18169. #: guix-git/doc/guix.texi:12007
  18170. 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."
  18171. msgstr ""
  18172. #. type: item
  18173. #: guix-git/doc/guix.texi:12008
  18174. #, no-wrap
  18175. msgid "--log-file"
  18176. msgstr ""
  18177. #. type: cindex
  18178. #: guix-git/doc/guix.texi:12009
  18179. #, no-wrap
  18180. msgid "build logs, access"
  18181. msgstr ""
  18182. #. type: table
  18183. #: guix-git/doc/guix.texi:12013
  18184. 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."
  18185. msgstr ""
  18186. #. type: table
  18187. #: guix-git/doc/guix.texi:12016
  18188. msgid "This works regardless of how packages or derivations are specified. For instance, the following invocations are equivalent:"
  18189. msgstr ""
  18190. #. type: example
  18191. #: guix-git/doc/guix.texi:12022
  18192. #, no-wrap
  18193. msgid ""
  18194. "guix build --log-file $(guix build -d guile)\n"
  18195. "guix build --log-file $(guix build guile)\n"
  18196. "guix build --log-file guile\n"
  18197. "guix build --log-file -e '(@@ (gnu packages guile) guile-2.0)'\n"
  18198. msgstr ""
  18199. #. type: table
  18200. #: guix-git/doc/guix.texi:12027
  18201. 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})."
  18202. msgstr ""
  18203. #. type: table
  18204. #: guix-git/doc/guix.texi:12030
  18205. 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:"
  18206. msgstr ""
  18207. #. type: example
  18208. #: guix-git/doc/guix.texi:12034
  18209. #, no-wrap
  18210. msgid ""
  18211. "$ guix build --log-file gdb -s aarch64-linux\n"
  18212. "https://@value{SUBSTITUTE-SERVER-1}/log/@dots{}-gdb-7.10\n"
  18213. msgstr ""
  18214. #. type: table
  18215. #: guix-git/doc/guix.texi:12037
  18216. msgid "You can freely access a huge library of build logs!"
  18217. msgstr ""
  18218. #. type: cindex
  18219. #: guix-git/doc/guix.texi:12042
  18220. #, no-wrap
  18221. msgid "build failures, debugging"
  18222. msgstr ""
  18223. #. type: Plain text
  18224. #: guix-git/doc/guix.texi:12048
  18225. 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."
  18226. msgstr ""
  18227. #. type: Plain text
  18228. #: guix-git/doc/guix.texi:12053
  18229. 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}})."
  18230. msgstr ""
  18231. #. type: Plain text
  18232. #: guix-git/doc/guix.texi:12059
  18233. 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:"
  18234. msgstr ""
  18235. #. type: example
  18236. #: guix-git/doc/guix.texi:12066
  18237. #, no-wrap
  18238. msgid ""
  18239. "$ guix build foo -K\n"
  18240. "@dots{} @i{build fails}\n"
  18241. "$ cd /tmp/guix-build-foo.drv-0\n"
  18242. "$ source ./environment-variables\n"
  18243. "$ cd foo-1.2\n"
  18244. msgstr ""
  18245. #. type: Plain text
  18246. #: guix-git/doc/guix.texi:12070
  18247. msgid "Now, you can invoke commands as if you were the daemon (almost) and troubleshoot your build process."
  18248. msgstr ""
  18249. #. type: Plain text
  18250. #: guix-git/doc/guix.texi:12076
  18251. 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})."
  18252. msgstr ""
  18253. #. type: Plain text
  18254. #: guix-git/doc/guix.texi:12079
  18255. 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:"
  18256. msgstr ""
  18257. #. type: example
  18258. #: guix-git/doc/guix.texi:12087
  18259. #, no-wrap
  18260. msgid ""
  18261. "$ guix build -K foo\n"
  18262. "@dots{}\n"
  18263. "$ cd /tmp/guix-build-foo.drv-0\n"
  18264. "$ guix shell --no-grafts -C -D foo strace gdb\n"
  18265. "[env]# source ./environment-variables\n"
  18266. "[env]# cd foo-1.2\n"
  18267. msgstr ""
  18268. #. type: Plain text
  18269. #: guix-git/doc/guix.texi:12096
  18270. 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)."
  18271. msgstr ""
  18272. #. type: Plain text
  18273. #: guix-git/doc/guix.texi:12099
  18274. msgid "To get closer to a container like that used by the build daemon, we can remove @file{/bin/sh}:"
  18275. msgstr ""
  18276. #. type: example
  18277. #: guix-git/doc/guix.texi:12102
  18278. #, no-wrap
  18279. msgid "[env]# rm /bin/sh\n"
  18280. msgstr ""
  18281. #. type: Plain text
  18282. #: guix-git/doc/guix.texi:12106
  18283. msgid "(Don't worry, this is harmless: this is all happening in the throw-away container created by @command{guix shell}.)"
  18284. msgstr ""
  18285. #. type: Plain text
  18286. #: guix-git/doc/guix.texi:12109
  18287. msgid "The @command{strace} command is probably not in the search path, but we can run:"
  18288. msgstr ""
  18289. #. type: example
  18290. #: guix-git/doc/guix.texi:12112
  18291. #, no-wrap
  18292. msgid "[env]# $GUIX_ENVIRONMENT/bin/strace -f -o log make check\n"
  18293. msgstr ""
  18294. #. type: Plain text
  18295. #: guix-git/doc/guix.texi:12117
  18296. 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."
  18297. msgstr ""
  18298. #. type: section
  18299. #: guix-git/doc/guix.texi:12120
  18300. #, no-wrap
  18301. msgid "Invoking @command{guix edit}"
  18302. msgstr ""
  18303. #. type: command{#1}
  18304. #: guix-git/doc/guix.texi:12122
  18305. #, no-wrap
  18306. msgid "guix edit"
  18307. msgstr ""
  18308. #. type: cindex
  18309. #: guix-git/doc/guix.texi:12123
  18310. #, no-wrap
  18311. msgid "package definition, editing"
  18312. msgstr ""
  18313. #. type: Plain text
  18314. #: guix-git/doc/guix.texi:12128
  18315. 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:"
  18316. msgstr ""
  18317. #. type: example
  18318. #: guix-git/doc/guix.texi:12131
  18319. #, no-wrap
  18320. msgid "guix edit gcc@@4.9 vim\n"
  18321. msgstr ""
  18322. #. type: Plain text
  18323. #: guix-git/doc/guix.texi:12137
  18324. 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."
  18325. msgstr ""
  18326. #. type: Plain text
  18327. #: guix-git/doc/guix.texi:12143
  18328. 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."
  18329. msgstr ""
  18330. #. type: Plain text
  18331. #: guix-git/doc/guix.texi:12148
  18332. 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."
  18333. msgstr ""
  18334. #. type: section
  18335. #: guix-git/doc/guix.texi:12150
  18336. #, no-wrap
  18337. msgid "Invoking @command{guix download}"
  18338. msgstr ""
  18339. #. type: command{#1}
  18340. #: guix-git/doc/guix.texi:12152
  18341. #, no-wrap
  18342. msgid "guix download"
  18343. msgstr ""
  18344. #. type: cindex
  18345. #: guix-git/doc/guix.texi:12153
  18346. #, no-wrap
  18347. msgid "downloading package sources"
  18348. msgstr ""
  18349. #. type: Plain text
  18350. #: guix-git/doc/guix.texi:12160
  18351. 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."
  18352. msgstr ""
  18353. #. type: Plain text
  18354. #: guix-git/doc/guix.texi:12167
  18355. 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})."
  18356. msgstr ""
  18357. #. type: Plain text
  18358. #: guix-git/doc/guix.texi:12175
  18359. 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."
  18360. msgstr ""
  18361. #. type: Plain text
  18362. #: guix-git/doc/guix.texi:12180
  18363. 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."
  18364. msgstr ""
  18365. #. type: Plain text
  18366. #: guix-git/doc/guix.texi:12182 guix-git/doc/guix.texi:14028
  18367. msgid "The following options are available:"
  18368. msgstr ""
  18369. #. type: item
  18370. #: guix-git/doc/guix.texi:12184 guix-git/doc/guix.texi:12228
  18371. #, no-wrap
  18372. msgid "--hash=@var{algorithm}"
  18373. msgstr ""
  18374. #. type: itemx
  18375. #: guix-git/doc/guix.texi:12185 guix-git/doc/guix.texi:12229
  18376. #, no-wrap
  18377. msgid "-H @var{algorithm}"
  18378. msgstr ""
  18379. #. type: table
  18380. #: guix-git/doc/guix.texi:12188
  18381. msgid "Compute a hash using the specified @var{algorithm}. @xref{Invoking guix hash}, for more information."
  18382. msgstr ""
  18383. #. type: item
  18384. #: guix-git/doc/guix.texi:12189 guix-git/doc/guix.texi:12238
  18385. #, no-wrap
  18386. msgid "--format=@var{fmt}"
  18387. msgstr ""
  18388. #. type: itemx
  18389. #: guix-git/doc/guix.texi:12190 guix-git/doc/guix.texi:12239
  18390. #, no-wrap
  18391. msgid "-f @var{fmt}"
  18392. msgstr ""
  18393. #. type: table
  18394. #: guix-git/doc/guix.texi:12193
  18395. 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}."
  18396. msgstr ""
  18397. #. type: item
  18398. #: guix-git/doc/guix.texi:12194
  18399. #, no-wrap
  18400. msgid "--no-check-certificate"
  18401. msgstr ""
  18402. #. type: table
  18403. #: guix-git/doc/guix.texi:12196
  18404. msgid "Do not validate the X.509 certificates of HTTPS servers."
  18405. msgstr ""
  18406. #. type: table
  18407. #: guix-git/doc/guix.texi:12200
  18408. 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."
  18409. msgstr ""
  18410. #. type: item
  18411. #: guix-git/doc/guix.texi:12201
  18412. #, no-wrap
  18413. msgid "--output=@var{file}"
  18414. msgstr ""
  18415. #. type: itemx
  18416. #: guix-git/doc/guix.texi:12202
  18417. #, no-wrap
  18418. msgid "-o @var{file}"
  18419. msgstr ""
  18420. #. type: table
  18421. #: guix-git/doc/guix.texi:12205
  18422. msgid "Save the downloaded file to @var{file} instead of adding it to the store."
  18423. msgstr ""
  18424. #. type: section
  18425. #: guix-git/doc/guix.texi:12208
  18426. #, no-wrap
  18427. msgid "Invoking @command{guix hash}"
  18428. msgstr ""
  18429. #. type: command{#1}
  18430. #: guix-git/doc/guix.texi:12210
  18431. #, no-wrap
  18432. msgid "guix hash"
  18433. msgstr ""
  18434. #. type: Plain text
  18435. #: guix-git/doc/guix.texi:12215
  18436. msgid "The @command{guix hash} command computes the hash of a file. It is primarily a convenience tool for anyone contributing to the distribution: it computes the cryptographic hash of one or more files, which can be used in the definition of a package (@pxref{Defining Packages})."
  18437. msgstr ""
  18438. #. type: example
  18439. #: guix-git/doc/guix.texi:12220
  18440. #, fuzzy, no-wrap
  18441. msgid "guix hash @var{option} @var{file} ...\n"
  18442. msgstr "guix install emacs-guix\n"
  18443. #. type: Plain text
  18444. #: guix-git/doc/guix.texi:12225
  18445. 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:"
  18446. msgstr ""
  18447. #. type: table
  18448. #: guix-git/doc/guix.texi:12232
  18449. msgid "Compute a hash using the specified @var{algorithm}, @code{sha256} by default."
  18450. msgstr ""
  18451. #. type: table
  18452. #: guix-git/doc/guix.texi:12237
  18453. msgid "@var{algorithm} must be the name of a cryptographic hash algorithm supported by Libgcrypt @i{via} Guile-Gcrypt---e.g., @code{sha512} or @code{sha3-256} (@pxref{Hash Functions,,, guile-gcrypt, Guile-Gcrypt Reference Manual})."
  18454. msgstr ""
  18455. #. type: table
  18456. #: guix-git/doc/guix.texi:12241
  18457. msgid "Write the hash in the format specified by @var{fmt}."
  18458. msgstr ""
  18459. #. type: table
  18460. #: guix-git/doc/guix.texi:12244
  18461. msgid "Supported formats: @code{base64}, @code{nix-base32}, @code{base32}, @code{base16} (@code{hex} and @code{hexadecimal} can be used as well)."
  18462. msgstr ""
  18463. #. type: table
  18464. #: guix-git/doc/guix.texi:12248
  18465. 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."
  18466. msgstr ""
  18467. #. type: table
  18468. #: guix-git/doc/guix.texi:12254
  18469. msgid "The @option{--recursive} option is deprecated in favor of @option{--serializer=nar} (see below); @option{-r} remains accepted as a convenient shorthand."
  18470. msgstr ""
  18471. #. type: item
  18472. #: guix-git/doc/guix.texi:12255
  18473. #, fuzzy, no-wrap
  18474. msgid "--serializer=@var{type}"
  18475. msgstr "--log-compression=@var{type}"
  18476. #. type: itemx
  18477. #: guix-git/doc/guix.texi:12256
  18478. #, fuzzy, no-wrap
  18479. #| msgid "-c @var{n}"
  18480. msgid "-S @var{type}"
  18481. msgstr "-c @var{n}"
  18482. #. type: table
  18483. #: guix-git/doc/guix.texi:12258
  18484. msgid "Compute the hash on @var{file} using @var{type} serialization."
  18485. msgstr ""
  18486. #. type: table
  18487. #: guix-git/doc/guix.texi:12260
  18488. msgid "@var{type} may be one of the following:"
  18489. msgstr ""
  18490. #. type: item
  18491. #: guix-git/doc/guix.texi:12262 guix-git/doc/guix.texi:14381
  18492. #: guix-git/doc/guix.texi:17906 guix-git/doc/guix.texi:20190
  18493. #, no-wrap
  18494. msgid "none"
  18495. msgstr ""
  18496. #. type: table
  18497. #: guix-git/doc/guix.texi:12264
  18498. msgid "This is the default: it computes the hash of a file's contents."
  18499. msgstr ""
  18500. #. type: item
  18501. #: guix-git/doc/guix.texi:12265
  18502. #, no-wrap
  18503. msgid "nar"
  18504. msgstr ""
  18505. #. type: table
  18506. #: guix-git/doc/guix.texi:12275
  18507. msgid "Compute the hash of a ``normalized archive'' (or ``nar'') containing @var{file}, including its children if it is a directory. Some of the metadata of @var{file} is part of the archive; for instance, when @var{file} is a regular file, the hash is different depending on whether @var{file} is executable or not. Metadata such as time stamps have no impact on the hash (@pxref{Invoking guix archive}, for more info on the nar format)."
  18508. msgstr ""
  18509. #. type: item
  18510. #: guix-git/doc/guix.texi:12276
  18511. #, no-wrap
  18512. msgid "git"
  18513. msgstr ""
  18514. #. type: table
  18515. #: guix-git/doc/guix.texi:12279
  18516. msgid "Compute the hash of the file or directory as a Git ``tree'', following the same method as the Git version control system."
  18517. msgstr ""
  18518. #. type: item
  18519. #: guix-git/doc/guix.texi:12281
  18520. #, no-wrap
  18521. msgid "--exclude-vcs"
  18522. msgstr ""
  18523. #. type: itemx
  18524. #: guix-git/doc/guix.texi:12282 guix-git/doc/guix.texi:13501
  18525. #, no-wrap
  18526. msgid "-x"
  18527. msgstr ""
  18528. #. type: table
  18529. #: guix-git/doc/guix.texi:12285
  18530. msgid "When combined with @option{--recursive}, exclude version control system directories (@file{.bzr}, @file{.git}, @file{.hg}, etc.)."
  18531. msgstr ""
  18532. #. type: vindex
  18533. #: guix-git/doc/guix.texi:12286
  18534. #, no-wrap
  18535. msgid "git-fetch"
  18536. msgstr ""
  18537. #. type: table
  18538. #: guix-git/doc/guix.texi:12290
  18539. 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}):"
  18540. msgstr ""
  18541. #. type: example
  18542. #: guix-git/doc/guix.texi:12295
  18543. #, no-wrap
  18544. msgid ""
  18545. "$ git clone http://example.org/foo.git\n"
  18546. "$ cd foo\n"
  18547. "$ guix hash -x --serializer=nar .\n"
  18548. msgstr ""
  18549. #. type: cindex
  18550. #: guix-git/doc/guix.texi:12299 guix-git/doc/guix.texi:12304
  18551. #, no-wrap
  18552. msgid "Invoking @command{guix import}"
  18553. msgstr ""
  18554. #. type: cindex
  18555. #: guix-git/doc/guix.texi:12301
  18556. #, no-wrap
  18557. msgid "importing packages"
  18558. msgstr ""
  18559. #. type: cindex
  18560. #: guix-git/doc/guix.texi:12302
  18561. #, no-wrap
  18562. msgid "package import"
  18563. msgstr ""
  18564. #. type: cindex
  18565. #: guix-git/doc/guix.texi:12303
  18566. #, no-wrap
  18567. msgid "package conversion"
  18568. msgstr ""
  18569. #. type: Plain text
  18570. #: guix-git/doc/guix.texi:12311
  18571. 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})."
  18572. msgstr ""
  18573. #. type: example
  18574. #: guix-git/doc/guix.texi:12316
  18575. #, no-wrap
  18576. msgid "guix import @var{importer} @var{options}@dots{}\n"
  18577. msgstr ""
  18578. #. type: Plain text
  18579. #: guix-git/doc/guix.texi:12321
  18580. 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}."
  18581. msgstr ""
  18582. #. type: Plain text
  18583. #: guix-git/doc/guix.texi:12325
  18584. 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."
  18585. msgstr ""
  18586. #. type: Plain text
  18587. #: guix-git/doc/guix.texi:12327
  18588. msgid "Currently, the available ``importers'' are:"
  18589. msgstr ""
  18590. #. type: item
  18591. #: guix-git/doc/guix.texi:12329 guix-git/doc/guix.texi:12967
  18592. #, no-wrap
  18593. msgid "gnu"
  18594. msgstr ""
  18595. #. type: table
  18596. #: guix-git/doc/guix.texi:12333
  18597. 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."
  18598. msgstr ""
  18599. #. type: table
  18600. #: guix-git/doc/guix.texi:12336
  18601. msgid "Additional information such as the package dependencies and its license needs to be figured out manually."
  18602. msgstr ""
  18603. #. type: table
  18604. #: guix-git/doc/guix.texi:12339
  18605. msgid "For example, the following command returns a package definition for GNU@tie{}Hello:"
  18606. msgstr ""
  18607. #. type: example
  18608. #: guix-git/doc/guix.texi:12342
  18609. #, no-wrap
  18610. msgid "guix import gnu hello\n"
  18611. msgstr ""
  18612. #. type: table
  18613. #: guix-git/doc/guix.texi:12345 guix-git/doc/guix.texi:12586
  18614. #: guix-git/doc/guix.texi:12636 guix-git/doc/guix.texi:12665
  18615. msgid "Specific command-line options are:"
  18616. msgstr ""
  18617. #. type: item
  18618. #: guix-git/doc/guix.texi:12347 guix-git/doc/guix.texi:13164
  18619. #, no-wrap
  18620. msgid "--key-download=@var{policy}"
  18621. msgstr ""
  18622. #. type: table
  18623. #: guix-git/doc/guix.texi:12351
  18624. 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}}."
  18625. msgstr ""
  18626. #. type: item
  18627. #: guix-git/doc/guix.texi:12353 guix-git/doc/guix.texi:12354
  18628. #: guix-git/doc/guix.texi:12991
  18629. #, no-wrap
  18630. msgid "pypi"
  18631. msgstr ""
  18632. #. type: table
  18633. #: guix-git/doc/guix.texi:12361
  18634. 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."
  18635. msgstr ""
  18636. #. type: table
  18637. #: guix-git/doc/guix.texi:12364
  18638. msgid "The command below imports metadata for the latest version of the @code{itsdangerous} Python package:"
  18639. msgstr ""
  18640. #. type: example
  18641. #: guix-git/doc/guix.texi:12367
  18642. #, no-wrap
  18643. msgid "guix import pypi itsdangerous\n"
  18644. msgstr ""
  18645. #. type: table
  18646. #: guix-git/doc/guix.texi:12370 guix-git/doc/guix.texi:12473
  18647. #: guix-git/doc/guix.texi:12814
  18648. msgid "You can also ask for a specific version:"
  18649. msgstr ""
  18650. #. type: example
  18651. #: guix-git/doc/guix.texi:12373
  18652. #, no-wrap
  18653. msgid "guix import pypi itsdangerous@@1.1.0\n"
  18654. msgstr ""
  18655. #. type: table
  18656. #: guix-git/doc/guix.texi:12381 guix-git/doc/guix.texi:12406
  18657. #: guix-git/doc/guix.texi:12438 guix-git/doc/guix.texi:12609
  18658. #: guix-git/doc/guix.texi:12650 guix-git/doc/guix.texi:12701
  18659. #: guix-git/doc/guix.texi:12726 guix-git/doc/guix.texi:12742
  18660. #: guix-git/doc/guix.texi:12790 guix-git/doc/guix.texi:12826
  18661. 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."
  18662. msgstr ""
  18663. #. type: item
  18664. #: guix-git/doc/guix.texi:12383 guix-git/doc/guix.texi:12384
  18665. #: guix-git/doc/guix.texi:12993
  18666. #, no-wrap
  18667. msgid "gem"
  18668. msgstr ""
  18669. #. type: table
  18670. #: guix-git/doc/guix.texi:12393
  18671. 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."
  18672. msgstr ""
  18673. #. type: table
  18674. #: guix-git/doc/guix.texi:12395
  18675. msgid "The command below imports metadata for the @code{rails} Ruby package:"
  18676. msgstr ""
  18677. #. type: example
  18678. #: guix-git/doc/guix.texi:12398
  18679. #, no-wrap
  18680. msgid "guix import gem rails\n"
  18681. msgstr ""
  18682. #. type: cindex
  18683. #: guix-git/doc/guix.texi:12408 guix-git/doc/guix.texi:12409
  18684. #, no-wrap
  18685. msgid "minetest"
  18686. msgstr ""
  18687. #. type: cindex
  18688. #: guix-git/doc/guix.texi:12410
  18689. #, no-wrap
  18690. msgid "ContentDB"
  18691. msgstr ""
  18692. #. type: table
  18693. #: guix-git/doc/guix.texi:12419
  18694. 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."
  18695. msgstr ""
  18696. #. type: table
  18697. #: guix-git/doc/guix.texi:12421
  18698. msgid "The command below imports metadata for the Mesecons mod by Jeija:"
  18699. msgstr ""
  18700. #. type: example
  18701. #: guix-git/doc/guix.texi:12424
  18702. #, no-wrap
  18703. msgid "guix import minetest Jeija/mesecons\n"
  18704. msgstr ""
  18705. #. type: table
  18706. #: guix-git/doc/guix.texi:12427
  18707. msgid "The author name can also be left out:"
  18708. msgstr ""
  18709. #. type: example
  18710. #: guix-git/doc/guix.texi:12430
  18711. #, no-wrap
  18712. msgid "guix import minetest mesecons\n"
  18713. msgstr ""
  18714. #. type: item
  18715. #: guix-git/doc/guix.texi:12440 guix-git/doc/guix.texi:12989
  18716. #, no-wrap
  18717. msgid "cpan"
  18718. msgstr ""
  18719. #. type: cindex
  18720. #: guix-git/doc/guix.texi:12441
  18721. #, no-wrap
  18722. msgid "CPAN"
  18723. msgstr ""
  18724. #. type: table
  18725. #: guix-git/doc/guix.texi:12449
  18726. 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."
  18727. msgstr ""
  18728. #. type: table
  18729. #: guix-git/doc/guix.texi:12452
  18730. msgid "The command command below imports metadata for the Acme::Boolean Perl module:"
  18731. msgstr ""
  18732. #. type: example
  18733. #: guix-git/doc/guix.texi:12455
  18734. #, no-wrap
  18735. msgid "guix import cpan Acme::Boolean\n"
  18736. msgstr ""
  18737. #. type: item
  18738. #: guix-git/doc/guix.texi:12457 guix-git/doc/guix.texi:12985
  18739. #, no-wrap
  18740. msgid "cran"
  18741. msgstr ""
  18742. #. type: cindex
  18743. #: guix-git/doc/guix.texi:12458
  18744. #, no-wrap
  18745. msgid "CRAN"
  18746. msgstr ""
  18747. #. type: cindex
  18748. #: guix-git/doc/guix.texi:12459
  18749. #, no-wrap
  18750. msgid "Bioconductor"
  18751. msgstr ""
  18752. #. type: table
  18753. #: guix-git/doc/guix.texi:12463
  18754. 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}."
  18755. msgstr ""
  18756. #. type: table
  18757. #: guix-git/doc/guix.texi:12465
  18758. msgid "Information is extracted from the @file{DESCRIPTION} file of the package."
  18759. msgstr ""
  18760. #. type: table
  18761. #: guix-git/doc/guix.texi:12467
  18762. msgid "The command command below imports metadata for the Cairo R package:"
  18763. msgstr ""
  18764. #. type: example
  18765. #: guix-git/doc/guix.texi:12470
  18766. #, no-wrap
  18767. msgid "guix import cran Cairo\n"
  18768. msgstr ""
  18769. #. type: example
  18770. #: guix-git/doc/guix.texi:12476
  18771. #, no-wrap
  18772. msgid "guix import cran rasterVis@@0.50.3\n"
  18773. msgstr ""
  18774. #. type: table
  18775. #: guix-git/doc/guix.texi:12481
  18776. 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."
  18777. msgstr ""
  18778. #. type: table
  18779. #: guix-git/doc/guix.texi:12488
  18780. 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}."
  18781. msgstr ""
  18782. #. type: table
  18783. #: guix-git/doc/guix.texi:12493
  18784. 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."
  18785. msgstr ""
  18786. #. type: table
  18787. #: guix-git/doc/guix.texi:12496
  18788. msgid "Information is extracted from the @file{DESCRIPTION} file contained in the package archive."
  18789. msgstr ""
  18790. #. type: table
  18791. #: guix-git/doc/guix.texi:12498
  18792. msgid "The command below imports metadata for the GenomicRanges R package:"
  18793. msgstr ""
  18794. #. type: example
  18795. #: guix-git/doc/guix.texi:12501
  18796. #, no-wrap
  18797. msgid "guix import cran --archive=bioconductor GenomicRanges\n"
  18798. msgstr ""
  18799. #. type: table
  18800. #: guix-git/doc/guix.texi:12506
  18801. 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:"
  18802. msgstr ""
  18803. #. type: example
  18804. #: guix-git/doc/guix.texi:12509
  18805. #, no-wrap
  18806. msgid "guix import cran --archive=git https://github.com/immunogenomics/harmony\n"
  18807. msgstr ""
  18808. #. type: item
  18809. #: guix-git/doc/guix.texi:12511
  18810. #, no-wrap
  18811. msgid "texlive"
  18812. msgstr ""
  18813. #. type: cindex
  18814. #: guix-git/doc/guix.texi:12512
  18815. #, no-wrap
  18816. msgid "TeX Live"
  18817. msgstr ""
  18818. #. type: cindex
  18819. #: guix-git/doc/guix.texi:12513
  18820. #, no-wrap
  18821. msgid "CTAN"
  18822. msgstr ""
  18823. #. type: table
  18824. #: guix-git/doc/guix.texi:12517
  18825. 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}."
  18826. msgstr ""
  18827. #. type: table
  18828. #: guix-git/doc/guix.texi:12522
  18829. 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."
  18830. msgstr ""
  18831. #. type: table
  18832. #: guix-git/doc/guix.texi:12525
  18833. msgid "The command command below imports metadata for the @code{fontspec} TeX package:"
  18834. msgstr ""
  18835. #. type: example
  18836. #: guix-git/doc/guix.texi:12528
  18837. #, no-wrap
  18838. msgid "guix import texlive fontspec\n"
  18839. msgstr ""
  18840. #. type: cindex
  18841. #: guix-git/doc/guix.texi:12531
  18842. #, no-wrap
  18843. msgid "JSON, import"
  18844. msgstr ""
  18845. #. type: table
  18846. #: guix-git/doc/guix.texi:12534
  18847. msgid "Import package metadata from a local JSON file. Consider the following example package definition in JSON format:"
  18848. msgstr ""
  18849. #. type: example
  18850. #: guix-git/doc/guix.texi:12547
  18851. #, no-wrap
  18852. msgid ""
  18853. "@{\n"
  18854. " \"name\": \"hello\",\n"
  18855. " \"version\": \"2.10\",\n"
  18856. " \"source\": \"mirror://gnu/hello/hello-2.10.tar.gz\",\n"
  18857. " \"build-system\": \"gnu\",\n"
  18858. " \"home-page\": \"https://www.gnu.org/software/hello/\",\n"
  18859. " \"synopsis\": \"Hello, GNU world: An example GNU package\",\n"
  18860. " \"description\": \"GNU Hello prints a greeting.\",\n"
  18861. " \"license\": \"GPL-3.0+\",\n"
  18862. " \"native-inputs\": [\"gettext\"]\n"
  18863. "@}\n"
  18864. msgstr ""
  18865. #. type: table
  18866. #: guix-git/doc/guix.texi:12553
  18867. 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}."
  18868. msgstr ""
  18869. #. type: table
  18870. #: guix-git/doc/guix.texi:12556
  18871. msgid "The importer also supports a more explicit source definition using the common fields for @code{<origin>} records:"
  18872. msgstr ""
  18873. #. type: example
  18874. #: guix-git/doc/guix.texi:12569
  18875. #, no-wrap
  18876. msgid ""
  18877. "@{\n"
  18878. " @dots{}\n"
  18879. " \"source\": @{\n"
  18880. " \"method\": \"url-fetch\",\n"
  18881. " \"uri\": \"mirror://gnu/hello/hello-2.10.tar.gz\",\n"
  18882. " \"sha256\": @{\n"
  18883. " \"base32\": \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"\n"
  18884. " @}\n"
  18885. " @}\n"
  18886. " @dots{}\n"
  18887. "@}\n"
  18888. msgstr ""
  18889. #. type: table
  18890. #: guix-git/doc/guix.texi:12573
  18891. msgid "The command below reads metadata from the JSON file @code{hello.json} and outputs a package expression:"
  18892. msgstr ""
  18893. #. type: example
  18894. #: guix-git/doc/guix.texi:12576
  18895. #, no-wrap
  18896. msgid "guix import json hello.json\n"
  18897. msgstr ""
  18898. #. type: item
  18899. #: guix-git/doc/guix.texi:12578 guix-git/doc/guix.texi:12579
  18900. #: guix-git/doc/guix.texi:12997
  18901. #, no-wrap
  18902. msgid "hackage"
  18903. msgstr ""
  18904. #. type: table
  18905. #: guix-git/doc/guix.texi:12584
  18906. 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."
  18907. msgstr ""
  18908. #. type: item
  18909. #: guix-git/doc/guix.texi:12588
  18910. #, no-wrap
  18911. msgid "--stdin"
  18912. msgstr ""
  18913. #. type: itemx
  18914. #: guix-git/doc/guix.texi:12589
  18915. #, no-wrap
  18916. msgid "-s"
  18917. msgstr ""
  18918. #. type: table
  18919. #: guix-git/doc/guix.texi:12591
  18920. msgid "Read a Cabal file from standard input."
  18921. msgstr ""
  18922. #. type: item
  18923. #: guix-git/doc/guix.texi:12591 guix-git/doc/guix.texi:12638
  18924. #, no-wrap
  18925. msgid "--no-test-dependencies"
  18926. msgstr ""
  18927. #. type: table
  18928. #: guix-git/doc/guix.texi:12594 guix-git/doc/guix.texi:12641
  18929. msgid "Do not include dependencies required only by the test suites."
  18930. msgstr ""
  18931. #. type: item
  18932. #: guix-git/doc/guix.texi:12594
  18933. #, no-wrap
  18934. msgid "--cabal-environment=@var{alist}"
  18935. msgstr ""
  18936. #. type: itemx
  18937. #: guix-git/doc/guix.texi:12595
  18938. #, no-wrap
  18939. msgid "-e @var{alist}"
  18940. msgstr ""
  18941. #. type: table
  18942. #: guix-git/doc/guix.texi:12604
  18943. 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."
  18944. msgstr ""
  18945. #. type: table
  18946. #: guix-git/doc/guix.texi:12614
  18947. 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}:"
  18948. msgstr ""
  18949. #. type: example
  18950. #: guix-git/doc/guix.texi:12617
  18951. #, no-wrap
  18952. msgid "guix import hackage -t -e \"'((\\\"network-uri\\\" . false))\" HTTP\n"
  18953. msgstr ""
  18954. #. type: table
  18955. #: guix-git/doc/guix.texi:12621
  18956. 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:"
  18957. msgstr ""
  18958. #. type: example
  18959. #: guix-git/doc/guix.texi:12624
  18960. #, no-wrap
  18961. msgid "guix import hackage mtl@@2.1.3.1\n"
  18962. msgstr ""
  18963. #. type: item
  18964. #: guix-git/doc/guix.texi:12626 guix-git/doc/guix.texi:12627
  18965. #: guix-git/doc/guix.texi:12999
  18966. #, no-wrap
  18967. msgid "stackage"
  18968. msgstr ""
  18969. #. type: table
  18970. #: guix-git/doc/guix.texi:12634
  18971. 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."
  18972. msgstr ""
  18973. #. type: item
  18974. #: guix-git/doc/guix.texi:12641
  18975. #, no-wrap
  18976. msgid "--lts-version=@var{version}"
  18977. msgstr ""
  18978. #. type: itemx
  18979. #: guix-git/doc/guix.texi:12642
  18980. #, no-wrap
  18981. msgid "-l @var{version}"
  18982. msgstr ""
  18983. #. type: table
  18984. #: guix-git/doc/guix.texi:12645
  18985. msgid "@var{version} is the desired LTS release version. If omitted the latest release is used."
  18986. msgstr ""
  18987. #. type: table
  18988. #: guix-git/doc/guix.texi:12654
  18989. msgid "The command below imports metadata for the HTTP Haskell package included in the LTS Stackage release version 7.18:"
  18990. msgstr ""
  18991. #. type: example
  18992. #: guix-git/doc/guix.texi:12657
  18993. #, no-wrap
  18994. msgid "guix import stackage --lts-version=7.18 HTTP\n"
  18995. msgstr ""
  18996. #. type: item
  18997. #: guix-git/doc/guix.texi:12659 guix-git/doc/guix.texi:12660
  18998. #: guix-git/doc/guix.texi:12983
  18999. #, no-wrap
  19000. msgid "elpa"
  19001. msgstr ""
  19002. #. type: table
  19003. #: guix-git/doc/guix.texi:12663
  19004. msgid "Import metadata from an Emacs Lisp Package Archive (ELPA) package repository (@pxref{Packages,,, emacs, The GNU Emacs Manual})."
  19005. msgstr ""
  19006. #. type: item
  19007. #: guix-git/doc/guix.texi:12667
  19008. #, no-wrap
  19009. msgid "--archive=@var{repo}"
  19010. msgstr ""
  19011. #. type: itemx
  19012. #: guix-git/doc/guix.texi:12668
  19013. #, no-wrap
  19014. msgid "-a @var{repo}"
  19015. msgstr ""
  19016. #. type: table
  19017. #: guix-git/doc/guix.texi:12672
  19018. msgid "@var{repo} identifies the archive repository from which to retrieve the information. Currently the supported repositories and their identifiers are:"
  19019. msgstr ""
  19020. #. type: itemize
  19021. #: guix-git/doc/guix.texi:12676
  19022. msgid "@uref{https://elpa.gnu.org/packages, GNU}, selected by the @code{gnu} identifier. This is the default."
  19023. msgstr ""
  19024. #. type: itemize
  19025. #: guix-git/doc/guix.texi:12682
  19026. 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})."
  19027. msgstr ""
  19028. #. type: itemize
  19029. #: guix-git/doc/guix.texi:12686
  19030. msgid "@uref{https://elpa.nongnu.org/nongnu/, NonGNU}, selected by the @code{nongnu} identifier."
  19031. msgstr ""
  19032. #. type: itemize
  19033. #: guix-git/doc/guix.texi:12690
  19034. msgid "@uref{https://stable.melpa.org/packages, MELPA-Stable}, selected by the @code{melpa-stable} identifier."
  19035. msgstr ""
  19036. #. type: itemize
  19037. #: guix-git/doc/guix.texi:12694
  19038. msgid "@uref{https://melpa.org/packages, MELPA}, selected by the @code{melpa} identifier."
  19039. msgstr ""
  19040. #. type: item
  19041. #: guix-git/doc/guix.texi:12703 guix-git/doc/guix.texi:12704
  19042. #: guix-git/doc/guix.texi:13001
  19043. #, no-wrap
  19044. msgid "crate"
  19045. msgstr ""
  19046. #. type: table
  19047. #: guix-git/doc/guix.texi:12707
  19048. msgid "Import metadata from the crates.io Rust package repository @uref{https://crates.io, crates.io}, as in this example:"
  19049. msgstr ""
  19050. #. type: example
  19051. #: guix-git/doc/guix.texi:12710
  19052. #, no-wrap
  19053. msgid "guix import crate blake2-rfc\n"
  19054. msgstr ""
  19055. #. type: table
  19056. #: guix-git/doc/guix.texi:12713
  19057. msgid "The crate importer also allows you to specify a version string:"
  19058. msgstr ""
  19059. #. type: example
  19060. #: guix-git/doc/guix.texi:12716
  19061. #, no-wrap
  19062. msgid "guix import crate constant-time-eq@@0.1.0\n"
  19063. msgstr ""
  19064. #. type: table
  19065. #: guix-git/doc/guix.texi:12719 guix-git/doc/guix.texi:12735
  19066. #: guix-git/doc/guix.texi:12783 guix-git/doc/guix.texi:12820
  19067. #, fuzzy
  19068. msgid "Additional options include:"
  19069. msgstr "额外的构建选项"
  19070. #. type: item
  19071. #: guix-git/doc/guix.texi:12728
  19072. #, no-wrap
  19073. msgid "opam"
  19074. msgstr ""
  19075. #. type: cindex
  19076. #: guix-git/doc/guix.texi:12729
  19077. #, no-wrap
  19078. msgid "OPAM"
  19079. msgstr ""
  19080. #. type: cindex
  19081. #: guix-git/doc/guix.texi:12730
  19082. #, no-wrap
  19083. msgid "OCaml"
  19084. msgstr ""
  19085. #. type: table
  19086. #: guix-git/doc/guix.texi:12733
  19087. msgid "Import metadata from the @uref{https://opam.ocaml.org/, OPAM} package repository used by the OCaml community."
  19088. msgstr ""
  19089. #. type: item
  19090. #: guix-git/doc/guix.texi:12742
  19091. #, no-wrap
  19092. msgid "--repo"
  19093. msgstr ""
  19094. #. type: table
  19095. #: guix-git/doc/guix.texi:12746
  19096. 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:"
  19097. msgstr ""
  19098. #. type: item
  19099. #: guix-git/doc/guix.texi:12748
  19100. #, no-wrap
  19101. msgid "the name of a known repository - can be one of @code{opam},"
  19102. msgstr ""
  19103. #. type: itemize
  19104. #: guix-git/doc/guix.texi:12751
  19105. msgid "@code{coq} (equivalent to @code{coq-released}), @code{coq-core-dev}, @code{coq-extra-dev} or @code{grew}."
  19106. msgstr ""
  19107. #. type: item
  19108. #: guix-git/doc/guix.texi:12751
  19109. #, no-wrap
  19110. msgid "the URL of a repository as expected by the"
  19111. msgstr ""
  19112. #. type: itemize
  19113. #: guix-git/doc/guix.texi:12755
  19114. msgid "@code{opam repository add} command (for instance, the URL equivalent of the above @code{opam} name would be @uref{https://opam.ocaml.org})."
  19115. msgstr ""
  19116. #. type: item
  19117. #: guix-git/doc/guix.texi:12755
  19118. #, no-wrap
  19119. msgid "the path to a local copy of a repository (a directory containing a"
  19120. msgstr ""
  19121. #. type: itemize
  19122. #: guix-git/doc/guix.texi:12757
  19123. #, fuzzy
  19124. msgid "@file{packages/} sub-directory)."
  19125. msgstr "软件包模块"
  19126. #. type: table
  19127. #: guix-git/doc/guix.texi:12762
  19128. 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."
  19129. msgstr ""
  19130. #. type: table
  19131. #: guix-git/doc/guix.texi:12767
  19132. 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}."
  19133. msgstr ""
  19134. #. type: cindex
  19135. #: guix-git/doc/guix.texi:12770 guix-git/doc/guix.texi:12771
  19136. #, no-wrap
  19137. msgid "go"
  19138. msgstr ""
  19139. #. type: table
  19140. #: guix-git/doc/guix.texi:12774
  19141. msgid "Import metadata for a Go module using @uref{https://proxy.golang.org, proxy.golang.org}."
  19142. msgstr ""
  19143. #. type: example
  19144. #: guix-git/doc/guix.texi:12777
  19145. #, no-wrap
  19146. msgid "guix import go gopkg.in/yaml.v2\n"
  19147. msgstr ""
  19148. #. type: table
  19149. #: guix-git/doc/guix.texi:12781
  19150. msgid "It is possible to use a package specification with a @code{@@VERSION} suffix to import a specific version."
  19151. msgstr ""
  19152. #. type: item
  19153. #: guix-git/doc/guix.texi:12790
  19154. #, no-wrap
  19155. msgid "--pin-versions"
  19156. msgstr ""
  19157. #. type: table
  19158. #: guix-git/doc/guix.texi:12798
  19159. 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."
  19160. msgstr ""
  19161. #. type: item
  19162. #: guix-git/doc/guix.texi:12800 guix-git/doc/guix.texi:12801
  19163. #: guix-git/doc/guix.texi:12981
  19164. #, no-wrap
  19165. msgid "egg"
  19166. msgstr ""
  19167. #. type: table
  19168. #: guix-git/doc/guix.texi:12808
  19169. 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)."
  19170. msgstr ""
  19171. #. type: example
  19172. #: guix-git/doc/guix.texi:12811
  19173. #, no-wrap
  19174. msgid "guix import egg sourcehut\n"
  19175. msgstr ""
  19176. #. type: example
  19177. #: guix-git/doc/guix.texi:12817
  19178. #, no-wrap
  19179. msgid "guix import egg arrays@@1.0\n"
  19180. msgstr ""
  19181. #. type: Plain text
  19182. #: guix-git/doc/guix.texi:12832
  19183. 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})."
  19184. msgstr ""
  19185. #. type: section
  19186. #: guix-git/doc/guix.texi:12834
  19187. #, no-wrap
  19188. msgid "Invoking @command{guix refresh}"
  19189. msgstr ""
  19190. #. type: command{#1}
  19191. #: guix-git/doc/guix.texi:12836
  19192. #, no-wrap
  19193. msgid "guix refresh"
  19194. msgstr ""
  19195. #. type: Plain text
  19196. #: guix-git/doc/guix.texi:12844
  19197. 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:"
  19198. msgstr ""
  19199. #. type: example
  19200. #: guix-git/doc/guix.texi:12849
  19201. #, no-wrap
  19202. msgid ""
  19203. "$ guix refresh\n"
  19204. "gnu/packages/gettext.scm:29:13: gettext would be upgraded from 0.18.1.1 to 0.18.2.1\n"
  19205. "gnu/packages/glib.scm:77:12: glib would be upgraded from 2.34.3 to 2.37.0\n"
  19206. msgstr ""
  19207. #. type: Plain text
  19208. #: guix-git/doc/guix.texi:12853
  19209. msgid "Alternatively, one can specify packages to consider, in which case a warning is emitted for packages that lack an updater:"
  19210. msgstr ""
  19211. #. type: example
  19212. #: guix-git/doc/guix.texi:12858
  19213. #, no-wrap
  19214. msgid ""
  19215. "$ guix refresh coreutils guile guile-ssh\n"
  19216. "gnu/packages/ssh.scm:205:2: warning: no updater for guile-ssh\n"
  19217. "gnu/packages/guile.scm:136:12: guile would be upgraded from 2.0.12 to 2.0.13\n"
  19218. msgstr ""
  19219. #. type: Plain text
  19220. #: guix-git/doc/guix.texi:12867
  19221. 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!"
  19222. msgstr ""
  19223. #. type: table
  19224. #: guix-git/doc/guix.texi:12872
  19225. msgid "Consider the packages specified, and all the packages upon which they depend."
  19226. msgstr ""
  19227. #. type: example
  19228. #: guix-git/doc/guix.texi:12880
  19229. #, no-wrap
  19230. msgid ""
  19231. "$ guix refresh --recursive coreutils\n"
  19232. "gnu/packages/acl.scm:40:13: acl would be upgraded from 2.2.53 to 2.3.1\n"
  19233. "gnu/packages/m4.scm:30:12: 1.4.18 is already the latest version of m4\n"
  19234. "gnu/packages/xml.scm:68:2: warning: no updater for expat\n"
  19235. "gnu/packages/multiprecision.scm:40:12: 6.1.2 is already the latest version of gmp\n"
  19236. "@dots{}\n"
  19237. msgstr ""
  19238. #. type: Plain text
  19239. #: guix-git/doc/guix.texi:12888
  19240. 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:"
  19241. msgstr ""
  19242. #. type: lisp
  19243. #: guix-git/doc/guix.texi:12895
  19244. #, no-wrap
  19245. msgid ""
  19246. "(define-public network-manager\n"
  19247. " (package\n"
  19248. " (name \"network-manager\")\n"
  19249. " ;; @dots{}\n"
  19250. " (properties '((upstream-name . \"NetworkManager\")))))\n"
  19251. msgstr ""
  19252. #. type: Plain text
  19253. #: guix-git/doc/guix.texi:12904
  19254. 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."
  19255. msgstr ""
  19256. #. type: Plain text
  19257. #: guix-git/doc/guix.texi:12910
  19258. 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."
  19259. msgstr ""
  19260. #. type: Plain text
  19261. #: guix-git/doc/guix.texi:12912
  19262. msgid "The following options are supported:"
  19263. msgstr ""
  19264. #. type: table
  19265. #: guix-git/doc/guix.texi:12920 guix-git/doc/guix.texi:13910
  19266. msgid "This is useful to precisely refer to a package, as in this example:"
  19267. msgstr ""
  19268. #. type: example
  19269. #: guix-git/doc/guix.texi:12923
  19270. #, no-wrap
  19271. msgid "guix refresh -l -e '(@@@@ (gnu packages commencement) glibc-final)'\n"
  19272. msgstr ""
  19273. #. type: table
  19274. #: guix-git/doc/guix.texi:12927
  19275. msgid "This command lists the dependents of the ``final'' libc (essentially all the packages)."
  19276. msgstr ""
  19277. #. type: item
  19278. #: guix-git/doc/guix.texi:12928
  19279. #, no-wrap
  19280. msgid "--update"
  19281. msgstr ""
  19282. #. type: itemx
  19283. #: guix-git/doc/guix.texi:12929
  19284. #, no-wrap
  19285. msgid "-u"
  19286. msgstr ""
  19287. #. type: table
  19288. #: guix-git/doc/guix.texi:12933
  19289. 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}):"
  19290. msgstr ""
  19291. #. type: example
  19292. #: guix-git/doc/guix.texi:12936
  19293. #, no-wrap
  19294. msgid "$ ./pre-inst-env guix refresh -s non-core -u\n"
  19295. msgstr ""
  19296. #. type: table
  19297. #: guix-git/doc/guix.texi:12939
  19298. msgid "@xref{Defining Packages}, for more information on package definitions."
  19299. msgstr ""
  19300. #. type: item
  19301. #: guix-git/doc/guix.texi:12940
  19302. #, no-wrap
  19303. msgid "--select=[@var{subset}]"
  19304. msgstr ""
  19305. #. type: itemx
  19306. #: guix-git/doc/guix.texi:12941
  19307. #, no-wrap
  19308. msgid "-s @var{subset}"
  19309. msgstr ""
  19310. #. type: table
  19311. #: guix-git/doc/guix.texi:12944
  19312. msgid "Select all the packages in @var{subset}, one of @code{core} or @code{non-core}."
  19313. msgstr ""
  19314. #. type: table
  19315. #: guix-git/doc/guix.texi:12951
  19316. 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."
  19317. msgstr ""
  19318. #. type: table
  19319. #: guix-git/doc/guix.texi:12955
  19320. 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."
  19321. msgstr ""
  19322. #. type: table
  19323. #: guix-git/doc/guix.texi:12960
  19324. 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."
  19325. msgstr ""
  19326. #. type: item
  19327. #: guix-git/doc/guix.texi:12961
  19328. #, no-wrap
  19329. msgid "--type=@var{updater}"
  19330. msgstr ""
  19331. #. type: itemx
  19332. #: guix-git/doc/guix.texi:12962
  19333. #, no-wrap
  19334. msgid "-t @var{updater}"
  19335. msgstr ""
  19336. #. type: table
  19337. #: guix-git/doc/guix.texi:12965
  19338. msgid "Select only packages handled by @var{updater} (may be a comma-separated list of updaters). Currently, @var{updater} may be one of:"
  19339. msgstr ""
  19340. #. type: table
  19341. #: guix-git/doc/guix.texi:12969
  19342. msgid "the updater for GNU packages;"
  19343. msgstr ""
  19344. #. type: item
  19345. #: guix-git/doc/guix.texi:12969
  19346. #, no-wrap
  19347. msgid "savannah"
  19348. msgstr ""
  19349. #. type: table
  19350. #: guix-git/doc/guix.texi:12971
  19351. msgid "the updater for packages hosted at @uref{https://savannah.gnu.org, Savannah};"
  19352. msgstr ""
  19353. #. type: item
  19354. #: guix-git/doc/guix.texi:12971
  19355. #, no-wrap
  19356. msgid "sourceforge"
  19357. msgstr ""
  19358. #. type: table
  19359. #: guix-git/doc/guix.texi:12973
  19360. msgid "the updater for packages hosted at @uref{https://sourceforge.net, SourceForge};"
  19361. msgstr ""
  19362. #. type: item
  19363. #: guix-git/doc/guix.texi:12973
  19364. #, no-wrap
  19365. msgid "gnome"
  19366. msgstr ""
  19367. #. type: table
  19368. #: guix-git/doc/guix.texi:12975
  19369. msgid "the updater for GNOME packages;"
  19370. msgstr ""
  19371. #. type: item
  19372. #: guix-git/doc/guix.texi:12975
  19373. #, no-wrap
  19374. msgid "kde"
  19375. msgstr ""
  19376. #. type: table
  19377. #: guix-git/doc/guix.texi:12977
  19378. msgid "the updater for KDE packages;"
  19379. msgstr ""
  19380. #. type: item
  19381. #: guix-git/doc/guix.texi:12977
  19382. #, no-wrap
  19383. msgid "xorg"
  19384. msgstr ""
  19385. #. type: table
  19386. #: guix-git/doc/guix.texi:12979
  19387. msgid "the updater for X.org packages;"
  19388. msgstr ""
  19389. #. type: item
  19390. #: guix-git/doc/guix.texi:12979
  19391. #, no-wrap
  19392. msgid "kernel.org"
  19393. msgstr ""
  19394. #. type: table
  19395. #: guix-git/doc/guix.texi:12981
  19396. msgid "the updater for packages hosted on kernel.org;"
  19397. msgstr ""
  19398. #. type: table
  19399. #: guix-git/doc/guix.texi:12983
  19400. msgid "the updater for @uref{https://wiki.call-cc.org/eggs/, Egg} packages;"
  19401. msgstr ""
  19402. #. type: table
  19403. #: guix-git/doc/guix.texi:12985
  19404. msgid "the updater for @uref{https://elpa.gnu.org/, ELPA} packages;"
  19405. msgstr ""
  19406. #. type: table
  19407. #: guix-git/doc/guix.texi:12987
  19408. msgid "the updater for @uref{https://cran.r-project.org/, CRAN} packages;"
  19409. msgstr ""
  19410. #. type: item
  19411. #: guix-git/doc/guix.texi:12987
  19412. #, no-wrap
  19413. msgid "bioconductor"
  19414. msgstr ""
  19415. #. type: table
  19416. #: guix-git/doc/guix.texi:12989
  19417. msgid "the updater for @uref{https://www.bioconductor.org/, Bioconductor} R packages;"
  19418. msgstr ""
  19419. #. type: table
  19420. #: guix-git/doc/guix.texi:12991
  19421. msgid "the updater for @uref{https://www.cpan.org/, CPAN} packages;"
  19422. msgstr ""
  19423. #. type: table
  19424. #: guix-git/doc/guix.texi:12993
  19425. msgid "the updater for @uref{https://pypi.python.org, PyPI} packages."
  19426. msgstr ""
  19427. #. type: table
  19428. #: guix-git/doc/guix.texi:12995
  19429. msgid "the updater for @uref{https://rubygems.org, RubyGems} packages."
  19430. msgstr ""
  19431. #. type: item
  19432. #: guix-git/doc/guix.texi:12995
  19433. #, no-wrap
  19434. msgid "github"
  19435. msgstr ""
  19436. #. type: table
  19437. #: guix-git/doc/guix.texi:12997
  19438. msgid "the updater for @uref{https://github.com, GitHub} packages."
  19439. msgstr ""
  19440. #. type: table
  19441. #: guix-git/doc/guix.texi:12999
  19442. msgid "the updater for @uref{https://hackage.haskell.org, Hackage} packages."
  19443. msgstr ""
  19444. #. type: table
  19445. #: guix-git/doc/guix.texi:13001
  19446. msgid "the updater for @uref{https://www.stackage.org, Stackage} packages."
  19447. msgstr ""
  19448. #. type: table
  19449. #: guix-git/doc/guix.texi:13003
  19450. msgid "the updater for @uref{https://crates.io, Crates} packages."
  19451. msgstr ""
  19452. #. type: item
  19453. #: guix-git/doc/guix.texi:13003
  19454. #, no-wrap
  19455. msgid "launchpad"
  19456. msgstr ""
  19457. #. type: table
  19458. #: guix-git/doc/guix.texi:13005
  19459. msgid "the updater for @uref{https://launchpad.net, Launchpad} packages."
  19460. msgstr ""
  19461. #. type: item
  19462. #: guix-git/doc/guix.texi:13005
  19463. #, no-wrap
  19464. msgid "generic-html"
  19465. msgstr ""
  19466. #. type: table
  19467. #: guix-git/doc/guix.texi:13008
  19468. msgid "a generic updater that crawls the HTML page where the source tarball of the package is hosted, when applicable."
  19469. msgstr ""
  19470. #. type: item
  19471. #: guix-git/doc/guix.texi:13009
  19472. #, no-wrap
  19473. msgid "generic-git"
  19474. msgstr ""
  19475. #. type: table
  19476. #: guix-git/doc/guix.texi:13014
  19477. 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."
  19478. msgstr ""
  19479. #. type: item
  19480. #: guix-git/doc/guix.texi:13016
  19481. #, no-wrap
  19482. msgid "@code{release-tag-prefix}: a regular expression for matching a prefix of"
  19483. msgstr ""
  19484. #. type: itemize
  19485. #: guix-git/doc/guix.texi:13018 guix-git/doc/guix.texi:13021
  19486. #, fuzzy
  19487. msgid "the tag name."
  19488. msgstr "仓库monad"
  19489. #. type: item
  19490. #: guix-git/doc/guix.texi:13019
  19491. #, no-wrap
  19492. msgid "@code{release-tag-suffix}: a regular expression for matching a suffix of"
  19493. msgstr ""
  19494. #. type: item
  19495. #: guix-git/doc/guix.texi:13022
  19496. #, no-wrap
  19497. msgid "@code{release-tag-version-delimiter}: a string used as the delimiter in"
  19498. msgstr ""
  19499. #. type: itemize
  19500. #: guix-git/doc/guix.texi:13024
  19501. msgid "the tag name for separating the numbers of the version."
  19502. msgstr ""
  19503. #. type: item
  19504. #: guix-git/doc/guix.texi:13025
  19505. #, no-wrap
  19506. msgid "@code{accept-pre-releases}: by default, the updater will ignore"
  19507. msgstr ""
  19508. #. type: itemize
  19509. #: guix-git/doc/guix.texi:13028
  19510. msgid "pre-releases; to make it also look for pre-releases, set the this property to @code{#t}."
  19511. msgstr ""
  19512. #. type: lisp
  19513. #: guix-git/doc/guix.texi:13039
  19514. #, no-wrap
  19515. msgid ""
  19516. "(package\n"
  19517. " (name \"foo\")\n"
  19518. " ;; ...\n"
  19519. " (properties\n"
  19520. " '((release-tag-prefix . \"^release0-\")\n"
  19521. " (release-tag-suffix . \"[a-z]?$\")\n"
  19522. " (release-tag-version-delimiter . \":\"))))\n"
  19523. msgstr ""
  19524. #. type: table
  19525. #: guix-git/doc/guix.texi:13046
  19526. 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:"
  19527. msgstr ""
  19528. #. type: example
  19529. #: guix-git/doc/guix.texi:13051
  19530. #, no-wrap
  19531. msgid ""
  19532. "$ guix refresh --type=elpa,cran\n"
  19533. "gnu/packages/statistics.scm:819:13: r-testthat would be upgraded from 0.10.0 to 0.11.0\n"
  19534. "gnu/packages/emacs.scm:856:13: emacs-auctex would be upgraded from 11.88.6 to 11.88.9\n"
  19535. msgstr ""
  19536. #. type: item
  19537. #: guix-git/doc/guix.texi:13053
  19538. #, no-wrap
  19539. msgid "--list-updaters"
  19540. msgstr ""
  19541. #. type: itemx
  19542. #: guix-git/doc/guix.texi:13054
  19543. #, no-wrap
  19544. msgid "-L"
  19545. msgstr ""
  19546. #. type: table
  19547. #: guix-git/doc/guix.texi:13056
  19548. msgid "List available updaters and exit (see @option{--type} above)."
  19549. msgstr ""
  19550. #. type: table
  19551. #: guix-git/doc/guix.texi:13059
  19552. msgid "For each updater, display the fraction of packages it covers; at the end, display the fraction of packages covered by all these updaters."
  19553. msgstr ""
  19554. #. type: Plain text
  19555. #: guix-git/doc/guix.texi:13063
  19556. msgid "In addition, @command{guix refresh} can be passed one or more package names, as in this example:"
  19557. msgstr ""
  19558. #. type: example
  19559. #: guix-git/doc/guix.texi:13066
  19560. #, no-wrap
  19561. msgid "$ ./pre-inst-env guix refresh -u emacs idutils gcc@@4.8\n"
  19562. msgstr ""
  19563. #. type: Plain text
  19564. #: guix-git/doc/guix.texi:13073
  19565. 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:"
  19566. msgstr ""
  19567. #. type: example
  19568. #: guix-git/doc/guix.texi:13077
  19569. #, no-wrap
  19570. msgid ""
  19571. "$ ./pre-inst-env guix refresh -u \\\n"
  19572. " $(guix package --list-installed | cut -f1)\n"
  19573. msgstr ""
  19574. #. type: Plain text
  19575. #: guix-git/doc/guix.texi:13083
  19576. 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:"
  19577. msgstr ""
  19578. #. type: item
  19579. #: guix-git/doc/guix.texi:13086
  19580. #, no-wrap
  19581. msgid "--list-dependent"
  19582. msgstr ""
  19583. #. type: itemx
  19584. #: guix-git/doc/guix.texi:13087 guix-git/doc/guix.texi:13491
  19585. #, no-wrap
  19586. msgid "-l"
  19587. msgstr ""
  19588. #. type: table
  19589. #: guix-git/doc/guix.texi:13090
  19590. msgid "List top-level dependent packages that would need to be rebuilt as a result of upgrading one or more packages."
  19591. msgstr ""
  19592. #. type: table
  19593. #: guix-git/doc/guix.texi:13094
  19594. 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."
  19595. msgstr ""
  19596. #. type: Plain text
  19597. #: guix-git/doc/guix.texi:13100
  19598. 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."
  19599. msgstr ""
  19600. #. type: example
  19601. #: guix-git/doc/guix.texi:13105
  19602. #, no-wrap
  19603. msgid ""
  19604. "$ guix refresh --list-dependent flex\n"
  19605. "Building the following 120 packages would ensure 213 dependent packages are rebuilt:\n"
  19606. "hop@@2.4.0 emacs-geiser@@0.13 notmuch@@0.18 mu@@0.9.9.5 cflow@@1.4 idutils@@4.6 @dots{}\n"
  19607. msgstr ""
  19608. #. type: Plain text
  19609. #: guix-git/doc/guix.texi:13109
  19610. msgid "The command above lists a set of packages that could be built to check for compatibility with an upgraded @code{flex} package."
  19611. msgstr ""
  19612. #. type: item
  19613. #: guix-git/doc/guix.texi:13112
  19614. #, no-wrap
  19615. msgid "--list-transitive"
  19616. msgstr ""
  19617. #. type: table
  19618. #: guix-git/doc/guix.texi:13114
  19619. msgid "List all the packages which one or more packages depend upon."
  19620. msgstr ""
  19621. #. type: example
  19622. #: guix-git/doc/guix.texi:13119
  19623. #, no-wrap
  19624. msgid ""
  19625. "$ guix refresh --list-transitive flex\n"
  19626. "flex@@2.6.4 depends on the following 25 packages: perl@@5.28.0 help2man@@1.47.6\n"
  19627. "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"
  19628. msgstr ""
  19629. #. type: Plain text
  19630. #: guix-git/doc/guix.texi:13125
  19631. msgid "The command above lists a set of packages which, when changed, would cause @code{flex} to be rebuilt."
  19632. msgstr ""
  19633. #. type: Plain text
  19634. #: guix-git/doc/guix.texi:13127
  19635. msgid "The following options can be used to customize GnuPG operation:"
  19636. msgstr ""
  19637. #. type: item
  19638. #: guix-git/doc/guix.texi:13130
  19639. #, no-wrap
  19640. msgid "--gpg=@var{command}"
  19641. msgstr ""
  19642. #. type: table
  19643. #: guix-git/doc/guix.texi:13133
  19644. msgid "Use @var{command} as the GnuPG 2.x command. @var{command} is searched for in @code{$PATH}."
  19645. msgstr ""
  19646. #. type: item
  19647. #: guix-git/doc/guix.texi:13134
  19648. #, no-wrap
  19649. msgid "--keyring=@var{file}"
  19650. msgstr ""
  19651. #. type: table
  19652. #: guix-git/doc/guix.texi:13140
  19653. 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)."
  19654. msgstr ""
  19655. #. type: table
  19656. #: guix-git/doc/guix.texi:13146
  19657. 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)."
  19658. msgstr ""
  19659. #. type: table
  19660. #: guix-git/doc/guix.texi:13149
  19661. msgid "You can export keys from your default GPG keyring into a keybox file using commands like this one:"
  19662. msgstr ""
  19663. #. type: example
  19664. #: guix-git/doc/guix.texi:13152
  19665. #, no-wrap
  19666. msgid "gpg --export rms@@gnu.org | kbxutil --import-openpgp >> mykeyring.kbx\n"
  19667. msgstr ""
  19668. #. type: table
  19669. #: guix-git/doc/guix.texi:13155
  19670. msgid "Likewise, you can fetch keys to a specific keybox file like this:"
  19671. msgstr ""
  19672. #. type: example
  19673. #: guix-git/doc/guix.texi:13159
  19674. #, no-wrap
  19675. msgid ""
  19676. "gpg --no-default-keyring --keyring mykeyring.kbx \\\n"
  19677. " --recv-keys @value{OPENPGP-SIGNING-KEY-ID}\n"
  19678. msgstr ""
  19679. "gpg --no-default-keyring --keyring mykeyring.kbx \\\n"
  19680. " --recv-keys @value{OPENPGP-SIGNING-KEY-ID}\n"
  19681. #. type: table
  19682. #: guix-git/doc/guix.texi:13163
  19683. msgid "@xref{GPG Configuration Options, @option{--keyring},, gnupg, Using the GNU Privacy Guard}, for more information on GPG's @option{--keyring} option."
  19684. msgstr ""
  19685. #. type: table
  19686. #: guix-git/doc/guix.texi:13167
  19687. msgid "Handle missing OpenPGP keys according to @var{policy}, which may be one of:"
  19688. msgstr ""
  19689. #. type: item
  19690. #: guix-git/doc/guix.texi:13169 guix-git/doc/guix.texi:13334
  19691. #: guix-git/doc/guix.texi:23234
  19692. #, no-wrap
  19693. msgid "always"
  19694. msgstr ""
  19695. #. type: table
  19696. #: guix-git/doc/guix.texi:13172
  19697. msgid "Always download missing OpenPGP keys from the key server, and add them to the user's GnuPG keyring."
  19698. msgstr ""
  19699. #. type: item
  19700. #: guix-git/doc/guix.texi:13173 guix-git/doc/guix.texi:23236
  19701. #, no-wrap
  19702. msgid "never"
  19703. msgstr ""
  19704. #. type: table
  19705. #: guix-git/doc/guix.texi:13175
  19706. msgid "Never try to download missing OpenPGP keys. Instead just bail out."
  19707. msgstr ""
  19708. #. type: item
  19709. #: guix-git/doc/guix.texi:13176
  19710. #, no-wrap
  19711. msgid "interactive"
  19712. msgstr ""
  19713. #. type: table
  19714. #: guix-git/doc/guix.texi:13179
  19715. 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."
  19716. msgstr ""
  19717. #. type: item
  19718. #: guix-git/doc/guix.texi:13181
  19719. #, no-wrap
  19720. msgid "--key-server=@var{host}"
  19721. msgstr ""
  19722. #. type: table
  19723. #: guix-git/doc/guix.texi:13183
  19724. msgid "Use @var{host} as the OpenPGP key server when importing a public key."
  19725. msgstr ""
  19726. #. type: Plain text
  19727. #: guix-git/doc/guix.texi:13203
  19728. 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."
  19729. msgstr ""
  19730. #. type: section
  19731. #: guix-git/doc/guix.texi:13206
  19732. #, fuzzy, no-wrap
  19733. #| msgid "Invoking @command{guix build}"
  19734. msgid "Invoking @command{guix style}"
  19735. msgstr "调用@command{guix build}"
  19736. #. type: Plain text
  19737. #: guix-git/doc/guix.texi:13211
  19738. msgid "The @command{guix style} command helps packagers style their package definitions according to the latest fashionable trends. The command currently provides the following styling rules:"
  19739. msgstr ""
  19740. #. type: itemize
  19741. #: guix-git/doc/guix.texi:13216
  19742. msgid "formatting package definitions according to the project's conventions (@pxref{Formatting Code});"
  19743. msgstr ""
  19744. #. type: itemize
  19745. #: guix-git/doc/guix.texi:13219
  19746. msgid "rewriting package inputs to the ``new style'', as explained below."
  19747. msgstr ""
  19748. #. type: Plain text
  19749. #: guix-git/doc/guix.texi:13225
  19750. msgid "The way package inputs are written is going through a transition (@pxref{package Reference}, for more on package inputs). Until version 1.3.0, package inputs were written using the ``old style'', where each input was given an explicit label, most of the time the package name:"
  19751. msgstr ""
  19752. #. type: lisp
  19753. #: guix-git/doc/guix.texi:13232
  19754. #, no-wrap
  19755. msgid ""
  19756. "(package\n"
  19757. " ;; @dots{}\n"
  19758. " ;; The \"old style\" (deprecated).\n"
  19759. " (inputs `((\"libunistring\" ,libunistring)\n"
  19760. " (\"libffi\" ,libffi))))\n"
  19761. msgstr ""
  19762. #. type: Plain text
  19763. #: guix-git/doc/guix.texi:13236
  19764. msgid "Today, the old style is deprecated and the preferred style looks like this:"
  19765. msgstr ""
  19766. #. type: lisp
  19767. #: guix-git/doc/guix.texi:13242
  19768. #, no-wrap
  19769. msgid ""
  19770. "(package\n"
  19771. " ;; @dots{}\n"
  19772. " ;; The \"new style\".\n"
  19773. " (inputs (list libunistring libffi)))\n"
  19774. msgstr ""
  19775. #. type: Plain text
  19776. #: guix-git/doc/guix.texi:13247
  19777. msgid "Likewise, uses of @code{alist-delete} and friends to manipulate inputs is now deprecated in favor of @code{modify-inputs} (@pxref{Defining Package Variants}, for more info on @code{modify-inputs})."
  19778. msgstr ""
  19779. #. type: Plain text
  19780. #: guix-git/doc/guix.texi:13252
  19781. msgid "In the vast majority of cases, this is a purely mechanical change on the surface syntax that does not even incur a package rebuild. Running @command{guix style -S inputs} can do that for you, whether you're working on packages in Guix proper or in an external channel."
  19782. msgstr ""
  19783. #. type: example
  19784. #: guix-git/doc/guix.texi:13257
  19785. #, fuzzy, no-wrap
  19786. msgid "guix style [@var{options}] @var{package}@dots{}\n"
  19787. msgstr "guix install emacs-guix\n"
  19788. #. type: Plain text
  19789. #: guix-git/doc/guix.texi:13264
  19790. msgid "This causes @command{guix style} to analyze and rewrite the definition of @var{package}@dots{} or, when @var{package} is omitted, of @emph{all} the packages. The @option{--styling} or @option{-S} option allows you to select the style rule, the default rule being @code{format}---see below."
  19791. msgstr ""
  19792. #. type: Plain text
  19793. #: guix-git/doc/guix.texi:13266 guix-git/doc/guix.texi:14585
  19794. msgid "The available options are listed below."
  19795. msgstr ""
  19796. #. type: table
  19797. #: guix-git/doc/guix.texi:13271
  19798. msgid "Show source file locations that would be edited but do not modify them."
  19799. msgstr ""
  19800. #. type: item
  19801. #: guix-git/doc/guix.texi:13272
  19802. #, fuzzy, no-wrap
  19803. #| msgid "--rounds=@var{N}"
  19804. msgid "--styling=@var{rule}"
  19805. msgstr "--rounds=@var{N}"
  19806. #. type: itemx
  19807. #: guix-git/doc/guix.texi:13273
  19808. #, fuzzy, no-wrap
  19809. #| msgid "-c @var{n}"
  19810. msgid "-S @var{rule}"
  19811. msgstr "-c @var{n}"
  19812. #. type: table
  19813. #: guix-git/doc/guix.texi:13275
  19814. #, fuzzy
  19815. #| msgid "Packages are currently available on the following platforms:"
  19816. msgid "Apply @var{rule}, one of the following styling rules:"
  19817. msgstr "目前这些平台提供软件包:"
  19818. #. type: item
  19819. #: guix-git/doc/guix.texi:13277
  19820. #, no-wrap
  19821. msgid "format"
  19822. msgstr ""
  19823. #. type: table
  19824. #: guix-git/doc/guix.texi:13282
  19825. msgid "Format the given package definition(s)---this is the default styling rule. For example, a packager running Guix on a checkout (@pxref{Running Guix Before It Is Installed}) might want to reformat the definition of the Coreutils package like so:"
  19826. msgstr ""
  19827. #. type: example
  19828. #: guix-git/doc/guix.texi:13285
  19829. #, fuzzy, no-wrap
  19830. msgid "./pre-inst-env guix style coreutils\n"
  19831. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  19832. #. type: item
  19833. #: guix-git/doc/guix.texi:13287
  19834. #, no-wrap
  19835. msgid "inputs"
  19836. msgstr ""
  19837. #. type: table
  19838. #: guix-git/doc/guix.texi:13291
  19839. msgid "Rewrite package inputs to the ``new style'', as described above. This is how you would rewrite inputs of package @code{whatnot} in your own channel:"
  19840. msgstr ""
  19841. #. type: example
  19842. #: guix-git/doc/guix.texi:13294
  19843. #, no-wrap
  19844. msgid "guix style -L ~/my/channel -S inputs whatnot\n"
  19845. msgstr ""
  19846. #. type: table
  19847. #: guix-git/doc/guix.texi:13300
  19848. msgid "Rewriting is done in a conservative way: preserving comments and bailing out if it cannot make sense of the code that appears in an inputs field. The @option{--input-simplification} option described below provides fine-grain control over when inputs should be simplified."
  19849. msgstr ""
  19850. #. type: table
  19851. #: guix-git/doc/guix.texi:13310
  19852. msgid "Style the package @var{expr} evaluates to."
  19853. msgstr ""
  19854. #. type: example
  19855. #: guix-git/doc/guix.texi:13315
  19856. #, no-wrap
  19857. msgid "guix style -e '(@@ (gnu packages gcc) gcc-5)'\n"
  19858. msgstr ""
  19859. #. type: table
  19860. #: guix-git/doc/guix.texi:13318
  19861. #, fuzzy
  19862. #| msgid "Updating the Guix package definition."
  19863. msgid "styles the @code{gcc-5} package definition."
  19864. msgstr "更新Guix的软件包定义。"
  19865. #. type: item
  19866. #: guix-git/doc/guix.texi:13319
  19867. #, no-wrap
  19868. msgid "--input-simplification=@var{policy}"
  19869. msgstr ""
  19870. #. type: table
  19871. #: guix-git/doc/guix.texi:13324
  19872. msgid "When using the @code{inputs} styling rule, with @samp{-S inputs}, this option specifies the package input simplification policy for cases where an input label does not match the corresponding package name. @var{policy} may be one of the following:"
  19873. msgstr ""
  19874. #. type: item
  19875. #: guix-git/doc/guix.texi:13326
  19876. #, no-wrap
  19877. msgid "silent"
  19878. msgstr ""
  19879. #. type: table
  19880. #: guix-git/doc/guix.texi:13329
  19881. msgid "Simplify inputs only when the change is ``silent'', meaning that the package does not need to be rebuilt (its derivation is unchanged)."
  19882. msgstr ""
  19883. #. type: item
  19884. #: guix-git/doc/guix.texi:13330
  19885. #, no-wrap
  19886. msgid "safe"
  19887. msgstr ""
  19888. #. type: table
  19889. #: guix-git/doc/guix.texi:13333
  19890. msgid "Simplify inputs only when that is ``safe'' to do: the package might need to be rebuilt, but the change is known to have no observable effect."
  19891. msgstr ""
  19892. #. type: table
  19893. #: guix-git/doc/guix.texi:13337
  19894. msgid "Simplify inputs even when input labels do not match package names, and even if that might have an observable effect."
  19895. msgstr ""
  19896. #. type: table
  19897. #: guix-git/doc/guix.texi:13341
  19898. msgid "The default is @code{silent}, meaning that input simplifications do not trigger any package rebuild."
  19899. msgstr ""
  19900. #. type: section
  19901. #: guix-git/doc/guix.texi:13344
  19902. #, no-wrap
  19903. msgid "Invoking @command{guix lint}"
  19904. msgstr ""
  19905. #. type: command{#1}
  19906. #: guix-git/doc/guix.texi:13346
  19907. #, no-wrap
  19908. msgid "guix lint"
  19909. msgstr ""
  19910. #. type: cindex
  19911. #: guix-git/doc/guix.texi:13347
  19912. #, no-wrap
  19913. msgid "package, checking for errors"
  19914. msgstr ""
  19915. #. type: Plain text
  19916. #: guix-git/doc/guix.texi:13353
  19917. 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):"
  19918. msgstr ""
  19919. #. type: table
  19920. #: guix-git/doc/guix.texi:13359
  19921. msgid "Validate certain typographical and stylistic rules about package descriptions and synopses."
  19922. msgstr ""
  19923. #. type: item
  19924. #: guix-git/doc/guix.texi:13360
  19925. #, no-wrap
  19926. msgid "inputs-should-be-native"
  19927. msgstr ""
  19928. #. type: table
  19929. #: guix-git/doc/guix.texi:13362
  19930. msgid "Identify inputs that should most likely be native inputs."
  19931. msgstr ""
  19932. #. type: itemx
  19933. #: guix-git/doc/guix.texi:13365
  19934. #, no-wrap
  19935. msgid "mirror-url"
  19936. msgstr ""
  19937. #. type: itemx
  19938. #: guix-git/doc/guix.texi:13366
  19939. #, no-wrap
  19940. msgid "github-url"
  19941. msgstr ""
  19942. #. type: itemx
  19943. #: guix-git/doc/guix.texi:13367
  19944. #, no-wrap
  19945. msgid "source-file-name"
  19946. msgstr ""
  19947. #. type: table
  19948. #: guix-git/doc/guix.texi:13374
  19949. 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})."
  19950. msgstr ""
  19951. #. type: item
  19952. #: guix-git/doc/guix.texi:13375
  19953. #, no-wrap
  19954. msgid "source-unstable-tarball"
  19955. msgstr ""
  19956. #. type: table
  19957. #: guix-git/doc/guix.texi:13379
  19958. 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."
  19959. msgstr ""
  19960. #. type: table
  19961. #: guix-git/doc/guix.texi:13383
  19962. msgid "Check that the derivation of the given packages can be successfully computed for all the supported systems (@pxref{Derivations})."
  19963. msgstr ""
  19964. #. type: item
  19965. #: guix-git/doc/guix.texi:13384
  19966. #, no-wrap
  19967. msgid "profile-collisions"
  19968. msgstr ""
  19969. #. type: table
  19970. #: guix-git/doc/guix.texi:13390
  19971. 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."
  19972. msgstr ""
  19973. #. type: item
  19974. #: guix-git/doc/guix.texi:13391
  19975. #, no-wrap
  19976. msgid "archival"
  19977. msgstr ""
  19978. #. type: cindex
  19979. #: guix-git/doc/guix.texi:13392
  19980. #, no-wrap
  19981. msgid "Software Heritage, source code archive"
  19982. msgstr ""
  19983. #. type: cindex
  19984. #: guix-git/doc/guix.texi:13393
  19985. #, no-wrap
  19986. msgid "archival of source code, Software Heritage"
  19987. msgstr ""
  19988. #. type: table
  19989. #: guix-git/doc/guix.texi:13396
  19990. msgid "Checks whether the package's source code is archived at @uref{https://www.softwareheritage.org, Software Heritage}."
  19991. msgstr ""
  19992. #. type: table
  19993. #: guix-git/doc/guix.texi:13404
  19994. 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}."
  19995. msgstr ""
  19996. #. type: table
  19997. #: guix-git/doc/guix.texi:13409
  19998. 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."
  19999. msgstr ""
  20000. #. type: table
  20001. #: guix-git/doc/guix.texi:13415
  20002. 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."
  20003. msgstr ""
  20004. #. type: item
  20005. #: guix-git/doc/guix.texi:13416
  20006. #, no-wrap
  20007. msgid "cve"
  20008. msgstr ""
  20009. #. type: cindex
  20010. #: guix-git/doc/guix.texi:13417 guix-git/doc/guix.texi:39350
  20011. #, no-wrap
  20012. msgid "security vulnerabilities"
  20013. msgstr ""
  20014. #. type: cindex
  20015. #: guix-git/doc/guix.texi:13418
  20016. #, no-wrap
  20017. msgid "CVE, Common Vulnerabilities and Exposures"
  20018. msgstr ""
  20019. #. type: table
  20020. #: guix-git/doc/guix.texi:13423
  20021. 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}."
  20022. msgstr ""
  20023. #. type: table
  20024. #: guix-git/doc/guix.texi:13425
  20025. msgid "To view information about a particular vulnerability, visit pages such as:"
  20026. msgstr ""
  20027. #. type: indicateurl{#1}
  20028. #: guix-git/doc/guix.texi:13429
  20029. msgid "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-YYYY-ABCD"
  20030. msgstr ""
  20031. #. type: indicateurl{#1}
  20032. #: guix-git/doc/guix.texi:13431
  20033. msgid "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-YYYY-ABCD"
  20034. msgstr ""
  20035. #. type: table
  20036. #: guix-git/doc/guix.texi:13436
  20037. msgid "where @code{CVE-YYYY-ABCD} is the CVE identifier---e.g., @code{CVE-2015-7554}."
  20038. msgstr ""
  20039. #. type: table
  20040. #: guix-git/doc/guix.texi:13441
  20041. 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:"
  20042. msgstr ""
  20043. #. type: lisp
  20044. #: guix-git/doc/guix.texi:13449
  20045. #, no-wrap
  20046. msgid ""
  20047. "(package\n"
  20048. " (name \"grub\")\n"
  20049. " ;; @dots{}\n"
  20050. " ;; CPE calls this package \"grub2\".\n"
  20051. " (properties '((cpe-name . \"grub2\")\n"
  20052. " (cpe-version . \"2.3\"))))\n"
  20053. msgstr ""
  20054. #. type: table
  20055. #: guix-git/doc/guix.texi:13456
  20056. 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:"
  20057. msgstr ""
  20058. #. type: lisp
  20059. #: guix-git/doc/guix.texi:13466
  20060. #, no-wrap
  20061. msgid ""
  20062. "(package\n"
  20063. " (name \"t1lib\")\n"
  20064. " ;; @dots{}\n"
  20065. " ;; These CVEs no longer apply and can be safely ignored.\n"
  20066. " (properties `((lint-hidden-cve . (\"CVE-2011-0433\"\n"
  20067. " \"CVE-2011-1553\"\n"
  20068. " \"CVE-2011-1554\"\n"
  20069. " \"CVE-2011-5244\")))))\n"
  20070. msgstr ""
  20071. #. type: item
  20072. #: guix-git/doc/guix.texi:13468
  20073. #, no-wrap
  20074. msgid "formatting"
  20075. msgstr ""
  20076. #. type: table
  20077. #: guix-git/doc/guix.texi:13471
  20078. msgid "Warn about obvious source code formatting issues: trailing white space, use of tabulations, etc."
  20079. msgstr ""
  20080. #. type: item
  20081. #: guix-git/doc/guix.texi:13472
  20082. #, no-wrap
  20083. msgid "input-labels"
  20084. msgstr ""
  20085. #. type: table
  20086. #: guix-git/doc/guix.texi:13478
  20087. msgid "Report old-style input labels that do not match the name of the corresponding package. This aims to help migrate from the ``old input style''. @xref{package Reference}, for more information on package inputs and input styles. @xref{Invoking guix style}, on how to migrate to the new style."
  20088. msgstr ""
  20089. #. type: example
  20090. #: guix-git/doc/guix.texi:13484
  20091. #, no-wrap
  20092. msgid "guix lint @var{options} @var{package}@dots{}\n"
  20093. msgstr ""
  20094. #. type: Plain text
  20095. #: guix-git/doc/guix.texi:13488
  20096. 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:"
  20097. msgstr ""
  20098. #. type: item
  20099. #: guix-git/doc/guix.texi:13490
  20100. #, no-wrap
  20101. msgid "--list-checkers"
  20102. msgstr ""
  20103. #. type: table
  20104. #: guix-git/doc/guix.texi:13494
  20105. msgid "List and describe all the available checkers that will be run on packages and exit."
  20106. msgstr ""
  20107. #. type: item
  20108. #: guix-git/doc/guix.texi:13495
  20109. #, no-wrap
  20110. msgid "--checkers"
  20111. msgstr ""
  20112. #. type: itemx
  20113. #: guix-git/doc/guix.texi:13496
  20114. #, no-wrap
  20115. msgid "-c"
  20116. msgstr ""
  20117. #. type: table
  20118. #: guix-git/doc/guix.texi:13499
  20119. msgid "Only enable the checkers specified in a comma-separated list using the names returned by @option{--list-checkers}."
  20120. msgstr ""
  20121. #. type: item
  20122. #: guix-git/doc/guix.texi:13500
  20123. #, no-wrap
  20124. msgid "--exclude"
  20125. msgstr ""
  20126. #. type: table
  20127. #: guix-git/doc/guix.texi:13504
  20128. msgid "Only disable the checkers specified in a comma-separated list using the names returned by @option{--list-checkers}."
  20129. msgstr ""
  20130. #. type: item
  20131. #: guix-git/doc/guix.texi:13505
  20132. #, no-wrap
  20133. msgid "--no-network"
  20134. msgstr ""
  20135. #. type: table
  20136. #: guix-git/doc/guix.texi:13508
  20137. msgid "Only enable the checkers that do not depend on Internet access."
  20138. msgstr ""
  20139. #. type: section
  20140. #: guix-git/doc/guix.texi:13520
  20141. #, no-wrap
  20142. msgid "Invoking @command{guix size}"
  20143. msgstr ""
  20144. #. type: code{#1}
  20145. #: guix-git/doc/guix.texi:13522 guix-git/doc/guix.texi:36719
  20146. #, no-wrap
  20147. msgid "size"
  20148. msgstr ""
  20149. #. type: cindex
  20150. #: guix-git/doc/guix.texi:13523
  20151. #, no-wrap
  20152. msgid "package size"
  20153. msgstr ""
  20154. #. type: command{#1}
  20155. #: guix-git/doc/guix.texi:13525
  20156. #, no-wrap
  20157. msgid "guix size"
  20158. msgstr ""
  20159. #. type: Plain text
  20160. #: guix-git/doc/guix.texi:13532
  20161. 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."
  20162. msgstr ""
  20163. #. type: Plain text
  20164. #: guix-git/doc/guix.texi:13537
  20165. 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:"
  20166. msgstr ""
  20167. #. type: example
  20168. #: guix-git/doc/guix.texi:13550
  20169. #, no-wrap
  20170. msgid ""
  20171. "$ guix size coreutils\n"
  20172. "store item total self\n"
  20173. "/gnu/store/@dots{}-gcc-5.5.0-lib 60.4 30.1 38.1%\n"
  20174. "/gnu/store/@dots{}-glibc-2.27 30.3 28.8 36.6%\n"
  20175. "/gnu/store/@dots{}-coreutils-8.28 78.9 15.0 19.0%\n"
  20176. "/gnu/store/@dots{}-gmp-6.1.2 63.1 2.7 3.4%\n"
  20177. "/gnu/store/@dots{}-bash-static-4.4.12 1.5 1.5 1.9%\n"
  20178. "/gnu/store/@dots{}-acl-2.2.52 61.1 0.4 0.5%\n"
  20179. "/gnu/store/@dots{}-attr-2.4.47 60.6 0.2 0.3%\n"
  20180. "/gnu/store/@dots{}-libcap-2.25 60.5 0.2 0.2%\n"
  20181. "total: 78.9 MiB\n"
  20182. msgstr ""
  20183. #. type: Plain text
  20184. #: guix-git/doc/guix.texi:13556
  20185. 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:"
  20186. msgstr ""
  20187. #. type: example
  20188. #: guix-git/doc/guix.texi:13559
  20189. #, no-wrap
  20190. msgid "$ guix gc -R /gnu/store/@dots{}-coreutils-8.23\n"
  20191. msgstr ""
  20192. #. type: Plain text
  20193. #: guix-git/doc/guix.texi:13567
  20194. 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."
  20195. msgstr ""
  20196. #. type: Plain text
  20197. #: guix-git/doc/guix.texi:13573
  20198. 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.)"
  20199. msgstr ""
  20200. #. type: Plain text
  20201. #: guix-git/doc/guix.texi:13576
  20202. msgid "Since the command also accepts store file names, assessing the size of a build result is straightforward:"
  20203. msgstr ""
  20204. #. type: example
  20205. #: guix-git/doc/guix.texi:13579
  20206. #, no-wrap
  20207. msgid "guix size $(guix system build config.scm)\n"
  20208. msgstr ""
  20209. #. type: Plain text
  20210. #: guix-git/doc/guix.texi:13589
  20211. 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})."
  20212. msgstr ""
  20213. #. type: Plain text
  20214. #: guix-git/doc/guix.texi:13594
  20215. 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."
  20216. msgstr ""
  20217. #. type: Plain text
  20218. #: guix-git/doc/guix.texi:13596
  20219. msgid "You can also specify several package names:"
  20220. msgstr ""
  20221. #. type: example
  20222. #: guix-git/doc/guix.texi:13606
  20223. #, no-wrap
  20224. msgid ""
  20225. "$ guix size coreutils grep sed bash\n"
  20226. "store item total self\n"
  20227. "/gnu/store/@dots{}-coreutils-8.24 77.8 13.8 13.4%\n"
  20228. "/gnu/store/@dots{}-grep-2.22 73.1 0.8 0.8%\n"
  20229. "/gnu/store/@dots{}-bash-4.3.42 72.3 4.7 4.6%\n"
  20230. "/gnu/store/@dots{}-readline-6.3 67.6 1.2 1.2%\n"
  20231. "@dots{}\n"
  20232. "total: 102.3 MiB\n"
  20233. msgstr ""
  20234. #. type: Plain text
  20235. #: guix-git/doc/guix.texi:13612
  20236. 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."
  20237. msgstr ""
  20238. #. type: Plain text
  20239. #: guix-git/doc/guix.texi:13618
  20240. 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})."
  20241. msgstr ""
  20242. #. type: Plain text
  20243. #: guix-git/doc/guix.texi:13620
  20244. msgid "The available options are:"
  20245. msgstr ""
  20246. #. type: table
  20247. #: guix-git/doc/guix.texi:13626
  20248. msgid "Use substitute information from @var{urls}. @xref{client-substitute-urls, the same option for @code{guix build}}."
  20249. msgstr ""
  20250. #. type: item
  20251. #: guix-git/doc/guix.texi:13627
  20252. #, no-wrap
  20253. msgid "--sort=@var{key}"
  20254. msgstr ""
  20255. #. type: table
  20256. #: guix-git/doc/guix.texi:13629
  20257. msgid "Sort lines according to @var{key}, one of the following options:"
  20258. msgstr ""
  20259. #. type: item
  20260. #: guix-git/doc/guix.texi:13631
  20261. #, no-wrap
  20262. msgid "self"
  20263. msgstr ""
  20264. #. type: table
  20265. #: guix-git/doc/guix.texi:13633
  20266. msgid "the size of each item (the default);"
  20267. msgstr ""
  20268. #. type: table
  20269. #: guix-git/doc/guix.texi:13635
  20270. msgid "the total size of the item's closure."
  20271. msgstr ""
  20272. #. type: item
  20273. #: guix-git/doc/guix.texi:13637
  20274. #, no-wrap
  20275. msgid "--map-file=@var{file}"
  20276. msgstr ""
  20277. #. type: table
  20278. #: guix-git/doc/guix.texi:13639
  20279. msgid "Write a graphical map of disk usage in PNG format to @var{file}."
  20280. msgstr ""
  20281. #. type: table
  20282. #: guix-git/doc/guix.texi:13641
  20283. msgid "For the example above, the map looks like this:"
  20284. msgstr ""
  20285. #. type: table
  20286. #: guix-git/doc/guix.texi:13644
  20287. msgid "@image{images/coreutils-size-map,5in,, map of Coreutils disk usage produced by @command{guix size}}"
  20288. msgstr ""
  20289. #. type: table
  20290. #: guix-git/doc/guix.texi:13649
  20291. 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."
  20292. msgstr ""
  20293. #. type: table
  20294. #: guix-git/doc/guix.texi:13653
  20295. msgid "Consider packages for @var{system}---e.g., @code{x86_64-linux}."
  20296. msgstr ""
  20297. #. type: section
  20298. #: guix-git/doc/guix.texi:13664
  20299. #, no-wrap
  20300. msgid "Invoking @command{guix graph}"
  20301. msgstr ""
  20302. #. type: cindex
  20303. #: guix-git/doc/guix.texi:13666
  20304. #, no-wrap
  20305. msgid "DAG"
  20306. msgstr ""
  20307. #. type: command{#1}
  20308. #: guix-git/doc/guix.texi:13667
  20309. #, no-wrap
  20310. msgid "guix graph"
  20311. msgstr ""
  20312. #. type: Plain text
  20313. #: guix-git/doc/guix.texi:13682
  20314. 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:"
  20315. msgstr ""
  20316. #. type: example
  20317. #: guix-git/doc/guix.texi:13685
  20318. #, no-wrap
  20319. msgid "guix graph @var{options} @var{package}@dots{}\n"
  20320. msgstr ""
  20321. #. type: Plain text
  20322. #: guix-git/doc/guix.texi:13690
  20323. 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:"
  20324. msgstr ""
  20325. #. type: example
  20326. #: guix-git/doc/guix.texi:13693
  20327. #, no-wrap
  20328. msgid "guix graph coreutils | dot -Tpdf > dag.pdf\n"
  20329. msgstr ""
  20330. #. type: Plain text
  20331. #: guix-git/doc/guix.texi:13696
  20332. msgid "The output looks like this:"
  20333. msgstr ""
  20334. #. type: Plain text
  20335. #: guix-git/doc/guix.texi:13698
  20336. msgid "@image{images/coreutils-graph,2in,,Dependency graph of the GNU Coreutils}"
  20337. msgstr ""
  20338. #. type: Plain text
  20339. #: guix-git/doc/guix.texi:13700
  20340. msgid "Nice little graph, no?"
  20341. msgstr ""
  20342. #. type: Plain text
  20343. #: guix-git/doc/guix.texi:13703
  20344. msgid "You may find it more pleasant to navigate the graph interactively with @command{xdot} (from the @code{xdot} package):"
  20345. msgstr ""
  20346. #. type: example
  20347. #: guix-git/doc/guix.texi:13706
  20348. #, no-wrap
  20349. msgid "guix graph coreutils | xdot -\n"
  20350. msgstr ""
  20351. #. type: Plain text
  20352. #: guix-git/doc/guix.texi:13713
  20353. 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:"
  20354. msgstr ""
  20355. #. type: table
  20356. #: guix-git/doc/guix.texi:13719
  20357. 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."
  20358. msgstr ""
  20359. #. type: item
  20360. #: guix-git/doc/guix.texi:13720
  20361. #, no-wrap
  20362. msgid "reverse-package"
  20363. msgstr ""
  20364. #. type: table
  20365. #: guix-git/doc/guix.texi:13722
  20366. msgid "This shows the @emph{reverse} DAG of packages. For example:"
  20367. msgstr ""
  20368. #. type: example
  20369. #: guix-git/doc/guix.texi:13725
  20370. #, no-wrap
  20371. msgid "guix graph --type=reverse-package ocaml\n"
  20372. msgstr ""
  20373. #. type: table
  20374. #: guix-git/doc/guix.texi:13730
  20375. 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)."
  20376. msgstr ""
  20377. #. type: table
  20378. #: guix-git/doc/guix.texi:13735
  20379. 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}})."
  20380. msgstr ""
  20381. #. type: item
  20382. #: guix-git/doc/guix.texi:13736
  20383. #, no-wrap
  20384. msgid "bag-emerged"
  20385. msgstr ""
  20386. #. type: table
  20387. #: guix-git/doc/guix.texi:13738
  20388. msgid "This is the package DAG, @emph{including} implicit inputs."
  20389. msgstr ""
  20390. #. type: table
  20391. #: guix-git/doc/guix.texi:13740
  20392. msgid "For instance, the following command:"
  20393. msgstr ""
  20394. #. type: example
  20395. #: guix-git/doc/guix.texi:13743
  20396. #, no-wrap
  20397. msgid "guix graph --type=bag-emerged coreutils\n"
  20398. msgstr ""
  20399. #. type: table
  20400. #: guix-git/doc/guix.texi:13746
  20401. msgid "...@: yields this bigger graph:"
  20402. msgstr ""
  20403. #. type: table
  20404. #: guix-git/doc/guix.texi:13748
  20405. msgid "@image{images/coreutils-bag-graph,,5in,Detailed dependency graph of the GNU Coreutils}"
  20406. msgstr ""
  20407. #. type: table
  20408. #: guix-git/doc/guix.texi:13751
  20409. 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}})."
  20410. msgstr ""
  20411. #. type: table
  20412. #: guix-git/doc/guix.texi:13755
  20413. msgid "Now, note that the dependencies of these implicit inputs---that is, the @dfn{bootstrap dependencies} (@pxref{Bootstrapping})---are not shown here, for conciseness."
  20414. msgstr ""
  20415. #. type: item
  20416. #: guix-git/doc/guix.texi:13756
  20417. #, no-wrap
  20418. msgid "bag"
  20419. msgstr ""
  20420. #. type: table
  20421. #: guix-git/doc/guix.texi:13759
  20422. msgid "Similar to @code{bag-emerged}, but this time including all the bootstrap dependencies."
  20423. msgstr ""
  20424. #. type: item
  20425. #: guix-git/doc/guix.texi:13760
  20426. #, no-wrap
  20427. msgid "bag-with-origins"
  20428. msgstr ""
  20429. #. type: table
  20430. #: guix-git/doc/guix.texi:13762
  20431. msgid "Similar to @code{bag}, but also showing origins and their dependencies."
  20432. msgstr ""
  20433. #. type: item
  20434. #: guix-git/doc/guix.texi:13763
  20435. #, no-wrap
  20436. msgid "reverse-bag"
  20437. msgstr ""
  20438. #. type: table
  20439. #: guix-git/doc/guix.texi:13766
  20440. msgid "This shows the @emph{reverse} DAG of packages. Unlike @code{reverse-package}, it also takes implicit dependencies into account. For example:"
  20441. msgstr ""
  20442. #. type: example
  20443. #: guix-git/doc/guix.texi:13769
  20444. #, no-wrap
  20445. msgid "guix graph -t reverse-bag dune\n"
  20446. msgstr ""
  20447. #. type: table
  20448. #: guix-git/doc/guix.texi:13776
  20449. 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."
  20450. msgstr ""
  20451. #. type: table
  20452. #: guix-git/doc/guix.texi:13782
  20453. 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."
  20454. msgstr ""
  20455. #. type: table
  20456. #: guix-git/doc/guix.texi:13785
  20457. msgid "For this type of graph, it is also possible to pass a @file{.drv} file name instead of a package name, as in:"
  20458. msgstr ""
  20459. #. type: example
  20460. #: guix-git/doc/guix.texi:13788
  20461. #, no-wrap
  20462. msgid "guix graph -t derivation $(guix system build -d my-config.scm)\n"
  20463. msgstr ""
  20464. #. type: item
  20465. #: guix-git/doc/guix.texi:13790
  20466. #, no-wrap
  20467. msgid "module"
  20468. msgstr "模块"
  20469. #. type: table
  20470. #: guix-git/doc/guix.texi:13794
  20471. 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:"
  20472. msgstr ""
  20473. #. type: example
  20474. #: guix-git/doc/guix.texi:13797
  20475. #, no-wrap
  20476. msgid "guix graph -t module guile | xdot -\n"
  20477. msgstr ""
  20478. #. type: Plain text
  20479. #: guix-git/doc/guix.texi:13802
  20480. msgid "All the types above correspond to @emph{build-time dependencies}. The following graph type represents the @emph{run-time dependencies}:"
  20481. msgstr ""
  20482. #. type: table
  20483. #: guix-git/doc/guix.texi:13807
  20484. msgid "This is the graph of @dfn{references} of a package output, as returned by @command{guix gc --references} (@pxref{Invoking guix gc})."
  20485. msgstr ""
  20486. #. type: table
  20487. #: guix-git/doc/guix.texi:13810
  20488. msgid "If the given package output is not available in the store, @command{guix graph} attempts to obtain dependency information from substitutes."
  20489. msgstr ""
  20490. #. type: table
  20491. #: guix-git/doc/guix.texi:13814
  20492. 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!):"
  20493. msgstr ""
  20494. #. type: example
  20495. #: guix-git/doc/guix.texi:13817
  20496. #, no-wrap
  20497. msgid "guix graph -t references $(readlink -f ~/.guix-profile)\n"
  20498. msgstr ""
  20499. #. type: item
  20500. #: guix-git/doc/guix.texi:13819
  20501. #, no-wrap
  20502. msgid "referrers"
  20503. msgstr ""
  20504. #. type: table
  20505. #: guix-git/doc/guix.texi:13822
  20506. msgid "This is the graph of the @dfn{referrers} of a store item, as returned by @command{guix gc --referrers} (@pxref{Invoking guix gc})."
  20507. msgstr ""
  20508. #. type: table
  20509. #: guix-git/doc/guix.texi:13828
  20510. 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."
  20511. msgstr ""
  20512. #. type: table
  20513. #: guix-git/doc/guix.texi:13831
  20514. msgid "It can help determine what is preventing a store item from being garbage collected."
  20515. msgstr ""
  20516. #. type: cindex
  20517. #: guix-git/doc/guix.texi:13834
  20518. #, fuzzy, no-wrap
  20519. msgid "shortest path, between packages"
  20520. msgstr "超过1200个受影响的软件包"
  20521. #. type: Plain text
  20522. #: guix-git/doc/guix.texi:13841
  20523. 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.):"
  20524. msgstr ""
  20525. #. type: example
  20526. #: guix-git/doc/guix.texi:13855
  20527. #, no-wrap
  20528. msgid ""
  20529. "$ guix graph --path emacs libunistring\n"
  20530. "emacs@@26.3\n"
  20531. "mailutils@@3.9\n"
  20532. "libunistring@@0.9.10\n"
  20533. "$ guix graph --path -t derivation emacs libunistring\n"
  20534. "/gnu/store/@dots{}-emacs-26.3.drv\n"
  20535. "/gnu/store/@dots{}-mailutils-3.9.drv\n"
  20536. "/gnu/store/@dots{}-libunistring-0.9.10.drv\n"
  20537. "$ guix graph --path -t references emacs libunistring\n"
  20538. "/gnu/store/@dots{}-emacs-26.3\n"
  20539. "/gnu/store/@dots{}-libidn2-2.2.0\n"
  20540. "/gnu/store/@dots{}-libunistring-0.9.10\n"
  20541. msgstr ""
  20542. #. type: Plain text
  20543. #: guix-git/doc/guix.texi:13863
  20544. 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:"
  20545. msgstr ""
  20546. #. type: example
  20547. #: guix-git/doc/guix.texi:13866
  20548. #, no-wrap
  20549. msgid "guix graph -M 2 libreoffice | xdot -f fdp -\n"
  20550. msgstr ""
  20551. #. type: Plain text
  20552. #: guix-git/doc/guix.texi:13870
  20553. 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."
  20554. msgstr ""
  20555. #. type: Plain text
  20556. #: guix-git/doc/guix.texi:13872
  20557. msgid "The available options are the following:"
  20558. msgstr ""
  20559. #. type: table
  20560. #: guix-git/doc/guix.texi:13878
  20561. msgid "Produce a graph output of @var{type}, where @var{type} must be one of the values listed above."
  20562. msgstr ""
  20563. #. type: item
  20564. #: guix-git/doc/guix.texi:13879
  20565. #, no-wrap
  20566. msgid "--list-types"
  20567. msgstr ""
  20568. #. type: table
  20569. #: guix-git/doc/guix.texi:13881
  20570. msgid "List the supported graph types."
  20571. msgstr ""
  20572. #. type: item
  20573. #: guix-git/doc/guix.texi:13882
  20574. #, no-wrap
  20575. msgid "--backend=@var{backend}"
  20576. msgstr ""
  20577. #. type: itemx
  20578. #: guix-git/doc/guix.texi:13883
  20579. #, no-wrap
  20580. msgid "-b @var{backend}"
  20581. msgstr ""
  20582. #. type: table
  20583. #: guix-git/doc/guix.texi:13885
  20584. msgid "Produce a graph using the selected @var{backend}."
  20585. msgstr ""
  20586. #. type: item
  20587. #: guix-git/doc/guix.texi:13886
  20588. #, no-wrap
  20589. msgid "--list-backends"
  20590. msgstr ""
  20591. #. type: table
  20592. #: guix-git/doc/guix.texi:13888
  20593. msgid "List the supported graph backends."
  20594. msgstr ""
  20595. #. type: table
  20596. #: guix-git/doc/guix.texi:13890
  20597. msgid "Currently, the available backends are Graphviz and d3.js."
  20598. msgstr ""
  20599. #. type: item
  20600. #: guix-git/doc/guix.texi:13891
  20601. #, no-wrap
  20602. msgid "--path"
  20603. msgstr ""
  20604. #. type: table
  20605. #: guix-git/doc/guix.texi:13896
  20606. 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}:"
  20607. msgstr ""
  20608. #. type: example
  20609. #: guix-git/doc/guix.texi:13903
  20610. #, no-wrap
  20611. msgid ""
  20612. "$ guix graph --path -t references libreoffice llvm\n"
  20613. "/gnu/store/@dots{}-libreoffice-6.4.2.2\n"
  20614. "/gnu/store/@dots{}-libepoxy-1.5.4\n"
  20615. "/gnu/store/@dots{}-mesa-19.3.4\n"
  20616. "/gnu/store/@dots{}-llvm-9.0.1\n"
  20617. msgstr ""
  20618. #. type: example
  20619. #: guix-git/doc/guix.texi:13913
  20620. #, no-wrap
  20621. msgid "guix graph -e '(@@@@ (gnu packages commencement) gnu-make-final)'\n"
  20622. msgstr ""
  20623. #. type: table
  20624. #: guix-git/doc/guix.texi:13918
  20625. msgid "Display the graph for @var{system}---e.g., @code{i686-linux}."
  20626. msgstr ""
  20627. #. type: table
  20628. #: guix-git/doc/guix.texi:13921
  20629. msgid "The package dependency graph is largely architecture-independent, but there are some architecture-dependent bits that this option allows you to visualize."
  20630. msgstr ""
  20631. #. type: Plain text
  20632. #: guix-git/doc/guix.texi:13937
  20633. 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:"
  20634. msgstr ""
  20635. #. type: example
  20636. #: guix-git/doc/guix.texi:13940
  20637. #, no-wrap
  20638. msgid "guix graph git --with-input=openssl=libressl\n"
  20639. msgstr ""
  20640. #. type: Plain text
  20641. #: guix-git/doc/guix.texi:13943
  20642. msgid "So many possibilities, so much fun!"
  20643. msgstr ""
  20644. #. type: section
  20645. #: guix-git/doc/guix.texi:13945
  20646. #, no-wrap
  20647. msgid "Invoking @command{guix publish}"
  20648. msgstr ""
  20649. #. type: command{#1}
  20650. #: guix-git/doc/guix.texi:13947
  20651. #, no-wrap
  20652. msgid "guix publish"
  20653. msgstr ""
  20654. #. type: Plain text
  20655. #: guix-git/doc/guix.texi:13951
  20656. 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})."
  20657. msgstr ""
  20658. #. type: Plain text
  20659. #: guix-git/doc/guix.texi:13957
  20660. 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."
  20661. msgstr ""
  20662. #. type: Plain text
  20663. #: guix-git/doc/guix.texi:13963
  20664. 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."
  20665. msgstr ""
  20666. #. type: Plain text
  20667. #: guix-git/doc/guix.texi:13967
  20668. msgid "The signing key pair must be generated before @command{guix publish} is launched, using @command{guix archive --generate-key} (@pxref{Invoking guix archive})."
  20669. msgstr ""
  20670. #. type: Plain text
  20671. #: guix-git/doc/guix.texi:13972
  20672. 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})."
  20673. msgstr ""
  20674. #. type: example
  20675. #: guix-git/doc/guix.texi:13977
  20676. #, no-wrap
  20677. msgid "guix publish @var{options}@dots{}\n"
  20678. msgstr ""
  20679. #. type: Plain text
  20680. #: guix-git/doc/guix.texi:13981
  20681. msgid "Running @command{guix publish} without any additional arguments will spawn an HTTP server on port 8080:"
  20682. msgstr ""
  20683. #. type: example
  20684. #: guix-git/doc/guix.texi:13984
  20685. #, no-wrap
  20686. msgid "guix publish\n"
  20687. msgstr ""
  20688. #. type: Plain text
  20689. #: guix-git/doc/guix.texi:13988
  20690. msgid "Once a publishing server has been authorized, the daemon may download substitutes from it. @xref{Getting Substitutes from Other Servers}."
  20691. msgstr ""
  20692. #. type: Plain text
  20693. #: guix-git/doc/guix.texi:13996
  20694. 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})."
  20695. msgstr ""
  20696. #. type: Plain text
  20697. #: guix-git/doc/guix.texi:14003
  20698. 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}):"
  20699. msgstr ""
  20700. #. type: example
  20701. #: guix-git/doc/guix.texi:14006
  20702. #, no-wrap
  20703. msgid "http://example.org/file/hello-2.10.tar.gz/sha256/0ssi1@dots{}ndq1i\n"
  20704. msgstr ""
  20705. #. type: Plain text
  20706. #: guix-git/doc/guix.texi:14010
  20707. msgid "Obviously, these URLs only work for files that are in the store; in other cases, they return 404 (``Not Found'')."
  20708. msgstr ""
  20709. #. type: cindex
  20710. #: guix-git/doc/guix.texi:14011
  20711. #, no-wrap
  20712. msgid "build logs, publication"
  20713. msgstr ""
  20714. #. type: Plain text
  20715. #: guix-git/doc/guix.texi:14013
  20716. msgid "Build logs are available from @code{/log} URLs like:"
  20717. msgstr ""
  20718. #. type: example
  20719. #: guix-git/doc/guix.texi:14016
  20720. #, no-wrap
  20721. msgid "http://example.org/log/gwspk@dots{}-guile-2.2.3\n"
  20722. msgstr ""
  20723. #. type: Plain text
  20724. #: guix-git/doc/guix.texi:14026
  20725. 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."
  20726. msgstr ""
  20727. #. type: item
  20728. #: guix-git/doc/guix.texi:14030
  20729. #, no-wrap
  20730. msgid "--port=@var{port}"
  20731. msgstr ""
  20732. #. type: itemx
  20733. #: guix-git/doc/guix.texi:14031
  20734. #, no-wrap
  20735. msgid "-p @var{port}"
  20736. msgstr ""
  20737. #. type: table
  20738. #: guix-git/doc/guix.texi:14033
  20739. msgid "Listen for HTTP requests on @var{port}."
  20740. msgstr ""
  20741. #. type: item
  20742. #: guix-git/doc/guix.texi:14034
  20743. #, no-wrap
  20744. msgid "--listen=@var{host}"
  20745. msgstr ""
  20746. #. type: table
  20747. #: guix-git/doc/guix.texi:14037
  20748. msgid "Listen on the network interface for @var{host}. The default is to accept connections from any interface."
  20749. msgstr ""
  20750. #. type: table
  20751. #: guix-git/doc/guix.texi:14042
  20752. 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."
  20753. msgstr ""
  20754. #. type: item
  20755. #: guix-git/doc/guix.texi:14043
  20756. #, fuzzy, no-wrap
  20757. msgid "--compression[=@var{method}[:@var{level}]]"
  20758. msgstr "--log-compression=@var{type}"
  20759. #. type: itemx
  20760. #: guix-git/doc/guix.texi:14044
  20761. #, no-wrap
  20762. msgid "-C [@var{method}[:@var{level}]]"
  20763. msgstr ""
  20764. #. type: table
  20765. #: guix-git/doc/guix.texi:14048
  20766. 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."
  20767. msgstr ""
  20768. #. type: table
  20769. #: guix-git/doc/guix.texi:14052
  20770. 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."
  20771. msgstr ""
  20772. #. type: table
  20773. #: guix-git/doc/guix.texi:14059
  20774. 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."
  20775. msgstr ""
  20776. #. type: table
  20777. #: guix-git/doc/guix.texi:14063
  20778. 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}."
  20779. msgstr ""
  20780. #. type: table
  20781. #: guix-git/doc/guix.texi:14072
  20782. 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."
  20783. msgstr ""
  20784. #. type: table
  20785. #: guix-git/doc/guix.texi:14077
  20786. 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."
  20787. msgstr ""
  20788. #. type: item
  20789. #: guix-git/doc/guix.texi:14078
  20790. #, no-wrap
  20791. msgid "--cache=@var{directory}"
  20792. msgstr ""
  20793. #. type: itemx
  20794. #: guix-git/doc/guix.texi:14079
  20795. #, no-wrap
  20796. msgid "-c @var{directory}"
  20797. msgstr ""
  20798. #. type: table
  20799. #: guix-git/doc/guix.texi:14082
  20800. msgid "Cache archives and meta-data (@code{.narinfo} URLs) to @var{directory} and only serve archives that are in cache."
  20801. msgstr ""
  20802. #. type: table
  20803. #: guix-git/doc/guix.texi:14090
  20804. 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."
  20805. msgstr ""
  20806. #. type: table
  20807. #: guix-git/doc/guix.texi:14098
  20808. 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."
  20809. msgstr ""
  20810. #. type: table
  20811. #: guix-git/doc/guix.texi:14105
  20812. 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."
  20813. msgstr ""
  20814. #. type: table
  20815. #: guix-git/doc/guix.texi:14109
  20816. 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."
  20817. msgstr ""
  20818. #. type: table
  20819. #: guix-git/doc/guix.texi:14112
  20820. msgid "When @option{--ttl} is used, cached entries are automatically deleted when they have expired."
  20821. msgstr ""
  20822. #. type: item
  20823. #: guix-git/doc/guix.texi:14113
  20824. #, no-wrap
  20825. msgid "--workers=@var{N}"
  20826. msgstr ""
  20827. #. type: table
  20828. #: guix-git/doc/guix.texi:14116
  20829. msgid "When @option{--cache} is used, request the allocation of @var{N} worker threads to ``bake'' archives."
  20830. msgstr ""
  20831. #. type: item
  20832. #: guix-git/doc/guix.texi:14117
  20833. #, no-wrap
  20834. msgid "--ttl=@var{ttl}"
  20835. msgstr ""
  20836. #. type: table
  20837. #: guix-git/doc/guix.texi:14121 guix-git/doc/guix.texi:34309
  20838. 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."
  20839. msgstr ""
  20840. #. type: table
  20841. #: guix-git/doc/guix.texi:14126
  20842. 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}."
  20843. msgstr ""
  20844. #. type: table
  20845. #: guix-git/doc/guix.texi:14130
  20846. 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."
  20847. msgstr ""
  20848. #. type: item
  20849. #: guix-git/doc/guix.texi:14131
  20850. #, no-wrap
  20851. msgid "--negative-ttl=@var{ttl}"
  20852. msgstr ""
  20853. #. type: table
  20854. #: guix-git/doc/guix.texi:14136 guix-git/doc/guix.texi:34318
  20855. 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."
  20856. msgstr ""
  20857. #. type: table
  20858. #: guix-git/doc/guix.texi:14140
  20859. 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."
  20860. msgstr ""
  20861. #. type: item
  20862. #: guix-git/doc/guix.texi:14141
  20863. #, no-wrap
  20864. msgid "--cache-bypass-threshold=@var{size}"
  20865. msgstr ""
  20866. #. type: table
  20867. #: guix-git/doc/guix.texi:14146
  20868. 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}."
  20869. msgstr ""
  20870. #. type: table
  20871. #: guix-git/doc/guix.texi:14151
  20872. 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."
  20873. msgstr ""
  20874. #. type: table
  20875. #: guix-git/doc/guix.texi:14155
  20876. 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."
  20877. msgstr ""
  20878. #. type: item
  20879. #: guix-git/doc/guix.texi:14156
  20880. #, no-wrap
  20881. msgid "--nar-path=@var{path}"
  20882. msgstr ""
  20883. #. type: table
  20884. #: guix-git/doc/guix.texi:14159
  20885. msgid "Use @var{path} as the prefix for the URLs of ``nar'' files (@pxref{Invoking guix archive, normalized archives})."
  20886. msgstr ""
  20887. #. type: table
  20888. #: guix-git/doc/guix.texi:14163
  20889. 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}."
  20890. msgstr ""
  20891. #. type: item
  20892. #: guix-git/doc/guix.texi:14164
  20893. #, no-wrap
  20894. msgid "--public-key=@var{file}"
  20895. msgstr ""
  20896. #. type: itemx
  20897. #: guix-git/doc/guix.texi:14165
  20898. #, no-wrap
  20899. msgid "--private-key=@var{file}"
  20900. msgstr ""
  20901. #. type: table
  20902. #: guix-git/doc/guix.texi:14168 guix-git/doc/guix.texi:30051
  20903. #: guix-git/doc/guix.texi:30088
  20904. msgid "Use the specific @var{file}s as the public/private key pair used to sign the store items being published."
  20905. msgstr ""
  20906. #. type: table
  20907. #: guix-git/doc/guix.texi:14175
  20908. 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."
  20909. msgstr ""
  20910. #. type: item
  20911. #: guix-git/doc/guix.texi:14176
  20912. #, no-wrap
  20913. msgid "--repl[=@var{port}]"
  20914. msgstr ""
  20915. #. type: itemx
  20916. #: guix-git/doc/guix.texi:14177
  20917. #, no-wrap
  20918. msgid "-r [@var{port}]"
  20919. msgstr ""
  20920. #. type: table
  20921. #: guix-git/doc/guix.texi:14181
  20922. 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."
  20923. msgstr ""
  20924. #. type: Plain text
  20925. #: guix-git/doc/guix.texi:14187
  20926. 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}})."
  20927. msgstr ""
  20928. #. type: Plain text
  20929. #: guix-git/doc/guix.texi:14190
  20930. msgid "If you are instead running Guix on a ``foreign distro'', follow these instructions:"
  20931. msgstr ""
  20932. #. type: itemize
  20933. #: guix-git/doc/guix.texi:14194
  20934. msgid "If your host distro uses the systemd init system:"
  20935. msgstr ""
  20936. #. type: example
  20937. #: guix-git/doc/guix.texi:14199
  20938. #, no-wrap
  20939. msgid ""
  20940. "# ln -s ~root/.guix-profile/lib/systemd/system/guix-publish.service \\\n"
  20941. " /etc/systemd/system/\n"
  20942. "# systemctl start guix-publish && systemctl enable guix-publish\n"
  20943. msgstr ""
  20944. #. type: example
  20945. #: guix-git/doc/guix.texi:14207
  20946. #, no-wrap
  20947. msgid ""
  20948. "# ln -s ~root/.guix-profile/lib/upstart/system/guix-publish.conf /etc/init/\n"
  20949. "# start guix-publish\n"
  20950. msgstr ""
  20951. #. type: itemize
  20952. #: guix-git/doc/guix.texi:14211
  20953. msgid "Otherwise, proceed similarly with your distro's init system."
  20954. msgstr ""
  20955. #. type: section
  20956. #: guix-git/doc/guix.texi:14214
  20957. #, no-wrap
  20958. msgid "Invoking @command{guix challenge}"
  20959. msgstr ""
  20960. #. type: cindex
  20961. #: guix-git/doc/guix.texi:14217
  20962. #, no-wrap
  20963. msgid "verifiable builds"
  20964. msgstr ""
  20965. #. type: command{#1}
  20966. #: guix-git/doc/guix.texi:14218
  20967. #, no-wrap
  20968. msgid "guix challenge"
  20969. msgstr ""
  20970. #. type: cindex
  20971. #: guix-git/doc/guix.texi:14219
  20972. #, no-wrap
  20973. msgid "challenge"
  20974. msgstr ""
  20975. #. type: Plain text
  20976. #: guix-git/doc/guix.texi:14224
  20977. 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."
  20978. msgstr ""
  20979. #. type: Plain text
  20980. #: guix-git/doc/guix.texi:14232
  20981. 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."
  20982. msgstr ""
  20983. #. type: Plain text
  20984. #: guix-git/doc/guix.texi:14241
  20985. 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."
  20986. msgstr ""
  20987. #. type: Plain text
  20988. #: guix-git/doc/guix.texi:14243
  20989. msgid "The command output looks like this:"
  20990. msgstr ""
  20991. #. type: smallexample
  20992. #: guix-git/doc/guix.texi:14255
  20993. #, no-wrap
  20994. msgid ""
  20995. "$ guix challenge --substitute-urls=\"https://@value{SUBSTITUTE-SERVER-1} https://guix.example.org\"\n"
  20996. "updating list of substitutes from 'https://@value{SUBSTITUTE-SERVER-1}'... 100.0%\n"
  20997. "updating list of substitutes from 'https://guix.example.org'... 100.0%\n"
  20998. "/gnu/store/@dots{}-openssl-1.0.2d contents differ:\n"
  20999. " local hash: 0725l22r5jnzazaacncwsvp9kgf42266ayyp814v7djxs7nk963q\n"
  21000. " https://@value{SUBSTITUTE-SERVER-1}/nar/@dots{}-openssl-1.0.2d: 0725l22r5jnzazaacncwsvp9kgf42266ayyp814v7djxs7nk963q\n"
  21001. " https://guix.example.org/nar/@dots{}-openssl-1.0.2d: 1zy4fmaaqcnjrzzajkdn3f5gmjk754b43qkq47llbyak9z0qjyim\n"
  21002. " differing files:\n"
  21003. " /lib/libcrypto.so.1.1\n"
  21004. " /lib/libssl.so.1.1\n"
  21005. "\n"
  21006. msgstr ""
  21007. #. type: smallexample
  21008. #: guix-git/doc/guix.texi:14262
  21009. #, no-wrap
  21010. msgid ""
  21011. "/gnu/store/@dots{}-git-2.5.0 contents differ:\n"
  21012. " local hash: 00p3bmryhjxrhpn2gxs2fy0a15lnip05l97205pgbk5ra395hyha\n"
  21013. " https://@value{SUBSTITUTE-SERVER-1}/nar/@dots{}-git-2.5.0: 069nb85bv4d4a6slrwjdy8v1cn4cwspm3kdbmyb81d6zckj3nq9f\n"
  21014. " https://guix.example.org/nar/@dots{}-git-2.5.0: 0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73\n"
  21015. " differing file:\n"
  21016. " /libexec/git-core/git-fsck\n"
  21017. "\n"
  21018. msgstr ""
  21019. #. type: smallexample
  21020. #: guix-git/doc/guix.texi:14269
  21021. #, no-wrap
  21022. msgid ""
  21023. "/gnu/store/@dots{}-pius-2.1.1 contents differ:\n"
  21024. " local hash: 0k4v3m9z1zp8xzzizb7d8kjj72f9172xv078sq4wl73vnq9ig3ax\n"
  21025. " https://@value{SUBSTITUTE-SERVER-1}/nar/@dots{}-pius-2.1.1: 0k4v3m9z1zp8xzzizb7d8kjj72f9172xv078sq4wl73vnq9ig3ax\n"
  21026. " https://guix.example.org/nar/@dots{}-pius-2.1.1: 1cy25x1a4fzq5rk0pmvc8xhwyffnqz95h2bpvqsz2mpvlbccy0gs\n"
  21027. " differing file:\n"
  21028. " /share/man/man1/pius.1.gz\n"
  21029. "\n"
  21030. msgstr ""
  21031. #. type: smallexample
  21032. #: guix-git/doc/guix.texi:14271
  21033. #, no-wrap
  21034. msgid ""
  21035. "@dots{}\n"
  21036. "\n"
  21037. msgstr ""
  21038. #. type: smallexample
  21039. #: guix-git/doc/guix.texi:14276
  21040. #, no-wrap
  21041. msgid ""
  21042. "6,406 store items were analyzed:\n"
  21043. " - 4,749 (74.1%) were identical\n"
  21044. " - 525 (8.2%) differed\n"
  21045. " - 1,132 (17.7%) were inconclusive\n"
  21046. msgstr ""
  21047. #. type: Plain text
  21048. #: guix-git/doc/guix.texi:14284
  21049. 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."
  21050. msgstr ""
  21051. #. type: cindex
  21052. #: guix-git/doc/guix.texi:14285
  21053. #, no-wrap
  21054. msgid "non-determinism, in package builds"
  21055. msgstr ""
  21056. #. type: Plain text
  21057. #: guix-git/doc/guix.texi:14296
  21058. 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."
  21059. msgstr ""
  21060. #. type: Plain text
  21061. #: guix-git/doc/guix.texi:14299
  21062. msgid "To find out what is wrong with this Git binary, the easiest approach is to run:"
  21063. msgstr ""
  21064. #. type: example
  21065. #: guix-git/doc/guix.texi:14304
  21066. #, no-wrap
  21067. msgid ""
  21068. "guix challenge git \\\n"
  21069. " --diff=diffoscope \\\n"
  21070. " --substitute-urls=\"https://@value{SUBSTITUTE-SERVER-1} https://guix.example.org\"\n"
  21071. msgstr ""
  21072. #. type: Plain text
  21073. #: guix-git/doc/guix.texi:14308
  21074. msgid "This automatically invokes @command{diffoscope}, which displays detailed information about files that differ."
  21075. msgstr ""
  21076. #. type: Plain text
  21077. #: guix-git/doc/guix.texi:14311
  21078. msgid "Alternatively, we can do something along these lines (@pxref{Invoking guix archive}):"
  21079. msgstr ""
  21080. #. type: example
  21081. #: guix-git/doc/guix.texi:14316
  21082. #, no-wrap
  21083. msgid ""
  21084. "$ wget -q -O - https://@value{SUBSTITUTE-SERVER-1}/nar/lzip/@dots{}-git-2.5.0 \\\n"
  21085. " | lzip -d | guix archive -x /tmp/git\n"
  21086. "$ diff -ur --no-dereference /gnu/store/@dots{}-git.2.5.0 /tmp/git\n"
  21087. msgstr ""
  21088. #. type: Plain text
  21089. #: guix-git/doc/guix.texi:14325
  21090. 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."
  21091. msgstr ""
  21092. #. type: Plain text
  21093. #: guix-git/doc/guix.texi:14333
  21094. 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."
  21095. msgstr ""
  21096. #. type: Plain text
  21097. #: guix-git/doc/guix.texi:14337
  21098. 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:"
  21099. msgstr ""
  21100. #. type: example
  21101. #: guix-git/doc/guix.texi:14340
  21102. #, no-wrap
  21103. msgid "$ guix challenge @var{package}\n"
  21104. msgstr ""
  21105. #. type: Plain text
  21106. #: guix-git/doc/guix.texi:14345
  21107. msgid "where @var{package} is a package specification such as @code{guile@@2.0} or @code{glibc:debug}."
  21108. msgstr ""
  21109. #. type: example
  21110. #: guix-git/doc/guix.texi:14350
  21111. #, no-wrap
  21112. msgid "guix challenge @var{options} [@var{packages}@dots{}]\n"
  21113. msgstr ""
  21114. #. type: Plain text
  21115. #: guix-git/doc/guix.texi:14357
  21116. 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)."
  21117. msgstr ""
  21118. #. type: Plain text
  21119. #: guix-git/doc/guix.texi:14359
  21120. msgid "The one option that matters is:"
  21121. msgstr ""
  21122. #. type: table
  21123. #: guix-git/doc/guix.texi:14365
  21124. msgid "Consider @var{urls} the whitespace-separated list of substitute source URLs to compare to."
  21125. msgstr ""
  21126. #. type: item
  21127. #: guix-git/doc/guix.texi:14366
  21128. #, fuzzy, no-wrap
  21129. msgid "--diff=@var{mode}"
  21130. msgstr "--rounds=@var{N}"
  21131. #. type: table
  21132. #: guix-git/doc/guix.texi:14368
  21133. msgid "Upon mismatches, show differences according to @var{mode}, one of:"
  21134. msgstr ""
  21135. #. type: item
  21136. #: guix-git/doc/guix.texi:14370
  21137. #, fuzzy, no-wrap
  21138. msgid "@code{simple} (the default)"
  21139. msgstr "@code{speed}(默认值:@code{1.0})"
  21140. #. type: table
  21141. #: guix-git/doc/guix.texi:14372
  21142. msgid "Show the list of files that differ."
  21143. msgstr ""
  21144. #. type: code{#1}
  21145. #: guix-git/doc/guix.texi:14373
  21146. #, no-wrap
  21147. msgid "diffoscope"
  21148. msgstr ""
  21149. #. type: var{#1}
  21150. #: guix-git/doc/guix.texi:14374
  21151. #, no-wrap
  21152. msgid "command"
  21153. msgstr ""
  21154. #. type: table
  21155. #: guix-git/doc/guix.texi:14377
  21156. msgid "Invoke @uref{https://diffoscope.org/, Diffoscope}, passing it two directories whose contents do not match."
  21157. msgstr ""
  21158. #. type: table
  21159. #: guix-git/doc/guix.texi:14380
  21160. msgid "When @var{command} is an absolute file name, run @var{command} instead of Diffoscope."
  21161. msgstr ""
  21162. #. type: table
  21163. #: guix-git/doc/guix.texi:14383
  21164. msgid "Do not show further details about the differences."
  21165. msgstr ""
  21166. #. type: table
  21167. #: guix-git/doc/guix.texi:14388
  21168. 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."
  21169. msgstr ""
  21170. #. type: item
  21171. #: guix-git/doc/guix.texi:14389
  21172. #, no-wrap
  21173. msgid "--verbose"
  21174. msgstr ""
  21175. #. type: itemx
  21176. #: guix-git/doc/guix.texi:14390
  21177. #, no-wrap
  21178. msgid "-v"
  21179. msgstr ""
  21180. #. type: table
  21181. #: guix-git/doc/guix.texi:14393
  21182. msgid "Show details about matches (identical contents) in addition to information about mismatches."
  21183. msgstr ""
  21184. #. type: section
  21185. #: guix-git/doc/guix.texi:14397
  21186. #, no-wrap
  21187. msgid "Invoking @command{guix copy}"
  21188. msgstr ""
  21189. #. type: cindex
  21190. #: guix-git/doc/guix.texi:14399
  21191. #, no-wrap
  21192. msgid "copy, of store items, over SSH"
  21193. msgstr ""
  21194. #. type: cindex
  21195. #: guix-git/doc/guix.texi:14400
  21196. #, no-wrap
  21197. msgid "SSH, copy of store items"
  21198. msgstr ""
  21199. #. type: cindex
  21200. #: guix-git/doc/guix.texi:14401
  21201. #, no-wrap
  21202. msgid "sharing store items across machines"
  21203. msgstr ""
  21204. #. type: cindex
  21205. #: guix-git/doc/guix.texi:14402
  21206. #, no-wrap
  21207. msgid "transferring store items across machines"
  21208. msgstr ""
  21209. #. type: Plain text
  21210. #: guix-git/doc/guix.texi:14409
  21211. 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}:"
  21212. msgstr ""
  21213. #. type: example
  21214. #: guix-git/doc/guix.texi:14413
  21215. #, no-wrap
  21216. msgid ""
  21217. "guix copy --to=@var{user}@@@var{host} \\\n"
  21218. " coreutils $(readlink -f ~/.guix-profile)\n"
  21219. msgstr ""
  21220. #. type: Plain text
  21221. #: guix-git/doc/guix.texi:14417
  21222. msgid "If some of the items to be copied are already present on @var{host}, they are not actually sent."
  21223. msgstr ""
  21224. #. type: Plain text
  21225. #: guix-git/doc/guix.texi:14420
  21226. msgid "The command below retrieves @code{libreoffice} and @code{gimp} from @var{host}, assuming they are available there:"
  21227. msgstr ""
  21228. #. type: example
  21229. #: guix-git/doc/guix.texi:14423
  21230. #, no-wrap
  21231. msgid "guix copy --from=@var{host} libreoffice gimp\n"
  21232. msgstr ""
  21233. #. type: Plain text
  21234. #: guix-git/doc/guix.texi:14428
  21235. 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."
  21236. msgstr ""
  21237. #. type: Plain text
  21238. #: guix-git/doc/guix.texi:14434
  21239. 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."
  21240. msgstr ""
  21241. #. type: example
  21242. #: guix-git/doc/guix.texi:14439
  21243. #, no-wrap
  21244. msgid "guix copy [--to=@var{spec}|--from=@var{spec}] @var{items}@dots{}\n"
  21245. msgstr ""
  21246. #. type: Plain text
  21247. #: guix-git/doc/guix.texi:14442
  21248. msgid "You must always specify one of the following options:"
  21249. msgstr ""
  21250. #. type: item
  21251. #: guix-git/doc/guix.texi:14444
  21252. #, no-wrap
  21253. msgid "--to=@var{spec}"
  21254. msgstr ""
  21255. #. type: itemx
  21256. #: guix-git/doc/guix.texi:14445
  21257. #, no-wrap
  21258. msgid "--from=@var{spec}"
  21259. msgstr ""
  21260. #. type: table
  21261. #: guix-git/doc/guix.texi:14449
  21262. 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}."
  21263. msgstr ""
  21264. #. type: Plain text
  21265. #: guix-git/doc/guix.texi:14453
  21266. 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}."
  21267. msgstr ""
  21268. #. type: Plain text
  21269. #: guix-git/doc/guix.texi:14457
  21270. 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})."
  21271. msgstr ""
  21272. #. type: section
  21273. #: guix-git/doc/guix.texi:14460
  21274. #, no-wrap
  21275. msgid "Invoking @command{guix container}"
  21276. msgstr ""
  21277. #. type: command{#1}
  21278. #: guix-git/doc/guix.texi:14462
  21279. #, no-wrap
  21280. msgid "guix container"
  21281. msgstr ""
  21282. #. type: quotation
  21283. #: guix-git/doc/guix.texi:14466
  21284. msgid "As of version @value{VERSION}, this tool is experimental. The interface is subject to radical change in the future."
  21285. msgstr ""
  21286. #. type: Plain text
  21287. #: guix-git/doc/guix.texi:14473
  21288. 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."
  21289. msgstr ""
  21290. #. type: example
  21291. #: guix-git/doc/guix.texi:14478
  21292. #, no-wrap
  21293. msgid "guix container @var{action} @var{options}@dots{}\n"
  21294. msgstr ""
  21295. #. type: Plain text
  21296. #: guix-git/doc/guix.texi:14482
  21297. msgid "@var{action} specifies the operation to perform with a container, and @var{options} specifies the context-specific arguments for the action."
  21298. msgstr ""
  21299. #. type: Plain text
  21300. #: guix-git/doc/guix.texi:14484
  21301. msgid "The following actions are available:"
  21302. msgstr ""
  21303. #. type: item
  21304. #: guix-git/doc/guix.texi:14486
  21305. #, no-wrap
  21306. msgid "exec"
  21307. msgstr ""
  21308. #. type: table
  21309. #: guix-git/doc/guix.texi:14488
  21310. msgid "Execute a command within the context of a running container."
  21311. msgstr ""
  21312. #. type: table
  21313. #: guix-git/doc/guix.texi:14490
  21314. msgid "The syntax is:"
  21315. msgstr ""
  21316. #. type: example
  21317. #: guix-git/doc/guix.texi:14493
  21318. #, no-wrap
  21319. msgid "guix container exec @var{pid} @var{program} @var{arguments}@dots{}\n"
  21320. msgstr ""
  21321. #. type: table
  21322. #: guix-git/doc/guix.texi:14499
  21323. 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}."
  21324. msgstr ""
  21325. #. type: table
  21326. #: guix-git/doc/guix.texi:14503
  21327. 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:"
  21328. msgstr ""
  21329. #. type: example
  21330. #: guix-git/doc/guix.texi:14506
  21331. #, no-wrap
  21332. msgid "guix container exec 9001 /run/current-system/profile/bin/bash --login\n"
  21333. msgstr ""
  21334. #. type: table
  21335. #: guix-git/doc/guix.texi:14510
  21336. 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."
  21337. msgstr ""
  21338. #. type: section
  21339. #: guix-git/doc/guix.texi:14514
  21340. #, no-wrap
  21341. msgid "Invoking @command{guix weather}"
  21342. msgstr ""
  21343. #. type: Plain text
  21344. #: guix-git/doc/guix.texi:14523
  21345. 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})."
  21346. msgstr ""
  21347. #. type: cindex
  21348. #: guix-git/doc/guix.texi:14524
  21349. #, no-wrap
  21350. msgid "statistics, for substitutes"
  21351. msgstr ""
  21352. #. type: cindex
  21353. #: guix-git/doc/guix.texi:14525
  21354. #, no-wrap
  21355. msgid "availability of substitutes"
  21356. msgstr ""
  21357. #. type: cindex
  21358. #: guix-git/doc/guix.texi:14526
  21359. #, no-wrap
  21360. msgid "substitute availability"
  21361. msgstr ""
  21362. #. type: cindex
  21363. #: guix-git/doc/guix.texi:14527
  21364. #, no-wrap
  21365. msgid "weather, substitute availability"
  21366. msgstr ""
  21367. #. type: Plain text
  21368. #: guix-git/doc/guix.texi:14529
  21369. msgid "Here's a sample run:"
  21370. msgstr ""
  21371. #. type: example
  21372. #: guix-git/doc/guix.texi:14541
  21373. #, no-wrap
  21374. msgid ""
  21375. "$ guix weather --substitute-urls=https://guix.example.org\n"
  21376. "computing 5,872 package derivations for x86_64-linux...\n"
  21377. "looking for 6,128 store items on https://guix.example.org..\n"
  21378. "updating list of substitutes from 'https://guix.example.org'... 100.0%\n"
  21379. "https://guix.example.org\n"
  21380. " 43.4% substitutes available (2,658 out of 6,128)\n"
  21381. " 7,032.5 MiB of nars (compressed)\n"
  21382. " 19,824.2 MiB on disk (uncompressed)\n"
  21383. " 0.030 seconds per request (182.9 seconds in total)\n"
  21384. " 33.5 requests per second\n"
  21385. "\n"
  21386. msgstr ""
  21387. #. type: example
  21388. #: guix-git/doc/guix.texi:14551
  21389. #, no-wrap
  21390. msgid ""
  21391. " 9.8% (342 out of 3,470) of the missing items are queued\n"
  21392. " 867 queued builds\n"
  21393. " x86_64-linux: 518 (59.7%)\n"
  21394. " i686-linux: 221 (25.5%)\n"
  21395. " aarch64-linux: 128 (14.8%)\n"
  21396. " build rate: 23.41 builds per hour\n"
  21397. " x86_64-linux: 11.16 builds per hour\n"
  21398. " i686-linux: 6.03 builds per hour\n"
  21399. " aarch64-linux: 6.41 builds per hour\n"
  21400. msgstr ""
  21401. #. type: cindex
  21402. #: guix-git/doc/guix.texi:14553
  21403. #, no-wrap
  21404. msgid "continuous integration, statistics"
  21405. msgstr ""
  21406. #. type: Plain text
  21407. #: guix-git/doc/guix.texi:14564
  21408. 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)."
  21409. msgstr ""
  21410. #. type: Plain text
  21411. #: guix-git/doc/guix.texi:14570
  21412. 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."
  21413. msgstr ""
  21414. #. type: example
  21415. #: guix-git/doc/guix.texi:14575
  21416. #, no-wrap
  21417. msgid "guix weather @var{options}@dots{} [@var{packages}@dots{}]\n"
  21418. msgstr ""
  21419. #. type: Plain text
  21420. #: guix-git/doc/guix.texi:14583
  21421. 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%."
  21422. msgstr ""
  21423. #. type: table
  21424. #: guix-git/doc/guix.texi:14591
  21425. 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."
  21426. msgstr ""
  21427. #. type: table
  21428. #: guix-git/doc/guix.texi:14597
  21429. 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."
  21430. msgstr ""
  21431. #. type: table
  21432. #: guix-git/doc/guix.texi:14603
  21433. 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})."
  21434. msgstr ""
  21435. #. type: table
  21436. #: guix-git/doc/guix.texi:14606
  21437. msgid "This option can be repeated several times, in which case the manifests are concatenated."
  21438. msgstr ""
  21439. #. type: item
  21440. #: guix-git/doc/guix.texi:14607
  21441. #, no-wrap
  21442. msgid "--coverage[=@var{count}]"
  21443. msgstr ""
  21444. #. type: itemx
  21445. #: guix-git/doc/guix.texi:14608
  21446. #, no-wrap
  21447. msgid "-c [@var{count}]"
  21448. msgstr ""
  21449. #. type: table
  21450. #: guix-git/doc/guix.texi:14614
  21451. 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:"
  21452. msgstr ""
  21453. #. type: example
  21454. #: guix-git/doc/guix.texi:14628
  21455. #, no-wrap
  21456. msgid ""
  21457. "$ guix weather --substitute-urls=@value{SUBSTITUTE-URLS} -c 10\n"
  21458. "computing 8,983 package derivations for x86_64-linux...\n"
  21459. "looking for 9,343 store items on @value{SUBSTITUTE-URLS}...\n"
  21460. "updating substitutes from '@value{SUBSTITUTE-URLS}'... 100.0%\n"
  21461. "@value{SUBSTITUTE-URLS}\n"
  21462. " 64.7% substitutes available (6,047 out of 9,343)\n"
  21463. "@dots{}\n"
  21464. "2502 packages are missing from '@value{SUBSTITUTE-URLS}' for 'x86_64-linux', among which:\n"
  21465. " 58 kcoreaddons@@5.49.0 /gnu/store/@dots{}-kcoreaddons-5.49.0\n"
  21466. " 46 qgpgme@@1.11.1 /gnu/store/@dots{}-qgpgme-1.11.1\n"
  21467. " 37 perl-http-cookiejar@@0.008 /gnu/store/@dots{}-perl-http-cookiejar-0.008\n"
  21468. " @dots{}\n"
  21469. msgstr ""
  21470. #. type: table
  21471. #: guix-git/doc/guix.texi:14634
  21472. 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."
  21473. msgstr ""
  21474. #. type: table
  21475. #: guix-git/doc/guix.texi:14638
  21476. 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."
  21477. msgstr ""
  21478. #. type: item
  21479. #: guix-git/doc/guix.texi:14639
  21480. #, no-wrap
  21481. msgid "--display-missing"
  21482. msgstr ""
  21483. #. type: table
  21484. #: guix-git/doc/guix.texi:14641
  21485. msgid "Display the list of store items for which substitutes are missing."
  21486. msgstr ""
  21487. #. type: section
  21488. #: guix-git/doc/guix.texi:14644
  21489. #, no-wrap
  21490. msgid "Invoking @command{guix processes}"
  21491. msgstr ""
  21492. #. type: Plain text
  21493. #: guix-git/doc/guix.texi:14652
  21494. 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:"
  21495. msgstr ""
  21496. #. type: example
  21497. #: guix-git/doc/guix.texi:14658
  21498. #, no-wrap
  21499. msgid ""
  21500. "$ sudo guix processes\n"
  21501. "SessionPID: 19002\n"
  21502. "ClientPID: 19090\n"
  21503. "ClientCommand: guix shell python\n"
  21504. "\n"
  21505. msgstr ""
  21506. #. type: example
  21507. #: guix-git/doc/guix.texi:14662
  21508. #, no-wrap
  21509. msgid ""
  21510. "SessionPID: 19402\n"
  21511. "ClientPID: 19367\n"
  21512. "ClientCommand: guix publish -u guix-publish -p 3000 -C 9 @dots{}\n"
  21513. "\n"
  21514. msgstr ""
  21515. #. type: example
  21516. #: guix-git/doc/guix.texi:14675
  21517. #, no-wrap
  21518. msgid ""
  21519. "SessionPID: 19444\n"
  21520. "ClientPID: 19419\n"
  21521. "ClientCommand: cuirass --cache-directory /var/cache/cuirass @dots{}\n"
  21522. "LockHeld: /gnu/store/@dots{}-perl-ipc-cmd-0.96.lock\n"
  21523. "LockHeld: /gnu/store/@dots{}-python-six-bootstrap-1.11.0.lock\n"
  21524. "LockHeld: /gnu/store/@dots{}-libjpeg-turbo-2.0.0.lock\n"
  21525. "ChildPID: 20495\n"
  21526. "ChildCommand: guix offload x86_64-linux 7200 1 28800\n"
  21527. "ChildPID: 27733\n"
  21528. "ChildCommand: guix offload x86_64-linux 7200 1 28800\n"
  21529. "ChildPID: 27793\n"
  21530. "ChildCommand: guix offload x86_64-linux 7200 1 28800\n"
  21531. msgstr ""
  21532. #. type: Plain text
  21533. #: guix-git/doc/guix.texi:14682
  21534. 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."
  21535. msgstr ""
  21536. #. type: Plain text
  21537. #: guix-git/doc/guix.texi:14689
  21538. 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})."
  21539. msgstr ""
  21540. #. type: Plain text
  21541. #: guix-git/doc/guix.texi:14694
  21542. 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:"
  21543. msgstr ""
  21544. #. type: example
  21545. #: guix-git/doc/guix.texi:14700
  21546. #, no-wrap
  21547. msgid ""
  21548. "$ sudo guix processes | \\\n"
  21549. " recsel -p ClientPID,ClientCommand -e 'LockHeld ~ \"perl\"'\n"
  21550. "ClientPID: 19419\n"
  21551. "ClientCommand: cuirass --cache-directory /var/cache/cuirass @dots{}\n"
  21552. msgstr ""
  21553. #. type: Plain text
  21554. #: guix-git/doc/guix.texi:14703
  21555. #, fuzzy
  21556. msgid "Additional options are listed below."
  21557. msgstr "额外的构建选项"
  21558. #. type: table
  21559. #: guix-git/doc/guix.texi:14713
  21560. msgid "The default option. It outputs a set of Session recutils records that include each @code{ChildProcess} as a field."
  21561. msgstr ""
  21562. #. type: item
  21563. #: guix-git/doc/guix.texi:14714
  21564. #, no-wrap
  21565. msgid "normalized"
  21566. msgstr ""
  21567. #. type: table
  21568. #: guix-git/doc/guix.texi:14721
  21569. 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}."
  21570. msgstr ""
  21571. #. type: example
  21572. #: guix-git/doc/guix.texi:14731
  21573. #, no-wrap
  21574. msgid ""
  21575. "$ guix processes --format=normalized | \\\n"
  21576. " recsel \\\n"
  21577. " -j Session \\\n"
  21578. " -t ChildProcess \\\n"
  21579. " -p Session.PID,PID \\\n"
  21580. " -e 'Session.ClientCommand ~ \"guix build\"'\n"
  21581. "PID: 4435\n"
  21582. "Session_PID: 4278\n"
  21583. "\n"
  21584. msgstr ""
  21585. #. type: example
  21586. #: guix-git/doc/guix.texi:14734
  21587. #, no-wrap
  21588. msgid ""
  21589. "PID: 4554\n"
  21590. "Session_PID: 4278\n"
  21591. "\n"
  21592. msgstr ""
  21593. #. type: example
  21594. #: guix-git/doc/guix.texi:14737
  21595. #, no-wrap
  21596. msgid ""
  21597. "PID: 4646\n"
  21598. "Session_PID: 4278\n"
  21599. msgstr ""
  21600. #. type: cindex
  21601. #: guix-git/doc/guix.texi:14744
  21602. #, no-wrap
  21603. msgid "system configuration"
  21604. msgstr ""
  21605. #. type: Plain text
  21606. #: guix-git/doc/guix.texi:14750
  21607. 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."
  21608. msgstr ""
  21609. #. type: Plain text
  21610. #: guix-git/doc/guix.texi:14760
  21611. 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."
  21612. msgstr ""
  21613. #. type: Plain text
  21614. #: guix-git/doc/guix.texi:14765
  21615. 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."
  21616. msgstr ""
  21617. #. type: Plain text
  21618. #: guix-git/doc/guix.texi:14795
  21619. 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:"
  21620. msgstr ""
  21621. #. type: code{#1}
  21622. #: guix-git/doc/guix.texi:14796 guix-git/doc/guix.texi:36638
  21623. #, no-wrap
  21624. msgid "operating-system"
  21625. msgstr ""
  21626. #. type: include
  21627. #: guix-git/doc/guix.texi:14798
  21628. #, no-wrap
  21629. msgid "os-config-bare-bones.texi"
  21630. msgstr ""
  21631. #. type: Plain text
  21632. #: guix-git/doc/guix.texi:14805
  21633. 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."
  21634. msgstr ""
  21635. #. type: Plain text
  21636. #: guix-git/doc/guix.texi:14810
  21637. 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}."
  21638. msgstr ""
  21639. #. type: unnumberedsubsec
  21640. #: guix-git/doc/guix.texi:14811
  21641. #, no-wrap
  21642. msgid "Bootloader"
  21643. msgstr ""
  21644. #. type: cindex
  21645. #: guix-git/doc/guix.texi:14813
  21646. #, no-wrap
  21647. msgid "legacy boot, on Intel machines"
  21648. msgstr ""
  21649. #. type: cindex
  21650. #: guix-git/doc/guix.texi:14814
  21651. #, no-wrap
  21652. msgid "BIOS boot, on Intel machines"
  21653. msgstr ""
  21654. #. type: cindex
  21655. #: guix-git/doc/guix.texi:14815
  21656. #, no-wrap
  21657. msgid "UEFI boot"
  21658. msgstr ""
  21659. #. type: cindex
  21660. #: guix-git/doc/guix.texi:14816
  21661. #, no-wrap
  21662. msgid "EFI boot"
  21663. msgstr ""
  21664. #. type: Plain text
  21665. #: guix-git/doc/guix.texi:14822
  21666. 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:"
  21667. msgstr ""
  21668. #. type: lisp
  21669. #: guix-git/doc/guix.texi:14827
  21670. #, no-wrap
  21671. msgid ""
  21672. "(bootloader-configuration\n"
  21673. " (bootloader grub-efi-bootloader)\n"
  21674. " (targets '(\"/boot/efi\")))\n"
  21675. msgstr ""
  21676. #. type: Plain text
  21677. #: guix-git/doc/guix.texi:14831
  21678. msgid "@xref{Bootloader Configuration}, for more information on the available configuration options."
  21679. msgstr ""
  21680. #. type: unnumberedsubsec
  21681. #: guix-git/doc/guix.texi:14832
  21682. #, no-wrap
  21683. msgid "Globally-Visible Packages"
  21684. msgstr ""
  21685. #. type: vindex
  21686. #: guix-git/doc/guix.texi:14834
  21687. #, no-wrap
  21688. msgid "%base-packages"
  21689. msgstr ""
  21690. #. type: Plain text
  21691. #: guix-git/doc/guix.texi:14847
  21692. 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:"
  21693. msgstr ""
  21694. #. type: lisp
  21695. #: guix-git/doc/guix.texi:14851
  21696. #, no-wrap
  21697. msgid ""
  21698. "(use-modules (gnu packages))\n"
  21699. "(use-modules (gnu packages dns))\n"
  21700. "\n"
  21701. msgstr ""
  21702. #. type: lisp
  21703. #: guix-git/doc/guix.texi:14856
  21704. #, no-wrap
  21705. msgid ""
  21706. "(operating-system\n"
  21707. " ;; ...\n"
  21708. " (packages (cons (list isc-bind \"utils\")\n"
  21709. " %base-packages)))\n"
  21710. msgstr ""
  21711. #. type: findex
  21712. #: guix-git/doc/guix.texi:14858
  21713. #, no-wrap
  21714. msgid "specification->package"
  21715. msgstr ""
  21716. #. type: Plain text
  21717. #: guix-git/doc/guix.texi:14867
  21718. 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:"
  21719. msgstr ""
  21720. #. type: lisp
  21721. #: guix-git/doc/guix.texi:14870
  21722. #, no-wrap
  21723. msgid ""
  21724. "(use-modules (gnu packages))\n"
  21725. "\n"
  21726. msgstr ""
  21727. #. type: lisp
  21728. #: guix-git/doc/guix.texi:14876
  21729. #, no-wrap
  21730. msgid ""
  21731. "(operating-system\n"
  21732. " ;; ...\n"
  21733. " (packages (append (map specification->package\n"
  21734. " '(\"tcpdump\" \"htop\" \"gnupg@@2.0\"))\n"
  21735. " %base-packages)))\n"
  21736. msgstr ""
  21737. #. type: unnumberedsubsec
  21738. #: guix-git/doc/guix.texi:14878
  21739. #, no-wrap
  21740. msgid "System Services"
  21741. msgstr ""
  21742. #. type: cindex
  21743. #: guix-git/doc/guix.texi:14880 guix-git/doc/guix.texi:35341
  21744. #: guix-git/doc/guix.texi:36878
  21745. #, no-wrap
  21746. msgid "services"
  21747. msgstr ""
  21748. #. type: vindex
  21749. #: guix-git/doc/guix.texi:14881
  21750. #, no-wrap
  21751. msgid "%base-services"
  21752. msgstr ""
  21753. #. type: Plain text
  21754. #: guix-git/doc/guix.texi:14891
  21755. 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})."
  21756. msgstr ""
  21757. #. type: cindex
  21758. #: guix-git/doc/guix.texi:14892
  21759. #, no-wrap
  21760. msgid "customization, of services"
  21761. msgstr ""
  21762. #. type: findex
  21763. #: guix-git/doc/guix.texi:14893
  21764. #, no-wrap
  21765. msgid "modify-services"
  21766. msgstr ""
  21767. #. type: Plain text
  21768. #: guix-git/doc/guix.texi:14897
  21769. 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."
  21770. msgstr ""
  21771. #. type: anchor{#1}
  21772. #: guix-git/doc/guix.texi:14903
  21773. msgid "auto-login to TTY"
  21774. msgstr ""
  21775. #. type: Plain text
  21776. #: guix-git/doc/guix.texi:14903
  21777. 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:"
  21778. msgstr ""
  21779. #. type: lisp
  21780. #: guix-git/doc/guix.texi:14920
  21781. #, no-wrap
  21782. msgid ""
  21783. "(define %my-services\n"
  21784. " ;; My very own list of services.\n"
  21785. " (modify-services %base-services\n"
  21786. " (guix-service-type config =>\n"
  21787. " (guix-configuration\n"
  21788. " (inherit config)\n"
  21789. " ;; Fetch substitutes from example.org.\n"
  21790. " (substitute-urls\n"
  21791. " (list \"https://example.org/guix\"\n"
  21792. " \"https://ci.guix.gnu.org\"))))\n"
  21793. " (mingetty-service-type config =>\n"
  21794. " (mingetty-configuration\n"
  21795. " (inherit config)\n"
  21796. " ;; Automatically log in as \"guest\".\n"
  21797. " (auto-login \"guest\")))))\n"
  21798. "\n"
  21799. msgstr ""
  21800. #. type: lisp
  21801. #: guix-git/doc/guix.texi:14924
  21802. #, no-wrap
  21803. msgid ""
  21804. "(operating-system\n"
  21805. " ;; @dots{}\n"
  21806. " (services %my-services))\n"
  21807. msgstr ""
  21808. #. type: Plain text
  21809. #: guix-git/doc/guix.texi:14937
  21810. 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."
  21811. msgstr ""
  21812. #. type: Plain text
  21813. #: guix-git/doc/guix.texi:14944
  21814. 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:"
  21815. msgstr ""
  21816. #. type: include
  21817. #: guix-git/doc/guix.texi:14946
  21818. #, no-wrap
  21819. msgid "os-config-desktop.texi"
  21820. msgstr ""
  21821. #. type: Plain text
  21822. #: guix-git/doc/guix.texi:14951
  21823. msgid "A graphical system with a choice of lightweight window managers instead of full-blown desktop environments would look like this:"
  21824. msgstr ""
  21825. #. type: include
  21826. #: guix-git/doc/guix.texi:14953
  21827. #, no-wrap
  21828. msgid "os-config-lightweight-desktop.texi"
  21829. msgstr ""
  21830. #. type: Plain text
  21831. #: guix-git/doc/guix.texi:14959
  21832. 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."
  21833. msgstr ""
  21834. #. type: Plain text
  21835. #: guix-git/doc/guix.texi:14963
  21836. 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."
  21837. msgstr ""
  21838. #. type: Plain text
  21839. #: guix-git/doc/guix.texi:14970
  21840. 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:"
  21841. msgstr ""
  21842. #. type: lisp
  21843. #: guix-git/doc/guix.texi:14975
  21844. #, no-wrap
  21845. msgid ""
  21846. "(remove (lambda (service)\n"
  21847. " (eq? (service-kind service) avahi-service-type))\n"
  21848. " %desktop-services)\n"
  21849. msgstr ""
  21850. #. type: Plain text
  21851. #: guix-git/doc/guix.texi:14978
  21852. msgid "Alternatively, the @code{modify-services} macro can be used:"
  21853. msgstr ""
  21854. #. type: lisp
  21855. #: guix-git/doc/guix.texi:14982
  21856. #, no-wrap
  21857. msgid ""
  21858. "(modify-services %desktop-services\n"
  21859. " (delete avahi-service-type))\n"
  21860. msgstr ""
  21861. #. type: unnumberedsubsec
  21862. #: guix-git/doc/guix.texi:14985
  21863. #, no-wrap
  21864. msgid "Instantiating the System"
  21865. msgstr ""
  21866. #. type: Plain text
  21867. #: guix-git/doc/guix.texi:14992
  21868. 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})."
  21869. msgstr ""
  21870. #. type: Plain text
  21871. #: guix-git/doc/guix.texi:15000
  21872. 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."
  21873. msgstr ""
  21874. #. type: cindex
  21875. #: guix-git/doc/guix.texi:15001
  21876. #, no-wrap
  21877. msgid "roll-back, of the operating system"
  21878. msgstr ""
  21879. #. type: Plain text
  21880. #: guix-git/doc/guix.texi:15011
  21881. 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}."
  21882. msgstr ""
  21883. #. type: Plain text
  21884. #: guix-git/doc/guix.texi:15017
  21885. 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})."
  21886. msgstr ""
  21887. #. type: unnumberedsubsec
  21888. #: guix-git/doc/guix.texi:15018
  21889. #, no-wrap
  21890. msgid "The Programming Interface"
  21891. msgstr ""
  21892. #. type: Plain text
  21893. #: guix-git/doc/guix.texi:15023
  21894. msgid "At the Scheme level, the bulk of an @code{operating-system} declaration is instantiated with the following monadic procedure (@pxref{The Store Monad}):"
  21895. msgstr ""
  21896. #. type: deffn
  21897. #: guix-git/doc/guix.texi:15024
  21898. #, no-wrap
  21899. msgid "{Monadic Procedure} operating-system-derivation os"
  21900. msgstr ""
  21901. #. type: deffn
  21902. #: guix-git/doc/guix.texi:15027
  21903. msgid "Return a derivation that builds @var{os}, an @code{operating-system} object (@pxref{Derivations})."
  21904. msgstr ""
  21905. #. type: deffn
  21906. #: guix-git/doc/guix.texi:15031
  21907. 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}."
  21908. msgstr ""
  21909. #. type: Plain text
  21910. #: guix-git/doc/guix.texi:15036
  21911. 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!"
  21912. msgstr ""
  21913. #. type: section
  21914. #: guix-git/doc/guix.texi:15039
  21915. #, no-wrap
  21916. msgid "@code{operating-system} Reference"
  21917. msgstr ""
  21918. #. type: Plain text
  21919. #: guix-git/doc/guix.texi:15044
  21920. msgid "This section summarizes all the options available in @code{operating-system} declarations (@pxref{Using the Configuration System})."
  21921. msgstr ""
  21922. #. type: deftp
  21923. #: guix-git/doc/guix.texi:15045
  21924. #, no-wrap
  21925. msgid "{Data Type} operating-system"
  21926. msgstr ""
  21927. #. type: deftp
  21928. #: guix-git/doc/guix.texi:15049
  21929. 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})."
  21930. msgstr ""
  21931. #. type: item
  21932. #: guix-git/doc/guix.texi:15051
  21933. #, fuzzy, no-wrap
  21934. msgid "@code{kernel} (default: @code{linux-libre})"
  21935. msgstr "@code{gnome}(默认值:@code{gnome})"
  21936. #. type: table
  21937. #: guix-git/doc/guix.texi:15056
  21938. 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.}."
  21939. msgstr ""
  21940. #. type: code{#1}
  21941. #: guix-git/doc/guix.texi:15057 guix-git/doc/guix.texi:31679
  21942. #, no-wrap
  21943. msgid "hurd"
  21944. msgstr ""
  21945. #. type: item
  21946. #: guix-git/doc/guix.texi:15058
  21947. #, fuzzy, no-wrap
  21948. msgid "@code{hurd} (default: @code{#f})"
  21949. msgstr "@code{port}(默认值:@code{22})"
  21950. #. type: table
  21951. #: guix-git/doc/guix.texi:15063
  21952. 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."
  21953. msgstr ""
  21954. #. type: quotation
  21955. #: guix-git/doc/guix.texi:15066
  21956. msgid "This feature is experimental and only supported for disk images."
  21957. msgstr ""
  21958. #. type: item
  21959. #: guix-git/doc/guix.texi:15068
  21960. #, fuzzy, no-wrap
  21961. msgid "@code{kernel-loadable-modules} (default: '())"
  21962. msgstr "@code{features} (@code{'()})"
  21963. #. type: table
  21964. #: guix-git/doc/guix.texi:15071
  21965. msgid "A list of objects (usually packages) to collect loadable kernel modules from--e.g. @code{(list ddcci-driver-linux)}."
  21966. msgstr ""
  21967. #. type: item
  21968. #: guix-git/doc/guix.texi:15072
  21969. #, fuzzy, no-wrap
  21970. msgid "@code{kernel-arguments} (default: @code{%default-kernel-arguments})"
  21971. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  21972. #. type: table
  21973. #: guix-git/doc/guix.texi:15075
  21974. msgid "List of strings or gexps representing additional arguments to pass on the command-line of the kernel---e.g., @code{(\"console=ttyS0\")}."
  21975. msgstr ""
  21976. #. type: code{#1}
  21977. #: guix-git/doc/guix.texi:15076 guix-git/doc/guix.texi:35583
  21978. #: guix-git/doc/guix.texi:35602
  21979. #, no-wrap
  21980. msgid "bootloader"
  21981. msgstr ""
  21982. #. type: table
  21983. #: guix-git/doc/guix.texi:15078
  21984. msgid "The system bootloader configuration object. @xref{Bootloader Configuration}."
  21985. msgstr ""
  21986. #. type: code{#1}
  21987. #: guix-git/doc/guix.texi:15079 guix-git/doc/guix.texi:35776
  21988. #, no-wrap
  21989. msgid "label"
  21990. msgstr ""
  21991. #. type: table
  21992. #: guix-git/doc/guix.texi:15082
  21993. 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."
  21994. msgstr ""
  21995. #. type: item
  21996. #: guix-git/doc/guix.texi:15083 guix-git/doc/guix.texi:16802
  21997. #: guix-git/doc/guix.texi:20014 guix-git/doc/guix.texi:35706
  21998. #, no-wrap
  21999. msgid "@code{keyboard-layout} (default: @code{#f})"
  22000. msgstr ""
  22001. #. type: table
  22002. #: guix-git/doc/guix.texi:15088
  22003. 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."
  22004. msgstr ""
  22005. #. type: table
  22006. #: guix-git/doc/guix.texi:15093
  22007. 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})."
  22008. msgstr ""
  22009. #. type: quotation
  22010. #: guix-git/doc/guix.texi:15100
  22011. 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."
  22012. msgstr ""
  22013. #. type: item
  22014. #: guix-git/doc/guix.texi:15102
  22015. #, no-wrap
  22016. msgid "@code{initrd-modules} (default: @code{%base-initrd-modules})"
  22017. msgstr ""
  22018. #. type: cindex
  22019. #: guix-git/doc/guix.texi:15103 guix-git/doc/guix.texi:35378
  22020. #: guix-git/doc/guix.texi:35511
  22021. #, no-wrap
  22022. msgid "initrd"
  22023. msgstr ""
  22024. #. type: cindex
  22025. #: guix-git/doc/guix.texi:15104 guix-git/doc/guix.texi:35379
  22026. #: guix-git/doc/guix.texi:35512
  22027. #, no-wrap
  22028. msgid "initial RAM disk"
  22029. msgstr ""
  22030. #. type: table
  22031. #: guix-git/doc/guix.texi:15107
  22032. msgid "The list of Linux kernel modules that need to be available in the initial RAM disk. @xref{Initial RAM Disk}."
  22033. msgstr ""
  22034. #. type: item
  22035. #: guix-git/doc/guix.texi:15108
  22036. #, no-wrap
  22037. msgid "@code{initrd} (default: @code{base-initrd})"
  22038. msgstr ""
  22039. #. type: table
  22040. #: guix-git/doc/guix.texi:15112
  22041. 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}."
  22042. msgstr ""
  22043. #. type: item
  22044. #: guix-git/doc/guix.texi:15113
  22045. #, fuzzy, no-wrap
  22046. msgid "@code{firmware} (default: @code{%base-firmware})"
  22047. msgstr "@code{mate}(默认值:@code{mate})"
  22048. #. type: cindex
  22049. #: guix-git/doc/guix.texi:15114
  22050. #, no-wrap
  22051. msgid "firmware"
  22052. msgstr ""
  22053. #. type: table
  22054. #: guix-git/doc/guix.texi:15116
  22055. msgid "List of firmware packages loadable by the operating system kernel."
  22056. msgstr ""
  22057. #. type: table
  22058. #: guix-git/doc/guix.texi:15121
  22059. 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."
  22060. msgstr ""
  22061. #. type: code{#1}
  22062. #: guix-git/doc/guix.texi:15122 guix-git/doc/guix.texi:36657
  22063. #, no-wrap
  22064. msgid "host-name"
  22065. msgstr ""
  22066. #. type: table
  22067. #: guix-git/doc/guix.texi:15124
  22068. msgid "The host name."
  22069. msgstr ""
  22070. #. type: code{#1}
  22071. #: guix-git/doc/guix.texi:15125
  22072. #, no-wrap
  22073. msgid "hosts-file"
  22074. msgstr ""
  22075. #. type: cindex
  22076. #: guix-git/doc/guix.texi:15126
  22077. #, no-wrap
  22078. msgid "hosts file"
  22079. msgstr ""
  22080. #. type: table
  22081. #: guix-git/doc/guix.texi:15131
  22082. 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}."
  22083. msgstr ""
  22084. #. type: item
  22085. #: guix-git/doc/guix.texi:15132
  22086. #, no-wrap
  22087. msgid "@code{mapped-devices} (default: @code{'()})"
  22088. msgstr ""
  22089. #. type: table
  22090. #: guix-git/doc/guix.texi:15134
  22091. msgid "A list of mapped devices. @xref{Mapped Devices}."
  22092. msgstr ""
  22093. #. type: code{#1}
  22094. #: guix-git/doc/guix.texi:15135
  22095. #, no-wrap
  22096. msgid "file-systems"
  22097. msgstr ""
  22098. #. type: table
  22099. #: guix-git/doc/guix.texi:15137
  22100. msgid "A list of file systems. @xref{File Systems}."
  22101. msgstr ""
  22102. #. type: item
  22103. #: guix-git/doc/guix.texi:15138
  22104. #, no-wrap
  22105. msgid "@code{swap-devices} (default: @code{'()})"
  22106. msgstr ""
  22107. #. type: cindex
  22108. #: guix-git/doc/guix.texi:15139
  22109. #, no-wrap
  22110. msgid "swap devices"
  22111. msgstr ""
  22112. #. type: table
  22113. #: guix-git/doc/guix.texi:15141
  22114. msgid "A list of swap spaces. @xref{Swap Space}."
  22115. msgstr ""
  22116. #. type: item
  22117. #: guix-git/doc/guix.texi:15142
  22118. #, no-wrap
  22119. msgid "@code{users} (default: @code{%base-user-accounts})"
  22120. msgstr ""
  22121. #. type: itemx
  22122. #: guix-git/doc/guix.texi:15143
  22123. #, fuzzy, no-wrap
  22124. msgid "@code{groups} (default: @code{%base-groups})"
  22125. msgstr "@code{gnome}(默认值:@code{gnome})"
  22126. #. type: table
  22127. #: guix-git/doc/guix.texi:15145
  22128. msgid "List of user accounts and groups. @xref{User Accounts}."
  22129. msgstr ""
  22130. #. type: table
  22131. #: guix-git/doc/guix.texi:15148
  22132. msgid "If the @code{users} list lacks a user account with UID@tie{}0, a ``root'' account with UID@tie{}0 is automatically added."
  22133. msgstr ""
  22134. #. type: item
  22135. #: guix-git/doc/guix.texi:15149
  22136. #, no-wrap
  22137. msgid "@code{skeletons} (default: @code{(default-skeletons)})"
  22138. msgstr ""
  22139. #. type: table
  22140. #: guix-git/doc/guix.texi:15153
  22141. 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."
  22142. msgstr ""
  22143. #. type: table
  22144. #: guix-git/doc/guix.texi:15155
  22145. msgid "For instance, a valid value may look like this:"
  22146. msgstr ""
  22147. #. type: lisp
  22148. #: guix-git/doc/guix.texi:15161
  22149. #, no-wrap
  22150. msgid ""
  22151. "`((\".bashrc\" ,(plain-file \"bashrc\" \"echo Hello\\n\"))\n"
  22152. " (\".guile\" ,(plain-file \"guile\"\n"
  22153. " \"(use-modules (ice-9 readline))\n"
  22154. " (activate-readline)\")))\n"
  22155. msgstr ""
  22156. #. type: item
  22157. #: guix-git/doc/guix.texi:15163
  22158. #, fuzzy, no-wrap
  22159. msgid "@code{issue} (default: @code{%default-issue})"
  22160. msgstr "@code{mate}(默认值:@code{mate})"
  22161. #. type: table
  22162. #: guix-git/doc/guix.texi:15166
  22163. msgid "A string denoting the contents of the @file{/etc/issue} file, which is displayed when users log in on a text console."
  22164. msgstr ""
  22165. #. type: item
  22166. #: guix-git/doc/guix.texi:15167
  22167. #, fuzzy, no-wrap
  22168. msgid "@code{packages} (default: @code{%base-packages})"
  22169. msgstr "@code{xfce}(默认值:@code{xfce})"
  22170. #. type: table
  22171. #: guix-git/doc/guix.texi:15171
  22172. 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:"
  22173. msgstr ""
  22174. #. type: lisp
  22175. #: guix-git/doc/guix.texi:15176
  22176. #, no-wrap
  22177. msgid ""
  22178. "(cons* git ; the default \"out\" output\n"
  22179. " (list git \"send-email\") ; another output of git\n"
  22180. " %base-packages) ; the default set\n"
  22181. msgstr ""
  22182. #. type: table
  22183. #: guix-git/doc/guix.texi:15181
  22184. msgid "The default set includes core utilities and it is good practice to install non-core utilities in user profiles (@pxref{Invoking guix package})."
  22185. msgstr ""
  22186. #. type: code{#1}
  22187. #: guix-git/doc/guix.texi:15182
  22188. #, no-wrap
  22189. msgid "timezone"
  22190. msgstr ""
  22191. #. type: table
  22192. #: guix-git/doc/guix.texi:15184
  22193. msgid "A timezone identifying string---e.g., @code{\"Europe/Paris\"}."
  22194. msgstr ""
  22195. #. type: table
  22196. #: guix-git/doc/guix.texi:15188
  22197. 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."
  22198. msgstr ""
  22199. #. type: item
  22200. #: guix-git/doc/guix.texi:15189 guix-git/doc/guix.texi:22100
  22201. #, no-wrap
  22202. msgid "@code{locale} (default: @code{\"en_US.utf8\"})"
  22203. msgstr ""
  22204. #. type: table
  22205. #: guix-git/doc/guix.texi:15192
  22206. msgid "The name of the default locale (@pxref{Locale Names,,, libc, The GNU C Library Reference Manual}). @xref{Locales}, for more information."
  22207. msgstr ""
  22208. #. type: item
  22209. #: guix-git/doc/guix.texi:15193
  22210. #, fuzzy, no-wrap
  22211. msgid "@code{locale-definitions} (default: @code{%default-locale-definitions})"
  22212. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  22213. #. type: table
  22214. #: guix-git/doc/guix.texi:15196
  22215. msgid "The list of locale definitions to be compiled and that may be used at run time. @xref{Locales}."
  22216. msgstr ""
  22217. #. type: item
  22218. #: guix-git/doc/guix.texi:15197
  22219. #, no-wrap
  22220. msgid "@code{locale-libcs} (default: @code{(list @var{glibc})})"
  22221. msgstr ""
  22222. #. type: table
  22223. #: guix-git/doc/guix.texi:15201
  22224. 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."
  22225. msgstr ""
  22226. #. type: item
  22227. #: guix-git/doc/guix.texi:15202
  22228. #, fuzzy, no-wrap
  22229. msgid "@code{name-service-switch} (default: @code{%default-nss})"
  22230. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  22231. #. type: table
  22232. #: guix-git/doc/guix.texi:15206
  22233. msgid "Configuration of the libc name service switch (NSS)---a @code{<name-service-switch>} object. @xref{Name Service Switch}, for details."
  22234. msgstr ""
  22235. #. type: item
  22236. #: guix-git/doc/guix.texi:15207
  22237. #, fuzzy, no-wrap
  22238. msgid "@code{services} (default: @code{%base-services})"
  22239. msgstr "@code{xfce}(默认值:@code{xfce})"
  22240. #. type: table
  22241. #: guix-git/doc/guix.texi:15209
  22242. msgid "A list of service objects denoting system services. @xref{Services}."
  22243. msgstr ""
  22244. #. type: cindex
  22245. #: guix-git/doc/guix.texi:15210
  22246. #, no-wrap
  22247. msgid "essential services"
  22248. msgstr ""
  22249. #. type: item
  22250. #: guix-git/doc/guix.texi:15211
  22251. #, no-wrap
  22252. msgid "@code{essential-services} (default: ...)"
  22253. msgstr ""
  22254. #. type: table
  22255. #: guix-git/doc/guix.texi:15216
  22256. 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."
  22257. msgstr ""
  22258. #. type: item
  22259. #: guix-git/doc/guix.texi:15217
  22260. #, no-wrap
  22261. msgid "@code{pam-services} (default: @code{(base-pam-services)})"
  22262. msgstr ""
  22263. #. type: cindex
  22264. #: guix-git/doc/guix.texi:15218
  22265. #, no-wrap
  22266. msgid "PAM"
  22267. msgstr ""
  22268. #. type: cindex
  22269. #: guix-git/doc/guix.texi:15219
  22270. #, no-wrap
  22271. msgid "pluggable authentication modules"
  22272. msgstr ""
  22273. #. type: table
  22274. #: guix-git/doc/guix.texi:15222
  22275. msgid "Linux @dfn{pluggable authentication module} (PAM) services."
  22276. msgstr ""
  22277. #. type: item
  22278. #: guix-git/doc/guix.texi:15223
  22279. #, fuzzy, no-wrap
  22280. msgid "@code{setuid-programs} (default: @code{%setuid-programs})"
  22281. msgstr "@code{features} (@code{'()})"
  22282. #. type: table
  22283. #: guix-git/doc/guix.texi:15226
  22284. msgid "List of @code{<setuid-program>}. @xref{Setuid Programs}, for more information."
  22285. msgstr ""
  22286. #. type: item
  22287. #: guix-git/doc/guix.texi:15227
  22288. #, fuzzy, no-wrap
  22289. msgid "@code{sudoers-file} (default: @code{%sudoers-specification})"
  22290. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  22291. #. type: cindex
  22292. #: guix-git/doc/guix.texi:15228
  22293. #, no-wrap
  22294. msgid "sudoers file"
  22295. msgstr ""
  22296. #. type: table
  22297. #: guix-git/doc/guix.texi:15231
  22298. msgid "The contents of the @file{/etc/sudoers} file as a file-like object (@pxref{G-Expressions, @code{local-file} and @code{plain-file}})."
  22299. msgstr ""
  22300. #. type: table
  22301. #: guix-git/doc/guix.texi:15236
  22302. 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}."
  22303. msgstr ""
  22304. #. type: deffn
  22305. #: guix-git/doc/guix.texi:15239
  22306. #, no-wrap
  22307. msgid "{Scheme Syntax} this-operating-system"
  22308. msgstr ""
  22309. #. type: deffn
  22310. #: guix-git/doc/guix.texi:15242
  22311. msgid "When used in the @emph{lexical scope} of an operating system field definition, this identifier resolves to the operating system being defined."
  22312. msgstr ""
  22313. #. type: deffn
  22314. #: guix-git/doc/guix.texi:15245
  22315. msgid "The example below shows how to refer to the operating system being defined in the definition of the @code{label} field:"
  22316. msgstr ""
  22317. #. type: lisp
  22318. #: guix-git/doc/guix.texi:15248 guix-git/doc/guix.texi:19222
  22319. #, no-wrap
  22320. msgid ""
  22321. "(use-modules (gnu) (guix))\n"
  22322. "\n"
  22323. msgstr ""
  22324. #. type: lisp
  22325. #: guix-git/doc/guix.texi:15253
  22326. #, no-wrap
  22327. msgid ""
  22328. "(operating-system\n"
  22329. " ;; ...\n"
  22330. " (label (package-full-name\n"
  22331. " (operating-system-kernel this-operating-system))))\n"
  22332. msgstr ""
  22333. #. type: deffn
  22334. #: guix-git/doc/guix.texi:15257
  22335. msgid "It is an error to refer to @code{this-operating-system} outside an operating system definition."
  22336. msgstr ""
  22337. #. type: Plain text
  22338. #: guix-git/doc/guix.texi:15268
  22339. 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:"
  22340. msgstr ""
  22341. #. type: lisp
  22342. #: guix-git/doc/guix.texi:15274
  22343. #, no-wrap
  22344. msgid ""
  22345. "(file-system\n"
  22346. " (mount-point \"/home\")\n"
  22347. " (device \"/dev/sda3\")\n"
  22348. " (type \"ext4\"))\n"
  22349. msgstr ""
  22350. #. type: Plain text
  22351. #: guix-git/doc/guix.texi:15278
  22352. msgid "As usual, some of the fields are mandatory---those shown in the example above---while others can be omitted. These are described below."
  22353. msgstr ""
  22354. #. type: deftp
  22355. #: guix-git/doc/guix.texi:15279
  22356. #, no-wrap
  22357. msgid "{Data Type} file-system"
  22358. msgstr ""
  22359. #. type: deftp
  22360. #: guix-git/doc/guix.texi:15282
  22361. msgid "Objects of this type represent file systems to be mounted. They contain the following members:"
  22362. msgstr ""
  22363. #. type: item
  22364. #: guix-git/doc/guix.texi:15284 guix-git/doc/guix.texi:15664
  22365. #: guix-git/doc/guix.texi:17818
  22366. #, no-wrap
  22367. msgid "type"
  22368. msgstr ""
  22369. #. type: table
  22370. #: guix-git/doc/guix.texi:15287
  22371. msgid "This is a string specifying the type of the file system---e.g., @code{\"ext4\"}."
  22372. msgstr ""
  22373. #. type: code{#1}
  22374. #: guix-git/doc/guix.texi:15288
  22375. #, no-wrap
  22376. msgid "mount-point"
  22377. msgstr ""
  22378. #. type: table
  22379. #: guix-git/doc/guix.texi:15290
  22380. msgid "This designates the place where the file system is to be mounted."
  22381. msgstr ""
  22382. #. type: item
  22383. #: guix-git/doc/guix.texi:15291 guix-git/doc/guix.texi:17768
  22384. #, no-wrap
  22385. msgid "device"
  22386. msgstr ""
  22387. #. type: table
  22388. #: guix-git/doc/guix.texi:15301
  22389. 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.}."
  22390. msgstr ""
  22391. #. type: findex
  22392. #: guix-git/doc/guix.texi:15302
  22393. #, no-wrap
  22394. msgid "file-system-label"
  22395. msgstr ""
  22396. #. type: table
  22397. #: guix-git/doc/guix.texi:15307
  22398. 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:"
  22399. msgstr ""
  22400. #. type: lisp
  22401. #: guix-git/doc/guix.texi:15313
  22402. #, no-wrap
  22403. msgid ""
  22404. "(file-system\n"
  22405. " (mount-point \"/home\")\n"
  22406. " (type \"ext4\")\n"
  22407. " (device (file-system-label \"my-home\")))\n"
  22408. msgstr ""
  22409. #. type: code{#1}
  22410. #: guix-git/doc/guix.texi:15315 guix-git/doc/guix.texi:34076
  22411. #: guix-git/doc/guix.texi:34092
  22412. #, no-wrap
  22413. msgid "uuid"
  22414. msgstr ""
  22415. #. type: table
  22416. #: guix-git/doc/guix.texi:15323
  22417. 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:"
  22418. msgstr ""
  22419. #. type: lisp
  22420. #: guix-git/doc/guix.texi:15329
  22421. #, no-wrap
  22422. msgid ""
  22423. "(file-system\n"
  22424. " (mount-point \"/home\")\n"
  22425. " (type \"ext4\")\n"
  22426. " (device (uuid \"4dab5feb-d176-45de-b287-9b0a6e4c01cb\")))\n"
  22427. msgstr ""
  22428. #. type: table
  22429. #: guix-git/doc/guix.texi:15337
  22430. 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."
  22431. msgstr ""
  22432. #. type: item
  22433. #: guix-git/doc/guix.texi:15338
  22434. #, no-wrap
  22435. msgid "@code{flags} (default: @code{'()})"
  22436. msgstr ""
  22437. #. type: table
  22438. #: guix-git/doc/guix.texi:15348
  22439. 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."
  22440. msgstr ""
  22441. #. type: item
  22442. #: guix-git/doc/guix.texi:15349
  22443. #, no-wrap
  22444. msgid "@code{options} (default: @code{#f})"
  22445. msgstr ""
  22446. #. type: table
  22447. #: guix-git/doc/guix.texi:15358
  22448. 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."
  22449. msgstr ""
  22450. #. type: item
  22451. #: guix-git/doc/guix.texi:15359
  22452. #, no-wrap
  22453. msgid "@code{mount?} (default: @code{#t})"
  22454. msgstr ""
  22455. #. type: table
  22456. #: guix-git/doc/guix.texi:15364
  22457. 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."
  22458. msgstr ""
  22459. #. type: item
  22460. #: guix-git/doc/guix.texi:15365
  22461. #, no-wrap
  22462. msgid "@code{needed-for-boot?} (default: @code{#f})"
  22463. msgstr ""
  22464. #. type: table
  22465. #: guix-git/doc/guix.texi:15370
  22466. 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."
  22467. msgstr ""
  22468. #. type: item
  22469. #: guix-git/doc/guix.texi:15371
  22470. #, no-wrap
  22471. msgid "@code{check?} (default: @code{#t})"
  22472. msgstr ""
  22473. #. type: table
  22474. #: guix-git/doc/guix.texi:15375
  22475. 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."
  22476. msgstr ""
  22477. #. type: item
  22478. #: guix-git/doc/guix.texi:15376
  22479. #, fuzzy, no-wrap
  22480. msgid "@code{skip-check-if-clean?} (default: @code{#t})"
  22481. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  22482. #. type: table
  22483. #: guix-git/doc/guix.texi:15381
  22484. 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."
  22485. msgstr ""
  22486. #. type: table
  22487. #: guix-git/doc/guix.texi:15385
  22488. 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!"
  22489. msgstr ""
  22490. #. type: table
  22491. #: guix-git/doc/guix.texi:15389
  22492. 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."
  22493. msgstr ""
  22494. #. type: item
  22495. #: guix-git/doc/guix.texi:15390
  22496. #, fuzzy, no-wrap
  22497. msgid "@code{repair} (default: @code{'preen})"
  22498. msgstr "@code{features} (@code{'()})"
  22499. #. type: table
  22500. #: guix-git/doc/guix.texi:15393
  22501. msgid "When @code{check?} finds errors, it can (try to) repair them and continue booting. This option controls when and how to do so."
  22502. msgstr ""
  22503. #. type: table
  22504. #: guix-git/doc/guix.texi:15397
  22505. 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."
  22506. msgstr ""
  22507. #. type: table
  22508. #: guix-git/doc/guix.texi:15400
  22509. 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."
  22510. msgstr ""
  22511. #. type: table
  22512. #: guix-git/doc/guix.texi:15404
  22513. 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''."
  22514. msgstr ""
  22515. #. type: item
  22516. #: guix-git/doc/guix.texi:15405
  22517. #, no-wrap
  22518. msgid "@code{create-mount-point?} (default: @code{#f})"
  22519. msgstr ""
  22520. #. type: table
  22521. #: guix-git/doc/guix.texi:15407
  22522. msgid "When true, the mount point is created if it does not exist yet."
  22523. msgstr ""
  22524. #. type: item
  22525. #: guix-git/doc/guix.texi:15408
  22526. #, fuzzy, no-wrap
  22527. msgid "@code{mount-may-fail?} (default: @code{#f})"
  22528. msgstr "@code{max-journal-usage}(默认值:@code{#f})"
  22529. #. type: table
  22530. #: guix-git/doc/guix.texi:15413
  22531. 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."
  22532. msgstr ""
  22533. #. type: item
  22534. #: guix-git/doc/guix.texi:15414 guix-git/doc/guix.texi:15810
  22535. #, no-wrap
  22536. msgid "@code{dependencies} (default: @code{'()})"
  22537. msgstr ""
  22538. #. type: table
  22539. #: guix-git/doc/guix.texi:15418
  22540. 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."
  22541. msgstr ""
  22542. #. type: table
  22543. #: guix-git/doc/guix.texi:15422
  22544. 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}."
  22545. msgstr ""
  22546. #. type: table
  22547. #: guix-git/doc/guix.texi:15425
  22548. msgid "Another example is a file system that depends on a mapped device, for example for an encrypted partition (@pxref{Mapped Devices})."
  22549. msgstr ""
  22550. #. type: deffn
  22551. #: guix-git/doc/guix.texi:15428
  22552. #, no-wrap
  22553. msgid "{Scheme Procedure} file-system-label @var{str}"
  22554. msgstr ""
  22555. #. type: deffn
  22556. #: guix-git/doc/guix.texi:15431
  22557. msgid "This procedure returns an opaque file system label from @var{str}, a string:"
  22558. msgstr ""
  22559. #. type: lisp
  22560. #: guix-git/doc/guix.texi:15435
  22561. #, no-wrap
  22562. msgid ""
  22563. "(file-system-label \"home\")\n"
  22564. "@result{} #<file-system-label \"home\">\n"
  22565. msgstr ""
  22566. #. type: deffn
  22567. #: guix-git/doc/guix.texi:15439
  22568. msgid "File system labels are used to refer to file systems by label rather than by device name. See above for examples."
  22569. msgstr ""
  22570. #. type: Plain text
  22571. #: guix-git/doc/guix.texi:15443
  22572. msgid "The @code{(gnu system file-systems)} exports the following useful variables."
  22573. msgstr ""
  22574. #. type: defvr
  22575. #: guix-git/doc/guix.texi:15444
  22576. #, no-wrap
  22577. msgid "{Scheme Variable} %base-file-systems"
  22578. msgstr ""
  22579. #. type: defvr
  22580. #: guix-git/doc/guix.texi:15449
  22581. 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."
  22582. msgstr ""
  22583. #. type: defvr
  22584. #: guix-git/doc/guix.texi:15451
  22585. #, no-wrap
  22586. msgid "{Scheme Variable} %pseudo-terminal-file-system"
  22587. msgstr ""
  22588. #. type: defvr
  22589. #: guix-git/doc/guix.texi:15457
  22590. 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}."
  22591. msgstr ""
  22592. #. type: defvr
  22593. #: guix-git/doc/guix.texi:15459
  22594. #, no-wrap
  22595. msgid "{Scheme Variable} %shared-memory-file-system"
  22596. msgstr ""
  22597. #. type: defvr
  22598. #: guix-git/doc/guix.texi:15463
  22599. 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})."
  22600. msgstr ""
  22601. #. type: defvr
  22602. #: guix-git/doc/guix.texi:15465
  22603. #, no-wrap
  22604. msgid "{Scheme Variable} %immutable-store"
  22605. msgstr ""
  22606. #. type: defvr
  22607. #: guix-git/doc/guix.texi:15470
  22608. 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."
  22609. msgstr ""
  22610. #. type: defvr
  22611. #: guix-git/doc/guix.texi:15473
  22612. msgid "The daemon itself is still able to write to the store: it remounts it read-write in its own ``name space.''"
  22613. msgstr ""
  22614. #. type: defvr
  22615. #: guix-git/doc/guix.texi:15475
  22616. #, no-wrap
  22617. msgid "{Scheme Variable} %binary-format-file-system"
  22618. msgstr ""
  22619. #. type: defvr
  22620. #: guix-git/doc/guix.texi:15479
  22621. 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."
  22622. msgstr ""
  22623. #. type: defvr
  22624. #: guix-git/doc/guix.texi:15481
  22625. #, no-wrap
  22626. msgid "{Scheme Variable} %fuse-control-file-system"
  22627. msgstr ""
  22628. #. type: defvr
  22629. #: guix-git/doc/guix.texi:15485
  22630. 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."
  22631. msgstr ""
  22632. #. type: Plain text
  22633. #: guix-git/doc/guix.texi:15489
  22634. msgid "The @code{(gnu system uuid)} module provides tools to deal with file system ``unique identifiers'' (UUIDs)."
  22635. msgstr ""
  22636. #. type: deffn
  22637. #: guix-git/doc/guix.texi:15490
  22638. #, no-wrap
  22639. msgid "{Scheme Procedure} uuid @var{str} [@var{type}]"
  22640. msgstr ""
  22641. #. type: deffn
  22642. #: guix-git/doc/guix.texi:15493
  22643. msgid "Return an opaque UUID (unique identifier) object of the given @var{type} (a symbol) by parsing @var{str} (a string):"
  22644. msgstr ""
  22645. #. type: lisp
  22646. #: guix-git/doc/guix.texi:15497
  22647. #, no-wrap
  22648. msgid ""
  22649. "(uuid \"4dab5feb-d176-45de-b287-9b0a6e4c01cb\")\n"
  22650. "@result{} #<<uuid> type: dce bv: @dots{}>\n"
  22651. "\n"
  22652. msgstr ""
  22653. #. type: lisp
  22654. #: guix-git/doc/guix.texi:15500
  22655. #, no-wrap
  22656. msgid ""
  22657. "(uuid \"1234-ABCD\" 'fat)\n"
  22658. "@result{} #<<uuid> type: fat bv: @dots{}>\n"
  22659. msgstr ""
  22660. #. type: deffn
  22661. #: guix-git/doc/guix.texi:15504
  22662. msgid "@var{type} may be one of @code{dce}, @code{iso9660}, @code{fat}, @code{ntfs}, or one of the commonly found synonyms for these."
  22663. msgstr ""
  22664. #. type: deffn
  22665. #: guix-git/doc/guix.texi:15507
  22666. msgid "UUIDs are another way to unambiguously refer to file systems in operating system configuration. See the examples above."
  22667. msgstr ""
  22668. #. type: subsection
  22669. #: guix-git/doc/guix.texi:15510 guix-git/doc/guix.texi:15511
  22670. #, fuzzy, no-wrap
  22671. msgid "Btrfs file system"
  22672. msgstr "网络文件系统"
  22673. #. type: Plain text
  22674. #: guix-git/doc/guix.texi:15517
  22675. 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."
  22676. msgstr ""
  22677. #. type: Plain text
  22678. #: guix-git/doc/guix.texi:15520
  22679. msgid "In its simplest usage, a Btrfs file system can be described, for example, by:"
  22680. msgstr ""
  22681. #. type: lisp
  22682. #: guix-git/doc/guix.texi:15526
  22683. #, no-wrap
  22684. msgid ""
  22685. "(file-system\n"
  22686. " (mount-point \"/home\")\n"
  22687. " (type \"btrfs\")\n"
  22688. " (device (file-system-label \"my-home\")))\n"
  22689. msgstr ""
  22690. #. type: Plain text
  22691. #: guix-git/doc/guix.texi:15532
  22692. 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}):"
  22693. msgstr ""
  22694. #. type: lisp
  22695. #: guix-git/doc/guix.texi:15540
  22696. #, no-wrap
  22697. msgid ""
  22698. "(file-system\n"
  22699. " (device (file-system-label \"my-btrfs-pool\"))\n"
  22700. " (mount-point \"/\")\n"
  22701. " (type \"btrfs\")\n"
  22702. " (options \"subvol=rootfs\")\n"
  22703. " (dependencies mapped-devices))\n"
  22704. msgstr ""
  22705. #. type: Plain text
  22706. #: guix-git/doc/guix.texi:15551
  22707. 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."
  22708. msgstr ""
  22709. #. type: Plain text
  22710. #: guix-git/doc/guix.texi:15559
  22711. 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.:"
  22712. msgstr ""
  22713. #. type: example
  22714. #: guix-git/doc/guix.texi:15566
  22715. #, no-wrap
  22716. msgid ""
  22717. "/ (top level)\n"
  22718. "├── rootfs (subvolume directory)\n"
  22719. " ├── gnu (normal directory)\n"
  22720. " ├── store (normal directory)\n"
  22721. "[...]\n"
  22722. msgstr ""
  22723. #. type: Plain text
  22724. #: guix-git/doc/guix.texi:15571
  22725. 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."
  22726. msgstr ""
  22727. #. type: Plain text
  22728. #: guix-git/doc/guix.texi:15574
  22729. msgid "The next example shows a nested hierarchy of subvolumes and directories:"
  22730. msgstr ""
  22731. #. type: example
  22732. #: guix-git/doc/guix.texi:15581
  22733. #, no-wrap
  22734. msgid ""
  22735. "/ (top level)\n"
  22736. "├── rootfs (subvolume)\n"
  22737. " ├── gnu (normal directory)\n"
  22738. " ├── store (subvolume)\n"
  22739. "[...]\n"
  22740. msgstr ""
  22741. #. type: Plain text
  22742. #: guix-git/doc/guix.texi:15588
  22743. 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}."
  22744. msgstr ""
  22745. #. type: Plain text
  22746. #: guix-git/doc/guix.texi:15590
  22747. msgid "Finally, a more contrived example of nested subvolumes:"
  22748. msgstr ""
  22749. #. type: example
  22750. #: guix-git/doc/guix.texi:15597
  22751. #, no-wrap
  22752. msgid ""
  22753. "/ (top level)\n"
  22754. "├── root-snapshots (subvolume)\n"
  22755. " ├── root-current (subvolume)\n"
  22756. " ├── guix-store (subvolume)\n"
  22757. "[...]\n"
  22758. msgstr ""
  22759. #. type: Plain text
  22760. #: guix-git/doc/guix.texi:15604
  22761. 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:"
  22762. msgstr ""
  22763. #. type: lisp
  22764. #: guix-git/doc/guix.texi:15612
  22765. #, no-wrap
  22766. msgid ""
  22767. "(file-system\n"
  22768. " (device (file-system-label \"btrfs-pool-1\"))\n"
  22769. " (mount-point \"/gnu/store\")\n"
  22770. " (type \"btrfs\")\n"
  22771. " (options \"subvol=root-snapshots/root-current/guix-store,\\\n"
  22772. "compress-force=zstd,space_cache=v2\"))\n"
  22773. msgstr ""
  22774. #. type: cindex
  22775. #: guix-git/doc/guix.texi:15617
  22776. #, no-wrap
  22777. msgid "device mapping"
  22778. msgstr ""
  22779. #. type: cindex
  22780. #: guix-git/doc/guix.texi:15618
  22781. #, no-wrap
  22782. msgid "mapped devices"
  22783. msgstr ""
  22784. #. type: Plain text
  22785. #: guix-git/doc/guix.texi:15635
  22786. 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."
  22787. msgstr ""
  22788. #. type: Plain text
  22789. #: guix-git/doc/guix.texi:15638
  22790. msgid "Mapped devices are declared using the @code{mapped-device} form, defined as follows; for examples, see below."
  22791. msgstr ""
  22792. #. type: deftp
  22793. #: guix-git/doc/guix.texi:15639
  22794. #, no-wrap
  22795. msgid "{Data Type} mapped-device"
  22796. msgstr ""
  22797. #. type: deftp
  22798. #: guix-git/doc/guix.texi:15642
  22799. msgid "Objects of this type represent device mappings that will be made when the system boots up."
  22800. msgstr ""
  22801. #. type: table
  22802. #: guix-git/doc/guix.texi:15649
  22803. 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."
  22804. msgstr ""
  22805. #. type: code{#1}
  22806. #: guix-git/doc/guix.texi:15650 guix-git/doc/guix.texi:15805
  22807. #, no-wrap
  22808. msgid "target"
  22809. msgstr ""
  22810. #. type: table
  22811. #: guix-git/doc/guix.texi:15659
  22812. 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\"}."
  22813. msgstr ""
  22814. #. type: code{#1}
  22815. #: guix-git/doc/guix.texi:15660 guix-git/doc/guix.texi:35678
  22816. #, no-wrap
  22817. msgid "targets"
  22818. msgstr ""
  22819. #. type: table
  22820. #: guix-git/doc/guix.texi:15663
  22821. msgid "This list of strings specifies names of the resulting mapped devices in case there are several. The format is identical to @var{target}."
  22822. msgstr ""
  22823. #. type: table
  22824. #: guix-git/doc/guix.texi:15667
  22825. msgid "This must be a @code{mapped-device-kind} object, which specifies how @var{source} is mapped to @var{target}."
  22826. msgstr ""
  22827. #. type: defvr
  22828. #: guix-git/doc/guix.texi:15670
  22829. #, no-wrap
  22830. msgid "{Scheme Variable} luks-device-mapping"
  22831. msgstr ""
  22832. #. type: defvr
  22833. #: guix-git/doc/guix.texi:15674
  22834. 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."
  22835. msgstr ""
  22836. #. type: defvr
  22837. #: guix-git/doc/guix.texi:15676
  22838. #, no-wrap
  22839. msgid "{Scheme Variable} raid-device-mapping"
  22840. msgstr ""
  22841. #. type: defvr
  22842. #: guix-git/doc/guix.texi:15681
  22843. 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."
  22844. msgstr ""
  22845. #. type: cindex
  22846. #: guix-git/doc/guix.texi:15683
  22847. #, no-wrap
  22848. msgid "LVM, logical volume manager"
  22849. msgstr ""
  22850. #. type: defvr
  22851. #: guix-git/doc/guix.texi:15684
  22852. #, no-wrap
  22853. msgid "{Scheme Variable} lvm-device-mapping"
  22854. msgstr ""
  22855. #. type: defvr
  22856. #: guix-git/doc/guix.texi:15689
  22857. 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."
  22858. msgstr ""
  22859. #. type: cindex
  22860. #: guix-git/doc/guix.texi:15691
  22861. #, no-wrap
  22862. msgid "disk encryption"
  22863. msgstr ""
  22864. #. type: cindex
  22865. #: guix-git/doc/guix.texi:15692
  22866. #, no-wrap
  22867. msgid "LUKS"
  22868. msgstr ""
  22869. #. type: Plain text
  22870. #: guix-git/doc/guix.texi:15700
  22871. 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})."
  22872. msgstr ""
  22873. #. type: lisp
  22874. #: guix-git/doc/guix.texi:15706
  22875. #, no-wrap
  22876. msgid ""
  22877. "(mapped-device\n"
  22878. " (source \"/dev/sda3\")\n"
  22879. " (target \"home\")\n"
  22880. " (type luks-device-mapping))\n"
  22881. msgstr ""
  22882. #. type: Plain text
  22883. #: guix-git/doc/guix.texi:15711
  22884. 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:"
  22885. msgstr ""
  22886. #. type: example
  22887. #: guix-git/doc/guix.texi:15714
  22888. #, no-wrap
  22889. msgid "cryptsetup luksUUID /dev/sda3\n"
  22890. msgstr ""
  22891. #. type: Plain text
  22892. #: guix-git/doc/guix.texi:15717
  22893. msgid "and use it as follows:"
  22894. msgstr ""
  22895. #. type: lisp
  22896. #: guix-git/doc/guix.texi:15723
  22897. #, no-wrap
  22898. msgid ""
  22899. "(mapped-device\n"
  22900. " (source (uuid \"cb67fc72-0d54-4c88-9d4b-b225f30b0f44\"))\n"
  22901. " (target \"home\")\n"
  22902. " (type luks-device-mapping))\n"
  22903. msgstr ""
  22904. #. type: cindex
  22905. #: guix-git/doc/guix.texi:15725
  22906. #, no-wrap
  22907. msgid "swap encryption"
  22908. msgstr ""
  22909. #. type: Plain text
  22910. #: guix-git/doc/guix.texi:15732
  22911. 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."
  22912. msgstr ""
  22913. #. type: Plain text
  22914. #: guix-git/doc/guix.texi:15735
  22915. msgid "A RAID device formed of the partitions @file{/dev/sda1} and @file{/dev/sdb1} may be declared as follows:"
  22916. msgstr ""
  22917. #. type: lisp
  22918. #: guix-git/doc/guix.texi:15741
  22919. #, no-wrap
  22920. msgid ""
  22921. "(mapped-device\n"
  22922. " (source (list \"/dev/sda1\" \"/dev/sdb1\"))\n"
  22923. " (target \"/dev/md0\")\n"
  22924. " (type raid-device-mapping))\n"
  22925. msgstr ""
  22926. #. type: Plain text
  22927. #: guix-git/doc/guix.texi:15748
  22928. 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."
  22929. msgstr ""
  22930. #. type: Plain text
  22931. #: guix-git/doc/guix.texi:15751
  22932. msgid "LVM logical volumes ``alpha'' and ``beta'' from volume group ``vg0'' can be declared as follows:"
  22933. msgstr ""
  22934. #. type: lisp
  22935. #: guix-git/doc/guix.texi:15757
  22936. #, no-wrap
  22937. msgid ""
  22938. "(mapped-device\n"
  22939. " (source \"vg0\")\n"
  22940. " (targets (list \"vg0-alpha\" \"vg0-beta\"))\n"
  22941. " (type lvm-device-mapping))\n"
  22942. msgstr ""
  22943. #. type: Plain text
  22944. #: guix-git/doc/guix.texi:15762
  22945. 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})."
  22946. msgstr ""
  22947. #. type: cindex
  22948. #: guix-git/doc/guix.texi:15765
  22949. #, no-wrap
  22950. msgid "swap space"
  22951. msgstr ""
  22952. #. type: Plain text
  22953. #: guix-git/doc/guix.texi:15775
  22954. 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."
  22955. msgstr ""
  22956. #. type: Plain text
  22957. #: guix-git/doc/guix.texi:15781
  22958. 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."
  22959. msgstr ""
  22960. #. type: Plain text
  22961. #: guix-git/doc/guix.texi:15785
  22962. 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}."
  22963. msgstr ""
  22964. #. type: Plain text
  22965. #: guix-git/doc/guix.texi:15794
  22966. 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."
  22967. msgstr ""
  22968. #. type: Plain text
  22969. #: guix-git/doc/guix.texi:15799
  22970. 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})."
  22971. msgstr ""
  22972. #. type: deftp
  22973. #: guix-git/doc/guix.texi:15800
  22974. #, fuzzy, no-wrap
  22975. msgid "{Data Type} swap-space"
  22976. msgstr "{数据类型} build-machine"
  22977. #. type: deftp
  22978. #: guix-git/doc/guix.texi:15803
  22979. msgid "Objects of this type represent swap spaces. They contain the following members:"
  22980. msgstr ""
  22981. #. type: table
  22982. #: guix-git/doc/guix.texi:15809
  22983. 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})."
  22984. msgstr ""
  22985. #. type: table
  22986. #: guix-git/doc/guix.texi:15816
  22987. 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."
  22988. msgstr ""
  22989. #. type: item
  22990. #: guix-git/doc/guix.texi:15817
  22991. #, fuzzy, no-wrap
  22992. msgid "@code{priority} (default: @code{#f})"
  22993. msgstr "@code{port}(默认值:@code{22})"
  22994. #. type: table
  22995. #: guix-git/doc/guix.texi:15824
  22996. 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)."
  22997. msgstr ""
  22998. #. type: item
  22999. #: guix-git/doc/guix.texi:15825
  23000. #, fuzzy, no-wrap
  23001. msgid "@code{discard?} (default: @code{#f})"
  23002. msgstr "@code{speed}(默认值:@code{1.0})"
  23003. #. type: table
  23004. #: guix-git/doc/guix.texi:15829
  23005. 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."
  23006. msgstr ""
  23007. #. type: Plain text
  23008. #: guix-git/doc/guix.texi:15834
  23009. msgid "Here are some examples:"
  23010. msgstr ""
  23011. #. type: lisp
  23012. #: guix-git/doc/guix.texi:15837
  23013. #, no-wrap
  23014. msgid "(swap-space (target (uuid \"4dab5feb-d176-45de-b287-9b0a6e4c01cb\")))\n"
  23015. msgstr ""
  23016. #. type: Plain text
  23017. #: guix-git/doc/guix.texi:15842
  23018. 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."
  23019. msgstr ""
  23020. #. type: lisp
  23021. #: guix-git/doc/guix.texi:15847
  23022. #, no-wrap
  23023. msgid ""
  23024. "(swap-space\n"
  23025. " (target (file-system-label \"swap\"))\n"
  23026. " (dependencies mapped-devices))\n"
  23027. msgstr ""
  23028. #. type: Plain text
  23029. #: guix-git/doc/guix.texi:15853
  23030. msgid "Use the partition with label @code{swap}, which can be found after all the @var{mapped-devices} mapped devices have been opened. Again, the @command{swaplabel} command allows you to view and change the label of a Linux swap partition."
  23031. msgstr ""
  23032. #. type: Plain text
  23033. #: guix-git/doc/guix.texi:15856
  23034. msgid "Here's a more involved example with the corresponding @code{file-systems} part of an @code{operating-system} declaration."
  23035. msgstr ""
  23036. #. type: lisp
  23037. #: guix-git/doc/guix.texi:15867
  23038. #, no-wrap
  23039. msgid ""
  23040. "(file-systems\n"
  23041. " (list (file-system\n"
  23042. " (device (file-system-label \"root\"))\n"
  23043. " (mount-point \"/\")\n"
  23044. " (type \"ext4\"))\n"
  23045. " (file-system\n"
  23046. " (device (file-system-label \"btrfs\"))\n"
  23047. " (mount-point \"/btrfs\")\n"
  23048. " (type \"btrfs\"))))\n"
  23049. "\n"
  23050. msgstr ""
  23051. #. type: lisp
  23052. #: guix-git/doc/guix.texi:15874
  23053. #, no-wrap
  23054. msgid ""
  23055. "(swap-devices\n"
  23056. " (list\n"
  23057. " (swap-space\n"
  23058. " (target \"/btrfs/swapfile\")\n"
  23059. " (dependencies (filter (file-system-mount-point-predicate \"/btrfs\")\n"
  23060. " file-systems)))))\n"
  23061. msgstr ""
  23062. #. type: Plain text
  23063. #: guix-git/doc/guix.texi:15879
  23064. msgid "Use the file @file{/btrfs/swapfile} as swap space, which depends on the file system mounted at @file{/btrfs}. Note how we use Guile's filter to select the file system in an elegant fashion!"
  23065. msgstr ""
  23066. #. type: cindex
  23067. #: guix-git/doc/guix.texi:15883
  23068. #, no-wrap
  23069. msgid "users"
  23070. msgstr ""
  23071. #. type: cindex
  23072. #: guix-git/doc/guix.texi:15884
  23073. #, no-wrap
  23074. msgid "accounts"
  23075. msgstr ""
  23076. #. type: cindex
  23077. #: guix-git/doc/guix.texi:15885
  23078. #, no-wrap
  23079. msgid "user accounts"
  23080. msgstr ""
  23081. #. type: Plain text
  23082. #: guix-git/doc/guix.texi:15889
  23083. 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:"
  23084. msgstr ""
  23085. #. type: lisp
  23086. #: guix-git/doc/guix.texi:15899
  23087. #, no-wrap
  23088. msgid ""
  23089. "(user-account\n"
  23090. " (name \"alice\")\n"
  23091. " (group \"users\")\n"
  23092. " (supplementary-groups '(\"wheel\" ;allow use of sudo, etc.\n"
  23093. " \"audio\" ;sound card\n"
  23094. " \"video\" ;video devices such as webcams\n"
  23095. " \"cdrom\")) ;the good ol' CD-ROM\n"
  23096. " (comment \"Bob's sister\"))\n"
  23097. msgstr ""
  23098. #. type: Plain text
  23099. #: guix-git/doc/guix.texi:15903
  23100. msgid "Here's a user account that uses a different shell and a custom home directory (the default would be @file{\"/home/bob\"}):"
  23101. msgstr ""
  23102. #. type: lisp
  23103. #: guix-git/doc/guix.texi:15911
  23104. #, no-wrap
  23105. msgid ""
  23106. "(user-account\n"
  23107. " (name \"bob\")\n"
  23108. " (group \"users\")\n"
  23109. " (comment \"Alice's bro\")\n"
  23110. " (shell (file-append zsh \"/bin/zsh\"))\n"
  23111. " (home-directory \"/home/robert\"))\n"
  23112. msgstr ""
  23113. #. type: Plain text
  23114. #: guix-git/doc/guix.texi:15920
  23115. 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."
  23116. msgstr ""
  23117. #. type: deftp
  23118. #: guix-git/doc/guix.texi:15921
  23119. #, no-wrap
  23120. msgid "{Data Type} user-account"
  23121. msgstr ""
  23122. #. type: deftp
  23123. #: guix-git/doc/guix.texi:15924
  23124. msgid "Objects of this type represent user accounts. The following members may be specified:"
  23125. msgstr ""
  23126. #. type: table
  23127. #: guix-git/doc/guix.texi:15928
  23128. msgid "The name of the user account."
  23129. msgstr ""
  23130. #. type: itemx
  23131. #: guix-git/doc/guix.texi:15929 guix-git/doc/guix.texi:35332
  23132. #, no-wrap
  23133. msgid "group"
  23134. msgstr ""
  23135. #. type: cindex
  23136. #: guix-git/doc/guix.texi:15930 guix-git/doc/guix.texi:16014
  23137. #, no-wrap
  23138. msgid "groups"
  23139. msgstr ""
  23140. #. type: table
  23141. #: guix-git/doc/guix.texi:15933
  23142. msgid "This is the name (a string) or identifier (a number) of the user group this account belongs to."
  23143. msgstr ""
  23144. #. type: item
  23145. #: guix-git/doc/guix.texi:15934
  23146. #, no-wrap
  23147. msgid "@code{supplementary-groups} (default: @code{'()})"
  23148. msgstr ""
  23149. #. type: table
  23150. #: guix-git/doc/guix.texi:15937
  23151. msgid "Optionally, this can be defined as a list of group names that this account belongs to."
  23152. msgstr ""
  23153. #. type: item
  23154. #: guix-git/doc/guix.texi:15938
  23155. #, no-wrap
  23156. msgid "@code{uid} (default: @code{#f})"
  23157. msgstr ""
  23158. #. type: table
  23159. #: guix-git/doc/guix.texi:15942
  23160. 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."
  23161. msgstr ""
  23162. #. type: item
  23163. #: guix-git/doc/guix.texi:15943 guix-git/doc/guix.texi:18718
  23164. #, no-wrap
  23165. msgid "@code{comment} (default: @code{\"\"})"
  23166. msgstr ""
  23167. #. type: table
  23168. #: guix-git/doc/guix.texi:15945
  23169. msgid "A comment about the account, such as the account owner's full name."
  23170. msgstr ""
  23171. #. type: table
  23172. #: guix-git/doc/guix.texi:15950
  23173. msgid "Note that, for non-system accounts, users are free to change their real name as it appears in @file{/etc/passwd} using the @command{chfn} command. When they do, their choice prevails over the system administrator's choice; reconfiguring does @emph{not} change their name."
  23174. msgstr ""
  23175. #. type: code{#1}
  23176. #: guix-git/doc/guix.texi:15951
  23177. #, no-wrap
  23178. msgid "home-directory"
  23179. msgstr ""
  23180. #. type: table
  23181. #: guix-git/doc/guix.texi:15953
  23182. msgid "This is the name of the home directory for the account."
  23183. msgstr ""
  23184. #. type: item
  23185. #: guix-git/doc/guix.texi:15954
  23186. #, no-wrap
  23187. msgid "@code{create-home-directory?} (default: @code{#t})"
  23188. msgstr ""
  23189. #. type: table
  23190. #: guix-git/doc/guix.texi:15957
  23191. msgid "Indicates whether the home directory of this account should be created if it does not exist yet."
  23192. msgstr ""
  23193. #. type: item
  23194. #: guix-git/doc/guix.texi:15958
  23195. #, no-wrap
  23196. msgid "@code{shell} (default: Bash)"
  23197. msgstr ""
  23198. #. type: table
  23199. #: guix-git/doc/guix.texi:15962
  23200. 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:"
  23201. msgstr ""
  23202. #. type: lisp
  23203. #: guix-git/doc/guix.texi:15965
  23204. #, no-wrap
  23205. msgid "(file-append bash \"/bin/bash\")\n"
  23206. msgstr ""
  23207. #. type: table
  23208. #: guix-git/doc/guix.texi:15969
  23209. msgid "... and to the Zsh executable like that:"
  23210. msgstr ""
  23211. #. type: lisp
  23212. #: guix-git/doc/guix.texi:15972
  23213. #, no-wrap
  23214. msgid "(file-append zsh \"/bin/zsh\")\n"
  23215. msgstr ""
  23216. #. type: item
  23217. #: guix-git/doc/guix.texi:15974 guix-git/doc/guix.texi:16032
  23218. #, no-wrap
  23219. msgid "@code{system?} (default: @code{#f})"
  23220. msgstr ""
  23221. #. type: table
  23222. #: guix-git/doc/guix.texi:15978
  23223. 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."
  23224. msgstr ""
  23225. #. type: anchor{#1}
  23226. #: guix-git/doc/guix.texi:15980
  23227. msgid "user-account-password"
  23228. msgstr ""
  23229. #. type: cindex
  23230. #: guix-git/doc/guix.texi:15980
  23231. #, no-wrap
  23232. msgid "password, for user accounts"
  23233. msgstr ""
  23234. #. type: item
  23235. #: guix-git/doc/guix.texi:15981 guix-git/doc/guix.texi:16036
  23236. #, no-wrap
  23237. msgid "@code{password} (default: @code{#f})"
  23238. msgstr ""
  23239. #. type: table
  23240. #: guix-git/doc/guix.texi:15987
  23241. 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."
  23242. msgstr ""
  23243. #. type: table
  23244. #: guix-git/doc/guix.texi:15991
  23245. 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:"
  23246. msgstr ""
  23247. #. type: lisp
  23248. #: guix-git/doc/guix.texi:15996
  23249. #, no-wrap
  23250. msgid ""
  23251. "(user-account\n"
  23252. " (name \"charlie\")\n"
  23253. " (group \"users\")\n"
  23254. "\n"
  23255. msgstr ""
  23256. #. type: lisp
  23257. #: guix-git/doc/guix.texi:15999
  23258. #, no-wrap
  23259. msgid ""
  23260. " ;; Specify a SHA-512-hashed initial password.\n"
  23261. " (password (crypt \"InitialPassword!\" \"$6$abc\")))\n"
  23262. msgstr ""
  23263. #. type: quotation
  23264. #: guix-git/doc/guix.texi:16005
  23265. 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."
  23266. msgstr ""
  23267. #. type: table
  23268. #: guix-git/doc/guix.texi:16010
  23269. 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."
  23270. msgstr ""
  23271. #. type: Plain text
  23272. #: guix-git/doc/guix.texi:16016
  23273. msgid "User group declarations are even simpler:"
  23274. msgstr ""
  23275. #. type: lisp
  23276. #: guix-git/doc/guix.texi:16019
  23277. #, no-wrap
  23278. msgid "(user-group (name \"students\"))\n"
  23279. msgstr ""
  23280. #. type: deftp
  23281. #: guix-git/doc/guix.texi:16021
  23282. #, no-wrap
  23283. msgid "{Data Type} user-group"
  23284. msgstr ""
  23285. #. type: deftp
  23286. #: guix-git/doc/guix.texi:16023
  23287. msgid "This type is for, well, user groups. There are just a few fields:"
  23288. msgstr ""
  23289. #. type: table
  23290. #: guix-git/doc/guix.texi:16027
  23291. msgid "The name of the group."
  23292. msgstr ""
  23293. #. type: item
  23294. #: guix-git/doc/guix.texi:16028 guix-git/doc/guix.texi:31765
  23295. #, no-wrap
  23296. msgid "@code{id} (default: @code{#f})"
  23297. msgstr ""
  23298. #. type: table
  23299. #: guix-git/doc/guix.texi:16031
  23300. msgid "The group identifier (a number). If @code{#f}, a new number is automatically allocated when the group is created."
  23301. msgstr ""
  23302. #. type: table
  23303. #: guix-git/doc/guix.texi:16035
  23304. msgid "This Boolean value indicates whether the group is a ``system'' group. System groups have low numerical IDs."
  23305. msgstr ""
  23306. #. type: table
  23307. #: guix-git/doc/guix.texi:16039
  23308. msgid "What, user groups can have a password? Well, apparently yes. Unless @code{#f}, this field specifies the password of the group."
  23309. msgstr ""
  23310. #. type: Plain text
  23311. #: guix-git/doc/guix.texi:16045
  23312. msgid "For convenience, a variable lists all the basic user groups one may expect:"
  23313. msgstr ""
  23314. #. type: defvr
  23315. #: guix-git/doc/guix.texi:16046
  23316. #, no-wrap
  23317. msgid "{Scheme Variable} %base-groups"
  23318. msgstr ""
  23319. #. type: defvr
  23320. #: guix-git/doc/guix.texi:16051
  23321. 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''."
  23322. msgstr ""
  23323. #. type: defvr
  23324. #: guix-git/doc/guix.texi:16053
  23325. #, no-wrap
  23326. msgid "{Scheme Variable} %base-user-accounts"
  23327. msgstr ""
  23328. #. type: defvr
  23329. #: guix-git/doc/guix.texi:16056
  23330. 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."
  23331. msgstr ""
  23332. #. type: defvr
  23333. #: guix-git/doc/guix.texi:16059
  23334. 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."
  23335. msgstr ""
  23336. #. type: cindex
  23337. #: guix-git/doc/guix.texi:16065
  23338. #, no-wrap
  23339. msgid "keymap"
  23340. msgstr ""
  23341. #. type: Plain text
  23342. #: guix-git/doc/guix.texi:16073
  23343. 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."
  23344. msgstr ""
  23345. #. type: cindex
  23346. #: guix-git/doc/guix.texi:16074
  23347. #, no-wrap
  23348. msgid "keyboard layout, definition"
  23349. msgstr ""
  23350. #. type: Plain text
  23351. #: guix-git/doc/guix.texi:16076
  23352. msgid "There are three components that will want to know about your keyboard layout:"
  23353. msgstr ""
  23354. #. type: itemize
  23355. #: guix-git/doc/guix.texi:16083
  23356. 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."
  23357. msgstr ""
  23358. #. type: itemize
  23359. #: guix-git/doc/guix.texi:16088
  23360. msgid "The @emph{operating system kernel}, Linux, will need that so that the console is properly configured (@pxref{operating-system Reference, @code{keyboard-layout}})."
  23361. msgstr ""
  23362. #. type: itemize
  23363. #: guix-git/doc/guix.texi:16092
  23364. msgid "The @emph{graphical display server}, usually Xorg, also has its own idea of the keyboard layout (@pxref{X Window, @code{keyboard-layout}})."
  23365. msgstr ""
  23366. #. type: Plain text
  23367. #: guix-git/doc/guix.texi:16096
  23368. msgid "Guix allows you to configure all three separately but, fortunately, it allows you to share the same keyboard layout for all three components."
  23369. msgstr ""
  23370. #. type: cindex
  23371. #: guix-git/doc/guix.texi:16097
  23372. #, no-wrap
  23373. msgid "XKB, keyboard layouts"
  23374. msgstr ""
  23375. #. type: Plain text
  23376. #: guix-git/doc/guix.texi:16105
  23377. 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."
  23378. msgstr ""
  23379. #. type: deffn
  23380. #: guix-git/doc/guix.texi:16106
  23381. #, no-wrap
  23382. msgid "{Scheme Procedure} keyboard-layout @var{name} [@var{variant}] @"
  23383. msgstr ""
  23384. #. type: deffn
  23385. #: guix-git/doc/guix.texi:16109
  23386. msgid "[#:model] [#:options '()] Return a new keyboard layout with the given @var{name} and @var{variant}."
  23387. msgstr ""
  23388. #. type: deffn
  23389. #: guix-git/doc/guix.texi:16113
  23390. 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."
  23391. msgstr ""
  23392. #. type: Plain text
  23393. #: guix-git/doc/guix.texi:16116
  23394. msgid "Here are a few examples:"
  23395. msgstr ""
  23396. #. type: lisp
  23397. #: guix-git/doc/guix.texi:16121
  23398. #, no-wrap
  23399. msgid ""
  23400. ";; The German QWERTZ layout. Here we assume a standard\n"
  23401. ";; \"pc105\" keyboard model.\n"
  23402. "(keyboard-layout \"de\")\n"
  23403. "\n"
  23404. msgstr ""
  23405. #. type: lisp
  23406. #: guix-git/doc/guix.texi:16124
  23407. #, no-wrap
  23408. msgid ""
  23409. ";; The bépo variant of the French layout.\n"
  23410. "(keyboard-layout \"fr\" \"bepo\")\n"
  23411. "\n"
  23412. msgstr ""
  23413. #. type: lisp
  23414. #: guix-git/doc/guix.texi:16127
  23415. #, no-wrap
  23416. msgid ""
  23417. ";; The Catalan layout.\n"
  23418. "(keyboard-layout \"es\" \"cat\")\n"
  23419. "\n"
  23420. msgstr ""
  23421. #. type: lisp
  23422. #: guix-git/doc/guix.texi:16130
  23423. #, no-wrap
  23424. msgid ""
  23425. ";; Arabic layout with \"Alt-Shift\" to switch to US layout.\n"
  23426. "(keyboard-layout \"ar,us\" #:options '(\"grp:alt_shift_toggle\"))\n"
  23427. "\n"
  23428. msgstr ""
  23429. #. type: lisp
  23430. #: guix-git/doc/guix.texi:16137
  23431. #, no-wrap
  23432. msgid ""
  23433. ";; The Latin American Spanish layout. In addition, the\n"
  23434. ";; \"Caps Lock\" key is used as an additional \"Ctrl\" key,\n"
  23435. ";; and the \"Menu\" key is used as a \"Compose\" key to enter\n"
  23436. ";; accented letters.\n"
  23437. "(keyboard-layout \"latam\"\n"
  23438. " #:options '(\"ctrl:nocaps\" \"compose:menu\"))\n"
  23439. "\n"
  23440. msgstr ""
  23441. #. type: lisp
  23442. #: guix-git/doc/guix.texi:16140
  23443. #, no-wrap
  23444. msgid ""
  23445. ";; The Russian layout for a ThinkPad keyboard.\n"
  23446. "(keyboard-layout \"ru\" #:model \"thinkpad\")\n"
  23447. "\n"
  23448. msgstr ""
  23449. #. type: lisp
  23450. #: guix-git/doc/guix.texi:16145
  23451. #, no-wrap
  23452. msgid ""
  23453. ";; The \"US international\" layout, which is the US layout plus\n"
  23454. ";; dead keys to enter accented characters. This is for an\n"
  23455. ";; Apple MacBook keyboard.\n"
  23456. "(keyboard-layout \"us\" \"intl\" #:model \"macbook78\")\n"
  23457. msgstr ""
  23458. #. type: Plain text
  23459. #: guix-git/doc/guix.texi:16149
  23460. msgid "See the @file{share/X11/xkb} directory of the @code{xkeyboard-config} package for a complete list of supported layouts, variants, and models."
  23461. msgstr ""
  23462. #. type: cindex
  23463. #: guix-git/doc/guix.texi:16150
  23464. #, no-wrap
  23465. msgid "keyboard layout, configuration"
  23466. msgstr ""
  23467. #. type: Plain text
  23468. #: guix-git/doc/guix.texi:16154
  23469. 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:"
  23470. msgstr ""
  23471. #. type: findex
  23472. #: guix-git/doc/guix.texi:16155
  23473. #, no-wrap
  23474. msgid "set-xorg-configuration"
  23475. msgstr ""
  23476. #. type: lisp
  23477. #: guix-git/doc/guix.texi:16159
  23478. #, no-wrap
  23479. msgid ""
  23480. ";; Using the Turkish layout for the bootloader, the console,\n"
  23481. ";; and for Xorg.\n"
  23482. "\n"
  23483. msgstr ""
  23484. #. type: lisp
  23485. #: guix-git/doc/guix.texi:16171
  23486. #, no-wrap
  23487. msgid ""
  23488. "(operating-system\n"
  23489. " ;; ...\n"
  23490. " (keyboard-layout (keyboard-layout \"tr\")) ;for the console\n"
  23491. " (bootloader (bootloader-configuration\n"
  23492. " (bootloader grub-efi-bootloader)\n"
  23493. " (targets '(\"/boot/efi\"))\n"
  23494. " (keyboard-layout keyboard-layout))) ;for GRUB\n"
  23495. " (services (cons (set-xorg-configuration\n"
  23496. " (xorg-configuration ;for Xorg\n"
  23497. " (keyboard-layout keyboard-layout)))\n"
  23498. " %desktop-services)))\n"
  23499. msgstr ""
  23500. #. type: Plain text
  23501. #: guix-git/doc/guix.texi:16178
  23502. 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."
  23503. msgstr ""
  23504. #. type: Plain text
  23505. #: guix-git/doc/guix.texi:16181
  23506. 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:"
  23507. msgstr ""
  23508. #. type: itemize
  23509. #: guix-git/doc/guix.texi:16186
  23510. msgid "If you're using GNOME, its settings panel has a ``Region & Language'' entry where you can select one or more keyboard layouts."
  23511. msgstr ""
  23512. #. type: itemize
  23513. #: guix-git/doc/guix.texi:16191
  23514. 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:"
  23515. msgstr ""
  23516. #. type: example
  23517. #: guix-git/doc/guix.texi:16194
  23518. #, no-wrap
  23519. msgid "setxkbmap us dvorak\n"
  23520. msgstr ""
  23521. #. type: itemize
  23522. #: guix-git/doc/guix.texi:16201
  23523. 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:"
  23524. msgstr ""
  23525. #. type: example
  23526. #: guix-git/doc/guix.texi:16204
  23527. #, no-wrap
  23528. msgid "loadkeys fr-bepo\n"
  23529. msgstr ""
  23530. #. type: cindex
  23531. #: guix-git/doc/guix.texi:16210
  23532. #, no-wrap
  23533. msgid "locale"
  23534. msgstr ""
  23535. #. type: Plain text
  23536. #: guix-git/doc/guix.texi:16217
  23537. 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."
  23538. msgstr ""
  23539. #. type: cindex
  23540. #: guix-git/doc/guix.texi:16218
  23541. #, no-wrap
  23542. msgid "locale definition"
  23543. msgstr ""
  23544. #. type: Plain text
  23545. #: guix-git/doc/guix.texi:16222
  23546. 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}})."
  23547. msgstr ""
  23548. #. type: Plain text
  23549. #: guix-git/doc/guix.texi:16231
  23550. 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."
  23551. msgstr ""
  23552. #. type: Plain text
  23553. #: guix-git/doc/guix.texi:16234
  23554. msgid "For instance, to add the North Frisian locale for Germany, the value of that field may be:"
  23555. msgstr ""
  23556. #. type: lisp
  23557. #: guix-git/doc/guix.texi:16239
  23558. #, no-wrap
  23559. msgid ""
  23560. "(cons (locale-definition\n"
  23561. " (name \"fy_DE.utf8\") (source \"fy_DE\"))\n"
  23562. " %default-locale-definitions)\n"
  23563. msgstr ""
  23564. #. type: Plain text
  23565. #: guix-git/doc/guix.texi:16243
  23566. msgid "Likewise, to save space, one might want @code{locale-definitions} to list only the locales that are actually used, as in:"
  23567. msgstr ""
  23568. #. type: lisp
  23569. #: guix-git/doc/guix.texi:16248
  23570. #, no-wrap
  23571. msgid ""
  23572. "(list (locale-definition\n"
  23573. " (name \"ja_JP.eucjp\") (source \"ja_JP\")\n"
  23574. " (charset \"EUC-JP\")))\n"
  23575. msgstr ""
  23576. #. type: Plain text
  23577. #: guix-git/doc/guix.texi:16257
  23578. 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})."
  23579. msgstr ""
  23580. #. type: Plain text
  23581. #: guix-git/doc/guix.texi:16260
  23582. msgid "The @code{locale-definition} form is provided by the @code{(gnu system locale)} module. Details are given below."
  23583. msgstr ""
  23584. #. type: deftp
  23585. #: guix-git/doc/guix.texi:16261
  23586. #, no-wrap
  23587. msgid "{Data Type} locale-definition"
  23588. msgstr ""
  23589. #. type: deftp
  23590. #: guix-git/doc/guix.texi:16263
  23591. msgid "This is the data type of a locale definition."
  23592. msgstr ""
  23593. #. type: table
  23594. #: guix-git/doc/guix.texi:16269
  23595. msgid "The name of the locale. @xref{Locale Names,,, libc, The GNU C Library Reference Manual}, for more information on locale names."
  23596. msgstr ""
  23597. #. type: table
  23598. #: guix-git/doc/guix.texi:16273
  23599. msgid "The name of the source for that locale. This is typically the @code{@var{language}_@var{territory}} part of the locale name."
  23600. msgstr ""
  23601. #. type: item
  23602. #: guix-git/doc/guix.texi:16274
  23603. #, no-wrap
  23604. msgid "@code{charset} (default: @code{\"UTF-8\"})"
  23605. msgstr ""
  23606. #. type: table
  23607. #: guix-git/doc/guix.texi:16278
  23608. msgid "The ``character set'' or ``code set'' for that locale, @uref{https://www.iana.org/assignments/character-sets, as defined by IANA}."
  23609. msgstr ""
  23610. #. type: defvr
  23611. #: guix-git/doc/guix.texi:16282
  23612. #, no-wrap
  23613. msgid "{Scheme Variable} %default-locale-definitions"
  23614. msgstr ""
  23615. #. type: defvr
  23616. #: guix-git/doc/guix.texi:16286
  23617. 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."
  23618. msgstr ""
  23619. #. type: cindex
  23620. #: guix-git/doc/guix.texi:16287
  23621. #, no-wrap
  23622. msgid "locale name"
  23623. msgstr ""
  23624. #. type: cindex
  23625. #: guix-git/doc/guix.texi:16288
  23626. #, no-wrap
  23627. msgid "normalized codeset in locale names"
  23628. msgstr ""
  23629. #. type: defvr
  23630. #: guix-git/doc/guix.texi:16294
  23631. 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}."
  23632. msgstr ""
  23633. #. type: subsection
  23634. #: guix-git/doc/guix.texi:16296
  23635. #, no-wrap
  23636. msgid "Locale Data Compatibility Considerations"
  23637. msgstr ""
  23638. #. type: cindex
  23639. #: guix-git/doc/guix.texi:16298
  23640. #, no-wrap
  23641. msgid "incompatibility, of locale data"
  23642. msgstr ""
  23643. #. type: Plain text
  23644. #: guix-git/doc/guix.texi:16305
  23645. 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."
  23646. msgstr ""
  23647. #. type: Plain text
  23648. #: guix-git/doc/guix.texi:16317
  23649. 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."
  23650. msgstr ""
  23651. #. type: Plain text
  23652. #: guix-git/doc/guix.texi:16322
  23653. 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."
  23654. msgstr ""
  23655. #. type: Plain text
  23656. #: guix-git/doc/guix.texi:16326
  23657. 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})."
  23658. msgstr ""
  23659. #. type: Plain text
  23660. #: guix-git/doc/guix.texi:16333
  23661. 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}:"
  23662. msgstr ""
  23663. #. type: lisp
  23664. #: guix-git/doc/guix.texi:16336
  23665. #, no-wrap
  23666. msgid ""
  23667. "(use-package-modules base)\n"
  23668. "\n"
  23669. msgstr ""
  23670. #. type: lisp
  23671. #: guix-git/doc/guix.texi:16340
  23672. #, no-wrap
  23673. msgid ""
  23674. "(operating-system\n"
  23675. " ;; @dots{}\n"
  23676. " (locale-libcs (list glibc-2.21 (canonical-package glibc))))\n"
  23677. msgstr ""
  23678. #. type: Plain text
  23679. #: guix-git/doc/guix.texi:16345
  23680. 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}."
  23681. msgstr ""
  23682. #. type: cindex
  23683. #: guix-git/doc/guix.texi:16350
  23684. #, no-wrap
  23685. msgid "system services"
  23686. msgstr ""
  23687. #. type: Plain text
  23688. #: guix-git/doc/guix.texi:16356
  23689. 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."
  23690. msgstr ""
  23691. #. type: Plain text
  23692. #: guix-git/doc/guix.texi:16363
  23693. 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:"
  23694. msgstr ""
  23695. #. type: example
  23696. #: guix-git/doc/guix.texi:16366
  23697. #, no-wrap
  23698. msgid "# herd status\n"
  23699. msgstr ""
  23700. #. type: Plain text
  23701. #: guix-git/doc/guix.texi:16371
  23702. 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:"
  23703. msgstr ""
  23704. #. type: example
  23705. #: guix-git/doc/guix.texi:16375
  23706. #, no-wrap
  23707. msgid ""
  23708. "# herd doc nscd\n"
  23709. "Run libc's name service cache daemon (nscd).\n"
  23710. "\n"
  23711. msgstr ""
  23712. #. type: example
  23713. #: guix-git/doc/guix.texi:16378
  23714. #, no-wrap
  23715. msgid ""
  23716. "# herd doc nscd action invalidate\n"
  23717. "invalidate: Invalidate the given cache--e.g., 'hosts' for host name lookups.\n"
  23718. msgstr ""
  23719. #. type: Plain text
  23720. #: guix-git/doc/guix.texi:16383
  23721. 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:"
  23722. msgstr ""
  23723. #. type: example
  23724. #: guix-git/doc/guix.texi:16390
  23725. #, no-wrap
  23726. msgid ""
  23727. "# herd stop nscd\n"
  23728. "Service nscd has been stopped.\n"
  23729. "# herd restart xorg-server\n"
  23730. "Service xorg-server has been stopped.\n"
  23731. "Service xorg-server has been started.\n"
  23732. msgstr ""
  23733. #. type: Plain text
  23734. #: guix-git/doc/guix.texi:16395
  23735. msgid "The following sections document the available services, starting with the core services, that may be used in an @code{operating-system} declaration."
  23736. msgstr ""
  23737. #. type: subsection
  23738. #: guix-git/doc/guix.texi:16431 guix-git/doc/guix.texi:25183
  23739. #: guix-git/doc/guix.texi:25184
  23740. #, fuzzy, no-wrap
  23741. msgid "File-Sharing Services"
  23742. msgstr "消息服务"
  23743. #. type: menuentry
  23744. #: guix-git/doc/guix.texi:16431
  23745. #, fuzzy
  23746. msgid "File-sharing services."
  23747. msgstr "消息服务。"
  23748. #. type: Plain text
  23749. #: guix-git/doc/guix.texi:16439
  23750. 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."
  23751. msgstr ""
  23752. #. type: defvr
  23753. #: guix-git/doc/guix.texi:16440
  23754. #, no-wrap
  23755. msgid "{Scheme Variable} %base-services"
  23756. msgstr ""
  23757. #. type: defvr
  23758. #: guix-git/doc/guix.texi:16446
  23759. 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."
  23760. msgstr ""
  23761. #. type: defvr
  23762. #: guix-git/doc/guix.texi:16451
  23763. 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:"
  23764. msgstr ""
  23765. #. type: lisp
  23766. #: guix-git/doc/guix.texi:16456
  23767. #, no-wrap
  23768. msgid ""
  23769. "(append (list (service avahi-service-type)\n"
  23770. " (service openssh-service-type))\n"
  23771. " %base-services)\n"
  23772. msgstr ""
  23773. #. type: defvr
  23774. #: guix-git/doc/guix.texi:16459
  23775. #, no-wrap
  23776. msgid "{Scheme Variable} special-files-service-type"
  23777. msgstr ""
  23778. #. type: defvr
  23779. #: guix-git/doc/guix.texi:16462
  23780. 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}."
  23781. msgstr ""
  23782. #. type: defvr
  23783. #: guix-git/doc/guix.texi:16466
  23784. 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:"
  23785. msgstr ""
  23786. #. type: file{#1}
  23787. #: guix-git/doc/guix.texi:16467
  23788. #, no-wrap
  23789. msgid "/bin/sh"
  23790. msgstr ""
  23791. #. type: cindex
  23792. #: guix-git/doc/guix.texi:16468
  23793. #, no-wrap
  23794. msgid "@file{sh}, in @file{/bin}"
  23795. msgstr ""
  23796. #. type: lisp
  23797. #: guix-git/doc/guix.texi:16471
  23798. #, no-wrap
  23799. msgid "`((\"/bin/sh\" ,(file-append bash \"/bin/sh\")))\n"
  23800. msgstr ""
  23801. #. type: file{#1}
  23802. #: guix-git/doc/guix.texi:16473
  23803. #, no-wrap
  23804. msgid "/usr/bin/env"
  23805. msgstr ""
  23806. #. type: cindex
  23807. #: guix-git/doc/guix.texi:16474
  23808. #, no-wrap
  23809. msgid "@file{env}, in @file{/usr/bin}"
  23810. msgstr ""
  23811. #. type: defvr
  23812. #: guix-git/doc/guix.texi:16477
  23813. msgid "If you want to add, say, @code{/usr/bin/env} to your system, you can change it to:"
  23814. msgstr ""
  23815. #. type: lisp
  23816. #: guix-git/doc/guix.texi:16481
  23817. #, no-wrap
  23818. msgid ""
  23819. "`((\"/bin/sh\" ,(file-append bash \"/bin/sh\"))\n"
  23820. " (\"/usr/bin/env\" ,(file-append coreutils \"/bin/env\")))\n"
  23821. msgstr ""
  23822. #. type: defvr
  23823. #: guix-git/doc/guix.texi:16488
  23824. 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)."
  23825. msgstr ""
  23826. #. type: deffn
  23827. #: guix-git/doc/guix.texi:16490
  23828. #, no-wrap
  23829. msgid "{Scheme Procedure} extra-special-file @var{file} @var{target}"
  23830. msgstr ""
  23831. #. type: deffn
  23832. #: guix-git/doc/guix.texi:16492
  23833. msgid "Use @var{target} as the ``special file'' @var{file}."
  23834. msgstr ""
  23835. #. type: deffn
  23836. #: guix-git/doc/guix.texi:16496
  23837. 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:"
  23838. msgstr ""
  23839. #. type: lisp
  23840. #: guix-git/doc/guix.texi:16500
  23841. #, no-wrap
  23842. msgid ""
  23843. "(extra-special-file \"/usr/bin/env\"\n"
  23844. " (file-append coreutils \"/bin/env\"))\n"
  23845. msgstr ""
  23846. #. type: deffn
  23847. #: guix-git/doc/guix.texi:16503
  23848. #, no-wrap
  23849. msgid "{Scheme Procedure} host-name-service @var{name}"
  23850. msgstr ""
  23851. #. type: deffn
  23852. #: guix-git/doc/guix.texi:16505
  23853. msgid "Return a service that sets the host name to @var{name}."
  23854. msgstr ""
  23855. #. type: defvr
  23856. #: guix-git/doc/guix.texi:16507
  23857. #, no-wrap
  23858. msgid "{Scheme Variable} console-font-service-type"
  23859. msgstr ""
  23860. #. type: defvr
  23861. #: guix-git/doc/guix.texi:16512
  23862. 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:"
  23863. msgstr ""
  23864. #. type: lisp
  23865. #: guix-git/doc/guix.texi:16521
  23866. #, no-wrap
  23867. msgid ""
  23868. "`((\"tty1\" . \"LatGrkCyr-8x16\")\n"
  23869. " (\"tty2\" . ,(file-append\n"
  23870. " font-tamzen\n"
  23871. " \"/share/kbd/consolefonts/TamzenForPowerline10x20.psf\"))\n"
  23872. " (\"tty3\" . ,(file-append\n"
  23873. " font-terminus\n"
  23874. " \"/share/consolefonts/ter-132n\"))) ; for HDPI\n"
  23875. msgstr ""
  23876. #. type: deffn
  23877. #: guix-git/doc/guix.texi:16524
  23878. #, no-wrap
  23879. msgid "{Scheme Procedure} login-service @var{config}"
  23880. msgstr ""
  23881. #. type: deffn
  23882. #: guix-git/doc/guix.texi:16528
  23883. 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."
  23884. msgstr ""
  23885. #. type: deftp
  23886. #: guix-git/doc/guix.texi:16530
  23887. #, no-wrap
  23888. msgid "{Data Type} login-configuration"
  23889. msgstr ""
  23890. #. type: deftp
  23891. #: guix-git/doc/guix.texi:16532
  23892. msgid "This is the data type representing the configuration of login."
  23893. msgstr ""
  23894. #. type: code{#1}
  23895. #: guix-git/doc/guix.texi:16535
  23896. #, no-wrap
  23897. msgid "motd"
  23898. msgstr ""
  23899. #. type: cindex
  23900. #: guix-git/doc/guix.texi:16536
  23901. #, no-wrap
  23902. msgid "message of the day"
  23903. msgstr ""
  23904. #. type: table
  23905. #: guix-git/doc/guix.texi:16538
  23906. msgid "A file-like object containing the ``message of the day''."
  23907. msgstr ""
  23908. #. type: item
  23909. #: guix-git/doc/guix.texi:16539 guix-git/doc/guix.texi:19791
  23910. #, no-wrap
  23911. msgid "@code{allow-empty-passwords?} (default: @code{#t})"
  23912. msgstr ""
  23913. #. type: table
  23914. #: guix-git/doc/guix.texi:16542
  23915. msgid "Allow empty passwords by default so that first-time users can log in when the 'root' account has just been created."
  23916. msgstr ""
  23917. #. type: deffn
  23918. #: guix-git/doc/guix.texi:16546
  23919. #, no-wrap
  23920. msgid "{Scheme Procedure} mingetty-service @var{config}"
  23921. msgstr ""
  23922. #. type: deffn
  23923. #: guix-git/doc/guix.texi:16550
  23924. 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."
  23925. msgstr ""
  23926. #. type: deftp
  23927. #: guix-git/doc/guix.texi:16552
  23928. #, no-wrap
  23929. msgid "{Data Type} mingetty-configuration"
  23930. msgstr ""
  23931. #. type: deftp
  23932. #: guix-git/doc/guix.texi:16555
  23933. msgid "This is the data type representing the configuration of Mingetty, which provides the default implementation of virtual console log-in."
  23934. msgstr ""
  23935. #. type: code{#1}
  23936. #: guix-git/doc/guix.texi:16558 guix-git/doc/guix.texi:16597
  23937. #: guix-git/doc/guix.texi:34582
  23938. #, no-wrap
  23939. msgid "tty"
  23940. msgstr ""
  23941. #. type: table
  23942. #: guix-git/doc/guix.texi:16560
  23943. msgid "The name of the console this Mingetty runs on---e.g., @code{\"tty1\"}."
  23944. msgstr ""
  23945. #. type: item
  23946. #: guix-git/doc/guix.texi:16561 guix-git/doc/guix.texi:16626
  23947. #: guix-git/doc/guix.texi:16789
  23948. #, no-wrap
  23949. msgid "@code{auto-login} (default: @code{#f})"
  23950. msgstr ""
  23951. #. type: table
  23952. #: guix-git/doc/guix.texi:16565
  23953. 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."
  23954. msgstr ""
  23955. #. type: item
  23956. #: guix-git/doc/guix.texi:16566
  23957. #, no-wrap
  23958. msgid "@code{login-program} (default: @code{#f})"
  23959. msgstr ""
  23960. #. type: table
  23961. #: guix-git/doc/guix.texi:16570
  23962. 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."
  23963. msgstr ""
  23964. #. type: item
  23965. #: guix-git/doc/guix.texi:16571
  23966. #, no-wrap
  23967. msgid "@code{login-pause?} (default: @code{#f})"
  23968. msgstr ""
  23969. #. type: table
  23970. #: guix-git/doc/guix.texi:16574
  23971. 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."
  23972. msgstr ""
  23973. #. type: item
  23974. #: guix-git/doc/guix.texi:16575
  23975. #, fuzzy, no-wrap
  23976. msgid "@code{clear-on-logout?} (default: @code{#t})"
  23977. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  23978. #. type: table
  23979. #: guix-git/doc/guix.texi:16577
  23980. msgid "When set to @code{#t}, the screen will be cleared after logout."
  23981. msgstr ""
  23982. #. type: item
  23983. #: guix-git/doc/guix.texi:16578
  23984. #, no-wrap
  23985. msgid "@code{mingetty} (default: @var{mingetty})"
  23986. msgstr ""
  23987. #. type: table
  23988. #: guix-git/doc/guix.texi:16580
  23989. msgid "The Mingetty package to use."
  23990. msgstr ""
  23991. #. type: deffn
  23992. #: guix-git/doc/guix.texi:16584
  23993. #, no-wrap
  23994. msgid "{Scheme Procedure} agetty-service @var{config}"
  23995. msgstr ""
  23996. #. type: deffn
  23997. #: guix-git/doc/guix.texi:16588
  23998. 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."
  23999. msgstr ""
  24000. #. type: deftp
  24001. #: guix-git/doc/guix.texi:16590
  24002. #, no-wrap
  24003. msgid "{Data Type} agetty-configuration"
  24004. msgstr ""
  24005. #. type: deftp
  24006. #: guix-git/doc/guix.texi:16594
  24007. 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."
  24008. msgstr ""
  24009. #. type: table
  24010. #: guix-git/doc/guix.texi:16601
  24011. 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."
  24012. msgstr ""
  24013. #. type: table
  24014. #: guix-git/doc/guix.texi:16605
  24015. 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."
  24016. msgstr ""
  24017. #. type: table
  24018. #: guix-git/doc/guix.texi:16609
  24019. 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."
  24020. msgstr ""
  24021. #. type: table
  24022. #: guix-git/doc/guix.texi:16613
  24023. 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."
  24024. msgstr ""
  24025. #. type: item
  24026. #: guix-git/doc/guix.texi:16614 guix-git/doc/guix.texi:34743
  24027. #, no-wrap
  24028. msgid "@code{baud-rate} (default: @code{#f})"
  24029. msgstr ""
  24030. #. type: table
  24031. #: guix-git/doc/guix.texi:16617
  24032. msgid "A string containing a comma-separated list of one or more baud rates, in descending order."
  24033. msgstr ""
  24034. #. type: item
  24035. #: guix-git/doc/guix.texi:16618
  24036. #, no-wrap
  24037. msgid "@code{term} (default: @code{#f})"
  24038. msgstr ""
  24039. #. type: table
  24040. #: guix-git/doc/guix.texi:16621
  24041. msgid "A string containing the value used for the @env{TERM} environment variable."
  24042. msgstr ""
  24043. #. type: item
  24044. #: guix-git/doc/guix.texi:16622
  24045. #, no-wrap
  24046. msgid "@code{eight-bits?} (default: @code{#f})"
  24047. msgstr ""
  24048. #. type: table
  24049. #: guix-git/doc/guix.texi:16625
  24050. msgid "When @code{#t}, the tty is assumed to be 8-bit clean, and parity detection is disabled."
  24051. msgstr ""
  24052. #. type: table
  24053. #: guix-git/doc/guix.texi:16629 guix-git/doc/guix.texi:16792
  24054. 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."
  24055. msgstr ""
  24056. #. type: item
  24057. #: guix-git/doc/guix.texi:16630
  24058. #, no-wrap
  24059. msgid "@code{no-reset?} (default: @code{#f})"
  24060. msgstr ""
  24061. #. type: table
  24062. #: guix-git/doc/guix.texi:16632
  24063. msgid "When @code{#t}, don't reset terminal cflags (control modes)."
  24064. msgstr ""
  24065. #. type: item
  24066. #: guix-git/doc/guix.texi:16633
  24067. #, no-wrap
  24068. msgid "@code{host} (default: @code{#f})"
  24069. msgstr ""
  24070. #. type: table
  24071. #: guix-git/doc/guix.texi:16636
  24072. msgid "This accepts a string containing the ``login_host'', which will be written into the @file{/var/run/utmpx} file."
  24073. msgstr ""
  24074. #. type: item
  24075. #: guix-git/doc/guix.texi:16637
  24076. #, no-wrap
  24077. msgid "@code{remote?} (default: @code{#f})"
  24078. msgstr ""
  24079. #. type: table
  24080. #: guix-git/doc/guix.texi:16641
  24081. 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}."
  24082. msgstr ""
  24083. #. type: item
  24084. #: guix-git/doc/guix.texi:16642
  24085. #, no-wrap
  24086. msgid "@code{flow-control?} (default: @code{#f})"
  24087. msgstr ""
  24088. #. type: table
  24089. #: guix-git/doc/guix.texi:16644
  24090. msgid "When set to @code{#t}, enable hardware (RTS/CTS) flow control."
  24091. msgstr ""
  24092. #. type: item
  24093. #: guix-git/doc/guix.texi:16645
  24094. #, no-wrap
  24095. msgid "@code{no-issue?} (default: @code{#f})"
  24096. msgstr ""
  24097. #. type: table
  24098. #: guix-git/doc/guix.texi:16648
  24099. msgid "When set to @code{#t}, the contents of the @file{/etc/issue} file will not be displayed before presenting the login prompt."
  24100. msgstr ""
  24101. #. type: item
  24102. #: guix-git/doc/guix.texi:16649
  24103. #, no-wrap
  24104. msgid "@code{init-string} (default: @code{#f})"
  24105. msgstr ""
  24106. #. type: table
  24107. #: guix-git/doc/guix.texi:16652
  24108. 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."
  24109. msgstr ""
  24110. #. type: item
  24111. #: guix-git/doc/guix.texi:16653
  24112. #, no-wrap
  24113. msgid "@code{no-clear?} (default: @code{#f})"
  24114. msgstr ""
  24115. #. type: table
  24116. #: guix-git/doc/guix.texi:16656
  24117. msgid "When set to @code{#t}, agetty will not clear the screen before showing the login prompt."
  24118. msgstr ""
  24119. #. type: item
  24120. #: guix-git/doc/guix.texi:16657
  24121. #, no-wrap
  24122. msgid "@code{login-program} (default: (file-append shadow \"/bin/login\"))"
  24123. msgstr ""
  24124. #. type: table
  24125. #: guix-git/doc/guix.texi:16661
  24126. 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."
  24127. msgstr ""
  24128. #. type: item
  24129. #: guix-git/doc/guix.texi:16662
  24130. #, no-wrap
  24131. msgid "@code{local-line} (default: @code{#f})"
  24132. msgstr ""
  24133. #. type: table
  24134. #: guix-git/doc/guix.texi:16666
  24135. 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}."
  24136. msgstr ""
  24137. #. type: item
  24138. #: guix-git/doc/guix.texi:16667
  24139. #, no-wrap
  24140. msgid "@code{extract-baud?} (default: @code{#f})"
  24141. msgstr ""
  24142. #. type: table
  24143. #: guix-git/doc/guix.texi:16670
  24144. 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."
  24145. msgstr ""
  24146. #. type: item
  24147. #: guix-git/doc/guix.texi:16671
  24148. #, no-wrap
  24149. msgid "@code{skip-login?} (default: @code{#f})"
  24150. msgstr ""
  24151. #. type: table
  24152. #: guix-git/doc/guix.texi:16675
  24153. 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."
  24154. msgstr ""
  24155. #. type: item
  24156. #: guix-git/doc/guix.texi:16676
  24157. #, no-wrap
  24158. msgid "@code{no-newline?} (default: @code{#f})"
  24159. msgstr ""
  24160. #. type: table
  24161. #: guix-git/doc/guix.texi:16679
  24162. msgid "When set to @code{#t}, do not print a newline before printing the @file{/etc/issue} file."
  24163. msgstr ""
  24164. #. type: item
  24165. #: guix-git/doc/guix.texi:16681
  24166. #, no-wrap
  24167. msgid "@code{login-options} (default: @code{#f})"
  24168. msgstr ""
  24169. #. type: table
  24170. #: guix-git/doc/guix.texi:16686
  24171. 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."
  24172. msgstr ""
  24173. #. type: item
  24174. #: guix-git/doc/guix.texi:16687
  24175. #, no-wrap
  24176. msgid "@code{login-pause} (default: @code{#f})"
  24177. msgstr ""
  24178. #. type: table
  24179. #: guix-git/doc/guix.texi:16691
  24180. 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."
  24181. msgstr ""
  24182. #. type: item
  24183. #: guix-git/doc/guix.texi:16692
  24184. #, no-wrap
  24185. msgid "@code{chroot} (default: @code{#f})"
  24186. msgstr ""
  24187. #. type: table
  24188. #: guix-git/doc/guix.texi:16695
  24189. msgid "Change root to the specified directory. This option accepts a directory path as a string."
  24190. msgstr ""
  24191. #. type: item
  24192. #: guix-git/doc/guix.texi:16696
  24193. #, no-wrap
  24194. msgid "@code{hangup?} (default: @code{#f})"
  24195. msgstr ""
  24196. #. type: table
  24197. #: guix-git/doc/guix.texi:16699
  24198. msgid "Use the Linux system call @code{vhangup} to do a virtual hangup of the specified terminal."
  24199. msgstr ""
  24200. #. type: item
  24201. #: guix-git/doc/guix.texi:16700
  24202. #, no-wrap
  24203. msgid "@code{keep-baud?} (default: @code{#f})"
  24204. msgstr ""
  24205. #. type: table
  24206. #: guix-git/doc/guix.texi:16704
  24207. 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."
  24208. msgstr ""
  24209. #. type: item
  24210. #: guix-git/doc/guix.texi:16705
  24211. #, no-wrap
  24212. msgid "@code{timeout} (default: @code{#f})"
  24213. msgstr ""
  24214. #. type: table
  24215. #: guix-git/doc/guix.texi:16708
  24216. msgid "When set to an integer value, terminate if no user name could be read within @var{timeout} seconds."
  24217. msgstr ""
  24218. #. type: item
  24219. #: guix-git/doc/guix.texi:16709
  24220. #, no-wrap
  24221. msgid "@code{detect-case?} (default: @code{#f})"
  24222. msgstr ""
  24223. #. type: table
  24224. #: guix-git/doc/guix.texi:16715
  24225. 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."
  24226. msgstr ""
  24227. #. type: item
  24228. #: guix-git/doc/guix.texi:16716
  24229. #, no-wrap
  24230. msgid "@code{wait-cr?} (default: @code{#f})"
  24231. msgstr ""
  24232. #. type: table
  24233. #: guix-git/doc/guix.texi:16721
  24234. 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."
  24235. msgstr ""
  24236. #. type: item
  24237. #: guix-git/doc/guix.texi:16722
  24238. #, no-wrap
  24239. msgid "@code{no-hints?} (default: @code{#f})"
  24240. msgstr ""
  24241. #. type: table
  24242. #: guix-git/doc/guix.texi:16725
  24243. msgid "When set to @code{#t}, do not print hints about Num, Caps, and Scroll locks."
  24244. msgstr ""
  24245. #. type: item
  24246. #: guix-git/doc/guix.texi:16726
  24247. #, no-wrap
  24248. msgid "@code{no-hostname?} (default: @code{#f})"
  24249. msgstr ""
  24250. #. type: table
  24251. #: guix-git/doc/guix.texi:16729
  24252. msgid "By default, the hostname is printed. When this option is set to @code{#t}, no hostname will be shown at all."
  24253. msgstr ""
  24254. #. type: item
  24255. #: guix-git/doc/guix.texi:16730
  24256. #, no-wrap
  24257. msgid "@code{long-hostname?} (default: @code{#f})"
  24258. msgstr ""
  24259. #. type: table
  24260. #: guix-git/doc/guix.texi:16734
  24261. 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."
  24262. msgstr ""
  24263. #. type: item
  24264. #: guix-git/doc/guix.texi:16735
  24265. #, no-wrap
  24266. msgid "@code{erase-characters} (default: @code{#f})"
  24267. msgstr ""
  24268. #. type: table
  24269. #: guix-git/doc/guix.texi:16738
  24270. msgid "This option accepts a string of additional characters that should be interpreted as backspace when the user types their login name."
  24271. msgstr ""
  24272. #. type: item
  24273. #: guix-git/doc/guix.texi:16739
  24274. #, no-wrap
  24275. msgid "@code{kill-characters} (default: @code{#f})"
  24276. msgstr ""
  24277. #. type: table
  24278. #: guix-git/doc/guix.texi:16743
  24279. 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."
  24280. msgstr ""
  24281. #. type: item
  24282. #: guix-git/doc/guix.texi:16744
  24283. #, no-wrap
  24284. msgid "@code{chdir} (default: @code{#f})"
  24285. msgstr ""
  24286. #. type: table
  24287. #: guix-git/doc/guix.texi:16747
  24288. msgid "This option accepts, as a string, a directory path that will be changed to before login."
  24289. msgstr ""
  24290. #. type: item
  24291. #: guix-git/doc/guix.texi:16748
  24292. #, no-wrap
  24293. msgid "@code{delay} (default: @code{#f})"
  24294. msgstr ""
  24295. #. type: table
  24296. #: guix-git/doc/guix.texi:16751
  24297. msgid "This options accepts, as an integer, the number of seconds to sleep before opening the tty and displaying the login prompt."
  24298. msgstr ""
  24299. #. type: item
  24300. #: guix-git/doc/guix.texi:16752
  24301. #, no-wrap
  24302. msgid "@code{nice} (default: @code{#f})"
  24303. msgstr ""
  24304. #. type: table
  24305. #: guix-git/doc/guix.texi:16755
  24306. msgid "This option accepts, as an integer, the nice value with which to run the @command{login} program."
  24307. msgstr ""
  24308. #. type: item
  24309. #: guix-git/doc/guix.texi:16756 guix-git/doc/guix.texi:17060
  24310. #: guix-git/doc/guix.texi:17979 guix-git/doc/guix.texi:26167
  24311. #: guix-git/doc/guix.texi:27554 guix-git/doc/guix.texi:29984
  24312. #: guix-git/doc/guix.texi:30811 guix-git/doc/guix.texi:32568
  24313. #: guix-git/doc/guix.texi:35083
  24314. #, no-wrap
  24315. msgid "@code{extra-options} (default: @code{'()})"
  24316. msgstr ""
  24317. #. type: table
  24318. #: guix-git/doc/guix.texi:16759
  24319. msgid "This option provides an ``escape hatch'' for the user to provide arbitrary command-line arguments to @command{agetty} as a list of strings."
  24320. msgstr ""
  24321. #. type: item
  24322. #: guix-git/doc/guix.texi:16760
  24323. #, fuzzy, no-wrap
  24324. msgid "@code{shepherd-requirement} (default: @code{'()})"
  24325. msgstr "@code{features} (@code{'()})"
  24326. #. type: table
  24327. #: guix-git/doc/guix.texi:16763
  24328. msgid "The option can be used to provides extra shepherd requirements (for example @code{'syslogd}) to the respective @code{'term-}* shepherd service."
  24329. msgstr ""
  24330. #. type: deffn
  24331. #: guix-git/doc/guix.texi:16767
  24332. #, no-wrap
  24333. msgid "{Scheme Procedure} kmscon-service-type @var{config}"
  24334. msgstr ""
  24335. #. type: deffn
  24336. #: guix-git/doc/guix.texi:16771
  24337. 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."
  24338. msgstr ""
  24339. #. type: deftp
  24340. #: guix-git/doc/guix.texi:16773
  24341. #, no-wrap
  24342. msgid "{Data Type} kmscon-configuration"
  24343. msgstr ""
  24344. #. type: deftp
  24345. #: guix-git/doc/guix.texi:16776
  24346. msgid "This is the data type representing the configuration of Kmscon, which implements virtual console log-in."
  24347. msgstr ""
  24348. #. type: code{#1}
  24349. #: guix-git/doc/guix.texi:16779
  24350. #, no-wrap
  24351. msgid "virtual-terminal"
  24352. msgstr ""
  24353. #. type: table
  24354. #: guix-git/doc/guix.texi:16781
  24355. msgid "The name of the console this Kmscon runs on---e.g., @code{\"tty1\"}."
  24356. msgstr ""
  24357. #. type: item
  24358. #: guix-git/doc/guix.texi:16782
  24359. #, no-wrap
  24360. msgid "@code{login-program} (default: @code{#~(string-append #$shadow \"/bin/login\")})"
  24361. msgstr ""
  24362. #. type: table
  24363. #: guix-git/doc/guix.texi:16785
  24364. msgid "A gexp denoting the name of the log-in program. The default log-in program is @command{login} from the Shadow tool suite."
  24365. msgstr ""
  24366. #. type: item
  24367. #: guix-git/doc/guix.texi:16786
  24368. #, no-wrap
  24369. msgid "@code{login-arguments} (default: @code{'(\"-p\")})"
  24370. msgstr ""
  24371. #. type: table
  24372. #: guix-git/doc/guix.texi:16788
  24373. msgid "A list of arguments to pass to @command{login}."
  24374. msgstr ""
  24375. #. type: item
  24376. #: guix-git/doc/guix.texi:16793
  24377. #, no-wrap
  24378. msgid "@code{hardware-acceleration?} (default: #f)"
  24379. msgstr ""
  24380. #. type: table
  24381. #: guix-git/doc/guix.texi:16795
  24382. msgid "Whether to use hardware acceleration."
  24383. msgstr ""
  24384. #. type: item
  24385. #: guix-git/doc/guix.texi:16796
  24386. #, fuzzy, no-wrap
  24387. msgid "@code{font-engine} (default: @code{\"pango\"})"
  24388. msgstr "@code{journal-content}(默认值:@code{#f})"
  24389. #. type: table
  24390. #: guix-git/doc/guix.texi:16798
  24391. msgid "Font engine used in Kmscon."
  24392. msgstr ""
  24393. #. type: item
  24394. #: guix-git/doc/guix.texi:16799
  24395. #, fuzzy, no-wrap
  24396. msgid "@code{font-size} (default: @code{12})"
  24397. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  24398. #. type: table
  24399. #: guix-git/doc/guix.texi:16801
  24400. msgid "Font size used in Kmscon."
  24401. msgstr ""
  24402. #. type: table
  24403. #: guix-git/doc/guix.texi:16805
  24404. msgid "If this is @code{#f}, Kmscon uses the default keyboard layout---usually US English (``qwerty'') for a 105-key PC keyboard."
  24405. msgstr ""
  24406. #. type: table
  24407. #: guix-git/doc/guix.texi:16809
  24408. 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."
  24409. msgstr ""
  24410. #. type: item
  24411. #: guix-git/doc/guix.texi:16810
  24412. #, no-wrap
  24413. msgid "@code{kmscon} (default: @var{kmscon})"
  24414. msgstr ""
  24415. #. type: table
  24416. #: guix-git/doc/guix.texi:16812
  24417. msgid "The Kmscon package to use."
  24418. msgstr ""
  24419. #. type: cindex
  24420. #: guix-git/doc/guix.texi:16816
  24421. #, no-wrap
  24422. msgid "name service cache daemon"
  24423. msgstr ""
  24424. #. type: cindex
  24425. #: guix-git/doc/guix.texi:16817
  24426. #, no-wrap
  24427. msgid "nscd"
  24428. msgstr ""
  24429. #. type: deffn
  24430. #: guix-git/doc/guix.texi:16818
  24431. #, no-wrap
  24432. msgid "{Scheme Procedure} nscd-service [@var{config}] [#:glibc glibc] @"
  24433. msgstr ""
  24434. #. type: deffn
  24435. #: guix-git/doc/guix.texi:16823
  24436. 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."
  24437. msgstr ""
  24438. #. type: deffn
  24439. #: guix-git/doc/guix.texi:16825
  24440. msgid "For convenience, the Shepherd service for nscd provides the following actions:"
  24441. msgstr ""
  24442. #. type: item
  24443. #: guix-git/doc/guix.texi:16827
  24444. #, no-wrap
  24445. msgid "invalidate"
  24446. msgstr ""
  24447. #. type: cindex
  24448. #: guix-git/doc/guix.texi:16828
  24449. #, no-wrap
  24450. msgid "cache invalidation, nscd"
  24451. msgstr ""
  24452. #. type: cindex
  24453. #: guix-git/doc/guix.texi:16829
  24454. #, no-wrap
  24455. msgid "nscd, cache invalidation"
  24456. msgstr ""
  24457. #. type: table
  24458. #: guix-git/doc/guix.texi:16831
  24459. msgid "This invalidate the given cache. For instance, running:"
  24460. msgstr ""
  24461. #. type: example
  24462. #: guix-git/doc/guix.texi:16834
  24463. #, no-wrap
  24464. msgid "herd invalidate nscd hosts\n"
  24465. msgstr ""
  24466. #. type: table
  24467. #: guix-git/doc/guix.texi:16838
  24468. msgid "invalidates the host name lookup cache of nscd."
  24469. msgstr ""
  24470. #. type: item
  24471. #: guix-git/doc/guix.texi:16839
  24472. #, no-wrap
  24473. msgid "statistics"
  24474. msgstr ""
  24475. #. type: table
  24476. #: guix-git/doc/guix.texi:16842
  24477. msgid "Running @command{herd statistics nscd} displays information about nscd usage and caches."
  24478. msgstr ""
  24479. #. type: defvr
  24480. #: guix-git/doc/guix.texi:16846
  24481. #, no-wrap
  24482. msgid "{Scheme Variable} %nscd-default-configuration"
  24483. msgstr ""
  24484. #. type: defvr
  24485. #: guix-git/doc/guix.texi:16850
  24486. 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."
  24487. msgstr ""
  24488. #. type: deftp
  24489. #: guix-git/doc/guix.texi:16852
  24490. #, no-wrap
  24491. msgid "{Data Type} nscd-configuration"
  24492. msgstr ""
  24493. #. type: deftp
  24494. #: guix-git/doc/guix.texi:16855
  24495. msgid "This is the data type representing the name service cache daemon (nscd) configuration."
  24496. msgstr ""
  24497. #. type: item
  24498. #: guix-git/doc/guix.texi:16858
  24499. #, no-wrap
  24500. msgid "@code{name-services} (default: @code{'()})"
  24501. msgstr ""
  24502. #. type: table
  24503. #: guix-git/doc/guix.texi:16861
  24504. msgid "List of packages denoting @dfn{name services} that must be visible to the nscd---e.g., @code{(list @var{nss-mdns})}."
  24505. msgstr ""
  24506. #. type: item
  24507. #: guix-git/doc/guix.texi:16862
  24508. #, no-wrap
  24509. msgid "@code{glibc} (default: @var{glibc})"
  24510. msgstr ""
  24511. #. type: table
  24512. #: guix-git/doc/guix.texi:16865
  24513. msgid "Package object denoting the GNU C Library providing the @command{nscd} command."
  24514. msgstr ""
  24515. #. type: item
  24516. #: guix-git/doc/guix.texi:16866
  24517. #, no-wrap
  24518. msgid "@code{log-file} (default: @code{\"/var/log/nscd.log\"})"
  24519. msgstr ""
  24520. #. type: table
  24521. #: guix-git/doc/guix.texi:16869
  24522. msgid "Name of the nscd log file. This is where debugging output goes when @code{debug-level} is strictly positive."
  24523. msgstr ""
  24524. #. type: item
  24525. #: guix-git/doc/guix.texi:16870
  24526. #, no-wrap
  24527. msgid "@code{debug-level} (default: @code{0})"
  24528. msgstr ""
  24529. #. type: table
  24530. #: guix-git/doc/guix.texi:16873
  24531. msgid "Integer denoting the debugging levels. Higher numbers mean that more debugging output is logged."
  24532. msgstr ""
  24533. #. type: item
  24534. #: guix-git/doc/guix.texi:16874
  24535. #, fuzzy, no-wrap
  24536. msgid "@code{caches} (default: @code{%nscd-default-caches})"
  24537. msgstr "@code{xfce}(默认值:@code{xfce})"
  24538. #. type: table
  24539. #: guix-git/doc/guix.texi:16877
  24540. msgid "List of @code{<nscd-cache>} objects denoting things to be cached; see below."
  24541. msgstr ""
  24542. #. type: deftp
  24543. #: guix-git/doc/guix.texi:16881
  24544. #, no-wrap
  24545. msgid "{Data Type} nscd-cache"
  24546. msgstr ""
  24547. #. type: deftp
  24548. #: guix-git/doc/guix.texi:16883
  24549. msgid "Data type representing a cache database of nscd and its parameters."
  24550. msgstr ""
  24551. #. type: cindex
  24552. #: guix-git/doc/guix.texi:16886 guix-git/doc/guix.texi:22056
  24553. #, no-wrap
  24554. msgid "database"
  24555. msgstr ""
  24556. #. type: table
  24557. #: guix-git/doc/guix.texi:16891
  24558. 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})."
  24559. msgstr ""
  24560. #. type: code{#1}
  24561. #: guix-git/doc/guix.texi:16892
  24562. #, no-wrap
  24563. msgid "positive-time-to-live"
  24564. msgstr ""
  24565. #. type: itemx
  24566. #: guix-git/doc/guix.texi:16893
  24567. #, no-wrap
  24568. msgid "@code{negative-time-to-live} (default: @code{20})"
  24569. msgstr ""
  24570. #. type: table
  24571. #: guix-git/doc/guix.texi:16896
  24572. msgid "A number representing the number of seconds during which a positive or negative lookup result remains in cache."
  24573. msgstr ""
  24574. #. type: item
  24575. #: guix-git/doc/guix.texi:16897
  24576. #, no-wrap
  24577. msgid "@code{check-files?} (default: @code{#t})"
  24578. msgstr ""
  24579. #. type: table
  24580. #: guix-git/doc/guix.texi:16900
  24581. msgid "Whether to check for updates of the files corresponding to @var{database}."
  24582. msgstr ""
  24583. #. type: table
  24584. #: guix-git/doc/guix.texi:16904
  24585. 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."
  24586. msgstr ""
  24587. #. type: item
  24588. #: guix-git/doc/guix.texi:16905
  24589. #, no-wrap
  24590. msgid "@code{persistent?} (default: @code{#t})"
  24591. msgstr ""
  24592. #. type: table
  24593. #: guix-git/doc/guix.texi:16907
  24594. msgid "Whether the cache should be stored persistently on disk."
  24595. msgstr ""
  24596. #. type: item
  24597. #: guix-git/doc/guix.texi:16908
  24598. #, no-wrap
  24599. msgid "@code{shared?} (default: @code{#t})"
  24600. msgstr ""
  24601. #. type: table
  24602. #: guix-git/doc/guix.texi:16910
  24603. msgid "Whether the cache should be shared among users."
  24604. msgstr ""
  24605. #. type: item
  24606. #: guix-git/doc/guix.texi:16911
  24607. #, no-wrap
  24608. msgid "@code{max-database-size} (default: 32@tie{}MiB)"
  24609. msgstr ""
  24610. #. type: table
  24611. #: guix-git/doc/guix.texi:16913
  24612. msgid "Maximum size in bytes of the database cache."
  24613. msgstr ""
  24614. #. type: defvr
  24615. #: guix-git/doc/guix.texi:16920
  24616. #, no-wrap
  24617. msgid "{Scheme Variable} %nscd-default-caches"
  24618. msgstr ""
  24619. #. type: defvr
  24620. #: guix-git/doc/guix.texi:16923
  24621. msgid "List of @code{<nscd-cache>} objects used by default by @code{nscd-configuration} (see above)."
  24622. msgstr ""
  24623. #. type: defvr
  24624. #: guix-git/doc/guix.texi:16929
  24625. 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."
  24626. msgstr ""
  24627. #. type: anchor{#1}
  24628. #: guix-git/doc/guix.texi:16932
  24629. msgid "syslog-configuration-type"
  24630. msgstr ""
  24631. #. type: cindex
  24632. #: guix-git/doc/guix.texi:16932 guix-git/doc/guix.texi:16948
  24633. #, no-wrap
  24634. msgid "syslog"
  24635. msgstr ""
  24636. #. type: cindex
  24637. #: guix-git/doc/guix.texi:16933 guix-git/doc/guix.texi:17536
  24638. #, no-wrap
  24639. msgid "logging"
  24640. msgstr ""
  24641. #. type: deftp
  24642. #: guix-git/doc/guix.texi:16934
  24643. #, no-wrap
  24644. msgid "{Data Type} syslog-configuration"
  24645. msgstr ""
  24646. #. type: deftp
  24647. #: guix-git/doc/guix.texi:16936
  24648. msgid "This data type represents the configuration of the syslog daemon."
  24649. msgstr ""
  24650. #. type: item
  24651. #: guix-git/doc/guix.texi:16938
  24652. #, no-wrap
  24653. msgid "@code{syslogd} (default: @code{#~(string-append #$inetutils \"/libexec/syslogd\")})"
  24654. msgstr ""
  24655. #. type: table
  24656. #: guix-git/doc/guix.texi:16940
  24657. msgid "The syslog daemon to use."
  24658. msgstr ""
  24659. #. type: item
  24660. #: guix-git/doc/guix.texi:16941
  24661. #, no-wrap
  24662. msgid "@code{config-file} (default: @code{%default-syslog.conf})"
  24663. msgstr ""
  24664. #. type: table
  24665. #: guix-git/doc/guix.texi:16943
  24666. msgid "The syslog configuration file to use."
  24667. msgstr ""
  24668. #. type: anchor{#1}
  24669. #: guix-git/doc/guix.texi:16948
  24670. msgid "syslog-service"
  24671. msgstr ""
  24672. #. type: deffn
  24673. #: guix-git/doc/guix.texi:16949
  24674. #, no-wrap
  24675. msgid "{Scheme Procedure} syslog-service @var{config}"
  24676. msgstr ""
  24677. #. type: deffn
  24678. #: guix-git/doc/guix.texi:16951
  24679. msgid "Return a service that runs a syslog daemon according to @var{config}."
  24680. msgstr ""
  24681. #. type: deffn
  24682. #: guix-git/doc/guix.texi:16954
  24683. msgid "@xref{syslogd invocation,,, inetutils, GNU Inetutils}, for more information on the configuration file syntax."
  24684. msgstr ""
  24685. #. type: defvr
  24686. #: guix-git/doc/guix.texi:16956
  24687. #, no-wrap
  24688. msgid "{Scheme Variable} guix-service-type"
  24689. msgstr ""
  24690. #. type: defvr
  24691. #: guix-git/doc/guix.texi:16960
  24692. 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."
  24693. msgstr ""
  24694. #. type: anchor{#1}
  24695. #: guix-git/doc/guix.texi:16963
  24696. msgid "guix-configuration-type"
  24697. msgstr ""
  24698. #. type: deftp
  24699. #: guix-git/doc/guix.texi:16963
  24700. #, no-wrap
  24701. msgid "{Data Type} guix-configuration"
  24702. msgstr ""
  24703. #. type: deftp
  24704. #: guix-git/doc/guix.texi:16966
  24705. msgid "This data type represents the configuration of the Guix build daemon. @xref{Invoking guix-daemon}, for more information."
  24706. msgstr ""
  24707. #. type: item
  24708. #: guix-git/doc/guix.texi:16968
  24709. #, no-wrap
  24710. msgid "@code{guix} (default: @var{guix})"
  24711. msgstr ""
  24712. #. type: table
  24713. #: guix-git/doc/guix.texi:16970 guix-git/doc/guix.texi:17259
  24714. msgid "The Guix package to use."
  24715. msgstr ""
  24716. #. type: item
  24717. #: guix-git/doc/guix.texi:16971
  24718. #, no-wrap
  24719. msgid "@code{build-group} (default: @code{\"guixbuild\"})"
  24720. msgstr ""
  24721. #. type: table
  24722. #: guix-git/doc/guix.texi:16973
  24723. msgid "Name of the group for build user accounts."
  24724. msgstr ""
  24725. #. type: item
  24726. #: guix-git/doc/guix.texi:16974
  24727. #, no-wrap
  24728. msgid "@code{build-accounts} (default: @code{10})"
  24729. msgstr ""
  24730. #. type: table
  24731. #: guix-git/doc/guix.texi:16976
  24732. msgid "Number of build user accounts to create."
  24733. msgstr ""
  24734. #. type: item
  24735. #: guix-git/doc/guix.texi:16977
  24736. #, no-wrap
  24737. msgid "@code{authorize-key?} (default: @code{#t})"
  24738. msgstr ""
  24739. #. type: table
  24740. #: guix-git/doc/guix.texi:16984
  24741. 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})."
  24742. msgstr ""
  24743. #. type: table
  24744. #: guix-git/doc/guix.texi:16990
  24745. 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."
  24746. msgstr ""
  24747. #. type: quotation
  24748. #: guix-git/doc/guix.texi:16997
  24749. 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}."
  24750. msgstr ""
  24751. #. type: vindex
  24752. #: guix-git/doc/guix.texi:16999
  24753. #, no-wrap
  24754. msgid "%default-authorized-guix-keys"
  24755. msgstr ""
  24756. #. type: item
  24757. #: guix-git/doc/guix.texi:17000
  24758. #, fuzzy, no-wrap
  24759. msgid "@code{authorized-keys} (default: @code{%default-authorized-guix-keys})"
  24760. msgstr "@code{mate}(默认值:@code{mate})"
  24761. #. type: table
  24762. #: guix-git/doc/guix.texi:17006
  24763. 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."
  24764. msgstr ""
  24765. #. type: item
  24766. #: guix-git/doc/guix.texi:17007
  24767. #, no-wrap
  24768. msgid "@code{use-substitutes?} (default: @code{#t})"
  24769. msgstr ""
  24770. #. type: table
  24771. #: guix-git/doc/guix.texi:17009
  24772. msgid "Whether to use substitutes."
  24773. msgstr ""
  24774. #. type: item
  24775. #: guix-git/doc/guix.texi:17010 guix-git/doc/guix.texi:30081
  24776. #, fuzzy, no-wrap
  24777. msgid "@code{substitute-urls} (default: @code{%default-substitute-urls})"
  24778. msgstr "@code{mate}(默认值:@code{mate})"
  24779. #. type: table
  24780. #: guix-git/doc/guix.texi:17012 guix-git/doc/guix.texi:30083
  24781. msgid "The list of URLs where to look for substitutes by default."
  24782. msgstr ""
  24783. #. type: table
  24784. #: guix-git/doc/guix.texi:17019
  24785. 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:"
  24786. msgstr ""
  24787. #. type: lisp
  24788. #: guix-git/doc/guix.texi:17028
  24789. #, no-wrap
  24790. msgid ""
  24791. "(guix-configuration\n"
  24792. " (substitute-urls\n"
  24793. " (append (list \"https://guix.example.org\")\n"
  24794. " %default-substitute-urls))\n"
  24795. " (authorized-keys\n"
  24796. " (append (list (local-file \"./guix.example.org-key.pub\"))\n"
  24797. " %default-authorized-guix-keys)))\n"
  24798. msgstr ""
  24799. #. type: table
  24800. #: guix-git/doc/guix.texi:17033
  24801. 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."
  24802. msgstr ""
  24803. #. type: item
  24804. #: guix-git/doc/guix.texi:17034
  24805. #, fuzzy, no-wrap
  24806. msgid "@code{generate-substitute-key?} (default: @code{#t})"
  24807. msgstr "@code{mate}(默认值:@code{mate})"
  24808. #. type: table
  24809. #: guix-git/doc/guix.texi:17038
  24810. msgid "Whether to generate a @dfn{substitute key pair} under @file{/etc/guix/signing-key.pub} and @file{/etc/guix/signing-key.sec} if there is not already one."
  24811. msgstr ""
  24812. #. type: table
  24813. #: guix-git/doc/guix.texi:17045
  24814. msgid "This key pair is used when exporting store items, for instance with @command{guix publish} (@pxref{Invoking guix publish}) or @command{guix archive} (@pxref{Invoking guix archive}). Generating a key pair takes a few seconds when enough entropy is available and is only done once; you might want to turn it off for instance in a virtual machine that does not need it and where the extra boot time is a problem."
  24815. msgstr ""
  24816. #. type: item
  24817. #: guix-git/doc/guix.texi:17046
  24818. #, no-wrap
  24819. msgid "@code{max-silent-time} (default: @code{0})"
  24820. msgstr ""
  24821. #. type: itemx
  24822. #: guix-git/doc/guix.texi:17047
  24823. #, no-wrap
  24824. msgid "@code{timeout} (default: @code{0})"
  24825. msgstr ""
  24826. #. type: table
  24827. #: guix-git/doc/guix.texi:17051
  24828. 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."
  24829. msgstr ""
  24830. #. type: item
  24831. #: guix-git/doc/guix.texi:17052
  24832. #, fuzzy, no-wrap
  24833. #| msgid "@code{compression-level} (default: @code{3})"
  24834. msgid "@code{log-compression} (default: @code{'gzip})"
  24835. msgstr "@code{compression-level}(默认值:@code{3})"
  24836. #. type: table
  24837. #: guix-git/doc/guix.texi:17055
  24838. msgid "The type of compression used for build logs---one of @code{gzip}, @code{bzip2}, or @code{none}."
  24839. msgstr ""
  24840. #. type: item
  24841. #: guix-git/doc/guix.texi:17056
  24842. #, fuzzy, no-wrap
  24843. msgid "@code{discover?} (default: @code{#f})"
  24844. msgstr "@code{speed}(默认值:@code{1.0})"
  24845. #. type: table
  24846. #: guix-git/doc/guix.texi:17062
  24847. msgid "List of extra command-line options for @command{guix-daemon}."
  24848. msgstr ""
  24849. #. type: item
  24850. #: guix-git/doc/guix.texi:17063
  24851. #, no-wrap
  24852. msgid "@code{log-file} (default: @code{\"/var/log/guix-daemon.log\"})"
  24853. msgstr ""
  24854. #. type: table
  24855. #: guix-git/doc/guix.texi:17066
  24856. msgid "File where @command{guix-daemon}'s standard output and standard error are written."
  24857. msgstr ""
  24858. #. type: cindex
  24859. #: guix-git/doc/guix.texi:17067
  24860. #, no-wrap
  24861. msgid "HTTP proxy, for @code{guix-daemon}"
  24862. msgstr ""
  24863. #. type: cindex
  24864. #: guix-git/doc/guix.texi:17068
  24865. #, no-wrap
  24866. msgid "proxy, for @code{guix-daemon} HTTP access"
  24867. msgstr ""
  24868. #. type: item
  24869. #: guix-git/doc/guix.texi:17069
  24870. #, no-wrap
  24871. msgid "@code{http-proxy} (default: @code{#f})"
  24872. msgstr ""
  24873. #. type: table
  24874. #: guix-git/doc/guix.texi:17072
  24875. msgid "The URL of the HTTP and HTTPS proxy used for downloading fixed-output derivations and substitutes."
  24876. msgstr ""
  24877. #. type: table
  24878. #: guix-git/doc/guix.texi:17075
  24879. msgid "It is also possible to change the daemon's proxy at run time through the @code{set-http-proxy} action, which restarts it:"
  24880. msgstr ""
  24881. #. type: example
  24882. #: guix-git/doc/guix.texi:17078
  24883. #, no-wrap
  24884. msgid "herd set-http-proxy guix-daemon http://localhost:8118\n"
  24885. msgstr ""
  24886. #. type: table
  24887. #: guix-git/doc/guix.texi:17081
  24888. msgid "To clear the proxy settings, run:"
  24889. msgstr ""
  24890. #. type: example
  24891. #: guix-git/doc/guix.texi:17084
  24892. #, fuzzy, no-wrap
  24893. msgid "herd set-http-proxy guix-daemon\n"
  24894. msgstr "安全,guix-daemon"
  24895. #. type: item
  24896. #: guix-git/doc/guix.texi:17086
  24897. #, no-wrap
  24898. msgid "@code{tmpdir} (default: @code{#f})"
  24899. msgstr ""
  24900. #. type: table
  24901. #: guix-git/doc/guix.texi:17088
  24902. msgid "A directory path where the @command{guix-daemon} will perform builds."
  24903. msgstr ""
  24904. #. type: deffn
  24905. #: guix-git/doc/guix.texi:17092
  24906. #, no-wrap
  24907. msgid "{Scheme Procedure} udev-service [#:udev @var{eudev} #:rules @code{'()}]"
  24908. msgstr ""
  24909. #. type: deffn
  24910. #: guix-git/doc/guix.texi:17098
  24911. 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."
  24912. msgstr ""
  24913. #. type: deffn
  24914. #: guix-git/doc/guix.texi:17101
  24915. msgid "The @command{herd rules udev} command, as root, returns the name of the directory containing all the active udev rules."
  24916. msgstr ""
  24917. #. type: deffn
  24918. #: guix-git/doc/guix.texi:17103
  24919. #, no-wrap
  24920. msgid "{Scheme Procedure} udev-rule [@var{file-name} @var{contents}]"
  24921. msgstr ""
  24922. #. type: deffn
  24923. #: guix-git/doc/guix.texi:17106
  24924. msgid "Return a udev-rule file named @var{file-name} containing the rules defined by the @var{contents} literal."
  24925. msgstr ""
  24926. #. type: deffn
  24927. #: guix-git/doc/guix.texi:17110
  24928. 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."
  24929. msgstr ""
  24930. #. type: lisp
  24931. #: guix-git/doc/guix.texi:17118
  24932. #, no-wrap
  24933. msgid ""
  24934. "(define %example-udev-rule\n"
  24935. " (udev-rule\n"
  24936. " \"90-usb-thing.rules\"\n"
  24937. " (string-append \"ACTION==\\\"add\\\", SUBSYSTEM==\\\"usb\\\", \"\n"
  24938. " \"ATTR@{product@}==\\\"Example\\\", \"\n"
  24939. " \"RUN+=\\\"/path/to/script\\\"\")))\n"
  24940. msgstr ""
  24941. #. type: deffn
  24942. #: guix-git/doc/guix.texi:17121
  24943. #, no-wrap
  24944. msgid "{Scheme Procedure} udev-rules-service [@var{name} @var{rules}] @"
  24945. msgstr ""
  24946. #. type: deffn
  24947. #: guix-git/doc/guix.texi:17128
  24948. 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."
  24949. msgstr ""
  24950. #. type: deffn
  24951. #: guix-git/doc/guix.texi:17131
  24952. msgid "Here we show how it can be used to extend @code{udev-service-type} with the previously defined rule @code{%example-udev-rule}."
  24953. msgstr ""
  24954. #. type: lisp
  24955. #: guix-git/doc/guix.texi:17138
  24956. #, no-wrap
  24957. msgid ""
  24958. "(operating-system\n"
  24959. " ;; @dots{}\n"
  24960. " (services\n"
  24961. " (cons (udev-rules-service 'usb-thing %example-udev-rule)\n"
  24962. " %desktop-services)))\n"
  24963. msgstr ""
  24964. #. type: deffn
  24965. #: guix-git/doc/guix.texi:17141
  24966. #, no-wrap
  24967. msgid "{Scheme Procedure} file->udev-rule [@var{file-name} @var{file}]"
  24968. msgstr ""
  24969. #. type: deffn
  24970. #: guix-git/doc/guix.texi:17144
  24971. msgid "Return a udev file named @var{file-name} containing the rules defined within @var{file}, a file-like object."
  24972. msgstr ""
  24973. #. type: deffn
  24974. #: guix-git/doc/guix.texi:17146
  24975. msgid "The following example showcases how we can use an existing rule file."
  24976. msgstr ""
  24977. #. type: lisp
  24978. #: guix-git/doc/guix.texi:17151
  24979. #, no-wrap
  24980. msgid ""
  24981. "(use-modules (guix download) ;for url-fetch\n"
  24982. " (guix packages) ;for origin\n"
  24983. " @dots{})\n"
  24984. "\n"
  24985. msgstr ""
  24986. #. type: lisp
  24987. #: guix-git/doc/guix.texi:17162
  24988. #, no-wrap
  24989. msgid ""
  24990. "(define %android-udev-rules\n"
  24991. " (file->udev-rule\n"
  24992. " \"51-android-udev.rules\"\n"
  24993. " (let ((version \"20170910\"))\n"
  24994. " (origin\n"
  24995. " (method url-fetch)\n"
  24996. " (uri (string-append \"https://raw.githubusercontent.com/M0Rf30/\"\n"
  24997. " \"android-udev-rules/\" version \"/51-android.rules\"))\n"
  24998. " (sha256\n"
  24999. " (base32 \"0lmmagpyb6xsq6zcr2w1cyx9qmjqmajkvrdbhjx32gqf1d9is003\"))))))\n"
  25000. msgstr ""
  25001. #. type: Plain text
  25002. #: guix-git/doc/guix.texi:17171
  25003. 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."
  25004. msgstr ""
  25005. #. type: Plain text
  25006. #: guix-git/doc/guix.texi:17180
  25007. 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."
  25008. msgstr ""
  25009. #. type: lisp
  25010. #: guix-git/doc/guix.texi:17185
  25011. #, no-wrap
  25012. msgid ""
  25013. "(use-modules (gnu packages android) ;for android-udev-rules\n"
  25014. " (gnu system shadow) ;for user-group\n"
  25015. " @dots{})\n"
  25016. "\n"
  25017. msgstr ""
  25018. #. type: lisp
  25019. #: guix-git/doc/guix.texi:17198
  25020. #, no-wrap
  25021. msgid ""
  25022. "(operating-system\n"
  25023. " ;; @dots{}\n"
  25024. " (users (cons (user-account\n"
  25025. " ;; @dots{}\n"
  25026. " (supplementary-groups\n"
  25027. " '(\"adbusers\" ;for adb\n"
  25028. " \"wheel\" \"netdev\" \"audio\" \"video\")))))\n"
  25029. " ;; @dots{}\n"
  25030. " (services\n"
  25031. " (cons (udev-rules-service 'android android-udev-rules\n"
  25032. " #:groups '(\"adbusers\"))\n"
  25033. " %desktop-services)))\n"
  25034. msgstr ""
  25035. #. type: defvr
  25036. #: guix-git/doc/guix.texi:17200
  25037. #, no-wrap
  25038. msgid "{Scheme Variable} urandom-seed-service-type"
  25039. msgstr ""
  25040. #. type: defvr
  25041. #: guix-git/doc/guix.texi:17205
  25042. 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."
  25043. msgstr ""
  25044. #. type: defvr
  25045. #: guix-git/doc/guix.texi:17207
  25046. #, no-wrap
  25047. msgid "{Scheme Variable} %random-seed-file"
  25048. msgstr ""
  25049. #. type: defvr
  25050. #: guix-git/doc/guix.texi:17211
  25051. 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}."
  25052. msgstr ""
  25053. #. type: cindex
  25054. #: guix-git/doc/guix.texi:17213
  25055. #, no-wrap
  25056. msgid "mouse"
  25057. msgstr ""
  25058. #. type: cindex
  25059. #: guix-git/doc/guix.texi:17214
  25060. #, no-wrap
  25061. msgid "gpm"
  25062. msgstr ""
  25063. #. type: defvr
  25064. #: guix-git/doc/guix.texi:17215
  25065. #, no-wrap
  25066. msgid "{Scheme Variable} gpm-service-type"
  25067. msgstr ""
  25068. #. type: defvr
  25069. #: guix-git/doc/guix.texi:17220
  25070. 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."
  25071. msgstr ""
  25072. #. type: defvr
  25073. #: guix-git/doc/guix.texi:17223
  25074. 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}."
  25075. msgstr ""
  25076. #. type: deftp
  25077. #: guix-git/doc/guix.texi:17225
  25078. #, no-wrap
  25079. msgid "{Data Type} gpm-configuration"
  25080. msgstr ""
  25081. #. type: deftp
  25082. #: guix-git/doc/guix.texi:17227
  25083. msgid "Data type representing the configuration of GPM."
  25084. msgstr ""
  25085. #. type: item
  25086. #: guix-git/doc/guix.texi:17229
  25087. #, no-wrap
  25088. msgid "@code{options} (default: @code{%default-gpm-options})"
  25089. msgstr ""
  25090. #. type: table
  25091. #: guix-git/doc/guix.texi:17234
  25092. 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."
  25093. msgstr ""
  25094. #. type: item
  25095. #: guix-git/doc/guix.texi:17235
  25096. #, no-wrap
  25097. msgid "@code{gpm} (default: @code{gpm})"
  25098. msgstr ""
  25099. #. type: table
  25100. #: guix-git/doc/guix.texi:17237
  25101. msgid "The GPM package to use."
  25102. msgstr ""
  25103. #. type: anchor{#1}
  25104. #: guix-git/doc/guix.texi:17242
  25105. msgid "guix-publish-service-type"
  25106. msgstr ""
  25107. #. type: deffn
  25108. #: guix-git/doc/guix.texi:17242
  25109. #, no-wrap
  25110. msgid "{Scheme Variable} guix-publish-service-type"
  25111. msgstr ""
  25112. #. type: deffn
  25113. #: guix-git/doc/guix.texi:17246
  25114. 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."
  25115. msgstr ""
  25116. #. type: deffn
  25117. #: guix-git/doc/guix.texi:17250
  25118. 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."
  25119. msgstr ""
  25120. #. type: deftp
  25121. #: guix-git/doc/guix.texi:17252
  25122. #, no-wrap
  25123. msgid "{Data Type} guix-publish-configuration"
  25124. msgstr ""
  25125. #. type: deftp
  25126. #: guix-git/doc/guix.texi:17255
  25127. msgid "Data type representing the configuration of the @code{guix publish} service."
  25128. msgstr ""
  25129. #. type: item
  25130. #: guix-git/doc/guix.texi:17257
  25131. #, no-wrap
  25132. msgid "@code{guix} (default: @code{guix})"
  25133. msgstr ""
  25134. #. type: item
  25135. #: guix-git/doc/guix.texi:17260 guix-git/doc/guix.texi:32423
  25136. #, no-wrap
  25137. msgid "@code{port} (default: @code{80})"
  25138. msgstr ""
  25139. #. type: table
  25140. #: guix-git/doc/guix.texi:17262
  25141. msgid "The TCP port to listen for connections."
  25142. msgstr ""
  25143. #. type: item
  25144. #: guix-git/doc/guix.texi:17263 guix-git/doc/guix.texi:29964
  25145. #: guix-git/doc/guix.texi:33804
  25146. #, no-wrap
  25147. msgid "@code{host} (default: @code{\"localhost\"})"
  25148. msgstr ""
  25149. #. type: table
  25150. #: guix-git/doc/guix.texi:17266
  25151. msgid "The host (and thus, network interface) to listen to. Use @code{\"0.0.0.0\"} to listen on all the network interfaces."
  25152. msgstr ""
  25153. #. type: item
  25154. #: guix-git/doc/guix.texi:17267
  25155. #, fuzzy, no-wrap
  25156. msgid "@code{advertise?} (default: @code{#f})"
  25157. msgstr "@code{challenge}(默认值:@code{#f})"
  25158. #. type: table
  25159. #: guix-git/doc/guix.texi:17270
  25160. msgid "When true, advertise the service on the local network @i{via} the DNS-SD protocol, using Avahi."
  25161. msgstr ""
  25162. #. type: table
  25163. #: guix-git/doc/guix.texi:17274
  25164. 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."
  25165. msgstr ""
  25166. #. type: item
  25167. #: guix-git/doc/guix.texi:17275
  25168. #, fuzzy, no-wrap
  25169. msgid "@code{compression} (default: @code{'((\"gzip\" 3) (\"zstd\" 3))})"
  25170. msgstr "@code{compression-level}(默认值:@code{3})"
  25171. #. type: table
  25172. #: guix-git/doc/guix.texi:17279
  25173. 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:"
  25174. msgstr ""
  25175. #. type: lisp
  25176. #: guix-git/doc/guix.texi:17282
  25177. #, no-wrap
  25178. msgid "'((\"lzip\" 7) (\"gzip\" 9))\n"
  25179. msgstr ""
  25180. #. type: table
  25181. #: guix-git/doc/guix.texi:17288
  25182. 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."
  25183. msgstr ""
  25184. #. type: table
  25185. #: guix-git/doc/guix.texi:17290
  25186. msgid "An empty list disables compression altogether."
  25187. msgstr ""
  25188. #. type: item
  25189. #: guix-git/doc/guix.texi:17291
  25190. #, no-wrap
  25191. msgid "@code{nar-path} (default: @code{\"nar\"})"
  25192. msgstr ""
  25193. #. type: table
  25194. #: guix-git/doc/guix.texi:17294
  25195. msgid "The URL path at which ``nars'' can be fetched. @xref{Invoking guix publish, @option{--nar-path}}, for details."
  25196. msgstr ""
  25197. #. type: item
  25198. #: guix-git/doc/guix.texi:17295
  25199. #, no-wrap
  25200. msgid "@code{cache} (default: @code{#f})"
  25201. msgstr ""
  25202. #. type: table
  25203. #: guix-git/doc/guix.texi:17301
  25204. 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."
  25205. msgstr ""
  25206. #. type: item
  25207. #: guix-git/doc/guix.texi:17302
  25208. #, no-wrap
  25209. msgid "@code{workers} (default: @code{#f})"
  25210. msgstr ""
  25211. #. type: table
  25212. #: guix-git/doc/guix.texi:17306
  25213. 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."
  25214. msgstr ""
  25215. #. type: item
  25216. #: guix-git/doc/guix.texi:17307
  25217. #, no-wrap
  25218. msgid "@code{cache-bypass-threshold} (default: 10 MiB)"
  25219. msgstr ""
  25220. #. type: table
  25221. #: guix-git/doc/guix.texi:17312
  25222. 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."
  25223. msgstr ""
  25224. #. type: item
  25225. #: guix-git/doc/guix.texi:17313 guix-git/doc/guix.texi:34305
  25226. #, no-wrap
  25227. msgid "@code{ttl} (default: @code{#f})"
  25228. msgstr ""
  25229. #. type: table
  25230. #: guix-git/doc/guix.texi:17317
  25231. 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."
  25232. msgstr ""
  25233. #. type: item
  25234. #: guix-git/doc/guix.texi:17318 guix-git/doc/guix.texi:34313
  25235. #, fuzzy, no-wrap
  25236. msgid "@code{negative-ttl} (default: @code{#f})"
  25237. msgstr "@code{challenge}(默认值:@code{#f})"
  25238. #. type: table
  25239. #: guix-git/doc/guix.texi:17322
  25240. msgid "When it is an integer, this denotes the @dfn{time-to-live} in seconds for the negative lookups. @xref{Invoking guix publish, @option{--negative-ttl}}, for more information."
  25241. msgstr ""
  25242. #. type: anchor{#1}
  25243. #: guix-git/doc/guix.texi:17326
  25244. msgid "rngd-service"
  25245. msgstr ""
  25246. #. type: deffn
  25247. #: guix-git/doc/guix.texi:17326
  25248. #, no-wrap
  25249. msgid "{Scheme Procedure} rngd-service [#:rng-tools @var{rng-tools}] @"
  25250. msgstr ""
  25251. #. type: deffn
  25252. #: guix-git/doc/guix.texi:17331
  25253. 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."
  25254. msgstr ""
  25255. #. type: anchor{#1}
  25256. #: guix-git/doc/guix.texi:17334
  25257. msgid "pam-limits-service"
  25258. msgstr ""
  25259. #. type: cindex
  25260. #: guix-git/doc/guix.texi:17334
  25261. #, no-wrap
  25262. msgid "session limits"
  25263. msgstr ""
  25264. #. type: cindex
  25265. #: guix-git/doc/guix.texi:17335
  25266. #, no-wrap
  25267. msgid "ulimit"
  25268. msgstr ""
  25269. #. type: cindex
  25270. #: guix-git/doc/guix.texi:17336
  25271. #, no-wrap
  25272. msgid "priority"
  25273. msgstr ""
  25274. #. type: cindex
  25275. #: guix-git/doc/guix.texi:17337
  25276. #, no-wrap
  25277. msgid "realtime"
  25278. msgstr ""
  25279. #. type: cindex
  25280. #: guix-git/doc/guix.texi:17338
  25281. #, no-wrap
  25282. msgid "jackd"
  25283. msgstr ""
  25284. #. type: cindex
  25285. #: guix-git/doc/guix.texi:17339
  25286. #, no-wrap
  25287. msgid "nofile"
  25288. msgstr ""
  25289. #. type: cindex
  25290. #: guix-git/doc/guix.texi:17340
  25291. #, fuzzy, no-wrap
  25292. msgid "open file descriptors"
  25293. msgstr "简介和描述"
  25294. #. type: deffn
  25295. #: guix-git/doc/guix.texi:17341
  25296. #, no-wrap
  25297. msgid "{Scheme Procedure} pam-limits-service [#:limits @code{'()}]"
  25298. msgstr ""
  25299. #. type: deffn
  25300. #: guix-git/doc/guix.texi:17348
  25301. 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."
  25302. msgstr ""
  25303. #. type: deffn
  25304. #: guix-git/doc/guix.texi:17351
  25305. msgid "The following limits definition sets two hard and soft limits for all login sessions of users in the @code{realtime} group:"
  25306. msgstr ""
  25307. #. type: lisp
  25308. #: guix-git/doc/guix.texi:17357
  25309. #, no-wrap
  25310. msgid ""
  25311. "(pam-limits-service\n"
  25312. " (list\n"
  25313. " (pam-limits-entry \"@@realtime\" 'both 'rtprio 99)\n"
  25314. " (pam-limits-entry \"@@realtime\" 'both 'memlock 'unlimited)))\n"
  25315. msgstr ""
  25316. #. type: deffn
  25317. #: guix-git/doc/guix.texi:17363
  25318. 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."
  25319. msgstr ""
  25320. #. type: deffn
  25321. #: guix-git/doc/guix.texi:17366
  25322. msgid "Another useful example is raising the maximum number of open file descriptors that can be used:"
  25323. msgstr ""
  25324. #. type: lisp
  25325. #: guix-git/doc/guix.texi:17371
  25326. #, no-wrap
  25327. msgid ""
  25328. "(pam-limits-service\n"
  25329. " (list\n"
  25330. " (pam-limits-entry \"*\" 'both 'nofile 100000)))\n"
  25331. msgstr ""
  25332. #. type: deffn
  25333. #: guix-git/doc/guix.texi:17379
  25334. 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."
  25335. msgstr ""
  25336. #. type: cindex
  25337. #: guix-git/doc/guix.texi:17384 guix-git/doc/guix.texi:38518
  25338. #, no-wrap
  25339. msgid "cron"
  25340. msgstr ""
  25341. #. type: cindex
  25342. #: guix-git/doc/guix.texi:17385 guix-git/doc/guix.texi:38519
  25343. #, no-wrap
  25344. msgid "mcron"
  25345. msgstr ""
  25346. #. type: cindex
  25347. #: guix-git/doc/guix.texi:17386 guix-git/doc/guix.texi:38520
  25348. #, no-wrap
  25349. msgid "scheduling jobs"
  25350. msgstr ""
  25351. #. type: Plain text
  25352. #: guix-git/doc/guix.texi:17393
  25353. 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."
  25354. msgstr ""
  25355. #. type: Plain text
  25356. #: guix-git/doc/guix.texi:17401
  25357. 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})."
  25358. msgstr ""
  25359. #. type: lisp
  25360. #: guix-git/doc/guix.texi:17405
  25361. #, no-wrap
  25362. msgid ""
  25363. "(use-modules (guix) (gnu) (gnu services mcron))\n"
  25364. "(use-package-modules base idutils)\n"
  25365. "\n"
  25366. msgstr ""
  25367. #. type: lisp
  25368. #: guix-git/doc/guix.texi:17415
  25369. #, no-wrap
  25370. msgid ""
  25371. "(define updatedb-job\n"
  25372. " ;; Run 'updatedb' at 3AM every day. Here we write the\n"
  25373. " ;; job's action as a Scheme procedure.\n"
  25374. " #~(job '(next-hour '(3))\n"
  25375. " (lambda ()\n"
  25376. " (execl (string-append #$findutils \"/bin/updatedb\")\n"
  25377. " \"updatedb\"\n"
  25378. " \"--prunepaths=/tmp /var/tmp /gnu/store\"))\n"
  25379. " \"updatedb\"))\n"
  25380. "\n"
  25381. msgstr ""
  25382. #. type: lisp
  25383. #: guix-git/doc/guix.texi:17421
  25384. #, no-wrap
  25385. msgid ""
  25386. "(define garbage-collector-job\n"
  25387. " ;; Collect garbage 5 minutes after midnight every day.\n"
  25388. " ;; The job's action is a shell command.\n"
  25389. " #~(job \"5 0 * * *\" ;Vixie cron syntax\n"
  25390. " \"guix gc -F 1G\"))\n"
  25391. "\n"
  25392. msgstr ""
  25393. #. type: lisp
  25394. #: guix-git/doc/guix.texi:17428
  25395. #, no-wrap
  25396. msgid ""
  25397. "(define idutils-job\n"
  25398. " ;; Update the index database as user \"charlie\" at 12:15PM\n"
  25399. " ;; and 19:15PM. This runs from the user's home directory.\n"
  25400. " #~(job '(next-minute-from (next-hour '(12 19)) '(15))\n"
  25401. " (string-append #$idutils \"/bin/mkid src\")\n"
  25402. " #:user \"charlie\"))\n"
  25403. "\n"
  25404. msgstr ""
  25405. #. type: lisp
  25406. #: guix-git/doc/guix.texi:17431
  25407. #, no-wrap
  25408. msgid ""
  25409. "(operating-system\n"
  25410. " ;; @dots{}\n"
  25411. "\n"
  25412. msgstr ""
  25413. #. type: lisp
  25414. #: guix-git/doc/guix.texi:17441
  25415. #, no-wrap
  25416. msgid ""
  25417. " ;; %BASE-SERVICES already includes an instance of\n"
  25418. " ;; 'mcron-service-type', which we extend with additional\n"
  25419. " ;; jobs using 'simple-service'.\n"
  25420. " (services (cons (simple-service 'my-cron-jobs\n"
  25421. " mcron-service-type\n"
  25422. " (list garbage-collector-job\n"
  25423. " updatedb-job\n"
  25424. " idutils-job))\n"
  25425. " %base-services)))\n"
  25426. msgstr ""
  25427. #. type: quotation
  25428. #: guix-git/doc/guix.texi:17443
  25429. #, fuzzy, no-wrap
  25430. #| msgid "Top"
  25431. msgid "Tip"
  25432. msgstr "Top"
  25433. #. type: quotation
  25434. #: guix-git/doc/guix.texi:17449
  25435. 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!"
  25436. msgstr ""
  25437. #. type: Plain text
  25438. #: guix-git/doc/guix.texi:17456
  25439. 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."
  25440. msgstr ""
  25441. #. type: lisp
  25442. #: guix-git/doc/guix.texi:17472
  25443. #, no-wrap
  25444. msgid ""
  25445. "(define %battery-alert-job\n"
  25446. " ;; Beep when the battery percentage falls below %MIN-LEVEL.\n"
  25447. " #~(job\n"
  25448. " '(next-minute (range 0 60 1))\n"
  25449. " #$(program-file\n"
  25450. " \"battery-alert.scm\"\n"
  25451. " (with-imported-modules (source-module-closure\n"
  25452. " '((guix build utils)))\n"
  25453. " #~(begin\n"
  25454. " (use-modules (guix build utils)\n"
  25455. " (ice-9 popen)\n"
  25456. " (ice-9 regex)\n"
  25457. " (ice-9 textual-ports)\n"
  25458. " (srfi srfi-2))\n"
  25459. "\n"
  25460. msgstr ""
  25461. #. type: lisp
  25462. #: guix-git/doc/guix.texi:17474
  25463. #, no-wrap
  25464. msgid ""
  25465. " (define %min-level 20)\n"
  25466. "\n"
  25467. msgstr ""
  25468. #. type: lisp
  25469. #: guix-git/doc/guix.texi:17485
  25470. #, no-wrap
  25471. msgid ""
  25472. " (setenv \"LC_ALL\" \"C\") ;ensure English output\n"
  25473. " (and-let* ((input-pipe (open-pipe*\n"
  25474. " OPEN_READ\n"
  25475. " #$(file-append acpi \"/bin/acpi\")))\n"
  25476. " (output (get-string-all input-pipe))\n"
  25477. " (m (string-match \"Discharging, ([0-9]+)%\" output))\n"
  25478. " (level (string->number (match:substring m 1)))\n"
  25479. " ((< level %min-level)))\n"
  25480. " (format #t \"warning: Battery level is low (~a%)~%\" level)\n"
  25481. " (invoke #$(file-append beep \"/bin/beep\") \"-r5\")))))))\n"
  25482. msgstr ""
  25483. #. type: Plain text
  25484. #: guix-git/doc/guix.texi:17490
  25485. 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."
  25486. msgstr ""
  25487. #. type: Plain text
  25488. #: guix-git/doc/guix.texi:17493
  25489. 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:"
  25490. msgstr ""
  25491. #. type: example
  25492. #: guix-git/doc/guix.texi:17496
  25493. #, no-wrap
  25494. msgid "# herd schedule mcron\n"
  25495. msgstr ""
  25496. #. type: Plain text
  25497. #: guix-git/doc/guix.texi:17501
  25498. msgid "The example above lists the next five tasks that will be executed, but you can also specify the number of tasks to display:"
  25499. msgstr ""
  25500. #. type: example
  25501. #: guix-git/doc/guix.texi:17504
  25502. #, no-wrap
  25503. msgid "# herd schedule mcron 10\n"
  25504. msgstr ""
  25505. #. type: defvr
  25506. #: guix-git/doc/guix.texi:17506
  25507. #, no-wrap
  25508. msgid "{Scheme Variable} mcron-service-type"
  25509. msgstr ""
  25510. #. type: defvr
  25511. #: guix-git/doc/guix.texi:17509
  25512. msgid "This is the type of the @code{mcron} service, whose value is an @code{mcron-configuration} object."
  25513. msgstr ""
  25514. #. type: defvr
  25515. #: guix-git/doc/guix.texi:17514 guix-git/doc/guix.texi:38539
  25516. 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."
  25517. msgstr ""
  25518. #. type: deftp
  25519. #: guix-git/doc/guix.texi:17516
  25520. #, no-wrap
  25521. msgid "{Data Type} mcron-configuration"
  25522. msgstr ""
  25523. #. type: deftp
  25524. #: guix-git/doc/guix.texi:17518 guix-git/doc/guix.texi:38543
  25525. msgid "Data type representing the configuration of mcron."
  25526. msgstr ""
  25527. #. type: item
  25528. #: guix-git/doc/guix.texi:17520 guix-git/doc/guix.texi:38545
  25529. #, no-wrap
  25530. msgid "@code{mcron} (default: @var{mcron})"
  25531. msgstr ""
  25532. #. type: table
  25533. #: guix-git/doc/guix.texi:17522 guix-git/doc/guix.texi:38547
  25534. msgid "The mcron package to use."
  25535. msgstr ""
  25536. #. type: code{#1}
  25537. #: guix-git/doc/guix.texi:17523 guix-git/doc/guix.texi:17592
  25538. #: guix-git/doc/guix.texi:38548
  25539. #, no-wrap
  25540. msgid "jobs"
  25541. msgstr ""
  25542. #. type: table
  25543. #: guix-git/doc/guix.texi:17527 guix-git/doc/guix.texi:38552
  25544. 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})."
  25545. msgstr ""
  25546. #. type: cindex
  25547. #: guix-git/doc/guix.texi:17534
  25548. #, no-wrap
  25549. msgid "rottlog"
  25550. msgstr ""
  25551. #. type: cindex
  25552. #: guix-git/doc/guix.texi:17535
  25553. #, no-wrap
  25554. msgid "log rotation"
  25555. msgstr ""
  25556. #. type: Plain text
  25557. #: guix-git/doc/guix.texi:17542
  25558. 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})."
  25559. msgstr ""
  25560. #. type: Plain text
  25561. #: guix-git/doc/guix.texi:17548
  25562. 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):"
  25563. msgstr ""
  25564. #. type: lisp
  25565. #: guix-git/doc/guix.texi:17552
  25566. #, no-wrap
  25567. msgid ""
  25568. "(use-modules (guix) (gnu))\n"
  25569. "(use-service-modules admin)\n"
  25570. "\n"
  25571. msgstr ""
  25572. #. type: lisp
  25573. #: guix-git/doc/guix.texi:17556
  25574. #, no-wrap
  25575. msgid ""
  25576. "(define my-log-files\n"
  25577. " ;; Log files that I want to rotate.\n"
  25578. " '(\"/var/log/something.log\" \"/var/log/another.log\"))\n"
  25579. "\n"
  25580. msgstr ""
  25581. #. type: lisp
  25582. #: guix-git/doc/guix.texi:17565
  25583. #, no-wrap
  25584. msgid ""
  25585. "(operating-system\n"
  25586. " ;; @dots{}\n"
  25587. " (services (cons (simple-service 'rotate-my-stuff\n"
  25588. " rottlog-service-type\n"
  25589. " (list (log-rotation\n"
  25590. " (frequency 'daily)\n"
  25591. " (files my-log-files))))\n"
  25592. " %base-services)))\n"
  25593. msgstr ""
  25594. #. type: defvr
  25595. #: guix-git/doc/guix.texi:17567
  25596. #, no-wrap
  25597. msgid "{Scheme Variable} rottlog-service-type"
  25598. msgstr ""
  25599. #. type: defvr
  25600. #: guix-git/doc/guix.texi:17570
  25601. msgid "This is the type of the Rottlog service, whose value is a @code{rottlog-configuration} object."
  25602. msgstr ""
  25603. #. type: defvr
  25604. #: guix-git/doc/guix.texi:17573
  25605. msgid "Other services can extend this one with new @code{log-rotation} objects (see below), thereby augmenting the set of files to be rotated."
  25606. msgstr ""
  25607. #. type: defvr
  25608. #: guix-git/doc/guix.texi:17576
  25609. msgid "This service type can define mcron jobs (@pxref{Scheduled Job Execution}) to run the rottlog service."
  25610. msgstr ""
  25611. #. type: deftp
  25612. #: guix-git/doc/guix.texi:17578
  25613. #, no-wrap
  25614. msgid "{Data Type} rottlog-configuration"
  25615. msgstr ""
  25616. #. type: deftp
  25617. #: guix-git/doc/guix.texi:17580
  25618. msgid "Data type representing the configuration of rottlog."
  25619. msgstr ""
  25620. #. type: item
  25621. #: guix-git/doc/guix.texi:17582
  25622. #, no-wrap
  25623. msgid "@code{rottlog} (default: @code{rottlog})"
  25624. msgstr ""
  25625. #. type: table
  25626. #: guix-git/doc/guix.texi:17584
  25627. msgid "The Rottlog package to use."
  25628. msgstr ""
  25629. #. type: item
  25630. #: guix-git/doc/guix.texi:17585
  25631. #, no-wrap
  25632. msgid "@code{rc-file} (default: @code{(file-append rottlog \"/etc/rc\")})"
  25633. msgstr ""
  25634. #. type: table
  25635. #: guix-git/doc/guix.texi:17588
  25636. msgid "The Rottlog configuration file to use (@pxref{Mandatory RC Variables,,, rottlog, GNU Rot[t]log Manual})."
  25637. msgstr ""
  25638. #. type: item
  25639. #: guix-git/doc/guix.texi:17589
  25640. #, no-wrap
  25641. msgid "@code{rotations} (default: @code{%default-rotations})"
  25642. msgstr ""
  25643. #. type: table
  25644. #: guix-git/doc/guix.texi:17591
  25645. msgid "A list of @code{log-rotation} objects as defined below."
  25646. msgstr ""
  25647. #. type: table
  25648. #: guix-git/doc/guix.texi:17595
  25649. msgid "This is a list of gexps where each gexp corresponds to an mcron job specification (@pxref{Scheduled Job Execution})."
  25650. msgstr ""
  25651. #. type: deftp
  25652. #: guix-git/doc/guix.texi:17598
  25653. #, no-wrap
  25654. msgid "{Data Type} log-rotation"
  25655. msgstr ""
  25656. #. type: deftp
  25657. #: guix-git/doc/guix.texi:17600
  25658. msgid "Data type representing the rotation of a group of log files."
  25659. msgstr ""
  25660. #. type: deftp
  25661. #: guix-git/doc/guix.texi:17604
  25662. 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:"
  25663. msgstr ""
  25664. #. type: lisp
  25665. #: guix-git/doc/guix.texi:17613
  25666. #, no-wrap
  25667. msgid ""
  25668. "(log-rotation\n"
  25669. " (frequency 'daily)\n"
  25670. " (files '(\"/var/log/apache/*\"))\n"
  25671. " (options '(\"storedir apache-archives\"\n"
  25672. " \"rotate 6\"\n"
  25673. " \"notifempty\"\n"
  25674. " \"nocompress\")))\n"
  25675. msgstr ""
  25676. #. type: deftp
  25677. #: guix-git/doc/guix.texi:17616
  25678. msgid "The list of fields is as follows:"
  25679. msgstr ""
  25680. #. type: item
  25681. #: guix-git/doc/guix.texi:17618
  25682. #, no-wrap
  25683. msgid "@code{frequency} (default: @code{'weekly})"
  25684. msgstr ""
  25685. #. type: table
  25686. #: guix-git/doc/guix.texi:17620
  25687. msgid "The log rotation frequency, a symbol."
  25688. msgstr ""
  25689. #. type: table
  25690. #: guix-git/doc/guix.texi:17623
  25691. msgid "The list of files or file glob patterns to rotate."
  25692. msgstr ""
  25693. #. type: item
  25694. #: guix-git/doc/guix.texi:17624
  25695. #, no-wrap
  25696. msgid "@code{options} (default: @code{'()})"
  25697. msgstr ""
  25698. #. type: table
  25699. #: guix-git/doc/guix.texi:17627
  25700. msgid "The list of rottlog options for this rotation (@pxref{Configuration parameters,,, rottlog, GNU Rot[t]lg Manual})."
  25701. msgstr ""
  25702. #. type: item
  25703. #: guix-git/doc/guix.texi:17628
  25704. #, no-wrap
  25705. msgid "@code{post-rotate} (default: @code{#f})"
  25706. msgstr ""
  25707. #. type: table
  25708. #: guix-git/doc/guix.texi:17630
  25709. msgid "Either @code{#f} or a gexp to execute once the rotation has completed."
  25710. msgstr ""
  25711. #. type: defvr
  25712. #: guix-git/doc/guix.texi:17633
  25713. #, no-wrap
  25714. msgid "{Scheme Variable} %default-rotations"
  25715. msgstr ""
  25716. #. type: defvr
  25717. #: guix-git/doc/guix.texi:17636
  25718. msgid "Specifies weekly rotation of @code{%rotated-files} and of @file{/var/log/guix-daemon.log}."
  25719. msgstr ""
  25720. #. type: defvr
  25721. #: guix-git/doc/guix.texi:17638
  25722. #, no-wrap
  25723. msgid "{Scheme Variable} %rotated-files"
  25724. msgstr ""
  25725. #. type: defvr
  25726. #: guix-git/doc/guix.texi:17642
  25727. 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\")}."
  25728. msgstr ""
  25729. #. type: Plain text
  25730. #: guix-git/doc/guix.texi:17655
  25731. msgid "The @code{(gnu services networking)} module provides services to configure network interfaces and set up networking on your machine. Those services provide different ways for you to set up your machine: by declaring a static network configuration, by running a Dynamic Host Configuration Protocol (DHCP) client, or by running daemons such as NetworkManager and Connman that automate the whole process, automatically adapt to connectivity changes, and provide a high-level user interface."
  25732. msgstr ""
  25733. #. type: Plain text
  25734. #: guix-git/doc/guix.texi:17661
  25735. msgid "On a laptop, NetworkManager and Connman are by far the most convenient options, which is why the default desktop services include NetworkManager (@pxref{Desktop Services, @code{%desktop-services}}). For a server, or for a virtual machine or a container, static network configuration or a simple DHCP client are often more appropriate."
  25736. msgstr ""
  25737. #. type: Plain text
  25738. #: guix-git/doc/guix.texi:17664
  25739. msgid "This section describes the various network setup services available, starting with static network configuration."
  25740. msgstr ""
  25741. #. type: defvr
  25742. #: guix-git/doc/guix.texi:17665
  25743. #, no-wrap
  25744. msgid "{Scheme Variable} static-networking-service-type"
  25745. msgstr ""
  25746. #. type: defvr
  25747. #: guix-git/doc/guix.texi:17670
  25748. msgid "This is the type for statically-configured network interfaces. Its value must be a list of @code{static-networking} records. Each of them declares a set of @dfn{addresses}, @dfn{routes}, and @dfn{links}, as show below."
  25749. msgstr ""
  25750. #. type: cindex
  25751. #: guix-git/doc/guix.texi:17671
  25752. #, no-wrap
  25753. msgid "network interface controller (NIC)"
  25754. msgstr ""
  25755. #. type: cindex
  25756. #: guix-git/doc/guix.texi:17672
  25757. #, no-wrap
  25758. msgid "NIC, networking interface controller"
  25759. msgstr ""
  25760. #. type: defvr
  25761. #: guix-git/doc/guix.texi:17675
  25762. msgid "Here is the simplest configuration, with only one network interface controller (NIC) and only IPv4 connectivity:"
  25763. msgstr ""
  25764. #. type: lisp
  25765. #: guix-git/doc/guix.texi:17689
  25766. #, no-wrap
  25767. msgid ""
  25768. ";; Static networking for one NIC, IPv4-only.\n"
  25769. "(service static-networking-service-type\n"
  25770. " (list (static-networking\n"
  25771. " (addresses\n"
  25772. " (list (network-address\n"
  25773. " (device \"eno1\")\n"
  25774. " (value \"10.0.2.15/24\"))))\n"
  25775. " (routes\n"
  25776. " (list (network-route\n"
  25777. " (destination \"default\")\n"
  25778. " (gateway \"10.0.2.2\"))))\n"
  25779. " (name-servers '(\"10.0.2.3\")))))\n"
  25780. msgstr ""
  25781. #. type: defvr
  25782. #: guix-git/doc/guix.texi:17698
  25783. msgid "The snippet above can be added to the @code{services} field of your operating system configuration (@pxref{Using the Configuration System}). It will configure your machine to have 10.0.2.15 as its IP address, with a 24-bit netmask for the local network---meaning that any 10.0.2.@var{x} address is on the local area network (LAN). Traffic to addresses outside the local network is routed @i{via} 10.0.2.2. Host names are resolved by sending domain name system (DNS) queries to 10.0.2.3."
  25784. msgstr ""
  25785. #. type: deftp
  25786. #: guix-git/doc/guix.texi:17700
  25787. #, fuzzy, no-wrap
  25788. msgid "{Data Type} static-networking"
  25789. msgstr "{数据类型} build-machine"
  25790. #. type: deftp
  25791. #: guix-git/doc/guix.texi:17702
  25792. #, fuzzy
  25793. msgid "This is the data type representing a static network configuration."
  25794. msgstr "管理操作系统配置。"
  25795. #. type: deftp
  25796. #: guix-git/doc/guix.texi:17706
  25797. msgid "As an example, here is how you would declare the configuration of a machine with a single network interface controller (NIC) available as @code{eno1}, and with one IPv4 and one IPv6 address:"
  25798. msgstr ""
  25799. #. type: lisp
  25800. #: guix-git/doc/guix.texi:17723
  25801. #, no-wrap
  25802. msgid ""
  25803. ";; Network configuration for one NIC, IPv4 + IPv6.\n"
  25804. "(static-networking\n"
  25805. " (addresses (list (network-address\n"
  25806. " (device \"eno1\")\n"
  25807. " (value \"10.0.2.15/24\"))\n"
  25808. " (network-address\n"
  25809. " (device \"eno1\")\n"
  25810. " (value \"2001:123:4567:101::1/64\"))))\n"
  25811. " (routes (list (network-route\n"
  25812. " (destination \"default\")\n"
  25813. " (gateway \"10.0.2.2\"))\n"
  25814. " (network-route\n"
  25815. " (destination \"default\")\n"
  25816. " (gateway \"2020:321:4567:42::1\"))))\n"
  25817. " (name-servers '(\"10.0.2.3\")))\n"
  25818. msgstr ""
  25819. #. type: deftp
  25820. #: guix-git/doc/guix.texi:17729
  25821. msgid "If you are familiar with the @command{ip} command of the @uref{https://wiki.linuxfoundation.org/networking/iproute2, @code{iproute2} package} found on Linux-based systems, the declaration above is equivalent to typing:"
  25822. msgstr ""
  25823. #. type: example
  25824. #: guix-git/doc/guix.texi:17735
  25825. #, no-wrap
  25826. msgid ""
  25827. "ip address add 10.0.2.15/24 dev eno1\n"
  25828. "ip address add 2001:123:4567:101::1/64 dev eno1\n"
  25829. "ip route add default via inet 10.0.2.2\n"
  25830. "ip route add default via inet6 2020:321:4567:42::1\n"
  25831. msgstr ""
  25832. #. type: deftp
  25833. #: guix-git/doc/guix.texi:17740
  25834. msgid "Run @command{man 8 ip} for more info. Venerable GNU/Linux users will certainly know how to do it with @command{ifconfig} and @command{route}, but we'll spare you that."
  25835. msgstr ""
  25836. #. type: deftp
  25837. #: guix-git/doc/guix.texi:17742
  25838. msgid "The available fields of this data type are as follows:"
  25839. msgstr ""
  25840. #. type: code{#1}
  25841. #: guix-git/doc/guix.texi:17744
  25842. #, no-wrap
  25843. msgid "addresses"
  25844. msgstr ""
  25845. #. type: itemx
  25846. #: guix-git/doc/guix.texi:17745
  25847. #, fuzzy, no-wrap
  25848. msgid "@code{links} (default: @code{'()})"
  25849. msgstr "@code{features} (@code{'()})"
  25850. #. type: itemx
  25851. #: guix-git/doc/guix.texi:17746
  25852. #, fuzzy, no-wrap
  25853. msgid "@code{routes} (default: @code{'()})"
  25854. msgstr "@code{features} (@code{'()})"
  25855. #. type: table
  25856. #: guix-git/doc/guix.texi:17749
  25857. msgid "The list of @code{network-address}, @code{network-link}, and @code{network-route} records for this network (see below)."
  25858. msgstr ""
  25859. #. type: item
  25860. #: guix-git/doc/guix.texi:17750
  25861. #, fuzzy, no-wrap
  25862. msgid "@code{name-servers} (default: @code{'()})"
  25863. msgstr "@code{features} (@code{'()})"
  25864. #. type: table
  25865. #: guix-git/doc/guix.texi:17753
  25866. msgid "The list of IP addresses (strings) of domain name servers. These IP addresses go to @file{/etc/resolv.conf}."
  25867. msgstr ""
  25868. #. type: item
  25869. #: guix-git/doc/guix.texi:17754
  25870. #, fuzzy, no-wrap
  25871. msgid "@code{provision} (default: @code{'(networking)})"
  25872. msgstr "@code{includes}(默认值:@code{'()})"
  25873. #. type: table
  25874. #: guix-git/doc/guix.texi:17757
  25875. msgid "If true, this should be a list of symbols for the Shepherd service corresponding to this network configuration."
  25876. msgstr ""
  25877. #. type: item
  25878. #: guix-git/doc/guix.texi:17758
  25879. #, fuzzy, no-wrap
  25880. msgid "@code{requirement} (default @code{'()})"
  25881. msgstr "@code{features} (@code{'()})"
  25882. #. type: table
  25883. #: guix-git/doc/guix.texi:17760
  25884. msgid "The list of Shepherd services depended on."
  25885. msgstr ""
  25886. #. type: deftp
  25887. #: guix-git/doc/guix.texi:17763
  25888. #, fuzzy, no-wrap
  25889. msgid "{Data Type} network-address"
  25890. msgstr "{数据类型} build-machine"
  25891. #. type: deftp
  25892. #: guix-git/doc/guix.texi:17766
  25893. #, fuzzy
  25894. msgid "This is the data type representing the IP address of a network interface."
  25895. msgstr "管理操作系统配置。"
  25896. #. type: table
  25897. #: guix-git/doc/guix.texi:17771
  25898. msgid "The name of the network interface for this address---e.g., @code{\"eno1\"}."
  25899. msgstr ""
  25900. #. type: item
  25901. #: guix-git/doc/guix.texi:17772
  25902. #, no-wrap
  25903. msgid "value"
  25904. msgstr ""
  25905. #. type: table
  25906. #: guix-git/doc/guix.texi:17776
  25907. msgid "The actual IP address and network mask, in @uref{https://en.wikipedia.org/wiki/CIDR#CIDR_notation, @acronym{CIDR, Classless Inter-Domain Routing} notation}, as a string."
  25908. msgstr ""
  25909. #. type: table
  25910. #: guix-git/doc/guix.texi:17780
  25911. msgid "For example, @code{\"10.0.2.15/24\"} denotes IPv4 address 10.0.2.15 on a 24-bit sub-network---all 10.0.2.@var{x} addresses are on the same local network."
  25912. msgstr ""
  25913. #. type: item
  25914. #: guix-git/doc/guix.texi:17781
  25915. #, no-wrap
  25916. msgid "ipv6?"
  25917. msgstr ""
  25918. #. type: table
  25919. #: guix-git/doc/guix.texi:17784
  25920. msgid "Whether @code{value} denotes an IPv6 address. By default this is automatically determined."
  25921. msgstr ""
  25922. #. type: deftp
  25923. #: guix-git/doc/guix.texi:17787
  25924. #, fuzzy, no-wrap
  25925. msgid "{Data Type} network-route"
  25926. msgstr "{数据类型} build-machine"
  25927. #. type: deftp
  25928. #: guix-git/doc/guix.texi:17789
  25929. #, fuzzy
  25930. msgid "This is the data type representing a network route."
  25931. msgstr "管理操作系统配置。"
  25932. #. type: code{#1}
  25933. #: guix-git/doc/guix.texi:17791
  25934. #, fuzzy, no-wrap
  25935. #| msgid "deduplication"
  25936. msgid "destination"
  25937. msgstr "去重"
  25938. #. type: table
  25939. #: guix-git/doc/guix.texi:17794
  25940. msgid "The route destination (a string), either an IP address or @code{\"default\"} to denote the default route."
  25941. msgstr ""
  25942. #. type: item
  25943. #: guix-git/doc/guix.texi:17795
  25944. #, fuzzy, no-wrap
  25945. msgid "@code{source} (default: @code{#f})"
  25946. msgstr "@code{port}(默认值:@code{22})"
  25947. #. type: table
  25948. #: guix-git/doc/guix.texi:17797
  25949. #, fuzzy
  25950. #| msgid "The rottlog service."
  25951. msgid "The route source."
  25952. msgstr "rottlog服务。"
  25953. #. type: item
  25954. #: guix-git/doc/guix.texi:17798 guix-git/doc/guix.texi:35805
  25955. #, no-wrap
  25956. msgid "@code{device} (default: @code{#f})"
  25957. msgstr ""
  25958. #. type: table
  25959. #: guix-git/doc/guix.texi:17800
  25960. msgid "The device used for this route---e.g., @code{\"eno2\"}."
  25961. msgstr ""
  25962. #. type: item
  25963. #: guix-git/doc/guix.texi:17801
  25964. #, fuzzy, no-wrap
  25965. msgid "@code{ipv6?} (default: auto)"
  25966. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  25967. #. type: table
  25968. #: guix-git/doc/guix.texi:17804
  25969. msgid "Whether this is an IPv6 route. By default this is automatically determined based on @code{destination} or @code{gateway}."
  25970. msgstr ""
  25971. #. type: item
  25972. #: guix-git/doc/guix.texi:17805
  25973. #, fuzzy, no-wrap
  25974. msgid "@code{gateway} (default: @code{#f})"
  25975. msgstr "@code{challenge}(默认值:@code{#f})"
  25976. #. type: table
  25977. #: guix-git/doc/guix.texi:17807
  25978. msgid "IP address (a string) through which traffic is routed."
  25979. msgstr ""
  25980. #. type: deftp
  25981. #: guix-git/doc/guix.texi:17810
  25982. #, fuzzy, no-wrap
  25983. msgid "{Data Type} network-link"
  25984. msgstr "{数据类型} build-machine"
  25985. #. type: deftp
  25986. #: guix-git/doc/guix.texi:17813
  25987. msgid "Data type for a network link (@pxref{Link,,, guile-netlink, Guile-Netlink Manual})."
  25988. msgstr ""
  25989. #. type: table
  25990. #: guix-git/doc/guix.texi:17817
  25991. msgid "The name of the link---e.g., @code{\"v0p0\"}."
  25992. msgstr ""
  25993. #. type: table
  25994. #: guix-git/doc/guix.texi:17820
  25995. msgid "A symbol denoting the type of the link---e.g., @code{'veth}."
  25996. msgstr ""
  25997. #. type: item
  25998. #: guix-git/doc/guix.texi:17821
  25999. #, no-wrap
  26000. msgid "arguments"
  26001. msgstr ""
  26002. #. type: table
  26003. #: guix-git/doc/guix.texi:17823
  26004. msgid "List of arguments for this type of link."
  26005. msgstr ""
  26006. #. type: cindex
  26007. #: guix-git/doc/guix.texi:17826
  26008. #, no-wrap
  26009. msgid "loopback device"
  26010. msgstr ""
  26011. #. type: defvr
  26012. #: guix-git/doc/guix.texi:17827
  26013. #, no-wrap
  26014. msgid "{Scheme Variable} %loopback-static-networking"
  26015. msgstr ""
  26016. #. type: defvr
  26017. #: guix-git/doc/guix.texi:17831
  26018. msgid "This is the @code{static-networking} record representing the ``loopback device'', @code{lo}, for IP addresses 127.0.0.1 and ::1, and providing the @code{loopback} Shepherd service."
  26019. msgstr ""
  26020. #. type: cindex
  26021. #: guix-git/doc/guix.texi:17833
  26022. #, no-wrap
  26023. msgid "networking, with QEMU"
  26024. msgstr ""
  26025. #. type: cindex
  26026. #: guix-git/doc/guix.texi:17834
  26027. #, no-wrap
  26028. msgid "QEMU, networking"
  26029. msgstr ""
  26030. #. type: defvr
  26031. #: guix-git/doc/guix.texi:17835
  26032. #, no-wrap
  26033. msgid "{Scheme Variable} %qemu-static-networking"
  26034. msgstr ""
  26035. #. type: defvr
  26036. #: guix-git/doc/guix.texi:17839
  26037. msgid "This is the @code{static-networking} record representing network setup when using QEMU's user-mode network stack on @code{eth0} (@pxref{Using the user mode network stack,,, QEMU, QEMU Documentation})."
  26038. msgstr ""
  26039. #. type: cindex
  26040. #: guix-git/doc/guix.texi:17841
  26041. #, no-wrap
  26042. msgid "DHCP, networking service"
  26043. msgstr ""
  26044. #. type: defvr
  26045. #: guix-git/doc/guix.texi:17842
  26046. #, no-wrap
  26047. msgid "{Scheme Variable} dhcp-client-service-type"
  26048. msgstr ""
  26049. #. type: defvr
  26050. #: guix-git/doc/guix.texi:17846
  26051. 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."
  26052. msgstr ""
  26053. #. type: cindex
  26054. #: guix-git/doc/guix.texi:17848
  26055. #, no-wrap
  26056. msgid "NetworkManager"
  26057. msgstr ""
  26058. #. type: defvr
  26059. #: guix-git/doc/guix.texi:17850
  26060. #, no-wrap
  26061. msgid "{Scheme Variable} network-manager-service-type"
  26062. msgstr ""
  26063. #. type: defvr
  26064. #: guix-git/doc/guix.texi:17855
  26065. 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."
  26066. msgstr ""
  26067. #. type: defvr
  26068. #: guix-git/doc/guix.texi:17858 guix-git/doc/guix.texi:18010
  26069. #: guix-git/doc/guix.texi:18039
  26070. msgid "This service is part of @code{%desktop-services} (@pxref{Desktop Services})."
  26071. msgstr ""
  26072. #. type: deftp
  26073. #: guix-git/doc/guix.texi:17860
  26074. #, no-wrap
  26075. msgid "{Data Type} network-manager-configuration"
  26076. msgstr ""
  26077. #. type: deftp
  26078. #: guix-git/doc/guix.texi:17862
  26079. msgid "Data type representing the configuration of NetworkManager."
  26080. msgstr ""
  26081. #. type: item
  26082. #: guix-git/doc/guix.texi:17864
  26083. #, no-wrap
  26084. msgid "@code{network-manager} (default: @code{network-manager})"
  26085. msgstr ""
  26086. #. type: table
  26087. #: guix-git/doc/guix.texi:17866
  26088. msgid "The NetworkManager package to use."
  26089. msgstr ""
  26090. #. type: item
  26091. #: guix-git/doc/guix.texi:17867
  26092. #, no-wrap
  26093. msgid "@code{dns} (default: @code{\"default\"})"
  26094. msgstr ""
  26095. #. type: table
  26096. #: guix-git/doc/guix.texi:17870
  26097. msgid "Processing mode for DNS, which affects how NetworkManager uses the @code{resolv.conf} configuration file."
  26098. msgstr ""
  26099. #. type: table
  26100. #: guix-git/doc/guix.texi:17875
  26101. msgid "NetworkManager will update @code{resolv.conf} to reflect the nameservers provided by currently active connections."
  26102. msgstr ""
  26103. #. type: item
  26104. #: guix-git/doc/guix.texi:17876
  26105. #, no-wrap
  26106. msgid "dnsmasq"
  26107. msgstr ""
  26108. #. type: table
  26109. #: guix-git/doc/guix.texi:17880
  26110. 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."
  26111. msgstr ""
  26112. #. type: table
  26113. #: guix-git/doc/guix.texi:17886
  26114. 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)."
  26115. msgstr ""
  26116. #. type: table
  26117. #: guix-git/doc/guix.texi:17893
  26118. 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:"
  26119. msgstr ""
  26120. #. type: example
  26121. #: guix-git/doc/guix.texi:17900
  26122. #, no-wrap
  26123. msgid ""
  26124. "nmcli connection add type tun \\\n"
  26125. " connection.interface-name tap0 \\\n"
  26126. " tun.mode tap tun.owner $(id -u) \\\n"
  26127. " ipv4.method shared \\\n"
  26128. " ipv4.addresses 172.28.112.1/24\n"
  26129. msgstr ""
  26130. #. type: table
  26131. #: guix-git/doc/guix.texi:17905
  26132. 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-...}."
  26133. msgstr ""
  26134. #. type: table
  26135. #: guix-git/doc/guix.texi:17908
  26136. msgid "NetworkManager will not modify @code{resolv.conf}."
  26137. msgstr ""
  26138. #. type: item
  26139. #: guix-git/doc/guix.texi:17910
  26140. #, no-wrap
  26141. msgid "@code{vpn-plugins} (default: @code{'()})"
  26142. msgstr ""
  26143. #. type: table
  26144. #: guix-git/doc/guix.texi:17914
  26145. 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."
  26146. msgstr ""
  26147. #. type: cindex
  26148. #: guix-git/doc/guix.texi:17918
  26149. #, no-wrap
  26150. msgid "Connman"
  26151. msgstr ""
  26152. #. type: deffn
  26153. #: guix-git/doc/guix.texi:17919
  26154. #, no-wrap
  26155. msgid "{Scheme Variable} connman-service-type"
  26156. msgstr ""
  26157. #. type: deffn
  26158. #: guix-git/doc/guix.texi:17922
  26159. msgid "This is the service type to run @url{https://01.org/connman,Connman}, a network connection manager."
  26160. msgstr ""
  26161. #. type: deffn
  26162. #: guix-git/doc/guix.texi:17925
  26163. msgid "Its value must be an @code{connman-configuration} record as in this example:"
  26164. msgstr ""
  26165. #. type: lisp
  26166. #: guix-git/doc/guix.texi:17930
  26167. #, no-wrap
  26168. msgid ""
  26169. "(service connman-service-type\n"
  26170. " (connman-configuration\n"
  26171. " (disable-vpn? #t)))\n"
  26172. msgstr ""
  26173. #. type: deffn
  26174. #: guix-git/doc/guix.texi:17933
  26175. msgid "See below for details about @code{connman-configuration}."
  26176. msgstr ""
  26177. #. type: deftp
  26178. #: guix-git/doc/guix.texi:17935
  26179. #, no-wrap
  26180. msgid "{Data Type} connman-configuration"
  26181. msgstr ""
  26182. #. type: deftp
  26183. #: guix-git/doc/guix.texi:17937
  26184. msgid "Data Type representing the configuration of connman."
  26185. msgstr ""
  26186. #. type: item
  26187. #: guix-git/doc/guix.texi:17939
  26188. #, no-wrap
  26189. msgid "@code{connman} (default: @var{connman})"
  26190. msgstr ""
  26191. #. type: table
  26192. #: guix-git/doc/guix.texi:17941
  26193. msgid "The connman package to use."
  26194. msgstr ""
  26195. #. type: item
  26196. #: guix-git/doc/guix.texi:17942
  26197. #, no-wrap
  26198. msgid "@code{disable-vpn?} (default: @code{#f})"
  26199. msgstr ""
  26200. #. type: table
  26201. #: guix-git/doc/guix.texi:17944
  26202. msgid "When true, disable connman's vpn plugin."
  26203. msgstr ""
  26204. #. type: cindex
  26205. #: guix-git/doc/guix.texi:17947
  26206. #, no-wrap
  26207. msgid "WPA Supplicant"
  26208. msgstr ""
  26209. #. type: defvr
  26210. #: guix-git/doc/guix.texi:17948
  26211. #, no-wrap
  26212. msgid "{Scheme Variable} wpa-supplicant-service-type"
  26213. msgstr ""
  26214. #. type: defvr
  26215. #: guix-git/doc/guix.texi:17952
  26216. 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."
  26217. msgstr ""
  26218. #. type: deftp
  26219. #: guix-git/doc/guix.texi:17954
  26220. #, no-wrap
  26221. msgid "{Data Type} wpa-supplicant-configuration"
  26222. msgstr ""
  26223. #. type: deftp
  26224. #: guix-git/doc/guix.texi:17956
  26225. msgid "Data type representing the configuration of WPA Supplicant."
  26226. msgstr ""
  26227. #. type: deftp
  26228. #: guix-git/doc/guix.texi:17958 guix-git/doc/guix.texi:33891
  26229. msgid "It takes the following parameters:"
  26230. msgstr ""
  26231. #. type: item
  26232. #: guix-git/doc/guix.texi:17960
  26233. #, no-wrap
  26234. msgid "@code{wpa-supplicant} (default: @code{wpa-supplicant})"
  26235. msgstr ""
  26236. #. type: table
  26237. #: guix-git/doc/guix.texi:17962
  26238. msgid "The WPA Supplicant package to use."
  26239. msgstr ""
  26240. #. type: item
  26241. #: guix-git/doc/guix.texi:17963
  26242. #, no-wrap
  26243. msgid "@code{requirement} (default: @code{'(user-processes loopback syslogd)}"
  26244. msgstr ""
  26245. #. type: table
  26246. #: guix-git/doc/guix.texi:17965
  26247. msgid "List of services that should be started before WPA Supplicant starts."
  26248. msgstr ""
  26249. #. type: item
  26250. #: guix-git/doc/guix.texi:17966
  26251. #, no-wrap
  26252. msgid "@code{dbus?} (default: @code{#t})"
  26253. msgstr ""
  26254. #. type: table
  26255. #: guix-git/doc/guix.texi:17968
  26256. msgid "Whether to listen for requests on D-Bus."
  26257. msgstr ""
  26258. #. type: item
  26259. #: guix-git/doc/guix.texi:17969
  26260. #, no-wrap
  26261. msgid "@code{pid-file} (default: @code{\"/var/run/wpa_supplicant.pid\"})"
  26262. msgstr ""
  26263. #. type: table
  26264. #: guix-git/doc/guix.texi:17971
  26265. msgid "Where to store the PID file."
  26266. msgstr ""
  26267. #. type: item
  26268. #: guix-git/doc/guix.texi:17972 guix-git/doc/guix.texi:32192
  26269. #: guix-git/doc/guix.texi:32334
  26270. #, no-wrap
  26271. msgid "@code{interface} (default: @code{#f})"
  26272. msgstr ""
  26273. #. type: table
  26274. #: guix-git/doc/guix.texi:17975
  26275. msgid "If this is set, it must specify the name of a network interface that WPA supplicant will control."
  26276. msgstr ""
  26277. #. type: item
  26278. #: guix-git/doc/guix.texi:17976 guix-git/doc/guix.texi:18092
  26279. #: guix-git/doc/guix.texi:23864
  26280. #, no-wrap
  26281. msgid "@code{config-file} (default: @code{#f})"
  26282. msgstr ""
  26283. #. type: table
  26284. #: guix-git/doc/guix.texi:17978
  26285. msgid "Optional configuration file to use."
  26286. msgstr ""
  26287. #. type: table
  26288. #: guix-git/doc/guix.texi:17981
  26289. msgid "List of additional command-line arguments to pass to the daemon."
  26290. msgstr ""
  26291. #. type: cindex
  26292. #: guix-git/doc/guix.texi:17984
  26293. #, no-wrap
  26294. msgid "wicd"
  26295. msgstr ""
  26296. #. type: cindex
  26297. #: guix-git/doc/guix.texi:17987
  26298. #, no-wrap
  26299. msgid "network management"
  26300. msgstr ""
  26301. #. type: deffn
  26302. #: guix-git/doc/guix.texi:17988
  26303. #, no-wrap
  26304. msgid "{Scheme Procedure} wicd-service [#:wicd @var{wicd}]"
  26305. msgstr ""
  26306. #. type: deffn
  26307. #: guix-git/doc/guix.texi:17991
  26308. msgid "Return a service that runs @url{https://launchpad.net/wicd,Wicd}, a network management daemon that aims to simplify wired and wireless networking."
  26309. msgstr ""
  26310. #. type: deffn
  26311. #: guix-git/doc/guix.texi:17996
  26312. 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."
  26313. msgstr ""
  26314. #. type: cindex
  26315. #: guix-git/doc/guix.texi:17998
  26316. #, no-wrap
  26317. msgid "ModemManager"
  26318. msgstr ""
  26319. #. type: Plain text
  26320. #: guix-git/doc/guix.texi:18001
  26321. msgid "Some networking devices such as modems require special care, and this is what the services below focus on."
  26322. msgstr ""
  26323. #. type: defvr
  26324. #: guix-git/doc/guix.texi:18002
  26325. #, no-wrap
  26326. msgid "{Scheme Variable} modem-manager-service-type"
  26327. msgstr ""
  26328. #. type: defvr
  26329. #: guix-git/doc/guix.texi:18007
  26330. 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."
  26331. msgstr ""
  26332. #. type: deftp
  26333. #: guix-git/doc/guix.texi:18012
  26334. #, no-wrap
  26335. msgid "{Data Type} modem-manager-configuration"
  26336. msgstr ""
  26337. #. type: deftp
  26338. #: guix-git/doc/guix.texi:18014
  26339. msgid "Data type representing the configuration of ModemManager."
  26340. msgstr ""
  26341. #. type: item
  26342. #: guix-git/doc/guix.texi:18016
  26343. #, no-wrap
  26344. msgid "@code{modem-manager} (default: @code{modem-manager})"
  26345. msgstr ""
  26346. #. type: table
  26347. #: guix-git/doc/guix.texi:18018
  26348. msgid "The ModemManager package to use."
  26349. msgstr ""
  26350. #. type: cindex
  26351. #: guix-git/doc/guix.texi:18022
  26352. #, no-wrap
  26353. msgid "USB_ModeSwitch"
  26354. msgstr ""
  26355. #. type: cindex
  26356. #: guix-git/doc/guix.texi:18023
  26357. #, no-wrap
  26358. msgid "Modeswitching"
  26359. msgstr ""
  26360. #. type: defvr
  26361. #: guix-git/doc/guix.texi:18025
  26362. #, no-wrap
  26363. msgid "{Scheme Variable} usb-modeswitch-service-type"
  26364. msgstr ""
  26365. #. type: defvr
  26366. #: guix-git/doc/guix.texi:18030
  26367. 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."
  26368. msgstr ""
  26369. #. type: defvr
  26370. #: guix-git/doc/guix.texi:18036
  26371. 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."
  26372. msgstr ""
  26373. #. type: deftp
  26374. #: guix-git/doc/guix.texi:18041
  26375. #, no-wrap
  26376. msgid "{Data Type} usb-modeswitch-configuration"
  26377. msgstr ""
  26378. #. type: deftp
  26379. #: guix-git/doc/guix.texi:18043
  26380. msgid "Data type representing the configuration of USB_ModeSwitch."
  26381. msgstr ""
  26382. #. type: item
  26383. #: guix-git/doc/guix.texi:18045
  26384. #, fuzzy, no-wrap
  26385. msgid "@code{usb-modeswitch} (default: @code{usb-modeswitch})"
  26386. msgstr "@code{mate}(默认值:@code{mate})"
  26387. #. type: table
  26388. #: guix-git/doc/guix.texi:18047
  26389. msgid "The USB_ModeSwitch package providing the binaries for modeswitching."
  26390. msgstr ""
  26391. #. type: item
  26392. #: guix-git/doc/guix.texi:18048
  26393. #, fuzzy, no-wrap
  26394. msgid "@code{usb-modeswitch-data} (default: @code{usb-modeswitch-data})"
  26395. msgstr "@code{mate}(默认值:@code{mate})"
  26396. #. type: table
  26397. #: guix-git/doc/guix.texi:18051
  26398. msgid "The package providing the device data and udev rules file used by USB_ModeSwitch."
  26399. msgstr ""
  26400. #. type: item
  26401. #: guix-git/doc/guix.texi:18052
  26402. #, no-wrap
  26403. msgid "@code{config-file} (default: @code{#~(string-append #$usb-modeswitch:dispatcher \"/etc/usb_modeswitch.conf\")})"
  26404. msgstr ""
  26405. #. type: table
  26406. #: guix-git/doc/guix.texi:18057
  26407. 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."
  26408. msgstr ""
  26409. #. type: Plain text
  26410. #: guix-git/doc/guix.texi:18071
  26411. msgid "The @code{(gnu services networking)} module discussed in the previous section provides services for more advanced setups: providing a DHCP service for others to use, filtering packets with iptables or nftables, running a WiFi access point with @command{hostapd}, running the @command{inetd} ``superdaemon'', and more. This section describes those."
  26412. msgstr ""
  26413. #. type: deffn
  26414. #: guix-git/doc/guix.texi:18072
  26415. #, no-wrap
  26416. msgid "{Scheme Procedure} dhcpd-service-type"
  26417. msgstr ""
  26418. #. type: deffn
  26419. #: guix-git/doc/guix.texi:18076
  26420. 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:"
  26421. msgstr ""
  26422. #. type: lisp
  26423. #: guix-git/doc/guix.texi:18082
  26424. #, no-wrap
  26425. msgid ""
  26426. "(service dhcpd-service-type\n"
  26427. " (dhcpd-configuration\n"
  26428. " (config-file (local-file \"my-dhcpd.conf\"))\n"
  26429. " (interfaces '(\"enp0s25\"))))\n"
  26430. msgstr ""
  26431. #. type: deftp
  26432. #: guix-git/doc/guix.texi:18085
  26433. #, no-wrap
  26434. msgid "{Data Type} dhcpd-configuration"
  26435. msgstr ""
  26436. #. type: item
  26437. #: guix-git/doc/guix.texi:18087
  26438. #, no-wrap
  26439. msgid "@code{package} (default: @code{isc-dhcp})"
  26440. msgstr ""
  26441. #. type: table
  26442. #: guix-git/doc/guix.texi:18092
  26443. 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}."
  26444. msgstr ""
  26445. #. type: table
  26446. #: guix-git/doc/guix.texi:18097
  26447. 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."
  26448. msgstr ""
  26449. #. type: item
  26450. #: guix-git/doc/guix.texi:18097
  26451. #, no-wrap
  26452. msgid "@code{version} (default: @code{\"4\"})"
  26453. msgstr ""
  26454. #. type: table
  26455. #: guix-git/doc/guix.texi:18102
  26456. 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."
  26457. msgstr ""
  26458. #. type: item
  26459. #: guix-git/doc/guix.texi:18102
  26460. #, no-wrap
  26461. msgid "@code{run-directory} (default: @code{\"/run/dhcpd\"})"
  26462. msgstr ""
  26463. #. type: table
  26464. #: guix-git/doc/guix.texi:18105
  26465. msgid "The run directory to use. At service activation time, this directory will be created if it does not exist."
  26466. msgstr ""
  26467. #. type: item
  26468. #: guix-git/doc/guix.texi:18105
  26469. #, no-wrap
  26470. msgid "@code{pid-file} (default: @code{\"/run/dhcpd/dhcpd.pid\"})"
  26471. msgstr ""
  26472. #. type: table
  26473. #: guix-git/doc/guix.texi:18108
  26474. msgid "The PID file to use. This corresponds to the @code{-pf} option of @code{dhcpd}. See @code{man dhcpd} for details."
  26475. msgstr ""
  26476. #. type: item
  26477. #: guix-git/doc/guix.texi:18108
  26478. #, no-wrap
  26479. msgid "@code{interfaces} (default: @code{'()})"
  26480. msgstr ""
  26481. #. type: table
  26482. #: guix-git/doc/guix.texi:18114
  26483. 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."
  26484. msgstr ""
  26485. #. type: cindex
  26486. #: guix-git/doc/guix.texi:18117
  26487. #, no-wrap
  26488. msgid "hostapd service, for Wi-Fi access points"
  26489. msgstr ""
  26490. #. type: cindex
  26491. #: guix-git/doc/guix.texi:18118
  26492. #, no-wrap
  26493. msgid "Wi-Fi access points, hostapd service"
  26494. msgstr ""
  26495. #. type: defvr
  26496. #: guix-git/doc/guix.texi:18119
  26497. #, no-wrap
  26498. msgid "{Scheme Variable} hostapd-service-type"
  26499. msgstr ""
  26500. #. type: defvr
  26501. #: guix-git/doc/guix.texi:18124
  26502. 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:"
  26503. msgstr ""
  26504. #. type: lisp
  26505. #: guix-git/doc/guix.texi:18132
  26506. #, no-wrap
  26507. msgid ""
  26508. ";; Use wlan1 to run the access point for \"My Network\".\n"
  26509. "(service hostapd-service-type\n"
  26510. " (hostapd-configuration\n"
  26511. " (interface \"wlan1\")\n"
  26512. " (ssid \"My Network\")\n"
  26513. " (channel 12)))\n"
  26514. msgstr ""
  26515. #. type: deftp
  26516. #: guix-git/doc/guix.texi:18135
  26517. #, no-wrap
  26518. msgid "{Data Type} hostapd-configuration"
  26519. msgstr ""
  26520. #. type: deftp
  26521. #: guix-git/doc/guix.texi:18138
  26522. msgid "This data type represents the configuration of the hostapd service, with the following fields:"
  26523. msgstr ""
  26524. #. type: item
  26525. #: guix-git/doc/guix.texi:18140
  26526. #, fuzzy, no-wrap
  26527. msgid "@code{package} (default: @code{hostapd})"
  26528. msgstr "@code{mate}(默认值:@code{mate})"
  26529. #. type: table
  26530. #: guix-git/doc/guix.texi:18142
  26531. #, fuzzy
  26532. msgid "The hostapd package to use."
  26533. msgstr "软件包数据类型。"
  26534. #. type: item
  26535. #: guix-git/doc/guix.texi:18143
  26536. #, fuzzy, no-wrap
  26537. msgid "@code{interface} (default: @code{\"wlan0\"})"
  26538. msgstr "@code{display}(默认值:@code{\":0\"})"
  26539. #. type: table
  26540. #: guix-git/doc/guix.texi:18145
  26541. msgid "The network interface to run the WiFi access point."
  26542. msgstr ""
  26543. #. type: code{#1}
  26544. #: guix-git/doc/guix.texi:18146
  26545. #, no-wrap
  26546. msgid "ssid"
  26547. msgstr ""
  26548. #. type: table
  26549. #: guix-git/doc/guix.texi:18149
  26550. msgid "The SSID (@dfn{service set identifier}), a string that identifies this network."
  26551. msgstr ""
  26552. #. type: item
  26553. #: guix-git/doc/guix.texi:18150
  26554. #, fuzzy, no-wrap
  26555. msgid "@code{broadcast-ssid?} (default: @code{#t})"
  26556. msgstr "@code{mate}(默认值:@code{mate})"
  26557. #. type: table
  26558. #: guix-git/doc/guix.texi:18152
  26559. msgid "Whether to broadcast this SSID."
  26560. msgstr ""
  26561. #. type: item
  26562. #: guix-git/doc/guix.texi:18153
  26563. #, fuzzy, no-wrap
  26564. msgid "@code{channel} (default: @code{1})"
  26565. msgstr "@code{challenge}(默认值:@code{#f})"
  26566. #. type: table
  26567. #: guix-git/doc/guix.texi:18155
  26568. msgid "The WiFi channel to use."
  26569. msgstr ""
  26570. #. type: item
  26571. #: guix-git/doc/guix.texi:18156
  26572. #, fuzzy, no-wrap
  26573. msgid "@code{driver} (default: @code{\"nl80211\"})"
  26574. msgstr "@code{display}(默认值:@code{\":0\"})"
  26575. #. type: table
  26576. #: guix-git/doc/guix.texi:18160
  26577. 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."
  26578. msgstr ""
  26579. #. type: item
  26580. #: guix-git/doc/guix.texi:18161 guix-git/doc/guix.texi:24713
  26581. #: guix-git/doc/guix.texi:27703
  26582. #, no-wrap
  26583. msgid "@code{extra-settings} (default: @code{\"\"})"
  26584. msgstr ""
  26585. #. type: table
  26586. #: guix-git/doc/guix.texi:18165
  26587. 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."
  26588. msgstr ""
  26589. #. type: defvr
  26590. #: guix-git/doc/guix.texi:18168
  26591. #, no-wrap
  26592. msgid "{Scheme Variable} simulated-wifi-service-type"
  26593. msgstr ""
  26594. #. type: defvr
  26595. #: guix-git/doc/guix.texi:18175
  26596. 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."
  26597. msgstr ""
  26598. #. type: defvr
  26599. #: guix-git/doc/guix.texi:18177
  26600. msgid "The service's value is a @code{hostapd-configuration} record."
  26601. msgstr ""
  26602. #. type: cindex
  26603. #: guix-git/doc/guix.texi:18180
  26604. #, no-wrap
  26605. msgid "iptables"
  26606. msgstr ""
  26607. #. type: defvr
  26608. #: guix-git/doc/guix.texi:18181
  26609. #, no-wrap
  26610. msgid "{Scheme Variable} iptables-service-type"
  26611. msgstr ""
  26612. #. type: defvr
  26613. #: guix-git/doc/guix.texi:18187
  26614. 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."
  26615. msgstr ""
  26616. #. type: lisp
  26617. #: guix-git/doc/guix.texi:18209
  26618. #, no-wrap
  26619. msgid ""
  26620. "(service iptables-service-type\n"
  26621. " (iptables-configuration\n"
  26622. " (ipv4-rules (plain-file \"iptables.rules\" \"*filter\n"
  26623. ":INPUT ACCEPT\n"
  26624. ":FORWARD ACCEPT\n"
  26625. ":OUTPUT ACCEPT\n"
  26626. "-A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT\n"
  26627. "-A INPUT -p tcp --dport 22 -j ACCEPT\n"
  26628. "-A INPUT -j REJECT --reject-with icmp-port-unreachable\n"
  26629. "COMMIT\n"
  26630. "\"))\n"
  26631. " (ipv6-rules (plain-file \"ip6tables.rules\" \"*filter\n"
  26632. ":INPUT ACCEPT\n"
  26633. ":FORWARD ACCEPT\n"
  26634. ":OUTPUT ACCEPT\n"
  26635. "-A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT\n"
  26636. "-A INPUT -p tcp --dport 22 -j ACCEPT\n"
  26637. "-A INPUT -j REJECT --reject-with icmp6-port-unreachable\n"
  26638. "COMMIT\n"
  26639. "\"))))\n"
  26640. msgstr ""
  26641. #. type: deftp
  26642. #: guix-git/doc/guix.texi:18212
  26643. #, no-wrap
  26644. msgid "{Data Type} iptables-configuration"
  26645. msgstr ""
  26646. #. type: deftp
  26647. #: guix-git/doc/guix.texi:18214
  26648. msgid "The data type representing the configuration of iptables."
  26649. msgstr ""
  26650. #. type: item
  26651. #: guix-git/doc/guix.texi:18216
  26652. #, no-wrap
  26653. msgid "@code{iptables} (default: @code{iptables})"
  26654. msgstr ""
  26655. #. type: table
  26656. #: guix-git/doc/guix.texi:18219
  26657. msgid "The iptables package that provides @code{iptables-restore} and @code{ip6tables-restore}."
  26658. msgstr ""
  26659. #. type: item
  26660. #: guix-git/doc/guix.texi:18219
  26661. #, no-wrap
  26662. msgid "@code{ipv4-rules} (default: @code{%iptables-accept-all-rules})"
  26663. msgstr ""
  26664. #. type: table
  26665. #: guix-git/doc/guix.texi:18223
  26666. 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})."
  26667. msgstr ""
  26668. #. type: item
  26669. #: guix-git/doc/guix.texi:18223
  26670. #, no-wrap
  26671. msgid "@code{ipv6-rules} (default: @code{%iptables-accept-all-rules})"
  26672. msgstr ""
  26673. #. type: table
  26674. #: guix-git/doc/guix.texi:18227
  26675. 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})."
  26676. msgstr ""
  26677. #. type: cindex
  26678. #: guix-git/doc/guix.texi:18230
  26679. #, no-wrap
  26680. msgid "nftables"
  26681. msgstr ""
  26682. #. type: defvr
  26683. #: guix-git/doc/guix.texi:18231
  26684. #, no-wrap
  26685. msgid "{Scheme Variable} nftables-service-type"
  26686. msgstr ""
  26687. #. type: defvr
  26688. #: guix-git/doc/guix.texi:18239
  26689. 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:"
  26690. msgstr ""
  26691. #. type: lisp
  26692. #: guix-git/doc/guix.texi:18242
  26693. #, no-wrap
  26694. msgid "(service nftables-service-type)\n"
  26695. msgstr ""
  26696. #. type: deftp
  26697. #: guix-git/doc/guix.texi:18245
  26698. #, fuzzy, no-wrap
  26699. msgid "{Data Type} nftables-configuration"
  26700. msgstr "{数据类型} build-machine"
  26701. #. type: deftp
  26702. #: guix-git/doc/guix.texi:18247
  26703. #, fuzzy
  26704. msgid "The data type representing the configuration of nftables."
  26705. msgstr "管理操作系统配置。"
  26706. #. type: item
  26707. #: guix-git/doc/guix.texi:18249
  26708. #, fuzzy, no-wrap
  26709. msgid "@code{package} (default: @code{nftables})"
  26710. msgstr "@code{xfce}(默认值:@code{xfce})"
  26711. #. type: table
  26712. #: guix-git/doc/guix.texi:18251
  26713. msgid "The nftables package that provides @command{nft}."
  26714. msgstr ""
  26715. #. type: item
  26716. #: guix-git/doc/guix.texi:18251
  26717. #, fuzzy, no-wrap
  26718. msgid "@code{ruleset} (default: @code{%default-nftables-ruleset})"
  26719. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  26720. #. type: table
  26721. #: guix-git/doc/guix.texi:18254
  26722. msgid "The nftables ruleset to use. This may be any ``file-like'' object (@pxref{G-Expressions, file-like objects})."
  26723. msgstr ""
  26724. #. type: cindex
  26725. #: guix-git/doc/guix.texi:18257
  26726. #, no-wrap
  26727. msgid "NTP (Network Time Protocol), service"
  26728. msgstr ""
  26729. #. type: cindex
  26730. #: guix-git/doc/guix.texi:18258
  26731. #, no-wrap
  26732. msgid "ntpd, service for the Network Time Protocol daemon"
  26733. msgstr ""
  26734. #. type: cindex
  26735. #: guix-git/doc/guix.texi:18259
  26736. #, no-wrap
  26737. msgid "real time clock"
  26738. msgstr ""
  26739. #. type: defvr
  26740. #: guix-git/doc/guix.texi:18260
  26741. #, no-wrap
  26742. msgid "{Scheme Variable} ntp-service-type"
  26743. msgstr ""
  26744. #. type: defvr
  26745. #: guix-git/doc/guix.texi:18264
  26746. 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."
  26747. msgstr ""
  26748. #. type: defvr
  26749. #: guix-git/doc/guix.texi:18267
  26750. msgid "The value of this service is an @code{ntpd-configuration} object, as described below."
  26751. msgstr ""
  26752. #. type: deftp
  26753. #: guix-git/doc/guix.texi:18269
  26754. #, no-wrap
  26755. msgid "{Data Type} ntp-configuration"
  26756. msgstr ""
  26757. #. type: deftp
  26758. #: guix-git/doc/guix.texi:18271
  26759. msgid "This is the data type for the NTP service configuration."
  26760. msgstr ""
  26761. #. type: item
  26762. #: guix-git/doc/guix.texi:18273
  26763. #, no-wrap
  26764. msgid "@code{servers} (default: @code{%ntp-servers})"
  26765. msgstr ""
  26766. #. type: table
  26767. #: guix-git/doc/guix.texi:18277
  26768. 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."
  26769. msgstr ""
  26770. #. type: item
  26771. #: guix-git/doc/guix.texi:18278
  26772. #, fuzzy, no-wrap
  26773. msgid "@code{allow-large-adjustment?} (default: @code{#t})"
  26774. msgstr "@code{challenge}(默认值:@code{#f})"
  26775. #. type: table
  26776. #: guix-git/doc/guix.texi:18281
  26777. msgid "This determines whether @command{ntpd} is allowed to make an initial adjustment of more than 1,000 seconds."
  26778. msgstr ""
  26779. #. type: item
  26780. #: guix-git/doc/guix.texi:18282
  26781. #, no-wrap
  26782. msgid "@code{ntp} (default: @code{ntp})"
  26783. msgstr ""
  26784. #. type: table
  26785. #: guix-git/doc/guix.texi:18284
  26786. msgid "The NTP package to use."
  26787. msgstr ""
  26788. #. type: defvr
  26789. #: guix-git/doc/guix.texi:18287
  26790. #, no-wrap
  26791. msgid "{Scheme Variable} %ntp-servers"
  26792. msgstr ""
  26793. #. type: defvr
  26794. #: guix-git/doc/guix.texi:18290
  26795. 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}."
  26796. msgstr ""
  26797. #. type: deftp
  26798. #: guix-git/doc/guix.texi:18292
  26799. #, no-wrap
  26800. msgid "{Data Type} ntp-server"
  26801. msgstr ""
  26802. #. type: deftp
  26803. #: guix-git/doc/guix.texi:18294
  26804. msgid "The data type representing the configuration of a NTP server."
  26805. msgstr ""
  26806. #. type: item
  26807. #: guix-git/doc/guix.texi:18296
  26808. #, fuzzy, no-wrap
  26809. msgid "@code{type} (default: @code{'server})"
  26810. msgstr "@code{mate}(默认值:@code{mate})"
  26811. #. type: table
  26812. #: guix-git/doc/guix.texi:18299
  26813. msgid "The type of the NTP server, given as a symbol. One of @code{'pool}, @code{'server}, @code{'peer}, @code{'broadcast} or @code{'manycastclient}."
  26814. msgstr ""
  26815. #. type: code{#1}
  26816. #: guix-git/doc/guix.texi:18300
  26817. #, no-wrap
  26818. msgid "address"
  26819. msgstr ""
  26820. #. type: table
  26821. #: guix-git/doc/guix.texi:18302
  26822. msgid "The address of the server, as a string."
  26823. msgstr ""
  26824. #. type: code{#1}
  26825. #: guix-git/doc/guix.texi:18303 guix-git/doc/guix.texi:34806
  26826. #: guix-git/doc/guix.texi:34826
  26827. #, no-wrap
  26828. msgid "options"
  26829. msgstr ""
  26830. #. type: table
  26831. #: guix-git/doc/guix.texi:18308
  26832. 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."
  26833. msgstr ""
  26834. #. type: example
  26835. #: guix-git/doc/guix.texi:18314
  26836. #, no-wrap
  26837. msgid ""
  26838. "(ntp-server\n"
  26839. " (type 'server)\n"
  26840. " (address \"some.ntp.server.org\")\n"
  26841. " (options `(iburst (version 3) (maxpoll 16) prefer))))\n"
  26842. msgstr ""
  26843. #. type: cindex
  26844. #: guix-git/doc/guix.texi:18318
  26845. #, no-wrap
  26846. msgid "OpenNTPD"
  26847. msgstr ""
  26848. #. type: deffn
  26849. #: guix-git/doc/guix.texi:18319
  26850. #, no-wrap
  26851. msgid "{Scheme Procedure} openntpd-service-type"
  26852. msgstr ""
  26853. #. type: deffn
  26854. #: guix-git/doc/guix.texi:18323
  26855. 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."
  26856. msgstr ""
  26857. #. type: lisp
  26858. #: guix-git/doc/guix.texi:18332
  26859. #, no-wrap
  26860. msgid ""
  26861. "(service\n"
  26862. " openntpd-service-type\n"
  26863. " (openntpd-configuration\n"
  26864. " (listen-on '(\"127.0.0.1\" \"::1\"))\n"
  26865. " (sensor '(\"udcf0 correction 70000\"))\n"
  26866. " (constraint-from '(\"www.gnu.org\"))\n"
  26867. " (constraints-from '(\"https://www.google.com/\"))))\n"
  26868. "\n"
  26869. msgstr ""
  26870. #. type: defvr
  26871. #: guix-git/doc/guix.texi:18336
  26872. #, no-wrap
  26873. msgid "{Scheme Variable} %openntpd-servers"
  26874. msgstr ""
  26875. #. type: defvr
  26876. #: guix-git/doc/guix.texi:18339
  26877. msgid "This variable is a list of the server addresses defined in @code{%ntp-servers}."
  26878. msgstr ""
  26879. #. type: deftp
  26880. #: guix-git/doc/guix.texi:18341
  26881. #, no-wrap
  26882. msgid "{Data Type} openntpd-configuration"
  26883. msgstr ""
  26884. #. type: item
  26885. #: guix-git/doc/guix.texi:18343
  26886. #, no-wrap
  26887. msgid "@code{openntpd} (default: @code{(file-append openntpd \"/sbin/ntpd\")})"
  26888. msgstr ""
  26889. #. type: table
  26890. #: guix-git/doc/guix.texi:18345
  26891. msgid "The openntpd executable to use."
  26892. msgstr ""
  26893. #. type: item
  26894. #: guix-git/doc/guix.texi:18345
  26895. #, no-wrap
  26896. msgid "@code{listen-on} (default: @code{'(\"127.0.0.1\" \"::1\")})"
  26897. msgstr ""
  26898. #. type: table
  26899. #: guix-git/doc/guix.texi:18347
  26900. msgid "A list of local IP addresses or hostnames the ntpd daemon should listen on."
  26901. msgstr ""
  26902. #. type: item
  26903. #: guix-git/doc/guix.texi:18347
  26904. #, no-wrap
  26905. msgid "@code{query-from} (default: @code{'()})"
  26906. msgstr ""
  26907. #. type: table
  26908. #: guix-git/doc/guix.texi:18349
  26909. msgid "A list of local IP address the ntpd daemon should use for outgoing queries."
  26910. msgstr ""
  26911. #. type: item
  26912. #: guix-git/doc/guix.texi:18349
  26913. #, no-wrap
  26914. msgid "@code{sensor} (default: @code{'()})"
  26915. msgstr ""
  26916. #. type: table
  26917. #: guix-git/doc/guix.texi:18354
  26918. 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."
  26919. msgstr ""
  26920. #. type: item
  26921. #: guix-git/doc/guix.texi:18354
  26922. #, fuzzy, no-wrap
  26923. msgid "@code{server} (default: @code{'()})"
  26924. msgstr "@code{features} (@code{'()})"
  26925. #. type: table
  26926. #: guix-git/doc/guix.texi:18356
  26927. msgid "Specify a list of IP addresses or hostnames of NTP servers to synchronize to."
  26928. msgstr ""
  26929. #. type: item
  26930. #: guix-git/doc/guix.texi:18356
  26931. #, fuzzy, no-wrap
  26932. msgid "@code{servers} (default: @code{%openntp-servers})"
  26933. msgstr "@code{speed}(默认值:@code{1.0})"
  26934. #. type: table
  26935. #: guix-git/doc/guix.texi:18358
  26936. msgid "Specify a list of IP addresses or hostnames of NTP pools to synchronize to."
  26937. msgstr ""
  26938. #. type: item
  26939. #: guix-git/doc/guix.texi:18358
  26940. #, no-wrap
  26941. msgid "@code{constraint-from} (default: @code{'()})"
  26942. msgstr ""
  26943. #. type: table
  26944. #: guix-git/doc/guix.texi:18365
  26945. 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."
  26946. msgstr ""
  26947. #. type: item
  26948. #: guix-git/doc/guix.texi:18365
  26949. #, no-wrap
  26950. msgid "@code{constraints-from} (default: @code{'()})"
  26951. msgstr ""
  26952. #. type: table
  26953. #: guix-git/doc/guix.texi:18369
  26954. 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."
  26955. msgstr ""
  26956. #. type: cindex
  26957. #: guix-git/doc/guix.texi:18372
  26958. #, no-wrap
  26959. msgid "inetd"
  26960. msgstr ""
  26961. #. type: deffn
  26962. #: guix-git/doc/guix.texi:18373
  26963. #, no-wrap
  26964. msgid "{Scheme variable} inetd-service-type"
  26965. msgstr ""
  26966. #. type: deffn
  26967. #: guix-git/doc/guix.texi:18378
  26968. 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."
  26969. msgstr ""
  26970. #. type: deffn
  26971. #: guix-git/doc/guix.texi:18384
  26972. 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}:"
  26973. msgstr ""
  26974. #. type: lisp
  26975. #: guix-git/doc/guix.texi:18407
  26976. #, no-wrap
  26977. msgid ""
  26978. "(service\n"
  26979. " inetd-service-type\n"
  26980. " (inetd-configuration\n"
  26981. " (entries (list\n"
  26982. " (inetd-entry\n"
  26983. " (name \"echo\")\n"
  26984. " (socket-type 'stream)\n"
  26985. " (protocol \"tcp\")\n"
  26986. " (wait? #f)\n"
  26987. " (user \"root\"))\n"
  26988. " (inetd-entry\n"
  26989. " (node \"127.0.0.1\")\n"
  26990. " (name \"smtp\")\n"
  26991. " (socket-type 'stream)\n"
  26992. " (protocol \"tcp\")\n"
  26993. " (wait? #f)\n"
  26994. " (user \"root\")\n"
  26995. " (program (file-append openssh \"/bin/ssh\"))\n"
  26996. " (arguments\n"
  26997. " '(\"ssh\" \"-qT\" \"-i\" \"/path/to/ssh_key\"\n"
  26998. " \"-W\" \"smtp-server:25\" \"user@@hostname\")))))))\n"
  26999. msgstr ""
  27000. #. type: deffn
  27001. #: guix-git/doc/guix.texi:18410
  27002. msgid "See below for more details about @code{inetd-configuration}."
  27003. msgstr ""
  27004. #. type: deftp
  27005. #: guix-git/doc/guix.texi:18412
  27006. #, no-wrap
  27007. msgid "{Data Type} inetd-configuration"
  27008. msgstr ""
  27009. #. type: deftp
  27010. #: guix-git/doc/guix.texi:18414
  27011. msgid "Data type representing the configuration of @command{inetd}."
  27012. msgstr ""
  27013. #. type: item
  27014. #: guix-git/doc/guix.texi:18416
  27015. #, no-wrap
  27016. msgid "@code{program} (default: @code{(file-append inetutils \"/libexec/inetd\")})"
  27017. msgstr ""
  27018. #. type: table
  27019. #: guix-git/doc/guix.texi:18418
  27020. msgid "The @command{inetd} executable to use."
  27021. msgstr ""
  27022. #. type: item
  27023. #: guix-git/doc/guix.texi:18419 guix-git/doc/guix.texi:28553
  27024. #, no-wrap
  27025. msgid "@code{entries} (default: @code{'()})"
  27026. msgstr ""
  27027. #. type: table
  27028. #: guix-git/doc/guix.texi:18422
  27029. msgid "A list of @command{inetd} service entries. Each entry should be created by the @code{inetd-entry} constructor."
  27030. msgstr ""
  27031. #. type: deftp
  27032. #: guix-git/doc/guix.texi:18425
  27033. #, no-wrap
  27034. msgid "{Data Type} inetd-entry"
  27035. msgstr ""
  27036. #. type: deftp
  27037. #: guix-git/doc/guix.texi:18429
  27038. msgid "Data type representing an entry in the @command{inetd} configuration. Each entry corresponds to a socket where @command{inetd} will listen for requests."
  27039. msgstr ""
  27040. #. type: item
  27041. #: guix-git/doc/guix.texi:18431
  27042. #, no-wrap
  27043. msgid "@code{node} (default: @code{#f})"
  27044. msgstr ""
  27045. #. type: table
  27046. #: guix-git/doc/guix.texi:18436
  27047. 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."
  27048. msgstr ""
  27049. #. type: table
  27050. #: guix-git/doc/guix.texi:18438
  27051. msgid "A string, the name must correspond to an entry in @code{/etc/services}."
  27052. msgstr ""
  27053. #. type: code{#1}
  27054. #: guix-git/doc/guix.texi:18438
  27055. #, no-wrap
  27056. msgid "socket-type"
  27057. msgstr ""
  27058. #. type: table
  27059. #: guix-git/doc/guix.texi:18441
  27060. msgid "One of @code{'stream}, @code{'dgram}, @code{'raw}, @code{'rdm} or @code{'seqpacket}."
  27061. msgstr ""
  27062. #. type: code{#1}
  27063. #: guix-git/doc/guix.texi:18441
  27064. #, no-wrap
  27065. msgid "protocol"
  27066. msgstr ""
  27067. #. type: table
  27068. #: guix-git/doc/guix.texi:18443
  27069. msgid "A string, must correspond to an entry in @code{/etc/protocols}."
  27070. msgstr ""
  27071. #. type: item
  27072. #: guix-git/doc/guix.texi:18443
  27073. #, no-wrap
  27074. msgid "@code{wait?} (default: @code{#t})"
  27075. msgstr ""
  27076. #. type: table
  27077. #: guix-git/doc/guix.texi:18446
  27078. msgid "Whether @command{inetd} should wait for the server to exit before listening to new service requests."
  27079. msgstr ""
  27080. #. type: table
  27081. #: guix-git/doc/guix.texi:18451
  27082. 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\"}."
  27083. msgstr ""
  27084. #. type: item
  27085. #: guix-git/doc/guix.texi:18451
  27086. #, no-wrap
  27087. msgid "@code{program} (default: @code{\"internal\"})"
  27088. msgstr ""
  27089. #. type: table
  27090. #: guix-git/doc/guix.texi:18454
  27091. msgid "The server program which will serve the requests, or @code{\"internal\"} if @command{inetd} should use a built-in service."
  27092. msgstr ""
  27093. #. type: table
  27094. #: guix-git/doc/guix.texi:18459
  27095. 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\")}."
  27096. msgstr ""
  27097. #. type: deftp
  27098. #: guix-git/doc/guix.texi:18463
  27099. msgid "@xref{Configuration file,,, inetutils, GNU Inetutils} for a more detailed discussion of each configuration field."
  27100. msgstr ""
  27101. #. type: cindex
  27102. #: guix-git/doc/guix.texi:18465
  27103. #, no-wrap
  27104. msgid "opendht, distributed hash table network service"
  27105. msgstr ""
  27106. #. type: cindex
  27107. #: guix-git/doc/guix.texi:18466
  27108. #, no-wrap
  27109. msgid "dhtproxy, for use with jami"
  27110. msgstr ""
  27111. #. type: defvr
  27112. #: guix-git/doc/guix.texi:18467
  27113. #, no-wrap
  27114. msgid "{Scheme Variable} opendht-service-type"
  27115. msgstr ""
  27116. #. type: defvr
  27117. #: guix-git/doc/guix.texi:18472
  27118. 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."
  27119. msgstr ""
  27120. #. type: quotation
  27121. #: guix-git/doc/guix.texi:18482
  27122. 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."
  27123. msgstr ""
  27124. #. type: defvr
  27125. #: guix-git/doc/guix.texi:18486
  27126. msgid "The value of this service is a @code{opendht-configuration} object, as described below."
  27127. msgstr ""
  27128. #. type: deftp
  27129. #: guix-git/doc/guix.texi:18488
  27130. #, fuzzy, no-wrap
  27131. msgid "{Data Type} opendht-configuration"
  27132. msgstr "系统配置"
  27133. #. type: deftp
  27134. #: guix-git/doc/guix.texi:18490
  27135. #, fuzzy
  27136. msgid "This is the data type for the OpenDHT service configuration."
  27137. msgstr "管理操作系统配置。"
  27138. #. type: deftp
  27139. #: guix-git/doc/guix.texi:18495
  27140. msgid "Available @code{opendht-configuration} fields are:"
  27141. msgstr ""
  27142. #. type: deftypevr
  27143. #: guix-git/doc/guix.texi:18496
  27144. #, no-wrap
  27145. msgid "{@code{opendht-configuration} parameter} package opendht"
  27146. msgstr ""
  27147. #. type: deftypevr
  27148. #: guix-git/doc/guix.texi:18498
  27149. #, fuzzy
  27150. msgid "The @code{opendht} package to use."
  27151. msgstr "软件包数据类型。"
  27152. #. type: deftypevr
  27153. #: guix-git/doc/guix.texi:18501
  27154. #, no-wrap
  27155. msgid "{@code{opendht-configuration} parameter} boolean peer-discovery?"
  27156. msgstr ""
  27157. #. type: deftypevr
  27158. #: guix-git/doc/guix.texi:18503
  27159. msgid "Whether to enable the multicast local peer discovery mechanism."
  27160. msgstr ""
  27161. #. type: deftypevr
  27162. #: guix-git/doc/guix.texi:18505 guix-git/doc/guix.texi:18513
  27163. #: guix-git/doc/guix.texi:18521 guix-git/doc/guix.texi:20223
  27164. #: guix-git/doc/guix.texi:20299 guix-git/doc/guix.texi:20341
  27165. #: guix-git/doc/guix.texi:20361 guix-git/doc/guix.texi:20367
  27166. #: guix-git/doc/guix.texi:20383 guix-git/doc/guix.texi:20471
  27167. #: guix-git/doc/guix.texi:20559 guix-git/doc/guix.texi:20872
  27168. #: guix-git/doc/guix.texi:20885 guix-git/doc/guix.texi:22477
  27169. #: guix-git/doc/guix.texi:23955 guix-git/doc/guix.texi:24061
  27170. #: guix-git/doc/guix.texi:24126 guix-git/doc/guix.texi:24135
  27171. #: guix-git/doc/guix.texi:25368 guix-git/doc/guix.texi:25412
  27172. #: guix-git/doc/guix.texi:25429 guix-git/doc/guix.texi:25437
  27173. #: guix-git/doc/guix.texi:25452 guix-git/doc/guix.texi:25470
  27174. #: guix-git/doc/guix.texi:25494 guix-git/doc/guix.texi:25547
  27175. #: guix-git/doc/guix.texi:25680 guix-git/doc/guix.texi:25714
  27176. #: guix-git/doc/guix.texi:25750 guix-git/doc/guix.texi:25766
  27177. #: guix-git/doc/guix.texi:25794 guix-git/doc/guix.texi:25855
  27178. #: guix-git/doc/guix.texi:25938 guix-git/doc/guix.texi:29277
  27179. #: guix-git/doc/guix.texi:29291 guix-git/doc/guix.texi:29313
  27180. #: guix-git/doc/guix.texi:29432 guix-git/doc/guix.texi:29446
  27181. #: guix-git/doc/guix.texi:29467 guix-git/doc/guix.texi:29488
  27182. #: guix-git/doc/guix.texi:29495 guix-git/doc/guix.texi:29540
  27183. #: guix-git/doc/guix.texi:29547 guix-git/doc/guix.texi:30336
  27184. #: guix-git/doc/guix.texi:30350 guix-git/doc/guix.texi:30550
  27185. #: guix-git/doc/guix.texi:30595 guix-git/doc/guix.texi:30682
  27186. #: guix-git/doc/guix.texi:30888 guix-git/doc/guix.texi:30921
  27187. #: guix-git/doc/guix.texi:31061 guix-git/doc/guix.texi:31072
  27188. #: guix-git/doc/guix.texi:31323 guix-git/doc/guix.texi:32846
  27189. #: guix-git/doc/guix.texi:32855 guix-git/doc/guix.texi:32863
  27190. #: guix-git/doc/guix.texi:32871 guix-git/doc/guix.texi:32887
  27191. #: guix-git/doc/guix.texi:32903 guix-git/doc/guix.texi:32911
  27192. #: guix-git/doc/guix.texi:32919 guix-git/doc/guix.texi:32928
  27193. #: guix-git/doc/guix.texi:32937 guix-git/doc/guix.texi:32953
  27194. #: guix-git/doc/guix.texi:33017 guix-git/doc/guix.texi:33123
  27195. #: guix-git/doc/guix.texi:33131 guix-git/doc/guix.texi:33139
  27196. #: guix-git/doc/guix.texi:33164 guix-git/doc/guix.texi:33218
  27197. #: guix-git/doc/guix.texi:33266 guix-git/doc/guix.texi:33467
  27198. #: guix-git/doc/guix.texi:33474
  27199. msgid "Defaults to @samp{#f}."
  27200. msgstr ""
  27201. #. type: deftypevr
  27202. #: guix-git/doc/guix.texi:18508
  27203. #, no-wrap
  27204. msgid "{@code{opendht-configuration} parameter} boolean enable-logging?"
  27205. msgstr ""
  27206. #. type: deftypevr
  27207. #: guix-git/doc/guix.texi:18511
  27208. msgid "Whether to enable logging messages to syslog. It is disabled by default as it is rather verbose."
  27209. msgstr ""
  27210. #. type: deftypevr
  27211. #: guix-git/doc/guix.texi:18516
  27212. #, no-wrap
  27213. msgid "{@code{opendht-configuration} parameter} boolean debug?"
  27214. msgstr ""
  27215. #. type: deftypevr
  27216. #: guix-git/doc/guix.texi:18519
  27217. msgid "Whether to enable debug-level logging messages. This has no effect if logging is disabled."
  27218. msgstr ""
  27219. #. type: deftypevr
  27220. #: guix-git/doc/guix.texi:18524
  27221. #, no-wrap
  27222. msgid "{@code{opendht-configuration} parameter} maybe-string bootstrap-host"
  27223. msgstr ""
  27224. #. type: deftypevr
  27225. #: guix-git/doc/guix.texi:18530
  27226. 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."
  27227. msgstr ""
  27228. #. type: deftypevr
  27229. #: guix-git/doc/guix.texi:18532
  27230. msgid "Defaults to @samp{\"bootstrap.jami.net:4222\"}."
  27231. msgstr ""
  27232. #. type: deftypevr
  27233. #: guix-git/doc/guix.texi:18535
  27234. #, no-wrap
  27235. msgid "{@code{opendht-configuration} parameter} maybe-number port"
  27236. msgstr ""
  27237. #. type: deftypevr
  27238. #: guix-git/doc/guix.texi:18538
  27239. msgid "The UDP port to bind to. When set to @code{'disabled}, an available port is automatically selected."
  27240. msgstr ""
  27241. #. type: deftypevr
  27242. #: guix-git/doc/guix.texi:18540
  27243. msgid "Defaults to @samp{4222}."
  27244. msgstr ""
  27245. #. type: deftypevr
  27246. #: guix-git/doc/guix.texi:18543
  27247. #, no-wrap
  27248. msgid "{@code{opendht-configuration} parameter} maybe-number proxy-server-port"
  27249. msgstr ""
  27250. #. type: deftypevr
  27251. #: guix-git/doc/guix.texi:18545
  27252. msgid "Spawn a proxy server listening on the specified port."
  27253. msgstr ""
  27254. #. type: deftypevr
  27255. #: guix-git/doc/guix.texi:18547 guix-git/doc/guix.texi:18554
  27256. #: guix-git/doc/guix.texi:25376 guix-git/doc/guix.texi:25420
  27257. #: guix-git/doc/guix.texi:25633 guix-git/doc/guix.texi:25689
  27258. #: guix-git/doc/guix.texi:25863 guix-git/doc/guix.texi:25874
  27259. #: guix-git/doc/guix.texi:25947 guix-git/doc/guix.texi:26582
  27260. #: guix-git/doc/guix.texi:26625 guix-git/doc/guix.texi:26633
  27261. #: guix-git/doc/guix.texi:26641 guix-git/doc/guix.texi:26649
  27262. #: guix-git/doc/guix.texi:26658 guix-git/doc/guix.texi:26666
  27263. #: guix-git/doc/guix.texi:26673 guix-git/doc/guix.texi:26681
  27264. #: guix-git/doc/guix.texi:26689 guix-git/doc/guix.texi:26699
  27265. #: guix-git/doc/guix.texi:26706 guix-git/doc/guix.texi:26730
  27266. #: guix-git/doc/guix.texi:26738 guix-git/doc/guix.texi:26764
  27267. #: guix-git/doc/guix.texi:26773 guix-git/doc/guix.texi:26782
  27268. #: guix-git/doc/guix.texi:26791 guix-git/doc/guix.texi:26800
  27269. #: guix-git/doc/guix.texi:26809 guix-git/doc/guix.texi:26817
  27270. #: guix-git/doc/guix.texi:26825 guix-git/doc/guix.texi:26832
  27271. #: guix-git/doc/guix.texi:26840 guix-git/doc/guix.texi:26847
  27272. #: guix-git/doc/guix.texi:26855 guix-git/doc/guix.texi:26863
  27273. #: guix-git/doc/guix.texi:26872 guix-git/doc/guix.texi:26881
  27274. #: guix-git/doc/guix.texi:26889 guix-git/doc/guix.texi:26897
  27275. #: guix-git/doc/guix.texi:26905 guix-git/doc/guix.texi:26916
  27276. #: guix-git/doc/guix.texi:26926 guix-git/doc/guix.texi:26937
  27277. #: guix-git/doc/guix.texi:26946 guix-git/doc/guix.texi:26956
  27278. #: guix-git/doc/guix.texi:26964 guix-git/doc/guix.texi:26975
  27279. #: guix-git/doc/guix.texi:26984 guix-git/doc/guix.texi:26994
  27280. #: guix-git/doc/guix.texi:30249 guix-git/doc/guix.texi:30256
  27281. #: guix-git/doc/guix.texi:30263 guix-git/doc/guix.texi:30270
  27282. #: guix-git/doc/guix.texi:30277 guix-git/doc/guix.texi:30284
  27283. #: guix-git/doc/guix.texi:30292 guix-git/doc/guix.texi:30300
  27284. #: guix-git/doc/guix.texi:30307 guix-git/doc/guix.texi:30314
  27285. #: guix-git/doc/guix.texi:30321 guix-git/doc/guix.texi:30328
  27286. #: guix-git/doc/guix.texi:30358 guix-git/doc/guix.texi:30396
  27287. #: guix-git/doc/guix.texi:30403 guix-git/doc/guix.texi:30412
  27288. #: guix-git/doc/guix.texi:30434 guix-git/doc/guix.texi:30442
  27289. #: guix-git/doc/guix.texi:30449 guix-git/doc/guix.texi:30478
  27290. #: guix-git/doc/guix.texi:30485 guix-git/doc/guix.texi:30492
  27291. #: guix-git/doc/guix.texi:30499 guix-git/doc/guix.texi:30632
  27292. #: guix-git/doc/guix.texi:30652 guix-git/doc/guix.texi:30667
  27293. #: guix-git/doc/guix.texi:30674 guix-git/doc/guix.texi:33419
  27294. #: guix-git/doc/guix.texi:33427 guix-git/doc/guix.texi:33435
  27295. #: guix-git/doc/guix.texi:33443 guix-git/doc/guix.texi:33451
  27296. #: guix-git/doc/guix.texi:33459
  27297. msgid "Defaults to @samp{disabled}."
  27298. msgstr ""
  27299. #. type: deftypevr
  27300. #: guix-git/doc/guix.texi:18550
  27301. #, no-wrap
  27302. msgid "{@code{opendht-configuration} parameter} maybe-number proxy-server-port-tls"
  27303. msgstr ""
  27304. #. type: deftypevr
  27305. #: guix-git/doc/guix.texi:18552
  27306. msgid "Spawn a proxy server listening to TLS connections on the specified port."
  27307. msgstr ""
  27308. #. type: cindex
  27309. #: guix-git/doc/guix.texi:18558
  27310. #, no-wrap
  27311. msgid "Tor"
  27312. msgstr ""
  27313. #. type: defvr
  27314. #: guix-git/doc/guix.texi:18559
  27315. #, no-wrap
  27316. msgid "{Scheme Variable} tor-service-type"
  27317. msgstr ""
  27318. #. type: defvr
  27319. #: guix-git/doc/guix.texi:18564
  27320. 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."
  27321. msgstr ""
  27322. #. type: deftp
  27323. #: guix-git/doc/guix.texi:18567
  27324. #, no-wrap
  27325. msgid "{Data Type} tor-configuration"
  27326. msgstr ""
  27327. #. type: item
  27328. #: guix-git/doc/guix.texi:18569
  27329. #, no-wrap
  27330. msgid "@code{tor} (default: @code{tor})"
  27331. msgstr ""
  27332. #. type: table
  27333. #: guix-git/doc/guix.texi:18574
  27334. 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."
  27335. msgstr ""
  27336. #. type: item
  27337. #: guix-git/doc/guix.texi:18575
  27338. #, no-wrap
  27339. msgid "@code{config-file} (default: @code{(plain-file \"empty\" \"\")})"
  27340. msgstr ""
  27341. #. type: table
  27342. #: guix-git/doc/guix.texi:18581
  27343. 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."
  27344. msgstr ""
  27345. #. type: item
  27346. #: guix-git/doc/guix.texi:18582
  27347. #, no-wrap
  27348. msgid "@code{hidden-services} (default: @code{'()})"
  27349. msgstr ""
  27350. #. type: table
  27351. #: guix-git/doc/guix.texi:18588
  27352. 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."
  27353. msgstr ""
  27354. #. type: item
  27355. #: guix-git/doc/guix.texi:18589
  27356. #, no-wrap
  27357. msgid "@code{socks-socket-type} (default: @code{'tcp})"
  27358. msgstr ""
  27359. #. type: table
  27360. #: guix-git/doc/guix.texi:18596
  27361. 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."
  27362. msgstr ""
  27363. #. type: table
  27364. #: guix-git/doc/guix.texi:18601
  27365. 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."
  27366. msgstr ""
  27367. #. type: item
  27368. #: guix-git/doc/guix.texi:18602
  27369. #, fuzzy, no-wrap
  27370. msgid "@code{control-socket?} (default: @code{#f})"
  27371. msgstr "@code{journal-content}(默认值:@code{#f})"
  27372. #. type: table
  27373. #: guix-git/doc/guix.texi:18608
  27374. 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."
  27375. msgstr ""
  27376. #. type: cindex
  27377. #: guix-git/doc/guix.texi:18612
  27378. #, no-wrap
  27379. msgid "hidden service"
  27380. msgstr ""
  27381. #. type: deffn
  27382. #: guix-git/doc/guix.texi:18613
  27383. #, no-wrap
  27384. msgid "{Scheme Procedure} tor-hidden-service @var{name} @var{mapping}"
  27385. msgstr ""
  27386. #. type: deffn
  27387. #: guix-git/doc/guix.texi:18616
  27388. 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:"
  27389. msgstr ""
  27390. #. type: example
  27391. #: guix-git/doc/guix.texi:18620
  27392. #, no-wrap
  27393. msgid ""
  27394. " '((22 \"127.0.0.1:22\")\n"
  27395. " (80 \"127.0.0.1:8080\"))\n"
  27396. msgstr ""
  27397. #. type: deffn
  27398. #: guix-git/doc/guix.texi:18624
  27399. 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."
  27400. msgstr ""
  27401. #. type: deffn
  27402. #: guix-git/doc/guix.texi:18628
  27403. 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."
  27404. msgstr ""
  27405. #. type: deffn
  27406. #: guix-git/doc/guix.texi:18631
  27407. msgid "See @uref{https://www.torproject.org/docs/tor-hidden-service.html.en, the Tor project's documentation} for more information."
  27408. msgstr ""
  27409. #. type: Plain text
  27410. #: guix-git/doc/guix.texi:18634
  27411. msgid "The @code{(gnu services rsync)} module provides the following services:"
  27412. msgstr ""
  27413. #. type: Plain text
  27414. #: guix-git/doc/guix.texi:18638
  27415. 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."
  27416. msgstr ""
  27417. #. type: deffn
  27418. #: guix-git/doc/guix.texi:18639
  27419. #, no-wrap
  27420. msgid "{Scheme Variable} rsync-service-type"
  27421. msgstr ""
  27422. #. type: deffn
  27423. #: guix-git/doc/guix.texi:18643
  27424. 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:"
  27425. msgstr ""
  27426. #. type: lisp
  27427. #: guix-git/doc/guix.texi:18656
  27428. #, no-wrap
  27429. msgid ""
  27430. ";; Export two directories over rsync. By default rsync listens on\n"
  27431. ";; all the network interfaces.\n"
  27432. "(service rsync-service-type\n"
  27433. " (rsync-configuration\n"
  27434. " (modules (list (rsync-module\n"
  27435. " (name \"music\")\n"
  27436. " (file-name \"/srv/zik\")\n"
  27437. " (read-only? #f))\n"
  27438. " (rsync-module\n"
  27439. " (name \"movies\")\n"
  27440. " (file-name \"/home/charlie/movies\"))))))\n"
  27441. msgstr ""
  27442. #. type: deffn
  27443. #: guix-git/doc/guix.texi:18659
  27444. msgid "See below for details about @code{rsync-configuration}."
  27445. msgstr ""
  27446. #. type: deftp
  27447. #: guix-git/doc/guix.texi:18661
  27448. #, no-wrap
  27449. msgid "{Data Type} rsync-configuration"
  27450. msgstr ""
  27451. #. type: deftp
  27452. #: guix-git/doc/guix.texi:18663
  27453. msgid "Data type representing the configuration for @code{rsync-service}."
  27454. msgstr ""
  27455. #. type: item
  27456. #: guix-git/doc/guix.texi:18665
  27457. #, no-wrap
  27458. msgid "@code{package} (default: @var{rsync})"
  27459. msgstr ""
  27460. #. type: table
  27461. #: guix-git/doc/guix.texi:18667
  27462. msgid "@code{rsync} package to use."
  27463. msgstr ""
  27464. #. type: item
  27465. #: guix-git/doc/guix.texi:18668 guix-git/doc/guix.texi:32426
  27466. #, fuzzy, no-wrap
  27467. msgid "@code{address} (default: @code{#f})"
  27468. msgstr "@code{challenge}(默认值:@code{#f})"
  27469. #. type: table
  27470. #: guix-git/doc/guix.texi:18671
  27471. msgid "IP address on which @command{rsync} listens for incoming connections. If unspecified, it defaults to listening on all available addresses."
  27472. msgstr ""
  27473. #. type: item
  27474. #: guix-git/doc/guix.texi:18672
  27475. #, no-wrap
  27476. msgid "@code{port-number} (default: @code{873})"
  27477. msgstr ""
  27478. #. type: table
  27479. #: guix-git/doc/guix.texi:18676
  27480. 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."
  27481. msgstr ""
  27482. #. type: item
  27483. #: guix-git/doc/guix.texi:18677
  27484. #, no-wrap
  27485. msgid "@code{pid-file} (default: @code{\"/var/run/rsyncd/rsyncd.pid\"})"
  27486. msgstr ""
  27487. #. type: table
  27488. #: guix-git/doc/guix.texi:18679
  27489. msgid "Name of the file where @command{rsync} writes its PID."
  27490. msgstr ""
  27491. #. type: item
  27492. #: guix-git/doc/guix.texi:18680
  27493. #, no-wrap
  27494. msgid "@code{lock-file} (default: @code{\"/var/run/rsyncd/rsyncd.lock\"})"
  27495. msgstr ""
  27496. #. type: table
  27497. #: guix-git/doc/guix.texi:18682
  27498. msgid "Name of the file where @command{rsync} writes its lock file."
  27499. msgstr ""
  27500. #. type: item
  27501. #: guix-git/doc/guix.texi:18683
  27502. #, no-wrap
  27503. msgid "@code{log-file} (default: @code{\"/var/log/rsyncd.log\"})"
  27504. msgstr ""
  27505. #. type: table
  27506. #: guix-git/doc/guix.texi:18685
  27507. msgid "Name of the file where @command{rsync} writes its log file."
  27508. msgstr ""
  27509. #. type: item
  27510. #: guix-git/doc/guix.texi:18686 guix-git/doc/guix.texi:36667
  27511. #, fuzzy, no-wrap
  27512. msgid "@code{user} (default: @code{\"root\"})"
  27513. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  27514. #. type: table
  27515. #: guix-git/doc/guix.texi:18688
  27516. msgid "Owner of the @code{rsync} process."
  27517. msgstr ""
  27518. #. type: item
  27519. #: guix-git/doc/guix.texi:18689
  27520. #, fuzzy, no-wrap
  27521. msgid "@code{group} (default: @code{\"root\"})"
  27522. msgstr "@code{gnome}(默认值:@code{gnome})"
  27523. #. type: table
  27524. #: guix-git/doc/guix.texi:18691
  27525. msgid "Group of the @code{rsync} process."
  27526. msgstr ""
  27527. #. type: item
  27528. #: guix-git/doc/guix.texi:18692
  27529. #, fuzzy, no-wrap
  27530. msgid "@code{uid} (default: @code{\"rsyncd\"})"
  27531. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  27532. #. type: table
  27533. #: guix-git/doc/guix.texi:18695
  27534. 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}."
  27535. msgstr ""
  27536. #. type: item
  27537. #: guix-git/doc/guix.texi:18696
  27538. #, fuzzy, no-wrap
  27539. msgid "@code{gid} (default: @code{\"rsyncd\"})"
  27540. msgstr "@code{speed}(默认值:@code{1.0})"
  27541. #. type: table
  27542. #: guix-git/doc/guix.texi:18698 guix-git/doc/guix.texi:19187
  27543. msgid "Group name or group ID that will be used when accessing the module."
  27544. msgstr ""
  27545. #. type: item
  27546. #: guix-git/doc/guix.texi:18699 guix-git/doc/guix.texi:37473
  27547. #, no-wrap
  27548. msgid "@code{modules} (default: @code{%default-modules})"
  27549. msgstr ""
  27550. #. type: table
  27551. #: guix-git/doc/guix.texi:18702
  27552. msgid "List of ``modules''---i.e., directories exported over rsync. Each element must be a @code{rsync-module} record, as described below."
  27553. msgstr ""
  27554. #. type: deftp
  27555. #: guix-git/doc/guix.texi:18705
  27556. #, fuzzy, no-wrap
  27557. msgid "{Data Type} rsync-module"
  27558. msgstr "{数据类型} build-machine"
  27559. #. type: deftp
  27560. #: guix-git/doc/guix.texi:18708
  27561. msgid "This is the data type for rsync ``modules''. A module is a directory exported over the rsync protocol. The available fields are as follows:"
  27562. msgstr ""
  27563. #. type: table
  27564. #: guix-git/doc/guix.texi:18714
  27565. msgid "The module name. This is the name that shows up in URLs. For example, if the module is called @code{music}, the corresponding URL will be @code{rsync://host.example.org/music}."
  27566. msgstr ""
  27567. #. type: code{#1}
  27568. #: guix-git/doc/guix.texi:18715
  27569. #, fuzzy, no-wrap
  27570. msgid "file-name"
  27571. msgstr "通道"
  27572. #. type: table
  27573. #: guix-git/doc/guix.texi:18717
  27574. #, fuzzy
  27575. msgid "Name of the directory being exported."
  27576. msgstr "仓库的纯函数式接口。"
  27577. #. type: table
  27578. #: guix-git/doc/guix.texi:18721
  27579. msgid "Comment associated with the module. Client user interfaces may display it when they obtain the list of available modules."
  27580. msgstr ""
  27581. #. type: item
  27582. #: guix-git/doc/guix.texi:18722
  27583. #, fuzzy, no-wrap
  27584. msgid "@code{read-only?} (default: @code{#t})"
  27585. msgstr "@code{speed}(默认值:@code{1.0})"
  27586. #. type: table
  27587. #: guix-git/doc/guix.texi:18726
  27588. msgid "Whether or not client will be able to upload files. If this is false, the uploads will be authorized if permissions on the daemon side permit it."
  27589. msgstr ""
  27590. #. type: item
  27591. #: guix-git/doc/guix.texi:18727
  27592. #, fuzzy, no-wrap
  27593. msgid "@code{chroot?} (default: @code{#t})"
  27594. msgstr "@code{port}(默认值:@code{22})"
  27595. #. type: table
  27596. #: guix-git/doc/guix.texi:18731
  27597. msgid "When this is true, the rsync daemon changes root to the module's directory before starting file transfers with the client. This improves security, but requires rsync to run as root."
  27598. msgstr ""
  27599. #. type: item
  27600. #: guix-git/doc/guix.texi:18732
  27601. #, no-wrap
  27602. msgid "@code{timeout} (default: @code{300})"
  27603. msgstr ""
  27604. #. type: table
  27605. #: guix-git/doc/guix.texi:18735
  27606. msgid "Idle time in seconds after which the daemon closes a connection with the client."
  27607. msgstr ""
  27608. #. type: Plain text
  27609. #: guix-git/doc/guix.texi:18739
  27610. msgid "The @code{(gnu services syncthing)} module provides the following services:"
  27611. msgstr ""
  27612. #. type: cindex
  27613. #: guix-git/doc/guix.texi:18739
  27614. #, no-wrap
  27615. msgid "syncthing"
  27616. msgstr ""
  27617. #. type: Plain text
  27618. #: guix-git/doc/guix.texi:18744
  27619. 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."
  27620. msgstr ""
  27621. #. type: deffn
  27622. #: guix-git/doc/guix.texi:18745
  27623. #, no-wrap
  27624. msgid "{Scheme Variable} syncthing-service-type"
  27625. msgstr ""
  27626. #. type: deffn
  27627. #: guix-git/doc/guix.texi:18749
  27628. 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:"
  27629. msgstr ""
  27630. #. type: lisp
  27631. #: guix-git/doc/guix.texi:18753
  27632. #, no-wrap
  27633. msgid ""
  27634. "(service syncthing-service-type\n"
  27635. " (syncthing-configuration (user \"alice\")))\n"
  27636. msgstr ""
  27637. #. type: deffn
  27638. #: guix-git/doc/guix.texi:18756
  27639. msgid "See below for details about @code{syncthing-configuration}."
  27640. msgstr ""
  27641. #. type: deftp
  27642. #: guix-git/doc/guix.texi:18757
  27643. #, fuzzy, no-wrap
  27644. msgid "{Data Type} syncthing-configuration"
  27645. msgstr "{数据类型} build-machine"
  27646. #. type: deftp
  27647. #: guix-git/doc/guix.texi:18759
  27648. #, fuzzy
  27649. msgid "Data type representing the configuration for @code{syncthing-service-type}."
  27650. msgstr "管理操作系统配置。"
  27651. #. type: item
  27652. #: guix-git/doc/guix.texi:18761
  27653. #, fuzzy, no-wrap
  27654. msgid "@code{syncthing} (default: @var{syncthing})"
  27655. msgstr "@code{xfce}(默认值:@code{xfce})"
  27656. #. type: table
  27657. #: guix-git/doc/guix.texi:18763
  27658. #, fuzzy
  27659. msgid "@code{syncthing} package to use."
  27660. msgstr "软件包数据类型。"
  27661. #. type: item
  27662. #: guix-git/doc/guix.texi:18764
  27663. #, fuzzy, no-wrap
  27664. msgid "@code{arguments} (default: @var{'()})"
  27665. msgstr "@code{features} (@code{'()})"
  27666. #. type: table
  27667. #: guix-git/doc/guix.texi:18766
  27668. msgid "List of command-line arguments passing to @code{syncthing} binary."
  27669. msgstr ""
  27670. #. type: item
  27671. #: guix-git/doc/guix.texi:18767
  27672. #, fuzzy, no-wrap
  27673. msgid "@code{logflags} (default: @var{0})"
  27674. msgstr "@code{challenge}(默认值:@code{#f})"
  27675. #. type: table
  27676. #: guix-git/doc/guix.texi:18770
  27677. msgid "Sum of logging flags, see @uref{https://docs.syncthing.net/users/syncthing.html#cmdoption-logflags, Syncthing documentation logflags}."
  27678. msgstr ""
  27679. #. type: item
  27680. #: guix-git/doc/guix.texi:18771
  27681. #, fuzzy, no-wrap
  27682. msgid "@code{user} (default: @var{#f})"
  27683. msgstr "@code{challenge}(默认值:@code{#f})"
  27684. #. type: table
  27685. #: guix-git/doc/guix.texi:18774
  27686. msgid "The user as which the Syncthing service is to be run. This assumes that the specified user exists."
  27687. msgstr ""
  27688. #. type: item
  27689. #: guix-git/doc/guix.texi:18775
  27690. #, fuzzy, no-wrap
  27691. msgid "@code{group} (default: @var{\"users\"})"
  27692. msgstr "@code{gnome}(默认值:@code{gnome})"
  27693. #. type: table
  27694. #: guix-git/doc/guix.texi:18778
  27695. msgid "The group as which the Syncthing service is to be run. This assumes that the specified group exists."
  27696. msgstr ""
  27697. #. type: item
  27698. #: guix-git/doc/guix.texi:18779
  27699. #, fuzzy, no-wrap
  27700. msgid "@code{home} (default: @var{#f})"
  27701. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  27702. #. type: table
  27703. #: guix-git/doc/guix.texi:18782
  27704. msgid "Common configuration and data directory. The default configuration directory is @file{$HOME} of the specified Syncthing @code{user}."
  27705. msgstr ""
  27706. #. type: Plain text
  27707. #: guix-git/doc/guix.texi:18788
  27708. msgid "Furthermore, @code{(gnu services ssh)} provides the following services."
  27709. msgstr ""
  27710. #. type: cindex
  27711. #: guix-git/doc/guix.texi:18788 guix-git/doc/guix.texi:18827
  27712. #: guix-git/doc/guix.texi:36810
  27713. #, no-wrap
  27714. msgid "SSH"
  27715. msgstr ""
  27716. #. type: cindex
  27717. #: guix-git/doc/guix.texi:18789 guix-git/doc/guix.texi:18828
  27718. #: guix-git/doc/guix.texi:36811
  27719. #, no-wrap
  27720. msgid "SSH server"
  27721. msgstr ""
  27722. #. type: deffn
  27723. #: guix-git/doc/guix.texi:18791
  27724. #, no-wrap
  27725. msgid "{Scheme Procedure} lsh-service [#:host-key \"/etc/lsh/host-key\"] @"
  27726. msgstr ""
  27727. #. type: deffn
  27728. #: guix-git/doc/guix.texi:18800
  27729. 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."
  27730. msgstr ""
  27731. #. type: deffn
  27732. #: guix-git/doc/guix.texi:18806
  27733. 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}."
  27734. msgstr ""
  27735. #. type: deffn
  27736. #: guix-git/doc/guix.texi:18810
  27737. 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."
  27738. msgstr ""
  27739. #. type: deffn
  27740. #: guix-git/doc/guix.texi:18815
  27741. 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})."
  27742. msgstr ""
  27743. #. type: deffn
  27744. #: guix-git/doc/guix.texi:18819
  27745. 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."
  27746. msgstr ""
  27747. #. type: deffn
  27748. #: guix-git/doc/guix.texi:18823
  27749. 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."
  27750. msgstr ""
  27751. #. type: deffn
  27752. #: guix-git/doc/guix.texi:18825
  27753. msgid "The other options should be self-descriptive."
  27754. msgstr ""
  27755. #. type: deffn
  27756. #: guix-git/doc/guix.texi:18829
  27757. #, no-wrap
  27758. msgid "{Scheme Variable} openssh-service-type"
  27759. msgstr ""
  27760. #. type: deffn
  27761. #: guix-git/doc/guix.texi:18833
  27762. 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:"
  27763. msgstr ""
  27764. #. type: lisp
  27765. #: guix-git/doc/guix.texi:18842
  27766. #, no-wrap
  27767. msgid ""
  27768. "(service openssh-service-type\n"
  27769. " (openssh-configuration\n"
  27770. " (x11-forwarding? #t)\n"
  27771. " (permit-root-login 'prohibit-password)\n"
  27772. " (authorized-keys\n"
  27773. " `((\"alice\" ,(local-file \"alice.pub\"))\n"
  27774. " (\"bob\" ,(local-file \"bob.pub\"))))))\n"
  27775. msgstr ""
  27776. #. type: deffn
  27777. #: guix-git/doc/guix.texi:18845
  27778. msgid "See below for details about @code{openssh-configuration}."
  27779. msgstr ""
  27780. #. type: deffn
  27781. #: guix-git/doc/guix.texi:18848
  27782. msgid "This service can be extended with extra authorized keys, as in this example:"
  27783. msgstr ""
  27784. #. type: lisp
  27785. #: guix-git/doc/guix.texi:18853
  27786. #, no-wrap
  27787. msgid ""
  27788. "(service-extension openssh-service-type\n"
  27789. " (const `((\"charlie\"\n"
  27790. " ,(local-file \"charlie.pub\")))))\n"
  27791. msgstr ""
  27792. #. type: deftp
  27793. #: guix-git/doc/guix.texi:18856
  27794. #, no-wrap
  27795. msgid "{Data Type} openssh-configuration"
  27796. msgstr ""
  27797. #. type: deftp
  27798. #: guix-git/doc/guix.texi:18858
  27799. msgid "This is the configuration record for OpenSSH's @command{sshd}."
  27800. msgstr ""
  27801. #. type: item
  27802. #: guix-git/doc/guix.texi:18860
  27803. #, fuzzy, no-wrap
  27804. msgid "@code{openssh} (default @var{openssh})"
  27805. msgstr "@code{gnome}(默认值:@code{gnome})"
  27806. #. type: table
  27807. #: guix-git/doc/guix.texi:18862
  27808. #, fuzzy
  27809. msgid "The OpenSSH package to use."
  27810. msgstr "软件包数据类型。"
  27811. #. type: item
  27812. #: guix-git/doc/guix.texi:18863
  27813. #, no-wrap
  27814. msgid "@code{pid-file} (default: @code{\"/var/run/sshd.pid\"})"
  27815. msgstr ""
  27816. #. type: table
  27817. #: guix-git/doc/guix.texi:18865
  27818. msgid "Name of the file where @command{sshd} writes its PID."
  27819. msgstr ""
  27820. #. type: item
  27821. #: guix-git/doc/guix.texi:18866
  27822. #, no-wrap
  27823. msgid "@code{port-number} (default: @code{22})"
  27824. msgstr ""
  27825. #. type: table
  27826. #: guix-git/doc/guix.texi:18868
  27827. msgid "TCP port on which @command{sshd} listens for incoming connections."
  27828. msgstr ""
  27829. #. type: item
  27830. #: guix-git/doc/guix.texi:18869
  27831. #, no-wrap
  27832. msgid "@code{permit-root-login} (default: @code{#f})"
  27833. msgstr ""
  27834. #. type: table
  27835. #: guix-git/doc/guix.texi:18874
  27836. 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."
  27837. msgstr ""
  27838. #. type: item
  27839. #: guix-git/doc/guix.texi:18875 guix-git/doc/guix.texi:19046
  27840. #, no-wrap
  27841. msgid "@code{allow-empty-passwords?} (default: @code{#f})"
  27842. msgstr ""
  27843. #. type: table
  27844. #: guix-git/doc/guix.texi:18878
  27845. msgid "When true, users with empty passwords may log in. When false, they may not."
  27846. msgstr ""
  27847. #. type: item
  27848. #: guix-git/doc/guix.texi:18879 guix-git/doc/guix.texi:19049
  27849. #, no-wrap
  27850. msgid "@code{password-authentication?} (default: @code{#t})"
  27851. msgstr ""
  27852. #. type: table
  27853. #: guix-git/doc/guix.texi:18882
  27854. msgid "When true, users may log in with their password. When false, they have other authentication methods."
  27855. msgstr ""
  27856. #. type: item
  27857. #: guix-git/doc/guix.texi:18883
  27858. #, no-wrap
  27859. msgid "@code{public-key-authentication?} (default: @code{#t})"
  27860. msgstr ""
  27861. #. type: table
  27862. #: guix-git/doc/guix.texi:18886
  27863. msgid "When true, users may log in using public key authentication. When false, users have to use other authentication method."
  27864. msgstr ""
  27865. #. type: table
  27866. #: guix-git/doc/guix.texi:18889
  27867. msgid "Authorized public keys are stored in @file{~/.ssh/authorized_keys}. This is used only by protocol version 2."
  27868. msgstr ""
  27869. #. type: item
  27870. #: guix-git/doc/guix.texi:18890
  27871. #, no-wrap
  27872. msgid "@code{x11-forwarding?} (default: @code{#f})"
  27873. msgstr ""
  27874. #. type: table
  27875. #: guix-git/doc/guix.texi:18894
  27876. msgid "When true, forwarding of X11 graphical client connections is enabled---in other words, @command{ssh} options @option{-X} and @option{-Y} will work."
  27877. msgstr ""
  27878. #. type: item
  27879. #: guix-git/doc/guix.texi:18895
  27880. #, no-wrap
  27881. msgid "@code{allow-agent-forwarding?} (default: @code{#t})"
  27882. msgstr ""
  27883. #. type: table
  27884. #: guix-git/doc/guix.texi:18897
  27885. msgid "Whether to allow agent forwarding."
  27886. msgstr ""
  27887. #. type: item
  27888. #: guix-git/doc/guix.texi:18898
  27889. #, no-wrap
  27890. msgid "@code{allow-tcp-forwarding?} (default: @code{#t})"
  27891. msgstr ""
  27892. #. type: table
  27893. #: guix-git/doc/guix.texi:18900
  27894. msgid "Whether to allow TCP forwarding."
  27895. msgstr ""
  27896. #. type: item
  27897. #: guix-git/doc/guix.texi:18901
  27898. #, no-wrap
  27899. msgid "@code{gateway-ports?} (default: @code{#f})"
  27900. msgstr ""
  27901. #. type: table
  27902. #: guix-git/doc/guix.texi:18903
  27903. msgid "Whether to allow gateway ports."
  27904. msgstr ""
  27905. #. type: item
  27906. #: guix-git/doc/guix.texi:18904
  27907. #, no-wrap
  27908. msgid "@code{challenge-response-authentication?} (default: @code{#f})"
  27909. msgstr ""
  27910. #. type: table
  27911. #: guix-git/doc/guix.texi:18907
  27912. msgid "Specifies whether challenge response authentication is allowed (e.g.@: via PAM)."
  27913. msgstr ""
  27914. #. type: item
  27915. #: guix-git/doc/guix.texi:18908
  27916. #, no-wrap
  27917. msgid "@code{use-pam?} (default: @code{#t})"
  27918. msgstr ""
  27919. #. type: table
  27920. #: guix-git/doc/guix.texi:18914
  27921. 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."
  27922. msgstr ""
  27923. #. type: table
  27924. #: guix-git/doc/guix.texi:18919
  27925. 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?}."
  27926. msgstr ""
  27927. #. type: item
  27928. #: guix-git/doc/guix.texi:18920
  27929. #, no-wrap
  27930. msgid "@code{print-last-log?} (default: @code{#t})"
  27931. msgstr ""
  27932. #. type: table
  27933. #: guix-git/doc/guix.texi:18923
  27934. msgid "Specifies whether @command{sshd} should print the date and time of the last user login when a user logs in interactively."
  27935. msgstr ""
  27936. #. type: item
  27937. #: guix-git/doc/guix.texi:18924
  27938. #, no-wrap
  27939. msgid "@code{subsystems} (default: @code{'((\"sftp\" \"internal-sftp\"))})"
  27940. msgstr ""
  27941. #. type: table
  27942. #: guix-git/doc/guix.texi:18926
  27943. msgid "Configures external subsystems (e.g.@: file transfer daemon)."
  27944. msgstr ""
  27945. #. type: table
  27946. #: guix-git/doc/guix.texi:18930
  27947. 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."
  27948. msgstr ""
  27949. #. type: table
  27950. #: guix-git/doc/guix.texi:18933
  27951. msgid "The command @command{internal-sftp} implements an in-process SFTP server. Alternatively, one can specify the @command{sftp-server} command:"
  27952. msgstr ""
  27953. #. type: lisp
  27954. #: guix-git/doc/guix.texi:18938
  27955. #, no-wrap
  27956. msgid ""
  27957. "(service openssh-service-type\n"
  27958. " (openssh-configuration\n"
  27959. " (subsystems\n"
  27960. " `((\"sftp\" ,(file-append openssh \"/libexec/sftp-server\"))))))\n"
  27961. msgstr ""
  27962. #. type: item
  27963. #: guix-git/doc/guix.texi:18940
  27964. #, no-wrap
  27965. msgid "@code{accepted-environment} (default: @code{'()})"
  27966. msgstr ""
  27967. #. type: table
  27968. #: guix-git/doc/guix.texi:18942
  27969. msgid "List of strings describing which environment variables may be exported."
  27970. msgstr ""
  27971. #. type: table
  27972. #: guix-git/doc/guix.texi:18945
  27973. msgid "Each string gets on its own line. See the @code{AcceptEnv} option in @code{man sshd_config}."
  27974. msgstr ""
  27975. #. type: table
  27976. #: guix-git/doc/guix.texi:18950
  27977. 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."
  27978. msgstr ""
  27979. #. type: lisp
  27980. #: guix-git/doc/guix.texi:18955
  27981. #, no-wrap
  27982. msgid ""
  27983. "(service openssh-service-type\n"
  27984. " (openssh-configuration\n"
  27985. " (accepted-environment '(\"COLORTERM\"))))\n"
  27986. msgstr ""
  27987. #. type: item
  27988. #: guix-git/doc/guix.texi:18957
  27989. #, no-wrap
  27990. msgid "@code{authorized-keys} (default: @code{'()})"
  27991. msgstr ""
  27992. #. type: cindex
  27993. #: guix-git/doc/guix.texi:18958
  27994. #, no-wrap
  27995. msgid "authorized keys, SSH"
  27996. msgstr ""
  27997. #. type: cindex
  27998. #: guix-git/doc/guix.texi:18959
  27999. #, no-wrap
  28000. msgid "SSH authorized keys"
  28001. msgstr ""
  28002. #. type: table
  28003. #: guix-git/doc/guix.texi:18963
  28004. 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:"
  28005. msgstr ""
  28006. #. type: lisp
  28007. #: guix-git/doc/guix.texi:18970
  28008. #, no-wrap
  28009. msgid ""
  28010. "(openssh-configuration\n"
  28011. " (authorized-keys\n"
  28012. " `((\"rekado\" ,(local-file \"rekado.pub\"))\n"
  28013. " (\"chris\" ,(local-file \"chris.pub\"))\n"
  28014. " (\"root\" ,(local-file \"rekado.pub\") ,(local-file \"chris.pub\")))))\n"
  28015. msgstr ""
  28016. #. type: table
  28017. #: guix-git/doc/guix.texi:18975
  28018. msgid "registers the specified public keys for user accounts @code{rekado}, @code{chris}, and @code{root}."
  28019. msgstr ""
  28020. #. type: table
  28021. #: guix-git/doc/guix.texi:18978
  28022. msgid "Additional authorized keys can be specified @i{via} @code{service-extension}."
  28023. msgstr ""
  28024. #. type: table
  28025. #: guix-git/doc/guix.texi:18981
  28026. msgid "Note that this does @emph{not} interfere with the use of @file{~/.ssh/authorized_keys}."
  28027. msgstr ""
  28028. #. type: item
  28029. #: guix-git/doc/guix.texi:18982
  28030. #, fuzzy, no-wrap
  28031. msgid "@code{generate-host-keys?} (default: @code{#t})"
  28032. msgstr "@code{mate}(默认值:@code{mate})"
  28033. #. type: table
  28034. #: guix-git/doc/guix.texi:18985
  28035. msgid "Whether to generate host key pairs with @command{ssh-keygen -A} under @file{/etc/ssh} if there are none."
  28036. msgstr ""
  28037. #. type: table
  28038. #: guix-git/doc/guix.texi:18991
  28039. msgid "Generating key pairs takes a few seconds when enough entropy is available and is only done once. You might want to turn it off for instance in a virtual machine that does not need it because host keys are provided in some other way, and where the extra boot time is a problem."
  28040. msgstr ""
  28041. #. type: item
  28042. #: guix-git/doc/guix.texi:18992 guix-git/doc/guix.texi:19423
  28043. #, no-wrap
  28044. msgid "@code{log-level} (default: @code{'info})"
  28045. msgstr ""
  28046. #. type: table
  28047. #: guix-git/doc/guix.texi:18996
  28048. 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."
  28049. msgstr ""
  28050. #. type: item
  28051. #: guix-git/doc/guix.texi:18997 guix-git/doc/guix.texi:22313
  28052. #: guix-git/doc/guix.texi:27364
  28053. #, no-wrap
  28054. msgid "@code{extra-content} (default: @code{\"\"})"
  28055. msgstr ""
  28056. #. type: table
  28057. #: guix-git/doc/guix.texi:19002
  28058. 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:"
  28059. msgstr ""
  28060. #. type: lisp
  28061. #: guix-git/doc/guix.texi:19008
  28062. #, no-wrap
  28063. msgid ""
  28064. "(openssh-configuration\n"
  28065. " (extra-content \"\\\n"
  28066. "Match Address 192.168.0.1\n"
  28067. " PermitRootLogin yes\"))\n"
  28068. msgstr ""
  28069. #. type: deffn
  28070. #: guix-git/doc/guix.texi:19013
  28071. #, no-wrap
  28072. msgid "{Scheme Procedure} dropbear-service [@var{config}]"
  28073. msgstr ""
  28074. #. type: deffn
  28075. #: guix-git/doc/guix.texi:19017
  28076. 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."
  28077. msgstr ""
  28078. #. type: deffn
  28079. #: guix-git/doc/guix.texi:19020
  28080. msgid "For example, to specify a Dropbear service listening on port 1234, add this call to the operating system's @code{services} field:"
  28081. msgstr ""
  28082. #. type: lisp
  28083. #: guix-git/doc/guix.texi:19024
  28084. #, no-wrap
  28085. msgid ""
  28086. "(dropbear-service (dropbear-configuration\n"
  28087. " (port-number 1234)))\n"
  28088. msgstr ""
  28089. #. type: deftp
  28090. #: guix-git/doc/guix.texi:19027
  28091. #, no-wrap
  28092. msgid "{Data Type} dropbear-configuration"
  28093. msgstr ""
  28094. #. type: deftp
  28095. #: guix-git/doc/guix.texi:19029
  28096. msgid "This data type represents the configuration of a Dropbear SSH daemon."
  28097. msgstr ""
  28098. #. type: item
  28099. #: guix-git/doc/guix.texi:19031
  28100. #, no-wrap
  28101. msgid "@code{dropbear} (default: @var{dropbear})"
  28102. msgstr ""
  28103. #. type: table
  28104. #: guix-git/doc/guix.texi:19033
  28105. msgid "The Dropbear package to use."
  28106. msgstr ""
  28107. #. type: item
  28108. #: guix-git/doc/guix.texi:19034
  28109. #, no-wrap
  28110. msgid "@code{port-number} (default: 22)"
  28111. msgstr ""
  28112. #. type: table
  28113. #: guix-git/doc/guix.texi:19036
  28114. msgid "The TCP port where the daemon waits for incoming connections."
  28115. msgstr ""
  28116. #. type: item
  28117. #: guix-git/doc/guix.texi:19037
  28118. #, no-wrap
  28119. msgid "@code{syslog-output?} (default: @code{#t})"
  28120. msgstr ""
  28121. #. type: table
  28122. #: guix-git/doc/guix.texi:19039
  28123. msgid "Whether to enable syslog output."
  28124. msgstr ""
  28125. #. type: item
  28126. #: guix-git/doc/guix.texi:19040
  28127. #, no-wrap
  28128. msgid "@code{pid-file} (default: @code{\"/var/run/dropbear.pid\"})"
  28129. msgstr ""
  28130. #. type: table
  28131. #: guix-git/doc/guix.texi:19042
  28132. msgid "File name of the daemon's PID file."
  28133. msgstr ""
  28134. #. type: item
  28135. #: guix-git/doc/guix.texi:19043
  28136. #, no-wrap
  28137. msgid "@code{root-login?} (default: @code{#f})"
  28138. msgstr ""
  28139. #. type: table
  28140. #: guix-git/doc/guix.texi:19045
  28141. msgid "Whether to allow @code{root} logins."
  28142. msgstr ""
  28143. #. type: table
  28144. #: guix-git/doc/guix.texi:19048
  28145. msgid "Whether to allow empty passwords."
  28146. msgstr ""
  28147. #. type: table
  28148. #: guix-git/doc/guix.texi:19051
  28149. msgid "Whether to enable password-based authentication."
  28150. msgstr ""
  28151. #. type: cindex
  28152. #: guix-git/doc/guix.texi:19054
  28153. #, no-wrap
  28154. msgid "AutoSSH"
  28155. msgstr ""
  28156. #. type: deffn
  28157. #: guix-git/doc/guix.texi:19055
  28158. #, no-wrap
  28159. msgid "{Scheme Variable} autossh-service-type"
  28160. msgstr ""
  28161. #. type: deffn
  28162. #: guix-git/doc/guix.texi:19063
  28163. 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."
  28164. msgstr ""
  28165. #. type: deffn
  28166. #: guix-git/doc/guix.texi:19067
  28167. 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."
  28168. msgstr ""
  28169. #. type: deffn
  28170. #: guix-git/doc/guix.texi:19072
  28171. 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:"
  28172. msgstr ""
  28173. #. type: lisp
  28174. #: guix-git/doc/guix.texi:19078
  28175. #, no-wrap
  28176. msgid ""
  28177. "(service autossh-service-type\n"
  28178. " (autossh-configuration\n"
  28179. " (user \"pino\")\n"
  28180. " (ssh-options (list \"-T\" \"-N\" \"-L\" \"8081:localhost:8081\" \"remote.net\"))))\n"
  28181. msgstr ""
  28182. #. type: deftp
  28183. #: guix-git/doc/guix.texi:19081
  28184. #, no-wrap
  28185. msgid "{Data Type} autossh-configuration"
  28186. msgstr ""
  28187. #. type: deftp
  28188. #: guix-git/doc/guix.texi:19083
  28189. msgid "This data type represents the configuration of an AutoSSH service."
  28190. msgstr ""
  28191. #. type: item
  28192. #: guix-git/doc/guix.texi:19086
  28193. #, fuzzy, no-wrap
  28194. msgid "@code{user} (default @code{\"autossh\"})"
  28195. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  28196. #. type: table
  28197. #: guix-git/doc/guix.texi:19089
  28198. msgid "The user as which the AutoSSH service is to be run. This assumes that the specified user exists."
  28199. msgstr ""
  28200. #. type: item
  28201. #: guix-git/doc/guix.texi:19090
  28202. #, fuzzy, no-wrap
  28203. msgid "@code{poll} (default @code{600})"
  28204. msgstr "@code{port}(默认值:@code{22})"
  28205. #. type: table
  28206. #: guix-git/doc/guix.texi:19092
  28207. msgid "Specifies the connection poll time in seconds."
  28208. msgstr ""
  28209. #. type: item
  28210. #: guix-git/doc/guix.texi:19093
  28211. #, fuzzy, no-wrap
  28212. msgid "@code{first-poll} (default @code{#f})"
  28213. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  28214. #. type: table
  28215. #: guix-git/doc/guix.texi:19099
  28216. 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}."
  28217. msgstr ""
  28218. #. type: item
  28219. #: guix-git/doc/guix.texi:19100
  28220. #, fuzzy, no-wrap
  28221. msgid "@code{gate-time} (default @code{30})"
  28222. msgstr "@code{mate}(默认值:@code{mate})"
  28223. #. type: table
  28224. #: guix-git/doc/guix.texi:19103
  28225. msgid "Specifies how many seconds an SSH connection must be active before it is considered successful."
  28226. msgstr ""
  28227. #. type: item
  28228. #: guix-git/doc/guix.texi:19104
  28229. #, fuzzy, no-wrap
  28230. msgid "@code{log-level} (default @code{1})"
  28231. msgstr "@code{speed}(默认值:@code{1.0})"
  28232. #. type: table
  28233. #: guix-git/doc/guix.texi:19107
  28234. msgid "The log level, corresponding to the levels used by syslog---so @code{0} is the most silent while @code{7} is the chattiest."
  28235. msgstr ""
  28236. #. type: item
  28237. #: guix-git/doc/guix.texi:19108
  28238. #, fuzzy, no-wrap
  28239. msgid "@code{max-start} (default @code{#f})"
  28240. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  28241. #. type: table
  28242. #: guix-git/doc/guix.texi:19111
  28243. 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."
  28244. msgstr ""
  28245. #. type: item
  28246. #: guix-git/doc/guix.texi:19112
  28247. #, fuzzy, no-wrap
  28248. msgid "@code{message} (default @code{\"\"})"
  28249. msgstr "@code{display}(默认值:@code{\":0\"})"
  28250. #. type: table
  28251. #: guix-git/doc/guix.texi:19114
  28252. msgid "The message to append to the echo message sent when testing connections."
  28253. msgstr ""
  28254. #. type: item
  28255. #: guix-git/doc/guix.texi:19115
  28256. #, fuzzy, no-wrap
  28257. msgid "@code{port} (default @code{\"0\"})"
  28258. msgstr "@code{port}(默认值:@code{22})"
  28259. #. type: table
  28260. #: guix-git/doc/guix.texi:19125
  28261. 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."
  28262. msgstr ""
  28263. #. type: item
  28264. #: guix-git/doc/guix.texi:19126
  28265. #, fuzzy, no-wrap
  28266. msgid "@code{ssh-options} (default @code{'()})"
  28267. msgstr "@code{includes}(默认值:@code{'()})"
  28268. #. type: table
  28269. #: guix-git/doc/guix.texi:19130
  28270. 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."
  28271. msgstr ""
  28272. #. type: cindex
  28273. #: guix-git/doc/guix.texi:19134
  28274. #, no-wrap
  28275. msgid "WebSSH"
  28276. msgstr ""
  28277. #. type: deffn
  28278. #: guix-git/doc/guix.texi:19135
  28279. #, no-wrap
  28280. msgid "{Scheme Variable} webssh-service-type"
  28281. msgstr ""
  28282. #. type: deffn
  28283. #: guix-git/doc/guix.texi:19141
  28284. 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."
  28285. msgstr ""
  28286. #. type: deffn
  28287. #: guix-git/doc/guix.texi:19147
  28288. 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:"
  28289. msgstr ""
  28290. #. type: lisp
  28291. #: guix-git/doc/guix.texi:19155
  28292. #, no-wrap
  28293. msgid ""
  28294. "(service webssh-service-type\n"
  28295. " (webssh-configuration (address \"127.0.0.1\")\n"
  28296. " (port 8888)\n"
  28297. " (policy 'reject)\n"
  28298. " (known-hosts '(\"localhost ecdsa-sha2-nistp256 AAAA…\"\n"
  28299. " \"127.0.0.1 ecdsa-sha2-nistp256 AAAA…\"))))\n"
  28300. "\n"
  28301. msgstr ""
  28302. #. type: lisp
  28303. #: guix-git/doc/guix.texi:19171
  28304. #, no-wrap
  28305. msgid ""
  28306. "(service nginx-service-type\n"
  28307. " (nginx-configuration\n"
  28308. " (server-blocks\n"
  28309. " (list\n"
  28310. " (nginx-server-configuration\n"
  28311. " (inherit %webssh-configuration-nginx)\n"
  28312. " (server-name '(\"webssh.example.com\"))\n"
  28313. " (listen '(\"443 ssl\"))\n"
  28314. " (ssl-certificate (letsencrypt-certificate \"webssh.example.com\"))\n"
  28315. " (ssl-certificate-key (letsencrypt-key \"webssh.example.com\"))\n"
  28316. " (locations\n"
  28317. " (cons (nginx-location-configuration\n"
  28318. " (uri \"/.well-known\")\n"
  28319. " (body '(\"root /var/www;\")))\n"
  28320. " (nginx-server-configuration-locations %webssh-configuration-nginx))))))))\n"
  28321. msgstr ""
  28322. #. type: deftp
  28323. #: guix-git/doc/guix.texi:19174
  28324. #, no-wrap
  28325. msgid "{Data Type} webssh-configuration"
  28326. msgstr ""
  28327. #. type: deftp
  28328. #: guix-git/doc/guix.texi:19176
  28329. msgid "Data type representing the configuration for @code{webssh-service}."
  28330. msgstr ""
  28331. #. type: item
  28332. #: guix-git/doc/guix.texi:19178
  28333. #, fuzzy, no-wrap
  28334. msgid "@code{package} (default: @var{webssh})"
  28335. msgstr "@code{xfce}(默认值:@code{xfce})"
  28336. #. type: table
  28337. #: guix-git/doc/guix.texi:19180
  28338. msgid "@code{webssh} package to use."
  28339. msgstr ""
  28340. #. type: item
  28341. #: guix-git/doc/guix.texi:19181
  28342. #, fuzzy, no-wrap
  28343. msgid "@code{user-name} (default: @var{\"webssh\"})"
  28344. msgstr "@code{gnome}(默认值:@code{gnome})"
  28345. #. type: table
  28346. #: guix-git/doc/guix.texi:19184
  28347. msgid "User name or user ID that file transfers to and from that module should take place."
  28348. msgstr ""
  28349. #. type: item
  28350. #: guix-git/doc/guix.texi:19185
  28351. #, fuzzy, no-wrap
  28352. msgid "@code{group-name} (default: @var{\"webssh\"})"
  28353. msgstr "@code{gnome}(默认值:@code{gnome})"
  28354. #. type: item
  28355. #: guix-git/doc/guix.texi:19188
  28356. #, fuzzy, no-wrap
  28357. msgid "@code{address} (default: @var{#f})"
  28358. msgstr "@code{challenge}(默认值:@code{#f})"
  28359. #. type: table
  28360. #: guix-git/doc/guix.texi:19190
  28361. msgid "IP address on which @command{webssh} listens for incoming connections."
  28362. msgstr ""
  28363. #. type: item
  28364. #: guix-git/doc/guix.texi:19191
  28365. #, fuzzy, no-wrap
  28366. msgid "@code{port} (default: @var{8888})"
  28367. msgstr "@code{port}(默认值:@code{22})"
  28368. #. type: table
  28369. #: guix-git/doc/guix.texi:19193
  28370. msgid "TCP port on which @command{webssh} listens for incoming connections."
  28371. msgstr ""
  28372. #. type: item
  28373. #: guix-git/doc/guix.texi:19194
  28374. #, fuzzy, no-wrap
  28375. msgid "@code{policy} (default: @var{#f})"
  28376. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  28377. #. type: table
  28378. #: guix-git/doc/guix.texi:19196
  28379. msgid "Connection policy. @var{reject} policy requires to specify @var{known-hosts}."
  28380. msgstr ""
  28381. #. type: item
  28382. #: guix-git/doc/guix.texi:19197
  28383. #, fuzzy, no-wrap
  28384. msgid "@code{known-hosts} (default: @var{'()})"
  28385. msgstr "@code{features} (@code{'()})"
  28386. #. type: table
  28387. #: guix-git/doc/guix.texi:19199
  28388. msgid "List of hosts which allowed for SSH connection from @command{webssh}."
  28389. msgstr ""
  28390. #. type: item
  28391. #: guix-git/doc/guix.texi:19200
  28392. #, fuzzy, no-wrap
  28393. msgid "@code{log-file} (default: @file{\"/var/log/webssh.log\"})"
  28394. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  28395. #. type: table
  28396. #: guix-git/doc/guix.texi:19202
  28397. msgid "Name of the file where @command{webssh} writes its log file."
  28398. msgstr ""
  28399. #. type: item
  28400. #: guix-git/doc/guix.texi:19203
  28401. #, fuzzy, no-wrap
  28402. msgid "@code{log-level} (default: @var{#f})"
  28403. msgstr "@code{challenge}(默认值:@code{#f})"
  28404. #. type: table
  28405. #: guix-git/doc/guix.texi:19205
  28406. msgid "Logging level."
  28407. msgstr ""
  28408. #. type: defvr
  28409. #: guix-git/doc/guix.texi:19209
  28410. #, no-wrap
  28411. msgid "{Scheme Variable} %facebook-host-aliases"
  28412. msgstr ""
  28413. #. type: defvr
  28414. #: guix-git/doc/guix.texi:19215
  28415. 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}."
  28416. msgstr ""
  28417. #. type: defvr
  28418. #: guix-git/doc/guix.texi:19219
  28419. 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}}):"
  28420. msgstr ""
  28421. #. type: lisp
  28422. #: guix-git/doc/guix.texi:19232
  28423. #, no-wrap
  28424. msgid ""
  28425. "(operating-system\n"
  28426. " (host-name \"mymachine\")\n"
  28427. " ;; ...\n"
  28428. " (hosts-file\n"
  28429. " ;; Create a /etc/hosts file with aliases for \"localhost\"\n"
  28430. " ;; and \"mymachine\", as well as for Facebook servers.\n"
  28431. " (plain-file \"hosts\"\n"
  28432. " (string-append (local-host-aliases host-name)\n"
  28433. " %facebook-host-aliases))))\n"
  28434. msgstr ""
  28435. #. type: defvr
  28436. #: guix-git/doc/guix.texi:19236
  28437. msgid "This mechanism can prevent programs running locally, such as Web browsers, from accessing Facebook."
  28438. msgstr ""
  28439. #. type: Plain text
  28440. #: guix-git/doc/guix.texi:19239
  28441. msgid "The @code{(gnu services avahi)} provides the following definition."
  28442. msgstr ""
  28443. #. type: defvr
  28444. #: guix-git/doc/guix.texi:19240
  28445. #, no-wrap
  28446. msgid "{Scheme Variable} avahi-service-type"
  28447. msgstr ""
  28448. #. type: defvr
  28449. #: guix-git/doc/guix.texi:19245
  28450. 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."
  28451. msgstr ""
  28452. #. type: defvr
  28453. #: guix-git/doc/guix.texi:19250
  28454. 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."
  28455. msgstr ""
  28456. #. type: defvr
  28457. #: guix-git/doc/guix.texi:19253
  28458. msgid "Additionally, add the @var{avahi} package to the system profile so that commands such as @command{avahi-browse} are directly usable."
  28459. msgstr ""
  28460. #. type: deftp
  28461. #: guix-git/doc/guix.texi:19255
  28462. #, no-wrap
  28463. msgid "{Data Type} avahi-configuration"
  28464. msgstr ""
  28465. #. type: deftp
  28466. #: guix-git/doc/guix.texi:19257
  28467. msgid "Data type representation the configuration for Avahi."
  28468. msgstr ""
  28469. #. type: item
  28470. #: guix-git/doc/guix.texi:19260
  28471. #, no-wrap
  28472. msgid "@code{host-name} (default: @code{#f})"
  28473. msgstr ""
  28474. #. type: table
  28475. #: guix-git/doc/guix.texi:19263
  28476. 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."
  28477. msgstr ""
  28478. #. type: item
  28479. #: guix-git/doc/guix.texi:19264 guix-git/doc/guix.texi:30042
  28480. #, no-wrap
  28481. msgid "@code{publish?} (default: @code{#t})"
  28482. msgstr ""
  28483. #. type: table
  28484. #: guix-git/doc/guix.texi:19267
  28485. msgid "When true, allow host names and services to be published (broadcast) over the network."
  28486. msgstr ""
  28487. #. type: item
  28488. #: guix-git/doc/guix.texi:19268
  28489. #, no-wrap
  28490. msgid "@code{publish-workstation?} (default: @code{#t})"
  28491. msgstr ""
  28492. #. type: table
  28493. #: guix-git/doc/guix.texi:19272
  28494. 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:"
  28495. msgstr ""
  28496. #. type: example
  28497. #: guix-git/doc/guix.texi:19275
  28498. #, no-wrap
  28499. msgid "avahi-browse _workstation._tcp\n"
  28500. msgstr ""
  28501. #. type: item
  28502. #: guix-git/doc/guix.texi:19277
  28503. #, no-wrap
  28504. msgid "@code{wide-area?} (default: @code{#f})"
  28505. msgstr ""
  28506. #. type: table
  28507. #: guix-git/doc/guix.texi:19279
  28508. msgid "When true, DNS-SD over unicast DNS is enabled."
  28509. msgstr ""
  28510. #. type: item
  28511. #: guix-git/doc/guix.texi:19280
  28512. #, no-wrap
  28513. msgid "@code{ipv4?} (default: @code{#t})"
  28514. msgstr ""
  28515. #. type: itemx
  28516. #: guix-git/doc/guix.texi:19281
  28517. #, no-wrap
  28518. msgid "@code{ipv6?} (default: @code{#t})"
  28519. msgstr ""
  28520. #. type: table
  28521. #: guix-git/doc/guix.texi:19283
  28522. msgid "These fields determine whether to use IPv4/IPv6 sockets."
  28523. msgstr ""
  28524. #. type: item
  28525. #: guix-git/doc/guix.texi:19284
  28526. #, no-wrap
  28527. msgid "@code{domains-to-browse} (default: @code{'()})"
  28528. msgstr ""
  28529. #. type: table
  28530. #: guix-git/doc/guix.texi:19286
  28531. msgid "This is a list of domains to browse."
  28532. msgstr ""
  28533. #. type: deffn
  28534. #: guix-git/doc/guix.texi:19289
  28535. #, no-wrap
  28536. msgid "{Scheme Variable} openvswitch-service-type"
  28537. msgstr ""
  28538. #. type: deffn
  28539. #: guix-git/doc/guix.texi:19293
  28540. msgid "This is the type of the @uref{https://www.openvswitch.org, Open vSwitch} service, whose value should be an @code{openvswitch-configuration} object."
  28541. msgstr ""
  28542. #. type: deftp
  28543. #: guix-git/doc/guix.texi:19295
  28544. #, no-wrap
  28545. msgid "{Data Type} openvswitch-configuration"
  28546. msgstr ""
  28547. #. type: deftp
  28548. #: guix-git/doc/guix.texi:19299
  28549. msgid "Data type representing the configuration of Open vSwitch, a multilayer virtual switch which is designed to enable massive network automation through programmatic extension."
  28550. msgstr ""
  28551. #. type: item
  28552. #: guix-git/doc/guix.texi:19301
  28553. #, no-wrap
  28554. msgid "@code{package} (default: @var{openvswitch})"
  28555. msgstr ""
  28556. #. type: table
  28557. #: guix-git/doc/guix.texi:19303
  28558. msgid "Package object of the Open vSwitch."
  28559. msgstr ""
  28560. #. type: defvr
  28561. #: guix-git/doc/guix.texi:19307
  28562. #, no-wrap
  28563. msgid "{Scheme Variable} pagekite-service-type"
  28564. msgstr ""
  28565. #. type: defvr
  28566. #: guix-git/doc/guix.texi:19312
  28567. 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."
  28568. msgstr ""
  28569. #. type: defvr
  28570. #: guix-git/doc/guix.texi:19314
  28571. msgid "Here's an example exposing the local HTTP and SSH daemons:"
  28572. msgstr ""
  28573. #. type: lisp
  28574. #: guix-git/doc/guix.texi:19321
  28575. #, no-wrap
  28576. msgid ""
  28577. "(service pagekite-service-type\n"
  28578. " (pagekite-configuration\n"
  28579. " (kites '(\"http:@@kitename:localhost:80:@@kitesecret\"\n"
  28580. " \"raw/22:@@kitename:localhost:22:@@kitesecret\"))\n"
  28581. " (extra-file \"/etc/pagekite.rc\")))\n"
  28582. msgstr ""
  28583. #. type: deftp
  28584. #: guix-git/doc/guix.texi:19324
  28585. #, fuzzy, no-wrap
  28586. msgid "{Data Type} pagekite-configuration"
  28587. msgstr "管理操作系统配置。"
  28588. #. type: deftp
  28589. #: guix-git/doc/guix.texi:19326
  28590. #, fuzzy
  28591. msgid "Data type representing the configuration of PageKite."
  28592. msgstr "管理操作系统配置。"
  28593. #. type: item
  28594. #: guix-git/doc/guix.texi:19328
  28595. #, fuzzy, no-wrap
  28596. msgid "@code{package} (default: @var{pagekite})"
  28597. msgstr "@code{mate}(默认值:@code{mate})"
  28598. #. type: table
  28599. #: guix-git/doc/guix.texi:19330
  28600. msgid "Package object of PageKite."
  28601. msgstr ""
  28602. #. type: item
  28603. #: guix-git/doc/guix.texi:19331
  28604. #, fuzzy, no-wrap
  28605. msgid "@code{kitename} (default: @code{#f})"
  28606. msgstr "@code{challenge}(默认值:@code{#f})"
  28607. #. type: table
  28608. #: guix-git/doc/guix.texi:19333
  28609. msgid "PageKite name for authenticating to the frontend server."
  28610. msgstr ""
  28611. #. type: item
  28612. #: guix-git/doc/guix.texi:19334
  28613. #, fuzzy, no-wrap
  28614. msgid "@code{kitesecret} (default: @code{#f})"
  28615. msgstr "@code{speed}(默认值:@code{1.0})"
  28616. #. type: table
  28617. #: guix-git/doc/guix.texi:19337
  28618. msgid "Shared secret for authenticating to the frontend server. You should probably put this inside @code{extra-file} instead."
  28619. msgstr ""
  28620. #. type: item
  28621. #: guix-git/doc/guix.texi:19338
  28622. #, fuzzy, no-wrap
  28623. msgid "@code{frontend} (default: @code{#f})"
  28624. msgstr "@code{journal-content}(默认值:@code{#f})"
  28625. #. type: table
  28626. #: guix-git/doc/guix.texi:19341
  28627. msgid "Connect to the named PageKite frontend server instead of the @uref{https://pagekite.net,,pagekite.net} service."
  28628. msgstr ""
  28629. #. type: item
  28630. #: guix-git/doc/guix.texi:19342
  28631. #, no-wrap
  28632. msgid "@code{kites} (default: @code{'(\"http:@@kitename:localhost:80:@@kitesecret\")})"
  28633. msgstr ""
  28634. #. type: table
  28635. #: guix-git/doc/guix.texi:19345
  28636. msgid "List of service kites to use. Exposes HTTP on port 80 by default. The format is @code{proto:kitename:host:port:secret}."
  28637. msgstr ""
  28638. #. type: item
  28639. #: guix-git/doc/guix.texi:19346
  28640. #, fuzzy, no-wrap
  28641. msgid "@code{extra-file} (default: @code{#f})"
  28642. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  28643. #. type: table
  28644. #: guix-git/doc/guix.texi:19349
  28645. 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."
  28646. msgstr ""
  28647. #. type: defvr
  28648. #: guix-git/doc/guix.texi:19353
  28649. #, no-wrap
  28650. msgid "{Scheme Variable} yggdrasil-service-type"
  28651. msgstr ""
  28652. #. type: defvr
  28653. #: guix-git/doc/guix.texi:19357
  28654. 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."
  28655. msgstr ""
  28656. #. type: quotation
  28657. #: guix-git/doc/guix.texi:19364
  28658. 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}"
  28659. msgstr ""
  28660. #. type: defvr
  28661. #: guix-git/doc/guix.texi:19368
  28662. msgid "Pass it a value of @code{yggdrasil-configuration} to connect it to public peers and/or local peers."
  28663. msgstr ""
  28664. #. type: defvr
  28665. #: guix-git/doc/guix.texi:19372
  28666. 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})."
  28667. msgstr ""
  28668. #. type: lisp
  28669. #: guix-git/doc/guix.texi:19384
  28670. #, no-wrap
  28671. msgid ""
  28672. ";; part of the operating-system declaration\n"
  28673. "(service yggdrasil-service-type\n"
  28674. " (yggdrasil-configuration\n"
  28675. " (autoconf? #f) ;; use only the public peers\n"
  28676. " (json-config\n"
  28677. " ;; choose one from\n"
  28678. " ;; https://github.com/yggdrasil-network/public-peers\n"
  28679. " '((peers . #(\"tcp://1.2.3.4:1337\"))))\n"
  28680. " ;; /etc/yggdrasil-private.conf is the default value for config-file\n"
  28681. " ))\n"
  28682. msgstr ""
  28683. #. type: example
  28684. #: guix-git/doc/guix.texi:19391
  28685. #, no-wrap
  28686. msgid ""
  28687. "# sample content for /etc/yggdrasil-private.conf\n"
  28688. "@{\n"
  28689. " # Your public encryption key. Your peers may ask you for this to put\n"
  28690. " # into their AllowedEncryptionPublicKeys configuration.\n"
  28691. " EncryptionPublicKey: 378dc5...\n"
  28692. "\n"
  28693. msgstr ""
  28694. #. type: example
  28695. #: guix-git/doc/guix.texi:19394
  28696. #, no-wrap
  28697. msgid ""
  28698. " # Your private encryption key. DO NOT share this with anyone!\n"
  28699. " EncryptionPrivateKey: 0777...\n"
  28700. "\n"
  28701. msgstr ""
  28702. #. type: example
  28703. #: guix-git/doc/guix.texi:19398
  28704. #, no-wrap
  28705. msgid ""
  28706. " # Your public signing key. You should not ordinarily need to share\n"
  28707. " # this with anyone.\n"
  28708. " SigningPublicKey: e1664...\n"
  28709. "\n"
  28710. msgstr ""
  28711. #. type: example
  28712. #: guix-git/doc/guix.texi:19402
  28713. #, no-wrap
  28714. msgid ""
  28715. " # Your private signing key. DO NOT share this with anyone!\n"
  28716. " SigningPrivateKey: 0589d...\n"
  28717. "@}\n"
  28718. msgstr ""
  28719. #. type: deftp
  28720. #: guix-git/doc/guix.texi:19405
  28721. #, fuzzy, no-wrap
  28722. msgid "{Data Type} yggdrasil-configuration"
  28723. msgstr "{数据类型} build-machine"
  28724. #. type: deftp
  28725. #: guix-git/doc/guix.texi:19407
  28726. #, fuzzy
  28727. msgid "Data type representing the configuration of Yggdrasil."
  28728. msgstr "管理操作系统配置。"
  28729. #. type: item
  28730. #: guix-git/doc/guix.texi:19409
  28731. #, fuzzy, no-wrap
  28732. msgid "@code{package} (default: @code{yggdrasil})"
  28733. msgstr "@code{mate}(默认值:@code{mate})"
  28734. #. type: table
  28735. #: guix-git/doc/guix.texi:19411
  28736. msgid "Package object of Yggdrasil."
  28737. msgstr ""
  28738. #. type: item
  28739. #: guix-git/doc/guix.texi:19412
  28740. #, fuzzy, no-wrap
  28741. msgid "@code{json-config} (default: @code{'()})"
  28742. msgstr "@code{includes}(默认值:@code{'()})"
  28743. #. type: table
  28744. #: guix-git/doc/guix.texi:19418
  28745. 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."
  28746. msgstr ""
  28747. #. type: item
  28748. #: guix-git/doc/guix.texi:19419
  28749. #, fuzzy, no-wrap
  28750. msgid "@code{autoconf?} (default: @code{#f})"
  28751. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  28752. #. type: table
  28753. #: guix-git/doc/guix.texi:19422
  28754. msgid "Whether to use automatic mode. Enabling it makes Yggdrasil use adynamic IP and peer with IPv6 neighbors."
  28755. msgstr ""
  28756. #. type: table
  28757. #: guix-git/doc/guix.texi:19425
  28758. msgid "How much detail to include in logs. Use @code{'debug} for more detail."
  28759. msgstr ""
  28760. #. type: item
  28761. #: guix-git/doc/guix.texi:19426
  28762. #, fuzzy, no-wrap
  28763. msgid "@code{log-to} (default: @code{'stdout})"
  28764. msgstr "@code{port}(默认值:@code{22})"
  28765. #. type: table
  28766. #: guix-git/doc/guix.texi:19430
  28767. 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."
  28768. msgstr ""
  28769. #. type: item
  28770. #: guix-git/doc/guix.texi:19431
  28771. #, fuzzy, no-wrap
  28772. msgid "@code{config-file} (default: @code{\"/etc/yggdrasil-private.conf\"})"
  28773. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  28774. #. type: table
  28775. #: guix-git/doc/guix.texi:19438
  28776. 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:"
  28777. msgstr ""
  28778. #. type: code{#1}
  28779. #: guix-git/doc/guix.texi:19440
  28780. #, no-wrap
  28781. msgid "EncryptionPublicKey"
  28782. msgstr ""
  28783. #. type: code{#1}
  28784. #: guix-git/doc/guix.texi:19441
  28785. #, no-wrap
  28786. msgid "EncryptionPrivateKey"
  28787. msgstr ""
  28788. #. type: code{#1}
  28789. #: guix-git/doc/guix.texi:19442
  28790. #, no-wrap
  28791. msgid "SigningPublicKey"
  28792. msgstr ""
  28793. #. type: code{#1}
  28794. #: guix-git/doc/guix.texi:19443
  28795. #, no-wrap
  28796. msgid "SigningPrivateKey"
  28797. msgstr ""
  28798. #. type: cindex
  28799. #: guix-git/doc/guix.texi:19448
  28800. #, no-wrap
  28801. msgid "IPFS"
  28802. msgstr ""
  28803. #. type: defvr
  28804. #: guix-git/doc/guix.texi:19449
  28805. #, no-wrap
  28806. msgid "{Scheme Variable} ipfs-service-type"
  28807. msgstr ""
  28808. #. type: defvr
  28809. #: guix-git/doc/guix.texi:19453
  28810. 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."
  28811. msgstr ""
  28812. #. type: defvr
  28813. #: guix-git/doc/guix.texi:19455
  28814. msgid "Here's an example configuration, using some non-standard ports:"
  28815. msgstr ""
  28816. #. type: lisp
  28817. #: guix-git/doc/guix.texi:19461
  28818. #, no-wrap
  28819. msgid ""
  28820. "(service ipfs-service-type\n"
  28821. " (ipfs-configuration\n"
  28822. " (gateway \"/ip4/127.0.0.1/tcp/8880\")\n"
  28823. " (api \"/ip4/127.0.0.1/tcp/8881\")))\n"
  28824. msgstr ""
  28825. #. type: deftp
  28826. #: guix-git/doc/guix.texi:19464
  28827. #, fuzzy, no-wrap
  28828. msgid "{Data Type} ipfs-configuration"
  28829. msgstr "系统配置"
  28830. #. type: deftp
  28831. #: guix-git/doc/guix.texi:19466
  28832. #, fuzzy
  28833. msgid "Data type representing the configuration of IPFS."
  28834. msgstr "管理操作系统配置。"
  28835. #. type: item
  28836. #: guix-git/doc/guix.texi:19468
  28837. #, fuzzy, no-wrap
  28838. msgid "@code{package} (default: @code{go-ipfs})"
  28839. msgstr "@code{mate}(默认值:@code{mate})"
  28840. #. type: table
  28841. #: guix-git/doc/guix.texi:19470
  28842. msgid "Package object of IPFS."
  28843. msgstr ""
  28844. #. type: item
  28845. #: guix-git/doc/guix.texi:19471
  28846. #, fuzzy, no-wrap
  28847. msgid "@code{gateway} (default: @code{\"/ip4/127.0.0.1/tcp/8082\"})"
  28848. msgstr "@code{speed}(默认值:@code{1.0})"
  28849. #. type: table
  28850. #: guix-git/doc/guix.texi:19473
  28851. msgid "Address of the gateway, in ‘multiaddress’ format."
  28852. msgstr ""
  28853. #. type: item
  28854. #: guix-git/doc/guix.texi:19474
  28855. #, fuzzy, no-wrap
  28856. msgid "@code{api} (default: @code{\"/ip4/127.0.0.1/tcp/5001\"})"
  28857. msgstr "@code{speed}(默认值:@code{1.0})"
  28858. #. type: table
  28859. #: guix-git/doc/guix.texi:19476
  28860. msgid "Address of the API endpoint, in ‘multiaddress’ format."
  28861. msgstr ""
  28862. #. type: cindex
  28863. #: guix-git/doc/guix.texi:19479
  28864. #, no-wrap
  28865. msgid "keepalived"
  28866. msgstr ""
  28867. #. type: deffn
  28868. #: guix-git/doc/guix.texi:19480
  28869. #, no-wrap
  28870. msgid "{Scheme Variable} keepalived-service-type"
  28871. msgstr ""
  28872. #. type: deffn
  28873. #: guix-git/doc/guix.texi:19485
  28874. 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:"
  28875. msgstr ""
  28876. #. type: lisp
  28877. #: guix-git/doc/guix.texi:19490
  28878. #, fuzzy, no-wrap
  28879. msgid ""
  28880. "(service keepalived-service-type\n"
  28881. " (keepalived-configuration\n"
  28882. " (config-file (local-file \"keepalived-master.conf\"))))\n"
  28883. msgstr ""
  28884. "(service qemu-binfmt-service-type\n"
  28885. " (qemu-binfmt-configuration\n"
  28886. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  28887. " (guix-support? #t)))\n"
  28888. #. type: deffn
  28889. #: guix-git/doc/guix.texi:19493
  28890. msgid "where @file{keepalived-master.conf}:"
  28891. msgstr ""
  28892. #. type: example
  28893. #: guix-git/doc/guix.texi:19505
  28894. #, no-wrap
  28895. msgid ""
  28896. "vrrp_instance my-group @{\n"
  28897. " state MASTER\n"
  28898. " interface enp9s0\n"
  28899. " virtual_router_id 100\n"
  28900. " priority 100\n"
  28901. " unicast_peer @{ 10.0.0.2 @}\n"
  28902. " virtual_ipaddress @{\n"
  28903. " 10.0.0.4/24\n"
  28904. " @}\n"
  28905. "@}\n"
  28906. msgstr ""
  28907. #. type: deffn
  28908. #: guix-git/doc/guix.texi:19508
  28909. msgid "and for backup machine:"
  28910. msgstr ""
  28911. #. type: lisp
  28912. #: guix-git/doc/guix.texi:19513
  28913. #, fuzzy, no-wrap
  28914. msgid ""
  28915. "(service keepalived-service-type\n"
  28916. " (keepalived-configuration\n"
  28917. " (config-file (local-file \"keepalived-backup.conf\"))))\n"
  28918. msgstr ""
  28919. "(service qemu-binfmt-service-type\n"
  28920. " (qemu-binfmt-configuration\n"
  28921. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  28922. " (guix-support? #t)))\n"
  28923. #. type: deffn
  28924. #: guix-git/doc/guix.texi:19516
  28925. msgid "where @file{keepalived-backup.conf}:"
  28926. msgstr ""
  28927. #. type: example
  28928. #: guix-git/doc/guix.texi:19528
  28929. #, no-wrap
  28930. msgid ""
  28931. "vrrp_instance my-group @{\n"
  28932. " state BACKUP\n"
  28933. " interface enp9s0\n"
  28934. " virtual_router_id 100\n"
  28935. " priority 99\n"
  28936. " unicast_peer @{ 10.0.0.3 @}\n"
  28937. " virtual_ipaddress @{\n"
  28938. " 10.0.0.4/24\n"
  28939. " @}\n"
  28940. "@}\n"
  28941. msgstr ""
  28942. #. type: cindex
  28943. #: guix-git/doc/guix.texi:19534
  28944. #, no-wrap
  28945. msgid "unattended upgrades"
  28946. msgstr ""
  28947. #. type: cindex
  28948. #: guix-git/doc/guix.texi:19535
  28949. #, no-wrap
  28950. msgid "upgrades, unattended"
  28951. msgstr ""
  28952. #. type: Plain text
  28953. #: guix-git/doc/guix.texi:19540
  28954. 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:"
  28955. msgstr ""
  28956. #. type: itemize
  28957. #: guix-git/doc/guix.texi:19545
  28958. msgid "upgrades are transactional (either the upgrade succeeds or it fails, but you cannot end up with an ``in-between'' system state);"
  28959. msgstr ""
  28960. #. type: itemize
  28961. #: guix-git/doc/guix.texi:19549
  28962. 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;"
  28963. msgstr ""
  28964. #. type: itemize
  28965. #: guix-git/doc/guix.texi:19552
  28966. msgid "channel code is authenticated so you know you can only run genuine code (@pxref{Channels});"
  28967. msgstr ""
  28968. #. type: itemize
  28969. #: guix-git/doc/guix.texi:19555
  28970. msgid "@command{guix system reconfigure} prevents downgrades, which makes it immune to @dfn{downgrade attacks}."
  28971. msgstr ""
  28972. #. type: Plain text
  28973. #: guix-git/doc/guix.texi:19560
  28974. 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:"
  28975. msgstr ""
  28976. #. type: lisp
  28977. #: guix-git/doc/guix.texi:19563
  28978. #, no-wrap
  28979. msgid "(service unattended-upgrade-service-type)\n"
  28980. msgstr ""
  28981. #. type: Plain text
  28982. #: guix-git/doc/guix.texi:19570
  28983. 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."
  28984. msgstr ""
  28985. #. type: Plain text
  28986. #: guix-git/doc/guix.texi:19576
  28987. 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."
  28988. msgstr ""
  28989. #. type: Plain text
  28990. #: guix-git/doc/guix.texi:19580
  28991. 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)."
  28992. msgstr ""
  28993. #. type: defvr
  28994. #: guix-git/doc/guix.texi:19581
  28995. #, no-wrap
  28996. msgid "{Scheme Variable} unattended-upgrade-service-type"
  28997. msgstr ""
  28998. #. type: defvr
  28999. #: guix-git/doc/guix.texi:19585
  29000. 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."
  29001. msgstr ""
  29002. #. type: defvr
  29003. #: guix-git/doc/guix.texi:19588
  29004. msgid "Its value must be a @code{unattended-upgrade-configuration} record (see below)."
  29005. msgstr ""
  29006. #. type: deftp
  29007. #: guix-git/doc/guix.texi:19590
  29008. #, no-wrap
  29009. msgid "{Data Type} unattended-upgrade-configuration"
  29010. msgstr ""
  29011. #. type: deftp
  29012. #: guix-git/doc/guix.texi:19593
  29013. msgid "This data type represents the configuration of the unattended upgrade service. The following fields are available:"
  29014. msgstr ""
  29015. #. type: item
  29016. #: guix-git/doc/guix.texi:19595
  29017. #, fuzzy, no-wrap
  29018. msgid "@code{schedule} (default: @code{\"30 01 * * 0\"})"
  29019. msgstr "@code{speed}(默认值:@code{1.0})"
  29020. #. type: table
  29021. #: guix-git/doc/guix.texi:19599
  29022. 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})."
  29023. msgstr ""
  29024. #. type: item
  29025. #: guix-git/doc/guix.texi:19600
  29026. #, fuzzy, no-wrap
  29027. msgid "@code{channels} (default: @code{#~%default-channels})"
  29028. msgstr "@code{challenge}(默认值:@code{#f})"
  29029. #. type: table
  29030. #: guix-git/doc/guix.texi:19604
  29031. 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."
  29032. msgstr ""
  29033. #. type: item
  29034. #: guix-git/doc/guix.texi:19605
  29035. #, no-wrap
  29036. msgid "@code{operating-system-file} (default: @code{\"/run/current-system/configuration.scm\"})"
  29037. msgstr ""
  29038. #. type: table
  29039. #: guix-git/doc/guix.texi:19608
  29040. msgid "This field specifies the operating system configuration file to use. The default is to reuse the config file of the current configuration."
  29041. msgstr ""
  29042. #. type: table
  29043. #: guix-git/doc/guix.texi:19614
  29044. 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:"
  29045. msgstr ""
  29046. #. type: lisp
  29047. #: guix-git/doc/guix.texi:19620
  29048. #, no-wrap
  29049. msgid ""
  29050. "(unattended-upgrade-configuration\n"
  29051. " (operating-system-file\n"
  29052. " (file-append (local-file \".\" \"config-dir\" #:recursive? #t)\n"
  29053. " \"/config.scm\")))\n"
  29054. msgstr ""
  29055. #. type: table
  29056. #: guix-git/doc/guix.texi:19627
  29057. 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}."
  29058. msgstr ""
  29059. #. type: item
  29060. #: guix-git/doc/guix.texi:19628
  29061. #, fuzzy, no-wrap
  29062. msgid "@code{services-to-restart} (default: @code{'(mcron)})"
  29063. msgstr "@code{features} (@code{'()})"
  29064. #. type: table
  29065. #: guix-git/doc/guix.texi:19631
  29066. msgid "This field specifies the Shepherd services to restart when the upgrade completes."
  29067. msgstr ""
  29068. #. type: table
  29069. #: guix-git/doc/guix.texi:19638
  29070. 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."
  29071. msgstr ""
  29072. #. type: table
  29073. #: guix-git/doc/guix.texi:19642
  29074. 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}."
  29075. msgstr ""
  29076. #. type: table
  29077. #: guix-git/doc/guix.texi:19645
  29078. 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."
  29079. msgstr ""
  29080. #. type: item
  29081. #: guix-git/doc/guix.texi:19646
  29082. #, fuzzy, no-wrap
  29083. msgid "@code{system-expiration} (default: @code{(* 3 30 24 3600)})"
  29084. msgstr "@code{port}(默认值:@code{22})"
  29085. #. type: table
  29086. #: guix-git/doc/guix.texi:19650
  29087. 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."
  29088. msgstr ""
  29089. #. type: quotation
  29090. #: guix-git/doc/guix.texi:19655
  29091. 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."
  29092. msgstr ""
  29093. #. type: item
  29094. #: guix-git/doc/guix.texi:19657
  29095. #, fuzzy, no-wrap
  29096. msgid "@code{maximum-duration} (default: @code{3600})"
  29097. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  29098. #. type: table
  29099. #: guix-git/doc/guix.texi:19660
  29100. msgid "Maximum duration in seconds for the upgrade; past that time, the upgrade aborts."
  29101. msgstr ""
  29102. #. type: table
  29103. #: guix-git/doc/guix.texi:19663
  29104. msgid "This is primarily useful to ensure the upgrade does not end up rebuilding or re-downloading ``the world''."
  29105. msgstr ""
  29106. #. type: item
  29107. #: guix-git/doc/guix.texi:19664
  29108. #, fuzzy, no-wrap
  29109. msgid "@code{log-file} (default: @code{\"/var/log/unattended-upgrade.log\"})"
  29110. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  29111. #. type: table
  29112. #: guix-git/doc/guix.texi:19666
  29113. msgid "File where unattended upgrades are logged."
  29114. msgstr ""
  29115. #. type: cindex
  29116. #: guix-git/doc/guix.texi:19672
  29117. #, no-wrap
  29118. msgid "X11"
  29119. msgstr ""
  29120. #. type: cindex
  29121. #: guix-git/doc/guix.texi:19673
  29122. #, no-wrap
  29123. msgid "X Window System"
  29124. msgstr ""
  29125. #. type: cindex
  29126. #: guix-git/doc/guix.texi:19674 guix-git/doc/guix.texi:19947
  29127. #, no-wrap
  29128. msgid "login manager"
  29129. msgstr ""
  29130. #. type: Plain text
  29131. #: guix-git/doc/guix.texi:19679
  29132. 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)."
  29133. msgstr ""
  29134. #. type: cindex
  29135. #: guix-git/doc/guix.texi:19680
  29136. #, no-wrap
  29137. msgid "GDM"
  29138. msgstr ""
  29139. #. type: cindex
  29140. #: guix-git/doc/guix.texi:19681
  29141. #, no-wrap
  29142. msgid "GNOME, login manager"
  29143. msgstr ""
  29144. #. type: Plain text
  29145. #: guix-git/doc/guix.texi:19685
  29146. 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."
  29147. msgstr ""
  29148. #. type: cindex
  29149. #: guix-git/doc/guix.texi:19686
  29150. #, no-wrap
  29151. msgid "window manager"
  29152. msgstr ""
  29153. #. type: Plain text
  29154. #: guix-git/doc/guix.texi:19691
  29155. 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})."
  29156. msgstr ""
  29157. #. type: anchor{#1}
  29158. #: guix-git/doc/guix.texi:19697
  29159. msgid "wayland-gdm"
  29160. msgstr ""
  29161. #. type: Plain text
  29162. #: guix-git/doc/guix.texi:19697
  29163. msgid "GDM also supports Wayland: it can itself use Wayland instead of X11 for its user interface, and it can also start Wayland sessions. The former is required for the latter, to enable, set @code{wayland?} to @code{#t} in @code{gdm-configuration}."
  29164. msgstr ""
  29165. #. type: defvr
  29166. #: guix-git/doc/guix.texi:19698
  29167. #, no-wrap
  29168. msgid "{Scheme Variable} gdm-service-type"
  29169. msgstr ""
  29170. #. type: defvr
  29171. #: guix-git/doc/guix.texi:19703
  29172. 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)."
  29173. msgstr ""
  29174. #. type: cindex
  29175. #: guix-git/doc/guix.texi:19704
  29176. #, no-wrap
  29177. msgid "session types"
  29178. msgstr ""
  29179. #. type: defvr
  29180. #: guix-git/doc/guix.texi:19712
  29181. msgid "GDM looks for @dfn{session types} described by the @file{.desktop} files in @file{/run/current-system/profile/share/xsessions} (for X11 sessions) and @file{/run/current-system/profile/share/wayland-sessions} (for Wayland sessions) and allows users to choose a session from the log-in screen. Packages such as @code{gnome}, @code{xfce}, @code{i3} and @code{sway} provide @file{.desktop} files; adding them to the system-wide set of packages automatically makes them available at the log-in screen."
  29182. msgstr ""
  29183. #. type: defvr
  29184. #: guix-git/doc/guix.texi:19716
  29185. 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."
  29186. msgstr ""
  29187. #. type: deftp
  29188. #: guix-git/doc/guix.texi:19718
  29189. #, no-wrap
  29190. msgid "{Data Type} gdm-configuration"
  29191. msgstr ""
  29192. #. type: item
  29193. #: guix-git/doc/guix.texi:19720 guix-git/doc/guix.texi:19802
  29194. #, no-wrap
  29195. msgid "@code{auto-login?} (default: @code{#f})"
  29196. msgstr ""
  29197. #. type: itemx
  29198. #: guix-git/doc/guix.texi:19721
  29199. #, no-wrap
  29200. msgid "@code{default-user} (default: @code{#f})"
  29201. msgstr ""
  29202. #. type: table
  29203. #: guix-git/doc/guix.texi:19723
  29204. msgid "When @code{auto-login?} is false, GDM presents a log-in screen."
  29205. msgstr ""
  29206. #. type: table
  29207. #: guix-git/doc/guix.texi:19726
  29208. msgid "When @code{auto-login?} is true, GDM logs in directly as @code{default-user}."
  29209. msgstr ""
  29210. #. type: item
  29211. #: guix-git/doc/guix.texi:19727 guix-git/doc/guix.texi:26062
  29212. #: guix-git/doc/guix.texi:27682 guix-git/doc/guix.texi:32212
  29213. #: guix-git/doc/guix.texi:32241 guix-git/doc/guix.texi:32270
  29214. #: guix-git/doc/guix.texi:32297 guix-git/doc/guix.texi:32352
  29215. #: guix-git/doc/guix.texi:32377 guix-git/doc/guix.texi:32404
  29216. #: guix-git/doc/guix.texi:32430 guix-git/doc/guix.texi:32472
  29217. #, no-wrap
  29218. msgid "@code{debug?} (default: @code{#f})"
  29219. msgstr ""
  29220. #. type: table
  29221. #: guix-git/doc/guix.texi:19729
  29222. msgid "When true, GDM writes debug messages to its log."
  29223. msgstr ""
  29224. #. type: item
  29225. #: guix-git/doc/guix.texi:19730
  29226. #, no-wrap
  29227. msgid "@code{gnome-shell-assets} (default: ...)"
  29228. msgstr ""
  29229. #. type: table
  29230. #: guix-git/doc/guix.texi:19732
  29231. msgid "List of GNOME Shell assets needed by GDM: icon theme, fonts, etc."
  29232. msgstr ""
  29233. #. type: item
  29234. #: guix-git/doc/guix.texi:19733
  29235. #, no-wrap
  29236. msgid "@code{xorg-configuration} (default: @code{(xorg-configuration)})"
  29237. msgstr ""
  29238. #. type: table
  29239. #: guix-git/doc/guix.texi:19735 guix-git/doc/guix.texi:19829
  29240. #: guix-git/doc/guix.texi:19913
  29241. msgid "Configuration of the Xorg graphical server."
  29242. msgstr ""
  29243. #. type: item
  29244. #: guix-git/doc/guix.texi:19736
  29245. #, no-wrap
  29246. msgid "@code{xsession} (default: @code{(xinitrc)})"
  29247. msgstr ""
  29248. #. type: table
  29249. #: guix-git/doc/guix.texi:19738 guix-git/doc/guix.texi:19928
  29250. msgid "Script to run before starting a X session."
  29251. msgstr ""
  29252. #. type: item
  29253. #: guix-git/doc/guix.texi:19739
  29254. #, no-wrap
  29255. msgid "@code{dbus-daemon} (default: @code{dbus-daemon-wrapper})"
  29256. msgstr ""
  29257. #. type: table
  29258. #: guix-git/doc/guix.texi:19741
  29259. msgid "File name of the @code{dbus-daemon} executable."
  29260. msgstr ""
  29261. #. type: item
  29262. #: guix-git/doc/guix.texi:19742
  29263. #, no-wrap
  29264. msgid "@code{gdm} (default: @code{gdm})"
  29265. msgstr ""
  29266. #. type: table
  29267. #: guix-git/doc/guix.texi:19744
  29268. msgid "The GDM package to use."
  29269. msgstr ""
  29270. #. type: item
  29271. #: guix-git/doc/guix.texi:19745
  29272. #, fuzzy, no-wrap
  29273. msgid "@code{wayland?} (default: @code{#f})"
  29274. msgstr "@code{challenge}(默认值:@code{#f})"
  29275. #. type: table
  29276. #: guix-git/doc/guix.texi:19747
  29277. msgid "When true, enables Wayland in GDM, necessary to use Wayland sessions."
  29278. msgstr ""
  29279. #. type: item
  29280. #: guix-git/doc/guix.texi:19748
  29281. #, fuzzy, no-wrap
  29282. msgid "@code{wayland-session} (default: @code{gdm-wayland-session-wrapper})"
  29283. msgstr "@code{mate}(默认值:@code{mate})"
  29284. #. type: table
  29285. #: guix-git/doc/guix.texi:19751
  29286. msgid "The Wayland session wrapper to use, needed to setup the environment."
  29287. msgstr ""
  29288. #. type: defvr
  29289. #: guix-git/doc/guix.texi:19754
  29290. #, no-wrap
  29291. msgid "{Scheme Variable} slim-service-type"
  29292. msgstr ""
  29293. #. type: defvr
  29294. #: guix-git/doc/guix.texi:19756
  29295. msgid "This is the type for the SLiM graphical login manager for X11."
  29296. msgstr ""
  29297. #. type: defvr
  29298. #: guix-git/doc/guix.texi:19760
  29299. 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."
  29300. msgstr ""
  29301. #. type: defvr
  29302. #: guix-git/doc/guix.texi:19767
  29303. 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."
  29304. msgstr ""
  29305. #. type: lisp
  29306. #: guix-git/doc/guix.texi:19772
  29307. #, no-wrap
  29308. msgid ""
  29309. "(use-modules (gnu services)\n"
  29310. " (gnu services desktop)\n"
  29311. " (gnu services xorg))\n"
  29312. "\n"
  29313. msgstr ""
  29314. #. type: lisp
  29315. #: guix-git/doc/guix.texi:19783
  29316. #, no-wrap
  29317. msgid ""
  29318. "(operating-system\n"
  29319. " ;; ...\n"
  29320. " (services (cons* (service slim-service-type (slim-configuration\n"
  29321. " (display \":0\")\n"
  29322. " (vt \"vt7\")))\n"
  29323. " (service slim-service-type (slim-configuration\n"
  29324. " (display \":1\")\n"
  29325. " (vt \"vt8\")))\n"
  29326. " (modify-services %desktop-services\n"
  29327. " (delete gdm-service-type)))))\n"
  29328. msgstr ""
  29329. #. type: deftp
  29330. #: guix-git/doc/guix.texi:19787
  29331. #, no-wrap
  29332. msgid "{Data Type} slim-configuration"
  29333. msgstr ""
  29334. #. type: deftp
  29335. #: guix-git/doc/guix.texi:19789
  29336. msgid "Data type representing the configuration of @code{slim-service-type}."
  29337. msgstr ""
  29338. #. type: table
  29339. #: guix-git/doc/guix.texi:19793
  29340. msgid "Whether to allow logins with empty passwords."
  29341. msgstr ""
  29342. #. type: item
  29343. #: guix-git/doc/guix.texi:19794
  29344. #, fuzzy, no-wrap
  29345. msgid "@code{gnupg?} (default: @code{#f})"
  29346. msgstr "@code{challenge}(默认值:@code{#f})"
  29347. #. type: table
  29348. #: guix-git/doc/guix.texi:19801
  29349. 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}."
  29350. msgstr ""
  29351. #. type: itemx
  29352. #: guix-git/doc/guix.texi:19803
  29353. #, no-wrap
  29354. msgid "@code{default-user} (default: @code{\"\"})"
  29355. msgstr ""
  29356. #. type: table
  29357. #: guix-git/doc/guix.texi:19805
  29358. msgid "When @code{auto-login?} is false, SLiM presents a log-in screen."
  29359. msgstr ""
  29360. #. type: table
  29361. #: guix-git/doc/guix.texi:19808
  29362. msgid "When @code{auto-login?} is true, SLiM logs in directly as @code{default-user}."
  29363. msgstr ""
  29364. #. type: item
  29365. #: guix-git/doc/guix.texi:19809
  29366. #, no-wrap
  29367. msgid "@code{theme} (default: @code{%default-slim-theme})"
  29368. msgstr ""
  29369. #. type: itemx
  29370. #: guix-git/doc/guix.texi:19810
  29371. #, no-wrap
  29372. msgid "@code{theme-name} (default: @code{%default-slim-theme-name})"
  29373. msgstr ""
  29374. #. type: table
  29375. #: guix-git/doc/guix.texi:19812
  29376. msgid "The graphical theme to use and its name."
  29377. msgstr ""
  29378. #. type: item
  29379. #: guix-git/doc/guix.texi:19813
  29380. #, no-wrap
  29381. msgid "@code{auto-login-session} (default: @code{#f})"
  29382. msgstr ""
  29383. #. type: table
  29384. #: guix-git/doc/guix.texi:19816
  29385. 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\")}."
  29386. msgstr ""
  29387. #. type: table
  29388. #: guix-git/doc/guix.texi:19820
  29389. 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."
  29390. msgstr ""
  29391. #. type: quotation
  29392. #: guix-git/doc/guix.texi:19825
  29393. 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."
  29394. msgstr ""
  29395. #. type: item
  29396. #: guix-git/doc/guix.texi:19827 guix-git/doc/guix.texi:19911
  29397. #, no-wrap
  29398. msgid "@code{xorg-configuration} (default @code{(xorg-configuration)})"
  29399. msgstr ""
  29400. #. type: item
  29401. #: guix-git/doc/guix.texi:19830
  29402. #, no-wrap
  29403. msgid "@code{display} (default @code{\":0\"})"
  29404. msgstr "@code{display}(默认值:@code{\":0\"})"
  29405. #. type: table
  29406. #: guix-git/doc/guix.texi:19832
  29407. msgid "The display on which to start the Xorg graphical server."
  29408. msgstr ""
  29409. #. type: item
  29410. #: guix-git/doc/guix.texi:19833
  29411. #, no-wrap
  29412. msgid "@code{vt} (default @code{\"vt7\"})"
  29413. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  29414. #. type: table
  29415. #: guix-git/doc/guix.texi:19835
  29416. msgid "The VT on which to start the Xorg graphical server."
  29417. msgstr ""
  29418. #. type: item
  29419. #: guix-git/doc/guix.texi:19836
  29420. #, no-wrap
  29421. msgid "@code{xauth} (default: @code{xauth})"
  29422. msgstr ""
  29423. #. type: table
  29424. #: guix-git/doc/guix.texi:19838
  29425. msgid "The XAuth package to use."
  29426. msgstr ""
  29427. #. type: item
  29428. #: guix-git/doc/guix.texi:19839
  29429. #, no-wrap
  29430. msgid "@code{shepherd} (default: @code{shepherd})"
  29431. msgstr ""
  29432. #. type: table
  29433. #: guix-git/doc/guix.texi:19842
  29434. msgid "The Shepherd package used when invoking @command{halt} and @command{reboot}."
  29435. msgstr ""
  29436. #. type: item
  29437. #: guix-git/doc/guix.texi:19843
  29438. #, no-wrap
  29439. msgid "@code{sessreg} (default: @code{sessreg})"
  29440. msgstr ""
  29441. #. type: table
  29442. #: guix-git/doc/guix.texi:19845
  29443. msgid "The sessreg package used in order to register the session."
  29444. msgstr ""
  29445. #. type: item
  29446. #: guix-git/doc/guix.texi:19846
  29447. #, no-wrap
  29448. msgid "@code{slim} (default: @code{slim})"
  29449. msgstr ""
  29450. #. type: table
  29451. #: guix-git/doc/guix.texi:19848
  29452. msgid "The SLiM package to use."
  29453. msgstr ""
  29454. #. type: defvr
  29455. #: guix-git/doc/guix.texi:19851
  29456. #, no-wrap
  29457. msgid "{Scheme Variable} %default-theme"
  29458. msgstr ""
  29459. #. type: defvrx
  29460. #: guix-git/doc/guix.texi:19852
  29461. #, no-wrap
  29462. msgid "{Scheme Variable} %default-theme-name"
  29463. msgstr ""
  29464. #. type: defvr
  29465. #: guix-git/doc/guix.texi:19854
  29466. msgid "The default SLiM theme and its name."
  29467. msgstr ""
  29468. #. type: deftp
  29469. #: guix-git/doc/guix.texi:19857 guix-git/doc/guix.texi:19964
  29470. #, no-wrap
  29471. msgid "{Data Type} sddm-configuration"
  29472. msgstr ""
  29473. #. type: deftp
  29474. #: guix-git/doc/guix.texi:19859
  29475. msgid "This is the data type representing the SDDM service configuration."
  29476. msgstr ""
  29477. #. type: item
  29478. #: guix-git/doc/guix.texi:19861
  29479. #, no-wrap
  29480. msgid "@code{display-server} (default: \"x11\")"
  29481. msgstr ""
  29482. #. type: table
  29483. #: guix-git/doc/guix.texi:19864
  29484. msgid "Select display server to use for the greeter. Valid values are @samp{\"x11\"} or @samp{\"wayland\"}."
  29485. msgstr ""
  29486. #. type: item
  29487. #: guix-git/doc/guix.texi:19865
  29488. #, no-wrap
  29489. msgid "@code{numlock} (default: \"on\")"
  29490. msgstr ""
  29491. #. type: table
  29492. #: guix-git/doc/guix.texi:19867
  29493. msgid "Valid values are @samp{\"on\"}, @samp{\"off\"} or @samp{\"none\"}."
  29494. msgstr ""
  29495. #. type: item
  29496. #: guix-git/doc/guix.texi:19868
  29497. #, no-wrap
  29498. msgid "@code{halt-command} (default @code{#~(string-apppend #$shepherd \"/sbin/halt\")})"
  29499. msgstr ""
  29500. #. type: table
  29501. #: guix-git/doc/guix.texi:19870
  29502. msgid "Command to run when halting."
  29503. msgstr ""
  29504. #. type: item
  29505. #: guix-git/doc/guix.texi:19871
  29506. #, no-wrap
  29507. msgid "@code{reboot-command} (default @code{#~(string-append #$shepherd \"/sbin/reboot\")})"
  29508. msgstr ""
  29509. #. type: table
  29510. #: guix-git/doc/guix.texi:19873
  29511. msgid "Command to run when rebooting."
  29512. msgstr ""
  29513. #. type: item
  29514. #: guix-git/doc/guix.texi:19874
  29515. #, no-wrap
  29516. msgid "@code{theme} (default \"maldives\")"
  29517. msgstr ""
  29518. #. type: table
  29519. #: guix-git/doc/guix.texi:19877
  29520. msgid "Theme to use. Default themes provided by SDDM are @samp{\"elarun\"}, @samp{\"maldives\"} or @samp{\"maya\"}."
  29521. msgstr ""
  29522. #. type: item
  29523. #: guix-git/doc/guix.texi:19878
  29524. #, no-wrap
  29525. msgid "@code{themes-directory} (default \"/run/current-system/profile/share/sddm/themes\")"
  29526. msgstr ""
  29527. #. type: table
  29528. #: guix-git/doc/guix.texi:19880
  29529. msgid "Directory to look for themes."
  29530. msgstr ""
  29531. #. type: item
  29532. #: guix-git/doc/guix.texi:19881
  29533. #, no-wrap
  29534. msgid "@code{faces-directory} (default \"/run/current-system/profile/share/sddm/faces\")"
  29535. msgstr ""
  29536. #. type: table
  29537. #: guix-git/doc/guix.texi:19883
  29538. msgid "Directory to look for faces."
  29539. msgstr ""
  29540. #. type: item
  29541. #: guix-git/doc/guix.texi:19884
  29542. #, no-wrap
  29543. msgid "@code{default-path} (default \"/run/current-system/profile/bin\")"
  29544. msgstr ""
  29545. #. type: table
  29546. #: guix-git/doc/guix.texi:19886
  29547. msgid "Default PATH to use."
  29548. msgstr ""
  29549. #. type: item
  29550. #: guix-git/doc/guix.texi:19887
  29551. #, fuzzy, no-wrap
  29552. msgid "@code{minimum-uid} (default: 1000)"
  29553. msgstr "@code{includes}(默认值:@code{'()})"
  29554. #. type: table
  29555. #: guix-git/doc/guix.texi:19889
  29556. msgid "Minimum UID displayed in SDDM and allowed for log-in."
  29557. msgstr ""
  29558. #. type: item
  29559. #: guix-git/doc/guix.texi:19890
  29560. #, fuzzy, no-wrap
  29561. msgid "@code{maximum-uid} (default: 2000)"
  29562. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  29563. #. type: table
  29564. #: guix-git/doc/guix.texi:19892
  29565. msgid "Maximum UID to display in SDDM."
  29566. msgstr ""
  29567. #. type: item
  29568. #: guix-git/doc/guix.texi:19893
  29569. #, no-wrap
  29570. msgid "@code{remember-last-user?} (default #t)"
  29571. msgstr ""
  29572. #. type: table
  29573. #: guix-git/doc/guix.texi:19895
  29574. msgid "Remember last user."
  29575. msgstr ""
  29576. #. type: item
  29577. #: guix-git/doc/guix.texi:19896
  29578. #, no-wrap
  29579. msgid "@code{remember-last-session?} (default #t)"
  29580. msgstr ""
  29581. #. type: table
  29582. #: guix-git/doc/guix.texi:19898
  29583. msgid "Remember last session."
  29584. msgstr ""
  29585. #. type: item
  29586. #: guix-git/doc/guix.texi:19899
  29587. #, no-wrap
  29588. msgid "@code{hide-users} (default \"\")"
  29589. msgstr ""
  29590. #. type: table
  29591. #: guix-git/doc/guix.texi:19901
  29592. msgid "Usernames to hide from SDDM greeter."
  29593. msgstr ""
  29594. #. type: item
  29595. #: guix-git/doc/guix.texi:19902
  29596. #, no-wrap
  29597. msgid "@code{hide-shells} (default @code{#~(string-append #$shadow \"/sbin/nologin\")})"
  29598. msgstr ""
  29599. #. type: table
  29600. #: guix-git/doc/guix.texi:19904
  29601. msgid "Users with shells listed will be hidden from the SDDM greeter."
  29602. msgstr ""
  29603. #. type: item
  29604. #: guix-git/doc/guix.texi:19905
  29605. #, no-wrap
  29606. msgid "@code{session-command} (default @code{#~(string-append #$sddm \"/share/sddm/scripts/wayland-session\")})"
  29607. msgstr ""
  29608. #. type: table
  29609. #: guix-git/doc/guix.texi:19907
  29610. msgid "Script to run before starting a wayland session."
  29611. msgstr ""
  29612. #. type: item
  29613. #: guix-git/doc/guix.texi:19908
  29614. #, no-wrap
  29615. msgid "@code{sessions-directory} (default \"/run/current-system/profile/share/wayland-sessions\")"
  29616. msgstr ""
  29617. #. type: table
  29618. #: guix-git/doc/guix.texi:19910
  29619. msgid "Directory to look for desktop files starting wayland sessions."
  29620. msgstr ""
  29621. #. type: item
  29622. #: guix-git/doc/guix.texi:19914
  29623. #, no-wrap
  29624. msgid "@code{xauth-path} (default @code{#~(string-append #$xauth \"/bin/xauth\")})"
  29625. msgstr ""
  29626. #. type: table
  29627. #: guix-git/doc/guix.texi:19916
  29628. msgid "Path to xauth."
  29629. msgstr ""
  29630. #. type: item
  29631. #: guix-git/doc/guix.texi:19917
  29632. #, no-wrap
  29633. msgid "@code{xephyr-path} (default @code{#~(string-append #$xorg-server \"/bin/Xephyr\")})"
  29634. msgstr ""
  29635. #. type: table
  29636. #: guix-git/doc/guix.texi:19919
  29637. msgid "Path to Xephyr."
  29638. msgstr ""
  29639. #. type: item
  29640. #: guix-git/doc/guix.texi:19920
  29641. #, no-wrap
  29642. msgid "@code{xdisplay-start} (default @code{#~(string-append #$sddm \"/share/sddm/scripts/Xsetup\")})"
  29643. msgstr ""
  29644. #. type: table
  29645. #: guix-git/doc/guix.texi:19922
  29646. msgid "Script to run after starting xorg-server."
  29647. msgstr ""
  29648. #. type: item
  29649. #: guix-git/doc/guix.texi:19923
  29650. #, no-wrap
  29651. msgid "@code{xdisplay-stop} (default @code{#~(string-append #$sddm \"/share/sddm/scripts/Xstop\")})"
  29652. msgstr ""
  29653. #. type: table
  29654. #: guix-git/doc/guix.texi:19925
  29655. msgid "Script to run before stopping xorg-server."
  29656. msgstr ""
  29657. #. type: item
  29658. #: guix-git/doc/guix.texi:19926
  29659. #, no-wrap
  29660. msgid "@code{xsession-command} (default: @code{xinitrc})"
  29661. msgstr ""
  29662. #. type: item
  29663. #: guix-git/doc/guix.texi:19929
  29664. #, no-wrap
  29665. msgid "@code{xsessions-directory} (default: \"/run/current-system/profile/share/xsessions\")"
  29666. msgstr ""
  29667. #. type: table
  29668. #: guix-git/doc/guix.texi:19931
  29669. msgid "Directory to look for desktop files starting X sessions."
  29670. msgstr ""
  29671. #. type: item
  29672. #: guix-git/doc/guix.texi:19932
  29673. #, no-wrap
  29674. msgid "@code{minimum-vt} (default: 7)"
  29675. msgstr ""
  29676. #. type: table
  29677. #: guix-git/doc/guix.texi:19934
  29678. msgid "Minimum VT to use."
  29679. msgstr ""
  29680. #. type: item
  29681. #: guix-git/doc/guix.texi:19935
  29682. #, no-wrap
  29683. msgid "@code{auto-login-user} (default \"\")"
  29684. msgstr ""
  29685. #. type: table
  29686. #: guix-git/doc/guix.texi:19937
  29687. msgid "User to use for auto-login."
  29688. msgstr ""
  29689. #. type: item
  29690. #: guix-git/doc/guix.texi:19938
  29691. #, no-wrap
  29692. msgid "@code{auto-login-session} (default \"\")"
  29693. msgstr ""
  29694. #. type: table
  29695. #: guix-git/doc/guix.texi:19940
  29696. msgid "Desktop file to use for auto-login."
  29697. msgstr ""
  29698. #. type: item
  29699. #: guix-git/doc/guix.texi:19941
  29700. #, no-wrap
  29701. msgid "@code{relogin?} (default #f)"
  29702. msgstr ""
  29703. #. type: table
  29704. #: guix-git/doc/guix.texi:19943
  29705. msgid "Relogin after logout."
  29706. msgstr ""
  29707. #. type: cindex
  29708. #: guix-git/doc/guix.texi:19948
  29709. #, no-wrap
  29710. msgid "X11 login"
  29711. msgstr ""
  29712. #. type: defvr
  29713. #: guix-git/doc/guix.texi:19949
  29714. #, no-wrap
  29715. msgid "{Scheme Variable} sddm-service-type"
  29716. msgstr ""
  29717. #. type: defvr
  29718. #: guix-git/doc/guix.texi:19953
  29719. 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)."
  29720. msgstr ""
  29721. #. type: defvr
  29722. #: guix-git/doc/guix.texi:19955
  29723. msgid "Here's an example use:"
  29724. msgstr ""
  29725. #. type: lisp
  29726. #: guix-git/doc/guix.texi:19961
  29727. #, no-wrap
  29728. msgid ""
  29729. "(service sddm-service-type\n"
  29730. " (sddm-configuration\n"
  29731. " (auto-login-user \"alice\")\n"
  29732. " (auto-login-session \"xfce.desktop\")))\n"
  29733. msgstr ""
  29734. #. type: deftp
  29735. #: guix-git/doc/guix.texi:19967
  29736. #, fuzzy
  29737. msgid "This data type represents the configuration of the SDDM login manager. The available fields are:"
  29738. msgstr "这个数据类型表示后台进程可以下发构建任务的构建机器。重要的项有:"
  29739. #. type: item
  29740. #: guix-git/doc/guix.texi:19969
  29741. #, fuzzy, no-wrap
  29742. msgid "@code{sddm} (default: @code{sddm})"
  29743. msgstr "@code{speed}(默认值:@code{1.0})"
  29744. #. type: table
  29745. #: guix-git/doc/guix.texi:19971
  29746. #, fuzzy
  29747. msgid "The SDDM package to use."
  29748. msgstr "软件包数据类型。"
  29749. #. type: item
  29750. #: guix-git/doc/guix.texi:19972
  29751. #, fuzzy, no-wrap
  29752. msgid "@code{display-server} (default: @code{\"x11\"})"
  29753. msgstr "@code{display}(默认值:@code{\":0\"})"
  29754. #. type: table
  29755. #: guix-git/doc/guix.texi:19974
  29756. msgid "This must be either @code{\"x11\"} or @code{\"wayland\"}."
  29757. msgstr ""
  29758. #. type: item
  29759. #: guix-git/doc/guix.texi:19977
  29760. #, fuzzy, no-wrap
  29761. msgid "@code{auto-login-user} (default: @code{\"\"})"
  29762. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  29763. #. type: table
  29764. #: guix-git/doc/guix.texi:19980
  29765. msgid "If non-empty, this is the user account under which to log in automatically."
  29766. msgstr ""
  29767. #. type: item
  29768. #: guix-git/doc/guix.texi:19981
  29769. #, fuzzy, no-wrap
  29770. msgid "@code{auto-login-session} (default: @code{\"\"})"
  29771. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  29772. #. type: table
  29773. #: guix-git/doc/guix.texi:19984
  29774. msgid "If non-empty, this is the @file{.desktop} file name to use as the auto-login session."
  29775. msgstr ""
  29776. #. type: cindex
  29777. #: guix-git/doc/guix.texi:19987
  29778. #, no-wrap
  29779. msgid "Xorg, configuration"
  29780. msgstr ""
  29781. #. type: deftp
  29782. #: guix-git/doc/guix.texi:19988
  29783. #, no-wrap
  29784. msgid "{Data Type} xorg-configuration"
  29785. msgstr ""
  29786. #. type: deftp
  29787. #: guix-git/doc/guix.texi:19993
  29788. 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."
  29789. msgstr ""
  29790. #. type: item
  29791. #: guix-git/doc/guix.texi:19995
  29792. #, no-wrap
  29793. msgid "@code{modules} (default: @code{%default-xorg-modules})"
  29794. msgstr ""
  29795. #. type: table
  29796. #: guix-git/doc/guix.texi:19998
  29797. 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."
  29798. msgstr ""
  29799. #. type: item
  29800. #: guix-git/doc/guix.texi:19999
  29801. #, no-wrap
  29802. msgid "@code{fonts} (default: @code{%default-xorg-fonts})"
  29803. msgstr ""
  29804. #. type: table
  29805. #: guix-git/doc/guix.texi:20001
  29806. msgid "This is a list of font directories to add to the server's @dfn{font path}."
  29807. msgstr ""
  29808. #. type: item
  29809. #: guix-git/doc/guix.texi:20002
  29810. #, no-wrap
  29811. msgid "@code{drivers} (default: @code{'()})"
  29812. msgstr ""
  29813. #. type: table
  29814. #: guix-git/doc/guix.texi:20006
  29815. 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\")}."
  29816. msgstr ""
  29817. #. type: item
  29818. #: guix-git/doc/guix.texi:20007
  29819. #, no-wrap
  29820. msgid "@code{resolutions} (default: @code{'()})"
  29821. msgstr ""
  29822. #. type: table
  29823. #: guix-git/doc/guix.texi:20011
  29824. 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))}."
  29825. msgstr ""
  29826. #. type: cindex
  29827. #: guix-git/doc/guix.texi:20012
  29828. #, no-wrap
  29829. msgid "keyboard layout, for Xorg"
  29830. msgstr ""
  29831. #. type: cindex
  29832. #: guix-git/doc/guix.texi:20013
  29833. #, no-wrap
  29834. msgid "keymap, for Xorg"
  29835. msgstr ""
  29836. #. type: table
  29837. #: guix-git/doc/guix.texi:20017
  29838. msgid "If this is @code{#f}, Xorg uses the default keyboard layout---usually US English (``qwerty'') for a 105-key PC keyboard."
  29839. msgstr ""
  29840. #. type: table
  29841. #: guix-git/doc/guix.texi:20021
  29842. 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."
  29843. msgstr ""
  29844. #. type: item
  29845. #: guix-git/doc/guix.texi:20022 guix-git/doc/guix.texi:22208
  29846. #: guix-git/doc/guix.texi:35078
  29847. #, no-wrap
  29848. msgid "@code{extra-config} (default: @code{'()})"
  29849. msgstr ""
  29850. #. type: table
  29851. #: guix-git/doc/guix.texi:20025 guix-git/doc/guix.texi:35082
  29852. 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."
  29853. msgstr ""
  29854. #. type: item
  29855. #: guix-git/doc/guix.texi:20026
  29856. #, no-wrap
  29857. msgid "@code{server} (default: @code{xorg-server})"
  29858. msgstr ""
  29859. #. type: table
  29860. #: guix-git/doc/guix.texi:20028
  29861. msgid "This is the package providing the Xorg server."
  29862. msgstr ""
  29863. #. type: item
  29864. #: guix-git/doc/guix.texi:20029
  29865. #, no-wrap
  29866. msgid "@code{server-arguments} (default: @code{%default-xorg-server-arguments})"
  29867. msgstr ""
  29868. #. type: table
  29869. #: guix-git/doc/guix.texi:20032
  29870. msgid "This is the list of command-line arguments to pass to the X server. The default is @code{-nolisten tcp}."
  29871. msgstr ""
  29872. #. type: deffn
  29873. #: guix-git/doc/guix.texi:20035
  29874. #, no-wrap
  29875. msgid "{Scheme Procedure} set-xorg-configuration @var{config} @"
  29876. msgstr ""
  29877. #. type: deffn
  29878. #: guix-git/doc/guix.texi:20039
  29879. 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."
  29880. msgstr ""
  29881. #. type: deffn
  29882. #: guix-git/doc/guix.texi:20043
  29883. 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."
  29884. msgstr ""
  29885. #. type: deffn
  29886. #: guix-git/doc/guix.texi:20045
  29887. #, no-wrap
  29888. msgid "{Scheme Procedure} xorg-start-command [@var{config}]"
  29889. msgstr ""
  29890. #. type: deffn
  29891. #: guix-git/doc/guix.texi:20049
  29892. 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}."
  29893. msgstr ""
  29894. #. type: deffn
  29895. #: guix-git/doc/guix.texi:20051
  29896. msgid "Usually the X server is started by a login manager."
  29897. msgstr ""
  29898. #. type: deffn
  29899. #: guix-git/doc/guix.texi:20054
  29900. #, no-wrap
  29901. msgid "{Scheme Procedure} screen-locker-service @var{package} [@var{program}]"
  29902. msgstr ""
  29903. #. type: deffn
  29904. #: guix-git/doc/guix.texi:20058
  29905. 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:"
  29906. msgstr ""
  29907. #. type: lisp
  29908. #: guix-git/doc/guix.texi:20061
  29909. #, no-wrap
  29910. msgid "(screen-locker-service xlockmore \"xlock\")\n"
  29911. msgstr ""
  29912. #. type: deffn
  29913. #: guix-git/doc/guix.texi:20064
  29914. msgid "makes the good ol' XlockMore usable."
  29915. msgstr ""
  29916. #. type: cindex
  29917. #: guix-git/doc/guix.texi:20070
  29918. #, no-wrap
  29919. msgid "printer support with CUPS"
  29920. msgstr ""
  29921. #. type: Plain text
  29922. #: guix-git/doc/guix.texi:20074
  29923. 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:"
  29924. msgstr ""
  29925. #. type: deffn
  29926. #: guix-git/doc/guix.texi:20075
  29927. #, no-wrap
  29928. msgid "{Scheme Variable} cups-service-type"
  29929. msgstr ""
  29930. #. type: deffn
  29931. #: guix-git/doc/guix.texi:20079
  29932. 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:"
  29933. msgstr ""
  29934. #. type: lisp
  29935. #: guix-git/doc/guix.texi:20081
  29936. #, no-wrap
  29937. msgid "(service cups-service-type)\n"
  29938. msgstr ""
  29939. #. type: Plain text
  29940. #: guix-git/doc/guix.texi:20091
  29941. 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."
  29942. msgstr ""
  29943. #. type: Plain text
  29944. #: guix-git/doc/guix.texi:20097
  29945. 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):"
  29946. msgstr ""
  29947. #. type: lisp
  29948. #: guix-git/doc/guix.texi:20104
  29949. #, no-wrap
  29950. msgid ""
  29951. "(service cups-service-type\n"
  29952. " (cups-configuration\n"
  29953. " (web-interface? #t)\n"
  29954. " (extensions\n"
  29955. " (list cups-filters epson-inkjet-printer-escpr hplip-minimal))))\n"
  29956. msgstr ""
  29957. #. type: Plain text
  29958. #: guix-git/doc/guix.texi:20109
  29959. 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."
  29960. msgstr ""
  29961. #. type: Plain text
  29962. #: guix-git/doc/guix.texi:20116
  29963. 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."
  29964. msgstr ""
  29965. #. type: Plain text
  29966. #: guix-git/doc/guix.texi:20127
  29967. msgid "Available @code{cups-configuration} fields are:"
  29968. msgstr ""
  29969. #. type: deftypevr
  29970. #: guix-git/doc/guix.texi:20128
  29971. #, no-wrap
  29972. msgid "{@code{cups-configuration} parameter} package cups"
  29973. msgstr ""
  29974. #. type: deftypevr
  29975. #: guix-git/doc/guix.texi:20130 guix-git/doc/guix.texi:20898
  29976. msgid "The CUPS package."
  29977. msgstr ""
  29978. #. type: deftypevr
  29979. #: guix-git/doc/guix.texi:20132
  29980. #, no-wrap
  29981. msgid "{@code{cups-configuration} parameter} package-list extensions (default: @code{(list brlaser cups-filters epson-inkjet-printer-escpr foomatic-filters hplip-minimal splix)})"
  29982. msgstr ""
  29983. #. type: deftypevr
  29984. #: guix-git/doc/guix.texi:20134
  29985. msgid "Drivers and other extensions to the CUPS package."
  29986. msgstr ""
  29987. #. type: deftypevr
  29988. #: guix-git/doc/guix.texi:20136
  29989. #, no-wrap
  29990. msgid "{@code{cups-configuration} parameter} files-configuration files-configuration"
  29991. msgstr ""
  29992. #. type: deftypevr
  29993. #: guix-git/doc/guix.texi:20139
  29994. msgid "Configuration of where to write logs, what directories to use for print spools, and related privileged configuration parameters."
  29995. msgstr ""
  29996. #. type: deftypevr
  29997. #: guix-git/doc/guix.texi:20141
  29998. msgid "Available @code{files-configuration} fields are:"
  29999. msgstr ""
  30000. #. type: deftypevr
  30001. #: guix-git/doc/guix.texi:20142
  30002. #, no-wrap
  30003. msgid "{@code{files-configuration} parameter} log-location access-log"
  30004. msgstr ""
  30005. #. type: deftypevr
  30006. #: guix-git/doc/guix.texi:20150
  30007. 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}."
  30008. msgstr ""
  30009. #. type: deftypevr
  30010. #: guix-git/doc/guix.texi:20152
  30011. msgid "Defaults to @samp{\"/var/log/cups/access_log\"}."
  30012. msgstr ""
  30013. #. type: deftypevr
  30014. #: guix-git/doc/guix.texi:20154
  30015. #, no-wrap
  30016. msgid "{@code{files-configuration} parameter} file-name cache-dir"
  30017. msgstr ""
  30018. #. type: deftypevr
  30019. #: guix-git/doc/guix.texi:20156
  30020. msgid "Where CUPS should cache data."
  30021. msgstr ""
  30022. #. type: deftypevr
  30023. #: guix-git/doc/guix.texi:20158
  30024. msgid "Defaults to @samp{\"/var/cache/cups\"}."
  30025. msgstr ""
  30026. #. type: deftypevr
  30027. #: guix-git/doc/guix.texi:20160
  30028. #, no-wrap
  30029. msgid "{@code{files-configuration} parameter} string config-file-perm"
  30030. msgstr ""
  30031. #. type: deftypevr
  30032. #: guix-git/doc/guix.texi:20163
  30033. msgid "Specifies the permissions for all configuration files that the scheduler writes."
  30034. msgstr ""
  30035. #. type: deftypevr
  30036. #: guix-git/doc/guix.texi:20169
  30037. 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."
  30038. msgstr ""
  30039. #. type: deftypevr
  30040. #: guix-git/doc/guix.texi:20171
  30041. msgid "Defaults to @samp{\"0640\"}."
  30042. msgstr ""
  30043. #. type: deftypevr
  30044. #: guix-git/doc/guix.texi:20173
  30045. #, no-wrap
  30046. msgid "{@code{files-configuration} parameter} log-location error-log"
  30047. msgstr ""
  30048. #. type: deftypevr
  30049. #: guix-git/doc/guix.texi:20181
  30050. 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}."
  30051. msgstr ""
  30052. #. type: deftypevr
  30053. #: guix-git/doc/guix.texi:20183
  30054. msgid "Defaults to @samp{\"/var/log/cups/error_log\"}."
  30055. msgstr ""
  30056. #. type: deftypevr
  30057. #: guix-git/doc/guix.texi:20185
  30058. #, no-wrap
  30059. msgid "{@code{files-configuration} parameter} string fatal-errors"
  30060. msgstr ""
  30061. #. type: deftypevr
  30062. #: guix-git/doc/guix.texi:20188
  30063. msgid "Specifies which errors are fatal, causing the scheduler to exit. The kind strings are:"
  30064. msgstr ""
  30065. #. type: table
  30066. #: guix-git/doc/guix.texi:20192
  30067. msgid "No errors are fatal."
  30068. msgstr ""
  30069. #. type: table
  30070. #: guix-git/doc/guix.texi:20195
  30071. msgid "All of the errors below are fatal."
  30072. msgstr ""
  30073. #. type: item
  30074. #: guix-git/doc/guix.texi:20196
  30075. #, no-wrap
  30076. msgid "browse"
  30077. msgstr ""
  30078. #. type: table
  30079. #: guix-git/doc/guix.texi:20199
  30080. msgid "Browsing initialization errors are fatal, for example failed connections to the DNS-SD daemon."
  30081. msgstr ""
  30082. #. type: item
  30083. #: guix-git/doc/guix.texi:20200
  30084. #, no-wrap
  30085. msgid "config"
  30086. msgstr ""
  30087. #. type: table
  30088. #: guix-git/doc/guix.texi:20202
  30089. msgid "Configuration file syntax errors are fatal."
  30090. msgstr ""
  30091. #. type: item
  30092. #: guix-git/doc/guix.texi:20203
  30093. #, no-wrap
  30094. msgid "listen"
  30095. msgstr ""
  30096. #. type: table
  30097. #: guix-git/doc/guix.texi:20206
  30098. msgid "Listen or Port errors are fatal, except for IPv6 failures on the loopback or @code{any} addresses."
  30099. msgstr ""
  30100. #. type: item
  30101. #: guix-git/doc/guix.texi:20207
  30102. #, no-wrap
  30103. msgid "log"
  30104. msgstr ""
  30105. #. type: table
  30106. #: guix-git/doc/guix.texi:20209
  30107. msgid "Log file creation or write errors are fatal."
  30108. msgstr ""
  30109. #. type: item
  30110. #: guix-git/doc/guix.texi:20210
  30111. #, no-wrap
  30112. msgid "permissions"
  30113. msgstr ""
  30114. #. type: table
  30115. #: guix-git/doc/guix.texi:20213
  30116. msgid "Bad startup file permissions are fatal, for example shared TLS certificate and key files with world-read permissions."
  30117. msgstr ""
  30118. #. type: deftypevr
  30119. #: guix-git/doc/guix.texi:20216
  30120. msgid "Defaults to @samp{\"all -browse\"}."
  30121. msgstr ""
  30122. #. type: deftypevr
  30123. #: guix-git/doc/guix.texi:20218
  30124. #, no-wrap
  30125. msgid "{@code{files-configuration} parameter} boolean file-device?"
  30126. msgstr ""
  30127. #. type: deftypevr
  30128. #: guix-git/doc/guix.texi:20221
  30129. msgid "Specifies whether the file pseudo-device can be used for new printer queues. The URI @uref{file:///dev/null} is always allowed."
  30130. msgstr ""
  30131. #. type: deftypevr
  30132. #: guix-git/doc/guix.texi:20225
  30133. #, no-wrap
  30134. msgid "{@code{files-configuration} parameter} string group"
  30135. msgstr ""
  30136. #. type: deftypevr
  30137. #: guix-git/doc/guix.texi:20228
  30138. msgid "Specifies the group name or ID that will be used when executing external programs."
  30139. msgstr ""
  30140. #. type: deftypevr
  30141. #: guix-git/doc/guix.texi:20230 guix-git/doc/guix.texi:20316
  30142. msgid "Defaults to @samp{\"lp\"}."
  30143. msgstr ""
  30144. #. type: deftypevr
  30145. #: guix-git/doc/guix.texi:20232
  30146. #, no-wrap
  30147. msgid "{@code{files-configuration} parameter} string log-file-group"
  30148. msgstr ""
  30149. #. type: deftypevr
  30150. #: guix-git/doc/guix.texi:20234
  30151. msgid "Specifies the group name or ID that will be used for log files."
  30152. msgstr ""
  30153. #. type: deftypevr
  30154. #: guix-git/doc/guix.texi:20236
  30155. msgid "Defaults to @samp{\"lpadmin\"}."
  30156. msgstr ""
  30157. #. type: deftypevr
  30158. #: guix-git/doc/guix.texi:20238
  30159. #, no-wrap
  30160. msgid "{@code{files-configuration} parameter} string log-file-perm"
  30161. msgstr ""
  30162. #. type: deftypevr
  30163. #: guix-git/doc/guix.texi:20240
  30164. msgid "Specifies the permissions for all log files that the scheduler writes."
  30165. msgstr ""
  30166. #. type: deftypevr
  30167. #: guix-git/doc/guix.texi:20242
  30168. msgid "Defaults to @samp{\"0644\"}."
  30169. msgstr ""
  30170. #. type: deftypevr
  30171. #: guix-git/doc/guix.texi:20244
  30172. #, no-wrap
  30173. msgid "{@code{files-configuration} parameter} log-location page-log"
  30174. msgstr ""
  30175. #. type: deftypevr
  30176. #: guix-git/doc/guix.texi:20252
  30177. 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}."
  30178. msgstr ""
  30179. #. type: deftypevr
  30180. #: guix-git/doc/guix.texi:20254
  30181. msgid "Defaults to @samp{\"/var/log/cups/page_log\"}."
  30182. msgstr ""
  30183. #. type: deftypevr
  30184. #: guix-git/doc/guix.texi:20256
  30185. #, no-wrap
  30186. msgid "{@code{files-configuration} parameter} string remote-root"
  30187. msgstr ""
  30188. #. type: deftypevr
  30189. #: guix-git/doc/guix.texi:20259
  30190. msgid "Specifies the username that is associated with unauthenticated accesses by clients claiming to be the root user. The default is @code{remroot}."
  30191. msgstr ""
  30192. #. type: deftypevr
  30193. #: guix-git/doc/guix.texi:20261
  30194. msgid "Defaults to @samp{\"remroot\"}."
  30195. msgstr ""
  30196. #. type: deftypevr
  30197. #: guix-git/doc/guix.texi:20263
  30198. #, no-wrap
  30199. msgid "{@code{files-configuration} parameter} file-name request-root"
  30200. msgstr ""
  30201. #. type: deftypevr
  30202. #: guix-git/doc/guix.texi:20266
  30203. msgid "Specifies the directory that contains print jobs and other HTTP request data."
  30204. msgstr ""
  30205. #. type: deftypevr
  30206. #: guix-git/doc/guix.texi:20268
  30207. msgid "Defaults to @samp{\"/var/spool/cups\"}."
  30208. msgstr ""
  30209. #. type: deftypevr
  30210. #: guix-git/doc/guix.texi:20270
  30211. #, no-wrap
  30212. msgid "{@code{files-configuration} parameter} sandboxing sandboxing"
  30213. msgstr ""
  30214. #. type: deftypevr
  30215. #: guix-git/doc/guix.texi:20275
  30216. 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."
  30217. msgstr ""
  30218. #. type: deftypevr
  30219. #: guix-git/doc/guix.texi:20277
  30220. msgid "Defaults to @samp{strict}."
  30221. msgstr ""
  30222. #. type: deftypevr
  30223. #: guix-git/doc/guix.texi:20279
  30224. #, no-wrap
  30225. msgid "{@code{files-configuration} parameter} file-name server-keychain"
  30226. msgstr ""
  30227. #. type: deftypevr
  30228. #: guix-git/doc/guix.texi:20284
  30229. 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."
  30230. msgstr ""
  30231. #. type: deftypevr
  30232. #: guix-git/doc/guix.texi:20286
  30233. msgid "Defaults to @samp{\"/etc/cups/ssl\"}."
  30234. msgstr ""
  30235. #. type: deftypevr
  30236. #: guix-git/doc/guix.texi:20288
  30237. #, no-wrap
  30238. msgid "{@code{files-configuration} parameter} file-name server-root"
  30239. msgstr ""
  30240. #. type: deftypevr
  30241. #: guix-git/doc/guix.texi:20290
  30242. msgid "Specifies the directory containing the server configuration files."
  30243. msgstr ""
  30244. #. type: deftypevr
  30245. #: guix-git/doc/guix.texi:20292
  30246. msgid "Defaults to @samp{\"/etc/cups\"}."
  30247. msgstr ""
  30248. #. type: deftypevr
  30249. #: guix-git/doc/guix.texi:20294
  30250. #, no-wrap
  30251. msgid "{@code{files-configuration} parameter} boolean sync-on-close?"
  30252. msgstr ""
  30253. #. type: deftypevr
  30254. #: guix-git/doc/guix.texi:20297
  30255. msgid "Specifies whether the scheduler calls fsync(2) after writing configuration or state files."
  30256. msgstr ""
  30257. #. type: deftypevr
  30258. #: guix-git/doc/guix.texi:20301
  30259. #, no-wrap
  30260. msgid "{@code{files-configuration} parameter} space-separated-string-list system-group"
  30261. msgstr ""
  30262. #. type: deftypevr
  30263. #: guix-git/doc/guix.texi:20303
  30264. msgid "Specifies the group(s) to use for @code{@@SYSTEM} group authentication."
  30265. msgstr ""
  30266. #. type: deftypevr
  30267. #: guix-git/doc/guix.texi:20305
  30268. #, no-wrap
  30269. msgid "{@code{files-configuration} parameter} file-name temp-dir"
  30270. msgstr ""
  30271. #. type: deftypevr
  30272. #: guix-git/doc/guix.texi:20307
  30273. msgid "Specifies the directory where temporary files are stored."
  30274. msgstr ""
  30275. #. type: deftypevr
  30276. #: guix-git/doc/guix.texi:20309
  30277. msgid "Defaults to @samp{\"/var/spool/cups/tmp\"}."
  30278. msgstr ""
  30279. #. type: deftypevr
  30280. #: guix-git/doc/guix.texi:20311
  30281. #, no-wrap
  30282. msgid "{@code{files-configuration} parameter} string user"
  30283. msgstr ""
  30284. #. type: deftypevr
  30285. #: guix-git/doc/guix.texi:20314
  30286. msgid "Specifies the user name or ID that is used when running external programs."
  30287. msgstr ""
  30288. #. type: deftypevr
  30289. #: guix-git/doc/guix.texi:20318
  30290. #, no-wrap
  30291. msgid "{@code{files-configuration} parameter} string set-env"
  30292. msgstr ""
  30293. #. type: deftypevr
  30294. #: guix-git/doc/guix.texi:20320
  30295. msgid "Set the specified environment variable to be passed to child processes."
  30296. msgstr ""
  30297. #. type: deftypevr
  30298. #: guix-git/doc/guix.texi:20322
  30299. msgid "Defaults to @samp{\"variable value\"}."
  30300. msgstr ""
  30301. #. type: deftypevr
  30302. #: guix-git/doc/guix.texi:20325
  30303. #, no-wrap
  30304. msgid "{@code{cups-configuration} parameter} access-log-level access-log-level"
  30305. msgstr ""
  30306. #. type: deftypevr
  30307. #: guix-git/doc/guix.texi:20332
  30308. 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."
  30309. msgstr ""
  30310. #. type: deftypevr
  30311. #: guix-git/doc/guix.texi:20334
  30312. msgid "Defaults to @samp{actions}."
  30313. msgstr ""
  30314. #. type: deftypevr
  30315. #: guix-git/doc/guix.texi:20336
  30316. #, no-wrap
  30317. msgid "{@code{cups-configuration} parameter} boolean auto-purge-jobs?"
  30318. msgstr ""
  30319. #. type: deftypevr
  30320. #: guix-git/doc/guix.texi:20339
  30321. msgid "Specifies whether to purge job history data automatically when it is no longer required for quotas."
  30322. msgstr ""
  30323. #. type: deftypevr
  30324. #: guix-git/doc/guix.texi:20343
  30325. #, no-wrap
  30326. msgid "{@code{cups-configuration} parameter} comma-separated-string-list browse-dns-sd-sub-types"
  30327. msgstr ""
  30328. #. type: deftypevr
  30329. #: guix-git/doc/guix.texi:20347
  30330. 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."
  30331. msgstr ""
  30332. #. type: deftypevr
  30333. #: guix-git/doc/guix.texi:20349
  30334. msgid "Defaults to @samp{\"_cups\"}."
  30335. msgstr ""
  30336. #. type: deftypevr
  30337. #: guix-git/doc/guix.texi:20351
  30338. #, no-wrap
  30339. msgid "{@code{cups-configuration} parameter} browse-local-protocols browse-local-protocols"
  30340. msgstr ""
  30341. #. type: deftypevr
  30342. #: guix-git/doc/guix.texi:20353
  30343. msgid "Specifies which protocols to use for local printer sharing."
  30344. msgstr ""
  30345. #. type: deftypevr
  30346. #: guix-git/doc/guix.texi:20355
  30347. msgid "Defaults to @samp{dnssd}."
  30348. msgstr ""
  30349. #. type: deftypevr
  30350. #: guix-git/doc/guix.texi:20357
  30351. #, no-wrap
  30352. msgid "{@code{cups-configuration} parameter} boolean browse-web-if?"
  30353. msgstr ""
  30354. #. type: deftypevr
  30355. #: guix-git/doc/guix.texi:20359
  30356. msgid "Specifies whether the CUPS web interface is advertised."
  30357. msgstr ""
  30358. #. type: deftypevr
  30359. #: guix-git/doc/guix.texi:20363
  30360. #, no-wrap
  30361. msgid "{@code{cups-configuration} parameter} boolean browsing?"
  30362. msgstr ""
  30363. #. type: deftypevr
  30364. #: guix-git/doc/guix.texi:20365
  30365. msgid "Specifies whether shared printers are advertised."
  30366. msgstr ""
  30367. #. type: deftypevr
  30368. #: guix-git/doc/guix.texi:20369
  30369. #, no-wrap
  30370. msgid "{@code{cups-configuration} parameter} string classification"
  30371. msgstr ""
  30372. #. type: deftypevr
  30373. #: guix-git/doc/guix.texi:20374
  30374. 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."
  30375. msgstr ""
  30376. #. type: deftypevr
  30377. #: guix-git/doc/guix.texi:20376 guix-git/doc/guix.texi:20707
  30378. #: guix-git/doc/guix.texi:23165 guix-git/doc/guix.texi:23177
  30379. #: guix-git/doc/guix.texi:23205 guix-git/doc/guix.texi:23962
  30380. #: guix-git/doc/guix.texi:23976 guix-git/doc/guix.texi:23983
  30381. #: guix-git/doc/guix.texi:23990 guix-git/doc/guix.texi:24020
  30382. #: guix-git/doc/guix.texi:24118 guix-git/doc/guix.texi:31027
  30383. #: guix-git/doc/guix.texi:31035 guix-git/doc/guix.texi:31043
  30384. #: guix-git/doc/guix.texi:31051 guix-git/doc/guix.texi:31330
  30385. #: guix-git/doc/guix.texi:32689 guix-git/doc/guix.texi:32697
  30386. #: guix-git/doc/guix.texi:32705 guix-git/doc/guix.texi:32813
  30387. #: guix-git/doc/guix.texi:32838 guix-git/doc/guix.texi:32969
  30388. #: guix-git/doc/guix.texi:32977 guix-git/doc/guix.texi:32985
  30389. #: guix-git/doc/guix.texi:32993 guix-git/doc/guix.texi:33001
  30390. #: guix-git/doc/guix.texi:33009 guix-git/doc/guix.texi:33032
  30391. #: guix-git/doc/guix.texi:33040 guix-git/doc/guix.texi:33092
  30392. #: guix-git/doc/guix.texi:33108 guix-git/doc/guix.texi:33116
  30393. #: guix-git/doc/guix.texi:33155 guix-git/doc/guix.texi:33178
  30394. #: guix-git/doc/guix.texi:33200 guix-git/doc/guix.texi:33207
  30395. #: guix-git/doc/guix.texi:33242 guix-git/doc/guix.texi:33250
  30396. #: guix-git/doc/guix.texi:33274 guix-git/doc/guix.texi:33306
  30397. #: guix-git/doc/guix.texi:33335 guix-git/doc/guix.texi:33342
  30398. #: guix-git/doc/guix.texi:33349 guix-git/doc/guix.texi:33357
  30399. #: guix-git/doc/guix.texi:33371 guix-git/doc/guix.texi:33380
  30400. #: guix-git/doc/guix.texi:33390 guix-git/doc/guix.texi:33397
  30401. #: guix-git/doc/guix.texi:33404 guix-git/doc/guix.texi:33411
  30402. #: guix-git/doc/guix.texi:33482 guix-git/doc/guix.texi:33489
  30403. #: guix-git/doc/guix.texi:33496 guix-git/doc/guix.texi:33505
  30404. #: guix-git/doc/guix.texi:33521 guix-git/doc/guix.texi:33528
  30405. #: guix-git/doc/guix.texi:33535 guix-git/doc/guix.texi:33542
  30406. #: guix-git/doc/guix.texi:33550 guix-git/doc/guix.texi:33558
  30407. msgid "Defaults to @samp{\"\"}."
  30408. msgstr ""
  30409. #. type: deftypevr
  30410. #: guix-git/doc/guix.texi:20378
  30411. #, no-wrap
  30412. msgid "{@code{cups-configuration} parameter} boolean classify-override?"
  30413. msgstr ""
  30414. #. type: deftypevr
  30415. #: guix-git/doc/guix.texi:20381
  30416. msgid "Specifies whether users may override the classification (cover page) of individual print jobs using the @code{job-sheets} option."
  30417. msgstr ""
  30418. #. type: deftypevr
  30419. #: guix-git/doc/guix.texi:20385
  30420. #, no-wrap
  30421. msgid "{@code{cups-configuration} parameter} default-auth-type default-auth-type"
  30422. msgstr ""
  30423. #. type: deftypevr
  30424. #: guix-git/doc/guix.texi:20387
  30425. msgid "Specifies the default type of authentication to use."
  30426. msgstr ""
  30427. #. type: deftypevr
  30428. #: guix-git/doc/guix.texi:20389
  30429. msgid "Defaults to @samp{Basic}."
  30430. msgstr ""
  30431. #. type: deftypevr
  30432. #: guix-git/doc/guix.texi:20391
  30433. #, no-wrap
  30434. msgid "{@code{cups-configuration} parameter} default-encryption default-encryption"
  30435. msgstr ""
  30436. #. type: deftypevr
  30437. #: guix-git/doc/guix.texi:20393
  30438. msgid "Specifies whether encryption will be used for authenticated requests."
  30439. msgstr ""
  30440. #. type: deftypevr
  30441. #: guix-git/doc/guix.texi:20395
  30442. msgid "Defaults to @samp{Required}."
  30443. msgstr ""
  30444. #. type: deftypevr
  30445. #: guix-git/doc/guix.texi:20397
  30446. #, no-wrap
  30447. msgid "{@code{cups-configuration} parameter} string default-language"
  30448. msgstr ""
  30449. #. type: deftypevr
  30450. #: guix-git/doc/guix.texi:20399
  30451. msgid "Specifies the default language to use for text and web content."
  30452. msgstr ""
  30453. #. type: deftypevr
  30454. #: guix-git/doc/guix.texi:20401
  30455. msgid "Defaults to @samp{\"en\"}."
  30456. msgstr ""
  30457. #. type: deftypevr
  30458. #: guix-git/doc/guix.texi:20403
  30459. #, no-wrap
  30460. msgid "{@code{cups-configuration} parameter} string default-paper-size"
  30461. msgstr ""
  30462. #. type: deftypevr
  30463. #: guix-git/doc/guix.texi:20408
  30464. 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\"}."
  30465. msgstr ""
  30466. #. type: deftypevr
  30467. #: guix-git/doc/guix.texi:20410
  30468. msgid "Defaults to @samp{\"Auto\"}."
  30469. msgstr ""
  30470. #. type: deftypevr
  30471. #: guix-git/doc/guix.texi:20412
  30472. #, no-wrap
  30473. msgid "{@code{cups-configuration} parameter} string default-policy"
  30474. msgstr ""
  30475. #. type: deftypevr
  30476. #: guix-git/doc/guix.texi:20414
  30477. msgid "Specifies the default access policy to use."
  30478. msgstr ""
  30479. #. type: deftypevr
  30480. #: guix-git/doc/guix.texi:20416
  30481. msgid "Defaults to @samp{\"default\"}."
  30482. msgstr ""
  30483. #. type: deftypevr
  30484. #: guix-git/doc/guix.texi:20418
  30485. #, no-wrap
  30486. msgid "{@code{cups-configuration} parameter} boolean default-shared?"
  30487. msgstr ""
  30488. #. type: deftypevr
  30489. #: guix-git/doc/guix.texi:20420
  30490. msgid "Specifies whether local printers are shared by default."
  30491. msgstr ""
  30492. #. type: deftypevr
  30493. #: guix-git/doc/guix.texi:20422 guix-git/doc/guix.texi:20502
  30494. #: guix-git/doc/guix.texi:20792 guix-git/doc/guix.texi:24052
  30495. #: guix-git/doc/guix.texi:24103 guix-git/doc/guix.texi:24110
  30496. #: guix-git/doc/guix.texi:25392 guix-git/doc/guix.texi:25580
  30497. #: guix-git/doc/guix.texi:25697 guix-git/doc/guix.texi:25733
  30498. #: guix-git/doc/guix.texi:25784 guix-git/doc/guix.texi:25803
  30499. #: guix-git/doc/guix.texi:25813 guix-git/doc/guix.texi:25823
  30500. #: guix-git/doc/guix.texi:25882 guix-git/doc/guix.texi:25904
  30501. #: guix-git/doc/guix.texi:25929 guix-git/doc/guix.texi:25955
  30502. #: guix-git/doc/guix.texi:25973 guix-git/doc/guix.texi:29090
  30503. #: guix-git/doc/guix.texi:29118 guix-git/doc/guix.texi:29254
  30504. #: guix-git/doc/guix.texi:29261 guix-git/doc/guix.texi:29269
  30505. #: guix-git/doc/guix.texi:29306 guix-git/doc/guix.texi:29320
  30506. #: guix-git/doc/guix.texi:29409 guix-git/doc/guix.texi:29416
  30507. #: guix-git/doc/guix.texi:29424 guix-git/doc/guix.texi:30203
  30508. #: guix-git/doc/guix.texi:30343 guix-git/doc/guix.texi:30557
  30509. #: guix-git/doc/guix.texi:30564 guix-git/doc/guix.texi:30586
  30510. #: guix-git/doc/guix.texi:30625 guix-git/doc/guix.texi:30645
  30511. #: guix-git/doc/guix.texi:30659 guix-git/doc/guix.texi:30876
  30512. #: guix-git/doc/guix.texi:32791 guix-git/doc/guix.texi:32879
  30513. #: guix-git/doc/guix.texi:32895 guix-git/doc/guix.texi:32945
  30514. msgid "Defaults to @samp{#t}."
  30515. msgstr ""
  30516. #. type: deftypevr
  30517. #: guix-git/doc/guix.texi:20424
  30518. #, no-wrap
  30519. msgid "{@code{cups-configuration} parameter} non-negative-integer dirty-clean-interval"
  30520. msgstr ""
  30521. #. type: deftypevr
  30522. #: guix-git/doc/guix.texi:20428
  30523. 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."
  30524. msgstr ""
  30525. #. type: deftypevr
  30526. #: guix-git/doc/guix.texi:20430 guix-git/doc/guix.texi:20478
  30527. #: guix-git/doc/guix.texi:20487 guix-git/doc/guix.texi:20799
  30528. #: guix-git/doc/guix.texi:25742 guix-git/doc/guix.texi:25775
  30529. msgid "Defaults to @samp{30}."
  30530. msgstr ""
  30531. #. type: deftypevr
  30532. #: guix-git/doc/guix.texi:20432
  30533. #, no-wrap
  30534. msgid "{@code{cups-configuration} parameter} error-policy error-policy"
  30535. msgstr ""
  30536. #. type: deftypevr
  30537. #: guix-git/doc/guix.texi:20438
  30538. 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."
  30539. msgstr ""
  30540. #. type: deftypevr
  30541. #: guix-git/doc/guix.texi:20440
  30542. msgid "Defaults to @samp{stop-printer}."
  30543. msgstr ""
  30544. #. type: deftypevr
  30545. #: guix-git/doc/guix.texi:20442
  30546. #, no-wrap
  30547. msgid "{@code{cups-configuration} parameter} non-negative-integer filter-limit"
  30548. msgstr ""
  30549. #. type: deftypevr
  30550. #: guix-git/doc/guix.texi:20450
  30551. 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."
  30552. msgstr ""
  30553. #. type: deftypevr
  30554. #: guix-git/doc/guix.texi:20452 guix-git/doc/guix.texi:20460
  30555. #: guix-git/doc/guix.texi:20509 guix-git/doc/guix.texi:20625
  30556. #: guix-git/doc/guix.texi:20639 guix-git/doc/guix.texi:20646
  30557. #: guix-git/doc/guix.texi:22607 guix-git/doc/guix.texi:22623
  30558. #: guix-git/doc/guix.texi:23280 guix-git/doc/guix.texi:23292
  30559. #: guix-git/doc/guix.texi:24071 guix-git/doc/guix.texi:24080
  30560. #: guix-git/doc/guix.texi:24088 guix-git/doc/guix.texi:24096
  30561. #: guix-git/doc/guix.texi:30219 guix-git/doc/guix.texi:30572
  30562. #: guix-git/doc/guix.texi:32784 guix-git/doc/guix.texi:33084
  30563. #: guix-git/doc/guix.texi:33258
  30564. msgid "Defaults to @samp{0}."
  30565. msgstr ""
  30566. #. type: deftypevr
  30567. #: guix-git/doc/guix.texi:20454
  30568. #, no-wrap
  30569. msgid "{@code{cups-configuration} parameter} non-negative-integer filter-nice"
  30570. msgstr ""
  30571. #. type: deftypevr
  30572. #: guix-git/doc/guix.texi:20458
  30573. 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."
  30574. msgstr ""
  30575. #. type: deftypevr
  30576. #: guix-git/doc/guix.texi:20462
  30577. #, no-wrap
  30578. msgid "{@code{cups-configuration} parameter} host-name-lookups host-name-lookups"
  30579. msgstr ""
  30580. #. type: deftypevr
  30581. #: guix-git/doc/guix.texi:20469
  30582. 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."
  30583. msgstr ""
  30584. #. type: deftypevr
  30585. #: guix-git/doc/guix.texi:20473
  30586. #, no-wrap
  30587. msgid "{@code{cups-configuration} parameter} non-negative-integer job-kill-delay"
  30588. msgstr ""
  30589. #. type: deftypevr
  30590. #: guix-git/doc/guix.texi:20476
  30591. msgid "Specifies the number of seconds to wait before killing the filters and backend associated with a canceled or held job."
  30592. msgstr ""
  30593. #. type: deftypevr
  30594. #: guix-git/doc/guix.texi:20480
  30595. #, no-wrap
  30596. msgid "{@code{cups-configuration} parameter} non-negative-integer job-retry-interval"
  30597. msgstr ""
  30598. #. type: deftypevr
  30599. #: guix-git/doc/guix.texi:20485
  30600. 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}."
  30601. msgstr ""
  30602. #. type: deftypevr
  30603. #: guix-git/doc/guix.texi:20489
  30604. #, no-wrap
  30605. msgid "{@code{cups-configuration} parameter} non-negative-integer job-retry-limit"
  30606. msgstr ""
  30607. #. type: deftypevr
  30608. #: guix-git/doc/guix.texi:20494
  30609. 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}."
  30610. msgstr ""
  30611. #. type: deftypevr
  30612. #: guix-git/doc/guix.texi:20496 guix-git/doc/guix.texi:25706
  30613. #: guix-git/doc/guix.texi:31128 guix-git/doc/guix.texi:31148
  30614. #: guix-git/doc/guix.texi:31164 guix-git/doc/guix.texi:31178
  30615. #: guix-git/doc/guix.texi:31185 guix-git/doc/guix.texi:31192
  30616. #: guix-git/doc/guix.texi:31199 guix-git/doc/guix.texi:31359
  30617. #: guix-git/doc/guix.texi:31375 guix-git/doc/guix.texi:31382
  30618. #: guix-git/doc/guix.texi:31389 guix-git/doc/guix.texi:31400
  30619. #: guix-git/doc/guix.texi:32736 guix-git/doc/guix.texi:32744
  30620. #: guix-git/doc/guix.texi:32752 guix-git/doc/guix.texi:32776
  30621. msgid "Defaults to @samp{5}."
  30622. msgstr ""
  30623. #. type: deftypevr
  30624. #: guix-git/doc/guix.texi:20498
  30625. #, no-wrap
  30626. msgid "{@code{cups-configuration} parameter} boolean keep-alive?"
  30627. msgstr ""
  30628. #. type: deftypevr
  30629. #: guix-git/doc/guix.texi:20500
  30630. msgid "Specifies whether to support HTTP keep-alive connections."
  30631. msgstr ""
  30632. #. type: deftypevr
  30633. #: guix-git/doc/guix.texi:20504
  30634. #, no-wrap
  30635. msgid "{@code{cups-configuration} parameter} non-negative-integer limit-request-body"
  30636. msgstr ""
  30637. #. type: deftypevr
  30638. #: guix-git/doc/guix.texi:20507
  30639. msgid "Specifies the maximum size of print files, IPP requests, and HTML form data. A limit of 0 disables the limit check."
  30640. msgstr ""
  30641. #. type: deftypevr
  30642. #: guix-git/doc/guix.texi:20511
  30643. #, no-wrap
  30644. msgid "{@code{cups-configuration} parameter} multiline-string-list listen"
  30645. msgstr ""
  30646. #. type: deftypevr
  30647. #: guix-git/doc/guix.texi:20518
  30648. 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."
  30649. msgstr ""
  30650. #. type: deftypevr
  30651. #: guix-git/doc/guix.texi:20520
  30652. #, no-wrap
  30653. msgid "{@code{cups-configuration} parameter} non-negative-integer listen-back-log"
  30654. msgstr ""
  30655. #. type: deftypevr
  30656. #: guix-git/doc/guix.texi:20527
  30657. 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."
  30658. msgstr ""
  30659. #. type: deftypevr
  30660. #: guix-git/doc/guix.texi:20529
  30661. msgid "Defaults to @samp{128}."
  30662. msgstr ""
  30663. #. type: deftypevr
  30664. #: guix-git/doc/guix.texi:20531
  30665. #, no-wrap
  30666. msgid "{@code{cups-configuration} parameter} location-access-control-list location-access-controls"
  30667. msgstr ""
  30668. #. type: deftypevr
  30669. #: guix-git/doc/guix.texi:20533
  30670. msgid "Specifies a set of additional access controls."
  30671. msgstr ""
  30672. #. type: deftypevr
  30673. #: guix-git/doc/guix.texi:20535
  30674. msgid "Available @code{location-access-controls} fields are:"
  30675. msgstr ""
  30676. #. type: deftypevr
  30677. #: guix-git/doc/guix.texi:20536
  30678. #, no-wrap
  30679. msgid "{@code{location-access-controls} parameter} file-name path"
  30680. msgstr ""
  30681. #. type: deftypevr
  30682. #: guix-git/doc/guix.texi:20538
  30683. msgid "Specifies the URI path to which the access control applies."
  30684. msgstr ""
  30685. #. type: deftypevr
  30686. #: guix-git/doc/guix.texi:20540
  30687. #, no-wrap
  30688. msgid "{@code{location-access-controls} parameter} access-control-list access-controls"
  30689. msgstr ""
  30690. #. type: deftypevr
  30691. #: guix-git/doc/guix.texi:20543
  30692. msgid "Access controls for all access to this path, in the same format as the @code{access-controls} of @code{operation-access-control}."
  30693. msgstr ""
  30694. #. type: deftypevr
  30695. #: guix-git/doc/guix.texi:20545 guix-git/doc/guix.texi:20551
  30696. #: guix-git/doc/guix.texi:20565 guix-git/doc/guix.texi:20572
  30697. #: guix-git/doc/guix.texi:20714 guix-git/doc/guix.texi:20773
  30698. #: guix-git/doc/guix.texi:20851 guix-git/doc/guix.texi:20865
  30699. #: guix-git/doc/guix.texi:22487 guix-git/doc/guix.texi:22496
  30700. #: guix-git/doc/guix.texi:23766 guix-git/doc/guix.texi:23969
  30701. #: guix-git/doc/guix.texi:23997 guix-git/doc/guix.texi:24027
  30702. #: guix-git/doc/guix.texi:24142 guix-git/doc/guix.texi:24155
  30703. #: guix-git/doc/guix.texi:24162 guix-git/doc/guix.texi:25912
  30704. #: guix-git/doc/guix.texi:26748 guix-git/doc/guix.texi:26756
  30705. #: guix-git/doc/guix.texi:27001 guix-git/doc/guix.texi:29149
  30706. #: guix-git/doc/guix.texi:29327 guix-git/doc/guix.texi:29526
  30707. #: guix-git/doc/guix.texi:31019 guix-git/doc/guix.texi:31079
  30708. #: guix-git/doc/guix.texi:31087 guix-git/doc/guix.texi:32799
  30709. #: guix-git/doc/guix.texi:32806 guix-git/doc/guix.texi:33148
  30710. #: guix-git/doc/guix.texi:33226 guix-git/doc/guix.texi:33320
  30711. #: guix-git/doc/guix.texi:33328 guix-git/doc/guix.texi:33364
  30712. #: guix-git/doc/guix.texi:33514 guix-git/doc/guix.texi:33565
  30713. #: guix-git/doc/guix.texi:33574
  30714. msgid "Defaults to @samp{()}."
  30715. msgstr ""
  30716. #. type: deftypevr
  30717. #: guix-git/doc/guix.texi:20547
  30718. #, no-wrap
  30719. msgid "{@code{location-access-controls} parameter} method-access-control-list method-access-controls"
  30720. msgstr ""
  30721. #. type: deftypevr
  30722. #: guix-git/doc/guix.texi:20549
  30723. msgid "Access controls for method-specific access to this path."
  30724. msgstr ""
  30725. #. type: deftypevr
  30726. #: guix-git/doc/guix.texi:20553
  30727. msgid "Available @code{method-access-controls} fields are:"
  30728. msgstr ""
  30729. #. type: deftypevr
  30730. #: guix-git/doc/guix.texi:20554
  30731. #, no-wrap
  30732. msgid "{@code{method-access-controls} parameter} boolean reverse?"
  30733. msgstr ""
  30734. #. type: deftypevr
  30735. #: guix-git/doc/guix.texi:20557
  30736. msgid "If @code{#t}, apply access controls to all methods except the listed methods. Otherwise apply to only the listed methods."
  30737. msgstr ""
  30738. #. type: deftypevr
  30739. #: guix-git/doc/guix.texi:20561
  30740. #, no-wrap
  30741. msgid "{@code{method-access-controls} parameter} method-list methods"
  30742. msgstr ""
  30743. #. type: deftypevr
  30744. #: guix-git/doc/guix.texi:20563
  30745. msgid "Methods to which this access control applies."
  30746. msgstr ""
  30747. #. type: deftypevr
  30748. #: guix-git/doc/guix.texi:20567
  30749. #, no-wrap
  30750. msgid "{@code{method-access-controls} parameter} access-control-list access-controls"
  30751. msgstr ""
  30752. #. type: deftypevr
  30753. #: guix-git/doc/guix.texi:20570
  30754. msgid "Access control directives, as a list of strings. Each string should be one directive, such as @samp{\"Order allow,deny\"}."
  30755. msgstr ""
  30756. #. type: deftypevr
  30757. #: guix-git/doc/guix.texi:20576
  30758. #, no-wrap
  30759. msgid "{@code{cups-configuration} parameter} non-negative-integer log-debug-history"
  30760. msgstr ""
  30761. #. type: deftypevr
  30762. #: guix-git/doc/guix.texi:20580
  30763. 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."
  30764. msgstr ""
  30765. #. type: deftypevr
  30766. #: guix-git/doc/guix.texi:20582 guix-git/doc/guix.texi:20603
  30767. #: guix-git/doc/guix.texi:20610 guix-git/doc/guix.texi:23526
  30768. #: guix-git/doc/guix.texi:25444 guix-git/doc/guix.texi:25459
  30769. #: guix-git/doc/guix.texi:29511
  30770. msgid "Defaults to @samp{100}."
  30771. msgstr ""
  30772. #. type: deftypevr
  30773. #: guix-git/doc/guix.texi:20584
  30774. #, no-wrap
  30775. msgid "{@code{cups-configuration} parameter} log-level log-level"
  30776. msgstr ""
  30777. #. type: deftypevr
  30778. #: guix-git/doc/guix.texi:20587
  30779. msgid "Specifies the level of logging for the ErrorLog file. The value @code{none} stops all logging while @code{debug2} logs everything."
  30780. msgstr ""
  30781. #. type: deftypevr
  30782. #: guix-git/doc/guix.texi:20589 guix-git/doc/guix.texi:25921
  30783. msgid "Defaults to @samp{info}."
  30784. msgstr ""
  30785. #. type: deftypevr
  30786. #: guix-git/doc/guix.texi:20591
  30787. #, no-wrap
  30788. msgid "{@code{cups-configuration} parameter} log-time-format log-time-format"
  30789. msgstr ""
  30790. #. type: deftypevr
  30791. #: guix-git/doc/guix.texi:20594
  30792. 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."
  30793. msgstr ""
  30794. #. type: deftypevr
  30795. #: guix-git/doc/guix.texi:20596
  30796. msgid "Defaults to @samp{standard}."
  30797. msgstr ""
  30798. #. type: deftypevr
  30799. #: guix-git/doc/guix.texi:20598
  30800. #, no-wrap
  30801. msgid "{@code{cups-configuration} parameter} non-negative-integer max-clients"
  30802. msgstr ""
  30803. #. type: deftypevr
  30804. #: guix-git/doc/guix.texi:20601
  30805. msgid "Specifies the maximum number of simultaneous clients that are allowed by the scheduler."
  30806. msgstr ""
  30807. #. type: deftypevr
  30808. #: guix-git/doc/guix.texi:20605
  30809. #, no-wrap
  30810. msgid "{@code{cups-configuration} parameter} non-negative-integer max-clients-per-host"
  30811. msgstr ""
  30812. #. type: deftypevr
  30813. #: guix-git/doc/guix.texi:20608
  30814. msgid "Specifies the maximum number of simultaneous clients that are allowed from a single address."
  30815. msgstr ""
  30816. #. type: deftypevr
  30817. #: guix-git/doc/guix.texi:20612
  30818. #, no-wrap
  30819. msgid "{@code{cups-configuration} parameter} non-negative-integer max-copies"
  30820. msgstr ""
  30821. #. type: deftypevr
  30822. #: guix-git/doc/guix.texi:20615
  30823. msgid "Specifies the maximum number of copies that a user can print of each job."
  30824. msgstr ""
  30825. #. type: deftypevr
  30826. #: guix-git/doc/guix.texi:20617
  30827. msgid "Defaults to @samp{9999}."
  30828. msgstr ""
  30829. #. type: deftypevr
  30830. #: guix-git/doc/guix.texi:20619
  30831. #, no-wrap
  30832. msgid "{@code{cups-configuration} parameter} non-negative-integer max-hold-time"
  30833. msgstr ""
  30834. #. type: deftypevr
  30835. #: guix-git/doc/guix.texi:20623
  30836. 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."
  30837. msgstr ""
  30838. #. type: deftypevr
  30839. #: guix-git/doc/guix.texi:20627
  30840. #, no-wrap
  30841. msgid "{@code{cups-configuration} parameter} non-negative-integer max-jobs"
  30842. msgstr ""
  30843. #. type: deftypevr
  30844. #: guix-git/doc/guix.texi:20630
  30845. msgid "Specifies the maximum number of simultaneous jobs that are allowed. Set to 0 to allow an unlimited number of jobs."
  30846. msgstr ""
  30847. #. type: deftypevr
  30848. #: guix-git/doc/guix.texi:20632
  30849. msgid "Defaults to @samp{500}."
  30850. msgstr ""
  30851. #. type: deftypevr
  30852. #: guix-git/doc/guix.texi:20634
  30853. #, no-wrap
  30854. msgid "{@code{cups-configuration} parameter} non-negative-integer max-jobs-per-printer"
  30855. msgstr ""
  30856. #. type: deftypevr
  30857. #: guix-git/doc/guix.texi:20637
  30858. msgid "Specifies the maximum number of simultaneous jobs that are allowed per printer. A value of 0 allows up to MaxJobs jobs per printer."
  30859. msgstr ""
  30860. #. type: deftypevr
  30861. #: guix-git/doc/guix.texi:20641
  30862. #, no-wrap
  30863. msgid "{@code{cups-configuration} parameter} non-negative-integer max-jobs-per-user"
  30864. msgstr ""
  30865. #. type: deftypevr
  30866. #: guix-git/doc/guix.texi:20644
  30867. msgid "Specifies the maximum number of simultaneous jobs that are allowed per user. A value of 0 allows up to MaxJobs jobs per user."
  30868. msgstr ""
  30869. #. type: deftypevr
  30870. #: guix-git/doc/guix.texi:20648
  30871. #, no-wrap
  30872. msgid "{@code{cups-configuration} parameter} non-negative-integer max-job-time"
  30873. msgstr ""
  30874. #. type: deftypevr
  30875. #: guix-git/doc/guix.texi:20651
  30876. 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."
  30877. msgstr ""
  30878. #. type: deftypevr
  30879. #: guix-git/doc/guix.texi:20653
  30880. msgid "Defaults to @samp{10800}."
  30881. msgstr ""
  30882. #. type: deftypevr
  30883. #: guix-git/doc/guix.texi:20655
  30884. #, no-wrap
  30885. msgid "{@code{cups-configuration} parameter} non-negative-integer max-log-size"
  30886. msgstr ""
  30887. #. type: deftypevr
  30888. #: guix-git/doc/guix.texi:20658
  30889. msgid "Specifies the maximum size of the log files before they are rotated, in bytes. The value 0 disables log rotation."
  30890. msgstr ""
  30891. #. type: deftypevr
  30892. #: guix-git/doc/guix.texi:20660
  30893. msgid "Defaults to @samp{1048576}."
  30894. msgstr ""
  30895. #. type: deftypevr
  30896. #: guix-git/doc/guix.texi:20662
  30897. #, no-wrap
  30898. msgid "{@code{cups-configuration} parameter} non-negative-integer multiple-operation-timeout"
  30899. msgstr ""
  30900. #. type: deftypevr
  30901. #: guix-git/doc/guix.texi:20665
  30902. msgid "Specifies the maximum amount of time to allow between files in a multiple file print job, in seconds."
  30903. msgstr ""
  30904. #. type: deftypevr
  30905. #: guix-git/doc/guix.texi:20667 guix-git/doc/guix.texi:20878
  30906. msgid "Defaults to @samp{900}."
  30907. msgstr ""
  30908. #. type: deftypevr
  30909. #: guix-git/doc/guix.texi:20669
  30910. #, no-wrap
  30911. msgid "{@code{cups-configuration} parameter} string page-log-format"
  30912. msgstr ""
  30913. #. type: deftypevr
  30914. #: guix-git/doc/guix.texi:20674
  30915. 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:"
  30916. msgstr ""
  30917. #. type: item
  30918. #: guix-git/doc/guix.texi:20676
  30919. #, no-wrap
  30920. msgid "%%"
  30921. msgstr ""
  30922. #. type: table
  30923. #: guix-git/doc/guix.texi:20678
  30924. msgid "insert a single percent character"
  30925. msgstr ""
  30926. #. type: item
  30927. #: guix-git/doc/guix.texi:20679
  30928. #, no-wrap
  30929. msgid "%@{name@}"
  30930. msgstr ""
  30931. #. type: table
  30932. #: guix-git/doc/guix.texi:20681
  30933. msgid "insert the value of the specified IPP attribute"
  30934. msgstr ""
  30935. #. type: item
  30936. #: guix-git/doc/guix.texi:20682
  30937. #, no-wrap
  30938. msgid "%C"
  30939. msgstr ""
  30940. #. type: table
  30941. #: guix-git/doc/guix.texi:20684
  30942. msgid "insert the number of copies for the current page"
  30943. msgstr ""
  30944. #. type: item
  30945. #: guix-git/doc/guix.texi:20685
  30946. #, no-wrap
  30947. msgid "%P"
  30948. msgstr ""
  30949. #. type: table
  30950. #: guix-git/doc/guix.texi:20687
  30951. msgid "insert the current page number"
  30952. msgstr ""
  30953. #. type: item
  30954. #: guix-git/doc/guix.texi:20688
  30955. #, no-wrap
  30956. msgid "%T"
  30957. msgstr ""
  30958. #. type: table
  30959. #: guix-git/doc/guix.texi:20690
  30960. msgid "insert the current date and time in common log format"
  30961. msgstr ""
  30962. #. type: item
  30963. #: guix-git/doc/guix.texi:20691
  30964. #, no-wrap
  30965. msgid "%j"
  30966. msgstr ""
  30967. #. type: table
  30968. #: guix-git/doc/guix.texi:20693
  30969. msgid "insert the job ID"
  30970. msgstr ""
  30971. #. type: item
  30972. #: guix-git/doc/guix.texi:20694 guix-git/doc/guix.texi:23125
  30973. #, no-wrap
  30974. msgid "%p"
  30975. msgstr ""
  30976. #. type: table
  30977. #: guix-git/doc/guix.texi:20696
  30978. msgid "insert the printer name"
  30979. msgstr ""
  30980. #. type: item
  30981. #: guix-git/doc/guix.texi:20697 guix-git/doc/guix.texi:23148
  30982. #, no-wrap
  30983. msgid "%u"
  30984. msgstr ""
  30985. #. type: table
  30986. #: guix-git/doc/guix.texi:20699
  30987. msgid "insert the username"
  30988. msgstr ""
  30989. #. type: deftypevr
  30990. #: guix-git/doc/guix.texi:20705
  30991. 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."
  30992. msgstr ""
  30993. #. type: deftypevr
  30994. #: guix-git/doc/guix.texi:20709
  30995. #, no-wrap
  30996. msgid "{@code{cups-configuration} parameter} environment-variables environment-variables"
  30997. msgstr ""
  30998. #. type: deftypevr
  30999. #: guix-git/doc/guix.texi:20712
  31000. msgid "Passes the specified environment variable(s) to child processes; a list of strings."
  31001. msgstr ""
  31002. #. type: deftypevr
  31003. #: guix-git/doc/guix.texi:20716
  31004. #, no-wrap
  31005. msgid "{@code{cups-configuration} parameter} policy-configuration-list policies"
  31006. msgstr ""
  31007. #. type: deftypevr
  31008. #: guix-git/doc/guix.texi:20718
  31009. msgid "Specifies named access control policies."
  31010. msgstr ""
  31011. #. type: deftypevr
  31012. #: guix-git/doc/guix.texi:20720
  31013. msgid "Available @code{policy-configuration} fields are:"
  31014. msgstr ""
  31015. #. type: deftypevr
  31016. #: guix-git/doc/guix.texi:20721
  31017. #, no-wrap
  31018. msgid "{@code{policy-configuration} parameter} string name"
  31019. msgstr ""
  31020. #. type: deftypevr
  31021. #: guix-git/doc/guix.texi:20723
  31022. msgid "Name of the policy."
  31023. msgstr ""
  31024. #. type: deftypevr
  31025. #: guix-git/doc/guix.texi:20725
  31026. #, no-wrap
  31027. msgid "{@code{policy-configuration} parameter} string job-private-access"
  31028. msgstr ""
  31029. #. type: deftypevr
  31030. #: guix-git/doc/guix.texi:20735
  31031. 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}."
  31032. msgstr ""
  31033. #. type: deftypevr
  31034. #: guix-git/doc/guix.texi:20737 guix-git/doc/guix.texi:20759
  31035. msgid "Defaults to @samp{\"@@OWNER @@SYSTEM\"}."
  31036. msgstr ""
  31037. #. type: deftypevr
  31038. #: guix-git/doc/guix.texi:20739
  31039. #, no-wrap
  31040. msgid "{@code{policy-configuration} parameter} string job-private-values"
  31041. msgstr ""
  31042. #. type: deftypevr
  31043. #: guix-git/doc/guix.texi:20742 guix-git/doc/guix.texi:20764
  31044. msgid "Specifies the list of job values to make private, or @code{all}, @code{default}, or @code{none}."
  31045. msgstr ""
  31046. #. type: deftypevr
  31047. #: guix-git/doc/guix.texi:20745
  31048. msgid "Defaults to @samp{\"job-name job-originating-host-name job-originating-user-name phone\"}."
  31049. msgstr ""
  31050. #. type: deftypevr
  31051. #: guix-git/doc/guix.texi:20747
  31052. #, no-wrap
  31053. msgid "{@code{policy-configuration} parameter} string subscription-private-access"
  31054. msgstr ""
  31055. #. type: deftypevr
  31056. #: guix-git/doc/guix.texi:20757
  31057. 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}."
  31058. msgstr ""
  31059. #. type: deftypevr
  31060. #: guix-git/doc/guix.texi:20761
  31061. #, no-wrap
  31062. msgid "{@code{policy-configuration} parameter} string subscription-private-values"
  31063. msgstr ""
  31064. #. type: deftypevr
  31065. #: guix-git/doc/guix.texi:20767
  31066. msgid "Defaults to @samp{\"notify-events notify-pull-method notify-recipient-uri notify-subscriber-user-name notify-user-data\"}."
  31067. msgstr ""
  31068. #. type: deftypevr
  31069. #: guix-git/doc/guix.texi:20769
  31070. #, no-wrap
  31071. msgid "{@code{policy-configuration} parameter} operation-access-control-list access-controls"
  31072. msgstr ""
  31073. #. type: deftypevr
  31074. #: guix-git/doc/guix.texi:20771
  31075. msgid "Access control by IPP operation."
  31076. msgstr ""
  31077. #. type: deftypevr
  31078. #: guix-git/doc/guix.texi:20776
  31079. #, no-wrap
  31080. msgid "{@code{cups-configuration} parameter} boolean-or-non-negative-integer preserve-job-files"
  31081. msgstr ""
  31082. #. type: deftypevr
  31083. #: guix-git/doc/guix.texi:20781
  31084. 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."
  31085. msgstr ""
  31086. #. type: deftypevr
  31087. #: guix-git/doc/guix.texi:20783
  31088. msgid "Defaults to @samp{86400}."
  31089. msgstr ""
  31090. #. type: deftypevr
  31091. #: guix-git/doc/guix.texi:20785
  31092. #, no-wrap
  31093. msgid "{@code{cups-configuration} parameter} boolean-or-non-negative-integer preserve-job-history"
  31094. msgstr ""
  31095. #. type: deftypevr
  31096. #: guix-git/doc/guix.texi:20790
  31097. 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."
  31098. msgstr ""
  31099. #. type: deftypevr
  31100. #: guix-git/doc/guix.texi:20794
  31101. #, no-wrap
  31102. msgid "{@code{cups-configuration} parameter} non-negative-integer reload-timeout"
  31103. msgstr ""
  31104. #. type: deftypevr
  31105. #: guix-git/doc/guix.texi:20797
  31106. msgid "Specifies the amount of time to wait for job completion before restarting the scheduler."
  31107. msgstr ""
  31108. #. type: deftypevr
  31109. #: guix-git/doc/guix.texi:20801
  31110. #, no-wrap
  31111. msgid "{@code{cups-configuration} parameter} string rip-cache"
  31112. msgstr ""
  31113. #. type: deftypevr
  31114. #: guix-git/doc/guix.texi:20804
  31115. msgid "Specifies the maximum amount of memory to use when converting documents into bitmaps for a printer."
  31116. msgstr ""
  31117. #. type: deftypevr
  31118. #: guix-git/doc/guix.texi:20806
  31119. msgid "Defaults to @samp{\"128m\"}."
  31120. msgstr ""
  31121. #. type: deftypevr
  31122. #: guix-git/doc/guix.texi:20808
  31123. #, no-wrap
  31124. msgid "{@code{cups-configuration} parameter} string server-admin"
  31125. msgstr ""
  31126. #. type: deftypevr
  31127. #: guix-git/doc/guix.texi:20810
  31128. msgid "Specifies the email address of the server administrator."
  31129. msgstr ""
  31130. #. type: deftypevr
  31131. #: guix-git/doc/guix.texi:20812
  31132. msgid "Defaults to @samp{\"root@@localhost.localdomain\"}."
  31133. msgstr ""
  31134. #. type: deftypevr
  31135. #: guix-git/doc/guix.texi:20814
  31136. #, no-wrap
  31137. msgid "{@code{cups-configuration} parameter} host-name-list-or-* server-alias"
  31138. msgstr ""
  31139. #. type: deftypevr
  31140. #: guix-git/doc/guix.texi:20822
  31141. 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{*}."
  31142. msgstr ""
  31143. #. type: deftypevr
  31144. #: guix-git/doc/guix.texi:20824
  31145. msgid "Defaults to @samp{*}."
  31146. msgstr ""
  31147. #. type: deftypevr
  31148. #: guix-git/doc/guix.texi:20826
  31149. #, no-wrap
  31150. msgid "{@code{cups-configuration} parameter} string server-name"
  31151. msgstr ""
  31152. #. type: deftypevr
  31153. #: guix-git/doc/guix.texi:20828
  31154. msgid "Specifies the fully-qualified host name of the server."
  31155. msgstr ""
  31156. #. type: deftypevr
  31157. #: guix-git/doc/guix.texi:20830
  31158. msgid "Defaults to @samp{\"localhost\"}."
  31159. msgstr ""
  31160. #. type: deftypevr
  31161. #: guix-git/doc/guix.texi:20832
  31162. #, no-wrap
  31163. msgid "{@code{cups-configuration} parameter} server-tokens server-tokens"
  31164. msgstr ""
  31165. #. type: deftypevr
  31166. #: guix-git/doc/guix.texi:20840
  31167. 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}."
  31168. msgstr ""
  31169. #. type: deftypevr
  31170. #: guix-git/doc/guix.texi:20842
  31171. msgid "Defaults to @samp{Minimal}."
  31172. msgstr ""
  31173. #. type: deftypevr
  31174. #: guix-git/doc/guix.texi:20844
  31175. #, no-wrap
  31176. msgid "{@code{cups-configuration} parameter} multiline-string-list ssl-listen"
  31177. msgstr ""
  31178. #. type: deftypevr
  31179. #: guix-git/doc/guix.texi:20849
  31180. 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."
  31181. msgstr ""
  31182. #. type: deftypevr
  31183. #: guix-git/doc/guix.texi:20853
  31184. #, no-wrap
  31185. msgid "{@code{cups-configuration} parameter} ssl-options ssl-options"
  31186. msgstr ""
  31187. #. type: deftypevr
  31188. #: guix-git/doc/guix.texi:20863
  31189. 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."
  31190. msgstr ""
  31191. #. type: deftypevr
  31192. #: guix-git/doc/guix.texi:20867
  31193. #, no-wrap
  31194. msgid "{@code{cups-configuration} parameter} boolean strict-conformance?"
  31195. msgstr ""
  31196. #. type: deftypevr
  31197. #: guix-git/doc/guix.texi:20870
  31198. msgid "Specifies whether the scheduler requires clients to strictly adhere to the IPP specifications."
  31199. msgstr ""
  31200. #. type: deftypevr
  31201. #: guix-git/doc/guix.texi:20874
  31202. #, no-wrap
  31203. msgid "{@code{cups-configuration} parameter} non-negative-integer timeout"
  31204. msgstr ""
  31205. #. type: deftypevr
  31206. #: guix-git/doc/guix.texi:20876
  31207. msgid "Specifies the HTTP request timeout, in seconds."
  31208. msgstr ""
  31209. #. type: deftypevr
  31210. #: guix-git/doc/guix.texi:20881
  31211. #, no-wrap
  31212. msgid "{@code{cups-configuration} parameter} boolean web-interface?"
  31213. msgstr ""
  31214. #. type: deftypevr
  31215. #: guix-git/doc/guix.texi:20883
  31216. msgid "Specifies whether the web interface is enabled."
  31217. msgstr ""
  31218. #. type: Plain text
  31219. #: guix-git/doc/guix.texi:20893
  31220. 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}."
  31221. msgstr ""
  31222. #. type: Plain text
  31223. #: guix-git/doc/guix.texi:20895
  31224. msgid "Available @code{opaque-cups-configuration} fields are:"
  31225. msgstr ""
  31226. #. type: deftypevr
  31227. #: guix-git/doc/guix.texi:20896
  31228. #, no-wrap
  31229. msgid "{@code{opaque-cups-configuration} parameter} package cups"
  31230. msgstr ""
  31231. #. type: deftypevr
  31232. #: guix-git/doc/guix.texi:20900
  31233. #, no-wrap
  31234. msgid "{@code{opaque-cups-configuration} parameter} string cupsd.conf"
  31235. msgstr ""
  31236. #. type: deftypevr
  31237. #: guix-git/doc/guix.texi:20902
  31238. msgid "The contents of the @code{cupsd.conf}, as a string."
  31239. msgstr ""
  31240. #. type: deftypevr
  31241. #: guix-git/doc/guix.texi:20904
  31242. #, no-wrap
  31243. msgid "{@code{opaque-cups-configuration} parameter} string cups-files.conf"
  31244. msgstr ""
  31245. #. type: deftypevr
  31246. #: guix-git/doc/guix.texi:20906
  31247. msgid "The contents of the @code{cups-files.conf} file, as a string."
  31248. msgstr ""
  31249. #. type: Plain text
  31250. #: guix-git/doc/guix.texi:20911
  31251. 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:"
  31252. msgstr ""
  31253. #. type: lisp
  31254. #: guix-git/doc/guix.texi:20917
  31255. #, no-wrap
  31256. msgid ""
  31257. "(service cups-service-type\n"
  31258. " (opaque-cups-configuration\n"
  31259. " (cupsd.conf cupsd.conf)\n"
  31260. " (cups-files.conf cups-files.conf)))\n"
  31261. msgstr ""
  31262. #. type: Plain text
  31263. #: guix-git/doc/guix.texi:20928
  31264. 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."
  31265. msgstr ""
  31266. #. type: Plain text
  31267. #: guix-git/doc/guix.texi:20932
  31268. 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:"
  31269. msgstr ""
  31270. #. type: defvr
  31271. #: guix-git/doc/guix.texi:20933
  31272. #, no-wrap
  31273. msgid "{Scheme Variable} %desktop-services"
  31274. msgstr ""
  31275. #. type: defvr
  31276. #: guix-git/doc/guix.texi:20936
  31277. msgid "This is a list of services that builds upon @code{%base-services} and adds or adjusts services for a typical ``desktop'' setup."
  31278. msgstr ""
  31279. #. type: defvr
  31280. #: guix-git/doc/guix.texi:20947
  31281. 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})."
  31282. msgstr ""
  31283. #. type: Plain text
  31284. #: guix-git/doc/guix.texi:20952
  31285. 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}})."
  31286. msgstr ""
  31287. #. type: Plain text
  31288. #: guix-git/doc/guix.texi:20975
  31289. 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."
  31290. msgstr ""
  31291. #. type: Plain text
  31292. #: guix-git/doc/guix.texi:20985
  31293. msgid "The desktop environments in Guix use the Xorg display server by default. If you'd like to use the newer display server protocol called Wayland, you need to enable Wayland support in GDM (@pxref{wayland-gdm}). Another solution is to use the @code{sddm-service} instead of GDM as the graphical login manager. You should then select the ``GNOME (Wayland)'' session in SDDM@. Alternatively you can also try starting GNOME on Wayland manually from a TTY with the command ``XDG_SESSION_TYPE=wayland exec dbus-run-session gnome-session``. Currently only GNOME has support for Wayland."
  31294. msgstr ""
  31295. #. type: defvr
  31296. #: guix-git/doc/guix.texi:20986
  31297. #, no-wrap
  31298. msgid "{Scheme Variable} gnome-desktop-service-type"
  31299. msgstr ""
  31300. #. type: defvr
  31301. #: guix-git/doc/guix.texi:20990
  31302. 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)."
  31303. msgstr ""
  31304. #. type: defvr
  31305. #: guix-git/doc/guix.texi:20993
  31306. msgid "This service adds the @code{gnome} package to the system profile, and extends polkit with the actions from @code{gnome-settings-daemon}."
  31307. msgstr ""
  31308. #. type: deftp
  31309. #: guix-git/doc/guix.texi:20995
  31310. #, no-wrap
  31311. msgid "{Data Type} gnome-desktop-configuration"
  31312. msgstr ""
  31313. #. type: deftp
  31314. #: guix-git/doc/guix.texi:20997
  31315. msgid "Configuration record for the GNOME desktop environment."
  31316. msgstr ""
  31317. #. type: item
  31318. #: guix-git/doc/guix.texi:20999
  31319. #, no-wrap
  31320. msgid "@code{gnome} (default: @code{gnome})"
  31321. msgstr "@code{gnome}(默认值:@code{gnome})"
  31322. #. type: table
  31323. #: guix-git/doc/guix.texi:21001
  31324. msgid "The GNOME package to use."
  31325. msgstr ""
  31326. #. type: defvr
  31327. #: guix-git/doc/guix.texi:21004
  31328. #, no-wrap
  31329. msgid "{Scheme Variable} xfce-desktop-service-type"
  31330. msgstr ""
  31331. #. type: defvr
  31332. #: guix-git/doc/guix.texi:21008
  31333. 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)."
  31334. msgstr ""
  31335. #. type: defvr
  31336. #: guix-git/doc/guix.texi:21013
  31337. 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."
  31338. msgstr ""
  31339. #. type: defvr
  31340. #: guix-git/doc/guix.texi:21019
  31341. 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}."
  31342. msgstr ""
  31343. #. type: deftp
  31344. #: guix-git/doc/guix.texi:21021
  31345. #, no-wrap
  31346. msgid "{Data Type} xfce-desktop-configuration"
  31347. msgstr ""
  31348. #. type: deftp
  31349. #: guix-git/doc/guix.texi:21023
  31350. msgid "Configuration record for the Xfce desktop environment."
  31351. msgstr ""
  31352. #. type: item
  31353. #: guix-git/doc/guix.texi:21025
  31354. #, no-wrap
  31355. msgid "@code{xfce} (default: @code{xfce})"
  31356. msgstr "@code{xfce}(默认值:@code{xfce})"
  31357. #. type: table
  31358. #: guix-git/doc/guix.texi:21027
  31359. msgid "The Xfce package to use."
  31360. msgstr ""
  31361. #. type: deffn
  31362. #: guix-git/doc/guix.texi:21030
  31363. #, no-wrap
  31364. msgid "{Scheme Variable} mate-desktop-service-type"
  31365. msgstr ""
  31366. #. type: deffn
  31367. #: guix-git/doc/guix.texi:21034
  31368. 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)."
  31369. msgstr ""
  31370. #. type: deffn
  31371. #: guix-git/doc/guix.texi:21038
  31372. msgid "This service adds the @code{mate} package to the system profile, and extends polkit with the actions from @code{mate-settings-daemon}."
  31373. msgstr ""
  31374. #. type: deftp
  31375. #: guix-git/doc/guix.texi:21040
  31376. #, no-wrap
  31377. msgid "{Data Type} mate-desktop-configuration"
  31378. msgstr ""
  31379. #. type: deftp
  31380. #: guix-git/doc/guix.texi:21042
  31381. msgid "Configuration record for the MATE desktop environment."
  31382. msgstr ""
  31383. #. type: item
  31384. #: guix-git/doc/guix.texi:21044
  31385. #, no-wrap
  31386. msgid "@code{mate} (default: @code{mate})"
  31387. msgstr "@code{mate}(默认值:@code{mate})"
  31388. #. type: table
  31389. #: guix-git/doc/guix.texi:21046
  31390. msgid "The MATE package to use."
  31391. msgstr ""
  31392. #. type: deffn
  31393. #: guix-git/doc/guix.texi:21049
  31394. #, no-wrap
  31395. msgid "{Scheme Variable} lxqt-desktop-service-type"
  31396. msgstr ""
  31397. #. type: deffn
  31398. #: guix-git/doc/guix.texi:21053
  31399. 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)."
  31400. msgstr ""
  31401. #. type: deffn
  31402. #: guix-git/doc/guix.texi:21056
  31403. msgid "This service adds the @code{lxqt} package to the system profile."
  31404. msgstr ""
  31405. #. type: deftp
  31406. #: guix-git/doc/guix.texi:21058
  31407. #, no-wrap
  31408. msgid "{Data Type} lxqt-desktop-configuration"
  31409. msgstr ""
  31410. #. type: deftp
  31411. #: guix-git/doc/guix.texi:21060
  31412. msgid "Configuration record for the LXQt desktop environment."
  31413. msgstr ""
  31414. #. type: item
  31415. #: guix-git/doc/guix.texi:21062
  31416. #, fuzzy, no-wrap
  31417. msgid "@code{lxqt} (default: @code{lxqt})"
  31418. msgstr "@code{xfce}(默认值:@code{xfce})"
  31419. #. type: table
  31420. #: guix-git/doc/guix.texi:21064
  31421. #, fuzzy
  31422. msgid "The LXQT package to use."
  31423. msgstr "软件包数据类型。"
  31424. #. type: deffn
  31425. #: guix-git/doc/guix.texi:21067
  31426. #, no-wrap
  31427. msgid "{Scheme Variable} enlightenment-desktop-service-type"
  31428. msgstr ""
  31429. #. type: deffn
  31430. #: guix-git/doc/guix.texi:21070
  31431. msgid "Return a service that adds the @code{enlightenment} package to the system profile, and extends dbus with actions from @code{efl}."
  31432. msgstr ""
  31433. #. type: deftp
  31434. #: guix-git/doc/guix.texi:21072
  31435. #, no-wrap
  31436. msgid "{Data Type} enlightenment-desktop-service-configuration"
  31437. msgstr ""
  31438. #. type: item
  31439. #: guix-git/doc/guix.texi:21074
  31440. #, no-wrap
  31441. msgid "@code{enlightenment} (default: @code{enlightenment})"
  31442. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  31443. #. type: table
  31444. #: guix-git/doc/guix.texi:21076
  31445. msgid "The enlightenment package to use."
  31446. msgstr ""
  31447. #. type: Plain text
  31448. #: guix-git/doc/guix.texi:21084
  31449. 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}:"
  31450. msgstr ""
  31451. #. type: lisp
  31452. #: guix-git/doc/guix.texi:21095
  31453. #, no-wrap
  31454. msgid ""
  31455. "(use-modules (gnu))\n"
  31456. "(use-service-modules desktop)\n"
  31457. "(operating-system\n"
  31458. " ...\n"
  31459. " ;; cons* adds items to the list given as its last argument.\n"
  31460. " (services (cons* (service gnome-desktop-service-type)\n"
  31461. " (service xfce-desktop-service)\n"
  31462. " %desktop-services))\n"
  31463. " ...)\n"
  31464. msgstr ""
  31465. #. type: Plain text
  31466. #: guix-git/doc/guix.texi:21099
  31467. msgid "These desktop environments will then be available as options in the graphical login window."
  31468. msgstr ""
  31469. #. type: Plain text
  31470. #: guix-git/doc/guix.texi:21103
  31471. 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."
  31472. msgstr ""
  31473. #. type: deffn
  31474. #: guix-git/doc/guix.texi:21104
  31475. #, no-wrap
  31476. msgid "{Scheme Procedure} dbus-service [#:dbus @var{dbus}] [#:services '()]"
  31477. msgstr ""
  31478. #. type: deffn
  31479. #: guix-git/doc/guix.texi:21107
  31480. msgid "Return a service that runs the ``system bus'', using @var{dbus}, with support for @var{services}."
  31481. msgstr ""
  31482. #. type: deffn
  31483. #: guix-git/doc/guix.texi:21111
  31484. 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."
  31485. msgstr ""
  31486. #. type: deffn
  31487. #: guix-git/doc/guix.texi:21116
  31488. 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)}."
  31489. msgstr ""
  31490. #. type: deffn
  31491. #: guix-git/doc/guix.texi:21118
  31492. #, no-wrap
  31493. msgid "{Scheme Procedure} elogind-service [#:config @var{config}]"
  31494. msgstr ""
  31495. #. type: deffn
  31496. #: guix-git/doc/guix.texi:21124
  31497. 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."
  31498. msgstr ""
  31499. #. type: deffn
  31500. #: guix-git/doc/guix.texi:21128
  31501. 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."
  31502. msgstr ""
  31503. #. type: deffn
  31504. #: guix-git/doc/guix.texi:21133
  31505. 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:"
  31506. msgstr ""
  31507. #. type: item
  31508. #: guix-git/doc/guix.texi:21135
  31509. #, no-wrap
  31510. msgid "kill-user-processes?"
  31511. msgstr ""
  31512. #. type: code{#1}
  31513. #: guix-git/doc/guix.texi:21137 guix-git/doc/guix.texi:21157
  31514. #: guix-git/doc/guix.texi:21159 guix-git/doc/guix.texi:21161
  31515. #: guix-git/doc/guix.texi:21173 guix-git/doc/guix.texi:21589
  31516. msgid "#f"
  31517. msgstr ""
  31518. #. type: item
  31519. #: guix-git/doc/guix.texi:21137
  31520. #, no-wrap
  31521. msgid "kill-only-users"
  31522. msgstr ""
  31523. #. type: code{#1}
  31524. #: guix-git/doc/guix.texi:21139 guix-git/doc/guix.texi:21179
  31525. msgid "()"
  31526. msgstr ""
  31527. #. type: item
  31528. #: guix-git/doc/guix.texi:21139
  31529. #, no-wrap
  31530. msgid "kill-exclude-users"
  31531. msgstr ""
  31532. #. type: code{#1}
  31533. #: guix-git/doc/guix.texi:21141
  31534. msgid "(\"root\")"
  31535. msgstr ""
  31536. #. type: item
  31537. #: guix-git/doc/guix.texi:21141
  31538. #, no-wrap
  31539. msgid "inhibit-delay-max-seconds"
  31540. msgstr ""
  31541. #. type: code{#1}
  31542. #: guix-git/doc/guix.texi:21143
  31543. msgid "5"
  31544. msgstr ""
  31545. #. type: item
  31546. #: guix-git/doc/guix.texi:21143
  31547. #, no-wrap
  31548. msgid "handle-power-key"
  31549. msgstr ""
  31550. #. type: code{#1}
  31551. #: guix-git/doc/guix.texi:21145
  31552. msgid "poweroff"
  31553. msgstr ""
  31554. #. type: item
  31555. #: guix-git/doc/guix.texi:21145
  31556. #, no-wrap
  31557. msgid "handle-suspend-key"
  31558. msgstr ""
  31559. #. type: code{#1}
  31560. #: guix-git/doc/guix.texi:21147 guix-git/doc/guix.texi:21151
  31561. msgid "suspend"
  31562. msgstr ""
  31563. #. type: item
  31564. #: guix-git/doc/guix.texi:21147
  31565. #, no-wrap
  31566. msgid "handle-hibernate-key"
  31567. msgstr ""
  31568. #. type: code{#1}
  31569. #: guix-git/doc/guix.texi:21149
  31570. msgid "hibernate"
  31571. msgstr ""
  31572. #. type: item
  31573. #: guix-git/doc/guix.texi:21149
  31574. #, no-wrap
  31575. msgid "handle-lid-switch"
  31576. msgstr ""
  31577. #. type: item
  31578. #: guix-git/doc/guix.texi:21151
  31579. #, no-wrap
  31580. msgid "handle-lid-switch-docked"
  31581. msgstr ""
  31582. #. type: code{#1}
  31583. #: guix-git/doc/guix.texi:21153 guix-git/doc/guix.texi:21155
  31584. #: guix-git/doc/guix.texi:21167
  31585. msgid "ignore"
  31586. msgstr ""
  31587. #. type: item
  31588. #: guix-git/doc/guix.texi:21153
  31589. #, no-wrap
  31590. msgid "handle-lid-switch-external-power"
  31591. msgstr ""
  31592. #. type: item
  31593. #: guix-git/doc/guix.texi:21155
  31594. #, no-wrap
  31595. msgid "power-key-ignore-inhibited?"
  31596. msgstr ""
  31597. #. type: item
  31598. #: guix-git/doc/guix.texi:21157
  31599. #, no-wrap
  31600. msgid "suspend-key-ignore-inhibited?"
  31601. msgstr ""
  31602. #. type: item
  31603. #: guix-git/doc/guix.texi:21159
  31604. #, no-wrap
  31605. msgid "hibernate-key-ignore-inhibited?"
  31606. msgstr ""
  31607. #. type: item
  31608. #: guix-git/doc/guix.texi:21161
  31609. #, no-wrap
  31610. msgid "lid-switch-ignore-inhibited?"
  31611. msgstr ""
  31612. #. type: code{#1}
  31613. #: guix-git/doc/guix.texi:21163 guix-git/doc/guix.texi:21175
  31614. #: guix-git/doc/guix.texi:21586
  31615. msgid "#t"
  31616. msgstr ""
  31617. #. type: item
  31618. #: guix-git/doc/guix.texi:21163
  31619. #, no-wrap
  31620. msgid "holdoff-timeout-seconds"
  31621. msgstr ""
  31622. #. type: code{#1}
  31623. #: guix-git/doc/guix.texi:21165
  31624. msgid "30"
  31625. msgstr ""
  31626. #. type: item
  31627. #: guix-git/doc/guix.texi:21165
  31628. #, no-wrap
  31629. msgid "idle-action"
  31630. msgstr ""
  31631. #. type: item
  31632. #: guix-git/doc/guix.texi:21167
  31633. #, no-wrap
  31634. msgid "idle-action-seconds"
  31635. msgstr ""
  31636. #. type: code{#1}
  31637. #: guix-git/doc/guix.texi:21169
  31638. msgid "(* 30 60)"
  31639. msgstr ""
  31640. #. type: item
  31641. #: guix-git/doc/guix.texi:21169
  31642. #, no-wrap
  31643. msgid "runtime-directory-size-percent"
  31644. msgstr ""
  31645. #. type: code{#1}
  31646. #: guix-git/doc/guix.texi:21171
  31647. msgid "10"
  31648. msgstr ""
  31649. #. type: item
  31650. #: guix-git/doc/guix.texi:21171
  31651. #, no-wrap
  31652. msgid "runtime-directory-size"
  31653. msgstr ""
  31654. #. type: item
  31655. #: guix-git/doc/guix.texi:21173
  31656. #, no-wrap
  31657. msgid "remove-ipc?"
  31658. msgstr ""
  31659. #. type: item
  31660. #: guix-git/doc/guix.texi:21175
  31661. #, no-wrap
  31662. msgid "suspend-state"
  31663. msgstr ""
  31664. #. type: code{#1}
  31665. #: guix-git/doc/guix.texi:21177
  31666. msgid "(\"mem\" \"standby\" \"freeze\")"
  31667. msgstr ""
  31668. #. type: item
  31669. #: guix-git/doc/guix.texi:21177
  31670. #, no-wrap
  31671. msgid "suspend-mode"
  31672. msgstr ""
  31673. #. type: item
  31674. #: guix-git/doc/guix.texi:21179
  31675. #, no-wrap
  31676. msgid "hibernate-state"
  31677. msgstr ""
  31678. #. type: code{#1}
  31679. #: guix-git/doc/guix.texi:21181 guix-git/doc/guix.texi:21185
  31680. msgid "(\"disk\")"
  31681. msgstr ""
  31682. #. type: item
  31683. #: guix-git/doc/guix.texi:21181
  31684. #, no-wrap
  31685. msgid "hibernate-mode"
  31686. msgstr ""
  31687. #. type: code{#1}
  31688. #: guix-git/doc/guix.texi:21183
  31689. msgid "(\"platform\" \"shutdown\")"
  31690. msgstr ""
  31691. #. type: item
  31692. #: guix-git/doc/guix.texi:21183
  31693. #, no-wrap
  31694. msgid "hybrid-sleep-state"
  31695. msgstr ""
  31696. #. type: item
  31697. #: guix-git/doc/guix.texi:21185
  31698. #, no-wrap
  31699. msgid "hybrid-sleep-mode"
  31700. msgstr ""
  31701. #. type: code{#1}
  31702. #: guix-git/doc/guix.texi:21187
  31703. msgid "(\"suspend\" \"platform\" \"shutdown\")"
  31704. msgstr ""
  31705. #. type: deffn
  31706. #: guix-git/doc/guix.texi:21190
  31707. #, no-wrap
  31708. msgid "{Scheme Procedure} accountsservice-service @"
  31709. msgstr ""
  31710. #. type: deffn
  31711. #: guix-git/doc/guix.texi:21198
  31712. 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."
  31713. msgstr ""
  31714. #. type: deffn
  31715. #: guix-git/doc/guix.texi:21201
  31716. msgid "The @var{accountsservice} keyword argument is the @code{accountsservice} package to expose as a service."
  31717. msgstr ""
  31718. #. type: deffn
  31719. #: guix-git/doc/guix.texi:21203
  31720. #, no-wrap
  31721. msgid "{Scheme Procedure} polkit-service @"
  31722. msgstr ""
  31723. #. type: deffn
  31724. #: guix-git/doc/guix.texi:21212
  31725. 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."
  31726. msgstr ""
  31727. #. type: defvr
  31728. #: guix-git/doc/guix.texi:21214
  31729. #, no-wrap
  31730. msgid "{Scheme Variable} polkit-wheel-service"
  31731. msgstr ""
  31732. #. type: defvr
  31733. #: guix-git/doc/guix.texi:21219
  31734. 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}."
  31735. msgstr ""
  31736. #. type: defvr
  31737. #: guix-git/doc/guix.texi:21221
  31738. #, no-wrap
  31739. msgid "{Scheme Variable} upower-service-type"
  31740. msgstr ""
  31741. #. type: defvr
  31742. #: guix-git/doc/guix.texi:21225
  31743. 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."
  31744. msgstr ""
  31745. #. type: defvr
  31746. #: guix-git/doc/guix.texi:21228
  31747. msgid "It implements the @code{org.freedesktop.UPower} D-Bus interface, and is notably used by GNOME."
  31748. msgstr ""
  31749. #. type: deftp
  31750. #: guix-git/doc/guix.texi:21230
  31751. #, no-wrap
  31752. msgid "{Data Type} upower-configuration"
  31753. msgstr ""
  31754. #. type: deftp
  31755. #: guix-git/doc/guix.texi:21232
  31756. msgid "Data type representation the configuration for UPower."
  31757. msgstr ""
  31758. #. type: item
  31759. #: guix-git/doc/guix.texi:21235
  31760. #, no-wrap
  31761. msgid "@code{upower} (default: @var{upower})"
  31762. msgstr ""
  31763. #. type: table
  31764. #: guix-git/doc/guix.texi:21237
  31765. msgid "Package to use for @code{upower}."
  31766. msgstr ""
  31767. #. type: item
  31768. #: guix-git/doc/guix.texi:21238
  31769. #, no-wrap
  31770. msgid "@code{watts-up-pro?} (default: @code{#f})"
  31771. msgstr ""
  31772. #. type: table
  31773. #: guix-git/doc/guix.texi:21240
  31774. msgid "Enable the Watts Up Pro device."
  31775. msgstr ""
  31776. #. type: item
  31777. #: guix-git/doc/guix.texi:21241
  31778. #, no-wrap
  31779. msgid "@code{poll-batteries?} (default: @code{#t})"
  31780. msgstr ""
  31781. #. type: table
  31782. #: guix-git/doc/guix.texi:21243
  31783. msgid "Enable polling the kernel for battery level changes."
  31784. msgstr ""
  31785. #. type: item
  31786. #: guix-git/doc/guix.texi:21244
  31787. #, no-wrap
  31788. msgid "@code{ignore-lid?} (default: @code{#f})"
  31789. msgstr ""
  31790. #. type: table
  31791. #: guix-git/doc/guix.texi:21246
  31792. msgid "Ignore the lid state, this can be useful if it's incorrect on a device."
  31793. msgstr ""
  31794. #. type: item
  31795. #: guix-git/doc/guix.texi:21247
  31796. #, no-wrap
  31797. msgid "@code{use-percentage-for-policy?} (default: @code{#f})"
  31798. msgstr ""
  31799. #. type: table
  31800. #: guix-git/doc/guix.texi:21250
  31801. 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."
  31802. msgstr ""
  31803. #. type: item
  31804. #: guix-git/doc/guix.texi:21251
  31805. #, no-wrap
  31806. msgid "@code{percentage-low} (default: @code{10})"
  31807. msgstr ""
  31808. #. type: table
  31809. #: guix-git/doc/guix.texi:21254
  31810. msgid "When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which the battery is considered low."
  31811. msgstr ""
  31812. #. type: item
  31813. #: guix-git/doc/guix.texi:21255
  31814. #, no-wrap
  31815. msgid "@code{percentage-critical} (default: @code{3})"
  31816. msgstr ""
  31817. #. type: table
  31818. #: guix-git/doc/guix.texi:21258
  31819. msgid "When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which the battery is considered critical."
  31820. msgstr ""
  31821. #. type: item
  31822. #: guix-git/doc/guix.texi:21259
  31823. #, no-wrap
  31824. msgid "@code{percentage-action} (default: @code{2})"
  31825. msgstr ""
  31826. #. type: table
  31827. #: guix-git/doc/guix.texi:21262
  31828. msgid "When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which action will be taken."
  31829. msgstr ""
  31830. #. type: item
  31831. #: guix-git/doc/guix.texi:21263
  31832. #, no-wrap
  31833. msgid "@code{time-low} (default: @code{1200})"
  31834. msgstr ""
  31835. #. type: table
  31836. #: guix-git/doc/guix.texi:21266
  31837. msgid "When @code{use-time-for-policy?} is @code{#f}, this sets the time remaining in seconds at which the battery is considered low."
  31838. msgstr ""
  31839. #. type: item
  31840. #: guix-git/doc/guix.texi:21267
  31841. #, no-wrap
  31842. msgid "@code{time-critical} (default: @code{300})"
  31843. msgstr ""
  31844. #. type: table
  31845. #: guix-git/doc/guix.texi:21270
  31846. msgid "When @code{use-time-for-policy?} is @code{#f}, this sets the time remaining in seconds at which the battery is considered critical."
  31847. msgstr ""
  31848. #. type: item
  31849. #: guix-git/doc/guix.texi:21271
  31850. #, no-wrap
  31851. msgid "@code{time-action} (default: @code{120})"
  31852. msgstr ""
  31853. #. type: table
  31854. #: guix-git/doc/guix.texi:21274
  31855. msgid "When @code{use-time-for-policy?} is @code{#f}, this sets the time remaining in seconds at which action will be taken."
  31856. msgstr ""
  31857. #. type: item
  31858. #: guix-git/doc/guix.texi:21275
  31859. #, no-wrap
  31860. msgid "@code{critical-power-action} (default: @code{'hybrid-sleep})"
  31861. msgstr ""
  31862. #. type: table
  31863. #: guix-git/doc/guix.texi:21278
  31864. msgid "The action taken when @code{percentage-action} or @code{time-action} is reached (depending on the configuration of @code{use-percentage-for-policy?})."
  31865. msgstr ""
  31866. #. type: table
  31867. #: guix-git/doc/guix.texi:21280 guix-git/doc/guix.texi:21447
  31868. #: guix-git/doc/guix.texi:21479 guix-git/doc/guix.texi:21499
  31869. #: guix-git/doc/guix.texi:21720 guix-git/doc/guix.texi:21738
  31870. #: guix-git/doc/guix.texi:21769 guix-git/doc/guix.texi:21782
  31871. #: guix-git/doc/guix.texi:21832
  31872. msgid "Possible values are:"
  31873. msgstr ""
  31874. #. type: code{#1}
  31875. #: guix-git/doc/guix.texi:21284
  31876. msgid "'power-off"
  31877. msgstr ""
  31878. #. type: code{#1}
  31879. #: guix-git/doc/guix.texi:21287
  31880. msgid "'hibernate"
  31881. msgstr ""
  31882. #. type: itemize
  31883. #: guix-git/doc/guix.texi:21290
  31884. msgid "@code{'hybrid-sleep}."
  31885. msgstr ""
  31886. #. type: deffn
  31887. #: guix-git/doc/guix.texi:21295
  31888. #, no-wrap
  31889. msgid "{Scheme Procedure} udisks-service [#:udisks @var{udisks}]"
  31890. msgstr ""
  31891. #. type: deffn
  31892. #: guix-git/doc/guix.texi:21305
  31893. 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."
  31894. msgstr ""
  31895. #. type: deffn
  31896. #: guix-git/doc/guix.texi:21307
  31897. #, no-wrap
  31898. msgid "{Scheme Variable} colord-service-type"
  31899. msgstr ""
  31900. #. type: deffn
  31901. #: guix-git/doc/guix.texi:21314
  31902. 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."
  31903. msgstr ""
  31904. #. type: cindex
  31905. #: guix-git/doc/guix.texi:21316
  31906. #, no-wrap
  31907. msgid "scanner access"
  31908. msgstr ""
  31909. #. type: defvr
  31910. #: guix-git/doc/guix.texi:21317
  31911. #, no-wrap
  31912. msgid "{Scheme Variable} sane-service-type"
  31913. msgstr ""
  31914. #. type: defvr
  31915. #: guix-git/doc/guix.texi:21323
  31916. 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."
  31917. msgstr ""
  31918. #. type: defvr
  31919. #: guix-git/doc/guix.texi:21325
  31920. #, no-wrap
  31921. msgid "{Scheme Variable} sane-backends-minimal"
  31922. msgstr ""
  31923. #. type: defvr
  31924. #: guix-git/doc/guix.texi:21328
  31925. msgid "The default package which the @code{sane-service-type} installs. It supports many recent scanners."
  31926. msgstr ""
  31927. #. type: defvr
  31928. #: guix-git/doc/guix.texi:21330
  31929. #, no-wrap
  31930. msgid "{Scheme Variable} sane-backends"
  31931. msgstr ""
  31932. #. type: defvr
  31933. #: guix-git/doc/guix.texi:21337
  31934. 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:"
  31935. msgstr ""
  31936. #. type: lisp
  31937. #: guix-git/doc/guix.texi:21346
  31938. #, no-wrap
  31939. msgid ""
  31940. "(use-modules (gnu))\n"
  31941. "(use-service-modules\n"
  31942. " @dots{}\n"
  31943. " desktop)\n"
  31944. "(use-package-modules\n"
  31945. " @dots{}\n"
  31946. " scanner)\n"
  31947. "\n"
  31948. msgstr ""
  31949. #. type: lisp
  31950. #: guix-git/doc/guix.texi:21351
  31951. #, no-wrap
  31952. msgid ""
  31953. "(define %my-desktop-services\n"
  31954. " ;; List of desktop services that supports a broader range of scanners.\n"
  31955. " (modify-services %desktop-services\n"
  31956. " (sane-service-type _ => sane-backends)))\n"
  31957. "\n"
  31958. msgstr ""
  31959. #. type: lisp
  31960. #: guix-git/doc/guix.texi:21355
  31961. #, no-wrap
  31962. msgid ""
  31963. "(operating-system\n"
  31964. " @dots{}\n"
  31965. " (services %my-desktop-services))\n"
  31966. msgstr ""
  31967. #. type: deffn
  31968. #: guix-git/doc/guix.texi:21358
  31969. #, no-wrap
  31970. msgid "{Scheme Procedure} geoclue-application name [#:allowed? #t] [#:system? #f] [#:users '()]"
  31971. msgstr ""
  31972. #. type: deffn
  31973. #: guix-git/doc/guix.texi:21367
  31974. 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."
  31975. msgstr ""
  31976. #. type: defvr
  31977. #: guix-git/doc/guix.texi:21369
  31978. #, no-wrap
  31979. msgid "{Scheme Variable} %standard-geoclue-applications"
  31980. msgstr ""
  31981. #. type: defvr
  31982. #: guix-git/doc/guix.texi:21376
  31983. 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."
  31984. msgstr ""
  31985. #. type: deffn
  31986. #: guix-git/doc/guix.texi:21378
  31987. #, no-wrap
  31988. msgid "{Scheme Procedure} geoclue-service [#:colord @var{colord}] @"
  31989. msgstr ""
  31990. #. type: deffn
  31991. #: guix-git/doc/guix.texi:21391
  31992. 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."
  31993. msgstr ""
  31994. #. type: deffn
  31995. #: guix-git/doc/guix.texi:21393
  31996. #, no-wrap
  31997. msgid "{Scheme Procedure} bluetooth-service [#:bluez @var{bluez}] @"
  31998. msgstr ""
  31999. #. type: deffn
  32000. #: guix-git/doc/guix.texi:21400
  32001. 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."
  32002. msgstr ""
  32003. #. type: deffn
  32004. #: guix-git/doc/guix.texi:21402
  32005. msgid "Users need to be in the @code{lp} group to access the D-Bus service."
  32006. msgstr ""
  32007. #. type: deffn
  32008. #: guix-git/doc/guix.texi:21404
  32009. #, no-wrap
  32010. msgid "{Scheme Variable} bluetooth-service-type"
  32011. msgstr ""
  32012. #. type: deffn
  32013. #: guix-git/doc/guix.texi:21409
  32014. msgid "This is the type for the @uref{https://bluez.org/, Linux Bluetooth Protocol Stack} (BlueZ) system, which generates the @file{/etc/bluetooth/main.conf} configuration file. The value for this type is a @command{bluetooth-configuration} record as in this example:"
  32015. msgstr ""
  32016. #. type: lisp
  32017. #: guix-git/doc/guix.texi:21412
  32018. #, no-wrap
  32019. msgid "(service bluetooth-service-type)\n"
  32020. msgstr ""
  32021. #. type: deffn
  32022. #: guix-git/doc/guix.texi:21415
  32023. msgid "See below for details about @code{bluetooth-configuration}."
  32024. msgstr ""
  32025. #. type: deftp
  32026. #: guix-git/doc/guix.texi:21417
  32027. #, fuzzy, no-wrap
  32028. msgid "{Data Type} bluetooth-configuration"
  32029. msgstr "{数据类型} build-machine"
  32030. #. type: deftp
  32031. #: guix-git/doc/guix.texi:21419
  32032. #, fuzzy
  32033. msgid "Data type representing the configuration for @code{bluetooth-service}."
  32034. msgstr "管理操作系统配置。"
  32035. #. type: item
  32036. #: guix-git/doc/guix.texi:21421
  32037. #, fuzzy, no-wrap
  32038. msgid "@code{bluez} (default: @code{bluez})"
  32039. msgstr "@code{mate}(默认值:@code{mate})"
  32040. #. type: table
  32041. #: guix-git/doc/guix.texi:21423
  32042. #, fuzzy
  32043. msgid "@code{bluez} package to use."
  32044. msgstr "软件包数据类型。"
  32045. #. type: item
  32046. #: guix-git/doc/guix.texi:21424
  32047. #, fuzzy, no-wrap
  32048. msgid "@code{name} (default: @code{\"BlueZ\"})"
  32049. msgstr "@code{gnome}(默认值:@code{gnome})"
  32050. #. type: table
  32051. #: guix-git/doc/guix.texi:21426
  32052. #, fuzzy
  32053. msgid "Default adapter name."
  32054. msgstr "仓库monad"
  32055. #. type: item
  32056. #: guix-git/doc/guix.texi:21427
  32057. #, fuzzy, no-wrap
  32058. msgid "@code{class} (default: @code{#x000000})"
  32059. msgstr "@code{port}(默认值:@code{22})"
  32060. #. type: table
  32061. #: guix-git/doc/guix.texi:21429
  32062. msgid "Default device class. Only the major and minor device class bits are considered."
  32063. msgstr ""
  32064. #. type: item
  32065. #: guix-git/doc/guix.texi:21430
  32066. #, fuzzy, no-wrap
  32067. msgid "@code{discoverable-timeout} (default: @code{180})"
  32068. msgstr "@code{speed}(默认值:@code{1.0})"
  32069. #. type: table
  32070. #: guix-git/doc/guix.texi:21433
  32071. msgid "How long to stay in discoverable mode before going back to non-discoverable. The value is in seconds."
  32072. msgstr ""
  32073. #. type: item
  32074. #: guix-git/doc/guix.texi:21434
  32075. #, fuzzy, no-wrap
  32076. msgid "@code{always-pairable?} (default: @code{#f})"
  32077. msgstr "@code{challenge}(默认值:@code{#f})"
  32078. #. type: table
  32079. #: guix-git/doc/guix.texi:21436
  32080. msgid "Always allow pairing even if there are no agents registered."
  32081. msgstr ""
  32082. #. type: item
  32083. #: guix-git/doc/guix.texi:21437
  32084. #, fuzzy, no-wrap
  32085. msgid "@code{pairable-timeout} (default: @code{0})"
  32086. msgstr "@code{mate}(默认值:@code{mate})"
  32087. #. type: table
  32088. #: guix-git/doc/guix.texi:21440
  32089. msgid "How long to stay in pairable mode before going back to non-discoverable. The value is in seconds."
  32090. msgstr ""
  32091. #. type: item
  32092. #: guix-git/doc/guix.texi:21441
  32093. #, fuzzy, no-wrap
  32094. msgid "@code{device-id} (default: @code{#f})"
  32095. msgstr "@code{speed}(默认值:@code{1.0})"
  32096. #. type: table
  32097. #: guix-git/doc/guix.texi:21445
  32098. msgid "Use vendor id source (assigner), vendor, product and version information for DID profile support. The values are separated by \":\" and @var{assigner}, @var{VID}, @var{PID} and @var{version}."
  32099. msgstr ""
  32100. #. type: itemize
  32101. #: guix-git/doc/guix.texi:21451
  32102. msgid "@code{#f} to disable it,"
  32103. msgstr ""
  32104. #. type: itemize
  32105. #: guix-git/doc/guix.texi:21455
  32106. msgid "@code{\"assigner:1234:5678:abcd\"}, where @var{assigner} is either @code{usb} (default) or @code{bluetooth}."
  32107. msgstr ""
  32108. #. type: item
  32109. #: guix-git/doc/guix.texi:21458
  32110. #, fuzzy, no-wrap
  32111. msgid "@code{reverse-service-discovery?} (default: @code{#t})"
  32112. msgstr "@code{speed}(默认值:@code{1.0})"
  32113. #. type: table
  32114. #: guix-git/doc/guix.texi:21464
  32115. msgid "Do reverse service discovery for previously unknown devices that connect to us. For BR/EDR this option is really only needed for qualification since the BITE tester doesn't like us doing reverse SDP for some test cases, for LE this disables the GATT client functionally so it can be used in system which can only operate as peripheral."
  32116. msgstr ""
  32117. #. type: item
  32118. #: guix-git/doc/guix.texi:21465
  32119. #, fuzzy, no-wrap
  32120. msgid "@code{name-resolving?} (default: @code{#t})"
  32121. msgstr "@code{challenge}(默认值:@code{#f})"
  32122. #. type: table
  32123. #: guix-git/doc/guix.texi:21468
  32124. msgid "Enable name resolving after inquiry. Set it to @code{#f} if you don't need remote devices name and want shorter discovery cycle."
  32125. msgstr ""
  32126. #. type: item
  32127. #: guix-git/doc/guix.texi:21469
  32128. #, fuzzy, no-wrap
  32129. msgid "@code{debug-keys?} (default: @code{#f})"
  32130. msgstr "@code{challenge}(默认值:@code{#f})"
  32131. #. type: table
  32132. #: guix-git/doc/guix.texi:21473
  32133. msgid "Enable runtime persistency of debug link keys. Default is false which makes debug link keys valid only for the duration of the connection that they were created for."
  32134. msgstr ""
  32135. #. type: item
  32136. #: guix-git/doc/guix.texi:21474
  32137. #, fuzzy, no-wrap
  32138. msgid "@code{controller-mode} (default: @code{'dual})"
  32139. msgstr "@code{journal-content}(默认值:@code{#f})"
  32140. #. type: table
  32141. #: guix-git/doc/guix.texi:21477
  32142. msgid "Restricts all controllers to the specified transport. @code{'dual} means both BR/EDR and LE are enabled (if supported by the hardware)."
  32143. msgstr ""
  32144. #. type: code{#1}
  32145. #: guix-git/doc/guix.texi:21483
  32146. msgid "'dual"
  32147. msgstr ""
  32148. #. type: code{#1}
  32149. #: guix-git/doc/guix.texi:21486
  32150. msgid "'bredr"
  32151. msgstr ""
  32152. #. type: code{#1}
  32153. #: guix-git/doc/guix.texi:21489
  32154. msgid "'le"
  32155. msgstr ""
  32156. #. type: item
  32157. #: guix-git/doc/guix.texi:21492
  32158. #, fuzzy, no-wrap
  32159. msgid "@code{multi-profile} (default: @code{'off})"
  32160. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  32161. #. type: table
  32162. #: guix-git/doc/guix.texi:21497
  32163. msgid "Enables Multi Profile Specification support. This allows to specify if system supports only Multiple Profiles Single Device (MPSD) configuration or both Multiple Profiles Single Device (MPSD) and Multiple Profiles Multiple Devices (MPMD) configurations."
  32164. msgstr ""
  32165. #. type: code{#1}
  32166. #: guix-git/doc/guix.texi:21503
  32167. msgid "'off"
  32168. msgstr ""
  32169. #. type: code{#1}
  32170. #: guix-git/doc/guix.texi:21506
  32171. msgid "'single"
  32172. msgstr ""
  32173. #. type: code{#1}
  32174. #: guix-git/doc/guix.texi:21509
  32175. msgid "'multiple"
  32176. msgstr ""
  32177. #. type: item
  32178. #: guix-git/doc/guix.texi:21512
  32179. #, fuzzy, no-wrap
  32180. msgid "@code{fast-connectable?} (default: @code{#f})"
  32181. msgstr "@code{challenge}(默认值:@code{#f})"
  32182. #. type: table
  32183. #: guix-git/doc/guix.texi:21517
  32184. msgid "Permanently enables the Fast Connectable setting for adapters that support it. When enabled other devices can connect faster to us, however the tradeoff is increased power consumptions. This feature will fully work only on kernel version 4.1 and newer."
  32185. msgstr ""
  32186. #. type: item
  32187. #: guix-git/doc/guix.texi:21518
  32188. #, fuzzy, no-wrap
  32189. msgid "@code{privacy} (default: @code{'off})"
  32190. msgstr "@code{port}(默认值:@code{22})"
  32191. #. type: table
  32192. #: guix-git/doc/guix.texi:21520
  32193. msgid "Default privacy settings."
  32194. msgstr ""
  32195. #. type: itemize
  32196. #: guix-git/doc/guix.texi:21524
  32197. msgid "@code{'off}: Disable local privacy"
  32198. msgstr ""
  32199. #. type: itemize
  32200. #: guix-git/doc/guix.texi:21529
  32201. msgid "@code{'network/on}: A device will only accept advertising packets from peer devices that contain private addresses. It may not be compatible with some legacy devices since it requires the use of RPA(s) all the time"
  32202. msgstr ""
  32203. #. type: itemize
  32204. #: guix-git/doc/guix.texi:21535
  32205. msgid "@code{'device}: A device in device privacy mode is only concerned about the privacy of the device and will accept advertising packets from peer devices that contain their Identity Address as well as ones that contain a private address, even if the peer device has distributed its IRK in the past"
  32206. msgstr ""
  32207. #. type: table
  32208. #: guix-git/doc/guix.texi:21539
  32209. msgid "and additionally, if @var{controller-mode} is set to @code{'dual}:"
  32210. msgstr ""
  32211. #. type: itemize
  32212. #: guix-git/doc/guix.texi:21545
  32213. msgid "@code{'limited-network}: Apply Limited Discoverable Mode to advertising, which follows the same policy as to BR/EDR that publishes the identity address when discoverable, and Network Privacy Mode for scanning"
  32214. msgstr ""
  32215. #. type: itemize
  32216. #: guix-git/doc/guix.texi:21550
  32217. msgid "@code{'limited-device}: Apply Limited Discoverable Mode to advertising, which follows the same policy as to BR/EDR that publishes the identity address when discoverable, and Device Privacy Mode for scanning."
  32218. msgstr ""
  32219. #. type: item
  32220. #: guix-git/doc/guix.texi:21553
  32221. #, fuzzy, no-wrap
  32222. msgid "@code{just-works-repairing} (default: @code{'never})"
  32223. msgstr "@code{features} (@code{'()})"
  32224. #. type: table
  32225. #: guix-git/doc/guix.texi:21555
  32226. msgid "Specify the policy to the JUST-WORKS repairing initiated by peer."
  32227. msgstr ""
  32228. #. type: table
  32229. #: guix-git/doc/guix.texi:21557 guix-git/doc/guix.texi:21582
  32230. #: guix-git/doc/guix.texi:21799
  32231. msgid "Possible values:"
  32232. msgstr ""
  32233. #. type: code{#1}
  32234. #: guix-git/doc/guix.texi:21560
  32235. msgid "'never"
  32236. msgstr ""
  32237. #. type: code{#1}
  32238. #: guix-git/doc/guix.texi:21563
  32239. msgid "'confirm"
  32240. msgstr ""
  32241. #. type: code{#1}
  32242. #: guix-git/doc/guix.texi:21566
  32243. msgid "'always"
  32244. msgstr ""
  32245. #. type: item
  32246. #: guix-git/doc/guix.texi:21569
  32247. #, fuzzy, no-wrap
  32248. msgid "@code{temporary-timeout} (default: @code{30})"
  32249. msgstr "@code{port}(默认值:@code{22})"
  32250. #. type: table
  32251. #: guix-git/doc/guix.texi:21572
  32252. msgid "How long to keep temporary devices around. The value is in seconds. @code{0} disables the timer completely."
  32253. msgstr ""
  32254. #. type: item
  32255. #: guix-git/doc/guix.texi:21573
  32256. #, fuzzy, no-wrap
  32257. msgid "@code{refresh-discovery?} (default: @code{#t})"
  32258. msgstr "@code{speed}(默认值:@code{1.0})"
  32259. #. type: table
  32260. #: guix-git/doc/guix.texi:21576
  32261. msgid "Enables the device to issue an SDP request to update known services when profile is connected."
  32262. msgstr ""
  32263. #. type: item
  32264. #: guix-git/doc/guix.texi:21577
  32265. #, fuzzy, no-wrap
  32266. msgid "@code{experimental} (default: @code{#f})"
  32267. msgstr "@code{port}(默认值:@code{22})"
  32268. #. type: table
  32269. #: guix-git/doc/guix.texi:21580
  32270. msgid "Enables experimental features and interfaces, alternatively a list of UUIDs can be given."
  32271. msgstr ""
  32272. #. type: itemize
  32273. #: guix-git/doc/guix.texi:21592 guix-git/doc/guix.texi:21806
  32274. msgid "@code{(list (uuid <uuid-1>) (uuid <uuid-2>) ...)}."
  32275. msgstr ""
  32276. #. type: table
  32277. #: guix-git/doc/guix.texi:21595
  32278. msgid "List of possible UUIDs:"
  32279. msgstr ""
  32280. #. type: itemize
  32281. #: guix-git/doc/guix.texi:21598
  32282. msgid "@code{d4992530-b9ec-469f-ab01-6c481c47da1c}: BlueZ Experimental Debug,"
  32283. msgstr ""
  32284. #. type: itemize
  32285. #: guix-git/doc/guix.texi:21601
  32286. msgid "@code{671b10b5-42c0-4696-9227-eb28d1b049d6}: BlueZ Experimental Simultaneous Central and Peripheral,"
  32287. msgstr ""
  32288. #. type: itemize
  32289. #: guix-git/doc/guix.texi:21604
  32290. msgid "@code{\"15c0a148-c273-11ea-b3de-0242ac130004}: BlueZ Experimental LL privacy,"
  32291. msgstr ""
  32292. #. type: itemize
  32293. #: guix-git/doc/guix.texi:21607
  32294. msgid "@code{330859bc-7506-492d-9370-9a6f0614037f}: BlueZ Experimental Bluetooth Quality Report,"
  32295. msgstr ""
  32296. #. type: itemize
  32297. #: guix-git/doc/guix.texi:21610
  32298. msgid "@code{a6695ace-ee7f-4fb9-881a-5fac66c629af}: BlueZ Experimental Offload Codecs."
  32299. msgstr ""
  32300. #. type: item
  32301. #: guix-git/doc/guix.texi:21612
  32302. #, fuzzy, no-wrap
  32303. msgid "@code{remote-name-request-retry-delay} (default: @code{300})"
  32304. msgstr "@code{speed}(默认值:@code{1.0})"
  32305. #. type: table
  32306. #: guix-git/doc/guix.texi:21615
  32307. msgid "The duration to avoid retrying to resolve a peer's name, if the previous try failed."
  32308. msgstr ""
  32309. #. type: item
  32310. #: guix-git/doc/guix.texi:21616
  32311. #, fuzzy, no-wrap
  32312. msgid "@code{page-scan-type} (default: @code{#f})"
  32313. msgstr "@code{challenge}(默认值:@code{#f})"
  32314. #. type: table
  32315. #: guix-git/doc/guix.texi:21618
  32316. msgid "BR/EDR Page scan activity type."
  32317. msgstr ""
  32318. #. type: item
  32319. #: guix-git/doc/guix.texi:21619
  32320. #, fuzzy, no-wrap
  32321. msgid "@code{page-scan-interval} (default: @code{#f})"
  32322. msgstr "@code{challenge}(默认值:@code{#f})"
  32323. #. type: table
  32324. #: guix-git/doc/guix.texi:21621
  32325. msgid "BR/EDR Page scan activity interval."
  32326. msgstr ""
  32327. #. type: item
  32328. #: guix-git/doc/guix.texi:21622
  32329. #, fuzzy, no-wrap
  32330. msgid "@code{page-scan-window} (default: @code{#f})"
  32331. msgstr "@code{speed}(默认值:@code{1.0})"
  32332. #. type: table
  32333. #: guix-git/doc/guix.texi:21624
  32334. msgid "BR/EDR Page scan activity window."
  32335. msgstr ""
  32336. #. type: item
  32337. #: guix-git/doc/guix.texi:21625
  32338. #, fuzzy, no-wrap
  32339. msgid "@code{inquiry-scan-type} (default: @code{#f})"
  32340. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  32341. #. type: table
  32342. #: guix-git/doc/guix.texi:21627
  32343. msgid "BR/EDR Inquiry scan activity type."
  32344. msgstr ""
  32345. #. type: item
  32346. #: guix-git/doc/guix.texi:21628
  32347. #, fuzzy, no-wrap
  32348. msgid "@code{inquiry-scan-interval} (default: @code{#f})"
  32349. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  32350. #. type: table
  32351. #: guix-git/doc/guix.texi:21630
  32352. msgid "BR/EDR Inquiry scan activity interval."
  32353. msgstr ""
  32354. #. type: item
  32355. #: guix-git/doc/guix.texi:21631
  32356. #, fuzzy, no-wrap
  32357. msgid "@code{inquiry-scan-window} (default: @code{#f})"
  32358. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  32359. #. type: table
  32360. #: guix-git/doc/guix.texi:21633
  32361. msgid "BR/EDR Inquiry scan activity window."
  32362. msgstr ""
  32363. #. type: item
  32364. #: guix-git/doc/guix.texi:21634
  32365. #, fuzzy, no-wrap
  32366. msgid "@code{link-supervision-timeout} (default: @code{#f})"
  32367. msgstr "@code{port}(默认值:@code{22})"
  32368. #. type: table
  32369. #: guix-git/doc/guix.texi:21636
  32370. msgid "BR/EDR Link supervision timeout."
  32371. msgstr ""
  32372. #. type: item
  32373. #: guix-git/doc/guix.texi:21637
  32374. #, fuzzy, no-wrap
  32375. msgid "@code{page-timeout} (default: @code{#f})"
  32376. msgstr "@code{port}(默认值:@code{22})"
  32377. #. type: table
  32378. #: guix-git/doc/guix.texi:21639
  32379. msgid "BR/EDR Page timeout."
  32380. msgstr ""
  32381. #. type: item
  32382. #: guix-git/doc/guix.texi:21640
  32383. #, fuzzy, no-wrap
  32384. msgid "@code{min-sniff-interval} (default: @code{#f})"
  32385. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  32386. #. type: table
  32387. #: guix-git/doc/guix.texi:21642
  32388. msgid "BR/EDR minimum sniff interval."
  32389. msgstr ""
  32390. #. type: item
  32391. #: guix-git/doc/guix.texi:21643
  32392. #, fuzzy, no-wrap
  32393. msgid "@code{max-sniff-interval} (default: @code{#f})"
  32394. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  32395. #. type: table
  32396. #: guix-git/doc/guix.texi:21645
  32397. msgid "BR/EDR maximum sniff interval."
  32398. msgstr ""
  32399. #. type: item
  32400. #: guix-git/doc/guix.texi:21646
  32401. #, fuzzy, no-wrap
  32402. msgid "@code{min-advertisement-interval} (default: @code{#f})"
  32403. msgstr "@code{challenge}(默认值:@code{#f})"
  32404. #. type: table
  32405. #: guix-git/doc/guix.texi:21648
  32406. msgid "LE minimum advertisement interval (used for legacy advertisement only)."
  32407. msgstr ""
  32408. #. type: item
  32409. #: guix-git/doc/guix.texi:21649
  32410. #, fuzzy, no-wrap
  32411. msgid "@code{max-advertisement-interval} (default: @code{#f})"
  32412. msgstr "@code{challenge}(默认值:@code{#f})"
  32413. #. type: table
  32414. #: guix-git/doc/guix.texi:21651
  32415. msgid "LE maximum advertisement interval (used for legacy advertisement only)."
  32416. msgstr ""
  32417. #. type: item
  32418. #: guix-git/doc/guix.texi:21652
  32419. #, fuzzy, no-wrap
  32420. msgid "@code{multi-advertisement-rotation-interval} (default: @code{#f})"
  32421. msgstr "@code{port}(默认值:@code{22})"
  32422. #. type: table
  32423. #: guix-git/doc/guix.texi:21654
  32424. msgid "LE multiple advertisement rotation interval."
  32425. msgstr ""
  32426. #. type: item
  32427. #: guix-git/doc/guix.texi:21655
  32428. #, fuzzy, no-wrap
  32429. msgid "@code{scan-interval-auto-connect} (default: @code{#f})"
  32430. msgstr "@code{journal-content}(默认值:@code{#f})"
  32431. #. type: table
  32432. #: guix-git/doc/guix.texi:21657
  32433. msgid "LE scanning interval used for passive scanning supporting auto connect."
  32434. msgstr ""
  32435. #. type: item
  32436. #: guix-git/doc/guix.texi:21658
  32437. #, fuzzy, no-wrap
  32438. msgid "@code{scan-window-auto-connect} (default: @code{#f})"
  32439. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  32440. #. type: table
  32441. #: guix-git/doc/guix.texi:21660
  32442. msgid "LE scanning window used for passive scanning supporting auto connect."
  32443. msgstr ""
  32444. #. type: item
  32445. #: guix-git/doc/guix.texi:21661
  32446. #, fuzzy, no-wrap
  32447. msgid "@code{scan-interval-suspend} (default: @code{#f})"
  32448. msgstr "@code{speed}(默认值:@code{1.0})"
  32449. #. type: table
  32450. #: guix-git/doc/guix.texi:21663
  32451. msgid "LE scanning interval used for active scanning supporting wake from suspend."
  32452. msgstr ""
  32453. #. type: item
  32454. #: guix-git/doc/guix.texi:21664
  32455. #, fuzzy, no-wrap
  32456. msgid "@code{scan-window-suspend} (default: @code{#f})"
  32457. msgstr "@code{port}(默认值:@code{22})"
  32458. #. type: table
  32459. #: guix-git/doc/guix.texi:21666
  32460. msgid "LE scanning window used for active scanning supporting wake from suspend."
  32461. msgstr ""
  32462. #. type: item
  32463. #: guix-git/doc/guix.texi:21667
  32464. #, fuzzy, no-wrap
  32465. msgid "@code{scan-interval-discovery} (default: @code{#f})"
  32466. msgstr "@code{speed}(默认值:@code{1.0})"
  32467. #. type: table
  32468. #: guix-git/doc/guix.texi:21669
  32469. msgid "LE scanning interval used for active scanning supporting discovery."
  32470. msgstr ""
  32471. #. type: item
  32472. #: guix-git/doc/guix.texi:21670
  32473. #, fuzzy, no-wrap
  32474. msgid "@code{scan-window-discovery} (default: @code{#f})"
  32475. msgstr "@code{speed}(默认值:@code{1.0})"
  32476. #. type: table
  32477. #: guix-git/doc/guix.texi:21672
  32478. msgid "LE scanning window used for active scanning supporting discovery."
  32479. msgstr ""
  32480. #. type: item
  32481. #: guix-git/doc/guix.texi:21673
  32482. #, fuzzy, no-wrap
  32483. msgid "@code{scan-interval-adv-monitor} (default: @code{#f})"
  32484. msgstr "@code{speed}(默认值:@code{1.0})"
  32485. #. type: table
  32486. #: guix-git/doc/guix.texi:21675
  32487. msgid "LE scanning interval used for passive scanning supporting the advertisement monitor APIs."
  32488. msgstr ""
  32489. #. type: item
  32490. #: guix-git/doc/guix.texi:21676
  32491. #, fuzzy, no-wrap
  32492. msgid "@code{scan-window-adv-monitor} (default: @code{#f})"
  32493. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  32494. #. type: table
  32495. #: guix-git/doc/guix.texi:21678
  32496. msgid "LE scanning window used for passive scanning supporting the advertisement monitor APIs."
  32497. msgstr ""
  32498. #. type: item
  32499. #: guix-git/doc/guix.texi:21679
  32500. #, fuzzy, no-wrap
  32501. #| msgid "@code{journal-content} (default: @code{#f})"
  32502. msgid "@code{scan-interval-connect} (default: @code{#f})"
  32503. msgstr "@code{journal-content}(默认值:@code{#f})"
  32504. #. type: table
  32505. #: guix-git/doc/guix.texi:21681
  32506. msgid "LE scanning interval used for connection establishment."
  32507. msgstr ""
  32508. #. type: item
  32509. #: guix-git/doc/guix.texi:21682
  32510. #, fuzzy, no-wrap
  32511. msgid "@code{scan-window-connect} (default: @code{#f})"
  32512. msgstr "@code{port}(默认值:@code{22})"
  32513. #. type: table
  32514. #: guix-git/doc/guix.texi:21684
  32515. msgid "LE scanning window used for connection establishment."
  32516. msgstr ""
  32517. #. type: item
  32518. #: guix-git/doc/guix.texi:21685
  32519. #, fuzzy, no-wrap
  32520. #| msgid "@code{max-zone-size} (default: @code{#f})"
  32521. msgid "@code{min-connection-interval} (default: @code{#f})"
  32522. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  32523. #. type: table
  32524. #: guix-git/doc/guix.texi:21688
  32525. msgid "LE default minimum connection interval. This value is superceeded by any specific value provided via the Load Connection Parameters interface."
  32526. msgstr ""
  32527. #. type: item
  32528. #: guix-git/doc/guix.texi:21689
  32529. #, fuzzy, no-wrap
  32530. #| msgid "@code{max-zone-size} (default: @code{#f})"
  32531. msgid "@code{max-connection-interval} (default: @code{#f})"
  32532. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  32533. #. type: table
  32534. #: guix-git/doc/guix.texi:21692
  32535. msgid "LE default maximum connection interval. This value is superceeded by any specific value provided via the Load Connection Parameters interface."
  32536. msgstr ""
  32537. #. type: item
  32538. #: guix-git/doc/guix.texi:21693
  32539. #, fuzzy, no-wrap
  32540. msgid "@code{connection-latency} (default: @code{#f})"
  32541. msgstr "@code{journal-content}(默认值:@code{#f})"
  32542. #. type: table
  32543. #: guix-git/doc/guix.texi:21696
  32544. msgid "LE default connection latency. This value is superceeded by any specific value provided via the Load Connection Parameters interface."
  32545. msgstr ""
  32546. #. type: item
  32547. #: guix-git/doc/guix.texi:21697
  32548. #, fuzzy, no-wrap
  32549. msgid "@code{connection-supervision-timeout} (default: @code{#f})"
  32550. msgstr "@code{journal-content}(默认值:@code{#f})"
  32551. #. type: table
  32552. #: guix-git/doc/guix.texi:21700
  32553. msgid "LE default connection supervision timeout. This value is superceeded by any specific value provided via the Load Connection Parameters interface."
  32554. msgstr ""
  32555. #. type: item
  32556. #: guix-git/doc/guix.texi:21701
  32557. #, fuzzy, no-wrap
  32558. msgid "@code{autoconnect-timeout} (default: @code{#f})"
  32559. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  32560. #. type: table
  32561. #: guix-git/doc/guix.texi:21704
  32562. msgid "LE default autoconnect timeout. This value is superceeded by any specific value provided via the Load Connection Parameters interface."
  32563. msgstr ""
  32564. #. type: item
  32565. #: guix-git/doc/guix.texi:21705
  32566. #, fuzzy, no-wrap
  32567. msgid "@code{adv-mon-allowlist-scan-duration} (default: @code{300})"
  32568. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  32569. #. type: table
  32570. #: guix-git/doc/guix.texi:21708
  32571. msgid "Allowlist scan duration during interleaving scan. Only used when scanning for ADV monitors. The units are msec."
  32572. msgstr ""
  32573. #. type: item
  32574. #: guix-git/doc/guix.texi:21709
  32575. #, fuzzy, no-wrap
  32576. msgid "@code{adv-mon-no-filter-scan-duration} (default: @code{500})"
  32577. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  32578. #. type: table
  32579. #: guix-git/doc/guix.texi:21712
  32580. msgid "No filter scan duration during interleaving scan. Only used when scanning for ADV monitors. The units are msec."
  32581. msgstr ""
  32582. #. type: item
  32583. #: guix-git/doc/guix.texi:21713
  32584. #, fuzzy, no-wrap
  32585. msgid "@code{enable-adv-mon-interleave-scan?} (default: @code{#t})"
  32586. msgstr "@code{mate}(默认值:@code{mate})"
  32587. #. type: table
  32588. #: guix-git/doc/guix.texi:21715
  32589. msgid "Enable/Disable Advertisement Monitor interleave scan for power saving."
  32590. msgstr ""
  32591. #. type: item
  32592. #: guix-git/doc/guix.texi:21716
  32593. #, fuzzy, no-wrap
  32594. msgid "@code{cache} (default: @code{'always})"
  32595. msgstr "@code{challenge}(默认值:@code{#f})"
  32596. #. type: table
  32597. #: guix-git/doc/guix.texi:21718
  32598. msgid "GATT attribute cache."
  32599. msgstr ""
  32600. #. type: itemize
  32601. #: guix-git/doc/guix.texi:21726
  32602. msgid "@code{'always}: Always cache attributes even for devices not paired, this is recommended as it is best for interoperability, with more consistent reconnection times and enables proper tracking of notifications for all devices"
  32603. msgstr ""
  32604. #. type: itemize
  32605. #: guix-git/doc/guix.texi:21729
  32606. msgid "@code{'yes}: Only cache attributes of paired devices"
  32607. msgstr ""
  32608. #. type: itemize
  32609. #: guix-git/doc/guix.texi:21732
  32610. msgid "@code{'no}: Never cache attributes."
  32611. msgstr ""
  32612. #. type: item
  32613. #: guix-git/doc/guix.texi:21734
  32614. #, fuzzy, no-wrap
  32615. #| msgid "@code{max-zone-size} (default: @code{#f})"
  32616. msgid "@code{key-size} (default: @code{0})"
  32617. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  32618. #. type: table
  32619. #: guix-git/doc/guix.texi:21736
  32620. msgid "Minimum required Encryption Key Size for accessing secured characteristics."
  32621. msgstr ""
  32622. #. type: itemize
  32623. #: guix-git/doc/guix.texi:21741
  32624. msgid "@code{0}: Don't care"
  32625. msgstr ""
  32626. #. type: code{#1}
  32627. #: guix-git/doc/guix.texi:21744
  32628. msgid "7 <= N <= 16"
  32629. msgstr ""
  32630. #. type: item
  32631. #: guix-git/doc/guix.texi:21746
  32632. #, fuzzy, no-wrap
  32633. msgid "@code{exchange-mtu} (default: @code{517})"
  32634. msgstr "@code{challenge}(默认值:@code{#f})"
  32635. #. type: table
  32636. #: guix-git/doc/guix.texi:21748
  32637. msgid "Exchange MTU size. Possible values are:"
  32638. msgstr ""
  32639. #. type: code{#1}
  32640. #: guix-git/doc/guix.texi:21752
  32641. msgid "23 <= N <= 517"
  32642. msgstr ""
  32643. #. type: item
  32644. #: guix-git/doc/guix.texi:21754
  32645. #, fuzzy, no-wrap
  32646. msgid "@code{att-channels} (default: @code{3})"
  32647. msgstr "@code{challenge}(默认值:@code{#f})"
  32648. #. type: table
  32649. #: guix-git/doc/guix.texi:21756
  32650. msgid "Number of ATT channels. Possible values are:"
  32651. msgstr ""
  32652. #. type: itemize
  32653. #: guix-git/doc/guix.texi:21760
  32654. msgid "@code{1}: Disables EATT"
  32655. msgstr ""
  32656. #. type: code{#1}
  32657. #: guix-git/doc/guix.texi:21763
  32658. msgid "2 <= N <= 5"
  32659. msgstr ""
  32660. #. type: item
  32661. #: guix-git/doc/guix.texi:21765
  32662. #, fuzzy, no-wrap
  32663. #| msgid "@code{compression-level} (default: @code{3})"
  32664. msgid "@code{session-mode} (default: @code{'basic})"
  32665. msgstr "@code{compression-level}(默认值:@code{3})"
  32666. #. type: table
  32667. #: guix-git/doc/guix.texi:21767
  32668. msgid "AVDTP L2CAP signalling channel mode."
  32669. msgstr ""
  32670. #. type: itemize
  32671. #: guix-git/doc/guix.texi:21773 guix-git/doc/guix.texi:21786
  32672. msgid "@code{'basic}: Use L2CAP basic mode"
  32673. msgstr ""
  32674. #. type: itemize
  32675. #: guix-git/doc/guix.texi:21776
  32676. msgid "@code{'ertm}: Use L2CAP enhanced retransmission mode."
  32677. msgstr ""
  32678. #. type: item
  32679. #: guix-git/doc/guix.texi:21778
  32680. #, fuzzy, no-wrap
  32681. msgid "@code{stream-mode} (default: @code{'basic})"
  32682. msgstr "@code{port}(默认值:@code{22})"
  32683. #. type: table
  32684. #: guix-git/doc/guix.texi:21780
  32685. msgid "AVDTP L2CAP transport channel mode."
  32686. msgstr ""
  32687. #. type: itemize
  32688. #: guix-git/doc/guix.texi:21789
  32689. msgid "@code{'streaming}: Use L2CAP streaming mode."
  32690. msgstr ""
  32691. #. type: item
  32692. #: guix-git/doc/guix.texi:21791
  32693. #, fuzzy, no-wrap
  32694. msgid "@code{reconnect-uuids} (default: @code{'()})"
  32695. msgstr "@code{features} (@code{'()})"
  32696. #. type: table
  32697. #: guix-git/doc/guix.texi:21797
  32698. msgid "The ReconnectUUIDs defines the set of remote services that should try to be reconnected to in case of a link loss (link supervision timeout). The policy plugin should contain a sane set of values by default, but this list can be overridden here. By setting the list to empty the reconnection feature gets disabled."
  32699. msgstr ""
  32700. #. type: code{#1}
  32701. #: guix-git/doc/guix.texi:21803
  32702. msgid "'()"
  32703. msgstr ""
  32704. #. type: item
  32705. #: guix-git/doc/guix.texi:21808
  32706. #, fuzzy, no-wrap
  32707. msgid "@code{reconnect-attempts} (default: @code{7})"
  32708. msgstr "@code{port}(默认值:@code{22})"
  32709. #. type: table
  32710. #: guix-git/doc/guix.texi:21811
  32711. msgid "Defines the number of attempts to reconnect after a link lost. Setting the value to 0 disables reconnecting feature."
  32712. msgstr ""
  32713. #. type: item
  32714. #: guix-git/doc/guix.texi:21812
  32715. #, fuzzy, no-wrap
  32716. msgid "@code{reconnect-intervals} (default: @code{'(1 2 4 8 16 32 64)})"
  32717. msgstr "@code{port}(默认值:@code{22})"
  32718. #. type: table
  32719. #: guix-git/doc/guix.texi:21816
  32720. msgid "Defines a list of intervals in seconds to use in between attempts. If the number of attempts defined in @var{reconnect-attempts} is bigger than the list of intervals the last interval is repeated until the last attempt."
  32721. msgstr ""
  32722. #. type: item
  32723. #: guix-git/doc/guix.texi:21817
  32724. #, fuzzy, no-wrap
  32725. msgid "@code{auto-enable?} (default: @code{#f})"
  32726. msgstr "@code{challenge}(默认值:@code{#f})"
  32727. #. type: table
  32728. #: guix-git/doc/guix.texi:21820
  32729. msgid "Defines option to enable all controllers when they are found. This includes adapters present on start as well as adapters that are plugged in later on."
  32730. msgstr ""
  32731. #. type: item
  32732. #: guix-git/doc/guix.texi:21821
  32733. #, fuzzy, no-wrap
  32734. #| msgid "@code{max-zone-size} (default: @code{#f})"
  32735. msgid "@code{resume-delay} (default: @code{2})"
  32736. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  32737. #. type: table
  32738. #: guix-git/doc/guix.texi:21826
  32739. msgid "Audio devices that were disconnected due to suspend will be reconnected on resume. @var{resume-delay} determines the delay between when the controller resumes from suspend and a connection attempt is made. A longer delay is better for better co-existence with Wi-Fi. The value is in seconds."
  32740. msgstr ""
  32741. #. type: item
  32742. #: guix-git/doc/guix.texi:21827
  32743. #, fuzzy, no-wrap
  32744. msgid "@code{rssi-sampling-period} (default: @code{#xFF})"
  32745. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  32746. #. type: table
  32747. #: guix-git/doc/guix.texi:21830
  32748. msgid "Default RSSI Sampling Period. This is used when a client registers an advertisement monitor and leaves the RSSISamplingPeriod unset."
  32749. msgstr ""
  32750. #. type: itemize
  32751. #: guix-git/doc/guix.texi:21835
  32752. msgid "@code{#x0}: Report all advertisements"
  32753. msgstr ""
  32754. #. type: itemize
  32755. #: guix-git/doc/guix.texi:21838
  32756. msgid "@code{N = #xXX}: Report advertisements every N x 100 msec (range: #x01 to #xFE)"
  32757. msgstr ""
  32758. #. type: itemize
  32759. #: guix-git/doc/guix.texi:21841
  32760. msgid "@code{#xFF}: Report only one advertisement per device during monitoring period."
  32761. msgstr ""
  32762. #. type: defvr
  32763. #: guix-git/doc/guix.texi:21846
  32764. #, no-wrap
  32765. msgid "{Scheme Variable} gnome-keyring-service-type"
  32766. msgstr ""
  32767. #. type: defvr
  32768. #: guix-git/doc/guix.texi:21850
  32769. 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)."
  32770. msgstr ""
  32771. #. type: defvr
  32772. #: guix-git/doc/guix.texi:21854
  32773. 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."
  32774. msgstr ""
  32775. #. type: deftp
  32776. #: guix-git/doc/guix.texi:21856
  32777. #, no-wrap
  32778. msgid "{Data Type} gnome-keyring-configuration"
  32779. msgstr ""
  32780. #. type: deftp
  32781. #: guix-git/doc/guix.texi:21858
  32782. msgid "Configuration record for the GNOME Keyring service."
  32783. msgstr ""
  32784. #. type: item
  32785. #: guix-git/doc/guix.texi:21860
  32786. #, fuzzy, no-wrap
  32787. msgid "@code{keyring} (default: @code{gnome-keyring})"
  32788. msgstr "@code{gnome}(默认值:@code{gnome})"
  32789. #. type: table
  32790. #: guix-git/doc/guix.texi:21862
  32791. msgid "The GNOME keyring package to use."
  32792. msgstr ""
  32793. #. type: code{#1}
  32794. #: guix-git/doc/guix.texi:21863
  32795. #, fuzzy, no-wrap
  32796. msgid "pam-services"
  32797. msgstr "基础服务"
  32798. #. type: table
  32799. #: guix-git/doc/guix.texi:21868
  32800. 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}."
  32801. msgstr ""
  32802. #. type: table
  32803. #: guix-git/doc/guix.texi:21874
  32804. 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."
  32805. msgstr ""
  32806. #. type: table
  32807. #: guix-git/doc/guix.texi:21877
  32808. msgid "By default, this field contains ``gdm-password'' with the value @code{login} and ``passwd'' is with the value @code{passwd}."
  32809. msgstr ""
  32810. #. type: cindex
  32811. #: guix-git/doc/guix.texi:21883
  32812. #, no-wrap
  32813. msgid "sound support"
  32814. msgstr ""
  32815. #. type: cindex
  32816. #: guix-git/doc/guix.texi:21884
  32817. #, no-wrap
  32818. msgid "ALSA"
  32819. msgstr ""
  32820. #. type: cindex
  32821. #: guix-git/doc/guix.texi:21885
  32822. #, no-wrap
  32823. msgid "PulseAudio, sound support"
  32824. msgstr ""
  32825. #. type: Plain text
  32826. #: guix-git/doc/guix.texi:21890
  32827. 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."
  32828. msgstr ""
  32829. #. type: deffn
  32830. #: guix-git/doc/guix.texi:21891
  32831. #, no-wrap
  32832. msgid "{Scheme Variable} alsa-service-type"
  32833. msgstr ""
  32834. #. type: deffn
  32835. #: guix-git/doc/guix.texi:21896
  32836. 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:"
  32837. msgstr ""
  32838. #. type: lisp
  32839. #: guix-git/doc/guix.texi:21899
  32840. #, no-wrap
  32841. msgid "(service alsa-service-type)\n"
  32842. msgstr ""
  32843. #. type: deffn
  32844. #: guix-git/doc/guix.texi:21902
  32845. msgid "See below for details about @code{alsa-configuration}."
  32846. msgstr ""
  32847. #. type: deftp
  32848. #: guix-git/doc/guix.texi:21904
  32849. #, no-wrap
  32850. msgid "{Data Type} alsa-configuration"
  32851. msgstr ""
  32852. #. type: deftp
  32853. #: guix-git/doc/guix.texi:21906
  32854. msgid "Data type representing the configuration for @code{alsa-service}."
  32855. msgstr ""
  32856. #. type: item
  32857. #: guix-git/doc/guix.texi:21908
  32858. #, no-wrap
  32859. msgid "@code{alsa-plugins} (default: @var{alsa-plugins})"
  32860. msgstr ""
  32861. #. type: table
  32862. #: guix-git/doc/guix.texi:21910
  32863. msgid "@code{alsa-plugins} package to use."
  32864. msgstr ""
  32865. #. type: item
  32866. #: guix-git/doc/guix.texi:21911
  32867. #, no-wrap
  32868. msgid "@code{pulseaudio?} (default: @var{#t})"
  32869. msgstr ""
  32870. #. type: table
  32871. #: guix-git/doc/guix.texi:21914
  32872. msgid "Whether ALSA applications should transparently be made to use the @uref{https://www.pulseaudio.org/, PulseAudio} sound server."
  32873. msgstr ""
  32874. #. type: table
  32875. #: guix-git/doc/guix.texi:21918
  32876. 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."
  32877. msgstr ""
  32878. #. type: item
  32879. #: guix-git/doc/guix.texi:21919
  32880. #, no-wrap
  32881. msgid "@code{extra-options} (default: @var{\"\"})"
  32882. msgstr ""
  32883. #. type: table
  32884. #: guix-git/doc/guix.texi:21921
  32885. msgid "String to append to the @file{/etc/asound.conf} file."
  32886. msgstr ""
  32887. #. type: Plain text
  32888. #: guix-git/doc/guix.texi:21927
  32889. msgid "Individual users who want to override the system configuration of ALSA can do it with the @file{~/.asoundrc} file:"
  32890. msgstr ""
  32891. #. type: example
  32892. #: guix-git/doc/guix.texi:21933
  32893. #, no-wrap
  32894. msgid ""
  32895. "# In guix, we have to specify the absolute path for plugins.\n"
  32896. "pcm_type.jack @{\n"
  32897. " lib \"/home/alice/.guix-profile/lib/alsa-lib/libasound_module_pcm_jack.so\"\n"
  32898. "@}\n"
  32899. "\n"
  32900. msgstr ""
  32901. #. type: example
  32902. #: guix-git/doc/guix.texi:21942
  32903. #, no-wrap
  32904. msgid ""
  32905. "# Routing ALSA to jack:\n"
  32906. "# <http://jackaudio.org/faq/routing_alsa.html>.\n"
  32907. "pcm.rawjack @{\n"
  32908. " type jack\n"
  32909. " playback_ports @{\n"
  32910. " 0 system:playback_1\n"
  32911. " 1 system:playback_2\n"
  32912. " @}\n"
  32913. "\n"
  32914. msgstr ""
  32915. #. type: example
  32916. #: guix-git/doc/guix.texi:21948
  32917. #, no-wrap
  32918. msgid ""
  32919. " capture_ports @{\n"
  32920. " 0 system:capture_1\n"
  32921. " 1 system:capture_2\n"
  32922. " @}\n"
  32923. "@}\n"
  32924. "\n"
  32925. msgstr ""
  32926. #. type: example
  32927. #: guix-git/doc/guix.texi:21955
  32928. #, no-wrap
  32929. msgid ""
  32930. "pcm.!default @{\n"
  32931. " type plug\n"
  32932. " slave @{\n"
  32933. " pcm \"rawjack\"\n"
  32934. " @}\n"
  32935. "@}\n"
  32936. msgstr ""
  32937. #. type: Plain text
  32938. #: guix-git/doc/guix.texi:21959
  32939. msgid "See @uref{https://www.alsa-project.org/main/index.php/Asoundrc} for the details."
  32940. msgstr ""
  32941. #. type: deffn
  32942. #: guix-git/doc/guix.texi:21960
  32943. #, no-wrap
  32944. msgid "{Scheme Variable} pulseaudio-service-type"
  32945. msgstr ""
  32946. #. type: deffn
  32947. #: guix-git/doc/guix.texi:21964
  32948. 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."
  32949. msgstr ""
  32950. #. type: quotation
  32951. #: guix-git/doc/guix.texi:21970
  32952. 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}."
  32953. msgstr ""
  32954. #. type: quotation
  32955. #: guix-git/doc/guix.texi:21978
  32956. 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."
  32957. msgstr ""
  32958. #. type: deftp
  32959. #: guix-git/doc/guix.texi:21981
  32960. #, fuzzy, no-wrap
  32961. msgid "{Data Type} pulseaudio-configuration"
  32962. msgstr "{数据类型} build-machine"
  32963. #. type: deftp
  32964. #: guix-git/doc/guix.texi:21983
  32965. msgid "Data type representing the configuration for @code{pulseaudio-service}."
  32966. msgstr ""
  32967. #. type: item
  32968. #: guix-git/doc/guix.texi:21985
  32969. #, fuzzy, no-wrap
  32970. msgid "@code{client-conf} (default: @code{'()})"
  32971. msgstr "@code{includes}(默认值:@code{'()})"
  32972. #. type: table
  32973. #: guix-git/doc/guix.texi:21990
  32974. msgid "List of settings to set in @file{client.conf}. Accepts a list of strings or symbol-value pairs. A string will be inserted as-is with a newline added. A pair will be formatted as ``key = value'', again with a newline added."
  32975. msgstr ""
  32976. #. type: item
  32977. #: guix-git/doc/guix.texi:21991
  32978. #, fuzzy, no-wrap
  32979. msgid "@code{daemon-conf} (default: @code{'((flat-volumes . no))})"
  32980. msgstr "@code{mate}(默认值:@code{mate})"
  32981. #. type: table
  32982. #: guix-git/doc/guix.texi:21994
  32983. msgid "List of settings to set in @file{daemon.conf}, formatted just like @var{client-conf}."
  32984. msgstr ""
  32985. #. type: item
  32986. #: guix-git/doc/guix.texi:21995
  32987. #, no-wrap
  32988. msgid "@code{script-file} (default: @code{(file-append pulseaudio \"/etc/pulse/default.pa\")})"
  32989. msgstr ""
  32990. #. type: table
  32991. #: guix-git/doc/guix.texi:22000
  32992. msgid "Script file to use as @file{default.pa}. In case the @code{extra-script-files} field below is used, an @code{.include} directive pointing to @file{/etc/pulse/default.pa.d} is appended to the provided script."
  32993. msgstr ""
  32994. #. type: item
  32995. #: guix-git/doc/guix.texi:22001
  32996. #, fuzzy, no-wrap
  32997. msgid "@code{extra-script-files} (default: @code{'())})"
  32998. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  32999. #. type: table
  33000. #: guix-git/doc/guix.texi:22008
  33001. msgid "A list of file-like objects defining extra PulseAudio scripts to run at the initialization of the @command{pulseaudio} daemon, after the main @code{script-file}. The scripts are deployed to the @file{/etc/pulse/default.pa.d} directory; they should have the @samp{.pa} file name extension. For a reference of the available commands, refer to @command{man pulse-cli-syntax}."
  33002. msgstr ""
  33003. #. type: item
  33004. #: guix-git/doc/guix.texi:22009
  33005. #, no-wrap
  33006. msgid "@code{system-script-file} (default: @code{(file-append pulseaudio \"/etc/pulse/system.pa\")})"
  33007. msgstr ""
  33008. #. type: table
  33009. #: guix-git/doc/guix.texi:22011
  33010. msgid "Script file to use as @file{system.pa}."
  33011. msgstr ""
  33012. #. type: deftp
  33013. #: guix-git/doc/guix.texi:22016
  33014. msgid "The example below sets the default PulseAudio card profile, the default sink and the default source to use for a old SoundBlaster Audigy sound card:"
  33015. msgstr ""
  33016. #. type: lisp
  33017. #: guix-git/doc/guix.texi:22025
  33018. #, no-wrap
  33019. msgid ""
  33020. "(pulseaudio-configuration\n"
  33021. " (extra-script-files\n"
  33022. " (list (plain-file \"audigy.pa\"\n"
  33023. " (string-append \"\\\n"
  33024. "set-card-profile alsa_card.pci-0000_01_01.0 \\\n"
  33025. " output:analog-surround-40+input:analog-mono\n"
  33026. "set-default-source alsa_input.pci-0000_01_01.0.analog-mono\n"
  33027. "set-default-sink alsa_output.pci-0000_01_01.0.analog-surround-40\\n\")))))\n"
  33028. msgstr ""
  33029. #. type: deftp
  33030. #: guix-git/doc/guix.texi:22033
  33031. msgid "Note that @code{pulseaudio-service-type} is part of @code{%desktop-services}; if your operating system declaration was derived from one of the desktop templates, you'll want to adjust the above example to modify the existing @code{pulseaudio-service-type} via @code{modify-services} (@pxref{Service Reference, @code{modify-services}}), instead of defining a new one."
  33032. msgstr ""
  33033. #. type: deffn
  33034. #: guix-git/doc/guix.texi:22036
  33035. #, no-wrap
  33036. msgid "{Scheme Variable} ladspa-service-type"
  33037. msgstr ""
  33038. #. type: deffn
  33039. #: guix-git/doc/guix.texi:22039
  33040. msgid "This service sets the @var{LADSPA_PATH} variable, so that programs, which respect it, e.g. PulseAudio, can load LADSPA plugins."
  33041. msgstr ""
  33042. #. type: deffn
  33043. #: guix-git/doc/guix.texi:22042
  33044. msgid "The following example will setup the service to enable modules from the @code{swh-plugins} package:"
  33045. msgstr ""
  33046. #. type: lisp
  33047. #: guix-git/doc/guix.texi:22046
  33048. #, no-wrap
  33049. msgid ""
  33050. "(service ladspa-service-type\n"
  33051. " (ladspa-configuration (plugins (list swh-plugins))))\n"
  33052. msgstr ""
  33053. #. type: deffn
  33054. #: guix-git/doc/guix.texi:22050
  33055. msgid "See @uref{http://plugin.org.uk/ladspa-swh/docs/ladspa-swh.html} for the details."
  33056. msgstr ""
  33057. #. type: cindex
  33058. #: guix-git/doc/guix.texi:22057
  33059. #, no-wrap
  33060. msgid "SQL"
  33061. msgstr ""
  33062. #. type: Plain text
  33063. #: guix-git/doc/guix.texi:22059
  33064. msgid "The @code{(gnu services databases)} module provides the following services."
  33065. msgstr ""
  33066. #. type: subsubheading
  33067. #: guix-git/doc/guix.texi:22060
  33068. #, no-wrap
  33069. msgid "PostgreSQL"
  33070. msgstr ""
  33071. #. type: Plain text
  33072. #: guix-git/doc/guix.texi:22064
  33073. msgid "The following example describes a PostgreSQL service with the default configuration."
  33074. msgstr ""
  33075. #. type: lisp
  33076. #: guix-git/doc/guix.texi:22069
  33077. #, no-wrap
  33078. msgid ""
  33079. "(service postgresql-service-type\n"
  33080. " (postgresql-configuration\n"
  33081. " (postgresql postgresql-10)))\n"
  33082. msgstr ""
  33083. #. type: Plain text
  33084. #: guix-git/doc/guix.texi:22075
  33085. 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."
  33086. msgstr ""
  33087. #. type: Plain text
  33088. #: guix-git/doc/guix.texi:22082
  33089. 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."
  33090. msgstr ""
  33091. #. type: example
  33092. #: guix-git/doc/guix.texi:22087
  33093. #, no-wrap
  33094. msgid ""
  33095. "sudo -u postgres -s /bin/sh\n"
  33096. "createuser --interactive\n"
  33097. "createdb $MY_USER_LOGIN # Replace appropriately.\n"
  33098. msgstr ""
  33099. #. type: deftp
  33100. #: guix-git/doc/guix.texi:22089
  33101. #, no-wrap
  33102. msgid "{Data Type} postgresql-configuration"
  33103. msgstr ""
  33104. #. type: deftp
  33105. #: guix-git/doc/guix.texi:22092
  33106. msgid "Data type representing the configuration for the @code{postgresql-service-type}."
  33107. msgstr ""
  33108. #. type: code{#1}
  33109. #: guix-git/doc/guix.texi:22094
  33110. #, no-wrap
  33111. msgid "postgresql"
  33112. msgstr ""
  33113. #. type: table
  33114. #: guix-git/doc/guix.texi:22096
  33115. msgid "PostgreSQL package to use for the service."
  33116. msgstr ""
  33117. #. type: item
  33118. #: guix-git/doc/guix.texi:22097
  33119. #, fuzzy, no-wrap
  33120. msgid "@code{port} (default: @code{5432})"
  33121. msgstr "@code{port}(默认值:@code{22})"
  33122. #. type: table
  33123. #: guix-git/doc/guix.texi:22099
  33124. msgid "Port on which PostgreSQL should listen."
  33125. msgstr ""
  33126. #. type: table
  33127. #: guix-git/doc/guix.texi:22102
  33128. msgid "Locale to use as the default when creating the database cluster."
  33129. msgstr ""
  33130. #. type: item
  33131. #: guix-git/doc/guix.texi:22103
  33132. #, fuzzy, no-wrap
  33133. msgid "@code{config-file} (default: @code{(postgresql-config-file)})"
  33134. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  33135. #. type: table
  33136. #: guix-git/doc/guix.texi:22107
  33137. 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."
  33138. msgstr ""
  33139. #. type: item
  33140. #: guix-git/doc/guix.texi:22108
  33141. #, fuzzy, no-wrap
  33142. msgid "@code{log-directory} (default: @code{\"/var/log/postgresql\"})"
  33143. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  33144. #. type: table
  33145. #: guix-git/doc/guix.texi:22112
  33146. 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."
  33147. msgstr ""
  33148. #. type: item
  33149. #: guix-git/doc/guix.texi:22113
  33150. #, fuzzy, no-wrap
  33151. msgid "@code{data-directory} (default: @code{\"/var/lib/postgresql/data\"})"
  33152. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  33153. #. type: table
  33154. #: guix-git/doc/guix.texi:22115
  33155. msgid "Directory in which to store the data."
  33156. msgstr ""
  33157. #. type: item
  33158. #: guix-git/doc/guix.texi:22116
  33159. #, fuzzy, no-wrap
  33160. msgid "@code{extension-packages} (default: @code{'()})"
  33161. msgstr "@code{includes}(默认值:@code{'()})"
  33162. #. type: cindex
  33163. #: guix-git/doc/guix.texi:22117
  33164. #, no-wrap
  33165. msgid "postgresql extension-packages"
  33166. msgstr ""
  33167. #. type: table
  33168. #: guix-git/doc/guix.texi:22122
  33169. 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:"
  33170. msgstr ""
  33171. #. type: cindex
  33172. #: guix-git/doc/guix.texi:22123
  33173. #, no-wrap
  33174. msgid "postgis"
  33175. msgstr ""
  33176. #. type: lisp
  33177. #: guix-git/doc/guix.texi:22126
  33178. #, no-wrap
  33179. msgid ""
  33180. "(use-package-modules databases geo)\n"
  33181. "\n"
  33182. msgstr ""
  33183. #. type: lisp
  33184. #: guix-git/doc/guix.texi:22139
  33185. #, no-wrap
  33186. msgid ""
  33187. "(operating-system\n"
  33188. " ...\n"
  33189. " ;; postgresql is required to run `psql' but postgis is not required for\n"
  33190. " ;; proper operation.\n"
  33191. " (packages (cons* postgresql %base-packages))\n"
  33192. " (services\n"
  33193. " (cons*\n"
  33194. " (service postgresql-service-type\n"
  33195. " (postgresql-configuration\n"
  33196. " (postgresql postgresql-10)\n"
  33197. " (extension-packages (list postgis))))\n"
  33198. " %base-services)))\n"
  33199. msgstr ""
  33200. #. type: table
  33201. #: guix-git/doc/guix.texi:22143
  33202. msgid "Then the extension becomes visible and you can initialise an empty geographic database in this way:"
  33203. msgstr ""
  33204. #. type: example
  33205. #: guix-git/doc/guix.texi:22150
  33206. #, no-wrap
  33207. msgid ""
  33208. "psql -U postgres\n"
  33209. "> create database postgistest;\n"
  33210. "> \\connect postgistest;\n"
  33211. "> create extension postgis;\n"
  33212. "> create extension postgis_topology;\n"
  33213. msgstr ""
  33214. #. type: table
  33215. #: guix-git/doc/guix.texi:22155
  33216. 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."
  33217. msgstr ""
  33218. #. type: deftp
  33219. #: guix-git/doc/guix.texi:22159
  33220. #, no-wrap
  33221. msgid "{Data Type} postgresql-config-file"
  33222. msgstr ""
  33223. #. type: deftp
  33224. #: guix-git/doc/guix.texi:22165
  33225. 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."
  33226. msgstr ""
  33227. #. type: lisp
  33228. #: guix-git/doc/guix.texi:22185
  33229. #, no-wrap
  33230. msgid ""
  33231. "(service postgresql-service-type\n"
  33232. " (postgresql-configuration\n"
  33233. " (config-file\n"
  33234. " (postgresql-config-file\n"
  33235. " (log-destination \"stderr\")\n"
  33236. " (hba-file\n"
  33237. " (plain-file \"pg_hba.conf\"\n"
  33238. " \"\n"
  33239. "local\tall\tall\t\t\ttrust\n"
  33240. "host\tall\tall\t127.0.0.1/32 \tmd5\n"
  33241. "host\tall\tall\t::1/128 \tmd5\"))\n"
  33242. " (extra-config\n"
  33243. " '((\"session_preload_libraries\" \"auto_explain\")\n"
  33244. " (\"random_page_cost\" 2)\n"
  33245. " (\"auto_explain.log_min_duration\" \"100 ms\")\n"
  33246. " (\"work_mem\" \"500 MB\")\n"
  33247. " (\"logging_collector\" #t)\n"
  33248. " (\"log_directory\" \"/var/log/postgresql\")))))))\n"
  33249. msgstr ""
  33250. #. type: item
  33251. #: guix-git/doc/guix.texi:22188
  33252. #, fuzzy, no-wrap
  33253. msgid "@code{log-destination} (default: @code{\"syslog\"})"
  33254. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  33255. #. type: table
  33256. #: guix-git/doc/guix.texi:22191
  33257. msgid "The logging method to use for PostgreSQL@. Multiple values are accepted, separated by commas."
  33258. msgstr ""
  33259. #. type: item
  33260. #: guix-git/doc/guix.texi:22192
  33261. #, fuzzy, no-wrap
  33262. msgid "@code{hba-file} (default: @code{%default-postgres-hba})"
  33263. msgstr "@code{mate}(默认值:@code{mate})"
  33264. #. type: table
  33265. #: guix-git/doc/guix.texi:22195
  33266. msgid "Filename or G-expression for the host-based authentication configuration."
  33267. msgstr ""
  33268. #. type: item
  33269. #: guix-git/doc/guix.texi:22196
  33270. #, fuzzy, no-wrap
  33271. msgid "@code{ident-file} (default: @code{%default-postgres-ident})"
  33272. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  33273. #. type: table
  33274. #: guix-git/doc/guix.texi:22198
  33275. msgid "Filename or G-expression for the user name mapping configuration."
  33276. msgstr ""
  33277. #. type: item
  33278. #: guix-git/doc/guix.texi:22199
  33279. #, fuzzy, no-wrap
  33280. msgid "@code{socket-directory} (default: @code{\"/var/run/postgresql\"})"
  33281. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  33282. #. type: table
  33283. #: guix-git/doc/guix.texi:22204
  33284. 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."
  33285. msgstr ""
  33286. #. type: table
  33287. #: guix-git/doc/guix.texi:22207
  33288. msgid "By default, the @code{#false} value means the PostgreSQL default value will be used, which is currently @samp{/tmp}."
  33289. msgstr ""
  33290. #. type: table
  33291. #: guix-git/doc/guix.texi:22212
  33292. 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."
  33293. msgstr ""
  33294. #. type: table
  33295. #: guix-git/doc/guix.texi:22218
  33296. 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}."
  33297. msgstr ""
  33298. #. type: deffn
  33299. #: guix-git/doc/guix.texi:22222
  33300. #, no-wrap
  33301. msgid "{Scheme Variable} postgresql-role-service-type"
  33302. msgstr ""
  33303. #. type: deffn
  33304. #: guix-git/doc/guix.texi:22225
  33305. msgid "This service allows to create PostgreSQL roles and databases after PostgreSQL service start. Here is an example of its use."
  33306. msgstr ""
  33307. #. type: lisp
  33308. #: guix-git/doc/guix.texi:22233
  33309. #, no-wrap
  33310. msgid ""
  33311. "(service postgresql-role-service-type\n"
  33312. " (postgresql-role-configuration\n"
  33313. " (roles\n"
  33314. " (list (postgresql-role\n"
  33315. " (name \"test\")\n"
  33316. " (create-database? #t))))))\n"
  33317. msgstr ""
  33318. #. type: deffn
  33319. #: guix-git/doc/guix.texi:22237
  33320. msgid "This service can be extended with extra roles, as in this example:"
  33321. msgstr ""
  33322. #. type: lisp
  33323. #: guix-git/doc/guix.texi:22243
  33324. #, no-wrap
  33325. msgid ""
  33326. "(service-extension postgresql-role-service-type\n"
  33327. " (const (postgresql-role\n"
  33328. " (name \"alice\")\n"
  33329. " (create-database? #t))))\n"
  33330. msgstr ""
  33331. #. type: deftp
  33332. #: guix-git/doc/guix.texi:22246
  33333. #, fuzzy, no-wrap
  33334. msgid "{Data Type} postgresql-role"
  33335. msgstr "{数据类型} build-machine"
  33336. #. type: deftp
  33337. #: guix-git/doc/guix.texi:22252
  33338. 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."
  33339. msgstr ""
  33340. #. type: table
  33341. #: guix-git/doc/guix.texi:22256
  33342. #, fuzzy
  33343. msgid "The role name."
  33344. msgstr "仓库monad"
  33345. #. type: item
  33346. #: guix-git/doc/guix.texi:22257
  33347. #, fuzzy, no-wrap
  33348. msgid "@code{permissions} (default: @code{'(createdb login)})"
  33349. msgstr "@code{includes}(默认值:@code{'()})"
  33350. #. type: table
  33351. #: guix-git/doc/guix.texi:22261
  33352. msgid "The role permissions list. Supported permissions are @code{bypassrls}, @code{createdb}, @code{createrole}, @code{login}, @code{replication} and @code{superuser}."
  33353. msgstr ""
  33354. #. type: item
  33355. #: guix-git/doc/guix.texi:22262
  33356. #, fuzzy, no-wrap
  33357. msgid "@code{create-database?} (default: @code{#f})"
  33358. msgstr "@code{challenge}(默认值:@code{#f})"
  33359. #. type: table
  33360. #: guix-git/doc/guix.texi:22264
  33361. msgid "Whether to create a database with the same name as the role."
  33362. msgstr ""
  33363. #. type: deftp
  33364. #: guix-git/doc/guix.texi:22268
  33365. #, fuzzy, no-wrap
  33366. msgid "{Data Type} postgresql-role-configuration"
  33367. msgstr "管理操作系统配置。"
  33368. #. type: deftp
  33369. #: guix-git/doc/guix.texi:22271
  33370. #, fuzzy
  33371. msgid "Data type representing the configuration of @var{postgresql-role-service-type}."
  33372. msgstr "管理操作系统配置。"
  33373. #. type: item
  33374. #: guix-git/doc/guix.texi:22273
  33375. #, fuzzy, no-wrap
  33376. msgid "@code{host} (default: @code{\"/var/run/postgresql\"})"
  33377. msgstr "@code{port}(默认值:@code{22})"
  33378. #. type: table
  33379. #: guix-git/doc/guix.texi:22275
  33380. msgid "The PostgreSQL host to connect to."
  33381. msgstr ""
  33382. #. type: item
  33383. #: guix-git/doc/guix.texi:22276
  33384. #, fuzzy, no-wrap
  33385. msgid "@code{log} (default: @code{\"/var/log/postgresql_roles.log\"})"
  33386. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  33387. #. type: table
  33388. #: guix-git/doc/guix.texi:22278
  33389. #, fuzzy
  33390. msgid "File name of the log file."
  33391. msgstr "远程机器的主机名。"
  33392. #. type: item
  33393. #: guix-git/doc/guix.texi:22279
  33394. #, fuzzy, no-wrap
  33395. msgid "@code{roles} (default: @code{'()})"
  33396. msgstr "@code{features} (@code{'()})"
  33397. #. type: table
  33398. #: guix-git/doc/guix.texi:22281
  33399. msgid "The initial PostgreSQL roles to create."
  33400. msgstr ""
  33401. #. type: subsubheading
  33402. #: guix-git/doc/guix.texi:22284
  33403. #, no-wrap
  33404. msgid "MariaDB/MySQL"
  33405. msgstr ""
  33406. #. type: defvr
  33407. #: guix-git/doc/guix.texi:22286
  33408. #, no-wrap
  33409. msgid "{Scheme Variable} mysql-service-type"
  33410. msgstr ""
  33411. #. type: defvr
  33412. #: guix-git/doc/guix.texi:22290
  33413. 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."
  33414. msgstr ""
  33415. #. type: deftp
  33416. #: guix-git/doc/guix.texi:22292
  33417. #, no-wrap
  33418. msgid "{Data Type} mysql-configuration"
  33419. msgstr ""
  33420. #. type: deftp
  33421. #: guix-git/doc/guix.texi:22294
  33422. #, fuzzy
  33423. msgid "Data type representing the configuration of @var{mysql-service-type}."
  33424. msgstr "管理操作系统配置。"
  33425. #. type: item
  33426. #: guix-git/doc/guix.texi:22296
  33427. #, no-wrap
  33428. msgid "@code{mysql} (default: @var{mariadb})"
  33429. msgstr ""
  33430. #. type: table
  33431. #: guix-git/doc/guix.texi:22299
  33432. msgid "Package object of the MySQL database server, can be either @var{mariadb} or @var{mysql}."
  33433. msgstr ""
  33434. #. type: table
  33435. #: guix-git/doc/guix.texi:22302
  33436. msgid "For MySQL, a temporary root password will be displayed at activation time. For MariaDB, the root password is empty."
  33437. msgstr ""
  33438. #. type: item
  33439. #: guix-git/doc/guix.texi:22303 guix-git/doc/guix.texi:26123
  33440. #, no-wrap
  33441. msgid "@code{bind-address} (default: @code{\"127.0.0.1\"})"
  33442. msgstr ""
  33443. #. type: table
  33444. #: guix-git/doc/guix.texi:22306
  33445. msgid "The IP on which to listen for network connections. Use @code{\"0.0.0.0\"} to bind to all available network interfaces."
  33446. msgstr ""
  33447. #. type: item
  33448. #: guix-git/doc/guix.texi:22307
  33449. #, no-wrap
  33450. msgid "@code{port} (default: @code{3306})"
  33451. msgstr ""
  33452. #. type: table
  33453. #: guix-git/doc/guix.texi:22309
  33454. msgid "TCP port on which the database server listens for incoming connections."
  33455. msgstr ""
  33456. #. type: item
  33457. #: guix-git/doc/guix.texi:22310
  33458. #, fuzzy, no-wrap
  33459. msgid "@code{socket} (default: @code{\"/run/mysqld/mysqld.sock\"})"
  33460. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  33461. #. type: table
  33462. #: guix-git/doc/guix.texi:22312
  33463. msgid "Socket file to use for local (non-network) connections."
  33464. msgstr ""
  33465. #. type: table
  33466. #: guix-git/doc/guix.texi:22315
  33467. msgid "Additional settings for the @file{my.cnf} configuration file."
  33468. msgstr ""
  33469. #. type: item
  33470. #: guix-git/doc/guix.texi:22316
  33471. #, fuzzy, no-wrap
  33472. msgid "@code{extra-environment} (default: @code{#~'()})"
  33473. msgstr "@code{features} (@code{'()})"
  33474. #. type: table
  33475. #: guix-git/doc/guix.texi:22318
  33476. msgid "List of environment variables passed to the @command{mysqld} process."
  33477. msgstr ""
  33478. #. type: item
  33479. #: guix-git/doc/guix.texi:22319
  33480. #, fuzzy, no-wrap
  33481. msgid "@code{auto-upgrade?} (default: @code{#t})"
  33482. msgstr "@code{mate}(默认值:@code{mate})"
  33483. #. type: table
  33484. #: guix-git/doc/guix.texi:22324
  33485. 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."
  33486. msgstr ""
  33487. #. type: subsubheading
  33488. #: guix-git/doc/guix.texi:22328
  33489. #, no-wrap
  33490. msgid "Memcached"
  33491. msgstr ""
  33492. #. type: defvr
  33493. #: guix-git/doc/guix.texi:22330
  33494. #, no-wrap
  33495. msgid "{Scheme Variable} memcached-service-type"
  33496. msgstr ""
  33497. #. type: defvr
  33498. #: guix-git/doc/guix.texi:22334
  33499. 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."
  33500. msgstr ""
  33501. #. type: lisp
  33502. #: guix-git/doc/guix.texi:22338
  33503. #, no-wrap
  33504. msgid "(service memcached-service-type)\n"
  33505. msgstr ""
  33506. #. type: deftp
  33507. #: guix-git/doc/guix.texi:22340
  33508. #, no-wrap
  33509. msgid "{Data Type} memcached-configuration"
  33510. msgstr ""
  33511. #. type: deftp
  33512. #: guix-git/doc/guix.texi:22342
  33513. msgid "Data type representing the configuration of memcached."
  33514. msgstr ""
  33515. #. type: item
  33516. #: guix-git/doc/guix.texi:22344
  33517. #, no-wrap
  33518. msgid "@code{memcached} (default: @code{memcached})"
  33519. msgstr ""
  33520. #. type: table
  33521. #: guix-git/doc/guix.texi:22346
  33522. msgid "The Memcached package to use."
  33523. msgstr ""
  33524. #. type: item
  33525. #: guix-git/doc/guix.texi:22347
  33526. #, no-wrap
  33527. msgid "@code{interfaces} (default: @code{'(\"0.0.0.0\")})"
  33528. msgstr ""
  33529. #. type: table
  33530. #: guix-git/doc/guix.texi:22349
  33531. msgid "Network interfaces on which to listen."
  33532. msgstr ""
  33533. #. type: item
  33534. #: guix-git/doc/guix.texi:22350
  33535. #, no-wrap
  33536. msgid "@code{tcp-port} (default: @code{11211})"
  33537. msgstr ""
  33538. #. type: table
  33539. #: guix-git/doc/guix.texi:22352
  33540. msgid "Port on which to accept connections."
  33541. msgstr ""
  33542. #. type: item
  33543. #: guix-git/doc/guix.texi:22353
  33544. #, no-wrap
  33545. msgid "@code{udp-port} (default: @code{11211})"
  33546. msgstr ""
  33547. #. type: table
  33548. #: guix-git/doc/guix.texi:22356
  33549. msgid "Port on which to accept UDP connections on, a value of 0 will disable listening on a UDP socket."
  33550. msgstr ""
  33551. #. type: item
  33552. #: guix-git/doc/guix.texi:22357
  33553. #, no-wrap
  33554. msgid "@code{additional-options} (default: @code{'()})"
  33555. msgstr ""
  33556. #. type: table
  33557. #: guix-git/doc/guix.texi:22359
  33558. msgid "Additional command line options to pass to @code{memcached}."
  33559. msgstr ""
  33560. #. type: subsubheading
  33561. #: guix-git/doc/guix.texi:22362
  33562. #, no-wrap
  33563. msgid "Redis"
  33564. msgstr ""
  33565. #. type: defvr
  33566. #: guix-git/doc/guix.texi:22364
  33567. #, no-wrap
  33568. msgid "{Scheme Variable} redis-service-type"
  33569. msgstr ""
  33570. #. type: defvr
  33571. #: guix-git/doc/guix.texi:22367
  33572. msgid "This is the service type for the @uref{https://redis.io/, Redis} key/value store, whose value is a @code{redis-configuration} object."
  33573. msgstr ""
  33574. #. type: deftp
  33575. #: guix-git/doc/guix.texi:22369
  33576. #, no-wrap
  33577. msgid "{Data Type} redis-configuration"
  33578. msgstr ""
  33579. #. type: deftp
  33580. #: guix-git/doc/guix.texi:22371
  33581. msgid "Data type representing the configuration of redis."
  33582. msgstr ""
  33583. #. type: item
  33584. #: guix-git/doc/guix.texi:22373
  33585. #, no-wrap
  33586. msgid "@code{redis} (default: @code{redis})"
  33587. msgstr ""
  33588. #. type: table
  33589. #: guix-git/doc/guix.texi:22375
  33590. msgid "The Redis package to use."
  33591. msgstr ""
  33592. #. type: item
  33593. #: guix-git/doc/guix.texi:22376
  33594. #, no-wrap
  33595. msgid "@code{bind} (default: @code{\"127.0.0.1\"})"
  33596. msgstr ""
  33597. #. type: table
  33598. #: guix-git/doc/guix.texi:22378
  33599. msgid "Network interface on which to listen."
  33600. msgstr ""
  33601. #. type: item
  33602. #: guix-git/doc/guix.texi:22379
  33603. #, no-wrap
  33604. msgid "@code{port} (default: @code{6379})"
  33605. msgstr ""
  33606. #. type: table
  33607. #: guix-git/doc/guix.texi:22382
  33608. msgid "Port on which to accept connections on, a value of 0 will disable listening on a TCP socket."
  33609. msgstr ""
  33610. #. type: item
  33611. #: guix-git/doc/guix.texi:22383
  33612. #, no-wrap
  33613. msgid "@code{working-directory} (default: @code{\"/var/lib/redis\"})"
  33614. msgstr ""
  33615. #. type: table
  33616. #: guix-git/doc/guix.texi:22385
  33617. msgid "Directory in which to store the database and related files."
  33618. msgstr ""
  33619. #. type: cindex
  33620. #: guix-git/doc/guix.texi:22391
  33621. #, no-wrap
  33622. msgid "mail"
  33623. msgstr ""
  33624. #. type: cindex
  33625. #: guix-git/doc/guix.texi:22392
  33626. #, no-wrap
  33627. msgid "email"
  33628. msgstr ""
  33629. #. type: Plain text
  33630. #: guix-git/doc/guix.texi:22397
  33631. 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."
  33632. msgstr ""
  33633. #. type: subsubheading
  33634. #: guix-git/doc/guix.texi:22398
  33635. #, no-wrap
  33636. msgid "Dovecot Service"
  33637. msgstr ""
  33638. #. type: deffn
  33639. #: guix-git/doc/guix.texi:22400
  33640. #, no-wrap
  33641. msgid "{Scheme Procedure} dovecot-service [#:config (dovecot-configuration)]"
  33642. msgstr ""
  33643. #. type: deffn
  33644. #: guix-git/doc/guix.texi:22402
  33645. msgid "Return a service that runs the Dovecot IMAP/POP3/LMTP mail server."
  33646. msgstr ""
  33647. #. type: Plain text
  33648. #: guix-git/doc/guix.texi:22412
  33649. 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."
  33650. msgstr ""
  33651. #. type: Plain text
  33652. #: guix-git/doc/guix.texi:22415
  33653. msgid "For example, to specify that mail is located at @code{maildir~/.mail}, one would instantiate the Dovecot service like this:"
  33654. msgstr ""
  33655. #. type: lisp
  33656. #: guix-git/doc/guix.texi:22420
  33657. #, no-wrap
  33658. msgid ""
  33659. "(dovecot-service #:config\n"
  33660. " (dovecot-configuration\n"
  33661. " (mail-location \"maildir:~/.mail\")))\n"
  33662. msgstr ""
  33663. #. type: Plain text
  33664. #: guix-git/doc/guix.texi:22428
  33665. 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."
  33666. msgstr ""
  33667. #. type: Plain text
  33668. #: guix-git/doc/guix.texi:22438
  33669. msgid "Available @code{dovecot-configuration} fields are:"
  33670. msgstr ""
  33671. #. type: deftypevr
  33672. #: guix-git/doc/guix.texi:22439
  33673. #, no-wrap
  33674. msgid "{@code{dovecot-configuration} parameter} package dovecot"
  33675. msgstr ""
  33676. #. type: deftypevr
  33677. #: guix-git/doc/guix.texi:22441 guix-git/doc/guix.texi:23790
  33678. msgid "The dovecot package."
  33679. msgstr ""
  33680. #. type: deftypevr
  33681. #: guix-git/doc/guix.texi:22443
  33682. #, no-wrap
  33683. msgid "{@code{dovecot-configuration} parameter} comma-separated-string-list listen"
  33684. msgstr ""
  33685. #. type: deftypevr
  33686. #: guix-git/doc/guix.texi:22449
  33687. 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."
  33688. msgstr ""
  33689. #. type: deftypevr
  33690. #: guix-git/doc/guix.texi:22451
  33691. #, no-wrap
  33692. msgid "{@code{dovecot-configuration} parameter} protocol-configuration-list protocols"
  33693. msgstr ""
  33694. #. type: deftypevr
  33695. #: guix-git/doc/guix.texi:22454
  33696. msgid "List of protocols we want to serve. Available protocols include @samp{imap}, @samp{pop3}, and @samp{lmtp}."
  33697. msgstr ""
  33698. #. type: deftypevr
  33699. #: guix-git/doc/guix.texi:22456
  33700. msgid "Available @code{protocol-configuration} fields are:"
  33701. msgstr ""
  33702. #. type: deftypevr
  33703. #: guix-git/doc/guix.texi:22457
  33704. #, no-wrap
  33705. msgid "{@code{protocol-configuration} parameter} string name"
  33706. msgstr ""
  33707. #. type: deftypevr
  33708. #: guix-git/doc/guix.texi:22459
  33709. msgid "The name of the protocol."
  33710. msgstr ""
  33711. #. type: deftypevr
  33712. #: guix-git/doc/guix.texi:22461
  33713. #, no-wrap
  33714. msgid "{@code{protocol-configuration} parameter} string auth-socket-path"
  33715. msgstr ""
  33716. #. type: deftypevr
  33717. #: guix-git/doc/guix.texi:22465
  33718. 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\"}."
  33719. msgstr ""
  33720. #. type: deftypevr
  33721. #: guix-git/doc/guix.texi:22467
  33722. #, no-wrap
  33723. msgid "{@code{protocol-configuration} parameter} boolean imap-metadata?"
  33724. msgstr ""
  33725. #. type: deftypevr
  33726. #: guix-git/doc/guix.texi:22472
  33727. 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."
  33728. msgstr ""
  33729. #. type: deftypevr
  33730. #: guix-git/doc/guix.texi:22475
  33731. msgid "If this is @samp{#t}, you must also specify a dictionary @i{via} the @code{mail-attribute-dict} setting."
  33732. msgstr ""
  33733. #. type: deftypevr
  33734. #: guix-git/doc/guix.texi:22480
  33735. #, no-wrap
  33736. msgid "{@code{protocol-configuration} parameter} space-separated-string-list managesieve-notify-capabilities"
  33737. msgstr ""
  33738. #. type: deftypevr
  33739. #: guix-git/doc/guix.texi:22485
  33740. 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."
  33741. msgstr ""
  33742. #. type: deftypevr
  33743. #: guix-git/doc/guix.texi:22489
  33744. #, no-wrap
  33745. msgid "{@code{protocol-configuration} parameter} space-separated-string-list managesieve-sieve-capability"
  33746. msgstr ""
  33747. #. type: deftypevr
  33748. #: guix-git/doc/guix.texi:22494
  33749. 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."
  33750. msgstr ""
  33751. #. type: deftypevr
  33752. #: guix-git/doc/guix.texi:22499
  33753. #, no-wrap
  33754. msgid "{@code{protocol-configuration} parameter} space-separated-string-list mail-plugins"
  33755. msgstr ""
  33756. #. type: deftypevr
  33757. #: guix-git/doc/guix.texi:22501
  33758. msgid "Space separated list of plugins to load."
  33759. msgstr ""
  33760. #. type: deftypevr
  33761. #: guix-git/doc/guix.texi:22503
  33762. #, no-wrap
  33763. msgid "{@code{protocol-configuration} parameter} non-negative-integer mail-max-userip-connections"
  33764. msgstr ""
  33765. #. type: deftypevr
  33766. #: guix-git/doc/guix.texi:22507
  33767. 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}."
  33768. msgstr ""
  33769. #. type: deftypevr
  33770. #: guix-git/doc/guix.texi:22511
  33771. #, no-wrap
  33772. msgid "{@code{dovecot-configuration} parameter} service-configuration-list services"
  33773. msgstr ""
  33774. #. type: deftypevr
  33775. #: guix-git/doc/guix.texi:22515
  33776. msgid "List of services to enable. Available services include @samp{imap}, @samp{imap-login}, @samp{pop3}, @samp{pop3-login}, @samp{auth}, and @samp{lmtp}."
  33777. msgstr ""
  33778. #. type: deftypevr
  33779. #: guix-git/doc/guix.texi:22517
  33780. msgid "Available @code{service-configuration} fields are:"
  33781. msgstr ""
  33782. #. type: deftypevr
  33783. #: guix-git/doc/guix.texi:22518
  33784. #, no-wrap
  33785. msgid "{@code{service-configuration} parameter} string kind"
  33786. msgstr ""
  33787. #. type: deftypevr
  33788. #: guix-git/doc/guix.texi:22523
  33789. 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."
  33790. msgstr ""
  33791. #. type: deftypevr
  33792. #: guix-git/doc/guix.texi:22525
  33793. #, no-wrap
  33794. msgid "{@code{service-configuration} parameter} listener-configuration-list listeners"
  33795. msgstr ""
  33796. #. type: deftypevr
  33797. #: guix-git/doc/guix.texi:22530
  33798. 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{()}."
  33799. msgstr ""
  33800. #. type: deftypevr
  33801. #: guix-git/doc/guix.texi:22532
  33802. msgid "Available @code{unix-listener-configuration} fields are:"
  33803. msgstr ""
  33804. #. type: deftypevr
  33805. #: guix-git/doc/guix.texi:22533
  33806. #, no-wrap
  33807. msgid "{@code{unix-listener-configuration} parameter} string path"
  33808. msgstr ""
  33809. #. type: deftypevr
  33810. #: guix-git/doc/guix.texi:22536 guix-git/doc/guix.texi:22559
  33811. msgid "Path to the file, relative to @code{base-dir} field. This is also used as the section name."
  33812. msgstr ""
  33813. #. type: deftypevr
  33814. #: guix-git/doc/guix.texi:22538
  33815. #, no-wrap
  33816. msgid "{@code{unix-listener-configuration} parameter} string mode"
  33817. msgstr ""
  33818. #. type: deftypevr
  33819. #: guix-git/doc/guix.texi:22541 guix-git/doc/guix.texi:22564
  33820. msgid "The access mode for the socket. Defaults to @samp{\"0600\"}."
  33821. msgstr ""
  33822. #. type: deftypevr
  33823. #: guix-git/doc/guix.texi:22543
  33824. #, no-wrap
  33825. msgid "{@code{unix-listener-configuration} parameter} string user"
  33826. msgstr ""
  33827. #. type: deftypevr
  33828. #: guix-git/doc/guix.texi:22546 guix-git/doc/guix.texi:22569
  33829. msgid "The user to own the socket. Defaults to @samp{\"\"}."
  33830. msgstr ""
  33831. #. type: deftypevr
  33832. #: guix-git/doc/guix.texi:22548
  33833. #, no-wrap
  33834. msgid "{@code{unix-listener-configuration} parameter} string group"
  33835. msgstr ""
  33836. #. type: deftypevr
  33837. #: guix-git/doc/guix.texi:22551 guix-git/doc/guix.texi:22574
  33838. msgid "The group to own the socket. Defaults to @samp{\"\"}."
  33839. msgstr ""
  33840. #. type: deftypevr
  33841. #: guix-git/doc/guix.texi:22555
  33842. msgid "Available @code{fifo-listener-configuration} fields are:"
  33843. msgstr ""
  33844. #. type: deftypevr
  33845. #: guix-git/doc/guix.texi:22556
  33846. #, no-wrap
  33847. msgid "{@code{fifo-listener-configuration} parameter} string path"
  33848. msgstr ""
  33849. #. type: deftypevr
  33850. #: guix-git/doc/guix.texi:22561
  33851. #, no-wrap
  33852. msgid "{@code{fifo-listener-configuration} parameter} string mode"
  33853. msgstr ""
  33854. #. type: deftypevr
  33855. #: guix-git/doc/guix.texi:22566
  33856. #, no-wrap
  33857. msgid "{@code{fifo-listener-configuration} parameter} string user"
  33858. msgstr ""
  33859. #. type: deftypevr
  33860. #: guix-git/doc/guix.texi:22571
  33861. #, no-wrap
  33862. msgid "{@code{fifo-listener-configuration} parameter} string group"
  33863. msgstr ""
  33864. #. type: deftypevr
  33865. #: guix-git/doc/guix.texi:22578
  33866. msgid "Available @code{inet-listener-configuration} fields are:"
  33867. msgstr ""
  33868. #. type: deftypevr
  33869. #: guix-git/doc/guix.texi:22579
  33870. #, no-wrap
  33871. msgid "{@code{inet-listener-configuration} parameter} string protocol"
  33872. msgstr ""
  33873. #. type: deftypevr
  33874. #: guix-git/doc/guix.texi:22581
  33875. msgid "The protocol to listen for."
  33876. msgstr ""
  33877. #. type: deftypevr
  33878. #: guix-git/doc/guix.texi:22583
  33879. #, no-wrap
  33880. msgid "{@code{inet-listener-configuration} parameter} string address"
  33881. msgstr ""
  33882. #. type: deftypevr
  33883. #: guix-git/doc/guix.texi:22586
  33884. msgid "The address on which to listen, or empty for all addresses. Defaults to @samp{\"\"}."
  33885. msgstr ""
  33886. #. type: deftypevr
  33887. #: guix-git/doc/guix.texi:22588
  33888. #, no-wrap
  33889. msgid "{@code{inet-listener-configuration} parameter} non-negative-integer port"
  33890. msgstr ""
  33891. #. type: deftypevr
  33892. #: guix-git/doc/guix.texi:22590
  33893. msgid "The port on which to listen."
  33894. msgstr ""
  33895. #. type: deftypevr
  33896. #: guix-git/doc/guix.texi:22592
  33897. #, no-wrap
  33898. msgid "{@code{inet-listener-configuration} parameter} boolean ssl?"
  33899. msgstr ""
  33900. #. type: deftypevr
  33901. #: guix-git/doc/guix.texi:22596
  33902. msgid "Whether to use SSL for this service; @samp{yes}, @samp{no}, or @samp{required}. Defaults to @samp{#t}."
  33903. msgstr ""
  33904. #. type: deftypevr
  33905. #: guix-git/doc/guix.texi:22600
  33906. #, no-wrap
  33907. msgid "{@code{service-configuration} parameter} non-negative-integer client-limit"
  33908. msgstr ""
  33909. #. type: deftypevr
  33910. #: guix-git/doc/guix.texi:22605
  33911. 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."
  33912. msgstr ""
  33913. #. type: deftypevr
  33914. #: guix-git/doc/guix.texi:22610
  33915. #, no-wrap
  33916. msgid "{@code{service-configuration} parameter} non-negative-integer service-count"
  33917. msgstr ""
  33918. #. type: deftypevr
  33919. #: guix-git/doc/guix.texi:22615
  33920. 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}."
  33921. msgstr ""
  33922. #. type: deftypevr
  33923. #: guix-git/doc/guix.texi:22618
  33924. #, no-wrap
  33925. msgid "{@code{service-configuration} parameter} non-negative-integer process-limit"
  33926. msgstr ""
  33927. #. type: deftypevr
  33928. #: guix-git/doc/guix.texi:22621
  33929. msgid "Maximum number of processes that can exist for this service. If set to 0, @code{default-process-limit} is used instead."
  33930. msgstr ""
  33931. #. type: deftypevr
  33932. #: guix-git/doc/guix.texi:22626
  33933. #, no-wrap
  33934. msgid "{@code{service-configuration} parameter} non-negative-integer process-min-avail"
  33935. msgstr ""
  33936. #. type: deftypevr
  33937. #: guix-git/doc/guix.texi:22629
  33938. msgid "Number of processes to always keep waiting for more connections. Defaults to @samp{0}."
  33939. msgstr ""
  33940. #. type: deftypevr
  33941. #: guix-git/doc/guix.texi:22631
  33942. #, no-wrap
  33943. msgid "{@code{service-configuration} parameter} non-negative-integer vsz-limit"
  33944. msgstr ""
  33945. #. type: deftypevr
  33946. #: guix-git/doc/guix.texi:22635
  33947. msgid "If you set @samp{service-count 0}, you probably need to grow this. Defaults to @samp{256000000}."
  33948. msgstr ""
  33949. #. type: deftypevr
  33950. #: guix-git/doc/guix.texi:22639
  33951. #, no-wrap
  33952. msgid "{@code{dovecot-configuration} parameter} dict-configuration dict"
  33953. msgstr ""
  33954. #. type: deftypevr
  33955. #: guix-git/doc/guix.texi:22642
  33956. msgid "Dict configuration, as created by the @code{dict-configuration} constructor."
  33957. msgstr ""
  33958. #. type: deftypevr
  33959. #: guix-git/doc/guix.texi:22644
  33960. msgid "Available @code{dict-configuration} fields are:"
  33961. msgstr ""
  33962. #. type: deftypevr
  33963. #: guix-git/doc/guix.texi:22645
  33964. #, no-wrap
  33965. msgid "{@code{dict-configuration} parameter} free-form-fields entries"
  33966. msgstr ""
  33967. #. type: deftypevr
  33968. #: guix-git/doc/guix.texi:22648
  33969. msgid "A list of key-value pairs that this dict should hold. Defaults to @samp{()}."
  33970. msgstr ""
  33971. #. type: deftypevr
  33972. #: guix-git/doc/guix.texi:22652
  33973. #, no-wrap
  33974. msgid "{@code{dovecot-configuration} parameter} passdb-configuration-list passdbs"
  33975. msgstr ""
  33976. #. type: deftypevr
  33977. #: guix-git/doc/guix.texi:22655
  33978. msgid "A list of passdb configurations, each one created by the @code{passdb-configuration} constructor."
  33979. msgstr ""
  33980. #. type: deftypevr
  33981. #: guix-git/doc/guix.texi:22657
  33982. msgid "Available @code{passdb-configuration} fields are:"
  33983. msgstr ""
  33984. #. type: deftypevr
  33985. #: guix-git/doc/guix.texi:22658
  33986. #, no-wrap
  33987. msgid "{@code{passdb-configuration} parameter} string driver"
  33988. msgstr ""
  33989. #. type: deftypevr
  33990. #: guix-git/doc/guix.texi:22663
  33991. 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\"}."
  33992. msgstr ""
  33993. #. type: deftypevr
  33994. #: guix-git/doc/guix.texi:22665
  33995. #, no-wrap
  33996. msgid "{@code{passdb-configuration} parameter} space-separated-string-list args"
  33997. msgstr ""
  33998. #. type: deftypevr
  33999. #: guix-git/doc/guix.texi:22668
  34000. msgid "Space separated list of arguments to the passdb driver. Defaults to @samp{\"\"}."
  34001. msgstr ""
  34002. #. type: deftypevr
  34003. #: guix-git/doc/guix.texi:22672
  34004. #, no-wrap
  34005. msgid "{@code{dovecot-configuration} parameter} userdb-configuration-list userdbs"
  34006. msgstr ""
  34007. #. type: deftypevr
  34008. #: guix-git/doc/guix.texi:22675
  34009. msgid "List of userdb configurations, each one created by the @code{userdb-configuration} constructor."
  34010. msgstr ""
  34011. #. type: deftypevr
  34012. #: guix-git/doc/guix.texi:22677
  34013. msgid "Available @code{userdb-configuration} fields are:"
  34014. msgstr ""
  34015. #. type: deftypevr
  34016. #: guix-git/doc/guix.texi:22678
  34017. #, no-wrap
  34018. msgid "{@code{userdb-configuration} parameter} string driver"
  34019. msgstr ""
  34020. #. type: deftypevr
  34021. #: guix-git/doc/guix.texi:22682
  34022. msgid "The driver that the userdb should use. Valid values include @samp{passwd} and @samp{static}. Defaults to @samp{\"passwd\"}."
  34023. msgstr ""
  34024. #. type: deftypevr
  34025. #: guix-git/doc/guix.texi:22684
  34026. #, no-wrap
  34027. msgid "{@code{userdb-configuration} parameter} space-separated-string-list args"
  34028. msgstr ""
  34029. #. type: deftypevr
  34030. #: guix-git/doc/guix.texi:22687
  34031. msgid "Space separated list of arguments to the userdb driver. Defaults to @samp{\"\"}."
  34032. msgstr ""
  34033. #. type: deftypevr
  34034. #: guix-git/doc/guix.texi:22689
  34035. #, no-wrap
  34036. msgid "{@code{userdb-configuration} parameter} free-form-args override-fields"
  34037. msgstr ""
  34038. #. type: deftypevr
  34039. #: guix-git/doc/guix.texi:22692
  34040. msgid "Override fields from passwd. Defaults to @samp{()}."
  34041. msgstr ""
  34042. #. type: deftypevr
  34043. #: guix-git/doc/guix.texi:22696
  34044. #, no-wrap
  34045. msgid "{@code{dovecot-configuration} parameter} plugin-configuration plugin-configuration"
  34046. msgstr ""
  34047. #. type: deftypevr
  34048. #: guix-git/doc/guix.texi:22699
  34049. msgid "Plug-in configuration, created by the @code{plugin-configuration} constructor."
  34050. msgstr ""
  34051. #. type: deftypevr
  34052. #: guix-git/doc/guix.texi:22701
  34053. #, no-wrap
  34054. msgid "{@code{dovecot-configuration} parameter} list-of-namespace-configuration namespaces"
  34055. msgstr ""
  34056. #. type: deftypevr
  34057. #: guix-git/doc/guix.texi:22704
  34058. msgid "List of namespaces. Each item in the list is created by the @code{namespace-configuration} constructor."
  34059. msgstr ""
  34060. #. type: deftypevr
  34061. #: guix-git/doc/guix.texi:22706
  34062. msgid "Available @code{namespace-configuration} fields are:"
  34063. msgstr ""
  34064. #. type: deftypevr
  34065. #: guix-git/doc/guix.texi:22707
  34066. #, no-wrap
  34067. msgid "{@code{namespace-configuration} parameter} string name"
  34068. msgstr ""
  34069. #. type: deftypevr
  34070. #: guix-git/doc/guix.texi:22709
  34071. msgid "Name for this namespace."
  34072. msgstr ""
  34073. #. type: deftypevr
  34074. #: guix-git/doc/guix.texi:22711
  34075. #, no-wrap
  34076. msgid "{@code{namespace-configuration} parameter} string type"
  34077. msgstr ""
  34078. #. type: deftypevr
  34079. #: guix-git/doc/guix.texi:22714
  34080. msgid "Namespace type: @samp{private}, @samp{shared} or @samp{public}. Defaults to @samp{\"private\"}."
  34081. msgstr ""
  34082. #. type: deftypevr
  34083. #: guix-git/doc/guix.texi:22716
  34084. #, no-wrap
  34085. msgid "{@code{namespace-configuration} parameter} string separator"
  34086. msgstr ""
  34087. #. type: deftypevr
  34088. #: guix-git/doc/guix.texi:22722
  34089. 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{\"\"}."
  34090. msgstr ""
  34091. #. type: deftypevr
  34092. #: guix-git/doc/guix.texi:22724
  34093. #, no-wrap
  34094. msgid "{@code{namespace-configuration} parameter} string prefix"
  34095. msgstr ""
  34096. #. type: deftypevr
  34097. #: guix-git/doc/guix.texi:22728
  34098. msgid "Prefix required to access this namespace. This needs to be different for all namespaces. For example @samp{Public/}. Defaults to @samp{\"\"}."
  34099. msgstr ""
  34100. #. type: deftypevr
  34101. #: guix-git/doc/guix.texi:22730
  34102. #, no-wrap
  34103. msgid "{@code{namespace-configuration} parameter} string location"
  34104. msgstr ""
  34105. #. type: deftypevr
  34106. #: guix-git/doc/guix.texi:22734
  34107. 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{\"\"}."
  34108. msgstr ""
  34109. #. type: deftypevr
  34110. #: guix-git/doc/guix.texi:22736
  34111. #, no-wrap
  34112. msgid "{@code{namespace-configuration} parameter} boolean inbox?"
  34113. msgstr ""
  34114. #. type: deftypevr
  34115. #: guix-git/doc/guix.texi:22740
  34116. msgid "There can be only one INBOX, and this setting defines which namespace has it. Defaults to @samp{#f}."
  34117. msgstr ""
  34118. #. type: deftypevr
  34119. #: guix-git/doc/guix.texi:22742
  34120. #, no-wrap
  34121. msgid "{@code{namespace-configuration} parameter} boolean hidden?"
  34122. msgstr ""
  34123. #. type: deftypevr
  34124. #: guix-git/doc/guix.texi:22750
  34125. 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}."
  34126. msgstr ""
  34127. #. type: deftypevr
  34128. #: guix-git/doc/guix.texi:22752
  34129. #, no-wrap
  34130. msgid "{@code{namespace-configuration} parameter} boolean list?"
  34131. msgstr ""
  34132. #. type: deftypevr
  34133. #: guix-git/doc/guix.texi:22758
  34134. 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}."
  34135. msgstr ""
  34136. #. type: deftypevr
  34137. #: guix-git/doc/guix.texi:22760
  34138. #, no-wrap
  34139. msgid "{@code{namespace-configuration} parameter} boolean subscriptions?"
  34140. msgstr ""
  34141. #. type: deftypevr
  34142. #: guix-git/doc/guix.texi:22765
  34143. 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}."
  34144. msgstr ""
  34145. #. type: deftypevr
  34146. #: guix-git/doc/guix.texi:22767
  34147. #, no-wrap
  34148. msgid "{@code{namespace-configuration} parameter} mailbox-configuration-list mailboxes"
  34149. msgstr ""
  34150. #. type: deftypevr
  34151. #: guix-git/doc/guix.texi:22770
  34152. msgid "List of predefined mailboxes in this namespace. Defaults to @samp{()}."
  34153. msgstr ""
  34154. #. type: deftypevr
  34155. #: guix-git/doc/guix.texi:22772
  34156. msgid "Available @code{mailbox-configuration} fields are:"
  34157. msgstr ""
  34158. #. type: deftypevr
  34159. #: guix-git/doc/guix.texi:22773
  34160. #, no-wrap
  34161. msgid "{@code{mailbox-configuration} parameter} string name"
  34162. msgstr ""
  34163. #. type: deftypevr
  34164. #: guix-git/doc/guix.texi:22775
  34165. msgid "Name for this mailbox."
  34166. msgstr ""
  34167. #. type: deftypevr
  34168. #: guix-git/doc/guix.texi:22777
  34169. #, no-wrap
  34170. msgid "{@code{mailbox-configuration} parameter} string auto"
  34171. msgstr ""
  34172. #. type: deftypevr
  34173. #: guix-git/doc/guix.texi:22781
  34174. msgid "@samp{create} will automatically create this mailbox. @samp{subscribe} will both create and subscribe to the mailbox. Defaults to @samp{\"no\"}."
  34175. msgstr ""
  34176. #. type: deftypevr
  34177. #: guix-git/doc/guix.texi:22783
  34178. #, no-wrap
  34179. msgid "{@code{mailbox-configuration} parameter} space-separated-string-list special-use"
  34180. msgstr ""
  34181. #. type: deftypevr
  34182. #: guix-git/doc/guix.texi:22788
  34183. 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{()}."
  34184. msgstr ""
  34185. #. type: deftypevr
  34186. #: guix-git/doc/guix.texi:22794
  34187. #, no-wrap
  34188. msgid "{@code{dovecot-configuration} parameter} file-name base-dir"
  34189. msgstr ""
  34190. #. type: deftypevr
  34191. #: guix-git/doc/guix.texi:22797
  34192. msgid "Base directory where to store runtime data. Defaults to @samp{\"/var/run/dovecot/\"}."
  34193. msgstr ""
  34194. #. type: deftypevr
  34195. #: guix-git/doc/guix.texi:22799
  34196. #, no-wrap
  34197. msgid "{@code{dovecot-configuration} parameter} string login-greeting"
  34198. msgstr ""
  34199. #. type: deftypevr
  34200. #: guix-git/doc/guix.texi:22802
  34201. msgid "Greeting message for clients. Defaults to @samp{\"Dovecot ready.\"}."
  34202. msgstr ""
  34203. #. type: deftypevr
  34204. #: guix-git/doc/guix.texi:22804
  34205. #, no-wrap
  34206. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list login-trusted-networks"
  34207. msgstr ""
  34208. #. type: deftypevr
  34209. #: guix-git/doc/guix.texi:22811
  34210. 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{()}."
  34211. msgstr ""
  34212. #. type: deftypevr
  34213. #: guix-git/doc/guix.texi:22813
  34214. #, no-wrap
  34215. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list login-access-sockets"
  34216. msgstr ""
  34217. #. type: deftypevr
  34218. #: guix-git/doc/guix.texi:22816
  34219. msgid "List of login access check sockets (e.g.@: tcpwrap). Defaults to @samp{()}."
  34220. msgstr ""
  34221. #. type: deftypevr
  34222. #: guix-git/doc/guix.texi:22818
  34223. #, no-wrap
  34224. msgid "{@code{dovecot-configuration} parameter} boolean verbose-proctitle?"
  34225. msgstr ""
  34226. #. type: deftypevr
  34227. #: guix-git/doc/guix.texi:22824
  34228. 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}."
  34229. msgstr ""
  34230. #. type: deftypevr
  34231. #: guix-git/doc/guix.texi:22826
  34232. #, no-wrap
  34233. msgid "{@code{dovecot-configuration} parameter} boolean shutdown-clients?"
  34234. msgstr ""
  34235. #. type: deftypevr
  34236. #: guix-git/doc/guix.texi:22832
  34237. 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}."
  34238. msgstr ""
  34239. #. type: deftypevr
  34240. #: guix-git/doc/guix.texi:22834
  34241. #, no-wrap
  34242. msgid "{@code{dovecot-configuration} parameter} non-negative-integer doveadm-worker-count"
  34243. msgstr ""
  34244. #. type: deftypevr
  34245. #: guix-git/doc/guix.texi:22838
  34246. 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}."
  34247. msgstr ""
  34248. #. type: deftypevr
  34249. #: guix-git/doc/guix.texi:22840
  34250. #, no-wrap
  34251. msgid "{@code{dovecot-configuration} parameter} string doveadm-socket-path"
  34252. msgstr ""
  34253. #. type: deftypevr
  34254. #: guix-git/doc/guix.texi:22843
  34255. msgid "UNIX socket or host:port used for connecting to doveadm server. Defaults to @samp{\"doveadm-server\"}."
  34256. msgstr ""
  34257. #. type: deftypevr
  34258. #: guix-git/doc/guix.texi:22845
  34259. #, no-wrap
  34260. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list import-environment"
  34261. msgstr ""
  34262. #. type: deftypevr
  34263. #: guix-git/doc/guix.texi:22849
  34264. 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."
  34265. msgstr ""
  34266. #. type: deftypevr
  34267. #: guix-git/doc/guix.texi:22851
  34268. #, no-wrap
  34269. msgid "{@code{dovecot-configuration} parameter} boolean disable-plaintext-auth?"
  34270. msgstr ""
  34271. #. type: deftypevr
  34272. #: guix-git/doc/guix.texi:22858
  34273. 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}."
  34274. msgstr ""
  34275. #. type: deftypevr
  34276. #: guix-git/doc/guix.texi:22860
  34277. #, no-wrap
  34278. msgid "{@code{dovecot-configuration} parameter} non-negative-integer auth-cache-size"
  34279. msgstr ""
  34280. #. type: deftypevr
  34281. #: guix-git/doc/guix.texi:22865
  34282. 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}."
  34283. msgstr ""
  34284. #. type: deftypevr
  34285. #: guix-git/doc/guix.texi:22867
  34286. #, no-wrap
  34287. msgid "{@code{dovecot-configuration} parameter} string auth-cache-ttl"
  34288. msgstr ""
  34289. #. type: deftypevr
  34290. #: guix-git/doc/guix.texi:22875
  34291. 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\"}."
  34292. msgstr ""
  34293. #. type: deftypevr
  34294. #: guix-git/doc/guix.texi:22877
  34295. #, no-wrap
  34296. msgid "{@code{dovecot-configuration} parameter} string auth-cache-negative-ttl"
  34297. msgstr ""
  34298. #. type: deftypevr
  34299. #: guix-git/doc/guix.texi:22881
  34300. msgid "TTL for negative hits (user not found, password mismatch). 0 disables caching them completely. Defaults to @samp{\"1 hour\"}."
  34301. msgstr ""
  34302. #. type: deftypevr
  34303. #: guix-git/doc/guix.texi:22883
  34304. #, no-wrap
  34305. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list auth-realms"
  34306. msgstr ""
  34307. #. type: deftypevr
  34308. #: guix-git/doc/guix.texi:22889
  34309. 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{()}."
  34310. msgstr ""
  34311. #. type: deftypevr
  34312. #: guix-git/doc/guix.texi:22891
  34313. #, no-wrap
  34314. msgid "{@code{dovecot-configuration} parameter} string auth-default-realm"
  34315. msgstr ""
  34316. #. type: deftypevr
  34317. #: guix-git/doc/guix.texi:22896
  34318. 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{\"\"}."
  34319. msgstr ""
  34320. #. type: deftypevr
  34321. #: guix-git/doc/guix.texi:22898
  34322. #, no-wrap
  34323. msgid "{@code{dovecot-configuration} parameter} string auth-username-chars"
  34324. msgstr ""
  34325. #. type: deftypevr
  34326. #: guix-git/doc/guix.texi:22905
  34327. 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.-_@@\"}."
  34328. msgstr ""
  34329. #. type: deftypevr
  34330. #: guix-git/doc/guix.texi:22907
  34331. #, no-wrap
  34332. msgid "{@code{dovecot-configuration} parameter} string auth-username-translation"
  34333. msgstr ""
  34334. #. type: deftypevr
  34335. #: guix-git/doc/guix.texi:22913
  34336. 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{\"\"}."
  34337. msgstr ""
  34338. #. type: deftypevr
  34339. #: guix-git/doc/guix.texi:22915
  34340. #, no-wrap
  34341. msgid "{@code{dovecot-configuration} parameter} string auth-username-format"
  34342. msgstr ""
  34343. #. type: deftypevr
  34344. #: guix-git/doc/guix.texi:22922
  34345. 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\"}."
  34346. msgstr ""
  34347. #. type: deftypevr
  34348. #: guix-git/doc/guix.texi:22924
  34349. #, no-wrap
  34350. msgid "{@code{dovecot-configuration} parameter} string auth-master-user-separator"
  34351. msgstr ""
  34352. #. type: deftypevr
  34353. #: guix-git/doc/guix.texi:22932
  34354. 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{\"\"}."
  34355. msgstr ""
  34356. #. type: deftypevr
  34357. #: guix-git/doc/guix.texi:22934
  34358. #, no-wrap
  34359. msgid "{@code{dovecot-configuration} parameter} string auth-anonymous-username"
  34360. msgstr ""
  34361. #. type: deftypevr
  34362. #: guix-git/doc/guix.texi:22938
  34363. msgid "Username to use for users logging in with ANONYMOUS SASL mechanism. Defaults to @samp{\"anonymous\"}."
  34364. msgstr ""
  34365. #. type: deftypevr
  34366. #: guix-git/doc/guix.texi:22940
  34367. #, no-wrap
  34368. msgid "{@code{dovecot-configuration} parameter} non-negative-integer auth-worker-max-count"
  34369. msgstr ""
  34370. #. type: deftypevr
  34371. #: guix-git/doc/guix.texi:22945
  34372. 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}."
  34373. msgstr ""
  34374. #. type: deftypevr
  34375. #: guix-git/doc/guix.texi:22947
  34376. #, no-wrap
  34377. msgid "{@code{dovecot-configuration} parameter} string auth-gssapi-hostname"
  34378. msgstr ""
  34379. #. type: deftypevr
  34380. #: guix-git/doc/guix.texi:22952
  34381. 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{\"\"}."
  34382. msgstr ""
  34383. #. type: deftypevr
  34384. #: guix-git/doc/guix.texi:22954
  34385. #, no-wrap
  34386. msgid "{@code{dovecot-configuration} parameter} string auth-krb5-keytab"
  34387. msgstr ""
  34388. #. type: deftypevr
  34389. #: guix-git/doc/guix.texi:22960
  34390. 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{\"\"}."
  34391. msgstr ""
  34392. #. type: deftypevr
  34393. #: guix-git/doc/guix.texi:22962
  34394. #, no-wrap
  34395. msgid "{@code{dovecot-configuration} parameter} boolean auth-use-winbind?"
  34396. msgstr ""
  34397. #. type: deftypevr
  34398. #: guix-git/doc/guix.texi:22967
  34399. 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}."
  34400. msgstr ""
  34401. #. type: deftypevr
  34402. #: guix-git/doc/guix.texi:22969
  34403. #, no-wrap
  34404. msgid "{@code{dovecot-configuration} parameter} file-name auth-winbind-helper-path"
  34405. msgstr ""
  34406. #. type: deftypevr
  34407. #: guix-git/doc/guix.texi:22972
  34408. msgid "Path for Samba's @samp{ntlm-auth} helper binary. Defaults to @samp{\"/usr/bin/ntlm_auth\"}."
  34409. msgstr ""
  34410. #. type: deftypevr
  34411. #: guix-git/doc/guix.texi:22974
  34412. #, no-wrap
  34413. msgid "{@code{dovecot-configuration} parameter} string auth-failure-delay"
  34414. msgstr ""
  34415. #. type: deftypevr
  34416. #: guix-git/doc/guix.texi:22977
  34417. msgid "Time to delay before replying to failed authentications. Defaults to @samp{\"2 secs\"}."
  34418. msgstr ""
  34419. #. type: deftypevr
  34420. #: guix-git/doc/guix.texi:22979
  34421. #, no-wrap
  34422. msgid "{@code{dovecot-configuration} parameter} boolean auth-ssl-require-client-cert?"
  34423. msgstr ""
  34424. #. type: deftypevr
  34425. #: guix-git/doc/guix.texi:22983
  34426. msgid "Require a valid SSL client certificate or the authentication fails. Defaults to @samp{#f}."
  34427. msgstr ""
  34428. #. type: deftypevr
  34429. #: guix-git/doc/guix.texi:22985
  34430. #, no-wrap
  34431. msgid "{@code{dovecot-configuration} parameter} boolean auth-ssl-username-from-cert?"
  34432. msgstr ""
  34433. #. type: deftypevr
  34434. #: guix-git/doc/guix.texi:22990
  34435. 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}."
  34436. msgstr ""
  34437. #. type: deftypevr
  34438. #: guix-git/doc/guix.texi:22992
  34439. #, no-wrap
  34440. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list auth-mechanisms"
  34441. msgstr ""
  34442. #. type: deftypevr
  34443. #: guix-git/doc/guix.texi:22998
  34444. 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."
  34445. msgstr ""
  34446. #. type: deftypevr
  34447. #: guix-git/doc/guix.texi:23000
  34448. #, no-wrap
  34449. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list director-servers"
  34450. msgstr ""
  34451. #. type: deftypevr
  34452. #: guix-git/doc/guix.texi:23005
  34453. 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{()}."
  34454. msgstr ""
  34455. #. type: deftypevr
  34456. #: guix-git/doc/guix.texi:23007
  34457. #, no-wrap
  34458. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list director-mail-servers"
  34459. msgstr ""
  34460. #. type: deftypevr
  34461. #: guix-git/doc/guix.texi:23011
  34462. 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{()}."
  34463. msgstr ""
  34464. #. type: deftypevr
  34465. #: guix-git/doc/guix.texi:23013
  34466. #, no-wrap
  34467. msgid "{@code{dovecot-configuration} parameter} string director-user-expire"
  34468. msgstr ""
  34469. #. type: deftypevr
  34470. #: guix-git/doc/guix.texi:23017
  34471. msgid "How long to redirect users to a specific server after it no longer has any connections. Defaults to @samp{\"15 min\"}."
  34472. msgstr ""
  34473. #. type: deftypevr
  34474. #: guix-git/doc/guix.texi:23019
  34475. #, no-wrap
  34476. msgid "{@code{dovecot-configuration} parameter} string director-username-hash"
  34477. msgstr ""
  34478. #. type: deftypevr
  34479. #: guix-git/doc/guix.texi:23024
  34480. 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\"}."
  34481. msgstr ""
  34482. #. type: deftypevr
  34483. #: guix-git/doc/guix.texi:23026
  34484. #, no-wrap
  34485. msgid "{@code{dovecot-configuration} parameter} string log-path"
  34486. msgstr ""
  34487. #. type: deftypevr
  34488. #: guix-git/doc/guix.texi:23030
  34489. msgid "Log file to use for error messages. @samp{syslog} logs to syslog, @samp{/dev/stderr} logs to stderr. Defaults to @samp{\"syslog\"}."
  34490. msgstr ""
  34491. #. type: deftypevr
  34492. #: guix-git/doc/guix.texi:23032
  34493. #, no-wrap
  34494. msgid "{@code{dovecot-configuration} parameter} string info-log-path"
  34495. msgstr ""
  34496. #. type: deftypevr
  34497. #: guix-git/doc/guix.texi:23036
  34498. msgid "Log file to use for informational messages. Defaults to @samp{log-path}. Defaults to @samp{\"\"}."
  34499. msgstr ""
  34500. #. type: deftypevr
  34501. #: guix-git/doc/guix.texi:23038
  34502. #, no-wrap
  34503. msgid "{@code{dovecot-configuration} parameter} string debug-log-path"
  34504. msgstr ""
  34505. #. type: deftypevr
  34506. #: guix-git/doc/guix.texi:23042
  34507. msgid "Log file to use for debug messages. Defaults to @samp{info-log-path}. Defaults to @samp{\"\"}."
  34508. msgstr ""
  34509. #. type: deftypevr
  34510. #: guix-git/doc/guix.texi:23044
  34511. #, no-wrap
  34512. msgid "{@code{dovecot-configuration} parameter} string syslog-facility"
  34513. msgstr ""
  34514. #. type: deftypevr
  34515. #: guix-git/doc/guix.texi:23049
  34516. 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\"}."
  34517. msgstr ""
  34518. #. type: deftypevr
  34519. #: guix-git/doc/guix.texi:23051
  34520. #, no-wrap
  34521. msgid "{@code{dovecot-configuration} parameter} boolean auth-verbose?"
  34522. msgstr ""
  34523. #. type: deftypevr
  34524. #: guix-git/doc/guix.texi:23055
  34525. msgid "Log unsuccessful authentication attempts and the reasons why they failed. Defaults to @samp{#f}."
  34526. msgstr ""
  34527. #. type: deftypevr
  34528. #: guix-git/doc/guix.texi:23057
  34529. #, no-wrap
  34530. msgid "{@code{dovecot-configuration} parameter} string auth-verbose-passwords"
  34531. msgstr ""
  34532. #. type: deftypevr
  34533. #: guix-git/doc/guix.texi:23064
  34534. 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\"}."
  34535. msgstr ""
  34536. #. type: deftypevr
  34537. #: guix-git/doc/guix.texi:23066
  34538. #, no-wrap
  34539. msgid "{@code{dovecot-configuration} parameter} boolean auth-debug?"
  34540. msgstr ""
  34541. #. type: deftypevr
  34542. #: guix-git/doc/guix.texi:23070
  34543. msgid "Even more verbose logging for debugging purposes. Shows for example SQL queries. Defaults to @samp{#f}."
  34544. msgstr ""
  34545. #. type: deftypevr
  34546. #: guix-git/doc/guix.texi:23072
  34547. #, no-wrap
  34548. msgid "{@code{dovecot-configuration} parameter} boolean auth-debug-passwords?"
  34549. msgstr ""
  34550. #. type: deftypevr
  34551. #: guix-git/doc/guix.texi:23077
  34552. 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}."
  34553. msgstr ""
  34554. #. type: deftypevr
  34555. #: guix-git/doc/guix.texi:23079
  34556. #, no-wrap
  34557. msgid "{@code{dovecot-configuration} parameter} boolean mail-debug?"
  34558. msgstr ""
  34559. #. type: deftypevr
  34560. #: guix-git/doc/guix.texi:23083
  34561. msgid "Enable mail process debugging. This can help you figure out why Dovecot isn't finding your mails. Defaults to @samp{#f}."
  34562. msgstr ""
  34563. #. type: deftypevr
  34564. #: guix-git/doc/guix.texi:23085
  34565. #, no-wrap
  34566. msgid "{@code{dovecot-configuration} parameter} boolean verbose-ssl?"
  34567. msgstr ""
  34568. #. type: deftypevr
  34569. #: guix-git/doc/guix.texi:23088
  34570. msgid "Show protocol level SSL errors. Defaults to @samp{#f}."
  34571. msgstr ""
  34572. #. type: deftypevr
  34573. #: guix-git/doc/guix.texi:23090
  34574. #, no-wrap
  34575. msgid "{@code{dovecot-configuration} parameter} string log-timestamp"
  34576. msgstr ""
  34577. #. type: deftypevr
  34578. #: guix-git/doc/guix.texi:23094
  34579. msgid "Prefix for each line written to log file. % codes are in strftime(3) format. Defaults to @samp{\"\\\"%b %d %H:%M:%S \\\"\"}."
  34580. msgstr ""
  34581. #. type: deftypevr
  34582. #: guix-git/doc/guix.texi:23096
  34583. #, no-wrap
  34584. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list login-log-format-elements"
  34585. msgstr ""
  34586. #. type: deftypevr
  34587. #: guix-git/doc/guix.texi:23100
  34588. 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."
  34589. msgstr ""
  34590. #. type: deftypevr
  34591. #: guix-git/doc/guix.texi:23102
  34592. #, no-wrap
  34593. msgid "{@code{dovecot-configuration} parameter} string login-log-format"
  34594. msgstr ""
  34595. #. type: deftypevr
  34596. #: guix-git/doc/guix.texi:23106
  34597. msgid "Login log format. %s contains @samp{login-log-format-elements} string, %$ contains the data we want to log. Defaults to @samp{\"%$: %s\"}."
  34598. msgstr ""
  34599. #. type: deftypevr
  34600. #: guix-git/doc/guix.texi:23108
  34601. #, no-wrap
  34602. msgid "{@code{dovecot-configuration} parameter} string mail-log-prefix"
  34603. msgstr ""
  34604. #. type: deftypevr
  34605. #: guix-git/doc/guix.texi:23112
  34606. 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@}>: \\\"\"}."
  34607. msgstr ""
  34608. #. type: deftypevr
  34609. #: guix-git/doc/guix.texi:23114
  34610. #, no-wrap
  34611. msgid "{@code{dovecot-configuration} parameter} string deliver-log-format"
  34612. msgstr ""
  34613. #. type: deftypevr
  34614. #: guix-git/doc/guix.texi:23116
  34615. msgid "Format to use for logging mail deliveries. You can use variables:"
  34616. msgstr ""
  34617. #. type: item
  34618. #: guix-git/doc/guix.texi:23117
  34619. #, no-wrap
  34620. msgid "%$"
  34621. msgstr ""
  34622. #. type: table
  34623. #: guix-git/doc/guix.texi:23119
  34624. msgid "Delivery status message (e.g.@: @samp{saved to INBOX})"
  34625. msgstr ""
  34626. #. type: item
  34627. #: guix-git/doc/guix.texi:23119
  34628. #, no-wrap
  34629. msgid "%m"
  34630. msgstr ""
  34631. #. type: table
  34632. #: guix-git/doc/guix.texi:23121
  34633. msgid "Message-ID"
  34634. msgstr ""
  34635. #. type: item
  34636. #: guix-git/doc/guix.texi:23121 guix-git/doc/guix.texi:23664
  34637. #, no-wrap
  34638. msgid "%s"
  34639. msgstr ""
  34640. #. type: table
  34641. #: guix-git/doc/guix.texi:23123
  34642. msgid "Subject"
  34643. msgstr ""
  34644. #. type: item
  34645. #: guix-git/doc/guix.texi:23123
  34646. #, no-wrap
  34647. msgid "%f"
  34648. msgstr ""
  34649. #. type: table
  34650. #: guix-git/doc/guix.texi:23125
  34651. msgid "From address"
  34652. msgstr ""
  34653. #. type: table
  34654. #: guix-git/doc/guix.texi:23127
  34655. msgid "Physical size"
  34656. msgstr ""
  34657. #. type: item
  34658. #: guix-git/doc/guix.texi:23127
  34659. #, no-wrap
  34660. msgid "%w"
  34661. msgstr ""
  34662. #. type: table
  34663. #: guix-git/doc/guix.texi:23129
  34664. msgid "Virtual size."
  34665. msgstr ""
  34666. #. type: deftypevr
  34667. #: guix-git/doc/guix.texi:23131
  34668. msgid "Defaults to @samp{\"msgid=%m: %$\"}."
  34669. msgstr ""
  34670. #. type: deftypevr
  34671. #: guix-git/doc/guix.texi:23133
  34672. #, no-wrap
  34673. msgid "{@code{dovecot-configuration} parameter} string mail-location"
  34674. msgstr ""
  34675. #. type: deftypevr
  34676. #: guix-git/doc/guix.texi:23138
  34677. 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."
  34678. msgstr ""
  34679. #. type: deftypevr
  34680. #: guix-git/doc/guix.texi:23144
  34681. 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."
  34682. msgstr ""
  34683. #. type: deftypevr
  34684. #: guix-git/doc/guix.texi:23146
  34685. msgid "There are a few special variables you can use, e.g.:"
  34686. msgstr ""
  34687. #. type: table
  34688. #: guix-git/doc/guix.texi:23150
  34689. msgid "username"
  34690. msgstr ""
  34691. #. type: item
  34692. #: guix-git/doc/guix.texi:23150 guix-git/doc/guix.texi:23660
  34693. #, no-wrap
  34694. msgid "%n"
  34695. msgstr ""
  34696. #. type: table
  34697. #: guix-git/doc/guix.texi:23152
  34698. msgid "user part in user@@domain, same as %u if there's no domain"
  34699. msgstr ""
  34700. #. type: item
  34701. #: guix-git/doc/guix.texi:23152
  34702. #, no-wrap
  34703. msgid "%d"
  34704. msgstr ""
  34705. #. type: table
  34706. #: guix-git/doc/guix.texi:23154
  34707. msgid "domain part in user@@domain, empty if there's no domain"
  34708. msgstr ""
  34709. #. type: item
  34710. #: guix-git/doc/guix.texi:23154
  34711. #, no-wrap
  34712. msgid "%h"
  34713. msgstr ""
  34714. #. type: table
  34715. #: guix-git/doc/guix.texi:23156
  34716. msgid "home director"
  34717. msgstr ""
  34718. #. type: deftypevr
  34719. #: guix-git/doc/guix.texi:23159
  34720. msgid "See doc/wiki/Variables.txt for full list. Some examples:"
  34721. msgstr ""
  34722. #. type: item
  34723. #: guix-git/doc/guix.texi:23160
  34724. #, no-wrap
  34725. msgid "maildir:~/Maildir"
  34726. msgstr ""
  34727. #. type: item
  34728. #: guix-git/doc/guix.texi:23161
  34729. #, no-wrap
  34730. msgid "mbox:~/mail:INBOX=/var/mail/%u"
  34731. msgstr ""
  34732. #. type: item
  34733. #: guix-git/doc/guix.texi:23162
  34734. #, no-wrap
  34735. msgid "mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%"
  34736. msgstr ""
  34737. #. type: deftypevr
  34738. #: guix-git/doc/guix.texi:23167
  34739. #, no-wrap
  34740. msgid "{@code{dovecot-configuration} parameter} string mail-uid"
  34741. msgstr ""
  34742. #. type: deftypevr
  34743. #: guix-git/doc/guix.texi:23172
  34744. 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{\"\"}."
  34745. msgstr ""
  34746. #. type: deftypevr
  34747. #: guix-git/doc/guix.texi:23174
  34748. #, no-wrap
  34749. msgid "{@code{dovecot-configuration} parameter} string mail-gid"
  34750. msgstr ""
  34751. #. type: deftypevr
  34752. #: guix-git/doc/guix.texi:23179
  34753. #, no-wrap
  34754. msgid "{@code{dovecot-configuration} parameter} string mail-privileged-group"
  34755. msgstr ""
  34756. #. type: deftypevr
  34757. #: guix-git/doc/guix.texi:23185
  34758. 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{\"\"}."
  34759. msgstr ""
  34760. #. type: deftypevr
  34761. #: guix-git/doc/guix.texi:23187
  34762. #, no-wrap
  34763. msgid "{@code{dovecot-configuration} parameter} string mail-access-groups"
  34764. msgstr ""
  34765. #. type: deftypevr
  34766. #: guix-git/doc/guix.texi:23195
  34767. 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{\"\"}."
  34768. msgstr ""
  34769. #. type: deftypevr
  34770. #: guix-git/doc/guix.texi:23197
  34771. #, no-wrap
  34772. msgid "{@code{dovecot-configuration} parameter} string mail-attribute-dict"
  34773. msgstr ""
  34774. #. type: deftypevr
  34775. #: guix-git/doc/guix.texi:23200
  34776. 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}."
  34777. msgstr ""
  34778. #. type: deftypevr
  34779. #: guix-git/doc/guix.texi:23203
  34780. msgid "The IMAP METADATA commands are available only if the ``imap'' protocol configuration's @code{imap-metadata?} field is @samp{#t}."
  34781. msgstr ""
  34782. #. type: deftypevr
  34783. #: guix-git/doc/guix.texi:23208
  34784. #, no-wrap
  34785. msgid "{@code{dovecot-configuration} parameter} boolean mail-full-filesystem-access?"
  34786. msgstr ""
  34787. #. type: deftypevr
  34788. #: guix-git/doc/guix.texi:23214
  34789. 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}."
  34790. msgstr ""
  34791. #. type: deftypevr
  34792. #: guix-git/doc/guix.texi:23216
  34793. #, no-wrap
  34794. msgid "{@code{dovecot-configuration} parameter} boolean mmap-disable?"
  34795. msgstr ""
  34796. #. type: deftypevr
  34797. #: guix-git/doc/guix.texi:23220
  34798. 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}."
  34799. msgstr ""
  34800. #. type: deftypevr
  34801. #: guix-git/doc/guix.texi:23222
  34802. #, no-wrap
  34803. msgid "{@code{dovecot-configuration} parameter} boolean dotlock-use-excl?"
  34804. msgstr ""
  34805. #. type: deftypevr
  34806. #: guix-git/doc/guix.texi:23227
  34807. 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}."
  34808. msgstr ""
  34809. #. type: deftypevr
  34810. #: guix-git/doc/guix.texi:23229
  34811. #, no-wrap
  34812. msgid "{@code{dovecot-configuration} parameter} string mail-fsync"
  34813. msgstr ""
  34814. #. type: deftypevr
  34815. #: guix-git/doc/guix.texi:23231
  34816. msgid "When to use fsync() or fdatasync() calls:"
  34817. msgstr ""
  34818. #. type: item
  34819. #: guix-git/doc/guix.texi:23232
  34820. #, no-wrap
  34821. msgid "optimized"
  34822. msgstr ""
  34823. #. type: table
  34824. #: guix-git/doc/guix.texi:23234
  34825. msgid "Whenever necessary to avoid losing important data"
  34826. msgstr ""
  34827. #. type: table
  34828. #: guix-git/doc/guix.texi:23236
  34829. msgid "Useful with e.g.@: NFS when @code{write()}s are delayed"
  34830. msgstr ""
  34831. #. type: table
  34832. #: guix-git/doc/guix.texi:23238
  34833. msgid "Never use it (best performance, but crashes can lose data)."
  34834. msgstr ""
  34835. #. type: deftypevr
  34836. #: guix-git/doc/guix.texi:23240
  34837. msgid "Defaults to @samp{\"optimized\"}."
  34838. msgstr ""
  34839. #. type: deftypevr
  34840. #: guix-git/doc/guix.texi:23242
  34841. #, no-wrap
  34842. msgid "{@code{dovecot-configuration} parameter} boolean mail-nfs-storage?"
  34843. msgstr ""
  34844. #. type: deftypevr
  34845. #: guix-git/doc/guix.texi:23247
  34846. 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}."
  34847. msgstr ""
  34848. #. type: deftypevr
  34849. #: guix-git/doc/guix.texi:23249
  34850. #, no-wrap
  34851. msgid "{@code{dovecot-configuration} parameter} boolean mail-nfs-index?"
  34852. msgstr ""
  34853. #. type: deftypevr
  34854. #: guix-git/doc/guix.texi:23253
  34855. 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}."
  34856. msgstr ""
  34857. #. type: deftypevr
  34858. #: guix-git/doc/guix.texi:23255
  34859. #, no-wrap
  34860. msgid "{@code{dovecot-configuration} parameter} string lock-method"
  34861. msgstr ""
  34862. #. type: deftypevr
  34863. #: guix-git/doc/guix.texi:23261
  34864. 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\"}."
  34865. msgstr ""
  34866. #. type: deftypevr
  34867. #: guix-git/doc/guix.texi:23263
  34868. #, no-wrap
  34869. msgid "{@code{dovecot-configuration} parameter} file-name mail-temp-dir"
  34870. msgstr ""
  34871. #. type: deftypevr
  34872. #: guix-git/doc/guix.texi:23267
  34873. msgid "Directory in which LDA/LMTP temporarily stores incoming mails >128 kB. Defaults to @samp{\"/tmp\"}."
  34874. msgstr ""
  34875. #. type: deftypevr
  34876. #: guix-git/doc/guix.texi:23269
  34877. #, no-wrap
  34878. msgid "{@code{dovecot-configuration} parameter} non-negative-integer first-valid-uid"
  34879. msgstr ""
  34880. #. type: deftypevr
  34881. #: guix-git/doc/guix.texi:23275
  34882. 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}."
  34883. msgstr ""
  34884. #. type: deftypevr
  34885. #: guix-git/doc/guix.texi:23277
  34886. #, no-wrap
  34887. msgid "{@code{dovecot-configuration} parameter} non-negative-integer last-valid-uid"
  34888. msgstr ""
  34889. #. type: deftypevr
  34890. #: guix-git/doc/guix.texi:23282
  34891. #, no-wrap
  34892. msgid "{@code{dovecot-configuration} parameter} non-negative-integer first-valid-gid"
  34893. msgstr ""
  34894. #. type: deftypevr
  34895. #: guix-git/doc/guix.texi:23287
  34896. 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}."
  34897. msgstr ""
  34898. #. type: deftypevr
  34899. #: guix-git/doc/guix.texi:23289
  34900. #, no-wrap
  34901. msgid "{@code{dovecot-configuration} parameter} non-negative-integer last-valid-gid"
  34902. msgstr ""
  34903. #. type: deftypevr
  34904. #: guix-git/doc/guix.texi:23294
  34905. #, no-wrap
  34906. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mail-max-keyword-length"
  34907. msgstr ""
  34908. #. type: deftypevr
  34909. #: guix-git/doc/guix.texi:23298
  34910. msgid "Maximum allowed length for mail keyword name. It's only forced when trying to create new keywords. Defaults to @samp{50}."
  34911. msgstr ""
  34912. #. type: deftypevr
  34913. #: guix-git/doc/guix.texi:23300
  34914. #, no-wrap
  34915. msgid "{@code{dovecot-configuration} parameter} colon-separated-file-name-list valid-chroot-dirs"
  34916. msgstr ""
  34917. #. type: deftypevr
  34918. #: guix-git/doc/guix.texi:23310
  34919. 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{()}."
  34920. msgstr ""
  34921. #. type: deftypevr
  34922. #: guix-git/doc/guix.texi:23312
  34923. #, no-wrap
  34924. msgid "{@code{dovecot-configuration} parameter} string mail-chroot"
  34925. msgstr ""
  34926. #. type: deftypevr
  34927. #: guix-git/doc/guix.texi:23321
  34928. 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{\"\"}."
  34929. msgstr ""
  34930. #. type: deftypevr
  34931. #: guix-git/doc/guix.texi:23323
  34932. #, no-wrap
  34933. msgid "{@code{dovecot-configuration} parameter} file-name auth-socket-path"
  34934. msgstr ""
  34935. #. type: deftypevr
  34936. #: guix-git/doc/guix.texi:23327
  34937. 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\"}."
  34938. msgstr ""
  34939. #. type: deftypevr
  34940. #: guix-git/doc/guix.texi:23329
  34941. #, no-wrap
  34942. msgid "{@code{dovecot-configuration} parameter} file-name mail-plugin-dir"
  34943. msgstr ""
  34944. #. type: deftypevr
  34945. #: guix-git/doc/guix.texi:23332
  34946. msgid "Directory where to look up mail plugins. Defaults to @samp{\"/usr/lib/dovecot\"}."
  34947. msgstr ""
  34948. #. type: deftypevr
  34949. #: guix-git/doc/guix.texi:23334
  34950. #, no-wrap
  34951. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list mail-plugins"
  34952. msgstr ""
  34953. #. type: deftypevr
  34954. #: guix-git/doc/guix.texi:23338
  34955. 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{()}."
  34956. msgstr ""
  34957. #. type: deftypevr
  34958. #: guix-git/doc/guix.texi:23340
  34959. #, no-wrap
  34960. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mail-cache-min-mail-count"
  34961. msgstr ""
  34962. #. type: deftypevr
  34963. #: guix-git/doc/guix.texi:23345
  34964. 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}."
  34965. msgstr ""
  34966. #. type: deftypevr
  34967. #: guix-git/doc/guix.texi:23347
  34968. #, no-wrap
  34969. msgid "{@code{dovecot-configuration} parameter} string mailbox-idle-check-interval"
  34970. msgstr ""
  34971. #. type: deftypevr
  34972. #: guix-git/doc/guix.texi:23354
  34973. 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\"}."
  34974. msgstr ""
  34975. #. type: deftypevr
  34976. #: guix-git/doc/guix.texi:23356
  34977. #, no-wrap
  34978. msgid "{@code{dovecot-configuration} parameter} boolean mail-save-crlf?"
  34979. msgstr ""
  34980. #. type: deftypevr
  34981. #: guix-git/doc/guix.texi:23363
  34982. 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}."
  34983. msgstr ""
  34984. #. type: deftypevr
  34985. #: guix-git/doc/guix.texi:23365
  34986. #, no-wrap
  34987. msgid "{@code{dovecot-configuration} parameter} boolean maildir-stat-dirs?"
  34988. msgstr ""
  34989. #. type: deftypevr
  34990. #: guix-git/doc/guix.texi:23373
  34991. 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}."
  34992. msgstr ""
  34993. #. type: deftypevr
  34994. #: guix-git/doc/guix.texi:23375
  34995. #, no-wrap
  34996. msgid "{@code{dovecot-configuration} parameter} boolean maildir-copy-with-hardlinks?"
  34997. msgstr ""
  34998. #. type: deftypevr
  34999. #: guix-git/doc/guix.texi:23380
  35000. 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}."
  35001. msgstr ""
  35002. #. type: deftypevr
  35003. #: guix-git/doc/guix.texi:23382
  35004. #, no-wrap
  35005. msgid "{@code{dovecot-configuration} parameter} boolean maildir-very-dirty-syncs?"
  35006. msgstr ""
  35007. #. type: deftypevr
  35008. #: guix-git/doc/guix.texi:23387
  35009. 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}."
  35010. msgstr ""
  35011. #. type: deftypevr
  35012. #: guix-git/doc/guix.texi:23389
  35013. #, no-wrap
  35014. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list mbox-read-locks"
  35015. msgstr ""
  35016. #. type: deftypevr
  35017. #: guix-git/doc/guix.texi:23392
  35018. msgid "Which locking methods to use for locking mbox. There are four available:"
  35019. msgstr ""
  35020. #. type: item
  35021. #: guix-git/doc/guix.texi:23394
  35022. #, no-wrap
  35023. msgid "dotlock"
  35024. msgstr ""
  35025. #. type: table
  35026. #: guix-git/doc/guix.texi:23398
  35027. 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."
  35028. msgstr ""
  35029. #. type: item
  35030. #: guix-git/doc/guix.texi:23398
  35031. #, no-wrap
  35032. msgid "dotlock-try"
  35033. msgstr ""
  35034. #. type: table
  35035. #: guix-git/doc/guix.texi:23401
  35036. msgid "Same as dotlock, but if it fails because of permissions or because there isn't enough disk space, just skip it."
  35037. msgstr ""
  35038. #. type: item
  35039. #: guix-git/doc/guix.texi:23401
  35040. #, no-wrap
  35041. msgid "fcntl"
  35042. msgstr ""
  35043. #. type: table
  35044. #: guix-git/doc/guix.texi:23403
  35045. msgid "Use this if possible. Works with NFS too if lockd is used."
  35046. msgstr ""
  35047. #. type: item
  35048. #: guix-git/doc/guix.texi:23403
  35049. #, no-wrap
  35050. msgid "flock"
  35051. msgstr ""
  35052. #. type: table
  35053. #: guix-git/doc/guix.texi:23405 guix-git/doc/guix.texi:23407
  35054. msgid "May not exist in all systems. Doesn't work with NFS."
  35055. msgstr ""
  35056. #. type: item
  35057. #: guix-git/doc/guix.texi:23405
  35058. #, no-wrap
  35059. msgid "lockf"
  35060. msgstr ""
  35061. #. type: deftypevr
  35062. #: guix-git/doc/guix.texi:23413
  35063. 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."
  35064. msgstr ""
  35065. #. type: deftypevr
  35066. #: guix-git/doc/guix.texi:23415
  35067. #, no-wrap
  35068. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list mbox-write-locks"
  35069. msgstr ""
  35070. #. type: deftypevr
  35071. #: guix-git/doc/guix.texi:23419
  35072. #, no-wrap
  35073. msgid "{@code{dovecot-configuration} parameter} string mbox-lock-timeout"
  35074. msgstr ""
  35075. #. type: deftypevr
  35076. #: guix-git/doc/guix.texi:23422
  35077. msgid "Maximum time to wait for lock (all of them) before aborting. Defaults to @samp{\"5 mins\"}."
  35078. msgstr ""
  35079. #. type: deftypevr
  35080. #: guix-git/doc/guix.texi:23424
  35081. #, no-wrap
  35082. msgid "{@code{dovecot-configuration} parameter} string mbox-dotlock-change-timeout"
  35083. msgstr ""
  35084. #. type: deftypevr
  35085. #: guix-git/doc/guix.texi:23428
  35086. 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\"}."
  35087. msgstr ""
  35088. #. type: deftypevr
  35089. #: guix-git/doc/guix.texi:23430
  35090. #, no-wrap
  35091. msgid "{@code{dovecot-configuration} parameter} boolean mbox-dirty-syncs?"
  35092. msgstr ""
  35093. #. type: deftypevr
  35094. #: guix-git/doc/guix.texi:23441
  35095. 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}."
  35096. msgstr ""
  35097. #. type: deftypevr
  35098. #: guix-git/doc/guix.texi:23443
  35099. #, no-wrap
  35100. msgid "{@code{dovecot-configuration} parameter} boolean mbox-very-dirty-syncs?"
  35101. msgstr ""
  35102. #. type: deftypevr
  35103. #: guix-git/doc/guix.texi:23448
  35104. 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}."
  35105. msgstr ""
  35106. #. type: deftypevr
  35107. #: guix-git/doc/guix.texi:23450
  35108. #, no-wrap
  35109. msgid "{@code{dovecot-configuration} parameter} boolean mbox-lazy-writes?"
  35110. msgstr ""
  35111. #. type: deftypevr
  35112. #: guix-git/doc/guix.texi:23456
  35113. 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}."
  35114. msgstr ""
  35115. #. type: deftypevr
  35116. #: guix-git/doc/guix.texi:23458
  35117. #, no-wrap
  35118. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mbox-min-index-size"
  35119. msgstr ""
  35120. #. type: deftypevr
  35121. #: guix-git/doc/guix.texi:23463
  35122. 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}."
  35123. msgstr ""
  35124. #. type: deftypevr
  35125. #: guix-git/doc/guix.texi:23465
  35126. #, no-wrap
  35127. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mdbox-rotate-size"
  35128. msgstr ""
  35129. #. type: deftypevr
  35130. #: guix-git/doc/guix.texi:23468
  35131. msgid "Maximum dbox file size until it's rotated. Defaults to @samp{10000000}."
  35132. msgstr ""
  35133. #. type: deftypevr
  35134. #: guix-git/doc/guix.texi:23470
  35135. #, no-wrap
  35136. msgid "{@code{dovecot-configuration} parameter} string mdbox-rotate-interval"
  35137. msgstr ""
  35138. #. type: deftypevr
  35139. #: guix-git/doc/guix.texi:23475
  35140. 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\"}."
  35141. msgstr ""
  35142. #. type: deftypevr
  35143. #: guix-git/doc/guix.texi:23477
  35144. #, no-wrap
  35145. msgid "{@code{dovecot-configuration} parameter} boolean mdbox-preallocate-space?"
  35146. msgstr ""
  35147. #. type: deftypevr
  35148. #: guix-git/doc/guix.texi:23482
  35149. 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}."
  35150. msgstr ""
  35151. #. type: deftypevr
  35152. #: guix-git/doc/guix.texi:23484
  35153. #, no-wrap
  35154. msgid "{@code{dovecot-configuration} parameter} string mail-attachment-dir"
  35155. msgstr ""
  35156. #. type: deftypevr
  35157. #: guix-git/doc/guix.texi:23488
  35158. 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."
  35159. msgstr ""
  35160. #. type: deftypevr
  35161. #: guix-git/doc/guix.texi:23490
  35162. msgid "WARNING: This feature hasn't been tested much yet. Use at your own risk."
  35163. msgstr ""
  35164. #. type: deftypevr
  35165. #: guix-git/doc/guix.texi:23493
  35166. msgid "Directory root where to store mail attachments. Disabled, if empty. Defaults to @samp{\"\"}."
  35167. msgstr ""
  35168. #. type: deftypevr
  35169. #: guix-git/doc/guix.texi:23495
  35170. #, no-wrap
  35171. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mail-attachment-min-size"
  35172. msgstr ""
  35173. #. type: deftypevr
  35174. #: guix-git/doc/guix.texi:23500
  35175. 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}."
  35176. msgstr ""
  35177. #. type: deftypevr
  35178. #: guix-git/doc/guix.texi:23502
  35179. #, no-wrap
  35180. msgid "{@code{dovecot-configuration} parameter} string mail-attachment-fs"
  35181. msgstr ""
  35182. #. type: deftypevr
  35183. #: guix-git/doc/guix.texi:23504
  35184. msgid "File system backend to use for saving attachments:"
  35185. msgstr ""
  35186. #. type: item
  35187. #: guix-git/doc/guix.texi:23505
  35188. #, no-wrap
  35189. msgid "posix"
  35190. msgstr ""
  35191. #. type: table
  35192. #: guix-git/doc/guix.texi:23507
  35193. msgid "No SiS done by Dovecot (but this might help FS's own deduplication)"
  35194. msgstr ""
  35195. #. type: item
  35196. #: guix-git/doc/guix.texi:23507
  35197. #, no-wrap
  35198. msgid "sis posix"
  35199. msgstr ""
  35200. #. type: table
  35201. #: guix-git/doc/guix.texi:23509
  35202. msgid "SiS with immediate byte-by-byte comparison during saving"
  35203. msgstr ""
  35204. #. type: item
  35205. #: guix-git/doc/guix.texi:23509
  35206. #, no-wrap
  35207. msgid "sis-queue posix"
  35208. msgstr ""
  35209. #. type: table
  35210. #: guix-git/doc/guix.texi:23511
  35211. msgid "SiS with delayed comparison and deduplication."
  35212. msgstr ""
  35213. #. type: deftypevr
  35214. #: guix-git/doc/guix.texi:23513
  35215. msgid "Defaults to @samp{\"sis posix\"}."
  35216. msgstr ""
  35217. #. type: deftypevr
  35218. #: guix-git/doc/guix.texi:23515
  35219. #, no-wrap
  35220. msgid "{@code{dovecot-configuration} parameter} string mail-attachment-hash"
  35221. msgstr ""
  35222. #. type: deftypevr
  35223. #: guix-git/doc/guix.texi:23521
  35224. 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@}\"}."
  35225. msgstr ""
  35226. #. type: deftypevr
  35227. #: guix-git/doc/guix.texi:23523
  35228. #, no-wrap
  35229. msgid "{@code{dovecot-configuration} parameter} non-negative-integer default-process-limit"
  35230. msgstr ""
  35231. #. type: deftypevr
  35232. #: guix-git/doc/guix.texi:23528
  35233. #, no-wrap
  35234. msgid "{@code{dovecot-configuration} parameter} non-negative-integer default-client-limit"
  35235. msgstr ""
  35236. #. type: deftypevr
  35237. #: guix-git/doc/guix.texi:23531 guix-git/doc/guix.texi:31113
  35238. msgid "Defaults to @samp{1000}."
  35239. msgstr ""
  35240. #. type: deftypevr
  35241. #: guix-git/doc/guix.texi:23533
  35242. #, no-wrap
  35243. msgid "{@code{dovecot-configuration} parameter} non-negative-integer default-vsz-limit"
  35244. msgstr ""
  35245. #. type: deftypevr
  35246. #: guix-git/doc/guix.texi:23538
  35247. 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}."
  35248. msgstr ""
  35249. #. type: deftypevr
  35250. #: guix-git/doc/guix.texi:23540
  35251. #, no-wrap
  35252. msgid "{@code{dovecot-configuration} parameter} string default-login-user"
  35253. msgstr ""
  35254. #. type: deftypevr
  35255. #: guix-git/doc/guix.texi:23545
  35256. 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\"}."
  35257. msgstr ""
  35258. #. type: deftypevr
  35259. #: guix-git/doc/guix.texi:23547
  35260. #, no-wrap
  35261. msgid "{@code{dovecot-configuration} parameter} string default-internal-user"
  35262. msgstr ""
  35263. #. type: deftypevr
  35264. #: guix-git/doc/guix.texi:23552
  35265. 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\"}."
  35266. msgstr ""
  35267. #. type: deftypevr
  35268. #: guix-git/doc/guix.texi:23554
  35269. #, no-wrap
  35270. msgid "{@code{dovecot-configuration} parameter} string ssl?"
  35271. msgstr ""
  35272. #. type: deftypevr
  35273. #: guix-git/doc/guix.texi:23557
  35274. msgid "SSL/TLS support: yes, no, required. <doc/wiki/SSL.txt>. Defaults to @samp{\"required\"}."
  35275. msgstr ""
  35276. #. type: deftypevr
  35277. #: guix-git/doc/guix.texi:23559
  35278. #, no-wrap
  35279. msgid "{@code{dovecot-configuration} parameter} string ssl-cert"
  35280. msgstr ""
  35281. #. type: deftypevr
  35282. #: guix-git/doc/guix.texi:23562
  35283. msgid "PEM encoded X.509 SSL/TLS certificate (public key). Defaults to @samp{\"</etc/dovecot/default.pem\"}."
  35284. msgstr ""
  35285. #. type: deftypevr
  35286. #: guix-git/doc/guix.texi:23564
  35287. #, no-wrap
  35288. msgid "{@code{dovecot-configuration} parameter} string ssl-key"
  35289. msgstr ""
  35290. #. type: deftypevr
  35291. #: guix-git/doc/guix.texi:23569
  35292. 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\"}."
  35293. msgstr ""
  35294. #. type: deftypevr
  35295. #: guix-git/doc/guix.texi:23571
  35296. #, no-wrap
  35297. msgid "{@code{dovecot-configuration} parameter} string ssl-key-password"
  35298. msgstr ""
  35299. #. type: deftypevr
  35300. #: guix-git/doc/guix.texi:23577
  35301. 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{\"\"}."
  35302. msgstr ""
  35303. #. type: deftypevr
  35304. #: guix-git/doc/guix.texi:23579
  35305. #, no-wrap
  35306. msgid "{@code{dovecot-configuration} parameter} string ssl-ca"
  35307. msgstr ""
  35308. #. type: deftypevr
  35309. #: guix-git/doc/guix.texi:23585
  35310. 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{\"\"}."
  35311. msgstr ""
  35312. #. type: deftypevr
  35313. #: guix-git/doc/guix.texi:23587
  35314. #, no-wrap
  35315. msgid "{@code{dovecot-configuration} parameter} boolean ssl-require-crl?"
  35316. msgstr ""
  35317. #. type: deftypevr
  35318. #: guix-git/doc/guix.texi:23590
  35319. msgid "Require that CRL check succeeds for client certificates. Defaults to @samp{#t}."
  35320. msgstr ""
  35321. #. type: deftypevr
  35322. #: guix-git/doc/guix.texi:23592
  35323. #, no-wrap
  35324. msgid "{@code{dovecot-configuration} parameter} boolean ssl-verify-client-cert?"
  35325. msgstr ""
  35326. #. type: deftypevr
  35327. #: guix-git/doc/guix.texi:23596
  35328. 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}."
  35329. msgstr ""
  35330. #. type: deftypevr
  35331. #: guix-git/doc/guix.texi:23598
  35332. #, no-wrap
  35333. msgid "{@code{dovecot-configuration} parameter} string ssl-cert-username-field"
  35334. msgstr ""
  35335. #. type: deftypevr
  35336. #: guix-git/doc/guix.texi:23603
  35337. 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\"}."
  35338. msgstr ""
  35339. #. type: deftypevr
  35340. #: guix-git/doc/guix.texi:23605
  35341. #, no-wrap
  35342. msgid "{@code{dovecot-configuration} parameter} string ssl-min-protocol"
  35343. msgstr ""
  35344. #. type: deftypevr
  35345. #: guix-git/doc/guix.texi:23608
  35346. msgid "Minimum SSL protocol version to accept. Defaults to @samp{\"TLSv1\"}."
  35347. msgstr ""
  35348. #. type: deftypevr
  35349. #: guix-git/doc/guix.texi:23610
  35350. #, no-wrap
  35351. msgid "{@code{dovecot-configuration} parameter} string ssl-cipher-list"
  35352. msgstr ""
  35353. #. type: deftypevr
  35354. #: guix-git/doc/guix.texi:23613
  35355. msgid "SSL ciphers to use. Defaults to @samp{\"ALL:!kRSA:!SRP:!kDHd:!DSS:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK:!RC4:!ADH:!LOW@@STRENGTH\"}."
  35356. msgstr ""
  35357. #. type: deftypevr
  35358. #: guix-git/doc/guix.texi:23615
  35359. #, no-wrap
  35360. msgid "{@code{dovecot-configuration} parameter} string ssl-crypto-device"
  35361. msgstr ""
  35362. #. type: deftypevr
  35363. #: guix-git/doc/guix.texi:23618
  35364. msgid "SSL crypto device to use, for valid values run \"openssl engine\". Defaults to @samp{\"\"}."
  35365. msgstr ""
  35366. #. type: deftypevr
  35367. #: guix-git/doc/guix.texi:23620
  35368. #, no-wrap
  35369. msgid "{@code{dovecot-configuration} parameter} string postmaster-address"
  35370. msgstr ""
  35371. #. type: deftypevr
  35372. #: guix-git/doc/guix.texi:23624
  35373. msgid "Address to use when sending rejection mails. %d expands to recipient domain. Defaults to @samp{\"postmaster@@%d\"}."
  35374. msgstr ""
  35375. #. type: deftypevr
  35376. #: guix-git/doc/guix.texi:23626
  35377. #, no-wrap
  35378. msgid "{@code{dovecot-configuration} parameter} string hostname"
  35379. msgstr ""
  35380. #. type: deftypevr
  35381. #: guix-git/doc/guix.texi:23630
  35382. 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{\"\"}."
  35383. msgstr ""
  35384. #. type: deftypevr
  35385. #: guix-git/doc/guix.texi:23632
  35386. #, no-wrap
  35387. msgid "{@code{dovecot-configuration} parameter} boolean quota-full-tempfail?"
  35388. msgstr ""
  35389. #. type: deftypevr
  35390. #: guix-git/doc/guix.texi:23636
  35391. msgid "If user is over quota, return with temporary failure instead of bouncing the mail. Defaults to @samp{#f}."
  35392. msgstr ""
  35393. #. type: deftypevr
  35394. #: guix-git/doc/guix.texi:23638
  35395. #, no-wrap
  35396. msgid "{@code{dovecot-configuration} parameter} file-name sendmail-path"
  35397. msgstr ""
  35398. #. type: deftypevr
  35399. #: guix-git/doc/guix.texi:23641
  35400. msgid "Binary to use for sending mails. Defaults to @samp{\"/usr/sbin/sendmail\"}."
  35401. msgstr ""
  35402. #. type: deftypevr
  35403. #: guix-git/doc/guix.texi:23643
  35404. #, no-wrap
  35405. msgid "{@code{dovecot-configuration} parameter} string submission-host"
  35406. msgstr ""
  35407. #. type: deftypevr
  35408. #: guix-git/doc/guix.texi:23647
  35409. msgid "If non-empty, send mails via this SMTP host[:port] instead of sendmail. Defaults to @samp{\"\"}."
  35410. msgstr ""
  35411. #. type: deftypevr
  35412. #: guix-git/doc/guix.texi:23649
  35413. #, no-wrap
  35414. msgid "{@code{dovecot-configuration} parameter} string rejection-subject"
  35415. msgstr ""
  35416. #. type: deftypevr
  35417. #: guix-git/doc/guix.texi:23653
  35418. 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\"}."
  35419. msgstr ""
  35420. #. type: deftypevr
  35421. #: guix-git/doc/guix.texi:23655
  35422. #, no-wrap
  35423. msgid "{@code{dovecot-configuration} parameter} string rejection-reason"
  35424. msgstr ""
  35425. #. type: deftypevr
  35426. #: guix-git/doc/guix.texi:23658
  35427. msgid "Human readable error message for rejection mails. You can use variables:"
  35428. msgstr ""
  35429. #. type: table
  35430. #: guix-git/doc/guix.texi:23662
  35431. msgid "CRLF"
  35432. msgstr ""
  35433. #. type: item
  35434. #: guix-git/doc/guix.texi:23662
  35435. #, no-wrap
  35436. msgid "%r"
  35437. msgstr ""
  35438. #. type: table
  35439. #: guix-git/doc/guix.texi:23664
  35440. msgid "reason"
  35441. msgstr ""
  35442. #. type: table
  35443. #: guix-git/doc/guix.texi:23666
  35444. msgid "original subject"
  35445. msgstr ""
  35446. #. type: item
  35447. #: guix-git/doc/guix.texi:23666
  35448. #, no-wrap
  35449. msgid "%t"
  35450. msgstr ""
  35451. #. type: table
  35452. #: guix-git/doc/guix.texi:23668
  35453. msgid "recipient"
  35454. msgstr ""
  35455. #. type: deftypevr
  35456. #: guix-git/doc/guix.texi:23670
  35457. msgid "Defaults to @samp{\"Your message to <%t> was automatically rejected:%n%r\"}."
  35458. msgstr ""
  35459. #. type: deftypevr
  35460. #: guix-git/doc/guix.texi:23672
  35461. #, no-wrap
  35462. msgid "{@code{dovecot-configuration} parameter} string recipient-delimiter"
  35463. msgstr ""
  35464. #. type: deftypevr
  35465. #: guix-git/doc/guix.texi:23676
  35466. msgid "Delimiter character between local-part and detail in email address. Defaults to @samp{\"+\"}."
  35467. msgstr ""
  35468. #. type: deftypevr
  35469. #: guix-git/doc/guix.texi:23678
  35470. #, no-wrap
  35471. msgid "{@code{dovecot-configuration} parameter} string lda-original-recipient-header"
  35472. msgstr ""
  35473. #. type: deftypevr
  35474. #: guix-git/doc/guix.texi:23684
  35475. 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{\"\"}."
  35476. msgstr ""
  35477. #. type: deftypevr
  35478. #: guix-git/doc/guix.texi:23686
  35479. #, no-wrap
  35480. msgid "{@code{dovecot-configuration} parameter} boolean lda-mailbox-autocreate?"
  35481. msgstr ""
  35482. #. type: deftypevr
  35483. #: guix-git/doc/guix.texi:23690
  35484. msgid "Should saving a mail to a nonexistent mailbox automatically create it?. Defaults to @samp{#f}."
  35485. msgstr ""
  35486. #. type: deftypevr
  35487. #: guix-git/doc/guix.texi:23692
  35488. #, no-wrap
  35489. msgid "{@code{dovecot-configuration} parameter} boolean lda-mailbox-autosubscribe?"
  35490. msgstr ""
  35491. #. type: deftypevr
  35492. #: guix-git/doc/guix.texi:23696
  35493. msgid "Should automatically created mailboxes be also automatically subscribed?. Defaults to @samp{#f}."
  35494. msgstr ""
  35495. #. type: deftypevr
  35496. #: guix-git/doc/guix.texi:23698
  35497. #, no-wrap
  35498. msgid "{@code{dovecot-configuration} parameter} non-negative-integer imap-max-line-length"
  35499. msgstr ""
  35500. #. type: deftypevr
  35501. #: guix-git/doc/guix.texi:23704
  35502. 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}."
  35503. msgstr ""
  35504. #. type: deftypevr
  35505. #: guix-git/doc/guix.texi:23706
  35506. #, no-wrap
  35507. msgid "{@code{dovecot-configuration} parameter} string imap-logout-format"
  35508. msgstr ""
  35509. #. type: deftypevr
  35510. #: guix-git/doc/guix.texi:23708
  35511. msgid "IMAP logout format string:"
  35512. msgstr ""
  35513. #. type: item
  35514. #: guix-git/doc/guix.texi:23709
  35515. #, no-wrap
  35516. msgid "%i"
  35517. msgstr ""
  35518. #. type: table
  35519. #: guix-git/doc/guix.texi:23711
  35520. msgid "total number of bytes read from client"
  35521. msgstr ""
  35522. #. type: item
  35523. #: guix-git/doc/guix.texi:23711
  35524. #, no-wrap
  35525. msgid "%o"
  35526. msgstr ""
  35527. #. type: table
  35528. #: guix-git/doc/guix.texi:23713
  35529. msgid "total number of bytes sent to client."
  35530. msgstr ""
  35531. #. type: deftypevr
  35532. #: guix-git/doc/guix.texi:23716
  35533. 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@}\"}."
  35534. msgstr ""
  35535. #. type: deftypevr
  35536. #: guix-git/doc/guix.texi:23718
  35537. #, no-wrap
  35538. msgid "{@code{dovecot-configuration} parameter} string imap-capability"
  35539. msgstr ""
  35540. #. type: deftypevr
  35541. #: guix-git/doc/guix.texi:23722
  35542. 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{\"\"}."
  35543. msgstr ""
  35544. #. type: deftypevr
  35545. #: guix-git/doc/guix.texi:23724
  35546. #, no-wrap
  35547. msgid "{@code{dovecot-configuration} parameter} string imap-idle-notify-interval"
  35548. msgstr ""
  35549. #. type: deftypevr
  35550. #: guix-git/doc/guix.texi:23728
  35551. msgid "How long to wait between \"OK Still here\" notifications when client is IDLEing. Defaults to @samp{\"2 mins\"}."
  35552. msgstr ""
  35553. #. type: deftypevr
  35554. #: guix-git/doc/guix.texi:23730
  35555. #, no-wrap
  35556. msgid "{@code{dovecot-configuration} parameter} string imap-id-send"
  35557. msgstr ""
  35558. #. type: deftypevr
  35559. #: guix-git/doc/guix.texi:23736
  35560. 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{\"\"}."
  35561. msgstr ""
  35562. #. type: deftypevr
  35563. #: guix-git/doc/guix.texi:23738
  35564. #, no-wrap
  35565. msgid "{@code{dovecot-configuration} parameter} string imap-id-log"
  35566. msgstr ""
  35567. #. type: deftypevr
  35568. #: guix-git/doc/guix.texi:23741
  35569. msgid "ID fields sent by client to log. * means everything. Defaults to @samp{\"\"}."
  35570. msgstr ""
  35571. #. type: deftypevr
  35572. #: guix-git/doc/guix.texi:23743
  35573. #, no-wrap
  35574. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list imap-client-workarounds"
  35575. msgstr ""
  35576. #. type: deftypevr
  35577. #: guix-git/doc/guix.texi:23745
  35578. msgid "Workarounds for various client bugs:"
  35579. msgstr ""
  35580. #. type: item
  35581. #: guix-git/doc/guix.texi:23747
  35582. #, no-wrap
  35583. msgid "delay-newmail"
  35584. msgstr ""
  35585. #. type: table
  35586. #: guix-git/doc/guix.texi:23754
  35587. 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\"."
  35588. msgstr ""
  35589. #. type: item
  35590. #: guix-git/doc/guix.texi:23755
  35591. #, no-wrap
  35592. msgid "tb-extra-mailbox-sep"
  35593. msgstr ""
  35594. #. type: table
  35595. #: guix-git/doc/guix.texi:23759
  35596. 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."
  35597. msgstr ""
  35598. #. type: item
  35599. #: guix-git/doc/guix.texi:23760
  35600. #, no-wrap
  35601. msgid "tb-lsub-flags"
  35602. msgstr ""
  35603. #. type: table
  35604. #: guix-git/doc/guix.texi:23764
  35605. 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."
  35606. msgstr ""
  35607. #. type: deftypevr
  35608. #: guix-git/doc/guix.texi:23768
  35609. #, no-wrap
  35610. msgid "{@code{dovecot-configuration} parameter} string imap-urlauth-host"
  35611. msgstr ""
  35612. #. type: deftypevr
  35613. #: guix-git/doc/guix.texi:23771
  35614. msgid "Host allowed in URLAUTH URLs sent by client. \"*\" allows all. Defaults to @samp{\"\"}."
  35615. msgstr ""
  35616. #. type: Plain text
  35617. #: guix-git/doc/guix.texi:23779
  35618. 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."
  35619. msgstr ""
  35620. #. type: Plain text
  35621. #: guix-git/doc/guix.texi:23785
  35622. 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."
  35623. msgstr ""
  35624. #. type: Plain text
  35625. #: guix-git/doc/guix.texi:23787
  35626. msgid "Available @code{opaque-dovecot-configuration} fields are:"
  35627. msgstr ""
  35628. #. type: deftypevr
  35629. #: guix-git/doc/guix.texi:23788
  35630. #, no-wrap
  35631. msgid "{@code{opaque-dovecot-configuration} parameter} package dovecot"
  35632. msgstr ""
  35633. #. type: deftypevr
  35634. #: guix-git/doc/guix.texi:23792
  35635. #, no-wrap
  35636. msgid "{@code{opaque-dovecot-configuration} parameter} string string"
  35637. msgstr ""
  35638. #. type: deftypevr
  35639. #: guix-git/doc/guix.texi:23794
  35640. msgid "The contents of the @code{dovecot.conf}, as a string."
  35641. msgstr ""
  35642. #. type: Plain text
  35643. #: guix-git/doc/guix.texi:23798
  35644. msgid "For example, if your @code{dovecot.conf} is just the empty string, you could instantiate a dovecot service like this:"
  35645. msgstr ""
  35646. #. type: lisp
  35647. #: guix-git/doc/guix.texi:23803
  35648. #, no-wrap
  35649. msgid ""
  35650. "(dovecot-service #:config\n"
  35651. " (opaque-dovecot-configuration\n"
  35652. " (string \"\")))\n"
  35653. msgstr ""
  35654. #. type: subsubheading
  35655. #: guix-git/doc/guix.texi:23805
  35656. #, no-wrap
  35657. msgid "OpenSMTPD Service"
  35658. msgstr ""
  35659. #. type: deffn
  35660. #: guix-git/doc/guix.texi:23807
  35661. #, no-wrap
  35662. msgid "{Scheme Variable} opensmtpd-service-type"
  35663. msgstr ""
  35664. #. type: deffn
  35665. #: guix-git/doc/guix.texi:23811
  35666. 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:"
  35667. msgstr ""
  35668. #. type: lisp
  35669. #: guix-git/doc/guix.texi:23816
  35670. #, no-wrap
  35671. msgid ""
  35672. "(service opensmtpd-service-type\n"
  35673. " (opensmtpd-configuration\n"
  35674. " (config-file (local-file \"./my-smtpd.conf\"))))\n"
  35675. msgstr ""
  35676. #. type: deftp
  35677. #: guix-git/doc/guix.texi:23819
  35678. #, no-wrap
  35679. msgid "{Data Type} opensmtpd-configuration"
  35680. msgstr ""
  35681. #. type: deftp
  35682. #: guix-git/doc/guix.texi:23821
  35683. msgid "Data type representing the configuration of opensmtpd."
  35684. msgstr ""
  35685. #. type: item
  35686. #: guix-git/doc/guix.texi:23823
  35687. #, no-wrap
  35688. msgid "@code{package} (default: @var{opensmtpd})"
  35689. msgstr ""
  35690. #. type: table
  35691. #: guix-git/doc/guix.texi:23825
  35692. msgid "Package object of the OpenSMTPD SMTP server."
  35693. msgstr ""
  35694. #. type: item
  35695. #: guix-git/doc/guix.texi:23826
  35696. #, fuzzy, no-wrap
  35697. msgid "@code{config-file} (default: @code{%default-opensmtpd-config-file})"
  35698. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  35699. #. type: table
  35700. #: guix-git/doc/guix.texi:23831
  35701. 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."
  35702. msgstr ""
  35703. #. type: subsubheading
  35704. #: guix-git/doc/guix.texi:23835
  35705. #, no-wrap
  35706. msgid "Exim Service"
  35707. msgstr ""
  35708. #. type: cindex
  35709. #: guix-git/doc/guix.texi:23837
  35710. #, no-wrap
  35711. msgid "mail transfer agent (MTA)"
  35712. msgstr ""
  35713. #. type: cindex
  35714. #: guix-git/doc/guix.texi:23838
  35715. #, no-wrap
  35716. msgid "MTA (mail transfer agent)"
  35717. msgstr ""
  35718. #. type: cindex
  35719. #: guix-git/doc/guix.texi:23839
  35720. #, no-wrap
  35721. msgid "SMTP"
  35722. msgstr ""
  35723. #. type: deffn
  35724. #: guix-git/doc/guix.texi:23841
  35725. #, no-wrap
  35726. msgid "{Scheme Variable} exim-service-type"
  35727. msgstr ""
  35728. #. type: deffn
  35729. #: guix-git/doc/guix.texi:23845
  35730. 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:"
  35731. msgstr ""
  35732. #. type: lisp
  35733. #: guix-git/doc/guix.texi:23850
  35734. #, no-wrap
  35735. msgid ""
  35736. "(service exim-service-type\n"
  35737. " (exim-configuration\n"
  35738. " (config-file (local-file \"./my-exim.conf\"))))\n"
  35739. msgstr ""
  35740. #. type: Plain text
  35741. #: guix-git/doc/guix.texi:23856
  35742. 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)."
  35743. msgstr ""
  35744. #. type: deftp
  35745. #: guix-git/doc/guix.texi:23857
  35746. #, no-wrap
  35747. msgid "{Data Type} exim-configuration"
  35748. msgstr ""
  35749. #. type: deftp
  35750. #: guix-git/doc/guix.texi:23859
  35751. msgid "Data type representing the configuration of exim."
  35752. msgstr ""
  35753. #. type: item
  35754. #: guix-git/doc/guix.texi:23861
  35755. #, no-wrap
  35756. msgid "@code{package} (default: @var{exim})"
  35757. msgstr ""
  35758. #. type: table
  35759. #: guix-git/doc/guix.texi:23863
  35760. msgid "Package object of the Exim server."
  35761. msgstr ""
  35762. #. type: table
  35763. #: guix-git/doc/guix.texi:23870
  35764. 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."
  35765. msgstr ""
  35766. #. type: subsubheading
  35767. #: guix-git/doc/guix.texi:23874
  35768. #, fuzzy, no-wrap
  35769. msgid "Getmail service"
  35770. msgstr "邮件服务"
  35771. #. type: cindex
  35772. #: guix-git/doc/guix.texi:23876
  35773. #, no-wrap
  35774. msgid "IMAP"
  35775. msgstr ""
  35776. #. type: cindex
  35777. #: guix-git/doc/guix.texi:23877
  35778. #, no-wrap
  35779. msgid "POP"
  35780. msgstr ""
  35781. #. type: deffn
  35782. #: guix-git/doc/guix.texi:23879
  35783. #, no-wrap
  35784. msgid "{Scheme Variable} getmail-service-type"
  35785. msgstr ""
  35786. #. type: deffn
  35787. #: guix-git/doc/guix.texi:23882
  35788. msgid "This is the type of the @uref{http://pyropus.ca/software/getmail/, Getmail} mail retriever, whose value should be an @code{getmail-configuration}."
  35789. msgstr ""
  35790. #. type: Plain text
  35791. #: guix-git/doc/guix.texi:23885
  35792. msgid "Available @code{getmail-configuration} fields are:"
  35793. msgstr ""
  35794. #. type: deftypevr
  35795. #: guix-git/doc/guix.texi:23886
  35796. #, no-wrap
  35797. msgid "{@code{getmail-configuration} parameter} symbol name"
  35798. msgstr ""
  35799. #. type: deftypevr
  35800. #: guix-git/doc/guix.texi:23888
  35801. msgid "A symbol to identify the getmail service."
  35802. msgstr ""
  35803. #. type: deftypevr
  35804. #: guix-git/doc/guix.texi:23890
  35805. msgid "Defaults to @samp{\"unset\"}."
  35806. msgstr ""
  35807. #. type: deftypevr
  35808. #: guix-git/doc/guix.texi:23893
  35809. #, no-wrap
  35810. msgid "{@code{getmail-configuration} parameter} package package"
  35811. msgstr ""
  35812. #. type: deftypevr
  35813. #: guix-git/doc/guix.texi:23895
  35814. #, fuzzy
  35815. msgid "The getmail package to use."
  35816. msgstr "软件包数据类型。"
  35817. #. type: deftypevr
  35818. #: guix-git/doc/guix.texi:23898
  35819. #, no-wrap
  35820. msgid "{@code{getmail-configuration} parameter} string user"
  35821. msgstr ""
  35822. #. type: deftypevr
  35823. #: guix-git/doc/guix.texi:23900
  35824. msgid "The user to run getmail as."
  35825. msgstr ""
  35826. #. type: deftypevr
  35827. #: guix-git/doc/guix.texi:23902 guix-git/doc/guix.texi:23909
  35828. msgid "Defaults to @samp{\"getmail\"}."
  35829. msgstr ""
  35830. #. type: deftypevr
  35831. #: guix-git/doc/guix.texi:23905
  35832. #, no-wrap
  35833. msgid "{@code{getmail-configuration} parameter} string group"
  35834. msgstr ""
  35835. #. type: deftypevr
  35836. #: guix-git/doc/guix.texi:23907
  35837. msgid "The group to run getmail as."
  35838. msgstr ""
  35839. #. type: deftypevr
  35840. #: guix-git/doc/guix.texi:23912
  35841. #, no-wrap
  35842. msgid "{@code{getmail-configuration} parameter} string directory"
  35843. msgstr ""
  35844. #. type: deftypevr
  35845. #: guix-git/doc/guix.texi:23914
  35846. msgid "The getmail directory to use."
  35847. msgstr ""
  35848. #. type: deftypevr
  35849. #: guix-git/doc/guix.texi:23916
  35850. msgid "Defaults to @samp{\"/var/lib/getmail/default\"}."
  35851. msgstr ""
  35852. #. type: deftypevr
  35853. #: guix-git/doc/guix.texi:23919
  35854. #, no-wrap
  35855. msgid "{@code{getmail-configuration} parameter} getmail-configuration-file rcfile"
  35856. msgstr ""
  35857. #. type: deftypevr
  35858. #: guix-git/doc/guix.texi:23921
  35859. msgid "The getmail configuration file to use."
  35860. msgstr ""
  35861. #. type: deftypevr
  35862. #: guix-git/doc/guix.texi:23923
  35863. msgid "Available @code{getmail-configuration-file} fields are:"
  35864. msgstr ""
  35865. #. type: deftypevr
  35866. #: guix-git/doc/guix.texi:23924
  35867. #, no-wrap
  35868. msgid "{@code{getmail-configuration-file} parameter} getmail-retriever-configuration retriever"
  35869. msgstr ""
  35870. #. type: deftypevr
  35871. #: guix-git/doc/guix.texi:23926
  35872. msgid "What mail account to retrieve mail from, and how to access that account."
  35873. msgstr ""
  35874. #. type: deftypevr
  35875. #: guix-git/doc/guix.texi:23928
  35876. msgid "Available @code{getmail-retriever-configuration} fields are:"
  35877. msgstr ""
  35878. #. type: deftypevr
  35879. #: guix-git/doc/guix.texi:23929
  35880. #, no-wrap
  35881. msgid "{@code{getmail-retriever-configuration} parameter} string type"
  35882. msgstr ""
  35883. #. type: deftypevr
  35884. #: guix-git/doc/guix.texi:23932
  35885. msgid "The type of mail retriever to use. Valid values include @samp{passwd} and @samp{static}."
  35886. msgstr ""
  35887. #. type: deftypevr
  35888. #: guix-git/doc/guix.texi:23934
  35889. msgid "Defaults to @samp{\"SimpleIMAPSSLRetriever\"}."
  35890. msgstr ""
  35891. #. type: deftypevr
  35892. #: guix-git/doc/guix.texi:23937
  35893. #, no-wrap
  35894. msgid "{@code{getmail-retriever-configuration} parameter} string server"
  35895. msgstr ""
  35896. #. type: deftypevr
  35897. #: guix-git/doc/guix.texi:23939 guix-git/doc/guix.texi:23946
  35898. msgid "Username to login to the mail server with."
  35899. msgstr ""
  35900. #. type: deftypevr
  35901. #: guix-git/doc/guix.texi:23941 guix-git/doc/guix.texi:23948
  35902. #: guix-git/doc/guix.texi:24012
  35903. msgid "Defaults to @samp{unset}."
  35904. msgstr ""
  35905. #. type: deftypevr
  35906. #: guix-git/doc/guix.texi:23944
  35907. #, no-wrap
  35908. msgid "{@code{getmail-retriever-configuration} parameter} string username"
  35909. msgstr ""
  35910. #. type: deftypevr
  35911. #: guix-git/doc/guix.texi:23951
  35912. #, no-wrap
  35913. msgid "{@code{getmail-retriever-configuration} parameter} non-negative-integer port"
  35914. msgstr ""
  35915. #. type: deftypevr
  35916. #: guix-git/doc/guix.texi:23953
  35917. msgid "Port number to connect to."
  35918. msgstr ""
  35919. #. type: deftypevr
  35920. #: guix-git/doc/guix.texi:23958
  35921. #, no-wrap
  35922. msgid "{@code{getmail-retriever-configuration} parameter} string password"
  35923. msgstr ""
  35924. #. type: deftypevr
  35925. #: guix-git/doc/guix.texi:23960 guix-git/doc/guix.texi:23967
  35926. msgid "Override fields from passwd."
  35927. msgstr ""
  35928. #. type: deftypevr
  35929. #: guix-git/doc/guix.texi:23965
  35930. #, no-wrap
  35931. msgid "{@code{getmail-retriever-configuration} parameter} list password-command"
  35932. msgstr ""
  35933. #. type: deftypevr
  35934. #: guix-git/doc/guix.texi:23972
  35935. #, no-wrap
  35936. msgid "{@code{getmail-retriever-configuration} parameter} string keyfile"
  35937. msgstr ""
  35938. #. type: deftypevr
  35939. #: guix-git/doc/guix.texi:23974
  35940. msgid "PEM-formatted key file to use for the TLS negotiation."
  35941. msgstr ""
  35942. #. type: deftypevr
  35943. #: guix-git/doc/guix.texi:23979
  35944. #, no-wrap
  35945. msgid "{@code{getmail-retriever-configuration} parameter} string certfile"
  35946. msgstr ""
  35947. #. type: deftypevr
  35948. #: guix-git/doc/guix.texi:23981
  35949. msgid "PEM-formatted certificate file to use for the TLS negotiation."
  35950. msgstr ""
  35951. #. type: deftypevr
  35952. #: guix-git/doc/guix.texi:23986
  35953. #, no-wrap
  35954. msgid "{@code{getmail-retriever-configuration} parameter} string ca-certs"
  35955. msgstr ""
  35956. #. type: deftypevr
  35957. #: guix-git/doc/guix.texi:23988
  35958. #, fuzzy
  35959. msgid "CA certificates to use."
  35960. msgstr "证书服务"
  35961. #. type: deftypevr
  35962. #: guix-git/doc/guix.texi:23993
  35963. #, no-wrap
  35964. msgid "{@code{getmail-retriever-configuration} parameter} parameter-alist extra-parameters"
  35965. msgstr ""
  35966. #. type: deftypevr
  35967. #: guix-git/doc/guix.texi:23995
  35968. msgid "Extra retriever parameters."
  35969. msgstr ""
  35970. #. type: deftypevr
  35971. #: guix-git/doc/guix.texi:24002
  35972. #, no-wrap
  35973. msgid "{@code{getmail-configuration-file} parameter} getmail-destination-configuration destination"
  35974. msgstr ""
  35975. #. type: deftypevr
  35976. #: guix-git/doc/guix.texi:24004
  35977. msgid "What to do with retrieved messages."
  35978. msgstr ""
  35979. #. type: deftypevr
  35980. #: guix-git/doc/guix.texi:24006
  35981. msgid "Available @code{getmail-destination-configuration} fields are:"
  35982. msgstr ""
  35983. #. type: deftypevr
  35984. #: guix-git/doc/guix.texi:24007
  35985. #, no-wrap
  35986. msgid "{@code{getmail-destination-configuration} parameter} string type"
  35987. msgstr ""
  35988. #. type: deftypevr
  35989. #: guix-git/doc/guix.texi:24010
  35990. msgid "The type of mail destination. Valid values include @samp{Maildir}, @samp{Mboxrd} and @samp{MDA_external}."
  35991. msgstr ""
  35992. #. type: deftypevr
  35993. #: guix-git/doc/guix.texi:24015
  35994. #, no-wrap
  35995. msgid "{@code{getmail-destination-configuration} parameter} string-or-filelike path"
  35996. msgstr ""
  35997. #. type: deftypevr
  35998. #: guix-git/doc/guix.texi:24018
  35999. msgid "The path option for the mail destination. The behaviour depends on the chosen type."
  36000. msgstr ""
  36001. #. type: deftypevr
  36002. #: guix-git/doc/guix.texi:24023
  36003. #, no-wrap
  36004. msgid "{@code{getmail-destination-configuration} parameter} parameter-alist extra-parameters"
  36005. msgstr ""
  36006. #. type: deftypevr
  36007. #: guix-git/doc/guix.texi:24025
  36008. msgid "Extra destination parameters"
  36009. msgstr ""
  36010. #. type: deftypevr
  36011. #: guix-git/doc/guix.texi:24032
  36012. #, no-wrap
  36013. msgid "{@code{getmail-configuration-file} parameter} getmail-options-configuration options"
  36014. msgstr ""
  36015. #. type: deftypevr
  36016. #: guix-git/doc/guix.texi:24034
  36017. msgid "Configure getmail."
  36018. msgstr ""
  36019. #. type: deftypevr
  36020. #: guix-git/doc/guix.texi:24036
  36021. msgid "Available @code{getmail-options-configuration} fields are:"
  36022. msgstr ""
  36023. #. type: deftypevr
  36024. #: guix-git/doc/guix.texi:24037
  36025. #, no-wrap
  36026. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer verbose"
  36027. msgstr ""
  36028. #. type: deftypevr
  36029. #: guix-git/doc/guix.texi:24042
  36030. 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."
  36031. msgstr ""
  36032. #. type: deftypevr
  36033. #: guix-git/doc/guix.texi:24044 guix-git/doc/guix.texi:30579
  36034. #: guix-git/doc/guix.texi:31171 guix-git/doc/guix.texi:31316
  36035. msgid "Defaults to @samp{1}."
  36036. msgstr ""
  36037. #. type: deftypevr
  36038. #: guix-git/doc/guix.texi:24047
  36039. #, no-wrap
  36040. msgid "{@code{getmail-options-configuration} parameter} boolean read-all"
  36041. msgstr ""
  36042. #. type: deftypevr
  36043. #: guix-git/doc/guix.texi:24050
  36044. msgid "If true, getmail will retrieve all available messages. Otherwise it will only retrieve messages it hasn't seen previously."
  36045. msgstr ""
  36046. #. type: deftypevr
  36047. #: guix-git/doc/guix.texi:24055
  36048. #, no-wrap
  36049. msgid "{@code{getmail-options-configuration} parameter} boolean delete"
  36050. msgstr ""
  36051. #. type: deftypevr
  36052. #: guix-git/doc/guix.texi:24059
  36053. 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."
  36054. msgstr ""
  36055. #. type: deftypevr
  36056. #: guix-git/doc/guix.texi:24064
  36057. #, no-wrap
  36058. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer delete-after"
  36059. msgstr ""
  36060. #. type: deftypevr
  36061. #: guix-git/doc/guix.texi:24069
  36062. 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."
  36063. msgstr ""
  36064. #. type: deftypevr
  36065. #: guix-git/doc/guix.texi:24074
  36066. #, no-wrap
  36067. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer delete-bigger-than"
  36068. msgstr ""
  36069. #. type: deftypevr
  36070. #: guix-git/doc/guix.texi:24078
  36071. 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."
  36072. msgstr ""
  36073. #. type: deftypevr
  36074. #: guix-git/doc/guix.texi:24083
  36075. #, no-wrap
  36076. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer max-bytes-per-session"
  36077. msgstr ""
  36078. #. type: deftypevr
  36079. #: guix-git/doc/guix.texi:24086
  36080. 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."
  36081. msgstr ""
  36082. #. type: deftypevr
  36083. #: guix-git/doc/guix.texi:24091
  36084. #, no-wrap
  36085. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer max-message-size"
  36086. msgstr ""
  36087. #. type: deftypevr
  36088. #: guix-git/doc/guix.texi:24094
  36089. msgid "Don't retrieve messages larger than this number of bytes. A value of @samp{0} disables this feature."
  36090. msgstr ""
  36091. #. type: deftypevr
  36092. #: guix-git/doc/guix.texi:24099
  36093. #, no-wrap
  36094. msgid "{@code{getmail-options-configuration} parameter} boolean delivered-to"
  36095. msgstr ""
  36096. #. type: deftypevr
  36097. #: guix-git/doc/guix.texi:24101
  36098. msgid "If true, getmail will add a Delivered-To header to messages."
  36099. msgstr ""
  36100. #. type: deftypevr
  36101. #: guix-git/doc/guix.texi:24106
  36102. #, no-wrap
  36103. msgid "{@code{getmail-options-configuration} parameter} boolean received"
  36104. msgstr ""
  36105. #. type: deftypevr
  36106. #: guix-git/doc/guix.texi:24108
  36107. msgid "If set, getmail adds a Received header to the messages."
  36108. msgstr ""
  36109. #. type: deftypevr
  36110. #: guix-git/doc/guix.texi:24113
  36111. #, no-wrap
  36112. msgid "{@code{getmail-options-configuration} parameter} string message-log"
  36113. msgstr ""
  36114. #. type: deftypevr
  36115. #: guix-git/doc/guix.texi:24116
  36116. msgid "Getmail will record a log of its actions to the named file. A value of @samp{\"\"} disables this feature."
  36117. msgstr ""
  36118. #. type: deftypevr
  36119. #: guix-git/doc/guix.texi:24121
  36120. #, no-wrap
  36121. msgid "{@code{getmail-options-configuration} parameter} boolean message-log-syslog"
  36122. msgstr ""
  36123. #. type: deftypevr
  36124. #: guix-git/doc/guix.texi:24124
  36125. msgid "If true, getmail will record a log of its actions using the system logger."
  36126. msgstr ""
  36127. #. type: deftypevr
  36128. #: guix-git/doc/guix.texi:24129
  36129. #, no-wrap
  36130. msgid "{@code{getmail-options-configuration} parameter} boolean message-log-verbose"
  36131. msgstr ""
  36132. #. type: deftypevr
  36133. #: guix-git/doc/guix.texi:24133
  36134. 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."
  36135. msgstr ""
  36136. #. type: deftypevr
  36137. #: guix-git/doc/guix.texi:24138
  36138. #, no-wrap
  36139. msgid "{@code{getmail-options-configuration} parameter} parameter-alist extra-parameters"
  36140. msgstr ""
  36141. #. type: deftypevr
  36142. #: guix-git/doc/guix.texi:24140
  36143. msgid "Extra options to include."
  36144. msgstr ""
  36145. #. type: deftypevr
  36146. #: guix-git/doc/guix.texi:24149
  36147. #, no-wrap
  36148. msgid "{@code{getmail-configuration} parameter} list idle"
  36149. msgstr ""
  36150. #. type: deftypevr
  36151. #: guix-git/doc/guix.texi:24153
  36152. 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."
  36153. msgstr ""
  36154. #. type: deftypevr
  36155. #: guix-git/doc/guix.texi:24158
  36156. #, no-wrap
  36157. msgid "{@code{getmail-configuration} parameter} list environment-variables"
  36158. msgstr ""
  36159. #. type: deftypevr
  36160. #: guix-git/doc/guix.texi:24160
  36161. msgid "Environment variables to set for getmail."
  36162. msgstr ""
  36163. #. type: subsubheading
  36164. #: guix-git/doc/guix.texi:24165
  36165. #, no-wrap
  36166. msgid "Mail Aliases Service"
  36167. msgstr ""
  36168. #. type: cindex
  36169. #: guix-git/doc/guix.texi:24167
  36170. #, no-wrap
  36171. msgid "email aliases"
  36172. msgstr ""
  36173. #. type: cindex
  36174. #: guix-git/doc/guix.texi:24168
  36175. #, no-wrap
  36176. msgid "aliases, for email addresses"
  36177. msgstr ""
  36178. #. type: deffn
  36179. #: guix-git/doc/guix.texi:24170
  36180. #, no-wrap
  36181. msgid "{Scheme Variable} mail-aliases-service-type"
  36182. msgstr ""
  36183. #. type: deffn
  36184. #: guix-git/doc/guix.texi:24173
  36185. msgid "This is the type of the service which provides @code{/etc/aliases}, specifying how to deliver mail to users on this system."
  36186. msgstr ""
  36187. #. type: lisp
  36188. #: guix-git/doc/guix.texi:24178
  36189. #, no-wrap
  36190. msgid ""
  36191. "(service mail-aliases-service-type\n"
  36192. " '((\"postmaster\" \"bob\")\n"
  36193. " (\"bob\" \"bob@@example.com\" \"bob@@example2.com\")))\n"
  36194. msgstr ""
  36195. #. type: Plain text
  36196. #: guix-git/doc/guix.texi:24186
  36197. 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."
  36198. msgstr ""
  36199. #. type: Plain text
  36200. #: guix-git/doc/guix.texi:24192
  36201. 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})."
  36202. msgstr ""
  36203. #. type: cindex
  36204. #: guix-git/doc/guix.texi:24193 guix-git/doc/guix.texi:24194
  36205. #, no-wrap
  36206. msgid "GNU Mailutils IMAP4 Daemon"
  36207. msgstr ""
  36208. #. type: deffn
  36209. #: guix-git/doc/guix.texi:24196
  36210. #, no-wrap
  36211. msgid "{Scheme Variable} imap4d-service-type"
  36212. msgstr ""
  36213. #. type: deffn
  36214. #: guix-git/doc/guix.texi:24200
  36215. 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:"
  36216. msgstr ""
  36217. #. type: lisp
  36218. #: guix-git/doc/guix.texi:24205
  36219. #, no-wrap
  36220. msgid ""
  36221. "(service imap4d-service-type\n"
  36222. " (imap4d-configuration\n"
  36223. " (config-file (local-file \"imap4d.conf\"))))\n"
  36224. msgstr ""
  36225. #. type: deftp
  36226. #: guix-git/doc/guix.texi:24208
  36227. #, no-wrap
  36228. msgid "{Data Type} imap4d-configuration"
  36229. msgstr ""
  36230. #. type: deftp
  36231. #: guix-git/doc/guix.texi:24210
  36232. msgid "Data type representing the configuration of @command{imap4d}."
  36233. msgstr ""
  36234. #. type: item
  36235. #: guix-git/doc/guix.texi:24212
  36236. #, no-wrap
  36237. msgid "@code{package} (default: @code{mailutils})"
  36238. msgstr ""
  36239. #. type: table
  36240. #: guix-git/doc/guix.texi:24214
  36241. msgid "The package that provides @command{imap4d}."
  36242. msgstr ""
  36243. #. type: item
  36244. #: guix-git/doc/guix.texi:24215
  36245. #, no-wrap
  36246. msgid "@code{config-file} (default: @code{%default-imap4d-config-file})"
  36247. msgstr ""
  36248. #. type: table
  36249. #: guix-git/doc/guix.texi:24219
  36250. 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."
  36251. msgstr ""
  36252. #. type: subsubheading
  36253. #: guix-git/doc/guix.texi:24223
  36254. #, fuzzy, no-wrap
  36255. msgid "Radicale Service"
  36256. msgstr "邮件服务"
  36257. #. type: cindex
  36258. #: guix-git/doc/guix.texi:24224
  36259. #, no-wrap
  36260. msgid "CalDAV"
  36261. msgstr ""
  36262. #. type: cindex
  36263. #: guix-git/doc/guix.texi:24225
  36264. #, no-wrap
  36265. msgid "CardDAV"
  36266. msgstr ""
  36267. #. type: deffn
  36268. #: guix-git/doc/guix.texi:24227
  36269. #, no-wrap
  36270. msgid "{Scheme Variable} radicale-service-type"
  36271. msgstr ""
  36272. #. type: deffn
  36273. #: guix-git/doc/guix.texi:24230
  36274. msgid "This is the type of the @uref{https://radicale.org, Radicale} CalDAV/CardDAV server whose value should be a @code{radicale-configuration}."
  36275. msgstr ""
  36276. #. type: deftp
  36277. #: guix-git/doc/guix.texi:24232
  36278. #, fuzzy, no-wrap
  36279. msgid "{Data Type} radicale-configuration"
  36280. msgstr "{数据类型} build-machine"
  36281. #. type: deftp
  36282. #: guix-git/doc/guix.texi:24234
  36283. #, fuzzy
  36284. msgid "Data type representing the configuration of @command{radicale}."
  36285. msgstr "管理操作系统配置。"
  36286. #. type: item
  36287. #: guix-git/doc/guix.texi:24236
  36288. #, fuzzy, no-wrap
  36289. msgid "@code{package} (default: @code{radicale})"
  36290. msgstr "@code{mate}(默认值:@code{mate})"
  36291. #. type: table
  36292. #: guix-git/doc/guix.texi:24238
  36293. msgid "The package that provides @command{radicale}."
  36294. msgstr ""
  36295. #. type: item
  36296. #: guix-git/doc/guix.texi:24239
  36297. #, fuzzy, no-wrap
  36298. msgid "@code{config-file} (default: @code{%default-radicale-config-file})"
  36299. msgstr "@code{gnome}(默认值:@code{gnome})"
  36300. #. type: table
  36301. #: guix-git/doc/guix.texi:24243
  36302. 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."
  36303. msgstr ""
  36304. #. type: cindex
  36305. #: guix-git/doc/guix.texi:24250
  36306. #, no-wrap
  36307. msgid "messaging"
  36308. msgstr ""
  36309. #. type: cindex
  36310. #: guix-git/doc/guix.texi:24251
  36311. #, no-wrap
  36312. msgid "jabber"
  36313. msgstr ""
  36314. #. type: cindex
  36315. #: guix-git/doc/guix.texi:24252
  36316. #, no-wrap
  36317. msgid "XMPP"
  36318. msgstr ""
  36319. #. type: Plain text
  36320. #: guix-git/doc/guix.texi:24256
  36321. msgid "The @code{(gnu services messaging)} module provides Guix service definitions for messaging services. Currently it provides the following services:"
  36322. msgstr ""
  36323. #. type: subsubheading
  36324. #: guix-git/doc/guix.texi:24257
  36325. #, no-wrap
  36326. msgid "Prosody Service"
  36327. msgstr ""
  36328. #. type: deffn
  36329. #: guix-git/doc/guix.texi:24259
  36330. #, no-wrap
  36331. msgid "{Scheme Variable} prosody-service-type"
  36332. msgstr ""
  36333. #. type: deffn
  36334. #: guix-git/doc/guix.texi:24263
  36335. 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:"
  36336. msgstr ""
  36337. #. type: lisp
  36338. #: guix-git/doc/guix.texi:24278
  36339. #, no-wrap
  36340. msgid ""
  36341. "(service prosody-service-type\n"
  36342. " (prosody-configuration\n"
  36343. " (modules-enabled (cons* \"groups\" \"mam\" %default-modules-enabled))\n"
  36344. " (int-components\n"
  36345. " (list\n"
  36346. " (int-component-configuration\n"
  36347. " (hostname \"conference.example.net\")\n"
  36348. " (plugin \"muc\")\n"
  36349. " (mod-muc (mod-muc-configuration)))))\n"
  36350. " (virtualhosts\n"
  36351. " (list\n"
  36352. " (virtualhost-configuration\n"
  36353. " (domain \"example.net\"))))))\n"
  36354. msgstr ""
  36355. #. type: deffn
  36356. #: guix-git/doc/guix.texi:24281
  36357. msgid "See below for details about @code{prosody-configuration}."
  36358. msgstr ""
  36359. #. type: Plain text
  36360. #: guix-git/doc/guix.texi:24287
  36361. 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."
  36362. msgstr ""
  36363. #. type: Plain text
  36364. #: guix-git/doc/guix.texi:24290
  36365. msgid "You can perform various sanity checks on the generated configuration with the @code{prosodyctl check} command."
  36366. msgstr ""
  36367. #. type: Plain text
  36368. #: guix-git/doc/guix.texi:24294
  36369. 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}."
  36370. msgstr ""
  36371. #. type: example
  36372. #: guix-git/doc/guix.texi:24297
  36373. #, no-wrap
  36374. msgid "prosodyctl --root cert import /etc/letsencrypt/live\n"
  36375. msgstr ""
  36376. #. type: Plain text
  36377. #: guix-git/doc/guix.texi:24304
  36378. 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}."
  36379. msgstr ""
  36380. #. type: Plain text
  36381. #: guix-git/doc/guix.texi:24308
  36382. 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."
  36383. msgstr ""
  36384. #. type: Plain text
  36385. #: guix-git/doc/guix.texi:24311
  36386. msgid "The @code{file-object} type designates either a file-like object (@pxref{G-Expressions, file-like objects}) or a file name."
  36387. msgstr ""
  36388. #. type: Plain text
  36389. #: guix-git/doc/guix.texi:24321
  36390. msgid "Available @code{prosody-configuration} fields are:"
  36391. msgstr ""
  36392. #. type: deftypevr
  36393. #: guix-git/doc/guix.texi:24322
  36394. #, no-wrap
  36395. msgid "{@code{prosody-configuration} parameter} package prosody"
  36396. msgstr ""
  36397. #. type: deftypevr
  36398. #: guix-git/doc/guix.texi:24324
  36399. msgid "The Prosody package."
  36400. msgstr ""
  36401. #. type: deftypevr
  36402. #: guix-git/doc/guix.texi:24326
  36403. #, no-wrap
  36404. msgid "{@code{prosody-configuration} parameter} file-name data-path"
  36405. msgstr ""
  36406. #. type: deftypevr
  36407. #: guix-git/doc/guix.texi:24330
  36408. msgid "Location of the Prosody data storage directory. See @url{https://prosody.im/doc/configure}. Defaults to @samp{\"/var/lib/prosody\"}."
  36409. msgstr ""
  36410. #. type: deftypevr
  36411. #: guix-git/doc/guix.texi:24332
  36412. #, no-wrap
  36413. msgid "{@code{prosody-configuration} parameter} file-object-list plugin-paths"
  36414. msgstr ""
  36415. #. type: deftypevr
  36416. #: guix-git/doc/guix.texi:24336
  36417. 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{()}."
  36418. msgstr ""
  36419. #. type: deftypevr
  36420. #: guix-git/doc/guix.texi:24338
  36421. #, no-wrap
  36422. msgid "{@code{prosody-configuration} parameter} file-name certificates"
  36423. msgstr ""
  36424. #. type: deftypevr
  36425. #: guix-git/doc/guix.texi:24343
  36426. 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\"}."
  36427. msgstr ""
  36428. #. type: deftypevr
  36429. #: guix-git/doc/guix.texi:24345
  36430. #, no-wrap
  36431. msgid "{@code{prosody-configuration} parameter} string-list admins"
  36432. msgstr ""
  36433. #. type: deftypevr
  36434. #: guix-git/doc/guix.texi:24351
  36435. 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{()}."
  36436. msgstr ""
  36437. #. type: deftypevr
  36438. #: guix-git/doc/guix.texi:24353
  36439. #, no-wrap
  36440. msgid "{@code{prosody-configuration} parameter} boolean use-libevent?"
  36441. msgstr ""
  36442. #. type: deftypevr
  36443. #: guix-git/doc/guix.texi:24357
  36444. msgid "Enable use of libevent for better performance under high load. See @url{https://prosody.im/doc/libevent}. Defaults to @samp{#f}."
  36445. msgstr ""
  36446. #. type: deftypevr
  36447. #: guix-git/doc/guix.texi:24359
  36448. #, no-wrap
  36449. msgid "{@code{prosody-configuration} parameter} module-list modules-enabled"
  36450. msgstr ""
  36451. #. type: deftypevr
  36452. #: guix-git/doc/guix.texi:24365
  36453. 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\")}."
  36454. msgstr ""
  36455. #. type: deftypevr
  36456. #: guix-git/doc/guix.texi:24367
  36457. #, no-wrap
  36458. msgid "{@code{prosody-configuration} parameter} string-list modules-disabled"
  36459. msgstr ""
  36460. #. type: deftypevr
  36461. #: guix-git/doc/guix.texi:24371
  36462. 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{()}."
  36463. msgstr ""
  36464. #. type: deftypevr
  36465. #: guix-git/doc/guix.texi:24373
  36466. #, no-wrap
  36467. msgid "{@code{prosody-configuration} parameter} file-object groups-file"
  36468. msgstr ""
  36469. #. type: deftypevr
  36470. #: guix-git/doc/guix.texi:24378
  36471. 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\"}."
  36472. msgstr ""
  36473. #. type: deftypevr
  36474. #: guix-git/doc/guix.texi:24380
  36475. #, no-wrap
  36476. msgid "{@code{prosody-configuration} parameter} boolean allow-registration?"
  36477. msgstr ""
  36478. #. type: deftypevr
  36479. #: guix-git/doc/guix.texi:24384
  36480. msgid "Disable account creation by default, for security. See @url{https://prosody.im/doc/creating_accounts}. Defaults to @samp{#f}."
  36481. msgstr ""
  36482. #. type: deftypevr
  36483. #: guix-git/doc/guix.texi:24386
  36484. #, no-wrap
  36485. msgid "{@code{prosody-configuration} parameter} maybe-ssl-configuration ssl"
  36486. msgstr ""
  36487. #. type: deftypevr
  36488. #: guix-git/doc/guix.texi:24391
  36489. 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}."
  36490. msgstr ""
  36491. #. type: deftypevr
  36492. #: guix-git/doc/guix.texi:24393
  36493. msgid "Available @code{ssl-configuration} fields are:"
  36494. msgstr ""
  36495. #. type: deftypevr
  36496. #: guix-git/doc/guix.texi:24394
  36497. #, no-wrap
  36498. msgid "{@code{ssl-configuration} parameter} maybe-string protocol"
  36499. msgstr ""
  36500. #. type: deftypevr
  36501. #: guix-git/doc/guix.texi:24396
  36502. msgid "This determines what handshake to use."
  36503. msgstr ""
  36504. #. type: deftypevr
  36505. #: guix-git/doc/guix.texi:24398
  36506. #, no-wrap
  36507. msgid "{@code{ssl-configuration} parameter} maybe-file-name key"
  36508. msgstr ""
  36509. #. type: deftypevr
  36510. #: guix-git/doc/guix.texi:24400
  36511. msgid "Path to your private key file."
  36512. msgstr ""
  36513. #. type: deftypevr
  36514. #: guix-git/doc/guix.texi:24402
  36515. #, no-wrap
  36516. msgid "{@code{ssl-configuration} parameter} maybe-file-name certificate"
  36517. msgstr ""
  36518. #. type: deftypevr
  36519. #: guix-git/doc/guix.texi:24404
  36520. msgid "Path to your certificate file."
  36521. msgstr ""
  36522. #. type: deftypevr
  36523. #: guix-git/doc/guix.texi:24406
  36524. #, no-wrap
  36525. msgid "{@code{ssl-configuration} parameter} file-object capath"
  36526. msgstr ""
  36527. #. type: deftypevr
  36528. #: guix-git/doc/guix.texi:24410
  36529. 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\"}."
  36530. msgstr ""
  36531. #. type: deftypevr
  36532. #: guix-git/doc/guix.texi:24412
  36533. #, no-wrap
  36534. msgid "{@code{ssl-configuration} parameter} maybe-file-object cafile"
  36535. msgstr ""
  36536. #. type: deftypevr
  36537. #: guix-git/doc/guix.texi:24415
  36538. msgid "Path to a file containing root certificates that you wish Prosody to trust. Similar to @code{capath} but with all certificates concatenated together."
  36539. msgstr ""
  36540. #. type: deftypevr
  36541. #: guix-git/doc/guix.texi:24417
  36542. #, no-wrap
  36543. msgid "{@code{ssl-configuration} parameter} maybe-string-list verify"
  36544. msgstr ""
  36545. #. type: deftypevr
  36546. #: guix-git/doc/guix.texi:24420
  36547. msgid "A list of verification options (these mostly map to OpenSSL's @code{set_verify()} flags)."
  36548. msgstr ""
  36549. #. type: deftypevr
  36550. #: guix-git/doc/guix.texi:24422
  36551. #, no-wrap
  36552. msgid "{@code{ssl-configuration} parameter} maybe-string-list options"
  36553. msgstr ""
  36554. #. type: deftypevr
  36555. #: guix-git/doc/guix.texi:24426
  36556. 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."
  36557. msgstr ""
  36558. #. type: deftypevr
  36559. #: guix-git/doc/guix.texi:24428
  36560. #, no-wrap
  36561. msgid "{@code{ssl-configuration} parameter} maybe-non-negative-integer depth"
  36562. msgstr ""
  36563. #. type: deftypevr
  36564. #: guix-git/doc/guix.texi:24431
  36565. msgid "How long a chain of certificate authorities to check when looking for a trusted root certificate."
  36566. msgstr ""
  36567. #. type: deftypevr
  36568. #: guix-git/doc/guix.texi:24433
  36569. #, no-wrap
  36570. msgid "{@code{ssl-configuration} parameter} maybe-string ciphers"
  36571. msgstr ""
  36572. #. type: deftypevr
  36573. #: guix-git/doc/guix.texi:24436
  36574. msgid "An OpenSSL cipher string. This selects what ciphers Prosody will offer to clients, and in what order."
  36575. msgstr ""
  36576. #. type: deftypevr
  36577. #: guix-git/doc/guix.texi:24438
  36578. #, no-wrap
  36579. msgid "{@code{ssl-configuration} parameter} maybe-file-name dhparam"
  36580. msgstr ""
  36581. #. type: deftypevr
  36582. #: guix-git/doc/guix.texi:24442
  36583. 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}"
  36584. msgstr ""
  36585. #. type: deftypevr
  36586. #: guix-git/doc/guix.texi:24444
  36587. #, no-wrap
  36588. msgid "{@code{ssl-configuration} parameter} maybe-string curve"
  36589. msgstr ""
  36590. #. type: deftypevr
  36591. #: guix-git/doc/guix.texi:24447
  36592. msgid "Curve for Elliptic curve Diffie-Hellman. Prosody's default is @samp{\"secp384r1\"}."
  36593. msgstr ""
  36594. #. type: deftypevr
  36595. #: guix-git/doc/guix.texi:24449
  36596. #, no-wrap
  36597. msgid "{@code{ssl-configuration} parameter} maybe-string-list verifyext"
  36598. msgstr ""
  36599. #. type: deftypevr
  36600. #: guix-git/doc/guix.texi:24451
  36601. msgid "A list of ``extra'' verification options."
  36602. msgstr ""
  36603. #. type: deftypevr
  36604. #: guix-git/doc/guix.texi:24453
  36605. #, no-wrap
  36606. msgid "{@code{ssl-configuration} parameter} maybe-string password"
  36607. msgstr ""
  36608. #. type: deftypevr
  36609. #: guix-git/doc/guix.texi:24455
  36610. msgid "Password for encrypted private keys."
  36611. msgstr ""
  36612. #. type: deftypevr
  36613. #: guix-git/doc/guix.texi:24459
  36614. #, no-wrap
  36615. msgid "{@code{prosody-configuration} parameter} boolean c2s-require-encryption?"
  36616. msgstr ""
  36617. #. type: deftypevr
  36618. #: guix-git/doc/guix.texi:24463
  36619. 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}."
  36620. msgstr ""
  36621. #. type: deftypevr
  36622. #: guix-git/doc/guix.texi:24465
  36623. #, no-wrap
  36624. msgid "{@code{prosody-configuration} parameter} string-list disable-sasl-mechanisms"
  36625. msgstr ""
  36626. #. type: deftypevr
  36627. #: guix-git/doc/guix.texi:24469
  36628. msgid "Set of mechanisms that will never be offered. See @url{https://prosody.im/doc/modules/mod_saslauth}. Defaults to @samp{(\"DIGEST-MD5\")}."
  36629. msgstr ""
  36630. #. type: deftypevr
  36631. #: guix-git/doc/guix.texi:24471
  36632. #, no-wrap
  36633. msgid "{@code{prosody-configuration} parameter} boolean s2s-require-encryption?"
  36634. msgstr ""
  36635. #. type: deftypevr
  36636. #: guix-git/doc/guix.texi:24475
  36637. 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}."
  36638. msgstr ""
  36639. #. type: deftypevr
  36640. #: guix-git/doc/guix.texi:24477
  36641. #, no-wrap
  36642. msgid "{@code{prosody-configuration} parameter} boolean s2s-secure-auth?"
  36643. msgstr ""
  36644. #. type: deftypevr
  36645. #: guix-git/doc/guix.texi:24483
  36646. 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}."
  36647. msgstr ""
  36648. #. type: deftypevr
  36649. #: guix-git/doc/guix.texi:24485
  36650. #, no-wrap
  36651. msgid "{@code{prosody-configuration} parameter} string-list s2s-insecure-domains"
  36652. msgstr ""
  36653. #. type: deftypevr
  36654. #: guix-git/doc/guix.texi:24491
  36655. 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{()}."
  36656. msgstr ""
  36657. #. type: deftypevr
  36658. #: guix-git/doc/guix.texi:24493
  36659. #, no-wrap
  36660. msgid "{@code{prosody-configuration} parameter} string-list s2s-secure-domains"
  36661. msgstr ""
  36662. #. type: deftypevr
  36663. #: guix-git/doc/guix.texi:24498
  36664. 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{()}."
  36665. msgstr ""
  36666. #. type: deftypevr
  36667. #: guix-git/doc/guix.texi:24500
  36668. #, no-wrap
  36669. msgid "{@code{prosody-configuration} parameter} string authentication"
  36670. msgstr ""
  36671. #. type: deftypevr
  36672. #: guix-git/doc/guix.texi:24508
  36673. 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\"}."
  36674. msgstr ""
  36675. #. type: deftypevr
  36676. #: guix-git/doc/guix.texi:24510
  36677. #, no-wrap
  36678. msgid "{@code{prosody-configuration} parameter} maybe-string log"
  36679. msgstr ""
  36680. #. type: deftypevr
  36681. #: guix-git/doc/guix.texi:24514
  36682. 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\"}."
  36683. msgstr ""
  36684. #. type: deftypevr
  36685. #: guix-git/doc/guix.texi:24516
  36686. #, no-wrap
  36687. msgid "{@code{prosody-configuration} parameter} file-name pidfile"
  36688. msgstr ""
  36689. #. type: deftypevr
  36690. #: guix-git/doc/guix.texi:24519
  36691. msgid "File to write pid in. See @url{https://prosody.im/doc/modules/mod_posix}. Defaults to @samp{\"/var/run/prosody/prosody.pid\"}."
  36692. msgstr ""
  36693. #. type: deftypevr
  36694. #: guix-git/doc/guix.texi:24521
  36695. #, no-wrap
  36696. msgid "{@code{prosody-configuration} parameter} maybe-non-negative-integer http-max-content-size"
  36697. msgstr ""
  36698. #. type: deftypevr
  36699. #: guix-git/doc/guix.texi:24523
  36700. msgid "Maximum allowed size of the HTTP body (in bytes)."
  36701. msgstr ""
  36702. #. type: deftypevr
  36703. #: guix-git/doc/guix.texi:24525
  36704. #, no-wrap
  36705. msgid "{@code{prosody-configuration} parameter} maybe-string http-external-url"
  36706. msgstr ""
  36707. #. type: deftypevr
  36708. #: guix-git/doc/guix.texi:24530
  36709. 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}."
  36710. msgstr ""
  36711. #. type: deftypevr
  36712. #: guix-git/doc/guix.texi:24532
  36713. #, no-wrap
  36714. msgid "{@code{prosody-configuration} parameter} virtualhost-configuration-list virtualhosts"
  36715. msgstr ""
  36716. #. type: deftypevr
  36717. #: guix-git/doc/guix.texi:24537
  36718. 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."
  36719. msgstr ""
  36720. #. type: deftypevr
  36721. #: guix-git/doc/guix.texi:24543
  36722. 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."
  36723. msgstr ""
  36724. #. type: deftypevr
  36725. #: guix-git/doc/guix.texi:24545
  36726. msgid "See @url{https://prosody.im/doc/configure#virtual_host_settings}."
  36727. msgstr ""
  36728. #. type: deftypevr
  36729. #: guix-git/doc/guix.texi:24547
  36730. msgid "Available @code{virtualhost-configuration} fields are:"
  36731. msgstr ""
  36732. #. type: deftypevr
  36733. #: guix-git/doc/guix.texi:24549 guix-git/doc/guix.texi:24571
  36734. #: guix-git/doc/guix.texi:24624
  36735. 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:"
  36736. msgstr ""
  36737. #. type: deftypevr
  36738. #: guix-git/doc/guix.texi:24549
  36739. #, no-wrap
  36740. msgid "{@code{virtualhost-configuration} parameter} string domain"
  36741. msgstr ""
  36742. #. type: deftypevr
  36743. #: guix-git/doc/guix.texi:24551
  36744. msgid "Domain you wish Prosody to serve."
  36745. msgstr ""
  36746. #. type: deftypevr
  36747. #: guix-git/doc/guix.texi:24555
  36748. #, no-wrap
  36749. msgid "{@code{prosody-configuration} parameter} int-component-configuration-list int-components"
  36750. msgstr ""
  36751. #. type: deftypevr
  36752. #: guix-git/doc/guix.texi:24560
  36753. 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."
  36754. msgstr ""
  36755. #. type: deftypevr
  36756. #: guix-git/doc/guix.texi:24564
  36757. 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."
  36758. msgstr ""
  36759. #. type: deftypevr
  36760. #: guix-git/doc/guix.texi:24567
  36761. msgid "See @url{https://prosody.im/doc/components}. Defaults to @samp{()}."
  36762. msgstr ""
  36763. #. type: deftypevr
  36764. #: guix-git/doc/guix.texi:24569
  36765. msgid "Available @code{int-component-configuration} fields are:"
  36766. msgstr ""
  36767. #. type: deftypevr
  36768. #: guix-git/doc/guix.texi:24571
  36769. #, no-wrap
  36770. msgid "{@code{int-component-configuration} parameter} string hostname"
  36771. msgstr ""
  36772. #. type: deftypevr
  36773. #: guix-git/doc/guix.texi:24573 guix-git/doc/guix.texi:24630
  36774. msgid "Hostname of the component."
  36775. msgstr ""
  36776. #. type: deftypevr
  36777. #: guix-git/doc/guix.texi:24575
  36778. #, no-wrap
  36779. msgid "{@code{int-component-configuration} parameter} string plugin"
  36780. msgstr ""
  36781. #. type: deftypevr
  36782. #: guix-git/doc/guix.texi:24577
  36783. msgid "Plugin you wish to use for the component."
  36784. msgstr ""
  36785. #. type: deftypevr
  36786. #: guix-git/doc/guix.texi:24579
  36787. #, no-wrap
  36788. msgid "{@code{int-component-configuration} parameter} maybe-mod-muc-configuration mod-muc"
  36789. msgstr ""
  36790. #. type: deftypevr
  36791. #: guix-git/doc/guix.texi:24582
  36792. msgid "Multi-user chat (MUC) is Prosody's module for allowing you to create hosted chatrooms/conferences for XMPP users."
  36793. msgstr ""
  36794. #. type: deftypevr
  36795. #: guix-git/doc/guix.texi:24586
  36796. 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."
  36797. msgstr ""
  36798. #. type: deftypevr
  36799. #: guix-git/doc/guix.texi:24588
  36800. msgid "See also @url{https://prosody.im/doc/modules/mod_muc}."
  36801. msgstr ""
  36802. #. type: deftypevr
  36803. #: guix-git/doc/guix.texi:24590
  36804. msgid "Available @code{mod-muc-configuration} fields are:"
  36805. msgstr ""
  36806. #. type: deftypevr
  36807. #: guix-git/doc/guix.texi:24591
  36808. #, no-wrap
  36809. msgid "{@code{mod-muc-configuration} parameter} string name"
  36810. msgstr ""
  36811. #. type: deftypevr
  36812. #: guix-git/doc/guix.texi:24594
  36813. msgid "The name to return in service discovery responses. Defaults to @samp{\"Prosody Chatrooms\"}."
  36814. msgstr ""
  36815. #. type: deftypevr
  36816. #: guix-git/doc/guix.texi:24596
  36817. #, no-wrap
  36818. msgid "{@code{mod-muc-configuration} parameter} string-or-boolean restrict-room-creation"
  36819. msgstr ""
  36820. #. type: deftypevr
  36821. #: guix-git/doc/guix.texi:24603
  36822. 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}."
  36823. msgstr ""
  36824. #. type: deftypevr
  36825. #: guix-git/doc/guix.texi:24605
  36826. #, no-wrap
  36827. msgid "{@code{mod-muc-configuration} parameter} non-negative-integer max-history-messages"
  36828. msgstr ""
  36829. #. type: deftypevr
  36830. #: guix-git/doc/guix.texi:24609
  36831. msgid "Maximum number of history messages that will be sent to the member that has just joined the room. Defaults to @samp{20}."
  36832. msgstr ""
  36833. #. type: deftypevr
  36834. #: guix-git/doc/guix.texi:24615
  36835. #, no-wrap
  36836. msgid "{@code{prosody-configuration} parameter} ext-component-configuration-list ext-components"
  36837. msgstr ""
  36838. #. type: deftypevr
  36839. #: guix-git/doc/guix.texi:24620
  36840. 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{()}."
  36841. msgstr ""
  36842. #. type: deftypevr
  36843. #: guix-git/doc/guix.texi:24622
  36844. msgid "Available @code{ext-component-configuration} fields are:"
  36845. msgstr ""
  36846. #. type: deftypevr
  36847. #: guix-git/doc/guix.texi:24624
  36848. #, no-wrap
  36849. msgid "{@code{ext-component-configuration} parameter} string component-secret"
  36850. msgstr ""
  36851. #. type: deftypevr
  36852. #: guix-git/doc/guix.texi:24626
  36853. msgid "Password which the component will use to log in."
  36854. msgstr ""
  36855. #. type: deftypevr
  36856. #: guix-git/doc/guix.texi:24628
  36857. #, no-wrap
  36858. msgid "{@code{ext-component-configuration} parameter} string hostname"
  36859. msgstr ""
  36860. #. type: deftypevr
  36861. #: guix-git/doc/guix.texi:24634
  36862. #, no-wrap
  36863. msgid "{@code{prosody-configuration} parameter} non-negative-integer-list component-ports"
  36864. msgstr ""
  36865. #. type: deftypevr
  36866. #: guix-git/doc/guix.texi:24637
  36867. msgid "Port(s) Prosody listens on for component connections. Defaults to @samp{(5347)}."
  36868. msgstr ""
  36869. #. type: deftypevr
  36870. #: guix-git/doc/guix.texi:24639
  36871. #, no-wrap
  36872. msgid "{@code{prosody-configuration} parameter} string component-interface"
  36873. msgstr ""
  36874. #. type: deftypevr
  36875. #: guix-git/doc/guix.texi:24642
  36876. msgid "Interface Prosody listens on for component connections. Defaults to @samp{\"127.0.0.1\"}."
  36877. msgstr ""
  36878. #. type: deftypevr
  36879. #: guix-git/doc/guix.texi:24644
  36880. #, no-wrap
  36881. msgid "{@code{prosody-configuration} parameter} maybe-raw-content raw-content"
  36882. msgstr ""
  36883. #. type: deftypevr
  36884. #: guix-git/doc/guix.texi:24646
  36885. msgid "Raw content that will be added to the configuration file."
  36886. msgstr ""
  36887. #. type: Plain text
  36888. #: guix-git/doc/guix.texi:24654
  36889. 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:"
  36890. msgstr ""
  36891. #. type: deftypevr
  36892. #: guix-git/doc/guix.texi:24655
  36893. #, no-wrap
  36894. msgid "{@code{opaque-prosody-configuration} parameter} package prosody"
  36895. msgstr ""
  36896. #. type: deftypevr
  36897. #: guix-git/doc/guix.texi:24657
  36898. msgid "The prosody package."
  36899. msgstr ""
  36900. #. type: deftypevr
  36901. #: guix-git/doc/guix.texi:24659
  36902. #, no-wrap
  36903. msgid "{@code{opaque-prosody-configuration} parameter} string prosody.cfg.lua"
  36904. msgstr ""
  36905. #. type: deftypevr
  36906. #: guix-git/doc/guix.texi:24661
  36907. msgid "The contents of the @code{prosody.cfg.lua} to use."
  36908. msgstr ""
  36909. #. type: Plain text
  36910. #: guix-git/doc/guix.texi:24665
  36911. msgid "For example, if your @code{prosody.cfg.lua} is just the empty string, you could instantiate a prosody service like this:"
  36912. msgstr ""
  36913. #. type: lisp
  36914. #: guix-git/doc/guix.texi:24670
  36915. #, no-wrap
  36916. msgid ""
  36917. "(service prosody-service-type\n"
  36918. " (opaque-prosody-configuration\n"
  36919. " (prosody.cfg.lua \"\")))\n"
  36920. msgstr ""
  36921. #. type: subsubheading
  36922. #: guix-git/doc/guix.texi:24674
  36923. #, no-wrap
  36924. msgid "BitlBee Service"
  36925. msgstr ""
  36926. #. type: cindex
  36927. #: guix-git/doc/guix.texi:24676 guix-git/doc/guix.texi:24720
  36928. #, no-wrap
  36929. msgid "IRC (Internet Relay Chat)"
  36930. msgstr ""
  36931. #. type: cindex
  36932. #: guix-git/doc/guix.texi:24677
  36933. #, no-wrap
  36934. msgid "IRC gateway"
  36935. msgstr ""
  36936. #. type: Plain text
  36937. #: guix-git/doc/guix.texi:24680
  36938. msgid "@url{https://bitlbee.org,BitlBee} is a gateway that provides an IRC interface to a variety of messaging protocols such as XMPP."
  36939. msgstr ""
  36940. #. type: defvr
  36941. #: guix-git/doc/guix.texi:24681
  36942. #, no-wrap
  36943. msgid "{Scheme Variable} bitlbee-service-type"
  36944. msgstr ""
  36945. #. type: defvr
  36946. #: guix-git/doc/guix.texi:24685
  36947. 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)."
  36948. msgstr ""
  36949. #. type: defvr
  36950. #: guix-git/doc/guix.texi:24688
  36951. msgid "To have BitlBee listen on port 6667 on localhost, add this line to your services:"
  36952. msgstr ""
  36953. #. type: lisp
  36954. #: guix-git/doc/guix.texi:24691
  36955. #, no-wrap
  36956. msgid "(service bitlbee-service-type)\n"
  36957. msgstr ""
  36958. #. type: deftp
  36959. #: guix-git/doc/guix.texi:24694
  36960. #, no-wrap
  36961. msgid "{Data Type} bitlbee-configuration"
  36962. msgstr ""
  36963. #. type: deftp
  36964. #: guix-git/doc/guix.texi:24696
  36965. msgid "This is the configuration for BitlBee, with the following fields:"
  36966. msgstr ""
  36967. #. type: item
  36968. #: guix-git/doc/guix.texi:24698
  36969. #, no-wrap
  36970. msgid "@code{interface} (default: @code{\"127.0.0.1\"})"
  36971. msgstr ""
  36972. #. type: itemx
  36973. #: guix-git/doc/guix.texi:24699
  36974. #, no-wrap
  36975. msgid "@code{port} (default: @code{6667})"
  36976. msgstr ""
  36977. #. type: table
  36978. #: guix-git/doc/guix.texi:24702
  36979. msgid "Listen on the network interface corresponding to the IP address specified in @var{interface}, on @var{port}."
  36980. msgstr ""
  36981. #. type: table
  36982. #: guix-git/doc/guix.texi:24706
  36983. 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."
  36984. msgstr ""
  36985. #. type: item
  36986. #: guix-git/doc/guix.texi:24707
  36987. #, fuzzy, no-wrap
  36988. msgid "@code{bitlbee} (default: @code{bitlbee})"
  36989. msgstr "@code{mate}(默认值:@code{mate})"
  36990. #. type: table
  36991. #: guix-git/doc/guix.texi:24709
  36992. msgid "The BitlBee package to use."
  36993. msgstr ""
  36994. #. type: item
  36995. #: guix-git/doc/guix.texi:24710
  36996. #, no-wrap
  36997. msgid "@code{plugins} (default: @code{'()})"
  36998. msgstr ""
  36999. #. type: table
  37000. #: guix-git/doc/guix.texi:24712
  37001. msgid "List of plugin packages to use---e.g., @code{bitlbee-discord}."
  37002. msgstr ""
  37003. #. type: table
  37004. #: guix-git/doc/guix.texi:24715
  37005. msgid "Configuration snippet added as-is to the BitlBee configuration file."
  37006. msgstr ""
  37007. #. type: subsubheading
  37008. #: guix-git/doc/guix.texi:24718
  37009. #, no-wrap
  37010. msgid "Quassel Service"
  37011. msgstr ""
  37012. #. type: Plain text
  37013. #: guix-git/doc/guix.texi:24724
  37014. 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."
  37015. msgstr ""
  37016. #. type: defvr
  37017. #: guix-git/doc/guix.texi:24725
  37018. #, no-wrap
  37019. msgid "{Scheme Variable} quassel-service-type"
  37020. msgstr ""
  37021. #. type: defvr
  37022. #: guix-git/doc/guix.texi:24729
  37023. 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)."
  37024. msgstr ""
  37025. #. type: deftp
  37026. #: guix-git/doc/guix.texi:24731
  37027. #, no-wrap
  37028. msgid "{Data Type} quassel-configuration"
  37029. msgstr ""
  37030. #. type: deftp
  37031. #: guix-git/doc/guix.texi:24733
  37032. msgid "This is the configuration for Quassel, with the following fields:"
  37033. msgstr ""
  37034. #. type: item
  37035. #: guix-git/doc/guix.texi:24735
  37036. #, no-wrap
  37037. msgid "@code{quassel} (default: @code{quassel})"
  37038. msgstr ""
  37039. #. type: table
  37040. #: guix-git/doc/guix.texi:24737
  37041. msgid "The Quassel package to use."
  37042. msgstr ""
  37043. #. type: item
  37044. #: guix-git/doc/guix.texi:24738
  37045. #, no-wrap
  37046. msgid "@code{interface} (default: @code{\"::,0.0.0.0\"})"
  37047. msgstr ""
  37048. #. type: item
  37049. #: guix-git/doc/guix.texi:24739
  37050. #, no-wrap
  37051. msgid "@code{port} (default: @code{4242})"
  37052. msgstr ""
  37053. #. type: table
  37054. #: guix-git/doc/guix.texi:24743
  37055. msgid "Listen on the network interface(s) corresponding to the IPv4 or IPv6 interfaces specified in the comma delimited @var{interface}, on @var{port}."
  37056. msgstr ""
  37057. #. type: item
  37058. #: guix-git/doc/guix.texi:24744
  37059. #, no-wrap
  37060. msgid "@code{loglevel} (default: @code{\"Info\"})"
  37061. msgstr ""
  37062. #. type: table
  37063. #: guix-git/doc/guix.texi:24747
  37064. msgid "The level of logging desired. Accepted values are Debug, Info, Warning and Error."
  37065. msgstr ""
  37066. #. type: cindex
  37067. #: guix-git/doc/guix.texi:24753
  37068. #, fuzzy, no-wrap
  37069. #| msgid "Telephony services."
  37070. msgid "telephony, services"
  37071. msgstr "电话服务。"
  37072. #. type: Plain text
  37073. #: guix-git/doc/guix.texi:24757
  37074. msgid "The @code{(gnu services telephony)} module contains Guix service definitions for telephony services. Currently it provides the following services:"
  37075. msgstr ""
  37076. #. type: subsubheading
  37077. #: guix-git/doc/guix.texi:24758
  37078. #, no-wrap
  37079. msgid "Jami"
  37080. msgstr ""
  37081. #. type: cindex
  37082. #: guix-git/doc/guix.texi:24760
  37083. #, fuzzy, no-wrap
  37084. msgid "jami, service"
  37085. msgstr "DNS服务"
  37086. #. type: Plain text
  37087. #: guix-git/doc/guix.texi:24766
  37088. 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:"
  37089. msgstr ""
  37090. #. type: lisp
  37091. #: guix-git/doc/guix.texi:24775
  37092. #, no-wrap
  37093. msgid ""
  37094. "(service jami-service-type\n"
  37095. " (jami-configuration\n"
  37096. " (accounts\n"
  37097. " (list (jami-account\n"
  37098. " (archive \"/etc/jami/unencrypted-account-1.gz\"))\n"
  37099. " (jami-account\n"
  37100. " (archive \"/etc/jami/unencrypted-account-2.gz\"))))))\n"
  37101. msgstr ""
  37102. #. type: Plain text
  37103. #: guix-git/doc/guix.texi:24780
  37104. 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."
  37105. msgstr ""
  37106. #. type: Plain text
  37107. #: guix-git/doc/guix.texi:24785
  37108. msgid "Jami accounts and their corresponding backup archives can be generated using the @code{jami} or @code{jami-gnome} Jami clients. The accounts should not be password-protected, but it is wise to ensure their files are only readable by @samp{root}."
  37109. msgstr ""
  37110. #. type: Plain text
  37111. #: guix-git/doc/guix.texi:24788
  37112. msgid "The next example shows how to declare that only some contacts should be allowed to communicate with a given account:"
  37113. msgstr ""
  37114. #. type: lisp
  37115. #: guix-git/doc/guix.texi:24800
  37116. #, no-wrap
  37117. msgid ""
  37118. "(service jami-service-type\n"
  37119. " (jami-configuration\n"
  37120. " (accounts\n"
  37121. " (list (jami-account\n"
  37122. " (archive \"/etc/jami/unencrypted-account-1.gz\")\n"
  37123. " (peer-discovery? #t)\n"
  37124. " (rendezvous-point? #t)\n"
  37125. " (allowed-contacts\n"
  37126. " '(\"1dbcb0f5f37324228235564b79f2b9737e9a008f\"\n"
  37127. " \"2dbcb0f5f37324228235564b79f2b9737e9a008f\")))))))\n"
  37128. msgstr ""
  37129. #. type: Plain text
  37130. #: guix-git/doc/guix.texi:24806
  37131. 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."
  37132. msgstr ""
  37133. #. type: Plain text
  37134. #: guix-git/doc/guix.texi:24809
  37135. msgid "To put the system administrator in full control of the conferences hosted on their system, the Jami service supports the following actions:"
  37136. msgstr ""
  37137. #. type: example
  37138. #: guix-git/doc/guix.texi:24821
  37139. #, no-wrap
  37140. msgid ""
  37141. "# herd doc jami list-actions\n"
  37142. "(list-accounts\n"
  37143. " list-account-details\n"
  37144. " list-banned-contacts\n"
  37145. " list-contacts\n"
  37146. " list-moderators\n"
  37147. " add-moderator\n"
  37148. " ban-contact\n"
  37149. " enable-account\n"
  37150. " disable-account)\n"
  37151. msgstr ""
  37152. #. type: Plain text
  37153. #: guix-git/doc/guix.texi:24828
  37154. 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."
  37155. msgstr ""
  37156. #. type: Plain text
  37157. #: guix-git/doc/guix.texi:24834
  37158. 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:"
  37159. msgstr ""
  37160. #. type: example
  37161. #: guix-git/doc/guix.texi:24838
  37162. #, no-wrap
  37163. msgid ""
  37164. "# herd add-moderator jami 1dbcb0f5f37324228235564b79f2b9737e9a008f \\\n"
  37165. " f3345f2775ddfe07a4b0d95daea111d15fbc1199\n"
  37166. "\n"
  37167. msgstr ""
  37168. #. type: example
  37169. #: guix-git/doc/guix.texi:24842
  37170. #, no-wrap
  37171. msgid ""
  37172. "# herd list-moderators jami\n"
  37173. "Moderators for account f3345f2775ddfe07a4b0d95daea111d15fbc1199:\n"
  37174. " - 1dbcb0f5f37324228235564b79f2b9737e9a008f\n"
  37175. "\n"
  37176. msgstr ""
  37177. #. type: Plain text
  37178. #: guix-git/doc/guix.texi:24847
  37179. msgid "In the case of @code{ban-contact}, the second username argument is optional; when omitted, the account is banned from all Jami accounts:"
  37180. msgstr ""
  37181. #. type: example
  37182. #: guix-git/doc/guix.texi:24850
  37183. #, no-wrap
  37184. msgid ""
  37185. "# herd ban-contact jami 1dbcb0f5f37324228235564b79f2b9737e9a008f\n"
  37186. "\n"
  37187. msgstr ""
  37188. #. type: example
  37189. #: guix-git/doc/guix.texi:24854
  37190. #, no-wrap
  37191. msgid ""
  37192. "# herd list-banned-contacts jami\n"
  37193. "Banned contacts for account f3345f2775ddfe07a4b0d95daea111d15fbc1199:\n"
  37194. " - 1dbcb0f5f37324228235564b79f2b9737e9a008f\n"
  37195. "\n"
  37196. msgstr ""
  37197. #. type: Plain text
  37198. #: guix-git/doc/guix.texi:24858
  37199. msgid "Banned contacts are also stripped from their moderation privileges."
  37200. msgstr ""
  37201. #. type: Plain text
  37202. #: guix-git/doc/guix.texi:24863
  37203. 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:"
  37204. msgstr ""
  37205. #. type: example
  37206. #: guix-git/doc/guix.texi:24866
  37207. #, no-wrap
  37208. msgid ""
  37209. "# herd disable-account jami f3345f2775ddfe07a4b0d95daea111d15fbc1199\n"
  37210. "\n"
  37211. msgstr ""
  37212. #. type: example
  37213. #: guix-git/doc/guix.texi:24870
  37214. #, no-wrap
  37215. msgid ""
  37216. "# herd list-accounts jami\n"
  37217. "The following Jami accounts are available:\n"
  37218. " - f3345f2775ddfe07a4b0d95daea111d15fbc1199 (dummy) [disabled]\n"
  37219. "\n"
  37220. msgstr ""
  37221. #. type: Plain text
  37222. #: guix-git/doc/guix.texi:24881
  37223. 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:"
  37224. msgstr ""
  37225. #. type: example
  37226. #: guix-git/doc/guix.texi:24886
  37227. #, no-wrap
  37228. msgid ""
  37229. "# herd list-account-details jami | \\\n"
  37230. " recsel -p Account.username -e 'Account.rendezVous ~ \"true\"'\n"
  37231. "Account_username: f3345f2775ddfe07a4b0d95daea111d15fbc1199\n"
  37232. msgstr ""
  37233. #. type: Plain text
  37234. #: guix-git/doc/guix.texi:24889
  37235. msgid "The remaining actions should be self-explanatory."
  37236. msgstr ""
  37237. #. type: Plain text
  37238. #: guix-git/doc/guix.texi:24891
  37239. msgid "The complete set of available configuration options is detailed below."
  37240. msgstr ""
  37241. #. type: deftp
  37242. #: guix-git/doc/guix.texi:24895
  37243. #, fuzzy, no-wrap
  37244. msgid "{Data Type} jami-configuration"
  37245. msgstr "{数据类型} build-machine"
  37246. #. type: deftp
  37247. #: guix-git/doc/guix.texi:24897
  37248. msgid "Available @code{jami-configuration} fields are:"
  37249. msgstr ""
  37250. #. type: item
  37251. #: guix-git/doc/guix.texi:24899
  37252. #, fuzzy, no-wrap
  37253. msgid "@code{jamid} (default: @code{libjami}) (type: package)"
  37254. msgstr "@code{xfce}(默认值:@code{xfce})"
  37255. #. type: table
  37256. #: guix-git/doc/guix.texi:24901
  37257. #, fuzzy
  37258. msgid "The Jami daemon package to use."
  37259. msgstr "软件包数据类型。"
  37260. #. type: item
  37261. #: guix-git/doc/guix.texi:24902
  37262. #, fuzzy, no-wrap
  37263. msgid "@code{dbus} (default: @code{dbus}) (type: package)"
  37264. msgstr "@code{xfce}(默认值:@code{xfce})"
  37265. #. type: table
  37266. #: guix-git/doc/guix.texi:24904
  37267. #, fuzzy
  37268. msgid "The D-Bus package to use to start the required D-Bus session."
  37269. msgstr "软件包数据类型。"
  37270. #. type: item
  37271. #: guix-git/doc/guix.texi:24905
  37272. #, fuzzy, no-wrap
  37273. msgid "@code{nss-certs} (default: @code{nss-certs}) (type: package)"
  37274. msgstr "@code{xfce}(默认值:@code{xfce})"
  37275. #. type: table
  37276. #: guix-git/doc/guix.texi:24907
  37277. #, fuzzy
  37278. msgid "The nss-certs package to use to provide TLS certificates."
  37279. msgstr "软件包数据类型。"
  37280. #. type: item
  37281. #: guix-git/doc/guix.texi:24908
  37282. #, fuzzy, no-wrap
  37283. msgid "@code{enable-logging?} (default: @code{#t}) (type: boolean)"
  37284. msgstr "@code{speed}(默认值:@code{1.0})"
  37285. #. type: table
  37286. #: guix-git/doc/guix.texi:24910
  37287. msgid "Whether to enable logging to syslog."
  37288. msgstr ""
  37289. #. type: item
  37290. #: guix-git/doc/guix.texi:24911
  37291. #, fuzzy, no-wrap
  37292. msgid "@code{debug?} (default: @code{#f}) (type: boolean)"
  37293. msgstr "@code{challenge}(默认值:@code{#f})"
  37294. #. type: table
  37295. #: guix-git/doc/guix.texi:24913
  37296. msgid "Whether to enable debug level messages."
  37297. msgstr ""
  37298. #. type: item
  37299. #: guix-git/doc/guix.texi:24914
  37300. #, fuzzy, no-wrap
  37301. msgid "@code{auto-answer?} (default: @code{#f}) (type: boolean)"
  37302. msgstr "@code{port}(默认值:@code{22})"
  37303. #. type: table
  37304. #: guix-git/doc/guix.texi:24916
  37305. msgid "Whether to force automatic answer to incoming calls."
  37306. msgstr ""
  37307. #. type: item
  37308. #: guix-git/doc/guix.texi:24917
  37309. #, fuzzy, no-wrap
  37310. msgid "@code{accounts} (default: @code{disabled}) (type: maybe-jami-account-list)"
  37311. msgstr "@code{gnome}(默认值:@code{gnome})"
  37312. #. type: table
  37313. #: guix-git/doc/guix.texi:24922
  37314. 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."
  37315. msgstr ""
  37316. #. type: deftp
  37317. #: guix-git/doc/guix.texi:24928
  37318. #, fuzzy, no-wrap
  37319. msgid "{Data Type} jami-account"
  37320. msgstr "{数据类型} build-machine"
  37321. #. type: deftp
  37322. #: guix-git/doc/guix.texi:24930
  37323. msgid "Available @code{jami-account} fields are:"
  37324. msgstr ""
  37325. #. type: item
  37326. #: guix-git/doc/guix.texi:24932
  37327. #, no-wrap
  37328. msgid "@code{archive} (type: string-or-computed-file)"
  37329. msgstr ""
  37330. #. type: table
  37331. #: guix-git/doc/guix.texi:24938
  37332. 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."
  37333. msgstr ""
  37334. #. type: item
  37335. #: guix-git/doc/guix.texi:24939
  37336. #, no-wrap
  37337. msgid "@code{allowed-contacts} (default: @code{disabled}) (type: maybe-account-fingerprint-list)"
  37338. msgstr ""
  37339. #. type: table
  37340. #: guix-git/doc/guix.texi:24946
  37341. 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."
  37342. msgstr ""
  37343. #. type: item
  37344. #: guix-git/doc/guix.texi:24947
  37345. #, no-wrap
  37346. msgid "@code{moderators} (default: @code{disabled}) (type: maybe-account-fingerprint-list)"
  37347. msgstr ""
  37348. #. type: table
  37349. #: guix-git/doc/guix.texi:24953
  37350. 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."
  37351. msgstr ""
  37352. #. type: item
  37353. #: guix-git/doc/guix.texi:24954
  37354. #, fuzzy, no-wrap
  37355. msgid "@code{rendezvous-point?} (default: @code{disabled}) (type: maybe-boolean)"
  37356. msgstr "@code{port}(默认值:@code{22})"
  37357. #. type: table
  37358. #: guix-git/doc/guix.texi:24958
  37359. 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."
  37360. msgstr ""
  37361. #. type: item
  37362. #: guix-git/doc/guix.texi:24959
  37363. #, fuzzy, no-wrap
  37364. msgid "@code{peer-discovery?} (default: @code{disabled}) (type: maybe-boolean)"
  37365. msgstr "@code{speed}(默认值:@code{1.0})"
  37366. #. type: table
  37367. #: guix-git/doc/guix.texi:24965
  37368. 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."
  37369. msgstr ""
  37370. #. type: item
  37371. #: guix-git/doc/guix.texi:24966
  37372. #, fuzzy, no-wrap
  37373. msgid "@code{bootstrap-hostnames} (default: @code{disabled}) (type: maybe-string-list)"
  37374. msgstr "@code{mate}(默认值:@code{mate})"
  37375. #. type: table
  37376. #: guix-git/doc/guix.texi:24970
  37377. 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."
  37378. msgstr ""
  37379. #. type: item
  37380. #: guix-git/doc/guix.texi:24971
  37381. #, fuzzy, no-wrap
  37382. msgid "@code{name-server-uri} (default: @code{disabled}) (type: maybe-string)"
  37383. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  37384. #. type: table
  37385. #: guix-git/doc/guix.texi:24974
  37386. msgid "The URI of the name server to use, that can be used to retrieve the account fingerprint for a registered username."
  37387. msgstr ""
  37388. #. type: cindex
  37389. #: guix-git/doc/guix.texi:24979 guix-git/doc/guix.texi:24981
  37390. #, no-wrap
  37391. msgid "Murmur (VoIP server)"
  37392. msgstr ""
  37393. #. type: cindex
  37394. #: guix-git/doc/guix.texi:24982
  37395. #, no-wrap
  37396. msgid "VoIP server"
  37397. msgstr ""
  37398. #. type: Plain text
  37399. #: guix-git/doc/guix.texi:24986
  37400. 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."
  37401. msgstr ""
  37402. #. type: deftp
  37403. #: guix-git/doc/guix.texi:24987
  37404. #, no-wrap
  37405. msgid "{Data Type} murmur-configuration"
  37406. msgstr ""
  37407. #. type: deftp
  37408. #: guix-git/doc/guix.texi:24990
  37409. msgid "The service type for the Murmur server. An example configuration can look like this:"
  37410. msgstr ""
  37411. #. type: lisp
  37412. #: guix-git/doc/guix.texi:24999
  37413. #, no-wrap
  37414. msgid ""
  37415. "(service murmur-service-type\n"
  37416. " (murmur-configuration\n"
  37417. " (welcome-text\n"
  37418. " \"Welcome to this Mumble server running on Guix!\")\n"
  37419. " (cert-required? #t) ;disallow text password logins\n"
  37420. " (ssl-cert \"/etc/letsencrypt/live/mumble.example.com/fullchain.pem\")\n"
  37421. " (ssl-key \"/etc/letsencrypt/live/mumble.example.com/privkey.pem\")))\n"
  37422. msgstr ""
  37423. #. type: deftp
  37424. #: guix-git/doc/guix.texi:25003
  37425. msgid "After reconfiguring your system, you can manually set the murmur @code{SuperUser} password with the command that is printed during the activation phase."
  37426. msgstr ""
  37427. #. type: deftp
  37428. #: guix-git/doc/guix.texi:25012
  37429. 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."
  37430. msgstr ""
  37431. #. type: deftp
  37432. #: guix-git/doc/guix.texi:25014
  37433. msgid "Available @code{murmur-configuration} fields are:"
  37434. msgstr ""
  37435. #. type: item
  37436. #: guix-git/doc/guix.texi:25016
  37437. #, no-wrap
  37438. msgid "@code{package} (default: @code{mumble})"
  37439. msgstr ""
  37440. #. type: table
  37441. #: guix-git/doc/guix.texi:25018
  37442. msgid "Package that contains @code{bin/murmurd}."
  37443. msgstr ""
  37444. #. type: item
  37445. #: guix-git/doc/guix.texi:25019
  37446. #, no-wrap
  37447. msgid "@code{user} (default: @code{\"murmur\"})"
  37448. msgstr ""
  37449. #. type: table
  37450. #: guix-git/doc/guix.texi:25021
  37451. msgid "User who will run the Murmur server."
  37452. msgstr ""
  37453. #. type: item
  37454. #: guix-git/doc/guix.texi:25022
  37455. #, no-wrap
  37456. msgid "@code{group} (default: @code{\"murmur\"})"
  37457. msgstr ""
  37458. #. type: table
  37459. #: guix-git/doc/guix.texi:25024
  37460. msgid "Group of the user who will run the murmur server."
  37461. msgstr ""
  37462. #. type: item
  37463. #: guix-git/doc/guix.texi:25025
  37464. #, no-wrap
  37465. msgid "@code{port} (default: @code{64738})"
  37466. msgstr ""
  37467. #. type: table
  37468. #: guix-git/doc/guix.texi:25027
  37469. msgid "Port on which the server will listen."
  37470. msgstr ""
  37471. #. type: item
  37472. #: guix-git/doc/guix.texi:25028
  37473. #, no-wrap
  37474. msgid "@code{welcome-text} (default: @code{\"\"})"
  37475. msgstr ""
  37476. #. type: table
  37477. #: guix-git/doc/guix.texi:25030
  37478. msgid "Welcome text sent to clients when they connect."
  37479. msgstr ""
  37480. #. type: item
  37481. #: guix-git/doc/guix.texi:25031
  37482. #, no-wrap
  37483. msgid "@code{server-password} (default: @code{\"\"})"
  37484. msgstr ""
  37485. #. type: table
  37486. #: guix-git/doc/guix.texi:25033
  37487. msgid "Password the clients have to enter in order to connect."
  37488. msgstr ""
  37489. #. type: item
  37490. #: guix-git/doc/guix.texi:25034
  37491. #, no-wrap
  37492. msgid "@code{max-users} (default: @code{100})"
  37493. msgstr ""
  37494. #. type: table
  37495. #: guix-git/doc/guix.texi:25036
  37496. msgid "Maximum of users that can be connected to the server at once."
  37497. msgstr ""
  37498. #. type: item
  37499. #: guix-git/doc/guix.texi:25037
  37500. #, no-wrap
  37501. msgid "@code{max-user-bandwidth} (default: @code{#f})"
  37502. msgstr ""
  37503. #. type: table
  37504. #: guix-git/doc/guix.texi:25039
  37505. msgid "Maximum voice traffic a user can send per second."
  37506. msgstr ""
  37507. #. type: item
  37508. #: guix-git/doc/guix.texi:25040
  37509. #, no-wrap
  37510. msgid "@code{database-file} (default: @code{\"/var/lib/murmur/db.sqlite\"})"
  37511. msgstr ""
  37512. #. type: table
  37513. #: guix-git/doc/guix.texi:25043
  37514. msgid "File name of the sqlite database. The service's user will become the owner of the directory."
  37515. msgstr ""
  37516. #. type: item
  37517. #: guix-git/doc/guix.texi:25044
  37518. #, no-wrap
  37519. msgid "@code{log-file} (default: @code{\"/var/log/murmur/murmur.log\"})"
  37520. msgstr ""
  37521. #. type: table
  37522. #: guix-git/doc/guix.texi:25047
  37523. msgid "File name of the log file. The service's user will become the owner of the directory."
  37524. msgstr ""
  37525. #. type: item
  37526. #: guix-git/doc/guix.texi:25048
  37527. #, no-wrap
  37528. msgid "@code{autoban-attempts} (default: @code{10})"
  37529. msgstr ""
  37530. #. type: table
  37531. #: guix-git/doc/guix.texi:25051
  37532. msgid "Maximum number of logins a user can make in @code{autoban-timeframe} without getting auto banned for @code{autoban-time}."
  37533. msgstr ""
  37534. #. type: item
  37535. #: guix-git/doc/guix.texi:25052
  37536. #, no-wrap
  37537. msgid "@code{autoban-timeframe} (default: @code{120})"
  37538. msgstr ""
  37539. #. type: table
  37540. #: guix-git/doc/guix.texi:25054
  37541. msgid "Timeframe for autoban in seconds."
  37542. msgstr ""
  37543. #. type: item
  37544. #: guix-git/doc/guix.texi:25055
  37545. #, no-wrap
  37546. msgid "@code{autoban-time} (default: @code{300})"
  37547. msgstr ""
  37548. #. type: table
  37549. #: guix-git/doc/guix.texi:25058
  37550. msgid "Amount of time in seconds for which a client gets banned when violating the autoban limits."
  37551. msgstr ""
  37552. #. type: item
  37553. #: guix-git/doc/guix.texi:25059
  37554. #, no-wrap
  37555. msgid "@code{opus-threshold} (default: @code{100})"
  37556. msgstr ""
  37557. #. type: table
  37558. #: guix-git/doc/guix.texi:25062
  37559. msgid "Percentage of clients that need to support opus before switching over to opus audio codec."
  37560. msgstr ""
  37561. #. type: item
  37562. #: guix-git/doc/guix.texi:25063
  37563. #, no-wrap
  37564. msgid "@code{channel-nesting-limit} (default: @code{10})"
  37565. msgstr ""
  37566. #. type: table
  37567. #: guix-git/doc/guix.texi:25065
  37568. msgid "How deep channels can be nested at maximum."
  37569. msgstr ""
  37570. #. type: item
  37571. #: guix-git/doc/guix.texi:25066
  37572. #, no-wrap
  37573. msgid "@code{channelname-regex} (default: @code{#f})"
  37574. msgstr ""
  37575. #. type: table
  37576. #: guix-git/doc/guix.texi:25068
  37577. msgid "A string in form of a Qt regular expression that channel names must conform to."
  37578. msgstr ""
  37579. #. type: item
  37580. #: guix-git/doc/guix.texi:25069
  37581. #, no-wrap
  37582. msgid "@code{username-regex} (default: @code{#f})"
  37583. msgstr ""
  37584. #. type: table
  37585. #: guix-git/doc/guix.texi:25071
  37586. msgid "A string in form of a Qt regular expression that user names must conform to."
  37587. msgstr ""
  37588. #. type: item
  37589. #: guix-git/doc/guix.texi:25072
  37590. #, no-wrap
  37591. msgid "@code{text-message-length} (default: @code{5000})"
  37592. msgstr ""
  37593. #. type: table
  37594. #: guix-git/doc/guix.texi:25074
  37595. msgid "Maximum size in bytes that a user can send in one text chat message."
  37596. msgstr ""
  37597. #. type: item
  37598. #: guix-git/doc/guix.texi:25075
  37599. #, no-wrap
  37600. msgid "@code{image-message-length} (default: @code{(* 128 1024)})"
  37601. msgstr ""
  37602. #. type: table
  37603. #: guix-git/doc/guix.texi:25077
  37604. msgid "Maximum size in bytes that a user can send in one image message."
  37605. msgstr ""
  37606. #. type: item
  37607. #: guix-git/doc/guix.texi:25078
  37608. #, no-wrap
  37609. msgid "@code{cert-required?} (default: @code{#f})"
  37610. msgstr ""
  37611. #. type: table
  37612. #: guix-git/doc/guix.texi:25081
  37613. 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."
  37614. msgstr ""
  37615. #. type: item
  37616. #: guix-git/doc/guix.texi:25082
  37617. #, no-wrap
  37618. msgid "@code{remember-channel?} (default: @code{#f})"
  37619. msgstr ""
  37620. #. type: table
  37621. #: guix-git/doc/guix.texi:25085
  37622. msgid "Should murmur remember the last channel each user was in when they disconnected and put them into the remembered channel when they rejoin."
  37623. msgstr ""
  37624. #. type: item
  37625. #: guix-git/doc/guix.texi:25086
  37626. #, no-wrap
  37627. msgid "@code{allow-html?} (default: @code{#f})"
  37628. msgstr ""
  37629. #. type: table
  37630. #: guix-git/doc/guix.texi:25088
  37631. msgid "Should html be allowed in text messages, user comments, and channel descriptions."
  37632. msgstr ""
  37633. #. type: item
  37634. #: guix-git/doc/guix.texi:25089
  37635. #, no-wrap
  37636. msgid "@code{allow-ping?} (default: @code{#f})"
  37637. msgstr ""
  37638. #. type: table
  37639. #: guix-git/doc/guix.texi:25093
  37640. 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."
  37641. msgstr ""
  37642. #. type: table
  37643. #: guix-git/doc/guix.texi:25095
  37644. msgid "Disabling this setting will prevent public listing of the server."
  37645. msgstr ""
  37646. #. type: item
  37647. #: guix-git/doc/guix.texi:25096
  37648. #, no-wrap
  37649. msgid "@code{bonjour?} (default: @code{#f})"
  37650. msgstr ""
  37651. #. type: table
  37652. #: guix-git/doc/guix.texi:25098
  37653. msgid "Should the server advertise itself in the local network through the bonjour protocol."
  37654. msgstr ""
  37655. #. type: item
  37656. #: guix-git/doc/guix.texi:25099
  37657. #, no-wrap
  37658. msgid "@code{send-version?} (default: @code{#f})"
  37659. msgstr ""
  37660. #. type: table
  37661. #: guix-git/doc/guix.texi:25101
  37662. msgid "Should the murmur server version be exposed in ping requests."
  37663. msgstr ""
  37664. #. type: item
  37665. #: guix-git/doc/guix.texi:25102
  37666. #, no-wrap
  37667. msgid "@code{log-days} (default: @code{31})"
  37668. msgstr ""
  37669. #. type: table
  37670. #: guix-git/doc/guix.texi:25106
  37671. 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."
  37672. msgstr ""
  37673. #. type: item
  37674. #: guix-git/doc/guix.texi:25107
  37675. #, no-wrap
  37676. msgid "@code{obfuscate-ips?} (default: @code{#t})"
  37677. msgstr ""
  37678. #. type: table
  37679. #: guix-git/doc/guix.texi:25109
  37680. msgid "Should logged ips be obfuscated to protect the privacy of users."
  37681. msgstr ""
  37682. #. type: item
  37683. #: guix-git/doc/guix.texi:25110
  37684. #, no-wrap
  37685. msgid "@code{ssl-cert} (default: @code{#f})"
  37686. msgstr ""
  37687. #. type: table
  37688. #: guix-git/doc/guix.texi:25112
  37689. msgid "File name of the SSL/TLS certificate used for encrypted connections."
  37690. msgstr ""
  37691. #. type: lisp
  37692. #: guix-git/doc/guix.texi:25115
  37693. #, no-wrap
  37694. msgid "(ssl-cert \"/etc/letsencrypt/live/example.com/fullchain.pem\")\n"
  37695. msgstr ""
  37696. #. type: item
  37697. #: guix-git/doc/guix.texi:25116
  37698. #, no-wrap
  37699. msgid "@code{ssl-key} (default: @code{#f})"
  37700. msgstr ""
  37701. #. type: table
  37702. #: guix-git/doc/guix.texi:25118
  37703. msgid "Filepath to the ssl private key used for encrypted connections."
  37704. msgstr ""
  37705. #. type: lisp
  37706. #: guix-git/doc/guix.texi:25120
  37707. #, no-wrap
  37708. msgid "(ssl-key \"/etc/letsencrypt/live/example.com/privkey.pem\")\n"
  37709. msgstr ""
  37710. #. type: item
  37711. #: guix-git/doc/guix.texi:25122
  37712. #, no-wrap
  37713. msgid "@code{ssl-dh-params} (default: @code{#f})"
  37714. msgstr ""
  37715. #. type: table
  37716. #: guix-git/doc/guix.texi:25127
  37717. 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."
  37718. msgstr ""
  37719. #. type: item
  37720. #: guix-git/doc/guix.texi:25128
  37721. #, no-wrap
  37722. msgid "@code{ssl-ciphers} (default: @code{#f})"
  37723. msgstr ""
  37724. #. type: table
  37725. #: guix-git/doc/guix.texi:25131
  37726. msgid "The @code{ssl-ciphers} option chooses the cipher suites to make available for use in SSL/TLS."
  37727. msgstr ""
  37728. #. type: table
  37729. #: guix-git/doc/guix.texi:25135
  37730. msgid "This option is specified using @uref{https://www.openssl.org/docs/apps/ciphers.html#CIPHER-LIST-FORMAT, OpenSSL cipher list notation}."
  37731. msgstr ""
  37732. #. type: table
  37733. #: guix-git/doc/guix.texi:25140
  37734. 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."
  37735. msgstr ""
  37736. #. type: table
  37737. #: guix-git/doc/guix.texi:25144
  37738. 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."
  37739. msgstr ""
  37740. #. type: item
  37741. #: guix-git/doc/guix.texi:25145
  37742. #, no-wrap
  37743. msgid "@code{public-registration} (default: @code{#f})"
  37744. msgstr ""
  37745. #. type: table
  37746. #: guix-git/doc/guix.texi:25147
  37747. msgid "Must be a @code{<murmur-public-registration-configuration>} record or @code{#f}."
  37748. msgstr ""
  37749. #. type: table
  37750. #: guix-git/doc/guix.texi:25152
  37751. 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}."
  37752. msgstr ""
  37753. #. type: table
  37754. #: guix-git/doc/guix.texi:25154
  37755. msgid "It might take a few hours until it shows up in the public list."
  37756. msgstr ""
  37757. #. type: item
  37758. #: guix-git/doc/guix.texi:25155 guix-git/doc/guix.texi:27302
  37759. #, no-wrap
  37760. msgid "@code{file} (default: @code{#f})"
  37761. msgstr ""
  37762. #. type: table
  37763. #: guix-git/doc/guix.texi:25157
  37764. msgid "Optional alternative override for this configuration."
  37765. msgstr ""
  37766. #. type: deftp
  37767. #: guix-git/doc/guix.texi:25160
  37768. #, no-wrap
  37769. msgid "{Data Type} murmur-public-registration-configuration"
  37770. msgstr ""
  37771. #. type: deftp
  37772. #: guix-git/doc/guix.texi:25162
  37773. msgid "Configuration for public registration of a murmur service."
  37774. msgstr ""
  37775. #. type: table
  37776. #: guix-git/doc/guix.texi:25166
  37777. msgid "This is a display name for your server. Not to be confused with the hostname."
  37778. msgstr ""
  37779. #. type: itemx
  37780. #: guix-git/doc/guix.texi:25167 guix-git/doc/guix.texi:34081
  37781. #: guix-git/doc/guix.texi:35338
  37782. #, no-wrap
  37783. msgid "password"
  37784. msgstr ""
  37785. #. type: table
  37786. #: guix-git/doc/guix.texi:25170
  37787. msgid "A password to identify your registration. Subsequent updates will need the same password. Don't lose your password."
  37788. msgstr ""
  37789. #. type: table
  37790. #: guix-git/doc/guix.texi:25174
  37791. msgid "This should be a @code{http://} or @code{https://} link to your web site."
  37792. msgstr ""
  37793. #. type: item
  37794. #: guix-git/doc/guix.texi:25175 guix-git/doc/guix.texi:28190
  37795. #, no-wrap
  37796. msgid "@code{hostname} (default: @code{#f})"
  37797. msgstr ""
  37798. #. type: table
  37799. #: guix-git/doc/guix.texi:25178
  37800. 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."
  37801. msgstr ""
  37802. #. type: Plain text
  37803. #: guix-git/doc/guix.texi:25188
  37804. msgid "The @code{(gnu services file-sharing)} module provides services that assist with transferring files over peer-to-peer file-sharing networks."
  37805. msgstr ""
  37806. #. type: subsubheading
  37807. #: guix-git/doc/guix.texi:25189
  37808. #, fuzzy, no-wrap
  37809. msgid "Transmission Daemon Service"
  37810. msgstr "版本控制服务"
  37811. #. type: Plain text
  37812. #: guix-git/doc/guix.texi:25197
  37813. 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."
  37814. msgstr ""
  37815. #. type: deffn
  37816. #: guix-git/doc/guix.texi:25198
  37817. #, no-wrap
  37818. msgid "{Scheme Variable} transmission-daemon-service-type"
  37819. msgstr ""
  37820. #. type: deffn
  37821. #: guix-git/doc/guix.texi:25202
  37822. msgid "The service type for the Transmission Daemon BitTorrent client. Its value must be a @code{transmission-daemon-configuration} object as in this example:"
  37823. msgstr ""
  37824. #. type: lisp
  37825. #: guix-git/doc/guix.texi:25213
  37826. #, no-wrap
  37827. msgid ""
  37828. "(service transmission-daemon-service-type\n"
  37829. " (transmission-daemon-configuration\n"
  37830. " ;; Restrict access to the RPC (\"control\") interface\n"
  37831. " (rpc-authentication-required? #t)\n"
  37832. " (rpc-username \"transmission\")\n"
  37833. " (rpc-password\n"
  37834. " (transmission-password-hash\n"
  37835. " \"transmission\" ; desired password\n"
  37836. " \"uKd1uMs9\")) ; arbitrary salt value\n"
  37837. "\n"
  37838. msgstr ""
  37839. #. type: lisp
  37840. #: guix-git/doc/guix.texi:25218
  37841. #, no-wrap
  37842. msgid ""
  37843. " ;; Accept requests from this and other hosts on the\n"
  37844. " ;; local network\n"
  37845. " (rpc-whitelist-enabled? #t)\n"
  37846. " (rpc-whitelist '(\"::1\" \"127.0.0.1\" \"192.168.0.*\"))\n"
  37847. "\n"
  37848. msgstr ""
  37849. #. type: lisp
  37850. #: guix-git/doc/guix.texi:25222
  37851. #, no-wrap
  37852. msgid ""
  37853. " ;; Limit bandwidth use during work hours\n"
  37854. " (alt-speed-down (* 1024 2)) ; 2 MB/s\n"
  37855. " (alt-speed-up 512) ; 512 kB/s\n"
  37856. "\n"
  37857. msgstr ""
  37858. #. type: lisp
  37859. #: guix-git/doc/guix.texi:25229
  37860. #, no-wrap
  37861. msgid ""
  37862. " (alt-speed-time-enabled? #t)\n"
  37863. " (alt-speed-time-day 'weekdays)\n"
  37864. " (alt-speed-time-begin\n"
  37865. " (+ (* 60 8) 30)) ; 8:30 am\n"
  37866. " (alt-speed-time-end\n"
  37867. " (+ (* 60 (+ 12 5)) 30)))) ; 5:30 pm\n"
  37868. msgstr ""
  37869. #. type: Plain text
  37870. #: guix-git/doc/guix.texi:25242
  37871. 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."
  37872. msgstr ""
  37873. #. type: Plain text
  37874. #: guix-git/doc/guix.texi:25250
  37875. 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."
  37876. msgstr ""
  37877. #. type: deffn
  37878. #: guix-git/doc/guix.texi:25251
  37879. #, no-wrap
  37880. msgid "{Scheme Procedure} transmission-password-hash @var{password} @var{salt}"
  37881. msgstr ""
  37882. #. type: deffn
  37883. #: guix-git/doc/guix.texi:25255
  37884. 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."
  37885. msgstr ""
  37886. #. type: deffn
  37887. #: guix-git/doc/guix.texi:25259
  37888. 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."
  37889. msgstr ""
  37890. #. type: deffn
  37891. #: guix-git/doc/guix.texi:25261
  37892. #, no-wrap
  37893. msgid "{Scheme Procedure} transmission-random-salt"
  37894. msgstr ""
  37895. #. type: deffn
  37896. #: guix-git/doc/guix.texi:25265
  37897. 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."
  37898. msgstr ""
  37899. #. type: Plain text
  37900. #: guix-git/doc/guix.texi:25271
  37901. 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:"
  37902. msgstr ""
  37903. #. type: example
  37904. #: guix-git/doc/guix.texi:25277
  37905. #, no-wrap
  37906. msgid ""
  37907. "$ guix repl\n"
  37908. "scheme@@(guix-user)> ,use (gnu services file-sharing)\n"
  37909. "scheme@@(guix-user)> (transmission-random-salt)\n"
  37910. "$1 = \"uKd1uMs9\"\n"
  37911. msgstr ""
  37912. #. type: Plain text
  37913. #: guix-git/doc/guix.texi:25280
  37914. msgid "Alternatively, a complete password hash can generated in a single step:"
  37915. msgstr ""
  37916. #. type: example
  37917. #: guix-git/doc/guix.texi:25285
  37918. #, no-wrap
  37919. msgid ""
  37920. "scheme@@(guix-user)> (transmission-password-hash \"transmission\"\n"
  37921. "(transmission-random-salt))\n"
  37922. "$2 = \"@{c8bbc6d1740cd8dc819a6e25563b67812c1c19c9VtFPfdsX\"\n"
  37923. msgstr ""
  37924. #. type: Plain text
  37925. #: guix-git/doc/guix.texi:25290
  37926. 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."
  37927. msgstr ""
  37928. #. type: Plain text
  37929. #: guix-git/doc/guix.texi:25299
  37930. 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."
  37931. msgstr ""
  37932. #. type: Plain text
  37933. #: guix-git/doc/guix.texi:25306
  37934. 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.)"
  37935. msgstr ""
  37936. #. type: Plain text
  37937. #: guix-git/doc/guix.texi:25311
  37938. 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:"
  37939. msgstr ""
  37940. #. type: example
  37941. #: guix-git/doc/guix.texi:25314
  37942. #, no-wrap
  37943. msgid "# herd reload transmission-daemon\n"
  37944. msgstr ""
  37945. #. type: Plain text
  37946. #: guix-git/doc/guix.texi:25318
  37947. msgid "The full set of available configuration settings is defined by the @code{transmission-daemon-configuration} data type."
  37948. msgstr ""
  37949. #. type: deftp
  37950. #: guix-git/doc/guix.texi:25319
  37951. #, fuzzy, no-wrap
  37952. msgid "{Data Type} transmission-daemon-configuration"
  37953. msgstr "{数据类型} build-machine"
  37954. #. type: deftp
  37955. #: guix-git/doc/guix.texi:25323
  37956. 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."
  37957. msgstr ""
  37958. #. type: Plain text
  37959. #: guix-git/doc/guix.texi:25337
  37960. msgid "Available @code{transmission-daemon-configuration} fields are:"
  37961. msgstr ""
  37962. #. type: deftypevr
  37963. #: guix-git/doc/guix.texi:25338
  37964. #, no-wrap
  37965. msgid "{@code{transmission-daemon-configuration} parameter} package transmission"
  37966. msgstr ""
  37967. #. type: deftypevr
  37968. #: guix-git/doc/guix.texi:25340
  37969. #, fuzzy
  37970. msgid "The Transmission package to use."
  37971. msgstr "软件包数据类型。"
  37972. #. type: deftypevr
  37973. #: guix-git/doc/guix.texi:25343
  37974. #, no-wrap
  37975. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer stop-wait-period"
  37976. msgstr ""
  37977. #. type: deftypevr
  37978. #: guix-git/doc/guix.texi:25349
  37979. 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."
  37980. msgstr ""
  37981. #. type: deftypevr
  37982. #: guix-git/doc/guix.texi:25351 guix-git/doc/guix.texi:25723
  37983. #: guix-git/doc/guix.texi:33047 guix-git/doc/guix.texi:33282
  37984. #: guix-git/doc/guix.texi:33290 guix-git/doc/guix.texi:33298
  37985. msgid "Defaults to @samp{10}."
  37986. msgstr ""
  37987. #. type: deftypevr
  37988. #: guix-git/doc/guix.texi:25354
  37989. #, no-wrap
  37990. msgid "{@code{transmission-daemon-configuration} parameter} string download-dir"
  37991. msgstr ""
  37992. #. type: deftypevr
  37993. #: guix-git/doc/guix.texi:25356
  37994. msgid "The directory to which torrent files are downloaded."
  37995. msgstr ""
  37996. #. type: deftypevr
  37997. #: guix-git/doc/guix.texi:25358
  37998. msgid "Defaults to @samp{\"/var/lib/transmission-daemon/downloads\"}."
  37999. msgstr ""
  38000. #. type: deftypevr
  38001. #: guix-git/doc/guix.texi:25361
  38002. #, no-wrap
  38003. msgid "{@code{transmission-daemon-configuration} parameter} boolean incomplete-dir-enabled?"
  38004. msgstr ""
  38005. #. type: deftypevr
  38006. #: guix-git/doc/guix.texi:25366
  38007. 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}."
  38008. msgstr ""
  38009. #. type: deftypevr
  38010. #: guix-git/doc/guix.texi:25371
  38011. #, no-wrap
  38012. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string incomplete-dir"
  38013. msgstr ""
  38014. #. type: deftypevr
  38015. #: guix-git/doc/guix.texi:25374
  38016. msgid "The directory in which files from incompletely downloaded torrents will be held when @code{incomplete-dir-enabled?} is @code{#t}."
  38017. msgstr ""
  38018. #. type: deftypevr
  38019. #: guix-git/doc/guix.texi:25379
  38020. #, no-wrap
  38021. msgid "{@code{transmission-daemon-configuration} parameter} umask umask"
  38022. msgstr ""
  38023. #. type: deftypevr
  38024. #: guix-git/doc/guix.texi:25382
  38025. msgid "The file mode creation mask used for downloaded files. (See the @command{umask} man page for more information.)"
  38026. msgstr ""
  38027. #. type: deftypevr
  38028. #: guix-git/doc/guix.texi:25384
  38029. msgid "Defaults to @samp{18}."
  38030. msgstr ""
  38031. #. type: deftypevr
  38032. #: guix-git/doc/guix.texi:25387
  38033. #, no-wrap
  38034. msgid "{@code{transmission-daemon-configuration} parameter} boolean rename-partial-files?"
  38035. msgstr ""
  38036. #. type: deftypevr
  38037. #: guix-git/doc/guix.texi:25390
  38038. msgid "When @code{#t}, ``.part'' is appended to the name of partially downloaded files."
  38039. msgstr ""
  38040. #. type: deftypevr
  38041. #: guix-git/doc/guix.texi:25395
  38042. #, no-wrap
  38043. msgid "{@code{transmission-daemon-configuration} parameter} preallocation-mode preallocation"
  38044. msgstr ""
  38045. #. type: deftypevr
  38046. #: guix-git/doc/guix.texi:25400
  38047. 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."
  38048. msgstr ""
  38049. #. type: deftypevr
  38050. #: guix-git/doc/guix.texi:25402
  38051. msgid "Defaults to @samp{fast}."
  38052. msgstr ""
  38053. #. type: deftypevr
  38054. #: guix-git/doc/guix.texi:25405
  38055. #, no-wrap
  38056. msgid "{@code{transmission-daemon-configuration} parameter} boolean watch-dir-enabled?"
  38057. msgstr ""
  38058. #. type: deftypevr
  38059. #: guix-git/doc/guix.texi:25410
  38060. 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})."
  38061. msgstr ""
  38062. #. type: deftypevr
  38063. #: guix-git/doc/guix.texi:25415
  38064. #, no-wrap
  38065. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string watch-dir"
  38066. msgstr ""
  38067. #. type: deftypevr
  38068. #: guix-git/doc/guix.texi:25418
  38069. msgid "The directory to be watched for @file{.torrent} files indicating new torrents to be added, when @code{watch-dir-enabled} is @code{#t}."
  38070. msgstr ""
  38071. #. type: deftypevr
  38072. #: guix-git/doc/guix.texi:25423
  38073. #, no-wrap
  38074. msgid "{@code{transmission-daemon-configuration} parameter} boolean trash-original-torrent-files?"
  38075. msgstr ""
  38076. #. type: deftypevr
  38077. #: guix-git/doc/guix.texi:25427
  38078. 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?})."
  38079. msgstr ""
  38080. #. type: deftypevr
  38081. #: guix-git/doc/guix.texi:25432
  38082. #, no-wrap
  38083. msgid "{@code{transmission-daemon-configuration} parameter} boolean speed-limit-down-enabled?"
  38084. msgstr ""
  38085. #. type: deftypevr
  38086. #: guix-git/doc/guix.texi:25435
  38087. msgid "When @code{#t}, the daemon's download speed will be limited to the rate specified by @code{speed-limit-down}."
  38088. msgstr ""
  38089. #. type: deftypevr
  38090. #: guix-git/doc/guix.texi:25440
  38091. #, no-wrap
  38092. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer speed-limit-down"
  38093. msgstr ""
  38094. #. type: deftypevr
  38095. #: guix-git/doc/guix.texi:25442
  38096. msgid "The default global-maximum download speed, in kilobytes per second."
  38097. msgstr ""
  38098. #. type: deftypevr
  38099. #: guix-git/doc/guix.texi:25447
  38100. #, no-wrap
  38101. msgid "{@code{transmission-daemon-configuration} parameter} boolean speed-limit-up-enabled?"
  38102. msgstr ""
  38103. #. type: deftypevr
  38104. #: guix-git/doc/guix.texi:25450
  38105. msgid "When @code{#t}, the daemon's upload speed will be limited to the rate specified by @code{speed-limit-up}."
  38106. msgstr ""
  38107. #. type: deftypevr
  38108. #: guix-git/doc/guix.texi:25455
  38109. #, no-wrap
  38110. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer speed-limit-up"
  38111. msgstr ""
  38112. #. type: deftypevr
  38113. #: guix-git/doc/guix.texi:25457
  38114. msgid "The default global-maximum upload speed, in kilobytes per second."
  38115. msgstr ""
  38116. #. type: deftypevr
  38117. #: guix-git/doc/guix.texi:25462
  38118. #, no-wrap
  38119. msgid "{@code{transmission-daemon-configuration} parameter} boolean alt-speed-enabled?"
  38120. msgstr ""
  38121. #. type: deftypevr
  38122. #: guix-git/doc/guix.texi:25468
  38123. 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?}."
  38124. msgstr ""
  38125. #. type: deftypevr
  38126. #: guix-git/doc/guix.texi:25473
  38127. #, no-wrap
  38128. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-down"
  38129. msgstr ""
  38130. #. type: deftypevr
  38131. #: guix-git/doc/guix.texi:25475
  38132. msgid "The alternate global-maximum download speed, in kilobytes per second."
  38133. msgstr ""
  38134. #. type: deftypevr
  38135. #: guix-git/doc/guix.texi:25477 guix-git/doc/guix.texi:25484
  38136. #: guix-git/doc/guix.texi:25656 guix-git/doc/guix.texi:33054
  38137. #: guix-git/doc/guix.texi:33069
  38138. msgid "Defaults to @samp{50}."
  38139. msgstr ""
  38140. #. type: deftypevr
  38141. #: guix-git/doc/guix.texi:25480
  38142. #, no-wrap
  38143. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-up"
  38144. msgstr ""
  38145. #. type: deftypevr
  38146. #: guix-git/doc/guix.texi:25482
  38147. msgid "The alternate global-maximum upload speed, in kilobytes per second."
  38148. msgstr ""
  38149. #. type: deftypevr
  38150. #: guix-git/doc/guix.texi:25487
  38151. #, no-wrap
  38152. msgid "{@code{transmission-daemon-configuration} parameter} boolean alt-speed-time-enabled?"
  38153. msgstr ""
  38154. #. type: deftypevr
  38155. #: guix-git/doc/guix.texi:25492
  38156. 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}."
  38157. msgstr ""
  38158. #. type: deftypevr
  38159. #: guix-git/doc/guix.texi:25497
  38160. #, no-wrap
  38161. msgid "{@code{transmission-daemon-configuration} parameter} day-list alt-speed-time-day"
  38162. msgstr ""
  38163. #. type: deftypevr
  38164. #: guix-git/doc/guix.texi:25502
  38165. 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}."
  38166. msgstr ""
  38167. #. type: deftypevr
  38168. #: guix-git/doc/guix.texi:25504
  38169. msgid "Defaults to @samp{all}."
  38170. msgstr ""
  38171. #. type: deftypevr
  38172. #: guix-git/doc/guix.texi:25507
  38173. #, no-wrap
  38174. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-time-begin"
  38175. msgstr ""
  38176. #. type: deftypevr
  38177. #: guix-git/doc/guix.texi:25510
  38178. msgid "The time of day at which to enable the alternate speed limits, expressed as a number of minutes since midnight."
  38179. msgstr ""
  38180. #. type: deftypevr
  38181. #: guix-git/doc/guix.texi:25512
  38182. msgid "Defaults to @samp{540}."
  38183. msgstr ""
  38184. #. type: deftypevr
  38185. #: guix-git/doc/guix.texi:25515
  38186. #, no-wrap
  38187. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-time-end"
  38188. msgstr ""
  38189. #. type: deftypevr
  38190. #: guix-git/doc/guix.texi:25518
  38191. msgid "The time of day at which to disable the alternate speed limits, expressed as a number of minutes since midnight."
  38192. msgstr ""
  38193. #. type: deftypevr
  38194. #: guix-git/doc/guix.texi:25520
  38195. msgid "Defaults to @samp{1020}."
  38196. msgstr ""
  38197. #. type: deftypevr
  38198. #: guix-git/doc/guix.texi:25523
  38199. #, no-wrap
  38200. msgid "{@code{transmission-daemon-configuration} parameter} string bind-address-ipv4"
  38201. msgstr ""
  38202. #. type: deftypevr
  38203. #: guix-git/doc/guix.texi:25526
  38204. msgid "The IP address at which to listen for peer connections, or ``0.0.0.0'' to listen at all available IP addresses."
  38205. msgstr ""
  38206. #. type: deftypevr
  38207. #: guix-git/doc/guix.texi:25528 guix-git/doc/guix.texi:25831
  38208. #: guix-git/doc/guix.texi:30911
  38209. msgid "Defaults to @samp{\"0.0.0.0\"}."
  38210. msgstr ""
  38211. #. type: deftypevr
  38212. #: guix-git/doc/guix.texi:25531
  38213. #, no-wrap
  38214. msgid "{@code{transmission-daemon-configuration} parameter} string bind-address-ipv6"
  38215. msgstr ""
  38216. #. type: deftypevr
  38217. #: guix-git/doc/guix.texi:25534
  38218. msgid "The IPv6 address at which to listen for peer connections, or ``::'' to listen at all available IPv6 addresses."
  38219. msgstr ""
  38220. #. type: deftypevr
  38221. #: guix-git/doc/guix.texi:25536
  38222. msgid "Defaults to @samp{\"::\"}."
  38223. msgstr ""
  38224. #. type: deftypevr
  38225. #: guix-git/doc/guix.texi:25539
  38226. #, no-wrap
  38227. msgid "{@code{transmission-daemon-configuration} parameter} boolean peer-port-random-on-start?"
  38228. msgstr ""
  38229. #. type: deftypevr
  38230. #: guix-git/doc/guix.texi:25545
  38231. 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}."
  38232. msgstr ""
  38233. #. type: deftypevr
  38234. #: guix-git/doc/guix.texi:25550
  38235. #, no-wrap
  38236. msgid "{@code{transmission-daemon-configuration} parameter} port-number peer-port-random-low"
  38237. msgstr ""
  38238. #. type: deftypevr
  38239. #: guix-git/doc/guix.texi:25553
  38240. msgid "The lowest selectable port number when @code{peer-port-random-on-start?} is @code{#t}."
  38241. msgstr ""
  38242. #. type: deftypevr
  38243. #: guix-git/doc/guix.texi:25555
  38244. msgid "Defaults to @samp{49152}."
  38245. msgstr ""
  38246. #. type: deftypevr
  38247. #: guix-git/doc/guix.texi:25558
  38248. #, no-wrap
  38249. msgid "{@code{transmission-daemon-configuration} parameter} port-number peer-port-random-high"
  38250. msgstr ""
  38251. #. type: deftypevr
  38252. #: guix-git/doc/guix.texi:25561
  38253. msgid "The highest selectable port number when @code{peer-port-random-on-start} is @code{#t}."
  38254. msgstr ""
  38255. #. type: deftypevr
  38256. #: guix-git/doc/guix.texi:25563
  38257. msgid "Defaults to @samp{65535}."
  38258. msgstr ""
  38259. #. type: deftypevr
  38260. #: guix-git/doc/guix.texi:25566
  38261. #, no-wrap
  38262. msgid "{@code{transmission-daemon-configuration} parameter} port-number peer-port"
  38263. msgstr ""
  38264. #. type: deftypevr
  38265. #: guix-git/doc/guix.texi:25569
  38266. msgid "The port on which to listen for peer connections when @code{peer-port-random-on-start?} is @code{#f}."
  38267. msgstr ""
  38268. #. type: deftypevr
  38269. #: guix-git/doc/guix.texi:25571
  38270. msgid "Defaults to @samp{51413}."
  38271. msgstr ""
  38272. #. type: deftypevr
  38273. #: guix-git/doc/guix.texi:25574
  38274. #, no-wrap
  38275. msgid "{@code{transmission-daemon-configuration} parameter} boolean port-forwarding-enabled?"
  38276. msgstr ""
  38277. #. type: deftypevr
  38278. #: guix-git/doc/guix.texi:25578
  38279. msgid "If @code{#t}, the daemon will attempt to configure port-forwarding on an upstream gateway automatically using @acronym{UPnP} and @acronym{NAT-PMP}."
  38280. msgstr ""
  38281. #. type: deftypevr
  38282. #: guix-git/doc/guix.texi:25583
  38283. #, no-wrap
  38284. msgid "{@code{transmission-daemon-configuration} parameter} encryption-mode encryption"
  38285. msgstr ""
  38286. #. type: deftypevr
  38287. #: guix-git/doc/guix.texi:25588
  38288. msgid "The encryption preference for peer connections, one of @code{prefer-unencrypted-connections}, @code{prefer-encrypted-connections} or @code{require-encrypted-connections}."
  38289. msgstr ""
  38290. #. type: deftypevr
  38291. #: guix-git/doc/guix.texi:25590
  38292. msgid "Defaults to @samp{prefer-encrypted-connections}."
  38293. msgstr ""
  38294. #. type: deftypevr
  38295. #: guix-git/doc/guix.texi:25593
  38296. #, no-wrap
  38297. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string peer-congestion-algorithm"
  38298. msgstr ""
  38299. #. type: deftypevr
  38300. #: guix-git/doc/guix.texi:25598
  38301. 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)."
  38302. msgstr ""
  38303. #. type: deftypevr
  38304. #: guix-git/doc/guix.texi:25607
  38305. 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."
  38306. msgstr ""
  38307. #. type: deftypevr
  38308. #: guix-git/doc/guix.texi:25615
  38309. 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:"
  38310. msgstr ""
  38311. #. type: lisp
  38312. #: guix-git/doc/guix.texi:25622
  38313. #, no-wrap
  38314. msgid ""
  38315. "(service sysctl-service-type\n"
  38316. " (sysctl-configuration\n"
  38317. " (settings\n"
  38318. " (\"net.ipv4.tcp_allowed_congestion_control\" .\n"
  38319. " \"reno cubic lp\"))))\n"
  38320. msgstr ""
  38321. #. type: deftypevr
  38322. #: guix-git/doc/guix.texi:25625
  38323. msgid "The Transmission Daemon configuration can then be updated with"
  38324. msgstr ""
  38325. #. type: lisp
  38326. #: guix-git/doc/guix.texi:25628
  38327. #, no-wrap
  38328. msgid "(peer-congestion-algorithm \"lp\")\n"
  38329. msgstr ""
  38330. #. type: deftypevr
  38331. #: guix-git/doc/guix.texi:25631
  38332. msgid "and the system reconfigured to have the changes take effect."
  38333. msgstr ""
  38334. #. type: deftypevr
  38335. #: guix-git/doc/guix.texi:25636
  38336. #, no-wrap
  38337. msgid "{@code{transmission-daemon-configuration} parameter} tcp-type-of-service peer-socket-tos"
  38338. msgstr ""
  38339. #. type: deftypevr
  38340. #: guix-git/doc/guix.texi:25640
  38341. 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}."
  38342. msgstr ""
  38343. #. type: deftypevr
  38344. #: guix-git/doc/guix.texi:25642
  38345. msgid "Defaults to @samp{default}."
  38346. msgstr ""
  38347. #. type: deftypevr
  38348. #: guix-git/doc/guix.texi:25645
  38349. #, no-wrap
  38350. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer peer-limit-global"
  38351. msgstr ""
  38352. #. type: deftypevr
  38353. #: guix-git/doc/guix.texi:25647
  38354. msgid "The global limit on the number of connected peers."
  38355. msgstr ""
  38356. #. type: deftypevr
  38357. #: guix-git/doc/guix.texi:25649
  38358. msgid "Defaults to @samp{200}."
  38359. msgstr ""
  38360. #. type: deftypevr
  38361. #: guix-git/doc/guix.texi:25652
  38362. #, no-wrap
  38363. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer peer-limit-per-torrent"
  38364. msgstr ""
  38365. #. type: deftypevr
  38366. #: guix-git/doc/guix.texi:25654
  38367. msgid "The per-torrent limit on the number of connected peers."
  38368. msgstr ""
  38369. #. type: deftypevr
  38370. #: guix-git/doc/guix.texi:25659
  38371. #, no-wrap
  38372. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer upload-slots-per-torrent"
  38373. msgstr ""
  38374. #. type: deftypevr
  38375. #: guix-git/doc/guix.texi:25662
  38376. msgid "The maximum number of peers to which the daemon will upload data simultaneously for each torrent."
  38377. msgstr ""
  38378. #. type: deftypevr
  38379. #: guix-git/doc/guix.texi:25664
  38380. msgid "Defaults to @samp{14}."
  38381. msgstr ""
  38382. #. type: deftypevr
  38383. #: guix-git/doc/guix.texi:25667
  38384. #, no-wrap
  38385. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer peer-id-ttl-hours"
  38386. msgstr ""
  38387. #. type: deftypevr
  38388. #: guix-git/doc/guix.texi:25670
  38389. msgid "The maximum lifespan, in hours, of the peer ID associated with each public torrent before it is regenerated."
  38390. msgstr ""
  38391. #. type: deftypevr
  38392. #: guix-git/doc/guix.texi:25672
  38393. msgid "Defaults to @samp{6}."
  38394. msgstr ""
  38395. #. type: deftypevr
  38396. #: guix-git/doc/guix.texi:25675
  38397. #, no-wrap
  38398. msgid "{@code{transmission-daemon-configuration} parameter} boolean blocklist-enabled?"
  38399. msgstr ""
  38400. #. type: deftypevr
  38401. #: guix-git/doc/guix.texi:25678
  38402. msgid "When @code{#t}, the daemon will ignore peers mentioned in the blocklist it has most recently downloaded from @code{blocklist-url}."
  38403. msgstr ""
  38404. #. type: deftypevr
  38405. #: guix-git/doc/guix.texi:25683
  38406. #, no-wrap
  38407. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string blocklist-url"
  38408. msgstr ""
  38409. #. type: deftypevr
  38410. #: guix-git/doc/guix.texi:25687
  38411. 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}."
  38412. msgstr ""
  38413. #. type: deftypevr
  38414. #: guix-git/doc/guix.texi:25692
  38415. #, no-wrap
  38416. msgid "{@code{transmission-daemon-configuration} parameter} boolean download-queue-enabled?"
  38417. msgstr ""
  38418. #. type: deftypevr
  38419. #: guix-git/doc/guix.texi:25695
  38420. msgid "If @code{#t}, the daemon will be limited to downloading at most @code{download-queue-size} non-stalled torrents simultaneously."
  38421. msgstr ""
  38422. #. type: deftypevr
  38423. #: guix-git/doc/guix.texi:25700
  38424. #, no-wrap
  38425. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer download-queue-size"
  38426. msgstr ""
  38427. #. type: deftypevr
  38428. #: guix-git/doc/guix.texi:25704
  38429. 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}."
  38430. msgstr ""
  38431. #. type: deftypevr
  38432. #: guix-git/doc/guix.texi:25709
  38433. #, no-wrap
  38434. msgid "{@code{transmission-daemon-configuration} parameter} boolean seed-queue-enabled?"
  38435. msgstr ""
  38436. #. type: deftypevr
  38437. #: guix-git/doc/guix.texi:25712
  38438. msgid "If @code{#t}, the daemon will be limited to seeding at most @code{seed-queue-size} non-stalled torrents simultaneously."
  38439. msgstr ""
  38440. #. type: deftypevr
  38441. #: guix-git/doc/guix.texi:25717
  38442. #, no-wrap
  38443. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer seed-queue-size"
  38444. msgstr ""
  38445. #. type: deftypevr
  38446. #: guix-git/doc/guix.texi:25721
  38447. 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}."
  38448. msgstr ""
  38449. #. type: deftypevr
  38450. #: guix-git/doc/guix.texi:25726
  38451. #, no-wrap
  38452. msgid "{@code{transmission-daemon-configuration} parameter} boolean queue-stalled-enabled?"
  38453. msgstr ""
  38454. #. type: deftypevr
  38455. #: guix-git/doc/guix.texi:25731
  38456. 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."
  38457. msgstr ""
  38458. #. type: deftypevr
  38459. #: guix-git/doc/guix.texi:25736
  38460. #, no-wrap
  38461. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer queue-stalled-minutes"
  38462. msgstr ""
  38463. #. type: deftypevr
  38464. #: guix-git/doc/guix.texi:25740
  38465. 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}."
  38466. msgstr ""
  38467. #. type: deftypevr
  38468. #: guix-git/doc/guix.texi:25745
  38469. #, no-wrap
  38470. msgid "{@code{transmission-daemon-configuration} parameter} boolean ratio-limit-enabled?"
  38471. msgstr ""
  38472. #. type: deftypevr
  38473. #: guix-git/doc/guix.texi:25748
  38474. msgid "When @code{#t}, a torrent being seeded will automatically be paused once it reaches the ratio specified by @code{ratio-limit}."
  38475. msgstr ""
  38476. #. type: deftypevr
  38477. #: guix-git/doc/guix.texi:25753
  38478. #, no-wrap
  38479. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-rational ratio-limit"
  38480. msgstr ""
  38481. #. type: deftypevr
  38482. #: guix-git/doc/guix.texi:25756
  38483. msgid "The ratio at which a torrent being seeded will be paused, when @code{ratio-limit-enabled?} is @code{#t}."
  38484. msgstr ""
  38485. #. type: deftypevr
  38486. #: guix-git/doc/guix.texi:25758
  38487. msgid "Defaults to @samp{2.0}."
  38488. msgstr ""
  38489. #. type: deftypevr
  38490. #: guix-git/doc/guix.texi:25761
  38491. #, no-wrap
  38492. msgid "{@code{transmission-daemon-configuration} parameter} boolean idle-seeding-limit-enabled?"
  38493. msgstr ""
  38494. #. type: deftypevr
  38495. #: guix-git/doc/guix.texi:25764
  38496. msgid "When @code{#t}, a torrent being seeded will automatically be paused once it has been idle for @code{idle-seeding-limit} minutes."
  38497. msgstr ""
  38498. #. type: deftypevr
  38499. #: guix-git/doc/guix.texi:25769
  38500. #, no-wrap
  38501. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer idle-seeding-limit"
  38502. msgstr ""
  38503. #. type: deftypevr
  38504. #: guix-git/doc/guix.texi:25773
  38505. 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}."
  38506. msgstr ""
  38507. #. type: deftypevr
  38508. #: guix-git/doc/guix.texi:25778
  38509. #, no-wrap
  38510. msgid "{@code{transmission-daemon-configuration} parameter} boolean dht-enabled?"
  38511. msgstr ""
  38512. #. type: deftypevr
  38513. #: guix-git/doc/guix.texi:25782
  38514. msgid "Enable @uref{http://bittorrent.org/beps/bep_0005.html,the distributed hash table (@acronym{DHT}) protocol}, which supports the use of trackerless torrents."
  38515. msgstr ""
  38516. #. type: deftypevr
  38517. #: guix-git/doc/guix.texi:25787
  38518. #, no-wrap
  38519. msgid "{@code{transmission-daemon-configuration} parameter} boolean lpd-enabled?"
  38520. msgstr ""
  38521. #. type: deftypevr
  38522. #: guix-git/doc/guix.texi:25792
  38523. 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."
  38524. msgstr ""
  38525. #. type: deftypevr
  38526. #: guix-git/doc/guix.texi:25797
  38527. #, no-wrap
  38528. msgid "{@code{transmission-daemon-configuration} parameter} boolean pex-enabled?"
  38529. msgstr ""
  38530. #. type: deftypevr
  38531. #: guix-git/doc/guix.texi:25801
  38532. 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."
  38533. msgstr ""
  38534. #. type: deftypevr
  38535. #: guix-git/doc/guix.texi:25806
  38536. #, no-wrap
  38537. msgid "{@code{transmission-daemon-configuration} parameter} boolean utp-enabled?"
  38538. msgstr ""
  38539. #. type: deftypevr
  38540. #: guix-git/doc/guix.texi:25811
  38541. 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."
  38542. msgstr ""
  38543. #. type: deftypevr
  38544. #: guix-git/doc/guix.texi:25816
  38545. #, no-wrap
  38546. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-enabled?"
  38547. msgstr ""
  38548. #. type: deftypevr
  38549. #: guix-git/doc/guix.texi:25821
  38550. 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."
  38551. msgstr ""
  38552. #. type: deftypevr
  38553. #: guix-git/doc/guix.texi:25826
  38554. #, no-wrap
  38555. msgid "{@code{transmission-daemon-configuration} parameter} string rpc-bind-address"
  38556. msgstr ""
  38557. #. type: deftypevr
  38558. #: guix-git/doc/guix.texi:25829
  38559. msgid "The IP address at which to listen for @acronym{RPC} connections, or ``0.0.0.0'' to listen at all available IP addresses."
  38560. msgstr ""
  38561. #. type: deftypevr
  38562. #: guix-git/doc/guix.texi:25834
  38563. #, no-wrap
  38564. msgid "{@code{transmission-daemon-configuration} parameter} port-number rpc-port"
  38565. msgstr ""
  38566. #. type: deftypevr
  38567. #: guix-git/doc/guix.texi:25836
  38568. msgid "The port on which to listen for @acronym{RPC} connections."
  38569. msgstr ""
  38570. #. type: deftypevr
  38571. #: guix-git/doc/guix.texi:25838
  38572. msgid "Defaults to @samp{9091}."
  38573. msgstr ""
  38574. #. type: deftypevr
  38575. #: guix-git/doc/guix.texi:25841
  38576. #, no-wrap
  38577. msgid "{@code{transmission-daemon-configuration} parameter} string rpc-url"
  38578. msgstr ""
  38579. #. type: deftypevr
  38580. #: guix-git/doc/guix.texi:25843
  38581. msgid "The path prefix to use in the @acronym{RPC}-endpoint @acronym{URL}."
  38582. msgstr ""
  38583. #. type: deftypevr
  38584. #: guix-git/doc/guix.texi:25845
  38585. msgid "Defaults to @samp{\"/transmission/\"}."
  38586. msgstr ""
  38587. #. type: deftypevr
  38588. #: guix-git/doc/guix.texi:25848
  38589. #, no-wrap
  38590. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-authentication-required?"
  38591. msgstr ""
  38592. #. type: deftypevr
  38593. #: guix-git/doc/guix.texi:25853
  38594. 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?}."
  38595. msgstr ""
  38596. #. type: deftypevr
  38597. #: guix-git/doc/guix.texi:25858
  38598. #, no-wrap
  38599. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string rpc-username"
  38600. msgstr ""
  38601. #. type: deftypevr
  38602. #: guix-git/doc/guix.texi:25861
  38603. msgid "The username required by clients to access the @acronym{RPC} interface when @code{rpc-authentication-required?} is @code{#t}."
  38604. msgstr ""
  38605. #. type: deftypevr
  38606. #: guix-git/doc/guix.texi:25866
  38607. #, no-wrap
  38608. msgid "{@code{transmission-daemon-configuration} parameter} maybe-transmission-password-hash rpc-password"
  38609. msgstr ""
  38610. #. type: deftypevr
  38611. #: guix-git/doc/guix.texi:25872
  38612. 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."
  38613. msgstr ""
  38614. #. type: deftypevr
  38615. #: guix-git/doc/guix.texi:25877
  38616. #, no-wrap
  38617. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-whitelist-enabled?"
  38618. msgstr ""
  38619. #. type: deftypevr
  38620. #: guix-git/doc/guix.texi:25880
  38621. msgid "When @code{#t}, @acronym{RPC} requests will be accepted only when they originate from an address specified in @code{rpc-whitelist}."
  38622. msgstr ""
  38623. #. type: deftypevr
  38624. #: guix-git/doc/guix.texi:25885
  38625. #, no-wrap
  38626. msgid "{@code{transmission-daemon-configuration} parameter} string-list rpc-whitelist"
  38627. msgstr ""
  38628. #. type: deftypevr
  38629. #: guix-git/doc/guix.texi:25889
  38630. 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{*}."
  38631. msgstr ""
  38632. #. type: deftypevr
  38633. #: guix-git/doc/guix.texi:25891
  38634. msgid "Defaults to @samp{(\"127.0.0.1\" \"::1\")}."
  38635. msgstr ""
  38636. #. type: deftypevr
  38637. #: guix-git/doc/guix.texi:25894
  38638. #, no-wrap
  38639. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-host-whitelist-enabled?"
  38640. msgstr ""
  38641. #. type: deftypevr
  38642. #: guix-git/doc/guix.texi:25899
  38643. 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."
  38644. msgstr ""
  38645. #. type: deftypevr
  38646. #: guix-git/doc/guix.texi:25902
  38647. msgid "Note also this functionality is disabled when @code{rpc-authentication-required?} is @code{#t}."
  38648. msgstr ""
  38649. #. type: deftypevr
  38650. #: guix-git/doc/guix.texi:25907
  38651. #, no-wrap
  38652. msgid "{@code{transmission-daemon-configuration} parameter} string-list rpc-host-whitelist"
  38653. msgstr ""
  38654. #. type: deftypevr
  38655. #: guix-git/doc/guix.texi:25910
  38656. msgid "The list of host names recognized by the @acronym{RPC} server when @code{rpc-host-whitelist-enabled?} is @code{#t}."
  38657. msgstr ""
  38658. #. type: deftypevr
  38659. #: guix-git/doc/guix.texi:25915
  38660. #, no-wrap
  38661. msgid "{@code{transmission-daemon-configuration} parameter} message-level message-level"
  38662. msgstr ""
  38663. #. type: deftypevr
  38664. #: guix-git/doc/guix.texi:25919
  38665. 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}."
  38666. msgstr ""
  38667. #. type: deftypevr
  38668. #: guix-git/doc/guix.texi:25924
  38669. #, no-wrap
  38670. msgid "{@code{transmission-daemon-configuration} parameter} boolean start-added-torrents?"
  38671. msgstr ""
  38672. #. type: deftypevr
  38673. #: guix-git/doc/guix.texi:25927
  38674. msgid "When @code{#t}, torrents are started as soon as they are added; otherwise, they are added in ``paused'' state."
  38675. msgstr ""
  38676. #. type: deftypevr
  38677. #: guix-git/doc/guix.texi:25932
  38678. #, no-wrap
  38679. msgid "{@code{transmission-daemon-configuration} parameter} boolean script-torrent-done-enabled?"
  38680. msgstr ""
  38681. #. type: deftypevr
  38682. #: guix-git/doc/guix.texi:25936
  38683. msgid "When @code{#t}, the script specified by @code{script-torrent-done-filename} will be invoked each time a torrent completes."
  38684. msgstr ""
  38685. #. type: deftypevr
  38686. #: guix-git/doc/guix.texi:25941
  38687. #, no-wrap
  38688. msgid "{@code{transmission-daemon-configuration} parameter} maybe-file-object script-torrent-done-filename"
  38689. msgstr ""
  38690. #. type: deftypevr
  38691. #: guix-git/doc/guix.texi:25945
  38692. 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}."
  38693. msgstr ""
  38694. #. type: deftypevr
  38695. #: guix-git/doc/guix.texi:25950
  38696. #, no-wrap
  38697. msgid "{@code{transmission-daemon-configuration} parameter} boolean scrape-paused-torrents-enabled?"
  38698. msgstr ""
  38699. #. type: deftypevr
  38700. #: guix-git/doc/guix.texi:25953
  38701. msgid "When @code{#t}, the daemon will scrape trackers for a torrent even when the torrent is paused."
  38702. msgstr ""
  38703. #. type: deftypevr
  38704. #: guix-git/doc/guix.texi:25958
  38705. #, no-wrap
  38706. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer cache-size-mb"
  38707. msgstr ""
  38708. #. type: deftypevr
  38709. #: guix-git/doc/guix.texi:25962
  38710. 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."
  38711. msgstr ""
  38712. #. type: deftypevr
  38713. #: guix-git/doc/guix.texi:25964
  38714. msgid "Defaults to @samp{4}."
  38715. msgstr ""
  38716. #. type: deftypevr
  38717. #: guix-git/doc/guix.texi:25967
  38718. #, no-wrap
  38719. msgid "{@code{transmission-daemon-configuration} parameter} boolean prefetch-enabled?"
  38720. msgstr ""
  38721. #. type: deftypevr
  38722. #: guix-git/doc/guix.texi:25971
  38723. 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."
  38724. msgstr ""
  38725. #. type: subsubheading
  38726. #: guix-git/doc/guix.texi:25984
  38727. #, no-wrap
  38728. msgid "Tailon Service"
  38729. msgstr ""
  38730. #. type: Plain text
  38731. #: guix-git/doc/guix.texi:25988
  38732. msgid "@uref{https://tailon.readthedocs.io/, Tailon} is a web application for viewing and searching log files."
  38733. msgstr ""
  38734. #. type: Plain text
  38735. #: guix-git/doc/guix.texi:25991
  38736. msgid "The following example will configure the service with default values. By default, Tailon can be accessed on port 8080 (@code{http://localhost:8080})."
  38737. msgstr ""
  38738. #. type: lisp
  38739. #: guix-git/doc/guix.texi:25994
  38740. #, no-wrap
  38741. msgid "(service tailon-service-type)\n"
  38742. msgstr ""
  38743. #. type: Plain text
  38744. #: guix-git/doc/guix.texi:25998
  38745. msgid "The following example customises more of the Tailon configuration, adding @command{sed} to the list of allowed commands."
  38746. msgstr ""
  38747. #. type: lisp
  38748. #: guix-git/doc/guix.texi:26005
  38749. #, no-wrap
  38750. msgid ""
  38751. "(service tailon-service-type\n"
  38752. " (tailon-configuration\n"
  38753. " (config-file\n"
  38754. " (tailon-configuration-file\n"
  38755. " (allowed-commands '(\"tail\" \"grep\" \"awk\" \"sed\"))))))\n"
  38756. msgstr ""
  38757. #. type: deftp
  38758. #: guix-git/doc/guix.texi:26008
  38759. #, no-wrap
  38760. msgid "{Data Type} tailon-configuration"
  38761. msgstr ""
  38762. #. type: deftp
  38763. #: guix-git/doc/guix.texi:26011
  38764. msgid "Data type representing the configuration of Tailon. This type has the following parameters:"
  38765. msgstr ""
  38766. #. type: item
  38767. #: guix-git/doc/guix.texi:26013
  38768. #, no-wrap
  38769. msgid "@code{config-file} (default: @code{(tailon-configuration-file)})"
  38770. msgstr ""
  38771. #. type: table
  38772. #: guix-git/doc/guix.texi:26017
  38773. 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})."
  38774. msgstr ""
  38775. #. type: table
  38776. #: guix-git/doc/guix.texi:26020
  38777. msgid "For example, to instead use a local file, the @code{local-file} function can be used:"
  38778. msgstr ""
  38779. #. type: lisp
  38780. #: guix-git/doc/guix.texi:26025
  38781. #, no-wrap
  38782. msgid ""
  38783. "(service tailon-service-type\n"
  38784. " (tailon-configuration\n"
  38785. " (config-file (local-file \"./my-tailon.conf\"))))\n"
  38786. msgstr ""
  38787. #. type: item
  38788. #: guix-git/doc/guix.texi:26027
  38789. #, no-wrap
  38790. msgid "@code{package} (default: @code{tailon})"
  38791. msgstr ""
  38792. #. type: table
  38793. #: guix-git/doc/guix.texi:26029
  38794. msgid "The tailon package to use."
  38795. msgstr ""
  38796. #. type: deftp
  38797. #: guix-git/doc/guix.texi:26033
  38798. #, no-wrap
  38799. msgid "{Data Type} tailon-configuration-file"
  38800. msgstr ""
  38801. #. type: deftp
  38802. #: guix-git/doc/guix.texi:26036
  38803. msgid "Data type representing the configuration options for Tailon. This type has the following parameters:"
  38804. msgstr ""
  38805. #. type: item
  38806. #: guix-git/doc/guix.texi:26038
  38807. #, no-wrap
  38808. msgid "@code{files} (default: @code{(list \"/var/log\")})"
  38809. msgstr ""
  38810. #. type: table
  38811. #: guix-git/doc/guix.texi:26043
  38812. 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."
  38813. msgstr ""
  38814. #. type: item
  38815. #: guix-git/doc/guix.texi:26044
  38816. #, no-wrap
  38817. msgid "@code{bind} (default: @code{\"localhost:8080\"})"
  38818. msgstr ""
  38819. #. type: table
  38820. #: guix-git/doc/guix.texi:26046
  38821. msgid "Address and port to which Tailon should bind on."
  38822. msgstr ""
  38823. #. type: item
  38824. #: guix-git/doc/guix.texi:26047
  38825. #, no-wrap
  38826. msgid "@code{relative-root} (default: @code{#f})"
  38827. msgstr ""
  38828. #. type: table
  38829. #: guix-git/doc/guix.texi:26049
  38830. msgid "URL path to use for Tailon, set to @code{#f} to not use a path."
  38831. msgstr ""
  38832. #. type: item
  38833. #: guix-git/doc/guix.texi:26050
  38834. #, no-wrap
  38835. msgid "@code{allow-transfers?} (default: @code{#t})"
  38836. msgstr ""
  38837. #. type: table
  38838. #: guix-git/doc/guix.texi:26052
  38839. msgid "Allow downloading the log files in the web interface."
  38840. msgstr ""
  38841. #. type: item
  38842. #: guix-git/doc/guix.texi:26053
  38843. #, no-wrap
  38844. msgid "@code{follow-names?} (default: @code{#t})"
  38845. msgstr ""
  38846. #. type: table
  38847. #: guix-git/doc/guix.texi:26055
  38848. msgid "Allow tailing of not-yet existent files."
  38849. msgstr ""
  38850. #. type: item
  38851. #: guix-git/doc/guix.texi:26056
  38852. #, no-wrap
  38853. msgid "@code{tail-lines} (default: @code{200})"
  38854. msgstr ""
  38855. #. type: table
  38856. #: guix-git/doc/guix.texi:26058
  38857. msgid "Number of lines to read initially from each file."
  38858. msgstr ""
  38859. #. type: item
  38860. #: guix-git/doc/guix.texi:26059
  38861. #, no-wrap
  38862. msgid "@code{allowed-commands} (default: @code{(list \"tail\" \"grep\" \"awk\")})"
  38863. msgstr ""
  38864. #. type: table
  38865. #: guix-git/doc/guix.texi:26061
  38866. msgid "Commands to allow running. By default, @code{sed} is disabled."
  38867. msgstr ""
  38868. #. type: table
  38869. #: guix-git/doc/guix.texi:26064
  38870. msgid "Set @code{debug?} to @code{#t} to show debug messages."
  38871. msgstr ""
  38872. #. type: item
  38873. #: guix-git/doc/guix.texi:26065
  38874. #, no-wrap
  38875. msgid "@code{wrap-lines} (default: @code{#t})"
  38876. msgstr ""
  38877. #. type: table
  38878. #: guix-git/doc/guix.texi:26069
  38879. 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."
  38880. msgstr ""
  38881. #. type: item
  38882. #: guix-git/doc/guix.texi:26070
  38883. #, no-wrap
  38884. msgid "@code{http-auth} (default: @code{#f})"
  38885. msgstr ""
  38886. #. type: table
  38887. #: guix-git/doc/guix.texi:26074
  38888. msgid "HTTP authentication type to use. Set to @code{#f} to disable authentication (the default). Supported values are @code{\"digest\"} or @code{\"basic\"}."
  38889. msgstr ""
  38890. #. type: item
  38891. #: guix-git/doc/guix.texi:26075
  38892. #, no-wrap
  38893. msgid "@code{users} (default: @code{#f})"
  38894. msgstr ""
  38895. #. type: table
  38896. #: guix-git/doc/guix.texi:26080
  38897. 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."
  38898. msgstr ""
  38899. #. type: lisp
  38900. #: guix-git/doc/guix.texi:26086
  38901. #, no-wrap
  38902. msgid ""
  38903. "(tailon-configuration-file\n"
  38904. " (http-auth \"basic\")\n"
  38905. " (users '((\"user1\" . \"password1\")\n"
  38906. " (\"user2\" . \"password2\"))))\n"
  38907. msgstr ""
  38908. #. type: subsubheading
  38909. #: guix-git/doc/guix.texi:26092
  38910. #, no-wrap
  38911. msgid "Darkstat Service"
  38912. msgstr ""
  38913. #. type: cindex
  38914. #: guix-git/doc/guix.texi:26093
  38915. #, no-wrap
  38916. msgid "darkstat"
  38917. msgstr ""
  38918. #. type: Plain text
  38919. #: guix-git/doc/guix.texi:26096
  38920. msgid "Darkstat is a packet sniffer that captures network traffic, calculates statistics about usage, and serves reports over HTTP."
  38921. msgstr ""
  38922. #. type: defvar
  38923. #: guix-git/doc/guix.texi:26097
  38924. #, no-wrap
  38925. msgid "{Scheme Variable} darkstat-service-type"
  38926. msgstr ""
  38927. #. type: defvar
  38928. #: guix-git/doc/guix.texi:26102
  38929. 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:"
  38930. msgstr ""
  38931. #. type: lisp
  38932. #: guix-git/doc/guix.texi:26107
  38933. #, no-wrap
  38934. msgid ""
  38935. "(service darkstat-service-type\n"
  38936. " (darkstat-configuration\n"
  38937. " (interface \"eno1\")))\n"
  38938. msgstr ""
  38939. #. type: deftp
  38940. #: guix-git/doc/guix.texi:26110
  38941. #, no-wrap
  38942. msgid "{Data Type} darkstat-configuration"
  38943. msgstr ""
  38944. #. type: deftp
  38945. #: guix-git/doc/guix.texi:26112
  38946. msgid "Data type representing the configuration of @command{darkstat}."
  38947. msgstr ""
  38948. #. type: item
  38949. #: guix-git/doc/guix.texi:26114
  38950. #, no-wrap
  38951. msgid "@code{package} (default: @code{darkstat})"
  38952. msgstr ""
  38953. #. type: table
  38954. #: guix-git/doc/guix.texi:26116
  38955. msgid "The darkstat package to use."
  38956. msgstr ""
  38957. #. type: code{#1}
  38958. #: guix-git/doc/guix.texi:26117
  38959. #, no-wrap
  38960. msgid "interface"
  38961. msgstr ""
  38962. #. type: table
  38963. #: guix-git/doc/guix.texi:26119
  38964. msgid "Capture traffic on the specified network interface."
  38965. msgstr ""
  38966. #. type: item
  38967. #: guix-git/doc/guix.texi:26120
  38968. #, no-wrap
  38969. msgid "@code{port} (default: @code{\"667\"})"
  38970. msgstr ""
  38971. #. type: table
  38972. #: guix-git/doc/guix.texi:26122
  38973. msgid "Bind the web interface to the specified port."
  38974. msgstr ""
  38975. #. type: table
  38976. #: guix-git/doc/guix.texi:26125 guix-git/doc/guix.texi:26161
  38977. msgid "Bind the web interface to the specified address."
  38978. msgstr ""
  38979. #. type: item
  38980. #: guix-git/doc/guix.texi:26126
  38981. #, no-wrap
  38982. msgid "@code{base} (default: @code{\"/\"})"
  38983. msgstr ""
  38984. #. type: table
  38985. #: guix-git/doc/guix.texi:26129
  38986. msgid "Specify the path of the base URL@. This can be useful if @command{darkstat} is accessed via a reverse proxy."
  38987. msgstr ""
  38988. #. type: cindex
  38989. #: guix-git/doc/guix.texi:26134 guix-git/doc/guix.texi:26135
  38990. #, no-wrap
  38991. msgid "prometheus-node-exporter"
  38992. msgstr ""
  38993. #. type: subsubheading
  38994. #: guix-git/doc/guix.texi:26134
  38995. #, no-wrap
  38996. msgid "Prometheus Node Exporter Service"
  38997. msgstr ""
  38998. #. type: Plain text
  38999. #: guix-git/doc/guix.texi:26141
  39000. 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."
  39001. msgstr ""
  39002. #. type: defvar
  39003. #: guix-git/doc/guix.texi:26142
  39004. #, no-wrap
  39005. msgid "{Scheme variable} prometheus-node-exporter-service-type"
  39006. msgstr ""
  39007. #. type: defvar
  39008. #: guix-git/doc/guix.texi:26146
  39009. 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}."
  39010. msgstr ""
  39011. #. type: lisp
  39012. #: guix-git/doc/guix.texi:26149
  39013. #, no-wrap
  39014. msgid "(service prometheus-node-exporter-service-type)\n"
  39015. msgstr ""
  39016. #. type: deftp
  39017. #: guix-git/doc/guix.texi:26152
  39018. #, no-wrap
  39019. msgid "{Data Type} prometheus-node-exporter-configuration"
  39020. msgstr ""
  39021. #. type: deftp
  39022. #: guix-git/doc/guix.texi:26154
  39023. msgid "Data type representing the configuration of @command{node_exporter}."
  39024. msgstr ""
  39025. #. type: item
  39026. #: guix-git/doc/guix.texi:26156
  39027. #, no-wrap
  39028. msgid "@code{package} (default: @code{go-github-com-prometheus-node-exporter})"
  39029. msgstr ""
  39030. #. type: table
  39031. #: guix-git/doc/guix.texi:26158
  39032. msgid "The prometheus-node-exporter package to use."
  39033. msgstr ""
  39034. #. type: item
  39035. #: guix-git/doc/guix.texi:26159
  39036. #, no-wrap
  39037. msgid "@code{web-listen-address} (default: @code{\":9100\"})"
  39038. msgstr ""
  39039. #. type: item
  39040. #: guix-git/doc/guix.texi:26162
  39041. #, fuzzy, no-wrap
  39042. msgid "@code{textfile-directory} (default: @code{\"/var/lib/prometheus/node-exporter\"})"
  39043. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  39044. #. type: table
  39045. #: guix-git/doc/guix.texi:26166
  39046. 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."
  39047. msgstr ""
  39048. #. type: table
  39049. #: guix-git/doc/guix.texi:26169
  39050. msgid "Extra options to pass to the Prometheus node exporter."
  39051. msgstr ""
  39052. #. type: subsubheading
  39053. #: guix-git/doc/guix.texi:26173
  39054. #, no-wrap
  39055. msgid "Zabbix server"
  39056. msgstr ""
  39057. #. type: cindex
  39058. #: guix-git/doc/guix.texi:26174
  39059. #, no-wrap
  39060. msgid "zabbix zabbix-server"
  39061. msgstr ""
  39062. #. type: Plain text
  39063. #: guix-git/doc/guix.texi:26179
  39064. msgid "Zabbix is a high performance monitoring system that can collect data from a variety of sources and provide the results in a web-based interface. Alerting and reporting is built-in, as well as @dfn{templates} for common operating system metrics such as network utilization, CPU load, and disk space consumption."
  39065. msgstr ""
  39066. #. type: Plain text
  39067. #: guix-git/doc/guix.texi:26186
  39068. msgid "This service provides the central Zabbix monitoring service; you also need @ref{zabbix-front-end,@code{zabbix-front-end-service-type}} to configure Zabbix and display results, and optionally @ref{zabbix-agent, @code{zabbix-agent-service-type}} on machines that should be monitored (other data sources are supported, such as @ref{prometheus-node-exporter, Prometheus Node Exporter})."
  39069. msgstr ""
  39070. #. type: defvar
  39071. #: guix-git/doc/guix.texi:26187
  39072. #, no-wrap
  39073. msgid "{Scheme variable} zabbix-server-service-type"
  39074. msgstr ""
  39075. #. type: defvar
  39076. #: guix-git/doc/guix.texi:26190
  39077. msgid "This is the service type for the Zabbix server service. Its value must be a @code{zabbix-server-configuration} record, shown below."
  39078. msgstr ""
  39079. #. type: deftp
  39080. #: guix-git/doc/guix.texi:26194
  39081. #, fuzzy, no-wrap
  39082. msgid "{Data Type} zabbix-server-configuration"
  39083. msgstr "{数据类型} build-machine"
  39084. #. type: deftp
  39085. #: guix-git/doc/guix.texi:26196
  39086. msgid "Available @code{zabbix-server-configuration} fields are:"
  39087. msgstr ""
  39088. #. type: item
  39089. #: guix-git/doc/guix.texi:26198 guix-git/doc/guix.texi:26361
  39090. #, fuzzy, no-wrap
  39091. msgid "@code{zabbix-server} (default: @code{zabbix-server}) (type: file-like)"
  39092. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  39093. #. type: table
  39094. #: guix-git/doc/guix.texi:26200
  39095. msgid "The zabbix-server package."
  39096. msgstr ""
  39097. #. type: item
  39098. #: guix-git/doc/guix.texi:26201 guix-git/doc/guix.texi:26287
  39099. #, fuzzy, no-wrap
  39100. msgid "@code{user} (default: @code{\"zabbix\"}) (type: string)"
  39101. msgstr "@code{xfce}(默认值:@code{xfce})"
  39102. #. type: table
  39103. #: guix-git/doc/guix.texi:26203
  39104. msgid "User who will run the Zabbix server."
  39105. msgstr ""
  39106. #. type: item
  39107. #: guix-git/doc/guix.texi:26204 guix-git/doc/guix.texi:26290
  39108. #, fuzzy, no-wrap
  39109. msgid "@code{group} (default: @code{\"zabbix\"}) (type: group)"
  39110. msgstr "@code{xfce}(默认值:@code{xfce})"
  39111. #. type: table
  39112. #: guix-git/doc/guix.texi:26206
  39113. msgid "Group who will run the Zabbix server."
  39114. msgstr ""
  39115. #. type: item
  39116. #: guix-git/doc/guix.texi:26207
  39117. #, fuzzy, no-wrap
  39118. msgid "@code{db-host} (default: @code{\"127.0.0.1\"}) (type: string)"
  39119. msgstr "@code{xfce}(默认值:@code{xfce})"
  39120. #. type: table
  39121. #: guix-git/doc/guix.texi:26209 guix-git/doc/guix.texi:26371
  39122. msgid "Database host name."
  39123. msgstr ""
  39124. #. type: item
  39125. #: guix-git/doc/guix.texi:26210 guix-git/doc/guix.texi:26375
  39126. #, fuzzy, no-wrap
  39127. msgid "@code{db-name} (default: @code{\"zabbix\"}) (type: string)"
  39128. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  39129. #. type: table
  39130. #: guix-git/doc/guix.texi:26212 guix-git/doc/guix.texi:26377
  39131. msgid "Database name."
  39132. msgstr ""
  39133. #. type: item
  39134. #: guix-git/doc/guix.texi:26213 guix-git/doc/guix.texi:26378
  39135. #, fuzzy, no-wrap
  39136. msgid "@code{db-user} (default: @code{\"zabbix\"}) (type: string)"
  39137. msgstr "@code{xfce}(默认值:@code{xfce})"
  39138. #. type: table
  39139. #: guix-git/doc/guix.texi:26215 guix-git/doc/guix.texi:26380
  39140. msgid "Database user."
  39141. msgstr ""
  39142. #. type: item
  39143. #: guix-git/doc/guix.texi:26216 guix-git/doc/guix.texi:26381
  39144. #, fuzzy, no-wrap
  39145. msgid "@code{db-password} (default: @code{\"\"}) (type: string)"
  39146. msgstr "@code{port}(默认值:@code{22})"
  39147. #. type: table
  39148. #: guix-git/doc/guix.texi:26219
  39149. msgid "Database password. Please, use @code{include-files} with @code{DBPassword=SECRET} inside a specified file instead."
  39150. msgstr ""
  39151. #. type: item
  39152. #: guix-git/doc/guix.texi:26220 guix-git/doc/guix.texi:26372
  39153. #, fuzzy, no-wrap
  39154. msgid "@code{db-port} (default: @code{5432}) (type: number)"
  39155. msgstr "@code{port}(默认值:@code{22})"
  39156. #. type: table
  39157. #: guix-git/doc/guix.texi:26222 guix-git/doc/guix.texi:26374
  39158. msgid "Database port."
  39159. msgstr ""
  39160. #. type: item
  39161. #: guix-git/doc/guix.texi:26223 guix-git/doc/guix.texi:26297
  39162. #, fuzzy, no-wrap
  39163. msgid "@code{log-type} (default: @code{\"\"}) (type: string)"
  39164. msgstr "@code{port}(默认值:@code{22})"
  39165. #. type: table
  39166. #: guix-git/doc/guix.texi:26225 guix-git/doc/guix.texi:26299
  39167. msgid "Specifies where log messages are written to:"
  39168. msgstr ""
  39169. #. type: itemize
  39170. #: guix-git/doc/guix.texi:26228 guix-git/doc/guix.texi:26303
  39171. #, no-wrap
  39172. msgid "@code{system} - syslog."
  39173. msgstr ""
  39174. #. type: item
  39175. #: guix-git/doc/guix.texi:26230
  39176. #, no-wrap
  39177. msgid "@code{file} - file specified with @code{log-file} parameter."
  39178. msgstr ""
  39179. #. type: item
  39180. #: guix-git/doc/guix.texi:26232 guix-git/doc/guix.texi:26307
  39181. #, no-wrap
  39182. msgid "@code{console} - standard output."
  39183. msgstr ""
  39184. #. type: item
  39185. #: guix-git/doc/guix.texi:26236
  39186. #, fuzzy, no-wrap
  39187. msgid "@code{log-file} (default: @code{\"/var/log/zabbix/server.log\"}) (type: string)"
  39188. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  39189. #. type: table
  39190. #: guix-git/doc/guix.texi:26238 guix-git/doc/guix.texi:26313
  39191. msgid "Log file name for @code{log-type} @code{file} parameter."
  39192. msgstr ""
  39193. #. type: item
  39194. #: guix-git/doc/guix.texi:26239
  39195. #, fuzzy, no-wrap
  39196. msgid "@code{pid-file} (default: @code{\"/var/run/zabbix/zabbix_server.pid\"}) (type: string)"
  39197. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  39198. #. type: table
  39199. #: guix-git/doc/guix.texi:26241 guix-git/doc/guix.texi:26316
  39200. msgid "Name of PID file."
  39201. msgstr ""
  39202. #. type: item
  39203. #: guix-git/doc/guix.texi:26242
  39204. #, fuzzy, no-wrap
  39205. msgid "@code{ssl-ca-location} (default: @code{\"/etc/ssl/certs/ca-certificates.crt\"}) (type: string)"
  39206. msgstr "@code{xfce}(默认值:@code{xfce})"
  39207. #. type: table
  39208. #: guix-git/doc/guix.texi:26245
  39209. msgid "The location of certificate authority (CA) files for SSL server certificate verification."
  39210. msgstr ""
  39211. #. type: item
  39212. #: guix-git/doc/guix.texi:26246
  39213. #, fuzzy, no-wrap
  39214. msgid "@code{ssl-cert-location} (default: @code{\"/etc/ssl/certs\"}) (type: string)"
  39215. msgstr "@code{xfce}(默认值:@code{xfce})"
  39216. #. type: table
  39217. #: guix-git/doc/guix.texi:26248
  39218. msgid "Location of SSL client certificates."
  39219. msgstr ""
  39220. #. type: item
  39221. #: guix-git/doc/guix.texi:26249 guix-git/doc/guix.texi:26327
  39222. #, fuzzy, no-wrap
  39223. msgid "@code{extra-options} (default: @code{\"\"}) (type: extra-options)"
  39224. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  39225. #. type: table
  39226. #: guix-git/doc/guix.texi:26251 guix-git/doc/guix.texi:26329
  39227. msgid "Extra options will be appended to Zabbix server configuration file."
  39228. msgstr ""
  39229. #. type: item
  39230. #: guix-git/doc/guix.texi:26252 guix-git/doc/guix.texi:26330
  39231. #, fuzzy, no-wrap
  39232. msgid "@code{include-files} (default: @code{()}) (type: include-files)"
  39233. msgstr "@code{features} (@code{'()})"
  39234. #. type: table
  39235. #: guix-git/doc/guix.texi:26255 guix-git/doc/guix.texi:26333
  39236. msgid "You may include individual files or all files in a directory in the configuration file."
  39237. msgstr ""
  39238. #. type: anchor{#1}
  39239. #: guix-git/doc/guix.texi:26264
  39240. msgid "zabbix-agent"
  39241. msgstr ""
  39242. #. type: subsubheading
  39243. #: guix-git/doc/guix.texi:26264
  39244. #, no-wrap
  39245. msgid "Zabbix agent"
  39246. msgstr ""
  39247. #. type: cindex
  39248. #: guix-git/doc/guix.texi:26265
  39249. #, no-wrap
  39250. msgid "zabbix zabbix-agent"
  39251. msgstr ""
  39252. #. type: Plain text
  39253. #: guix-git/doc/guix.texi:26272
  39254. msgid "The Zabbix agent gathers information about the running system for the Zabbix monitoring server. It has a variety of built-in checks, and can be extended with custom @uref{https://www.zabbix.com/documentation/current/en/manual/config/items/userparameters, @dfn{user parameters}}."
  39255. msgstr ""
  39256. #. type: defvar
  39257. #: guix-git/doc/guix.texi:26273
  39258. #, no-wrap
  39259. msgid "{Scheme variable} zabbix-agent-service-type"
  39260. msgstr ""
  39261. #. type: defvar
  39262. #: guix-git/doc/guix.texi:26276
  39263. msgid "This is the service type for the Zabbix agent service. Its value must be a @code{zabbix-agent-configuration} record, shown below."
  39264. msgstr ""
  39265. #. type: deftp
  39266. #: guix-git/doc/guix.texi:26280
  39267. #, fuzzy, no-wrap
  39268. msgid "{Data Type} zabbix-agent-configuration"
  39269. msgstr "{数据类型} build-machine"
  39270. #. type: deftp
  39271. #: guix-git/doc/guix.texi:26282
  39272. msgid "Available @code{zabbix-agent-configuration} fields are:"
  39273. msgstr ""
  39274. #. type: item
  39275. #: guix-git/doc/guix.texi:26284
  39276. #, fuzzy, no-wrap
  39277. msgid "@code{zabbix-agent} (default: @code{zabbix-agentd}) (type: file-like)"
  39278. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  39279. #. type: table
  39280. #: guix-git/doc/guix.texi:26286
  39281. msgid "The zabbix-agent package."
  39282. msgstr ""
  39283. #. type: table
  39284. #: guix-git/doc/guix.texi:26289
  39285. msgid "User who will run the Zabbix agent."
  39286. msgstr ""
  39287. #. type: table
  39288. #: guix-git/doc/guix.texi:26292
  39289. msgid "Group who will run the Zabbix agent."
  39290. msgstr ""
  39291. #. type: item
  39292. #: guix-git/doc/guix.texi:26293
  39293. #, fuzzy, no-wrap
  39294. msgid "@code{hostname} (default: @code{\"\"}) (type: string)"
  39295. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  39296. #. type: table
  39297. #: guix-git/doc/guix.texi:26296
  39298. msgid "Unique, case sensitive hostname which is required for active checks and must match hostname as configured on the server."
  39299. msgstr ""
  39300. #. type: item
  39301. #: guix-git/doc/guix.texi:26304
  39302. #, no-wrap
  39303. msgid "@code{file} - file specified with"
  39304. msgstr ""
  39305. #. type: itemize
  39306. #: guix-git/doc/guix.texi:26306
  39307. msgid "@code{log-file} parameter."
  39308. msgstr ""
  39309. #. type: item
  39310. #: guix-git/doc/guix.texi:26311
  39311. #, fuzzy, no-wrap
  39312. msgid "@code{log-file} (default: @code{\"/var/log/zabbix/agent.log\"}) (type: string)"
  39313. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  39314. #. type: item
  39315. #: guix-git/doc/guix.texi:26314
  39316. #, fuzzy, no-wrap
  39317. msgid "@code{pid-file} (default: @code{\"/var/run/zabbix/zabbix_agent.pid\"}) (type: string)"
  39318. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  39319. #. type: item
  39320. #: guix-git/doc/guix.texi:26317
  39321. #, fuzzy, no-wrap
  39322. msgid "@code{server} (default: @code{(\"127.0.0.1\")}) (type: list)"
  39323. msgstr "@code{features} (@code{'()})"
  39324. #. type: table
  39325. #: guix-git/doc/guix.texi:26321
  39326. 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."
  39327. msgstr ""
  39328. #. type: item
  39329. #: guix-git/doc/guix.texi:26322
  39330. #, fuzzy, no-wrap
  39331. msgid "@code{server-active} (default: @code{(\"127.0.0.1\")}) (type: list)"
  39332. msgstr "@code{features} (@code{'()})"
  39333. #. type: table
  39334. #: guix-git/doc/guix.texi:26326
  39335. 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."
  39336. msgstr ""
  39337. #. type: anchor{#1}
  39338. #: guix-git/doc/guix.texi:26342
  39339. msgid "zabbix-front-end"
  39340. msgstr ""
  39341. #. type: subsubheading
  39342. #: guix-git/doc/guix.texi:26342
  39343. #, no-wrap
  39344. msgid "Zabbix front-end"
  39345. msgstr ""
  39346. #. type: cindex
  39347. #: guix-git/doc/guix.texi:26343
  39348. #, no-wrap
  39349. msgid "zabbix zabbix-front-end"
  39350. msgstr ""
  39351. #. type: Plain text
  39352. #: guix-git/doc/guix.texi:26349
  39353. msgid "The Zabbix front-end provides a web interface to Zabbix. It does not need to run on the same machine as the Zabbix server. This service works by extending the @ref{PHP-FPM} and @ref{NGINX} services with the configuration necessary for loading the Zabbix user interface."
  39354. msgstr ""
  39355. #. type: defvar
  39356. #: guix-git/doc/guix.texi:26350
  39357. #, no-wrap
  39358. msgid "{Scheme variable} zabbix-front-end-service-type"
  39359. msgstr ""
  39360. #. type: defvar
  39361. #: guix-git/doc/guix.texi:26353
  39362. msgid "This is the service type for the Zabbix web frontend. Its value must be a @code{zabbix-front-end-configuration} record, shown below."
  39363. msgstr ""
  39364. #. type: deftp
  39365. #: guix-git/doc/guix.texi:26357
  39366. #, fuzzy, no-wrap
  39367. msgid "{Data Type} zabbix-front-end-configuration"
  39368. msgstr "{数据类型} build-machine"
  39369. #. type: deftp
  39370. #: guix-git/doc/guix.texi:26359
  39371. msgid "Available @code{zabbix-front-end-configuration} fields are:"
  39372. msgstr ""
  39373. #. type: table
  39374. #: guix-git/doc/guix.texi:26363
  39375. #, fuzzy
  39376. msgid "The Zabbix server package to use."
  39377. msgstr "软件包数据类型。"
  39378. #. type: item
  39379. #: guix-git/doc/guix.texi:26364
  39380. #, fuzzy, no-wrap
  39381. msgid "@code{nginx} (default: @code{()}) (type: list)"
  39382. msgstr "@code{features} (@code{'()})"
  39383. #. type: table
  39384. #: guix-git/doc/guix.texi:26368
  39385. msgid "List of @ref{nginx-server-configuration,@code{nginx-server-configuration}} blocks for the Zabbix front-end. When empty, a default that listens on port 80 is used."
  39386. msgstr ""
  39387. #. type: item
  39388. #: guix-git/doc/guix.texi:26369
  39389. #, fuzzy, no-wrap
  39390. msgid "@code{db-host} (default: @code{\"localhost\"}) (type: string)"
  39391. msgstr "@code{xfce}(默认值:@code{xfce})"
  39392. #. type: table
  39393. #: guix-git/doc/guix.texi:26383
  39394. msgid "Database password. Please, use @code{db-secret-file} instead."
  39395. msgstr ""
  39396. #. type: item
  39397. #: guix-git/doc/guix.texi:26384
  39398. #, fuzzy, no-wrap
  39399. msgid "@code{db-secret-file} (default: @code{\"\"}) (type: string)"
  39400. msgstr "@code{xfce}(默认值:@code{xfce})"
  39401. #. type: table
  39402. #: guix-git/doc/guix.texi:26388
  39403. msgid "Secret file which will be appended to @file{zabbix.conf.php} file. This file contains credentials for use by Zabbix front-end. You are expected to create it manually."
  39404. msgstr ""
  39405. #. type: item
  39406. #: guix-git/doc/guix.texi:26389
  39407. #, fuzzy, no-wrap
  39408. msgid "@code{zabbix-host} (default: @code{\"localhost\"}) (type: string)"
  39409. msgstr "@code{features} (@code{'()})"
  39410. #. type: table
  39411. #: guix-git/doc/guix.texi:26391
  39412. msgid "Zabbix server hostname."
  39413. msgstr ""
  39414. #. type: item
  39415. #: guix-git/doc/guix.texi:26392
  39416. #, fuzzy, no-wrap
  39417. msgid "@code{zabbix-port} (default: @code{10051}) (type: number)"
  39418. msgstr "@code{challenge}(默认值:@code{#f})"
  39419. #. type: table
  39420. #: guix-git/doc/guix.texi:26394
  39421. msgid "Zabbix server port."
  39422. msgstr ""
  39423. #. type: cindex
  39424. #: guix-git/doc/guix.texi:26404
  39425. #, no-wrap
  39426. msgid "Kerberos"
  39427. msgstr ""
  39428. #. type: Plain text
  39429. #: guix-git/doc/guix.texi:26408
  39430. msgid "The @code{(gnu services kerberos)} module provides services relating to the authentication protocol @dfn{Kerberos}."
  39431. msgstr ""
  39432. #. type: subsubheading
  39433. #: guix-git/doc/guix.texi:26409
  39434. #, no-wrap
  39435. msgid "Krb5 Service"
  39436. msgstr ""
  39437. #. type: Plain text
  39438. #: guix-git/doc/guix.texi:26416
  39439. 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."
  39440. msgstr ""
  39441. #. type: Plain text
  39442. #: guix-git/doc/guix.texi:26420
  39443. 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."
  39444. msgstr ""
  39445. #. type: defvr
  39446. #: guix-git/doc/guix.texi:26421
  39447. #, no-wrap
  39448. msgid "{Scheme Variable} krb5-service-type"
  39449. msgstr ""
  39450. #. type: defvr
  39451. #: guix-git/doc/guix.texi:26423
  39452. msgid "A service type for Kerberos 5 clients."
  39453. msgstr ""
  39454. #. type: Plain text
  39455. #: guix-git/doc/guix.texi:26427
  39456. msgid "Here is an example of its use:"
  39457. msgstr ""
  39458. #. type: lisp
  39459. #: guix-git/doc/guix.texi:26441
  39460. #, no-wrap
  39461. msgid ""
  39462. "(service krb5-service-type\n"
  39463. " (krb5-configuration\n"
  39464. " (default-realm \"EXAMPLE.COM\")\n"
  39465. " (allow-weak-crypto? #t)\n"
  39466. " (realms (list\n"
  39467. " (krb5-realm\n"
  39468. " (name \"EXAMPLE.COM\")\n"
  39469. " (admin-server \"groucho.example.com\")\n"
  39470. " (kdc \"karl.example.com\"))\n"
  39471. " (krb5-realm\n"
  39472. " (name \"ARGRX.EDU\")\n"
  39473. " (admin-server \"kerb-admin.argrx.edu\")\n"
  39474. " (kdc \"keys.argrx.edu\"))))))\n"
  39475. msgstr ""
  39476. #. type: Plain text
  39477. #: guix-git/doc/guix.texi:26445
  39478. msgid "This example provides a Kerberos@tie{}5 client configuration which:"
  39479. msgstr ""
  39480. #. type: item
  39481. #: guix-git/doc/guix.texi:26446
  39482. #, no-wrap
  39483. msgid "Recognizes two realms, @i{viz:} ``EXAMPLE.COM'' and ``ARGRX.EDU'', both"
  39484. msgstr ""
  39485. #. type: itemize
  39486. #: guix-git/doc/guix.texi:26448
  39487. msgid "of which have distinct administration servers and key distribution centers;"
  39488. msgstr ""
  39489. #. type: item
  39490. #: guix-git/doc/guix.texi:26448
  39491. #, no-wrap
  39492. msgid "Will default to the realm ``EXAMPLE.COM'' if the realm is not explicitly"
  39493. msgstr ""
  39494. #. type: itemize
  39495. #: guix-git/doc/guix.texi:26450
  39496. msgid "specified by clients;"
  39497. msgstr ""
  39498. #. type: item
  39499. #: guix-git/doc/guix.texi:26450
  39500. #, no-wrap
  39501. msgid "Accepts services which only support encryption types known to be weak."
  39502. msgstr ""
  39503. #. type: Plain text
  39504. #: guix-git/doc/guix.texi:26458
  39505. 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."
  39506. msgstr ""
  39507. #. type: deftp
  39508. #: guix-git/doc/guix.texi:26460
  39509. #, no-wrap
  39510. msgid "{Data Type} krb5-realm"
  39511. msgstr ""
  39512. #. type: cindex
  39513. #: guix-git/doc/guix.texi:26461
  39514. #, no-wrap
  39515. msgid "realm, kerberos"
  39516. msgstr ""
  39517. #. type: table
  39518. #: guix-git/doc/guix.texi:26467
  39519. 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."
  39520. msgstr ""
  39521. #. type: code{#1}
  39522. #: guix-git/doc/guix.texi:26468
  39523. #, no-wrap
  39524. msgid "admin-server"
  39525. msgstr ""
  39526. #. type: table
  39527. #: guix-git/doc/guix.texi:26471
  39528. msgid "This field is a string identifying the host where the administration server is running."
  39529. msgstr ""
  39530. #. type: code{#1}
  39531. #: guix-git/doc/guix.texi:26472
  39532. #, no-wrap
  39533. msgid "kdc"
  39534. msgstr ""
  39535. #. type: table
  39536. #: guix-git/doc/guix.texi:26475
  39537. msgid "This field is a string identifying the key distribution center for the realm."
  39538. msgstr ""
  39539. #. type: deftp
  39540. #: guix-git/doc/guix.texi:26478
  39541. #, no-wrap
  39542. msgid "{Data Type} krb5-configuration"
  39543. msgstr ""
  39544. #. type: item
  39545. #: guix-git/doc/guix.texi:26481
  39546. #, no-wrap
  39547. msgid "@code{allow-weak-crypto?} (default: @code{#f})"
  39548. msgstr ""
  39549. #. type: table
  39550. #: guix-git/doc/guix.texi:26484
  39551. msgid "If this flag is @code{#t} then services which only offer encryption algorithms known to be weak will be accepted."
  39552. msgstr ""
  39553. #. type: item
  39554. #: guix-git/doc/guix.texi:26485
  39555. #, no-wrap
  39556. msgid "@code{default-realm} (default: @code{#f})"
  39557. msgstr ""
  39558. #. type: table
  39559. #: guix-git/doc/guix.texi:26492
  39560. 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}."
  39561. msgstr ""
  39562. #. type: code{#1}
  39563. #: guix-git/doc/guix.texi:26493
  39564. #, no-wrap
  39565. msgid "realms"
  39566. msgstr ""
  39567. #. type: table
  39568. #: guix-git/doc/guix.texi:26498
  39569. 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."
  39570. msgstr ""
  39571. #. type: subsubheading
  39572. #: guix-git/doc/guix.texi:26502
  39573. #, no-wrap
  39574. msgid "PAM krb5 Service"
  39575. msgstr ""
  39576. #. type: cindex
  39577. #: guix-git/doc/guix.texi:26503
  39578. #, no-wrap
  39579. msgid "pam-krb5"
  39580. msgstr ""
  39581. #. type: Plain text
  39582. #: guix-git/doc/guix.texi:26509
  39583. 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."
  39584. msgstr ""
  39585. #. type: defvr
  39586. #: guix-git/doc/guix.texi:26510
  39587. #, no-wrap
  39588. msgid "{Scheme Variable} pam-krb5-service-type"
  39589. msgstr ""
  39590. #. type: defvr
  39591. #: guix-git/doc/guix.texi:26512
  39592. msgid "A service type for the Kerberos 5 PAM module."
  39593. msgstr ""
  39594. #. type: deftp
  39595. #: guix-git/doc/guix.texi:26514
  39596. #, no-wrap
  39597. msgid "{Data Type} pam-krb5-configuration"
  39598. msgstr ""
  39599. #. type: deftp
  39600. #: guix-git/doc/guix.texi:26517
  39601. msgid "Data type representing the configuration of the Kerberos 5 PAM module. This type has the following parameters:"
  39602. msgstr ""
  39603. #. type: item
  39604. #: guix-git/doc/guix.texi:26518
  39605. #, no-wrap
  39606. msgid "@code{pam-krb5} (default: @code{pam-krb5})"
  39607. msgstr ""
  39608. #. type: table
  39609. #: guix-git/doc/guix.texi:26520
  39610. msgid "The pam-krb5 package to use."
  39611. msgstr ""
  39612. #. type: item
  39613. #: guix-git/doc/guix.texi:26521
  39614. #, no-wrap
  39615. msgid "@code{minimum-uid} (default: @code{1000})"
  39616. msgstr ""
  39617. #. type: table
  39618. #: guix-git/doc/guix.texi:26524
  39619. msgid "The smallest user ID for which Kerberos authentications should be attempted. Local accounts with lower values will silently fail to authenticate."
  39620. msgstr ""
  39621. #. type: cindex
  39622. #: guix-git/doc/guix.texi:26530
  39623. #, no-wrap
  39624. msgid "LDAP"
  39625. msgstr ""
  39626. #. type: cindex
  39627. #: guix-git/doc/guix.texi:26531
  39628. #, no-wrap
  39629. msgid "nslcd, LDAP service"
  39630. msgstr ""
  39631. #. type: Plain text
  39632. #: guix-git/doc/guix.texi:26538
  39633. 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."
  39634. msgstr ""
  39635. #. type: Plain text
  39636. #: guix-git/doc/guix.texi:26542
  39637. 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:"
  39638. msgstr ""
  39639. #. type: lisp
  39640. #: guix-git/doc/guix.texi:26565
  39641. #, no-wrap
  39642. msgid ""
  39643. "(use-service-modules authentication)\n"
  39644. "(use-modules (gnu system nss))\n"
  39645. "...\n"
  39646. "(operating-system\n"
  39647. " ...\n"
  39648. " (services\n"
  39649. " (cons*\n"
  39650. " (service nslcd-service-type)\n"
  39651. " (service dhcp-client-service-type)\n"
  39652. " %base-services))\n"
  39653. " (name-service-switch\n"
  39654. " (let ((services (list (name-service (name \"db\"))\n"
  39655. " (name-service (name \"files\"))\n"
  39656. " (name-service (name \"ldap\")))))\n"
  39657. " (name-service-switch\n"
  39658. " (inherit %mdns-host-lookup-nss)\n"
  39659. " (password services)\n"
  39660. " (shadow services)\n"
  39661. " (group services)\n"
  39662. " (netgroup services)\n"
  39663. " (gshadow services)))))\n"
  39664. msgstr ""
  39665. #. type: Plain text
  39666. #: guix-git/doc/guix.texi:26570
  39667. msgid "Available @code{nslcd-configuration} fields are:"
  39668. msgstr ""
  39669. #. type: deftypevr
  39670. #: guix-git/doc/guix.texi:26571
  39671. #, no-wrap
  39672. msgid "{@code{nslcd-configuration} parameter} package nss-pam-ldapd"
  39673. msgstr ""
  39674. #. type: deftypevr
  39675. #: guix-git/doc/guix.texi:26573
  39676. msgid "The @code{nss-pam-ldapd} package to use."
  39677. msgstr ""
  39678. #. type: deftypevr
  39679. #: guix-git/doc/guix.texi:26576
  39680. #, no-wrap
  39681. msgid "{@code{nslcd-configuration} parameter} maybe-number threads"
  39682. msgstr ""
  39683. #. type: deftypevr
  39684. #: guix-git/doc/guix.texi:26580
  39685. 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."
  39686. msgstr ""
  39687. #. type: deftypevr
  39688. #: guix-git/doc/guix.texi:26585
  39689. #, no-wrap
  39690. msgid "{@code{nslcd-configuration} parameter} string uid"
  39691. msgstr ""
  39692. #. type: deftypevr
  39693. #: guix-git/doc/guix.texi:26587
  39694. msgid "This specifies the user id with which the daemon should be run."
  39695. msgstr ""
  39696. #. type: deftypevr
  39697. #: guix-git/doc/guix.texi:26589 guix-git/doc/guix.texi:26596
  39698. msgid "Defaults to @samp{\"nslcd\"}."
  39699. msgstr ""
  39700. #. type: deftypevr
  39701. #: guix-git/doc/guix.texi:26592
  39702. #, no-wrap
  39703. msgid "{@code{nslcd-configuration} parameter} string gid"
  39704. msgstr ""
  39705. #. type: deftypevr
  39706. #: guix-git/doc/guix.texi:26594
  39707. msgid "This specifies the group id with which the daemon should be run."
  39708. msgstr ""
  39709. #. type: deftypevr
  39710. #: guix-git/doc/guix.texi:26599
  39711. #, no-wrap
  39712. msgid "{@code{nslcd-configuration} parameter} log-option log"
  39713. msgstr ""
  39714. #. type: deftypevr
  39715. #: guix-git/doc/guix.texi:26607
  39716. 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."
  39717. msgstr ""
  39718. #. type: deftypevr
  39719. #: guix-git/doc/guix.texi:26609
  39720. msgid "Defaults to @samp{(\"/var/log/nslcd\" info)}."
  39721. msgstr ""
  39722. #. type: deftypevr
  39723. #: guix-git/doc/guix.texi:26612
  39724. #, no-wrap
  39725. msgid "{@code{nslcd-configuration} parameter} list uri"
  39726. msgstr ""
  39727. #. type: deftypevr
  39728. #: guix-git/doc/guix.texi:26615
  39729. msgid "The list of LDAP server URIs. Normally, only the first server will be used with the following servers as fall-back."
  39730. msgstr ""
  39731. #. type: deftypevr
  39732. #: guix-git/doc/guix.texi:26617
  39733. msgid "Defaults to @samp{(\"ldap://localhost:389/\")}."
  39734. msgstr ""
  39735. #. type: deftypevr
  39736. #: guix-git/doc/guix.texi:26620
  39737. #, no-wrap
  39738. msgid "{@code{nslcd-configuration} parameter} maybe-string ldap-version"
  39739. msgstr ""
  39740. #. type: deftypevr
  39741. #: guix-git/doc/guix.texi:26623
  39742. msgid "The version of the LDAP protocol to use. The default is to use the maximum version supported by the LDAP library."
  39743. msgstr ""
  39744. #. type: deftypevr
  39745. #: guix-git/doc/guix.texi:26628
  39746. #, no-wrap
  39747. msgid "{@code{nslcd-configuration} parameter} maybe-string binddn"
  39748. msgstr ""
  39749. #. type: deftypevr
  39750. #: guix-git/doc/guix.texi:26631
  39751. msgid "Specifies the distinguished name with which to bind to the directory server for lookups. The default is to bind anonymously."
  39752. msgstr ""
  39753. #. type: deftypevr
  39754. #: guix-git/doc/guix.texi:26636
  39755. #, no-wrap
  39756. msgid "{@code{nslcd-configuration} parameter} maybe-string bindpw"
  39757. msgstr ""
  39758. #. type: deftypevr
  39759. #: guix-git/doc/guix.texi:26639
  39760. msgid "Specifies the credentials with which to bind. This option is only applicable when used with binddn."
  39761. msgstr ""
  39762. #. type: deftypevr
  39763. #: guix-git/doc/guix.texi:26644
  39764. #, no-wrap
  39765. msgid "{@code{nslcd-configuration} parameter} maybe-string rootpwmoddn"
  39766. msgstr ""
  39767. #. type: deftypevr
  39768. #: guix-git/doc/guix.texi:26647
  39769. msgid "Specifies the distinguished name to use when the root user tries to modify a user's password using the PAM module."
  39770. msgstr ""
  39771. #. type: deftypevr
  39772. #: guix-git/doc/guix.texi:26652
  39773. #, no-wrap
  39774. msgid "{@code{nslcd-configuration} parameter} maybe-string rootpwmodpw"
  39775. msgstr ""
  39776. #. type: deftypevr
  39777. #: guix-git/doc/guix.texi:26656
  39778. 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"
  39779. msgstr ""
  39780. #. type: deftypevr
  39781. #: guix-git/doc/guix.texi:26661
  39782. #, no-wrap
  39783. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-mech"
  39784. msgstr ""
  39785. #. type: deftypevr
  39786. #: guix-git/doc/guix.texi:26664
  39787. msgid "Specifies the SASL mechanism to be used when performing SASL authentication."
  39788. msgstr ""
  39789. #. type: deftypevr
  39790. #: guix-git/doc/guix.texi:26669
  39791. #, no-wrap
  39792. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-realm"
  39793. msgstr ""
  39794. #. type: deftypevr
  39795. #: guix-git/doc/guix.texi:26671
  39796. msgid "Specifies the SASL realm to be used when performing SASL authentication."
  39797. msgstr ""
  39798. #. type: deftypevr
  39799. #: guix-git/doc/guix.texi:26676
  39800. #, no-wrap
  39801. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-authcid"
  39802. msgstr ""
  39803. #. type: deftypevr
  39804. #: guix-git/doc/guix.texi:26679
  39805. msgid "Specifies the authentication identity to be used when performing SASL authentication."
  39806. msgstr ""
  39807. #. type: deftypevr
  39808. #: guix-git/doc/guix.texi:26684
  39809. #, no-wrap
  39810. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-authzid"
  39811. msgstr ""
  39812. #. type: deftypevr
  39813. #: guix-git/doc/guix.texi:26687
  39814. msgid "Specifies the authorization identity to be used when performing SASL authentication."
  39815. msgstr ""
  39816. #. type: deftypevr
  39817. #: guix-git/doc/guix.texi:26692
  39818. #, no-wrap
  39819. msgid "{@code{nslcd-configuration} parameter} maybe-boolean sasl-canonicalize?"
  39820. msgstr ""
  39821. #. type: deftypevr
  39822. #: guix-git/doc/guix.texi:26697
  39823. 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."
  39824. msgstr ""
  39825. #. type: deftypevr
  39826. #: guix-git/doc/guix.texi:26702
  39827. #, no-wrap
  39828. msgid "{@code{nslcd-configuration} parameter} maybe-string krb5-ccname"
  39829. msgstr ""
  39830. #. type: deftypevr
  39831. #: guix-git/doc/guix.texi:26704
  39832. msgid "Set the name for the GSS-API Kerberos credentials cache."
  39833. msgstr ""
  39834. #. type: deftypevr
  39835. #: guix-git/doc/guix.texi:26709
  39836. #, no-wrap
  39837. msgid "{@code{nslcd-configuration} parameter} string base"
  39838. msgstr ""
  39839. #. type: deftypevr
  39840. #: guix-git/doc/guix.texi:26711
  39841. msgid "The directory search base."
  39842. msgstr ""
  39843. #. type: deftypevr
  39844. #: guix-git/doc/guix.texi:26713
  39845. msgid "Defaults to @samp{\"dc=example,dc=com\"}."
  39846. msgstr ""
  39847. #. type: deftypevr
  39848. #: guix-git/doc/guix.texi:26716
  39849. #, no-wrap
  39850. msgid "{@code{nslcd-configuration} parameter} scope-option scope"
  39851. msgstr ""
  39852. #. type: deftypevr
  39853. #: guix-git/doc/guix.texi:26720
  39854. 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."
  39855. msgstr ""
  39856. #. type: deftypevr
  39857. #: guix-git/doc/guix.texi:26722
  39858. msgid "Defaults to @samp{(subtree)}."
  39859. msgstr ""
  39860. #. type: deftypevr
  39861. #: guix-git/doc/guix.texi:26725
  39862. #, no-wrap
  39863. msgid "{@code{nslcd-configuration} parameter} maybe-deref-option deref"
  39864. msgstr ""
  39865. #. type: deftypevr
  39866. #: guix-git/doc/guix.texi:26728
  39867. msgid "Specifies the policy for dereferencing aliases. The default policy is to never dereference aliases."
  39868. msgstr ""
  39869. #. type: deftypevr
  39870. #: guix-git/doc/guix.texi:26733
  39871. #, no-wrap
  39872. msgid "{@code{nslcd-configuration} parameter} maybe-boolean referrals"
  39873. msgstr ""
  39874. #. type: deftypevr
  39875. #: guix-git/doc/guix.texi:26736
  39876. msgid "Specifies whether automatic referral chasing should be enabled. The default behaviour is to chase referrals."
  39877. msgstr ""
  39878. #. type: deftypevr
  39879. #: guix-git/doc/guix.texi:26741
  39880. #, no-wrap
  39881. msgid "{@code{nslcd-configuration} parameter} list-of-map-entries maps"
  39882. msgstr ""
  39883. #. type: deftypevr
  39884. #: guix-git/doc/guix.texi:26746
  39885. 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."
  39886. msgstr ""
  39887. #. type: deftypevr
  39888. #: guix-git/doc/guix.texi:26751
  39889. #, no-wrap
  39890. msgid "{@code{nslcd-configuration} parameter} list-of-filter-entries filters"
  39891. msgstr ""
  39892. #. type: deftypevr
  39893. #: guix-git/doc/guix.texi:26754
  39894. msgid "A list of filters consisting of the name of a map to which the filter applies and an LDAP search filter expression."
  39895. msgstr ""
  39896. #. type: deftypevr
  39897. #: guix-git/doc/guix.texi:26759
  39898. #, no-wrap
  39899. msgid "{@code{nslcd-configuration} parameter} maybe-number bind-timelimit"
  39900. msgstr ""
  39901. #. type: deftypevr
  39902. #: guix-git/doc/guix.texi:26762
  39903. msgid "Specifies the time limit in seconds to use when connecting to the directory server. The default value is 10 seconds."
  39904. msgstr ""
  39905. #. type: deftypevr
  39906. #: guix-git/doc/guix.texi:26767
  39907. #, no-wrap
  39908. msgid "{@code{nslcd-configuration} parameter} maybe-number timelimit"
  39909. msgstr ""
  39910. #. type: deftypevr
  39911. #: guix-git/doc/guix.texi:26771
  39912. 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."
  39913. msgstr ""
  39914. #. type: deftypevr
  39915. #: guix-git/doc/guix.texi:26776
  39916. #, no-wrap
  39917. msgid "{@code{nslcd-configuration} parameter} maybe-number idle-timelimit"
  39918. msgstr ""
  39919. #. type: deftypevr
  39920. #: guix-git/doc/guix.texi:26780
  39921. 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."
  39922. msgstr ""
  39923. #. type: deftypevr
  39924. #: guix-git/doc/guix.texi:26785
  39925. #, no-wrap
  39926. msgid "{@code{nslcd-configuration} parameter} maybe-number reconnect-sleeptime"
  39927. msgstr ""
  39928. #. type: deftypevr
  39929. #: guix-git/doc/guix.texi:26789
  39930. 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."
  39931. msgstr ""
  39932. #. type: deftypevr
  39933. #: guix-git/doc/guix.texi:26794
  39934. #, no-wrap
  39935. msgid "{@code{nslcd-configuration} parameter} maybe-number reconnect-retrytime"
  39936. msgstr ""
  39937. #. type: deftypevr
  39938. #: guix-git/doc/guix.texi:26798
  39939. 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."
  39940. msgstr ""
  39941. #. type: deftypevr
  39942. #: guix-git/doc/guix.texi:26803
  39943. #, no-wrap
  39944. msgid "{@code{nslcd-configuration} parameter} maybe-ssl-option ssl"
  39945. msgstr ""
  39946. #. type: deftypevr
  39947. #: guix-git/doc/guix.texi:26807
  39948. 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."
  39949. msgstr ""
  39950. #. type: deftypevr
  39951. #: guix-git/doc/guix.texi:26812
  39952. #, no-wrap
  39953. msgid "{@code{nslcd-configuration} parameter} maybe-tls-reqcert-option tls-reqcert"
  39954. msgstr ""
  39955. #. type: deftypevr
  39956. #: guix-git/doc/guix.texi:26815
  39957. 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."
  39958. msgstr ""
  39959. #. type: deftypevr
  39960. #: guix-git/doc/guix.texi:26820
  39961. #, no-wrap
  39962. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-cacertdir"
  39963. msgstr ""
  39964. #. type: deftypevr
  39965. #: guix-git/doc/guix.texi:26823
  39966. msgid "Specifies the directory containing X.509 certificates for peer authen‐ tication. This parameter is ignored when using GnuTLS."
  39967. msgstr ""
  39968. #. type: deftypevr
  39969. #: guix-git/doc/guix.texi:26828
  39970. #, no-wrap
  39971. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-cacertfile"
  39972. msgstr ""
  39973. #. type: deftypevr
  39974. #: guix-git/doc/guix.texi:26830
  39975. msgid "Specifies the path to the X.509 certificate for peer authentication."
  39976. msgstr ""
  39977. #. type: deftypevr
  39978. #: guix-git/doc/guix.texi:26835
  39979. #, no-wrap
  39980. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-randfile"
  39981. msgstr ""
  39982. #. type: deftypevr
  39983. #: guix-git/doc/guix.texi:26838
  39984. msgid "Specifies the path to an entropy source. This parameter is ignored when using GnuTLS."
  39985. msgstr ""
  39986. #. type: deftypevr
  39987. #: guix-git/doc/guix.texi:26843
  39988. #, no-wrap
  39989. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-ciphers"
  39990. msgstr ""
  39991. #. type: deftypevr
  39992. #: guix-git/doc/guix.texi:26845
  39993. msgid "Specifies the ciphers to use for TLS as a string."
  39994. msgstr ""
  39995. #. type: deftypevr
  39996. #: guix-git/doc/guix.texi:26850
  39997. #, no-wrap
  39998. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-cert"
  39999. msgstr ""
  40000. #. type: deftypevr
  40001. #: guix-git/doc/guix.texi:26853
  40002. msgid "Specifies the path to the file containing the local certificate for client TLS authentication."
  40003. msgstr ""
  40004. #. type: deftypevr
  40005. #: guix-git/doc/guix.texi:26858
  40006. #, no-wrap
  40007. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-key"
  40008. msgstr ""
  40009. #. type: deftypevr
  40010. #: guix-git/doc/guix.texi:26861
  40011. msgid "Specifies the path to the file containing the private key for client TLS authentication."
  40012. msgstr ""
  40013. #. type: deftypevr
  40014. #: guix-git/doc/guix.texi:26866
  40015. #, no-wrap
  40016. msgid "{@code{nslcd-configuration} parameter} maybe-number pagesize"
  40017. msgstr ""
  40018. #. type: deftypevr
  40019. #: guix-git/doc/guix.texi:26870
  40020. 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."
  40021. msgstr ""
  40022. #. type: deftypevr
  40023. #: guix-git/doc/guix.texi:26875
  40024. #, no-wrap
  40025. msgid "{@code{nslcd-configuration} parameter} maybe-ignore-users-option nss-initgroups-ignoreusers"
  40026. msgstr ""
  40027. #. type: deftypevr
  40028. #: guix-git/doc/guix.texi:26879
  40029. 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."
  40030. msgstr ""
  40031. #. type: deftypevr
  40032. #: guix-git/doc/guix.texi:26884
  40033. #, no-wrap
  40034. msgid "{@code{nslcd-configuration} parameter} maybe-number nss-min-uid"
  40035. msgstr ""
  40036. #. type: deftypevr
  40037. #: guix-git/doc/guix.texi:26887
  40038. msgid "This option ensures that LDAP users with a numeric user id lower than the specified value are ignored."
  40039. msgstr ""
  40040. #. type: deftypevr
  40041. #: guix-git/doc/guix.texi:26892
  40042. #, no-wrap
  40043. msgid "{@code{nslcd-configuration} parameter} maybe-number nss-uid-offset"
  40044. msgstr ""
  40045. #. type: deftypevr
  40046. #: guix-git/doc/guix.texi:26895
  40047. 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."
  40048. msgstr ""
  40049. #. type: deftypevr
  40050. #: guix-git/doc/guix.texi:26900
  40051. #, no-wrap
  40052. msgid "{@code{nslcd-configuration} parameter} maybe-number nss-gid-offset"
  40053. msgstr ""
  40054. #. type: deftypevr
  40055. #: guix-git/doc/guix.texi:26903
  40056. 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."
  40057. msgstr ""
  40058. #. type: deftypevr
  40059. #: guix-git/doc/guix.texi:26908
  40060. #, no-wrap
  40061. msgid "{@code{nslcd-configuration} parameter} maybe-boolean nss-nested-groups"
  40062. msgstr ""
  40063. #. type: deftypevr
  40064. #: guix-git/doc/guix.texi:26914
  40065. 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."
  40066. msgstr ""
  40067. #. type: deftypevr
  40068. #: guix-git/doc/guix.texi:26919
  40069. #, no-wrap
  40070. msgid "{@code{nslcd-configuration} parameter} maybe-boolean nss-getgrent-skipmembers"
  40071. msgstr ""
  40072. #. type: deftypevr
  40073. #: guix-git/doc/guix.texi:26924
  40074. 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."
  40075. msgstr ""
  40076. #. type: deftypevr
  40077. #: guix-git/doc/guix.texi:26929
  40078. #, no-wrap
  40079. msgid "{@code{nslcd-configuration} parameter} maybe-boolean nss-disable-enumeration"
  40080. msgstr ""
  40081. #. type: deftypevr
  40082. #: guix-git/doc/guix.texi:26935
  40083. 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."
  40084. msgstr ""
  40085. #. type: deftypevr
  40086. #: guix-git/doc/guix.texi:26940
  40087. #, no-wrap
  40088. msgid "{@code{nslcd-configuration} parameter} maybe-string validnames"
  40089. msgstr ""
  40090. #. type: deftypevr
  40091. #: guix-git/doc/guix.texi:26944
  40092. 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."
  40093. msgstr ""
  40094. #. type: deftypevr
  40095. #: guix-git/doc/guix.texi:26949
  40096. #, no-wrap
  40097. msgid "{@code{nslcd-configuration} parameter} maybe-boolean ignorecase"
  40098. msgstr ""
  40099. #. type: deftypevr
  40100. #: guix-git/doc/guix.texi:26954
  40101. 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."
  40102. msgstr ""
  40103. #. type: deftypevr
  40104. #: guix-git/doc/guix.texi:26959
  40105. #, no-wrap
  40106. msgid "{@code{nslcd-configuration} parameter} maybe-boolean pam-authc-ppolicy"
  40107. msgstr ""
  40108. #. type: deftypevr
  40109. #: guix-git/doc/guix.texi:26962
  40110. msgid "This option specifies whether password policy controls are requested and handled from the LDAP server when performing user authentication."
  40111. msgstr ""
  40112. #. type: deftypevr
  40113. #: guix-git/doc/guix.texi:26967
  40114. #, no-wrap
  40115. msgid "{@code{nslcd-configuration} parameter} maybe-string pam-authc-search"
  40116. msgstr ""
  40117. #. type: deftypevr
  40118. #: guix-git/doc/guix.texi:26973
  40119. 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."
  40120. msgstr ""
  40121. #. type: deftypevr
  40122. #: guix-git/doc/guix.texi:26978
  40123. #, no-wrap
  40124. msgid "{@code{nslcd-configuration} parameter} maybe-string pam-authz-search"
  40125. msgstr ""
  40126. #. type: deftypevr
  40127. #: guix-git/doc/guix.texi:26982
  40128. 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."
  40129. msgstr ""
  40130. #. type: deftypevr
  40131. #: guix-git/doc/guix.texi:26987
  40132. #, no-wrap
  40133. msgid "{@code{nslcd-configuration} parameter} maybe-string pam-password-prohibit-message"
  40134. msgstr ""
  40135. #. type: deftypevr
  40136. #: guix-git/doc/guix.texi:26992
  40137. 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."
  40138. msgstr ""
  40139. #. type: deftypevr
  40140. #: guix-git/doc/guix.texi:26997
  40141. #, no-wrap
  40142. msgid "{@code{nslcd-configuration} parameter} list pam-services"
  40143. msgstr ""
  40144. #. type: deftypevr
  40145. #: guix-git/doc/guix.texi:26999
  40146. msgid "List of pam service names for which LDAP authentication should suffice."
  40147. msgstr ""
  40148. #. type: cindex
  40149. #: guix-git/doc/guix.texi:27010
  40150. #, no-wrap
  40151. msgid "web"
  40152. msgstr ""
  40153. #. type: cindex
  40154. #: guix-git/doc/guix.texi:27011
  40155. #, no-wrap
  40156. msgid "www"
  40157. msgstr ""
  40158. #. type: cindex
  40159. #: guix-git/doc/guix.texi:27012
  40160. #, no-wrap
  40161. msgid "HTTP"
  40162. msgstr ""
  40163. #. type: Plain text
  40164. #: guix-git/doc/guix.texi:27015
  40165. msgid "The @code{(gnu services web)} module provides the Apache HTTP Server, the nginx web server, and also a fastcgi wrapper daemon."
  40166. msgstr ""
  40167. #. type: subsubheading
  40168. #: guix-git/doc/guix.texi:27016
  40169. #, no-wrap
  40170. msgid "Apache HTTP Server"
  40171. msgstr ""
  40172. #. type: deffn
  40173. #: guix-git/doc/guix.texi:27018
  40174. #, no-wrap
  40175. msgid "{Scheme Variable} httpd-service-type"
  40176. msgstr ""
  40177. #. type: deffn
  40178. #: guix-git/doc/guix.texi:27022
  40179. 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."
  40180. msgstr ""
  40181. #. type: deffn
  40182. #: guix-git/doc/guix.texi:27024 guix-git/doc/guix.texi:27206
  40183. msgid "A simple example configuration is given below."
  40184. msgstr ""
  40185. #. type: lisp
  40186. #: guix-git/doc/guix.texi:27032
  40187. #, no-wrap
  40188. msgid ""
  40189. "(service httpd-service-type\n"
  40190. " (httpd-configuration\n"
  40191. " (config\n"
  40192. " (httpd-config-file\n"
  40193. " (server-name \"www.example.com\")\n"
  40194. " (document-root \"/srv/http/www.example.com\")))))\n"
  40195. msgstr ""
  40196. #. type: deffn
  40197. #: guix-git/doc/guix.texi:27036
  40198. msgid "Other services can also extend the @code{httpd-service-type} to add to the configuration."
  40199. msgstr ""
  40200. #. type: lisp
  40201. #: guix-git/doc/guix.texi:27045 guix-git/doc/guix.texi:27185
  40202. #, no-wrap
  40203. msgid ""
  40204. "(simple-service 'www.example.com-server httpd-service-type\n"
  40205. " (list\n"
  40206. " (httpd-virtualhost\n"
  40207. " \"*:80\"\n"
  40208. " (list (string-join '(\"ServerName www.example.com\"\n"
  40209. " \"DocumentRoot /srv/http/www.example.com\")\n"
  40210. " \"\\n\")))))\n"
  40211. msgstr ""
  40212. #. type: Plain text
  40213. #: guix-git/doc/guix.texi:27051
  40214. msgid "The details for the @code{httpd-configuration}, @code{httpd-module}, @code{httpd-config-file} and @code{httpd-virtualhost} record types are given below."
  40215. msgstr ""
  40216. #. type: deffn
  40217. #: guix-git/doc/guix.texi:27052
  40218. #, no-wrap
  40219. msgid "{Data Type} httpd-configuration"
  40220. msgstr ""
  40221. #. type: deffn
  40222. #: guix-git/doc/guix.texi:27054
  40223. msgid "This data type represents the configuration for the httpd service."
  40224. msgstr ""
  40225. #. type: item
  40226. #: guix-git/doc/guix.texi:27056
  40227. #, no-wrap
  40228. msgid "@code{package} (default: @code{httpd})"
  40229. msgstr ""
  40230. #. type: table
  40231. #: guix-git/doc/guix.texi:27058
  40232. msgid "The httpd package to use."
  40233. msgstr ""
  40234. #. type: item
  40235. #: guix-git/doc/guix.texi:27059 guix-git/doc/guix.texi:27148
  40236. #, no-wrap
  40237. msgid "@code{pid-file} (default: @code{\"/var/run/httpd\"})"
  40238. msgstr ""
  40239. #. type: table
  40240. #: guix-git/doc/guix.texi:27061
  40241. msgid "The pid file used by the shepherd-service."
  40242. msgstr ""
  40243. #. type: item
  40244. #: guix-git/doc/guix.texi:27062
  40245. #, no-wrap
  40246. msgid "@code{config} (default: @code{(httpd-config-file)})"
  40247. msgstr ""
  40248. #. type: table
  40249. #: guix-git/doc/guix.texi:27067
  40250. 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."
  40251. msgstr ""
  40252. #. type: deffn
  40253. #: guix-git/doc/guix.texi:27071
  40254. #, no-wrap
  40255. msgid "{Data Type} httpd-module"
  40256. msgstr ""
  40257. #. type: deffn
  40258. #: guix-git/doc/guix.texi:27073
  40259. msgid "This data type represents a module for the httpd service."
  40260. msgstr ""
  40261. #. type: table
  40262. #: guix-git/doc/guix.texi:27077
  40263. msgid "The name of the module."
  40264. msgstr ""
  40265. #. type: table
  40266. #: guix-git/doc/guix.texi:27083
  40267. 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\")}."
  40268. msgstr ""
  40269. #. type: defvr
  40270. #: guix-git/doc/guix.texi:27087
  40271. #, no-wrap
  40272. msgid "{Scheme Variable} %default-httpd-modules"
  40273. msgstr ""
  40274. #. type: defvr
  40275. #: guix-git/doc/guix.texi:27089
  40276. msgid "A default list of @code{httpd-module} objects."
  40277. msgstr ""
  40278. #. type: deffn
  40279. #: guix-git/doc/guix.texi:27091
  40280. #, no-wrap
  40281. msgid "{Data Type} httpd-config-file"
  40282. msgstr ""
  40283. #. type: deffn
  40284. #: guix-git/doc/guix.texi:27093
  40285. msgid "This data type represents a configuration file for the httpd service."
  40286. msgstr ""
  40287. #. type: item
  40288. #: guix-git/doc/guix.texi:27095
  40289. #, no-wrap
  40290. msgid "@code{modules} (default: @code{%default-httpd-modules})"
  40291. msgstr ""
  40292. #. type: table
  40293. #: guix-git/doc/guix.texi:27098
  40294. msgid "The modules to load. Additional modules can be added here, or loaded by additional configuration."
  40295. msgstr ""
  40296. #. type: table
  40297. #: guix-git/doc/guix.texi:27101
  40298. 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}:"
  40299. msgstr ""
  40300. #. type: lisp
  40301. #: guix-git/doc/guix.texi:27123
  40302. #, no-wrap
  40303. msgid ""
  40304. "(service httpd-service-type\n"
  40305. " (httpd-configuration\n"
  40306. " (config\n"
  40307. " (httpd-config-file\n"
  40308. " (modules (cons*\n"
  40309. " (httpd-module\n"
  40310. " (name \"proxy_module\")\n"
  40311. " (file \"modules/mod_proxy.so\"))\n"
  40312. " (httpd-module\n"
  40313. " (name \"proxy_fcgi_module\")\n"
  40314. " (file \"modules/mod_proxy_fcgi.so\"))\n"
  40315. " %default-httpd-modules))\n"
  40316. " (extra-config (list \"\\\n"
  40317. "<FilesMatch \\\\.php$>\n"
  40318. " SetHandler \\\"proxy:unix:/var/run/php-fpm.sock|fcgi://localhost/\\\"\n"
  40319. "</FilesMatch>\"))))))\n"
  40320. "(service php-fpm-service-type\n"
  40321. " (php-fpm-configuration\n"
  40322. " (socket \"/var/run/php-fpm.sock\")\n"
  40323. " (socket-group \"httpd\")))\n"
  40324. msgstr ""
  40325. #. type: item
  40326. #: guix-git/doc/guix.texi:27125
  40327. #, no-wrap
  40328. msgid "@code{server-root} (default: @code{httpd})"
  40329. msgstr ""
  40330. #. type: table
  40331. #: guix-git/doc/guix.texi:27129
  40332. 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."
  40333. msgstr ""
  40334. #. type: item
  40335. #: guix-git/doc/guix.texi:27130
  40336. #, no-wrap
  40337. msgid "@code{server-name} (default: @code{#f})"
  40338. msgstr ""
  40339. #. type: table
  40340. #: guix-git/doc/guix.texi:27134
  40341. msgid "The @code{ServerName} in the configuration file, used to specify the request scheme, hostname and port that the server uses to identify itself."
  40342. msgstr ""
  40343. #. type: table
  40344. #: guix-git/doc/guix.texi:27138
  40345. 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}."
  40346. msgstr ""
  40347. #. type: item
  40348. #: guix-git/doc/guix.texi:27139
  40349. #, no-wrap
  40350. msgid "@code{document-root} (default: @code{\"/srv/http\"})"
  40351. msgstr ""
  40352. #. type: table
  40353. #: guix-git/doc/guix.texi:27141
  40354. msgid "The @code{DocumentRoot} from which files will be served."
  40355. msgstr ""
  40356. #. type: item
  40357. #: guix-git/doc/guix.texi:27142
  40358. #, no-wrap
  40359. msgid "@code{listen} (default: @code{'(\"80\")})"
  40360. msgstr ""
  40361. #. type: table
  40362. #: guix-git/doc/guix.texi:27147
  40363. 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."
  40364. msgstr ""
  40365. #. type: table
  40366. #: guix-git/doc/guix.texi:27152
  40367. 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."
  40368. msgstr ""
  40369. #. type: item
  40370. #: guix-git/doc/guix.texi:27153
  40371. #, no-wrap
  40372. msgid "@code{error-log} (default: @code{\"/var/log/httpd/error_log\"})"
  40373. msgstr ""
  40374. #. type: table
  40375. #: guix-git/doc/guix.texi:27155
  40376. msgid "The @code{ErrorLog} to which the server will log errors."
  40377. msgstr ""
  40378. #. type: item
  40379. #: guix-git/doc/guix.texi:27156 guix-git/doc/guix.texi:27719
  40380. #, no-wrap
  40381. msgid "@code{user} (default: @code{\"httpd\"})"
  40382. msgstr ""
  40383. #. type: table
  40384. #: guix-git/doc/guix.texi:27158
  40385. msgid "The @code{User} which the server will answer requests as."
  40386. msgstr ""
  40387. #. type: item
  40388. #: guix-git/doc/guix.texi:27159
  40389. #, no-wrap
  40390. msgid "@code{group} (default: @code{\"httpd\"})"
  40391. msgstr ""
  40392. #. type: table
  40393. #: guix-git/doc/guix.texi:27161
  40394. msgid "The @code{Group} which the server will answer requests as."
  40395. msgstr ""
  40396. #. type: item
  40397. #: guix-git/doc/guix.texi:27162
  40398. #, no-wrap
  40399. msgid "@code{extra-config} (default: @code{(list \"TypesConfig etc/httpd/mime.types\")})"
  40400. msgstr ""
  40401. #. type: table
  40402. #: guix-git/doc/guix.texi:27165
  40403. msgid "A flat list of strings and G-expressions which will be added to the end of the configuration file."
  40404. msgstr ""
  40405. #. type: table
  40406. #: guix-git/doc/guix.texi:27168
  40407. msgid "Any values which the service is extended with will be appended to this list."
  40408. msgstr ""
  40409. #. type: deffn
  40410. #: guix-git/doc/guix.texi:27172
  40411. #, no-wrap
  40412. msgid "{Data Type} httpd-virtualhost"
  40413. msgstr ""
  40414. #. type: deffn
  40415. #: guix-git/doc/guix.texi:27174
  40416. msgid "This data type represents a virtualhost configuration block for the httpd service."
  40417. msgstr ""
  40418. #. type: deffn
  40419. #: guix-git/doc/guix.texi:27176
  40420. msgid "These should be added to the extra-config for the httpd-service."
  40421. msgstr ""
  40422. #. type: code{#1}
  40423. #: guix-git/doc/guix.texi:27188
  40424. #, no-wrap
  40425. msgid "addresses-and-ports"
  40426. msgstr ""
  40427. #. type: table
  40428. #: guix-git/doc/guix.texi:27190
  40429. msgid "The addresses and ports for the @code{VirtualHost} directive."
  40430. msgstr ""
  40431. #. type: code{#1}
  40432. #: guix-git/doc/guix.texi:27191
  40433. #, no-wrap
  40434. msgid "contents"
  40435. msgstr ""
  40436. #. type: table
  40437. #: guix-git/doc/guix.texi:27194
  40438. msgid "The contents of the @code{VirtualHost} directive, this should be a list of strings and G-expressions."
  40439. msgstr ""
  40440. #. type: subsubheading
  40441. #: guix-git/doc/guix.texi:27199
  40442. #, no-wrap
  40443. msgid "NGINX"
  40444. msgstr ""
  40445. #. type: deffn
  40446. #: guix-git/doc/guix.texi:27201
  40447. #, no-wrap
  40448. msgid "{Scheme Variable} nginx-service-type"
  40449. msgstr ""
  40450. #. type: deffn
  40451. #: guix-git/doc/guix.texi:27204
  40452. msgid "Service type for the @uref{https://nginx.org/,NGinx} web server. The value for this service type is a @code{<nginx-configuration>} record."
  40453. msgstr ""
  40454. #. type: lisp
  40455. #: guix-git/doc/guix.texi:27214 guix-git/doc/guix.texi:27268
  40456. #, no-wrap
  40457. msgid ""
  40458. "(service nginx-service-type\n"
  40459. " (nginx-configuration\n"
  40460. " (server-blocks\n"
  40461. " (list (nginx-server-configuration\n"
  40462. " (server-name '(\"www.example.com\"))\n"
  40463. " (root \"/srv/http/www.example.com\"))))))\n"
  40464. msgstr ""
  40465. #. type: deffn
  40466. #: guix-git/doc/guix.texi:27219
  40467. 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:"
  40468. msgstr ""
  40469. #. type: lisp
  40470. #: guix-git/doc/guix.texi:27225
  40471. #, no-wrap
  40472. msgid ""
  40473. "(simple-service 'my-extra-server nginx-service-type\n"
  40474. " (list (nginx-server-configuration\n"
  40475. " (root \"/srv/http/extra-website\")\n"
  40476. " (try-files (list \"$uri\" \"$uri/index.html\")))))\n"
  40477. msgstr ""
  40478. #. type: Plain text
  40479. #: guix-git/doc/guix.texi:27236
  40480. 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."
  40481. msgstr ""
  40482. #. type: deffn
  40483. #: guix-git/doc/guix.texi:27237
  40484. #, no-wrap
  40485. msgid "{Data Type} nginx-configuration"
  40486. msgstr ""
  40487. #. type: deffn
  40488. #: guix-git/doc/guix.texi:27241
  40489. 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."
  40490. msgstr ""
  40491. #. type: item
  40492. #: guix-git/doc/guix.texi:27243
  40493. #, no-wrap
  40494. msgid "@code{nginx} (default: @code{nginx})"
  40495. msgstr ""
  40496. #. type: table
  40497. #: guix-git/doc/guix.texi:27245
  40498. msgid "The nginx package to use."
  40499. msgstr ""
  40500. #. type: item
  40501. #: guix-git/doc/guix.texi:27246
  40502. #, no-wrap
  40503. msgid "@code{log-directory} (default: @code{\"/var/log/nginx\"})"
  40504. msgstr ""
  40505. #. type: table
  40506. #: guix-git/doc/guix.texi:27248
  40507. msgid "The directory to which NGinx will write log files."
  40508. msgstr ""
  40509. #. type: item
  40510. #: guix-git/doc/guix.texi:27249
  40511. #, no-wrap
  40512. msgid "@code{run-directory} (default: @code{\"/var/run/nginx\"})"
  40513. msgstr ""
  40514. #. type: table
  40515. #: guix-git/doc/guix.texi:27252
  40516. msgid "The directory in which NGinx will create a pid file, and write temporary files."
  40517. msgstr ""
  40518. #. type: item
  40519. #: guix-git/doc/guix.texi:27253
  40520. #, no-wrap
  40521. msgid "@code{server-blocks} (default: @code{'()})"
  40522. msgstr ""
  40523. #. type: table
  40524. #: guix-git/doc/guix.texi:27257
  40525. msgid "A list of @dfn{server blocks} to create in the generated configuration file, the elements should be of type @code{<nginx-server-configuration>}."
  40526. msgstr ""
  40527. #. type: table
  40528. #: guix-git/doc/guix.texi:27261
  40529. 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."
  40530. msgstr ""
  40531. #. type: item
  40532. #: guix-git/doc/guix.texi:27270
  40533. #, no-wrap
  40534. msgid "@code{upstream-blocks} (default: @code{'()})"
  40535. msgstr ""
  40536. #. type: table
  40537. #: guix-git/doc/guix.texi:27274
  40538. msgid "A list of @dfn{upstream blocks} to create in the generated configuration file, the elements should be of type @code{<nginx-upstream-configuration>}."
  40539. msgstr ""
  40540. #. type: table
  40541. #: guix-git/doc/guix.texi:27281
  40542. 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."
  40543. msgstr ""
  40544. #. type: lisp
  40545. #: guix-git/doc/guix.texi:27300
  40546. #, no-wrap
  40547. msgid ""
  40548. "(service\n"
  40549. " nginx-service-type\n"
  40550. " (nginx-configuration\n"
  40551. " (server-blocks\n"
  40552. " (list (nginx-server-configuration\n"
  40553. " (server-name '(\"www.example.com\"))\n"
  40554. " (root \"/srv/http/www.example.com\")\n"
  40555. " (locations\n"
  40556. " (list\n"
  40557. " (nginx-location-configuration\n"
  40558. " (uri \"/path1\")\n"
  40559. " (body '(\"proxy_pass http://server-proxy;\"))))))))\n"
  40560. " (upstream-blocks\n"
  40561. " (list (nginx-upstream-configuration\n"
  40562. " (name \"server-proxy\")\n"
  40563. " (servers (list \"server1.example.com\"\n"
  40564. " \"server2.example.com\")))))))\n"
  40565. msgstr ""
  40566. #. type: table
  40567. #: guix-git/doc/guix.texi:27308
  40568. 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."
  40569. msgstr ""
  40570. #. type: table
  40571. #: guix-git/doc/guix.texi:27312
  40572. 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."
  40573. msgstr ""
  40574. #. type: item
  40575. #: guix-git/doc/guix.texi:27313
  40576. #, no-wrap
  40577. msgid "@code{server-names-hash-bucket-size} (default: @code{#f})"
  40578. msgstr ""
  40579. #. type: table
  40580. #: guix-git/doc/guix.texi:27316
  40581. msgid "Bucket size for the server names hash tables, defaults to @code{#f} to use the size of the processors cache line."
  40582. msgstr ""
  40583. #. type: item
  40584. #: guix-git/doc/guix.texi:27317
  40585. #, no-wrap
  40586. msgid "@code{server-names-hash-bucket-max-size} (default: @code{#f})"
  40587. msgstr ""
  40588. #. type: table
  40589. #: guix-git/doc/guix.texi:27319
  40590. msgid "Maximum bucket size for the server names hash tables."
  40591. msgstr ""
  40592. #. type: table
  40593. #: guix-git/doc/guix.texi:27323
  40594. msgid "List of nginx dynamic modules to load. This should be a list of file names of loadable modules, as in this example:"
  40595. msgstr ""
  40596. #. type: lisp
  40597. #: guix-git/doc/guix.texi:27331
  40598. #, no-wrap
  40599. msgid ""
  40600. "(modules\n"
  40601. " (list\n"
  40602. " (file-append nginx-accept-language-module \"\\\n"
  40603. "/etc/nginx/modules/ngx_http_accept_language_module.so\")\n"
  40604. " (file-append nginx-lua-module \"\\\n"
  40605. "/etc/nginx/modules/ngx_http_lua_module.so\")))\n"
  40606. msgstr ""
  40607. #. type: item
  40608. #: guix-git/doc/guix.texi:27333
  40609. #, fuzzy, no-wrap
  40610. msgid "@code{lua-package-path} (default: @code{'()})"
  40611. msgstr "@code{features} (@code{'()})"
  40612. #. type: table
  40613. #: guix-git/doc/guix.texi:27336
  40614. msgid "List of nginx lua packages to load. This should be a list of package names of loadable lua modules, as in this example:"
  40615. msgstr ""
  40616. #. type: lisp
  40617. #: guix-git/doc/guix.texi:27343
  40618. #, no-wrap
  40619. msgid ""
  40620. "(lua-package-path (list lua-resty-core\n"
  40621. " lua-resty-lrucache\n"
  40622. " lua-resty-signal\n"
  40623. " lua-tablepool\n"
  40624. " lua-resty-shell))\n"
  40625. msgstr ""
  40626. #. type: item
  40627. #: guix-git/doc/guix.texi:27345
  40628. #, fuzzy, no-wrap
  40629. msgid "@code{lua-package-cpath} (default: @code{'()})"
  40630. msgstr "@code{features} (@code{'()})"
  40631. #. type: table
  40632. #: guix-git/doc/guix.texi:27348
  40633. 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:"
  40634. msgstr ""
  40635. #. type: lisp
  40636. #: guix-git/doc/guix.texi:27351
  40637. #, no-wrap
  40638. msgid "(lua-package-cpath (list lua-resty-signal))\n"
  40639. msgstr ""
  40640. #. type: item
  40641. #: guix-git/doc/guix.texi:27353
  40642. #, fuzzy, no-wrap
  40643. msgid "@code{global-directives} (default: @code{'((events . ()))})"
  40644. msgstr "@code{features} (@code{'()})"
  40645. #. type: table
  40646. #: guix-git/doc/guix.texi:27356
  40647. msgid "Association list of global directives for the top level of the nginx configuration. Values may themselves be association lists."
  40648. msgstr ""
  40649. #. type: lisp
  40650. #: guix-git/doc/guix.texi:27362
  40651. #, no-wrap
  40652. msgid ""
  40653. "(global-directives\n"
  40654. " `((worker_processes . 16)\n"
  40655. " (pcre_jit . on)\n"
  40656. " (events . ((worker_connections . 1024)))))\n"
  40657. msgstr ""
  40658. #. type: table
  40659. #: guix-git/doc/guix.texi:27367
  40660. msgid "Extra content for the @code{http} block. Should be string or a string valued G-expression."
  40661. msgstr ""
  40662. #. type: anchor{#1}
  40663. #: guix-git/doc/guix.texi:27372
  40664. #, fuzzy
  40665. msgid "nginx-server-configuration"
  40666. msgstr "{数据类型} build-machine"
  40667. #. type: deftp
  40668. #: guix-git/doc/guix.texi:27372
  40669. #, no-wrap
  40670. msgid "{Data Type} nginx-server-configuration"
  40671. msgstr ""
  40672. #. type: deftp
  40673. #: guix-git/doc/guix.texi:27375
  40674. msgid "Data type representing the configuration of an nginx server block. This type has the following parameters:"
  40675. msgstr ""
  40676. #. type: item
  40677. #: guix-git/doc/guix.texi:27377
  40678. #, no-wrap
  40679. msgid "@code{listen} (default: @code{'(\"80\" \"443 ssl\")})"
  40680. msgstr ""
  40681. #. type: table
  40682. #: guix-git/doc/guix.texi:27382
  40683. 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:"
  40684. msgstr ""
  40685. #. type: lisp
  40686. #: guix-git/doc/guix.texi:27385
  40687. #, no-wrap
  40688. msgid "'(\"127.0.0.1:8000\" \"127.0.0.1\" \"8000\" \"*:8000\" \"localhost:8000\")\n"
  40689. msgstr ""
  40690. #. type: item
  40691. #: guix-git/doc/guix.texi:27387
  40692. #, no-wrap
  40693. msgid "@code{server-name} (default: @code{(list 'default)})"
  40694. msgstr ""
  40695. #. type: table
  40696. #: guix-git/doc/guix.texi:27390
  40697. msgid "A list of server names this server represents. @code{'default} represents the default server for connections matching no other server."
  40698. msgstr ""
  40699. #. type: item
  40700. #: guix-git/doc/guix.texi:27391
  40701. #, no-wrap
  40702. msgid "@code{root} (default: @code{\"/srv/http\"})"
  40703. msgstr ""
  40704. #. type: table
  40705. #: guix-git/doc/guix.texi:27393
  40706. msgid "Root of the website nginx will serve."
  40707. msgstr ""
  40708. #. type: item
  40709. #: guix-git/doc/guix.texi:27394
  40710. #, no-wrap
  40711. msgid "@code{locations} (default: @code{'()})"
  40712. msgstr ""
  40713. #. type: table
  40714. #: guix-git/doc/guix.texi:27398
  40715. msgid "A list of @dfn{nginx-location-configuration} or @dfn{nginx-named-location-configuration} records to use within this server block."
  40716. msgstr ""
  40717. #. type: item
  40718. #: guix-git/doc/guix.texi:27399
  40719. #, no-wrap
  40720. msgid "@code{index} (default: @code{(list \"index.html\")})"
  40721. msgstr ""
  40722. #. type: table
  40723. #: guix-git/doc/guix.texi:27402
  40724. 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."
  40725. msgstr ""
  40726. #. type: item
  40727. #: guix-git/doc/guix.texi:27403
  40728. #, no-wrap
  40729. msgid "@code{try-files} (default: @code{'()})"
  40730. msgstr ""
  40731. #. type: table
  40732. #: guix-git/doc/guix.texi:27406
  40733. 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."
  40734. msgstr ""
  40735. #. type: item
  40736. #: guix-git/doc/guix.texi:27407
  40737. #, no-wrap
  40738. msgid "@code{ssl-certificate} (default: @code{#f})"
  40739. msgstr ""
  40740. #. type: table
  40741. #: guix-git/doc/guix.texi:27410
  40742. 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."
  40743. msgstr ""
  40744. #. type: item
  40745. #: guix-git/doc/guix.texi:27411
  40746. #, no-wrap
  40747. msgid "@code{ssl-certificate-key} (default: @code{#f})"
  40748. msgstr ""
  40749. #. type: table
  40750. #: guix-git/doc/guix.texi:27414
  40751. 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."
  40752. msgstr ""
  40753. #. type: item
  40754. #: guix-git/doc/guix.texi:27415
  40755. #, no-wrap
  40756. msgid "@code{server-tokens?} (default: @code{#f})"
  40757. msgstr ""
  40758. #. type: table
  40759. #: guix-git/doc/guix.texi:27417
  40760. msgid "Whether the server should add its configuration to response."
  40761. msgstr ""
  40762. #. type: item
  40763. #: guix-git/doc/guix.texi:27418
  40764. #, no-wrap
  40765. msgid "@code{raw-content} (default: @code{'()})"
  40766. msgstr ""
  40767. #. type: table
  40768. #: guix-git/doc/guix.texi:27420
  40769. msgid "A list of raw lines added to the server block."
  40770. msgstr ""
  40771. #. type: deftp
  40772. #: guix-git/doc/guix.texi:27424
  40773. #, no-wrap
  40774. msgid "{Data Type} nginx-upstream-configuration"
  40775. msgstr ""
  40776. #. type: deftp
  40777. #: guix-git/doc/guix.texi:27427
  40778. msgid "Data type representing the configuration of an nginx @code{upstream} block. This type has the following parameters:"
  40779. msgstr ""
  40780. #. type: table
  40781. #: guix-git/doc/guix.texi:27431
  40782. msgid "Name for this group of servers."
  40783. msgstr ""
  40784. #. type: code{#1}
  40785. #: guix-git/doc/guix.texi:27432
  40786. #, no-wrap
  40787. msgid "servers"
  40788. msgstr ""
  40789. #. type: table
  40790. #: guix-git/doc/guix.texi:27439
  40791. 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."
  40792. msgstr ""
  40793. #. type: deftp
  40794. #: guix-git/doc/guix.texi:27443
  40795. #, no-wrap
  40796. msgid "{Data Type} nginx-location-configuration"
  40797. msgstr ""
  40798. #. type: deftp
  40799. #: guix-git/doc/guix.texi:27446
  40800. msgid "Data type representing the configuration of an nginx @code{location} block. This type has the following parameters:"
  40801. msgstr ""
  40802. #. type: table
  40803. #: guix-git/doc/guix.texi:27450
  40804. msgid "URI which this location block matches."
  40805. msgstr ""
  40806. #. type: anchor{#1}
  40807. #: guix-git/doc/guix.texi:27452
  40808. msgid "nginx-location-configuration body"
  40809. msgstr ""
  40810. #. type: code{#1}
  40811. #: guix-git/doc/guix.texi:27452 guix-git/doc/guix.texi:27473
  40812. #, no-wrap
  40813. msgid "body"
  40814. msgstr ""
  40815. #. type: table
  40816. #: guix-git/doc/guix.texi:27459
  40817. 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;\")}."
  40818. msgstr ""
  40819. #. type: deftp
  40820. #: guix-git/doc/guix.texi:27463
  40821. #, no-wrap
  40822. msgid "{Data Type} nginx-named-location-configuration"
  40823. msgstr ""
  40824. #. type: deftp
  40825. #: guix-git/doc/guix.texi:27468
  40826. 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:"
  40827. msgstr ""
  40828. #. type: table
  40829. #: guix-git/doc/guix.texi:27472
  40830. msgid "Name to identify this location block."
  40831. msgstr ""
  40832. #. type: table
  40833. #: guix-git/doc/guix.texi:27478
  40834. 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."
  40835. msgstr ""
  40836. #. type: subsubheading
  40837. #: guix-git/doc/guix.texi:27482
  40838. #, no-wrap
  40839. msgid "Varnish Cache"
  40840. msgstr ""
  40841. #. type: cindex
  40842. #: guix-git/doc/guix.texi:27483
  40843. #, no-wrap
  40844. msgid "Varnish"
  40845. msgstr ""
  40846. #. type: Plain text
  40847. #: guix-git/doc/guix.texi:27488
  40848. 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."
  40849. msgstr ""
  40850. #. type: defvr
  40851. #: guix-git/doc/guix.texi:27489
  40852. #, no-wrap
  40853. msgid "{Scheme Variable} varnish-service-type"
  40854. msgstr ""
  40855. #. type: defvr
  40856. #: guix-git/doc/guix.texi:27491
  40857. msgid "Service type for the Varnish daemon."
  40858. msgstr ""
  40859. #. type: deftp
  40860. #: guix-git/doc/guix.texi:27493
  40861. #, no-wrap
  40862. msgid "{Data Type} varnish-configuration"
  40863. msgstr ""
  40864. #. type: deftp
  40865. #: guix-git/doc/guix.texi:27496
  40866. msgid "Data type representing the @code{varnish} service configuration. This type has the following parameters:"
  40867. msgstr ""
  40868. #. type: item
  40869. #: guix-git/doc/guix.texi:27498
  40870. #, no-wrap
  40871. msgid "@code{package} (default: @code{varnish})"
  40872. msgstr ""
  40873. #. type: table
  40874. #: guix-git/doc/guix.texi:27500
  40875. msgid "The Varnish package to use."
  40876. msgstr ""
  40877. #. type: item
  40878. #: guix-git/doc/guix.texi:27501
  40879. #, no-wrap
  40880. msgid "@code{name} (default: @code{\"default\"})"
  40881. msgstr ""
  40882. #. type: table
  40883. #: guix-git/doc/guix.texi:27506
  40884. 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."
  40885. msgstr ""
  40886. #. type: table
  40887. #: guix-git/doc/guix.texi:27509
  40888. msgid "Pass the @code{-n} argument to other Varnish programs to connect to the named instance, e.g.@: @command{varnishncsa -n default}."
  40889. msgstr ""
  40890. #. type: item
  40891. #: guix-git/doc/guix.texi:27510
  40892. #, no-wrap
  40893. msgid "@code{backend} (default: @code{\"localhost:8080\"})"
  40894. msgstr ""
  40895. #. type: table
  40896. #: guix-git/doc/guix.texi:27512
  40897. msgid "The backend to use. This option has no effect if @code{vcl} is set."
  40898. msgstr ""
  40899. #. type: item
  40900. #: guix-git/doc/guix.texi:27513
  40901. #, no-wrap
  40902. msgid "@code{vcl} (default: #f)"
  40903. msgstr ""
  40904. #. type: table
  40905. #: guix-git/doc/guix.texi:27518
  40906. 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."
  40907. msgstr ""
  40908. #. type: table
  40909. #: guix-git/doc/guix.texi:27522
  40910. msgid "For example, to mirror @url{https://www.gnu.org,www.gnu.org} with VCL you can do something along these lines:"
  40911. msgstr ""
  40912. #. type: lisp
  40913. #: guix-git/doc/guix.texi:27528
  40914. #, no-wrap
  40915. msgid ""
  40916. "(define %gnu-mirror\n"
  40917. " (plain-file \"gnu.vcl\"\n"
  40918. " \"vcl 4.1;\n"
  40919. "backend gnu @{ .host = \\\"www.gnu.org\\\"; @}\"))\n"
  40920. "\n"
  40921. msgstr ""
  40922. #. type: lisp
  40923. #: guix-git/doc/guix.texi:27536
  40924. #, no-wrap
  40925. msgid ""
  40926. "(operating-system\n"
  40927. " ;; @dots{}\n"
  40928. " (services (cons (service varnish-service-type\n"
  40929. " (varnish-configuration\n"
  40930. " (listen '(\":80\"))\n"
  40931. " (vcl %gnu-mirror)))\n"
  40932. " %base-services)))\n"
  40933. msgstr ""
  40934. #. type: table
  40935. #: guix-git/doc/guix.texi:27540
  40936. msgid "The configuration of an already running Varnish instance can be inspected and changed using the @command{varnishadm} program."
  40937. msgstr ""
  40938. #. type: table
  40939. #: guix-git/doc/guix.texi:27544
  40940. 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."
  40941. msgstr ""
  40942. #. type: item
  40943. #: guix-git/doc/guix.texi:27545
  40944. #, no-wrap
  40945. msgid "@code{listen} (default: @code{'(\"localhost:80\")})"
  40946. msgstr ""
  40947. #. type: table
  40948. #: guix-git/doc/guix.texi:27547
  40949. msgid "List of addresses Varnish will listen on."
  40950. msgstr ""
  40951. #. type: item
  40952. #: guix-git/doc/guix.texi:27548
  40953. #, no-wrap
  40954. msgid "@code{storage} (default: @code{'(\"malloc,128m\")})"
  40955. msgstr ""
  40956. #. type: table
  40957. #: guix-git/doc/guix.texi:27550
  40958. msgid "List of storage backends that will be available in VCL."
  40959. msgstr ""
  40960. #. type: item
  40961. #: guix-git/doc/guix.texi:27551
  40962. #, no-wrap
  40963. msgid "@code{parameters} (default: @code{'()})"
  40964. msgstr ""
  40965. #. type: table
  40966. #: guix-git/doc/guix.texi:27553
  40967. msgid "List of run-time parameters in the form @code{'((\"parameter\" . \"value\"))}."
  40968. msgstr ""
  40969. #. type: table
  40970. #: guix-git/doc/guix.texi:27556
  40971. msgid "Additional arguments to pass to the @command{varnishd} process."
  40972. msgstr ""
  40973. #. type: cindex
  40974. #: guix-git/doc/guix.texi:27560 guix-git/doc/guix.texi:27561
  40975. #, no-wrap
  40976. msgid "Patchwork"
  40977. msgstr ""
  40978. #. type: Plain text
  40979. #: guix-git/doc/guix.texi:27564
  40980. msgid "Patchwork is a patch tracking system. It can collect patches sent to a mailing list, and display them in a web interface."
  40981. msgstr ""
  40982. #. type: defvr
  40983. #: guix-git/doc/guix.texi:27565
  40984. #, no-wrap
  40985. msgid "{Scheme Variable} patchwork-service-type"
  40986. msgstr ""
  40987. #. type: defvr
  40988. #: guix-git/doc/guix.texi:27567
  40989. #, fuzzy
  40990. msgid "Service type for Patchwork."
  40991. msgstr "分享你的工作。"
  40992. #. type: Plain text
  40993. #: guix-git/doc/guix.texi:27571
  40994. msgid "The following example is an example of a minimal service for Patchwork, for the @code{patchwork.example.com} domain."
  40995. msgstr ""
  40996. #. type: lisp
  40997. #: guix-git/doc/guix.texi:27591
  40998. #, no-wrap
  40999. msgid ""
  41000. "(service patchwork-service-type\n"
  41001. " (patchwork-configuration\n"
  41002. " (domain \"patchwork.example.com\")\n"
  41003. " (settings-module\n"
  41004. " (patchwork-settings-module\n"
  41005. " (allowed-hosts (list domain))\n"
  41006. " (default-from-email \"patchwork@@patchwork.example.com\")))\n"
  41007. " (getmail-retriever-config\n"
  41008. " (getmail-retriever-configuration\n"
  41009. " (type \"SimpleIMAPSSLRetriever\")\n"
  41010. " (server \"imap.example.com\")\n"
  41011. " (port 993)\n"
  41012. " (username \"patchwork\")\n"
  41013. " (password-command\n"
  41014. " (list (file-append coreutils \"/bin/cat\")\n"
  41015. " \"/etc/getmail-patchwork-imap-password\"))\n"
  41016. " (extra-parameters\n"
  41017. " '((mailboxes . (\"Patches\"))))))))\n"
  41018. "\n"
  41019. msgstr ""
  41020. #. type: Plain text
  41021. #: guix-git/doc/guix.texi:27597
  41022. msgid "There are three records for configuring the Patchwork service. The @code{<patchwork-configuration>} relates to the configuration for Patchwork within the HTTPD service."
  41023. msgstr ""
  41024. #. type: Plain text
  41025. #: guix-git/doc/guix.texi:27601
  41026. 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."
  41027. msgstr ""
  41028. #. type: Plain text
  41029. #: guix-git/doc/guix.texi:27605
  41030. msgid "For the @code{database-configuration} field within the @code{<patchwork-settings-module>}, the @code{<patchwork-database-configuration>} must be used."
  41031. msgstr ""
  41032. #. type: deftp
  41033. #: guix-git/doc/guix.texi:27606
  41034. #, no-wrap
  41035. msgid "{Data Type} patchwork-configuration"
  41036. msgstr ""
  41037. #. type: deftp
  41038. #: guix-git/doc/guix.texi:27609
  41039. msgid "Data type representing the Patchwork service configuration. This type has the following parameters:"
  41040. msgstr ""
  41041. #. type: item
  41042. #: guix-git/doc/guix.texi:27611
  41043. #, fuzzy, no-wrap
  41044. msgid "@code{patchwork} (default: @code{patchwork})"
  41045. msgstr "@code{mate}(默认值:@code{mate})"
  41046. #. type: table
  41047. #: guix-git/doc/guix.texi:27613
  41048. #, fuzzy
  41049. msgid "The Patchwork package to use."
  41050. msgstr "软件包数据类型。"
  41051. #. type: code{#1}
  41052. #: guix-git/doc/guix.texi:27614
  41053. #, no-wrap
  41054. msgid "domain"
  41055. msgstr ""
  41056. #. type: table
  41057. #: guix-git/doc/guix.texi:27617
  41058. msgid "The domain to use for Patchwork, this is used in the HTTPD service virtual host."
  41059. msgstr ""
  41060. #. type: code{#1}
  41061. #: guix-git/doc/guix.texi:27618
  41062. #, no-wrap
  41063. msgid "settings-module"
  41064. msgstr ""
  41065. #. type: table
  41066. #: guix-git/doc/guix.texi:27624
  41067. 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."
  41068. msgstr ""
  41069. #. type: item
  41070. #: guix-git/doc/guix.texi:27625
  41071. #, fuzzy, no-wrap
  41072. msgid "@code{static-path} (default: @code{\"/static/\"})"
  41073. msgstr "@code{mate}(默认值:@code{mate})"
  41074. #. type: table
  41075. #: guix-git/doc/guix.texi:27627
  41076. msgid "The path under which the HTTPD service should serve the static files."
  41077. msgstr ""
  41078. #. type: code{#1}
  41079. #: guix-git/doc/guix.texi:27628
  41080. #, no-wrap
  41081. msgid "getmail-retriever-config"
  41082. msgstr ""
  41083. #. type: table
  41084. #: guix-git/doc/guix.texi:27632
  41085. 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."
  41086. msgstr ""
  41087. #. type: deftp
  41088. #: guix-git/doc/guix.texi:27636
  41089. #, no-wrap
  41090. msgid "{Data Type} patchwork-settings-module"
  41091. msgstr ""
  41092. #. type: deftp
  41093. #: guix-git/doc/guix.texi:27641
  41094. 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:"
  41095. msgstr ""
  41096. #. type: item
  41097. #: guix-git/doc/guix.texi:27643
  41098. #, no-wrap
  41099. msgid "@code{database-configuration} (default: @code{(patchwork-database-configuration)})"
  41100. msgstr ""
  41101. #. type: table
  41102. #: guix-git/doc/guix.texi:27646
  41103. msgid "The database connection settings used for Patchwork. See the @code{<patchwork-database-configuration>} record type for more information."
  41104. msgstr ""
  41105. #. type: item
  41106. #: guix-git/doc/guix.texi:27647
  41107. #, fuzzy, no-wrap
  41108. msgid "@code{secret-key-file} (default: @code{\"/etc/patchwork/django-secret-key\"})"
  41109. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  41110. #. type: table
  41111. #: guix-git/doc/guix.texi:27650
  41112. msgid "Patchwork, as a Django web application uses a secret key for cryptographically signing values. This file should contain a unique unpredictable value."
  41113. msgstr ""
  41114. #. type: table
  41115. #: guix-git/doc/guix.texi:27653
  41116. msgid "If this file does not exist, it will be created and populated with a random value by the patchwork-setup shepherd service."
  41117. msgstr ""
  41118. #. type: table
  41119. #: guix-git/doc/guix.texi:27655
  41120. msgid "This setting relates to Django."
  41121. msgstr ""
  41122. #. type: code{#1}
  41123. #: guix-git/doc/guix.texi:27656
  41124. #, no-wrap
  41125. msgid "allowed-hosts"
  41126. msgstr ""
  41127. #. type: table
  41128. #: guix-git/doc/guix.texi:27659
  41129. msgid "A list of valid hosts for this Patchwork service. This should at least include the domain specified in the @code{<patchwork-configuration>} record."
  41130. msgstr ""
  41131. #. type: table
  41132. #: guix-git/doc/guix.texi:27661 guix-git/doc/guix.texi:27675
  41133. #: guix-git/doc/guix.texi:27681 guix-git/doc/guix.texi:27687
  41134. msgid "This is a Django setting."
  41135. msgstr ""
  41136. #. type: code{#1}
  41137. #: guix-git/doc/guix.texi:27662
  41138. #, no-wrap
  41139. msgid "default-from-email"
  41140. msgstr ""
  41141. #. type: table
  41142. #: guix-git/doc/guix.texi:27664
  41143. msgid "The email address from which Patchwork should send email by default."
  41144. msgstr ""
  41145. #. type: table
  41146. #: guix-git/doc/guix.texi:27666 guix-git/doc/guix.texi:27692
  41147. #: guix-git/doc/guix.texi:27697 guix-git/doc/guix.texi:27702
  41148. msgid "This is a Patchwork setting."
  41149. msgstr ""
  41150. #. type: item
  41151. #: guix-git/doc/guix.texi:27667
  41152. #, fuzzy, no-wrap
  41153. msgid "@code{static-url} (default: @code{#f})"
  41154. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  41155. #. type: table
  41156. #: guix-git/doc/guix.texi:27670
  41157. 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{/}."
  41158. msgstr ""
  41159. #. type: table
  41160. #: guix-git/doc/guix.texi:27673
  41161. msgid "If the default value is used, the @code{static-path} value from the @code{<patchwork-configuration>} record will be used."
  41162. msgstr ""
  41163. #. type: item
  41164. #: guix-git/doc/guix.texi:27676
  41165. #, fuzzy, no-wrap
  41166. msgid "@code{admins} (default: @code{'()})"
  41167. msgstr "@code{includes}(默认值:@code{'()})"
  41168. #. type: table
  41169. #: guix-git/doc/guix.texi:27679
  41170. 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."
  41171. msgstr ""
  41172. #. type: table
  41173. #: guix-git/doc/guix.texi:27685
  41174. msgid "Whether to run Patchwork in debug mode. If set to @code{#t}, detailed error messages will be shown."
  41175. msgstr ""
  41176. #. type: item
  41177. #: guix-git/doc/guix.texi:27688
  41178. #, fuzzy, no-wrap
  41179. msgid "@code{enable-rest-api?} (default: @code{#t})"
  41180. msgstr "@code{challenge}(默认值:@code{#f})"
  41181. #. type: table
  41182. #: guix-git/doc/guix.texi:27690
  41183. msgid "Whether to enable the Patchwork REST API."
  41184. msgstr ""
  41185. #. type: item
  41186. #: guix-git/doc/guix.texi:27693
  41187. #, fuzzy, no-wrap
  41188. msgid "@code{enable-xmlrpc?} (default: @code{#t})"
  41189. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  41190. #. type: table
  41191. #: guix-git/doc/guix.texi:27695
  41192. msgid "Whether to enable the XML RPC API."
  41193. msgstr ""
  41194. #. type: item
  41195. #: guix-git/doc/guix.texi:27698
  41196. #, fuzzy, no-wrap
  41197. msgid "@code{force-https-links?} (default: @code{#t})"
  41198. msgstr "@code{challenge}(默认值:@code{#f})"
  41199. #. type: table
  41200. #: guix-git/doc/guix.texi:27700
  41201. msgid "Whether to use HTTPS links on Patchwork pages."
  41202. msgstr ""
  41203. #. type: table
  41204. #: guix-git/doc/guix.texi:27705
  41205. msgid "Extra code to place at the end of the Patchwork settings module."
  41206. msgstr ""
  41207. #. type: deftp
  41208. #: guix-git/doc/guix.texi:27709
  41209. #, no-wrap
  41210. msgid "{Data Type} patchwork-database-configuration"
  41211. msgstr ""
  41212. #. type: deftp
  41213. #: guix-git/doc/guix.texi:27711
  41214. msgid "Data type representing the database configuration for Patchwork."
  41215. msgstr ""
  41216. #. type: item
  41217. #: guix-git/doc/guix.texi:27713
  41218. #, fuzzy, no-wrap
  41219. msgid "@code{engine} (default: @code{\"django.db.backends.postgresql_psycopg2\"})"
  41220. msgstr "@code{gnome}(默认值:@code{gnome})"
  41221. #. type: table
  41222. #: guix-git/doc/guix.texi:27715
  41223. msgid "The database engine to use."
  41224. msgstr ""
  41225. #. type: item
  41226. #: guix-git/doc/guix.texi:27716
  41227. #, fuzzy, no-wrap
  41228. msgid "@code{name} (default: @code{\"patchwork\"})"
  41229. msgstr "@code{mate}(默认值:@code{mate})"
  41230. #. type: table
  41231. #: guix-git/doc/guix.texi:27718
  41232. #, fuzzy
  41233. msgid "The name of the database to use."
  41234. msgstr "远程机器的主机名。"
  41235. #. type: table
  41236. #: guix-git/doc/guix.texi:27721
  41237. msgid "The user to connect to the database as."
  41238. msgstr ""
  41239. #. type: item
  41240. #: guix-git/doc/guix.texi:27722
  41241. #, fuzzy, no-wrap
  41242. msgid "@code{password} (default: @code{\"\"})"
  41243. msgstr "@code{port}(默认值:@code{22})"
  41244. #. type: table
  41245. #: guix-git/doc/guix.texi:27724
  41246. msgid "The password to use when connecting to the database."
  41247. msgstr ""
  41248. #. type: item
  41249. #: guix-git/doc/guix.texi:27725
  41250. #, fuzzy, no-wrap
  41251. msgid "@code{host} (default: @code{\"\"})"
  41252. msgstr "@code{port}(默认值:@code{22})"
  41253. #. type: table
  41254. #: guix-git/doc/guix.texi:27727
  41255. msgid "The host to make the database connection to."
  41256. msgstr ""
  41257. #. type: item
  41258. #: guix-git/doc/guix.texi:27728
  41259. #, fuzzy, no-wrap
  41260. msgid "@code{port} (default: @code{\"\"})"
  41261. msgstr "@code{port}(默认值:@code{22})"
  41262. #. type: table
  41263. #: guix-git/doc/guix.texi:27730
  41264. msgid "The port on which to connect to the database."
  41265. msgstr ""
  41266. #. type: subsubheading
  41267. #: guix-git/doc/guix.texi:27734
  41268. #, no-wrap
  41269. msgid "Mumi"
  41270. msgstr ""
  41271. #. type: cindex
  41272. #: guix-git/doc/guix.texi:27736
  41273. #, fuzzy, no-wrap
  41274. msgid "Mumi, Debbugs Web interface"
  41275. msgstr "用户界面"
  41276. #. type: cindex
  41277. #: guix-git/doc/guix.texi:27737
  41278. #, fuzzy, no-wrap
  41279. msgid "Debbugs, Mumi Web interface"
  41280. msgstr "用户界面"
  41281. #. type: Plain text
  41282. #: guix-git/doc/guix.texi:27742
  41283. 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."
  41284. msgstr ""
  41285. #. type: defvr
  41286. #: guix-git/doc/guix.texi:27743
  41287. #, no-wrap
  41288. msgid "{Scheme Variable} mumi-service-type"
  41289. msgstr ""
  41290. #. type: defvr
  41291. #: guix-git/doc/guix.texi:27745
  41292. msgid "This is the service type for Mumi."
  41293. msgstr ""
  41294. #. type: deftp
  41295. #: guix-git/doc/guix.texi:27747
  41296. #, fuzzy, no-wrap
  41297. msgid "{Data Type} mumi-configuration"
  41298. msgstr "{数据类型} build-machine"
  41299. #. type: deftp
  41300. #: guix-git/doc/guix.texi:27750
  41301. msgid "Data type representing the Mumi service configuration. This type has the following fields:"
  41302. msgstr ""
  41303. #. type: item
  41304. #: guix-git/doc/guix.texi:27752
  41305. #, fuzzy, no-wrap
  41306. msgid "@code{mumi} (default: @code{mumi})"
  41307. msgstr "@code{mate}(默认值:@code{mate})"
  41308. #. type: table
  41309. #: guix-git/doc/guix.texi:27754
  41310. #, fuzzy
  41311. msgid "The Mumi package to use."
  41312. msgstr "软件包数据类型。"
  41313. #. type: item
  41314. #: guix-git/doc/guix.texi:27755
  41315. #, fuzzy, no-wrap
  41316. msgid "@code{mailer?} (default: @code{#true})"
  41317. msgstr "@code{mate}(默认值:@code{mate})"
  41318. #. type: table
  41319. #: guix-git/doc/guix.texi:27757
  41320. msgid "Whether to enable or disable the mailer component."
  41321. msgstr ""
  41322. #. type: code{#1}
  41323. #: guix-git/doc/guix.texi:27758
  41324. #, no-wrap
  41325. msgid "mumi-configuration-sender"
  41326. msgstr ""
  41327. #. type: table
  41328. #: guix-git/doc/guix.texi:27760
  41329. msgid "The email address used as the sender for comments."
  41330. msgstr ""
  41331. #. type: code{#1}
  41332. #: guix-git/doc/guix.texi:27761
  41333. #, fuzzy, no-wrap
  41334. msgid "mumi-configuration-smtp"
  41335. msgstr "系统配置"
  41336. #. type: table
  41337. #: guix-git/doc/guix.texi:27766
  41338. 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}."
  41339. msgstr ""
  41340. #. type: subsubheading
  41341. #: guix-git/doc/guix.texi:27771
  41342. #, no-wrap
  41343. msgid "FastCGI"
  41344. msgstr ""
  41345. #. type: cindex
  41346. #: guix-git/doc/guix.texi:27772
  41347. #, no-wrap
  41348. msgid "fastcgi"
  41349. msgstr ""
  41350. #. type: cindex
  41351. #: guix-git/doc/guix.texi:27773
  41352. #, no-wrap
  41353. msgid "fcgiwrap"
  41354. msgstr ""
  41355. #. type: Plain text
  41356. #: guix-git/doc/guix.texi:27780
  41357. 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."
  41358. msgstr ""
  41359. #. type: Plain text
  41360. #: guix-git/doc/guix.texi:27787
  41361. 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."
  41362. msgstr ""
  41363. #. type: defvr
  41364. #: guix-git/doc/guix.texi:27788
  41365. #, no-wrap
  41366. msgid "{Scheme Variable} fcgiwrap-service-type"
  41367. msgstr ""
  41368. #. type: defvr
  41369. #: guix-git/doc/guix.texi:27790
  41370. msgid "A service type for the @code{fcgiwrap} FastCGI proxy."
  41371. msgstr ""
  41372. #. type: deftp
  41373. #: guix-git/doc/guix.texi:27792
  41374. #, no-wrap
  41375. msgid "{Data Type} fcgiwrap-configuration"
  41376. msgstr ""
  41377. #. type: deftp
  41378. #: guix-git/doc/guix.texi:27795
  41379. msgid "Data type representing the configuration of the @code{fcgiwrap} service. This type has the following parameters:"
  41380. msgstr ""
  41381. #. type: item
  41382. #: guix-git/doc/guix.texi:27796
  41383. #, no-wrap
  41384. msgid "@code{package} (default: @code{fcgiwrap})"
  41385. msgstr ""
  41386. #. type: table
  41387. #: guix-git/doc/guix.texi:27798
  41388. msgid "The fcgiwrap package to use."
  41389. msgstr ""
  41390. #. type: item
  41391. #: guix-git/doc/guix.texi:27799
  41392. #, no-wrap
  41393. msgid "@code{socket} (default: @code{tcp:127.0.0.1:9000})"
  41394. msgstr ""
  41395. #. type: table
  41396. #: guix-git/doc/guix.texi:27805
  41397. 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}."
  41398. msgstr ""
  41399. #. type: item
  41400. #: guix-git/doc/guix.texi:27806
  41401. #, no-wrap
  41402. msgid "@code{user} (default: @code{fcgiwrap})"
  41403. msgstr ""
  41404. #. type: itemx
  41405. #: guix-git/doc/guix.texi:27807
  41406. #, no-wrap
  41407. msgid "@code{group} (default: @code{fcgiwrap})"
  41408. msgstr ""
  41409. #. type: table
  41410. #: guix-git/doc/guix.texi:27812
  41411. 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."
  41412. msgstr ""
  41413. #. type: table
  41414. #: guix-git/doc/guix.texi:27819
  41415. 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."
  41416. msgstr ""
  41417. #. type: subsubheading
  41418. #: guix-git/doc/guix.texi:27823
  41419. #, no-wrap
  41420. msgid "PHP-FPM"
  41421. msgstr ""
  41422. #. type: cindex
  41423. #: guix-git/doc/guix.texi:27824
  41424. #, no-wrap
  41425. msgid "php-fpm"
  41426. msgstr ""
  41427. #. type: Plain text
  41428. #: guix-git/doc/guix.texi:27827
  41429. msgid "PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size."
  41430. msgstr ""
  41431. #. type: Plain text
  41432. #: guix-git/doc/guix.texi:27829
  41433. msgid "These features include:"
  41434. msgstr ""
  41435. #. type: item
  41436. #: guix-git/doc/guix.texi:27830
  41437. #, no-wrap
  41438. msgid "Adaptive process spawning"
  41439. msgstr ""
  41440. #. type: item
  41441. #: guix-git/doc/guix.texi:27831
  41442. #, no-wrap
  41443. msgid "Basic statistics (similar to Apache's mod_status)"
  41444. msgstr ""
  41445. #. type: item
  41446. #: guix-git/doc/guix.texi:27832
  41447. #, no-wrap
  41448. msgid "Advanced process management with graceful stop/start"
  41449. msgstr ""
  41450. #. type: item
  41451. #: guix-git/doc/guix.texi:27833
  41452. #, no-wrap
  41453. msgid "Ability to start workers with different uid/gid/chroot/environment"
  41454. msgstr ""
  41455. #. type: itemize
  41456. #: guix-git/doc/guix.texi:27835
  41457. msgid "and different php.ini (replaces safe_mode)"
  41458. msgstr ""
  41459. #. type: item
  41460. #: guix-git/doc/guix.texi:27835
  41461. #, no-wrap
  41462. msgid "Stdout & stderr logging"
  41463. msgstr ""
  41464. #. type: item
  41465. #: guix-git/doc/guix.texi:27836
  41466. #, no-wrap
  41467. msgid "Emergency restart in case of accidental opcode cache destruction"
  41468. msgstr ""
  41469. #. type: item
  41470. #: guix-git/doc/guix.texi:27837
  41471. #, no-wrap
  41472. msgid "Accelerated upload support"
  41473. msgstr ""
  41474. #. type: item
  41475. #: guix-git/doc/guix.texi:27838
  41476. #, no-wrap
  41477. msgid "Support for a \"slowlog\""
  41478. msgstr ""
  41479. #. type: item
  41480. #: guix-git/doc/guix.texi:27839
  41481. #, no-wrap
  41482. msgid "Enhancements to FastCGI, such as fastcgi_finish_request() -"
  41483. msgstr ""
  41484. #. type: itemize
  41485. #: guix-git/doc/guix.texi:27842
  41486. msgid "a special function to finish request & flush all data while continuing to do something time-consuming (video converting, stats processing, etc.)"
  41487. msgstr ""
  41488. #. type: Plain text
  41489. #: guix-git/doc/guix.texi:27844
  41490. msgid "...@: and much more."
  41491. msgstr ""
  41492. #. type: defvr
  41493. #: guix-git/doc/guix.texi:27845
  41494. #, no-wrap
  41495. msgid "{Scheme Variable} php-fpm-service-type"
  41496. msgstr ""
  41497. #. type: defvr
  41498. #: guix-git/doc/guix.texi:27847
  41499. msgid "A Service type for @code{php-fpm}."
  41500. msgstr ""
  41501. #. type: deftp
  41502. #: guix-git/doc/guix.texi:27849
  41503. #, no-wrap
  41504. msgid "{Data Type} php-fpm-configuration"
  41505. msgstr ""
  41506. #. type: deftp
  41507. #: guix-git/doc/guix.texi:27851
  41508. msgid "Data Type for php-fpm service configuration."
  41509. msgstr ""
  41510. #. type: item
  41511. #: guix-git/doc/guix.texi:27852
  41512. #, no-wrap
  41513. msgid "@code{php} (default: @code{php})"
  41514. msgstr ""
  41515. #. type: table
  41516. #: guix-git/doc/guix.texi:27854
  41517. msgid "The php package to use."
  41518. msgstr ""
  41519. #. type: item
  41520. #: guix-git/doc/guix.texi:27854
  41521. #, no-wrap
  41522. msgid "@code{socket} (default: @code{(string-append \"/var/run/php\" (version-major (package-version php)) \"-fpm.sock\")})"
  41523. msgstr ""
  41524. #. type: table
  41525. #: guix-git/doc/guix.texi:27856
  41526. msgid "The address on which to accept FastCGI requests. Valid syntaxes are:"
  41527. msgstr ""
  41528. #. type: code{#1}
  41529. #: guix-git/doc/guix.texi:27857
  41530. #, no-wrap
  41531. msgid "\"ip.add.re.ss:port\""
  41532. msgstr ""
  41533. #. type: table
  41534. #: guix-git/doc/guix.texi:27859
  41535. msgid "Listen on a TCP socket to a specific address on a specific port."
  41536. msgstr ""
  41537. #. type: code{#1}
  41538. #: guix-git/doc/guix.texi:27859
  41539. #, no-wrap
  41540. msgid "\"port\""
  41541. msgstr ""
  41542. #. type: table
  41543. #: guix-git/doc/guix.texi:27861
  41544. msgid "Listen on a TCP socket to all addresses on a specific port."
  41545. msgstr ""
  41546. #. type: code{#1}
  41547. #: guix-git/doc/guix.texi:27861
  41548. #, no-wrap
  41549. msgid "\"/path/to/unix/socket\""
  41550. msgstr ""
  41551. #. type: table
  41552. #: guix-git/doc/guix.texi:27863
  41553. msgid "Listen on a unix socket."
  41554. msgstr ""
  41555. #. type: item
  41556. #: guix-git/doc/guix.texi:27865
  41557. #, no-wrap
  41558. msgid "@code{user} (default: @code{php-fpm})"
  41559. msgstr ""
  41560. #. type: table
  41561. #: guix-git/doc/guix.texi:27867
  41562. msgid "User who will own the php worker processes."
  41563. msgstr ""
  41564. #. type: item
  41565. #: guix-git/doc/guix.texi:27867
  41566. #, no-wrap
  41567. msgid "@code{group} (default: @code{php-fpm})"
  41568. msgstr ""
  41569. #. type: table
  41570. #: guix-git/doc/guix.texi:27869
  41571. msgid "Group of the worker processes."
  41572. msgstr ""
  41573. #. type: item
  41574. #: guix-git/doc/guix.texi:27869
  41575. #, no-wrap
  41576. msgid "@code{socket-user} (default: @code{php-fpm})"
  41577. msgstr ""
  41578. #. type: table
  41579. #: guix-git/doc/guix.texi:27871
  41580. msgid "User who can speak to the php-fpm socket."
  41581. msgstr ""
  41582. #. type: item
  41583. #: guix-git/doc/guix.texi:27871
  41584. #, fuzzy, no-wrap
  41585. msgid "@code{socket-group} (default: @code{nginx})"
  41586. msgstr "@code{gnome}(默认值:@code{gnome})"
  41587. #. type: table
  41588. #: guix-git/doc/guix.texi:27873
  41589. msgid "Group that can speak to the php-fpm socket."
  41590. msgstr ""
  41591. #. type: item
  41592. #: guix-git/doc/guix.texi:27873
  41593. #, no-wrap
  41594. msgid "@code{pid-file} (default: @code{(string-append \"/var/run/php\" (version-major (package-version php)) \"-fpm.pid\")})"
  41595. msgstr ""
  41596. #. type: table
  41597. #: guix-git/doc/guix.texi:27876
  41598. msgid "The process id of the php-fpm process is written to this file once the service has started."
  41599. msgstr ""
  41600. #. type: item
  41601. #: guix-git/doc/guix.texi:27876
  41602. #, no-wrap
  41603. msgid "@code{log-file} (default: @code{(string-append \"/var/log/php\" (version-major (package-version php)) \"-fpm.log\")})"
  41604. msgstr ""
  41605. #. type: table
  41606. #: guix-git/doc/guix.texi:27878
  41607. msgid "Log for the php-fpm master process."
  41608. msgstr ""
  41609. #. type: item
  41610. #: guix-git/doc/guix.texi:27878
  41611. #, no-wrap
  41612. msgid "@code{process-manager} (default: @code{(php-fpm-dynamic-process-manager-configuration)})"
  41613. msgstr ""
  41614. #. type: table
  41615. #: guix-git/doc/guix.texi:27881
  41616. msgid "Detailed settings for the php-fpm process manager. Must be one of:"
  41617. msgstr ""
  41618. #. type: code{#1}
  41619. #: guix-git/doc/guix.texi:27882
  41620. #, no-wrap
  41621. msgid "<php-fpm-dynamic-process-manager-configuration>"
  41622. msgstr ""
  41623. #. type: code{#1}
  41624. #: guix-git/doc/guix.texi:27883
  41625. #, no-wrap
  41626. msgid "<php-fpm-static-process-manager-configuration>"
  41627. msgstr ""
  41628. #. type: code{#1}
  41629. #: guix-git/doc/guix.texi:27884
  41630. #, no-wrap
  41631. msgid "<php-fpm-on-demand-process-manager-configuration>"
  41632. msgstr ""
  41633. #. type: item
  41634. #: guix-git/doc/guix.texi:27886
  41635. #, no-wrap
  41636. msgid "@code{display-errors} (default @code{#f})"
  41637. msgstr ""
  41638. #. type: table
  41639. #: guix-git/doc/guix.texi:27891
  41640. 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."
  41641. msgstr ""
  41642. #. type: item
  41643. #: guix-git/doc/guix.texi:27891
  41644. #, no-wrap
  41645. msgid "@code{timezone} (default @code{#f})"
  41646. msgstr ""
  41647. #. type: table
  41648. #: guix-git/doc/guix.texi:27893
  41649. msgid "Specifies @code{php_admin_value[date.timezone]} parameter."
  41650. msgstr ""
  41651. #. type: item
  41652. #: guix-git/doc/guix.texi:27893
  41653. #, no-wrap
  41654. msgid "@code{workers-logfile} (default @code{(string-append \"/var/log/php\" (version-major (package-version php)) \"-fpm.www.log\")})"
  41655. msgstr ""
  41656. #. type: table
  41657. #: guix-git/doc/guix.texi:27896
  41658. msgid "This file will log the @code{stderr} outputs of php worker processes. Can be set to @code{#f} to disable logging."
  41659. msgstr ""
  41660. #. type: item
  41661. #: guix-git/doc/guix.texi:27896
  41662. #, no-wrap
  41663. msgid "@code{file} (default @code{#f})"
  41664. msgstr ""
  41665. #. type: table
  41666. #: guix-git/doc/guix.texi:27899
  41667. msgid "An optional override of the whole configuration. You can use the @code{mixed-text-file} function or an absolute filepath for it."
  41668. msgstr ""
  41669. #. type: item
  41670. #: guix-git/doc/guix.texi:27899
  41671. #, fuzzy, no-wrap
  41672. msgid "@code{php-ini-file} (default @code{#f})"
  41673. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  41674. #. type: table
  41675. #: guix-git/doc/guix.texi:27903
  41676. 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."
  41677. msgstr ""
  41678. #. type: table
  41679. #: guix-git/doc/guix.texi:27907
  41680. 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:"
  41681. msgstr ""
  41682. #. type: lisp
  41683. #: guix-git/doc/guix.texi:27912
  41684. #, no-wrap
  41685. msgid ""
  41686. "(define %local-php-ini\n"
  41687. " (plain-file \"php.ini\"\n"
  41688. " \"memory_limit = 2G\n"
  41689. "max_execution_time = 1800\"))\n"
  41690. "\n"
  41691. msgstr ""
  41692. #. type: lisp
  41693. #: guix-git/doc/guix.texi:27919
  41694. #, no-wrap
  41695. msgid ""
  41696. "(operating-system\n"
  41697. " ;; @dots{}\n"
  41698. " (services (cons (service php-fpm-service-type\n"
  41699. " (php-fpm-configuration\n"
  41700. " (php-ini-file %local-php-ini)))\n"
  41701. " %base-services)))\n"
  41702. msgstr ""
  41703. #. type: table
  41704. #: guix-git/doc/guix.texi:27924
  41705. 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."
  41706. msgstr ""
  41707. #. type: deftp
  41708. #: guix-git/doc/guix.texi:27927
  41709. #, no-wrap
  41710. msgid "{Data type} php-fpm-dynamic-process-manager-configuration"
  41711. msgstr ""
  41712. #. type: deftp
  41713. #: guix-git/doc/guix.texi:27931
  41714. 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."
  41715. msgstr ""
  41716. #. type: item
  41717. #: guix-git/doc/guix.texi:27932 guix-git/doc/guix.texi:27948
  41718. #: guix-git/doc/guix.texi:27958
  41719. #, no-wrap
  41720. msgid "@code{max-children} (default: @code{5})"
  41721. msgstr ""
  41722. #. type: table
  41723. #: guix-git/doc/guix.texi:27934 guix-git/doc/guix.texi:27950
  41724. #: guix-git/doc/guix.texi:27960
  41725. msgid "Maximum of worker processes."
  41726. msgstr ""
  41727. #. type: item
  41728. #: guix-git/doc/guix.texi:27934
  41729. #, no-wrap
  41730. msgid "@code{start-servers} (default: @code{2})"
  41731. msgstr ""
  41732. #. type: table
  41733. #: guix-git/doc/guix.texi:27936
  41734. msgid "How many worker processes should be started on start-up."
  41735. msgstr ""
  41736. #. type: item
  41737. #: guix-git/doc/guix.texi:27936
  41738. #, no-wrap
  41739. msgid "@code{min-spare-servers} (default: @code{1})"
  41740. msgstr ""
  41741. #. type: table
  41742. #: guix-git/doc/guix.texi:27938
  41743. msgid "How many spare worker processes should be kept around at minimum."
  41744. msgstr ""
  41745. #. type: item
  41746. #: guix-git/doc/guix.texi:27938
  41747. #, no-wrap
  41748. msgid "@code{max-spare-servers} (default: @code{3})"
  41749. msgstr ""
  41750. #. type: table
  41751. #: guix-git/doc/guix.texi:27940
  41752. msgid "How many spare worker processes should be kept around at maximum."
  41753. msgstr ""
  41754. #. type: deftp
  41755. #: guix-git/doc/guix.texi:27943
  41756. #, no-wrap
  41757. msgid "{Data type} php-fpm-static-process-manager-configuration"
  41758. msgstr ""
  41759. #. type: deftp
  41760. #: guix-git/doc/guix.texi:27947
  41761. 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."
  41762. msgstr ""
  41763. #. type: deftp
  41764. #: guix-git/doc/guix.texi:27953
  41765. #, no-wrap
  41766. msgid "{Data type} php-fpm-on-demand-process-manager-configuration"
  41767. msgstr ""
  41768. #. type: deftp
  41769. #: guix-git/doc/guix.texi:27957
  41770. 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."
  41771. msgstr ""
  41772. #. type: item
  41773. #: guix-git/doc/guix.texi:27960
  41774. #, no-wrap
  41775. msgid "@code{process-idle-timeout} (default: @code{10})"
  41776. msgstr ""
  41777. #. type: table
  41778. #: guix-git/doc/guix.texi:27962
  41779. msgid "The time in seconds after which a process with no requests is killed."
  41780. msgstr ""
  41781. #. type: deffn
  41782. #: guix-git/doc/guix.texi:27966
  41783. #, no-wrap
  41784. msgid "{Scheme Procedure} nginx-php-location @"
  41785. msgstr ""
  41786. #. type: deffn
  41787. #: guix-git/doc/guix.texi:27972
  41788. 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}."
  41789. msgstr ""
  41790. #. type: Plain text
  41791. #: guix-git/doc/guix.texi:27975
  41792. msgid "A simple services setup for nginx with php can look like this:"
  41793. msgstr ""
  41794. #. type: lisp
  41795. #: guix-git/doc/guix.texi:27988
  41796. #, no-wrap
  41797. msgid ""
  41798. "(services (cons* (service dhcp-client-service-type)\n"
  41799. " (service php-fpm-service-type)\n"
  41800. " (service nginx-service-type\n"
  41801. " (nginx-server-configuration\n"
  41802. " (server-name '(\"example.com\"))\n"
  41803. " (root \"/srv/http/\")\n"
  41804. " (locations\n"
  41805. " (list (nginx-php-location)))\n"
  41806. " (listen '(\"80\"))\n"
  41807. " (ssl-certificate #f)\n"
  41808. " (ssl-certificate-key #f)))\n"
  41809. " %base-services))\n"
  41810. msgstr ""
  41811. #. type: cindex
  41812. #: guix-git/doc/guix.texi:27990
  41813. #, no-wrap
  41814. msgid "cat-avatar-generator"
  41815. msgstr ""
  41816. #. type: Plain text
  41817. #: guix-git/doc/guix.texi:27994
  41818. 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."
  41819. msgstr ""
  41820. #. type: deffn
  41821. #: guix-git/doc/guix.texi:27995
  41822. #, no-wrap
  41823. msgid "{Scheme Procedure} cat-avatar-generator-service @"
  41824. msgstr ""
  41825. #. type: deffn
  41826. #: guix-git/doc/guix.texi:28003
  41827. 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."
  41828. msgstr ""
  41829. #. type: Plain text
  41830. #: guix-git/doc/guix.texi:28006
  41831. msgid "A simple setup for cat-avatar-generator can look like this:"
  41832. msgstr ""
  41833. #. type: lisp
  41834. #: guix-git/doc/guix.texi:28013
  41835. #, no-wrap
  41836. msgid ""
  41837. "(services (cons* (cat-avatar-generator-service\n"
  41838. " #:configuration\n"
  41839. " (nginx-server-configuration\n"
  41840. " (server-name '(\"example.com\"))))\n"
  41841. " ...\n"
  41842. " %base-services))\n"
  41843. msgstr ""
  41844. #. type: subsubheading
  41845. #: guix-git/doc/guix.texi:28015
  41846. #, no-wrap
  41847. msgid "Hpcguix-web"
  41848. msgstr ""
  41849. #. type: cindex
  41850. #: guix-git/doc/guix.texi:28017
  41851. #, no-wrap
  41852. msgid "hpcguix-web"
  41853. msgstr ""
  41854. #. type: Plain text
  41855. #: guix-git/doc/guix.texi:28022
  41856. 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."
  41857. msgstr ""
  41858. #. type: defvr
  41859. #: guix-git/doc/guix.texi:28023
  41860. #, no-wrap
  41861. msgid "{Scheme Variable} hpcguix-web-service-type"
  41862. msgstr ""
  41863. #. type: defvr
  41864. #: guix-git/doc/guix.texi:28025
  41865. msgid "The service type for @code{hpcguix-web}."
  41866. msgstr ""
  41867. #. type: deftp
  41868. #: guix-git/doc/guix.texi:28027
  41869. #, no-wrap
  41870. msgid "{Data Type} hpcguix-web-configuration"
  41871. msgstr ""
  41872. #. type: deftp
  41873. #: guix-git/doc/guix.texi:28029
  41874. msgid "Data type for the hpcguix-web service configuration."
  41875. msgstr ""
  41876. #. type: code{#1}
  41877. #: guix-git/doc/guix.texi:28031
  41878. #, no-wrap
  41879. msgid "specs"
  41880. msgstr ""
  41881. #. type: table
  41882. #: guix-git/doc/guix.texi:28034
  41883. msgid "A gexp (@pxref{G-Expressions}) specifying the hpcguix-web service configuration. The main items available in this spec are:"
  41884. msgstr ""
  41885. #. type: item
  41886. #: guix-git/doc/guix.texi:28036
  41887. #, no-wrap
  41888. msgid "@code{title-prefix} (default: @code{\"hpcguix | \"})"
  41889. msgstr ""
  41890. #. type: table
  41891. #: guix-git/doc/guix.texi:28038
  41892. msgid "The page title prefix."
  41893. msgstr ""
  41894. #. type: item
  41895. #: guix-git/doc/guix.texi:28039
  41896. #, no-wrap
  41897. msgid "@code{guix-command} (default: @code{\"guix\"})"
  41898. msgstr ""
  41899. #. type: table
  41900. #: guix-git/doc/guix.texi:28041
  41901. msgid "The @command{guix} command."
  41902. msgstr ""
  41903. #. type: item
  41904. #: guix-git/doc/guix.texi:28042
  41905. #, no-wrap
  41906. msgid "@code{package-filter-proc} (default: @code{(const #t)})"
  41907. msgstr ""
  41908. #. type: table
  41909. #: guix-git/doc/guix.texi:28044
  41910. msgid "A procedure specifying how to filter packages that are displayed."
  41911. msgstr ""
  41912. #. type: item
  41913. #: guix-git/doc/guix.texi:28045
  41914. #, no-wrap
  41915. msgid "@code{package-page-extension-proc} (default: @code{(const '())})"
  41916. msgstr ""
  41917. #. type: table
  41918. #: guix-git/doc/guix.texi:28047
  41919. msgid "Extension package for @code{hpcguix-web}."
  41920. msgstr ""
  41921. #. type: item
  41922. #: guix-git/doc/guix.texi:28048
  41923. #, no-wrap
  41924. msgid "@code{menu} (default: @code{'()})"
  41925. msgstr ""
  41926. #. type: table
  41927. #: guix-git/doc/guix.texi:28050
  41928. msgid "Additional entry in page @code{menu}."
  41929. msgstr ""
  41930. #. type: item
  41931. #: guix-git/doc/guix.texi:28051
  41932. #, no-wrap
  41933. msgid "@code{channels} (default: @code{%default-channels})"
  41934. msgstr ""
  41935. #. type: table
  41936. #: guix-git/doc/guix.texi:28053
  41937. msgid "List of channels from which the package list is built (@pxref{Channels})."
  41938. msgstr ""
  41939. #. type: item
  41940. #: guix-git/doc/guix.texi:28054
  41941. #, no-wrap
  41942. msgid "@code{package-list-expiration} (default: @code{(* 12 3600)})"
  41943. msgstr ""
  41944. #. type: table
  41945. #: guix-git/doc/guix.texi:28057
  41946. msgid "The expiration time, in seconds, after which the package list is rebuilt from the latest instances of the given channels."
  41947. msgstr ""
  41948. #. type: table
  41949. #: guix-git/doc/guix.texi:28062
  41950. msgid "See the hpcguix-web repository for a @uref{https://github.com/UMCUGenetics/hpcguix-web/blob/master/hpcweb-configuration.scm, complete example}."
  41951. msgstr ""
  41952. #. type: item
  41953. #: guix-git/doc/guix.texi:28063
  41954. #, no-wrap
  41955. msgid "@code{package} (default: @code{hpcguix-web})"
  41956. msgstr ""
  41957. #. type: table
  41958. #: guix-git/doc/guix.texi:28065
  41959. msgid "The hpcguix-web package to use."
  41960. msgstr ""
  41961. #. type: item
  41962. #: guix-git/doc/guix.texi:28066
  41963. #, fuzzy, no-wrap
  41964. msgid "@code{address} (default: @code{\"127.0.0.1\"})"
  41965. msgstr "@code{display}(默认值:@code{\":0\"})"
  41966. #. type: table
  41967. #: guix-git/doc/guix.texi:28068
  41968. msgid "The IP address to listen to."
  41969. msgstr ""
  41970. #. type: item
  41971. #: guix-git/doc/guix.texi:28069
  41972. #, fuzzy, no-wrap
  41973. msgid "@code{port} (default: @code{5000})"
  41974. msgstr "@code{port}(默认值:@code{22})"
  41975. #. type: table
  41976. #: guix-git/doc/guix.texi:28071
  41977. msgid "The port number to listen to."
  41978. msgstr ""
  41979. #. type: Plain text
  41980. #: guix-git/doc/guix.texi:28075
  41981. msgid "A typical hpcguix-web service declaration looks like this:"
  41982. msgstr ""
  41983. #. type: lisp
  41984. #: guix-git/doc/guix.texi:28084
  41985. #, no-wrap
  41986. msgid ""
  41987. "(service hpcguix-web-service-type\n"
  41988. " (hpcguix-web-configuration\n"
  41989. " (specs\n"
  41990. " #~(define site-config\n"
  41991. " (hpcweb-configuration\n"
  41992. " (title-prefix \"Guix-HPC - \")\n"
  41993. " (menu '((\"/about\" \"ABOUT\"))))))))\n"
  41994. msgstr ""
  41995. #. type: quotation
  41996. #: guix-git/doc/guix.texi:28091
  41997. 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."
  41998. msgstr ""
  41999. #. type: quotation
  42000. #: guix-git/doc/guix.texi:28095
  42001. 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."
  42002. msgstr ""
  42003. #. type: cindex
  42004. #: guix-git/doc/guix.texi:28097 guix-git/doc/guix.texi:28099
  42005. #, no-wrap
  42006. msgid "gmnisrv"
  42007. msgstr ""
  42008. #. type: Plain text
  42009. #: guix-git/doc/guix.texi:28102
  42010. msgid "The @uref{https://git.sr.ht/~sircmpwn/gmnisrv, gmnisrv} program is a simple @uref{https://gemini.circumlunar.space/, Gemini} protocol server."
  42011. msgstr ""
  42012. #. type: deffn
  42013. #: guix-git/doc/guix.texi:28103
  42014. #, no-wrap
  42015. msgid "{Scheme Variable} gmnisrv-service-type"
  42016. msgstr ""
  42017. #. type: deffn
  42018. #: guix-git/doc/guix.texi:28106
  42019. msgid "This is the type of the gmnisrv service, whose value should be a @code{gmnisrv-configuration} object, as in this example:"
  42020. msgstr ""
  42021. #. type: lisp
  42022. #: guix-git/doc/guix.texi:28111
  42023. #, no-wrap
  42024. msgid ""
  42025. "(service gmnisrv-service-type\n"
  42026. " (gmnisrv-configuration\n"
  42027. " (config-file (local-file \"./my-gmnisrv.ini\"))))\n"
  42028. msgstr ""
  42029. #. type: deftp
  42030. #: guix-git/doc/guix.texi:28114
  42031. #, no-wrap
  42032. msgid "{Data Type} gmnisrv-configuration"
  42033. msgstr ""
  42034. #. type: deftp
  42035. #: guix-git/doc/guix.texi:28116
  42036. #, fuzzy
  42037. msgid "Data type representing the configuration of gmnisrv."
  42038. msgstr "管理操作系统配置。"
  42039. #. type: item
  42040. #: guix-git/doc/guix.texi:28118
  42041. #, fuzzy, no-wrap
  42042. msgid "@code{package} (default: @var{gmnisrv})"
  42043. msgstr "@code{gnome}(默认值:@code{gnome})"
  42044. #. type: table
  42045. #: guix-git/doc/guix.texi:28120
  42046. msgid "Package object of the gmnisrv server."
  42047. msgstr ""
  42048. #. type: item
  42049. #: guix-git/doc/guix.texi:28121
  42050. #, fuzzy, no-wrap
  42051. msgid "@code{config-file} (default: @code{%default-gmnisrv-config-file})"
  42052. msgstr "@code{gnome}(默认值:@code{gnome})"
  42053. #. type: table
  42054. #: guix-git/doc/guix.texi:28127
  42055. 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}."
  42056. msgstr ""
  42057. #. type: subsubheading
  42058. #: guix-git/doc/guix.texi:28131
  42059. #, no-wrap
  42060. msgid "Agate"
  42061. msgstr ""
  42062. #. type: cindex
  42063. #: guix-git/doc/guix.texi:28133
  42064. #, no-wrap
  42065. msgid "agate"
  42066. msgstr ""
  42067. #. type: Plain text
  42068. #: guix-git/doc/guix.texi:28138
  42069. 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."
  42070. msgstr ""
  42071. #. type: deffn
  42072. #: guix-git/doc/guix.texi:28139
  42073. #, no-wrap
  42074. msgid "{Scheme Variable} agate-service-type"
  42075. msgstr ""
  42076. #. type: deffn
  42077. #: guix-git/doc/guix.texi:28142
  42078. msgid "This is the type of the agate service, whose value should be an @code{agate-service-type} object, as in this example:"
  42079. msgstr ""
  42080. #. type: lisp
  42081. #: guix-git/doc/guix.texi:28149
  42082. #, no-wrap
  42083. msgid ""
  42084. "(service agate-service-type\n"
  42085. "\t (agate-configuration\n"
  42086. "\t (content \"/srv/gemini\")\n"
  42087. "\t (cert \"/srv/cert.pem\")\n"
  42088. "\t (key \"/srv/key.rsa\")))\n"
  42089. msgstr ""
  42090. #. type: deffn
  42091. #: guix-git/doc/guix.texi:28154
  42092. 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."
  42093. msgstr ""
  42094. #. type: deffn
  42095. #: guix-git/doc/guix.texi:28157
  42096. msgid "To obtain a certificate and a key, you could, for example, use OpenSSL, running a command similar to the following example:"
  42097. msgstr ""
  42098. #. type: example
  42099. #: guix-git/doc/guix.texi:28161
  42100. #, no-wrap
  42101. msgid ""
  42102. "openssl req -x509 -newkey rsa:4096 -keyout key.rsa -out cert.pem \\\n"
  42103. " -days 3650 -nodes -subj \"/CN=example.com\"\n"
  42104. msgstr ""
  42105. #. type: deffn
  42106. #: guix-git/doc/guix.texi:28166
  42107. 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."
  42108. msgstr ""
  42109. #. type: deftp
  42110. #: guix-git/doc/guix.texi:28169
  42111. #, fuzzy, no-wrap
  42112. msgid "{Data Type} agate-configuration"
  42113. msgstr "管理操作系统配置。"
  42114. #. type: deftp
  42115. #: guix-git/doc/guix.texi:28171
  42116. #, fuzzy
  42117. msgid "Data type representing the configuration of Agate."
  42118. msgstr "管理操作系统配置。"
  42119. #. type: item
  42120. #: guix-git/doc/guix.texi:28173
  42121. #, fuzzy, no-wrap
  42122. msgid "@code{package} (default: @code{agate})"
  42123. msgstr "@code{mate}(默认值:@code{mate})"
  42124. #. type: table
  42125. #: guix-git/doc/guix.texi:28175
  42126. #, fuzzy
  42127. msgid "The package object of the Agate server."
  42128. msgstr "软件包数据类型。"
  42129. #. type: item
  42130. #: guix-git/doc/guix.texi:28176
  42131. #, fuzzy, no-wrap
  42132. msgid "@code{content} (default: @file{\"/srv/gemini\"})"
  42133. msgstr "@code{mate}(默认值:@code{mate})"
  42134. #. type: table
  42135. #: guix-git/doc/guix.texi:28178
  42136. msgid "The directory from which Agate will serve files."
  42137. msgstr ""
  42138. #. type: item
  42139. #: guix-git/doc/guix.texi:28179
  42140. #, fuzzy, no-wrap
  42141. msgid "@code{cert} (default: @code{#f})"
  42142. msgstr "@code{port}(默认值:@code{22})"
  42143. #. type: table
  42144. #: guix-git/doc/guix.texi:28182
  42145. 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."
  42146. msgstr ""
  42147. #. type: item
  42148. #: guix-git/doc/guix.texi:28183 guix-git/doc/guix.texi:28619
  42149. #, no-wrap
  42150. msgid "@code{key} (default: @code{#f})"
  42151. msgstr ""
  42152. #. type: table
  42153. #: guix-git/doc/guix.texi:28186
  42154. 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."
  42155. msgstr ""
  42156. #. type: item
  42157. #: guix-git/doc/guix.texi:28187
  42158. #, fuzzy, no-wrap
  42159. msgid "@code{addr} (default: @code{'(\"0.0.0.0:1965\" \"[::]:1965\")})"
  42160. msgstr "@code{display}(默认值:@code{\":0\"})"
  42161. #. type: table
  42162. #: guix-git/doc/guix.texi:28189
  42163. msgid "A list of the addresses to listen on."
  42164. msgstr ""
  42165. #. type: table
  42166. #: guix-git/doc/guix.texi:28192
  42167. msgid "The domain name of this Gemini server. Optional."
  42168. msgstr ""
  42169. #. type: item
  42170. #: guix-git/doc/guix.texi:28193
  42171. #, fuzzy, no-wrap
  42172. msgid "@code{lang} (default: @code{#f})"
  42173. msgstr "@code{challenge}(默认值:@code{#f})"
  42174. #. type: table
  42175. #: guix-git/doc/guix.texi:28195
  42176. msgid "RFC 4646 language code(s) for text/gemini documents. Optional."
  42177. msgstr ""
  42178. #. type: item
  42179. #: guix-git/doc/guix.texi:28196
  42180. #, fuzzy, no-wrap
  42181. msgid "@code{silent?} (default: @code{#f})"
  42182. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  42183. #. type: table
  42184. #: guix-git/doc/guix.texi:28198
  42185. msgid "Set to @code{#t} to disable logging output."
  42186. msgstr ""
  42187. #. type: item
  42188. #: guix-git/doc/guix.texi:28199
  42189. #, fuzzy, no-wrap
  42190. msgid "@code{serve-secret?} (default: @code{#f})"
  42191. msgstr "@code{speed}(默认值:@code{1.0})"
  42192. #. type: table
  42193. #: guix-git/doc/guix.texi:28202
  42194. msgid "Set to @code{#t} to serve secret files (files/directories starting with a dot)."
  42195. msgstr ""
  42196. #. type: item
  42197. #: guix-git/doc/guix.texi:28203
  42198. #, fuzzy, no-wrap
  42199. msgid "@code{log-ip?} (default: @code{#t})"
  42200. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  42201. #. type: table
  42202. #: guix-git/doc/guix.texi:28205
  42203. msgid "Whether or not to output IP addresses when logging."
  42204. msgstr ""
  42205. #. type: item
  42206. #: guix-git/doc/guix.texi:28206
  42207. #, fuzzy, no-wrap
  42208. msgid "@code{user} (default: @code{\"agate\"})"
  42209. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  42210. #. type: table
  42211. #: guix-git/doc/guix.texi:28208
  42212. msgid "Owner of the @code{agate} process."
  42213. msgstr ""
  42214. #. type: item
  42215. #: guix-git/doc/guix.texi:28209
  42216. #, fuzzy, no-wrap
  42217. msgid "@code{group} (default: @code{\"agate\"})"
  42218. msgstr "@code{gnome}(默认值:@code{gnome})"
  42219. #. type: table
  42220. #: guix-git/doc/guix.texi:28211
  42221. msgid "Owner's group of the @code{agate} process."
  42222. msgstr ""
  42223. #. type: item
  42224. #: guix-git/doc/guix.texi:28212
  42225. #, fuzzy, no-wrap
  42226. msgid "@code{log-file} (default: @file{\"/var/log/agate.log\"})"
  42227. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  42228. #. type: table
  42229. #: guix-git/doc/guix.texi:28214
  42230. msgid "The file which should store the logging output of Agate."
  42231. msgstr ""
  42232. #. type: cindex
  42233. #: guix-git/doc/guix.texi:28221
  42234. #, no-wrap
  42235. msgid "Web"
  42236. msgstr ""
  42237. #. type: cindex
  42238. #: guix-git/doc/guix.texi:28222
  42239. #, no-wrap
  42240. msgid "HTTP, HTTPS"
  42241. msgstr ""
  42242. #. type: cindex
  42243. #: guix-git/doc/guix.texi:28223
  42244. #, no-wrap
  42245. msgid "Let's Encrypt"
  42246. msgstr ""
  42247. #. type: cindex
  42248. #: guix-git/doc/guix.texi:28224
  42249. #, no-wrap
  42250. msgid "TLS certificates"
  42251. msgstr ""
  42252. #. type: Plain text
  42253. #: guix-git/doc/guix.texi:28231
  42254. 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."
  42255. msgstr ""
  42256. #. type: Plain text
  42257. #: guix-git/doc/guix.texi:28243
  42258. 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."
  42259. msgstr ""
  42260. #. type: Plain text
  42261. #: guix-git/doc/guix.texi:28250
  42262. 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)."
  42263. msgstr ""
  42264. #. type: Plain text
  42265. #: guix-git/doc/guix.texi:28256
  42266. 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."
  42267. msgstr ""
  42268. #. type: Plain text
  42269. #: guix-git/doc/guix.texi:28260
  42270. 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}."
  42271. msgstr ""
  42272. #. type: defvr
  42273. #: guix-git/doc/guix.texi:28261
  42274. #, no-wrap
  42275. msgid "{Scheme Variable} certbot-service-type"
  42276. msgstr ""
  42277. #. type: defvr
  42278. #: guix-git/doc/guix.texi:28264
  42279. 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:"
  42280. msgstr ""
  42281. #. type: lisp
  42282. #: guix-git/doc/guix.texi:28271
  42283. #, no-wrap
  42284. msgid ""
  42285. "(define %nginx-deploy-hook\n"
  42286. " (program-file\n"
  42287. " \"nginx-deploy-hook\"\n"
  42288. " #~(let ((pid (call-with-input-file \"/var/run/nginx/pid\" read)))\n"
  42289. " (kill pid SIGHUP))))\n"
  42290. "\n"
  42291. msgstr ""
  42292. #. type: lisp
  42293. #: guix-git/doc/guix.texi:28282
  42294. #, no-wrap
  42295. msgid ""
  42296. "(service certbot-service-type\n"
  42297. " (certbot-configuration\n"
  42298. " (email \"foo@@example.net\")\n"
  42299. " (certificates\n"
  42300. " (list\n"
  42301. " (certificate-configuration\n"
  42302. " (domains '(\"example.net\" \"www.example.net\"))\n"
  42303. " (deploy-hook %nginx-deploy-hook))\n"
  42304. " (certificate-configuration\n"
  42305. " (domains '(\"bar.example.net\")))))))\n"
  42306. msgstr ""
  42307. #. type: defvr
  42308. #: guix-git/doc/guix.texi:28285
  42309. msgid "See below for details about @code{certbot-configuration}."
  42310. msgstr ""
  42311. #. type: deftp
  42312. #: guix-git/doc/guix.texi:28287
  42313. #, no-wrap
  42314. msgid "{Data Type} certbot-configuration"
  42315. msgstr ""
  42316. #. type: deftp
  42317. #: guix-git/doc/guix.texi:28290
  42318. msgid "Data type representing the configuration of the @code{certbot} service. This type has the following parameters:"
  42319. msgstr ""
  42320. #. type: item
  42321. #: guix-git/doc/guix.texi:28292
  42322. #, no-wrap
  42323. msgid "@code{package} (default: @code{certbot})"
  42324. msgstr ""
  42325. #. type: table
  42326. #: guix-git/doc/guix.texi:28294
  42327. msgid "The certbot package to use."
  42328. msgstr ""
  42329. #. type: item
  42330. #: guix-git/doc/guix.texi:28295
  42331. #, no-wrap
  42332. msgid "@code{webroot} (default: @code{/var/www})"
  42333. msgstr ""
  42334. #. type: table
  42335. #: guix-git/doc/guix.texi:28298
  42336. msgid "The directory from which to serve the Let's Encrypt challenge/response files."
  42337. msgstr ""
  42338. #. type: item
  42339. #: guix-git/doc/guix.texi:28299
  42340. #, no-wrap
  42341. msgid "@code{certificates} (default: @code{()})"
  42342. msgstr ""
  42343. #. type: table
  42344. #: guix-git/doc/guix.texi:28303
  42345. 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}."
  42346. msgstr ""
  42347. #. type: item
  42348. #: guix-git/doc/guix.texi:28304
  42349. #, fuzzy, no-wrap
  42350. msgid "@code{email} (default: @code{#f})"
  42351. msgstr "@code{challenge}(默认值:@code{#f})"
  42352. #. type: table
  42353. #: guix-git/doc/guix.texi:28308
  42354. 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."
  42355. msgstr ""
  42356. #. type: item
  42357. #: guix-git/doc/guix.texi:28309 guix-git/doc/guix.texi:30068
  42358. #, fuzzy, no-wrap
  42359. msgid "@code{server} (default: @code{#f})"
  42360. msgstr "@code{speed}(默认值:@code{1.0})"
  42361. #. type: table
  42362. #: guix-git/doc/guix.texi:28312
  42363. msgid "Optional URL of ACME server. Setting this overrides certbot's default, which is the Let's Encrypt server."
  42364. msgstr ""
  42365. #. type: item
  42366. #: guix-git/doc/guix.texi:28313
  42367. #, no-wrap
  42368. msgid "@code{rsa-key-size} (default: @code{2048})"
  42369. msgstr ""
  42370. #. type: table
  42371. #: guix-git/doc/guix.texi:28315
  42372. msgid "Size of the RSA key."
  42373. msgstr ""
  42374. #. type: item
  42375. #: guix-git/doc/guix.texi:28316
  42376. #, no-wrap
  42377. msgid "@code{default-location} (default: @i{see below})"
  42378. msgstr ""
  42379. #. type: table
  42380. #: guix-git/doc/guix.texi:28325
  42381. 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."
  42382. msgstr ""
  42383. #. type: table
  42384. #: guix-git/doc/guix.texi:28329
  42385. 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."
  42386. msgstr ""
  42387. #. type: table
  42388. #: guix-git/doc/guix.texi:28333
  42389. 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}."
  42390. msgstr ""
  42391. #. type: table
  42392. #: guix-git/doc/guix.texi:28335
  42393. msgid "Pass @code{#f} to not issue a default location."
  42394. msgstr ""
  42395. #. type: deftp
  42396. #: guix-git/doc/guix.texi:28338
  42397. #, no-wrap
  42398. msgid "{Data Type} certificate-configuration"
  42399. msgstr ""
  42400. #. type: deftp
  42401. #: guix-git/doc/guix.texi:28341
  42402. msgid "Data type representing the configuration of a certificate. This type has the following parameters:"
  42403. msgstr ""
  42404. #. type: item
  42405. #: guix-git/doc/guix.texi:28343
  42406. #, no-wrap
  42407. msgid "@code{name} (default: @i{see below})"
  42408. msgstr ""
  42409. #. type: table
  42410. #: guix-git/doc/guix.texi:28347
  42411. 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}."
  42412. msgstr ""
  42413. #. type: table
  42414. #: guix-git/doc/guix.texi:28349
  42415. msgid "Its default is the first provided domain."
  42416. msgstr ""
  42417. #. type: item
  42418. #: guix-git/doc/guix.texi:28350
  42419. #, no-wrap
  42420. msgid "@code{domains} (default: @code{()})"
  42421. msgstr ""
  42422. #. type: table
  42423. #: guix-git/doc/guix.texi:28353
  42424. msgid "The first domain provided will be the subject CN of the certificate, and all domains will be Subject Alternative Names on the certificate."
  42425. msgstr ""
  42426. #. type: item
  42427. #: guix-git/doc/guix.texi:28354
  42428. #, no-wrap
  42429. msgid "@code{challenge} (default: @code{#f})"
  42430. msgstr "@code{challenge}(默认值:@code{#f})"
  42431. #. type: table
  42432. #: guix-git/doc/guix.texi:28361
  42433. 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."
  42434. msgstr ""
  42435. #. type: item
  42436. #: guix-git/doc/guix.texi:28362
  42437. #, fuzzy, no-wrap
  42438. msgid "@code{csr} (default: @code{#f})"
  42439. msgstr "@code{port}(默认值:@code{22})"
  42440. #. type: table
  42441. #: guix-git/doc/guix.texi:28369
  42442. 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."
  42443. msgstr ""
  42444. #. type: item
  42445. #: guix-git/doc/guix.texi:28370
  42446. #, no-wrap
  42447. msgid "@code{authentication-hook} (default: @code{#f})"
  42448. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  42449. #. type: table
  42450. #: guix-git/doc/guix.texi:28376
  42451. 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."
  42452. msgstr ""
  42453. #. type: item
  42454. #: guix-git/doc/guix.texi:28377
  42455. #, no-wrap
  42456. msgid "@code{cleanup-hook} (default: @code{#f})"
  42457. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  42458. #. type: table
  42459. #: guix-git/doc/guix.texi:28383
  42460. 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."
  42461. msgstr ""
  42462. #. type: item
  42463. #: guix-git/doc/guix.texi:28384
  42464. #, no-wrap
  42465. msgid "@code{deploy-hook} (default: @code{#f})"
  42466. msgstr ""
  42467. #. type: table
  42468. #: guix-git/doc/guix.texi:28392
  42469. 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\"}."
  42470. msgstr ""
  42471. #. type: Plain text
  42472. #: guix-git/doc/guix.texi:28399
  42473. 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}."
  42474. msgstr ""
  42475. #. type: cindex
  42476. #: guix-git/doc/guix.texi:28401
  42477. #, no-wrap
  42478. msgid "DNS (domain name system)"
  42479. msgstr ""
  42480. #. type: cindex
  42481. #: guix-git/doc/guix.texi:28402
  42482. #, no-wrap
  42483. msgid "domain name system (DNS)"
  42484. msgstr ""
  42485. #. type: Plain text
  42486. #: guix-git/doc/guix.texi:28410
  42487. 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}."
  42488. msgstr ""
  42489. #. type: subsubheading
  42490. #: guix-git/doc/guix.texi:28411
  42491. #, no-wrap
  42492. msgid "Knot Service"
  42493. msgstr ""
  42494. #. type: Plain text
  42495. #: guix-git/doc/guix.texi:28415
  42496. msgid "An example configuration of an authoritative server for two zones, one master and one slave, is:"
  42497. msgstr ""
  42498. #. type: lisp
  42499. #: guix-git/doc/guix.texi:28422
  42500. #, no-wrap
  42501. msgid ""
  42502. "(define-zone-entries example.org.zone\n"
  42503. ";; Name TTL Class Type Data\n"
  42504. " (\"@@\" \"\" \"IN\" \"A\" \"127.0.0.1\")\n"
  42505. " (\"@@\" \"\" \"IN\" \"NS\" \"ns\")\n"
  42506. " (\"ns\" \"\" \"IN\" \"A\" \"127.0.0.1\"))\n"
  42507. "\n"
  42508. msgstr ""
  42509. #. type: lisp
  42510. #: guix-git/doc/guix.texi:28429
  42511. #, no-wrap
  42512. msgid ""
  42513. "(define master-zone\n"
  42514. " (knot-zone-configuration\n"
  42515. " (domain \"example.org\")\n"
  42516. " (zone (zone-file\n"
  42517. " (origin \"example.org\")\n"
  42518. " (entries example.org.zone)))))\n"
  42519. "\n"
  42520. msgstr ""
  42521. #. type: lisp
  42522. #: guix-git/doc/guix.texi:28435
  42523. #, no-wrap
  42524. msgid ""
  42525. "(define slave-zone\n"
  42526. " (knot-zone-configuration\n"
  42527. " (domain \"plop.org\")\n"
  42528. " (dnssec-policy \"default\")\n"
  42529. " (master (list \"plop-master\"))))\n"
  42530. "\n"
  42531. msgstr ""
  42532. #. type: lisp
  42533. #: guix-git/doc/guix.texi:28440
  42534. #, no-wrap
  42535. msgid ""
  42536. "(define plop-master\n"
  42537. " (knot-remote-configuration\n"
  42538. " (id \"plop-master\")\n"
  42539. " (address (list \"208.76.58.171\"))))\n"
  42540. "\n"
  42541. msgstr ""
  42542. #. type: lisp
  42543. #: guix-git/doc/guix.texi:28449
  42544. #, no-wrap
  42545. msgid ""
  42546. "(operating-system\n"
  42547. " ;; ...\n"
  42548. " (services (cons* (service knot-service-type\n"
  42549. " (knot-configuration\n"
  42550. " (remotes (list plop-master))\n"
  42551. " (zones (list master-zone slave-zone))))\n"
  42552. " ;; ...\n"
  42553. " %base-services)))\n"
  42554. msgstr ""
  42555. #. type: deffn
  42556. #: guix-git/doc/guix.texi:28451
  42557. #, no-wrap
  42558. msgid "{Scheme Variable} knot-service-type"
  42559. msgstr ""
  42560. #. type: deffn
  42561. #: guix-git/doc/guix.texi:28453
  42562. msgid "This is the type for the Knot DNS server."
  42563. msgstr ""
  42564. #. type: deffn
  42565. #: guix-git/doc/guix.texi:28461
  42566. 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."
  42567. msgstr ""
  42568. #. type: deffn
  42569. #: guix-git/doc/guix.texi:28463
  42570. msgid "The following data types are used to configure the Knot DNS server:"
  42571. msgstr ""
  42572. #. type: deftp
  42573. #: guix-git/doc/guix.texi:28465
  42574. #, no-wrap
  42575. msgid "{Data Type} knot-key-configuration"
  42576. msgstr ""
  42577. #. type: deftp
  42578. #: guix-git/doc/guix.texi:28468
  42579. msgid "Data type representing a key. This type has the following parameters:"
  42580. msgstr ""
  42581. #. type: item
  42582. #: guix-git/doc/guix.texi:28470 guix-git/doc/guix.texi:28490
  42583. #: guix-git/doc/guix.texi:28605 guix-git/doc/guix.texi:28631
  42584. #: guix-git/doc/guix.texi:28666
  42585. #, no-wrap
  42586. msgid "@code{id} (default: @code{\"\"})"
  42587. msgstr ""
  42588. #. type: table
  42589. #: guix-git/doc/guix.texi:28473 guix-git/doc/guix.texi:28493
  42590. msgid "An identifier for other configuration fields to refer to this key. IDs must be unique and must not be empty."
  42591. msgstr ""
  42592. #. type: item
  42593. #: guix-git/doc/guix.texi:28474
  42594. #, no-wrap
  42595. msgid "@code{algorithm} (default: @code{#f})"
  42596. msgstr ""
  42597. #. type: table
  42598. #: guix-git/doc/guix.texi:28478
  42599. 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}."
  42600. msgstr ""
  42601. #. type: item
  42602. #: guix-git/doc/guix.texi:28479
  42603. #, no-wrap
  42604. msgid "@code{secret} (default: @code{\"\"})"
  42605. msgstr ""
  42606. #. type: table
  42607. #: guix-git/doc/guix.texi:28481
  42608. msgid "The secret key itself."
  42609. msgstr ""
  42610. #. type: deftp
  42611. #: guix-git/doc/guix.texi:28485
  42612. #, no-wrap
  42613. msgid "{Data Type} knot-acl-configuration"
  42614. msgstr ""
  42615. #. type: deftp
  42616. #: guix-git/doc/guix.texi:28488
  42617. msgid "Data type representing an Access Control List (ACL) configuration. This type has the following parameters:"
  42618. msgstr ""
  42619. #. type: item
  42620. #: guix-git/doc/guix.texi:28494 guix-git/doc/guix.texi:28609
  42621. #, no-wrap
  42622. msgid "@code{address} (default: @code{'()})"
  42623. msgstr ""
  42624. #. type: table
  42625. #: guix-git/doc/guix.texi:28498
  42626. 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."
  42627. msgstr ""
  42628. #. type: item
  42629. #: guix-git/doc/guix.texi:28499
  42630. #, no-wrap
  42631. msgid "@code{key} (default: @code{'()})"
  42632. msgstr ""
  42633. #. type: table
  42634. #: guix-git/doc/guix.texi:28503
  42635. 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."
  42636. msgstr ""
  42637. #. type: item
  42638. #: guix-git/doc/guix.texi:28504
  42639. #, no-wrap
  42640. msgid "@code{action} (default: @code{'()})"
  42641. msgstr ""
  42642. #. type: table
  42643. #: guix-git/doc/guix.texi:28508
  42644. 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}."
  42645. msgstr ""
  42646. #. type: item
  42647. #: guix-git/doc/guix.texi:28509
  42648. #, no-wrap
  42649. msgid "@code{deny?} (default: @code{#f})"
  42650. msgstr ""
  42651. #. type: table
  42652. #: guix-git/doc/guix.texi:28512
  42653. msgid "When true, the ACL defines restrictions. Listed actions are forbidden. When false, listed actions are allowed."
  42654. msgstr ""
  42655. #. type: deftp
  42656. #: guix-git/doc/guix.texi:28516
  42657. #, no-wrap
  42658. msgid "{Data Type} zone-entry"
  42659. msgstr ""
  42660. #. type: deftp
  42661. #: guix-git/doc/guix.texi:28519
  42662. msgid "Data type representing a record entry in a zone file. This type has the following parameters:"
  42663. msgstr ""
  42664. #. type: item
  42665. #: guix-git/doc/guix.texi:28521
  42666. #, no-wrap
  42667. msgid "@code{name} (default: @code{\"@@\"})"
  42668. msgstr ""
  42669. #. type: table
  42670. #: guix-git/doc/guix.texi:28527
  42671. 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}."
  42672. msgstr ""
  42673. #. type: item
  42674. #: guix-git/doc/guix.texi:28528
  42675. #, no-wrap
  42676. msgid "@code{ttl} (default: @code{\"\"})"
  42677. msgstr ""
  42678. #. type: table
  42679. #: guix-git/doc/guix.texi:28530
  42680. msgid "The Time-To-Live (TTL) of this record. If not set, the default TTL is used."
  42681. msgstr ""
  42682. #. type: item
  42683. #: guix-git/doc/guix.texi:28531
  42684. #, no-wrap
  42685. msgid "@code{class} (default: @code{\"IN\"})"
  42686. msgstr ""
  42687. #. type: table
  42688. #: guix-git/doc/guix.texi:28534
  42689. msgid "The class of the record. Knot currently supports only @code{\"IN\"} and partially @code{\"CH\"}."
  42690. msgstr ""
  42691. #. type: item
  42692. #: guix-git/doc/guix.texi:28535
  42693. #, no-wrap
  42694. msgid "@code{type} (default: @code{\"A\"})"
  42695. msgstr ""
  42696. #. type: table
  42697. #: guix-git/doc/guix.texi:28539
  42698. 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."
  42699. msgstr ""
  42700. #. type: item
  42701. #: guix-git/doc/guix.texi:28540
  42702. #, no-wrap
  42703. msgid "@code{data} (default: @code{\"\"})"
  42704. msgstr ""
  42705. #. type: table
  42706. #: guix-git/doc/guix.texi:28544
  42707. 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."
  42708. msgstr ""
  42709. #. type: deftp
  42710. #: guix-git/doc/guix.texi:28548
  42711. #, no-wrap
  42712. msgid "{Data Type} zone-file"
  42713. msgstr ""
  42714. #. type: deftp
  42715. #: guix-git/doc/guix.texi:28551
  42716. msgid "Data type representing the content of a zone file. This type has the following parameters:"
  42717. msgstr ""
  42718. #. type: table
  42719. #: guix-git/doc/guix.texi:28560
  42720. 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}."
  42721. msgstr ""
  42722. #. type: item
  42723. #: guix-git/doc/guix.texi:28561
  42724. #, no-wrap
  42725. msgid "@code{origin} (default: @code{\"\"})"
  42726. msgstr ""
  42727. #. type: table
  42728. #: guix-git/doc/guix.texi:28563
  42729. msgid "The name of your zone. This parameter cannot be empty."
  42730. msgstr ""
  42731. #. type: item
  42732. #: guix-git/doc/guix.texi:28564
  42733. #, no-wrap
  42734. msgid "@code{ns} (default: @code{\"ns\"})"
  42735. msgstr ""
  42736. #. type: table
  42737. #: guix-git/doc/guix.texi:28569
  42738. 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."
  42739. msgstr ""
  42740. #. type: item
  42741. #: guix-git/doc/guix.texi:28570
  42742. #, no-wrap
  42743. msgid "@code{mail} (default: @code{\"hostmaster\"})"
  42744. msgstr ""
  42745. #. type: table
  42746. #: guix-git/doc/guix.texi:28573
  42747. msgid "An email address people can contact you at, as the owner of the zone. This is translated as @code{<mail>@@<origin>}."
  42748. msgstr ""
  42749. #. type: item
  42750. #: guix-git/doc/guix.texi:28574
  42751. #, no-wrap
  42752. msgid "@code{serial} (default: @code{1})"
  42753. msgstr ""
  42754. #. type: table
  42755. #: guix-git/doc/guix.texi:28578
  42756. 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."
  42757. msgstr ""
  42758. #. type: item
  42759. #: guix-git/doc/guix.texi:28579
  42760. #, no-wrap
  42761. msgid "@code{refresh} (default: @code{(* 2 24 3600)})"
  42762. msgstr ""
  42763. #. type: table
  42764. #: guix-git/doc/guix.texi:28583
  42765. 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)}."
  42766. msgstr ""
  42767. #. type: item
  42768. #: guix-git/doc/guix.texi:28584
  42769. #, no-wrap
  42770. msgid "@code{retry} (default: @code{(* 15 60)})"
  42771. msgstr ""
  42772. #. type: table
  42773. #: guix-git/doc/guix.texi:28587
  42774. msgid "The period after which a slave will retry to contact its master when it fails to do so a first time."
  42775. msgstr ""
  42776. #. type: item
  42777. #: guix-git/doc/guix.texi:28588
  42778. #, no-wrap
  42779. msgid "@code{expiry} (default: @code{(* 14 24 3600)})"
  42780. msgstr ""
  42781. #. type: table
  42782. #: guix-git/doc/guix.texi:28592
  42783. 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."
  42784. msgstr ""
  42785. #. type: item
  42786. #: guix-git/doc/guix.texi:28593
  42787. #, no-wrap
  42788. msgid "@code{nx} (default: @code{3600})"
  42789. msgstr ""
  42790. #. type: table
  42791. #: guix-git/doc/guix.texi:28596
  42792. msgid "Default TTL of inexistent records. This delay is usually short because you want your new domains to reach everyone quickly."
  42793. msgstr ""
  42794. #. type: deftp
  42795. #: guix-git/doc/guix.texi:28600
  42796. #, no-wrap
  42797. msgid "{Data Type} knot-remote-configuration"
  42798. msgstr ""
  42799. #. type: deftp
  42800. #: guix-git/doc/guix.texi:28603
  42801. msgid "Data type representing a remote configuration. This type has the following parameters:"
  42802. msgstr ""
  42803. #. type: table
  42804. #: guix-git/doc/guix.texi:28608
  42805. msgid "An identifier for other configuration fields to refer to this remote. IDs must be unique and must not be empty."
  42806. msgstr ""
  42807. #. type: table
  42808. #: guix-git/doc/guix.texi:28613
  42809. 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."
  42810. msgstr ""
  42811. #. type: item
  42812. #: guix-git/doc/guix.texi:28614
  42813. #, no-wrap
  42814. msgid "@code{via} (default: @code{'()})"
  42815. msgstr ""
  42816. #. type: table
  42817. #: guix-git/doc/guix.texi:28618
  42818. 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."
  42819. msgstr ""
  42820. #. type: table
  42821. #: guix-git/doc/guix.texi:28622
  42822. msgid "A reference to a key, that is a string containing the identifier of a key defined in a @code{knot-key-configuration} field."
  42823. msgstr ""
  42824. #. type: deftp
  42825. #: guix-git/doc/guix.texi:28626
  42826. #, no-wrap
  42827. msgid "{Data Type} knot-keystore-configuration"
  42828. msgstr ""
  42829. #. type: deftp
  42830. #: guix-git/doc/guix.texi:28629
  42831. msgid "Data type representing a keystore to hold dnssec keys. This type has the following parameters:"
  42832. msgstr ""
  42833. #. type: table
  42834. #: guix-git/doc/guix.texi:28633
  42835. msgid "The id of the keystore. It must not be empty."
  42836. msgstr ""
  42837. #. type: item
  42838. #: guix-git/doc/guix.texi:28634
  42839. #, no-wrap
  42840. msgid "@code{backend} (default: @code{'pem})"
  42841. msgstr ""
  42842. #. type: table
  42843. #: guix-git/doc/guix.texi:28636
  42844. msgid "The backend to store the keys in. Can be @code{'pem} or @code{'pkcs11}."
  42845. msgstr ""
  42846. #. type: item
  42847. #: guix-git/doc/guix.texi:28637
  42848. #, no-wrap
  42849. msgid "@code{config} (default: @code{\"/var/lib/knot/keys/keys\"})"
  42850. msgstr ""
  42851. #. type: table
  42852. #: guix-git/doc/guix.texi:28641
  42853. 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."
  42854. msgstr ""
  42855. #. type: deftp
  42856. #: guix-git/doc/guix.texi:28645
  42857. #, no-wrap
  42858. msgid "{Data Type} knot-policy-configuration"
  42859. msgstr ""
  42860. #. type: deftp
  42861. #: guix-git/doc/guix.texi:28649
  42862. 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."
  42863. msgstr ""
  42864. #. type: deftp
  42865. #: guix-git/doc/guix.texi:28656
  42866. 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."
  42867. msgstr ""
  42868. #. type: deftp
  42869. #: guix-git/doc/guix.texi:28662
  42870. 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."
  42871. msgstr ""
  42872. #. type: deftp
  42873. #: guix-git/doc/guix.texi:28664
  42874. msgid "This type has the following parameters:"
  42875. msgstr ""
  42876. #. type: table
  42877. #: guix-git/doc/guix.texi:28668
  42878. msgid "The id of the policy. It must not be empty."
  42879. msgstr ""
  42880. #. type: item
  42881. #: guix-git/doc/guix.texi:28669
  42882. #, no-wrap
  42883. msgid "@code{keystore} (default: @code{\"default\"})"
  42884. msgstr ""
  42885. #. type: table
  42886. #: guix-git/doc/guix.texi:28674
  42887. 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)."
  42888. msgstr ""
  42889. #. type: item
  42890. #: guix-git/doc/guix.texi:28675
  42891. #, no-wrap
  42892. msgid "@code{manual?} (default: @code{#f})"
  42893. msgstr ""
  42894. #. type: table
  42895. #: guix-git/doc/guix.texi:28677
  42896. msgid "Whether the key management is manual or automatic."
  42897. msgstr ""
  42898. #. type: item
  42899. #: guix-git/doc/guix.texi:28678
  42900. #, no-wrap
  42901. msgid "@code{single-type-signing?} (default: @code{#f})"
  42902. msgstr ""
  42903. #. type: table
  42904. #: guix-git/doc/guix.texi:28680
  42905. msgid "When @code{#t}, use the Single-Type Signing Scheme."
  42906. msgstr ""
  42907. #. type: item
  42908. #: guix-git/doc/guix.texi:28681
  42909. #, no-wrap
  42910. msgid "@code{algorithm} (default: @code{\"ecdsap256sha256\"})"
  42911. msgstr ""
  42912. #. type: table
  42913. #: guix-git/doc/guix.texi:28683
  42914. msgid "An algorithm of signing keys and issued signatures."
  42915. msgstr ""
  42916. #. type: item
  42917. #: guix-git/doc/guix.texi:28684
  42918. #, no-wrap
  42919. msgid "@code{ksk-size} (default: @code{256})"
  42920. msgstr ""
  42921. #. type: table
  42922. #: guix-git/doc/guix.texi:28687
  42923. msgid "The length of the KSK@. Note that this value is correct for the default algorithm, but would be unsecure for other algorithms."
  42924. msgstr ""
  42925. #. type: item
  42926. #: guix-git/doc/guix.texi:28688
  42927. #, no-wrap
  42928. msgid "@code{zsk-size} (default: @code{256})"
  42929. msgstr ""
  42930. #. type: table
  42931. #: guix-git/doc/guix.texi:28691
  42932. msgid "The length of the ZSK@. Note that this value is correct for the default algorithm, but would be unsecure for other algorithms."
  42933. msgstr ""
  42934. #. type: item
  42935. #: guix-git/doc/guix.texi:28692
  42936. #, no-wrap
  42937. msgid "@code{dnskey-ttl} (default: @code{'default})"
  42938. msgstr ""
  42939. #. type: table
  42940. #: guix-git/doc/guix.texi:28695
  42941. msgid "The TTL value for DNSKEY records added into zone apex. The special @code{'default} value means same as the zone SOA TTL."
  42942. msgstr ""
  42943. #. type: item
  42944. #: guix-git/doc/guix.texi:28696
  42945. #, no-wrap
  42946. msgid "@code{zsk-lifetime} (default: @code{(* 30 24 3600)})"
  42947. msgstr ""
  42948. #. type: table
  42949. #: guix-git/doc/guix.texi:28698
  42950. msgid "The period between ZSK publication and the next rollover initiation."
  42951. msgstr ""
  42952. #. type: item
  42953. #: guix-git/doc/guix.texi:28699
  42954. #, no-wrap
  42955. msgid "@code{propagation-delay} (default: @code{(* 24 3600)})"
  42956. msgstr ""
  42957. #. type: table
  42958. #: guix-git/doc/guix.texi:28702
  42959. 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."
  42960. msgstr ""
  42961. #. type: item
  42962. #: guix-git/doc/guix.texi:28703
  42963. #, no-wrap
  42964. msgid "@code{rrsig-lifetime} (default: @code{(* 14 24 3600)})"
  42965. msgstr ""
  42966. #. type: table
  42967. #: guix-git/doc/guix.texi:28705
  42968. msgid "A validity period of newly issued signatures."
  42969. msgstr ""
  42970. #. type: item
  42971. #: guix-git/doc/guix.texi:28706
  42972. #, no-wrap
  42973. msgid "@code{rrsig-refresh} (default: @code{(* 7 24 3600)})"
  42974. msgstr ""
  42975. #. type: table
  42976. #: guix-git/doc/guix.texi:28708
  42977. msgid "A period how long before a signature expiration the signature will be refreshed."
  42978. msgstr ""
  42979. #. type: item
  42980. #: guix-git/doc/guix.texi:28709
  42981. #, no-wrap
  42982. msgid "@code{nsec3?} (default: @code{#f})"
  42983. msgstr ""
  42984. #. type: table
  42985. #: guix-git/doc/guix.texi:28711
  42986. msgid "When @code{#t}, NSEC3 will be used instead of NSEC."
  42987. msgstr ""
  42988. #. type: item
  42989. #: guix-git/doc/guix.texi:28712
  42990. #, no-wrap
  42991. msgid "@code{nsec3-iterations} (default: @code{5})"
  42992. msgstr ""
  42993. #. type: table
  42994. #: guix-git/doc/guix.texi:28714
  42995. msgid "The number of additional times the hashing is performed."
  42996. msgstr ""
  42997. #. type: item
  42998. #: guix-git/doc/guix.texi:28715
  42999. #, no-wrap
  43000. msgid "@code{nsec3-salt-length} (default: @code{8})"
  43001. msgstr ""
  43002. #. type: table
  43003. #: guix-git/doc/guix.texi:28718
  43004. msgid "The length of a salt field in octets, which is appended to the original owner name before hashing."
  43005. msgstr ""
  43006. #. type: item
  43007. #: guix-git/doc/guix.texi:28719
  43008. #, no-wrap
  43009. msgid "@code{nsec3-salt-lifetime} (default: @code{(* 30 24 3600)})"
  43010. msgstr ""
  43011. #. type: table
  43012. #: guix-git/doc/guix.texi:28721
  43013. msgid "The validity period of newly issued salt field."
  43014. msgstr ""
  43015. #. type: deftp
  43016. #: guix-git/doc/guix.texi:28725
  43017. #, no-wrap
  43018. msgid "{Data Type} knot-zone-configuration"
  43019. msgstr ""
  43020. #. type: deftp
  43021. #: guix-git/doc/guix.texi:28728
  43022. msgid "Data type representing a zone served by Knot. This type has the following parameters:"
  43023. msgstr ""
  43024. #. type: item
  43025. #: guix-git/doc/guix.texi:28730
  43026. #, no-wrap
  43027. msgid "@code{domain} (default: @code{\"\"})"
  43028. msgstr ""
  43029. #. type: table
  43030. #: guix-git/doc/guix.texi:28732
  43031. msgid "The domain served by this configuration. It must not be empty."
  43032. msgstr ""
  43033. #. type: item
  43034. #: guix-git/doc/guix.texi:28733
  43035. #, no-wrap
  43036. msgid "@code{file} (default: @code{\"\"})"
  43037. msgstr ""
  43038. #. type: table
  43039. #: guix-git/doc/guix.texi:28736
  43040. 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."
  43041. msgstr ""
  43042. #. type: item
  43043. #: guix-git/doc/guix.texi:28737
  43044. #, no-wrap
  43045. msgid "@code{zone} (default: @code{(zone-file)})"
  43046. msgstr ""
  43047. #. type: table
  43048. #: guix-git/doc/guix.texi:28740
  43049. msgid "The content of the zone file. This parameter is ignored by slave zones. It must contain a zone-file record."
  43050. msgstr ""
  43051. #. type: item
  43052. #: guix-git/doc/guix.texi:28741
  43053. #, no-wrap
  43054. msgid "@code{master} (default: @code{'()})"
  43055. msgstr ""
  43056. #. type: table
  43057. #: guix-git/doc/guix.texi:28744
  43058. 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."
  43059. msgstr ""
  43060. #. type: item
  43061. #: guix-git/doc/guix.texi:28745
  43062. #, no-wrap
  43063. msgid "@code{ddns-master} (default: @code{#f})"
  43064. msgstr ""
  43065. #. type: table
  43066. #: guix-git/doc/guix.texi:28748
  43067. msgid "The main master. When empty, it defaults to the first master in the list of masters."
  43068. msgstr ""
  43069. #. type: item
  43070. #: guix-git/doc/guix.texi:28749
  43071. #, no-wrap
  43072. msgid "@code{notify} (default: @code{'()})"
  43073. msgstr ""
  43074. #. type: table
  43075. #: guix-git/doc/guix.texi:28751
  43076. msgid "A list of slave remote identifiers."
  43077. msgstr ""
  43078. #. type: item
  43079. #: guix-git/doc/guix.texi:28752
  43080. #, no-wrap
  43081. msgid "@code{acl} (default: @code{'()})"
  43082. msgstr ""
  43083. #. type: table
  43084. #: guix-git/doc/guix.texi:28754
  43085. msgid "A list of acl identifiers."
  43086. msgstr ""
  43087. #. type: item
  43088. #: guix-git/doc/guix.texi:28755
  43089. #, no-wrap
  43090. msgid "@code{semantic-checks?} (default: @code{#f})"
  43091. msgstr ""
  43092. #. type: table
  43093. #: guix-git/doc/guix.texi:28757
  43094. msgid "When set, this adds more semantic checks to the zone."
  43095. msgstr ""
  43096. #. type: item
  43097. #: guix-git/doc/guix.texi:28758
  43098. #, no-wrap
  43099. msgid "@code{zonefile-sync} (default: @code{0})"
  43100. msgstr ""
  43101. #. type: table
  43102. #: guix-git/doc/guix.texi:28761
  43103. msgid "The delay between a modification in memory and on disk. 0 means immediate synchronization."
  43104. msgstr ""
  43105. #. type: item
  43106. #: guix-git/doc/guix.texi:28762
  43107. #, no-wrap
  43108. msgid "@code{zonefile-load} (default: @code{#f})"
  43109. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  43110. #. type: table
  43111. #: guix-git/doc/guix.texi:28765
  43112. msgid "The way the zone file contents are applied during zone load. Possible values are:"
  43113. msgstr ""
  43114. #. type: item
  43115. #: guix-git/doc/guix.texi:28767
  43116. #, no-wrap
  43117. msgid "@code{#f} for using the default value from Knot,"
  43118. msgstr ""
  43119. #. type: item
  43120. #: guix-git/doc/guix.texi:28768
  43121. #, no-wrap
  43122. msgid "@code{'none} for not using the zone file at all,"
  43123. msgstr ""
  43124. #. type: item
  43125. #: guix-git/doc/guix.texi:28769
  43126. #, no-wrap
  43127. msgid "@code{'difference} for computing the difference between already available"
  43128. msgstr ""
  43129. #. type: itemize
  43130. #: guix-git/doc/guix.texi:28771
  43131. msgid "contents and zone contents and applying it to the current zone contents,"
  43132. msgstr ""
  43133. #. type: item
  43134. #: guix-git/doc/guix.texi:28771
  43135. #, no-wrap
  43136. msgid "@code{'difference-no-serial} for the same as @code{'difference}, but"
  43137. msgstr ""
  43138. #. type: itemize
  43139. #: guix-git/doc/guix.texi:28774
  43140. msgid "ignoring the SOA serial in the zone file, while the server takes care of it automatically."
  43141. msgstr ""
  43142. #. type: item
  43143. #: guix-git/doc/guix.texi:28774
  43144. #, no-wrap
  43145. msgid "@code{'whole} for loading zone contents from the zone file."
  43146. msgstr ""
  43147. #. type: item
  43148. #: guix-git/doc/guix.texi:28777
  43149. #, no-wrap
  43150. msgid "@code{journal-content} (default: @code{#f})"
  43151. msgstr "@code{journal-content}(默认值:@code{#f})"
  43152. #. type: table
  43153. #: guix-git/doc/guix.texi:28782
  43154. 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."
  43155. msgstr ""
  43156. #. type: item
  43157. #: guix-git/doc/guix.texi:28783
  43158. #, no-wrap
  43159. msgid "@code{max-journal-usage} (default: @code{#f})"
  43160. msgstr "@code{max-journal-usage}(默认值:@code{#f})"
  43161. #. type: table
  43162. #: guix-git/doc/guix.texi:28786
  43163. msgid "The maximum size for the journal on disk. @code{#f} does not set this option, so the default value from Knot is used."
  43164. msgstr ""
  43165. #. type: item
  43166. #: guix-git/doc/guix.texi:28787
  43167. #, no-wrap
  43168. msgid "@code{max-journal-depth} (default: @code{#f})"
  43169. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  43170. #. type: table
  43171. #: guix-git/doc/guix.texi:28790
  43172. msgid "The maximum size of the history. @code{#f} does not set this option, so the default value from Knot is used."
  43173. msgstr ""
  43174. #. type: item
  43175. #: guix-git/doc/guix.texi:28791
  43176. #, no-wrap
  43177. msgid "@code{max-zone-size} (default: @code{#f})"
  43178. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  43179. #. type: table
  43180. #: guix-git/doc/guix.texi:28795
  43181. 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."
  43182. msgstr ""
  43183. #. type: item
  43184. #: guix-git/doc/guix.texi:28796
  43185. #, no-wrap
  43186. msgid "@code{dnssec-policy} (default: @code{#f})"
  43187. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  43188. #. type: table
  43189. #: guix-git/doc/guix.texi:28800
  43190. 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."
  43191. msgstr ""
  43192. #. type: item
  43193. #: guix-git/doc/guix.texi:28801
  43194. #, no-wrap
  43195. msgid "@code{serial-policy} (default: @code{'increment})"
  43196. msgstr ""
  43197. #. type: table
  43198. #: guix-git/doc/guix.texi:28803
  43199. msgid "A policy between @code{'increment} and @code{'unixtime}."
  43200. msgstr ""
  43201. #. type: deftp
  43202. #: guix-git/doc/guix.texi:28807
  43203. #, no-wrap
  43204. msgid "{Data Type} knot-configuration"
  43205. msgstr ""
  43206. #. type: deftp
  43207. #: guix-git/doc/guix.texi:28810
  43208. msgid "Data type representing the Knot configuration. This type has the following parameters:"
  43209. msgstr ""
  43210. #. type: item
  43211. #: guix-git/doc/guix.texi:28812
  43212. #, no-wrap
  43213. msgid "@code{knot} (default: @code{knot})"
  43214. msgstr ""
  43215. #. type: table
  43216. #: guix-git/doc/guix.texi:28814
  43217. msgid "The Knot package."
  43218. msgstr ""
  43219. #. type: item
  43220. #: guix-git/doc/guix.texi:28815
  43221. #, no-wrap
  43222. msgid "@code{run-directory} (default: @code{\"/var/run/knot\"})"
  43223. msgstr ""
  43224. #. type: table
  43225. #: guix-git/doc/guix.texi:28817
  43226. msgid "The run directory. This directory will be used for pid file and sockets."
  43227. msgstr ""
  43228. #. type: item
  43229. #: guix-git/doc/guix.texi:28818
  43230. #, no-wrap
  43231. msgid "@code{includes} (default: @code{'()})"
  43232. msgstr "@code{includes}(默认值:@code{'()})"
  43233. #. type: table
  43234. #: guix-git/doc/guix.texi:28821
  43235. msgid "A list of strings or file-like objects denoting other files that must be included at the top of the configuration file."
  43236. msgstr ""
  43237. #. type: cindex
  43238. #: guix-git/doc/guix.texi:28822
  43239. #, no-wrap
  43240. msgid "secrets, Knot service"
  43241. msgstr "秘密,Knot服务。"
  43242. #. type: table
  43243. #: guix-git/doc/guix.texi:28828
  43244. 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."
  43245. msgstr ""
  43246. #. type: table
  43247. #: guix-git/doc/guix.texi:28833
  43248. 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:"
  43249. msgstr ""
  43250. #. type: example
  43251. #: guix-git/doc/guix.texi:28837
  43252. #, no-wrap
  43253. msgid ""
  43254. "keymgr -t mysecret > /etc/knot/secrets.conf\n"
  43255. "chmod 600 /etc/knot/secrets.conf\n"
  43256. msgstr ""
  43257. #. type: table
  43258. #: guix-git/doc/guix.texi:28843
  43259. 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."
  43260. msgstr ""
  43261. #. type: table
  43262. #: guix-git/doc/guix.texi:28845
  43263. msgid "It can also be used to add configuration not supported by this interface."
  43264. msgstr ""
  43265. #. type: item
  43266. #: guix-git/doc/guix.texi:28846
  43267. #, no-wrap
  43268. msgid "@code{listen-v4} (default: @code{\"0.0.0.0\"})"
  43269. msgstr ""
  43270. #. type: table
  43271. #: guix-git/doc/guix.texi:28848 guix-git/doc/guix.texi:28851
  43272. msgid "An ip address on which to listen."
  43273. msgstr ""
  43274. #. type: item
  43275. #: guix-git/doc/guix.texi:28849
  43276. #, no-wrap
  43277. msgid "@code{listen-v6} (default: @code{\"::\"})"
  43278. msgstr ""
  43279. #. type: item
  43280. #: guix-git/doc/guix.texi:28852
  43281. #, no-wrap
  43282. msgid "@code{listen-port} (default: @code{53})"
  43283. msgstr ""
  43284. #. type: table
  43285. #: guix-git/doc/guix.texi:28854
  43286. msgid "A port on which to listen."
  43287. msgstr ""
  43288. #. type: item
  43289. #: guix-git/doc/guix.texi:28855
  43290. #, no-wrap
  43291. msgid "@code{keys} (default: @code{'()})"
  43292. msgstr ""
  43293. #. type: table
  43294. #: guix-git/doc/guix.texi:28857
  43295. msgid "The list of knot-key-configuration used by this configuration."
  43296. msgstr ""
  43297. #. type: item
  43298. #: guix-git/doc/guix.texi:28858
  43299. #, no-wrap
  43300. msgid "@code{acls} (default: @code{'()})"
  43301. msgstr ""
  43302. #. type: table
  43303. #: guix-git/doc/guix.texi:28860
  43304. msgid "The list of knot-acl-configuration used by this configuration."
  43305. msgstr ""
  43306. #. type: item
  43307. #: guix-git/doc/guix.texi:28861
  43308. #, no-wrap
  43309. msgid "@code{remotes} (default: @code{'()})"
  43310. msgstr ""
  43311. #. type: table
  43312. #: guix-git/doc/guix.texi:28863
  43313. msgid "The list of knot-remote-configuration used by this configuration."
  43314. msgstr ""
  43315. #. type: item
  43316. #: guix-git/doc/guix.texi:28864
  43317. #, no-wrap
  43318. msgid "@code{zones} (default: @code{'()})"
  43319. msgstr ""
  43320. #. type: table
  43321. #: guix-git/doc/guix.texi:28866
  43322. msgid "The list of knot-zone-configuration used by this configuration."
  43323. msgstr ""
  43324. #. type: subsubheading
  43325. #: guix-git/doc/guix.texi:28870
  43326. #, fuzzy, no-wrap
  43327. msgid "Knot Resolver Service"
  43328. msgstr "Kerberos服务"
  43329. #. type: deffn
  43330. #: guix-git/doc/guix.texi:28872
  43331. #, no-wrap
  43332. msgid "{Scheme Variable} knot-resolver-service-type"
  43333. msgstr ""
  43334. #. type: deffn
  43335. #: guix-git/doc/guix.texi:28875
  43336. msgid "This is the type of the knot resolver service, whose value should be an @code{knot-resolver-configuration} object as in this example:"
  43337. msgstr ""
  43338. #. type: lisp
  43339. #: guix-git/doc/guix.texi:28885
  43340. #, no-wrap
  43341. msgid ""
  43342. "(service knot-resolver-service-type\n"
  43343. " (knot-resolver-configuration\n"
  43344. " (kresd-config-file (plain-file \"kresd.conf\" \"\n"
  43345. "net.listen('192.168.0.1', 5353)\n"
  43346. "user('knot-resolver', 'knot-resolver')\n"
  43347. "modules = @{ 'hints > iterate', 'stats', 'predict' @}\n"
  43348. "cache.size = 100 * MB\n"
  43349. "\"))))\n"
  43350. msgstr ""
  43351. #. type: deffn
  43352. #: guix-git/doc/guix.texi:28888
  43353. msgid "For more information, refer its @url{https://knot-resolver.readthedocs.org/en/stable/daemon.html#configuration, manual}."
  43354. msgstr ""
  43355. #. type: deftp
  43356. #: guix-git/doc/guix.texi:28890
  43357. #, no-wrap
  43358. msgid "{Data Type} knot-resolver-configuration"
  43359. msgstr ""
  43360. #. type: deftp
  43361. #: guix-git/doc/guix.texi:28892
  43362. #, fuzzy
  43363. msgid "Data type representing the configuration of knot-resolver."
  43364. msgstr "管理操作系统配置。"
  43365. #. type: item
  43366. #: guix-git/doc/guix.texi:28894
  43367. #, fuzzy, no-wrap
  43368. msgid "@code{package} (default: @var{knot-resolver})"
  43369. msgstr "@code{gnome}(默认值:@code{gnome})"
  43370. #. type: table
  43371. #: guix-git/doc/guix.texi:28896
  43372. msgid "Package object of the knot DNS resolver."
  43373. msgstr ""
  43374. #. type: item
  43375. #: guix-git/doc/guix.texi:28897
  43376. #, fuzzy, no-wrap
  43377. msgid "@code{kresd-config-file} (default: %kresd.conf)"
  43378. msgstr "@code{compression-level}(默认值:@code{3})"
  43379. #. type: table
  43380. #: guix-git/doc/guix.texi:28900
  43381. 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}."
  43382. msgstr ""
  43383. #. type: item
  43384. #: guix-git/doc/guix.texi:28901
  43385. #, fuzzy, no-wrap
  43386. msgid "@code{garbage-collection-interval} (default: 1000)"
  43387. msgstr "@code{parallel-builds}(默认值:@code{1})"
  43388. #. type: table
  43389. #: guix-git/doc/guix.texi:28903
  43390. msgid "Number of milliseconds for @code{kres-cache-gc} to periodically trim the cache."
  43391. msgstr ""
  43392. #. type: subsubheading
  43393. #: guix-git/doc/guix.texi:28908
  43394. #, no-wrap
  43395. msgid "Dnsmasq Service"
  43396. msgstr ""
  43397. #. type: deffn
  43398. #: guix-git/doc/guix.texi:28910
  43399. #, no-wrap
  43400. msgid "{Scheme Variable} dnsmasq-service-type"
  43401. msgstr ""
  43402. #. type: deffn
  43403. #: guix-git/doc/guix.texi:28913
  43404. msgid "This is the type of the dnsmasq service, whose value should be an @code{dnsmasq-configuration} object as in this example:"
  43405. msgstr ""
  43406. #. type: lisp
  43407. #: guix-git/doc/guix.texi:28919
  43408. #, no-wrap
  43409. msgid ""
  43410. "(service dnsmasq-service-type\n"
  43411. " (dnsmasq-configuration\n"
  43412. " (no-resolv? #t)\n"
  43413. " (servers '(\"192.168.1.1\"))))\n"
  43414. msgstr ""
  43415. #. type: deftp
  43416. #: guix-git/doc/guix.texi:28922
  43417. #, no-wrap
  43418. msgid "{Data Type} dnsmasq-configuration"
  43419. msgstr ""
  43420. #. type: deftp
  43421. #: guix-git/doc/guix.texi:28924
  43422. msgid "Data type representing the configuration of dnsmasq."
  43423. msgstr ""
  43424. #. type: item
  43425. #: guix-git/doc/guix.texi:28926
  43426. #, no-wrap
  43427. msgid "@code{package} (default: @var{dnsmasq})"
  43428. msgstr ""
  43429. #. type: table
  43430. #: guix-git/doc/guix.texi:28928
  43431. msgid "Package object of the dnsmasq server."
  43432. msgstr ""
  43433. #. type: item
  43434. #: guix-git/doc/guix.texi:28929
  43435. #, no-wrap
  43436. msgid "@code{no-hosts?} (default: @code{#f})"
  43437. msgstr ""
  43438. #. type: table
  43439. #: guix-git/doc/guix.texi:28931
  43440. msgid "When true, don't read the hostnames in /etc/hosts."
  43441. msgstr ""
  43442. #. type: item
  43443. #: guix-git/doc/guix.texi:28932
  43444. #, no-wrap
  43445. msgid "@code{port} (default: @code{53})"
  43446. msgstr ""
  43447. #. type: table
  43448. #: guix-git/doc/guix.texi:28935
  43449. msgid "The port to listen on. Setting this to zero completely disables DNS responses, leaving only DHCP and/or TFTP functions."
  43450. msgstr ""
  43451. #. type: item
  43452. #: guix-git/doc/guix.texi:28936
  43453. #, no-wrap
  43454. msgid "@code{local-service?} (default: @code{#t})"
  43455. msgstr ""
  43456. #. type: table
  43457. #: guix-git/doc/guix.texi:28939
  43458. 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."
  43459. msgstr ""
  43460. #. type: item
  43461. #: guix-git/doc/guix.texi:28940
  43462. #, no-wrap
  43463. msgid "@code{listen-addresses} (default: @code{'()})"
  43464. msgstr ""
  43465. #. type: table
  43466. #: guix-git/doc/guix.texi:28942
  43467. msgid "Listen on the given IP addresses."
  43468. msgstr ""
  43469. #. type: item
  43470. #: guix-git/doc/guix.texi:28943
  43471. #, no-wrap
  43472. msgid "@code{resolv-file} (default: @code{\"/etc/resolv.conf\"})"
  43473. msgstr ""
  43474. #. type: table
  43475. #: guix-git/doc/guix.texi:28945
  43476. msgid "The file to read the IP address of the upstream nameservers from."
  43477. msgstr ""
  43478. #. type: item
  43479. #: guix-git/doc/guix.texi:28946
  43480. #, no-wrap
  43481. msgid "@code{no-resolv?} (default: @code{#f})"
  43482. msgstr ""
  43483. #. type: table
  43484. #: guix-git/doc/guix.texi:28948
  43485. msgid "When true, don't read @var{resolv-file}."
  43486. msgstr ""
  43487. #. type: item
  43488. #: guix-git/doc/guix.texi:28949
  43489. #, fuzzy, no-wrap
  43490. msgid "@code{forward-private-reverse-lookup?} (default: @code{#t})"
  43491. msgstr "@code{challenge}(默认值:@code{#f})"
  43492. #. type: table
  43493. #: guix-git/doc/guix.texi:28952
  43494. msgid "When false, all reverse lookups for private IP ranges are answered with \"no such domain\" rather than being forwarded upstream."
  43495. msgstr ""
  43496. #. type: item
  43497. #: guix-git/doc/guix.texi:28953
  43498. #, fuzzy, no-wrap
  43499. msgid "@code{query-servers-in-order?} (default: @code{#f})"
  43500. msgstr "@code{speed}(默认值:@code{1.0})"
  43501. #. type: table
  43502. #: guix-git/doc/guix.texi:28956
  43503. msgid "When true, dnsmasq queries the servers in the same order as they appear in @var{servers}."
  43504. msgstr ""
  43505. #. type: item
  43506. #: guix-git/doc/guix.texi:28957
  43507. #, no-wrap
  43508. msgid "@code{servers} (default: @code{'()})"
  43509. msgstr ""
  43510. #. type: table
  43511. #: guix-git/doc/guix.texi:28959
  43512. msgid "Specify IP address of upstream servers directly."
  43513. msgstr ""
  43514. #. type: item
  43515. #: guix-git/doc/guix.texi:28960
  43516. #, fuzzy, no-wrap
  43517. msgid "@code{addresses} (default: @code{'()})"
  43518. msgstr "@code{features} (@code{'()})"
  43519. #. type: table
  43520. #: guix-git/doc/guix.texi:28964
  43521. 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."
  43522. msgstr ""
  43523. #. type: table
  43524. #: guix-git/doc/guix.texi:28966
  43525. msgid "This is useful for redirecting hosts locally, for example:"
  43526. msgstr ""
  43527. #. type: lisp
  43528. #: guix-git/doc/guix.texi:28975
  43529. #, no-wrap
  43530. msgid ""
  43531. "(service dnsmasq-service-type\n"
  43532. " (dnsmasq-configuration\n"
  43533. " (addresses\n"
  43534. " '(; Redirect to a local web-server.\n"
  43535. " \"/example.org/127.0.0.1\"\n"
  43536. " ; Redirect subdomain to a specific IP.\n"
  43537. " \"/subdomain.example.org/192.168.1.42\"))))\n"
  43538. msgstr ""
  43539. #. type: table
  43540. #: guix-git/doc/guix.texi:28978
  43541. msgid "Note that rules in @file{/etc/hosts} take precedence over this."
  43542. msgstr ""
  43543. #. type: item
  43544. #: guix-git/doc/guix.texi:28979
  43545. #, no-wrap
  43546. msgid "@code{cache-size} (default: @code{150})"
  43547. msgstr ""
  43548. #. type: table
  43549. #: guix-git/doc/guix.texi:28982
  43550. msgid "Set the size of dnsmasq's cache. Setting the cache size to zero disables caching."
  43551. msgstr ""
  43552. #. type: item
  43553. #: guix-git/doc/guix.texi:28983
  43554. #, no-wrap
  43555. msgid "@code{negative-cache?} (default: @code{#t})"
  43556. msgstr ""
  43557. #. type: table
  43558. #: guix-git/doc/guix.texi:28985
  43559. msgid "When false, disable negative caching."
  43560. msgstr ""
  43561. #. type: item
  43562. #: guix-git/doc/guix.texi:28986
  43563. #, fuzzy, no-wrap
  43564. msgid "@code{cpe-id} (default: @code{#f})"
  43565. msgstr "@code{speed}(默认值:@code{1.0})"
  43566. #. type: table
  43567. #: guix-git/doc/guix.texi:28989
  43568. msgid "If set, add a CPE (Customer-Premises Equipment) identifier to DNS queries which are forwarded upstream."
  43569. msgstr ""
  43570. #. type: item
  43571. #: guix-git/doc/guix.texi:28990
  43572. #, fuzzy, no-wrap
  43573. msgid "@code{tftp-enable?} (default: @code{#f})"
  43574. msgstr "@code{challenge}(默认值:@code{#f})"
  43575. #. type: table
  43576. #: guix-git/doc/guix.texi:28992
  43577. msgid "Whether to enable the built-in TFTP server."
  43578. msgstr ""
  43579. #. type: item
  43580. #: guix-git/doc/guix.texi:28993
  43581. #, fuzzy, no-wrap
  43582. msgid "@code{tftp-no-fail?} (default: @code{#f})"
  43583. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  43584. #. type: table
  43585. #: guix-git/doc/guix.texi:28995
  43586. msgid "If true, does not fail dnsmasq if the TFTP server could not start up."
  43587. msgstr ""
  43588. #. type: item
  43589. #: guix-git/doc/guix.texi:28996
  43590. #, fuzzy, no-wrap
  43591. msgid "@code{tftp-single-port?} (default: @code{#f})"
  43592. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  43593. #. type: table
  43594. #: guix-git/doc/guix.texi:28998
  43595. msgid "Whether to use only one single port for TFTP."
  43596. msgstr ""
  43597. #. type: item
  43598. #: guix-git/doc/guix.texi:28999
  43599. #, fuzzy, no-wrap
  43600. msgid "@code{tftp-secure?} (default: @code{#f})"
  43601. msgstr "@code{xfce}(默认值:@code{xfce})"
  43602. #. type: table
  43603. #: guix-git/doc/guix.texi:29001
  43604. msgid "If true, only files owned by the user running the dnsmasq process are accessible."
  43605. msgstr ""
  43606. #. type: table
  43607. #: guix-git/doc/guix.texi:29005
  43608. 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."
  43609. msgstr ""
  43610. #. type: item
  43611. #: guix-git/doc/guix.texi:29006
  43612. #, fuzzy, no-wrap
  43613. msgid "@code{tftp-max} (default: @code{#f})"
  43614. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  43615. #. type: table
  43616. #: guix-git/doc/guix.texi:29008
  43617. msgid "If set, sets the maximal number of concurrent connections allowed."
  43618. msgstr ""
  43619. #. type: item
  43620. #: guix-git/doc/guix.texi:29009
  43621. #, fuzzy, no-wrap
  43622. msgid "@code{tftp-mtu} (default: @code{#f})"
  43623. msgstr "@code{port}(默认值:@code{22})"
  43624. #. type: table
  43625. #: guix-git/doc/guix.texi:29011
  43626. msgid "If set, sets the MTU for TFTP packets to that value."
  43627. msgstr ""
  43628. #. type: item
  43629. #: guix-git/doc/guix.texi:29012
  43630. #, fuzzy, no-wrap
  43631. msgid "@code{tftp-no-blocksize?} (default: @code{#f})"
  43632. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  43633. #. type: table
  43634. #: guix-git/doc/guix.texi:29014
  43635. msgid "If true, stops the TFTP server from negotiating the blocksize with a client."
  43636. msgstr ""
  43637. #. type: item
  43638. #: guix-git/doc/guix.texi:29015
  43639. #, fuzzy, no-wrap
  43640. msgid "@code{tftp-lowercase?} (default: @code{#f})"
  43641. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  43642. #. type: table
  43643. #: guix-git/doc/guix.texi:29017
  43644. msgid "Whether to convert all filenames in TFTP requests to lowercase."
  43645. msgstr ""
  43646. #. type: item
  43647. #: guix-git/doc/guix.texi:29018
  43648. #, fuzzy, no-wrap
  43649. msgid "@code{tftp-port-range} (default: @code{#f})"
  43650. msgstr "@code{challenge}(默认值:@code{#f})"
  43651. #. type: table
  43652. #: guix-git/doc/guix.texi:29021
  43653. msgid "If set, fixes the dynamical ports (one per client) to the given range (@code{\"<start>,<end>\"})."
  43654. msgstr ""
  43655. #. type: item
  43656. #: guix-git/doc/guix.texi:29022
  43657. #, fuzzy, no-wrap
  43658. msgid "@code{tftp-root} (default: @code{/var/empty,lo})"
  43659. msgstr "@code{port}(默认值:@code{22})"
  43660. #. type: table
  43661. #: guix-git/doc/guix.texi:29029
  43662. 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."
  43663. msgstr ""
  43664. #. type: item
  43665. #: guix-git/doc/guix.texi:29030
  43666. #, fuzzy, no-wrap
  43667. msgid "@code{tftp-unique-root} (default: @code{#f})"
  43668. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  43669. #. type: table
  43670. #: guix-git/doc/guix.texi:29035
  43671. 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)."
  43672. msgstr ""
  43673. #. type: table
  43674. #: guix-git/doc/guix.texi:29044
  43675. 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."
  43676. msgstr ""
  43677. #. type: subsubheading
  43678. #: guix-git/doc/guix.texi:29048
  43679. #, no-wrap
  43680. msgid "ddclient Service"
  43681. msgstr ""
  43682. #. type: cindex
  43683. #: guix-git/doc/guix.texi:29050
  43684. #, no-wrap
  43685. msgid "ddclient"
  43686. msgstr ""
  43687. #. type: Plain text
  43688. #: guix-git/doc/guix.texi:29054
  43689. 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}."
  43690. msgstr ""
  43691. #. type: Plain text
  43692. #: guix-git/doc/guix.texi:29057
  43693. msgid "The following example show instantiates the service with its default configuration:"
  43694. msgstr ""
  43695. #. type: lisp
  43696. #: guix-git/doc/guix.texi:29060
  43697. #, no-wrap
  43698. msgid "(service ddclient-service-type)\n"
  43699. msgstr ""
  43700. #. type: Plain text
  43701. #: guix-git/doc/guix.texi:29069
  43702. 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."
  43703. msgstr ""
  43704. #. type: Plain text
  43705. #: guix-git/doc/guix.texi:29073
  43706. msgid "Available @code{ddclient-configuration} fields are:"
  43707. msgstr ""
  43708. #. type: deftypevr
  43709. #: guix-git/doc/guix.texi:29074
  43710. #, no-wrap
  43711. msgid "{@code{ddclient-configuration} parameter} package ddclient"
  43712. msgstr ""
  43713. #. type: deftypevr
  43714. #: guix-git/doc/guix.texi:29076
  43715. msgid "The ddclient package."
  43716. msgstr ""
  43717. #. type: deftypevr
  43718. #: guix-git/doc/guix.texi:29079
  43719. #, no-wrap
  43720. msgid "{@code{ddclient-configuration} parameter} integer daemon"
  43721. msgstr ""
  43722. #. type: deftypevr
  43723. #: guix-git/doc/guix.texi:29081
  43724. msgid "The period after which ddclient will retry to check IP and domain name."
  43725. msgstr ""
  43726. #. type: deftypevr
  43727. #: guix-git/doc/guix.texi:29083
  43728. msgid "Defaults to @samp{300}."
  43729. msgstr ""
  43730. #. type: deftypevr
  43731. #: guix-git/doc/guix.texi:29086
  43732. #, no-wrap
  43733. msgid "{@code{ddclient-configuration} parameter} boolean syslog"
  43734. msgstr ""
  43735. #. type: deftypevr
  43736. #: guix-git/doc/guix.texi:29088
  43737. msgid "Use syslog for the output."
  43738. msgstr ""
  43739. #. type: deftypevr
  43740. #: guix-git/doc/guix.texi:29093
  43741. #, no-wrap
  43742. msgid "{@code{ddclient-configuration} parameter} string mail"
  43743. msgstr ""
  43744. #. type: deftypevr
  43745. #: guix-git/doc/guix.texi:29095
  43746. msgid "Mail to user."
  43747. msgstr ""
  43748. #. type: deftypevr
  43749. #: guix-git/doc/guix.texi:29097 guix-git/doc/guix.texi:29104
  43750. #: guix-git/doc/guix.texi:30938
  43751. msgid "Defaults to @samp{\"root\"}."
  43752. msgstr ""
  43753. #. type: deftypevr
  43754. #: guix-git/doc/guix.texi:29100
  43755. #, no-wrap
  43756. msgid "{@code{ddclient-configuration} parameter} string mail-failure"
  43757. msgstr ""
  43758. #. type: deftypevr
  43759. #: guix-git/doc/guix.texi:29102
  43760. msgid "Mail failed update to user."
  43761. msgstr ""
  43762. #. type: deftypevr
  43763. #: guix-git/doc/guix.texi:29107
  43764. #, no-wrap
  43765. msgid "{@code{ddclient-configuration} parameter} string pid"
  43766. msgstr ""
  43767. #. type: deftypevr
  43768. #: guix-git/doc/guix.texi:29109
  43769. msgid "The ddclient PID file."
  43770. msgstr ""
  43771. #. type: deftypevr
  43772. #: guix-git/doc/guix.texi:29111
  43773. msgid "Defaults to @samp{\"/var/run/ddclient/ddclient.pid\"}."
  43774. msgstr ""
  43775. #. type: deftypevr
  43776. #: guix-git/doc/guix.texi:29114
  43777. #, no-wrap
  43778. msgid "{@code{ddclient-configuration} parameter} boolean ssl"
  43779. msgstr ""
  43780. #. type: deftypevr
  43781. #: guix-git/doc/guix.texi:29116
  43782. msgid "Enable SSL support."
  43783. msgstr ""
  43784. #. type: deftypevr
  43785. #: guix-git/doc/guix.texi:29121
  43786. #, no-wrap
  43787. msgid "{@code{ddclient-configuration} parameter} string user"
  43788. msgstr ""
  43789. #. type: deftypevr
  43790. #: guix-git/doc/guix.texi:29124
  43791. msgid "Specifies the user name or ID that is used when running ddclient program."
  43792. msgstr ""
  43793. #. type: deftypevr
  43794. #: guix-git/doc/guix.texi:29126 guix-git/doc/guix.texi:29133
  43795. msgid "Defaults to @samp{\"ddclient\"}."
  43796. msgstr ""
  43797. #. type: deftypevr
  43798. #: guix-git/doc/guix.texi:29129
  43799. #, no-wrap
  43800. msgid "{@code{ddclient-configuration} parameter} string group"
  43801. msgstr ""
  43802. #. type: deftypevr
  43803. #: guix-git/doc/guix.texi:29131
  43804. msgid "Group of the user who will run the ddclient program."
  43805. msgstr ""
  43806. #. type: deftypevr
  43807. #: guix-git/doc/guix.texi:29136
  43808. #, no-wrap
  43809. msgid "{@code{ddclient-configuration} parameter} string secret-file"
  43810. msgstr ""
  43811. #. type: deftypevr
  43812. #: guix-git/doc/guix.texi:29140
  43813. 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."
  43814. msgstr ""
  43815. #. type: deftypevr
  43816. #: guix-git/doc/guix.texi:29142
  43817. msgid "Defaults to @samp{\"/etc/ddclient/secrets.conf\"}."
  43818. msgstr ""
  43819. #. type: deftypevr
  43820. #: guix-git/doc/guix.texi:29145
  43821. #, no-wrap
  43822. msgid "{@code{ddclient-configuration} parameter} list extra-options"
  43823. msgstr ""
  43824. #. type: deftypevr
  43825. #: guix-git/doc/guix.texi:29147
  43826. msgid "Extra options will be appended to @file{ddclient.conf} file."
  43827. msgstr ""
  43828. #. type: cindex
  43829. #: guix-git/doc/guix.texi:29158
  43830. #, no-wrap
  43831. msgid "VPN (virtual private network)"
  43832. msgstr ""
  43833. #. type: cindex
  43834. #: guix-git/doc/guix.texi:29159
  43835. #, no-wrap
  43836. msgid "virtual private network (VPN)"
  43837. msgstr ""
  43838. #. type: Plain text
  43839. #: guix-git/doc/guix.texi:29163
  43840. msgid "The @code{(gnu services vpn)} module provides services related to @dfn{virtual private networks} (VPNs)."
  43841. msgstr ""
  43842. #. type: subsubheading
  43843. #: guix-git/doc/guix.texi:29164
  43844. #, no-wrap
  43845. msgid "Bitmask"
  43846. msgstr ""
  43847. #. type: defvr
  43848. #: guix-git/doc/guix.texi:29166
  43849. #, no-wrap
  43850. msgid "{Scheme Variable} bitmask-service-type"
  43851. msgstr ""
  43852. #. type: defvr
  43853. #: guix-git/doc/guix.texi:29171
  43854. 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."
  43855. msgstr ""
  43856. #. type: subsubheading
  43857. #: guix-git/doc/guix.texi:29173
  43858. #, no-wrap
  43859. msgid "OpenVPN"
  43860. msgstr ""
  43861. #. type: Plain text
  43862. #: guix-git/doc/guix.texi:29177
  43863. 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@."
  43864. msgstr ""
  43865. #. type: deffn
  43866. #: guix-git/doc/guix.texi:29178
  43867. #, no-wrap
  43868. msgid "{Scheme Procedure} openvpn-client-service @"
  43869. msgstr ""
  43870. #. type: deffn
  43871. #: guix-git/doc/guix.texi:29180
  43872. msgid "[#:config (openvpn-client-configuration)]"
  43873. msgstr ""
  43874. #. type: deffn
  43875. #: guix-git/doc/guix.texi:29182
  43876. msgid "Return a service that runs @command{openvpn}, a VPN daemon, as a client."
  43877. msgstr ""
  43878. #. type: deffn
  43879. #: guix-git/doc/guix.texi:29184
  43880. #, no-wrap
  43881. msgid "{Scheme Procedure} openvpn-server-service @"
  43882. msgstr ""
  43883. #. type: deffn
  43884. #: guix-git/doc/guix.texi:29186
  43885. msgid "[#:config (openvpn-server-configuration)]"
  43886. msgstr ""
  43887. #. type: deffn
  43888. #: guix-git/doc/guix.texi:29188
  43889. msgid "Return a service that runs @command{openvpn}, a VPN daemon, as a server."
  43890. msgstr ""
  43891. #. type: deffn
  43892. #: guix-git/doc/guix.texi:29190
  43893. msgid "Both can be run simultaneously."
  43894. msgstr ""
  43895. #. type: Plain text
  43896. #: guix-git/doc/guix.texi:29195
  43897. msgid "Available @code{openvpn-client-configuration} fields are:"
  43898. msgstr ""
  43899. #. type: deftypevr
  43900. #: guix-git/doc/guix.texi:29196
  43901. #, no-wrap
  43902. msgid "{@code{openvpn-client-configuration} parameter} package openvpn"
  43903. msgstr ""
  43904. #. type: deftypevr
  43905. #: guix-git/doc/guix.texi:29198 guix-git/doc/guix.texi:29353
  43906. msgid "The OpenVPN package."
  43907. msgstr ""
  43908. #. type: deftypevr
  43909. #: guix-git/doc/guix.texi:29201
  43910. #, no-wrap
  43911. msgid "{@code{openvpn-client-configuration} parameter} string pid-file"
  43912. msgstr ""
  43913. #. type: deftypevr
  43914. #: guix-git/doc/guix.texi:29203 guix-git/doc/guix.texi:29358
  43915. msgid "The OpenVPN pid file."
  43916. msgstr ""
  43917. #. type: deftypevr
  43918. #: guix-git/doc/guix.texi:29205 guix-git/doc/guix.texi:29360
  43919. msgid "Defaults to @samp{\"/var/run/openvpn/openvpn.pid\"}."
  43920. msgstr ""
  43921. #. type: deftypevr
  43922. #: guix-git/doc/guix.texi:29208
  43923. #, no-wrap
  43924. msgid "{@code{openvpn-client-configuration} parameter} proto proto"
  43925. msgstr ""
  43926. #. type: deftypevr
  43927. #: guix-git/doc/guix.texi:29211 guix-git/doc/guix.texi:29366
  43928. msgid "The protocol (UDP or TCP) used to open a channel between clients and servers."
  43929. msgstr ""
  43930. #. type: deftypevr
  43931. #: guix-git/doc/guix.texi:29213 guix-git/doc/guix.texi:29368
  43932. msgid "Defaults to @samp{udp}."
  43933. msgstr ""
  43934. #. type: deftypevr
  43935. #: guix-git/doc/guix.texi:29216
  43936. #, no-wrap
  43937. msgid "{@code{openvpn-client-configuration} parameter} dev dev"
  43938. msgstr ""
  43939. #. type: deftypevr
  43940. #: guix-git/doc/guix.texi:29218 guix-git/doc/guix.texi:29373
  43941. msgid "The device type used to represent the VPN connection."
  43942. msgstr ""
  43943. #. type: deftypevr
  43944. #: guix-git/doc/guix.texi:29220 guix-git/doc/guix.texi:29375
  43945. msgid "Defaults to @samp{tun}."
  43946. msgstr ""
  43947. #. type: Plain text
  43948. #: guix-git/doc/guix.texi:29226 guix-git/doc/guix.texi:29381
  43949. 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}."
  43950. msgstr ""
  43951. #. type: deftypevr
  43952. #: guix-git/doc/guix.texi:29227
  43953. #, no-wrap
  43954. msgid "{@code{openvpn-client-configuration} parameter} maybe-string ca"
  43955. msgstr ""
  43956. #. type: deftypevr
  43957. #: guix-git/doc/guix.texi:29229 guix-git/doc/guix.texi:29384
  43958. msgid "The certificate authority to check connections against."
  43959. msgstr ""
  43960. #. type: deftypevr
  43961. #: guix-git/doc/guix.texi:29231 guix-git/doc/guix.texi:29386
  43962. msgid "Defaults to @samp{\"/etc/openvpn/ca.crt\"}."
  43963. msgstr ""
  43964. #. type: deftypevr
  43965. #: guix-git/doc/guix.texi:29234
  43966. #, no-wrap
  43967. msgid "{@code{openvpn-client-configuration} parameter} maybe-string cert"
  43968. msgstr ""
  43969. #. type: deftypevr
  43970. #: guix-git/doc/guix.texi:29237 guix-git/doc/guix.texi:29392
  43971. msgid "The certificate of the machine the daemon is running on. It should be signed by the authority given in @code{ca}."
  43972. msgstr ""
  43973. #. type: deftypevr
  43974. #: guix-git/doc/guix.texi:29239 guix-git/doc/guix.texi:29394
  43975. msgid "Defaults to @samp{\"/etc/openvpn/client.crt\"}."
  43976. msgstr ""
  43977. #. type: deftypevr
  43978. #: guix-git/doc/guix.texi:29242
  43979. #, no-wrap
  43980. msgid "{@code{openvpn-client-configuration} parameter} maybe-string key"
  43981. msgstr ""
  43982. #. type: deftypevr
  43983. #: guix-git/doc/guix.texi:29245 guix-git/doc/guix.texi:29400
  43984. msgid "The key of the machine the daemon is running on. It must be the key whose certificate is @code{cert}."
  43985. msgstr ""
  43986. #. type: deftypevr
  43987. #: guix-git/doc/guix.texi:29247 guix-git/doc/guix.texi:29402
  43988. msgid "Defaults to @samp{\"/etc/openvpn/client.key\"}."
  43989. msgstr ""
  43990. #. type: deftypevr
  43991. #: guix-git/doc/guix.texi:29250
  43992. #, no-wrap
  43993. msgid "{@code{openvpn-client-configuration} parameter} boolean comp-lzo?"
  43994. msgstr ""
  43995. #. type: deftypevr
  43996. #: guix-git/doc/guix.texi:29252 guix-git/doc/guix.texi:29407
  43997. msgid "Whether to use the lzo compression algorithm."
  43998. msgstr ""
  43999. #. type: deftypevr
  44000. #: guix-git/doc/guix.texi:29257
  44001. #, no-wrap
  44002. msgid "{@code{openvpn-client-configuration} parameter} boolean persist-key?"
  44003. msgstr ""
  44004. #. type: deftypevr
  44005. #: guix-git/doc/guix.texi:29259 guix-git/doc/guix.texi:29414
  44006. msgid "Don't re-read key files across SIGUSR1 or --ping-restart."
  44007. msgstr ""
  44008. #. type: deftypevr
  44009. #: guix-git/doc/guix.texi:29264
  44010. #, no-wrap
  44011. msgid "{@code{openvpn-client-configuration} parameter} boolean persist-tun?"
  44012. msgstr ""
  44013. #. type: deftypevr
  44014. #: guix-git/doc/guix.texi:29267 guix-git/doc/guix.texi:29422
  44015. msgid "Don't close and reopen TUN/TAP device or run up/down scripts across SIGUSR1 or --ping-restart restarts."
  44016. msgstr ""
  44017. #. type: deftypevr
  44018. #: guix-git/doc/guix.texi:29272
  44019. #, no-wrap
  44020. msgid "{@code{openvpn-client-configuration} parameter} boolean fast-io?"
  44021. msgstr ""
  44022. #. type: deftypevr
  44023. #: guix-git/doc/guix.texi:29275 guix-git/doc/guix.texi:29430
  44024. msgid "(Experimental) Optimize TUN/TAP/UDP I/O writes by avoiding a call to poll/epoll/select prior to the write operation."
  44025. msgstr ""
  44026. #. type: deftypevr
  44027. #: guix-git/doc/guix.texi:29279
  44028. #, no-wrap
  44029. msgid "{@code{openvpn-client-configuration} parameter} number verbosity"
  44030. msgstr ""
  44031. #. type: deftypevr
  44032. #: guix-git/doc/guix.texi:29281 guix-git/doc/guix.texi:29436
  44033. msgid "Verbosity level."
  44034. msgstr ""
  44035. #. type: deftypevr
  44036. #: guix-git/doc/guix.texi:29283 guix-git/doc/guix.texi:29438
  44037. #: guix-git/doc/guix.texi:31206 guix-git/doc/guix.texi:31434
  44038. msgid "Defaults to @samp{3}."
  44039. msgstr ""
  44040. #. type: deftypevr
  44041. #: guix-git/doc/guix.texi:29286
  44042. #, no-wrap
  44043. msgid "{@code{openvpn-client-configuration} parameter} tls-auth-client tls-auth"
  44044. msgstr ""
  44045. #. type: deftypevr
  44046. #: guix-git/doc/guix.texi:29289 guix-git/doc/guix.texi:29444
  44047. msgid "Add an additional layer of HMAC authentication on top of the TLS control channel to protect against DoS attacks."
  44048. msgstr ""
  44049. #. type: deftypevr
  44050. #: guix-git/doc/guix.texi:29294
  44051. #, no-wrap
  44052. msgid "{@code{openvpn-client-configuration} parameter} maybe-string auth-user-pass"
  44053. msgstr ""
  44054. #. type: deftypevr
  44055. #: guix-git/doc/guix.texi:29298
  44056. 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."
  44057. msgstr ""
  44058. #. type: deftypevr
  44059. #: guix-git/doc/guix.texi:29300
  44060. msgid "Defaults to @samp{'disabled}."
  44061. msgstr ""
  44062. #. type: deftypevr
  44063. #: guix-git/doc/guix.texi:29302
  44064. #, no-wrap
  44065. msgid "{@code{openvpn-client-configuration} parameter} key-usage verify-key-usage?"
  44066. msgstr ""
  44067. #. type: deftypevr
  44068. #: guix-git/doc/guix.texi:29304
  44069. msgid "Whether to check the server certificate has server usage extension."
  44070. msgstr ""
  44071. #. type: deftypevr
  44072. #: guix-git/doc/guix.texi:29309
  44073. #, no-wrap
  44074. msgid "{@code{openvpn-client-configuration} parameter} bind bind?"
  44075. msgstr ""
  44076. #. type: deftypevr
  44077. #: guix-git/doc/guix.texi:29311
  44078. msgid "Bind to a specific local port number."
  44079. msgstr ""
  44080. #. type: deftypevr
  44081. #: guix-git/doc/guix.texi:29316
  44082. #, no-wrap
  44083. msgid "{@code{openvpn-client-configuration} parameter} resolv-retry resolv-retry?"
  44084. msgstr ""
  44085. #. type: deftypevr
  44086. #: guix-git/doc/guix.texi:29318
  44087. msgid "Retry resolving server address."
  44088. msgstr ""
  44089. #. type: deftypevr
  44090. #: guix-git/doc/guix.texi:29323
  44091. #, no-wrap
  44092. msgid "{@code{openvpn-client-configuration} parameter} openvpn-remote-list remote"
  44093. msgstr ""
  44094. #. type: deftypevr
  44095. #: guix-git/doc/guix.texi:29325
  44096. msgid "A list of remote servers to connect to."
  44097. msgstr ""
  44098. #. type: deftypevr
  44099. #: guix-git/doc/guix.texi:29329
  44100. msgid "Available @code{openvpn-remote-configuration} fields are:"
  44101. msgstr ""
  44102. #. type: deftypevr
  44103. #: guix-git/doc/guix.texi:29330
  44104. #, no-wrap
  44105. msgid "{@code{openvpn-remote-configuration} parameter} string name"
  44106. msgstr ""
  44107. #. type: deftypevr
  44108. #: guix-git/doc/guix.texi:29332
  44109. msgid "Server name."
  44110. msgstr ""
  44111. #. type: deftypevr
  44112. #: guix-git/doc/guix.texi:29334
  44113. msgid "Defaults to @samp{\"my-server\"}."
  44114. msgstr ""
  44115. #. type: deftypevr
  44116. #: guix-git/doc/guix.texi:29337
  44117. #, no-wrap
  44118. msgid "{@code{openvpn-remote-configuration} parameter} number port"
  44119. msgstr ""
  44120. #. type: deftypevr
  44121. #: guix-git/doc/guix.texi:29339
  44122. msgid "Port number the server listens to."
  44123. msgstr ""
  44124. #. type: deftypevr
  44125. #: guix-git/doc/guix.texi:29341 guix-git/doc/guix.texi:29453
  44126. msgid "Defaults to @samp{1194}."
  44127. msgstr ""
  44128. #. type: Plain text
  44129. #: guix-git/doc/guix.texi:29350
  44130. msgid "Available @code{openvpn-server-configuration} fields are:"
  44131. msgstr ""
  44132. #. type: deftypevr
  44133. #: guix-git/doc/guix.texi:29351
  44134. #, no-wrap
  44135. msgid "{@code{openvpn-server-configuration} parameter} package openvpn"
  44136. msgstr ""
  44137. #. type: deftypevr
  44138. #: guix-git/doc/guix.texi:29356
  44139. #, no-wrap
  44140. msgid "{@code{openvpn-server-configuration} parameter} string pid-file"
  44141. msgstr ""
  44142. #. type: deftypevr
  44143. #: guix-git/doc/guix.texi:29363
  44144. #, no-wrap
  44145. msgid "{@code{openvpn-server-configuration} parameter} proto proto"
  44146. msgstr ""
  44147. #. type: deftypevr
  44148. #: guix-git/doc/guix.texi:29371
  44149. #, no-wrap
  44150. msgid "{@code{openvpn-server-configuration} parameter} dev dev"
  44151. msgstr ""
  44152. #. type: deftypevr
  44153. #: guix-git/doc/guix.texi:29382
  44154. #, no-wrap
  44155. msgid "{@code{openvpn-server-configuration} parameter} maybe-string ca"
  44156. msgstr ""
  44157. #. type: deftypevr
  44158. #: guix-git/doc/guix.texi:29389
  44159. #, no-wrap
  44160. msgid "{@code{openvpn-server-configuration} parameter} maybe-string cert"
  44161. msgstr ""
  44162. #. type: deftypevr
  44163. #: guix-git/doc/guix.texi:29397
  44164. #, no-wrap
  44165. msgid "{@code{openvpn-server-configuration} parameter} maybe-string key"
  44166. msgstr ""
  44167. #. type: deftypevr
  44168. #: guix-git/doc/guix.texi:29405
  44169. #, no-wrap
  44170. msgid "{@code{openvpn-server-configuration} parameter} boolean comp-lzo?"
  44171. msgstr ""
  44172. #. type: deftypevr
  44173. #: guix-git/doc/guix.texi:29412
  44174. #, no-wrap
  44175. msgid "{@code{openvpn-server-configuration} parameter} boolean persist-key?"
  44176. msgstr ""
  44177. #. type: deftypevr
  44178. #: guix-git/doc/guix.texi:29419
  44179. #, no-wrap
  44180. msgid "{@code{openvpn-server-configuration} parameter} boolean persist-tun?"
  44181. msgstr ""
  44182. #. type: deftypevr
  44183. #: guix-git/doc/guix.texi:29427
  44184. #, no-wrap
  44185. msgid "{@code{openvpn-server-configuration} parameter} boolean fast-io?"
  44186. msgstr ""
  44187. #. type: deftypevr
  44188. #: guix-git/doc/guix.texi:29434
  44189. #, no-wrap
  44190. msgid "{@code{openvpn-server-configuration} parameter} number verbosity"
  44191. msgstr ""
  44192. #. type: deftypevr
  44193. #: guix-git/doc/guix.texi:29441
  44194. #, no-wrap
  44195. msgid "{@code{openvpn-server-configuration} parameter} tls-auth-server tls-auth"
  44196. msgstr ""
  44197. #. type: deftypevr
  44198. #: guix-git/doc/guix.texi:29449
  44199. #, no-wrap
  44200. msgid "{@code{openvpn-server-configuration} parameter} number port"
  44201. msgstr ""
  44202. #. type: deftypevr
  44203. #: guix-git/doc/guix.texi:29451
  44204. msgid "Specifies the port number on which the server listens."
  44205. msgstr ""
  44206. #. type: deftypevr
  44207. #: guix-git/doc/guix.texi:29456
  44208. #, no-wrap
  44209. msgid "{@code{openvpn-server-configuration} parameter} ip-mask server"
  44210. msgstr ""
  44211. #. type: deftypevr
  44212. #: guix-git/doc/guix.texi:29458
  44213. msgid "An ip and mask specifying the subnet inside the virtual network."
  44214. msgstr ""
  44215. #. type: deftypevr
  44216. #: guix-git/doc/guix.texi:29460
  44217. msgid "Defaults to @samp{\"10.8.0.0 255.255.255.0\"}."
  44218. msgstr ""
  44219. #. type: deftypevr
  44220. #: guix-git/doc/guix.texi:29463
  44221. #, no-wrap
  44222. msgid "{@code{openvpn-server-configuration} parameter} cidr6 server-ipv6"
  44223. msgstr ""
  44224. #. type: deftypevr
  44225. #: guix-git/doc/guix.texi:29465
  44226. msgid "A CIDR notation specifying the IPv6 subnet inside the virtual network."
  44227. msgstr ""
  44228. #. type: deftypevr
  44229. #: guix-git/doc/guix.texi:29470
  44230. #, no-wrap
  44231. msgid "{@code{openvpn-server-configuration} parameter} string dh"
  44232. msgstr ""
  44233. #. type: deftypevr
  44234. #: guix-git/doc/guix.texi:29472
  44235. msgid "The Diffie-Hellman parameters file."
  44236. msgstr ""
  44237. #. type: deftypevr
  44238. #: guix-git/doc/guix.texi:29474
  44239. msgid "Defaults to @samp{\"/etc/openvpn/dh2048.pem\"}."
  44240. msgstr ""
  44241. #. type: deftypevr
  44242. #: guix-git/doc/guix.texi:29477
  44243. #, no-wrap
  44244. msgid "{@code{openvpn-server-configuration} parameter} string ifconfig-pool-persist"
  44245. msgstr ""
  44246. #. type: deftypevr
  44247. #: guix-git/doc/guix.texi:29479
  44248. msgid "The file that records client IPs."
  44249. msgstr ""
  44250. #. type: deftypevr
  44251. #: guix-git/doc/guix.texi:29481
  44252. msgid "Defaults to @samp{\"/etc/openvpn/ipp.txt\"}."
  44253. msgstr ""
  44254. #. type: deftypevr
  44255. #: guix-git/doc/guix.texi:29484
  44256. #, no-wrap
  44257. msgid "{@code{openvpn-server-configuration} parameter} gateway redirect-gateway?"
  44258. msgstr ""
  44259. #. type: deftypevr
  44260. #: guix-git/doc/guix.texi:29486
  44261. msgid "When true, the server will act as a gateway for its clients."
  44262. msgstr ""
  44263. #. type: deftypevr
  44264. #: guix-git/doc/guix.texi:29491
  44265. #, no-wrap
  44266. msgid "{@code{openvpn-server-configuration} parameter} boolean client-to-client?"
  44267. msgstr ""
  44268. #. type: deftypevr
  44269. #: guix-git/doc/guix.texi:29493
  44270. msgid "When true, clients are allowed to talk to each other inside the VPN."
  44271. msgstr ""
  44272. #. type: deftypevr
  44273. #: guix-git/doc/guix.texi:29498
  44274. #, no-wrap
  44275. msgid "{@code{openvpn-server-configuration} parameter} keepalive keepalive"
  44276. msgstr ""
  44277. #. type: deftypevr
  44278. #: guix-git/doc/guix.texi:29504
  44279. 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."
  44280. msgstr ""
  44281. #. type: deftypevr
  44282. #: guix-git/doc/guix.texi:29507
  44283. #, no-wrap
  44284. msgid "{@code{openvpn-server-configuration} parameter} number max-clients"
  44285. msgstr ""
  44286. #. type: deftypevr
  44287. #: guix-git/doc/guix.texi:29509
  44288. msgid "The maximum number of clients."
  44289. msgstr ""
  44290. #. type: deftypevr
  44291. #: guix-git/doc/guix.texi:29514
  44292. #, no-wrap
  44293. msgid "{@code{openvpn-server-configuration} parameter} string status"
  44294. msgstr ""
  44295. #. type: deftypevr
  44296. #: guix-git/doc/guix.texi:29517
  44297. msgid "The status file. This file shows a small report on current connection. It is truncated and rewritten every minute."
  44298. msgstr ""
  44299. #. type: deftypevr
  44300. #: guix-git/doc/guix.texi:29519
  44301. msgid "Defaults to @samp{\"/var/run/openvpn/status\"}."
  44302. msgstr ""
  44303. #. type: deftypevr
  44304. #: guix-git/doc/guix.texi:29522
  44305. #, no-wrap
  44306. msgid "{@code{openvpn-server-configuration} parameter} openvpn-ccd-list client-config-dir"
  44307. msgstr ""
  44308. #. type: deftypevr
  44309. #: guix-git/doc/guix.texi:29524
  44310. msgid "The list of configuration for some clients."
  44311. msgstr ""
  44312. #. type: deftypevr
  44313. #: guix-git/doc/guix.texi:29528
  44314. msgid "Available @code{openvpn-ccd-configuration} fields are:"
  44315. msgstr ""
  44316. #. type: deftypevr
  44317. #: guix-git/doc/guix.texi:29529
  44318. #, no-wrap
  44319. msgid "{@code{openvpn-ccd-configuration} parameter} string name"
  44320. msgstr ""
  44321. #. type: deftypevr
  44322. #: guix-git/doc/guix.texi:29531
  44323. msgid "Client name."
  44324. msgstr ""
  44325. #. type: deftypevr
  44326. #: guix-git/doc/guix.texi:29533
  44327. msgid "Defaults to @samp{\"client\"}."
  44328. msgstr ""
  44329. #. type: deftypevr
  44330. #: guix-git/doc/guix.texi:29536
  44331. #, no-wrap
  44332. msgid "{@code{openvpn-ccd-configuration} parameter} ip-mask iroute"
  44333. msgstr ""
  44334. #. type: deftypevr
  44335. #: guix-git/doc/guix.texi:29538
  44336. msgid "Client own network"
  44337. msgstr ""
  44338. #. type: deftypevr
  44339. #: guix-git/doc/guix.texi:29543
  44340. #, no-wrap
  44341. msgid "{@code{openvpn-ccd-configuration} parameter} ip-mask ifconfig-push"
  44342. msgstr ""
  44343. #. type: deftypevr
  44344. #: guix-git/doc/guix.texi:29545
  44345. msgid "Client VPN IP."
  44346. msgstr ""
  44347. #. type: subheading
  44348. #: guix-git/doc/guix.texi:29554
  44349. #, no-wrap
  44350. msgid "strongSwan"
  44351. msgstr ""
  44352. #. type: Plain text
  44353. #: guix-git/doc/guix.texi:29558
  44354. msgid "Currently, the strongSwan service only provides legacy-style configuration with @file{ipsec.conf} and @file{ipsec.secrets} files."
  44355. msgstr ""
  44356. #. type: defvr
  44357. #: guix-git/doc/guix.texi:29559
  44358. #, no-wrap
  44359. msgid "{Scheme Variable} strongswan-service-type"
  44360. msgstr ""
  44361. #. type: defvr
  44362. #: guix-git/doc/guix.texi:29563
  44363. 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:"
  44364. msgstr ""
  44365. #. type: lisp
  44366. #: guix-git/doc/guix.texi:29569
  44367. #, no-wrap
  44368. msgid ""
  44369. "(service strongswan-service-type\n"
  44370. " (strongswan-configuration\n"
  44371. " (ipsec-conf \"/etc/ipsec.conf\")\n"
  44372. " (ipsec-secrets \"/etc/ipsec.secrets\")))\n"
  44373. msgstr ""
  44374. #. type: deftp
  44375. #: guix-git/doc/guix.texi:29573
  44376. #, fuzzy, no-wrap
  44377. msgid "{Data Type} strongswan-configuration"
  44378. msgstr "系统配置"
  44379. #. type: deftp
  44380. #: guix-git/doc/guix.texi:29575
  44381. #, fuzzy
  44382. msgid "Data type representing the configuration of the StrongSwan service."
  44383. msgstr "管理操作系统配置。"
  44384. #. type: code{#1}
  44385. #: guix-git/doc/guix.texi:29577
  44386. #, no-wrap
  44387. msgid "strongswan"
  44388. msgstr ""
  44389. #. type: table
  44390. #: guix-git/doc/guix.texi:29579
  44391. #, fuzzy
  44392. msgid "The strongSwan package to use for this service."
  44393. msgstr "软件包数据类型。"
  44394. #. type: item
  44395. #: guix-git/doc/guix.texi:29580
  44396. #, fuzzy, no-wrap
  44397. msgid "@code{ipsec-conf} (default: @code{#f})"
  44398. msgstr "@code{port}(默认值:@code{22})"
  44399. #. type: table
  44400. #: guix-git/doc/guix.texi:29583
  44401. msgid "The file name of your @file{ipsec.conf}. If not @code{#f}, then this and @code{ipsec-secrets} must both be strings."
  44402. msgstr ""
  44403. #. type: item
  44404. #: guix-git/doc/guix.texi:29584
  44405. #, fuzzy, no-wrap
  44406. msgid "@code{ipsec-secrets} (default @code{#f})"
  44407. msgstr "@code{speed}(默认值:@code{1.0})"
  44408. #. type: table
  44409. #: guix-git/doc/guix.texi:29587
  44410. msgid "The file name of your @file{ipsec.secrets}. If not @code{#f}, then this and @code{ipsec-conf} must both be strings."
  44411. msgstr ""
  44412. #. type: subsubheading
  44413. #: guix-git/doc/guix.texi:29591
  44414. #, no-wrap
  44415. msgid "Wireguard"
  44416. msgstr ""
  44417. #. type: defvr
  44418. #: guix-git/doc/guix.texi:29593
  44419. #, no-wrap
  44420. msgid "{Scheme Variable} wireguard-service-type"
  44421. msgstr ""
  44422. #. type: defvr
  44423. #: guix-git/doc/guix.texi:29596
  44424. msgid "A service type for a Wireguard tunnel interface. Its value must be a @code{wireguard-configuration} record as in this example:"
  44425. msgstr ""
  44426. #. type: lisp
  44427. #: guix-git/doc/guix.texi:29607
  44428. #, no-wrap
  44429. msgid ""
  44430. "(service wireguard-service-type\n"
  44431. " (wireguard-configuration\n"
  44432. " (peers\n"
  44433. " (list\n"
  44434. " (wireguard-peer\n"
  44435. " (name \"my-peer\")\n"
  44436. " (endpoint \"my.wireguard.com:51820\")\n"
  44437. " (public-key \"hzpKg9X1yqu1axN6iJp0mWf6BZGo8m1wteKwtTmDGF4=\")\n"
  44438. " (allowed-ips '(\"10.0.0.2/32\")))))))\n"
  44439. msgstr ""
  44440. #. type: deftp
  44441. #: guix-git/doc/guix.texi:29611
  44442. #, fuzzy, no-wrap
  44443. msgid "{Data Type} wireguard-configuration"
  44444. msgstr "{数据类型} build-machine"
  44445. #. type: deftp
  44446. #: guix-git/doc/guix.texi:29613
  44447. #, fuzzy
  44448. msgid "Data type representing the configuration of the Wireguard service."
  44449. msgstr "管理操作系统配置。"
  44450. #. type: code{#1}
  44451. #: guix-git/doc/guix.texi:29615
  44452. #, no-wrap
  44453. msgid "wireguard"
  44454. msgstr ""
  44455. #. type: table
  44456. #: guix-git/doc/guix.texi:29617
  44457. #, fuzzy
  44458. msgid "The wireguard package to use for this service."
  44459. msgstr "软件包数据类型。"
  44460. #. type: item
  44461. #: guix-git/doc/guix.texi:29618
  44462. #, fuzzy, no-wrap
  44463. msgid "@code{interface} (default: @code{\"wg0\"})"
  44464. msgstr "@code{display}(默认值:@code{\":0\"})"
  44465. #. type: table
  44466. #: guix-git/doc/guix.texi:29620
  44467. msgid "The interface name for the VPN."
  44468. msgstr ""
  44469. #. type: item
  44470. #: guix-git/doc/guix.texi:29621
  44471. #, fuzzy, no-wrap
  44472. msgid "@code{addresses} (default: @code{'(\"10.0.0.1/32\")})"
  44473. msgstr "@code{display}(默认值:@code{\":0\"})"
  44474. #. type: table
  44475. #: guix-git/doc/guix.texi:29623
  44476. msgid "The IP addresses to be assigned to the above interface."
  44477. msgstr ""
  44478. #. type: item
  44479. #: guix-git/doc/guix.texi:29624
  44480. #, fuzzy, no-wrap
  44481. msgid "@code{port} (default: @code{51820})"
  44482. msgstr "@code{port}(默认值:@code{22})"
  44483. #. type: table
  44484. #: guix-git/doc/guix.texi:29626
  44485. msgid "The port on which to listen for incoming connections."
  44486. msgstr ""
  44487. #. type: item
  44488. #: guix-git/doc/guix.texi:29627
  44489. #, fuzzy, no-wrap
  44490. msgid "@code{dns} (default: @code{#f})"
  44491. msgstr "@code{port}(默认值:@code{22})"
  44492. #. type: table
  44493. #: guix-git/doc/guix.texi:29629
  44494. msgid "The DNS server(s) to announce to VPN clients via DHCP."
  44495. msgstr ""
  44496. #. type: item
  44497. #: guix-git/doc/guix.texi:29630
  44498. #, fuzzy, no-wrap
  44499. msgid "@code{private-key} (default: @code{\"/etc/wireguard/private.key\"})"
  44500. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  44501. #. type: table
  44502. #: guix-git/doc/guix.texi:29633
  44503. msgid "The private key file for the interface. It is automatically generated if the file does not exist."
  44504. msgstr ""
  44505. #. type: item
  44506. #: guix-git/doc/guix.texi:29634
  44507. #, fuzzy, no-wrap
  44508. msgid "@code{peers} (default: @code{'()})"
  44509. msgstr "@code{features} (@code{'()})"
  44510. #. type: table
  44511. #: guix-git/doc/guix.texi:29637
  44512. msgid "The authorized peers on this interface. This is a list of @var{wireguard-peer} records."
  44513. msgstr ""
  44514. #. type: deftp
  44515. #: guix-git/doc/guix.texi:29641
  44516. #, fuzzy, no-wrap
  44517. msgid "{Data Type} wireguard-peer"
  44518. msgstr "{数据类型} build-machine"
  44519. #. type: deftp
  44520. #: guix-git/doc/guix.texi:29643
  44521. #, fuzzy
  44522. msgid "Data type representing a Wireguard peer attached to a given interface."
  44523. msgstr "管理操作系统配置。"
  44524. #. type: table
  44525. #: guix-git/doc/guix.texi:29647
  44526. #, fuzzy
  44527. msgid "The peer name."
  44528. msgstr "仓库monad"
  44529. #. type: item
  44530. #: guix-git/doc/guix.texi:29648
  44531. #, fuzzy, no-wrap
  44532. msgid "@code{endpoint} (default: @code{#f})"
  44533. msgstr "@code{port}(默认值:@code{22})"
  44534. #. type: table
  44535. #: guix-git/doc/guix.texi:29651
  44536. msgid "The optional endpoint for the peer, such as @code{\"demo.wireguard.com:51820\"}."
  44537. msgstr ""
  44538. #. type: itemx
  44539. #: guix-git/doc/guix.texi:29652 guix-git/doc/guix.texi:30047
  44540. #: guix-git/doc/guix.texi:30084 guix-git/doc/guix.texi:35339
  44541. #, no-wrap
  44542. msgid "public-key"
  44543. msgstr ""
  44544. #. type: table
  44545. #: guix-git/doc/guix.texi:29654
  44546. msgid "The peer public-key represented as a base64 string."
  44547. msgstr ""
  44548. #. type: code{#1}
  44549. #: guix-git/doc/guix.texi:29655
  44550. #, no-wrap
  44551. msgid "allowed-ips"
  44552. msgstr ""
  44553. #. type: table
  44554. #: guix-git/doc/guix.texi:29658
  44555. 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."
  44556. msgstr ""
  44557. #. type: item
  44558. #: guix-git/doc/guix.texi:29659
  44559. #, fuzzy, no-wrap
  44560. msgid "@code{keep-alive} (default: @code{#f})"
  44561. msgstr "@code{challenge}(默认值:@code{#f})"
  44562. #. type: table
  44563. #: guix-git/doc/guix.texi:29664
  44564. 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."
  44565. msgstr ""
  44566. #. type: cindex
  44567. #: guix-git/doc/guix.texi:29670
  44568. #, no-wrap
  44569. msgid "NFS"
  44570. msgstr ""
  44571. #. type: Plain text
  44572. #: guix-git/doc/guix.texi:29675
  44573. 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)."
  44574. msgstr ""
  44575. #. type: Plain text
  44576. #: guix-git/doc/guix.texi:29679
  44577. 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}."
  44578. msgstr ""
  44579. #. type: subsubheading
  44580. #: guix-git/doc/guix.texi:29680
  44581. #, fuzzy, no-wrap
  44582. msgid "NFS Service"
  44583. msgstr "DNS服务"
  44584. #. type: cindex
  44585. #: guix-git/doc/guix.texi:29681
  44586. #, fuzzy, no-wrap
  44587. msgid "NFS, server"
  44588. msgstr "Web服务。"
  44589. #. type: Plain text
  44590. #: guix-git/doc/guix.texi:29686
  44591. 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."
  44592. msgstr ""
  44593. #. type: defvr
  44594. #: guix-git/doc/guix.texi:29687
  44595. #, no-wrap
  44596. msgid "{Scheme Variable} nfs-service-type"
  44597. msgstr ""
  44598. #. type: defvr
  44599. #: guix-git/doc/guix.texi:29689
  44600. msgid "A service type for a complete NFS server."
  44601. msgstr ""
  44602. #. type: deftp
  44603. #: guix-git/doc/guix.texi:29691
  44604. #, fuzzy, no-wrap
  44605. msgid "{Data Type} nfs-configuration"
  44606. msgstr "系统配置"
  44607. #. type: deftp
  44608. #: guix-git/doc/guix.texi:29694
  44609. msgid "This data type represents the configuration of the NFS service and all of its subsystems."
  44610. msgstr ""
  44611. #. type: deftp
  44612. #: guix-git/doc/guix.texi:29696
  44613. #, fuzzy
  44614. msgid "It has the following parameters:"
  44615. msgstr "GNU Guix依赖这些软件包:"
  44616. #. type: item
  44617. #: guix-git/doc/guix.texi:29697 guix-git/doc/guix.texi:29822
  44618. #: guix-git/doc/guix.texi:29847
  44619. #, no-wrap
  44620. msgid "@code{nfs-utils} (default: @code{nfs-utils})"
  44621. msgstr ""
  44622. #. type: table
  44623. #: guix-git/doc/guix.texi:29699
  44624. #, fuzzy
  44625. msgid "The nfs-utils package to use."
  44626. msgstr "软件包数据类型。"
  44627. #. type: item
  44628. #: guix-git/doc/guix.texi:29700
  44629. #, fuzzy, no-wrap
  44630. msgid "@code{nfs-versions} (default: @code{'(\"4.2\" \"4.1\" \"4.0\")})"
  44631. msgstr "@code{features} (@code{'()})"
  44632. #. type: table
  44633. #: guix-git/doc/guix.texi:29703
  44634. 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."
  44635. msgstr ""
  44636. #. type: item
  44637. #: guix-git/doc/guix.texi:29704
  44638. #, fuzzy, no-wrap
  44639. msgid "@code{exports} (default: @code{'()})"
  44640. msgstr "@code{port}(默认值:@code{22})"
  44641. #. type: table
  44642. #: guix-git/doc/guix.texi:29709
  44643. 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:"
  44644. msgstr ""
  44645. #. type: lisp
  44646. #: guix-git/doc/guix.texi:29715
  44647. #, no-wrap
  44648. msgid ""
  44649. "(nfs-configuration\n"
  44650. " (exports\n"
  44651. " '((\"/export\"\n"
  44652. " \"*(ro,insecure,no_subtree_check,crossmnt,fsid=0)\"))))\n"
  44653. msgstr ""
  44654. #. type: item
  44655. #: guix-git/doc/guix.texi:29717
  44656. #, fuzzy, no-wrap
  44657. msgid "@code{rpcmountd-port} (default: @code{#f})"
  44658. msgstr "@code{port}(默认值:@code{22})"
  44659. #. type: table
  44660. #: guix-git/doc/guix.texi:29719
  44661. msgid "The network port that the @command{rpc.mountd} daemon should use."
  44662. msgstr ""
  44663. #. type: item
  44664. #: guix-git/doc/guix.texi:29720
  44665. #, fuzzy, no-wrap
  44666. msgid "@code{rpcstatd-port} (default: @code{#f})"
  44667. msgstr "@code{port}(默认值:@code{22})"
  44668. #. type: table
  44669. #: guix-git/doc/guix.texi:29722
  44670. msgid "The network port that the @command{rpc.statd} daemon should use."
  44671. msgstr ""
  44672. #. type: item
  44673. #: guix-git/doc/guix.texi:29723 guix-git/doc/guix.texi:29771
  44674. #, no-wrap
  44675. msgid "@code{rpcbind} (default: @code{rpcbind})"
  44676. msgstr ""
  44677. #. type: table
  44678. #: guix-git/doc/guix.texi:29725 guix-git/doc/guix.texi:29773
  44679. msgid "The rpcbind package to use."
  44680. msgstr ""
  44681. #. type: item
  44682. #: guix-git/doc/guix.texi:29726
  44683. #, fuzzy, no-wrap
  44684. msgid "@code{idmap-domain} (default: @code{\"localdomain\"})"
  44685. msgstr "@code{mate}(默认值:@code{mate})"
  44686. #. type: table
  44687. #: guix-git/doc/guix.texi:29728
  44688. msgid "The local NFSv4 domain name."
  44689. msgstr ""
  44690. #. type: item
  44691. #: guix-git/doc/guix.texi:29729
  44692. #, fuzzy, no-wrap
  44693. msgid "@code{nfsd-port} (default: @code{2049})"
  44694. msgstr "@code{port}(默认值:@code{22})"
  44695. #. type: table
  44696. #: guix-git/doc/guix.texi:29731
  44697. msgid "The network port that the @command{nfsd} daemon should use."
  44698. msgstr ""
  44699. #. type: item
  44700. #: guix-git/doc/guix.texi:29732
  44701. #, fuzzy, no-wrap
  44702. msgid "@code{nfsd-threads} (default: @code{8})"
  44703. msgstr "@code{features} (@code{'()})"
  44704. #. type: table
  44705. #: guix-git/doc/guix.texi:29734
  44706. msgid "The number of threads used by the @command{nfsd} daemon."
  44707. msgstr ""
  44708. #. type: item
  44709. #: guix-git/doc/guix.texi:29735
  44710. #, fuzzy, no-wrap
  44711. msgid "@code{nfsd-tcp?} (default: @code{#t})"
  44712. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  44713. #. type: table
  44714. #: guix-git/doc/guix.texi:29737
  44715. msgid "Whether the @command{nfsd} daemon should listen on a TCP socket."
  44716. msgstr ""
  44717. #. type: item
  44718. #: guix-git/doc/guix.texi:29738
  44719. #, fuzzy, no-wrap
  44720. msgid "@code{nfsd-udp?} (default: @code{#f})"
  44721. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  44722. #. type: table
  44723. #: guix-git/doc/guix.texi:29740
  44724. msgid "Whether the @command{nfsd} daemon should listen on a UDP socket."
  44725. msgstr ""
  44726. #. type: item
  44727. #: guix-git/doc/guix.texi:29741 guix-git/doc/guix.texi:29825
  44728. #: guix-git/doc/guix.texi:29850
  44729. #, no-wrap
  44730. msgid "@code{pipefs-directory} (default: @code{\"/var/lib/nfs/rpc_pipefs\"})"
  44731. msgstr ""
  44732. #. type: table
  44733. #: guix-git/doc/guix.texi:29743 guix-git/doc/guix.texi:29827
  44734. #: guix-git/doc/guix.texi:29852
  44735. msgid "The directory where the pipefs file system is mounted."
  44736. msgstr ""
  44737. #. type: item
  44738. #: guix-git/doc/guix.texi:29744
  44739. #, fuzzy, no-wrap
  44740. msgid "@code{debug} (default: @code{'()\"})"
  44741. msgstr "@code{features} (@code{'()})"
  44742. #. type: table
  44743. #: guix-git/doc/guix.texi:29748
  44744. 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}."
  44745. msgstr ""
  44746. #. type: Plain text
  44747. #: guix-git/doc/guix.texi:29753
  44748. 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."
  44749. msgstr ""
  44750. #. type: subsubheading
  44751. #: guix-git/doc/guix.texi:29754
  44752. #, no-wrap
  44753. msgid "RPC Bind Service"
  44754. msgstr ""
  44755. #. type: cindex
  44756. #: guix-git/doc/guix.texi:29755
  44757. #, no-wrap
  44758. msgid "rpcbind"
  44759. msgstr ""
  44760. #. type: Plain text
  44761. #: guix-git/doc/guix.texi:29761
  44762. 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."
  44763. msgstr ""
  44764. #. type: defvr
  44765. #: guix-git/doc/guix.texi:29762
  44766. #, no-wrap
  44767. msgid "{Scheme Variable} rpcbind-service-type"
  44768. msgstr ""
  44769. #. type: defvr
  44770. #: guix-git/doc/guix.texi:29764
  44771. msgid "A service type for the RPC portmapper daemon."
  44772. msgstr ""
  44773. #. type: deftp
  44774. #: guix-git/doc/guix.texi:29767
  44775. #, no-wrap
  44776. msgid "{Data Type} rpcbind-configuration"
  44777. msgstr ""
  44778. #. type: deftp
  44779. #: guix-git/doc/guix.texi:29770
  44780. msgid "Data type representing the configuration of the RPC Bind Service. This type has the following parameters:"
  44781. msgstr ""
  44782. #. type: item
  44783. #: guix-git/doc/guix.texi:29774
  44784. #, no-wrap
  44785. msgid "@code{warm-start?} (default: @code{#t})"
  44786. msgstr ""
  44787. #. type: table
  44788. #: guix-git/doc/guix.texi:29778
  44789. 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."
  44790. msgstr ""
  44791. #. type: subsubheading
  44792. #: guix-git/doc/guix.texi:29782
  44793. #, no-wrap
  44794. msgid "Pipefs Pseudo File System"
  44795. msgstr ""
  44796. #. type: cindex
  44797. #: guix-git/doc/guix.texi:29783
  44798. #, no-wrap
  44799. msgid "pipefs"
  44800. msgstr ""
  44801. #. type: cindex
  44802. #: guix-git/doc/guix.texi:29784
  44803. #, no-wrap
  44804. msgid "rpc_pipefs"
  44805. msgstr ""
  44806. #. type: Plain text
  44807. #: guix-git/doc/guix.texi:29788
  44808. msgid "The pipefs file system is used to transfer NFS related data between the kernel and user space programs."
  44809. msgstr ""
  44810. #. type: defvr
  44811. #: guix-git/doc/guix.texi:29789
  44812. #, no-wrap
  44813. msgid "{Scheme Variable} pipefs-service-type"
  44814. msgstr ""
  44815. #. type: defvr
  44816. #: guix-git/doc/guix.texi:29791
  44817. msgid "A service type for the pipefs pseudo file system."
  44818. msgstr ""
  44819. #. type: deftp
  44820. #: guix-git/doc/guix.texi:29793
  44821. #, no-wrap
  44822. msgid "{Data Type} pipefs-configuration"
  44823. msgstr ""
  44824. #. type: deftp
  44825. #: guix-git/doc/guix.texi:29796
  44826. msgid "Data type representing the configuration of the pipefs pseudo file system service. This type has the following parameters:"
  44827. msgstr ""
  44828. #. type: item
  44829. #: guix-git/doc/guix.texi:29797
  44830. #, no-wrap
  44831. msgid "@code{mount-point} (default: @code{\"/var/lib/nfs/rpc_pipefs\"})"
  44832. msgstr ""
  44833. #. type: table
  44834. #: guix-git/doc/guix.texi:29799
  44835. msgid "The directory to which the file system is to be attached."
  44836. msgstr ""
  44837. #. type: subsubheading
  44838. #: guix-git/doc/guix.texi:29803
  44839. #, no-wrap
  44840. msgid "GSS Daemon Service"
  44841. msgstr ""
  44842. #. type: cindex
  44843. #: guix-git/doc/guix.texi:29804
  44844. #, no-wrap
  44845. msgid "GSSD"
  44846. msgstr ""
  44847. #. type: cindex
  44848. #: guix-git/doc/guix.texi:29805
  44849. #, no-wrap
  44850. msgid "GSS"
  44851. msgstr ""
  44852. #. type: cindex
  44853. #: guix-git/doc/guix.texi:29806
  44854. #, no-wrap
  44855. msgid "global security system"
  44856. msgstr ""
  44857. #. type: Plain text
  44858. #: guix-git/doc/guix.texi:29813
  44859. 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})."
  44860. msgstr ""
  44861. #. type: defvr
  44862. #: guix-git/doc/guix.texi:29814
  44863. #, no-wrap
  44864. msgid "{Scheme Variable} gss-service-type"
  44865. msgstr ""
  44866. #. type: defvr
  44867. #: guix-git/doc/guix.texi:29816
  44868. msgid "A service type for the Global Security System (GSS) daemon."
  44869. msgstr ""
  44870. #. type: deftp
  44871. #: guix-git/doc/guix.texi:29818
  44872. #, no-wrap
  44873. msgid "{Data Type} gss-configuration"
  44874. msgstr ""
  44875. #. type: deftp
  44876. #: guix-git/doc/guix.texi:29821
  44877. msgid "Data type representing the configuration of the GSS daemon service. This type has the following parameters:"
  44878. msgstr ""
  44879. #. type: table
  44880. #: guix-git/doc/guix.texi:29824
  44881. msgid "The package in which the @command{rpc.gssd} command is to be found."
  44882. msgstr ""
  44883. #. type: subsubheading
  44884. #: guix-git/doc/guix.texi:29832
  44885. #, no-wrap
  44886. msgid "IDMAP Daemon Service"
  44887. msgstr ""
  44888. #. type: cindex
  44889. #: guix-git/doc/guix.texi:29833
  44890. #, no-wrap
  44891. msgid "idmapd"
  44892. msgstr ""
  44893. #. type: cindex
  44894. #: guix-git/doc/guix.texi:29834
  44895. #, no-wrap
  44896. msgid "name mapper"
  44897. msgstr ""
  44898. #. type: Plain text
  44899. #: guix-git/doc/guix.texi:29838
  44900. 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."
  44901. msgstr ""
  44902. #. type: defvr
  44903. #: guix-git/doc/guix.texi:29839
  44904. #, no-wrap
  44905. msgid "{Scheme Variable} idmap-service-type"
  44906. msgstr ""
  44907. #. type: defvr
  44908. #: guix-git/doc/guix.texi:29841
  44909. msgid "A service type for the Identity Mapper (IDMAP) daemon."
  44910. msgstr ""
  44911. #. type: deftp
  44912. #: guix-git/doc/guix.texi:29843
  44913. #, no-wrap
  44914. msgid "{Data Type} idmap-configuration"
  44915. msgstr ""
  44916. #. type: deftp
  44917. #: guix-git/doc/guix.texi:29846
  44918. msgid "Data type representing the configuration of the IDMAP daemon service. This type has the following parameters:"
  44919. msgstr ""
  44920. #. type: table
  44921. #: guix-git/doc/guix.texi:29849
  44922. msgid "The package in which the @command{rpc.idmapd} command is to be found."
  44923. msgstr ""
  44924. #. type: item
  44925. #: guix-git/doc/guix.texi:29853
  44926. #, no-wrap
  44927. msgid "@code{domain} (default: @code{#f})"
  44928. msgstr ""
  44929. #. type: table
  44930. #: guix-git/doc/guix.texi:29857
  44931. 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."
  44932. msgstr ""
  44933. #. type: item
  44934. #: guix-git/doc/guix.texi:29858
  44935. #, fuzzy, no-wrap
  44936. msgid "@code{verbosity} (default: @code{0})"
  44937. msgstr "@code{port}(默认值:@code{22})"
  44938. #. type: table
  44939. #: guix-git/doc/guix.texi:29860
  44940. #, fuzzy
  44941. msgid "The verbosity level of the daemon."
  44942. msgstr "远程机器的主机名。"
  44943. #. type: Plain text
  44944. #: guix-git/doc/guix.texi:29871
  44945. 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})."
  44946. msgstr ""
  44947. #. type: Plain text
  44948. #: guix-git/doc/guix.texi:29873
  44949. msgid "The @code{(gnu services cuirass)} module provides the following service."
  44950. msgstr ""
  44951. #. type: defvr
  44952. #: guix-git/doc/guix.texi:29874
  44953. #, no-wrap
  44954. msgid "{Scheme Procedure} cuirass-service-type"
  44955. msgstr ""
  44956. #. type: defvr
  44957. #: guix-git/doc/guix.texi:29877
  44958. msgid "The type of the Cuirass service. Its value must be a @code{cuirass-configuration} object, as described below."
  44959. msgstr ""
  44960. #. type: Plain text
  44961. #: guix-git/doc/guix.texi:29882
  44962. 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."
  44963. msgstr ""
  44964. #. type: lisp
  44965. #: guix-git/doc/guix.texi:29893
  44966. #, no-wrap
  44967. msgid ""
  44968. "(define %cuirass-specs\n"
  44969. " #~(list (specification\n"
  44970. " (name \"my-channel\")\n"
  44971. " (build '(channels my-channel))\n"
  44972. " (channels\n"
  44973. " (cons (channel\n"
  44974. " (name 'my-channel)\n"
  44975. " (url \"https://my-channel.git\"))\n"
  44976. " %default-channels)))))\n"
  44977. "\n"
  44978. msgstr ""
  44979. #. type: lisp
  44980. #: guix-git/doc/guix.texi:29897 guix-git/doc/guix.texi:29911
  44981. #, no-wrap
  44982. msgid ""
  44983. "(service cuirass-service-type\n"
  44984. " (cuirass-configuration\n"
  44985. " (specifications %cuirass-specs)))\n"
  44986. msgstr ""
  44987. #. type: Plain text
  44988. #: guix-git/doc/guix.texi:29901
  44989. msgid "To build the @code{linux-libre} package defined by the default Guix channel, one can use the following configuration."
  44990. msgstr ""
  44991. #. type: lisp
  44992. #: guix-git/doc/guix.texi:29907
  44993. #, no-wrap
  44994. msgid ""
  44995. "(define %cuirass-specs\n"
  44996. " #~(list (specification\n"
  44997. " (name \"my-linux\")\n"
  44998. " (build '(packages \"linux-libre\")))))\n"
  44999. "\n"
  45000. msgstr ""
  45001. #. type: Plain text
  45002. #: guix-git/doc/guix.texi:29916
  45003. msgid "The other configuration possibilities, as well as the specification record itself are described in the Cuirass manual (@pxref{Specifications,,, cuirass, Cuirass})."
  45004. msgstr ""
  45005. #. type: Plain text
  45006. #: guix-git/doc/guix.texi:29920
  45007. 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."
  45008. msgstr ""
  45009. #. type: deftp
  45010. #: guix-git/doc/guix.texi:29921
  45011. #, no-wrap
  45012. msgid "{Data Type} cuirass-configuration"
  45013. msgstr ""
  45014. #. type: deftp
  45015. #: guix-git/doc/guix.texi:29923
  45016. msgid "Data type representing the configuration of Cuirass."
  45017. msgstr ""
  45018. #. type: item
  45019. #: guix-git/doc/guix.texi:29925 guix-git/doc/guix.texi:30062
  45020. #, no-wrap
  45021. msgid "@code{cuirass} (default: @code{cuirass})"
  45022. msgstr ""
  45023. #. type: table
  45024. #: guix-git/doc/guix.texi:29927 guix-git/doc/guix.texi:30064
  45025. msgid "The Cuirass package to use."
  45026. msgstr ""
  45027. #. type: item
  45028. #: guix-git/doc/guix.texi:29928
  45029. #, no-wrap
  45030. msgid "@code{log-file} (default: @code{\"/var/log/cuirass.log\"})"
  45031. msgstr ""
  45032. #. type: table
  45033. #: guix-git/doc/guix.texi:29930 guix-git/doc/guix.texi:30034
  45034. #: guix-git/doc/guix.texi:30077
  45035. msgid "Location of the log file."
  45036. msgstr ""
  45037. #. type: item
  45038. #: guix-git/doc/guix.texi:29931
  45039. #, fuzzy, no-wrap
  45040. msgid "@code{web-log-file} (default: @code{\"/var/log/cuirass-web.log\"})"
  45041. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  45042. #. type: table
  45043. #: guix-git/doc/guix.texi:29933
  45044. msgid "Location of the log file used by the web interface."
  45045. msgstr ""
  45046. #. type: item
  45047. #: guix-git/doc/guix.texi:29934
  45048. #, no-wrap
  45049. msgid "@code{cache-directory} (default: @code{\"/var/cache/cuirass\"})"
  45050. msgstr ""
  45051. #. type: table
  45052. #: guix-git/doc/guix.texi:29936
  45053. msgid "Location of the repository cache."
  45054. msgstr ""
  45055. #. type: item
  45056. #: guix-git/doc/guix.texi:29937
  45057. #, no-wrap
  45058. msgid "@code{user} (default: @code{\"cuirass\"})"
  45059. msgstr ""
  45060. #. type: table
  45061. #: guix-git/doc/guix.texi:29939
  45062. msgid "Owner of the @code{cuirass} process."
  45063. msgstr ""
  45064. #. type: item
  45065. #: guix-git/doc/guix.texi:29940
  45066. #, no-wrap
  45067. msgid "@code{group} (default: @code{\"cuirass\"})"
  45068. msgstr ""
  45069. #. type: table
  45070. #: guix-git/doc/guix.texi:29942
  45071. msgid "Owner's group of the @code{cuirass} process."
  45072. msgstr ""
  45073. #. type: item
  45074. #: guix-git/doc/guix.texi:29943
  45075. #, no-wrap
  45076. msgid "@code{interval} (default: @code{60})"
  45077. msgstr ""
  45078. #. type: table
  45079. #: guix-git/doc/guix.texi:29946
  45080. msgid "Number of seconds between the poll of the repositories followed by the Cuirass jobs."
  45081. msgstr ""
  45082. #. type: item
  45083. #: guix-git/doc/guix.texi:29947
  45084. #, fuzzy, no-wrap
  45085. msgid "@code{parameters} (default: @code{#f})"
  45086. msgstr "@code{port}(默认值:@code{22})"
  45087. #. type: table
  45088. #: guix-git/doc/guix.texi:29950
  45089. msgid "Read parameters from the given @var{parameters} file. The supported parameters are described here (@pxref{Parameters,,, cuirass, Cuirass})."
  45090. msgstr ""
  45091. #. type: item
  45092. #: guix-git/doc/guix.texi:29951
  45093. #, fuzzy, no-wrap
  45094. msgid "@code{remote-server} (default: @code{#f})"
  45095. msgstr "@code{speed}(默认值:@code{1.0})"
  45096. #. type: table
  45097. #: guix-git/doc/guix.texi:29954
  45098. msgid "A @code{cuirass-remote-server-configuration} record to use the build remote mechanism or @code{#f} to use the default build mechanism."
  45099. msgstr ""
  45100. #. type: item
  45101. #: guix-git/doc/guix.texi:29955
  45102. #, fuzzy, no-wrap
  45103. msgid "@code{database} (default: @code{\"dbname=cuirass host=/var/run/postgresql\"})"
  45104. msgstr "@code{port}(默认值:@code{22})"
  45105. #. type: table
  45106. #: guix-git/doc/guix.texi:29960
  45107. 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\"}."
  45108. msgstr ""
  45109. #. type: item
  45110. #: guix-git/doc/guix.texi:29961
  45111. #, no-wrap
  45112. msgid "@code{port} (default: @code{8081})"
  45113. msgstr ""
  45114. #. type: table
  45115. #: guix-git/doc/guix.texi:29963
  45116. msgid "Port number used by the HTTP server."
  45117. msgstr ""
  45118. #. type: table
  45119. #: guix-git/doc/guix.texi:29967
  45120. msgid "Listen on the network interface for @var{host}. The default is to accept connections from localhost."
  45121. msgstr ""
  45122. #. type: item
  45123. #: guix-git/doc/guix.texi:29968
  45124. #, no-wrap
  45125. msgid "@code{specifications} (default: @code{#~'()})"
  45126. msgstr ""
  45127. #. type: table
  45128. #: guix-git/doc/guix.texi:29972
  45129. 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})."
  45130. msgstr ""
  45131. #. type: item
  45132. #: guix-git/doc/guix.texi:29973
  45133. #, no-wrap
  45134. msgid "@code{use-substitutes?} (default: @code{#f})"
  45135. msgstr ""
  45136. #. type: table
  45137. #: guix-git/doc/guix.texi:29976
  45138. msgid "This allows using substitutes to avoid building every dependencies of a job from source."
  45139. msgstr ""
  45140. #. type: item
  45141. #: guix-git/doc/guix.texi:29977 guix-git/doc/guix.texi:37431
  45142. #, no-wrap
  45143. msgid "@code{one-shot?} (default: @code{#f})"
  45144. msgstr ""
  45145. #. type: table
  45146. #: guix-git/doc/guix.texi:29979
  45147. msgid "Only evaluate specifications and build derivations once."
  45148. msgstr ""
  45149. #. type: item
  45150. #: guix-git/doc/guix.texi:29980
  45151. #, no-wrap
  45152. msgid "@code{fallback?} (default: @code{#f})"
  45153. msgstr ""
  45154. #. type: table
  45155. #: guix-git/doc/guix.texi:29983
  45156. msgid "When substituting a pre-built binary fails, fall back to building packages locally."
  45157. msgstr ""
  45158. #. type: table
  45159. #: guix-git/doc/guix.texi:29986
  45160. msgid "Extra options to pass when running the Cuirass processes."
  45161. msgstr ""
  45162. #. type: cindex
  45163. #: guix-git/doc/guix.texi:29990
  45164. #, fuzzy, no-wrap
  45165. msgid "remote build"
  45166. msgstr "可复现的构建"
  45167. #. type: subsubheading
  45168. #: guix-git/doc/guix.texi:29991
  45169. #, no-wrap
  45170. msgid "Cuirass remote building"
  45171. msgstr ""
  45172. #. type: Plain text
  45173. #: guix-git/doc/guix.texi:29994
  45174. msgid "Cuirass supports two mechanisms to build derivations."
  45175. msgstr ""
  45176. #. type: item
  45177. #: guix-git/doc/guix.texi:29996
  45178. #, fuzzy, no-wrap
  45179. msgid "Using the local Guix daemon."
  45180. msgstr "运行“构建后台进程”"
  45181. #. type: itemize
  45182. #: guix-git/doc/guix.texi:30000
  45183. 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."
  45184. msgstr ""
  45185. #. type: item
  45186. #: guix-git/doc/guix.texi:30001
  45187. #, fuzzy, no-wrap
  45188. msgid "Using the remote build mechanism."
  45189. msgstr "准备隔离的构建环境。"
  45190. #. type: itemize
  45191. #: guix-git/doc/guix.texi:30005
  45192. 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."
  45193. msgstr ""
  45194. #. type: Plain text
  45195. #: guix-git/doc/guix.texi:30012
  45196. 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."
  45197. msgstr ""
  45198. #. type: Plain text
  45199. #: guix-git/doc/guix.texi:30017
  45200. 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."
  45201. msgstr ""
  45202. #. type: deftp
  45203. #: guix-git/doc/guix.texi:30018
  45204. #, fuzzy, no-wrap
  45205. msgid "{Data Type} cuirass-remote-server-configuration"
  45206. msgstr "{数据类型} build-machine"
  45207. #. type: deftp
  45208. #: guix-git/doc/guix.texi:30020
  45209. #, fuzzy
  45210. msgid "Data type representing the configuration of the Cuirass remote-server."
  45211. msgstr "管理操作系统配置。"
  45212. #. type: item
  45213. #: guix-git/doc/guix.texi:30022
  45214. #, fuzzy, no-wrap
  45215. msgid "@code{backend-port} (default: @code{5555})"
  45216. msgstr "@code{port}(默认值:@code{22})"
  45217. #. type: table
  45218. #: guix-git/doc/guix.texi:30025
  45219. msgid "The TCP port for communicating with @code{remote-worker} processes using ZMQ. It defaults to @code{5555}."
  45220. msgstr ""
  45221. #. type: item
  45222. #: guix-git/doc/guix.texi:30026
  45223. #, fuzzy, no-wrap
  45224. msgid "@code{log-port} (default: @code{5556})"
  45225. msgstr "@code{port}(默认值:@code{22})"
  45226. #. type: table
  45227. #: guix-git/doc/guix.texi:30028
  45228. msgid "The TCP port of the log server. It defaults to @code{5556}."
  45229. msgstr ""
  45230. #. type: item
  45231. #: guix-git/doc/guix.texi:30029
  45232. #, fuzzy, no-wrap
  45233. msgid "@code{publish-port} (default: @code{5557})"
  45234. msgstr "@code{port}(默认值:@code{22})"
  45235. #. type: table
  45236. #: guix-git/doc/guix.texi:30031
  45237. msgid "The TCP port of the publish server. It defaults to @code{5557}."
  45238. msgstr ""
  45239. #. type: item
  45240. #: guix-git/doc/guix.texi:30032
  45241. #, fuzzy, no-wrap
  45242. msgid "@code{log-file} (default: @code{\"/var/log/cuirass-remote-server.log\"})"
  45243. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  45244. #. type: item
  45245. #: guix-git/doc/guix.texi:30035
  45246. #, fuzzy, no-wrap
  45247. msgid "@code{cache} (default: @code{\"/var/cache/cuirass/remote\"})"
  45248. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  45249. #. type: table
  45250. #: guix-git/doc/guix.texi:30037
  45251. msgid "Use @var{cache} directory to cache build log files."
  45252. msgstr ""
  45253. #. type: item
  45254. #: guix-git/doc/guix.texi:30038
  45255. #, fuzzy, no-wrap
  45256. msgid "@code{trigger-url} (default: @code{#f})"
  45257. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  45258. #. type: table
  45259. #: guix-git/doc/guix.texi:30041
  45260. msgid "Once a substitute is successfully fetched, trigger substitute baking at @var{trigger-url}."
  45261. msgstr ""
  45262. #. type: table
  45263. #: guix-git/doc/guix.texi:30046
  45264. 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."
  45265. msgstr ""
  45266. #. type: code{#1}
  45267. #: guix-git/doc/guix.texi:30048 guix-git/doc/guix.texi:30085
  45268. #, no-wrap
  45269. msgid "private-key"
  45270. msgstr ""
  45271. #. type: Plain text
  45272. #: guix-git/doc/guix.texi:30057
  45273. 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."
  45274. msgstr ""
  45275. #. type: deftp
  45276. #: guix-git/doc/guix.texi:30058
  45277. #, fuzzy, no-wrap
  45278. msgid "{Data Type} cuirass-remote-worker-configuration"
  45279. msgstr "{数据类型} build-machine"
  45280. #. type: deftp
  45281. #: guix-git/doc/guix.texi:30060
  45282. #, fuzzy
  45283. msgid "Data type representing the configuration of the Cuirass remote-worker."
  45284. msgstr "管理操作系统配置。"
  45285. #. type: item
  45286. #: guix-git/doc/guix.texi:30065
  45287. #, fuzzy, no-wrap
  45288. msgid "@code{workers} (default: @code{1})"
  45289. msgstr "@code{features} (@code{'()})"
  45290. #. type: table
  45291. #: guix-git/doc/guix.texi:30067
  45292. msgid "Start @var{workers} parallel workers."
  45293. msgstr ""
  45294. #. type: table
  45295. #: guix-git/doc/guix.texi:30071
  45296. msgid "Do not use Avahi discovery and connect to the given @code{server} IP address instead."
  45297. msgstr ""
  45298. #. type: item
  45299. #: guix-git/doc/guix.texi:30072
  45300. #, fuzzy, no-wrap
  45301. msgid "@code{systems} (default: @code{(list (%current-system))})"
  45302. msgstr "@code{port}(默认值:@code{22})"
  45303. #. type: table
  45304. #: guix-git/doc/guix.texi:30074
  45305. msgid "Only request builds for the given @var{systems}."
  45306. msgstr ""
  45307. #. type: item
  45308. #: guix-git/doc/guix.texi:30075
  45309. #, fuzzy, no-wrap
  45310. msgid "@code{log-file} (default: @code{\"/var/log/cuirass-remote-worker.log\"})"
  45311. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  45312. #. type: item
  45313. #: guix-git/doc/guix.texi:30078
  45314. #, fuzzy, no-wrap
  45315. msgid "@code{publish-port} (default: @code{5558})"
  45316. msgstr "@code{port}(默认值:@code{22})"
  45317. #. type: table
  45318. #: guix-git/doc/guix.texi:30080
  45319. msgid "The TCP port of the publish server. It defaults to @code{5558}."
  45320. msgstr ""
  45321. #. type: subsubheading
  45322. #: guix-git/doc/guix.texi:30092
  45323. #, no-wrap
  45324. msgid "Laminar"
  45325. msgstr ""
  45326. #. type: Plain text
  45327. #: guix-git/doc/guix.texi:30097
  45328. 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."
  45329. msgstr ""
  45330. #. type: Plain text
  45331. #: guix-git/doc/guix.texi:30100
  45332. msgid "Laminar encourages the use of existing tools such as bash and cron instead of reinventing them."
  45333. msgstr ""
  45334. #. type: defvr
  45335. #: guix-git/doc/guix.texi:30101
  45336. #, no-wrap
  45337. msgid "{Scheme Procedure} laminar-service-type"
  45338. msgstr ""
  45339. #. type: defvr
  45340. #: guix-git/doc/guix.texi:30104
  45341. msgid "The type of the Laminar service. Its value must be a @code{laminar-configuration} object, as described below."
  45342. msgstr ""
  45343. #. type: defvr
  45344. #: guix-git/doc/guix.texi:30108
  45345. 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."
  45346. msgstr ""
  45347. #. type: lisp
  45348. #: guix-git/doc/guix.texi:30111
  45349. #, no-wrap
  45350. msgid "(service laminar-service-type)\n"
  45351. msgstr ""
  45352. #. type: deftp
  45353. #: guix-git/doc/guix.texi:30114
  45354. #, fuzzy, no-wrap
  45355. msgid "{Data Type} laminar-configuration"
  45356. msgstr "{数据类型} build-machine"
  45357. #. type: deftp
  45358. #: guix-git/doc/guix.texi:30116
  45359. #, fuzzy
  45360. msgid "Data type representing the configuration of Laminar."
  45361. msgstr "管理操作系统配置。"
  45362. #. type: item
  45363. #: guix-git/doc/guix.texi:30118
  45364. #, fuzzy, no-wrap
  45365. msgid "@code{laminar} (default: @code{laminar})"
  45366. msgstr "@code{mate}(默认值:@code{mate})"
  45367. #. type: table
  45368. #: guix-git/doc/guix.texi:30120
  45369. #, fuzzy
  45370. msgid "The Laminar package to use."
  45371. msgstr "软件包数据类型。"
  45372. #. type: item
  45373. #: guix-git/doc/guix.texi:30121
  45374. #, fuzzy, no-wrap
  45375. msgid "@code{home-directory} (default: @code{\"/var/lib/laminar\"})"
  45376. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  45377. #. type: table
  45378. #: guix-git/doc/guix.texi:30123
  45379. msgid "The directory for job configurations and run directories."
  45380. msgstr ""
  45381. #. type: item
  45382. #: guix-git/doc/guix.texi:30124
  45383. #, fuzzy, no-wrap
  45384. msgid "@code{bind-http} (default: @code{\"*:8080\"})"
  45385. msgstr "@code{port}(默认值:@code{22})"
  45386. #. type: table
  45387. #: guix-git/doc/guix.texi:30127
  45388. msgid "The interface/port or unix socket on which laminard should listen for incoming connections to the web frontend."
  45389. msgstr ""
  45390. #. type: item
  45391. #: guix-git/doc/guix.texi:30128
  45392. #, fuzzy, no-wrap
  45393. msgid "@code{bind-rpc} (default: @code{\"unix-abstract:laminar\"})"
  45394. msgstr "@code{gnome}(默认值:@code{gnome})"
  45395. #. type: table
  45396. #: guix-git/doc/guix.texi:30131
  45397. msgid "The interface/port or unix socket on which laminard should listen for incoming commands such as build triggers."
  45398. msgstr ""
  45399. #. type: item
  45400. #: guix-git/doc/guix.texi:30132
  45401. #, fuzzy, no-wrap
  45402. msgid "@code{title} (default: @code{\"Laminar\"})"
  45403. msgstr "@code{mate}(默认值:@code{mate})"
  45404. #. type: table
  45405. #: guix-git/doc/guix.texi:30134
  45406. #, fuzzy
  45407. msgid "The page title to show in the web frontend."
  45408. msgstr "rottlog服务。"
  45409. #. type: item
  45410. #: guix-git/doc/guix.texi:30135
  45411. #, fuzzy, no-wrap
  45412. msgid "@code{keep-rundirs} (default: @code{0})"
  45413. msgstr "@code{features} (@code{'()})"
  45414. #. type: table
  45415. #: guix-git/doc/guix.texi:30139
  45416. 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."
  45417. msgstr ""
  45418. #. type: item
  45419. #: guix-git/doc/guix.texi:30140
  45420. #, fuzzy, no-wrap
  45421. msgid "@code{archive-url} (default: @code{#f})"
  45422. msgstr "@code{challenge}(默认值:@code{#f})"
  45423. #. type: table
  45424. #: guix-git/doc/guix.texi:30143
  45425. msgid "The web frontend served by laminard will use this URL to form links to artefacts archived jobs."
  45426. msgstr ""
  45427. #. type: item
  45428. #: guix-git/doc/guix.texi:30144
  45429. #, fuzzy, no-wrap
  45430. msgid "@code{base-url} (default: @code{#f})"
  45431. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  45432. #. type: table
  45433. #: guix-git/doc/guix.texi:30146
  45434. msgid "Base URL to use for links to laminar itself."
  45435. msgstr ""
  45436. #. type: cindex
  45437. #: guix-git/doc/guix.texi:30153
  45438. #, no-wrap
  45439. msgid "tlp"
  45440. msgstr ""
  45441. #. type: cindex
  45442. #: guix-git/doc/guix.texi:30154
  45443. #, no-wrap
  45444. msgid "power management with TLP"
  45445. msgstr ""
  45446. #. type: subsubheading
  45447. #: guix-git/doc/guix.texi:30155
  45448. #, no-wrap
  45449. msgid "TLP daemon"
  45450. msgstr ""
  45451. #. type: Plain text
  45452. #: guix-git/doc/guix.texi:30159
  45453. msgid "The @code{(gnu services pm)} module provides a Guix service definition for the Linux power management tool TLP."
  45454. msgstr ""
  45455. #. type: Plain text
  45456. #: guix-git/doc/guix.texi:30165
  45457. 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}."
  45458. msgstr ""
  45459. #. type: deffn
  45460. #: guix-git/doc/guix.texi:30166
  45461. #, no-wrap
  45462. msgid "{Scheme Variable} tlp-service-type"
  45463. msgstr ""
  45464. #. type: deffn
  45465. #: guix-git/doc/guix.texi:30170
  45466. 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}:"
  45467. msgstr ""
  45468. #. type: lisp
  45469. #: guix-git/doc/guix.texi:30175
  45470. #, no-wrap
  45471. msgid ""
  45472. "(service tlp-service-type\n"
  45473. " (tlp-configuration\n"
  45474. " (cpu-scaling-governor-on-ac (list \"performance\"))\n"
  45475. " (sched-powersave-on-bat? #t)))\n"
  45476. msgstr ""
  45477. #. type: Plain text
  45478. #: guix-git/doc/guix.texi:30183
  45479. 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}."
  45480. msgstr ""
  45481. #. type: Plain text
  45482. #: guix-git/doc/guix.texi:30193
  45483. msgid "Available @code{tlp-configuration} fields are:"
  45484. msgstr ""
  45485. #. type: deftypevr
  45486. #: guix-git/doc/guix.texi:30194
  45487. #, no-wrap
  45488. msgid "{@code{tlp-configuration} parameter} package tlp"
  45489. msgstr ""
  45490. #. type: deftypevr
  45491. #: guix-git/doc/guix.texi:30196
  45492. msgid "The TLP package."
  45493. msgstr ""
  45494. #. type: deftypevr
  45495. #: guix-git/doc/guix.texi:30199
  45496. #, no-wrap
  45497. msgid "{@code{tlp-configuration} parameter} boolean tlp-enable?"
  45498. msgstr ""
  45499. #. type: deftypevr
  45500. #: guix-git/doc/guix.texi:30201
  45501. msgid "Set to true if you wish to enable TLP."
  45502. msgstr ""
  45503. #. type: deftypevr
  45504. #: guix-git/doc/guix.texi:30206
  45505. #, no-wrap
  45506. msgid "{@code{tlp-configuration} parameter} string tlp-default-mode"
  45507. msgstr ""
  45508. #. type: deftypevr
  45509. #: guix-git/doc/guix.texi:30209
  45510. msgid "Default mode when no power supply can be detected. Alternatives are AC and BAT."
  45511. msgstr ""
  45512. #. type: deftypevr
  45513. #: guix-git/doc/guix.texi:30211
  45514. msgid "Defaults to @samp{\"AC\"}."
  45515. msgstr ""
  45516. #. type: deftypevr
  45517. #: guix-git/doc/guix.texi:30214
  45518. #, no-wrap
  45519. msgid "{@code{tlp-configuration} parameter} non-negative-integer disk-idle-secs-on-ac"
  45520. msgstr ""
  45521. #. type: deftypevr
  45522. #: guix-git/doc/guix.texi:30217
  45523. msgid "Number of seconds Linux kernel has to wait after the disk goes idle, before syncing on AC."
  45524. msgstr ""
  45525. #. type: deftypevr
  45526. #: guix-git/doc/guix.texi:30222
  45527. #, no-wrap
  45528. msgid "{@code{tlp-configuration} parameter} non-negative-integer disk-idle-secs-on-bat"
  45529. msgstr ""
  45530. #. type: deftypevr
  45531. #: guix-git/doc/guix.texi:30224
  45532. msgid "Same as @code{disk-idle-ac} but on BAT mode."
  45533. msgstr ""
  45534. #. type: deftypevr
  45535. #: guix-git/doc/guix.texi:30226
  45536. msgid "Defaults to @samp{2}."
  45537. msgstr ""
  45538. #. type: deftypevr
  45539. #: guix-git/doc/guix.texi:30229
  45540. #, no-wrap
  45541. msgid "{@code{tlp-configuration} parameter} non-negative-integer max-lost-work-secs-on-ac"
  45542. msgstr ""
  45543. #. type: deftypevr
  45544. #: guix-git/doc/guix.texi:30231
  45545. msgid "Dirty pages flushing periodicity, expressed in seconds."
  45546. msgstr ""
  45547. #. type: deftypevr
  45548. #: guix-git/doc/guix.texi:30233 guix-git/doc/guix.texi:30456
  45549. #: guix-git/doc/guix.texi:32760 guix-git/doc/guix.texi:32768
  45550. msgid "Defaults to @samp{15}."
  45551. msgstr ""
  45552. #. type: deftypevr
  45553. #: guix-git/doc/guix.texi:30236
  45554. #, no-wrap
  45555. msgid "{@code{tlp-configuration} parameter} non-negative-integer max-lost-work-secs-on-bat"
  45556. msgstr ""
  45557. #. type: deftypevr
  45558. #: guix-git/doc/guix.texi:30238
  45559. msgid "Same as @code{max-lost-work-secs-on-ac} but on BAT mode."
  45560. msgstr ""
  45561. #. type: deftypevr
  45562. #: guix-git/doc/guix.texi:30240
  45563. msgid "Defaults to @samp{60}."
  45564. msgstr ""
  45565. #. type: deftypevr
  45566. #: guix-git/doc/guix.texi:30243
  45567. #, no-wrap
  45568. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list cpu-scaling-governor-on-ac"
  45569. msgstr ""
  45570. #. type: deftypevr
  45571. #: guix-git/doc/guix.texi:30247
  45572. 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."
  45573. msgstr ""
  45574. #. type: deftypevr
  45575. #: guix-git/doc/guix.texi:30252
  45576. #, no-wrap
  45577. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list cpu-scaling-governor-on-bat"
  45578. msgstr ""
  45579. #. type: deftypevr
  45580. #: guix-git/doc/guix.texi:30254
  45581. msgid "Same as @code{cpu-scaling-governor-on-ac} but on BAT mode."
  45582. msgstr ""
  45583. #. type: deftypevr
  45584. #: guix-git/doc/guix.texi:30259
  45585. #, no-wrap
  45586. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-min-freq-on-ac"
  45587. msgstr ""
  45588. #. type: deftypevr
  45589. #: guix-git/doc/guix.texi:30261
  45590. msgid "Set the min available frequency for the scaling governor on AC."
  45591. msgstr ""
  45592. #. type: deftypevr
  45593. #: guix-git/doc/guix.texi:30266
  45594. #, no-wrap
  45595. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-max-freq-on-ac"
  45596. msgstr ""
  45597. #. type: deftypevr
  45598. #: guix-git/doc/guix.texi:30268
  45599. msgid "Set the max available frequency for the scaling governor on AC."
  45600. msgstr ""
  45601. #. type: deftypevr
  45602. #: guix-git/doc/guix.texi:30273
  45603. #, no-wrap
  45604. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-min-freq-on-bat"
  45605. msgstr ""
  45606. #. type: deftypevr
  45607. #: guix-git/doc/guix.texi:30275
  45608. msgid "Set the min available frequency for the scaling governor on BAT."
  45609. msgstr ""
  45610. #. type: deftypevr
  45611. #: guix-git/doc/guix.texi:30280
  45612. #, no-wrap
  45613. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-max-freq-on-bat"
  45614. msgstr ""
  45615. #. type: deftypevr
  45616. #: guix-git/doc/guix.texi:30282
  45617. msgid "Set the max available frequency for the scaling governor on BAT."
  45618. msgstr ""
  45619. #. type: deftypevr
  45620. #: guix-git/doc/guix.texi:30287
  45621. #, no-wrap
  45622. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-min-perf-on-ac"
  45623. msgstr ""
  45624. #. type: deftypevr
  45625. #: guix-git/doc/guix.texi:30290
  45626. 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."
  45627. msgstr ""
  45628. #. type: deftypevr
  45629. #: guix-git/doc/guix.texi:30295
  45630. #, no-wrap
  45631. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-max-perf-on-ac"
  45632. msgstr ""
  45633. #. type: deftypevr
  45634. #: guix-git/doc/guix.texi:30298
  45635. 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."
  45636. msgstr ""
  45637. #. type: deftypevr
  45638. #: guix-git/doc/guix.texi:30303
  45639. #, no-wrap
  45640. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-min-perf-on-bat"
  45641. msgstr ""
  45642. #. type: deftypevr
  45643. #: guix-git/doc/guix.texi:30305
  45644. msgid "Same as @code{cpu-min-perf-on-ac} on BAT mode."
  45645. msgstr ""
  45646. #. type: deftypevr
  45647. #: guix-git/doc/guix.texi:30310
  45648. #, no-wrap
  45649. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-max-perf-on-bat"
  45650. msgstr ""
  45651. #. type: deftypevr
  45652. #: guix-git/doc/guix.texi:30312
  45653. msgid "Same as @code{cpu-max-perf-on-ac} on BAT mode."
  45654. msgstr ""
  45655. #. type: deftypevr
  45656. #: guix-git/doc/guix.texi:30317
  45657. #, no-wrap
  45658. msgid "{@code{tlp-configuration} parameter} maybe-boolean cpu-boost-on-ac?"
  45659. msgstr ""
  45660. #. type: deftypevr
  45661. #: guix-git/doc/guix.texi:30319
  45662. msgid "Enable CPU turbo boost feature on AC mode."
  45663. msgstr ""
  45664. #. type: deftypevr
  45665. #: guix-git/doc/guix.texi:30324
  45666. #, no-wrap
  45667. msgid "{@code{tlp-configuration} parameter} maybe-boolean cpu-boost-on-bat?"
  45668. msgstr ""
  45669. #. type: deftypevr
  45670. #: guix-git/doc/guix.texi:30326
  45671. msgid "Same as @code{cpu-boost-on-ac?} on BAT mode."
  45672. msgstr ""
  45673. #. type: deftypevr
  45674. #: guix-git/doc/guix.texi:30331
  45675. #, no-wrap
  45676. msgid "{@code{tlp-configuration} parameter} boolean sched-powersave-on-ac?"
  45677. msgstr ""
  45678. #. type: deftypevr
  45679. #: guix-git/doc/guix.texi:30334
  45680. msgid "Allow Linux kernel to minimize the number of CPU cores/hyper-threads used under light load conditions."
  45681. msgstr ""
  45682. #. type: deftypevr
  45683. #: guix-git/doc/guix.texi:30339
  45684. #, no-wrap
  45685. msgid "{@code{tlp-configuration} parameter} boolean sched-powersave-on-bat?"
  45686. msgstr ""
  45687. #. type: deftypevr
  45688. #: guix-git/doc/guix.texi:30341
  45689. msgid "Same as @code{sched-powersave-on-ac?} but on BAT mode."
  45690. msgstr ""
  45691. #. type: deftypevr
  45692. #: guix-git/doc/guix.texi:30346
  45693. #, no-wrap
  45694. msgid "{@code{tlp-configuration} parameter} boolean nmi-watchdog?"
  45695. msgstr ""
  45696. #. type: deftypevr
  45697. #: guix-git/doc/guix.texi:30348
  45698. msgid "Enable Linux kernel NMI watchdog."
  45699. msgstr ""
  45700. #. type: deftypevr
  45701. #: guix-git/doc/guix.texi:30353
  45702. #, no-wrap
  45703. msgid "{@code{tlp-configuration} parameter} maybe-string phc-controls"
  45704. msgstr ""
  45705. #. type: deftypevr
  45706. #: guix-git/doc/guix.texi:30356
  45707. 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\"}."
  45708. msgstr ""
  45709. #. type: deftypevr
  45710. #: guix-git/doc/guix.texi:30361
  45711. #, no-wrap
  45712. msgid "{@code{tlp-configuration} parameter} string energy-perf-policy-on-ac"
  45713. msgstr ""
  45714. #. type: deftypevr
  45715. #: guix-git/doc/guix.texi:30364
  45716. msgid "Set CPU performance versus energy saving policy on AC@. Alternatives are performance, normal, powersave."
  45717. msgstr ""
  45718. #. type: deftypevr
  45719. #: guix-git/doc/guix.texi:30366 guix-git/doc/guix.texi:30464
  45720. #: guix-git/doc/guix.texi:30522
  45721. msgid "Defaults to @samp{\"performance\"}."
  45722. msgstr ""
  45723. #. type: deftypevr
  45724. #: guix-git/doc/guix.texi:30369
  45725. #, no-wrap
  45726. msgid "{@code{tlp-configuration} parameter} string energy-perf-policy-on-bat"
  45727. msgstr ""
  45728. #. type: deftypevr
  45729. #: guix-git/doc/guix.texi:30371
  45730. msgid "Same as @code{energy-perf-policy-ac} but on BAT mode."
  45731. msgstr ""
  45732. #. type: deftypevr
  45733. #: guix-git/doc/guix.texi:30373 guix-git/doc/guix.texi:30471
  45734. msgid "Defaults to @samp{\"powersave\"}."
  45735. msgstr ""
  45736. #. type: deftypevr
  45737. #: guix-git/doc/guix.texi:30376
  45738. #, no-wrap
  45739. msgid "{@code{tlp-configuration} parameter} space-separated-string-list disks-devices"
  45740. msgstr ""
  45741. #. type: deftypevr
  45742. #: guix-git/doc/guix.texi:30378
  45743. msgid "Hard disk devices."
  45744. msgstr ""
  45745. #. type: deftypevr
  45746. #: guix-git/doc/guix.texi:30381
  45747. #, no-wrap
  45748. msgid "{@code{tlp-configuration} parameter} space-separated-string-list disk-apm-level-on-ac"
  45749. msgstr ""
  45750. #. type: deftypevr
  45751. #: guix-git/doc/guix.texi:30383
  45752. msgid "Hard disk advanced power management level."
  45753. msgstr ""
  45754. #. type: deftypevr
  45755. #: guix-git/doc/guix.texi:30386
  45756. #, no-wrap
  45757. msgid "{@code{tlp-configuration} parameter} space-separated-string-list disk-apm-level-on-bat"
  45758. msgstr ""
  45759. #. type: deftypevr
  45760. #: guix-git/doc/guix.texi:30388
  45761. msgid "Same as @code{disk-apm-bat} but on BAT mode."
  45762. msgstr ""
  45763. #. type: deftypevr
  45764. #: guix-git/doc/guix.texi:30391
  45765. #, no-wrap
  45766. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list disk-spindown-timeout-on-ac"
  45767. msgstr ""
  45768. #. type: deftypevr
  45769. #: guix-git/doc/guix.texi:30394
  45770. msgid "Hard disk spin down timeout. One value has to be specified for each declared hard disk."
  45771. msgstr ""
  45772. #. type: deftypevr
  45773. #: guix-git/doc/guix.texi:30399
  45774. #, no-wrap
  45775. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list disk-spindown-timeout-on-bat"
  45776. msgstr ""
  45777. #. type: deftypevr
  45778. #: guix-git/doc/guix.texi:30401
  45779. msgid "Same as @code{disk-spindown-timeout-on-ac} but on BAT mode."
  45780. msgstr ""
  45781. #. type: deftypevr
  45782. #: guix-git/doc/guix.texi:30406
  45783. #, no-wrap
  45784. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list disk-iosched"
  45785. msgstr ""
  45786. #. type: deftypevr
  45787. #: guix-git/doc/guix.texi:30410
  45788. 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."
  45789. msgstr ""
  45790. #. type: deftypevr
  45791. #: guix-git/doc/guix.texi:30415
  45792. #, no-wrap
  45793. msgid "{@code{tlp-configuration} parameter} string sata-linkpwr-on-ac"
  45794. msgstr ""
  45795. #. type: deftypevr
  45796. #: guix-git/doc/guix.texi:30418
  45797. msgid "SATA aggressive link power management (ALPM) level. Alternatives are min_power, medium_power, max_performance."
  45798. msgstr ""
  45799. #. type: deftypevr
  45800. #: guix-git/doc/guix.texi:30420
  45801. msgid "Defaults to @samp{\"max_performance\"}."
  45802. msgstr ""
  45803. #. type: deftypevr
  45804. #: guix-git/doc/guix.texi:30423
  45805. #, no-wrap
  45806. msgid "{@code{tlp-configuration} parameter} string sata-linkpwr-on-bat"
  45807. msgstr ""
  45808. #. type: deftypevr
  45809. #: guix-git/doc/guix.texi:30425
  45810. msgid "Same as @code{sata-linkpwr-ac} but on BAT mode."
  45811. msgstr ""
  45812. #. type: deftypevr
  45813. #: guix-git/doc/guix.texi:30427
  45814. msgid "Defaults to @samp{\"min_power\"}."
  45815. msgstr ""
  45816. #. type: deftypevr
  45817. #: guix-git/doc/guix.texi:30430
  45818. #, no-wrap
  45819. msgid "{@code{tlp-configuration} parameter} maybe-string sata-linkpwr-blacklist"
  45820. msgstr ""
  45821. #. type: deftypevr
  45822. #: guix-git/doc/guix.texi:30432
  45823. msgid "Exclude specified SATA host devices for link power management."
  45824. msgstr ""
  45825. #. type: deftypevr
  45826. #: guix-git/doc/guix.texi:30437
  45827. #, no-wrap
  45828. msgid "{@code{tlp-configuration} parameter} maybe-on-off-boolean ahci-runtime-pm-on-ac?"
  45829. msgstr ""
  45830. #. type: deftypevr
  45831. #: guix-git/doc/guix.texi:30440
  45832. msgid "Enable Runtime Power Management for AHCI controller and disks on AC mode."
  45833. msgstr ""
  45834. #. type: deftypevr
  45835. #: guix-git/doc/guix.texi:30445
  45836. #, no-wrap
  45837. msgid "{@code{tlp-configuration} parameter} maybe-on-off-boolean ahci-runtime-pm-on-bat?"
  45838. msgstr ""
  45839. #. type: deftypevr
  45840. #: guix-git/doc/guix.texi:30447
  45841. msgid "Same as @code{ahci-runtime-pm-on-ac} on BAT mode."
  45842. msgstr ""
  45843. #. type: deftypevr
  45844. #: guix-git/doc/guix.texi:30452
  45845. #, no-wrap
  45846. msgid "{@code{tlp-configuration} parameter} non-negative-integer ahci-runtime-pm-timeout"
  45847. msgstr ""
  45848. #. type: deftypevr
  45849. #: guix-git/doc/guix.texi:30454
  45850. msgid "Seconds of inactivity before disk is suspended."
  45851. msgstr ""
  45852. #. type: deftypevr
  45853. #: guix-git/doc/guix.texi:30459
  45854. #, no-wrap
  45855. msgid "{@code{tlp-configuration} parameter} string pcie-aspm-on-ac"
  45856. msgstr ""
  45857. #. type: deftypevr
  45858. #: guix-git/doc/guix.texi:30462
  45859. msgid "PCI Express Active State Power Management level. Alternatives are default, performance, powersave."
  45860. msgstr ""
  45861. #. type: deftypevr
  45862. #: guix-git/doc/guix.texi:30467
  45863. #, no-wrap
  45864. msgid "{@code{tlp-configuration} parameter} string pcie-aspm-on-bat"
  45865. msgstr ""
  45866. #. type: deftypevr
  45867. #: guix-git/doc/guix.texi:30469
  45868. msgid "Same as @code{pcie-aspm-ac} but on BAT mode."
  45869. msgstr ""
  45870. #. type: deftypevr
  45871. #: guix-git/doc/guix.texi:30474
  45872. #, no-wrap
  45873. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer start-charge-thresh-bat0"
  45874. msgstr ""
  45875. #. type: deftypevr
  45876. #: guix-git/doc/guix.texi:30476
  45877. msgid "Percentage when battery 0 should begin charging. Only supported on some laptops."
  45878. msgstr ""
  45879. #. type: deftypevr
  45880. #: guix-git/doc/guix.texi:30481
  45881. #, no-wrap
  45882. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer stop-charge-thresh-bat0"
  45883. msgstr ""
  45884. #. type: deftypevr
  45885. #: guix-git/doc/guix.texi:30483
  45886. msgid "Percentage when battery 0 should stop charging. Only supported on some laptops."
  45887. msgstr ""
  45888. #. type: deftypevr
  45889. #: guix-git/doc/guix.texi:30488
  45890. #, no-wrap
  45891. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer start-charge-thresh-bat1"
  45892. msgstr ""
  45893. #. type: deftypevr
  45894. #: guix-git/doc/guix.texi:30490
  45895. msgid "Percentage when battery 1 should begin charging. Only supported on some laptops."
  45896. msgstr ""
  45897. #. type: deftypevr
  45898. #: guix-git/doc/guix.texi:30495
  45899. #, no-wrap
  45900. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer stop-charge-thresh-bat1"
  45901. msgstr ""
  45902. #. type: deftypevr
  45903. #: guix-git/doc/guix.texi:30497
  45904. msgid "Percentage when battery 1 should stop charging. Only supported on some laptops."
  45905. msgstr ""
  45906. #. type: deftypevr
  45907. #: guix-git/doc/guix.texi:30502
  45908. #, no-wrap
  45909. msgid "{@code{tlp-configuration} parameter} string radeon-power-profile-on-ac"
  45910. msgstr ""
  45911. #. type: deftypevr
  45912. #: guix-git/doc/guix.texi:30505
  45913. msgid "Radeon graphics clock speed level. Alternatives are low, mid, high, auto, default."
  45914. msgstr ""
  45915. #. type: deftypevr
  45916. #: guix-git/doc/guix.texi:30507
  45917. msgid "Defaults to @samp{\"high\"}."
  45918. msgstr ""
  45919. #. type: deftypevr
  45920. #: guix-git/doc/guix.texi:30510
  45921. #, no-wrap
  45922. msgid "{@code{tlp-configuration} parameter} string radeon-power-profile-on-bat"
  45923. msgstr ""
  45924. #. type: deftypevr
  45925. #: guix-git/doc/guix.texi:30512
  45926. msgid "Same as @code{radeon-power-ac} but on BAT mode."
  45927. msgstr ""
  45928. #. type: deftypevr
  45929. #: guix-git/doc/guix.texi:30514
  45930. msgid "Defaults to @samp{\"low\"}."
  45931. msgstr ""
  45932. #. type: deftypevr
  45933. #: guix-git/doc/guix.texi:30517
  45934. #, no-wrap
  45935. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-state-on-ac"
  45936. msgstr ""
  45937. #. type: deftypevr
  45938. #: guix-git/doc/guix.texi:30520
  45939. msgid "Radeon dynamic power management method (DPM). Alternatives are battery, performance."
  45940. msgstr ""
  45941. #. type: deftypevr
  45942. #: guix-git/doc/guix.texi:30525
  45943. #, no-wrap
  45944. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-state-on-bat"
  45945. msgstr ""
  45946. #. type: deftypevr
  45947. #: guix-git/doc/guix.texi:30527
  45948. msgid "Same as @code{radeon-dpm-state-ac} but on BAT mode."
  45949. msgstr ""
  45950. #. type: deftypevr
  45951. #: guix-git/doc/guix.texi:30529
  45952. msgid "Defaults to @samp{\"battery\"}."
  45953. msgstr ""
  45954. #. type: deftypevr
  45955. #: guix-git/doc/guix.texi:30532
  45956. #, no-wrap
  45957. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-perf-level-on-ac"
  45958. msgstr ""
  45959. #. type: deftypevr
  45960. #: guix-git/doc/guix.texi:30534
  45961. msgid "Radeon DPM performance level. Alternatives are auto, low, high."
  45962. msgstr ""
  45963. #. type: deftypevr
  45964. #: guix-git/doc/guix.texi:30536 guix-git/doc/guix.texi:30543
  45965. #: guix-git/doc/guix.texi:30617
  45966. msgid "Defaults to @samp{\"auto\"}."
  45967. msgstr ""
  45968. #. type: deftypevr
  45969. #: guix-git/doc/guix.texi:30539
  45970. #, no-wrap
  45971. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-perf-level-on-bat"
  45972. msgstr ""
  45973. #. type: deftypevr
  45974. #: guix-git/doc/guix.texi:30541
  45975. msgid "Same as @code{radeon-dpm-perf-ac} but on BAT mode."
  45976. msgstr ""
  45977. #. type: deftypevr
  45978. #: guix-git/doc/guix.texi:30546
  45979. #, no-wrap
  45980. msgid "{@code{tlp-configuration} parameter} on-off-boolean wifi-pwr-on-ac?"
  45981. msgstr ""
  45982. #. type: deftypevr
  45983. #: guix-git/doc/guix.texi:30548
  45984. msgid "Wifi power saving mode."
  45985. msgstr ""
  45986. #. type: deftypevr
  45987. #: guix-git/doc/guix.texi:30553
  45988. #, no-wrap
  45989. msgid "{@code{tlp-configuration} parameter} on-off-boolean wifi-pwr-on-bat?"
  45990. msgstr ""
  45991. #. type: deftypevr
  45992. #: guix-git/doc/guix.texi:30555
  45993. msgid "Same as @code{wifi-power-ac?} but on BAT mode."
  45994. msgstr ""
  45995. #. type: deftypevr
  45996. #: guix-git/doc/guix.texi:30560
  45997. #, no-wrap
  45998. msgid "{@code{tlp-configuration} parameter} y-n-boolean wol-disable?"
  45999. msgstr ""
  46000. #. type: deftypevr
  46001. #: guix-git/doc/guix.texi:30562
  46002. msgid "Disable wake on LAN."
  46003. msgstr ""
  46004. #. type: deftypevr
  46005. #: guix-git/doc/guix.texi:30567
  46006. #, no-wrap
  46007. msgid "{@code{tlp-configuration} parameter} non-negative-integer sound-power-save-on-ac"
  46008. msgstr ""
  46009. #. type: deftypevr
  46010. #: guix-git/doc/guix.texi:30570
  46011. msgid "Timeout duration in seconds before activating audio power saving on Intel HDA and AC97 devices. A value of 0 disables power saving."
  46012. msgstr ""
  46013. #. type: deftypevr
  46014. #: guix-git/doc/guix.texi:30575
  46015. #, no-wrap
  46016. msgid "{@code{tlp-configuration} parameter} non-negative-integer sound-power-save-on-bat"
  46017. msgstr ""
  46018. #. type: deftypevr
  46019. #: guix-git/doc/guix.texi:30577
  46020. msgid "Same as @code{sound-powersave-ac} but on BAT mode."
  46021. msgstr ""
  46022. #. type: deftypevr
  46023. #: guix-git/doc/guix.texi:30582
  46024. #, no-wrap
  46025. msgid "{@code{tlp-configuration} parameter} y-n-boolean sound-power-save-controller?"
  46026. msgstr ""
  46027. #. type: deftypevr
  46028. #: guix-git/doc/guix.texi:30584
  46029. msgid "Disable controller in powersaving mode on Intel HDA devices."
  46030. msgstr ""
  46031. #. type: deftypevr
  46032. #: guix-git/doc/guix.texi:30589
  46033. #, no-wrap
  46034. msgid "{@code{tlp-configuration} parameter} boolean bay-poweroff-on-bat?"
  46035. msgstr ""
  46036. #. type: deftypevr
  46037. #: guix-git/doc/guix.texi:30593
  46038. 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."
  46039. msgstr ""
  46040. #. type: deftypevr
  46041. #: guix-git/doc/guix.texi:30598
  46042. #, no-wrap
  46043. msgid "{@code{tlp-configuration} parameter} string bay-device"
  46044. msgstr ""
  46045. #. type: deftypevr
  46046. #: guix-git/doc/guix.texi:30600
  46047. msgid "Name of the optical drive device to power off."
  46048. msgstr ""
  46049. #. type: deftypevr
  46050. #: guix-git/doc/guix.texi:30602
  46051. msgid "Defaults to @samp{\"sr0\"}."
  46052. msgstr ""
  46053. #. type: deftypevr
  46054. #: guix-git/doc/guix.texi:30605
  46055. #, no-wrap
  46056. msgid "{@code{tlp-configuration} parameter} string runtime-pm-on-ac"
  46057. msgstr ""
  46058. #. type: deftypevr
  46059. #: guix-git/doc/guix.texi:30608
  46060. msgid "Runtime Power Management for PCI(e) bus devices. Alternatives are on and auto."
  46061. msgstr ""
  46062. #. type: deftypevr
  46063. #: guix-git/doc/guix.texi:30610
  46064. msgid "Defaults to @samp{\"on\"}."
  46065. msgstr ""
  46066. #. type: deftypevr
  46067. #: guix-git/doc/guix.texi:30613
  46068. #, no-wrap
  46069. msgid "{@code{tlp-configuration} parameter} string runtime-pm-on-bat"
  46070. msgstr ""
  46071. #. type: deftypevr
  46072. #: guix-git/doc/guix.texi:30615
  46073. msgid "Same as @code{runtime-pm-ac} but on BAT mode."
  46074. msgstr ""
  46075. #. type: deftypevr
  46076. #: guix-git/doc/guix.texi:30620
  46077. #, no-wrap
  46078. msgid "{@code{tlp-configuration} parameter} boolean runtime-pm-all?"
  46079. msgstr ""
  46080. #. type: deftypevr
  46081. #: guix-git/doc/guix.texi:30623
  46082. msgid "Runtime Power Management for all PCI(e) bus devices, except blacklisted ones."
  46083. msgstr ""
  46084. #. type: deftypevr
  46085. #: guix-git/doc/guix.texi:30628
  46086. #, no-wrap
  46087. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list runtime-pm-blacklist"
  46088. msgstr ""
  46089. #. type: deftypevr
  46090. #: guix-git/doc/guix.texi:30630
  46091. msgid "Exclude specified PCI(e) device addresses from Runtime Power Management."
  46092. msgstr ""
  46093. #. type: deftypevr
  46094. #: guix-git/doc/guix.texi:30635
  46095. #, no-wrap
  46096. msgid "{@code{tlp-configuration} parameter} space-separated-string-list runtime-pm-driver-blacklist"
  46097. msgstr ""
  46098. #. type: deftypevr
  46099. #: guix-git/doc/guix.texi:30638
  46100. msgid "Exclude PCI(e) devices assigned to the specified drivers from Runtime Power Management."
  46101. msgstr ""
  46102. #. type: deftypevr
  46103. #: guix-git/doc/guix.texi:30641
  46104. #, no-wrap
  46105. msgid "{@code{tlp-configuration} parameter} boolean usb-autosuspend?"
  46106. msgstr ""
  46107. #. type: deftypevr
  46108. #: guix-git/doc/guix.texi:30643
  46109. msgid "Enable USB autosuspend feature."
  46110. msgstr ""
  46111. #. type: deftypevr
  46112. #: guix-git/doc/guix.texi:30648
  46113. #, no-wrap
  46114. msgid "{@code{tlp-configuration} parameter} maybe-string usb-blacklist"
  46115. msgstr ""
  46116. #. type: deftypevr
  46117. #: guix-git/doc/guix.texi:30650
  46118. msgid "Exclude specified devices from USB autosuspend."
  46119. msgstr ""
  46120. #. type: deftypevr
  46121. #: guix-git/doc/guix.texi:30655
  46122. #, no-wrap
  46123. msgid "{@code{tlp-configuration} parameter} boolean usb-blacklist-wwan?"
  46124. msgstr ""
  46125. #. type: deftypevr
  46126. #: guix-git/doc/guix.texi:30657
  46127. msgid "Exclude WWAN devices from USB autosuspend."
  46128. msgstr ""
  46129. #. type: deftypevr
  46130. #: guix-git/doc/guix.texi:30662
  46131. #, no-wrap
  46132. msgid "{@code{tlp-configuration} parameter} maybe-string usb-whitelist"
  46133. msgstr ""
  46134. #. type: deftypevr
  46135. #: guix-git/doc/guix.texi:30665
  46136. msgid "Include specified devices into USB autosuspend, even if they are already excluded by the driver or via @code{usb-blacklist-wwan?}."
  46137. msgstr ""
  46138. #. type: deftypevr
  46139. #: guix-git/doc/guix.texi:30670
  46140. #, no-wrap
  46141. msgid "{@code{tlp-configuration} parameter} maybe-boolean usb-autosuspend-disable-on-shutdown?"
  46142. msgstr ""
  46143. #. type: deftypevr
  46144. #: guix-git/doc/guix.texi:30672
  46145. msgid "Enable USB autosuspend before shutdown."
  46146. msgstr ""
  46147. #. type: deftypevr
  46148. #: guix-git/doc/guix.texi:30677
  46149. #, no-wrap
  46150. msgid "{@code{tlp-configuration} parameter} boolean restore-device-state-on-startup?"
  46151. msgstr ""
  46152. #. type: deftypevr
  46153. #: guix-git/doc/guix.texi:30680
  46154. msgid "Restore radio device state (bluetooth, wifi, wwan) from previous shutdown on system startup."
  46155. msgstr ""
  46156. #. type: cindex
  46157. #: guix-git/doc/guix.texi:30685
  46158. #, no-wrap
  46159. msgid "thermald"
  46160. msgstr ""
  46161. #. type: cindex
  46162. #: guix-git/doc/guix.texi:30686
  46163. #, no-wrap
  46164. msgid "CPU frequency scaling with thermald"
  46165. msgstr ""
  46166. #. type: subsubheading
  46167. #: guix-git/doc/guix.texi:30687
  46168. #, no-wrap
  46169. msgid "Thermald daemon"
  46170. msgstr ""
  46171. #. type: Plain text
  46172. #: guix-git/doc/guix.texi:30691
  46173. msgid "The @code{(gnu services pm)} module provides an interface to thermald, a CPU frequency scaling service which helps prevent overheating."
  46174. msgstr ""
  46175. #. type: defvr
  46176. #: guix-git/doc/guix.texi:30692
  46177. #, no-wrap
  46178. msgid "{Scheme Variable} thermald-service-type"
  46179. msgstr ""
  46180. #. type: defvr
  46181. #: guix-git/doc/guix.texi:30697
  46182. 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."
  46183. msgstr ""
  46184. #. type: deftp
  46185. #: guix-git/doc/guix.texi:30699
  46186. #, no-wrap
  46187. msgid "{Data Type} thermald-configuration"
  46188. msgstr ""
  46189. #. type: deftp
  46190. #: guix-git/doc/guix.texi:30701
  46191. msgid "Data type representing the configuration of @code{thermald-service-type}."
  46192. msgstr ""
  46193. #. type: item
  46194. #: guix-git/doc/guix.texi:30703
  46195. #, fuzzy, no-wrap
  46196. msgid "@code{adaptive?} (default: @code{#f})"
  46197. msgstr "@code{challenge}(默认值:@code{#f})"
  46198. #. type: table
  46199. #: guix-git/doc/guix.texi:30706
  46200. msgid "Use @acronym{DPTF, Dynamic Power and Thermal Framework} adaptive tables when present."
  46201. msgstr ""
  46202. #. type: item
  46203. #: guix-git/doc/guix.texi:30707
  46204. #, no-wrap
  46205. msgid "@code{ignore-cpuid-check?} (default: @code{#f})"
  46206. msgstr ""
  46207. #. type: table
  46208. #: guix-git/doc/guix.texi:30709
  46209. msgid "Ignore cpuid check for supported CPU models."
  46210. msgstr ""
  46211. #. type: item
  46212. #: guix-git/doc/guix.texi:30710
  46213. #, no-wrap
  46214. msgid "@code{thermald} (default: @var{thermald})"
  46215. msgstr ""
  46216. #. type: table
  46217. #: guix-git/doc/guix.texi:30712
  46218. msgid "Package object of thermald."
  46219. msgstr ""
  46220. #. type: Plain text
  46221. #: guix-git/doc/guix.texi:30721
  46222. msgid "The @code{(gnu services audio)} module provides a service to start MPD (the Music Player Daemon)."
  46223. msgstr ""
  46224. #. type: cindex
  46225. #: guix-git/doc/guix.texi:30722
  46226. #, no-wrap
  46227. msgid "mpd"
  46228. msgstr ""
  46229. #. type: subsubheading
  46230. #: guix-git/doc/guix.texi:30723
  46231. #, no-wrap
  46232. msgid "Music Player Daemon"
  46233. msgstr ""
  46234. #. type: Plain text
  46235. #: guix-git/doc/guix.texi:30728
  46236. 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."
  46237. msgstr ""
  46238. #. type: Plain text
  46239. #: guix-git/doc/guix.texi:30731
  46240. msgid "The following example shows how one might run @code{mpd} as user @code{\"bob\"} on port @code{6666}. It uses pulseaudio for output."
  46241. msgstr ""
  46242. #. type: lisp
  46243. #: guix-git/doc/guix.texi:30737
  46244. #, no-wrap
  46245. msgid ""
  46246. "(service mpd-service-type\n"
  46247. " (mpd-configuration\n"
  46248. " (user \"bob\")\n"
  46249. " (port \"6666\")))\n"
  46250. msgstr ""
  46251. #. type: defvr
  46252. #: guix-git/doc/guix.texi:30739
  46253. #, no-wrap
  46254. msgid "{Scheme Variable} mpd-service-type"
  46255. msgstr ""
  46256. #. type: defvr
  46257. #: guix-git/doc/guix.texi:30741
  46258. msgid "The service type for @command{mpd}"
  46259. msgstr ""
  46260. #. type: deftp
  46261. #: guix-git/doc/guix.texi:30743
  46262. #, no-wrap
  46263. msgid "{Data Type} mpd-configuration"
  46264. msgstr ""
  46265. #. type: deftp
  46266. #: guix-git/doc/guix.texi:30745
  46267. msgid "Data type representing the configuration of @command{mpd}."
  46268. msgstr ""
  46269. #. type: item
  46270. #: guix-git/doc/guix.texi:30747
  46271. #, no-wrap
  46272. msgid "@code{user} (default: @code{\"mpd\"})"
  46273. msgstr ""
  46274. #. type: table
  46275. #: guix-git/doc/guix.texi:30749
  46276. msgid "The user to run mpd as."
  46277. msgstr ""
  46278. #. type: item
  46279. #: guix-git/doc/guix.texi:30750
  46280. #, no-wrap
  46281. msgid "@code{music-dir} (default: @code{\"~/Music\"})"
  46282. msgstr ""
  46283. #. type: table
  46284. #: guix-git/doc/guix.texi:30752
  46285. msgid "The directory to scan for music files."
  46286. msgstr ""
  46287. #. type: item
  46288. #: guix-git/doc/guix.texi:30753
  46289. #, no-wrap
  46290. msgid "@code{playlist-dir} (default: @code{\"~/.mpd/playlists\"})"
  46291. msgstr ""
  46292. #. type: table
  46293. #: guix-git/doc/guix.texi:30755
  46294. msgid "The directory to store playlists."
  46295. msgstr ""
  46296. #. type: item
  46297. #: guix-git/doc/guix.texi:30756
  46298. #, no-wrap
  46299. msgid "@code{db-file} (default: @code{\"~/.mpd/tag_cache\"})"
  46300. msgstr ""
  46301. #. type: table
  46302. #: guix-git/doc/guix.texi:30758
  46303. msgid "The location of the music database."
  46304. msgstr ""
  46305. #. type: item
  46306. #: guix-git/doc/guix.texi:30759
  46307. #, no-wrap
  46308. msgid "@code{state-file} (default: @code{\"~/.mpd/state\"})"
  46309. msgstr ""
  46310. #. type: table
  46311. #: guix-git/doc/guix.texi:30761
  46312. msgid "The location of the file that stores current MPD's state."
  46313. msgstr ""
  46314. #. type: item
  46315. #: guix-git/doc/guix.texi:30762
  46316. #, no-wrap
  46317. msgid "@code{sticker-file} (default: @code{\"~/.mpd/sticker.sql\"})"
  46318. msgstr ""
  46319. #. type: table
  46320. #: guix-git/doc/guix.texi:30764
  46321. msgid "The location of the sticker database."
  46322. msgstr ""
  46323. #. type: item
  46324. #: guix-git/doc/guix.texi:30765
  46325. #, no-wrap
  46326. msgid "@code{port} (default: @code{\"6600\"})"
  46327. msgstr ""
  46328. #. type: table
  46329. #: guix-git/doc/guix.texi:30767
  46330. msgid "The port to run mpd on."
  46331. msgstr ""
  46332. #. type: item
  46333. #: guix-git/doc/guix.texi:30768
  46334. #, no-wrap
  46335. msgid "@code{address} (default: @code{\"any\"})"
  46336. msgstr ""
  46337. #. type: table
  46338. #: guix-git/doc/guix.texi:30771
  46339. msgid "The address that mpd will bind to. To use a Unix domain socket, an absolute path can be specified here."
  46340. msgstr ""
  46341. #. type: item
  46342. #: guix-git/doc/guix.texi:30772
  46343. #, fuzzy, no-wrap
  46344. msgid "@code{outputs} (default: @code{\"(list (mpd-output))\"})"
  46345. msgstr "@code{features} (@code{'()})"
  46346. #. type: table
  46347. #: guix-git/doc/guix.texi:30774
  46348. msgid "The audio outputs that MPD can use. By default this is a single output using pulseaudio."
  46349. msgstr ""
  46350. #. type: deftp
  46351. #: guix-git/doc/guix.texi:30778
  46352. #, no-wrap
  46353. msgid "{Data Type} mpd-output"
  46354. msgstr ""
  46355. #. type: deftp
  46356. #: guix-git/doc/guix.texi:30780
  46357. msgid "Data type representing an @command{mpd} audio output."
  46358. msgstr ""
  46359. #. type: item
  46360. #: guix-git/doc/guix.texi:30782
  46361. #, fuzzy, no-wrap
  46362. msgid "@code{name} (default: @code{\"MPD\"})"
  46363. msgstr "@code{gnome}(默认值:@code{gnome})"
  46364. #. type: table
  46365. #: guix-git/doc/guix.texi:30784
  46366. msgid "The name of the audio output."
  46367. msgstr ""
  46368. #. type: item
  46369. #: guix-git/doc/guix.texi:30785
  46370. #, fuzzy, no-wrap
  46371. msgid "@code{type} (default: @code{\"pulse\"})"
  46372. msgstr "@code{mate}(默认值:@code{mate})"
  46373. #. type: table
  46374. #: guix-git/doc/guix.texi:30787
  46375. msgid "The type of audio output."
  46376. msgstr ""
  46377. #. type: item
  46378. #: guix-git/doc/guix.texi:30788
  46379. #, fuzzy, no-wrap
  46380. msgid "@code{enabled?} (default: @code{#t})"
  46381. msgstr "@code{speed}(默认值:@code{1.0})"
  46382. #. type: table
  46383. #: guix-git/doc/guix.texi:30793
  46384. 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."
  46385. msgstr ""
  46386. #. type: item
  46387. #: guix-git/doc/guix.texi:30794
  46388. #, fuzzy, no-wrap
  46389. msgid "@code{tags?} (default: @code{#t})"
  46390. msgstr "@code{mate}(默认值:@code{mate})"
  46391. #. type: table
  46392. #: guix-git/doc/guix.texi:30798
  46393. 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."
  46394. msgstr ""
  46395. #. type: item
  46396. #: guix-git/doc/guix.texi:30799
  46397. #, fuzzy, no-wrap
  46398. msgid "@code{always-on?} (default: @code{#f})"
  46399. msgstr "@code{challenge}(默认值:@code{#f})"
  46400. #. type: table
  46401. #: guix-git/doc/guix.texi:30803
  46402. 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."
  46403. msgstr ""
  46404. #. type: code{#1}
  46405. #: guix-git/doc/guix.texi:30804
  46406. #, no-wrap
  46407. msgid "mixer-type"
  46408. msgstr ""
  46409. #. type: table
  46410. #: guix-git/doc/guix.texi:30810
  46411. 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})."
  46412. msgstr ""
  46413. #. type: table
  46414. #: guix-git/doc/guix.texi:30814
  46415. msgid "An association list of option symbols to string values to be appended to the audio output configuration."
  46416. msgstr ""
  46417. #. type: Plain text
  46418. #: guix-git/doc/guix.texi:30820
  46419. msgid "The following example shows a configuration of @code{mpd} that provides an HTTP audio streaming output."
  46420. msgstr ""
  46421. #. type: lisp
  46422. #: guix-git/doc/guix.texi:30832
  46423. #, no-wrap
  46424. msgid ""
  46425. "(service mpd-service-type\n"
  46426. " (mpd-configuration\n"
  46427. " (outputs\n"
  46428. " (list (mpd-output\n"
  46429. " (name \"streaming\")\n"
  46430. " (type \"httpd\")\n"
  46431. " (mixer-type 'null)\n"
  46432. " (extra-options\n"
  46433. " `((encoder . \"vorbis\")\n"
  46434. " (port . \"8080\"))))))))\n"
  46435. msgstr ""
  46436. #. type: Plain text
  46437. #: guix-git/doc/guix.texi:30841
  46438. msgid "The @code{(gnu services virtualization)} module provides services for the libvirt and virtlog daemons, as well as other virtualization-related services."
  46439. msgstr ""
  46440. #. type: subsubheading
  46441. #: guix-git/doc/guix.texi:30842
  46442. #, no-wrap
  46443. msgid "Libvirt daemon"
  46444. msgstr ""
  46445. #. type: Plain text
  46446. #: guix-git/doc/guix.texi:30847
  46447. 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."
  46448. msgstr ""
  46449. #. type: deffn
  46450. #: guix-git/doc/guix.texi:30848
  46451. #, no-wrap
  46452. msgid "{Scheme Variable} libvirt-service-type"
  46453. msgstr ""
  46454. #. type: deffn
  46455. #: guix-git/doc/guix.texi:30851
  46456. msgid "This is the type of the @uref{https://libvirt.org, libvirt daemon}. Its value must be a @code{libvirt-configuration}."
  46457. msgstr ""
  46458. #. type: lisp
  46459. #: guix-git/doc/guix.texi:30857
  46460. #, no-wrap
  46461. msgid ""
  46462. "(service libvirt-service-type\n"
  46463. " (libvirt-configuration\n"
  46464. " (unix-sock-group \"libvirt\")\n"
  46465. " (tls-port \"16555\")))\n"
  46466. msgstr ""
  46467. #. type: Plain text
  46468. #: guix-git/doc/guix.texi:30862
  46469. msgid "Available @code{libvirt-configuration} fields are:"
  46470. msgstr ""
  46471. #. type: deftypevr
  46472. #: guix-git/doc/guix.texi:30863
  46473. #, no-wrap
  46474. msgid "{@code{libvirt-configuration} parameter} package libvirt"
  46475. msgstr ""
  46476. #. type: deftypevar
  46477. #: guix-git/doc/guix.texi:30865 guix-git/doc/guix.texi:31428
  46478. msgid "Libvirt package."
  46479. msgstr ""
  46480. #. type: deftypevr
  46481. #: guix-git/doc/guix.texi:30868
  46482. #, no-wrap
  46483. msgid "{@code{libvirt-configuration} parameter} boolean listen-tls?"
  46484. msgstr ""
  46485. #. type: deftypevr
  46486. #: guix-git/doc/guix.texi:30871
  46487. msgid "Flag listening for secure TLS connections on the public TCP/IP port. You must set @code{listen} for this to have any effect."
  46488. msgstr ""
  46489. #. type: deftypevr
  46490. #: guix-git/doc/guix.texi:30874
  46491. msgid "It is necessary to setup a CA and issue server certificates before using this capability."
  46492. msgstr ""
  46493. #. type: deftypevr
  46494. #: guix-git/doc/guix.texi:30879
  46495. #, no-wrap
  46496. msgid "{@code{libvirt-configuration} parameter} boolean listen-tcp?"
  46497. msgstr ""
  46498. #. type: deftypevr
  46499. #: guix-git/doc/guix.texi:30882
  46500. msgid "Listen for unencrypted TCP connections on the public TCP/IP port. You must set @code{listen} for this to have any effect."
  46501. msgstr ""
  46502. #. type: deftypevr
  46503. #: guix-git/doc/guix.texi:30886
  46504. 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)."
  46505. msgstr ""
  46506. #. type: deftypevr
  46507. #: guix-git/doc/guix.texi:30891
  46508. #, no-wrap
  46509. msgid "{@code{libvirt-configuration} parameter} string tls-port"
  46510. msgstr ""
  46511. #. type: deftypevr
  46512. #: guix-git/doc/guix.texi:30894
  46513. msgid "Port for accepting secure TLS connections. This can be a port number, or service name."
  46514. msgstr ""
  46515. #. type: deftypevr
  46516. #: guix-git/doc/guix.texi:30896
  46517. msgid "Defaults to @samp{\"16514\"}."
  46518. msgstr ""
  46519. #. type: deftypevr
  46520. #: guix-git/doc/guix.texi:30899
  46521. #, no-wrap
  46522. msgid "{@code{libvirt-configuration} parameter} string tcp-port"
  46523. msgstr ""
  46524. #. type: deftypevr
  46525. #: guix-git/doc/guix.texi:30902
  46526. msgid "Port for accepting insecure TCP connections. This can be a port number, or service name."
  46527. msgstr ""
  46528. #. type: deftypevr
  46529. #: guix-git/doc/guix.texi:30904
  46530. msgid "Defaults to @samp{\"16509\"}."
  46531. msgstr ""
  46532. #. type: deftypevr
  46533. #: guix-git/doc/guix.texi:30907
  46534. #, no-wrap
  46535. msgid "{@code{libvirt-configuration} parameter} string listen-addr"
  46536. msgstr ""
  46537. #. type: deftypevr
  46538. #: guix-git/doc/guix.texi:30909
  46539. msgid "IP address or hostname used for client connections."
  46540. msgstr ""
  46541. #. type: deftypevr
  46542. #: guix-git/doc/guix.texi:30914
  46543. #, no-wrap
  46544. msgid "{@code{libvirt-configuration} parameter} boolean mdns-adv?"
  46545. msgstr ""
  46546. #. type: deftypevr
  46547. #: guix-git/doc/guix.texi:30916
  46548. msgid "Flag toggling mDNS advertisement of the libvirt service."
  46549. msgstr ""
  46550. #. type: deftypevr
  46551. #: guix-git/doc/guix.texi:30919
  46552. msgid "Alternatively can disable for all services on a host by stopping the Avahi daemon."
  46553. msgstr ""
  46554. #. type: deftypevr
  46555. #: guix-git/doc/guix.texi:30924
  46556. #, no-wrap
  46557. msgid "{@code{libvirt-configuration} parameter} string mdns-name"
  46558. msgstr ""
  46559. #. type: deftypevr
  46560. #: guix-git/doc/guix.texi:30927
  46561. msgid "Default mDNS advertisement name. This must be unique on the immediate broadcast network."
  46562. msgstr ""
  46563. #. type: deftypevr
  46564. #: guix-git/doc/guix.texi:30929
  46565. msgid "Defaults to @samp{\"Virtualization Host <hostname>\"}."
  46566. msgstr ""
  46567. #. type: deftypevr
  46568. #: guix-git/doc/guix.texi:30932
  46569. #, no-wrap
  46570. msgid "{@code{libvirt-configuration} parameter} string unix-sock-group"
  46571. msgstr ""
  46572. #. type: deftypevr
  46573. #: guix-git/doc/guix.texi:30936
  46574. msgid "UNIX domain socket group ownership. This can be used to allow a 'trusted' set of users access to management capabilities without becoming root."
  46575. msgstr ""
  46576. #. type: deftypevr
  46577. #: guix-git/doc/guix.texi:30941
  46578. #, no-wrap
  46579. msgid "{@code{libvirt-configuration} parameter} string unix-sock-ro-perms"
  46580. msgstr ""
  46581. #. type: deftypevr
  46582. #: guix-git/doc/guix.texi:30944
  46583. msgid "UNIX socket permissions for the R/O socket. This is used for monitoring VM status only."
  46584. msgstr ""
  46585. #. type: deftypevr
  46586. #: guix-git/doc/guix.texi:30946 guix-git/doc/guix.texi:30964
  46587. msgid "Defaults to @samp{\"0777\"}."
  46588. msgstr ""
  46589. #. type: deftypevr
  46590. #: guix-git/doc/guix.texi:30949
  46591. #, no-wrap
  46592. msgid "{@code{libvirt-configuration} parameter} string unix-sock-rw-perms"
  46593. msgstr ""
  46594. #. type: deftypevr
  46595. #: guix-git/doc/guix.texi:30953
  46596. 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)"
  46597. msgstr ""
  46598. #. type: deftypevr
  46599. #: guix-git/doc/guix.texi:30955
  46600. msgid "Defaults to @samp{\"0770\"}."
  46601. msgstr ""
  46602. #. type: deftypevr
  46603. #: guix-git/doc/guix.texi:30958
  46604. #, no-wrap
  46605. msgid "{@code{libvirt-configuration} parameter} string unix-sock-admin-perms"
  46606. msgstr ""
  46607. #. type: deftypevr
  46608. #: guix-git/doc/guix.texi:30962
  46609. 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."
  46610. msgstr ""
  46611. #. type: deftypevr
  46612. #: guix-git/doc/guix.texi:30967
  46613. #, no-wrap
  46614. msgid "{@code{libvirt-configuration} parameter} string unix-sock-dir"
  46615. msgstr ""
  46616. #. type: deftypevr
  46617. #: guix-git/doc/guix.texi:30969
  46618. msgid "The directory in which sockets will be found/created."
  46619. msgstr ""
  46620. #. type: deftypevr
  46621. #: guix-git/doc/guix.texi:30971
  46622. msgid "Defaults to @samp{\"/var/run/libvirt\"}."
  46623. msgstr ""
  46624. #. type: deftypevr
  46625. #: guix-git/doc/guix.texi:30974
  46626. #, no-wrap
  46627. msgid "{@code{libvirt-configuration} parameter} string auth-unix-ro"
  46628. msgstr ""
  46629. #. type: deftypevr
  46630. #: guix-git/doc/guix.texi:30977
  46631. msgid "Authentication scheme for UNIX read-only sockets. By default socket permissions allow anyone to connect"
  46632. msgstr ""
  46633. #. type: deftypevr
  46634. #: guix-git/doc/guix.texi:30979 guix-git/doc/guix.texi:30988
  46635. msgid "Defaults to @samp{\"polkit\"}."
  46636. msgstr ""
  46637. #. type: deftypevr
  46638. #: guix-git/doc/guix.texi:30982
  46639. #, no-wrap
  46640. msgid "{@code{libvirt-configuration} parameter} string auth-unix-rw"
  46641. msgstr ""
  46642. #. type: deftypevr
  46643. #: guix-git/doc/guix.texi:30986
  46644. 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."
  46645. msgstr ""
  46646. #. type: deftypevr
  46647. #: guix-git/doc/guix.texi:30991
  46648. #, no-wrap
  46649. msgid "{@code{libvirt-configuration} parameter} string auth-tcp"
  46650. msgstr ""
  46651. #. type: deftypevr
  46652. #: guix-git/doc/guix.texi:30995
  46653. 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."
  46654. msgstr ""
  46655. #. type: deftypevr
  46656. #: guix-git/doc/guix.texi:30997
  46657. msgid "Defaults to @samp{\"sasl\"}."
  46658. msgstr ""
  46659. #. type: deftypevr
  46660. #: guix-git/doc/guix.texi:31000
  46661. #, no-wrap
  46662. msgid "{@code{libvirt-configuration} parameter} string auth-tls"
  46663. msgstr ""
  46664. #. type: deftypevr
  46665. #: guix-git/doc/guix.texi:31004
  46666. msgid "Authentication scheme for TLS sockets. TLS sockets already have encryption provided by the TLS layer, and limited authentication is done by certificates."
  46667. msgstr ""
  46668. #. type: deftypevr
  46669. #: guix-git/doc/guix.texi:31007
  46670. msgid "It is possible to make use of any SASL authentication mechanism as well, by using 'sasl' for this option"
  46671. msgstr ""
  46672. #. type: deftypevr
  46673. #: guix-git/doc/guix.texi:31009
  46674. msgid "Defaults to @samp{\"none\"}."
  46675. msgstr ""
  46676. #. type: deftypevr
  46677. #: guix-git/doc/guix.texi:31012
  46678. #, no-wrap
  46679. msgid "{@code{libvirt-configuration} parameter} optional-list access-drivers"
  46680. msgstr ""
  46681. #. type: deftypevr
  46682. #: guix-git/doc/guix.texi:31014
  46683. msgid "API access control scheme."
  46684. msgstr ""
  46685. #. type: deftypevr
  46686. #: guix-git/doc/guix.texi:31017
  46687. msgid "By default an authenticated user is allowed access to all APIs. Access drivers can place restrictions on this."
  46688. msgstr ""
  46689. #. type: deftypevr
  46690. #: guix-git/doc/guix.texi:31022
  46691. #, no-wrap
  46692. msgid "{@code{libvirt-configuration} parameter} string key-file"
  46693. msgstr ""
  46694. #. type: deftypevr
  46695. #: guix-git/doc/guix.texi:31025
  46696. msgid "Server key file path. If set to an empty string, then no private key is loaded."
  46697. msgstr ""
  46698. #. type: deftypevr
  46699. #: guix-git/doc/guix.texi:31030
  46700. #, no-wrap
  46701. msgid "{@code{libvirt-configuration} parameter} string cert-file"
  46702. msgstr ""
  46703. #. type: deftypevr
  46704. #: guix-git/doc/guix.texi:31033
  46705. msgid "Server key file path. If set to an empty string, then no certificate is loaded."
  46706. msgstr ""
  46707. #. type: deftypevr
  46708. #: guix-git/doc/guix.texi:31038
  46709. #, no-wrap
  46710. msgid "{@code{libvirt-configuration} parameter} string ca-file"
  46711. msgstr ""
  46712. #. type: deftypevr
  46713. #: guix-git/doc/guix.texi:31041
  46714. msgid "Server key file path. If set to an empty string, then no CA certificate is loaded."
  46715. msgstr ""
  46716. #. type: deftypevr
  46717. #: guix-git/doc/guix.texi:31046
  46718. #, no-wrap
  46719. msgid "{@code{libvirt-configuration} parameter} string crl-file"
  46720. msgstr ""
  46721. #. type: deftypevr
  46722. #: guix-git/doc/guix.texi:31049
  46723. msgid "Certificate revocation list path. If set to an empty string, then no CRL is loaded."
  46724. msgstr ""
  46725. #. type: deftypevr
  46726. #: guix-git/doc/guix.texi:31054
  46727. #, no-wrap
  46728. msgid "{@code{libvirt-configuration} parameter} boolean tls-no-sanity-cert"
  46729. msgstr ""
  46730. #. type: deftypevr
  46731. #: guix-git/doc/guix.texi:31056
  46732. msgid "Disable verification of our own server certificates."
  46733. msgstr ""
  46734. #. type: deftypevr
  46735. #: guix-git/doc/guix.texi:31059
  46736. msgid "When libvirtd starts it performs some sanity checks against its own certificates."
  46737. msgstr ""
  46738. #. type: deftypevr
  46739. #: guix-git/doc/guix.texi:31064
  46740. #, no-wrap
  46741. msgid "{@code{libvirt-configuration} parameter} boolean tls-no-verify-cert"
  46742. msgstr ""
  46743. #. type: deftypevr
  46744. #: guix-git/doc/guix.texi:31066
  46745. msgid "Disable verification of client certificates."
  46746. msgstr ""
  46747. #. type: deftypevr
  46748. #: guix-git/doc/guix.texi:31070
  46749. msgid "Client certificate verification is the primary authentication mechanism. Any client which does not present a certificate signed by the CA will be rejected."
  46750. msgstr ""
  46751. #. type: deftypevr
  46752. #: guix-git/doc/guix.texi:31075
  46753. #, no-wrap
  46754. msgid "{@code{libvirt-configuration} parameter} optional-list tls-allowed-dn-list"
  46755. msgstr ""
  46756. #. type: deftypevr
  46757. #: guix-git/doc/guix.texi:31077
  46758. msgid "Whitelist of allowed x509 Distinguished Name."
  46759. msgstr ""
  46760. #. type: deftypevr
  46761. #: guix-git/doc/guix.texi:31082
  46762. #, no-wrap
  46763. msgid "{@code{libvirt-configuration} parameter} optional-list sasl-allowed-usernames"
  46764. msgstr ""
  46765. #. type: deftypevr
  46766. #: guix-git/doc/guix.texi:31085
  46767. msgid "Whitelist of allowed SASL usernames. The format for username depends on the SASL authentication mechanism."
  46768. msgstr ""
  46769. #. type: deftypevr
  46770. #: guix-git/doc/guix.texi:31090
  46771. #, no-wrap
  46772. msgid "{@code{libvirt-configuration} parameter} string tls-priority"
  46773. msgstr ""
  46774. #. type: deftypevr
  46775. #: guix-git/doc/guix.texi:31094
  46776. 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."
  46777. msgstr ""
  46778. #. type: deftypevr
  46779. #: guix-git/doc/guix.texi:31096
  46780. msgid "Defaults to @samp{\"NORMAL\"}."
  46781. msgstr ""
  46782. #. type: deftypevr
  46783. #: guix-git/doc/guix.texi:31099
  46784. #, no-wrap
  46785. msgid "{@code{libvirt-configuration} parameter} integer max-clients"
  46786. msgstr ""
  46787. #. type: deftypevr
  46788. #: guix-git/doc/guix.texi:31102 guix-git/doc/guix.texi:31530
  46789. msgid "Maximum number of concurrent client connections to allow over all sockets combined."
  46790. msgstr ""
  46791. #. type: deftypevr
  46792. #: guix-git/doc/guix.texi:31104
  46793. msgid "Defaults to @samp{5000}."
  46794. msgstr ""
  46795. #. type: deftypevr
  46796. #: guix-git/doc/guix.texi:31107
  46797. #, no-wrap
  46798. msgid "{@code{libvirt-configuration} parameter} integer max-queued-clients"
  46799. msgstr ""
  46800. #. type: deftypevr
  46801. #: guix-git/doc/guix.texi:31111
  46802. 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."
  46803. msgstr ""
  46804. #. type: deftypevr
  46805. #: guix-git/doc/guix.texi:31116
  46806. #, no-wrap
  46807. msgid "{@code{libvirt-configuration} parameter} integer max-anonymous-clients"
  46808. msgstr ""
  46809. #. type: deftypevr
  46810. #: guix-git/doc/guix.texi:31119
  46811. msgid "Maximum length of queue of accepted but not yet authenticated clients. Set this to zero to turn this feature off"
  46812. msgstr ""
  46813. #. type: deftypevr
  46814. #: guix-git/doc/guix.texi:31121 guix-git/doc/guix.texi:31139
  46815. #: guix-git/doc/guix.texi:31155
  46816. msgid "Defaults to @samp{20}."
  46817. msgstr ""
  46818. #. type: deftypevr
  46819. #: guix-git/doc/guix.texi:31124
  46820. #, no-wrap
  46821. msgid "{@code{libvirt-configuration} parameter} integer min-workers"
  46822. msgstr ""
  46823. #. type: deftypevr
  46824. #: guix-git/doc/guix.texi:31126
  46825. msgid "Number of workers to start up initially."
  46826. msgstr ""
  46827. #. type: deftypevr
  46828. #: guix-git/doc/guix.texi:31131
  46829. #, no-wrap
  46830. msgid "{@code{libvirt-configuration} parameter} integer max-workers"
  46831. msgstr ""
  46832. #. type: deftypevr
  46833. #: guix-git/doc/guix.texi:31133
  46834. msgid "Maximum number of worker threads."
  46835. msgstr ""
  46836. #. type: deftypevr
  46837. #: guix-git/doc/guix.texi:31137
  46838. 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."
  46839. msgstr ""
  46840. #. type: deftypevr
  46841. #: guix-git/doc/guix.texi:31142
  46842. #, no-wrap
  46843. msgid "{@code{libvirt-configuration} parameter} integer prio-workers"
  46844. msgstr ""
  46845. #. type: deftypevr
  46846. #: guix-git/doc/guix.texi:31146
  46847. 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."
  46848. msgstr ""
  46849. #. type: deftypevr
  46850. #: guix-git/doc/guix.texi:31151
  46851. #, no-wrap
  46852. msgid "{@code{libvirt-configuration} parameter} integer max-requests"
  46853. msgstr ""
  46854. #. type: deftypevr
  46855. #: guix-git/doc/guix.texi:31153
  46856. msgid "Total global limit on concurrent RPC calls."
  46857. msgstr ""
  46858. #. type: deftypevr
  46859. #: guix-git/doc/guix.texi:31158
  46860. #, no-wrap
  46861. msgid "{@code{libvirt-configuration} parameter} integer max-client-requests"
  46862. msgstr ""
  46863. #. type: deftypevr
  46864. #: guix-git/doc/guix.texi:31162
  46865. 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."
  46866. msgstr ""
  46867. #. type: deftypevr
  46868. #: guix-git/doc/guix.texi:31167
  46869. #, no-wrap
  46870. msgid "{@code{libvirt-configuration} parameter} integer admin-min-workers"
  46871. msgstr ""
  46872. #. type: deftypevr
  46873. #: guix-git/doc/guix.texi:31169
  46874. msgid "Same as @code{min-workers} but for the admin interface."
  46875. msgstr ""
  46876. #. type: deftypevr
  46877. #: guix-git/doc/guix.texi:31174
  46878. #, no-wrap
  46879. msgid "{@code{libvirt-configuration} parameter} integer admin-max-workers"
  46880. msgstr ""
  46881. #. type: deftypevr
  46882. #: guix-git/doc/guix.texi:31176
  46883. msgid "Same as @code{max-workers} but for the admin interface."
  46884. msgstr ""
  46885. #. type: deftypevr
  46886. #: guix-git/doc/guix.texi:31181
  46887. #, no-wrap
  46888. msgid "{@code{libvirt-configuration} parameter} integer admin-max-clients"
  46889. msgstr ""
  46890. #. type: deftypevr
  46891. #: guix-git/doc/guix.texi:31183
  46892. msgid "Same as @code{max-clients} but for the admin interface."
  46893. msgstr ""
  46894. #. type: deftypevr
  46895. #: guix-git/doc/guix.texi:31188
  46896. #, no-wrap
  46897. msgid "{@code{libvirt-configuration} parameter} integer admin-max-queued-clients"
  46898. msgstr ""
  46899. #. type: deftypevr
  46900. #: guix-git/doc/guix.texi:31190
  46901. msgid "Same as @code{max-queued-clients} but for the admin interface."
  46902. msgstr ""
  46903. #. type: deftypevr
  46904. #: guix-git/doc/guix.texi:31195
  46905. #, no-wrap
  46906. msgid "{@code{libvirt-configuration} parameter} integer admin-max-client-requests"
  46907. msgstr ""
  46908. #. type: deftypevr
  46909. #: guix-git/doc/guix.texi:31197
  46910. msgid "Same as @code{max-client-requests} but for the admin interface."
  46911. msgstr ""
  46912. #. type: deftypevr
  46913. #: guix-git/doc/guix.texi:31202
  46914. #, no-wrap
  46915. msgid "{@code{libvirt-configuration} parameter} integer log-level"
  46916. msgstr ""
  46917. #. type: deftypevr
  46918. #: guix-git/doc/guix.texi:31204 guix-git/doc/guix.texi:31432
  46919. msgid "Logging level. 4 errors, 3 warnings, 2 information, 1 debug."
  46920. msgstr ""
  46921. #. type: deftypevr
  46922. #: guix-git/doc/guix.texi:31209
  46923. #, no-wrap
  46924. msgid "{@code{libvirt-configuration} parameter} string log-filters"
  46925. msgstr ""
  46926. #. type: deftypevr
  46927. #: guix-git/doc/guix.texi:31211 guix-git/doc/guix.texi:31439
  46928. msgid "Logging filters."
  46929. msgstr ""
  46930. #. type: deftypevr
  46931. #: guix-git/doc/guix.texi:31214
  46932. msgid "A filter allows to select a different logging level for a given category of logs. The format for a filter is one of:"
  46933. msgstr ""
  46934. #. type: itemize
  46935. #: guix-git/doc/guix.texi:31218 guix-git/doc/guix.texi:31446
  46936. msgid "x:name"
  46937. msgstr ""
  46938. #. type: itemize
  46939. #: guix-git/doc/guix.texi:31221 guix-git/doc/guix.texi:31449
  46940. msgid "x:+name"
  46941. msgstr ""
  46942. #. type: deftypevr
  46943. #: guix-git/doc/guix.texi:31232
  46944. 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:"
  46945. msgstr ""
  46946. #. type: itemize
  46947. #: guix-git/doc/guix.texi:31236 guix-git/doc/guix.texi:31281
  46948. #: guix-git/doc/guix.texi:31463 guix-git/doc/guix.texi:31508
  46949. msgid "1: DEBUG"
  46950. msgstr ""
  46951. #. type: itemize
  46952. #: guix-git/doc/guix.texi:31239 guix-git/doc/guix.texi:31284
  46953. #: guix-git/doc/guix.texi:31466 guix-git/doc/guix.texi:31511
  46954. msgid "2: INFO"
  46955. msgstr ""
  46956. #. type: itemize
  46957. #: guix-git/doc/guix.texi:31242 guix-git/doc/guix.texi:31287
  46958. #: guix-git/doc/guix.texi:31469 guix-git/doc/guix.texi:31514
  46959. msgid "3: WARNING"
  46960. msgstr ""
  46961. #. type: itemize
  46962. #: guix-git/doc/guix.texi:31245 guix-git/doc/guix.texi:31290
  46963. #: guix-git/doc/guix.texi:31472 guix-git/doc/guix.texi:31517
  46964. msgid "4: ERROR"
  46965. msgstr ""
  46966. #. type: deftypevr
  46967. #: guix-git/doc/guix.texi:31250 guix-git/doc/guix.texi:31477
  46968. msgid "Multiple filters can be defined in a single filters statement, they just need to be separated by spaces."
  46969. msgstr ""
  46970. #. type: deftypevr
  46971. #: guix-git/doc/guix.texi:31252 guix-git/doc/guix.texi:31479
  46972. msgid "Defaults to @samp{\"3:remote 4:event\"}."
  46973. msgstr ""
  46974. #. type: deftypevr
  46975. #: guix-git/doc/guix.texi:31255
  46976. #, no-wrap
  46977. msgid "{@code{libvirt-configuration} parameter} string log-outputs"
  46978. msgstr ""
  46979. #. type: deftypevr
  46980. #: guix-git/doc/guix.texi:31257 guix-git/doc/guix.texi:31484
  46981. msgid "Logging outputs."
  46982. msgstr ""
  46983. #. type: deftypevr
  46984. #: guix-git/doc/guix.texi:31260
  46985. msgid "An output is one of the places to save logging information. The format for an output can be:"
  46986. msgstr ""
  46987. #. type: item
  46988. #: guix-git/doc/guix.texi:31262 guix-git/doc/guix.texi:31489
  46989. #, no-wrap
  46990. msgid "x:stderr"
  46991. msgstr ""
  46992. #. type: table
  46993. #: guix-git/doc/guix.texi:31264 guix-git/doc/guix.texi:31491
  46994. msgid "output goes to stderr"
  46995. msgstr ""
  46996. #. type: item
  46997. #: guix-git/doc/guix.texi:31265 guix-git/doc/guix.texi:31492
  46998. #, no-wrap
  46999. msgid "x:syslog:name"
  47000. msgstr ""
  47001. #. type: table
  47002. #: guix-git/doc/guix.texi:31267 guix-git/doc/guix.texi:31494
  47003. msgid "use syslog for the output and use the given name as the ident"
  47004. msgstr ""
  47005. #. type: item
  47006. #: guix-git/doc/guix.texi:31268 guix-git/doc/guix.texi:31495
  47007. #, no-wrap
  47008. msgid "x:file:file_path"
  47009. msgstr ""
  47010. #. type: table
  47011. #: guix-git/doc/guix.texi:31270 guix-git/doc/guix.texi:31497
  47012. msgid "output to a file, with the given filepath"
  47013. msgstr ""
  47014. #. type: item
  47015. #: guix-git/doc/guix.texi:31271 guix-git/doc/guix.texi:31498
  47016. #, no-wrap
  47017. msgid "x:journald"
  47018. msgstr ""
  47019. #. type: table
  47020. #: guix-git/doc/guix.texi:31273 guix-git/doc/guix.texi:31500
  47021. msgid "output to journald logging system"
  47022. msgstr ""
  47023. #. type: deftypevr
  47024. #: guix-git/doc/guix.texi:31277 guix-git/doc/guix.texi:31504
  47025. msgid "In all case the x prefix is the minimal level, acting as a filter"
  47026. msgstr ""
  47027. #. type: deftypevr
  47028. #: guix-git/doc/guix.texi:31295 guix-git/doc/guix.texi:31522
  47029. msgid "Multiple outputs can be defined, they just need to be separated by spaces."
  47030. msgstr ""
  47031. #. type: deftypevr
  47032. #: guix-git/doc/guix.texi:31297 guix-git/doc/guix.texi:31524
  47033. msgid "Defaults to @samp{\"3:stderr\"}."
  47034. msgstr ""
  47035. #. type: deftypevr
  47036. #: guix-git/doc/guix.texi:31300
  47037. #, no-wrap
  47038. msgid "{@code{libvirt-configuration} parameter} integer audit-level"
  47039. msgstr ""
  47040. #. type: deftypevr
  47041. #: guix-git/doc/guix.texi:31302
  47042. msgid "Allows usage of the auditing subsystem to be altered"
  47043. msgstr ""
  47044. #. type: itemize
  47045. #: guix-git/doc/guix.texi:31306
  47046. msgid "0: disable all auditing"
  47047. msgstr ""
  47048. #. type: itemize
  47049. #: guix-git/doc/guix.texi:31309
  47050. msgid "1: enable auditing, only if enabled on host"
  47051. msgstr ""
  47052. #. type: itemize
  47053. #: guix-git/doc/guix.texi:31312
  47054. msgid "2: enable auditing, and exit if disabled on host."
  47055. msgstr ""
  47056. #. type: deftypevr
  47057. #: guix-git/doc/guix.texi:31319
  47058. #, no-wrap
  47059. msgid "{@code{libvirt-configuration} parameter} boolean audit-logging"
  47060. msgstr ""
  47061. #. type: deftypevr
  47062. #: guix-git/doc/guix.texi:31321
  47063. msgid "Send audit messages via libvirt logging infrastructure."
  47064. msgstr ""
  47065. #. type: deftypevr
  47066. #: guix-git/doc/guix.texi:31326
  47067. #, no-wrap
  47068. msgid "{@code{libvirt-configuration} parameter} optional-string host-uuid"
  47069. msgstr ""
  47070. #. type: deftypevr
  47071. #: guix-git/doc/guix.texi:31328
  47072. msgid "Host UUID@. UUID must not have all digits be the same."
  47073. msgstr ""
  47074. #. type: deftypevr
  47075. #: guix-git/doc/guix.texi:31333
  47076. #, no-wrap
  47077. msgid "{@code{libvirt-configuration} parameter} string host-uuid-source"
  47078. msgstr ""
  47079. #. type: deftypevr
  47080. #: guix-git/doc/guix.texi:31335
  47081. msgid "Source to read host UUID."
  47082. msgstr ""
  47083. #. type: itemize
  47084. #: guix-git/doc/guix.texi:31339
  47085. msgid "@code{smbios}: fetch the UUID from @code{dmidecode -s system-uuid}"
  47086. msgstr ""
  47087. #. type: itemize
  47088. #: guix-git/doc/guix.texi:31342
  47089. msgid "@code{machine-id}: fetch the UUID from @code{/etc/machine-id}"
  47090. msgstr ""
  47091. #. type: deftypevr
  47092. #: guix-git/doc/guix.texi:31347
  47093. msgid "If @code{dmidecode} does not provide a valid UUID a temporary UUID will be generated."
  47094. msgstr ""
  47095. #. type: deftypevr
  47096. #: guix-git/doc/guix.texi:31349
  47097. msgid "Defaults to @samp{\"smbios\"}."
  47098. msgstr ""
  47099. #. type: deftypevr
  47100. #: guix-git/doc/guix.texi:31352
  47101. #, no-wrap
  47102. msgid "{@code{libvirt-configuration} parameter} integer keepalive-interval"
  47103. msgstr ""
  47104. #. type: deftypevr
  47105. #: guix-git/doc/guix.texi:31357
  47106. 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."
  47107. msgstr ""
  47108. #. type: deftypevr
  47109. #: guix-git/doc/guix.texi:31362
  47110. #, no-wrap
  47111. msgid "{@code{libvirt-configuration} parameter} integer keepalive-count"
  47112. msgstr ""
  47113. #. type: deftypevr
  47114. #: guix-git/doc/guix.texi:31366
  47115. 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."
  47116. msgstr ""
  47117. #. type: deftypevr
  47118. #: guix-git/doc/guix.texi:31373
  47119. 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."
  47120. msgstr ""
  47121. #. type: deftypevr
  47122. #: guix-git/doc/guix.texi:31378
  47123. #, no-wrap
  47124. msgid "{@code{libvirt-configuration} parameter} integer admin-keepalive-interval"
  47125. msgstr ""
  47126. #. type: deftypevr
  47127. #: guix-git/doc/guix.texi:31380 guix-git/doc/guix.texi:31387
  47128. msgid "Same as above but for admin interface."
  47129. msgstr ""
  47130. #. type: deftypevr
  47131. #: guix-git/doc/guix.texi:31385
  47132. #, no-wrap
  47133. msgid "{@code{libvirt-configuration} parameter} integer admin-keepalive-count"
  47134. msgstr ""
  47135. #. type: deftypevr
  47136. #: guix-git/doc/guix.texi:31392
  47137. #, no-wrap
  47138. msgid "{@code{libvirt-configuration} parameter} integer ovs-timeout"
  47139. msgstr ""
  47140. #. type: deftypevr
  47141. #: guix-git/doc/guix.texi:31394
  47142. msgid "Timeout for Open vSwitch calls."
  47143. msgstr ""
  47144. #. type: deftypevr
  47145. #: guix-git/doc/guix.texi:31398
  47146. 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."
  47147. msgstr ""
  47148. #. type: subsubheading
  47149. #: guix-git/doc/guix.texi:31405
  47150. #, no-wrap
  47151. msgid "Virtlog daemon"
  47152. msgstr ""
  47153. #. type: Plain text
  47154. #: guix-git/doc/guix.texi:31408
  47155. msgid "The virtlogd service is a server side daemon component of libvirt that is used to manage logs from virtual machine consoles."
  47156. msgstr ""
  47157. #. type: Plain text
  47158. #: guix-git/doc/guix.texi:31414
  47159. 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."
  47160. msgstr ""
  47161. #. type: deffn
  47162. #: guix-git/doc/guix.texi:31415
  47163. #, no-wrap
  47164. msgid "{Scheme Variable} virtlog-service-type"
  47165. msgstr ""
  47166. #. type: deffn
  47167. #: guix-git/doc/guix.texi:31418
  47168. msgid "This is the type of the virtlog daemon. Its value must be a @code{virtlog-configuration}."
  47169. msgstr ""
  47170. #. type: lisp
  47171. #: guix-git/doc/guix.texi:31423
  47172. #, no-wrap
  47173. msgid ""
  47174. "(service virtlog-service-type\n"
  47175. " (virtlog-configuration\n"
  47176. " (max-clients 1000)))\n"
  47177. msgstr ""
  47178. #. type: deftypevar
  47179. #: guix-git/doc/guix.texi:31426
  47180. #, no-wrap
  47181. msgid "{@code{libvirt} parameter} package libvirt"
  47182. msgstr ""
  47183. #. type: deftypevr
  47184. #: guix-git/doc/guix.texi:31430
  47185. #, no-wrap
  47186. msgid "{@code{virtlog-configuration} parameter} integer log-level"
  47187. msgstr ""
  47188. #. type: deftypevr
  47189. #: guix-git/doc/guix.texi:31437
  47190. #, no-wrap
  47191. msgid "{@code{virtlog-configuration} parameter} string log-filters"
  47192. msgstr ""
  47193. #. type: deftypevr
  47194. #: guix-git/doc/guix.texi:31442
  47195. msgid "A filter allows to select a different logging level for a given category of logs The format for a filter is one of:"
  47196. msgstr ""
  47197. #. type: deftypevr
  47198. #: guix-git/doc/guix.texi:31459
  47199. 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:"
  47200. msgstr ""
  47201. #. type: deftypevr
  47202. #: guix-git/doc/guix.texi:31482
  47203. #, no-wrap
  47204. msgid "{@code{virtlog-configuration} parameter} string log-outputs"
  47205. msgstr ""
  47206. #. type: deftypevr
  47207. #: guix-git/doc/guix.texi:31487
  47208. msgid "An output is one of the places to save logging information The format for an output can be:"
  47209. msgstr ""
  47210. #. type: deftypevr
  47211. #: guix-git/doc/guix.texi:31527
  47212. #, no-wrap
  47213. msgid "{@code{virtlog-configuration} parameter} integer max-clients"
  47214. msgstr ""
  47215. #. type: deftypevr
  47216. #: guix-git/doc/guix.texi:31532
  47217. msgid "Defaults to @samp{1024}."
  47218. msgstr ""
  47219. #. type: deftypevr
  47220. #: guix-git/doc/guix.texi:31535
  47221. #, no-wrap
  47222. msgid "{@code{virtlog-configuration} parameter} integer max-size"
  47223. msgstr ""
  47224. #. type: deftypevr
  47225. #: guix-git/doc/guix.texi:31537
  47226. msgid "Maximum file size before rolling over."
  47227. msgstr ""
  47228. #. type: deftypevr
  47229. #: guix-git/doc/guix.texi:31539
  47230. msgid "Defaults to @samp{2MB}"
  47231. msgstr ""
  47232. #. type: deftypevr
  47233. #: guix-git/doc/guix.texi:31542
  47234. #, no-wrap
  47235. msgid "{@code{virtlog-configuration} parameter} integer max-backups"
  47236. msgstr ""
  47237. #. type: deftypevr
  47238. #: guix-git/doc/guix.texi:31544
  47239. msgid "Maximum number of backup files to keep."
  47240. msgstr ""
  47241. #. type: deftypevr
  47242. #: guix-git/doc/guix.texi:31546
  47243. msgid "Defaults to @samp{3}"
  47244. msgstr ""
  47245. #. type: anchor{#1}
  47246. #: guix-git/doc/guix.texi:31550
  47247. msgid "transparent-emulation-qemu"
  47248. msgstr ""
  47249. #. type: subsubheading
  47250. #: guix-git/doc/guix.texi:31550
  47251. #, no-wrap
  47252. msgid "Transparent Emulation with QEMU"
  47253. msgstr ""
  47254. #. type: cindex
  47255. #: guix-git/doc/guix.texi:31552 guix-git/doc/guix.texi:31632
  47256. #, no-wrap
  47257. msgid "emulation"
  47258. msgstr ""
  47259. #. type: code{#1}
  47260. #: guix-git/doc/guix.texi:31553
  47261. #, no-wrap
  47262. msgid "binfmt_misc"
  47263. msgstr ""
  47264. #. type: Plain text
  47265. #: guix-git/doc/guix.texi:31561
  47266. 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."
  47267. msgstr ""
  47268. #. type: defvr
  47269. #: guix-git/doc/guix.texi:31562
  47270. #, no-wrap
  47271. msgid "{Scheme Variable} qemu-binfmt-service-type"
  47272. msgstr ""
  47273. #. type: defvr
  47274. #: guix-git/doc/guix.texi:31567
  47275. 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:"
  47276. msgstr ""
  47277. #. type: lisp
  47278. #: guix-git/doc/guix.texi:31572
  47279. #, fuzzy, no-wrap
  47280. msgid ""
  47281. "(service qemu-binfmt-service-type\n"
  47282. " (qemu-binfmt-configuration\n"
  47283. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))))\n"
  47284. msgstr ""
  47285. "(service qemu-binfmt-service-type\n"
  47286. " (qemu-binfmt-configuration\n"
  47287. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  47288. " (guix-support? #t)))\n"
  47289. #. type: defvr
  47290. #: guix-git/doc/guix.texi:31578
  47291. 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})."
  47292. msgstr ""
  47293. #. type: deftp
  47294. #: guix-git/doc/guix.texi:31580
  47295. #, no-wrap
  47296. msgid "{Data Type} qemu-binfmt-configuration"
  47297. msgstr ""
  47298. #. type: deftp
  47299. #: guix-git/doc/guix.texi:31582
  47300. msgid "This is the configuration for the @code{qemu-binfmt} service."
  47301. msgstr ""
  47302. #. type: item
  47303. #: guix-git/doc/guix.texi:31584
  47304. #, no-wrap
  47305. msgid "@code{platforms} (default: @code{'()})"
  47306. msgstr ""
  47307. #. type: table
  47308. #: guix-git/doc/guix.texi:31587
  47309. msgid "The list of emulated QEMU platforms. Each item must be a @dfn{platform object} as returned by @code{lookup-qemu-platforms} (see below)."
  47310. msgstr ""
  47311. #. type: table
  47312. #: guix-git/doc/guix.texi:31590
  47313. msgid "For example, let's suppose you're on an x86_64 machine and you have this service:"
  47314. msgstr ""
  47315. #. type: lisp
  47316. #: guix-git/doc/guix.texi:31595
  47317. #, fuzzy, no-wrap
  47318. msgid ""
  47319. "(service qemu-binfmt-service-type\n"
  47320. " (qemu-binfmt-configuration\n"
  47321. " (platforms (lookup-qemu-platforms \"arm\"))))\n"
  47322. msgstr ""
  47323. "(service qemu-binfmt-service-type\n"
  47324. " (qemu-binfmt-configuration\n"
  47325. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  47326. " (guix-support? #t)))\n"
  47327. #. type: table
  47328. #: guix-git/doc/guix.texi:31598
  47329. msgid "You can run:"
  47330. msgstr ""
  47331. #. type: example
  47332. #: guix-git/doc/guix.texi:31601
  47333. #, no-wrap
  47334. msgid "guix build -s armhf-linux inkscape\n"
  47335. msgstr ""
  47336. #. type: table
  47337. #: guix-git/doc/guix.texi:31608
  47338. 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!"
  47339. msgstr ""
  47340. #. type: item
  47341. #: guix-git/doc/guix.texi:31609
  47342. #, no-wrap
  47343. msgid "@code{qemu} (default: @code{qemu})"
  47344. msgstr ""
  47345. #. type: table
  47346. #: guix-git/doc/guix.texi:31611 guix-git/doc/guix.texi:31669
  47347. #: guix-git/doc/guix.texi:31751
  47348. msgid "The QEMU package to use."
  47349. msgstr ""
  47350. #. type: deffn
  47351. #: guix-git/doc/guix.texi:31614
  47352. #, no-wrap
  47353. msgid "{Scheme Procedure} lookup-qemu-platforms @var{platforms}@dots{}"
  47354. msgstr ""
  47355. #. type: deffn
  47356. #: guix-git/doc/guix.texi:31619
  47357. 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."
  47358. msgstr ""
  47359. #. type: deffn
  47360. #: guix-git/doc/guix.texi:31621
  47361. #, no-wrap
  47362. msgid "{Scheme Procedure} qemu-platform? @var{obj}"
  47363. msgstr ""
  47364. #. type: deffn
  47365. #: guix-git/doc/guix.texi:31623
  47366. msgid "Return true if @var{obj} is a platform object."
  47367. msgstr ""
  47368. #. type: deffn
  47369. #: guix-git/doc/guix.texi:31625
  47370. #, no-wrap
  47371. msgid "{Scheme Procedure} qemu-platform-name @var{platform}"
  47372. msgstr ""
  47373. #. type: deffn
  47374. #: guix-git/doc/guix.texi:31627
  47375. msgid "Return the name of @var{platform}---a string such as @code{\"arm\"}."
  47376. msgstr ""
  47377. #. type: subsubheading
  47378. #: guix-git/doc/guix.texi:31630
  47379. #, no-wrap
  47380. msgid "QEMU Guest Agent"
  47381. msgstr ""
  47382. #. type: Plain text
  47383. #: guix-git/doc/guix.texi:31638
  47384. 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:"
  47385. msgstr ""
  47386. #. type: example
  47387. #: guix-git/doc/guix.texi:31645
  47388. #, no-wrap
  47389. msgid ""
  47390. "qemu-system-x86_64 \\\n"
  47391. "\t-chardev socket,path=/tmp/qga.sock,server=on,wait=off,id=qga0 \\\n"
  47392. "\t-device virtio-serial \\\n"
  47393. "\t-device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 \\\n"
  47394. "\t...\n"
  47395. msgstr ""
  47396. #. type: Plain text
  47397. #: guix-git/doc/guix.texi:31649
  47398. 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}:"
  47399. msgstr ""
  47400. #. type: example
  47401. #: guix-git/doc/guix.texi:31654
  47402. #, no-wrap
  47403. msgid ""
  47404. "$ guix shell socat -- socat unix-connect:/tmp/qga.sock stdio\n"
  47405. "@{\"execute\": \"guest-get-host-name\"@}\n"
  47406. "@{\"return\": @{\"host-name\": \"guix\"@}@}\n"
  47407. msgstr ""
  47408. #. type: Plain text
  47409. #: guix-git/doc/guix.texi:31658
  47410. msgid "See @url{https://wiki.qemu.org/Features/GuestAgent,QEMU guest agent documentation} for more options and commands."
  47411. msgstr ""
  47412. #. type: defvr
  47413. #: guix-git/doc/guix.texi:31659
  47414. #, no-wrap
  47415. msgid "{Scheme Variable} qemu-guest-agent-service-type"
  47416. msgstr ""
  47417. #. type: defvr
  47418. #: guix-git/doc/guix.texi:31661
  47419. #, fuzzy
  47420. #| msgid "Service Types and Services"
  47421. msgid "Service type for the QEMU guest agent service."
  47422. msgstr "服务类型和服务"
  47423. #. type: deftp
  47424. #: guix-git/doc/guix.texi:31663
  47425. #, fuzzy, no-wrap
  47426. msgid "{Data Type} qemu-guest-agent-configuration"
  47427. msgstr "{数据类型} build-machine"
  47428. #. type: deftp
  47429. #: guix-git/doc/guix.texi:31665
  47430. #, fuzzy
  47431. msgid "Configuration for the @code{qemu-guest-agent} service."
  47432. msgstr "管理操作系统配置。"
  47433. #. type: item
  47434. #: guix-git/doc/guix.texi:31667 guix-git/doc/guix.texi:31749
  47435. #, fuzzy, no-wrap
  47436. msgid "@code{qemu} (default: @code{qemu-minimal})"
  47437. msgstr "@code{mate}(默认值:@code{mate})"
  47438. #. type: item
  47439. #: guix-git/doc/guix.texi:31670
  47440. #, fuzzy, no-wrap
  47441. msgid "@code{device} (default: @code{\"\"})"
  47442. msgstr "@code{speed}(默认值:@code{1.0})"
  47443. #. type: table
  47444. #: guix-git/doc/guix.texi:31673
  47445. msgid "File name of the device or socket the agent uses to communicate with the host. If empty, QEMU uses a default file name."
  47446. msgstr ""
  47447. #. type: subsubheading
  47448. #: guix-git/doc/guix.texi:31677
  47449. #, no-wrap
  47450. msgid "The Hurd in a Virtual Machine"
  47451. msgstr ""
  47452. #. type: cindex
  47453. #: guix-git/doc/guix.texi:31680
  47454. #, no-wrap
  47455. msgid "the Hurd"
  47456. msgstr ""
  47457. #. type: cindex
  47458. #: guix-git/doc/guix.texi:31681
  47459. #, no-wrap
  47460. msgid "childhurd"
  47461. msgstr ""
  47462. #. type: Plain text
  47463. #: guix-git/doc/guix.texi:31689
  47464. 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:"
  47465. msgstr ""
  47466. #. type: example
  47467. #: guix-git/doc/guix.texi:31693
  47468. #, no-wrap
  47469. msgid ""
  47470. "herd start hurd-vm\n"
  47471. "herd stop childhurd\n"
  47472. msgstr ""
  47473. #. type: Plain text
  47474. #: guix-git/doc/guix.texi:31697
  47475. msgid "When the service is running, you can view its console by connecting to it with a VNC client, for example with:"
  47476. msgstr ""
  47477. #. type: example
  47478. #: guix-git/doc/guix.texi:31700
  47479. #, no-wrap
  47480. msgid "guix shell tigervnc-client -- vncviewer localhost:5900\n"
  47481. msgstr ""
  47482. #. type: Plain text
  47483. #: guix-git/doc/guix.texi:31706
  47484. 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:"
  47485. msgstr ""
  47486. #. type: example
  47487. #: guix-git/doc/guix.texi:31709
  47488. #, no-wrap
  47489. msgid "ssh root@@localhost -p 10022\n"
  47490. msgstr ""
  47491. #. type: Plain text
  47492. #: guix-git/doc/guix.texi:31718
  47493. 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."
  47494. msgstr ""
  47495. #. type: defvr
  47496. #: guix-git/doc/guix.texi:31719
  47497. #, no-wrap
  47498. msgid "{Scheme Variable} hurd-vm-service-type"
  47499. msgstr ""
  47500. #. type: defvr
  47501. #: guix-git/doc/guix.texi:31725
  47502. 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."
  47503. msgstr ""
  47504. #. type: defvr
  47505. #: guix-git/doc/guix.texi:31727
  47506. msgid "For example:"
  47507. msgstr ""
  47508. #. type: lisp
  47509. #: guix-git/doc/guix.texi:31733
  47510. #, no-wrap
  47511. msgid ""
  47512. "(service hurd-vm-service-type\n"
  47513. " (hurd-vm-configuration\n"
  47514. " (disk-size (* 5000 (expt 2 20))) ;5G\n"
  47515. " (memory-size 1024))) ;1024MiB\n"
  47516. msgstr ""
  47517. #. type: defvr
  47518. #: guix-git/doc/guix.texi:31737
  47519. msgid "would create a disk image big enough to build GNU@tie{}Hello, with some extra memory."
  47520. msgstr ""
  47521. #. type: deftp
  47522. #: guix-git/doc/guix.texi:31739
  47523. #, fuzzy, no-wrap
  47524. msgid "{Data Type} hurd-vm-configuration"
  47525. msgstr "{数据类型} build-machine"
  47526. #. type: deftp
  47527. #: guix-git/doc/guix.texi:31742
  47528. msgid "The data type representing the configuration for @code{hurd-vm-service-type}."
  47529. msgstr ""
  47530. #. type: item
  47531. #: guix-git/doc/guix.texi:31744
  47532. #, fuzzy, no-wrap
  47533. msgid "@code{os} (default: @var{%hurd-vm-operating-system})"
  47534. msgstr "@code{mate}(默认值:@code{mate})"
  47535. #. type: table
  47536. #: guix-git/doc/guix.texi:31748
  47537. 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}})."
  47538. msgstr ""
  47539. #. type: item
  47540. #: guix-git/doc/guix.texi:31752
  47541. #, fuzzy, no-wrap
  47542. msgid "@code{image} (default: @var{hurd-vm-disk-image})"
  47543. msgstr "@code{mate}(默认值:@code{mate})"
  47544. #. type: table
  47545. #: guix-git/doc/guix.texi:31755
  47546. msgid "The procedure used to build the disk-image built from this configuration."
  47547. msgstr ""
  47548. #. type: item
  47549. #: guix-git/doc/guix.texi:31756
  47550. #, fuzzy, no-wrap
  47551. msgid "@code{disk-size} (default: @code{'guess})"
  47552. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  47553. #. type: table
  47554. #: guix-git/doc/guix.texi:31758
  47555. #, fuzzy
  47556. msgid "The size of the disk image."
  47557. msgstr "这个用户手册的许可证。"
  47558. #. type: item
  47559. #: guix-git/doc/guix.texi:31759
  47560. #, fuzzy, no-wrap
  47561. msgid "@code{memory-size} (default: @code{512})"
  47562. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  47563. #. type: table
  47564. #: guix-git/doc/guix.texi:31761
  47565. msgid "The memory size of the Virtual Machine in mebibytes."
  47566. msgstr ""
  47567. #. type: item
  47568. #: guix-git/doc/guix.texi:31762
  47569. #, fuzzy, no-wrap
  47570. msgid "@code{options} (default: @code{'(\"--snapshot\")})"
  47571. msgstr "@code{includes}(默认值:@code{'()})"
  47572. #. type: table
  47573. #: guix-git/doc/guix.texi:31764
  47574. msgid "The extra options for running QEMU."
  47575. msgstr ""
  47576. #. type: table
  47577. #: guix-git/doc/guix.texi:31769
  47578. 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}."
  47579. msgstr ""
  47580. #. type: item
  47581. #: guix-git/doc/guix.texi:31770
  47582. #, no-wrap
  47583. msgid "@code{net-options} (default: @var{hurd-vm-net-options})"
  47584. msgstr ""
  47585. #. type: table
  47586. #: guix-git/doc/guix.texi:31772
  47587. msgid "The procedure used to produce the list of QEMU networking options."
  47588. msgstr ""
  47589. #. type: table
  47590. #: guix-git/doc/guix.texi:31774
  47591. msgid "By default, it produces"
  47592. msgstr ""
  47593. #. type: lisp
  47594. #: guix-git/doc/guix.texi:31782
  47595. #, no-wrap
  47596. msgid ""
  47597. "'(\"--device\" \"rtl8139,netdev=net0\"\n"
  47598. " \"--netdev\" (string-append\n"
  47599. " \"user,id=net0,\"\n"
  47600. " \"hostfwd=tcp:127.0.0.1:@var{secrets-port}-:1004,\"\n"
  47601. " \"hostfwd=tcp:127.0.0.1:@var{ssh-port}-:2222,\"\n"
  47602. " \"hostfwd=tcp:127.0.0.1:@var{vnc-port}-:5900\"))\n"
  47603. msgstr ""
  47604. #. type: table
  47605. #: guix-git/doc/guix.texi:31785
  47606. msgid "with forwarded ports:"
  47607. msgstr ""
  47608. #. type: example
  47609. #: guix-git/doc/guix.texi:31790
  47610. #, no-wrap
  47611. msgid ""
  47612. "@var{secrets-port}: @code{(+ 11004 (* 1000 @var{ID}))}\n"
  47613. "@var{ssh-port}: @code{(+ 10022 (* 1000 @var{ID}))}\n"
  47614. "@var{vnc-port}: @code{(+ 15900 (* 1000 @var{ID}))}\n"
  47615. msgstr ""
  47616. #. type: item
  47617. #: guix-git/doc/guix.texi:31792
  47618. #, fuzzy, no-wrap
  47619. msgid "@code{secret-root} (default: @file{/etc/childhurd})"
  47620. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  47621. #. type: table
  47622. #: guix-git/doc/guix.texi:31797
  47623. 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."
  47624. msgstr ""
  47625. #. type: table
  47626. #: guix-git/doc/guix.texi:31801
  47627. 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."
  47628. msgstr ""
  47629. #. type: table
  47630. #: guix-git/doc/guix.texi:31804
  47631. msgid "By default, the service automatically populates @file{/etc/childhurd} with the following non-volatile secrets, unless they already exist:"
  47632. msgstr ""
  47633. #. type: example
  47634. #: guix-git/doc/guix.texi:31813
  47635. #, no-wrap
  47636. msgid ""
  47637. "/etc/childhurd/etc/guix/acl\n"
  47638. "/etc/childhurd/etc/guix/signing-key.pub\n"
  47639. "/etc/childhurd/etc/guix/signing-key.sec\n"
  47640. "/etc/childhurd/etc/ssh/ssh_host_ed25519_key\n"
  47641. "/etc/childhurd/etc/ssh/ssh_host_ecdsa_key\n"
  47642. "/etc/childhurd/etc/ssh/ssh_host_ed25519_key.pub\n"
  47643. "/etc/childhurd/etc/ssh/ssh_host_ecdsa_key.pub\n"
  47644. msgstr ""
  47645. #. type: table
  47646. #: guix-git/doc/guix.texi:31817
  47647. msgid "These files are automatically sent to the guest Hurd VM when it boots, including permissions."
  47648. msgstr ""
  47649. #. type: cindex
  47650. #: guix-git/doc/guix.texi:31818
  47651. #, fuzzy, no-wrap
  47652. msgid "childhurd, offloading"
  47653. msgstr "下发"
  47654. #. type: cindex
  47655. #: guix-git/doc/guix.texi:31819
  47656. #, fuzzy, no-wrap
  47657. msgid "Hurd, offloading"
  47658. msgstr "下发"
  47659. #. type: table
  47660. #: guix-git/doc/guix.texi:31823
  47661. 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:"
  47662. msgstr ""
  47663. #. type: enumerate
  47664. #: guix-git/doc/guix.texi:31828
  47665. 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:"
  47666. msgstr ""
  47667. #. type: example
  47668. #: guix-git/doc/guix.texi:31832
  47669. #, fuzzy, no-wrap
  47670. msgid ""
  47671. "guix archive --authorize < \\\n"
  47672. " /etc/childhurd/etc/guix/signing-key.pub\n"
  47673. msgstr "# guix archive --authorize < master-public-key.txt\n"
  47674. #. type: enumerate
  47675. #: guix-git/doc/guix.texi:31837
  47676. msgid "Adding the childhurd to @file{/etc/guix/machines.scm} (@pxref{Daemon Offload Setup})."
  47677. msgstr ""
  47678. #. type: table
  47679. #: guix-git/doc/guix.texi:31841
  47680. msgid "We're working towards making that happen automatically---get in touch with us at @email{guix-devel@@gnu.org} to discuss it!"
  47681. msgstr ""
  47682. #. type: Plain text
  47683. #: guix-git/doc/guix.texi:31848
  47684. 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:"
  47685. msgstr ""
  47686. #. type: lisp
  47687. #: guix-git/doc/guix.texi:31854
  47688. #, no-wrap
  47689. msgid ""
  47690. "(service hurd-vm-service-type\n"
  47691. " (hurd-vm-configuration\n"
  47692. " (image (const \"/out/of/store/writable/hurd.img\"))\n"
  47693. " (options '())))\n"
  47694. msgstr ""
  47695. #. type: subsubheading
  47696. #: guix-git/doc/guix.texi:31856
  47697. #, no-wrap
  47698. msgid "Ganeti"
  47699. msgstr ""
  47700. #. type: cindex
  47701. #: guix-git/doc/guix.texi:31858
  47702. #, no-wrap
  47703. msgid "ganeti"
  47704. msgstr ""
  47705. #. type: quotation
  47706. #: guix-git/doc/guix.texi:31865
  47707. 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}."
  47708. msgstr ""
  47709. #. type: Plain text
  47710. #: guix-git/doc/guix.texi:31875
  47711. 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)."
  47712. msgstr ""
  47713. #. type: Plain text
  47714. #: guix-git/doc/guix.texi:31880
  47715. 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}:"
  47716. msgstr ""
  47717. #. type: lisp
  47718. #: guix-git/doc/guix.texi:31890
  47719. #, no-wrap
  47720. msgid ""
  47721. "(use-package-modules virtualization)\n"
  47722. "(use-service-modules base ganeti networking ssh)\n"
  47723. "(operating-system\n"
  47724. " ;; @dots{}\n"
  47725. " (host-name \"node1\")\n"
  47726. " (hosts-file (plain-file \"hosts\" (format #f \"\n"
  47727. "127.0.0.1 localhost\n"
  47728. "::1 localhost\n"
  47729. "\n"
  47730. msgstr ""
  47731. #. type: lisp
  47732. #: guix-git/doc/guix.texi:31895
  47733. #, no-wrap
  47734. msgid ""
  47735. "192.168.1.200 ganeti.example.com\n"
  47736. "192.168.1.201 node1.example.com node1\n"
  47737. "192.168.1.202 node2.example.com node2\n"
  47738. "\")))\n"
  47739. "\n"
  47740. msgstr ""
  47741. #. type: lisp
  47742. #: guix-git/doc/guix.texi:31916
  47743. #, no-wrap
  47744. msgid ""
  47745. " ;; Install QEMU so we can use KVM-based instances, and LVM, DRBD and Ceph\n"
  47746. " ;; in order to use the \"plain\", \"drbd\" and \"rbd\" storage backends.\n"
  47747. " (packages (append (map specification->package\n"
  47748. " '(\"qemu\" \"lvm2\" \"drbd-utils\" \"ceph\"\n"
  47749. " ;; Add the debootstrap and guix OS providers.\n"
  47750. " \"ganeti-instance-guix\" \"ganeti-instance-debootstrap\"))\n"
  47751. " %base-packages))\n"
  47752. " (services\n"
  47753. " (append (list (service static-networking-service-type\n"
  47754. " (list (static-networking\n"
  47755. " (addresses\n"
  47756. " (list (network-address\n"
  47757. " (device \"eth0\")\n"
  47758. " (value \"192.168.1.201/24\"))))\n"
  47759. " (routes\n"
  47760. " (list (network-route\n"
  47761. " (destination \"default\")\n"
  47762. " (gateway \"192.168.1.254\"))))\n"
  47763. " (name-servers '(\"192.168.1.252\"\n"
  47764. " \"192.168.1.253\")))))\n"
  47765. "\n"
  47766. msgstr ""
  47767. #. type: lisp
  47768. #: guix-git/doc/guix.texi:31921
  47769. #, no-wrap
  47770. msgid ""
  47771. " ;; Ganeti uses SSH to communicate between nodes.\n"
  47772. " (service openssh-service-type\n"
  47773. " (openssh-configuration\n"
  47774. " (permit-root-login 'prohibit-password)))\n"
  47775. "\n"
  47776. msgstr ""
  47777. #. type: lisp
  47778. #: guix-git/doc/guix.texi:31931
  47779. #, no-wrap
  47780. msgid ""
  47781. " (service ganeti-service-type\n"
  47782. " (ganeti-configuration\n"
  47783. " ;; This list specifies allowed file system paths\n"
  47784. " ;; for storing virtual machine images.\n"
  47785. " (file-storage-paths '(\"/srv/ganeti/file-storage\"))\n"
  47786. " ;; This variable configures a single \"variant\" for\n"
  47787. " ;; both Debootstrap and Guix that works with KVM.\n"
  47788. " (os %default-ganeti-os))))\n"
  47789. " %base-services)))\n"
  47790. msgstr ""
  47791. #. type: Plain text
  47792. #: guix-git/doc/guix.texi:31939
  47793. 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."
  47794. msgstr ""
  47795. #. type: defvr
  47796. #: guix-git/doc/guix.texi:31940
  47797. #, no-wrap
  47798. msgid "{Scheme Variable} ganeti-service-type"
  47799. msgstr ""
  47800. #. type: defvr
  47801. #: guix-git/doc/guix.texi:31943
  47802. msgid "This is a service type that includes all the various services that Ganeti nodes should run."
  47803. msgstr ""
  47804. #. type: defvr
  47805. #: guix-git/doc/guix.texi:31948
  47806. 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."
  47807. msgstr ""
  47808. #. type: deftp
  47809. #: guix-git/doc/guix.texi:31950
  47810. #, no-wrap
  47811. msgid "{Data Type} ganeti-configuration"
  47812. msgstr ""
  47813. #. type: deftp
  47814. #: guix-git/doc/guix.texi:31952
  47815. msgid "The @code{ganeti} service takes the following configuration options:"
  47816. msgstr ""
  47817. #. type: item
  47818. #: guix-git/doc/guix.texi:31954 guix-git/doc/guix.texi:32182
  47819. #: guix-git/doc/guix.texi:32232 guix-git/doc/guix.texi:32262
  47820. #: guix-git/doc/guix.texi:32289 guix-git/doc/guix.texi:32321
  47821. #: guix-git/doc/guix.texi:32374 guix-git/doc/guix.texi:32394
  47822. #: guix-git/doc/guix.texi:32420 guix-git/doc/guix.texi:32453
  47823. #: guix-git/doc/guix.texi:32493
  47824. #, fuzzy, no-wrap
  47825. msgid "@code{ganeti} (default: @code{ganeti})"
  47826. msgstr "@code{gnome}(默认值:@code{gnome})"
  47827. #. type: table
  47828. #: guix-git/doc/guix.texi:31959
  47829. 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)."
  47830. msgstr ""
  47831. #. type: item
  47832. #: guix-git/doc/guix.texi:31960
  47833. #, fuzzy, no-wrap
  47834. msgid "@code{noded-configuration} (default: @code{(ganeti-noded-configuration)})"
  47835. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  47836. #. type: itemx
  47837. #: guix-git/doc/guix.texi:31961
  47838. #, fuzzy, no-wrap
  47839. msgid "@code{confd-configuration} (default: @code{(ganeti-confd-configuration)})"
  47840. msgstr "@code{journal-content}(默认值:@code{#f})"
  47841. #. type: itemx
  47842. #: guix-git/doc/guix.texi:31962
  47843. #, no-wrap
  47844. msgid "@code{wconfd-configuration} (default: @code{(ganeti-wconfd-configuration)})"
  47845. msgstr ""
  47846. #. type: itemx
  47847. #: guix-git/doc/guix.texi:31963
  47848. #, no-wrap
  47849. msgid "@code{luxid-configuration} (default: @code{(ganeti-luxid-configuration)})"
  47850. msgstr ""
  47851. #. type: itemx
  47852. #: guix-git/doc/guix.texi:31964
  47853. #, fuzzy, no-wrap
  47854. msgid "@code{rapi-configuration} (default: @code{(ganeti-rapi-configuration)})"
  47855. msgstr "@code{journal-content}(默认值:@code{#f})"
  47856. #. type: itemx
  47857. #: guix-git/doc/guix.texi:31965
  47858. #, fuzzy, no-wrap
  47859. msgid "@code{kvmd-configuration} (default: @code{(ganeti-kvmd-configuration)})"
  47860. msgstr "@code{mate}(默认值:@code{mate})"
  47861. #. type: itemx
  47862. #: guix-git/doc/guix.texi:31966
  47863. #, fuzzy, no-wrap
  47864. msgid "@code{mond-configuration} (default: @code{(ganeti-mond-configuration)})"
  47865. msgstr "@code{journal-content}(默认值:@code{#f})"
  47866. #. type: itemx
  47867. #: guix-git/doc/guix.texi:31967
  47868. #, fuzzy, no-wrap
  47869. msgid "@code{metad-configuration} (default: @code{(ganeti-metad-configuration)})"
  47870. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  47871. #. type: itemx
  47872. #: guix-git/doc/guix.texi:31968
  47873. #, fuzzy, no-wrap
  47874. msgid "@code{watcher-configuration} (default: @code{(ganeti-watcher-configuration)})"
  47875. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  47876. #. type: itemx
  47877. #: guix-git/doc/guix.texi:31969
  47878. #, fuzzy, no-wrap
  47879. msgid "@code{cleaner-configuration} (default: @code{(ganeti-cleaner-configuration)})"
  47880. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  47881. #. type: table
  47882. #: guix-git/doc/guix.texi:31974
  47883. 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:"
  47884. msgstr ""
  47885. #. type: lisp
  47886. #: guix-git/doc/guix.texi:31984
  47887. #, no-wrap
  47888. msgid ""
  47889. "(service ganeti-service-type\n"
  47890. " (ganeti-configuration\n"
  47891. " (rapi-configuration\n"
  47892. " (ganeti-rapi-configuration\n"
  47893. " (interface \"eth1\"))))\n"
  47894. " (watcher-configuration\n"
  47895. " (ganeti-watcher-configuration\n"
  47896. " (rapi-ip \"10.0.0.1\"))))\n"
  47897. msgstr ""
  47898. #. type: item
  47899. #: guix-git/doc/guix.texi:31986
  47900. #, fuzzy, no-wrap
  47901. msgid "@code{file-storage-paths} (default: @code{'()})"
  47902. msgstr "@code{features} (@code{'()})"
  47903. #. type: table
  47904. #: guix-git/doc/guix.texi:31988
  47905. msgid "List of allowed directories for file storage backend."
  47906. msgstr ""
  47907. #. type: item
  47908. #: guix-git/doc/guix.texi:31989
  47909. #, fuzzy, no-wrap
  47910. msgid "@code{os} (default: @code{%default-ganeti-os})"
  47911. msgstr "@code{gnome}(默认值:@code{gnome})"
  47912. #. type: table
  47913. #: guix-git/doc/guix.texi:31991
  47914. msgid "List of @code{<ganeti-os>} records."
  47915. msgstr ""
  47916. #. type: deftp
  47917. #: guix-git/doc/guix.texi:31995
  47918. msgid "In essence @code{ganeti-service-type} is shorthand for declaring each service individually:"
  47919. msgstr ""
  47920. #. type: lisp
  47921. #: guix-git/doc/guix.texi:32006
  47922. #, no-wrap
  47923. msgid ""
  47924. "(service ganeti-noded-service-type)\n"
  47925. "(service ganeti-confd-service-type)\n"
  47926. "(service ganeti-wconfd-service-type)\n"
  47927. "(service ganeti-luxid-service-type)\n"
  47928. "(service ganeti-kvmd-service-type)\n"
  47929. "(service ganeti-mond-service-type)\n"
  47930. "(service ganeti-metad-service-type)\n"
  47931. "(service ganeti-watcher-service-type)\n"
  47932. "(service ganeti-cleaner-service-type)\n"
  47933. msgstr ""
  47934. #. type: deftp
  47935. #: guix-git/doc/guix.texi:32010
  47936. msgid "Plus a service extension for @code{etc-service-type} that configures the file storage backend and OS variants."
  47937. msgstr ""
  47938. #. type: deftp
  47939. #: guix-git/doc/guix.texi:32013
  47940. #, fuzzy, no-wrap
  47941. msgid "{Data Type} ganeti-os"
  47942. msgstr "{数据类型} build-machine"
  47943. #. type: deftp
  47944. #: guix-git/doc/guix.texi:32016
  47945. msgid "This data type is suitable for passing to the @code{os} parameter of @code{ganeti-configuration}. It takes the following parameters:"
  47946. msgstr ""
  47947. #. type: table
  47948. #: guix-git/doc/guix.texi:32022
  47949. 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}."
  47950. msgstr ""
  47951. #. type: code{#1}
  47952. #: guix-git/doc/guix.texi:32023
  47953. #, no-wrap
  47954. msgid "extension"
  47955. msgstr ""
  47956. #. type: table
  47957. #: guix-git/doc/guix.texi:32026
  47958. msgid "The file extension for variants of this OS type. For example @file{.conf} or @file{.scm}."
  47959. msgstr ""
  47960. #. type: item
  47961. #: guix-git/doc/guix.texi:32027
  47962. #, fuzzy, no-wrap
  47963. msgid "@code{variants} (default: @code{'()})"
  47964. msgstr "@code{features} (@code{'()})"
  47965. #. type: table
  47966. #: guix-git/doc/guix.texi:32029
  47967. msgid "List of @code{ganeti-os-variant} objects for this OS."
  47968. msgstr ""
  47969. #. type: deftp
  47970. #: guix-git/doc/guix.texi:32033
  47971. #, fuzzy, no-wrap
  47972. msgid "{Data Type} ganeti-os-variant"
  47973. msgstr "{数据类型} build-machine"
  47974. #. type: deftp
  47975. #: guix-git/doc/guix.texi:32036
  47976. msgid "This is the data type for a Ganeti OS variant. It takes the following parameters:"
  47977. msgstr ""
  47978. #. type: table
  47979. #: guix-git/doc/guix.texi:32040
  47980. #, fuzzy
  47981. msgid "The name of this variant."
  47982. msgstr "这个用户手册的许可证。"
  47983. #. type: code{#1}
  47984. #: guix-git/doc/guix.texi:32041
  47985. #, fuzzy, no-wrap
  47986. msgid "configuration"
  47987. msgstr "系统配置"
  47988. #. type: table
  47989. #: guix-git/doc/guix.texi:32043
  47990. msgid "A configuration file for this variant."
  47991. msgstr ""
  47992. #. type: defvr
  47993. #: guix-git/doc/guix.texi:32046
  47994. #, no-wrap
  47995. msgid "{Scheme Variable} %default-debootstrap-hooks"
  47996. msgstr ""
  47997. #. type: defvr
  47998. #: guix-git/doc/guix.texi:32048
  47999. msgid "This variable contains hooks to configure networking and the GRUB bootloader."
  48000. msgstr ""
  48001. #. type: defvr
  48002. #: guix-git/doc/guix.texi:32050
  48003. #, no-wrap
  48004. msgid "{Scheme Variable} %default-debootstrap-extra-pkgs"
  48005. msgstr ""
  48006. #. type: defvr
  48007. #: guix-git/doc/guix.texi:32052
  48008. msgid "This variable contains a list of packages suitable for a fully-virtualized guest."
  48009. msgstr ""
  48010. #. type: deftp
  48011. #: guix-git/doc/guix.texi:32054
  48012. #, no-wrap
  48013. msgid "{Data Type} debootstrap-configuration"
  48014. msgstr ""
  48015. #. type: deftp
  48016. #: guix-git/doc/guix.texi:32057
  48017. msgid "This data type creates configuration files suitable for the debootstrap OS provider."
  48018. msgstr ""
  48019. #. type: item
  48020. #: guix-git/doc/guix.texi:32059
  48021. #, fuzzy, no-wrap
  48022. msgid "@code{hooks} (default: @code{%default-debootstrap-hooks})"
  48023. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  48024. #. type: table
  48025. #: guix-git/doc/guix.texi:32063
  48026. 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:"
  48027. msgstr ""
  48028. #. type: lisp
  48029. #: guix-git/doc/guix.texi:32066
  48030. #, no-wrap
  48031. msgid "`((99-hello-world . ,(plain-file \"#!/bin/sh\\necho Hello, World\")))\n"
  48032. msgstr ""
  48033. #. type: table
  48034. #: guix-git/doc/guix.texi:32071
  48035. 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."
  48036. msgstr ""
  48037. #. type: item
  48038. #: guix-git/doc/guix.texi:32071
  48039. #, fuzzy, no-wrap
  48040. msgid "@code{proxy} (default: @code{#f})"
  48041. msgstr "@code{port}(默认值:@code{22})"
  48042. #. type: table
  48043. #: guix-git/doc/guix.texi:32073
  48044. msgid "Optional HTTP proxy to use."
  48045. msgstr ""
  48046. #. type: item
  48047. #: guix-git/doc/guix.texi:32073 guix-git/doc/guix.texi:34266
  48048. #, fuzzy, no-wrap
  48049. msgid "@code{mirror} (default: @code{#f})"
  48050. msgstr "@code{port}(默认值:@code{22})"
  48051. #. type: table
  48052. #: guix-git/doc/guix.texi:32076
  48053. msgid "The Debian mirror. Typically something like @code{http://ftp.no.debian.org/debian}. The default varies depending on the distribution."
  48054. msgstr ""
  48055. #. type: item
  48056. #: guix-git/doc/guix.texi:32076
  48057. #, fuzzy, no-wrap
  48058. msgid "@code{arch} (default: @code{#f})"
  48059. msgstr "@code{challenge}(默认值:@code{#f})"
  48060. #. type: table
  48061. #: guix-git/doc/guix.texi:32079
  48062. 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."
  48063. msgstr ""
  48064. #. type: item
  48065. #: guix-git/doc/guix.texi:32079
  48066. #, fuzzy, no-wrap
  48067. msgid "@code{suite} (default: @code{\"stable\"})"
  48068. msgstr "@code{mate}(默认值:@code{mate})"
  48069. #. type: table
  48070. #: guix-git/doc/guix.texi:32082
  48071. 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."
  48072. msgstr ""
  48073. #. type: item
  48074. #: guix-git/doc/guix.texi:32082
  48075. #, no-wrap
  48076. msgid "@code{extra-pkgs} (default: @code{%default-debootstrap-extra-pkgs})"
  48077. msgstr ""
  48078. #. type: table
  48079. #: guix-git/doc/guix.texi:32085
  48080. msgid "List of extra packages that will get installed by dpkg in addition to the minimal system."
  48081. msgstr ""
  48082. #. type: item
  48083. #: guix-git/doc/guix.texi:32085
  48084. #, fuzzy, no-wrap
  48085. msgid "@code{components} (default: @code{#f})"
  48086. msgstr "@code{journal-content}(默认值:@code{#f})"
  48087. #. type: table
  48088. #: guix-git/doc/guix.texi:32088
  48089. msgid "When set, must be a list of Debian repository ``components''. For example @code{'(\"main\" \"contrib\")}."
  48090. msgstr ""
  48091. #. type: item
  48092. #: guix-git/doc/guix.texi:32088
  48093. #, fuzzy, no-wrap
  48094. msgid "@code{generate-cache?} (default: @code{#t})"
  48095. msgstr "@code{mate}(默认值:@code{mate})"
  48096. #. type: table
  48097. #: guix-git/doc/guix.texi:32090
  48098. msgid "Whether to automatically cache the generated debootstrap archive."
  48099. msgstr ""
  48100. #. type: item
  48101. #: guix-git/doc/guix.texi:32090
  48102. #, fuzzy, no-wrap
  48103. msgid "@code{clean-cache} (default: @code{14})"
  48104. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  48105. #. type: table
  48106. #: guix-git/doc/guix.texi:32093
  48107. msgid "Discard the cache after this amount of days. Use @code{#f} to never clear the cache."
  48108. msgstr ""
  48109. #. type: item
  48110. #: guix-git/doc/guix.texi:32093
  48111. #, fuzzy, no-wrap
  48112. msgid "@code{partition-style} (default: @code{'msdos})"
  48113. msgstr "@code{compression-level}(默认值:@code{3})"
  48114. #. type: table
  48115. #: guix-git/doc/guix.texi:32096
  48116. msgid "The type of partition to create. When set, it must be one of @code{'msdos}, @code{'none} or a string."
  48117. msgstr ""
  48118. #. type: item
  48119. #: guix-git/doc/guix.texi:32096
  48120. #, fuzzy, no-wrap
  48121. msgid "@code{partition-alignment} (default: @code{2048})"
  48122. msgstr "@code{port}(默认值:@code{22})"
  48123. #. type: table
  48124. #: guix-git/doc/guix.texi:32098
  48125. msgid "Alignment of the partition in sectors."
  48126. msgstr ""
  48127. #. type: deffn
  48128. #: guix-git/doc/guix.texi:32101
  48129. #, no-wrap
  48130. msgid "{Scheme Procedure} debootstrap-variant @var{name} @var{configuration}"
  48131. msgstr ""
  48132. #. type: deffn
  48133. #: guix-git/doc/guix.texi:32104
  48134. 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."
  48135. msgstr ""
  48136. #. type: deffn
  48137. #: guix-git/doc/guix.texi:32106
  48138. #, no-wrap
  48139. msgid "{Scheme Procedure} debootstrap-os @var{variants}@dots{}"
  48140. msgstr ""
  48141. #. type: deffn
  48142. #: guix-git/doc/guix.texi:32109
  48143. msgid "This is a helper procedure that creates a @code{ganeti-os} record. It takes a list of variants created with @code{debootstrap-variant}."
  48144. msgstr ""
  48145. #. type: deffn
  48146. #: guix-git/doc/guix.texi:32111
  48147. #, no-wrap
  48148. msgid "{Scheme Procedure} guix-variant @var{name} @var{configuration}"
  48149. msgstr ""
  48150. #. type: deffn
  48151. #: guix-git/doc/guix.texi:32116
  48152. 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."
  48153. msgstr ""
  48154. #. type: deffn
  48155. #: guix-git/doc/guix.texi:32118
  48156. #, no-wrap
  48157. msgid "{Scheme Procedure} guix-os @var{variants}@dots{}"
  48158. msgstr ""
  48159. #. type: deffn
  48160. #: guix-git/doc/guix.texi:32121
  48161. msgid "This is a helper procedure that creates a @code{ganeti-os} record. It takes a list of variants produced by @code{guix-variant}."
  48162. msgstr ""
  48163. #. type: defvr
  48164. #: guix-git/doc/guix.texi:32123
  48165. #, no-wrap
  48166. msgid "{Scheme Variable} %default-debootstrap-variants"
  48167. msgstr ""
  48168. #. type: defvr
  48169. #: guix-git/doc/guix.texi:32127
  48170. 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:"
  48171. msgstr ""
  48172. #. type: lisp
  48173. #: guix-git/doc/guix.texi:32132
  48174. #, no-wrap
  48175. msgid ""
  48176. "(list (debootstrap-variant\n"
  48177. " \"default\"\n"
  48178. " (debootstrap-configuration)))\n"
  48179. msgstr ""
  48180. #. type: defvr
  48181. #: guix-git/doc/guix.texi:32135
  48182. #, no-wrap
  48183. msgid "{Scheme Variable} %default-guix-variants"
  48184. msgstr ""
  48185. #. type: defvr
  48186. #: guix-git/doc/guix.texi:32139
  48187. 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."
  48188. msgstr ""
  48189. #. type: lisp
  48190. #: guix-git/doc/guix.texi:32145
  48191. #, no-wrap
  48192. msgid ""
  48193. "(list (guix-variant\n"
  48194. " \"default\"\n"
  48195. " (file-append ganeti-instance-guix\n"
  48196. " \"/share/doc/ganeti-instance-guix/examples/dynamic.scm\")))\n"
  48197. msgstr ""
  48198. #. type: Plain text
  48199. #: guix-git/doc/guix.texi:32151
  48200. 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:"
  48201. msgstr ""
  48202. #. type: lisp
  48203. #: guix-git/doc/guix.texi:32160
  48204. #, no-wrap
  48205. msgid ""
  48206. "(ganeti-os\n"
  48207. " (name \"custom\")\n"
  48208. " (extension \".conf\")\n"
  48209. " (variants\n"
  48210. " (list (ganeti-os-variant\n"
  48211. " (name \"foo\")\n"
  48212. " (configuration (plain-file \"bar\" \"this is fine\"))))))\n"
  48213. msgstr ""
  48214. #. type: Plain text
  48215. #: guix-git/doc/guix.texi:32165
  48216. 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}."
  48217. msgstr ""
  48218. #. type: Plain text
  48219. #: guix-git/doc/guix.texi:32168
  48220. 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}."
  48221. msgstr ""
  48222. #. type: Plain text
  48223. #: guix-git/doc/guix.texi:32171
  48224. msgid "The rest of this section documents the various services that are included by @code{ganeti-service-type}."
  48225. msgstr ""
  48226. #. type: defvr
  48227. #: guix-git/doc/guix.texi:32172
  48228. #, no-wrap
  48229. msgid "{Scheme Variable} ganeti-noded-service-type"
  48230. msgstr ""
  48231. #. type: defvr
  48232. #: guix-git/doc/guix.texi:32176
  48233. 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."
  48234. msgstr ""
  48235. #. type: deftp
  48236. #: guix-git/doc/guix.texi:32178
  48237. #, no-wrap
  48238. msgid "{Data Type} ganeti-noded-configuration"
  48239. msgstr ""
  48240. #. type: deftp
  48241. #: guix-git/doc/guix.texi:32180
  48242. msgid "This is the configuration for the @code{ganeti-noded} service."
  48243. msgstr ""
  48244. #. type: table
  48245. #: guix-git/doc/guix.texi:32184 guix-git/doc/guix.texi:32234
  48246. #: guix-git/doc/guix.texi:32264 guix-git/doc/guix.texi:32291
  48247. #: guix-git/doc/guix.texi:32323 guix-git/doc/guix.texi:32376
  48248. #: guix-git/doc/guix.texi:32396 guix-git/doc/guix.texi:32422
  48249. #: guix-git/doc/guix.texi:32455
  48250. msgid "The @code{ganeti} package to use for this service."
  48251. msgstr ""
  48252. #. type: item
  48253. #: guix-git/doc/guix.texi:32185
  48254. #, fuzzy, no-wrap
  48255. msgid "@code{port} (default: @code{1811})"
  48256. msgstr "@code{port}(默认值:@code{22})"
  48257. #. type: table
  48258. #: guix-git/doc/guix.texi:32187
  48259. msgid "The TCP port on which the node daemon listens for network requests."
  48260. msgstr ""
  48261. #. type: item
  48262. #: guix-git/doc/guix.texi:32188 guix-git/doc/guix.texi:32238
  48263. #: guix-git/doc/guix.texi:32330 guix-git/doc/guix.texi:32400
  48264. #, fuzzy, no-wrap
  48265. msgid "@code{address} (default: @code{\"0.0.0.0\"})"
  48266. msgstr "@code{display}(默认值:@code{\":0\"})"
  48267. #. type: table
  48268. #: guix-git/doc/guix.texi:32191
  48269. msgid "The network address that the daemon will bind to. The default address means bind to all available addresses."
  48270. msgstr ""
  48271. #. type: table
  48272. #: guix-git/doc/guix.texi:32195
  48273. msgid "When this is set, it must be a specific network interface (e.g.@: @code{eth0}) that the daemon will bind to."
  48274. msgstr ""
  48275. #. type: item
  48276. #: guix-git/doc/guix.texi:32196 guix-git/doc/guix.texi:32338
  48277. #, fuzzy, no-wrap
  48278. msgid "@code{max-clients} (default: @code{20})"
  48279. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  48280. #. type: table
  48281. #: guix-git/doc/guix.texi:32200
  48282. 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."
  48283. msgstr ""
  48284. #. type: item
  48285. #: guix-git/doc/guix.texi:32201 guix-git/doc/guix.texi:32343
  48286. #, fuzzy, no-wrap
  48287. msgid "@code{ssl?} (default: @code{#t})"
  48288. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  48289. #. type: table
  48290. #: guix-git/doc/guix.texi:32205
  48291. 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}."
  48292. msgstr ""
  48293. #. type: item
  48294. #: guix-git/doc/guix.texi:32206 guix-git/doc/guix.texi:32346
  48295. #, fuzzy, no-wrap
  48296. msgid "@code{ssl-key} (default: @file{\"/var/lib/ganeti/server.pem\"})"
  48297. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  48298. #. type: table
  48299. #: guix-git/doc/guix.texi:32208 guix-git/doc/guix.texi:32348
  48300. msgid "This can be used to provide a specific encryption key for TLS communications."
  48301. msgstr ""
  48302. #. type: item
  48303. #: guix-git/doc/guix.texi:32209 guix-git/doc/guix.texi:32349
  48304. #, fuzzy, no-wrap
  48305. msgid "@code{ssl-cert} (default: @file{\"/var/lib/ganeti/server.pem\"})"
  48306. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  48307. #. type: table
  48308. #: guix-git/doc/guix.texi:32211 guix-git/doc/guix.texi:32351
  48309. msgid "This can be used to provide a specific certificate for TLS communications."
  48310. msgstr ""
  48311. #. type: table
  48312. #: guix-git/doc/guix.texi:32215 guix-git/doc/guix.texi:32355
  48313. 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."
  48314. msgstr ""
  48315. #. type: defvr
  48316. #: guix-git/doc/guix.texi:32219
  48317. #, no-wrap
  48318. msgid "{Scheme Variable} ganeti-confd-service-type"
  48319. msgstr ""
  48320. #. type: defvr
  48321. #: guix-git/doc/guix.texi:32225
  48322. 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."
  48323. msgstr ""
  48324. #. type: deftp
  48325. #: guix-git/doc/guix.texi:32228
  48326. #, no-wrap
  48327. msgid "{Data Type} ganeti-confd-configuration"
  48328. msgstr ""
  48329. #. type: deftp
  48330. #: guix-git/doc/guix.texi:32230
  48331. msgid "This is the configuration for the @code{ganeti-confd} service."
  48332. msgstr ""
  48333. #. type: item
  48334. #: guix-git/doc/guix.texi:32235
  48335. #, fuzzy, no-wrap
  48336. msgid "@code{port} (default: @code{1814})"
  48337. msgstr "@code{port}(默认值:@code{22})"
  48338. #. type: table
  48339. #: guix-git/doc/guix.texi:32237
  48340. msgid "The UDP port on which to listen for network requests."
  48341. msgstr ""
  48342. #. type: table
  48343. #: guix-git/doc/guix.texi:32240
  48344. msgid "Network address that the daemon will bind to."
  48345. msgstr ""
  48346. #. type: table
  48347. #: guix-git/doc/guix.texi:32243 guix-git/doc/guix.texi:32272
  48348. #: guix-git/doc/guix.texi:32299 guix-git/doc/guix.texi:32379
  48349. #: guix-git/doc/guix.texi:32406 guix-git/doc/guix.texi:32432
  48350. msgid "When true, the daemon performs additional logging for debugging purposes."
  48351. msgstr ""
  48352. #. type: defvr
  48353. #: guix-git/doc/guix.texi:32247
  48354. #, no-wrap
  48355. msgid "{Scheme Variable} ganeti-wconfd-service-type"
  48356. msgstr ""
  48357. #. type: defvr
  48358. #: guix-git/doc/guix.texi:32253
  48359. 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."
  48360. msgstr ""
  48361. #. type: defvr
  48362. #: guix-git/doc/guix.texi:32256
  48363. msgid "The value of this service must be a @code{ganeti-wconfd-configuration} object."
  48364. msgstr ""
  48365. #. type: deftp
  48366. #: guix-git/doc/guix.texi:32258
  48367. #, no-wrap
  48368. msgid "{Data Type} ganeti-wconfd-configuration"
  48369. msgstr ""
  48370. #. type: deftp
  48371. #: guix-git/doc/guix.texi:32260
  48372. msgid "This is the configuration for the @code{ganeti-wconfd} service."
  48373. msgstr ""
  48374. #. type: item
  48375. #: guix-git/doc/guix.texi:32265 guix-git/doc/guix.texi:32292
  48376. #, fuzzy, no-wrap
  48377. msgid "@code{no-voting?} (default: @code{#f})"
  48378. msgstr "@code{journal-content}(默认值:@code{#f})"
  48379. #. type: table
  48380. #: guix-git/doc/guix.texi:32269
  48381. 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)."
  48382. msgstr ""
  48383. #. type: defvr
  48384. #: guix-git/doc/guix.texi:32276
  48385. #, no-wrap
  48386. msgid "{Scheme Variable} ganeti-luxid-service-type"
  48387. msgstr ""
  48388. #. type: defvr
  48389. #: guix-git/doc/guix.texi:32281
  48390. 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."
  48391. msgstr ""
  48392. #. type: defvr
  48393. #: guix-git/doc/guix.texi:32283
  48394. msgid "It takes a @code{ganeti-luxid-configuration} object."
  48395. msgstr ""
  48396. #. type: deftp
  48397. #: guix-git/doc/guix.texi:32285
  48398. #, fuzzy, no-wrap
  48399. msgid "{Data Type} ganeti-luxid-configuration"
  48400. msgstr "{数据类型} build-machine"
  48401. #. type: deftp
  48402. #: guix-git/doc/guix.texi:32287
  48403. #, fuzzy
  48404. msgid "This is the configuration for the @code{ganeti-luxid} service."
  48405. msgstr "管理操作系统配置。"
  48406. #. type: table
  48407. #: guix-git/doc/guix.texi:32296
  48408. 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)."
  48409. msgstr ""
  48410. #. type: defvr
  48411. #: guix-git/doc/guix.texi:32303
  48412. #, no-wrap
  48413. msgid "{Scheme Variable} ganeti-rapi-service-type"
  48414. msgstr ""
  48415. #. type: defvr
  48416. #: guix-git/doc/guix.texi:32307
  48417. 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."
  48418. msgstr ""
  48419. #. type: defvr
  48420. #: guix-git/doc/guix.texi:32313
  48421. 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."
  48422. msgstr ""
  48423. #. type: defvr
  48424. #: guix-git/doc/guix.texi:32315
  48425. msgid "The value of this service must be a @code{ganeti-rapi-configuration} object."
  48426. msgstr ""
  48427. #. type: deftp
  48428. #: guix-git/doc/guix.texi:32317
  48429. #, no-wrap
  48430. msgid "{Data Type} ganeti-rapi-configuration"
  48431. msgstr ""
  48432. #. type: deftp
  48433. #: guix-git/doc/guix.texi:32319
  48434. msgid "This is the configuration for the @code{ganeti-rapi} service."
  48435. msgstr ""
  48436. #. type: item
  48437. #: guix-git/doc/guix.texi:32324
  48438. #, fuzzy, no-wrap
  48439. msgid "@code{require-authentication?} (default: @code{#f})"
  48440. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  48441. #. type: table
  48442. #: guix-git/doc/guix.texi:32326
  48443. msgid "Whether to require authentication even for read-only operations."
  48444. msgstr ""
  48445. #. type: item
  48446. #: guix-git/doc/guix.texi:32327
  48447. #, fuzzy, no-wrap
  48448. msgid "@code{port} (default: @code{5080})"
  48449. msgstr "@code{port}(默认值:@code{22})"
  48450. #. type: table
  48451. #: guix-git/doc/guix.texi:32329
  48452. msgid "The TCP port on which to listen to API requests."
  48453. msgstr ""
  48454. #. type: table
  48455. #: guix-git/doc/guix.texi:32333
  48456. msgid "The network address that the service will bind to. By default it listens on all configured addresses."
  48457. msgstr ""
  48458. #. type: table
  48459. #: guix-git/doc/guix.texi:32337
  48460. msgid "When set, it must specify a specific network interface such as @code{eth0} that the daemon will bind to."
  48461. msgstr ""
  48462. #. type: table
  48463. #: guix-git/doc/guix.texi:32342
  48464. msgid "The maximum number of simultaneous client requests to handle. Further connections are allowed, but no responses are sent until enough connections have closed."
  48465. msgstr ""
  48466. #. type: table
  48467. #: guix-git/doc/guix.texi:32345
  48468. msgid "Whether to use SSL/TLS encryption on the RAPI port."
  48469. msgstr ""
  48470. #. type: defvr
  48471. #: guix-git/doc/guix.texi:32359
  48472. #, no-wrap
  48473. msgid "{Scheme Variable} ganeti-kvmd-service-type"
  48474. msgstr ""
  48475. #. type: defvr
  48476. #: guix-git/doc/guix.texi:32367
  48477. 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."
  48478. msgstr ""
  48479. #. type: defvr
  48480. #: guix-git/doc/guix.texi:32369
  48481. msgid "It takes a @code{ganeti-kvmd-configuration} object."
  48482. msgstr ""
  48483. #. type: deftp
  48484. #: guix-git/doc/guix.texi:32371
  48485. #, no-wrap
  48486. msgid "{Data Type} ganeti-kvmd-configuration"
  48487. msgstr ""
  48488. #. type: defvr
  48489. #: guix-git/doc/guix.texi:32383
  48490. #, no-wrap
  48491. msgid "{Scheme Variable} ganeti-mond-service-type"
  48492. msgstr ""
  48493. #. type: defvr
  48494. #: guix-git/doc/guix.texi:32387
  48495. 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."
  48496. msgstr ""
  48497. #. type: defvr
  48498. #: guix-git/doc/guix.texi:32389
  48499. msgid "It takes a @code{ganeti-mond-configuration} object."
  48500. msgstr ""
  48501. #. type: deftp
  48502. #: guix-git/doc/guix.texi:32391
  48503. #, no-wrap
  48504. msgid "{Data Type} ganeti-mond-configuration"
  48505. msgstr ""
  48506. #. type: item
  48507. #: guix-git/doc/guix.texi:32397
  48508. #, fuzzy, no-wrap
  48509. msgid "@code{port} (default: @code{1815})"
  48510. msgstr "@code{port}(默认值:@code{22})"
  48511. #. type: table
  48512. #: guix-git/doc/guix.texi:32399 guix-git/doc/guix.texi:32425
  48513. msgid "The port on which the daemon will listen."
  48514. msgstr ""
  48515. #. type: table
  48516. #: guix-git/doc/guix.texi:32403
  48517. msgid "The network address that the daemon will bind to. By default it binds to all available interfaces."
  48518. msgstr ""
  48519. #. type: defvr
  48520. #: guix-git/doc/guix.texi:32410
  48521. #, no-wrap
  48522. msgid "{Scheme Variable} ganeti-metad-service-type"
  48523. msgstr ""
  48524. #. type: defvr
  48525. #: guix-git/doc/guix.texi:32413
  48526. msgid "@command{ganeti-metad} is an optional daemon that can be used to provide information about the cluster to instances or OS install scripts."
  48527. msgstr ""
  48528. #. type: defvr
  48529. #: guix-git/doc/guix.texi:32415
  48530. msgid "It takes a @code{ganeti-metad-configuration} object."
  48531. msgstr ""
  48532. #. type: deftp
  48533. #: guix-git/doc/guix.texi:32417
  48534. #, fuzzy, no-wrap
  48535. msgid "{Data Type} ganeti-metad-configuration"
  48536. msgstr "{数据类型} build-machine"
  48537. #. type: table
  48538. #: guix-git/doc/guix.texi:32429
  48539. msgid "If set, the daemon will bind to this address only. If left unset, the behavior depends on the cluster configuration."
  48540. msgstr ""
  48541. #. type: defvr
  48542. #: guix-git/doc/guix.texi:32436
  48543. #, no-wrap
  48544. msgid "{Scheme Variable} ganeti-watcher-service-type"
  48545. msgstr ""
  48546. #. type: defvr
  48547. #: guix-git/doc/guix.texi:32444
  48548. 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."
  48549. msgstr ""
  48550. #. type: defvr
  48551. #: guix-git/doc/guix.texi:32446
  48552. msgid "It can be paused on all nodes with @command{gnt-cluster watcher pause}."
  48553. msgstr ""
  48554. #. type: defvr
  48555. #: guix-git/doc/guix.texi:32448
  48556. msgid "The service takes a @code{ganeti-watcher-configuration} object."
  48557. msgstr ""
  48558. #. type: deftp
  48559. #: guix-git/doc/guix.texi:32450
  48560. #, no-wrap
  48561. msgid "{Data Type} ganeti-watcher-configuration"
  48562. msgstr ""
  48563. #. type: item
  48564. #: guix-git/doc/guix.texi:32456
  48565. #, no-wrap
  48566. msgid "@code{schedule} (default: @code{'(next-second-from (next-minute (range 0 60 5)))})"
  48567. msgstr ""
  48568. #. type: table
  48569. #: guix-git/doc/guix.texi:32458
  48570. msgid "How often to run the script. The default is every five minutes."
  48571. msgstr ""
  48572. #. type: item
  48573. #: guix-git/doc/guix.texi:32459
  48574. #, fuzzy, no-wrap
  48575. msgid "@code{rapi-ip} (default: @code{#f})"
  48576. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  48577. #. type: table
  48578. #: guix-git/doc/guix.texi:32462
  48579. 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."
  48580. msgstr ""
  48581. #. type: item
  48582. #: guix-git/doc/guix.texi:32463
  48583. #, fuzzy, no-wrap
  48584. msgid "@code{job-age} (default: @code{(* 6 3600)})"
  48585. msgstr "@code{features} (@code{'()})"
  48586. #. type: table
  48587. #: guix-git/doc/guix.texi:32466
  48588. msgid "Archive cluster jobs older than this age, specified in seconds. The default is 6 hours. This keeps @command{gnt-job list} manageable."
  48589. msgstr ""
  48590. #. type: item
  48591. #: guix-git/doc/guix.texi:32467
  48592. #, fuzzy, no-wrap
  48593. msgid "@code{verify-disks?} (default: @code{#t})"
  48594. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  48595. #. type: table
  48596. #: guix-git/doc/guix.texi:32471
  48597. 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."
  48598. msgstr ""
  48599. #. type: table
  48600. #: guix-git/doc/guix.texi:32474
  48601. msgid "When @code{#t}, the script performs additional logging for debugging purposes."
  48602. msgstr ""
  48603. #. type: defvr
  48604. #: guix-git/doc/guix.texi:32478
  48605. #, no-wrap
  48606. msgid "{Scheme Variable} ganeti-cleaner-service-type"
  48607. msgstr ""
  48608. #. type: defvr
  48609. #: guix-git/doc/guix.texi:32486
  48610. 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."
  48611. msgstr ""
  48612. #. type: defvr
  48613. #: guix-git/doc/guix.texi:32488
  48614. msgid "It takes a @code{ganeti-cleaner-configuration} object."
  48615. msgstr ""
  48616. #. type: deftp
  48617. #: guix-git/doc/guix.texi:32490
  48618. #, no-wrap
  48619. msgid "{Data Type} ganeti-cleaner-configuration"
  48620. msgstr ""
  48621. #. type: table
  48622. #: guix-git/doc/guix.texi:32495
  48623. msgid "The @code{ganeti} package to use for the @command{gnt-cleaner} command."
  48624. msgstr ""
  48625. #. type: item
  48626. #: guix-git/doc/guix.texi:32496
  48627. #, fuzzy, no-wrap
  48628. msgid "@code{master-schedule} (default: @code{\"45 1 * * *\"})"
  48629. msgstr "@code{speed}(默认值:@code{1.0})"
  48630. #. type: table
  48631. #: guix-git/doc/guix.texi:32499
  48632. msgid "How often to run the master cleaning job. The default is once per day, at 01:45:00."
  48633. msgstr ""
  48634. #. type: item
  48635. #: guix-git/doc/guix.texi:32500
  48636. #, fuzzy, no-wrap
  48637. msgid "@code{node-schedule} (default: @code{\"45 2 * * *\"})"
  48638. msgstr "@code{display}(默认值:@code{\":0\"})"
  48639. #. type: table
  48640. #: guix-git/doc/guix.texi:32503
  48641. msgid "How often to run the node cleaning job. The default is once per day, at 02:45:00."
  48642. msgstr ""
  48643. #. type: Plain text
  48644. #: guix-git/doc/guix.texi:32517
  48645. 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}."
  48646. msgstr ""
  48647. #. type: deffn
  48648. #: guix-git/doc/guix.texi:32518
  48649. #, no-wrap
  48650. msgid "{Scheme Procedure} git-daemon-service [#:config (git-daemon-configuration)]"
  48651. msgstr ""
  48652. #. type: deffn
  48653. #: guix-git/doc/guix.texi:32522
  48654. msgid "Return a service that runs @command{git daemon}, a simple TCP server to expose repositories over the Git protocol for anonymous access."
  48655. msgstr ""
  48656. #. type: deffn
  48657. #: guix-git/doc/guix.texi:32528
  48658. 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}."
  48659. msgstr ""
  48660. #. type: deftp
  48661. #: guix-git/doc/guix.texi:32531
  48662. #, no-wrap
  48663. msgid "{Data Type} git-daemon-configuration"
  48664. msgstr ""
  48665. #. type: deftp
  48666. #: guix-git/doc/guix.texi:32533
  48667. msgid "Data type representing the configuration for @code{git-daemon-service}."
  48668. msgstr ""
  48669. #. type: item
  48670. #: guix-git/doc/guix.texi:32535
  48671. #, fuzzy, no-wrap
  48672. msgid "@code{package} (default: @code{git})"
  48673. msgstr "@code{mate}(默认值:@code{mate})"
  48674. #. type: table
  48675. #: guix-git/doc/guix.texi:32537 guix-git/doc/guix.texi:32597
  48676. msgid "Package object of the Git distributed version control system."
  48677. msgstr ""
  48678. #. type: item
  48679. #: guix-git/doc/guix.texi:32538 guix-git/doc/guix.texi:32601
  48680. #, fuzzy, no-wrap
  48681. msgid "@code{export-all?} (default: @code{#f})"
  48682. msgstr "@code{port}(默认值:@code{22})"
  48683. #. type: table
  48684. #: guix-git/doc/guix.texi:32541
  48685. msgid "Whether to allow access for all Git repositories, even if they do not have the @file{git-daemon-export-ok} file."
  48686. msgstr ""
  48687. #. type: item
  48688. #: guix-git/doc/guix.texi:32542
  48689. #, no-wrap
  48690. msgid "@code{base-path} (default: @file{/srv/git})"
  48691. msgstr ""
  48692. #. type: table
  48693. #: guix-git/doc/guix.texi:32548
  48694. 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}."
  48695. msgstr ""
  48696. #. type: item
  48697. #: guix-git/doc/guix.texi:32549
  48698. #, fuzzy, no-wrap
  48699. msgid "@code{user-path} (default: @code{#f})"
  48700. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  48701. #. type: table
  48702. #: guix-git/doc/guix.texi:32557
  48703. 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}."
  48704. msgstr ""
  48705. #. type: item
  48706. #: guix-git/doc/guix.texi:32558
  48707. #, fuzzy, no-wrap
  48708. msgid "@code{listen} (default: @code{'()})"
  48709. msgstr "@code{features} (@code{'()})"
  48710. #. type: table
  48711. #: guix-git/doc/guix.texi:32561
  48712. msgid "Whether to listen on specific IP addresses or hostnames, defaults to all."
  48713. msgstr ""
  48714. #. type: item
  48715. #: guix-git/doc/guix.texi:32562
  48716. #, fuzzy, no-wrap
  48717. msgid "@code{port} (default: @code{#f})"
  48718. msgstr "@code{port}(默认值:@code{22})"
  48719. #. type: table
  48720. #: guix-git/doc/guix.texi:32564
  48721. msgid "Whether to listen on an alternative port, which defaults to 9418."
  48722. msgstr ""
  48723. #. type: item
  48724. #: guix-git/doc/guix.texi:32565
  48725. #, fuzzy, no-wrap
  48726. msgid "@code{whitelist} (default: @code{'()})"
  48727. msgstr "@code{features} (@code{'()})"
  48728. #. type: table
  48729. #: guix-git/doc/guix.texi:32567
  48730. msgid "If not empty, only allow access to this list of directories."
  48731. msgstr ""
  48732. #. type: table
  48733. #: guix-git/doc/guix.texi:32571
  48734. msgid "Extra options will be passed to @command{git daemon}, please run @command{man git-daemon} for more information."
  48735. msgstr ""
  48736. #. type: Plain text
  48737. #: guix-git/doc/guix.texi:32585
  48738. 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."
  48739. msgstr ""
  48740. #. type: Plain text
  48741. #: guix-git/doc/guix.texi:32588
  48742. msgid "Guix has a separate configuration data type for serving Git repositories over HTTP."
  48743. msgstr ""
  48744. #. type: deftp
  48745. #: guix-git/doc/guix.texi:32589
  48746. #, no-wrap
  48747. msgid "{Data Type} git-http-configuration"
  48748. msgstr ""
  48749. #. type: deftp
  48750. #: guix-git/doc/guix.texi:32593
  48751. 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}."
  48752. msgstr ""
  48753. #. type: item
  48754. #: guix-git/doc/guix.texi:32595
  48755. #, no-wrap
  48756. msgid "@code{package} (default: @var{git})"
  48757. msgstr ""
  48758. #. type: item
  48759. #: guix-git/doc/guix.texi:32598
  48760. #, no-wrap
  48761. msgid "@code{git-root} (default: @file{/srv/git})"
  48762. msgstr ""
  48763. #. type: table
  48764. #: guix-git/doc/guix.texi:32600
  48765. msgid "Directory containing the Git repositories to expose to the world."
  48766. msgstr ""
  48767. #. type: table
  48768. #: guix-git/doc/guix.texi:32604
  48769. 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."
  48770. msgstr ""
  48771. #. type: item
  48772. #: guix-git/doc/guix.texi:32605
  48773. #, fuzzy, no-wrap
  48774. msgid "@code{uri-path} (default: @samp{/git/})"
  48775. msgstr "@code{mate}(默认值:@code{mate})"
  48776. #. type: table
  48777. #: guix-git/doc/guix.texi:32610
  48778. 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."
  48779. msgstr ""
  48780. #. type: item
  48781. #: guix-git/doc/guix.texi:32611
  48782. #, no-wrap
  48783. msgid "@code{fcgiwrap-socket} (default: @code{127.0.0.1:9000})"
  48784. msgstr ""
  48785. #. type: table
  48786. #: guix-git/doc/guix.texi:32614
  48787. msgid "The socket on which the @code{fcgiwrap} daemon is listening. @xref{Web Services}."
  48788. msgstr ""
  48789. #. type: Plain text
  48790. #: guix-git/doc/guix.texi:32621
  48791. 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."
  48792. msgstr ""
  48793. #. type: deffn
  48794. #: guix-git/doc/guix.texi:32622
  48795. #, no-wrap
  48796. msgid "{Scheme Procedure} git-http-nginx-location-configuration @"
  48797. msgstr ""
  48798. #. type: deffn
  48799. #: guix-git/doc/guix.texi:32627
  48800. 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:"
  48801. msgstr ""
  48802. #. type: lisp
  48803. #: guix-git/doc/guix.texi:32644
  48804. #, no-wrap
  48805. msgid ""
  48806. "(service nginx-service-type\n"
  48807. " (nginx-configuration\n"
  48808. " (server-blocks\n"
  48809. " (list\n"
  48810. " (nginx-server-configuration\n"
  48811. " (listen '(\"443 ssl\"))\n"
  48812. " (server-name \"git.my-host.org\")\n"
  48813. " (ssl-certificate\n"
  48814. " \"/etc/letsencrypt/live/git.my-host.org/fullchain.pem\")\n"
  48815. " (ssl-certificate-key\n"
  48816. " \"/etc/letsencrypt/live/git.my-host.org/privkey.pem\")\n"
  48817. " (locations\n"
  48818. " (list\n"
  48819. " (git-http-nginx-location-configuration\n"
  48820. " (git-http-configuration (uri-path \"/\"))))))))))\n"
  48821. msgstr ""
  48822. #. type: deffn
  48823. #: guix-git/doc/guix.texi:32651
  48824. 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}."
  48825. msgstr ""
  48826. #. type: subsubheading
  48827. #: guix-git/doc/guix.texi:32653
  48828. #, no-wrap
  48829. msgid "Cgit Service"
  48830. msgstr ""
  48831. #. type: cindex
  48832. #: guix-git/doc/guix.texi:32655
  48833. #, no-wrap
  48834. msgid "Cgit service"
  48835. msgstr ""
  48836. #. type: cindex
  48837. #: guix-git/doc/guix.texi:32656
  48838. #, no-wrap
  48839. msgid "Git, web interface"
  48840. msgstr ""
  48841. #. type: Plain text
  48842. #: guix-git/doc/guix.texi:32659
  48843. msgid "@uref{https://git.zx2c4.com/cgit/, Cgit} is a web frontend for Git repositories written in C."
  48844. msgstr ""
  48845. #. type: Plain text
  48846. #: guix-git/doc/guix.texi:32662
  48847. msgid "The following example will configure the service with default values. By default, Cgit can be accessed on port 80 (@code{http://localhost:80})."
  48848. msgstr ""
  48849. #. type: lisp
  48850. #: guix-git/doc/guix.texi:32665
  48851. #, no-wrap
  48852. msgid "(service cgit-service-type)\n"
  48853. msgstr ""
  48854. #. type: Plain text
  48855. #: guix-git/doc/guix.texi:32669
  48856. msgid "The @code{file-object} type designates either a file-like object (@pxref{G-Expressions, file-like objects}) or a string."
  48857. msgstr ""
  48858. #. type: Plain text
  48859. #: guix-git/doc/guix.texi:32673
  48860. msgid "Available @code{cgit-configuration} fields are:"
  48861. msgstr ""
  48862. #. type: deftypevr
  48863. #: guix-git/doc/guix.texi:32674
  48864. #, no-wrap
  48865. msgid "{@code{cgit-configuration} parameter} package package"
  48866. msgstr ""
  48867. #. type: deftypevr
  48868. #: guix-git/doc/guix.texi:32676
  48869. msgid "The CGIT package."
  48870. msgstr ""
  48871. #. type: deftypevr
  48872. #: guix-git/doc/guix.texi:32679
  48873. #, no-wrap
  48874. msgid "{@code{cgit-configuration} parameter} nginx-server-configuration-list nginx"
  48875. msgstr ""
  48876. #. type: deftypevr
  48877. #: guix-git/doc/guix.texi:32681
  48878. msgid "NGINX configuration."
  48879. msgstr ""
  48880. #. type: deftypevr
  48881. #: guix-git/doc/guix.texi:32684
  48882. #, no-wrap
  48883. msgid "{@code{cgit-configuration} parameter} file-object about-filter"
  48884. msgstr ""
  48885. #. type: deftypevr
  48886. #: guix-git/doc/guix.texi:32687
  48887. msgid "Specifies a command which will be invoked to format the content of about pages (both top-level and for each repository)."
  48888. msgstr ""
  48889. #. type: deftypevr
  48890. #: guix-git/doc/guix.texi:32692
  48891. #, no-wrap
  48892. msgid "{@code{cgit-configuration} parameter} string agefile"
  48893. msgstr ""
  48894. #. type: deftypevr
  48895. #: guix-git/doc/guix.texi:32695
  48896. 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."
  48897. msgstr ""
  48898. #. type: deftypevr
  48899. #: guix-git/doc/guix.texi:32700
  48900. #, no-wrap
  48901. msgid "{@code{cgit-configuration} parameter} file-object auth-filter"
  48902. msgstr ""
  48903. #. type: deftypevr
  48904. #: guix-git/doc/guix.texi:32703
  48905. msgid "Specifies a command that will be invoked for authenticating repository access."
  48906. msgstr ""
  48907. #. type: deftypevr
  48908. #: guix-git/doc/guix.texi:32708
  48909. #, no-wrap
  48910. msgid "{@code{cgit-configuration} parameter} string branch-sort"
  48911. msgstr ""
  48912. #. type: deftypevr
  48913. #: guix-git/doc/guix.texi:32711
  48914. 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."
  48915. msgstr ""
  48916. #. type: deftypevr
  48917. #: guix-git/doc/guix.texi:32713
  48918. msgid "Defaults to @samp{\"name\"}."
  48919. msgstr ""
  48920. #. type: deftypevr
  48921. #: guix-git/doc/guix.texi:32716
  48922. #, no-wrap
  48923. msgid "{@code{cgit-configuration} parameter} string cache-root"
  48924. msgstr ""
  48925. #. type: deftypevr
  48926. #: guix-git/doc/guix.texi:32718
  48927. msgid "Path used to store the cgit cache entries."
  48928. msgstr ""
  48929. #. type: deftypevr
  48930. #: guix-git/doc/guix.texi:32720
  48931. msgid "Defaults to @samp{\"/var/cache/cgit\"}."
  48932. msgstr ""
  48933. #. type: deftypevr
  48934. #: guix-git/doc/guix.texi:32723
  48935. #, no-wrap
  48936. msgid "{@code{cgit-configuration} parameter} integer cache-static-ttl"
  48937. msgstr ""
  48938. #. type: deftypevr
  48939. #: guix-git/doc/guix.texi:32726
  48940. msgid "Number which specifies the time-to-live, in minutes, for the cached version of repository pages accessed with a fixed SHA1."
  48941. msgstr ""
  48942. #. type: deftypevr
  48943. #: guix-git/doc/guix.texi:32728 guix-git/doc/guix.texi:33171
  48944. msgid "Defaults to @samp{-1}."
  48945. msgstr ""
  48946. #. type: deftypevr
  48947. #: guix-git/doc/guix.texi:32731
  48948. #, no-wrap
  48949. msgid "{@code{cgit-configuration} parameter} integer cache-dynamic-ttl"
  48950. msgstr ""
  48951. #. type: deftypevr
  48952. #: guix-git/doc/guix.texi:32734
  48953. msgid "Number which specifies the time-to-live, in minutes, for the cached version of repository pages accessed without a fixed SHA1."
  48954. msgstr ""
  48955. #. type: deftypevr
  48956. #: guix-git/doc/guix.texi:32739
  48957. #, no-wrap
  48958. msgid "{@code{cgit-configuration} parameter} integer cache-repo-ttl"
  48959. msgstr ""
  48960. #. type: deftypevr
  48961. #: guix-git/doc/guix.texi:32742
  48962. msgid "Number which specifies the time-to-live, in minutes, for the cached version of the repository summary page."
  48963. msgstr ""
  48964. #. type: deftypevr
  48965. #: guix-git/doc/guix.texi:32747
  48966. #, no-wrap
  48967. msgid "{@code{cgit-configuration} parameter} integer cache-root-ttl"
  48968. msgstr ""
  48969. #. type: deftypevr
  48970. #: guix-git/doc/guix.texi:32750
  48971. msgid "Number which specifies the time-to-live, in minutes, for the cached version of the repository index page."
  48972. msgstr ""
  48973. #. type: deftypevr
  48974. #: guix-git/doc/guix.texi:32755
  48975. #, no-wrap
  48976. msgid "{@code{cgit-configuration} parameter} integer cache-scanrc-ttl"
  48977. msgstr ""
  48978. #. type: deftypevr
  48979. #: guix-git/doc/guix.texi:32758
  48980. msgid "Number which specifies the time-to-live, in minutes, for the result of scanning a path for Git repositories."
  48981. msgstr ""
  48982. #. type: deftypevr
  48983. #: guix-git/doc/guix.texi:32763
  48984. #, no-wrap
  48985. msgid "{@code{cgit-configuration} parameter} integer cache-about-ttl"
  48986. msgstr ""
  48987. #. type: deftypevr
  48988. #: guix-git/doc/guix.texi:32766
  48989. msgid "Number which specifies the time-to-live, in minutes, for the cached version of the repository about page."
  48990. msgstr ""
  48991. #. type: deftypevr
  48992. #: guix-git/doc/guix.texi:32771
  48993. #, no-wrap
  48994. msgid "{@code{cgit-configuration} parameter} integer cache-snapshot-ttl"
  48995. msgstr ""
  48996. #. type: deftypevr
  48997. #: guix-git/doc/guix.texi:32774
  48998. msgid "Number which specifies the time-to-live, in minutes, for the cached version of snapshots."
  48999. msgstr ""
  49000. #. type: deftypevr
  49001. #: guix-git/doc/guix.texi:32779
  49002. #, no-wrap
  49003. msgid "{@code{cgit-configuration} parameter} integer cache-size"
  49004. msgstr ""
  49005. #. type: deftypevr
  49006. #: guix-git/doc/guix.texi:32782
  49007. msgid "The maximum number of entries in the cgit cache. When set to @samp{0}, caching is disabled."
  49008. msgstr ""
  49009. #. type: deftypevr
  49010. #: guix-git/doc/guix.texi:32787
  49011. #, no-wrap
  49012. msgid "{@code{cgit-configuration} parameter} boolean case-sensitive-sort?"
  49013. msgstr ""
  49014. #. type: deftypevr
  49015. #: guix-git/doc/guix.texi:32789
  49016. msgid "Sort items in the repo list case sensitively."
  49017. msgstr ""
  49018. #. type: deftypevr
  49019. #: guix-git/doc/guix.texi:32794
  49020. #, no-wrap
  49021. msgid "{@code{cgit-configuration} parameter} list clone-prefix"
  49022. msgstr ""
  49023. #. type: deftypevr
  49024. #: guix-git/doc/guix.texi:32797
  49025. msgid "List of common prefixes which, when combined with a repository URL, generates valid clone URLs for the repository."
  49026. msgstr ""
  49027. #. type: deftypevr
  49028. #: guix-git/doc/guix.texi:32802
  49029. #, no-wrap
  49030. msgid "{@code{cgit-configuration} parameter} list clone-url"
  49031. msgstr ""
  49032. #. type: deftypevr
  49033. #: guix-git/doc/guix.texi:32804
  49034. msgid "List of @code{clone-url} templates."
  49035. msgstr ""
  49036. #. type: deftypevr
  49037. #: guix-git/doc/guix.texi:32809
  49038. #, no-wrap
  49039. msgid "{@code{cgit-configuration} parameter} file-object commit-filter"
  49040. msgstr ""
  49041. #. type: deftypevr
  49042. #: guix-git/doc/guix.texi:32811
  49043. msgid "Command which will be invoked to format commit messages."
  49044. msgstr ""
  49045. #. type: deftypevr
  49046. #: guix-git/doc/guix.texi:32816
  49047. #, no-wrap
  49048. msgid "{@code{cgit-configuration} parameter} string commit-sort"
  49049. msgstr ""
  49050. #. type: deftypevr
  49051. #: guix-git/doc/guix.texi:32820 guix-git/doc/guix.texi:33378
  49052. 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."
  49053. msgstr ""
  49054. #. type: deftypevr
  49055. #: guix-git/doc/guix.texi:32822
  49056. msgid "Defaults to @samp{\"git log\"}."
  49057. msgstr ""
  49058. #. type: deftypevr
  49059. #: guix-git/doc/guix.texi:32825
  49060. #, no-wrap
  49061. msgid "{@code{cgit-configuration} parameter} file-object css"
  49062. msgstr ""
  49063. #. type: deftypevr
  49064. #: guix-git/doc/guix.texi:32827
  49065. msgid "URL which specifies the css document to include in all cgit pages."
  49066. msgstr ""
  49067. #. type: deftypevr
  49068. #: guix-git/doc/guix.texi:32829
  49069. msgid "Defaults to @samp{\"/share/cgit/cgit.css\"}."
  49070. msgstr ""
  49071. #. type: deftypevr
  49072. #: guix-git/doc/guix.texi:32832
  49073. #, no-wrap
  49074. msgid "{@code{cgit-configuration} parameter} file-object email-filter"
  49075. msgstr ""
  49076. #. type: deftypevr
  49077. #: guix-git/doc/guix.texi:32836
  49078. 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."
  49079. msgstr ""
  49080. #. type: deftypevr
  49081. #: guix-git/doc/guix.texi:32841
  49082. #, no-wrap
  49083. msgid "{@code{cgit-configuration} parameter} boolean embedded?"
  49084. msgstr ""
  49085. #. type: deftypevr
  49086. #: guix-git/doc/guix.texi:32844
  49087. msgid "Flag which, when set to @samp{#t}, will make cgit generate a HTML fragment suitable for embedding in other HTML pages."
  49088. msgstr ""
  49089. #. type: deftypevr
  49090. #: guix-git/doc/guix.texi:32849
  49091. #, no-wrap
  49092. msgid "{@code{cgit-configuration} parameter} boolean enable-commit-graph?"
  49093. msgstr ""
  49094. #. type: deftypevr
  49095. #: guix-git/doc/guix.texi:32853
  49096. 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."
  49097. msgstr ""
  49098. #. type: deftypevr
  49099. #: guix-git/doc/guix.texi:32858
  49100. #, no-wrap
  49101. msgid "{@code{cgit-configuration} parameter} boolean enable-filter-overrides?"
  49102. msgstr ""
  49103. #. type: deftypevr
  49104. #: guix-git/doc/guix.texi:32861
  49105. msgid "Flag which, when set to @samp{#t}, allows all filter settings to be overridden in repository-specific cgitrc files."
  49106. msgstr ""
  49107. #. type: deftypevr
  49108. #: guix-git/doc/guix.texi:32866
  49109. #, no-wrap
  49110. msgid "{@code{cgit-configuration} parameter} boolean enable-follow-links?"
  49111. msgstr ""
  49112. #. type: deftypevr
  49113. #: guix-git/doc/guix.texi:32869
  49114. msgid "Flag which, when set to @samp{#t}, allows users to follow a file in the log view."
  49115. msgstr ""
  49116. #. type: deftypevr
  49117. #: guix-git/doc/guix.texi:32874
  49118. #, no-wrap
  49119. msgid "{@code{cgit-configuration} parameter} boolean enable-http-clone?"
  49120. msgstr ""
  49121. #. type: deftypevr
  49122. #: guix-git/doc/guix.texi:32877
  49123. msgid "If set to @samp{#t}, cgit will act as an dumb HTTP endpoint for Git clones."
  49124. msgstr ""
  49125. #. type: deftypevr
  49126. #: guix-git/doc/guix.texi:32882
  49127. #, no-wrap
  49128. msgid "{@code{cgit-configuration} parameter} boolean enable-index-links?"
  49129. msgstr ""
  49130. #. type: deftypevr
  49131. #: guix-git/doc/guix.texi:32885
  49132. msgid "Flag which, when set to @samp{#t}, will make cgit generate extra links \"summary\", \"commit\", \"tree\" for each repo in the repository index."
  49133. msgstr ""
  49134. #. type: deftypevr
  49135. #: guix-git/doc/guix.texi:32890
  49136. #, no-wrap
  49137. msgid "{@code{cgit-configuration} parameter} boolean enable-index-owner?"
  49138. msgstr ""
  49139. #. type: deftypevr
  49140. #: guix-git/doc/guix.texi:32893
  49141. msgid "Flag which, when set to @samp{#t}, will make cgit display the owner of each repo in the repository index."
  49142. msgstr ""
  49143. #. type: deftypevr
  49144. #: guix-git/doc/guix.texi:32898
  49145. #, no-wrap
  49146. msgid "{@code{cgit-configuration} parameter} boolean enable-log-filecount?"
  49147. msgstr ""
  49148. #. type: deftypevr
  49149. #: guix-git/doc/guix.texi:32901
  49150. 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."
  49151. msgstr ""
  49152. #. type: deftypevr
  49153. #: guix-git/doc/guix.texi:32906
  49154. #, no-wrap
  49155. msgid "{@code{cgit-configuration} parameter} boolean enable-log-linecount?"
  49156. msgstr ""
  49157. #. type: deftypevr
  49158. #: guix-git/doc/guix.texi:32909
  49159. 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."
  49160. msgstr ""
  49161. #. type: deftypevr
  49162. #: guix-git/doc/guix.texi:32914
  49163. #, no-wrap
  49164. msgid "{@code{cgit-configuration} parameter} boolean enable-remote-branches?"
  49165. msgstr ""
  49166. #. type: deftypevr
  49167. #: guix-git/doc/guix.texi:32917 guix-git/doc/guix.texi:33441
  49168. msgid "Flag which, when set to @code{#t}, will make cgit display remote branches in the summary and refs views."
  49169. msgstr ""
  49170. #. type: deftypevr
  49171. #: guix-git/doc/guix.texi:32922
  49172. #, no-wrap
  49173. msgid "{@code{cgit-configuration} parameter} boolean enable-subject-links?"
  49174. msgstr ""
  49175. #. type: deftypevr
  49176. #: guix-git/doc/guix.texi:32926
  49177. 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."
  49178. msgstr ""
  49179. #. type: deftypevr
  49180. #: guix-git/doc/guix.texi:32931
  49181. #, no-wrap
  49182. msgid "{@code{cgit-configuration} parameter} boolean enable-html-serving?"
  49183. msgstr ""
  49184. #. type: deftypevr
  49185. #: guix-git/doc/guix.texi:32935
  49186. 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."
  49187. msgstr ""
  49188. #. type: deftypevr
  49189. #: guix-git/doc/guix.texi:32940
  49190. #, no-wrap
  49191. msgid "{@code{cgit-configuration} parameter} boolean enable-tree-linenumbers?"
  49192. msgstr ""
  49193. #. type: deftypevr
  49194. #: guix-git/doc/guix.texi:32943
  49195. msgid "Flag which, when set to @samp{#t}, will make cgit generate linenumber links for plaintext blobs printed in the tree view."
  49196. msgstr ""
  49197. #. type: deftypevr
  49198. #: guix-git/doc/guix.texi:32948
  49199. #, no-wrap
  49200. msgid "{@code{cgit-configuration} parameter} boolean enable-git-config?"
  49201. msgstr ""
  49202. #. type: deftypevr
  49203. #: guix-git/doc/guix.texi:32951
  49204. msgid "Flag which, when set to @samp{#f}, will allow cgit to use Git config to set any repo specific settings."
  49205. msgstr ""
  49206. #. type: deftypevr
  49207. #: guix-git/doc/guix.texi:32956
  49208. #, no-wrap
  49209. msgid "{@code{cgit-configuration} parameter} file-object favicon"
  49210. msgstr ""
  49211. #. type: deftypevr
  49212. #: guix-git/doc/guix.texi:32958
  49213. msgid "URL used as link to a shortcut icon for cgit."
  49214. msgstr ""
  49215. #. type: deftypevr
  49216. #: guix-git/doc/guix.texi:32960
  49217. msgid "Defaults to @samp{\"/favicon.ico\"}."
  49218. msgstr ""
  49219. #. type: deftypevr
  49220. #: guix-git/doc/guix.texi:32963
  49221. #, no-wrap
  49222. msgid "{@code{cgit-configuration} parameter} string footer"
  49223. msgstr ""
  49224. #. type: deftypevr
  49225. #: guix-git/doc/guix.texi:32967
  49226. 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)."
  49227. msgstr ""
  49228. #. type: deftypevr
  49229. #: guix-git/doc/guix.texi:32972
  49230. #, no-wrap
  49231. msgid "{@code{cgit-configuration} parameter} string head-include"
  49232. msgstr ""
  49233. #. type: deftypevr
  49234. #: guix-git/doc/guix.texi:32975
  49235. msgid "The content of the file specified with this option will be included verbatim in the HTML HEAD section on all pages."
  49236. msgstr ""
  49237. #. type: deftypevr
  49238. #: guix-git/doc/guix.texi:32980
  49239. #, no-wrap
  49240. msgid "{@code{cgit-configuration} parameter} string header"
  49241. msgstr ""
  49242. #. type: deftypevr
  49243. #: guix-git/doc/guix.texi:32983
  49244. msgid "The content of the file specified with this option will be included verbatim at the top of all pages."
  49245. msgstr ""
  49246. #. type: deftypevr
  49247. #: guix-git/doc/guix.texi:32988
  49248. #, no-wrap
  49249. msgid "{@code{cgit-configuration} parameter} file-object include"
  49250. msgstr ""
  49251. #. type: deftypevr
  49252. #: guix-git/doc/guix.texi:32991
  49253. msgid "Name of a configfile to include before the rest of the current config- file is parsed."
  49254. msgstr ""
  49255. #. type: deftypevr
  49256. #: guix-git/doc/guix.texi:32996
  49257. #, no-wrap
  49258. msgid "{@code{cgit-configuration} parameter} string index-header"
  49259. msgstr ""
  49260. #. type: deftypevr
  49261. #: guix-git/doc/guix.texi:32999
  49262. msgid "The content of the file specified with this option will be included verbatim above the repository index."
  49263. msgstr ""
  49264. #. type: deftypevr
  49265. #: guix-git/doc/guix.texi:33004
  49266. #, no-wrap
  49267. msgid "{@code{cgit-configuration} parameter} string index-info"
  49268. msgstr ""
  49269. #. type: deftypevr
  49270. #: guix-git/doc/guix.texi:33007
  49271. msgid "The content of the file specified with this option will be included verbatim below the heading on the repository index page."
  49272. msgstr ""
  49273. #. type: deftypevr
  49274. #: guix-git/doc/guix.texi:33012
  49275. #, no-wrap
  49276. msgid "{@code{cgit-configuration} parameter} boolean local-time?"
  49277. msgstr ""
  49278. #. type: deftypevr
  49279. #: guix-git/doc/guix.texi:33015
  49280. msgid "Flag which, if set to @samp{#t}, makes cgit print commit and tag times in the servers timezone."
  49281. msgstr ""
  49282. #. type: deftypevr
  49283. #: guix-git/doc/guix.texi:33020
  49284. #, no-wrap
  49285. msgid "{@code{cgit-configuration} parameter} file-object logo"
  49286. msgstr ""
  49287. #. type: deftypevr
  49288. #: guix-git/doc/guix.texi:33023
  49289. msgid "URL which specifies the source of an image which will be used as a logo on all cgit pages."
  49290. msgstr ""
  49291. #. type: deftypevr
  49292. #: guix-git/doc/guix.texi:33025
  49293. msgid "Defaults to @samp{\"/share/cgit/cgit.png\"}."
  49294. msgstr ""
  49295. #. type: deftypevr
  49296. #: guix-git/doc/guix.texi:33028
  49297. #, no-wrap
  49298. msgid "{@code{cgit-configuration} parameter} string logo-link"
  49299. msgstr ""
  49300. #. type: deftypevr
  49301. #: guix-git/doc/guix.texi:33030 guix-git/doc/guix.texi:33487
  49302. msgid "URL loaded when clicking on the cgit logo image."
  49303. msgstr ""
  49304. #. type: deftypevr
  49305. #: guix-git/doc/guix.texi:33035
  49306. #, no-wrap
  49307. msgid "{@code{cgit-configuration} parameter} file-object owner-filter"
  49308. msgstr ""
  49309. #. type: deftypevr
  49310. #: guix-git/doc/guix.texi:33038
  49311. msgid "Command which will be invoked to format the Owner column of the main page."
  49312. msgstr ""
  49313. #. type: deftypevr
  49314. #: guix-git/doc/guix.texi:33043
  49315. #, no-wrap
  49316. msgid "{@code{cgit-configuration} parameter} integer max-atom-items"
  49317. msgstr ""
  49318. #. type: deftypevr
  49319. #: guix-git/doc/guix.texi:33045
  49320. msgid "Number of items to display in atom feeds view."
  49321. msgstr ""
  49322. #. type: deftypevr
  49323. #: guix-git/doc/guix.texi:33050
  49324. #, no-wrap
  49325. msgid "{@code{cgit-configuration} parameter} integer max-commit-count"
  49326. msgstr ""
  49327. #. type: deftypevr
  49328. #: guix-git/doc/guix.texi:33052
  49329. msgid "Number of entries to list per page in \"log\" view."
  49330. msgstr ""
  49331. #. type: deftypevr
  49332. #: guix-git/doc/guix.texi:33057
  49333. #, no-wrap
  49334. msgid "{@code{cgit-configuration} parameter} integer max-message-length"
  49335. msgstr ""
  49336. #. type: deftypevr
  49337. #: guix-git/doc/guix.texi:33059
  49338. msgid "Number of commit message characters to display in \"log\" view."
  49339. msgstr ""
  49340. #. type: deftypevr
  49341. #: guix-git/doc/guix.texi:33061 guix-git/doc/guix.texi:33077
  49342. msgid "Defaults to @samp{80}."
  49343. msgstr ""
  49344. #. type: deftypevr
  49345. #: guix-git/doc/guix.texi:33064
  49346. #, no-wrap
  49347. msgid "{@code{cgit-configuration} parameter} integer max-repo-count"
  49348. msgstr ""
  49349. #. type: deftypevr
  49350. #: guix-git/doc/guix.texi:33067
  49351. msgid "Specifies the number of entries to list per page on the repository index page."
  49352. msgstr ""
  49353. #. type: deftypevr
  49354. #: guix-git/doc/guix.texi:33072
  49355. #, no-wrap
  49356. msgid "{@code{cgit-configuration} parameter} integer max-repodesc-length"
  49357. msgstr ""
  49358. #. type: deftypevr
  49359. #: guix-git/doc/guix.texi:33075
  49360. msgid "Specifies the maximum number of repo description characters to display on the repository index page."
  49361. msgstr ""
  49362. #. type: deftypevr
  49363. #: guix-git/doc/guix.texi:33080
  49364. #, no-wrap
  49365. msgid "{@code{cgit-configuration} parameter} integer max-blob-size"
  49366. msgstr ""
  49367. #. type: deftypevr
  49368. #: guix-git/doc/guix.texi:33082
  49369. msgid "Specifies the maximum size of a blob to display HTML for in KBytes."
  49370. msgstr ""
  49371. #. type: deftypevr
  49372. #: guix-git/doc/guix.texi:33087
  49373. #, no-wrap
  49374. msgid "{@code{cgit-configuration} parameter} string max-stats"
  49375. msgstr ""
  49376. #. type: deftypevr
  49377. #: guix-git/doc/guix.texi:33090
  49378. msgid "Maximum statistics period. Valid values are @samp{week},@samp{month}, @samp{quarter} and @samp{year}."
  49379. msgstr ""
  49380. #. type: deftypevr
  49381. #: guix-git/doc/guix.texi:33095
  49382. #, no-wrap
  49383. msgid "{@code{cgit-configuration} parameter} mimetype-alist mimetype"
  49384. msgstr ""
  49385. #. type: deftypevr
  49386. #: guix-git/doc/guix.texi:33097
  49387. msgid "Mimetype for the specified filename extension."
  49388. msgstr ""
  49389. #. type: deftypevr
  49390. #: guix-git/doc/guix.texi:33101
  49391. 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\"))}."
  49392. msgstr ""
  49393. #. type: deftypevr
  49394. #: guix-git/doc/guix.texi:33104
  49395. #, no-wrap
  49396. msgid "{@code{cgit-configuration} parameter} file-object mimetype-file"
  49397. msgstr ""
  49398. #. type: deftypevr
  49399. #: guix-git/doc/guix.texi:33106
  49400. msgid "Specifies the file to use for automatic mimetype lookup."
  49401. msgstr ""
  49402. #. type: deftypevr
  49403. #: guix-git/doc/guix.texi:33111
  49404. #, no-wrap
  49405. msgid "{@code{cgit-configuration} parameter} string module-link"
  49406. msgstr ""
  49407. #. type: deftypevr
  49408. #: guix-git/doc/guix.texi:33114
  49409. msgid "Text which will be used as the formatstring for a hyperlink when a submodule is printed in a directory listing."
  49410. msgstr ""
  49411. #. type: deftypevr
  49412. #: guix-git/doc/guix.texi:33119
  49413. #, no-wrap
  49414. msgid "{@code{cgit-configuration} parameter} boolean nocache?"
  49415. msgstr ""
  49416. #. type: deftypevr
  49417. #: guix-git/doc/guix.texi:33121
  49418. msgid "If set to the value @samp{#t} caching will be disabled."
  49419. msgstr ""
  49420. #. type: deftypevr
  49421. #: guix-git/doc/guix.texi:33126
  49422. #, no-wrap
  49423. msgid "{@code{cgit-configuration} parameter} boolean noplainemail?"
  49424. msgstr ""
  49425. #. type: deftypevr
  49426. #: guix-git/doc/guix.texi:33129
  49427. msgid "If set to @samp{#t} showing full author email addresses will be disabled."
  49428. msgstr ""
  49429. #. type: deftypevr
  49430. #: guix-git/doc/guix.texi:33134
  49431. #, no-wrap
  49432. msgid "{@code{cgit-configuration} parameter} boolean noheader?"
  49433. msgstr ""
  49434. #. type: deftypevr
  49435. #: guix-git/doc/guix.texi:33137
  49436. msgid "Flag which, when set to @samp{#t}, will make cgit omit the standard header on all pages."
  49437. msgstr ""
  49438. #. type: deftypevr
  49439. #: guix-git/doc/guix.texi:33142
  49440. #, no-wrap
  49441. msgid "{@code{cgit-configuration} parameter} project-list project-list"
  49442. msgstr ""
  49443. #. type: deftypevr
  49444. #: guix-git/doc/guix.texi:33146
  49445. 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."
  49446. msgstr ""
  49447. #. type: deftypevr
  49448. #: guix-git/doc/guix.texi:33151
  49449. #, no-wrap
  49450. msgid "{@code{cgit-configuration} parameter} file-object readme"
  49451. msgstr ""
  49452. #. type: deftypevr
  49453. #: guix-git/doc/guix.texi:33153
  49454. msgid "Text which will be used as default value for @code{cgit-repo-readme}."
  49455. msgstr ""
  49456. #. type: deftypevr
  49457. #: guix-git/doc/guix.texi:33158
  49458. #, no-wrap
  49459. msgid "{@code{cgit-configuration} parameter} boolean remove-suffix?"
  49460. msgstr ""
  49461. #. type: deftypevr
  49462. #: guix-git/doc/guix.texi:33162
  49463. 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."
  49464. msgstr ""
  49465. #. type: deftypevr
  49466. #: guix-git/doc/guix.texi:33167
  49467. #, no-wrap
  49468. msgid "{@code{cgit-configuration} parameter} integer renamelimit"
  49469. msgstr ""
  49470. #. type: deftypevr
  49471. #: guix-git/doc/guix.texi:33169
  49472. msgid "Maximum number of files to consider when detecting renames."
  49473. msgstr ""
  49474. #. type: deftypevr
  49475. #: guix-git/doc/guix.texi:33174
  49476. #, no-wrap
  49477. msgid "{@code{cgit-configuration} parameter} string repository-sort"
  49478. msgstr ""
  49479. #. type: deftypevr
  49480. #: guix-git/doc/guix.texi:33176
  49481. msgid "The way in which repositories in each section are sorted."
  49482. msgstr ""
  49483. #. type: deftypevr
  49484. #: guix-git/doc/guix.texi:33181
  49485. #, no-wrap
  49486. msgid "{@code{cgit-configuration} parameter} robots-list robots"
  49487. msgstr ""
  49488. #. type: deftypevr
  49489. #: guix-git/doc/guix.texi:33183
  49490. msgid "Text used as content for the @code{robots} meta-tag."
  49491. msgstr ""
  49492. #. type: deftypevr
  49493. #: guix-git/doc/guix.texi:33185
  49494. msgid "Defaults to @samp{(\"noindex\" \"nofollow\")}."
  49495. msgstr ""
  49496. #. type: deftypevr
  49497. #: guix-git/doc/guix.texi:33188
  49498. #, no-wrap
  49499. msgid "{@code{cgit-configuration} parameter} string root-desc"
  49500. msgstr ""
  49501. #. type: deftypevr
  49502. #: guix-git/doc/guix.texi:33190
  49503. msgid "Text printed below the heading on the repository index page."
  49504. msgstr ""
  49505. #. type: deftypevr
  49506. #: guix-git/doc/guix.texi:33192
  49507. msgid "Defaults to @samp{\"a fast webinterface for the git dscm\"}."
  49508. msgstr ""
  49509. #. type: deftypevr
  49510. #: guix-git/doc/guix.texi:33195
  49511. #, no-wrap
  49512. msgid "{@code{cgit-configuration} parameter} string root-readme"
  49513. msgstr ""
  49514. #. type: deftypevr
  49515. #: guix-git/doc/guix.texi:33198
  49516. msgid "The content of the file specified with this option will be included verbatim below the ``about'' link on the repository index page."
  49517. msgstr ""
  49518. #. type: deftypevr
  49519. #: guix-git/doc/guix.texi:33203
  49520. #, no-wrap
  49521. msgid "{@code{cgit-configuration} parameter} string root-title"
  49522. msgstr ""
  49523. #. type: deftypevr
  49524. #: guix-git/doc/guix.texi:33205
  49525. msgid "Text printed as heading on the repository index page."
  49526. msgstr ""
  49527. #. type: deftypevr
  49528. #: guix-git/doc/guix.texi:33210
  49529. #, no-wrap
  49530. msgid "{@code{cgit-configuration} parameter} boolean scan-hidden-path"
  49531. msgstr ""
  49532. #. type: deftypevr
  49533. #: guix-git/doc/guix.texi:33216
  49534. 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."
  49535. msgstr ""
  49536. #. type: deftypevr
  49537. #: guix-git/doc/guix.texi:33221
  49538. #, no-wrap
  49539. msgid "{@code{cgit-configuration} parameter} list snapshots"
  49540. msgstr ""
  49541. #. type: deftypevr
  49542. #: guix-git/doc/guix.texi:33224
  49543. msgid "Text which specifies the default set of snapshot formats that cgit generates links for."
  49544. msgstr ""
  49545. #. type: deftypevr
  49546. #: guix-git/doc/guix.texi:33229
  49547. #, no-wrap
  49548. msgid "{@code{cgit-configuration} parameter} repository-directory repository-directory"
  49549. msgstr ""
  49550. #. type: deftypevr
  49551. #: guix-git/doc/guix.texi:33232
  49552. msgid "Name of the directory to scan for repositories (represents @code{scan-path})."
  49553. msgstr ""
  49554. #. type: deftypevr
  49555. #: guix-git/doc/guix.texi:33234
  49556. msgid "Defaults to @samp{\"/srv/git\"}."
  49557. msgstr ""
  49558. #. type: deftypevr
  49559. #: guix-git/doc/guix.texi:33237
  49560. #, no-wrap
  49561. msgid "{@code{cgit-configuration} parameter} string section"
  49562. msgstr ""
  49563. #. type: deftypevr
  49564. #: guix-git/doc/guix.texi:33240 guix-git/doc/guix.texi:33556
  49565. msgid "The name of the current repository section - all repositories defined after this option will inherit the current section name."
  49566. msgstr ""
  49567. #. type: deftypevr
  49568. #: guix-git/doc/guix.texi:33245
  49569. #, no-wrap
  49570. msgid "{@code{cgit-configuration} parameter} string section-sort"
  49571. msgstr ""
  49572. #. type: deftypevr
  49573. #: guix-git/doc/guix.texi:33248
  49574. msgid "Flag which, when set to @samp{1}, will sort the sections on the repository listing by name."
  49575. msgstr ""
  49576. #. type: deftypevr
  49577. #: guix-git/doc/guix.texi:33253
  49578. #, no-wrap
  49579. msgid "{@code{cgit-configuration} parameter} integer section-from-path"
  49580. msgstr ""
  49581. #. type: deftypevr
  49582. #: guix-git/doc/guix.texi:33256
  49583. 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."
  49584. msgstr ""
  49585. #. type: deftypevr
  49586. #: guix-git/doc/guix.texi:33261
  49587. #, no-wrap
  49588. msgid "{@code{cgit-configuration} parameter} boolean side-by-side-diffs?"
  49589. msgstr ""
  49590. #. type: deftypevr
  49591. #: guix-git/doc/guix.texi:33264
  49592. msgid "If set to @samp{#t} shows side-by-side diffs instead of unidiffs per default."
  49593. msgstr ""
  49594. #. type: deftypevr
  49595. #: guix-git/doc/guix.texi:33269
  49596. #, no-wrap
  49597. msgid "{@code{cgit-configuration} parameter} file-object source-filter"
  49598. msgstr ""
  49599. #. type: deftypevr
  49600. #: guix-git/doc/guix.texi:33272
  49601. msgid "Specifies a command which will be invoked to format plaintext blobs in the tree view."
  49602. msgstr ""
  49603. #. type: deftypevr
  49604. #: guix-git/doc/guix.texi:33277
  49605. #, no-wrap
  49606. msgid "{@code{cgit-configuration} parameter} integer summary-branches"
  49607. msgstr ""
  49608. #. type: deftypevr
  49609. #: guix-git/doc/guix.texi:33280
  49610. msgid "Specifies the number of branches to display in the repository ``summary'' view."
  49611. msgstr ""
  49612. #. type: deftypevr
  49613. #: guix-git/doc/guix.texi:33285
  49614. #, no-wrap
  49615. msgid "{@code{cgit-configuration} parameter} integer summary-log"
  49616. msgstr ""
  49617. #. type: deftypevr
  49618. #: guix-git/doc/guix.texi:33288
  49619. msgid "Specifies the number of log entries to display in the repository ``summary'' view."
  49620. msgstr ""
  49621. #. type: deftypevr
  49622. #: guix-git/doc/guix.texi:33293
  49623. #, no-wrap
  49624. msgid "{@code{cgit-configuration} parameter} integer summary-tags"
  49625. msgstr ""
  49626. #. type: deftypevr
  49627. #: guix-git/doc/guix.texi:33296
  49628. msgid "Specifies the number of tags to display in the repository ``summary'' view."
  49629. msgstr ""
  49630. #. type: deftypevr
  49631. #: guix-git/doc/guix.texi:33301
  49632. #, no-wrap
  49633. msgid "{@code{cgit-configuration} parameter} string strict-export"
  49634. msgstr ""
  49635. #. type: deftypevr
  49636. #: guix-git/doc/guix.texi:33304
  49637. msgid "Filename which, if specified, needs to be present within the repository for cgit to allow access to that repository."
  49638. msgstr ""
  49639. #. type: deftypevr
  49640. #: guix-git/doc/guix.texi:33309
  49641. #, no-wrap
  49642. msgid "{@code{cgit-configuration} parameter} string virtual-root"
  49643. msgstr ""
  49644. #. type: deftypevr
  49645. #: guix-git/doc/guix.texi:33311
  49646. msgid "URL which, if specified, will be used as root for all cgit links."
  49647. msgstr ""
  49648. #. type: deftypevr
  49649. #: guix-git/doc/guix.texi:33313
  49650. msgid "Defaults to @samp{\"/\"}."
  49651. msgstr ""
  49652. #. type: deftypevr
  49653. #: guix-git/doc/guix.texi:33316
  49654. #, no-wrap
  49655. msgid "{@code{cgit-configuration} parameter} repository-cgit-configuration-list repositories"
  49656. msgstr ""
  49657. #. type: deftypevr
  49658. #: guix-git/doc/guix.texi:33318
  49659. msgid "A list of @dfn{cgit-repo} records to use with config."
  49660. msgstr ""
  49661. #. type: deftypevr
  49662. #: guix-git/doc/guix.texi:33322
  49663. msgid "Available @code{repository-cgit-configuration} fields are:"
  49664. msgstr ""
  49665. #. type: deftypevr
  49666. #: guix-git/doc/guix.texi:33323
  49667. #, no-wrap
  49668. msgid "{@code{repository-cgit-configuration} parameter} repo-list snapshots"
  49669. msgstr ""
  49670. #. type: deftypevr
  49671. #: guix-git/doc/guix.texi:33326
  49672. msgid "A mask of snapshot formats for this repo that cgit generates links for, restricted by the global @code{snapshots} setting."
  49673. msgstr ""
  49674. #. type: deftypevr
  49675. #: guix-git/doc/guix.texi:33331
  49676. #, no-wrap
  49677. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object source-filter"
  49678. msgstr ""
  49679. #. type: deftypevr
  49680. #: guix-git/doc/guix.texi:33333
  49681. msgid "Override the default @code{source-filter}."
  49682. msgstr ""
  49683. #. type: deftypevr
  49684. #: guix-git/doc/guix.texi:33338
  49685. #, no-wrap
  49686. msgid "{@code{repository-cgit-configuration} parameter} repo-string url"
  49687. msgstr ""
  49688. #. type: deftypevr
  49689. #: guix-git/doc/guix.texi:33340
  49690. msgid "The relative URL used to access the repository."
  49691. msgstr ""
  49692. #. type: deftypevr
  49693. #: guix-git/doc/guix.texi:33345
  49694. #, no-wrap
  49695. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object about-filter"
  49696. msgstr ""
  49697. #. type: deftypevr
  49698. #: guix-git/doc/guix.texi:33347
  49699. msgid "Override the default @code{about-filter}."
  49700. msgstr ""
  49701. #. type: deftypevr
  49702. #: guix-git/doc/guix.texi:33352
  49703. #, no-wrap
  49704. msgid "{@code{repository-cgit-configuration} parameter} repo-string branch-sort"
  49705. msgstr ""
  49706. #. type: deftypevr
  49707. #: guix-git/doc/guix.texi:33355
  49708. 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."
  49709. msgstr ""
  49710. #. type: deftypevr
  49711. #: guix-git/doc/guix.texi:33360
  49712. #, no-wrap
  49713. msgid "{@code{repository-cgit-configuration} parameter} repo-list clone-url"
  49714. msgstr ""
  49715. #. type: deftypevr
  49716. #: guix-git/doc/guix.texi:33362
  49717. msgid "A list of URLs which can be used to clone repo."
  49718. msgstr ""
  49719. #. type: deftypevr
  49720. #: guix-git/doc/guix.texi:33367
  49721. #, no-wrap
  49722. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object commit-filter"
  49723. msgstr ""
  49724. #. type: deftypevr
  49725. #: guix-git/doc/guix.texi:33369
  49726. msgid "Override the default @code{commit-filter}."
  49727. msgstr ""
  49728. #. type: deftypevr
  49729. #: guix-git/doc/guix.texi:33374
  49730. #, no-wrap
  49731. msgid "{@code{repository-cgit-configuration} parameter} repo-string commit-sort"
  49732. msgstr ""
  49733. #. type: deftypevr
  49734. #: guix-git/doc/guix.texi:33383
  49735. #, no-wrap
  49736. msgid "{@code{repository-cgit-configuration} parameter} repo-string defbranch"
  49737. msgstr ""
  49738. #. type: deftypevr
  49739. #: guix-git/doc/guix.texi:33388
  49740. 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."
  49741. msgstr ""
  49742. #. type: deftypevr
  49743. #: guix-git/doc/guix.texi:33393
  49744. #, no-wrap
  49745. msgid "{@code{repository-cgit-configuration} parameter} repo-string desc"
  49746. msgstr ""
  49747. #. type: deftypevr
  49748. #: guix-git/doc/guix.texi:33395
  49749. msgid "The value to show as repository description."
  49750. msgstr ""
  49751. #. type: deftypevr
  49752. #: guix-git/doc/guix.texi:33400
  49753. #, no-wrap
  49754. msgid "{@code{repository-cgit-configuration} parameter} repo-string homepage"
  49755. msgstr ""
  49756. #. type: deftypevr
  49757. #: guix-git/doc/guix.texi:33402
  49758. msgid "The value to show as repository homepage."
  49759. msgstr ""
  49760. #. type: deftypevr
  49761. #: guix-git/doc/guix.texi:33407
  49762. #, no-wrap
  49763. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object email-filter"
  49764. msgstr ""
  49765. #. type: deftypevr
  49766. #: guix-git/doc/guix.texi:33409
  49767. msgid "Override the default @code{email-filter}."
  49768. msgstr ""
  49769. #. type: deftypevr
  49770. #: guix-git/doc/guix.texi:33414
  49771. #, no-wrap
  49772. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-commit-graph?"
  49773. msgstr ""
  49774. #. type: deftypevr
  49775. #: guix-git/doc/guix.texi:33417
  49776. msgid "A flag which can be used to disable the global setting @code{enable-commit-graph?}."
  49777. msgstr ""
  49778. #. type: deftypevr
  49779. #: guix-git/doc/guix.texi:33422
  49780. #, no-wrap
  49781. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-log-filecount?"
  49782. msgstr ""
  49783. #. type: deftypevr
  49784. #: guix-git/doc/guix.texi:33425
  49785. msgid "A flag which can be used to disable the global setting @code{enable-log-filecount?}."
  49786. msgstr ""
  49787. #. type: deftypevr
  49788. #: guix-git/doc/guix.texi:33430
  49789. #, no-wrap
  49790. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-log-linecount?"
  49791. msgstr ""
  49792. #. type: deftypevr
  49793. #: guix-git/doc/guix.texi:33433
  49794. msgid "A flag which can be used to disable the global setting @code{enable-log-linecount?}."
  49795. msgstr ""
  49796. #. type: deftypevr
  49797. #: guix-git/doc/guix.texi:33438
  49798. #, no-wrap
  49799. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-remote-branches?"
  49800. msgstr ""
  49801. #. type: deftypevr
  49802. #: guix-git/doc/guix.texi:33446
  49803. #, no-wrap
  49804. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-subject-links?"
  49805. msgstr ""
  49806. #. type: deftypevr
  49807. #: guix-git/doc/guix.texi:33449
  49808. msgid "A flag which can be used to override the global setting @code{enable-subject-links?}."
  49809. msgstr ""
  49810. #. type: deftypevr
  49811. #: guix-git/doc/guix.texi:33454
  49812. #, no-wrap
  49813. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-html-serving?"
  49814. msgstr ""
  49815. #. type: deftypevr
  49816. #: guix-git/doc/guix.texi:33457
  49817. msgid "A flag which can be used to override the global setting @code{enable-html-serving?}."
  49818. msgstr ""
  49819. #. type: deftypevr
  49820. #: guix-git/doc/guix.texi:33462
  49821. #, no-wrap
  49822. msgid "{@code{repository-cgit-configuration} parameter} repo-boolean hide?"
  49823. msgstr ""
  49824. #. type: deftypevr
  49825. #: guix-git/doc/guix.texi:33465
  49826. msgid "Flag which, when set to @code{#t}, hides the repository from the repository index."
  49827. msgstr ""
  49828. #. type: deftypevr
  49829. #: guix-git/doc/guix.texi:33470
  49830. #, no-wrap
  49831. msgid "{@code{repository-cgit-configuration} parameter} repo-boolean ignore?"
  49832. msgstr ""
  49833. #. type: deftypevr
  49834. #: guix-git/doc/guix.texi:33472
  49835. msgid "Flag which, when set to @samp{#t}, ignores the repository."
  49836. msgstr ""
  49837. #. type: deftypevr
  49838. #: guix-git/doc/guix.texi:33477
  49839. #, no-wrap
  49840. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object logo"
  49841. msgstr ""
  49842. #. type: deftypevr
  49843. #: guix-git/doc/guix.texi:33480
  49844. msgid "URL which specifies the source of an image which will be used as a logo on this repo’s pages."
  49845. msgstr ""
  49846. #. type: deftypevr
  49847. #: guix-git/doc/guix.texi:33485
  49848. #, no-wrap
  49849. msgid "{@code{repository-cgit-configuration} parameter} repo-string logo-link"
  49850. msgstr ""
  49851. #. type: deftypevr
  49852. #: guix-git/doc/guix.texi:33492
  49853. #, no-wrap
  49854. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object owner-filter"
  49855. msgstr ""
  49856. #. type: deftypevr
  49857. #: guix-git/doc/guix.texi:33494
  49858. msgid "Override the default @code{owner-filter}."
  49859. msgstr ""
  49860. #. type: deftypevr
  49861. #: guix-git/doc/guix.texi:33499
  49862. #, no-wrap
  49863. msgid "{@code{repository-cgit-configuration} parameter} repo-string module-link"
  49864. msgstr ""
  49865. #. type: deftypevr
  49866. #: guix-git/doc/guix.texi:33503
  49867. 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."
  49868. msgstr ""
  49869. #. type: deftypevr
  49870. #: guix-git/doc/guix.texi:33508
  49871. #, no-wrap
  49872. msgid "{@code{repository-cgit-configuration} parameter} module-link-path module-link-path"
  49873. msgstr ""
  49874. #. type: deftypevr
  49875. #: guix-git/doc/guix.texi:33512
  49876. 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."
  49877. msgstr ""
  49878. #. type: deftypevr
  49879. #: guix-git/doc/guix.texi:33517
  49880. #, no-wrap
  49881. msgid "{@code{repository-cgit-configuration} parameter} repo-string max-stats"
  49882. msgstr ""
  49883. #. type: deftypevr
  49884. #: guix-git/doc/guix.texi:33519
  49885. msgid "Override the default maximum statistics period."
  49886. msgstr ""
  49887. #. type: deftypevr
  49888. #: guix-git/doc/guix.texi:33524
  49889. #, no-wrap
  49890. msgid "{@code{repository-cgit-configuration} parameter} repo-string name"
  49891. msgstr ""
  49892. #. type: deftypevr
  49893. #: guix-git/doc/guix.texi:33526
  49894. msgid "The value to show as repository name."
  49895. msgstr ""
  49896. #. type: deftypevr
  49897. #: guix-git/doc/guix.texi:33531
  49898. #, no-wrap
  49899. msgid "{@code{repository-cgit-configuration} parameter} repo-string owner"
  49900. msgstr ""
  49901. #. type: deftypevr
  49902. #: guix-git/doc/guix.texi:33533
  49903. msgid "A value used to identify the owner of the repository."
  49904. msgstr ""
  49905. #. type: deftypevr
  49906. #: guix-git/doc/guix.texi:33538
  49907. #, no-wrap
  49908. msgid "{@code{repository-cgit-configuration} parameter} repo-string path"
  49909. msgstr ""
  49910. #. type: deftypevr
  49911. #: guix-git/doc/guix.texi:33540
  49912. msgid "An absolute path to the repository directory."
  49913. msgstr ""
  49914. #. type: deftypevr
  49915. #: guix-git/doc/guix.texi:33545
  49916. #, no-wrap
  49917. msgid "{@code{repository-cgit-configuration} parameter} repo-string readme"
  49918. msgstr ""
  49919. #. type: deftypevr
  49920. #: guix-git/doc/guix.texi:33548
  49921. msgid "A path (relative to repo) which specifies a file to include verbatim as the ``About'' page for this repo."
  49922. msgstr ""
  49923. #. type: deftypevr
  49924. #: guix-git/doc/guix.texi:33553
  49925. #, no-wrap
  49926. msgid "{@code{repository-cgit-configuration} parameter} repo-string section"
  49927. msgstr ""
  49928. #. type: deftypevr
  49929. #: guix-git/doc/guix.texi:33561
  49930. #, no-wrap
  49931. msgid "{@code{repository-cgit-configuration} parameter} repo-list extra-options"
  49932. msgstr ""
  49933. #. type: deftypevr
  49934. #: guix-git/doc/guix.texi:33563 guix-git/doc/guix.texi:33572
  49935. msgid "Extra options will be appended to cgitrc file."
  49936. msgstr ""
  49937. #. type: deftypevr
  49938. #: guix-git/doc/guix.texi:33570
  49939. #, no-wrap
  49940. msgid "{@code{cgit-configuration} parameter} list extra-options"
  49941. msgstr ""
  49942. #. type: Plain text
  49943. #: guix-git/doc/guix.texi:33584
  49944. 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."
  49945. msgstr ""
  49946. #. type: Plain text
  49947. #: guix-git/doc/guix.texi:33586
  49948. msgid "Available @code{opaque-cgit-configuration} fields are:"
  49949. msgstr ""
  49950. #. type: deftypevr
  49951. #: guix-git/doc/guix.texi:33587
  49952. #, no-wrap
  49953. msgid "{@code{opaque-cgit-configuration} parameter} package cgit"
  49954. msgstr ""
  49955. #. type: deftypevr
  49956. #: guix-git/doc/guix.texi:33589
  49957. msgid "The cgit package."
  49958. msgstr ""
  49959. #. type: deftypevr
  49960. #: guix-git/doc/guix.texi:33591
  49961. #, no-wrap
  49962. msgid "{@code{opaque-cgit-configuration} parameter} string string"
  49963. msgstr ""
  49964. #. type: deftypevr
  49965. #: guix-git/doc/guix.texi:33593
  49966. msgid "The contents of the @code{cgitrc}, as a string."
  49967. msgstr ""
  49968. #. type: Plain text
  49969. #: guix-git/doc/guix.texi:33597
  49970. msgid "For example, if your @code{cgitrc} is just the empty string, you could instantiate a cgit service like this:"
  49971. msgstr ""
  49972. #. type: lisp
  49973. #: guix-git/doc/guix.texi:33602
  49974. #, no-wrap
  49975. msgid ""
  49976. "(service cgit-service-type\n"
  49977. " (opaque-cgit-configuration\n"
  49978. " (cgitrc \"\")))\n"
  49979. msgstr ""
  49980. #. type: subsubheading
  49981. #: guix-git/doc/guix.texi:33604
  49982. #, no-wrap
  49983. msgid "Gitolite Service"
  49984. msgstr ""
  49985. #. type: cindex
  49986. #: guix-git/doc/guix.texi:33606
  49987. #, no-wrap
  49988. msgid "Gitolite service"
  49989. msgstr ""
  49990. #. type: cindex
  49991. #: guix-git/doc/guix.texi:33607
  49992. #, no-wrap
  49993. msgid "Git, hosting"
  49994. msgstr ""
  49995. #. type: Plain text
  49996. #: guix-git/doc/guix.texi:33610
  49997. msgid "@uref{https://gitolite.com/gitolite/, Gitolite} is a tool for hosting Git repositories on a central server."
  49998. msgstr ""
  49999. #. type: Plain text
  50000. #: guix-git/doc/guix.texi:33613
  50001. msgid "Gitolite can handle multiple repositories and users, and supports flexible configuration of the permissions for the users on the repositories."
  50002. msgstr ""
  50003. #. type: Plain text
  50004. #: guix-git/doc/guix.texi:33616
  50005. msgid "The following example will configure Gitolite using the default @code{git} user, and the provided SSH public key."
  50006. msgstr ""
  50007. #. type: lisp
  50008. #: guix-git/doc/guix.texi:33623
  50009. #, no-wrap
  50010. msgid ""
  50011. "(service gitolite-service-type\n"
  50012. " (gitolite-configuration\n"
  50013. " (admin-pubkey (plain-file\n"
  50014. " \"yourname.pub\"\n"
  50015. " \"ssh-rsa AAAA... guix@@example.com\"))))\n"
  50016. msgstr ""
  50017. #. type: Plain text
  50018. #: guix-git/doc/guix.texi:33628
  50019. 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."
  50020. msgstr ""
  50021. #. type: example
  50022. #: guix-git/doc/guix.texi:33631
  50023. #, no-wrap
  50024. msgid "git clone git@@example.com:gitolite-admin\n"
  50025. msgstr ""
  50026. #. type: Plain text
  50027. #: guix-git/doc/guix.texi:33637
  50028. 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''."
  50029. msgstr ""
  50030. #. type: deftp
  50031. #: guix-git/doc/guix.texi:33638
  50032. #, no-wrap
  50033. msgid "{Data Type} gitolite-configuration"
  50034. msgstr ""
  50035. #. type: deftp
  50036. #: guix-git/doc/guix.texi:33640
  50037. msgid "Data type representing the configuration for @code{gitolite-service-type}."
  50038. msgstr ""
  50039. #. type: item
  50040. #: guix-git/doc/guix.texi:33642
  50041. #, no-wrap
  50042. msgid "@code{package} (default: @var{gitolite})"
  50043. msgstr ""
  50044. #. type: table
  50045. #: guix-git/doc/guix.texi:33644
  50046. msgid "Gitolite package to use."
  50047. msgstr ""
  50048. #. type: item
  50049. #: guix-git/doc/guix.texi:33645
  50050. #, no-wrap
  50051. msgid "@code{user} (default: @var{git})"
  50052. msgstr ""
  50053. #. type: table
  50054. #: guix-git/doc/guix.texi:33648
  50055. msgid "User to use for Gitolite. This will be user that you use when accessing Gitolite over SSH."
  50056. msgstr ""
  50057. #. type: item
  50058. #: guix-git/doc/guix.texi:33649
  50059. #, no-wrap
  50060. msgid "@code{group} (default: @var{git})"
  50061. msgstr ""
  50062. #. type: table
  50063. #: guix-git/doc/guix.texi:33651
  50064. msgid "Group to use for Gitolite."
  50065. msgstr ""
  50066. #. type: item
  50067. #: guix-git/doc/guix.texi:33652
  50068. #, no-wrap
  50069. msgid "@code{home-directory} (default: @var{\"/var/lib/gitolite\"})"
  50070. msgstr ""
  50071. #. type: table
  50072. #: guix-git/doc/guix.texi:33654
  50073. msgid "Directory in which to store the Gitolite configuration and repositories."
  50074. msgstr ""
  50075. #. type: item
  50076. #: guix-git/doc/guix.texi:33655
  50077. #, no-wrap
  50078. msgid "@code{rc-file} (default: @var{(gitolite-rc-file)})"
  50079. msgstr ""
  50080. #. type: table
  50081. #: guix-git/doc/guix.texi:33658
  50082. msgid "A ``file-like'' object (@pxref{G-Expressions, file-like objects}), representing the configuration for Gitolite."
  50083. msgstr ""
  50084. #. type: item
  50085. #: guix-git/doc/guix.texi:33659
  50086. #, no-wrap
  50087. msgid "@code{admin-pubkey} (default: @var{#f})"
  50088. msgstr ""
  50089. #. type: table
  50090. #: guix-git/doc/guix.texi:33663
  50091. 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."
  50092. msgstr ""
  50093. #. type: table
  50094. #: guix-git/doc/guix.texi:33665
  50095. msgid "To specify the SSH key as a string, use the @code{plain-file} function."
  50096. msgstr ""
  50097. #. type: lisp
  50098. #: guix-git/doc/guix.texi:33668
  50099. #, no-wrap
  50100. msgid "(plain-file \"yourname.pub\" \"ssh-rsa AAAA... guix@@example.com\")\n"
  50101. msgstr ""
  50102. #. type: deftp
  50103. #: guix-git/doc/guix.texi:33673
  50104. #, no-wrap
  50105. msgid "{Data Type} gitolite-rc-file"
  50106. msgstr ""
  50107. #. type: deftp
  50108. #: guix-git/doc/guix.texi:33675
  50109. msgid "Data type representing the Gitolite RC file."
  50110. msgstr ""
  50111. #. type: item
  50112. #: guix-git/doc/guix.texi:33677
  50113. #, no-wrap
  50114. msgid "@code{umask} (default: @code{#o0077})"
  50115. msgstr ""
  50116. #. type: table
  50117. #: guix-git/doc/guix.texi:33680
  50118. msgid "This controls the permissions Gitolite sets on the repositories and their contents."
  50119. msgstr ""
  50120. #. type: table
  50121. #: guix-git/doc/guix.texi:33684
  50122. 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."
  50123. msgstr ""
  50124. #. type: item
  50125. #: guix-git/doc/guix.texi:33685
  50126. #, fuzzy, no-wrap
  50127. msgid "@code{unsafe-pattern} (default: @code{#f})"
  50128. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  50129. #. type: table
  50130. #: guix-git/doc/guix.texi:33690
  50131. 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."
  50132. msgstr ""
  50133. #. type: table
  50134. #: guix-git/doc/guix.texi:33697
  50135. 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."
  50136. msgstr ""
  50137. #. type: item
  50138. #: guix-git/doc/guix.texi:33698
  50139. #, no-wrap
  50140. msgid "@code{git-config-keys} (default: @code{\"\"})"
  50141. msgstr ""
  50142. #. type: table
  50143. #: guix-git/doc/guix.texi:33701
  50144. msgid "Gitolite allows you to set git config values using the @samp{config} keyword. This setting allows control over the config keys to accept."
  50145. msgstr ""
  50146. #. type: item
  50147. #: guix-git/doc/guix.texi:33702
  50148. #, no-wrap
  50149. msgid "@code{roles} (default: @code{'((\"READERS\" . 1) (\"WRITERS\" . ))})"
  50150. msgstr ""
  50151. #. type: table
  50152. #: guix-git/doc/guix.texi:33704
  50153. msgid "Set the role names allowed to be used by users running the perms command."
  50154. msgstr ""
  50155. #. type: item
  50156. #: guix-git/doc/guix.texi:33705
  50157. #, no-wrap
  50158. msgid "@code{enable} (default: @code{'(\"help\" \"desc\" \"info\" \"perms\" \"writable\" \"ssh-authkeys\" \"git-config\" \"daemon\" \"gitweb\")})"
  50159. msgstr ""
  50160. #. type: table
  50161. #: guix-git/doc/guix.texi:33707
  50162. msgid "This setting controls the commands and features to enable within Gitolite."
  50163. msgstr ""
  50164. #. type: subsubheading
  50165. #: guix-git/doc/guix.texi:33712
  50166. #, fuzzy, no-wrap
  50167. msgid "Gitile Service"
  50168. msgstr "邮件服务"
  50169. #. type: cindex
  50170. #: guix-git/doc/guix.texi:33714
  50171. #, fuzzy, no-wrap
  50172. msgid "Gitile service"
  50173. msgstr "邮件服务"
  50174. #. type: cindex
  50175. #: guix-git/doc/guix.texi:33715
  50176. #, no-wrap
  50177. msgid "Git, forge"
  50178. msgstr ""
  50179. #. type: Plain text
  50180. #: guix-git/doc/guix.texi:33718
  50181. msgid "@uref{https://git.lepiller.eu/gitile, Gitile} is a Git forge for viewing public git repository contents from a web browser."
  50182. msgstr ""
  50183. #. type: Plain text
  50184. #: guix-git/doc/guix.texi:33724
  50185. 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})."
  50186. msgstr ""
  50187. #. type: Plain text
  50188. #: guix-git/doc/guix.texi:33728
  50189. 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."
  50190. msgstr ""
  50191. #. type: lisp
  50192. #: guix-git/doc/guix.texi:33751
  50193. #, no-wrap
  50194. msgid ""
  50195. "(service gitile-service-type\n"
  50196. " (gitile-configuration\n"
  50197. " (repositories \"/srv/git\")\n"
  50198. " (base-git-url \"https://myweb.site/git\")\n"
  50199. " (index-title \"My git repositories\")\n"
  50200. " (intro '((p \"This is all my public work!\")))\n"
  50201. " (footer '((p \"This is the end\")))\n"
  50202. " (nginx-server-block\n"
  50203. " (nginx-server-configuration\n"
  50204. " (ssl-certificate\n"
  50205. " \"/etc/letsencrypt/live/myweb.site/fullchain.pem\")\n"
  50206. " (ssl-certificate-key\n"
  50207. " \"/etc/letsencrypt/live/myweb.site/privkey.pem\")\n"
  50208. " (listen '(\"443 ssl http2\" \"[::]:443 ssl http2\"))\n"
  50209. " (locations\n"
  50210. " (list\n"
  50211. " ;; Allow for https anonymous fetch on /git/ urls.\n"
  50212. " (git-http-nginx-location-configuration\n"
  50213. " (git-http-configuration\n"
  50214. " (uri-path \"/git/\")\n"
  50215. " (git-root \"/var/lib/gitolite/repositories\")))))))))\n"
  50216. msgstr ""
  50217. #. type: Plain text
  50218. #: guix-git/doc/guix.texi:33760
  50219. 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:"
  50220. msgstr ""
  50221. #. type: example
  50222. #: guix-git/doc/guix.texi:33764
  50223. #, no-wrap
  50224. msgid ""
  50225. "repo foo\n"
  50226. " R = daemon\n"
  50227. msgstr ""
  50228. #. type: Plain text
  50229. #: guix-git/doc/guix.texi:33770
  50230. 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}:"
  50231. msgstr ""
  50232. #. type: example
  50233. #: guix-git/doc/guix.texi:33777
  50234. #, no-wrap
  50235. msgid ""
  50236. "repo foo\n"
  50237. " R = daemon\n"
  50238. " desc = A long description, optionally with <i>HTML</i>, shown on the index page\n"
  50239. " config gitweb.name = The Foo Project\n"
  50240. " config gitweb.synopsis = A short description, shown on the main page of the project\n"
  50241. msgstr ""
  50242. #. type: Plain text
  50243. #: guix-git/doc/guix.texi:33783
  50244. 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:"
  50245. msgstr ""
  50246. #. type: lisp
  50247. #: guix-git/doc/guix.texi:33795
  50248. #, no-wrap
  50249. msgid ""
  50250. "(service gitolite-service-type\n"
  50251. " (gitolite-configuration\n"
  50252. " (admin-pubkey (local-file \"key.pub\"))\n"
  50253. " (rc-file\n"
  50254. " (gitolite-rc-file\n"
  50255. " (umask #o0027)\n"
  50256. " ;; Allow to set any configuration key\n"
  50257. " (git-config-keys \".*\")\n"
  50258. " ;; Allow any text as a valid configuration value\n"
  50259. " (unsafe-patt \"^$\")))))\n"
  50260. msgstr ""
  50261. #. type: deftp
  50262. #: guix-git/doc/guix.texi:33797
  50263. #, fuzzy, no-wrap
  50264. msgid "{Data Type} gitile-configuration"
  50265. msgstr "管理操作系统配置。"
  50266. #. type: deftp
  50267. #: guix-git/doc/guix.texi:33799
  50268. #, fuzzy
  50269. msgid "Data type representing the configuration for @code{gitile-service-type}."
  50270. msgstr "管理操作系统配置。"
  50271. #. type: item
  50272. #: guix-git/doc/guix.texi:33801
  50273. #, fuzzy, no-wrap
  50274. msgid "@code{package} (default: @var{gitile})"
  50275. msgstr "@code{mate}(默认值:@code{mate})"
  50276. #. type: table
  50277. #: guix-git/doc/guix.texi:33803
  50278. #, fuzzy
  50279. msgid "Gitile package to use."
  50280. msgstr "软件包数据类型。"
  50281. #. type: table
  50282. #: guix-git/doc/guix.texi:33806
  50283. msgid "The host on which gitile is listening."
  50284. msgstr ""
  50285. #. type: item
  50286. #: guix-git/doc/guix.texi:33807
  50287. #, fuzzy, no-wrap
  50288. msgid "@code{port} (default: @code{8080})"
  50289. msgstr "@code{port}(默认值:@code{22})"
  50290. #. type: table
  50291. #: guix-git/doc/guix.texi:33809
  50292. msgid "The port on which gitile is listening."
  50293. msgstr ""
  50294. #. type: item
  50295. #: guix-git/doc/guix.texi:33810
  50296. #, fuzzy, no-wrap
  50297. msgid "@code{database} (default: @code{\"/var/lib/gitile/gitile-db.sql\"})"
  50298. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  50299. #. type: table
  50300. #: guix-git/doc/guix.texi:33812
  50301. #, fuzzy
  50302. msgid "The location of the database."
  50303. msgstr "远程机器的主机名。"
  50304. #. type: item
  50305. #: guix-git/doc/guix.texi:33813
  50306. #, fuzzy, no-wrap
  50307. msgid "@code{repositories} (default: @code{\"/var/lib/gitolite/repositories\"})"
  50308. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  50309. #. type: table
  50310. #: guix-git/doc/guix.texi:33817
  50311. 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."
  50312. msgstr ""
  50313. #. type: code{#1}
  50314. #: guix-git/doc/guix.texi:33818
  50315. #, no-wrap
  50316. msgid "base-git-url"
  50317. msgstr ""
  50318. #. type: table
  50319. #: guix-git/doc/guix.texi:33820
  50320. msgid "The base git url that will be used to show clone commands."
  50321. msgstr ""
  50322. #. type: item
  50323. #: guix-git/doc/guix.texi:33821
  50324. #, fuzzy, no-wrap
  50325. msgid "@code{index-title} (default: @code{\"Index\"})"
  50326. msgstr "@code{mate}(默认值:@code{mate})"
  50327. #. type: table
  50328. #: guix-git/doc/guix.texi:33823
  50329. msgid "The page title for the index page that lists all the available repositories."
  50330. msgstr ""
  50331. #. type: item
  50332. #: guix-git/doc/guix.texi:33824
  50333. #, fuzzy, no-wrap
  50334. msgid "@code{intro} (default: @code{'()})"
  50335. msgstr "@code{features} (@code{'()})"
  50336. #. type: table
  50337. #: guix-git/doc/guix.texi:33827
  50338. msgid "The intro content, as a list of sxml expressions. This is shown above the list of repositories, on the index page."
  50339. msgstr ""
  50340. #. type: item
  50341. #: guix-git/doc/guix.texi:33828
  50342. #, fuzzy, no-wrap
  50343. msgid "@code{footer} (default: @code{'()})"
  50344. msgstr "@code{features} (@code{'()})"
  50345. #. type: table
  50346. #: guix-git/doc/guix.texi:33831
  50347. msgid "The footer content, as a list of sxml expressions. This is shown on every page served by Gitile."
  50348. msgstr ""
  50349. #. type: code{#1}
  50350. #: guix-git/doc/guix.texi:33832
  50351. #, no-wrap
  50352. msgid "nginx-server-block"
  50353. msgstr ""
  50354. #. type: table
  50355. #: guix-git/doc/guix.texi:33835
  50356. 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."
  50357. msgstr ""
  50358. #. type: table
  50359. #: guix-git/doc/guix.texi:33839
  50360. 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."
  50361. msgstr ""
  50362. #. type: subsubheading
  50363. #: guix-git/doc/guix.texi:33846
  50364. #, no-wrap
  50365. msgid "The Battle for Wesnoth Service"
  50366. msgstr ""
  50367. #. type: cindex
  50368. #: guix-git/doc/guix.texi:33847
  50369. #, no-wrap
  50370. msgid "wesnothd"
  50371. msgstr ""
  50372. #. type: Plain text
  50373. #: guix-git/doc/guix.texi:33851
  50374. 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)."
  50375. msgstr ""
  50376. #. type: defvar
  50377. #: guix-git/doc/guix.texi:33852
  50378. #, no-wrap
  50379. msgid "{Scheme Variable} wesnothd-service-type"
  50380. msgstr ""
  50381. #. type: defvar
  50382. #: guix-git/doc/guix.texi:33856
  50383. 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:"
  50384. msgstr ""
  50385. #. type: lisp
  50386. #: guix-git/doc/guix.texi:33859
  50387. #, no-wrap
  50388. msgid "(service wesnothd-service-type)\n"
  50389. msgstr ""
  50390. #. type: deftp
  50391. #: guix-git/doc/guix.texi:33862
  50392. #, no-wrap
  50393. msgid "{Data Type} wesnothd-configuration"
  50394. msgstr ""
  50395. #. type: deftp
  50396. #: guix-git/doc/guix.texi:33864
  50397. msgid "Data type representing the configuration of @command{wesnothd}."
  50398. msgstr ""
  50399. #. type: item
  50400. #: guix-git/doc/guix.texi:33866
  50401. #, no-wrap
  50402. msgid "@code{package} (default: @code{wesnoth-server})"
  50403. msgstr ""
  50404. #. type: table
  50405. #: guix-git/doc/guix.texi:33868
  50406. msgid "The wesnoth server package to use."
  50407. msgstr ""
  50408. #. type: item
  50409. #: guix-git/doc/guix.texi:33869
  50410. #, no-wrap
  50411. msgid "@code{port} (default: @code{15000})"
  50412. msgstr ""
  50413. #. type: table
  50414. #: guix-git/doc/guix.texi:33871 guix-git/doc/guix.texi:34262
  50415. msgid "The port to bind the server to."
  50416. msgstr ""
  50417. #. type: cindex
  50418. #: guix-git/doc/guix.texi:33877
  50419. #, no-wrap
  50420. msgid "pam-mount"
  50421. msgstr ""
  50422. #. type: Plain text
  50423. #: guix-git/doc/guix.texi:33882
  50424. 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."
  50425. msgstr ""
  50426. #. type: defvar
  50427. #: guix-git/doc/guix.texi:33883
  50428. #, no-wrap
  50429. msgid "{Scheme Variable} pam-mount-service-type"
  50430. msgstr ""
  50431. #. type: defvar
  50432. #: guix-git/doc/guix.texi:33885
  50433. msgid "Service type for PAM Mount support."
  50434. msgstr ""
  50435. #. type: deftp
  50436. #: guix-git/doc/guix.texi:33887
  50437. #, no-wrap
  50438. msgid "{Data Type} pam-mount-configuration"
  50439. msgstr ""
  50440. #. type: deftp
  50441. #: guix-git/doc/guix.texi:33889
  50442. #, fuzzy
  50443. msgid "Data type representing the configuration of PAM Mount."
  50444. msgstr "管理操作系统配置。"
  50445. #. type: code{#1}
  50446. #: guix-git/doc/guix.texi:33893
  50447. #, fuzzy, no-wrap
  50448. msgid "rules"
  50449. msgstr "模块"
  50450. #. type: table
  50451. #: guix-git/doc/guix.texi:33896
  50452. msgid "The configuration rules that will be used to generate @file{/etc/security/pam_mount.conf.xml}."
  50453. msgstr ""
  50454. #. type: table
  50455. #: guix-git/doc/guix.texi:33900
  50456. 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:"
  50457. msgstr ""
  50458. #. type: lisp
  50459. #: guix-git/doc/guix.texi:33915
  50460. #, no-wrap
  50461. msgid ""
  50462. "`((debug (@@ (enable \"0\")))\n"
  50463. " (mntoptions (@@ (allow ,(string-join\n"
  50464. " '(\"nosuid\" \"nodev\" \"loop\"\n"
  50465. " \"encryption\" \"fsck\" \"nonempty\"\n"
  50466. " \"allow_root\" \"allow_other\")\n"
  50467. " \",\"))))\n"
  50468. " (mntoptions (@@ (require \"nosuid,nodev\")))\n"
  50469. " (logout (@@ (wait \"0\")\n"
  50470. " (hup \"0\")\n"
  50471. " (term \"no\")\n"
  50472. " (kill \"no\")))\n"
  50473. " (mkmountpoint (@@ (enable \"1\")\n"
  50474. " (remove \"true\"))))\n"
  50475. msgstr ""
  50476. #. type: table
  50477. #: guix-git/doc/guix.texi:33921
  50478. 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:"
  50479. msgstr ""
  50480. #. type: lisp
  50481. #: guix-git/doc/guix.texi:33946
  50482. #, no-wrap
  50483. msgid ""
  50484. "(define pam-mount-rules\n"
  50485. "`((debug (@@ (enable \"0\")))\n"
  50486. " (volume (@@ (user \"alice\")\n"
  50487. " (fstype \"crypt\")\n"
  50488. " (path \"/dev/sda2\")\n"
  50489. " (mountpoint \"/home/alice\")))\n"
  50490. " (volume (@@ (user \"bob\")\n"
  50491. " (fstype \"auto\")\n"
  50492. " (path \"/dev/sdb3\")\n"
  50493. " (mountpoint \"/home/bob/data\")\n"
  50494. " (options \"defaults,autodefrag,compress\")))\n"
  50495. " (mntoptions (@@ (allow ,(string-join\n"
  50496. " '(\"nosuid\" \"nodev\" \"loop\"\n"
  50497. " \"encryption\" \"fsck\" \"nonempty\"\n"
  50498. " \"allow_root\" \"allow_other\")\n"
  50499. " \",\"))))\n"
  50500. " (mntoptions (@@ (require \"nosuid,nodev\")))\n"
  50501. " (logout (@@ (wait \"0\")\n"
  50502. " (hup \"0\")\n"
  50503. " (term \"no\")\n"
  50504. " (kill \"no\")))\n"
  50505. " (mkmountpoint (@@ (enable \"1\")\n"
  50506. " (remove \"true\")))))\n"
  50507. "\n"
  50508. msgstr ""
  50509. #. type: lisp
  50510. #: guix-git/doc/guix.texi:33950
  50511. #, no-wrap
  50512. msgid ""
  50513. "(service pam-mount-service-type\n"
  50514. " (pam-mount-configuration\n"
  50515. " (rules pam-mount-rules)))\n"
  50516. msgstr ""
  50517. #. type: table
  50518. #: guix-git/doc/guix.texi:33954
  50519. 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}."
  50520. msgstr ""
  50521. #. type: subsubheading
  50522. #: guix-git/doc/guix.texi:33961
  50523. #, no-wrap
  50524. msgid "Guix Build Coordinator"
  50525. msgstr ""
  50526. #. type: Plain text
  50527. #: guix-git/doc/guix.texi:33967
  50528. 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."
  50529. msgstr ""
  50530. #. type: Plain text
  50531. #: guix-git/doc/guix.texi:33973
  50532. 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."
  50533. msgstr ""
  50534. #. type: Plain text
  50535. #: guix-git/doc/guix.texi:33977
  50536. 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."
  50537. msgstr ""
  50538. #. type: defvar
  50539. #: guix-git/doc/guix.texi:33978
  50540. #, no-wrap
  50541. msgid "{Scheme Variable} guix-build-coordinator-service-type"
  50542. msgstr ""
  50543. #. type: defvar
  50544. #: guix-git/doc/guix.texi:33981
  50545. msgid "Service type for the Guix Build Coordinator. Its value must be a @code{guix-build-coordinator-configuration} object."
  50546. msgstr ""
  50547. #. type: deftp
  50548. #: guix-git/doc/guix.texi:33983
  50549. #, fuzzy, no-wrap
  50550. msgid "{Data Type} guix-build-coordinator-configuration"
  50551. msgstr "{数据类型} build-machine"
  50552. #. type: deftp
  50553. #: guix-git/doc/guix.texi:33985
  50554. msgid "Data type representing the configuration of the Guix Build Coordinator."
  50555. msgstr ""
  50556. #. type: item
  50557. #: guix-git/doc/guix.texi:33987 guix-git/doc/guix.texi:34157
  50558. #, fuzzy, no-wrap
  50559. msgid "@code{package} (default: @code{guix-build-coordinator})"
  50560. msgstr "@code{gnome}(默认值:@code{gnome})"
  50561. #. type: table
  50562. #: guix-git/doc/guix.texi:33989 guix-git/doc/guix.texi:34033
  50563. #: guix-git/doc/guix.texi:34159
  50564. msgid "The Guix Build Coordinator package to use."
  50565. msgstr ""
  50566. #. type: item
  50567. #: guix-git/doc/guix.texi:33990
  50568. #, fuzzy, no-wrap
  50569. msgid "@code{user} (default: @code{\"guix-build-coordinator\"})"
  50570. msgstr "@code{gnome}(默认值:@code{gnome})"
  50571. #. type: table
  50572. #: guix-git/doc/guix.texi:33992 guix-git/doc/guix.texi:34036
  50573. #: guix-git/doc/guix.texi:34162 guix-git/doc/guix.texi:34208
  50574. #: guix-git/doc/guix.texi:34256
  50575. #, fuzzy
  50576. msgid "The system user to run the service as."
  50577. msgstr "mcron服务。"
  50578. #. type: item
  50579. #: guix-git/doc/guix.texi:33993
  50580. #, fuzzy, no-wrap
  50581. msgid "@code{group} (default: @code{\"guix-build-coordinator\"})"
  50582. msgstr "@code{gnome}(默认值:@code{gnome})"
  50583. #. type: table
  50584. #: guix-git/doc/guix.texi:33995 guix-git/doc/guix.texi:34211
  50585. #: guix-git/doc/guix.texi:34259
  50586. msgid "The system group to run the service as."
  50587. msgstr ""
  50588. #. type: item
  50589. #: guix-git/doc/guix.texi:33996
  50590. #, no-wrap
  50591. msgid "@code{database-uri-string} (default: @code{\"sqlite:///var/lib/guix-build-coordinator/guix_build_coordinator.db\"})"
  50592. msgstr ""
  50593. #. type: table
  50594. #: guix-git/doc/guix.texi:33998
  50595. msgid "The URI to use for the database."
  50596. msgstr ""
  50597. #. type: item
  50598. #: guix-git/doc/guix.texi:33999
  50599. #, fuzzy, no-wrap
  50600. msgid "@code{agent-communication-uri} (default: @code{\"http://0.0.0.0:8745\"})"
  50601. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  50602. #. type: table
  50603. #: guix-git/doc/guix.texi:34001
  50604. msgid "The URI describing how to listen to requests from agent processes."
  50605. msgstr ""
  50606. #. type: item
  50607. #: guix-git/doc/guix.texi:34002
  50608. #, fuzzy, no-wrap
  50609. msgid "@code{client-communication-uri} (default: @code{\"http://127.0.0.1:8746\"})"
  50610. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  50611. #. type: table
  50612. #: guix-git/doc/guix.texi:34006
  50613. 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."
  50614. msgstr ""
  50615. #. type: item
  50616. #: guix-git/doc/guix.texi:34007
  50617. #, no-wrap
  50618. msgid "@code{allocation-strategy} (default: @code{#~basic-build-allocation-strategy})"
  50619. msgstr ""
  50620. #. type: table
  50621. #: guix-git/doc/guix.texi:34011
  50622. 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."
  50623. msgstr ""
  50624. #. type: item
  50625. #: guix-git/doc/guix.texi:34012
  50626. #, fuzzy, no-wrap
  50627. msgid "@code{hooks} (default: @var{'()})"
  50628. msgstr "@code{features} (@code{'()})"
  50629. #. type: table
  50630. #: guix-git/doc/guix.texi:34015
  50631. msgid "An association list of hooks. These provide a way to execute arbitrary code upon certain events, like a build result being processed."
  50632. msgstr ""
  50633. #. type: item
  50634. #: guix-git/doc/guix.texi:34016
  50635. #, fuzzy, no-wrap
  50636. msgid "@code{guile} (default: @code{guile-3.0-latest})"
  50637. msgstr "@code{mate}(默认值:@code{mate})"
  50638. #. type: table
  50639. #: guix-git/doc/guix.texi:34018
  50640. msgid "The Guile package with which to run the Guix Build Coordinator."
  50641. msgstr ""
  50642. #. type: defvar
  50643. #: guix-git/doc/guix.texi:34022
  50644. #, no-wrap
  50645. msgid "{Scheme Variable} guix-build-coordinator-agent-service-type"
  50646. msgstr ""
  50647. #. type: defvar
  50648. #: guix-git/doc/guix.texi:34025
  50649. msgid "Service type for a Guix Build Coordinator agent. Its value must be a @code{guix-build-coordinator-agent-configuration} object."
  50650. msgstr ""
  50651. #. type: deftp
  50652. #: guix-git/doc/guix.texi:34027
  50653. #, no-wrap
  50654. msgid "{Data Type} guix-build-coordinator-agent-configuration"
  50655. msgstr ""
  50656. #. type: deftp
  50657. #: guix-git/doc/guix.texi:34029
  50658. msgid "Data type representing the configuration a Guix Build Coordinator agent."
  50659. msgstr ""
  50660. #. type: item
  50661. #: guix-git/doc/guix.texi:34031
  50662. #, fuzzy, no-wrap
  50663. msgid "@code{package} (default: @code{guix-build-coordinator/agent-only})"
  50664. msgstr "@code{gnome}(默认值:@code{gnome})"
  50665. #. type: item
  50666. #: guix-git/doc/guix.texi:34034
  50667. #, fuzzy, no-wrap
  50668. msgid "@code{user} (default: @code{\"guix-build-coordinator-agent\"})"
  50669. msgstr "@code{gnome}(默认值:@code{gnome})"
  50670. #. type: item
  50671. #: guix-git/doc/guix.texi:34037
  50672. #, fuzzy, no-wrap
  50673. msgid "@code{coordinator} (default: @code{\"http://localhost:8745\"})"
  50674. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  50675. #. type: table
  50676. #: guix-git/doc/guix.texi:34039 guix-git/doc/guix.texi:34165
  50677. msgid "The URI to use when connecting to the coordinator."
  50678. msgstr ""
  50679. #. type: code{#1}
  50680. #: guix-git/doc/guix.texi:34040
  50681. #, fuzzy, no-wrap
  50682. msgid "authentication"
  50683. msgstr "验证substitute"
  50684. #. type: table
  50685. #: guix-git/doc/guix.texi:34043
  50686. msgid "Record describing how this agent should authenticate with the coordinator. Possible record types are described below."
  50687. msgstr ""
  50688. #. type: item
  50689. #: guix-git/doc/guix.texi:34044 guix-git/doc/guix.texi:34166
  50690. #, fuzzy, no-wrap
  50691. msgid "@code{systems} (default: @code{#f})"
  50692. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  50693. #. type: table
  50694. #: guix-git/doc/guix.texi:34047
  50695. 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."
  50696. msgstr ""
  50697. #. type: item
  50698. #: guix-git/doc/guix.texi:34048
  50699. #, fuzzy, no-wrap
  50700. msgid "@code{max-parallel-builds} (default: @code{1})"
  50701. msgstr "@code{parallel-builds}(默认值:@code{1})"
  50702. #. type: table
  50703. #: guix-git/doc/guix.texi:34050
  50704. #, fuzzy
  50705. msgid "The number of builds to perform in parallel."
  50706. msgstr "那台机器上可以并行运行的构建任务数量。"
  50707. #. type: item
  50708. #: guix-git/doc/guix.texi:34051
  50709. #, fuzzy, no-wrap
  50710. #| msgid "@code{max-journal-usage} (default: @code{#f})"
  50711. msgid "@code{max-1min-load-average} (default: @code{#f})"
  50712. msgstr "@code{max-journal-usage}(默认值:@code{#f})"
  50713. #. type: table
  50714. #: guix-git/doc/guix.texi:34055
  50715. 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."
  50716. msgstr ""
  50717. #. type: table
  50718. #: guix-git/doc/guix.texi:34059
  50719. 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."
  50720. msgstr ""
  50721. #. type: item
  50722. #: guix-git/doc/guix.texi:34060
  50723. #, fuzzy, no-wrap
  50724. msgid "@code{derivation-substitute-urls} (default: @code{#f})"
  50725. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  50726. #. type: table
  50727. #: guix-git/doc/guix.texi:34063
  50728. msgid "URLs from which to attempt to fetch substitutes for derivations, if the derivations aren't already available."
  50729. msgstr ""
  50730. #. type: item
  50731. #: guix-git/doc/guix.texi:34064
  50732. #, fuzzy, no-wrap
  50733. msgid "@code{non-derivation-substitute-urls} (default: @code{#f})"
  50734. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  50735. #. type: table
  50736. #: guix-git/doc/guix.texi:34067
  50737. msgid "URLs from which to attempt to fetch substitutes for build inputs, if the input store items aren't already available."
  50738. msgstr ""
  50739. #. type: deftp
  50740. #: guix-git/doc/guix.texi:34071
  50741. #, fuzzy, no-wrap
  50742. msgid "{Data Type} guix-build-coordinator-agent-password-auth"
  50743. msgstr "{数据类型} build-machine"
  50744. #. type: deftp
  50745. #: guix-git/doc/guix.texi:34074
  50746. msgid "Data type representing an agent authenticating with a coordinator via a UUID and password."
  50747. msgstr ""
  50748. #. type: table
  50749. #: guix-git/doc/guix.texi:34080 guix-git/doc/guix.texi:34096
  50750. 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."
  50751. msgstr ""
  50752. #. type: table
  50753. #: guix-git/doc/guix.texi:34083
  50754. msgid "The password to use when connecting to the coordinator."
  50755. msgstr ""
  50756. #. type: deftp
  50757. #: guix-git/doc/guix.texi:34087
  50758. #, fuzzy, no-wrap
  50759. msgid "{Data Type} guix-build-coordinator-agent-password-file-auth"
  50760. msgstr "{数据类型} build-machine"
  50761. #. type: deftp
  50762. #: guix-git/doc/guix.texi:34090
  50763. msgid "Data type representing an agent authenticating with a coordinator via a UUID and password read from a file."
  50764. msgstr ""
  50765. #. type: code{#1}
  50766. #: guix-git/doc/guix.texi:34097
  50767. #, no-wrap
  50768. msgid "password-file"
  50769. msgstr ""
  50770. #. type: table
  50771. #: guix-git/doc/guix.texi:34100
  50772. msgid "A file containing the password to use when connecting to the coordinator."
  50773. msgstr ""
  50774. #. type: deftp
  50775. #: guix-git/doc/guix.texi:34104
  50776. #, fuzzy, no-wrap
  50777. msgid "{Data Type} guix-build-coordinator-agent-dynamic-auth"
  50778. msgstr "{数据类型} build-machine"
  50779. #. type: deftp
  50780. #: guix-git/doc/guix.texi:34107
  50781. msgid "Data type representing an agent authenticating with a coordinator via a dynamic auth token and agent name."
  50782. msgstr ""
  50783. #. type: code{#1}
  50784. #: guix-git/doc/guix.texi:34109 guix-git/doc/guix.texi:34126
  50785. #, fuzzy, no-wrap
  50786. msgid "agent-name"
  50787. msgstr "通道"
  50788. #. type: table
  50789. #: guix-git/doc/guix.texi:34113 guix-git/doc/guix.texi:34130
  50790. 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."
  50791. msgstr ""
  50792. #. type: code{#1}
  50793. #: guix-git/doc/guix.texi:34114
  50794. #, no-wrap
  50795. msgid "token"
  50796. msgstr ""
  50797. #. type: table
  50798. #: guix-git/doc/guix.texi:34117
  50799. msgid "Dynamic auth token, this is created and stored in the coordinator database, and is used by the agent to authenticate."
  50800. msgstr ""
  50801. #. type: deftp
  50802. #: guix-git/doc/guix.texi:34121
  50803. #, fuzzy, no-wrap
  50804. msgid "{Data Type} guix-build-coordinator-agent-dynamic-auth-with-file"
  50805. msgstr "{数据类型} build-machine"
  50806. #. type: deftp
  50807. #: guix-git/doc/guix.texi:34124
  50808. msgid "Data type representing an agent authenticating with a coordinator via a dynamic auth token read from a file and agent name."
  50809. msgstr ""
  50810. #. type: code{#1}
  50811. #: guix-git/doc/guix.texi:34131
  50812. #, no-wrap
  50813. msgid "token-file"
  50814. msgstr ""
  50815. #. type: table
  50816. #: guix-git/doc/guix.texi:34134
  50817. msgid "File containing the dynamic auth token, this is created and stored in the coordinator database, and is used by the agent to authenticate."
  50818. msgstr ""
  50819. #. type: Plain text
  50820. #: guix-git/doc/guix.texi:34144
  50821. 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."
  50822. msgstr ""
  50823. #. type: defvar
  50824. #: guix-git/doc/guix.texi:34145
  50825. #, no-wrap
  50826. msgid "{Scheme Variable} guix-build-coordinator-queue-builds-service-type"
  50827. msgstr ""
  50828. #. type: defvar
  50829. #: guix-git/doc/guix.texi:34150
  50830. 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."
  50831. msgstr ""
  50832. #. type: deftp
  50833. #: guix-git/doc/guix.texi:34152
  50834. #, no-wrap
  50835. msgid "{Data Type} guix-build-coordinator-queue-builds-configuration"
  50836. msgstr ""
  50837. #. type: deftp
  50838. #: guix-git/doc/guix.texi:34155
  50839. msgid "Data type representing the options to the queue builds from guix data service script."
  50840. msgstr ""
  50841. #. type: item
  50842. #: guix-git/doc/guix.texi:34160
  50843. #, fuzzy, no-wrap
  50844. msgid "@code{user} (default: @code{\"guix-build-coordinator-queue-builds\"})"
  50845. msgstr "@code{gnome}(默认值:@code{gnome})"
  50846. #. type: item
  50847. #: guix-git/doc/guix.texi:34163
  50848. #, fuzzy, no-wrap
  50849. msgid "@code{coordinator} (default: @code{\"http://localhost:8746\"})"
  50850. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  50851. #. type: table
  50852. #: guix-git/doc/guix.texi:34168
  50853. msgid "The systems for which to fetch derivations to build."
  50854. msgstr ""
  50855. #. type: item
  50856. #: guix-git/doc/guix.texi:34169
  50857. #, fuzzy, no-wrap
  50858. msgid "@code{systems-and-targets} (default: @code{#f})"
  50859. msgstr "@code{challenge}(默认值:@code{#f})"
  50860. #. type: table
  50861. #: guix-git/doc/guix.texi:34172
  50862. msgid "An association list of system and target pairs for which to fetch derivations to build."
  50863. msgstr ""
  50864. #. type: item
  50865. #: guix-git/doc/guix.texi:34173
  50866. #, no-wrap
  50867. msgid "@code{guix-data-service} (default: @code{\"https://data.guix.gnu.org\"})"
  50868. msgstr ""
  50869. #. type: table
  50870. #: guix-git/doc/guix.texi:34176
  50871. msgid "The Guix Data Service instance from which to query to find out about derivations to build."
  50872. msgstr ""
  50873. #. type: item
  50874. #: guix-git/doc/guix.texi:34177
  50875. #, no-wrap
  50876. msgid "@code{processed-commits-file} (default: @code{\"/var/cache/guix-build-coordinator-queue-builds/processed-commits\"})"
  50877. msgstr ""
  50878. #. type: table
  50879. #: guix-git/doc/guix.texi:34180
  50880. msgid "A file to record which commits have been processed, to avoid needlessly processing them again if the service is restarted."
  50881. msgstr ""
  50882. #. type: subsubheading
  50883. #: guix-git/doc/guix.texi:34184
  50884. #, fuzzy, no-wrap
  50885. msgid "Guix Data Service"
  50886. msgstr "数据库服务"
  50887. #. type: Plain text
  50888. #: guix-git/doc/guix.texi:34188
  50889. 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."
  50890. msgstr ""
  50891. #. type: Plain text
  50892. #: guix-git/doc/guix.texi:34191
  50893. msgid "The data is stored in a PostgreSQL database, and available through a web interface."
  50894. msgstr ""
  50895. #. type: defvar
  50896. #: guix-git/doc/guix.texi:34192
  50897. #, no-wrap
  50898. msgid "{Scheme Variable} guix-data-service-type"
  50899. msgstr ""
  50900. #. type: defvar
  50901. #: guix-git/doc/guix.texi:34197
  50902. 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."
  50903. msgstr ""
  50904. #. type: deftp
  50905. #: guix-git/doc/guix.texi:34199
  50906. #, no-wrap
  50907. msgid "{Data Type} guix-data-service-configuration"
  50908. msgstr ""
  50909. #. type: deftp
  50910. #: guix-git/doc/guix.texi:34201 guix-git/doc/guix.texi:34249
  50911. msgid "Data type representing the configuration of the Guix Data Service."
  50912. msgstr ""
  50913. #. type: item
  50914. #: guix-git/doc/guix.texi:34203
  50915. #, fuzzy, no-wrap
  50916. msgid "@code{package} (default: @code{guix-data-service})"
  50917. msgstr "@code{xfce}(默认值:@code{xfce})"
  50918. #. type: table
  50919. #: guix-git/doc/guix.texi:34205
  50920. msgid "The Guix Data Service package to use."
  50921. msgstr ""
  50922. #. type: item
  50923. #: guix-git/doc/guix.texi:34206
  50924. #, fuzzy, no-wrap
  50925. msgid "@code{user} (default: @code{\"guix-data-service\"})"
  50926. msgstr "@code{xfce}(默认值:@code{xfce})"
  50927. #. type: item
  50928. #: guix-git/doc/guix.texi:34209
  50929. #, fuzzy, no-wrap
  50930. msgid "@code{group} (default: @code{\"guix-data-service\"})"
  50931. msgstr "@code{gnome}(默认值:@code{gnome})"
  50932. #. type: item
  50933. #: guix-git/doc/guix.texi:34212
  50934. #, fuzzy, no-wrap
  50935. msgid "@code{port} (default: @code{8765})"
  50936. msgstr "@code{port}(默认值:@code{22})"
  50937. #. type: table
  50938. #: guix-git/doc/guix.texi:34214
  50939. #, fuzzy
  50940. msgid "The port to bind the web service to."
  50941. msgstr "rottlog服务。"
  50942. #. type: item
  50943. #: guix-git/doc/guix.texi:34215 guix-git/doc/guix.texi:34263
  50944. #, fuzzy, no-wrap
  50945. msgid "@code{host} (default: @code{\"127.0.0.1\"})"
  50946. msgstr "@code{speed}(默认值:@code{1.0})"
  50947. #. type: table
  50948. #: guix-git/doc/guix.texi:34217
  50949. #, fuzzy
  50950. msgid "The host to bind the web service to."
  50951. msgstr "rottlog服务。"
  50952. #. type: item
  50953. #: guix-git/doc/guix.texi:34218
  50954. #, fuzzy, no-wrap
  50955. msgid "@code{getmail-idle-mailboxes} (default: @code{#f})"
  50956. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  50957. #. type: table
  50958. #: guix-git/doc/guix.texi:34221
  50959. msgid "If set, this is the list of mailboxes that the getmail service will be configured to listen to."
  50960. msgstr ""
  50961. #. type: item
  50962. #: guix-git/doc/guix.texi:34222
  50963. #, fuzzy, no-wrap
  50964. msgid "@code{commits-getmail-retriever-configuration} (default: @code{#f})"
  50965. msgstr "@code{journal-content}(默认值:@code{#f})"
  50966. #. type: table
  50967. #: guix-git/doc/guix.texi:34226
  50968. 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."
  50969. msgstr ""
  50970. #. type: item
  50971. #: guix-git/doc/guix.texi:34227
  50972. #, no-wrap
  50973. msgid "@code{extra-options} (default: @var{'()})"
  50974. msgstr ""
  50975. #. type: table
  50976. #: guix-git/doc/guix.texi:34229
  50977. msgid "Extra command line options for @code{guix-data-service}."
  50978. msgstr ""
  50979. #. type: item
  50980. #: guix-git/doc/guix.texi:34230
  50981. #, fuzzy, no-wrap
  50982. msgid "@code{extra-process-jobs-options} (default: @var{'()})"
  50983. msgstr "@code{features} (@code{'()})"
  50984. #. type: table
  50985. #: guix-git/doc/guix.texi:34232
  50986. msgid "Extra command line options for @code{guix-data-service-process-jobs}."
  50987. msgstr ""
  50988. #. type: subsubheading
  50989. #: guix-git/doc/guix.texi:34236
  50990. #, no-wrap
  50991. msgid "Nar Herder"
  50992. msgstr ""
  50993. #. type: Plain text
  50994. #: guix-git/doc/guix.texi:34239
  50995. msgid "The @uref{https://git.cbaines.net/guix/nar-herder/about/,Nar Herder} is a utility for managing a collection of nars."
  50996. msgstr ""
  50997. #. type: defvar
  50998. #: guix-git/doc/guix.texi:34240
  50999. #, no-wrap
  51000. msgid "{Scheme Variable} nar-herder-type"
  51001. msgstr ""
  51002. #. type: defvar
  51003. #: guix-git/doc/guix.texi:34245
  51004. msgid "Service type for the Guix Data Service. Its value must be a @code{nar-herder-configuration} object. The service optionally extends the getmail service, as the guix-commits mailing list is used to find out about changes in the Guix git repository."
  51005. msgstr ""
  51006. #. type: deftp
  51007. #: guix-git/doc/guix.texi:34247
  51008. #, fuzzy, no-wrap
  51009. msgid "{Data Type} nar-herder-configuration"
  51010. msgstr "{数据类型} build-machine"
  51011. #. type: item
  51012. #: guix-git/doc/guix.texi:34251
  51013. #, fuzzy, no-wrap
  51014. msgid "@code{package} (default: @code{nar-herder})"
  51015. msgstr "@code{challenge}(默认值:@code{#f})"
  51016. #. type: table
  51017. #: guix-git/doc/guix.texi:34253
  51018. #, fuzzy
  51019. msgid "The Nar Herder package to use."
  51020. msgstr "软件包数据类型。"
  51021. #. type: item
  51022. #: guix-git/doc/guix.texi:34254
  51023. #, fuzzy, no-wrap
  51024. msgid "@code{user} (default: @code{\"nar-herder\"})"
  51025. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  51026. #. type: item
  51027. #: guix-git/doc/guix.texi:34257
  51028. #, fuzzy, no-wrap
  51029. msgid "@code{group} (default: @code{\"nar-herder\"})"
  51030. msgstr "@code{gnome}(默认值:@code{gnome})"
  51031. #. type: item
  51032. #: guix-git/doc/guix.texi:34260
  51033. #, fuzzy, no-wrap
  51034. msgid "@code{port} (default: @code{8734})"
  51035. msgstr "@code{port}(默认值:@code{22})"
  51036. #. type: table
  51037. #: guix-git/doc/guix.texi:34265
  51038. #, fuzzy
  51039. msgid "The host to bind the server to."
  51040. msgstr "rottlog服务。"
  51041. #. type: table
  51042. #: guix-git/doc/guix.texi:34270
  51043. msgid "Optional URL of the other Nar Herder instance which should be mirrored. This means that this Nar Herder instance will download it's database, and keep it up to date."
  51044. msgstr ""
  51045. #. type: item
  51046. #: guix-git/doc/guix.texi:34271
  51047. #, fuzzy, no-wrap
  51048. msgid "@code{database} (default: @code{\"/var/lib/nar-herder/nar_herder.db\"})"
  51049. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  51050. #. type: table
  51051. #: guix-git/doc/guix.texi:34276
  51052. msgid "Location for the database. If this Nar Herder instance is mirroring another, the database will be downloaded if it doesn't exist. If this Nar Herder instance isn't mirroring another, an empty database will be created."
  51053. msgstr ""
  51054. #. type: item
  51055. #: guix-git/doc/guix.texi:34277
  51056. #, fuzzy, no-wrap
  51057. msgid "@code{database-dump} (default: @code{\"/var/lib/nar-herder/nar_herder_dump.db\"})"
  51058. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  51059. #. type: table
  51060. #: guix-git/doc/guix.texi:34281
  51061. msgid "Location of the database dump. This is created and regularly updated by taking a copy of the database. This is the version of the database that is available to download."
  51062. msgstr ""
  51063. #. type: item
  51064. #: guix-git/doc/guix.texi:34282
  51065. #, fuzzy, no-wrap
  51066. msgid "@code{storage} (default: @code{#f})"
  51067. msgstr "@code{port}(默认值:@code{22})"
  51068. #. type: table
  51069. #: guix-git/doc/guix.texi:34284
  51070. msgid "Optional location in which to store nars."
  51071. msgstr ""
  51072. #. type: item
  51073. #: guix-git/doc/guix.texi:34285
  51074. #, fuzzy, no-wrap
  51075. msgid "@code{storage-limit} (default: @code{\"none\"})"
  51076. msgstr "@code{port}(默认值:@code{22})"
  51077. #. type: table
  51078. #: guix-git/doc/guix.texi:34288
  51079. msgid "Limit in bytes for the nars stored in the storage location. This can also be set to ``none'' so that there is no limit."
  51080. msgstr ""
  51081. #. type: table
  51082. #: guix-git/doc/guix.texi:34291
  51083. msgid "When the storage location exceeds this size, nars are removed according to the nar removal criteria."
  51084. msgstr ""
  51085. #. type: item
  51086. #: guix-git/doc/guix.texi:34292
  51087. #, fuzzy, no-wrap
  51088. msgid "@code{storage-nar-removal-criteria} (default: @code{'()})"
  51089. msgstr "@code{features} (@code{'()})"
  51090. #. type: table
  51091. #: guix-git/doc/guix.texi:34295
  51092. msgid "Criteria used to remove nars from the storage location. These are used in conjunction with the storage limit."
  51093. msgstr ""
  51094. #. type: table
  51095. #: guix-git/doc/guix.texi:34300
  51096. msgid "When the storage location exceeds the storage limit size, nars will be checked against the nar removal criteria and if any of the criteria match, they will be removed. This will continue until the storage location is below the storage limit size."
  51097. msgstr ""
  51098. #. type: table
  51099. #: guix-git/doc/guix.texi:34304
  51100. msgid "Each criteria is specified by a string, then an equals sign, then another string. Currently, only one criteria is supported, checking if a nar is stored on another Nar Herder instance."
  51101. msgstr ""
  51102. #. type: table
  51103. #: guix-git/doc/guix.texi:34312
  51104. msgid "This allows the user's Guix to keep substitute information in cache for @var{ttl}."
  51105. msgstr ""
  51106. #. type: cindex
  51107. #: guix-git/doc/guix.texi:34325
  51108. #, no-wrap
  51109. msgid "oom"
  51110. msgstr ""
  51111. #. type: cindex
  51112. #: guix-git/doc/guix.texi:34326
  51113. #, no-wrap
  51114. msgid "out of memory killer"
  51115. msgstr ""
  51116. #. type: cindex
  51117. #: guix-git/doc/guix.texi:34327
  51118. #, no-wrap
  51119. msgid "earlyoom"
  51120. msgstr ""
  51121. #. type: cindex
  51122. #: guix-git/doc/guix.texi:34328
  51123. #, no-wrap
  51124. msgid "early out of memory daemon"
  51125. msgstr ""
  51126. #. type: subsubheading
  51127. #: guix-git/doc/guix.texi:34329
  51128. #, fuzzy, no-wrap
  51129. msgid "Early OOM Service"
  51130. msgstr "邮件服务"
  51131. #. type: Plain text
  51132. #: guix-git/doc/guix.texi:34336
  51133. 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."
  51134. msgstr ""
  51135. #. type: deffn
  51136. #: guix-git/doc/guix.texi:34337
  51137. #, no-wrap
  51138. msgid "{Scheme Variable} earlyoom-service-type"
  51139. msgstr ""
  51140. #. type: deffn
  51141. #: guix-git/doc/guix.texi:34342
  51142. 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:"
  51143. msgstr ""
  51144. #. type: lisp
  51145. #: guix-git/doc/guix.texi:34345
  51146. #, no-wrap
  51147. msgid "(service earlyoom-service-type)\n"
  51148. msgstr ""
  51149. #. type: deftp
  51150. #: guix-git/doc/guix.texi:34348
  51151. #, no-wrap
  51152. msgid "{Data Type} earlyoom-configuration"
  51153. msgstr ""
  51154. #. type: deftp
  51155. #: guix-git/doc/guix.texi:34350
  51156. msgid "This is the configuration record for the @code{earlyoom-service-type}."
  51157. msgstr ""
  51158. #. type: item
  51159. #: guix-git/doc/guix.texi:34352
  51160. #, fuzzy, no-wrap
  51161. msgid "@code{earlyoom} (default: @var{earlyoom})"
  51162. msgstr "@code{gnome}(默认值:@code{gnome})"
  51163. #. type: table
  51164. #: guix-git/doc/guix.texi:34354
  51165. #, fuzzy
  51166. msgid "The Earlyoom package to use."
  51167. msgstr "软件包数据类型。"
  51168. #. type: item
  51169. #: guix-git/doc/guix.texi:34355
  51170. #, fuzzy, no-wrap
  51171. msgid "@code{minimum-available-memory} (default: @code{10})"
  51172. msgstr "@code{parallel-builds}(默认值:@code{1})"
  51173. #. type: table
  51174. #: guix-git/doc/guix.texi:34357
  51175. msgid "The threshold for the minimum @emph{available} memory, in percentages."
  51176. msgstr ""
  51177. #. type: item
  51178. #: guix-git/doc/guix.texi:34358
  51179. #, fuzzy, no-wrap
  51180. msgid "@code{minimum-free-swap} (default: @code{10})"
  51181. msgstr "@code{speed}(默认值:@code{1.0})"
  51182. #. type: table
  51183. #: guix-git/doc/guix.texi:34360
  51184. msgid "The threshold for the minimum free swap memory, in percentages."
  51185. msgstr ""
  51186. #. type: item
  51187. #: guix-git/doc/guix.texi:34361
  51188. #, fuzzy, no-wrap
  51189. msgid "@code{prefer-regexp} (default: @code{#f})"
  51190. msgstr "@code{challenge}(默认值:@code{#f})"
  51191. #. type: table
  51192. #: guix-git/doc/guix.texi:34364
  51193. msgid "A regular expression (as a string) to match the names of the processes that should be preferably killed."
  51194. msgstr ""
  51195. #. type: item
  51196. #: guix-git/doc/guix.texi:34365
  51197. #, fuzzy, no-wrap
  51198. msgid "@code{avoid-regexp} (default: @code{#f})"
  51199. msgstr "@code{challenge}(默认值:@code{#f})"
  51200. #. type: table
  51201. #: guix-git/doc/guix.texi:34368
  51202. msgid "A regular expression (as a string) to match the names of the processes that should @emph{not} be killed."
  51203. msgstr ""
  51204. #. type: item
  51205. #: guix-git/doc/guix.texi:34369
  51206. #, fuzzy, no-wrap
  51207. msgid "@code{memory-report-interval} (default: @code{0})"
  51208. msgstr "@code{port}(默认值:@code{22})"
  51209. #. type: table
  51210. #: guix-git/doc/guix.texi:34372
  51211. msgid "The interval in seconds at which a memory report is printed. It is disabled by default."
  51212. msgstr ""
  51213. #. type: item
  51214. #: guix-git/doc/guix.texi:34373
  51215. #, fuzzy, no-wrap
  51216. msgid "@code{ignore-positive-oom-score-adj?} (default: @code{#f})"
  51217. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  51218. #. type: table
  51219. #: guix-git/doc/guix.texi:34376
  51220. msgid "A boolean indicating whether the positive adjustments set in @file{/proc/*/oom_score_adj} should be ignored."
  51221. msgstr ""
  51222. #. type: item
  51223. #: guix-git/doc/guix.texi:34377
  51224. #, fuzzy, no-wrap
  51225. msgid "@code{show-debug-messages?} (default: @code{#f})"
  51226. msgstr "@code{challenge}(默认值:@code{#f})"
  51227. #. type: table
  51228. #: guix-git/doc/guix.texi:34380
  51229. msgid "A boolean indicating whether debug messages should be printed. The logs are saved at @file{/var/log/earlyoom.log}."
  51230. msgstr ""
  51231. #. type: item
  51232. #: guix-git/doc/guix.texi:34381
  51233. #, fuzzy, no-wrap
  51234. msgid "@code{send-notification-command} (default: @code{#f})"
  51235. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  51236. #. type: table
  51237. #: guix-git/doc/guix.texi:34384
  51238. msgid "This can be used to provide a custom command used for sending notifications."
  51239. msgstr ""
  51240. #. type: cindex
  51241. #: guix-git/doc/guix.texi:34387
  51242. #, no-wrap
  51243. msgid "modprobe"
  51244. msgstr ""
  51245. #. type: cindex
  51246. #: guix-git/doc/guix.texi:34388
  51247. #, no-wrap
  51248. msgid "kernel module loader"
  51249. msgstr ""
  51250. #. type: subsubheading
  51251. #: guix-git/doc/guix.texi:34389
  51252. #, no-wrap
  51253. msgid "Kernel Module Loader Service"
  51254. msgstr ""
  51255. #. type: Plain text
  51256. #: guix-git/doc/guix.texi:34395
  51257. 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}."
  51258. msgstr ""
  51259. #. type: deffn
  51260. #: guix-git/doc/guix.texi:34396
  51261. #, no-wrap
  51262. msgid "{Scheme Variable} kernel-module-loader-service-type"
  51263. msgstr ""
  51264. #. type: deffn
  51265. #: guix-git/doc/guix.texi:34402
  51266. 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:"
  51267. msgstr ""
  51268. #. type: lisp
  51269. #: guix-git/doc/guix.texi:34407
  51270. #, no-wrap
  51271. msgid ""
  51272. "(use-modules (gnu) (gnu services))\n"
  51273. "(use-package-modules linux)\n"
  51274. "(use-service-modules linux)\n"
  51275. "\n"
  51276. msgstr ""
  51277. #. type: lisp
  51278. #: guix-git/doc/guix.texi:34411
  51279. #, no-wrap
  51280. msgid ""
  51281. "(define ddcci-config\n"
  51282. " (plain-file \"ddcci.conf\"\n"
  51283. " \"options ddcci dyndbg delay=120\"))\n"
  51284. "\n"
  51285. msgstr ""
  51286. #. type: lisp
  51287. #: guix-git/doc/guix.texi:34421
  51288. #, no-wrap
  51289. msgid ""
  51290. "(operating-system\n"
  51291. " ...\n"
  51292. " (services (cons* (service kernel-module-loader-service-type\n"
  51293. " '(\"ddcci\" \"ddcci_backlight\"))\n"
  51294. " (simple-service 'ddcci-config etc-service-type\n"
  51295. " (list `(\"modprobe.d/ddcci.conf\"\n"
  51296. " ,ddcci-config)))\n"
  51297. " %base-services))\n"
  51298. " (kernel-loadable-modules (list ddcci-driver-linux)))\n"
  51299. msgstr ""
  51300. #. type: cindex
  51301. #: guix-git/doc/guix.texi:34424
  51302. #, fuzzy, no-wrap
  51303. #| msgid "daemon"
  51304. msgid "rasdaemon"
  51305. msgstr "后台进程"
  51306. #. type: cindex
  51307. #: guix-git/doc/guix.texi:34425
  51308. #, no-wrap
  51309. msgid "Platform Reliability, Availability and Serviceability daemon"
  51310. msgstr ""
  51311. #. type: subsubheading
  51312. #: guix-git/doc/guix.texi:34426
  51313. #, fuzzy, no-wrap
  51314. msgid "Rasdaemon Service"
  51315. msgstr "邮件服务"
  51316. #. type: Plain text
  51317. #: guix-git/doc/guix.texi:34431
  51318. 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."
  51319. msgstr ""
  51320. #. type: Plain text
  51321. #: guix-git/doc/guix.texi:34434
  51322. msgid "Reliability, Availability and Serviceability is a concept used on servers meant to measure their robustness."
  51323. msgstr ""
  51324. #. type: Plain text
  51325. #: guix-git/doc/guix.texi:34437
  51326. msgid "@strong{Relability} is the probability that a system will produce correct outputs:"
  51327. msgstr ""
  51328. #. type: item
  51329. #: guix-git/doc/guix.texi:34439
  51330. #, no-wrap
  51331. msgid "Generally measured as Mean Time Between Failures (MTBF), and"
  51332. msgstr ""
  51333. #. type: item
  51334. #: guix-git/doc/guix.texi:34440
  51335. #, no-wrap
  51336. msgid "Enhanced by features that help to avoid, detect and repair hardware"
  51337. msgstr ""
  51338. #. type: itemize
  51339. #: guix-git/doc/guix.texi:34442
  51340. msgid "faults"
  51341. msgstr ""
  51342. #. type: Plain text
  51343. #: guix-git/doc/guix.texi:34446
  51344. msgid "@strong{Availability} is the probability that a system is operational at a given time:"
  51345. msgstr ""
  51346. #. type: item
  51347. #: guix-git/doc/guix.texi:34448
  51348. #, no-wrap
  51349. msgid "Generally measured as a percentage of downtime per a period of time, and"
  51350. msgstr ""
  51351. #. type: item
  51352. #: guix-git/doc/guix.texi:34449
  51353. #, no-wrap
  51354. msgid "Often uses mechanisms to detect and correct hardware faults in runtime."
  51355. msgstr ""
  51356. #. type: Plain text
  51357. #: guix-git/doc/guix.texi:34454
  51358. msgid "@strong{Serviceability} is the simplicity and speed with which a system can be repaired or maintained:"
  51359. msgstr ""
  51360. #. type: item
  51361. #: guix-git/doc/guix.texi:34456
  51362. #, no-wrap
  51363. msgid "Generally measured on Mean Time Between Repair (MTBR)."
  51364. msgstr ""
  51365. #. type: Plain text
  51366. #: guix-git/doc/guix.texi:34461
  51367. msgid "Among the monitoring measures, the most usual ones include:"
  51368. msgstr ""
  51369. #. type: item
  51370. #: guix-git/doc/guix.texi:34463
  51371. #, no-wrap
  51372. msgid "CPU – detect errors at instruction execution and at L1/L2/L3 caches;"
  51373. msgstr ""
  51374. #. type: item
  51375. #: guix-git/doc/guix.texi:34464
  51376. #, no-wrap
  51377. msgid "Memory – add error correction logic (ECC) to detect and correct errors;"
  51378. msgstr ""
  51379. #. type: item
  51380. #: guix-git/doc/guix.texi:34465
  51381. #, no-wrap
  51382. msgid "I/O – add CRC checksums for transferred data;"
  51383. msgstr ""
  51384. #. type: item
  51385. #: guix-git/doc/guix.texi:34466
  51386. #, no-wrap
  51387. msgid "Storage – RAID, journal file systems, checksums, Self-Monitoring,"
  51388. msgstr ""
  51389. #. type: itemize
  51390. #: guix-git/doc/guix.texi:34468
  51391. msgid "Analysis and Reporting Technology (SMART)."
  51392. msgstr ""
  51393. #. type: Plain text
  51394. #: guix-git/doc/guix.texi:34474
  51395. 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."
  51396. msgstr ""
  51397. #. type: Plain text
  51398. #: guix-git/doc/guix.texi:34478
  51399. 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}."
  51400. msgstr ""
  51401. #. type: defvr
  51402. #: guix-git/doc/guix.texi:34479
  51403. #, no-wrap
  51404. msgid "{Scheme Variable} rasdaemon-service-type"
  51405. msgstr ""
  51406. #. type: defvr
  51407. #: guix-git/doc/guix.texi:34482
  51408. msgid "Service type for the @command{rasdaemon} service. It accepts a @code{rasdaemon-configuration} object. Instantiating like"
  51409. msgstr ""
  51410. #. type: lisp
  51411. #: guix-git/doc/guix.texi:34485
  51412. #, no-wrap
  51413. msgid "(service rasdaemon-service-type)\n"
  51414. msgstr ""
  51415. #. type: defvr
  51416. #: guix-git/doc/guix.texi:34489
  51417. msgid "will load with a default configuration, which monitors all events and logs to syslogd."
  51418. msgstr ""
  51419. #. type: deftp
  51420. #: guix-git/doc/guix.texi:34491
  51421. #, fuzzy, no-wrap
  51422. msgid "{Data Type} rasdaemon-configuration"
  51423. msgstr "{数据类型} build-machine"
  51424. #. type: deftp
  51425. #: guix-git/doc/guix.texi:34493
  51426. #, fuzzy
  51427. msgid "The data type representing the configuration of @command{rasdaemon}."
  51428. msgstr "管理操作系统配置。"
  51429. #. type: item
  51430. #: guix-git/doc/guix.texi:34495
  51431. #, fuzzy, no-wrap
  51432. msgid "@code{record?} (default: @code{#f})"
  51433. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  51434. #. type: table
  51435. #: guix-git/doc/guix.texi:34500
  51436. 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}."
  51437. msgstr ""
  51438. #. type: cindex
  51439. #: guix-git/doc/guix.texi:34504
  51440. #, no-wrap
  51441. msgid "zram"
  51442. msgstr ""
  51443. #. type: cindex
  51444. #: guix-git/doc/guix.texi:34505
  51445. #, no-wrap
  51446. msgid "compressed swap"
  51447. msgstr ""
  51448. #. type: cindex
  51449. #: guix-git/doc/guix.texi:34506
  51450. #, no-wrap
  51451. msgid "Compressed RAM-based block devices"
  51452. msgstr ""
  51453. #. type: subsubheading
  51454. #: guix-git/doc/guix.texi:34507
  51455. #, fuzzy, no-wrap
  51456. msgid "Zram Device Service"
  51457. msgstr "游戏服务"
  51458. #. type: Plain text
  51459. #: guix-git/doc/guix.texi:34513
  51460. 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."
  51461. msgstr ""
  51462. #. type: deffn
  51463. #: guix-git/doc/guix.texi:34514
  51464. #, no-wrap
  51465. msgid "{Scheme Variable} zram-device-service-type"
  51466. msgstr ""
  51467. #. type: deffn
  51468. #: guix-git/doc/guix.texi:34518
  51469. 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."
  51470. msgstr ""
  51471. #. type: deftp
  51472. #: guix-git/doc/guix.texi:34519
  51473. #, no-wrap
  51474. msgid "{Data Type} zram-device-configuration"
  51475. msgstr ""
  51476. #. type: deftp
  51477. #: guix-git/doc/guix.texi:34522
  51478. msgid "This is the data type representing the configuration for the zram-device service."
  51479. msgstr ""
  51480. #. type: item
  51481. #: guix-git/doc/guix.texi:34524
  51482. #, fuzzy, no-wrap
  51483. msgid "@code{size} (default @code{\"1G\"})"
  51484. msgstr "@code{speed}(默认值:@code{1.0})"
  51485. #. type: table
  51486. #: guix-git/doc/guix.texi:34528
  51487. 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}."
  51488. msgstr ""
  51489. #. type: item
  51490. #: guix-git/doc/guix.texi:34528
  51491. #, fuzzy, no-wrap
  51492. msgid "@code{compression-algorithm} (default @code{'lzo})"
  51493. msgstr "@code{compression-level}(默认值:@code{3})"
  51494. #. type: table
  51495. #: guix-git/doc/guix.texi:34532
  51496. 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}."
  51497. msgstr ""
  51498. #. type: item
  51499. #: guix-git/doc/guix.texi:34532
  51500. #, fuzzy, no-wrap
  51501. msgid "@code{memory-limit} (default @code{0})"
  51502. msgstr "@code{port}(默认值:@code{22})"
  51503. #. type: table
  51504. #: guix-git/doc/guix.texi:34539
  51505. 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\"}."
  51506. msgstr ""
  51507. #. type: item
  51508. #: guix-git/doc/guix.texi:34539
  51509. #, fuzzy, no-wrap
  51510. msgid "@code{priority} (default @code{-1})"
  51511. msgstr "@code{port}(默认值:@code{22})"
  51512. #. type: table
  51513. #: guix-git/doc/guix.texi:34544
  51514. 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."
  51515. msgstr ""
  51516. #. type: defvr
  51517. #: guix-git/doc/guix.texi:34552
  51518. #, no-wrap
  51519. msgid "{Scheme Variable} hurd-console-service-type"
  51520. msgstr ""
  51521. #. type: defvr
  51522. #: guix-git/doc/guix.texi:34554
  51523. msgid "This service starts the fancy @code{VGA} console client on the Hurd."
  51524. msgstr ""
  51525. #. type: defvr
  51526. #: guix-git/doc/guix.texi:34556
  51527. msgid "The service's value is a @code{hurd-console-configuration} record."
  51528. msgstr ""
  51529. #. type: deftp
  51530. #: guix-git/doc/guix.texi:34558
  51531. #, no-wrap
  51532. msgid "{Data Type} hurd-console-configuration"
  51533. msgstr ""
  51534. #. type: deftp
  51535. #: guix-git/doc/guix.texi:34561
  51536. msgid "This is the data type representing the configuration for the hurd-console-service."
  51537. msgstr ""
  51538. #. type: item
  51539. #: guix-git/doc/guix.texi:34563 guix-git/doc/guix.texi:34579
  51540. #, fuzzy, no-wrap
  51541. msgid "@code{hurd} (default: @var{hurd})"
  51542. msgstr "@code{port}(默认值:@code{22})"
  51543. #. type: table
  51544. #: guix-git/doc/guix.texi:34565 guix-git/doc/guix.texi:34581
  51545. #, fuzzy
  51546. msgid "The Hurd package to use."
  51547. msgstr "软件包数据类型。"
  51548. #. type: defvr
  51549. #: guix-git/doc/guix.texi:34568
  51550. #, no-wrap
  51551. msgid "{Scheme Variable} hurd-getty-service-type"
  51552. msgstr ""
  51553. #. type: defvr
  51554. #: guix-git/doc/guix.texi:34570
  51555. msgid "This service starts a tty using the Hurd @code{getty} program."
  51556. msgstr ""
  51557. #. type: defvr
  51558. #: guix-git/doc/guix.texi:34572
  51559. msgid "The service's value is a @code{hurd-getty-configuration} record."
  51560. msgstr ""
  51561. #. type: deftp
  51562. #: guix-git/doc/guix.texi:34574
  51563. #, no-wrap
  51564. msgid "{Data Type} hurd-getty-configuration"
  51565. msgstr ""
  51566. #. type: deftp
  51567. #: guix-git/doc/guix.texi:34577
  51568. msgid "This is the data type representing the configuration for the hurd-getty-service."
  51569. msgstr ""
  51570. #. type: table
  51571. #: guix-git/doc/guix.texi:34584
  51572. msgid "The name of the console this Getty runs on---e.g., @code{\"tty1\"}."
  51573. msgstr ""
  51574. #. type: item
  51575. #: guix-git/doc/guix.texi:34585
  51576. #, fuzzy, no-wrap
  51577. msgid "@code{baud-rate} (default: @code{38400})"
  51578. msgstr "@code{mate}(默认值:@code{mate})"
  51579. #. type: table
  51580. #: guix-git/doc/guix.texi:34587
  51581. msgid "An integer specifying the baud rate of the tty."
  51582. msgstr ""
  51583. #. type: cindex
  51584. #: guix-git/doc/guix.texi:34594
  51585. #, no-wrap
  51586. msgid "fingerprint"
  51587. msgstr ""
  51588. #. type: subsubheading
  51589. #: guix-git/doc/guix.texi:34595
  51590. #, no-wrap
  51591. msgid "Fingerprint Service"
  51592. msgstr ""
  51593. #. type: Plain text
  51594. #: guix-git/doc/guix.texi:34599
  51595. msgid "The @code{(gnu services authentication)} module provides a DBus service to read and identify fingerprints via a fingerprint sensor."
  51596. msgstr ""
  51597. #. type: defvr
  51598. #: guix-git/doc/guix.texi:34600
  51599. #, no-wrap
  51600. msgid "{Scheme Variable} fprintd-service-type"
  51601. msgstr ""
  51602. #. type: defvr
  51603. #: guix-git/doc/guix.texi:34603
  51604. msgid "The service type for @command{fprintd}, which provides the fingerprint reading capability."
  51605. msgstr ""
  51606. #. type: lisp
  51607. #: guix-git/doc/guix.texi:34606
  51608. #, no-wrap
  51609. msgid "(service fprintd-service-type)\n"
  51610. msgstr ""
  51611. #. type: cindex
  51612. #: guix-git/doc/guix.texi:34609
  51613. #, no-wrap
  51614. msgid "sysctl"
  51615. msgstr ""
  51616. #. type: subsubheading
  51617. #: guix-git/doc/guix.texi:34610
  51618. #, no-wrap
  51619. msgid "System Control Service"
  51620. msgstr ""
  51621. #. type: Plain text
  51622. #: guix-git/doc/guix.texi:34614
  51623. msgid "The @code{(gnu services sysctl)} provides a service to configure kernel parameters at boot."
  51624. msgstr ""
  51625. #. type: defvr
  51626. #: guix-git/doc/guix.texi:34615
  51627. #, no-wrap
  51628. msgid "{Scheme Variable} sysctl-service-type"
  51629. msgstr ""
  51630. #. type: defvr
  51631. #: guix-git/doc/guix.texi:34619
  51632. msgid "The service type for @command{sysctl}, which modifies kernel parameters under @file{/proc/sys/}. To enable IPv4 forwarding, it can be instantiated as:"
  51633. msgstr ""
  51634. #. type: lisp
  51635. #: guix-git/doc/guix.texi:34624
  51636. #, no-wrap
  51637. msgid ""
  51638. "(service sysctl-service-type\n"
  51639. " (sysctl-configuration\n"
  51640. " (settings '((\"net.ipv4.ip_forward\" . \"1\")))))\n"
  51641. msgstr ""
  51642. #. type: defvr
  51643. #: guix-git/doc/guix.texi:34631
  51644. 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}})."
  51645. msgstr ""
  51646. #. type: lisp
  51647. #: guix-git/doc/guix.texi:34638
  51648. #, no-wrap
  51649. msgid ""
  51650. "(modify-services %base-services\n"
  51651. " (sysctl-service-type config =>\n"
  51652. " (sysctl-configuration\n"
  51653. " (settings (append '((\"net.ipv4.ip_forward\" . \"1\"))\n"
  51654. " %default-sysctl-settings)))))\n"
  51655. msgstr ""
  51656. #. type: deftp
  51657. #: guix-git/doc/guix.texi:34642
  51658. #, no-wrap
  51659. msgid "{Data Type} sysctl-configuration"
  51660. msgstr ""
  51661. #. type: deftp
  51662. #: guix-git/doc/guix.texi:34644
  51663. msgid "The data type representing the configuration of @command{sysctl}."
  51664. msgstr ""
  51665. #. type: item
  51666. #: guix-git/doc/guix.texi:34646
  51667. #, no-wrap
  51668. msgid "@code{sysctl} (default: @code{(file-append procps \"/sbin/sysctl\"})"
  51669. msgstr ""
  51670. #. type: table
  51671. #: guix-git/doc/guix.texi:34648
  51672. msgid "The @command{sysctl} executable to use."
  51673. msgstr ""
  51674. #. type: item
  51675. #: guix-git/doc/guix.texi:34649
  51676. #, fuzzy, no-wrap
  51677. msgid "@code{settings} (default: @code{%default-sysctl-settings})"
  51678. msgstr "@code{mate}(默认值:@code{mate})"
  51679. #. type: table
  51680. #: guix-git/doc/guix.texi:34651
  51681. msgid "An association list specifies kernel parameters and their values."
  51682. msgstr ""
  51683. #. type: defvr
  51684. #: guix-git/doc/guix.texi:34654
  51685. #, no-wrap
  51686. msgid "{Scheme Variable} %default-sysctl-settings"
  51687. msgstr ""
  51688. #. type: defvr
  51689. #: guix-git/doc/guix.texi:34657
  51690. msgid "An association list specifying the default @command{sysctl} parameters on Guix System."
  51691. msgstr ""
  51692. #. type: cindex
  51693. #: guix-git/doc/guix.texi:34659
  51694. #, no-wrap
  51695. msgid "pcscd"
  51696. msgstr ""
  51697. #. type: subsubheading
  51698. #: guix-git/doc/guix.texi:34660
  51699. #, no-wrap
  51700. msgid "PC/SC Smart Card Daemon Service"
  51701. msgstr ""
  51702. #. type: Plain text
  51703. #: guix-git/doc/guix.texi:34667
  51704. 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."
  51705. msgstr ""
  51706. #. type: defvr
  51707. #: guix-git/doc/guix.texi:34668
  51708. #, no-wrap
  51709. msgid "{Scheme Variable} pcscd-service-type"
  51710. msgstr ""
  51711. #. type: defvr
  51712. #: guix-git/doc/guix.texi:34672
  51713. 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:"
  51714. msgstr ""
  51715. #. type: lisp
  51716. #: guix-git/doc/guix.texi:34675
  51717. #, no-wrap
  51718. msgid "(service pcscd-service-type)\n"
  51719. msgstr ""
  51720. #. type: deftp
  51721. #: guix-git/doc/guix.texi:34678
  51722. #, no-wrap
  51723. msgid "{Data Type} pcscd-configuration"
  51724. msgstr ""
  51725. #. type: deftp
  51726. #: guix-git/doc/guix.texi:34680
  51727. msgid "The data type representing the configuration of @command{pcscd}."
  51728. msgstr ""
  51729. #. type: item
  51730. #: guix-git/doc/guix.texi:34682
  51731. #, no-wrap
  51732. msgid "@code{pcsc-lite} (default: @code{pcsc-lite})"
  51733. msgstr ""
  51734. #. type: table
  51735. #: guix-git/doc/guix.texi:34684
  51736. msgid "The pcsc-lite package that provides pcscd."
  51737. msgstr ""
  51738. #. type: item
  51739. #: guix-git/doc/guix.texi:34684
  51740. #, no-wrap
  51741. msgid "@code{usb-drivers} (default: @code{(list ccid)})"
  51742. msgstr ""
  51743. #. type: table
  51744. #: guix-git/doc/guix.texi:34687
  51745. 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."
  51746. msgstr ""
  51747. #. type: cindex
  51748. #: guix-git/doc/guix.texi:34690
  51749. #, no-wrap
  51750. msgid "lirc"
  51751. msgstr ""
  51752. #. type: subsubheading
  51753. #: guix-git/doc/guix.texi:34691
  51754. #, no-wrap
  51755. msgid "Lirc Service"
  51756. msgstr ""
  51757. #. type: Plain text
  51758. #: guix-git/doc/guix.texi:34694
  51759. msgid "The @code{(gnu services lirc)} module provides the following service."
  51760. msgstr ""
  51761. #. type: deffn
  51762. #: guix-git/doc/guix.texi:34695
  51763. #, no-wrap
  51764. msgid "{Scheme Procedure} lirc-service [#:lirc lirc] @"
  51765. msgstr ""
  51766. #. type: deffn
  51767. #: guix-git/doc/guix.texi:34700
  51768. 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."
  51769. msgstr ""
  51770. #. type: deffn
  51771. #: guix-git/doc/guix.texi:34704
  51772. msgid "Optionally, @var{device}, @var{driver} and @var{config-file} (configuration file name) may be specified. See @command{lircd} manual for details."
  51773. msgstr ""
  51774. #. type: deffn
  51775. #: guix-git/doc/guix.texi:34707
  51776. msgid "Finally, @var{extra-options} is a list of additional command-line options passed to @command{lircd}."
  51777. msgstr ""
  51778. #. type: cindex
  51779. #: guix-git/doc/guix.texi:34709
  51780. #, no-wrap
  51781. msgid "spice"
  51782. msgstr ""
  51783. #. type: subsubheading
  51784. #: guix-git/doc/guix.texi:34710
  51785. #, no-wrap
  51786. msgid "Spice Service"
  51787. msgstr ""
  51788. #. type: Plain text
  51789. #: guix-git/doc/guix.texi:34713
  51790. msgid "The @code{(gnu services spice)} module provides the following service."
  51791. msgstr ""
  51792. #. type: deffn
  51793. #: guix-git/doc/guix.texi:34714
  51794. #, no-wrap
  51795. msgid "{Scheme Procedure} spice-vdagent-service [#:spice-vdagent]"
  51796. msgstr ""
  51797. #. type: deffn
  51798. #: guix-git/doc/guix.texi:34718
  51799. 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."
  51800. msgstr ""
  51801. #. type: cindex
  51802. #: guix-git/doc/guix.texi:34720
  51803. #, no-wrap
  51804. msgid "inputattach"
  51805. msgstr ""
  51806. #. type: subsubheading
  51807. #: guix-git/doc/guix.texi:34721
  51808. #, no-wrap
  51809. msgid "inputattach Service"
  51810. msgstr ""
  51811. #. type: cindex
  51812. #: guix-git/doc/guix.texi:34723
  51813. #, no-wrap
  51814. msgid "tablet input, for Xorg"
  51815. msgstr ""
  51816. #. type: cindex
  51817. #: guix-git/doc/guix.texi:34724
  51818. #, no-wrap
  51819. msgid "touchscreen input, for Xorg"
  51820. msgstr ""
  51821. #. type: Plain text
  51822. #: guix-git/doc/guix.texi:34728
  51823. 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."
  51824. msgstr ""
  51825. #. type: deffn
  51826. #: guix-git/doc/guix.texi:34729
  51827. #, no-wrap
  51828. msgid "{Scheme Variable} inputattach-service-type"
  51829. msgstr ""
  51830. #. type: deffn
  51831. #: guix-git/doc/guix.texi:34732
  51832. msgid "Type of a service that runs @command{inputattach} on a device and dispatches events from it."
  51833. msgstr ""
  51834. #. type: deftp
  51835. #: guix-git/doc/guix.texi:34734
  51836. #, no-wrap
  51837. msgid "{Data Type} inputattach-configuration"
  51838. msgstr ""
  51839. #. type: item
  51840. #: guix-git/doc/guix.texi:34736
  51841. #, no-wrap
  51842. msgid "@code{device-type} (default: @code{\"wacom\"})"
  51843. msgstr ""
  51844. #. type: table
  51845. #: guix-git/doc/guix.texi:34739
  51846. 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."
  51847. msgstr ""
  51848. #. type: item
  51849. #: guix-git/doc/guix.texi:34740
  51850. #, no-wrap
  51851. msgid "@code{device} (default: @code{\"/dev/ttyS0\"})"
  51852. msgstr ""
  51853. #. type: table
  51854. #: guix-git/doc/guix.texi:34742
  51855. msgid "The device file to connect to the device."
  51856. msgstr ""
  51857. #. type: table
  51858. #: guix-git/doc/guix.texi:34746
  51859. msgid "Baud rate to use for the serial connection. Should be a number or @code{#f}."
  51860. msgstr ""
  51861. #. type: item
  51862. #: guix-git/doc/guix.texi:34747
  51863. #, no-wrap
  51864. msgid "@code{log-file} (default: @code{#f})"
  51865. msgstr ""
  51866. #. type: table
  51867. #: guix-git/doc/guix.texi:34749
  51868. msgid "If true, this must be the name of a file to log messages to."
  51869. msgstr ""
  51870. #. type: subsubheading
  51871. #: guix-git/doc/guix.texi:34752
  51872. #, fuzzy, no-wrap
  51873. msgid "Dictionary Service"
  51874. msgstr "定义服务"
  51875. #. type: cindex
  51876. #: guix-git/doc/guix.texi:34753
  51877. #, no-wrap
  51878. msgid "dictionary"
  51879. msgstr ""
  51880. #. type: Plain text
  51881. #: guix-git/doc/guix.texi:34755
  51882. msgid "The @code{(gnu services dict)} module provides the following service:"
  51883. msgstr ""
  51884. #. type: defvr
  51885. #: guix-git/doc/guix.texi:34756
  51886. #, no-wrap
  51887. msgid "{Scheme Variable} dicod-service-type"
  51888. msgstr ""
  51889. #. type: defvr
  51890. #: guix-git/doc/guix.texi:34759
  51891. 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})."
  51892. msgstr ""
  51893. #. type: deffn
  51894. #: guix-git/doc/guix.texi:34761
  51895. #, no-wrap
  51896. msgid "{Scheme Procedure} dicod-service [#:config (dicod-configuration)]"
  51897. msgstr ""
  51898. #. type: deffn
  51899. #: guix-git/doc/guix.texi:34764
  51900. msgid "Return a service that runs the @command{dicod} daemon, an implementation of DICT server (@pxref{Dicod,,, dico, GNU Dico Manual})."
  51901. msgstr ""
  51902. #. type: deffn
  51903. #: guix-git/doc/guix.texi:34768
  51904. 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."
  51905. msgstr ""
  51906. #. type: deffn
  51907. #: guix-git/doc/guix.texi:34772
  51908. 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})."
  51909. msgstr ""
  51910. #. type: deftp
  51911. #: guix-git/doc/guix.texi:34774
  51912. #, no-wrap
  51913. msgid "{Data Type} dicod-configuration"
  51914. msgstr ""
  51915. #. type: deftp
  51916. #: guix-git/doc/guix.texi:34776
  51917. msgid "Data type representing the configuration of dicod."
  51918. msgstr ""
  51919. #. type: item
  51920. #: guix-git/doc/guix.texi:34778
  51921. #, no-wrap
  51922. msgid "@code{dico} (default: @var{dico})"
  51923. msgstr ""
  51924. #. type: table
  51925. #: guix-git/doc/guix.texi:34780
  51926. msgid "Package object of the GNU Dico dictionary server."
  51927. msgstr ""
  51928. #. type: item
  51929. #: guix-git/doc/guix.texi:34781
  51930. #, no-wrap
  51931. msgid "@code{interfaces} (default: @var{'(\"localhost\")})"
  51932. msgstr ""
  51933. #. type: table
  51934. #: guix-git/doc/guix.texi:34785
  51935. 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})."
  51936. msgstr ""
  51937. #. type: item
  51938. #: guix-git/doc/guix.texi:34786
  51939. #, no-wrap
  51940. msgid "@code{handlers} (default: @var{'()})"
  51941. msgstr ""
  51942. #. type: table
  51943. #: guix-git/doc/guix.texi:34788
  51944. msgid "List of @code{<dicod-handler>} objects denoting handlers (module instances)."
  51945. msgstr ""
  51946. #. type: item
  51947. #: guix-git/doc/guix.texi:34789
  51948. #, no-wrap
  51949. msgid "@code{databases} (default: @var{(list %dicod-database:gcide)})"
  51950. msgstr ""
  51951. #. type: table
  51952. #: guix-git/doc/guix.texi:34791
  51953. msgid "List of @code{<dicod-database>} objects denoting dictionaries to be served."
  51954. msgstr ""
  51955. #. type: deftp
  51956. #: guix-git/doc/guix.texi:34794
  51957. #, no-wrap
  51958. msgid "{Data Type} dicod-handler"
  51959. msgstr ""
  51960. #. type: deftp
  51961. #: guix-git/doc/guix.texi:34796
  51962. msgid "Data type representing a dictionary handler (module instance)."
  51963. msgstr ""
  51964. #. type: table
  51965. #: guix-git/doc/guix.texi:34800
  51966. msgid "Name of the handler (module instance)."
  51967. msgstr ""
  51968. #. type: item
  51969. #: guix-git/doc/guix.texi:34801
  51970. #, no-wrap
  51971. msgid "@code{module} (default: @var{#f})"
  51972. msgstr ""
  51973. #. type: table
  51974. #: guix-git/doc/guix.texi:34805
  51975. 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})."
  51976. msgstr ""
  51977. #. type: table
  51978. #: guix-git/doc/guix.texi:34808
  51979. msgid "List of strings or gexps representing the arguments for the module handler"
  51980. msgstr ""
  51981. #. type: deftp
  51982. #: guix-git/doc/guix.texi:34811
  51983. #, no-wrap
  51984. msgid "{Data Type} dicod-database"
  51985. msgstr ""
  51986. #. type: deftp
  51987. #: guix-git/doc/guix.texi:34813
  51988. msgid "Data type representing a dictionary database."
  51989. msgstr ""
  51990. #. type: table
  51991. #: guix-git/doc/guix.texi:34817
  51992. msgid "Name of the database, will be used in DICT commands."
  51993. msgstr ""
  51994. #. type: code{#1}
  51995. #: guix-git/doc/guix.texi:34818
  51996. #, no-wrap
  51997. msgid "handler"
  51998. msgstr ""
  51999. #. type: table
  52000. #: guix-git/doc/guix.texi:34821
  52001. msgid "Name of the dicod handler (module instance) used by this database (@pxref{Handlers,,, dico, GNU Dico Manual})."
  52002. msgstr ""
  52003. #. type: item
  52004. #: guix-git/doc/guix.texi:34822
  52005. #, no-wrap
  52006. msgid "@code{complex?} (default: @var{#f})"
  52007. msgstr ""
  52008. #. type: table
  52009. #: guix-git/doc/guix.texi:34825
  52010. msgid "Whether the database configuration complex. The complex configuration will need a corresponding @code{<dicod-handler>} object, otherwise not."
  52011. msgstr ""
  52012. #. type: table
  52013. #: guix-git/doc/guix.texi:34829
  52014. msgid "List of strings or gexps representing the arguments for the database (@pxref{Databases,,, dico, GNU Dico Manual})."
  52015. msgstr ""
  52016. #. type: defvr
  52017. #: guix-git/doc/guix.texi:34832
  52018. #, no-wrap
  52019. msgid "{Scheme Variable} %dicod-database:gcide"
  52020. msgstr ""
  52021. #. type: defvr
  52022. #: guix-git/doc/guix.texi:34835
  52023. msgid "A @code{<dicod-database>} object serving the GNU Collaborative International Dictionary of English using the @code{gcide} package."
  52024. msgstr ""
  52025. #. type: Plain text
  52026. #: guix-git/doc/guix.texi:34838
  52027. msgid "The following is an example @code{dicod-service} configuration."
  52028. msgstr ""
  52029. #. type: lisp
  52030. #: guix-git/doc/guix.texi:34853
  52031. #, no-wrap
  52032. msgid ""
  52033. "(dicod-service #:config\n"
  52034. " (dicod-configuration\n"
  52035. " (handlers (list (dicod-handler\n"
  52036. " (name \"wordnet\")\n"
  52037. " (module \"dictorg\")\n"
  52038. " (options\n"
  52039. " (list #~(string-append \"dbdir=\" #$wordnet))))))\n"
  52040. " (databases (list (dicod-database\n"
  52041. " (name \"wordnet\")\n"
  52042. " (complex? #t)\n"
  52043. " (handler \"wordnet\")\n"
  52044. " (options '(\"database=wn\")))\n"
  52045. " %dicod-database:gcide))))\n"
  52046. msgstr ""
  52047. #. type: cindex
  52048. #: guix-git/doc/guix.texi:34855
  52049. #, no-wrap
  52050. msgid "Docker"
  52051. msgstr ""
  52052. #. type: subsubheading
  52053. #: guix-git/doc/guix.texi:34856
  52054. #, no-wrap
  52055. msgid "Docker Service"
  52056. msgstr ""
  52057. #. type: Plain text
  52058. #: guix-git/doc/guix.texi:34859
  52059. msgid "The @code{(gnu services docker)} module provides the following services."
  52060. msgstr ""
  52061. #. type: defvr
  52062. #: guix-git/doc/guix.texi:34860
  52063. #, no-wrap
  52064. msgid "{Scheme Variable} docker-service-type"
  52065. msgstr ""
  52066. #. type: defvr
  52067. #: guix-git/doc/guix.texi:34865
  52068. 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."
  52069. msgstr ""
  52070. #. type: deftp
  52071. #: guix-git/doc/guix.texi:34868
  52072. #, no-wrap
  52073. msgid "{Data Type} docker-configuration"
  52074. msgstr ""
  52075. #. type: deftp
  52076. #: guix-git/doc/guix.texi:34870
  52077. msgid "This is the data type representing the configuration of Docker and Containerd."
  52078. msgstr ""
  52079. #. type: item
  52080. #: guix-git/doc/guix.texi:34873
  52081. #, fuzzy, no-wrap
  52082. msgid "@code{docker} (default: @code{docker})"
  52083. msgstr "@code{xfce}(默认值:@code{xfce})"
  52084. #. type: table
  52085. #: guix-git/doc/guix.texi:34875
  52086. msgid "The Docker daemon package to use."
  52087. msgstr ""
  52088. #. type: item
  52089. #: guix-git/doc/guix.texi:34876
  52090. #, fuzzy, no-wrap
  52091. msgid "@code{docker-cli} (default: @code{docker-cli})"
  52092. msgstr "@code{xfce}(默认值:@code{xfce})"
  52093. #. type: table
  52094. #: guix-git/doc/guix.texi:34878
  52095. msgid "The Docker client package to use."
  52096. msgstr ""
  52097. #. type: item
  52098. #: guix-git/doc/guix.texi:34879
  52099. #, no-wrap
  52100. msgid "@code{containerd} (default: @var{containerd})"
  52101. msgstr ""
  52102. #. type: table
  52103. #: guix-git/doc/guix.texi:34881
  52104. msgid "The Containerd package to use."
  52105. msgstr ""
  52106. #. type: item
  52107. #: guix-git/doc/guix.texi:34882
  52108. #, no-wrap
  52109. msgid "@code{proxy} (default @var{docker-libnetwork-cmd-proxy})"
  52110. msgstr ""
  52111. #. type: table
  52112. #: guix-git/doc/guix.texi:34884
  52113. msgid "The Docker user-land networking proxy package to use."
  52114. msgstr ""
  52115. #. type: item
  52116. #: guix-git/doc/guix.texi:34885
  52117. #, fuzzy, no-wrap
  52118. msgid "@code{enable-proxy?} (default @code{#t})"
  52119. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  52120. #. type: table
  52121. #: guix-git/doc/guix.texi:34887
  52122. msgid "Enable or disable the use of the Docker user-land networking proxy."
  52123. msgstr ""
  52124. #. type: item
  52125. #: guix-git/doc/guix.texi:34888
  52126. #, fuzzy, no-wrap
  52127. msgid "@code{debug?} (default @code{#f})"
  52128. msgstr "@code{challenge}(默认值:@code{#f})"
  52129. #. type: table
  52130. #: guix-git/doc/guix.texi:34890
  52131. #, fuzzy
  52132. msgid "Enable or disable debug output."
  52133. msgstr "怎么开启或关闭substitute。"
  52134. #. type: item
  52135. #: guix-git/doc/guix.texi:34891
  52136. #, fuzzy, no-wrap
  52137. msgid "@code{enable-iptables?} (default @code{#t})"
  52138. msgstr "@code{mate}(默认值:@code{mate})"
  52139. #. type: table
  52140. #: guix-git/doc/guix.texi:34893
  52141. msgid "Enable or disable the addition of iptables rules."
  52142. msgstr ""
  52143. #. type: item
  52144. #: guix-git/doc/guix.texi:34894
  52145. #, fuzzy, no-wrap
  52146. msgid "@code{environment-variables} (default: @code{()})"
  52147. msgstr "@code{features} (@code{'()})"
  52148. #. type: table
  52149. #: guix-git/doc/guix.texi:34896
  52150. msgid "List of environment variables to set for @command{dockerd}."
  52151. msgstr ""
  52152. #. type: table
  52153. #: guix-git/doc/guix.texi:34899
  52154. msgid "This must be a list of strings where each string has the form @samp{@var{key}=@var{value}} as in this example:"
  52155. msgstr ""
  52156. #. type: lisp
  52157. #: guix-git/doc/guix.texi:34903
  52158. #, no-wrap
  52159. msgid ""
  52160. "(list \"LANGUAGE=eo:ca:eu\"\n"
  52161. " \"TMPDIR=/tmp/dockerd\")\n"
  52162. msgstr ""
  52163. #. type: cindex
  52164. #: guix-git/doc/guix.texi:34908
  52165. #, no-wrap
  52166. msgid "Singularity, container service"
  52167. msgstr ""
  52168. #. type: defvr
  52169. #: guix-git/doc/guix.texi:34909
  52170. #, no-wrap
  52171. msgid "{Scheme Variable} singularity-service-type"
  52172. msgstr ""
  52173. #. type: defvr
  52174. #: guix-git/doc/guix.texi:34914
  52175. 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."
  52176. msgstr ""
  52177. #. type: defvr
  52178. #: guix-git/doc/guix.texi:34918
  52179. 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."
  52180. msgstr ""
  52181. #. type: cindex
  52182. #: guix-git/doc/guix.texi:34920
  52183. #, no-wrap
  52184. msgid "Audit"
  52185. msgstr ""
  52186. #. type: subsubheading
  52187. #: guix-git/doc/guix.texi:34921
  52188. #, fuzzy, no-wrap
  52189. msgid "Auditd Service"
  52190. msgstr "音频服务"
  52191. #. type: Plain text
  52192. #: guix-git/doc/guix.texi:34924
  52193. msgid "The @code{(gnu services auditd)} module provides the following service."
  52194. msgstr ""
  52195. #. type: defvr
  52196. #: guix-git/doc/guix.texi:34925
  52197. #, no-wrap
  52198. msgid "{Scheme Variable} auditd-service-type"
  52199. msgstr ""
  52200. #. type: defvr
  52201. #: guix-git/doc/guix.texi:34930
  52202. 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."
  52203. msgstr ""
  52204. #. type: defvr
  52205. #: guix-git/doc/guix.texi:34932
  52206. msgid "Examples of things that can be tracked:"
  52207. msgstr ""
  52208. #. type: enumerate
  52209. #: guix-git/doc/guix.texi:34936
  52210. #, fuzzy
  52211. msgid "File accesses"
  52212. msgstr "文件系统"
  52213. #. type: enumerate
  52214. #: guix-git/doc/guix.texi:34938
  52215. #, fuzzy
  52216. msgid "System calls"
  52217. msgstr "系统安装"
  52218. #. type: enumerate
  52219. #: guix-git/doc/guix.texi:34940
  52220. msgid "Invoked commands"
  52221. msgstr ""
  52222. #. type: enumerate
  52223. #: guix-git/doc/guix.texi:34942
  52224. msgid "Failed login attempts"
  52225. msgstr ""
  52226. #. type: enumerate
  52227. #: guix-git/doc/guix.texi:34944
  52228. msgid "Firewall filtering"
  52229. msgstr ""
  52230. #. type: enumerate
  52231. #: guix-git/doc/guix.texi:34946
  52232. #, fuzzy
  52233. msgid "Network access"
  52234. msgstr "网络服务"
  52235. #. type: defvr
  52236. #: guix-git/doc/guix.texi:34957
  52237. 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}."
  52238. msgstr ""
  52239. #. type: deftp
  52240. #: guix-git/doc/guix.texi:34960
  52241. #, fuzzy, no-wrap
  52242. msgid "{Data Type} auditd-configuration"
  52243. msgstr "{数据类型} build-machine"
  52244. #. type: deftp
  52245. #: guix-git/doc/guix.texi:34962
  52246. msgid "This is the data type representing the configuration of auditd."
  52247. msgstr ""
  52248. #. type: item
  52249. #: guix-git/doc/guix.texi:34965
  52250. #, fuzzy, no-wrap
  52251. msgid "@code{audit} (default: @code{audit})"
  52252. msgstr "@code{mate}(默认值:@code{mate})"
  52253. #. type: table
  52254. #: guix-git/doc/guix.texi:34967
  52255. #, fuzzy
  52256. msgid "The audit package to use."
  52257. msgstr "软件包数据类型。"
  52258. #. type: item
  52259. #: guix-git/doc/guix.texi:34968
  52260. #, no-wrap
  52261. msgid "@code{configuration-directory} (default: @code{%default-auditd-configuration-directory})"
  52262. msgstr ""
  52263. #. type: table
  52264. #: guix-git/doc/guix.texi:34972
  52265. 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."
  52266. msgstr ""
  52267. #. type: cindex
  52268. #: guix-git/doc/guix.texi:34976
  52269. #, no-wrap
  52270. msgid "rshiny"
  52271. msgstr ""
  52272. #. type: subsubheading
  52273. #: guix-git/doc/guix.texi:34977
  52274. #, fuzzy, no-wrap
  52275. msgid "R-Shiny service"
  52276. msgstr "电话服务。"
  52277. #. type: Plain text
  52278. #: guix-git/doc/guix.texi:34980
  52279. msgid "The @code{(gnu services science)} module provides the following service."
  52280. msgstr ""
  52281. #. type: defvr
  52282. #: guix-git/doc/guix.texi:34981
  52283. #, no-wrap
  52284. msgid "{Scheme Variable} rshiny-service-type"
  52285. msgstr ""
  52286. #. type: defvr
  52287. #: guix-git/doc/guix.texi:34986
  52288. 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}."
  52289. msgstr ""
  52290. #. type: deftp
  52291. #: guix-git/doc/guix.texi:34987
  52292. #, no-wrap
  52293. msgid "{Data Type} rshiny-configuration"
  52294. msgstr ""
  52295. #. type: deftp
  52296. #: guix-git/doc/guix.texi:34989
  52297. msgid "This is the data type representing the configuration of rshiny."
  52298. msgstr ""
  52299. #. type: item
  52300. #: guix-git/doc/guix.texi:34992
  52301. #, fuzzy, no-wrap
  52302. msgid "@code{package} (default: @code{r-shiny})"
  52303. msgstr "@code{challenge}(默认值:@code{#f})"
  52304. #. type: table
  52305. #: guix-git/doc/guix.texi:34994
  52306. #, fuzzy
  52307. msgid "The package to use."
  52308. msgstr "软件包数据类型。"
  52309. #. type: item
  52310. #: guix-git/doc/guix.texi:34995
  52311. #, fuzzy, no-wrap
  52312. msgid "@code{binary} (defaunlt @code{\"rshiny\"})"
  52313. msgstr "@code{display}(默认值:@code{\":0\"})"
  52314. #. type: table
  52315. #: guix-git/doc/guix.texi:34998
  52316. msgid "The name of the binary or shell script located at @code{package/bin/} to run when the service is run."
  52317. msgstr ""
  52318. #. type: table
  52319. #: guix-git/doc/guix.texi:35000
  52320. msgid "The common way to create this file is as follows:"
  52321. msgstr ""
  52322. #. type: lisp
  52323. #: guix-git/doc/guix.texi:35017
  52324. #, no-wrap
  52325. msgid ""
  52326. "@dots{}\n"
  52327. "(let* ((out (assoc-ref %outputs \"out\"))\n"
  52328. " (targetdir (string-append out \"/share/\" ,name))\n"
  52329. " (app (string-append out \"/bin/\" ,name))\n"
  52330. " (Rbin (search-input-file %build-inputs \"/bin/Rscript\")))\n"
  52331. " ;; @dots{}\n"
  52332. " (mkdir-p (string-append out \"/bin\"))\n"
  52333. " (call-with-output-file app\n"
  52334. " (lambda (port)\n"
  52335. " (format port\n"
  52336. "\"#!~a\n"
  52337. "library(shiny)\n"
  52338. "setwd(\\\"~a\\\")\n"
  52339. "runApp(launch.browser=0, port=4202)~%\\n\"\n"
  52340. " Rbin targetdir))))\n"
  52341. msgstr ""
  52342. #. type: cindex
  52343. #: guix-git/doc/guix.texi:35023
  52344. #, no-wrap
  52345. msgid "Nix"
  52346. msgstr ""
  52347. #. type: subsubheading
  52348. #: guix-git/doc/guix.texi:35024
  52349. #, fuzzy, no-wrap
  52350. msgid "Nix service"
  52351. msgstr "DNS服务"
  52352. #. type: Plain text
  52353. #: guix-git/doc/guix.texi:35027
  52354. msgid "The @code{(gnu services nix)} module provides the following service."
  52355. msgstr ""
  52356. #. type: defvr
  52357. #: guix-git/doc/guix.texi:35028
  52358. #, no-wrap
  52359. msgid "{Scheme Variable} nix-service-type"
  52360. msgstr ""
  52361. #. type: defvr
  52362. #: guix-git/doc/guix.texi:35033
  52363. 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:"
  52364. msgstr ""
  52365. #. type: lisp
  52366. #: guix-git/doc/guix.texi:35038
  52367. #, no-wrap
  52368. msgid ""
  52369. "(use-modules (gnu))\n"
  52370. "(use-service-modules nix)\n"
  52371. "(use-package-modules package-management)\n"
  52372. "\n"
  52373. msgstr ""
  52374. #. type: lisp
  52375. #: guix-git/doc/guix.texi:35043
  52376. #, no-wrap
  52377. msgid ""
  52378. "(operating-system\n"
  52379. " ;; @dots{}\n"
  52380. " (packages (append (list nix)\n"
  52381. " %base-packages))\n"
  52382. "\n"
  52383. msgstr ""
  52384. #. type: lisp
  52385. #: guix-git/doc/guix.texi:35046
  52386. #, no-wrap
  52387. msgid ""
  52388. " (services (append (list (service nix-service-type))\n"
  52389. " %base-services)))\n"
  52390. msgstr ""
  52391. #. type: defvr
  52392. #: guix-git/doc/guix.texi:35049
  52393. msgid "After @command{guix system reconfigure} configure Nix for your user:"
  52394. msgstr ""
  52395. #. type: item
  52396. #: guix-git/doc/guix.texi:35051
  52397. #, no-wrap
  52398. msgid "Add a Nix channel and update it. See"
  52399. msgstr ""
  52400. #. type: itemize
  52401. #: guix-git/doc/guix.texi:35053
  52402. msgid "@url{https://nixos.org/nix/manual/, Nix Package Manager Guide}."
  52403. msgstr ""
  52404. #. type: item
  52405. #: guix-git/doc/guix.texi:35054
  52406. #, no-wrap
  52407. msgid "Create a symlink to your profile and activate Nix profile:"
  52408. msgstr ""
  52409. #. type: example
  52410. #: guix-git/doc/guix.texi:35060
  52411. #, no-wrap
  52412. msgid ""
  52413. "$ ln -s \"/nix/var/nix/profiles/per-user/$USER/profile\" ~/.nix-profile\n"
  52414. "$ source /run/current-system/profile/etc/profile.d/nix.sh\n"
  52415. msgstr ""
  52416. #. type: deftp
  52417. #: guix-git/doc/guix.texi:35064
  52418. #, fuzzy, no-wrap
  52419. msgid "{Data Type} nix-configuration"
  52420. msgstr "{数据类型} build-machine"
  52421. #. type: deftp
  52422. #: guix-git/doc/guix.texi:35066
  52423. msgid "This data type represents the configuration of the Nix daemon."
  52424. msgstr ""
  52425. #. type: item
  52426. #: guix-git/doc/guix.texi:35068
  52427. #, fuzzy, no-wrap
  52428. msgid "@code{nix} (default: @code{nix})"
  52429. msgstr "@code{xfce}(默认值:@code{xfce})"
  52430. #. type: table
  52431. #: guix-git/doc/guix.texi:35070
  52432. #, fuzzy
  52433. msgid "The Nix package to use."
  52434. msgstr "软件包数据类型。"
  52435. #. type: item
  52436. #: guix-git/doc/guix.texi:35071
  52437. #, fuzzy, no-wrap
  52438. msgid "@code{sandbox} (default: @code{#t})"
  52439. msgstr "@code{speed}(默认值:@code{1.0})"
  52440. #. type: table
  52441. #: guix-git/doc/guix.texi:35073
  52442. msgid "Specifies whether builds are sandboxed by default."
  52443. msgstr ""
  52444. #. type: item
  52445. #: guix-git/doc/guix.texi:35074
  52446. #, fuzzy, no-wrap
  52447. msgid "@code{build-sandbox-items} (default: @code{'()})"
  52448. msgstr "@code{includes}(默认值:@code{'()})"
  52449. #. type: table
  52450. #: guix-git/doc/guix.texi:35077
  52451. msgid "This is a list of strings or objects appended to the @code{build-sandbox-items} field of the configuration file."
  52452. msgstr ""
  52453. #. type: table
  52454. #: guix-git/doc/guix.texi:35085
  52455. msgid "Extra command line options for @code{nix-service-type}."
  52456. msgstr ""
  52457. #. type: cindex
  52458. #: guix-git/doc/guix.texi:35091
  52459. #, no-wrap
  52460. msgid "setuid programs"
  52461. msgstr ""
  52462. #. type: Plain text
  52463. #: guix-git/doc/guix.texi:35101
  52464. 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)."
  52465. msgstr ""
  52466. #. type: Plain text
  52467. #: guix-git/doc/guix.texi:35108
  52468. 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."
  52469. msgstr ""
  52470. #. type: Plain text
  52471. #: guix-git/doc/guix.texi:35115
  52472. msgid "The @code{setuid-programs} field of an @code{operating-system} declaration contains a list of @code{<setuid-program>} denoting the names of programs to have a setuid or setgid bit set (@pxref{Using the Configuration System}). For instance, the @command{mount.nfs} program, which is part of the nfs-utils package, with a setuid root can be designated like this:"
  52473. msgstr ""
  52474. #. type: lisp
  52475. #: guix-git/doc/guix.texi:35119
  52476. #, no-wrap
  52477. msgid ""
  52478. "(setuid-program\n"
  52479. " (program (file-append nfs-utils \"/sbin/mount.nfs\")))\n"
  52480. msgstr ""
  52481. #. type: Plain text
  52482. #: guix-git/doc/guix.texi:35124
  52483. msgid "And then, to make @command{mount.nfs} setuid on your system, add the previous example to your operating system declaration by appending it to @code{%setuid-programs} like this:"
  52484. msgstr ""
  52485. #. type: lisp
  52486. #: guix-git/doc/guix.texi:35132
  52487. #, no-wrap
  52488. msgid ""
  52489. "(operating-system\n"
  52490. " ;; Some fields omitted...\n"
  52491. " (setuid-programs\n"
  52492. " (append (list (setuid-program\n"
  52493. " (program (file-append nfs-utils \"/sbin/mount.nfs\"))))\n"
  52494. " %setuid-programs)))\n"
  52495. msgstr ""
  52496. #. type: deftp
  52497. #: guix-git/doc/guix.texi:35134
  52498. #, fuzzy, no-wrap
  52499. msgid "{Data Type} setuid-program"
  52500. msgstr "{数据类型} build-machine"
  52501. #. type: deftp
  52502. #: guix-git/doc/guix.texi:35136
  52503. #, fuzzy
  52504. msgid "This data type represents a program with a setuid or setgid bit set."
  52505. msgstr "管理操作系统配置。"
  52506. #. type: code{#1}
  52507. #: guix-git/doc/guix.texi:35138
  52508. #, no-wrap
  52509. msgid "program"
  52510. msgstr ""
  52511. #. type: table
  52512. #: guix-git/doc/guix.texi:35140
  52513. msgid "A file-like object having its setuid and/or setgid bit set."
  52514. msgstr ""
  52515. #. type: item
  52516. #: guix-git/doc/guix.texi:35141
  52517. #, fuzzy, no-wrap
  52518. msgid "@code{setuid?} (default: @code{#t})"
  52519. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  52520. #. type: table
  52521. #: guix-git/doc/guix.texi:35143
  52522. msgid "Whether to set user setuid bit."
  52523. msgstr ""
  52524. #. type: item
  52525. #: guix-git/doc/guix.texi:35144
  52526. #, fuzzy, no-wrap
  52527. msgid "@code{setgid?} (default: @code{#f})"
  52528. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  52529. #. type: table
  52530. #: guix-git/doc/guix.texi:35146
  52531. msgid "Whether to set group setgid bit."
  52532. msgstr ""
  52533. #. type: item
  52534. #: guix-git/doc/guix.texi:35147
  52535. #, fuzzy, no-wrap
  52536. msgid "@code{user} (default: @code{0})"
  52537. msgstr "@code{port}(默认值:@code{22})"
  52538. #. type: table
  52539. #: guix-git/doc/guix.texi:35150
  52540. msgid "UID (integer) or user name (string) for the user owner of the program, defaults to root."
  52541. msgstr ""
  52542. #. type: item
  52543. #: guix-git/doc/guix.texi:35151
  52544. #, fuzzy, no-wrap
  52545. msgid "@code{group} (default: @code{0})"
  52546. msgstr "@code{gnome}(默认值:@code{gnome})"
  52547. #. type: table
  52548. #: guix-git/doc/guix.texi:35154
  52549. msgid "GID (integer) goup name (string) for the group owner of the program, defaults to root."
  52550. msgstr ""
  52551. #. type: Plain text
  52552. #: guix-git/doc/guix.texi:35160
  52553. msgid "A default set of setuid programs is defined by the @code{%setuid-programs} variable of the @code{(gnu system)} module."
  52554. msgstr ""
  52555. #. type: defvr
  52556. #: guix-git/doc/guix.texi:35161
  52557. #, no-wrap
  52558. msgid "{Scheme Variable} %setuid-programs"
  52559. msgstr ""
  52560. #. type: defvr
  52561. #: guix-git/doc/guix.texi:35164
  52562. msgid "A list of @code{<setuid-program>} denoting common programs that are setuid-root."
  52563. msgstr ""
  52564. #. type: defvr
  52565. #: guix-git/doc/guix.texi:35167
  52566. msgid "The list includes commands such as @command{passwd}, @command{ping}, @command{su}, and @command{sudo}."
  52567. msgstr ""
  52568. #. type: Plain text
  52569. #: guix-git/doc/guix.texi:35173
  52570. 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."
  52571. msgstr ""
  52572. #. type: cindex
  52573. #: guix-git/doc/guix.texi:35177
  52574. #, no-wrap
  52575. msgid "HTTPS, certificates"
  52576. msgstr ""
  52577. #. type: cindex
  52578. #: guix-git/doc/guix.texi:35178
  52579. #, no-wrap
  52580. msgid "X.509 certificates"
  52581. msgstr ""
  52582. #. type: cindex
  52583. #: guix-git/doc/guix.texi:35179
  52584. #, no-wrap
  52585. msgid "TLS"
  52586. msgstr ""
  52587. #. type: Plain text
  52588. #: guix-git/doc/guix.texi:35186
  52589. 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."
  52590. msgstr ""
  52591. #. type: Plain text
  52592. #: guix-git/doc/guix.texi:35190
  52593. 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."
  52594. msgstr ""
  52595. #. type: Plain text
  52596. #: guix-git/doc/guix.texi:35194
  52597. 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."
  52598. msgstr ""
  52599. #. type: Plain text
  52600. #: guix-git/doc/guix.texi:35201
  52601. 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."
  52602. msgstr ""
  52603. #. type: Plain text
  52604. #: guix-git/doc/guix.texi:35206
  52605. 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."
  52606. msgstr ""
  52607. #. type: Plain text
  52608. #: guix-git/doc/guix.texi:35216
  52609. 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:"
  52610. msgstr ""
  52611. #. type: example
  52612. #: guix-git/doc/guix.texi:35222
  52613. #, no-wrap
  52614. msgid ""
  52615. "guix install nss-certs\n"
  52616. "export SSL_CERT_DIR=\"$HOME/.guix-profile/etc/ssl/certs\"\n"
  52617. "export SSL_CERT_FILE=\"$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt\"\n"
  52618. "export GIT_SSL_CAINFO=\"$SSL_CERT_FILE\"\n"
  52619. msgstr ""
  52620. #. type: Plain text
  52621. #: guix-git/doc/guix.texi:35227
  52622. 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:"
  52623. msgstr ""
  52624. #. type: example
  52625. #: guix-git/doc/guix.texi:35231
  52626. #, no-wrap
  52627. msgid ""
  52628. "guix install nss-certs\n"
  52629. "export CURL_CA_BUNDLE=\"$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt\"\n"
  52630. msgstr ""
  52631. #. type: Plain text
  52632. #: guix-git/doc/guix.texi:35235
  52633. msgid "For other applications you may want to look up the required environment variable in the relevant documentation."
  52634. msgstr ""
  52635. #. type: cindex
  52636. #: guix-git/doc/guix.texi:35240
  52637. #, no-wrap
  52638. msgid "name service switch"
  52639. msgstr ""
  52640. #. type: cindex
  52641. #: guix-git/doc/guix.texi:35241
  52642. #, no-wrap
  52643. msgid "NSS"
  52644. msgstr ""
  52645. #. type: Plain text
  52646. #: guix-git/doc/guix.texi:35250
  52647. 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})."
  52648. msgstr ""
  52649. #. type: Plain text
  52650. #: guix-git/doc/guix.texi:35257
  52651. 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}})."
  52652. msgstr ""
  52653. #. type: cindex
  52654. #: guix-git/doc/guix.texi:35258
  52655. #, no-wrap
  52656. msgid "nss-mdns"
  52657. msgstr ""
  52658. #. type: cindex
  52659. #: guix-git/doc/guix.texi:35259
  52660. #, no-wrap
  52661. msgid ".local, host name lookup"
  52662. msgstr ""
  52663. #. type: Plain text
  52664. #: guix-git/doc/guix.texi:35264
  52665. 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}:"
  52666. msgstr ""
  52667. #. type: lisp
  52668. #: guix-git/doc/guix.texi:35268
  52669. #, no-wrap
  52670. msgid ""
  52671. "(name-service-switch\n"
  52672. " (hosts (list %files ;first, check /etc/hosts\n"
  52673. "\n"
  52674. msgstr ""
  52675. #. type: lisp
  52676. #: guix-git/doc/guix.texi:35273
  52677. #, no-wrap
  52678. msgid ""
  52679. " ;; If the above did not succeed, try\n"
  52680. " ;; with 'mdns_minimal'.\n"
  52681. " (name-service\n"
  52682. " (name \"mdns_minimal\")\n"
  52683. "\n"
  52684. msgstr ""
  52685. #. type: lisp
  52686. #: guix-git/doc/guix.texi:35279
  52687. #, no-wrap
  52688. msgid ""
  52689. " ;; 'mdns_minimal' is authoritative for\n"
  52690. " ;; '.local'. When it returns \"not found\",\n"
  52691. " ;; no need to try the next methods.\n"
  52692. " (reaction (lookup-specification\n"
  52693. " (not-found => return))))\n"
  52694. "\n"
  52695. msgstr ""
  52696. #. type: lisp
  52697. #: guix-git/doc/guix.texi:35283
  52698. #, no-wrap
  52699. msgid ""
  52700. " ;; Then fall back to DNS.\n"
  52701. " (name-service\n"
  52702. " (name \"dns\"))\n"
  52703. "\n"
  52704. msgstr ""
  52705. #. type: lisp
  52706. #: guix-git/doc/guix.texi:35287
  52707. #, no-wrap
  52708. msgid ""
  52709. " ;; Finally, try with the \"full\" 'mdns'.\n"
  52710. " (name-service\n"
  52711. " (name \"mdns\")))))\n"
  52712. msgstr ""
  52713. #. type: Plain text
  52714. #: guix-git/doc/guix.texi:35292
  52715. 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."
  52716. msgstr ""
  52717. #. type: Plain text
  52718. #: guix-git/doc/guix.texi:35300
  52719. 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}})."
  52720. msgstr ""
  52721. #. type: Plain text
  52722. #: guix-git/doc/guix.texi:35303
  52723. msgid "For convenience, the following variables provide typical NSS configurations."
  52724. msgstr ""
  52725. #. type: defvr
  52726. #: guix-git/doc/guix.texi:35304
  52727. #, no-wrap
  52728. msgid "{Scheme Variable} %default-nss"
  52729. msgstr ""
  52730. #. type: defvr
  52731. #: guix-git/doc/guix.texi:35307
  52732. msgid "This is the default name service switch configuration, a @code{name-service-switch} object."
  52733. msgstr ""
  52734. #. type: defvr
  52735. #: guix-git/doc/guix.texi:35309
  52736. #, no-wrap
  52737. msgid "{Scheme Variable} %mdns-host-lookup-nss"
  52738. msgstr ""
  52739. #. type: defvr
  52740. #: guix-git/doc/guix.texi:35312
  52741. 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}."
  52742. msgstr ""
  52743. #. type: Plain text
  52744. #: guix-git/doc/guix.texi:35322
  52745. 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}."
  52746. msgstr ""
  52747. #. type: deftp
  52748. #: guix-git/doc/guix.texi:35323
  52749. #, no-wrap
  52750. msgid "{Data Type} name-service-switch"
  52751. msgstr ""
  52752. #. type: deftp
  52753. #: guix-git/doc/guix.texi:35328
  52754. 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."
  52755. msgstr ""
  52756. #. type: item
  52757. #: guix-git/doc/guix.texi:35330
  52758. #, no-wrap
  52759. msgid "aliases"
  52760. msgstr ""
  52761. #. type: itemx
  52762. #: guix-git/doc/guix.texi:35331
  52763. #, no-wrap
  52764. msgid "ethers"
  52765. msgstr ""
  52766. #. type: itemx
  52767. #: guix-git/doc/guix.texi:35333
  52768. #, no-wrap
  52769. msgid "gshadow"
  52770. msgstr ""
  52771. #. type: itemx
  52772. #: guix-git/doc/guix.texi:35334
  52773. #, no-wrap
  52774. msgid "hosts"
  52775. msgstr ""
  52776. #. type: itemx
  52777. #: guix-git/doc/guix.texi:35335
  52778. #, no-wrap
  52779. msgid "initgroups"
  52780. msgstr ""
  52781. #. type: itemx
  52782. #: guix-git/doc/guix.texi:35336
  52783. #, no-wrap
  52784. msgid "netgroup"
  52785. msgstr ""
  52786. #. type: itemx
  52787. #: guix-git/doc/guix.texi:35337
  52788. #, no-wrap
  52789. msgid "networks"
  52790. msgstr ""
  52791. #. type: itemx
  52792. #: guix-git/doc/guix.texi:35340
  52793. #, no-wrap
  52794. msgid "rpc"
  52795. msgstr ""
  52796. #. type: itemx
  52797. #: guix-git/doc/guix.texi:35342
  52798. #, no-wrap
  52799. msgid "shadow"
  52800. msgstr ""
  52801. #. type: table
  52802. #: guix-git/doc/guix.texi:35345
  52803. msgid "The system databases handled by the NSS@. Each of these fields must be a list of @code{<name-service>} objects (see below)."
  52804. msgstr ""
  52805. #. type: deftp
  52806. #: guix-git/doc/guix.texi:35348
  52807. #, no-wrap
  52808. msgid "{Data Type} name-service"
  52809. msgstr ""
  52810. #. type: deftp
  52811. #: guix-git/doc/guix.texi:35352
  52812. msgid "This is the data type representing an actual name service and the associated lookup action."
  52813. msgstr ""
  52814. #. type: table
  52815. #: guix-git/doc/guix.texi:35357
  52816. msgid "A string denoting the name service (@pxref{Services in the NSS configuration,,, libc, The GNU C Library Reference Manual})."
  52817. msgstr ""
  52818. #. type: table
  52819. #: guix-git/doc/guix.texi:35362
  52820. 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}})."
  52821. msgstr ""
  52822. #. type: item
  52823. #: guix-git/doc/guix.texi:35363
  52824. #, no-wrap
  52825. msgid "reaction"
  52826. msgstr ""
  52827. #. type: table
  52828. #: guix-git/doc/guix.texi:35367
  52829. 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:"
  52830. msgstr ""
  52831. #. type: lisp
  52832. #: guix-git/doc/guix.texi:35371
  52833. #, no-wrap
  52834. msgid ""
  52835. "(lookup-specification (unavailable => continue)\n"
  52836. " (success => return))\n"
  52837. msgstr ""
  52838. #. type: Plain text
  52839. #: guix-git/doc/guix.texi:35385
  52840. 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."
  52841. msgstr ""
  52842. #. type: Plain text
  52843. #: guix-git/doc/guix.texi:35394
  52844. 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:"
  52845. msgstr ""
  52846. #. type: lisp
  52847. #: guix-git/doc/guix.texi:35399
  52848. #, no-wrap
  52849. msgid ""
  52850. "(operating-system\n"
  52851. " ;; @dots{}\n"
  52852. " (initrd-modules (cons \"megaraid_sas\" %base-initrd-modules)))\n"
  52853. msgstr ""
  52854. #. type: defvr
  52855. #: guix-git/doc/guix.texi:35401
  52856. #, no-wrap
  52857. msgid "{Scheme Variable} %base-initrd-modules"
  52858. msgstr ""
  52859. #. type: defvr
  52860. #: guix-git/doc/guix.texi:35403
  52861. msgid "This is the list of kernel modules included in the initrd by default."
  52862. msgstr ""
  52863. #. type: Plain text
  52864. #: guix-git/doc/guix.texi:35411
  52865. 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."
  52866. msgstr ""
  52867. #. type: Plain text
  52868. #: guix-git/doc/guix.texi:35416
  52869. 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:"
  52870. msgstr ""
  52871. #. type: lisp
  52872. #: guix-git/doc/guix.texi:35424
  52873. #, no-wrap
  52874. msgid ""
  52875. "(initrd (lambda (file-systems . rest)\n"
  52876. " ;; Create a standard initrd but set up networking\n"
  52877. " ;; with the parameters QEMU expects by default.\n"
  52878. " (apply base-initrd file-systems\n"
  52879. " #:qemu-networking? #t\n"
  52880. " rest)))\n"
  52881. msgstr ""
  52882. #. type: Plain text
  52883. #: guix-git/doc/guix.texi:35429
  52884. 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."
  52885. msgstr ""
  52886. #. type: Plain text
  52887. #: guix-git/doc/guix.texi:35436
  52888. 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."
  52889. msgstr ""
  52890. #. type: Plain text
  52891. #: guix-git/doc/guix.texi:35441
  52892. 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:"
  52893. msgstr ""
  52894. #. type: item
  52895. #: guix-git/doc/guix.texi:35443
  52896. #, no-wrap
  52897. msgid "gnu.load=@var{boot}"
  52898. msgstr ""
  52899. #. type: table
  52900. #: guix-git/doc/guix.texi:35446
  52901. msgid "Tell the initial RAM disk to load @var{boot}, a file containing a Scheme program, once it has mounted the root file system."
  52902. msgstr ""
  52903. #. type: table
  52904. #: guix-git/doc/guix.texi:35450
  52905. 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."
  52906. msgstr ""
  52907. #. type: item
  52908. #: guix-git/doc/guix.texi:35451
  52909. #, no-wrap
  52910. msgid "root=@var{root}"
  52911. msgstr ""
  52912. #. type: table
  52913. #: guix-git/doc/guix.texi:35456
  52914. 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."
  52915. msgstr ""
  52916. #. type: item
  52917. #: guix-git/doc/guix.texi:35457
  52918. #, fuzzy, no-wrap
  52919. msgid "rootfstype=@var{type}"
  52920. msgstr "--log-compression=@var{type}"
  52921. #. type: table
  52922. #: guix-git/doc/guix.texi:35461
  52923. msgid "Set the type of the root file system. It overrides the @code{type} field of the root file system specified via the @code{operating-system} declaration, if any."
  52924. msgstr ""
  52925. #. type: item
  52926. #: guix-git/doc/guix.texi:35462
  52927. #, no-wrap
  52928. msgid "rootflags=@var{options}"
  52929. msgstr ""
  52930. #. type: table
  52931. #: guix-git/doc/guix.texi:35466
  52932. msgid "Set the mount @emph{options} of the root file system. It overrides the @code{options} field of the root file system specified via the @code{operating-system} declaration, if any."
  52933. msgstr ""
  52934. #. type: item
  52935. #: guix-git/doc/guix.texi:35467
  52936. #, fuzzy, no-wrap
  52937. msgid "fsck.mode=@var{mode}"
  52938. msgstr "--rounds=@var{N}"
  52939. #. type: table
  52940. #: guix-git/doc/guix.texi:35473
  52941. 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."
  52942. msgstr ""
  52943. #. type: table
  52944. #: guix-git/doc/guix.texi:35476
  52945. msgid "@code{auto} is the default if this option is not present or if @var{mode} is not one of the above."
  52946. msgstr ""
  52947. #. type: item
  52948. #: guix-git/doc/guix.texi:35477
  52949. #, no-wrap
  52950. msgid "fsck.repair=@var{level}"
  52951. msgstr ""
  52952. #. type: table
  52953. #: guix-git/doc/guix.texi:35482
  52954. 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."
  52955. msgstr ""
  52956. #. type: table
  52957. #: guix-git/doc/guix.texi:35485
  52958. msgid "@code{preen} is the default if this option is not present or if @var{level} is not one of the above."
  52959. msgstr ""
  52960. #. type: item
  52961. #: guix-git/doc/guix.texi:35486
  52962. #, fuzzy, no-wrap
  52963. #| msgid "--system=@var{system}"
  52964. msgid "gnu.system=@var{system}"
  52965. msgstr "--system=@var{system}"
  52966. #. type: table
  52967. #: guix-git/doc/guix.texi:35489
  52968. msgid "Have @file{/run/booted-system} and @file{/run/current-system} point to @var{system}."
  52969. msgstr ""
  52970. #. type: item
  52971. #: guix-git/doc/guix.texi:35490
  52972. #, no-wrap
  52973. msgid "modprobe.blacklist=@var{modules}@dots{}"
  52974. msgstr ""
  52975. #. type: cindex
  52976. #: guix-git/doc/guix.texi:35491
  52977. #, no-wrap
  52978. msgid "module, black-listing"
  52979. msgstr ""
  52980. #. type: cindex
  52981. #: guix-git/doc/guix.texi:35492
  52982. #, no-wrap
  52983. msgid "black list, of kernel modules"
  52984. msgstr ""
  52985. #. type: table
  52986. #: guix-git/doc/guix.texi:35497
  52987. 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}."
  52988. msgstr ""
  52989. #. type: item
  52990. #: guix-git/doc/guix.texi:35498
  52991. #, no-wrap
  52992. msgid "gnu.repl"
  52993. msgstr ""
  52994. #. type: table
  52995. #: guix-git/doc/guix.texi:35504
  52996. 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."
  52997. msgstr ""
  52998. #. type: Plain text
  52999. #: guix-git/doc/guix.texi:35510
  53000. 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."
  53001. msgstr ""
  53002. #. type: deffn
  53003. #: guix-git/doc/guix.texi:35513
  53004. #, no-wrap
  53005. msgid "{Scheme Procedure} raw-initrd @var{file-systems} @"
  53006. msgstr ""
  53007. #. type: deffn
  53008. #: guix-git/doc/guix.texi:35527
  53009. 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."
  53010. msgstr ""
  53011. #. type: deffn
  53012. #: guix-git/doc/guix.texi:35533 guix-git/doc/guix.texi:35557
  53013. 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."
  53014. msgstr ""
  53015. #. type: deffn
  53016. #: guix-git/doc/guix.texi:35537
  53017. 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."
  53018. msgstr ""
  53019. #. type: deffn
  53020. #: guix-git/doc/guix.texi:35540
  53021. msgid "When @var{volatile-root?} is true, the root file system is writable but any changes to it are lost."
  53022. msgstr ""
  53023. #. type: deffn
  53024. #: guix-git/doc/guix.texi:35542
  53025. #, no-wrap
  53026. msgid "{Scheme Procedure} base-initrd @var{file-systems} @"
  53027. msgstr ""
  53028. #. type: deffn
  53029. #: guix-git/doc/guix.texi:35551
  53030. 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."
  53031. msgstr ""
  53032. #. type: deffn
  53033. #: guix-git/doc/guix.texi:35559
  53034. msgid "@var{qemu-networking?} and @var{volatile-root?} behaves as in @code{raw-initrd}."
  53035. msgstr ""
  53036. #. type: deffn
  53037. #: guix-git/doc/guix.texi:35564
  53038. 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."
  53039. msgstr ""
  53040. #. type: Plain text
  53041. #: guix-git/doc/guix.texi:35571
  53042. 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."
  53043. msgstr ""
  53044. #. type: deffn
  53045. #: guix-git/doc/guix.texi:35572
  53046. #, no-wrap
  53047. msgid "{Scheme Procedure} expression->initrd @var{exp} @"
  53048. msgstr ""
  53049. #. type: deffn
  53050. #: guix-git/doc/guix.texi:35578
  53051. 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."
  53052. msgstr ""
  53053. #. type: cindex
  53054. #: guix-git/doc/guix.texi:35584
  53055. #, no-wrap
  53056. msgid "boot loader"
  53057. msgstr ""
  53058. #. type: Plain text
  53059. #: guix-git/doc/guix.texi:35591
  53060. 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."
  53061. msgstr ""
  53062. #. type: Plain text
  53063. #: guix-git/doc/guix.texi:35596
  53064. 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."
  53065. msgstr ""
  53066. #. type: deftp
  53067. #: guix-git/doc/guix.texi:35597
  53068. #, no-wrap
  53069. msgid "{Data Type} bootloader-configuration"
  53070. msgstr ""
  53071. #. type: deftp
  53072. #: guix-git/doc/guix.texi:35599
  53073. msgid "The type of a bootloader configuration declaration."
  53074. msgstr ""
  53075. #. type: cindex
  53076. #: guix-git/doc/guix.texi:35603
  53077. #, no-wrap
  53078. msgid "EFI, bootloader"
  53079. msgstr ""
  53080. #. type: cindex
  53081. #: guix-git/doc/guix.texi:35604
  53082. #, no-wrap
  53083. msgid "UEFI, bootloader"
  53084. msgstr ""
  53085. #. type: cindex
  53086. #: guix-git/doc/guix.texi:35605
  53087. #, no-wrap
  53088. msgid "BIOS, bootloader"
  53089. msgstr ""
  53090. #. type: table
  53091. #: guix-git/doc/guix.texi:35610
  53092. 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."
  53093. msgstr ""
  53094. #. type: cindex
  53095. #: guix-git/doc/guix.texi:35611
  53096. #, no-wrap
  53097. msgid "ARM, bootloaders"
  53098. msgstr ""
  53099. #. type: cindex
  53100. #: guix-git/doc/guix.texi:35612
  53101. #, no-wrap
  53102. msgid "AArch64, bootloaders"
  53103. msgstr ""
  53104. #. type: table
  53105. #: guix-git/doc/guix.texi:35617
  53106. 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}."
  53107. msgstr ""
  53108. #. type: table
  53109. #: guix-git/doc/guix.texi:35623
  53110. 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."
  53111. msgstr ""
  53112. #. type: table
  53113. #: guix-git/doc/guix.texi:35627
  53114. msgid "@code{grub-bootloader} allows you to boot in particular Intel-based machines in ``legacy'' BIOS mode."
  53115. msgstr ""
  53116. #. type: vindex
  53117. #: guix-git/doc/guix.texi:35628
  53118. #, no-wrap
  53119. msgid "grub-efi-netboot-bootloader"
  53120. msgstr ""
  53121. #. type: table
  53122. #: guix-git/doc/guix.texi:35632
  53123. 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."
  53124. msgstr ""
  53125. #. type: table
  53126. #: guix-git/doc/guix.texi:35638
  53127. 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."
  53128. msgstr ""
  53129. #. type: table
  53130. #: guix-git/doc/guix.texi:35647
  53131. 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}."
  53132. msgstr ""
  53133. #. type: table
  53134. #: guix-git/doc/guix.texi:35656
  53135. 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."
  53136. msgstr ""
  53137. #. type: table
  53138. #: guix-git/doc/guix.texi:35662
  53139. 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."
  53140. msgstr ""
  53141. #. type: table
  53142. #: guix-git/doc/guix.texi:35667
  53143. 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}."
  53144. msgstr ""
  53145. #. type: table
  53146. #: guix-git/doc/guix.texi:35672
  53147. 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."
  53148. msgstr ""
  53149. #. type: table
  53150. #: guix-git/doc/guix.texi:35677
  53151. 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}."
  53152. msgstr ""
  53153. #. type: table
  53154. #: guix-git/doc/guix.texi:35681
  53155. msgid "This is a list of strings denoting the targets onto which to install the bootloader."
  53156. msgstr ""
  53157. #. type: table
  53158. #: guix-git/doc/guix.texi:35691
  53159. 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."
  53160. msgstr ""
  53161. #. type: item
  53162. #: guix-git/doc/guix.texi:35692
  53163. #, no-wrap
  53164. msgid "@code{menu-entries} (default: @code{()})"
  53165. msgstr ""
  53166. #. type: table
  53167. #: guix-git/doc/guix.texi:35696
  53168. 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."
  53169. msgstr ""
  53170. #. type: item
  53171. #: guix-git/doc/guix.texi:35697
  53172. #, no-wrap
  53173. msgid "@code{default-entry} (default: @code{0})"
  53174. msgstr ""
  53175. #. type: table
  53176. #: guix-git/doc/guix.texi:35700
  53177. msgid "The index of the default boot menu entry. Index 0 is for the entry of the current system."
  53178. msgstr ""
  53179. #. type: item
  53180. #: guix-git/doc/guix.texi:35701
  53181. #, no-wrap
  53182. msgid "@code{timeout} (default: @code{5})"
  53183. msgstr ""
  53184. #. type: table
  53185. #: guix-git/doc/guix.texi:35704
  53186. msgid "The number of seconds to wait for keyboard input before booting. Set to 0 to boot immediately, and to -1 to wait indefinitely."
  53187. msgstr ""
  53188. #. type: cindex
  53189. #: guix-git/doc/guix.texi:35705
  53190. #, no-wrap
  53191. msgid "keyboard layout, for the bootloader"
  53192. msgstr ""
  53193. #. type: table
  53194. #: guix-git/doc/guix.texi:35709
  53195. msgid "If this is @code{#f}, the bootloader's menu (if any) uses the default keyboard layout, usually US@tie{}English (``qwerty'')."
  53196. msgstr ""
  53197. #. type: table
  53198. #: guix-git/doc/guix.texi:35712
  53199. msgid "Otherwise, this must be a @code{keyboard-layout} object (@pxref{Keyboard Layout})."
  53200. msgstr ""
  53201. #. type: quotation
  53202. #: guix-git/doc/guix.texi:35716
  53203. msgid "This option is currently ignored by bootloaders other than @code{grub} and @code{grub-efi}."
  53204. msgstr ""
  53205. #. type: item
  53206. #: guix-git/doc/guix.texi:35718
  53207. #, no-wrap
  53208. msgid "@code{theme} (default: @var{#f})"
  53209. msgstr ""
  53210. #. type: table
  53211. #: guix-git/doc/guix.texi:35722
  53212. 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."
  53213. msgstr ""
  53214. #. type: item
  53215. #: guix-git/doc/guix.texi:35723
  53216. #, fuzzy, no-wrap
  53217. msgid "@code{terminal-outputs} (default: @code{'(gfxterm)})"
  53218. msgstr "@code{features} (@code{'()})"
  53219. #. type: table
  53220. #: guix-git/doc/guix.texi:35730
  53221. 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})."
  53222. msgstr ""
  53223. #. type: item
  53224. #: guix-git/doc/guix.texi:35731
  53225. #, no-wrap
  53226. msgid "@code{terminal-inputs} (default: @code{'()})"
  53227. msgstr ""
  53228. #. type: table
  53229. #: guix-git/doc/guix.texi:35739
  53230. 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})."
  53231. msgstr ""
  53232. #. type: item
  53233. #: guix-git/doc/guix.texi:35740
  53234. #, no-wrap
  53235. msgid "@code{serial-unit} (default: @code{#f})"
  53236. msgstr ""
  53237. #. type: table
  53238. #: guix-git/doc/guix.texi:35744
  53239. 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})."
  53240. msgstr ""
  53241. #. type: item
  53242. #: guix-git/doc/guix.texi:35745
  53243. #, no-wrap
  53244. msgid "@code{serial-speed} (default: @code{#f})"
  53245. msgstr ""
  53246. #. type: table
  53247. #: guix-git/doc/guix.texi:35749
  53248. 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})."
  53249. msgstr ""
  53250. #. type: cindex
  53251. #: guix-git/doc/guix.texi:35753
  53252. #, no-wrap
  53253. msgid "dual boot"
  53254. msgstr ""
  53255. #. type: cindex
  53256. #: guix-git/doc/guix.texi:35754
  53257. #, no-wrap
  53258. msgid "boot menu"
  53259. msgstr ""
  53260. #. type: Plain text
  53261. #: guix-git/doc/guix.texi:35760
  53262. 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:"
  53263. msgstr ""
  53264. #. type: lisp
  53265. #: guix-git/doc/guix.texi:35767
  53266. #, no-wrap
  53267. msgid ""
  53268. "(menu-entry\n"
  53269. " (label \"The Other Distro\")\n"
  53270. " (linux \"/boot/old/vmlinux-2.6.32\")\n"
  53271. " (linux-arguments '(\"root=/dev/sda2\"))\n"
  53272. " (initrd \"/boot/old/initrd\"))\n"
  53273. msgstr ""
  53274. #. type: Plain text
  53275. #: guix-git/doc/guix.texi:35770
  53276. msgid "Details below."
  53277. msgstr ""
  53278. #. type: deftp
  53279. #: guix-git/doc/guix.texi:35771
  53280. #, no-wrap
  53281. msgid "{Data Type} menu-entry"
  53282. msgstr ""
  53283. #. type: deftp
  53284. #: guix-git/doc/guix.texi:35773
  53285. msgid "The type of an entry in the bootloader menu."
  53286. msgstr ""
  53287. #. type: table
  53288. #: guix-git/doc/guix.texi:35778
  53289. msgid "The label to show in the menu---e.g., @code{\"GNU\"}."
  53290. msgstr ""
  53291. #. type: item
  53292. #: guix-git/doc/guix.texi:35779
  53293. #, fuzzy, no-wrap
  53294. msgid "@code{linux} (default: @code{#f})"
  53295. msgstr "@code{challenge}(默认值:@code{#f})"
  53296. #. type: table
  53297. #: guix-git/doc/guix.texi:35781
  53298. msgid "The Linux kernel image to boot, for example:"
  53299. msgstr ""
  53300. #. type: lisp
  53301. #: guix-git/doc/guix.texi:35784
  53302. #, no-wrap
  53303. msgid "(file-append linux-libre \"/bzImage\")\n"
  53304. msgstr ""
  53305. #. type: table
  53306. #: guix-git/doc/guix.texi:35789
  53307. 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:"
  53308. msgstr ""
  53309. #. type: example
  53310. #: guix-git/doc/guix.texi:35792
  53311. #, no-wrap
  53312. msgid "\"(hd0,msdos1)/boot/vmlinuz\"\n"
  53313. msgstr ""
  53314. #. type: table
  53315. #: guix-git/doc/guix.texi:35796
  53316. msgid "If the device is specified explicitly as above, then the @code{device} field is ignored entirely."
  53317. msgstr ""
  53318. #. type: item
  53319. #: guix-git/doc/guix.texi:35797
  53320. #, no-wrap
  53321. msgid "@code{linux-arguments} (default: @code{()})"
  53322. msgstr ""
  53323. #. type: table
  53324. #: guix-git/doc/guix.texi:35800
  53325. msgid "The list of extra Linux kernel command-line arguments---e.g., @code{(\"console=ttyS0\")}."
  53326. msgstr ""
  53327. #. type: item
  53328. #: guix-git/doc/guix.texi:35801
  53329. #, fuzzy, no-wrap
  53330. msgid "@code{initrd} (default: @code{#f})"
  53331. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  53332. #. type: table
  53333. #: guix-git/doc/guix.texi:35804
  53334. msgid "A G-Expression or string denoting the file name of the initial RAM disk to use (@pxref{G-Expressions})."
  53335. msgstr ""
  53336. #. type: table
  53337. #: guix-git/doc/guix.texi:35808
  53338. 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})."
  53339. msgstr ""
  53340. #. type: table
  53341. #: guix-git/doc/guix.texi:35814
  53342. 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}."
  53343. msgstr ""
  53344. #. type: item
  53345. #: guix-git/doc/guix.texi:35815
  53346. #, fuzzy, no-wrap
  53347. msgid "@code{multiboot-kernel} (default: @code{#f})"
  53348. msgstr "@code{challenge}(默认值:@code{#f})"
  53349. #. type: table
  53350. #: guix-git/doc/guix.texi:35819
  53351. 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:"
  53352. msgstr ""
  53353. #. type: lisp
  53354. #: guix-git/doc/guix.texi:35822
  53355. #, no-wrap
  53356. msgid "(file-append mach \"/boot/gnumach\")\n"
  53357. msgstr ""
  53358. #. type: item
  53359. #: guix-git/doc/guix.texi:35824
  53360. #, fuzzy, no-wrap
  53361. msgid "@code{multiboot-arguments} (default: @code{()})"
  53362. msgstr "@code{features} (@code{'()})"
  53363. #. type: table
  53364. #: guix-git/doc/guix.texi:35826
  53365. msgid "The list of extra command-line arguments for the multiboot-kernel."
  53366. msgstr ""
  53367. #. type: item
  53368. #: guix-git/doc/guix.texi:35827
  53369. #, fuzzy, no-wrap
  53370. msgid "@code{multiboot-modules} (default: @code{()})"
  53371. msgstr "@code{features} (@code{'()})"
  53372. #. type: table
  53373. #: guix-git/doc/guix.texi:35829
  53374. msgid "The list of commands for loading Multiboot modules. For example:"
  53375. msgstr ""
  53376. #. type: lisp
  53377. #: guix-git/doc/guix.texi:35835
  53378. #, no-wrap
  53379. msgid ""
  53380. "(list (list (file-append hurd \"/hurd/ext2fs.static\") \"ext2fs\"\n"
  53381. " @dots{})\n"
  53382. " (list (file-append libc \"/lib/ld.so.1\") \"exec\"\n"
  53383. " @dots{}))\n"
  53384. msgstr ""
  53385. #. type: cindex
  53386. #: guix-git/doc/guix.texi:35840 guix-git/doc/guix.texi:35899
  53387. #, no-wrap
  53388. msgid "HDPI"
  53389. msgstr ""
  53390. #. type: cindex
  53391. #: guix-git/doc/guix.texi:35841 guix-git/doc/guix.texi:35900
  53392. #, no-wrap
  53393. msgid "HiDPI"
  53394. msgstr ""
  53395. #. type: cindex
  53396. #: guix-git/doc/guix.texi:35842 guix-git/doc/guix.texi:35901
  53397. #, fuzzy, no-wrap
  53398. msgid "resolution"
  53399. msgstr "隔离"
  53400. #. type: Plain text
  53401. #: guix-git/doc/guix.texi:35846
  53402. msgid "For now only GRUB has theme support. GRUB themes are created using the @code{grub-theme} form, which is not fully documented yet."
  53403. msgstr ""
  53404. #. type: deftp
  53405. #: guix-git/doc/guix.texi:35847
  53406. #, fuzzy, no-wrap
  53407. msgid "{Data Type} grub-theme"
  53408. msgstr "{数据类型} build-machine"
  53409. #. type: deftp
  53410. #: guix-git/doc/guix.texi:35849
  53411. msgid "Data type representing the configuration of the GRUB theme."
  53412. msgstr ""
  53413. #. type: item
  53414. #: guix-git/doc/guix.texi:35851
  53415. #, fuzzy, no-wrap
  53416. msgid "@code{gfxmode} (default: @code{'(\"auto\")})"
  53417. msgstr "@code{mate}(默认值:@code{mate})"
  53418. #. type: table
  53419. #: guix-git/doc/guix.texi:35854
  53420. msgid "The GRUB @code{gfxmode} to set (a list of screen resolution strings, @pxref{gfxmode,,, grub, GNU GRUB manual})."
  53421. msgstr ""
  53422. #. type: deffn
  53423. #: guix-git/doc/guix.texi:35857
  53424. #, no-wrap
  53425. msgid "{Scheme Procedure} grub-theme"
  53426. msgstr ""
  53427. #. type: deffn
  53428. #: guix-git/doc/guix.texi:35861
  53429. msgid "Return the default GRUB theme used by the operating system if no @code{theme} field is specified in @code{bootloader-configuration} record."
  53430. msgstr ""
  53431. #. type: deffn
  53432. #: guix-git/doc/guix.texi:35864
  53433. msgid "It comes with a fancy background image displaying the GNU and Guix logos."
  53434. msgstr ""
  53435. #. type: Plain text
  53436. #: guix-git/doc/guix.texi:35868
  53437. msgid "For example, to override the default resolution, you may use something like"
  53438. msgstr ""
  53439. #. type: lisp
  53440. #: guix-git/doc/guix.texi:35876
  53441. #, no-wrap
  53442. msgid ""
  53443. "(bootloader\n"
  53444. " (bootloader-configuration\n"
  53445. " ;; @dots{}\n"
  53446. " (theme (grub-theme\n"
  53447. " (inherit (grub-theme))\n"
  53448. " (gfxmode '(\"1024x786x32\" \"auto\"))))))\n"
  53449. msgstr ""
  53450. #. type: section
  53451. #: guix-git/doc/guix.texi:35879
  53452. #, no-wrap
  53453. msgid "Invoking @code{guix system}"
  53454. msgstr ""
  53455. #. type: Plain text
  53456. #: guix-git/doc/guix.texi:35884
  53457. 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:"
  53458. msgstr ""
  53459. #. type: example
  53460. #: guix-git/doc/guix.texi:35887
  53461. #, no-wrap
  53462. msgid "guix system @var{options}@dots{} @var{action} @var{file}\n"
  53463. msgstr ""
  53464. #. type: Plain text
  53465. #: guix-git/doc/guix.texi:35893
  53466. 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:"
  53467. msgstr ""
  53468. #. type: item
  53469. #: guix-git/doc/guix.texi:35895 guix-git/doc/guix.texi:38692
  53470. #, no-wrap
  53471. msgid "search"
  53472. msgstr ""
  53473. #. type: table
  53474. #: guix-git/doc/guix.texi:35898
  53475. msgid "Display available service type definitions that match the given regular expressions, sorted by relevance:"
  53476. msgstr ""
  53477. #. type: example
  53478. #: guix-git/doc/guix.texi:35920
  53479. #, no-wrap
  53480. msgid ""
  53481. "$ guix system search console\n"
  53482. "name: console-fonts\n"
  53483. "location: gnu/services/base.scm:806:2\n"
  53484. "extends: shepherd-root\n"
  53485. "description: Install the given fonts on the specified ttys (fonts are per\n"
  53486. "+ virtual console on GNU/Linux). The value of this service is a list of\n"
  53487. "+ tty/font pairs. The font can be the name of a font provided by the `kbd'\n"
  53488. "+ package or any valid argument to `setfont', as in this example:\n"
  53489. "+\n"
  53490. "+ '((\"tty1\" . \"LatGrkCyr-8x16\")\n"
  53491. "+ (\"tty2\" . (file-append\n"
  53492. "+ font-tamzen\n"
  53493. "+ \"/share/kbd/consolefonts/TamzenForPowerline10x20.psf\"))\n"
  53494. "+ (\"tty3\" . (file-append\n"
  53495. "+ font-terminus\n"
  53496. "+ \"/share/consolefonts/ter-132n\"))) ; for HDPI\n"
  53497. "relevance: 9\n"
  53498. "\n"
  53499. msgstr ""
  53500. #. type: example
  53501. #: guix-git/doc/guix.texi:35926
  53502. #, no-wrap
  53503. msgid ""
  53504. "name: mingetty\n"
  53505. "location: gnu/services/base.scm:1190:2\n"
  53506. "extends: shepherd-root\n"
  53507. "description: Provide console login using the `mingetty' program.\n"
  53508. "relevance: 2\n"
  53509. "\n"
  53510. msgstr ""
  53511. #. type: example
  53512. #: guix-git/doc/guix.texi:35933
  53513. #, no-wrap
  53514. msgid ""
  53515. "name: login\n"
  53516. "location: gnu/services/base.scm:860:2\n"
  53517. "extends: pam\n"
  53518. "description: Provide a console log-in service as specified by its\n"
  53519. "+ configuration value, a `login-configuration' object.\n"
  53520. "relevance: 2\n"
  53521. "\n"
  53522. msgstr ""
  53523. #. type: example
  53524. #: guix-git/doc/guix.texi:35935 guix-git/doc/guix.texi:38728
  53525. #, no-wrap
  53526. msgid "@dots{}\n"
  53527. msgstr ""
  53528. #. type: table
  53529. #: guix-git/doc/guix.texi:35940
  53530. 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})."
  53531. msgstr ""
  53532. #. type: item
  53533. #: guix-git/doc/guix.texi:35941 guix-git/doc/guix.texi:38777
  53534. #, no-wrap
  53535. msgid "reconfigure"
  53536. msgstr ""
  53537. #. type: table
  53538. #: guix-git/doc/guix.texi:35946
  53539. 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.}."
  53540. msgstr ""
  53541. #. type: quotation
  53542. #: guix-git/doc/guix.texi:35954
  53543. 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."
  53544. msgstr ""
  53545. #. type: table
  53546. #: guix-git/doc/guix.texi:35962
  53547. 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})."
  53548. msgstr ""
  53549. #. type: table
  53550. #: guix-git/doc/guix.texi:35968
  53551. 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})."
  53552. msgstr ""
  53553. #. type: table
  53554. #: guix-git/doc/guix.texi:35973
  53555. 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."
  53556. msgstr ""
  53557. #. type: cindex
  53558. #: guix-git/doc/guix.texi:35974 guix-git/doc/guix.texi:36310
  53559. #: guix-git/doc/guix.texi:37318
  53560. #, fuzzy, no-wrap
  53561. msgid "provenance tracking, of the operating system"
  53562. msgstr "配置操作系统。"
  53563. #. type: table
  53564. #: guix-git/doc/guix.texi:35979
  53565. 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:"
  53566. msgstr ""
  53567. #. type: example
  53568. #: guix-git/doc/guix.texi:35982
  53569. #, no-wrap
  53570. msgid "guix system describe\n"
  53571. msgstr "guix system describe\n"
  53572. #. type: table
  53573. #: guix-git/doc/guix.texi:35988
  53574. 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:"
  53575. msgstr ""
  53576. #. type: example
  53577. #: guix-git/doc/guix.texi:35994
  53578. #, no-wrap
  53579. msgid ""
  53580. "guix time-machine \\\n"
  53581. " -C /var/guix/profiles/system-@var{n}-link/channels.scm -- \\\n"
  53582. " system reconfigure \\\n"
  53583. " /var/guix/profiles/system-@var{n}-link/configuration.scm\n"
  53584. msgstr ""
  53585. #. type: table
  53586. #: guix-git/doc/guix.texi:36000
  53587. 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."
  53588. msgstr ""
  53589. #. type: table
  53590. #: guix-git/doc/guix.texi:36006
  53591. 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}."
  53592. msgstr ""
  53593. #. type: item
  53594. #: guix-git/doc/guix.texi:36007 guix-git/doc/guix.texi:38836
  53595. #, no-wrap
  53596. msgid "switch-generation"
  53597. msgstr ""
  53598. #. type: table
  53599. #: guix-git/doc/guix.texi:36016
  53600. 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."
  53601. msgstr ""
  53602. #. type: table
  53603. #: guix-git/doc/guix.texi:36020
  53604. msgid "The bootloader itself is not being reinstalled when using this command. Thus, the installed bootloader is used with an updated configuration file."
  53605. msgstr ""
  53606. #. type: table
  53607. #: guix-git/doc/guix.texi:36024
  53608. msgid "The target generation can be specified explicitly by its generation number. For example, the following invocation would switch to system generation 7:"
  53609. msgstr ""
  53610. #. type: example
  53611. #: guix-git/doc/guix.texi:36027
  53612. #, no-wrap
  53613. msgid "guix system switch-generation 7\n"
  53614. msgstr ""
  53615. #. type: table
  53616. #: guix-git/doc/guix.texi:36035 guix-git/doc/guix.texi:38855
  53617. 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:"
  53618. msgstr ""
  53619. #. type: example
  53620. #: guix-git/doc/guix.texi:36038
  53621. #, no-wrap
  53622. msgid "guix system switch-generation -- -1\n"
  53623. msgstr ""
  53624. #. type: table
  53625. #: guix-git/doc/guix.texi:36046
  53626. 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."
  53627. msgstr ""
  53628. #. type: table
  53629. #: guix-git/doc/guix.texi:36048 guix-git/doc/guix.texi:38861
  53630. msgid "This action will fail if the specified generation does not exist."
  53631. msgstr ""
  53632. #. type: item
  53633. #: guix-git/doc/guix.texi:36049 guix-git/doc/guix.texi:38862
  53634. #, no-wrap
  53635. msgid "roll-back"
  53636. msgstr ""
  53637. #. type: table
  53638. #: guix-git/doc/guix.texi:36055
  53639. 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}."
  53640. msgstr ""
  53641. #. type: table
  53642. #: guix-git/doc/guix.texi:36059
  53643. msgid "Currently, as with @command{switch-generation}, you must reboot after running this action to actually start using the preceding system generation."
  53644. msgstr ""
  53645. #. type: item
  53646. #: guix-git/doc/guix.texi:36060 guix-git/doc/guix.texi:38868
  53647. #, no-wrap
  53648. msgid "delete-generations"
  53649. msgstr ""
  53650. #. type: cindex
  53651. #: guix-git/doc/guix.texi:36061
  53652. #, no-wrap
  53653. msgid "deleting system generations"
  53654. msgstr ""
  53655. #. type: cindex
  53656. #: guix-git/doc/guix.texi:36062 guix-git/doc/guix.texi:38870
  53657. #, no-wrap
  53658. msgid "saving space"
  53659. msgstr ""
  53660. #. type: table
  53661. #: guix-git/doc/guix.texi:36066
  53662. msgid "Delete system generations, making them candidates for garbage collection (@pxref{Invoking guix gc}, for information on how to run the ``garbage collector'')."
  53663. msgstr ""
  53664. #. type: table
  53665. #: guix-git/doc/guix.texi:36070
  53666. 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:"
  53667. msgstr ""
  53668. #. type: example
  53669. #: guix-git/doc/guix.texi:36073
  53670. #, no-wrap
  53671. msgid "guix system delete-generations\n"
  53672. msgstr ""
  53673. #. type: table
  53674. #: guix-git/doc/guix.texi:36077
  53675. 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:"
  53676. msgstr ""
  53677. #. type: example
  53678. #: guix-git/doc/guix.texi:36080
  53679. #, no-wrap
  53680. msgid "guix system delete-generations 2m\n"
  53681. msgstr ""
  53682. #. type: table
  53683. #: guix-git/doc/guix.texi:36085
  53684. 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."
  53685. msgstr ""
  53686. #. type: table
  53687. #: guix-git/doc/guix.texi:36090
  53688. 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."
  53689. msgstr ""
  53690. #. type: item
  53691. #: guix-git/doc/guix.texi:36091
  53692. #, no-wrap
  53693. msgid "init"
  53694. msgstr ""
  53695. #. type: table
  53696. #: guix-git/doc/guix.texi:36095
  53697. 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:"
  53698. msgstr ""
  53699. #. type: example
  53700. #: guix-git/doc/guix.texi:36098
  53701. #, no-wrap
  53702. msgid "guix system init my-os-config.scm /mnt\n"
  53703. msgstr ""
  53704. #. type: table
  53705. #: guix-git/doc/guix.texi:36105
  53706. 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."
  53707. msgstr ""
  53708. #. type: table
  53709. #: guix-git/doc/guix.texi:36109
  53710. msgid "This command also installs bootloader on the targets specified in @file{my-os-config}, unless the @option{--no-bootloader} option was passed."
  53711. msgstr ""
  53712. #. type: item
  53713. #: guix-git/doc/guix.texi:36110
  53714. #, no-wrap
  53715. msgid "vm"
  53716. msgstr ""
  53717. #. type: cindex
  53718. #: guix-git/doc/guix.texi:36111 guix-git/doc/guix.texi:36729
  53719. #, no-wrap
  53720. msgid "virtual machine"
  53721. msgstr ""
  53722. #. type: cindex
  53723. #: guix-git/doc/guix.texi:36112
  53724. #, no-wrap
  53725. msgid "VM"
  53726. msgstr ""
  53727. #. type: anchor{#1}
  53728. #: guix-git/doc/guix.texi:36116
  53729. msgid "guix system vm"
  53730. msgstr ""
  53731. #. type: table
  53732. #: guix-git/doc/guix.texi:36116
  53733. msgid "Build a virtual machine (VM) that contains the operating system declared in @var{file}, and return a script to run that VM."
  53734. msgstr ""
  53735. #. type: quotation
  53736. #: guix-git/doc/guix.texi:36124
  53737. 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})."
  53738. msgstr ""
  53739. #. type: table
  53740. #: guix-git/doc/guix.texi:36129
  53741. 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:"
  53742. msgstr ""
  53743. #. type: example
  53744. #: guix-git/doc/guix.texi:36132
  53745. #, no-wrap
  53746. msgid "$ /gnu/store/@dots{}-run-vm.sh -m 1024 -smp 2 -nic user,model=virtio-net-pci\n"
  53747. msgstr ""
  53748. #. type: table
  53749. #: guix-git/doc/guix.texi:36135
  53750. msgid "It's possible to combine the two steps into one:"
  53751. msgstr ""
  53752. #. type: example
  53753. #: guix-git/doc/guix.texi:36138
  53754. #, no-wrap
  53755. msgid "$ $(guix system vm my-config.scm) -m 1024 -smp 2 -nic user,model=virtio-net-pci\n"
  53756. msgstr ""
  53757. #. type: table
  53758. #: guix-git/doc/guix.texi:36141
  53759. msgid "The VM shares its store with the host system."
  53760. msgstr ""
  53761. #. type: table
  53762. #: guix-git/doc/guix.texi:36146
  53763. msgid "By default, the root file system of the VM is mounted volatile; the @option{--persistent} option can be provided to make it persistent instead. In that case, the VM disk-image file will be copied from the store to the @env{TMPDIR} directory to make it writable."
  53764. msgstr ""
  53765. #. type: table
  53766. #: guix-git/doc/guix.texi:36151
  53767. 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."
  53768. msgstr ""
  53769. #. type: table
  53770. #: guix-git/doc/guix.texi:36155
  53771. 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:"
  53772. msgstr ""
  53773. #. type: example
  53774. #: guix-git/doc/guix.texi:36159
  53775. #, no-wrap
  53776. msgid ""
  53777. "guix system vm my-config.scm \\\n"
  53778. " --expose=$HOME --share=$HOME/tmp=/exchange\n"
  53779. msgstr ""
  53780. #. type: table
  53781. #: guix-git/doc/guix.texi:36164
  53782. 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."
  53783. msgstr ""
  53784. #. type: table
  53785. #: guix-git/doc/guix.texi:36169
  53786. 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."
  53787. msgstr ""
  53788. #. type: table
  53789. #: guix-git/doc/guix.texi:36172
  53790. msgid "The @option{--image-size} option can be used to specify the size of the image."
  53791. msgstr ""
  53792. #. type: table
  53793. #: guix-git/doc/guix.texi:36179
  53794. 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."
  53795. msgstr ""
  53796. #. type: cindex
  53797. #: guix-git/doc/guix.texi:36180
  53798. #, no-wrap
  53799. msgid "System images, creation in various formats"
  53800. msgstr ""
  53801. #. type: cindex
  53802. #: guix-git/doc/guix.texi:36181
  53803. #, no-wrap
  53804. msgid "Creating system images in various formats"
  53805. msgstr ""
  53806. #. type: item
  53807. #: guix-git/doc/guix.texi:36182
  53808. #, no-wrap
  53809. msgid "image"
  53810. msgstr ""
  53811. #. type: cindex
  53812. #: guix-git/doc/guix.texi:36183
  53813. #, no-wrap
  53814. msgid "image, creating disk images"
  53815. msgstr ""
  53816. #. type: table
  53817. #: guix-git/doc/guix.texi:36195
  53818. 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:"
  53819. msgstr ""
  53820. #. type: example
  53821. #: guix-git/doc/guix.texi:36203
  53822. #, no-wrap
  53823. msgid ""
  53824. "image=$(guix system image --image-type=qcow2 \\\n"
  53825. " gnu/system/examples/lightweight-desktop.tmpl)\n"
  53826. "cp $image /tmp/my-image.qcow2\n"
  53827. "chmod +w /tmp/my-image.qcow2\n"
  53828. "qemu-system-x86_64 -enable-kvm -hda /tmp/my-image.qcow2 -m 1000 \\\n"
  53829. " -bios $(guix build ovmf)/share/firmware/ovmf_x64.bin\n"
  53830. msgstr ""
  53831. #. type: table
  53832. #: guix-git/doc/guix.texi:36209
  53833. 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:"
  53834. msgstr ""
  53835. #. type: example
  53836. #: guix-git/doc/guix.texi:36212
  53837. #, no-wrap
  53838. msgid "# dd if=$(guix system image my-os.scm) of=/dev/sdc status=progress\n"
  53839. msgstr ""
  53840. #. type: table
  53841. #: guix-git/doc/guix.texi:36216
  53842. msgid "The @code{--list-image-types} command lists all the available image types."
  53843. msgstr ""
  53844. #. type: cindex
  53845. #: guix-git/doc/guix.texi:36217
  53846. #, no-wrap
  53847. msgid "creating virtual machine images"
  53848. msgstr ""
  53849. #. type: table
  53850. #: guix-git/doc/guix.texi:36226
  53851. 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)."
  53852. msgstr ""
  53853. #. type: cindex
  53854. #: guix-git/doc/guix.texi:36227
  53855. #, no-wrap
  53856. msgid "docker-image, creating docker images"
  53857. msgstr ""
  53858. #. type: table
  53859. #: guix-git/doc/guix.texi:36233
  53860. msgid "When using the @code{docker} image type, a Docker image is produced. Guix builds the image from scratch, not from a pre-existing Docker base image. As a result, it contains @emph{exactly} what you define in the operating system configuration file. You can then load the image and launch a Docker container using commands like the following:"
  53861. msgstr ""
  53862. #. type: example
  53863. #: guix-git/doc/guix.texi:36238
  53864. #, no-wrap
  53865. msgid ""
  53866. "image_id=\"$(docker load < guix-system-docker-image.tar.gz)\"\n"
  53867. "container_id=\"$(docker create $image_id)\"\n"
  53868. "docker start $container_id\n"
  53869. msgstr ""
  53870. #. type: table
  53871. #: guix-git/doc/guix.texi:36245
  53872. 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}:"
  53873. msgstr ""
  53874. #. type: example
  53875. #: guix-git/doc/guix.texi:36248
  53876. #, no-wrap
  53877. msgid "docker exec -ti $container_id /run/current-system/profile/bin/bash --login\n"
  53878. msgstr ""
  53879. #. type: table
  53880. #: guix-git/doc/guix.texi:36255
  53881. 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}."
  53882. msgstr ""
  53883. #. type: table
  53884. #: guix-git/doc/guix.texi:36259
  53885. 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."
  53886. msgstr ""
  53887. #. type: table
  53888. #: guix-git/doc/guix.texi:36267
  53889. 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."
  53890. msgstr ""
  53891. #. type: table
  53892. #: guix-git/doc/guix.texi:36271
  53893. 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."
  53894. msgstr ""
  53895. #. type: table
  53896. #: guix-git/doc/guix.texi:36275
  53897. 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:"
  53898. msgstr ""
  53899. #. type: example
  53900. #: guix-git/doc/guix.texi:36279
  53901. #, no-wrap
  53902. msgid ""
  53903. "guix system container my-config.scm \\\n"
  53904. " --expose=$HOME --share=$HOME/tmp=/exchange\n"
  53905. msgstr ""
  53906. #. type: quotation
  53907. #: guix-git/doc/guix.texi:36283
  53908. msgid "This option requires Linux-libre 3.19 or newer."
  53909. msgstr ""
  53910. #. type: Plain text
  53911. #: guix-git/doc/guix.texi:36290 guix-git/doc/guix.texi:38963
  53912. 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:"
  53913. msgstr ""
  53914. #. type: table
  53915. #: guix-git/doc/guix.texi:36299
  53916. 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})."
  53917. msgstr ""
  53918. #. type: table
  53919. #: guix-git/doc/guix.texi:36304
  53920. msgid "Attempt to build for @var{system} instead of the host system type. This works as per @command{guix build} (@pxref{Invoking guix build})."
  53921. msgstr ""
  53922. #. type: table
  53923. #: guix-git/doc/guix.texi:36309
  53924. msgid "Return the derivation file name of the given operating system without building anything."
  53925. msgstr ""
  53926. #. type: table
  53927. #: guix-git/doc/guix.texi:36318
  53928. 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:"
  53929. msgstr ""
  53930. #. type: example
  53931. #: guix-git/doc/guix.texi:36321
  53932. #, no-wrap
  53933. msgid "guix system image -t qcow2 --save-provenance config.scm\n"
  53934. msgstr ""
  53935. #. type: table
  53936. #: guix-git/doc/guix.texi:36328
  53937. 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."
  53938. msgstr ""
  53939. #. type: item
  53940. #: guix-git/doc/guix.texi:36329
  53941. #, fuzzy, no-wrap
  53942. msgid "--image-type=@var{type}"
  53943. msgstr "--log-compression=@var{type}"
  53944. #. type: table
  53945. #: guix-git/doc/guix.texi:36332
  53946. msgid "For the @code{image} action, create an image with given @var{type}."
  53947. msgstr ""
  53948. #. type: table
  53949. #: guix-git/doc/guix.texi:36335
  53950. msgid "When this option is omitted, @command{guix system} uses the @code{efi-raw} image type."
  53951. msgstr ""
  53952. #. type: cindex
  53953. #: guix-git/doc/guix.texi:36336
  53954. #, no-wrap
  53955. msgid "ISO-9660 format"
  53956. msgstr ""
  53957. #. type: cindex
  53958. #: guix-git/doc/guix.texi:36337
  53959. #, no-wrap
  53960. msgid "CD image format"
  53961. msgstr ""
  53962. #. type: cindex
  53963. #: guix-git/doc/guix.texi:36338
  53964. #, no-wrap
  53965. msgid "DVD image format"
  53966. msgstr ""
  53967. #. type: table
  53968. #: guix-git/doc/guix.texi:36341
  53969. msgid "@option{--image-type=iso9660} produces an ISO-9660 image, suitable for burning on CDs and DVDs."
  53970. msgstr ""
  53971. #. type: item
  53972. #: guix-git/doc/guix.texi:36342
  53973. #, no-wrap
  53974. msgid "--image-size=@var{size}"
  53975. msgstr ""
  53976. #. type: table
  53977. #: guix-git/doc/guix.texi:36347
  53978. 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})."
  53979. msgstr ""
  53980. #. type: table
  53981. #: guix-git/doc/guix.texi:36351
  53982. 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}."
  53983. msgstr ""
  53984. #. type: table
  53985. #: guix-git/doc/guix.texi:36356
  53986. msgid "For the @code{container} action, allow containers to access the host network, that is, do not create a network namespace."
  53987. msgstr ""
  53988. #. type: item
  53989. #: guix-git/doc/guix.texi:36362
  53990. #, no-wrap
  53991. msgid "--skip-checks"
  53992. msgstr ""
  53993. #. type: table
  53994. #: guix-git/doc/guix.texi:36364
  53995. msgid "Skip pre-installation safety checks."
  53996. msgstr ""
  53997. #. type: table
  53998. #: guix-git/doc/guix.texi:36371
  53999. 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."
  54000. msgstr ""
  54001. #. type: table
  54002. #: guix-git/doc/guix.texi:36374
  54003. msgid "Instruct @command{guix system reconfigure} to allow system downgrades."
  54004. msgstr ""
  54005. #. type: table
  54006. #: guix-git/doc/guix.texi:36382
  54007. 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."
  54008. msgstr ""
  54009. #. type: cindex
  54010. #: guix-git/doc/guix.texi:36388
  54011. #, no-wrap
  54012. msgid "on-error"
  54013. msgstr ""
  54014. #. type: cindex
  54015. #: guix-git/doc/guix.texi:36389
  54016. #, no-wrap
  54017. msgid "on-error strategy"
  54018. msgstr ""
  54019. #. type: cindex
  54020. #: guix-git/doc/guix.texi:36390
  54021. #, no-wrap
  54022. msgid "error strategy"
  54023. msgstr ""
  54024. #. type: item
  54025. #: guix-git/doc/guix.texi:36391
  54026. #, no-wrap
  54027. msgid "--on-error=@var{strategy}"
  54028. msgstr ""
  54029. #. type: table
  54030. #: guix-git/doc/guix.texi:36394
  54031. msgid "Apply @var{strategy} when an error occurs when reading @var{file}. @var{strategy} may be one of the following:"
  54032. msgstr ""
  54033. #. type: item
  54034. #: guix-git/doc/guix.texi:36396
  54035. #, no-wrap
  54036. msgid "nothing-special"
  54037. msgstr ""
  54038. #. type: table
  54039. #: guix-git/doc/guix.texi:36398
  54040. msgid "Report the error concisely and exit. This is the default strategy."
  54041. msgstr ""
  54042. #. type: item
  54043. #: guix-git/doc/guix.texi:36399
  54044. #, no-wrap
  54045. msgid "backtrace"
  54046. msgstr ""
  54047. #. type: table
  54048. #: guix-git/doc/guix.texi:36401
  54049. msgid "Likewise, but also display a backtrace."
  54050. msgstr ""
  54051. #. type: item
  54052. #: guix-git/doc/guix.texi:36402
  54053. #, no-wrap
  54054. msgid "debug"
  54055. msgstr ""
  54056. #. type: table
  54057. #: guix-git/doc/guix.texi:36408
  54058. 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."
  54059. msgstr ""
  54060. #. type: Plain text
  54061. #: guix-git/doc/guix.texi:36415
  54062. 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:"
  54063. msgstr ""
  54064. #. type: item
  54065. #: guix-git/doc/guix.texi:36418 guix-git/doc/guix.texi:38895
  54066. #, no-wrap
  54067. msgid "describe"
  54068. msgstr ""
  54069. #. type: table
  54070. #: guix-git/doc/guix.texi:36421
  54071. msgid "Describe the running system generation: its file name, the kernel and bootloader used, etc., as well as provenance information when available."
  54072. msgstr ""
  54073. #. type: quotation
  54074. #: guix-git/doc/guix.texi:36428
  54075. msgid "The @emph{running} system generation---referred to by @file{/run/current-system}---is not necessarily the @emph{current} system generation---referred to by @file{/var/guix/profiles/system}: it differs when, for instance, you chose from the bootloader menu to boot an older generation."
  54076. msgstr ""
  54077. #. type: quotation
  54078. #: guix-git/doc/guix.texi:36432
  54079. msgid "It can also differ from the @emph{booted} system generation---referred to by @file{/run/booted-system}---for instance because you reconfigured the system in the meantime."
  54080. msgstr ""
  54081. #. type: item
  54082. #: guix-git/doc/guix.texi:36434 guix-git/doc/guix.texi:38899
  54083. #, no-wrap
  54084. msgid "list-generations"
  54085. msgstr ""
  54086. #. type: table
  54087. #: guix-git/doc/guix.texi:36439
  54088. 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})."
  54089. msgstr ""
  54090. #. type: table
  54091. #: guix-git/doc/guix.texi:36444 guix-git/doc/guix.texi:38909
  54092. 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:"
  54093. msgstr ""
  54094. #. type: example
  54095. #: guix-git/doc/guix.texi:36447
  54096. #, no-wrap
  54097. msgid "$ guix system list-generations 10d\n"
  54098. msgstr ""
  54099. #. type: Plain text
  54100. #: guix-git/doc/guix.texi:36454
  54101. 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:"
  54102. msgstr ""
  54103. #. type: anchor{#1}
  54104. #: guix-git/doc/guix.texi:36456
  54105. msgid "system-extension-graph"
  54106. msgstr ""
  54107. #. type: item
  54108. #: guix-git/doc/guix.texi:36458 guix-git/doc/guix.texi:38934
  54109. #, no-wrap
  54110. msgid "extension-graph"
  54111. msgstr ""
  54112. #. type: table
  54113. #: guix-git/doc/guix.texi:36465
  54114. 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}}):"
  54115. msgstr ""
  54116. #. type: table
  54117. #: guix-git/doc/guix.texi:36467 guix-git/doc/guix.texi:38943
  54118. msgid "The command:"
  54119. msgstr ""
  54120. #. type: example
  54121. #: guix-git/doc/guix.texi:36470
  54122. #, no-wrap
  54123. msgid "$ guix system extension-graph @var{file} | xdot -\n"
  54124. msgstr ""
  54125. #. type: table
  54126. #: guix-git/doc/guix.texi:36473 guix-git/doc/guix.texi:38949
  54127. msgid "shows the extension relations among services."
  54128. msgstr ""
  54129. #. type: anchor{#1}
  54130. #: guix-git/doc/guix.texi:36475
  54131. msgid "system-shepherd-graph"
  54132. msgstr ""
  54133. #. type: item
  54134. #: guix-git/doc/guix.texi:36475 guix-git/doc/guix.texi:38951
  54135. #, no-wrap
  54136. msgid "shepherd-graph"
  54137. msgstr ""
  54138. #. type: table
  54139. #: guix-git/doc/guix.texi:36480
  54140. 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."
  54141. msgstr ""
  54142. #. type: table
  54143. #: guix-git/doc/guix.texi:36483 guix-git/doc/guix.texi:38958
  54144. msgid "Again, the default output format is Dot/Graphviz, but you can pass @option{--graph-backend} to select a different one."
  54145. msgstr ""
  54146. #. type: section
  54147. #: guix-git/doc/guix.texi:36487
  54148. #, fuzzy, no-wrap
  54149. msgid "Invoking @code{guix deploy}"
  54150. msgstr "调用@command{guix-daemon}"
  54151. #. type: Plain text
  54152. #: guix-git/doc/guix.texi:36495
  54153. 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''."
  54154. msgstr ""
  54155. #. type: quotation
  54156. #: guix-git/doc/guix.texi:36500 guix-git/doc/guix.texi:37995
  54157. 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}!"
  54158. msgstr ""
  54159. #. type: example
  54160. #: guix-git/doc/guix.texi:36504
  54161. #, no-wrap
  54162. msgid "guix deploy @var{file}\n"
  54163. msgstr ""
  54164. #. type: Plain text
  54165. #: guix-git/doc/guix.texi:36508
  54166. 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:"
  54167. msgstr ""
  54168. #. type: lisp
  54169. #: guix-git/doc/guix.texi:36515
  54170. #, no-wrap
  54171. msgid ""
  54172. ";; This is a Guix deployment of a \"bare bones\" setup, with\n"
  54173. ";; no X11 display server, to a machine with an SSH daemon\n"
  54174. ";; listening on localhost:2222. A configuration such as this\n"
  54175. ";; may be appropriate for virtual machine with ports\n"
  54176. ";; forwarded to the host's loopback interface.\n"
  54177. "\n"
  54178. msgstr ""
  54179. #. type: lisp
  54180. #: guix-git/doc/guix.texi:36518
  54181. #, no-wrap
  54182. msgid ""
  54183. "(use-service-modules networking ssh)\n"
  54184. "(use-package-modules bootloaders)\n"
  54185. "\n"
  54186. msgstr ""
  54187. #. type: lisp
  54188. #: guix-git/doc/guix.texi:36539
  54189. #, no-wrap
  54190. msgid ""
  54191. "(define %system\n"
  54192. " (operating-system\n"
  54193. " (host-name \"gnu-deployed\")\n"
  54194. " (timezone \"Etc/UTC\")\n"
  54195. " (bootloader (bootloader-configuration\n"
  54196. " (bootloader grub-bootloader)\n"
  54197. " (targets '(\"/dev/vda\"))\n"
  54198. " (terminal-outputs '(console))))\n"
  54199. " (file-systems (cons (file-system\n"
  54200. " (mount-point \"/\")\n"
  54201. " (device \"/dev/vda1\")\n"
  54202. " (type \"ext4\"))\n"
  54203. " %base-file-systems))\n"
  54204. " (services\n"
  54205. " (append (list (service dhcp-client-service-type)\n"
  54206. " (service openssh-service-type\n"
  54207. " (openssh-configuration\n"
  54208. " (permit-root-login #t)\n"
  54209. " (allow-empty-passwords? #t))))\n"
  54210. " %base-services))))\n"
  54211. "\n"
  54212. msgstr ""
  54213. #. type: lisp
  54214. #: guix-git/doc/guix.texi:36549
  54215. #, no-wrap
  54216. msgid ""
  54217. "(list (machine\n"
  54218. " (operating-system %system)\n"
  54219. " (environment managed-host-environment-type)\n"
  54220. " (configuration (machine-ssh-configuration\n"
  54221. " (host-name \"localhost\")\n"
  54222. " (system \"x86_64-linux\")\n"
  54223. " (user \"alice\")\n"
  54224. " (identity \"./id_rsa\")\n"
  54225. " (port 2222)))))\n"
  54226. msgstr ""
  54227. #. type: Plain text
  54228. #: guix-git/doc/guix.texi:36562
  54229. 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."
  54230. msgstr ""
  54231. #. type: Plain text
  54232. #: guix-git/doc/guix.texi:36567
  54233. 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:"
  54234. msgstr ""
  54235. #. type: Plain text
  54236. #: guix-git/doc/guix.texi:36575
  54237. #, fuzzy
  54238. msgid "Each target machine must authorize the key of the master machine so that it accepts store items it receives from the coordinator:"
  54239. msgstr "每台构建机器都必须认证主机器的公钥,从而接收从主机器接收的仓库文件:"
  54240. #. type: example
  54241. #: guix-git/doc/guix.texi:36578
  54242. #, fuzzy, no-wrap
  54243. msgid "# guix archive --authorize < coordinator-public-key.txt\n"
  54244. msgstr "# guix archive --authorize < master-public-key.txt\n"
  54245. #. type: Plain text
  54246. #: guix-git/doc/guix.texi:36589
  54247. 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:"
  54248. msgstr ""
  54249. #. type: lisp
  54250. #: guix-git/doc/guix.texi:36593
  54251. #, no-wrap
  54252. msgid ""
  54253. "(use-modules ...\n"
  54254. " (gnu system)) ;for %sudoers-specification\n"
  54255. "\n"
  54256. msgstr ""
  54257. #. type: lisp
  54258. #: guix-git/doc/guix.texi:36595
  54259. #, no-wrap
  54260. msgid ""
  54261. "(define %user \"username\")\n"
  54262. "\n"
  54263. msgstr ""
  54264. #. type: lisp
  54265. #: guix-git/doc/guix.texi:36603
  54266. #, no-wrap
  54267. msgid ""
  54268. "(operating-system\n"
  54269. " ...\n"
  54270. " (sudoers-file\n"
  54271. " (plain-file \"sudoers\"\n"
  54272. " (string-append (plain-file-content %sudoers-specification)\n"
  54273. " (format #f \"~a ALL = NOPASSWD: ALL~%\"\n"
  54274. " %user)))))\n"
  54275. "\n"
  54276. msgstr ""
  54277. #. type: Plain text
  54278. #: guix-git/doc/guix.texi:36608
  54279. msgid "For more information regarding the format of the @file{sudoers} file, consult @command{man sudoers}."
  54280. msgstr ""
  54281. #. type: Plain text
  54282. #: guix-git/doc/guix.texi:36613
  54283. msgid "Once you've deployed a system on a set of machines, you may find it useful to run a command on all of them. The @option{--execute} or @option{-x} option lets you do that; the example below runs @command{uname -a} on all the machines listed in the deployment file:"
  54284. msgstr ""
  54285. #. type: example
  54286. #: guix-git/doc/guix.texi:36616
  54287. #, no-wrap
  54288. msgid "guix deploy @var{file} -x -- uname -a\n"
  54289. msgstr ""
  54290. #. type: Plain text
  54291. #: guix-git/doc/guix.texi:36620
  54292. msgid "One thing you may often need to do after deployment is restart specific services on all the machines, which you can do like so:"
  54293. msgstr ""
  54294. #. type: example
  54295. #: guix-git/doc/guix.texi:36623
  54296. #, no-wrap
  54297. msgid "guix deploy @var{file} -x -- herd restart @var{service}\n"
  54298. msgstr ""
  54299. #. type: Plain text
  54300. #: guix-git/doc/guix.texi:36627
  54301. msgid "The @command{guix deploy -x} command returns zero if and only if the command succeeded on all the machines."
  54302. msgstr ""
  54303. #. type: Plain text
  54304. #: guix-git/doc/guix.texi:36632
  54305. msgid "Below are the data types you need to know about when writing a deployment file."
  54306. msgstr ""
  54307. #. type: deftp
  54308. #: guix-git/doc/guix.texi:36633
  54309. #, fuzzy, no-wrap
  54310. msgid "{Data Type} machine"
  54311. msgstr "{数据类型} build-machine"
  54312. #. type: deftp
  54313. #: guix-git/doc/guix.texi:36636
  54314. msgid "This is the data type representing a single machine in a heterogeneous Guix deployment."
  54315. msgstr ""
  54316. #. type: table
  54317. #: guix-git/doc/guix.texi:36640
  54318. #, fuzzy
  54319. msgid "The object of the operating system configuration to deploy."
  54320. msgstr "管理操作系统配置。"
  54321. #. type: code{#1}
  54322. #: guix-git/doc/guix.texi:36641
  54323. #, fuzzy, no-wrap
  54324. msgid "environment"
  54325. msgstr "构建环境"
  54326. #. type: table
  54327. #: guix-git/doc/guix.texi:36643
  54328. msgid "An @code{environment-type} describing how the machine should be provisioned."
  54329. msgstr ""
  54330. #. type: item
  54331. #: guix-git/doc/guix.texi:36644
  54332. #, fuzzy, no-wrap
  54333. msgid "@code{configuration} (default: @code{#f})"
  54334. msgstr "@code{journal-content}(默认值:@code{#f})"
  54335. #. type: table
  54336. #: guix-git/doc/guix.texi:36649
  54337. 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."
  54338. msgstr ""
  54339. #. type: deftp
  54340. #: guix-git/doc/guix.texi:36652
  54341. #, fuzzy, no-wrap
  54342. msgid "{Data Type} machine-ssh-configuration"
  54343. msgstr "{数据类型} build-machine"
  54344. #. type: deftp
  54345. #: guix-git/doc/guix.texi:36655
  54346. msgid "This is the data type representing the SSH client parameters for a machine with an @code{environment} of @code{managed-host-environment-type}."
  54347. msgstr ""
  54348. #. type: item
  54349. #: guix-git/doc/guix.texi:36658
  54350. #, fuzzy, no-wrap
  54351. msgid "@code{build-locally?} (default: @code{#t})"
  54352. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  54353. #. type: table
  54354. #: guix-git/doc/guix.texi:36660
  54355. msgid "If false, system derivations will be built on the machine being deployed to."
  54356. msgstr ""
  54357. #. type: code{#1}
  54358. #: guix-git/doc/guix.texi:36660
  54359. #, no-wrap
  54360. msgid "system"
  54361. msgstr "系统"
  54362. #. type: table
  54363. #: guix-git/doc/guix.texi:36663
  54364. #, fuzzy
  54365. msgid "The system type describing the architecture of the machine being deployed to---e.g., @code{\"x86_64-linux\"}."
  54366. msgstr "远程机器的系统类型--如,@code{\"x86_64-linux\"}。"
  54367. #. type: item
  54368. #: guix-git/doc/guix.texi:36663
  54369. #, fuzzy, no-wrap
  54370. msgid "@code{authorize?} (default: @code{#t})"
  54371. msgstr "@code{mate}(默认值:@code{mate})"
  54372. #. type: table
  54373. #: guix-git/doc/guix.texi:36666
  54374. msgid "If true, the coordinator's signing key will be added to the remote's ACL keyring."
  54375. msgstr ""
  54376. #. type: item
  54377. #: guix-git/doc/guix.texi:36668
  54378. #, fuzzy, no-wrap
  54379. msgid "@code{identity} (default: @code{#f})"
  54380. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  54381. #. type: table
  54382. #: guix-git/doc/guix.texi:36671
  54383. msgid "If specified, the path to the SSH private key to use to authenticate with the remote host."
  54384. msgstr ""
  54385. #. type: item
  54386. #: guix-git/doc/guix.texi:36672
  54387. #, fuzzy, no-wrap
  54388. msgid "@code{host-key} (default: @code{#f})"
  54389. msgstr "@code{port}(默认值:@code{22})"
  54390. #. type: table
  54391. #: guix-git/doc/guix.texi:36674
  54392. msgid "This should be the SSH host key of the machine, which looks like this:"
  54393. msgstr ""
  54394. #. type: example
  54395. #: guix-git/doc/guix.texi:36677
  54396. #, fuzzy, no-wrap
  54397. msgid "ssh-ed25519 AAAAC3Nz@dots{} root@@example.org\n"
  54398. msgstr "ssh-ed25519 AAAAC3NzaC@dots{}mde+UhL hint@@example.org\n"
  54399. #. type: table
  54400. #: guix-git/doc/guix.texi:36682
  54401. 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."
  54402. msgstr ""
  54403. #. type: item
  54404. #: guix-git/doc/guix.texi:36683
  54405. #, fuzzy, no-wrap
  54406. msgid "@code{allow-downgrades?} (default: @code{#f})"
  54407. msgstr "@code{challenge}(默认值:@code{#f})"
  54408. #. type: table
  54409. #: guix-git/doc/guix.texi:36685
  54410. msgid "Whether to allow potential downgrades."
  54411. msgstr ""
  54412. #. type: table
  54413. #: guix-git/doc/guix.texi:36693
  54414. 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."
  54415. msgstr ""
  54416. #. type: item
  54417. #: guix-git/doc/guix.texi:36694
  54418. #, fuzzy, no-wrap
  54419. msgid "@code{safety-checks?} (default: @code{#t})"
  54420. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  54421. #. type: table
  54422. #: guix-git/doc/guix.texi:36700
  54423. msgid "Whether to perform ``safety checks'' before deployment. This includes verifying that devices and file systems referred to in the operating system configuration actually exist on the target machine, and making sure that Linux modules required to access storage devices at boot time are listed in the @code{initrd-modules} field of the operating system."
  54424. msgstr ""
  54425. #. type: table
  54426. #: guix-git/doc/guix.texi:36703
  54427. msgid "These safety checks ensure that you do not inadvertently deploy a system that would fail to boot. Be careful before turning them off!"
  54428. msgstr ""
  54429. #. type: deftp
  54430. #: guix-git/doc/guix.texi:36706
  54431. #, no-wrap
  54432. msgid "{Data Type} digital-ocean-configuration"
  54433. msgstr ""
  54434. #. type: deftp
  54435. #: guix-git/doc/guix.texi:36709
  54436. 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}."
  54437. msgstr ""
  54438. #. type: code{#1}
  54439. #: guix-git/doc/guix.texi:36711
  54440. #, fuzzy, no-wrap
  54441. msgid "ssh-key"
  54442. msgstr "主机公钥"
  54443. #. type: table
  54444. #: guix-git/doc/guix.texi:36714
  54445. msgid "The path to the SSH private key to use to authenticate with the remote host. In the future, this field may not exist."
  54446. msgstr ""
  54447. #. type: code{#1}
  54448. #: guix-git/doc/guix.texi:36714
  54449. #, no-wrap
  54450. msgid "tags"
  54451. msgstr ""
  54452. #. type: table
  54453. #: guix-git/doc/guix.texi:36717
  54454. 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."
  54455. msgstr ""
  54456. #. type: code{#1}
  54457. #: guix-git/doc/guix.texi:36717
  54458. #, no-wrap
  54459. msgid "region"
  54460. msgstr ""
  54461. #. type: table
  54462. #: guix-git/doc/guix.texi:36719
  54463. msgid "A Digital Ocean region slug, such as @code{\"nyc3\"}."
  54464. msgstr ""
  54465. #. type: table
  54466. #: guix-git/doc/guix.texi:36721
  54467. msgid "A Digital Ocean size slug, such as @code{\"s-1vcpu-1gb\"}"
  54468. msgstr ""
  54469. #. type: code{#1}
  54470. #: guix-git/doc/guix.texi:36721
  54471. #, no-wrap
  54472. msgid "enable-ipv6?"
  54473. msgstr ""
  54474. #. type: table
  54475. #: guix-git/doc/guix.texi:36723
  54476. msgid "Whether or not the droplet should be created with IPv6 networking."
  54477. msgstr ""
  54478. #. type: section
  54479. #: guix-git/doc/guix.texi:36727
  54480. #, no-wrap
  54481. msgid "Running Guix in a Virtual Machine"
  54482. msgstr ""
  54483. #. type: Plain text
  54484. #: guix-git/doc/guix.texi:36735
  54485. 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)."
  54486. msgstr ""
  54487. #. type: Plain text
  54488. #: guix-git/doc/guix.texi:36742
  54489. 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})."
  54490. msgstr ""
  54491. #. type: Plain text
  54492. #: guix-git/doc/guix.texi:36745
  54493. msgid "Instead of using this pre-built image, one can also build their own image using @command{guix system image} (@pxref{Invoking guix system})."
  54494. msgstr ""
  54495. #. type: cindex
  54496. #: guix-git/doc/guix.texi:36746
  54497. #, no-wrap
  54498. msgid "QEMU"
  54499. msgstr ""
  54500. #. type: Plain text
  54501. #: guix-git/doc/guix.texi:36753
  54502. 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:"
  54503. msgstr ""
  54504. #. type: example
  54505. #: guix-git/doc/guix.texi:36760
  54506. #, no-wrap
  54507. msgid ""
  54508. "$ qemu-system-x86_64 \\\n"
  54509. " -nic user,model=virtio-net-pci \\\n"
  54510. " -enable-kvm -m 1024 \\\n"
  54511. " -device virtio-blk,drive=myhd \\\n"
  54512. " -drive if=none,file=/tmp/qemu-image,id=myhd\n"
  54513. msgstr ""
  54514. #. type: Plain text
  54515. #: guix-git/doc/guix.texi:36763
  54516. msgid "Here is what each of these options means:"
  54517. msgstr ""
  54518. #. type: item
  54519. #: guix-git/doc/guix.texi:36765
  54520. #, no-wrap
  54521. msgid "qemu-system-x86_64"
  54522. msgstr ""
  54523. #. type: table
  54524. #: guix-git/doc/guix.texi:36768
  54525. msgid "This specifies the hardware platform to emulate. This should match the host."
  54526. msgstr ""
  54527. #. type: item
  54528. #: guix-git/doc/guix.texi:36769
  54529. #, no-wrap
  54530. msgid "-nic user,model=virtio-net-pci"
  54531. msgstr ""
  54532. #. type: table
  54533. #: guix-git/doc/guix.texi:36777
  54534. 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}."
  54535. msgstr ""
  54536. #. type: item
  54537. #: guix-git/doc/guix.texi:36778
  54538. #, no-wrap
  54539. msgid "-enable-kvm"
  54540. msgstr ""
  54541. #. type: table
  54542. #: guix-git/doc/guix.texi:36782
  54543. msgid "If your system has hardware virtualization extensions, enabling the virtual machine support (KVM) of the Linux kernel will make things run faster."
  54544. msgstr ""
  54545. #. type: item
  54546. #: guix-git/doc/guix.texi:36784
  54547. #, no-wrap
  54548. msgid "-m 1024"
  54549. msgstr ""
  54550. #. type: table
  54551. #: guix-git/doc/guix.texi:36787
  54552. msgid "RAM available to the guest OS, in mebibytes. Defaults to 128@tie{}MiB, which may be insufficient for some operations."
  54553. msgstr ""
  54554. #. type: item
  54555. #: guix-git/doc/guix.texi:36788
  54556. #, no-wrap
  54557. msgid "-device virtio-blk,drive=myhd"
  54558. msgstr ""
  54559. #. type: table
  54560. #: guix-git/doc/guix.texi:36793
  54561. 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."
  54562. msgstr ""
  54563. #. type: item
  54564. #: guix-git/doc/guix.texi:36794
  54565. #, no-wrap
  54566. msgid "-drive if=none,file=/tmp/qemu-image,id=myhd"
  54567. msgstr ""
  54568. #. type: table
  54569. #: guix-git/doc/guix.texi:36797
  54570. msgid "Use our QCOW image, the @file{/tmp/qemu-image} file, as the backing store of the ``myhd'' drive."
  54571. msgstr ""
  54572. #. type: Plain text
  54573. #: guix-git/doc/guix.texi:36807
  54574. 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}."
  54575. msgstr ""
  54576. #. type: subsection
  54577. #: guix-git/doc/guix.texi:36808
  54578. #, no-wrap
  54579. msgid "Connecting Through SSH"
  54580. msgstr ""
  54581. #. type: Plain text
  54582. #: guix-git/doc/guix.texi:36816
  54583. 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"
  54584. msgstr ""
  54585. #. type: example
  54586. #: guix-git/doc/guix.texi:36819
  54587. #, no-wrap
  54588. msgid "$(guix system vm config.scm) -nic user,model=virtio-net-pci,hostfwd=tcp::10022-:22\n"
  54589. msgstr ""
  54590. #. type: Plain text
  54591. #: guix-git/doc/guix.texi:36822
  54592. msgid "To connect to the VM you can run"
  54593. msgstr ""
  54594. #. type: example
  54595. #: guix-git/doc/guix.texi:36825
  54596. #, no-wrap
  54597. msgid "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 10022 localhost\n"
  54598. msgstr ""
  54599. #. type: Plain text
  54600. #: guix-git/doc/guix.texi:36832
  54601. 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."
  54602. msgstr ""
  54603. #. type: quotation
  54604. #: guix-git/doc/guix.texi:36838
  54605. 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."
  54606. msgstr ""
  54607. #. type: subsection
  54608. #: guix-git/doc/guix.texi:36840
  54609. #, no-wrap
  54610. msgid "Using @command{virt-viewer} with Spice"
  54611. msgstr ""
  54612. #. type: Plain text
  54613. #: guix-git/doc/guix.texi:36846
  54614. 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."
  54615. msgstr ""
  54616. #. type: Plain text
  54617. #: guix-git/doc/guix.texi:36849
  54618. 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}:"
  54619. msgstr ""
  54620. #. type: example
  54621. #: guix-git/doc/guix.texi:36855
  54622. #, no-wrap
  54623. msgid ""
  54624. "-device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x5\n"
  54625. "-chardev spicevmc,name=vdagent,id=vdagent\n"
  54626. "-device virtserialport,nr=1,bus=virtio-serial0.0,chardev=vdagent,\\\n"
  54627. "name=com.redhat.spice.0\n"
  54628. msgstr ""
  54629. #. type: Plain text
  54630. #: guix-git/doc/guix.texi:36859
  54631. msgid "You'll also need to add the @code{(spice-vdagent-service)} to your system definition (@pxref{Miscellaneous Services, Spice service})."
  54632. msgstr ""
  54633. #. type: Plain text
  54634. #: guix-git/doc/guix.texi:36866
  54635. 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?"
  54636. msgstr ""
  54637. #. type: cindex
  54638. #: guix-git/doc/guix.texi:36879
  54639. #, no-wrap
  54640. msgid "daemons"
  54641. msgstr ""
  54642. #. type: Plain text
  54643. #: guix-git/doc/guix.texi:36892
  54644. 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."
  54645. msgstr ""
  54646. #. type: cindex
  54647. #: guix-git/doc/guix.texi:36893
  54648. #, no-wrap
  54649. msgid "service extensions"
  54650. msgstr ""
  54651. #. type: Plain text
  54652. #: guix-git/doc/guix.texi:36905
  54653. 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})."
  54654. msgstr ""
  54655. #. type: Plain text
  54656. #: guix-git/doc/guix.texi:36909
  54657. 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:"
  54658. msgstr ""
  54659. #. type: Plain text
  54660. #: guix-git/doc/guix.texi:36911
  54661. msgid "@image{images/service-graph,,5in,Typical service extension graph.}"
  54662. msgstr ""
  54663. #. type: cindex
  54664. #: guix-git/doc/guix.texi:36912
  54665. #, no-wrap
  54666. msgid "system service"
  54667. msgstr ""
  54668. #. type: Plain text
  54669. #: guix-git/doc/guix.texi:36920
  54670. 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."
  54671. msgstr ""
  54672. #. type: cindex
  54673. #: guix-git/doc/guix.texi:36921
  54674. #, no-wrap
  54675. msgid "service types"
  54676. msgstr ""
  54677. #. type: Plain text
  54678. #: guix-git/doc/guix.texi:36927
  54679. 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."
  54680. msgstr ""
  54681. #. type: Plain text
  54682. #: guix-git/doc/guix.texi:36930
  54683. msgid "The following section describes the programming interface for service types and services."
  54684. msgstr ""
  54685. #. type: Plain text
  54686. #: guix-git/doc/guix.texi:36937
  54687. 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}):"
  54688. msgstr ""
  54689. #. type: lisp
  54690. #: guix-git/doc/guix.texi:36947
  54691. #, no-wrap
  54692. msgid ""
  54693. "(define guix-service-type\n"
  54694. " (service-type\n"
  54695. " (name 'guix)\n"
  54696. " (extensions\n"
  54697. " (list (service-extension shepherd-root-service-type guix-shepherd-service)\n"
  54698. " (service-extension account-service-type guix-accounts)\n"
  54699. " (service-extension activation-service-type guix-activation)))\n"
  54700. " (default-value (guix-configuration))))\n"
  54701. msgstr ""
  54702. #. type: Plain text
  54703. #: guix-git/doc/guix.texi:36951
  54704. msgid "It defines three things:"
  54705. msgstr ""
  54706. #. type: enumerate
  54707. #: guix-git/doc/guix.texi:36955
  54708. msgid "A name, whose sole purpose is to make inspection and debugging easier."
  54709. msgstr ""
  54710. #. type: enumerate
  54711. #: guix-git/doc/guix.texi:36960
  54712. 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."
  54713. msgstr ""
  54714. #. type: enumerate
  54715. #: guix-git/doc/guix.texi:36963
  54716. msgid "Every service type has at least one service extension. The only exception is the @dfn{boot service type}, which is the ultimate service."
  54717. msgstr ""
  54718. #. type: enumerate
  54719. #: guix-git/doc/guix.texi:36966
  54720. msgid "Optionally, a default value for instances of this type."
  54721. msgstr ""
  54722. #. type: Plain text
  54723. #: guix-git/doc/guix.texi:36969
  54724. msgid "In this example, @code{guix-service-type} extends three services:"
  54725. msgstr ""
  54726. #. type: item
  54727. #: guix-git/doc/guix.texi:36971
  54728. #, no-wrap
  54729. msgid "shepherd-root-service-type"
  54730. msgstr ""
  54731. #. type: table
  54732. #: guix-git/doc/guix.texi:36976
  54733. 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})."
  54734. msgstr ""
  54735. #. type: item
  54736. #: guix-git/doc/guix.texi:36977
  54737. #, no-wrap
  54738. msgid "account-service-type"
  54739. msgstr ""
  54740. #. type: table
  54741. #: guix-git/doc/guix.texi:36982
  54742. 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})."
  54743. msgstr ""
  54744. #. type: item
  54745. #: guix-git/doc/guix.texi:36983
  54746. #, no-wrap
  54747. msgid "activation-service-type"
  54748. msgstr ""
  54749. #. type: table
  54750. #: guix-git/doc/guix.texi:36987
  54751. 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."
  54752. msgstr ""
  54753. #. type: Plain text
  54754. #: guix-git/doc/guix.texi:36990
  54755. msgid "A service of this type is instantiated like this:"
  54756. msgstr ""
  54757. #. type: lisp
  54758. #: guix-git/doc/guix.texi:36996
  54759. #, no-wrap
  54760. msgid ""
  54761. "(service guix-service-type\n"
  54762. " (guix-configuration\n"
  54763. " (build-accounts 5)\n"
  54764. " (extra-options '(\"--gc-keep-derivations\"))))\n"
  54765. msgstr ""
  54766. #. type: Plain text
  54767. #: guix-git/doc/guix.texi:37004
  54768. 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:"
  54769. msgstr ""
  54770. #. type: lisp
  54771. #: guix-git/doc/guix.texi:37007
  54772. #, no-wrap
  54773. msgid "(service guix-service-type)\n"
  54774. msgstr ""
  54775. #. type: Plain text
  54776. #: guix-git/doc/guix.texi:37011
  54777. msgid "@code{guix-service-type} is quite simple because it extends other services but is not extensible itself."
  54778. msgstr ""
  54779. #. type: Plain text
  54780. #: guix-git/doc/guix.texi:37015
  54781. msgid "The service type for an @emph{extensible} service looks like this:"
  54782. msgstr ""
  54783. #. type: lisp
  54784. #: guix-git/doc/guix.texi:37022
  54785. #, no-wrap
  54786. msgid ""
  54787. "(define udev-service-type\n"
  54788. " (service-type (name 'udev)\n"
  54789. " (extensions\n"
  54790. " (list (service-extension shepherd-root-service-type\n"
  54791. " udev-shepherd-service)))\n"
  54792. "\n"
  54793. msgstr ""
  54794. #. type: lisp
  54795. #: guix-git/doc/guix.texi:37030
  54796. #, no-wrap
  54797. msgid ""
  54798. " (compose concatenate) ;concatenate the list of rules\n"
  54799. " (extend (lambda (config rules)\n"
  54800. " (match config\n"
  54801. " (($ <udev-configuration> udev initial-rules)\n"
  54802. " (udev-configuration\n"
  54803. " (udev udev) ;the udev package to use\n"
  54804. " (rules (append initial-rules rules)))))))))\n"
  54805. msgstr ""
  54806. #. type: Plain text
  54807. #: guix-git/doc/guix.texi:37036
  54808. 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:"
  54809. msgstr ""
  54810. #. type: item
  54811. #: guix-git/doc/guix.texi:37038
  54812. #, no-wrap
  54813. msgid "compose"
  54814. msgstr ""
  54815. #. type: table
  54816. #: guix-git/doc/guix.texi:37041
  54817. msgid "This is the procedure to @dfn{compose} the list of extensions to services of this type."
  54818. msgstr ""
  54819. #. type: table
  54820. #: guix-git/doc/guix.texi:37044
  54821. msgid "Services can extend the udev service by passing it lists of rules; we compose those extensions simply by concatenating them."
  54822. msgstr ""
  54823. #. type: item
  54824. #: guix-git/doc/guix.texi:37045
  54825. #, no-wrap
  54826. msgid "extend"
  54827. msgstr ""
  54828. #. type: table
  54829. #: guix-git/doc/guix.texi:37048
  54830. msgid "This procedure defines how the value of the service is @dfn{extended} with the composition of the extensions."
  54831. msgstr ""
  54832. #. type: table
  54833. #: guix-git/doc/guix.texi:37053
  54834. 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."
  54835. msgstr ""
  54836. #. type: table
  54837. #: guix-git/doc/guix.texi:37059
  54838. 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})."
  54839. msgstr ""
  54840. #. type: Plain text
  54841. #: guix-git/doc/guix.texi:37064
  54842. 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."
  54843. msgstr ""
  54844. #. type: Plain text
  54845. #: guix-git/doc/guix.texi:37067
  54846. msgid "Still here? The next section provides a reference of the programming interface for services."
  54847. msgstr ""
  54848. #. type: Plain text
  54849. #: guix-git/doc/guix.texi:37075
  54850. 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."
  54851. msgstr ""
  54852. #. type: deffn
  54853. #: guix-git/doc/guix.texi:37076
  54854. #, no-wrap
  54855. msgid "{Scheme Procedure} service @var{type} [@var{value}]"
  54856. msgstr ""
  54857. #. type: deffn
  54858. #: guix-git/doc/guix.texi:37080
  54859. 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."
  54860. msgstr ""
  54861. #. type: deffn
  54862. #: guix-git/doc/guix.texi:37084
  54863. 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."
  54864. msgstr ""
  54865. #. type: deffn
  54866. #: guix-git/doc/guix.texi:37086
  54867. msgid "For instance, this:"
  54868. msgstr ""
  54869. #. type: lisp
  54870. #: guix-git/doc/guix.texi:37089
  54871. #, no-wrap
  54872. msgid "(service openssh-service-type)\n"
  54873. msgstr ""
  54874. #. type: deffn
  54875. #: guix-git/doc/guix.texi:37093
  54876. msgid "is equivalent to this:"
  54877. msgstr ""
  54878. #. type: lisp
  54879. #: guix-git/doc/guix.texi:37097
  54880. #, no-wrap
  54881. msgid ""
  54882. "(service openssh-service-type\n"
  54883. " (openssh-configuration))\n"
  54884. msgstr ""
  54885. #. type: deffn
  54886. #: guix-git/doc/guix.texi:37101
  54887. msgid "In both cases the result is an instance of @code{openssh-service-type} with the default configuration."
  54888. msgstr ""
  54889. #. type: deffn
  54890. #: guix-git/doc/guix.texi:37103
  54891. #, no-wrap
  54892. msgid "{Scheme Procedure} service? @var{obj}"
  54893. msgstr ""
  54894. #. type: deffn
  54895. #: guix-git/doc/guix.texi:37105
  54896. msgid "Return true if @var{obj} is a service."
  54897. msgstr ""
  54898. #. type: deffn
  54899. #: guix-git/doc/guix.texi:37107
  54900. #, no-wrap
  54901. msgid "{Scheme Procedure} service-kind @var{service}"
  54902. msgstr ""
  54903. #. type: deffn
  54904. #: guix-git/doc/guix.texi:37109
  54905. msgid "Return the type of @var{service}---i.e., a @code{<service-type>} object."
  54906. msgstr ""
  54907. #. type: deffn
  54908. #: guix-git/doc/guix.texi:37111
  54909. #, no-wrap
  54910. msgid "{Scheme Procedure} service-value @var{service}"
  54911. msgstr ""
  54912. #. type: deffn
  54913. #: guix-git/doc/guix.texi:37114
  54914. msgid "Return the value associated with @var{service}. It represents its parameters."
  54915. msgstr ""
  54916. #. type: Plain text
  54917. #: guix-git/doc/guix.texi:37117
  54918. msgid "Here is an example of how a service is created and manipulated:"
  54919. msgstr ""
  54920. #. type: lisp
  54921. #: guix-git/doc/guix.texi:37126
  54922. #, no-wrap
  54923. msgid ""
  54924. "(define s\n"
  54925. " (service nginx-service-type\n"
  54926. " (nginx-configuration\n"
  54927. " (nginx nginx)\n"
  54928. " (log-directory log-directory)\n"
  54929. " (run-directory run-directory)\n"
  54930. " (file config-file))))\n"
  54931. "\n"
  54932. msgstr ""
  54933. #. type: lisp
  54934. #: guix-git/doc/guix.texi:37129
  54935. #, no-wrap
  54936. msgid ""
  54937. "(service? s)\n"
  54938. "@result{} #t\n"
  54939. "\n"
  54940. msgstr ""
  54941. #. type: lisp
  54942. #: guix-git/doc/guix.texi:37132
  54943. #, no-wrap
  54944. msgid ""
  54945. "(eq? (service-kind s) nginx-service-type)\n"
  54946. "@result{} #t\n"
  54947. msgstr ""
  54948. #. type: Plain text
  54949. #: guix-git/doc/guix.texi:37142
  54950. 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."
  54951. msgstr ""
  54952. #. type: deffn
  54953. #: guix-git/doc/guix.texi:37143
  54954. #, no-wrap
  54955. msgid "{Scheme Syntax} modify-services @var{services} @"
  54956. msgstr ""
  54957. #. type: deffn
  54958. #: guix-git/doc/guix.texi:37145
  54959. msgid "(@var{type} @var{variable} => @var{body}) @dots{}"
  54960. msgstr ""
  54961. #. type: deffn
  54962. #: guix-git/doc/guix.texi:37148
  54963. msgid "Modify the services listed in @var{services} according to the given clauses. Each clause has the form:"
  54964. msgstr ""
  54965. #. type: example
  54966. #: guix-git/doc/guix.texi:37151
  54967. #, no-wrap
  54968. msgid "(@var{type} @var{variable} => @var{body})\n"
  54969. msgstr ""
  54970. #. type: deffn
  54971. #: guix-git/doc/guix.texi:37158
  54972. 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}."
  54973. msgstr ""
  54974. #. type: deffn
  54975. #: guix-git/doc/guix.texi:37165
  54976. 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."
  54977. msgstr ""
  54978. #. type: deffn
  54979. #: guix-git/doc/guix.texi:37167
  54980. #, fuzzy
  54981. #| msgid "Packages are currently available on the following platforms:"
  54982. msgid "Clauses can also have the following form:"
  54983. msgstr "目前这些平台提供软件包:"
  54984. #. type: lisp
  54985. #: guix-git/doc/guix.texi:37170
  54986. #, fuzzy, no-wrap
  54987. msgid "(delete @var{type})\n"
  54988. msgstr "--log-compression=@var{type}"
  54989. #. type: deffn
  54990. #: guix-git/doc/guix.texi:37174
  54991. msgid "Such a clause removes all services of the given @var{type} from @var{services}."
  54992. msgstr ""
  54993. #. type: deffn
  54994. #: guix-git/doc/guix.texi:37176
  54995. msgid "@xref{Using the Configuration System}, for example usage."
  54996. msgstr ""
  54997. #. type: Plain text
  54998. #: guix-git/doc/guix.texi:37183
  54999. 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."
  55000. msgstr ""
  55001. #. type: deftp
  55002. #: guix-git/doc/guix.texi:37184
  55003. #, no-wrap
  55004. msgid "{Data Type} service-type"
  55005. msgstr ""
  55006. #. type: cindex
  55007. #: guix-git/doc/guix.texi:37185
  55008. #, no-wrap
  55009. msgid "service type"
  55010. msgstr ""
  55011. #. type: deftp
  55012. #: guix-git/doc/guix.texi:37188
  55013. msgid "This is the representation of a @dfn{service type} (@pxref{Service Types and Services})."
  55014. msgstr ""
  55015. #. type: table
  55016. #: guix-git/doc/guix.texi:37192
  55017. msgid "This is a symbol, used only to simplify inspection and debugging."
  55018. msgstr ""
  55019. #. type: code{#1}
  55020. #: guix-git/doc/guix.texi:37193
  55021. #, no-wrap
  55022. msgid "extensions"
  55023. msgstr ""
  55024. #. type: table
  55025. #: guix-git/doc/guix.texi:37195
  55026. msgid "A non-empty list of @code{<service-extension>} objects (see below)."
  55027. msgstr ""
  55028. #. type: item
  55029. #: guix-git/doc/guix.texi:37196
  55030. #, no-wrap
  55031. msgid "@code{compose} (default: @code{#f})"
  55032. msgstr ""
  55033. #. type: table
  55034. #: guix-git/doc/guix.texi:37200
  55035. 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."
  55036. msgstr ""
  55037. #. type: table
  55038. #: guix-git/doc/guix.texi:37204
  55039. 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."
  55040. msgstr ""
  55041. #. type: item
  55042. #: guix-git/doc/guix.texi:37205
  55043. #, no-wrap
  55044. msgid "@code{extend} (default: @code{#f})"
  55045. msgstr ""
  55046. #. type: table
  55047. #: guix-git/doc/guix.texi:37207
  55048. msgid "If this is @code{#f}, services of this type cannot be extended."
  55049. msgstr ""
  55050. #. type: table
  55051. #: guix-git/doc/guix.texi:37213
  55052. 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."
  55053. msgstr ""
  55054. #. type: table
  55055. #: guix-git/doc/guix.texi:37219
  55056. 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})."
  55057. msgstr ""
  55058. #. type: item
  55059. #: guix-git/doc/guix.texi:37220
  55060. #, fuzzy, no-wrap
  55061. msgid "@code{default-value} (default: @code{&no-default-value})"
  55062. msgstr "@code{mate}(默认值:@code{mate})"
  55063. #. type: table
  55064. #: guix-git/doc/guix.texi:37223
  55065. msgid "The default value associated for instances of this service type. This allows users to use the @code{service} form without its second argument:"
  55066. msgstr ""
  55067. #. type: lisp
  55068. #: guix-git/doc/guix.texi:37226
  55069. #, no-wrap
  55070. msgid "(service @var{type})\n"
  55071. msgstr ""
  55072. #. type: table
  55073. #: guix-git/doc/guix.texi:37230
  55074. msgid "The returned service in this case has the default value specified by @var{type}."
  55075. msgstr ""
  55076. #. type: deftp
  55077. #: guix-git/doc/guix.texi:37233
  55078. msgid "@xref{Service Types and Services}, for examples."
  55079. msgstr ""
  55080. #. type: deffn
  55081. #: guix-git/doc/guix.texi:37235
  55082. #, no-wrap
  55083. msgid "{Scheme Procedure} service-extension @var{target-type} @"
  55084. msgstr ""
  55085. #. type: deffn
  55086. #: guix-git/doc/guix.texi:37241
  55087. 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."
  55088. msgstr ""
  55089. #. type: deffn
  55090. #: guix-git/doc/guix.texi:37243
  55091. #, no-wrap
  55092. msgid "{Scheme Procedure} service-extension? @var{obj}"
  55093. msgstr ""
  55094. #. type: deffn
  55095. #: guix-git/doc/guix.texi:37245
  55096. msgid "Return true if @var{obj} is a service extension."
  55097. msgstr ""
  55098. #. type: Plain text
  55099. #: guix-git/doc/guix.texi:37251
  55100. 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."
  55101. msgstr ""
  55102. #. type: deffn
  55103. #: guix-git/doc/guix.texi:37252
  55104. #, no-wrap
  55105. msgid "{Scheme Procedure} simple-service @var{name} @var{target} @var{value}"
  55106. msgstr ""
  55107. #. type: deffn
  55108. #: guix-git/doc/guix.texi:37256
  55109. 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."
  55110. msgstr ""
  55111. #. type: deffn
  55112. #: guix-git/doc/guix.texi:37259
  55113. msgid "For example, this extends mcron (@pxref{Scheduled Job Execution}) with an additional job:"
  55114. msgstr ""
  55115. #. type: lisp
  55116. #: guix-git/doc/guix.texi:37263
  55117. #, no-wrap
  55118. msgid ""
  55119. "(simple-service 'my-mcron-job mcron-service-type\n"
  55120. " #~(job '(next-hour (3)) \"guix gc -F 2G\"))\n"
  55121. msgstr ""
  55122. #. type: Plain text
  55123. #: guix-git/doc/guix.texi:37273
  55124. 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."
  55125. msgstr ""
  55126. #. type: deffn
  55127. #: guix-git/doc/guix.texi:37274
  55128. #, no-wrap
  55129. msgid "{Scheme Procedure} fold-services @var{services} @"
  55130. msgstr ""
  55131. #. type: deffn
  55132. #: guix-git/doc/guix.texi:37278
  55133. 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."
  55134. msgstr ""
  55135. #. type: Plain text
  55136. #: guix-git/doc/guix.texi:37282
  55137. msgid "Lastly, the @code{(gnu services)} module also defines several essential service types, some of which are listed below."
  55138. msgstr ""
  55139. #. type: defvr
  55140. #: guix-git/doc/guix.texi:37283
  55141. #, no-wrap
  55142. msgid "{Scheme Variable} system-service-type"
  55143. msgstr ""
  55144. #. type: defvr
  55145. #: guix-git/doc/guix.texi:37286
  55146. msgid "This is the root of the service graph. It produces the system directory as returned by the @command{guix system build} command."
  55147. msgstr ""
  55148. #. type: defvr
  55149. #: guix-git/doc/guix.texi:37288
  55150. #, no-wrap
  55151. msgid "{Scheme Variable} boot-service-type"
  55152. msgstr ""
  55153. #. type: defvr
  55154. #: guix-git/doc/guix.texi:37291
  55155. 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."
  55156. msgstr ""
  55157. #. type: defvr
  55158. #: guix-git/doc/guix.texi:37293
  55159. #, no-wrap
  55160. msgid "{Scheme Variable} etc-service-type"
  55161. msgstr ""
  55162. #. type: defvr
  55163. #: guix-git/doc/guix.texi:37297
  55164. 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:"
  55165. msgstr ""
  55166. #. type: lisp
  55167. #: guix-git/doc/guix.texi:37300
  55168. #, no-wrap
  55169. msgid "(list `(\"issue\" ,(plain-file \"issue\" \"Welcome!\\n\")))\n"
  55170. msgstr ""
  55171. #. type: defvr
  55172. #: guix-git/doc/guix.texi:37304
  55173. msgid "In this example, the effect would be to add an @file{/etc/issue} file pointing to the given file."
  55174. msgstr ""
  55175. #. type: defvr
  55176. #: guix-git/doc/guix.texi:37306
  55177. #, no-wrap
  55178. msgid "{Scheme Variable} setuid-program-service-type"
  55179. msgstr ""
  55180. #. type: defvr
  55181. #: guix-git/doc/guix.texi:37310
  55182. 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})."
  55183. msgstr ""
  55184. #. type: defvr
  55185. #: guix-git/doc/guix.texi:37312
  55186. #, no-wrap
  55187. msgid "{Scheme Variable} profile-service-type"
  55188. msgstr ""
  55189. #. type: defvr
  55190. #: guix-git/doc/guix.texi:37316
  55191. 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."
  55192. msgstr ""
  55193. #. type: anchor{#1}
  55194. #: guix-git/doc/guix.texi:37320
  55195. msgid "provenance-service-type"
  55196. msgstr ""
  55197. #. type: defvr
  55198. #: guix-git/doc/guix.texi:37320
  55199. #, no-wrap
  55200. msgid "{Scheme Variable} provenance-service-type"
  55201. msgstr ""
  55202. #. type: defvr
  55203. #: guix-git/doc/guix.texi:37324
  55204. 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}:"
  55205. msgstr ""
  55206. #. type: item
  55207. #: guix-git/doc/guix.texi:37326
  55208. #, fuzzy, no-wrap
  55209. msgid "channels.scm"
  55210. msgstr "通道"
  55211. #. type: table
  55212. #: guix-git/doc/guix.texi:37331
  55213. 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})."
  55214. msgstr ""
  55215. #. type: item
  55216. #: guix-git/doc/guix.texi:37332
  55217. #, fuzzy, no-wrap
  55218. msgid "configuration.scm"
  55219. msgstr "系统配置"
  55220. #. type: table
  55221. #: guix-git/doc/guix.texi:37337
  55222. 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."
  55223. msgstr ""
  55224. #. type: item
  55225. #: guix-git/doc/guix.texi:37338
  55226. #, no-wrap
  55227. msgid "provenance"
  55228. msgstr ""
  55229. #. type: table
  55230. #: guix-git/doc/guix.texi:37341
  55231. msgid "This contains the same information as the two other files but in a format that is more readily processable."
  55232. msgstr ""
  55233. #. type: defvr
  55234. #: guix-git/doc/guix.texi:37345
  55235. msgid "In general, these two pieces of information (channels and configuration file) are enough to reproduce the operating system ``from source''."
  55236. msgstr ""
  55237. #. type: quotation
  55238. #: guix-git/doc/guix.texi:37346
  55239. #, no-wrap
  55240. msgid "Caveats"
  55241. msgstr ""
  55242. #. type: quotation
  55243. #: guix-git/doc/guix.texi:37353
  55244. 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."
  55245. msgstr ""
  55246. #. type: quotation
  55247. #: guix-git/doc/guix.texi:37361
  55248. 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."
  55249. msgstr ""
  55250. #. type: defvr
  55251. #: guix-git/doc/guix.texi:37366
  55252. 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}."
  55253. msgstr ""
  55254. #. type: defvr
  55255. #: guix-git/doc/guix.texi:37368
  55256. #, no-wrap
  55257. msgid "{Scheme Variable} linux-loadable-module-service-type"
  55258. msgstr ""
  55259. #. type: defvr
  55260. #: guix-git/doc/guix.texi:37372
  55261. msgid "Type of the service that collects lists of packages containing kernel-loadable modules, and adds them to the set of kernel-loadable modules."
  55262. msgstr ""
  55263. #. type: defvr
  55264. #: guix-git/doc/guix.texi:37375
  55265. msgid "This service type is intended to be extended by other service types, such as below:"
  55266. msgstr ""
  55267. #. type: lisp
  55268. #: guix-git/doc/guix.texi:37381
  55269. #, no-wrap
  55270. msgid ""
  55271. "(simple-service 'installing-module\n"
  55272. " linux-loadable-module-service-type\n"
  55273. " (list module-to-install-1\n"
  55274. " module-to-install-2))\n"
  55275. msgstr ""
  55276. #. type: defvr
  55277. #: guix-git/doc/guix.texi:37385
  55278. 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."
  55279. msgstr ""
  55280. #. type: cindex
  55281. #: guix-git/doc/guix.texi:37390
  55282. #, no-wrap
  55283. msgid "shepherd services"
  55284. msgstr ""
  55285. #. type: cindex
  55286. #: guix-git/doc/guix.texi:37391
  55287. #, no-wrap
  55288. msgid "PID 1"
  55289. msgstr ""
  55290. #. type: cindex
  55291. #: guix-git/doc/guix.texi:37392
  55292. #, no-wrap
  55293. msgid "init system"
  55294. msgstr ""
  55295. #. type: Plain text
  55296. #: guix-git/doc/guix.texi:37398
  55297. 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})."
  55298. msgstr ""
  55299. #. type: Plain text
  55300. #: guix-git/doc/guix.texi:37404
  55301. 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:"
  55302. msgstr ""
  55303. #. type: Plain text
  55304. #: guix-git/doc/guix.texi:37406
  55305. msgid "@image{images/shepherd-graph,,5in,Typical shepherd service graph.}"
  55306. msgstr ""
  55307. #. type: Plain text
  55308. #: guix-git/doc/guix.texi:37410
  55309. 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}})."
  55310. msgstr ""
  55311. #. type: Plain text
  55312. #: guix-git/doc/guix.texi:37414
  55313. 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."
  55314. msgstr ""
  55315. #. type: deftp
  55316. #: guix-git/doc/guix.texi:37415
  55317. #, no-wrap
  55318. msgid "{Data Type} shepherd-service"
  55319. msgstr ""
  55320. #. type: deftp
  55321. #: guix-git/doc/guix.texi:37417
  55322. msgid "The data type representing a service managed by the Shepherd."
  55323. msgstr ""
  55324. #. type: code{#1}
  55325. #: guix-git/doc/guix.texi:37419
  55326. #, no-wrap
  55327. msgid "provision"
  55328. msgstr ""
  55329. #. type: table
  55330. #: guix-git/doc/guix.texi:37421
  55331. msgid "This is a list of symbols denoting what the service provides."
  55332. msgstr ""
  55333. #. type: table
  55334. #: guix-git/doc/guix.texi:37426
  55335. 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."
  55336. msgstr ""
  55337. #. type: item
  55338. #: guix-git/doc/guix.texi:37427
  55339. #, fuzzy, no-wrap
  55340. msgid "@code{requirement} (default: @code{'()})"
  55341. msgstr "@code{features} (@code{'()})"
  55342. #. type: table
  55343. #: guix-git/doc/guix.texi:37429
  55344. msgid "List of symbols denoting the Shepherd services this one depends on."
  55345. msgstr ""
  55346. #. type: cindex
  55347. #: guix-git/doc/guix.texi:37430
  55348. #, no-wrap
  55349. msgid "one-shot services, for the Shepherd"
  55350. msgstr ""
  55351. #. type: table
  55352. #: guix-git/doc/guix.texi:37435
  55353. 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."
  55354. msgstr ""
  55355. #. type: item
  55356. #: guix-git/doc/guix.texi:37436
  55357. #, no-wrap
  55358. msgid "@code{respawn?} (default: @code{#t})"
  55359. msgstr ""
  55360. #. type: table
  55361. #: guix-git/doc/guix.texi:37439
  55362. msgid "Whether to restart the service when it stops, for instance when the underlying process dies."
  55363. msgstr ""
  55364. #. type: code{#1}
  55365. #: guix-git/doc/guix.texi:37440
  55366. #, no-wrap
  55367. msgid "start"
  55368. msgstr ""
  55369. #. type: itemx
  55370. #: guix-git/doc/guix.texi:37441
  55371. #, no-wrap
  55372. msgid "@code{stop} (default: @code{#~(const #f)})"
  55373. msgstr ""
  55374. #. type: table
  55375. #: guix-git/doc/guix.texi:37447
  55376. 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})."
  55377. msgstr ""
  55378. #. type: item
  55379. #: guix-git/doc/guix.texi:37448
  55380. #, no-wrap
  55381. msgid "@code{actions} (default: @code{'()})"
  55382. msgstr ""
  55383. #. type: cindex
  55384. #: guix-git/doc/guix.texi:37449
  55385. #, no-wrap
  55386. msgid "actions, of Shepherd services"
  55387. msgstr ""
  55388. #. type: table
  55389. #: guix-git/doc/guix.texi:37454
  55390. 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:"
  55391. msgstr ""
  55392. #. type: example
  55393. #: guix-git/doc/guix.texi:37457
  55394. #, no-wrap
  55395. msgid "herd @var{action} @var{service} [@var{arguments}@dots{}]\n"
  55396. msgstr ""
  55397. #. type: item
  55398. #: guix-git/doc/guix.texi:37459
  55399. #, fuzzy, no-wrap
  55400. msgid "@code{auto-start?} (default: @code{#t})"
  55401. msgstr "@code{port}(默认值:@code{22})"
  55402. #. type: table
  55403. #: guix-git/doc/guix.texi:37462
  55404. 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}."
  55405. msgstr ""
  55406. #. type: table
  55407. #: guix-git/doc/guix.texi:37465
  55408. msgid "A documentation string, as shown when running:"
  55409. msgstr ""
  55410. #. type: example
  55411. #: guix-git/doc/guix.texi:37468
  55412. #, no-wrap
  55413. msgid "herd doc @var{service-name}\n"
  55414. msgstr ""
  55415. #. type: table
  55416. #: guix-git/doc/guix.texi:37472
  55417. msgid "where @var{service-name} is one of the symbols in @code{provision} (@pxref{Invoking herd,,, shepherd, The GNU Shepherd Manual})."
  55418. msgstr ""
  55419. #. type: table
  55420. #: guix-git/doc/guix.texi:37476
  55421. msgid "This is the list of modules that must be in scope when @code{start} and @code{stop} are evaluated."
  55422. msgstr ""
  55423. #. type: Plain text
  55424. #: guix-git/doc/guix.texi:37484
  55425. 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}):"
  55426. msgstr ""
  55427. #. type: example
  55428. #: guix-git/doc/guix.texi:37496
  55429. #, no-wrap
  55430. msgid ""
  55431. "(let ((config (plain-file \"syslogd.conf\" \"@dots{}\")))\n"
  55432. " (shepherd-service\n"
  55433. " (documentation \"Run the syslog daemon (syslogd).\")\n"
  55434. " (provision '(syslogd))\n"
  55435. " (requirement '(user-processes))\n"
  55436. " (start #~(make-forkexec-constructor\n"
  55437. " (list #$(file-append inetutils \"/libexec/syslogd\")\n"
  55438. " \"--rcfile\" #$config)\n"
  55439. " #:pid-file \"/var/run/syslog.pid\"))\n"
  55440. " (stop #~(make-kill-destructor))))\n"
  55441. msgstr ""
  55442. #. type: Plain text
  55443. #: guix-git/doc/guix.texi:37511
  55444. 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})."
  55445. msgstr ""
  55446. #. type: deftp
  55447. #: guix-git/doc/guix.texi:37512
  55448. #, no-wrap
  55449. msgid "{Data Type} shepherd-action"
  55450. msgstr ""
  55451. #. type: deftp
  55452. #: guix-git/doc/guix.texi:37515
  55453. msgid "This is the data type that defines additional actions implemented by a Shepherd service (see above)."
  55454. msgstr ""
  55455. #. type: table
  55456. #: guix-git/doc/guix.texi:37519
  55457. msgid "Symbol naming the action."
  55458. msgstr ""
  55459. #. type: table
  55460. #: guix-git/doc/guix.texi:37522
  55461. msgid "This is a documentation string for the action. It can be viewed by running:"
  55462. msgstr ""
  55463. #. type: example
  55464. #: guix-git/doc/guix.texi:37525
  55465. #, no-wrap
  55466. msgid "herd doc @var{service} action @var{action}\n"
  55467. msgstr ""
  55468. #. type: item
  55469. #: guix-git/doc/guix.texi:37527
  55470. #, no-wrap
  55471. msgid "procedure"
  55472. msgstr ""
  55473. #. type: table
  55474. #: guix-git/doc/guix.texi:37531
  55475. 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})."
  55476. msgstr ""
  55477. #. type: deftp
  55478. #: guix-git/doc/guix.texi:37535
  55479. msgid "The following example defines an action called @code{say-hello} that kindly greets the user:"
  55480. msgstr ""
  55481. #. type: lisp
  55482. #: guix-git/doc/guix.texi:37544
  55483. #, no-wrap
  55484. msgid ""
  55485. "(shepherd-action\n"
  55486. " (name 'say-hello)\n"
  55487. " (documentation \"Say hi!\")\n"
  55488. " (procedure #~(lambda (running . args)\n"
  55489. " (format #t \"Hello, friend! arguments: ~s\\n\"\n"
  55490. " args)\n"
  55491. " #t)))\n"
  55492. msgstr ""
  55493. #. type: deftp
  55494. #: guix-git/doc/guix.texi:37547
  55495. msgid "Assuming this action is added to the @code{example} service, then you can do:"
  55496. msgstr ""
  55497. #. type: example
  55498. #: guix-git/doc/guix.texi:37553
  55499. #, no-wrap
  55500. msgid ""
  55501. "# herd say-hello example\n"
  55502. "Hello, friend! arguments: ()\n"
  55503. "# herd say-hello example a b c\n"
  55504. "Hello, friend! arguments: (\"a\" \"b\" \"c\")\n"
  55505. msgstr ""
  55506. #. type: deftp
  55507. #: guix-git/doc/guix.texi:37558
  55508. 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."
  55509. msgstr ""
  55510. #. type: defvr
  55511. #: guix-git/doc/guix.texi:37560
  55512. #, no-wrap
  55513. msgid "{Scheme Variable} shepherd-root-service-type"
  55514. msgstr ""
  55515. #. type: defvr
  55516. #: guix-git/doc/guix.texi:37562
  55517. msgid "The service type for the Shepherd ``root service''---i.e., PID@tie{}1."
  55518. msgstr ""
  55519. #. type: defvr
  55520. #: guix-git/doc/guix.texi:37567
  55521. 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."
  55522. msgstr ""
  55523. #. type: deftp
  55524. #: guix-git/doc/guix.texi:37569
  55525. #, fuzzy, no-wrap
  55526. msgid "{Data Type} shepherd-configuration"
  55527. msgstr "{数据类型} build-machine"
  55528. #. type: deftp
  55529. #: guix-git/doc/guix.texi:37571 guix-git/doc/guix.texi:38580
  55530. #, fuzzy
  55531. msgid "This data type represents the Shepherd's configuration."
  55532. msgstr "管理操作系统配置。"
  55533. #. type: item
  55534. #: guix-git/doc/guix.texi:37573 guix-git/doc/guix.texi:38582
  55535. #, fuzzy, no-wrap
  55536. msgid "shepherd (default: @code{shepherd})"
  55537. msgstr "@code{mate}(默认值:@code{mate})"
  55538. #. type: table
  55539. #: guix-git/doc/guix.texi:37575 guix-git/doc/guix.texi:38584
  55540. #, fuzzy
  55541. msgid "The Shepherd package to use."
  55542. msgstr "软件包数据类型。"
  55543. #. type: item
  55544. #: guix-git/doc/guix.texi:37576 guix-git/doc/guix.texi:38588
  55545. #, fuzzy, no-wrap
  55546. msgid "services (default: @code{'()})"
  55547. msgstr "@code{features} (@code{'()})"
  55548. #. type: table
  55549. #: guix-git/doc/guix.texi:37580 guix-git/doc/guix.texi:38592
  55550. msgid "A list of @code{<shepherd-service>} to start. You should probably use the service extension mechanism instead (@pxref{Shepherd Services})."
  55551. msgstr ""
  55552. #. type: Plain text
  55553. #: guix-git/doc/guix.texi:37585
  55554. msgid "The following example specifies the Shepherd package for the operating system:"
  55555. msgstr ""
  55556. #. type: lisp
  55557. #: guix-git/doc/guix.texi:37600
  55558. #, no-wrap
  55559. msgid ""
  55560. "(operating-system\n"
  55561. " ;; ...\n"
  55562. " (services (append (list openssh-service-type))\n"
  55563. " ;; ...\n"
  55564. " %desktop-services)\n"
  55565. " ;; ...\n"
  55566. " ;; Use own Shepherd package.\n"
  55567. " (essential-services\n"
  55568. " (modify-services (operating-system-default-essential-services\n"
  55569. " this-operating-system)\n"
  55570. " (shepherd-root-service-type config => (shepherd-configuration\n"
  55571. " (inherit config)\n"
  55572. " (shepherd my-shepherd))))))\n"
  55573. msgstr ""
  55574. #. type: defvr
  55575. #: guix-git/doc/guix.texi:37602
  55576. #, no-wrap
  55577. msgid "{Scheme Variable} %shepherd-root-service"
  55578. msgstr ""
  55579. #. type: defvr
  55580. #: guix-git/doc/guix.texi:37604
  55581. msgid "This service represents PID@tie{}1."
  55582. msgstr ""
  55583. #. type: cindex
  55584. #: guix-git/doc/guix.texi:37608
  55585. #, fuzzy, no-wrap
  55586. msgid "complex configurations"
  55587. msgstr "系统配置"
  55588. #. type: Plain text
  55589. #: guix-git/doc/guix.texi:37613
  55590. msgid "Some programs might have rather complex configuration files or formats, and to make it easier to create Scheme bindings for these configuration files, you can use the utilities defined in the @code{(gnu services configuration)} module."
  55591. msgstr ""
  55592. #. type: Plain text
  55593. #: guix-git/doc/guix.texi:37621
  55594. msgid "The main utility is the @code{define-configuration} macro, which you will use to define a Scheme record type (@pxref{Record Overview,,, guile, GNU Guile Reference Manual}). The Scheme record will be serialized to a configuration file by using @dfn{serializers}, which are procedures that take some kind of Scheme value and returns a G-expression (@pxref{G-Expressions}), which should, once serialized to the disk, return a string. More details are listed below."
  55595. msgstr ""
  55596. #. type: deffn
  55597. #: guix-git/doc/guix.texi:37622
  55598. #, no-wrap
  55599. msgid "{Scheme Syntax} define-configuration @var{name} @var{clause1} @"
  55600. msgstr ""
  55601. #. type: deffn
  55602. #: guix-git/doc/guix.texi:37626
  55603. msgid "@var{clause2} ... Create a record type named @code{@var{name}} that contains the fields found in the clauses."
  55604. msgstr ""
  55605. #. type: deffn
  55606. #: guix-git/doc/guix.texi:37628
  55607. #, fuzzy
  55608. #| msgid "Packages are currently available on the following platforms:"
  55609. msgid "A clause can have one of the following forms:"
  55610. msgstr "目前这些平台提供软件包:"
  55611. #. type: example
  55612. #: guix-git/doc/guix.texi:37633
  55613. #, no-wrap
  55614. msgid ""
  55615. "(@var{field-name}\n"
  55616. " (@var{type} @var{default-value})\n"
  55617. " @var{documentation})\n"
  55618. " \n"
  55619. msgstr ""
  55620. #. type: example
  55621. #: guix-git/doc/guix.texi:37638
  55622. #, no-wrap
  55623. msgid ""
  55624. "(@var{field-name}\n"
  55625. " (@var{type} @var{default-value})\n"
  55626. " @var{documentation}\n"
  55627. " @var{serializer})\n"
  55628. "\n"
  55629. msgstr ""
  55630. #. type: example
  55631. #: guix-git/doc/guix.texi:37642
  55632. #, no-wrap
  55633. msgid ""
  55634. "(@var{field-name}\n"
  55635. " (@var{type})\n"
  55636. " @var{documentation})\n"
  55637. "\n"
  55638. msgstr ""
  55639. #. type: example
  55640. #: guix-git/doc/guix.texi:37647
  55641. #, no-wrap
  55642. msgid ""
  55643. "(@var{field-name}\n"
  55644. " (@var{type})\n"
  55645. " @var{documentation}\n"
  55646. " @var{serializer})\n"
  55647. msgstr ""
  55648. #. type: deffn
  55649. #: guix-git/doc/guix.texi:37651
  55650. msgid "@var{field-name} is an identifier that denotes the name of the field in the generated record."
  55651. msgstr ""
  55652. #. type: deffn
  55653. #: guix-git/doc/guix.texi:37659
  55654. msgid "@var{type} is the type of the value corresponding to @var{field-name}; since Guile is untyped, a predicate procedure---@code{@var{type}?}---will be called on the value corresponding to the field to ensure that the value is of the correct type. This means that if say, @var{type} is @code{package}, then a procedure named @code{package?} will be applied on the value to make sure that it is indeed a @code{<package>} object."
  55655. msgstr ""
  55656. #. type: deffn
  55657. #: guix-git/doc/guix.texi:37663
  55658. msgid "@var{default-value} is the default value corresponding to the field; if none is specified, the user is forced to provide a value when creating an object of the record type."
  55659. msgstr ""
  55660. #. type: deffn
  55661. #: guix-git/doc/guix.texi:37668
  55662. msgid "@var{documentation} is a string formatted with Texinfo syntax which should provide a description of what setting this field does."
  55663. msgstr ""
  55664. #. type: deffn
  55665. #: guix-git/doc/guix.texi:37675
  55666. msgid "@var{serializer} is the name of a procedure which takes two arguments, the first is the name of the field, and the second is the value corresponding to the field. The procedure should return a string or G-expression (@pxref{G-Expressions}) that represents the content that will be serialized to the configuration file. If none is specified, a procedure of the name @code{serialize-@var{type}} will be used."
  55667. msgstr ""
  55668. #. type: deffn
  55669. #: guix-git/doc/guix.texi:37677
  55670. msgid "A simple serializer procedure could look like this:"
  55671. msgstr ""
  55672. #. type: lisp
  55673. #: guix-git/doc/guix.texi:37682
  55674. #, no-wrap
  55675. msgid ""
  55676. "(define (serialize-boolean field-name value)\n"
  55677. " (let ((value (if value \"true\" \"false\")))\n"
  55678. " #~(string-append #$field-name #$value)))\n"
  55679. msgstr ""
  55680. #. type: deffn
  55681. #: guix-git/doc/guix.texi:37693
  55682. msgid "In some cases multiple different configuration records might be defined in the same file, but their serializers for the same type might have to be different, because they have different configuration formats. For example, the @code{serialize-boolean} procedure for the Getmail service would have to be different for the one for the Transmission service. To make it easier to deal with this situation, one can specify a serializer prefix by using the @code{prefix} literal in the @code{define-configuration} form. This means that one doesn't have to manually specify a custom @var{serializer} for every field."
  55683. msgstr ""
  55684. #. type: lisp
  55685. #: guix-git/doc/guix.texi:37697
  55686. #, no-wrap
  55687. msgid ""
  55688. "(define (foo-serialize-string field-name value)\n"
  55689. " @dots{})\n"
  55690. "\n"
  55691. msgstr ""
  55692. #. type: lisp
  55693. #: guix-git/doc/guix.texi:37700
  55694. #, no-wrap
  55695. msgid ""
  55696. "(define (bar-serialize-string field-name value)\n"
  55697. " @dots{})\n"
  55698. " \n"
  55699. msgstr ""
  55700. #. type: lisp
  55701. #: guix-git/doc/guix.texi:37706
  55702. #, no-wrap
  55703. msgid ""
  55704. "(define-configuration foo-configuration\n"
  55705. " (label\n"
  55706. " (string)\n"
  55707. " \"The name of label.\")\n"
  55708. " (prefix foo-))\n"
  55709. "\n"
  55710. msgstr ""
  55711. #. type: lisp
  55712. #: guix-git/doc/guix.texi:37712
  55713. #, no-wrap
  55714. msgid ""
  55715. "(define-configuration bar-configuration\n"
  55716. " (ip-address\n"
  55717. " (string)\n"
  55718. " \"The IPv4 address for this device.\")\n"
  55719. " (prefix bar-))\n"
  55720. msgstr ""
  55721. #. type: deffn
  55722. #: guix-git/doc/guix.texi:37718
  55723. msgid "However, in some cases you might not want to serialize any of the values of the record, to do this, you can use the @code{no-serialization} literal. There is also the @code{define-configuration/no-serialization} macro which is a shorthand of this."
  55724. msgstr ""
  55725. #. type: lisp
  55726. #: guix-git/doc/guix.texi:37726
  55727. #, no-wrap
  55728. msgid ""
  55729. ";; Nothing will be serialized to disk.\n"
  55730. "(define-configuration foo-configuration\n"
  55731. " (field\n"
  55732. " (string \"test\")\n"
  55733. " \"Some documentation.\")\n"
  55734. " (no-serialization))\n"
  55735. "\n"
  55736. msgstr ""
  55737. #. type: lisp
  55738. #: guix-git/doc/guix.texi:37732
  55739. #, no-wrap
  55740. msgid ""
  55741. ";; The same thing as above.\n"
  55742. "(define-configuration/no-serialization bar-configuration\n"
  55743. " (field\n"
  55744. " (string \"test\")\n"
  55745. " \"Some documentation.\"))\n"
  55746. msgstr ""
  55747. #. type: deffn
  55748. #: guix-git/doc/guix.texi:37735
  55749. #, no-wrap
  55750. msgid "{Scheme Syntax} define-maybe @var{type}"
  55751. msgstr ""
  55752. #. type: deffn
  55753. #: guix-git/doc/guix.texi:37740
  55754. msgid "Sometimes a field should not be serialized if the user doesn’t specify a value. To achieve this, you can use the @code{define-maybe} macro to define a ``maybe type''; if the value of a maybe type is set to the @code{disabled}, it will not be serialized."
  55755. msgstr ""
  55756. #. type: deffn
  55757. #: guix-git/doc/guix.texi:37747
  55758. msgid "When defining a ``maybe type'', the corresponding serializer for the regular type will be used by default. For example, a field of type @code{maybe-string} will be serialized using the @code{serialize-string} procedure by default, you can of course change this by specifying a custom serializer procedure. Likewise, the type of the value would have to be a string, unless it is set to the @code{disabled} symbol."
  55759. msgstr ""
  55760. #. type: lisp
  55761. #: guix-git/doc/guix.texi:37750
  55762. #, no-wrap
  55763. msgid ""
  55764. "(define-maybe string)\n"
  55765. "\n"
  55766. msgstr ""
  55767. #. type: lisp
  55768. #: guix-git/doc/guix.texi:37753
  55769. #, no-wrap
  55770. msgid ""
  55771. "(define (serialize-string field-name value)\n"
  55772. " @dots{})\n"
  55773. "\n"
  55774. msgstr ""
  55775. #. type: lisp
  55776. #: guix-git/doc/guix.texi:37760
  55777. #, no-wrap
  55778. msgid ""
  55779. "(define-configuration baz-configuration\n"
  55780. " (name\n"
  55781. " ;; Nothing will be serialized by default. If set to a string, the\n"
  55782. " ;; `serialize-string' procedure will be used to serialize the string.\n"
  55783. " (maybe-string 'disabled)\n"
  55784. " \"The name of this module.\"))\n"
  55785. msgstr ""
  55786. #. type: deffn
  55787. #: guix-git/doc/guix.texi:37764
  55788. msgid "Like with @code{define-configuration}, one can set a prefix for the serializer name by using the @code{prefix} literal."
  55789. msgstr ""
  55790. #. type: lisp
  55791. #: guix-git/doc/guix.texi:37768
  55792. #, no-wrap
  55793. msgid ""
  55794. "(define-maybe integer\n"
  55795. " (prefix baz-))\n"
  55796. "\n"
  55797. msgstr ""
  55798. #. type: lisp
  55799. #: guix-git/doc/guix.texi:37771
  55800. #, no-wrap
  55801. msgid ""
  55802. "(define (baz-serialize-interger field-name value)\n"
  55803. " @dots{})\n"
  55804. msgstr ""
  55805. #. type: deffn
  55806. #: guix-git/doc/guix.texi:37778
  55807. msgid "There is also the @code{no-serialization} literal, which when set means that no serializer will be defined for the ``maybe type'', regardless of its value is @code{disabled} or not. @code{define-maybe/no-serialization} is a shorthand for specifying the @code{no-serialization} literal."
  55808. msgstr ""
  55809. #. type: lisp
  55810. #: guix-git/doc/guix.texi:37781
  55811. #, no-wrap
  55812. msgid ""
  55813. "(define-maybe/no-serialization symbol)\n"
  55814. "\n"
  55815. msgstr ""
  55816. #. type: lisp
  55817. #: guix-git/doc/guix.texi:37786
  55818. #, no-wrap
  55819. msgid ""
  55820. "(define-configuration/no-serialization test-configuration\n"
  55821. " (mode\n"
  55822. " (maybe-symbol 'disabled)\n"
  55823. " \"Docstring.\"))\n"
  55824. msgstr ""
  55825. #. type: deffn
  55826. #: guix-git/doc/guix.texi:37789
  55827. #, no-wrap
  55828. msgid "{Scheme Procedure} serialize-configuration @var{configuration} @"
  55829. msgstr ""
  55830. #. type: deffn
  55831. #: guix-git/doc/guix.texi:37795
  55832. msgid "@var{fields} Return a G-expression that contains the values corresponding to the @var{fields} of @var{configuration}, a record that has been generated by @code{define-configuration}. The G-expression can then be serialized to disk by using something like @code{mixed-text-file}."
  55833. msgstr ""
  55834. #. type: deffn
  55835. #: guix-git/doc/guix.texi:37797
  55836. #, no-wrap
  55837. msgid "{Scheme Procedure} validate-configuration @var{configuration}"
  55838. msgstr ""
  55839. #. type: deffn
  55840. #: guix-git/doc/guix.texi:37801
  55841. msgid "@var{fields} Type-check @var{fields}, a list of field names of @var{configuration}, a configuration record created by @code{define-configuration}."
  55842. msgstr ""
  55843. #. type: deffn
  55844. #: guix-git/doc/guix.texi:37803
  55845. #, no-wrap
  55846. msgid "{Scheme Procedure} empty-serializer @var{field-name} @var{value}"
  55847. msgstr ""
  55848. #. type: deffn
  55849. #: guix-git/doc/guix.texi:37806
  55850. msgid "A serializer that just returns an empty string. The @code{serialize-package} procedure is an alias for this."
  55851. msgstr ""
  55852. #. type: Plain text
  55853. #: guix-git/doc/guix.texi:37811
  55854. msgid "Once you have defined a configuration record, you will most likely also want to document it so that other people know to use it. To help with that, there are two procedures, both of which are documented below."
  55855. msgstr ""
  55856. #. type: deffn
  55857. #: guix-git/doc/guix.texi:37812
  55858. #, no-wrap
  55859. msgid "{Scheme Procedure} generate-documentation @var{documentation} @"
  55860. msgstr ""
  55861. #. type: deffn
  55862. #: guix-git/doc/guix.texi:37819
  55863. msgid "@var{documentation-name} Generate a Texinfo fragment from the docstrings in @var{documentation}, a list of @code{(@var{label} @var{fields} @var{sub-documentation} ...)}. @var{label} should be a symbol and should be the name of the configuration record. @var{fields} should be a list of all the fields available for the configuration record."
  55864. msgstr ""
  55865. #. type: deffn
  55866. #: guix-git/doc/guix.texi:37824
  55867. msgid "@var{sub-documentation} is a @code{(@var{field-name} @var{configuration-name})} tuple. @var{field-name} is the name of the field which takes another configuration record as its value, and @var{configuration-name} is the name of that configuration record."
  55868. msgstr ""
  55869. #. type: deffn
  55870. #: guix-git/doc/guix.texi:37831
  55871. msgid "@var{sub-documentation} is only needed if there are nested configuration records. For example, the @code{getmail-configuration} record (@pxref{Mail Services}) accepts a @code{getmail-configuration-file} record in one of its @code{rcfile} field, therefore documentation for @code{getmail-configuration-file} is nested in @code{getmail-configuration}."
  55872. msgstr ""
  55873. #. type: lisp
  55874. #: guix-git/doc/guix.texi:37838
  55875. #, no-wrap
  55876. msgid ""
  55877. "(generate-documentation\n"
  55878. " `((getmail-configuration ,getmail-configuration-fields\n"
  55879. " (rcfile getmail-configuration-file))\n"
  55880. " @dots{})\n"
  55881. " 'getmail-configuration)\n"
  55882. msgstr ""
  55883. #. type: deffn
  55884. #: guix-git/doc/guix.texi:37842
  55885. msgid "@var{documentation-name} should be a symbol and should be the name of the configuration record."
  55886. msgstr ""
  55887. #. type: deffn
  55888. #: guix-git/doc/guix.texi:37845
  55889. #, no-wrap
  55890. msgid "{Scheme Procedure} configuration->documentation"
  55891. msgstr ""
  55892. #. type: deffn
  55893. #: guix-git/doc/guix.texi:37852
  55894. msgid "@var{configuration-symbol} Take @var{configuration-symbol}, the symbol corresponding to the name used when defining a configuration record with @code{define-configuration}, and print the Texinfo documentation of its fields. This is useful if there aren’t any nested configuration records since it only prints the documentation for the top-level fields."
  55895. msgstr ""
  55896. #. type: Plain text
  55897. #: guix-git/doc/guix.texi:37860
  55898. msgid "As of right now, there is no automated way to generate documentation for configuration records and put them in the manual. Instead, every time you make a change to the docstrings of a configuration record, you have to manually call @code{generate-documentation} or @code{configuration->documentation}, and paste the output into the @file{doc/guix.texi} file."
  55899. msgstr ""
  55900. #. type: Plain text
  55901. #: guix-git/doc/guix.texi:37864
  55902. msgid "Below is an example of a record type created using @code{define-configuration} and friends."
  55903. msgstr ""
  55904. #. type: lisp
  55905. #: guix-git/doc/guix.texi:37871
  55906. #, no-wrap
  55907. msgid ""
  55908. "(use-modules (gnu services)\n"
  55909. " (guix gexp)\n"
  55910. " (gnu services configuration)\n"
  55911. " (srfi srfi-26)\n"
  55912. " (srfi srfi-1))\n"
  55913. "\n"
  55914. msgstr ""
  55915. #. type: lisp
  55916. #: guix-git/doc/guix.texi:37879
  55917. #, no-wrap
  55918. msgid ""
  55919. ";; Turn field names, which are Scheme symbols into strings\n"
  55920. "(define (uglify-field-name field-name)\n"
  55921. " (let ((str (symbol->string field-name)))\n"
  55922. " ;; field? -> is-field\n"
  55923. " (if (string-suffix? \"?\" str)\n"
  55924. " (string-append \"is-\" (string-drop-right str 1))\n"
  55925. " str)))\n"
  55926. "\n"
  55927. msgstr ""
  55928. #. type: lisp
  55929. #: guix-git/doc/guix.texi:37882
  55930. #, no-wrap
  55931. msgid ""
  55932. "(define (serialize-string field-name value)\n"
  55933. " #~(string-append #$(uglify-field-name field-name) \" = \" #$value \"\\n\"))\n"
  55934. "\n"
  55935. msgstr ""
  55936. #. type: lisp
  55937. #: guix-git/doc/guix.texi:37885
  55938. #, no-wrap
  55939. msgid ""
  55940. "(define (serialize-integer field-name value)\n"
  55941. " (serialize-string field-name (number->string value)))\n"
  55942. "\n"
  55943. msgstr ""
  55944. #. type: lisp
  55945. #: guix-git/doc/guix.texi:37888
  55946. #, no-wrap
  55947. msgid ""
  55948. "(define (serialize-boolean field-name value)\n"
  55949. " (serialize-string field-name (if value \"true\" \"false\")))\n"
  55950. "\n"
  55951. msgstr ""
  55952. #. type: lisp
  55953. #: guix-git/doc/guix.texi:37891
  55954. #, no-wrap
  55955. msgid ""
  55956. "(define (serialize-contact-name field-name value)\n"
  55957. " #~(string-append \"\\n[\" #$value \"]\\n\"))\n"
  55958. "\n"
  55959. msgstr ""
  55960. #. type: lisp
  55961. #: guix-git/doc/guix.texi:37894
  55962. #, no-wrap
  55963. msgid ""
  55964. "(define (list-of-contact-configurations? lst)\n"
  55965. " (every contact-configuration? lst))\n"
  55966. "\n"
  55967. msgstr ""
  55968. #. type: lisp
  55969. #: guix-git/doc/guix.texi:37899
  55970. #, no-wrap
  55971. msgid ""
  55972. "(define (serialize-list-of-contact-configurations field-name value)\n"
  55973. " #~(string-append #$@@(map (cut serialize-configuration <>\n"
  55974. " contact-configuration-fields)\n"
  55975. " value)))\n"
  55976. "\n"
  55977. msgstr ""
  55978. #. type: lisp
  55979. #: guix-git/doc/guix.texi:37906
  55980. #, no-wrap
  55981. msgid ""
  55982. "(define (serialize-contacts-list-configuration configuration)\n"
  55983. " (mixed-text-file\n"
  55984. " \"contactrc\"\n"
  55985. " #~(string-append \"[Owner]\\n\"\n"
  55986. " #$(serialize-configuration\n"
  55987. " configuration contacts-list-configuration-fields))))\n"
  55988. "\n"
  55989. msgstr ""
  55990. #. type: lisp
  55991. #: guix-git/doc/guix.texi:37909
  55992. #, no-wrap
  55993. msgid ""
  55994. "(define-maybe integer)\n"
  55995. "(define-maybe string)\n"
  55996. "\n"
  55997. msgstr ""
  55998. #. type: lisp
  55999. #: guix-git/doc/guix.texi:37924
  56000. #, no-wrap
  56001. msgid ""
  56002. "(define-configuration contact-configuration\n"
  56003. " (name\n"
  56004. " (string)\n"
  56005. " \"The name of the contact.\"\n"
  56006. " serialize-contact-name)\n"
  56007. " (phone-number\n"
  56008. " (maybe-integer 'disabled)\n"
  56009. " \"The person's phone number.\")\n"
  56010. " (email\n"
  56011. " (maybe-string 'disabled)\n"
  56012. " \"The person's email address.\")\n"
  56013. " (married?\n"
  56014. " (boolean)\n"
  56015. " \"Whether the person is married.\"))\n"
  56016. "\n"
  56017. msgstr ""
  56018. #. type: lisp
  56019. #: guix-git/doc/guix.texi:37936
  56020. #, no-wrap
  56021. msgid ""
  56022. "(define-configuration contacts-list-configuration\n"
  56023. " (name\n"
  56024. " (string)\n"
  56025. " \"The name of the owner of this contact list.\")\n"
  56026. " (email\n"
  56027. " (string)\n"
  56028. " \"The owner's email address.\")\n"
  56029. " (contacts\n"
  56030. " (list-of-contact-configurations '())\n"
  56031. " \"A list of @@code@{contact-configuation@} records which contain\n"
  56032. "information about all your contacts.\"))\n"
  56033. msgstr ""
  56034. #. type: Plain text
  56035. #: guix-git/doc/guix.texi:37939
  56036. msgid "A contacts list configuration could then be created like this:"
  56037. msgstr ""
  56038. #. type: lisp
  56039. #: guix-git/doc/guix.texi:37955
  56040. #, no-wrap
  56041. msgid ""
  56042. "(define my-contacts\n"
  56043. " (contacts-list-configuration\n"
  56044. " (name \"Alice\")\n"
  56045. " (email \"alice@@example.org\")\n"
  56046. " (contacts\n"
  56047. " (list (contact-configuration\n"
  56048. " (name \"Bob\")\n"
  56049. " (phone-number 1234)\n"
  56050. " (email \"bob@@gnu.org\")\n"
  56051. " (married? #f))\n"
  56052. " (contact-configuration\n"
  56053. " (name \"Charlie\")\n"
  56054. " (phone-number 0000)\n"
  56055. " (married? #t))))))\n"
  56056. msgstr ""
  56057. #. type: Plain text
  56058. #: guix-git/doc/guix.texi:37959
  56059. msgid "After serializing the configuration to disk, the resulting file would look like this:"
  56060. msgstr ""
  56061. #. type: example
  56062. #: guix-git/doc/guix.texi:37964
  56063. #, no-wrap
  56064. msgid ""
  56065. "[owner]\n"
  56066. "name = Alice\n"
  56067. "email = alice@@example.org\n"
  56068. "\n"
  56069. msgstr ""
  56070. #. type: example
  56071. #: guix-git/doc/guix.texi:37969
  56072. #, no-wrap
  56073. msgid ""
  56074. "[Bob]\n"
  56075. "phone-number = 1234\n"
  56076. "email = bob@@gnu.org\n"
  56077. "is-married = false\n"
  56078. "\n"
  56079. msgstr ""
  56080. #. type: example
  56081. #: guix-git/doc/guix.texi:37973
  56082. #, no-wrap
  56083. msgid ""
  56084. "[Charlie]\n"
  56085. "phone-number = 0\n"
  56086. "is-married = true\n"
  56087. msgstr ""
  56088. #. type: cindex
  56089. #: guix-git/doc/guix.texi:37978
  56090. #, fuzzy, no-wrap
  56091. msgid "home configuration"
  56092. msgstr "系统配置"
  56093. #. type: Plain text
  56094. #: guix-git/doc/guix.texi:37990
  56095. 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})."
  56096. msgstr ""
  56097. #. type: Plain text
  56098. #: guix-git/doc/guix.texi:38007
  56099. 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."
  56100. msgstr ""
  56101. #. type: Plain text
  56102. #: guix-git/doc/guix.texi:38010
  56103. msgid "Using Guix for managing home environments provides a number of advantages:"
  56104. msgstr ""
  56105. #. type: item
  56106. #: guix-git/doc/guix.texi:38013
  56107. #, no-wrap
  56108. msgid "All software can be configured in one language (Guile Scheme),"
  56109. msgstr ""
  56110. #. type: itemize
  56111. #: guix-git/doc/guix.texi:38016
  56112. msgid "this gives users the ability to share values between configurations of different programs."
  56113. msgstr ""
  56114. #. type: item
  56115. #: guix-git/doc/guix.texi:38017
  56116. #, no-wrap
  56117. msgid "A well-defined home environment is self-contained and can be"
  56118. msgstr ""
  56119. #. type: itemize
  56120. #: guix-git/doc/guix.texi:38020
  56121. msgid "created in a declarative and reproducible way---there is no need to grab external binaries or manually edit some configuration file."
  56122. msgstr ""
  56123. #. type: item
  56124. #: guix-git/doc/guix.texi:38021
  56125. #, no-wrap
  56126. msgid "After every @command{guix home reconfigure} invocation, a new home"
  56127. msgstr ""
  56128. #. type: itemize
  56129. #: guix-git/doc/guix.texi:38025
  56130. 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."
  56131. msgstr ""
  56132. #. type: item
  56133. #: guix-git/doc/guix.texi:38026
  56134. #, no-wrap
  56135. msgid "It is possible to manage stateful data with Guix Home, this"
  56136. msgstr ""
  56137. #. type: itemize
  56138. #: guix-git/doc/guix.texi:38031
  56139. 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."
  56140. msgstr ""
  56141. #. type: section
  56142. #: guix-git/doc/guix.texi:38039 guix-git/doc/guix.texi:38041
  56143. #: guix-git/doc/guix.texi:38042
  56144. #, fuzzy, no-wrap
  56145. #| msgid "Preparing the isolated build environment."
  56146. msgid "Declaring the Home Environment"
  56147. msgstr "准备隔离的构建环境。"
  56148. #. type: menuentry
  56149. #: guix-git/doc/guix.texi:38039
  56150. #, fuzzy
  56151. #| msgid "Customizing your GNU system."
  56152. msgid "Customizing your Home."
  56153. msgstr "定制你的GNU系统。"
  56154. #. type: section
  56155. #: guix-git/doc/guix.texi:38039 guix-git/doc/guix.texi:38124
  56156. #: guix-git/doc/guix.texi:38125
  56157. #, fuzzy, no-wrap
  56158. #| msgid "Configuring the boot loader."
  56159. msgid "Configuring the Shell"
  56160. msgstr "设置引导程序。"
  56161. #. type: menuentry
  56162. #: guix-git/doc/guix.texi:38039
  56163. #, fuzzy
  56164. #| msgid "Invoking guix environment"
  56165. msgid "Enabling home environment."
  56166. msgstr "调用guix environment"
  56167. #. type: section
  56168. #: guix-git/doc/guix.texi:38039 guix-git/doc/guix.texi:38171
  56169. #: guix-git/doc/guix.texi:38172
  56170. #, fuzzy, no-wrap
  56171. #| msgid "Game Services"
  56172. msgid "Home Services"
  56173. msgstr "游戏服务"
  56174. #. type: menuentry
  56175. #: guix-git/doc/guix.texi:38039
  56176. #, fuzzy
  56177. #| msgid "Specifying system services."
  56178. msgid "Specifying home services."
  56179. msgstr "指定系统服务。"
  56180. #. type: menuentry
  56181. #: guix-git/doc/guix.texi:38039
  56182. #, fuzzy
  56183. #| msgid "Instantiating a system configuration."
  56184. msgid "Instantiating a home configuration."
  56185. msgstr "实例化一个系统配置。"
  56186. #. type: Plain text
  56187. #: guix-git/doc/guix.texi:38048
  56188. 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}:"
  56189. msgstr ""
  56190. #. type: example
  56191. #: guix-git/doc/guix.texi:38051
  56192. #, no-wrap
  56193. msgid "guix home import ~/src/guix-config\n"
  56194. msgstr ""
  56195. #. type: Plain text
  56196. #: guix-git/doc/guix.texi:38059
  56197. 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."
  56198. msgstr ""
  56199. #. type: Plain text
  56200. #: guix-git/doc/guix.texi:38065
  56201. 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."
  56202. msgstr ""
  56203. #. type: quotation
  56204. #: guix-git/doc/guix.texi:38071
  56205. 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})."
  56206. msgstr ""
  56207. #. type: findex
  56208. #: guix-git/doc/guix.texi:38073
  56209. #, fuzzy, no-wrap
  56210. msgid "home-environment"
  56211. msgstr "构建环境"
  56212. #. type: include
  56213. #: guix-git/doc/guix.texi:38075
  56214. #, fuzzy, no-wrap
  56215. msgid "he-config-bare-bones.scm"
  56216. msgstr "系统配置"
  56217. #. type: Plain text
  56218. #: guix-git/doc/guix.texi:38082
  56219. 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."
  56220. msgstr ""
  56221. #. type: Plain text
  56222. #: guix-git/doc/guix.texi:38090
  56223. 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."
  56224. msgstr ""
  56225. #. type: cindex
  56226. #: guix-git/doc/guix.texi:38091 guix-git/doc/guix.texi:38734
  56227. #, fuzzy, no-wrap
  56228. #| msgid "Invoking @command{guix build}"
  56229. msgid "container, for @command{guix home}"
  56230. msgstr "调用@command{guix build}"
  56231. #. type: Plain text
  56232. #: guix-git/doc/guix.texi:38094
  56233. msgid "Once the configuration looks good, you can first test it in a throw-away ``container'':"
  56234. msgstr ""
  56235. #. type: example
  56236. #: guix-git/doc/guix.texi:38097 guix-git/doc/guix.texi:38744
  56237. #, fuzzy, no-wrap
  56238. msgid "guix home container config.scm\n"
  56239. msgstr "guix package --list-available\n"
  56240. #. type: Plain text
  56241. #: guix-git/doc/guix.texi:38105
  56242. msgid "The command above spawns a shell where your home environment is running. The shell runs in a container, meaning it's isolated from the rest of the system, so it's a good way to try out your configuration---you can see if configuration bits are missing or misbehaving, if daemons get started, and so on. Once you exit that shell, you're back to the prompt of your original shell ``in the real world''."
  56243. msgstr ""
  56244. #. type: Plain text
  56245. #: guix-git/doc/guix.texi:38108
  56246. msgid "Once you have a configuration file that suits your needs, you can reconfigure your home by running:"
  56247. msgstr ""
  56248. #. type: example
  56249. #: guix-git/doc/guix.texi:38111
  56250. #, no-wrap
  56251. msgid "guix home reconfigure config.scm\n"
  56252. msgstr ""
  56253. #. type: Plain text
  56254. #: guix-git/doc/guix.texi:38115
  56255. msgid "This ``builds'' your home environment and creates @file{~/.guix-home} pointing to it. Voilà!"
  56256. msgstr ""
  56257. #. type: quotation
  56258. #: guix-git/doc/guix.texi:38122
  56259. 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."
  56260. msgstr ""
  56261. #. type: Plain text
  56262. #: guix-git/doc/guix.texi:38128
  56263. msgid "This section is safe to skip if your shell or shells are managed by Guix Home. Otherwise, read it carefully."
  56264. msgstr ""
  56265. #. type: Plain text
  56266. #: guix-git/doc/guix.texi:38135
  56267. 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}."
  56268. msgstr ""
  56269. #. type: Plain text
  56270. #: guix-git/doc/guix.texi:38142
  56271. 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}."
  56272. msgstr ""
  56273. #. type: Plain text
  56274. #: guix-git/doc/guix.texi:38145
  56275. msgid "Guix Home will always create @file{~/.profile}, which contains the following lines:"
  56276. msgstr ""
  56277. #. type: example
  56278. #: guix-git/doc/guix.texi:38150
  56279. #, no-wrap
  56280. msgid ""
  56281. "HOME_ENVIRONMENT=$HOME/.guix-home\n"
  56282. ". $HOME_ENVIRONMENT/setup-environment\n"
  56283. "$HOME_ENVIRONMENT/on-first-login\n"
  56284. msgstr ""
  56285. #. type: Plain text
  56286. #: guix-git/doc/guix.texi:38160
  56287. 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."
  56288. msgstr ""
  56289. #. type: Plain text
  56290. #: guix-git/doc/guix.texi:38165
  56291. 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}."
  56292. msgstr ""
  56293. #. type: quotation
  56294. #: guix-git/doc/guix.texi:38169
  56295. msgid "This step is only required if your shell is NOT managed by Guix Home. Otherwise, everything will be done automatically."
  56296. msgstr ""
  56297. #. type: cindex
  56298. #: guix-git/doc/guix.texi:38173
  56299. #, fuzzy, no-wrap
  56300. #| msgid "Other services."
  56301. msgid "home services"
  56302. msgstr "其它服务。"
  56303. #. type: Plain text
  56304. #: guix-git/doc/guix.texi:38182
  56305. 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."
  56306. msgstr ""
  56307. #. type: Plain text
  56308. #: guix-git/doc/guix.texi:38190
  56309. 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}}."
  56310. msgstr ""
  56311. #. type: Plain text
  56312. #: guix-git/doc/guix.texi:38201
  56313. msgid "A good way to discover available home services is using the @command{guix home search} command (@pxref{Invoking guix home}). After the required home services are found, include its module with the @code{use-modules} form (@pxref{use-modules,, Using Guile Modules, guile, The GNU Guile Reference Manual}), or the @code{#:use-modules} directive (@pxref{define-module,, Creating Guile Modules, guile, The GNU Guile Reference Manual}) and declare a home service using the @code{service} function, or extend a service type by declaring a new service with the @code{simple-service} procedure from @code{(gnu services)}."
  56314. msgstr ""
  56315. #. type: subsection
  56316. #: guix-git/doc/guix.texi:38208 guix-git/doc/guix.texi:38211
  56317. #: guix-git/doc/guix.texi:38212
  56318. #, fuzzy, no-wrap
  56319. #| msgid "Essential system services."
  56320. msgid "Essential Home Services"
  56321. msgstr "必要的系统服务。"
  56322. #. type: menuentry
  56323. #: guix-git/doc/guix.texi:38208
  56324. msgid "Environment variables, packages, on-* scripts."
  56325. msgstr ""
  56326. #. type: menuentry
  56327. #: guix-git/doc/guix.texi:38208
  56328. #, fuzzy
  56329. #| msgid "Shepherd Services"
  56330. msgid "Shells: Shells Home Services"
  56331. msgstr "Shepherd服务"
  56332. #. type: menuentry
  56333. #: guix-git/doc/guix.texi:38208
  56334. msgid "POSIX shells, Bash, Zsh."
  56335. msgstr ""
  56336. #. type: menuentry
  56337. #: guix-git/doc/guix.texi:38208
  56338. #, fuzzy
  56339. msgid "Mcron: Mcron Home Service"
  56340. msgstr "声音服务"
  56341. #. type: menuentry
  56342. #: guix-git/doc/guix.texi:38208
  56343. #, fuzzy
  56344. #| msgid "Scheduled Job Execution"
  56345. msgid "Scheduled User's Job Execution."
  56346. msgstr "执行计划任务"
  56347. #. type: menuentry
  56348. #: guix-git/doc/guix.texi:38208
  56349. #, fuzzy
  56350. #| msgid "Shepherd Services"
  56351. msgid "Shepherd: Shepherd Home Service"
  56352. msgstr "Shepherd服务"
  56353. #. type: menuentry
  56354. #: guix-git/doc/guix.texi:38208
  56355. #, fuzzy
  56356. #| msgid "Messaging services."
  56357. msgid "Managing User's Daemons."
  56358. msgstr "消息服务。"
  56359. #. type: menuentry
  56360. #: guix-git/doc/guix.texi:38208
  56361. #, fuzzy
  56362. #| msgid "Desktop Services"
  56363. msgid "Desktop: Desktop Home Services"
  56364. msgstr "桌面服务"
  56365. #. type: menuentry
  56366. #: guix-git/doc/guix.texi:38208
  56367. msgid "Services for graphical environments."
  56368. msgstr ""
  56369. #. type: Plain text
  56370. #: guix-git/doc/guix.texi:38217
  56371. 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."
  56372. msgstr ""
  56373. #. type: cindex
  56374. #: guix-git/doc/guix.texi:38218
  56375. #, fuzzy, no-wrap
  56376. msgid "environment variables"
  56377. msgstr "构建环境"
  56378. #. type: defvr
  56379. #: guix-git/doc/guix.texi:38220
  56380. #, no-wrap
  56381. msgid "{Scheme Variable} home-environment-variables-service-type"
  56382. msgstr ""
  56383. #. type: defvr
  56384. #: guix-git/doc/guix.texi:38225
  56385. 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."
  56386. msgstr ""
  56387. #. type: lisp
  56388. #: guix-git/doc/guix.texi:38229
  56389. #, no-wrap
  56390. msgid ""
  56391. "(list (\"ENV_VAR1\" . \"value1\")\n"
  56392. " (\"ENV_VAR2\" . \"value2\"))\n"
  56393. msgstr ""
  56394. #. type: defvr
  56395. #: guix-git/doc/guix.texi:38234
  56396. 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)}."
  56397. msgstr ""
  56398. #. type: lisp
  56399. #: guix-git/doc/guix.texi:38242
  56400. #, no-wrap
  56401. msgid ""
  56402. "(simple-service 'some-useful-env-vars-service\n"
  56403. "\t\thome-environment-variables-service-type\n"
  56404. "\t\t`((\"LESSHISTFILE\" . \"$XDG_CACHE_HOME/.lesshst\")\n"
  56405. " (\"SHELL\" . ,(file-append zsh \"/bin/zsh\"))\n"
  56406. " (\"USELESS_VAR\" . #f)\n"
  56407. " (\"_JAVA_AWT_WM_NONREPARENTING\" . #t)))\n"
  56408. msgstr ""
  56409. #. type: defvr
  56410. #: guix-git/doc/guix.texi:38247
  56411. 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):"
  56412. msgstr ""
  56413. #. type: example
  56414. #: guix-git/doc/guix.texi:38252
  56415. #, no-wrap
  56416. msgid ""
  56417. "export LESSHISTFILE=$XDG_CACHE_HOME/.lesshst\n"
  56418. "export SHELL=/gnu/store/2hsg15n644f0glrcbkb1kqknmmqdar03-zsh-5.8/bin/zsh\n"
  56419. "export _JAVA_AWT_WM_NONREPARENTING\n"
  56420. msgstr ""
  56421. #. type: quotation
  56422. #: guix-git/doc/guix.texi:38259
  56423. 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."
  56424. msgstr ""
  56425. #. type: defvr
  56426. #: guix-git/doc/guix.texi:38272
  56427. 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."
  56428. msgstr ""
  56429. #. type: defvr
  56430. #: guix-git/doc/guix.texi:38275
  56431. #, no-wrap
  56432. msgid "{Scheme Variable} home-profile-service-type"
  56433. msgstr ""
  56434. #. type: defvr
  56435. #: guix-git/doc/guix.texi:38281
  56436. msgid "The service of this type will be instantiated by every home environment automatically, there is no need to define it, but you may want to extend it with a list of packages if you want to install additional packages into your profile. Other services, which need to make some programs available to the user will also extend this service type."
  56437. msgstr ""
  56438. #. type: defvr
  56439. #: guix-git/doc/guix.texi:38283
  56440. msgid "The extension value is just a list of packages:"
  56441. msgstr ""
  56442. #. type: lisp
  56443. #: guix-git/doc/guix.texi:38286
  56444. #, no-wrap
  56445. msgid "(list htop vim emacs)\n"
  56446. msgstr ""
  56447. #. type: defvr
  56448. #: guix-git/doc/guix.texi:38296
  56449. 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."
  56450. msgstr ""
  56451. #. type: Plain text
  56452. #: guix-git/doc/guix.texi:38300
  56453. msgid "There are few more essential services, but users are not expected to extend them."
  56454. msgstr ""
  56455. #. type: defvr
  56456. #: guix-git/doc/guix.texi:38301
  56457. #, no-wrap
  56458. msgid "{Scheme Variable} home-service-type"
  56459. msgstr ""
  56460. #. type: defvr
  56461. #: guix-git/doc/guix.texi:38306
  56462. 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."
  56463. msgstr ""
  56464. #. type: defvr
  56465. #: guix-git/doc/guix.texi:38308
  56466. #, no-wrap
  56467. msgid "{Scheme Variable} home-run-on-first-login-service-type"
  56468. msgstr ""
  56469. #. type: defvr
  56470. #: guix-git/doc/guix.texi:38313
  56471. 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."
  56472. msgstr ""
  56473. #. type: defvr
  56474. #: guix-git/doc/guix.texi:38319
  56475. msgid "It can be extended with a gexp. However, to autostart an application, users @emph{should not} use this service, in most cases it's better to extend @code{home-shepherd-service-type} with a Shepherd service (@pxref{Shepherd Services}), or extend the shell's startup file with the required command using the appropriate service type."
  56476. msgstr ""
  56477. #. type: defvr
  56478. #: guix-git/doc/guix.texi:38321
  56479. #, no-wrap
  56480. msgid "{Scheme Variable} home-activation-service-type"
  56481. msgstr ""
  56482. #. type: defvr
  56483. #: guix-git/doc/guix.texi:38325
  56484. 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."
  56485. msgstr ""
  56486. #. type: node
  56487. #: guix-git/doc/guix.texi:38327
  56488. #, fuzzy, no-wrap
  56489. #| msgid "Shepherd Services"
  56490. msgid "Shells Home Services"
  56491. msgstr "Shepherd服务"
  56492. #. type: subsection
  56493. #: guix-git/doc/guix.texi:38328
  56494. #, no-wrap
  56495. msgid "Shells"
  56496. msgstr ""
  56497. #. type: cindex
  56498. #: guix-git/doc/guix.texi:38330 guix-git/doc/guix.texi:38696
  56499. #, no-wrap
  56500. msgid "shell"
  56501. msgstr ""
  56502. #. type: cindex
  56503. #: guix-git/doc/guix.texi:38331
  56504. #, no-wrap
  56505. msgid "login shell"
  56506. msgstr ""
  56507. #. type: cindex
  56508. #: guix-git/doc/guix.texi:38332
  56509. #, no-wrap
  56510. msgid "interactive shell"
  56511. msgstr ""
  56512. #. type: cindex
  56513. #: guix-git/doc/guix.texi:38333 guix-git/doc/guix.texi:38698
  56514. #, no-wrap
  56515. msgid "bash"
  56516. msgstr ""
  56517. #. type: cindex
  56518. #: guix-git/doc/guix.texi:38334 guix-git/doc/guix.texi:38699
  56519. #, no-wrap
  56520. msgid "zsh"
  56521. msgstr ""
  56522. #. type: Plain text
  56523. #: guix-git/doc/guix.texi:38340
  56524. 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."
  56525. msgstr ""
  56526. #. type: Plain text
  56527. #: guix-git/doc/guix.texi:38350
  56528. 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."
  56529. msgstr ""
  56530. #. type: subsubheading
  56531. #: guix-git/doc/guix.texi:38351
  56532. #, fuzzy, no-wrap
  56533. #| msgid "Certificate Services"
  56534. msgid "Shell Profile Service"
  56535. msgstr "证书服务"
  56536. #. type: deftp
  56537. #: guix-git/doc/guix.texi:38353
  56538. #, fuzzy, no-wrap
  56539. msgid "{Data Type} home-shell-profile-configuration"
  56540. msgstr "管理操作系统配置。"
  56541. #. type: deftp
  56542. #: guix-git/doc/guix.texi:38355
  56543. msgid "Available @code{home-shell-profile-configuration} fields are:"
  56544. msgstr ""
  56545. #. type: item
  56546. #: guix-git/doc/guix.texi:38357
  56547. #, fuzzy, no-wrap
  56548. msgid "@code{profile} (default: @code{()}) (type: text-config)"
  56549. msgstr "@code{challenge}(默认值:@code{#f})"
  56550. #. type: table
  56551. #: guix-git/doc/guix.texi:38367
  56552. msgid "@code{home-shell-profile} is instantiated automatically by @code{home-environment}, DO NOT create this service manually, it can only be extended. @code{profile} is a list of file-like objects, which will go to @file{~/.profile}. By default @file{~/.profile} contains the initialization code which must be evaluated by the login shell to make home-environment's profile available to the user, but other commands can be added to the file if it is really necessary. In most cases shell's configuration files are preferred places for user's customizations. Extend home-shell-profile service only if you really know what you do."
  56553. msgstr ""
  56554. #. type: subsubheading
  56555. #: guix-git/doc/guix.texi:38372
  56556. #, fuzzy, no-wrap
  56557. #| msgid "Base Services"
  56558. msgid "Bash Home Service"
  56559. msgstr "基础服务"
  56560. #. type: anchor{#1}
  56561. #: guix-git/doc/guix.texi:38375
  56562. #, fuzzy
  56563. msgid "home-bash-configuration"
  56564. msgstr "系统配置"
  56565. #. type: deftp
  56566. #: guix-git/doc/guix.texi:38375
  56567. #, fuzzy, no-wrap
  56568. msgid "{Data Type} home-bash-configuration"
  56569. msgstr "{数据类型} build-machine"
  56570. #. type: deftp
  56571. #: guix-git/doc/guix.texi:38377
  56572. msgid "Available @code{home-bash-configuration} fields are:"
  56573. msgstr ""
  56574. #. type: item
  56575. #: guix-git/doc/guix.texi:38379
  56576. #, fuzzy, no-wrap
  56577. msgid "@code{package} (default: @code{bash}) (type: package)"
  56578. msgstr "@code{xfce}(默认值:@code{xfce})"
  56579. #. type: table
  56580. #: guix-git/doc/guix.texi:38381
  56581. #, fuzzy
  56582. msgid "The Bash package to use."
  56583. msgstr "软件包数据类型。"
  56584. #. type: item
  56585. #: guix-git/doc/guix.texi:38382
  56586. #, fuzzy, no-wrap
  56587. msgid "@code{guix-defaults?} (default: @code{#t}) (type: boolean)"
  56588. msgstr "@code{challenge}(默认值:@code{#f})"
  56589. #. type: table
  56590. #: guix-git/doc/guix.texi:38385
  56591. msgid "Add sane defaults like reading @file{/etc/bashrc} and coloring the output of @command{ls} to the top of the @file{.bashrc} file."
  56592. msgstr ""
  56593. #. type: item
  56594. #: guix-git/doc/guix.texi:38386 guix-git/doc/guix.texi:38440
  56595. #: guix-git/doc/guix.texi:38479
  56596. #, fuzzy, no-wrap
  56597. msgid "@code{environment-variables} (default: @code{()}) (type: alist)"
  56598. msgstr "@code{features} (@code{'()})"
  56599. #. type: table
  56600. #: guix-git/doc/guix.texi:38391
  56601. 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."
  56602. msgstr ""
  56603. #. type: item
  56604. #: guix-git/doc/guix.texi:38392 guix-git/doc/guix.texi:38445
  56605. #, fuzzy, no-wrap
  56606. msgid "@code{aliases} (default: @code{()}) (type: alist)"
  56607. msgstr "@code{features} (@code{'()})"
  56608. #. type: table
  56609. #: guix-git/doc/guix.texi:38397
  56610. 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:"
  56611. msgstr ""
  56612. #. type: lisp
  56613. #: guix-git/doc/guix.texi:38400
  56614. #, no-wrap
  56615. msgid "'((\"ls\" . \"ls -alF\"))\n"
  56616. msgstr ""
  56617. #. type: table
  56618. #: guix-git/doc/guix.texi:38403
  56619. msgid "turns into"
  56620. msgstr ""
  56621. #. type: example
  56622. #: guix-git/doc/guix.texi:38406
  56623. #, no-wrap
  56624. msgid "alias ls=\"ls -alF\"\n"
  56625. msgstr ""
  56626. #. type: item
  56627. #: guix-git/doc/guix.texi:38408 guix-git/doc/guix.texi:38449
  56628. #, fuzzy, no-wrap
  56629. msgid "@code{bash-profile} (default: @code{()}) (type: text-config)"
  56630. msgstr "@code{xfce}(默认值:@code{xfce})"
  56631. #. type: table
  56632. #: guix-git/doc/guix.texi:38413
  56633. 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."
  56634. msgstr ""
  56635. #. type: item
  56636. #: guix-git/doc/guix.texi:38414 guix-git/doc/guix.texi:38453
  56637. #, fuzzy, no-wrap
  56638. msgid "@code{bashrc} (default: @code{()}) (type: text-config)"
  56639. msgstr "@code{xfce}(默认值:@code{xfce})"
  56640. #. type: table
  56641. #: guix-git/doc/guix.texi:38419
  56642. 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)."
  56643. msgstr ""
  56644. #. type: item
  56645. #: guix-git/doc/guix.texi:38420 guix-git/doc/guix.texi:38457
  56646. #, fuzzy, no-wrap
  56647. msgid "@code{bash-logout} (default: @code{()}) (type: text-config)"
  56648. msgstr "@code{xfce}(默认值:@code{xfce})"
  56649. #. type: table
  56650. #: guix-git/doc/guix.texi:38425
  56651. 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)."
  56652. msgstr ""
  56653. #. type: Plain text
  56654. #: guix-git/doc/guix.texi:38435
  56655. 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}."
  56656. msgstr ""
  56657. #. type: deftp
  56658. #: guix-git/doc/guix.texi:38436
  56659. #, fuzzy, no-wrap
  56660. msgid "{Data Type} home-bash-extension"
  56661. msgstr "{数据类型} build-machine"
  56662. #. type: deftp
  56663. #: guix-git/doc/guix.texi:38438
  56664. msgid "Available @code{home-bash-extension} fields are:"
  56665. msgstr ""
  56666. #. type: table
  56667. #: guix-git/doc/guix.texi:38444
  56668. 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."
  56669. msgstr ""
  56670. #. type: table
  56671. #: guix-git/doc/guix.texi:38448
  56672. msgid "Additional aliases to set. These will be combined with the aliases from other extensions and the base service."
  56673. msgstr ""
  56674. #. type: table
  56675. #: guix-git/doc/guix.texi:38452
  56676. msgid "Additional text blocks to add to @file{.bash_profile}, which will be combined with text blocks from other extensions and the base service."
  56677. msgstr ""
  56678. #. type: table
  56679. #: guix-git/doc/guix.texi:38456
  56680. msgid "Additional text blocks to add to @file{.bashrc}, which will be combined with text blocks from other extensions and the base service."
  56681. msgstr ""
  56682. #. type: table
  56683. #: guix-git/doc/guix.texi:38460
  56684. msgid "Additional text blocks to add to @file{.bash_logout}, which will be combined with text blocks from other extensions and the base service."
  56685. msgstr ""
  56686. #. type: subsubheading
  56687. #: guix-git/doc/guix.texi:38464
  56688. #, fuzzy, no-wrap
  56689. #| msgid "Game Services"
  56690. msgid "Zsh Home Service"
  56691. msgstr "游戏服务"
  56692. #. type: deftp
  56693. #: guix-git/doc/guix.texi:38466
  56694. #, fuzzy, no-wrap
  56695. msgid "{Data Type} home-zsh-configuration"
  56696. msgstr "{数据类型} build-machine"
  56697. #. type: deftp
  56698. #: guix-git/doc/guix.texi:38468
  56699. msgid "Available @code{home-zsh-configuration} fields are:"
  56700. msgstr ""
  56701. #. type: item
  56702. #: guix-git/doc/guix.texi:38470
  56703. #, fuzzy, no-wrap
  56704. msgid "@code{package} (default: @code{zsh}) (type: package)"
  56705. msgstr "@code{xfce}(默认值:@code{xfce})"
  56706. #. type: table
  56707. #: guix-git/doc/guix.texi:38472
  56708. #, fuzzy
  56709. msgid "The Zsh package to use."
  56710. msgstr "软件包数据类型。"
  56711. #. type: item
  56712. #: guix-git/doc/guix.texi:38473
  56713. #, fuzzy, no-wrap
  56714. msgid "@code{xdg-flavor?} (default: @code{#t}) (type: boolean)"
  56715. msgstr "@code{challenge}(默认值:@code{#f})"
  56716. #. type: table
  56717. #: guix-git/doc/guix.texi:38478
  56718. 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}."
  56719. msgstr ""
  56720. #. type: table
  56721. #: guix-git/doc/guix.texi:38481
  56722. msgid "Association list of environment variables to set for the Zsh session."
  56723. msgstr ""
  56724. #. type: item
  56725. #: guix-git/doc/guix.texi:38482
  56726. #, fuzzy, no-wrap
  56727. msgid "@code{zshenv} (default: @code{()}) (type: text-config)"
  56728. msgstr "@code{xfce}(默认值:@code{xfce})"
  56729. #. type: table
  56730. #: guix-git/doc/guix.texi:38487
  56731. 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}."
  56732. msgstr ""
  56733. #. type: item
  56734. #: guix-git/doc/guix.texi:38488
  56735. #, fuzzy, no-wrap
  56736. msgid "@code{zprofile} (default: @code{()}) (type: text-config)"
  56737. msgstr "@code{challenge}(默认值:@code{#f})"
  56738. #. type: table
  56739. #: guix-git/doc/guix.texi:38493
  56740. 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}."
  56741. msgstr ""
  56742. #. type: item
  56743. #: guix-git/doc/guix.texi:38494
  56744. #, fuzzy, no-wrap
  56745. msgid "@code{zshrc} (default: @code{()}) (type: text-config)"
  56746. msgstr "@code{xfce}(默认值:@code{xfce})"
  56747. #. type: table
  56748. #: guix-git/doc/guix.texi:38499
  56749. 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)."
  56750. msgstr ""
  56751. #. type: item
  56752. #: guix-git/doc/guix.texi:38500
  56753. #, fuzzy, no-wrap
  56754. msgid "@code{zlogin} (default: @code{()}) (type: text-config)"
  56755. msgstr "@code{speed}(默认值:@code{1.0})"
  56756. #. type: table
  56757. #: guix-git/doc/guix.texi:38504
  56758. 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."
  56759. msgstr ""
  56760. #. type: item
  56761. #: guix-git/doc/guix.texi:38505
  56762. #, fuzzy, no-wrap
  56763. msgid "@code{zlogout} (default: @code{()}) (type: text-config)"
  56764. msgstr "@code{xfce}(默认值:@code{xfce})"
  56765. #. type: table
  56766. #: guix-git/doc/guix.texi:38510
  56767. 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)."
  56768. msgstr ""
  56769. #. type: node
  56770. #: guix-git/doc/guix.texi:38515
  56771. #, fuzzy, no-wrap
  56772. #| msgid "Monitoring Services"
  56773. msgid "Mcron Home Service"
  56774. msgstr "监控服务"
  56775. #. type: subsection
  56776. #: guix-git/doc/guix.texi:38516
  56777. #, fuzzy, no-wrap
  56778. #| msgid "Scheduled Job Execution"
  56779. msgid "Scheduled User's Job Execution"
  56780. msgstr "执行计划任务"
  56781. #. type: Plain text
  56782. #: guix-git/doc/guix.texi:38529
  56783. 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."
  56784. msgstr ""
  56785. #. type: defvr
  56786. #: guix-git/doc/guix.texi:38530
  56787. #, no-wrap
  56788. msgid "{Scheme Variable} home-mcron-service-type"
  56789. msgstr ""
  56790. #. type: defvr
  56791. #: guix-git/doc/guix.texi:38534
  56792. 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."
  56793. msgstr ""
  56794. #. type: deftp
  56795. #: guix-git/doc/guix.texi:38541
  56796. #, fuzzy, no-wrap
  56797. msgid "{Data Type} home-mcron-configuration"
  56798. msgstr "{数据类型} build-machine"
  56799. #. type: node
  56800. #: guix-git/doc/guix.texi:38555
  56801. #, fuzzy, no-wrap
  56802. #| msgid "Shepherd Services"
  56803. msgid "Shepherd Home Service"
  56804. msgstr "Shepherd服务"
  56805. #. type: subsection
  56806. #: guix-git/doc/guix.texi:38556
  56807. #, fuzzy, no-wrap
  56808. #| msgid "Messaging services."
  56809. msgid "Managing User Daemons"
  56810. msgstr "消息服务。"
  56811. #. type: cindex
  56812. #: guix-git/doc/guix.texi:38558
  56813. #, fuzzy, no-wrap
  56814. #| msgid "Shepherd Services"
  56815. msgid "shepherd services, for users"
  56816. msgstr "Shepherd服务"
  56817. #. type: Plain text
  56818. #: guix-git/doc/guix.texi:38565
  56819. msgid "The @code{(gnu home services shepherd)} module supports the definitions of per-user Shepherd services (@pxref{Introduction,,, shepherd, The GNU Shepherd Manual}). You extend @code{home-shepherd-service-type} with new services; Guix Home then takes care of starting the @code{shepherd} daemon for you when you log in, which in turns starts the services you asked for."
  56820. msgstr ""
  56821. #. type: defvr
  56822. #: guix-git/doc/guix.texi:38566
  56823. #, no-wrap
  56824. msgid "{Scheme Variable} home-shepherd-service-type"
  56825. msgstr ""
  56826. #. type: defvr
  56827. #: guix-git/doc/guix.texi:38571
  56828. 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."
  56829. msgstr ""
  56830. #. type: defvr
  56831. #: guix-git/doc/guix.texi:38576
  56832. msgid "This is the service type that extensions target when they want to create shepherd services (@pxref{Service Types and Services}, for an example). Each extension must pass a list of @code{<shepherd-service>}. Its value must be a @code{home-shepherd-configuration}, as described below."
  56833. msgstr ""
  56834. #. type: deftp
  56835. #: guix-git/doc/guix.texi:38578
  56836. #, fuzzy, no-wrap
  56837. msgid "{Data Type} home-shepherd-configuration"
  56838. msgstr "{数据类型} build-machine"
  56839. #. type: item
  56840. #: guix-git/doc/guix.texi:38585
  56841. #, fuzzy, no-wrap
  56842. msgid "auto-start? (default: @code{#t})"
  56843. msgstr "@code{port}(默认值:@code{22})"
  56844. #. type: table
  56845. #: guix-git/doc/guix.texi:38587
  56846. msgid "Whether or not to start Shepherd on first login."
  56847. msgstr ""
  56848. #. type: subsection
  56849. #: guix-git/doc/guix.texi:38595 guix-git/doc/guix.texi:38596
  56850. #, fuzzy, no-wrap
  56851. #| msgid "Desktop Services"
  56852. msgid "Desktop Home Services"
  56853. msgstr "桌面服务"
  56854. #. type: Plain text
  56855. #: guix-git/doc/guix.texi:38601
  56856. msgid "The @code{(gnu home services desktop)} module provides services that you may find useful on ``desktop'' systems running a graphical user environment such as Xorg."
  56857. msgstr ""
  56858. #. type: defvr
  56859. #: guix-git/doc/guix.texi:38602
  56860. #, no-wrap
  56861. msgid "{Scheme Variable} home-redshift-service-type"
  56862. msgstr ""
  56863. #. type: defvr
  56864. #: guix-git/doc/guix.texi:38607
  56865. msgid "This is the service type for @uref{https://github.com/jonls/redshift, Redshift}, a program that adjusts the display color temperature according to the time of day. Its associated value must be a @code{home-redshift-configuration} record, as shown below."
  56866. msgstr ""
  56867. #. type: defvr
  56868. #: guix-git/doc/guix.texi:38610
  56869. msgid "A typical configuration, where we manually specify the latitude and longitude, might look like this:"
  56870. msgstr ""
  56871. #. type: lisp
  56872. #: guix-git/doc/guix.texi:38617
  56873. #, no-wrap
  56874. msgid ""
  56875. "(service home-redshift-service-type\n"
  56876. " (home-redshift-configuration\n"
  56877. " (location-provider 'manual)\n"
  56878. " (latitude 35.81) ;northern hemisphere\n"
  56879. " (longitude -0.80))) ;west of Greenwich\n"
  56880. msgstr ""
  56881. #. type: deftp
  56882. #: guix-git/doc/guix.texi:38620
  56883. #, fuzzy, no-wrap
  56884. msgid "{Data Type} home-redshift-configuration"
  56885. msgstr "{数据类型} build-machine"
  56886. #. type: deftp
  56887. #: guix-git/doc/guix.texi:38622
  56888. msgid "Available @code{home-redshift-configuration} fields are:"
  56889. msgstr ""
  56890. #. type: item
  56891. #: guix-git/doc/guix.texi:38624
  56892. #, fuzzy, no-wrap
  56893. msgid "@code{redshift} (default: @code{redshift}) (type: file-like)"
  56894. msgstr "@code{xfce}(默认值:@code{xfce})"
  56895. #. type: table
  56896. #: guix-git/doc/guix.texi:38626
  56897. #, fuzzy
  56898. msgid "Redshift package to use."
  56899. msgstr "软件包数据类型。"
  56900. #. type: item
  56901. #: guix-git/doc/guix.texi:38627
  56902. #, fuzzy, no-wrap
  56903. msgid "@code{location-provider} (default: @code{geoclue2}) (type: symbol)"
  56904. msgstr "@code{port}(默认值:@code{22})"
  56905. #. type: table
  56906. #: guix-git/doc/guix.texi:38633
  56907. msgid "Geolocation provider---@code{'manual} or @code{'geoclue2}. In the former case, you must also specify the @code{latitude} and @code{longitude} fields so Redshift can determine daytime at your place. In the latter case, the Geoclue system service must be running; it will be queried for location information."
  56908. msgstr ""
  56909. #. type: item
  56910. #: guix-git/doc/guix.texi:38634
  56911. #, fuzzy, no-wrap
  56912. msgid "@code{adjustment-method} (default: @code{randr}) (type: symbol)"
  56913. msgstr "@code{port}(默认值:@code{22})"
  56914. #. type: table
  56915. #: guix-git/doc/guix.texi:38636
  56916. msgid "Color adjustment method."
  56917. msgstr ""
  56918. #. type: item
  56919. #: guix-git/doc/guix.texi:38637
  56920. #, fuzzy, no-wrap
  56921. msgid "@code{daytime-temperature} (default: @code{6500}) (type: integer)"
  56922. msgstr "@code{challenge}(默认值:@code{#f})"
  56923. #. type: table
  56924. #: guix-git/doc/guix.texi:38639
  56925. msgid "Daytime color temperature (kelvins)."
  56926. msgstr ""
  56927. #. type: item
  56928. #: guix-git/doc/guix.texi:38640
  56929. #, fuzzy, no-wrap
  56930. msgid "@code{nighttime-temperature} (default: @code{4500}) (type: integer)"
  56931. msgstr "@code{challenge}(默认值:@code{#f})"
  56932. #. type: table
  56933. #: guix-git/doc/guix.texi:38642
  56934. msgid "Nighttime color temperature (kelvins)."
  56935. msgstr ""
  56936. #. type: item
  56937. #: guix-git/doc/guix.texi:38643
  56938. #, fuzzy, no-wrap
  56939. msgid "@code{daytime-brightness} (default: @code{disabled}) (type: maybe-inexact-number)"
  56940. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  56941. #. type: table
  56942. #: guix-git/doc/guix.texi:38645
  56943. msgid "Daytime screen brightness, between 0.1 and 1.0."
  56944. msgstr ""
  56945. #. type: item
  56946. #: guix-git/doc/guix.texi:38646
  56947. #, fuzzy, no-wrap
  56948. msgid "@code{nighttime-brightness} (default: @code{disabled}) (type: maybe-inexact-number)"
  56949. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  56950. #. type: table
  56951. #: guix-git/doc/guix.texi:38648
  56952. msgid "Nighttime screen brightness, between 0.1 and 1.0."
  56953. msgstr ""
  56954. #. type: item
  56955. #: guix-git/doc/guix.texi:38649
  56956. #, fuzzy, no-wrap
  56957. msgid "@code{latitude} (default: @code{disabled}) (type: maybe-inexact-number)"
  56958. msgstr "@code{gnome}(默认值:@code{gnome})"
  56959. #. type: table
  56960. #: guix-git/doc/guix.texi:38651
  56961. msgid "Latitude, when @code{location-provider} is @code{'manual}."
  56962. msgstr ""
  56963. #. type: item
  56964. #: guix-git/doc/guix.texi:38652
  56965. #, fuzzy, no-wrap
  56966. msgid "@code{longitude} (default: @code{disabled}) (type: maybe-inexact-number)"
  56967. msgstr "@code{gnome}(默认值:@code{gnome})"
  56968. #. type: table
  56969. #: guix-git/doc/guix.texi:38654
  56970. msgid "Longitude, when @code{location-provider} is @code{'manual}."
  56971. msgstr ""
  56972. #. type: item
  56973. #: guix-git/doc/guix.texi:38655
  56974. #, fuzzy, no-wrap
  56975. msgid "@code{dawn-time} (default: @code{disabled}) (type: maybe-string)"
  56976. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  56977. #. type: table
  56978. #: guix-git/doc/guix.texi:38659
  56979. msgid "Custom time for the transition from night to day in the morning---@code{\"HH:MM\"} format. When specified, solar elevation is not used to determine the daytime/nighttime period."
  56980. msgstr ""
  56981. #. type: item
  56982. #: guix-git/doc/guix.texi:38660
  56983. #, fuzzy, no-wrap
  56984. msgid "@code{dusk-time} (default: @code{disabled}) (type: maybe-string)"
  56985. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  56986. #. type: table
  56987. #: guix-git/doc/guix.texi:38663
  56988. msgid "Likewise, custom time for the transition from day to night in the evening."
  56989. msgstr ""
  56990. #. type: item
  56991. #: guix-git/doc/guix.texi:38664
  56992. #, fuzzy, no-wrap
  56993. msgid "@code{extra-content} (default: @code{\"\"}) (type: raw-configuration-string)"
  56994. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  56995. #. type: table
  56996. #: guix-git/doc/guix.texi:38668
  56997. msgid "Extra content appended as-is to the Redshift configuration file. Run @command{man redshift} for more information about the configuration file format."
  56998. msgstr ""
  56999. #. type: section
  57000. #: guix-git/doc/guix.texi:38675
  57001. #, fuzzy, no-wrap
  57002. msgid "Invoking @code{guix home}"
  57003. msgstr "调用@command{guix-daemon}"
  57004. #. type: Plain text
  57005. #: guix-git/doc/guix.texi:38680
  57006. 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:"
  57007. msgstr ""
  57008. #. type: example
  57009. #: guix-git/doc/guix.texi:38683
  57010. #, no-wrap
  57011. msgid "guix home @var{options}@dots{} @var{action} @var{file}\n"
  57012. msgstr ""
  57013. #. type: Plain text
  57014. #: guix-git/doc/guix.texi:38690
  57015. 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:"
  57016. msgstr ""
  57017. #. type: table
  57018. #: guix-git/doc/guix.texi:38695
  57019. msgid "Display available home service type definitions that match the given regular expressions, sorted by relevance:"
  57020. msgstr ""
  57021. #. type: cindex
  57022. #: guix-git/doc/guix.texi:38697
  57023. #, no-wrap
  57024. msgid "shell-profile"
  57025. msgstr ""
  57026. #. type: example
  57027. #: guix-git/doc/guix.texi:38708
  57028. #, no-wrap
  57029. msgid ""
  57030. "$ guix home search shell\n"
  57031. "name: home-shell-profile\n"
  57032. "location: gnu/home/services/shells.scm:100:2\n"
  57033. "extends: home-files\n"
  57034. "description: Create `~/.profile', which is used for environment initialization of POSIX compliant login shells.\n"
  57035. "+ This service type can be extended with a list of file-like objects.\n"
  57036. "relevance: 6\n"
  57037. "\n"
  57038. msgstr ""
  57039. #. type: example
  57040. #: guix-git/doc/guix.texi:38714
  57041. #, no-wrap
  57042. msgid ""
  57043. "name: home-fish\n"
  57044. "location: gnu/home/services/shells.scm:640:2\n"
  57045. "extends: home-files home-profile\n"
  57046. "description: Install and configure Fish, the friendly interactive shell.\n"
  57047. "relevance: 3\n"
  57048. "\n"
  57049. msgstr ""
  57050. #. type: example
  57051. #: guix-git/doc/guix.texi:38720
  57052. #, no-wrap
  57053. msgid ""
  57054. "name: home-zsh\n"
  57055. "location: gnu/home/services/shells.scm:290:2\n"
  57056. "extends: home-files home-profile\n"
  57057. "description: Install and configure Zsh.\n"
  57058. "relevance: 1\n"
  57059. "\n"
  57060. msgstr ""
  57061. #. type: example
  57062. #: guix-git/doc/guix.texi:38726
  57063. #, no-wrap
  57064. msgid ""
  57065. "name: home-bash\n"
  57066. "location: gnu/home/services/shells.scm:508:2\n"
  57067. "extends: home-files home-profile\n"
  57068. "description: Install and configure GNU Bash.\n"
  57069. "relevance: 1\n"
  57070. "\n"
  57071. msgstr ""
  57072. #. type: table
  57073. #: guix-git/doc/guix.texi:38733
  57074. msgid "As for @command{guix search}, the result is written in @code{recutils} format, which makes it easy to filter the output (@pxref{Top, GNU recutils databases,, recutils, GNU recutils manual})."
  57075. msgstr ""
  57076. #. type: table
  57077. #: guix-git/doc/guix.texi:38738
  57078. msgid "Spawn a shell in an isolated environment---a @dfn{container}---containing your home as specified by @var{file}."
  57079. msgstr ""
  57080. #. type: table
  57081. #: guix-git/doc/guix.texi:38741
  57082. msgid "For example, this is how you would start an interactive shell in a container with your home:"
  57083. msgstr ""
  57084. #. type: table
  57085. #: guix-git/doc/guix.texi:38749
  57086. msgid "This is a throw-away container where you can lightheartedly fiddle with files; any changes made within the container, any process started---all this disappears as soon as you exit that shell."
  57087. msgstr ""
  57088. #. type: table
  57089. #: guix-git/doc/guix.texi:38751
  57090. msgid "As with @command{guix shell}, several options control that container:"
  57091. msgstr ""
  57092. #. type: table
  57093. #: guix-git/doc/guix.texi:38756
  57094. msgid "Enable networking within the container (it is disabled by default)."
  57095. msgstr ""
  57096. #. type: table
  57097. #: guix-git/doc/guix.texi:38763
  57098. msgid "As with @command{guix shell}, make directory @var{source} of the host system available as @var{target} inside the container---read-only if you pass @option{--expose}, and writable if you pass @option{--share} (@pxref{Invoking guix shell, @option{--expose} and @option{--share}})."
  57099. msgstr ""
  57100. #. type: table
  57101. #: guix-git/doc/guix.texi:38769
  57102. msgid "Additionally, you can run a command in that container, instead of spawning an interactive shell. For instance, here is how you would check which Shepherd services are started in a throw-away home container:"
  57103. msgstr ""
  57104. #. type: example
  57105. #: guix-git/doc/guix.texi:38772
  57106. #, no-wrap
  57107. msgid "guix home container config.scm -- herd status\n"
  57108. msgstr ""
  57109. #. type: table
  57110. #: guix-git/doc/guix.texi:38776
  57111. msgid "The command to run in the container must come after @code{--} (double hyphen)."
  57112. msgstr ""
  57113. #. type: table
  57114. #: guix-git/doc/guix.texi:38785
  57115. msgid "Build the home environment described in @var{file}, and switch to it. Switching means that the activation script will be evaluated and (in basic scenario) symlinks to configuration files generated from @code{home-environment} declaration will be created in @file{~}. If the file with the same path already exists in home folder it will be moved to @file{~/@var{timestamp}-guix-home-legacy-configs-backup}, where @var{timestamp} is a current UNIX epoch time."
  57116. msgstr ""
  57117. #. type: quotation
  57118. #: guix-git/doc/guix.texi:38790
  57119. 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})."
  57120. msgstr ""
  57121. #. type: table
  57122. #: guix-git/doc/guix.texi:38797
  57123. msgid "This effects all the configuration specified in @var{file}. The command starts Shepherd services specified in @var{file} that are not currently running; if a service is currently running, this command will arrange for it to be upgraded the next time it is stopped (e.g.@: by @code{herd stop @var{service}} or @code{herd restart @var{service}})."
  57124. msgstr ""
  57125. #. type: table
  57126. #: guix-git/doc/guix.texi:38803
  57127. 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})."
  57128. msgstr ""
  57129. #. type: cindex
  57130. #: guix-git/doc/guix.texi:38804
  57131. #, fuzzy, no-wrap
  57132. msgid "provenance tracking, of the home environment"
  57133. msgstr "配置操作系统。"
  57134. #. type: table
  57135. #: guix-git/doc/guix.texi:38809
  57136. 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:"
  57137. msgstr ""
  57138. #. type: example
  57139. #: guix-git/doc/guix.texi:38812
  57140. #, fuzzy, no-wrap
  57141. #| msgid "guix describe\n"
  57142. msgid "guix home describe\n"
  57143. msgstr "guix describe\n"
  57144. #. type: table
  57145. #: guix-git/doc/guix.texi:38818
  57146. 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:"
  57147. msgstr ""
  57148. #. type: example
  57149. #: guix-git/doc/guix.texi:38824
  57150. #, no-wrap
  57151. msgid ""
  57152. "guix time-machine \\\n"
  57153. " -C /var/guix/profiles/per-user/@var{USER}/guix-home-@var{n}-link/channels.scm -- \\\n"
  57154. " home reconfigure \\\n"
  57155. " /var/guix/profiles/per-user/@var{USER}/guix-home-@var{n}-link/configuration.scm\n"
  57156. "\n"
  57157. msgstr ""
  57158. #. type: table
  57159. #: guix-git/doc/guix.texi:38831
  57160. 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}."
  57161. msgstr ""
  57162. #. type: cindex
  57163. #: guix-git/doc/guix.texi:38837
  57164. #, fuzzy, no-wrap
  57165. #| msgid "Documentation"
  57166. msgid "home generations"
  57167. msgstr "文档"
  57168. #. type: table
  57169. #: guix-git/doc/guix.texi:38840
  57170. msgid "Switch to an existing home generation. This action atomically switches the home profile to the specified home generation."
  57171. msgstr ""
  57172. #. type: table
  57173. #: guix-git/doc/guix.texi:38844
  57174. msgid "The target generation can be specified explicitly by its generation number. For example, the following invocation would switch to home generation 7:"
  57175. msgstr ""
  57176. #. type: example
  57177. #: guix-git/doc/guix.texi:38847
  57178. #, fuzzy, no-wrap
  57179. msgid "guix home switch-generation 7\n"
  57180. msgstr "guix package --list-available\n"
  57181. #. type: example
  57182. #: guix-git/doc/guix.texi:38858
  57183. #, fuzzy, no-wrap
  57184. msgid "guix home switch-generation -- -1\n"
  57185. msgstr "guix package --list-available\n"
  57186. #. type: table
  57187. #: guix-git/doc/guix.texi:38867
  57188. 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}."
  57189. msgstr ""
  57190. #. type: cindex
  57191. #: guix-git/doc/guix.texi:38869
  57192. #, no-wrap
  57193. msgid "deleting home generations"
  57194. msgstr ""
  57195. #. type: table
  57196. #: guix-git/doc/guix.texi:38874
  57197. msgid "Delete home generations, making them candidates for garbage collection (@pxref{Invoking guix gc}, for information on how to run the ``garbage collector'')."
  57198. msgstr ""
  57199. #. type: table
  57200. #: guix-git/doc/guix.texi:38878
  57201. 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:"
  57202. msgstr ""
  57203. #. type: example
  57204. #: guix-git/doc/guix.texi:38881
  57205. #, fuzzy, no-wrap
  57206. msgid "guix home delete-generations\n"
  57207. msgstr "guix package --list-available\n"
  57208. #. type: table
  57209. #: guix-git/doc/guix.texi:38885
  57210. 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:"
  57211. msgstr ""
  57212. #. type: example
  57213. #: guix-git/doc/guix.texi:38888
  57214. #, fuzzy, no-wrap
  57215. msgid "guix home delete-generations 2m\n"
  57216. msgstr "guix package --list-available\n"
  57217. #. type: table
  57218. #: guix-git/doc/guix.texi:38894
  57219. msgid "Build the derivation of the home environment, which includes all the configuration files and programs needed. This action does not actually install anything."
  57220. msgstr ""
  57221. #. type: table
  57222. #: guix-git/doc/guix.texi:38898
  57223. msgid "Describe the current home generation: its file name, as well as provenance information when available."
  57224. msgstr ""
  57225. #. type: table
  57226. #: guix-git/doc/guix.texi:38904
  57227. 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})."
  57228. msgstr ""
  57229. #. type: example
  57230. #: guix-git/doc/guix.texi:38912
  57231. #, fuzzy, no-wrap
  57232. msgid "$ guix home list-generations 10d\n"
  57233. msgstr "guix package --list-available\n"
  57234. #. type: item
  57235. #: guix-git/doc/guix.texi:38914
  57236. #, no-wrap
  57237. msgid "import"
  57238. msgstr ""
  57239. #. type: table
  57240. #: guix-git/doc/guix.texi:38921
  57241. 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})."
  57242. msgstr ""
  57243. #. type: example
  57244. #: guix-git/doc/guix.texi:38925
  57245. #, no-wrap
  57246. msgid ""
  57247. "$ guix home import ~/guix-config\n"
  57248. "guix home: '/home/alice/guix-config' populated with all the Home configuration files\n"
  57249. msgstr ""
  57250. #. type: Plain text
  57251. #: guix-git/doc/guix.texi:38931
  57252. msgid "And there's more! @command{guix home} also provides the following sub-commands to visualize how the services of your home environment relate to one another:"
  57253. msgstr ""
  57254. #. type: cindex
  57255. #: guix-git/doc/guix.texi:38933
  57256. #, fuzzy, no-wrap
  57257. msgid "service extension graph, of a home environment"
  57258. msgstr "配置操作系统。"
  57259. #. type: table
  57260. #: guix-git/doc/guix.texi:38941
  57261. msgid "Emit to standard output the @dfn{service extension graph} of the home environment 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}}):"
  57262. msgstr ""
  57263. #. type: example
  57264. #: guix-git/doc/guix.texi:38946
  57265. #, no-wrap
  57266. msgid "guix home extension-graph @var{file} | xdot -\n"
  57267. msgstr ""
  57268. #. type: cindex
  57269. #: guix-git/doc/guix.texi:38950
  57270. #, fuzzy, no-wrap
  57271. msgid "Shepherd dependency graph, for a home environment"
  57272. msgstr "配置操作系统。"
  57273. #. type: table
  57274. #: guix-git/doc/guix.texi:38955
  57275. msgid "Emit to standard output the @dfn{dependency graph} of shepherd services of the home environment defined in @var{file}. @xref{Shepherd Services}, for more information and for an example graph."
  57276. msgstr ""
  57277. #. type: table
  57278. #: guix-git/doc/guix.texi:38971
  57279. msgid "Consider the home-environment @var{expr} evaluates to. This is an alternative to specifying a file which evaluates to a home environment."
  57280. msgstr ""
  57281. #. type: table
  57282. #: guix-git/doc/guix.texi:38974
  57283. msgid "Instruct @command{guix home reconfigure} to allow system downgrades."
  57284. msgstr ""
  57285. #. type: table
  57286. #: guix-git/doc/guix.texi:38981
  57287. msgid "Just like @command{guix system}, @command{guix home reconfigure}, by default, prevents you from downgrading your home to older or unrelated revisions compared to the channel revisions that were used to deploy it---those shown by @command{guix home describe}. Using @option{--allow-downgrades} allows you to bypass that check, at the risk of downgrading your home---be careful!"
  57288. msgstr ""
  57289. #. type: cindex
  57290. #: guix-git/doc/guix.texi:38987
  57291. #, no-wrap
  57292. msgid "documentation, searching for"
  57293. msgstr ""
  57294. #. type: cindex
  57295. #: guix-git/doc/guix.texi:38988
  57296. #, no-wrap
  57297. msgid "searching for documentation"
  57298. msgstr ""
  57299. #. type: cindex
  57300. #: guix-git/doc/guix.texi:38989
  57301. #, no-wrap
  57302. msgid "Info, documentation format"
  57303. msgstr ""
  57304. #. type: cindex
  57305. #: guix-git/doc/guix.texi:38990
  57306. #, no-wrap
  57307. msgid "man pages"
  57308. msgstr ""
  57309. #. type: cindex
  57310. #: guix-git/doc/guix.texi:38991
  57311. #, no-wrap
  57312. msgid "manual pages"
  57313. msgstr ""
  57314. #. type: Plain text
  57315. #: guix-git/doc/guix.texi:38998
  57316. 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}."
  57317. msgstr ""
  57318. #. type: Plain text
  57319. #: guix-git/doc/guix.texi:39002
  57320. 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:"
  57321. msgstr ""
  57322. #. type: example
  57323. #: guix-git/doc/guix.texi:39010
  57324. #, no-wrap
  57325. msgid ""
  57326. "$ info -k TLS\n"
  57327. "\"(emacs)Network Security\" -- STARTTLS\n"
  57328. "\"(emacs)Network Security\" -- TLS\n"
  57329. "\"(gnutls)Core TLS API\" -- gnutls_certificate_set_verify_flags\n"
  57330. "\"(gnutls)Core TLS API\" -- gnutls_certificate_set_verify_function\n"
  57331. "@dots{}\n"
  57332. msgstr ""
  57333. #. type: Plain text
  57334. #: guix-git/doc/guix.texi:39016
  57335. 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.}:"
  57336. msgstr ""
  57337. #. type: example
  57338. #: guix-git/doc/guix.texi:39022
  57339. #, no-wrap
  57340. msgid ""
  57341. "$ man -k TLS\n"
  57342. "SSL (7) - OpenSSL SSL/TLS library\n"
  57343. "certtool (1) - GnuTLS certificate tool\n"
  57344. "@dots {}\n"
  57345. msgstr ""
  57346. #. type: Plain text
  57347. #: guix-git/doc/guix.texi:39028
  57348. 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."
  57349. msgstr ""
  57350. #. type: Plain text
  57351. #: guix-git/doc/guix.texi:39031
  57352. msgid "Once you have these results, you can view the relevant documentation by running, say:"
  57353. msgstr ""
  57354. #. type: example
  57355. #: guix-git/doc/guix.texi:39034
  57356. #, no-wrap
  57357. msgid "$ info \"(gnutls)Core TLS API\"\n"
  57358. msgstr ""
  57359. #. type: Plain text
  57360. #: guix-git/doc/guix.texi:39038
  57361. msgid "or:"
  57362. msgstr ""
  57363. #. type: example
  57364. #: guix-git/doc/guix.texi:39041
  57365. #, no-wrap
  57366. msgid "$ man certtool\n"
  57367. msgstr ""
  57368. #. type: Plain text
  57369. #: guix-git/doc/guix.texi:39049
  57370. 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."
  57371. msgstr ""
  57372. #. type: cindex
  57373. #: guix-git/doc/guix.texi:39053
  57374. #, no-wrap
  57375. msgid "debugging files"
  57376. msgstr ""
  57377. #. type: Plain text
  57378. #: guix-git/doc/guix.texi:39059
  57379. 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."
  57380. msgstr ""
  57381. #. type: Plain text
  57382. #: guix-git/doc/guix.texi:39063
  57383. 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."
  57384. msgstr ""
  57385. #. type: Plain text
  57386. #: guix-git/doc/guix.texi:39079
  57387. 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})."
  57388. msgstr ""
  57389. #. type: Plain text
  57390. #: guix-git/doc/guix.texi:39086
  57391. 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})."
  57392. msgstr ""
  57393. #. type: Plain text
  57394. #: guix-git/doc/guix.texi:39094
  57395. 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:"
  57396. msgstr ""
  57397. #. type: example
  57398. #: guix-git/doc/guix.texi:39097
  57399. #, no-wrap
  57400. msgid "guix install glibc:debug guile:debug\n"
  57401. msgstr ""
  57402. #. type: Plain text
  57403. #: guix-git/doc/guix.texi:39103
  57404. 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}):"
  57405. msgstr ""
  57406. #. type: example
  57407. #: guix-git/doc/guix.texi:39106
  57408. #, no-wrap
  57409. msgid "(gdb) set debug-file-directory ~/.guix-profile/lib/debug\n"
  57410. msgstr ""
  57411. #. type: Plain text
  57412. #: guix-git/doc/guix.texi:39110
  57413. msgid "From there on, GDB will pick up debugging information from the @file{.debug} files under @file{~/.guix-profile/lib/debug}."
  57414. msgstr ""
  57415. #. type: Plain text
  57416. #: guix-git/doc/guix.texi:39115
  57417. msgid "Below is an alternative GDB script which is useful when working with other profiles. It takes advantage of the optional Guile integration in GDB. This snippet is included by default on Guix System in the @file{~/.gdbinit} file."
  57418. msgstr ""
  57419. #. type: example
  57420. #: guix-git/doc/guix.texi:39123
  57421. #, no-wrap
  57422. msgid ""
  57423. "guile\n"
  57424. "(use-modules (gdb))\n"
  57425. "(execute (string-append \"set debug-file-directory \"\n"
  57426. " (or (getenv \"GDB_DEBUG_FILE_DIRECTORY\")\n"
  57427. " \"~/.guix-profile/lib/debug\")))\n"
  57428. "end\n"
  57429. msgstr ""
  57430. #. type: Plain text
  57431. #: guix-git/doc/guix.texi:39131
  57432. 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})."
  57433. msgstr ""
  57434. #. type: Plain text
  57435. #: guix-git/doc/guix.texi:39139
  57436. 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})."
  57437. msgstr ""
  57438. #. type: Plain text
  57439. #: guix-git/doc/guix.texi:39141
  57440. msgid "Read on for how to deal with packages lacking a @code{debug} output."
  57441. msgstr ""
  57442. #. type: Plain text
  57443. #: guix-git/doc/guix.texi:39153
  57444. 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."
  57445. msgstr ""
  57446. #. type: Plain text
  57447. #: guix-git/doc/guix.texi:39158
  57448. 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:"
  57449. msgstr ""
  57450. #. type: example
  57451. #: guix-git/doc/guix.texi:39169
  57452. #, no-wrap
  57453. msgid ""
  57454. "(gdb) bt\n"
  57455. "#0 0x00007ffff5f92190 in g_getenv ()\n"
  57456. " from /gnu/store/@dots{}-glib-2.62.6/lib/libglib-2.0.so.0\n"
  57457. "#1 0x00007ffff608a7d6 in gobject_init_ctor ()\n"
  57458. " from /gnu/store/@dots{}-glib-2.62.6/lib/libgobject-2.0.so.0\n"
  57459. "#2 0x00007ffff7fe275a in call_init (l=<optimized out>, argc=argc@@entry=1, argv=argv@@entry=0x7fffffffcfd8, \n"
  57460. " env=env@@entry=0x7fffffffcfe8) at dl-init.c:72\n"
  57461. "#3 0x00007ffff7fe2866 in call_init (env=0x7fffffffcfe8, argv=0x7fffffffcfd8, argc=1, l=<optimized out>)\n"
  57462. " at dl-init.c:118\n"
  57463. msgstr ""
  57464. #. type: Plain text
  57465. #: guix-git/doc/guix.texi:39173
  57466. msgid "To address that, you install Inkscape linked against a variant GLib that contains debug info:"
  57467. msgstr ""
  57468. #. type: Plain text
  57469. #: guix-git/doc/guix.texi:39179
  57470. msgid "This time, debugging will be a whole lot nicer:"
  57471. msgstr ""
  57472. #. type: example
  57473. #: guix-git/doc/guix.texi:39197
  57474. #, no-wrap
  57475. msgid ""
  57476. "$ gdb --args sh -c 'exec inkscape'\n"
  57477. "@dots{}\n"
  57478. "(gdb) b g_getenv\n"
  57479. "Function \"g_getenv\" not defined.\n"
  57480. "Make breakpoint pending on future shared library load? (y or [n]) y\n"
  57481. "Breakpoint 1 (g_getenv) pending.\n"
  57482. "(gdb) r\n"
  57483. "Starting program: /gnu/store/@dots{}-profile/bin/sh -c exec\\ inkscape\n"
  57484. "@dots{}\n"
  57485. "(gdb) bt\n"
  57486. "#0 g_getenv (variable=variable@@entry=0x7ffff60c7a2e \"GOBJECT_DEBUG\") at ../glib-2.62.6/glib/genviron.c:252\n"
  57487. "#1 0x00007ffff608a7d6 in gobject_init () at ../glib-2.62.6/gobject/gtype.c:4380\n"
  57488. "#2 gobject_init_ctor () at ../glib-2.62.6/gobject/gtype.c:4493\n"
  57489. "#3 0x00007ffff7fe275a in call_init (l=<optimized out>, argc=argc@@entry=3, argv=argv@@entry=0x7fffffffd088, \n"
  57490. " env=env@@entry=0x7fffffffd0a8) at dl-init.c:72\n"
  57491. "@dots{}\n"
  57492. msgstr ""
  57493. #. type: Plain text
  57494. #: guix-git/doc/guix.texi:39200
  57495. msgid "Much better!"
  57496. msgstr ""
  57497. #. type: Plain text
  57498. #: guix-git/doc/guix.texi:39204
  57499. 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."
  57500. msgstr ""
  57501. #. type: chapter
  57502. #: guix-git/doc/guix.texi:39206
  57503. #, no-wrap
  57504. msgid "Using @TeX{} and @LaTeX{}"
  57505. msgstr ""
  57506. #. type: cindex
  57507. #: guix-git/doc/guix.texi:39208
  57508. #, fuzzy, no-wrap
  57509. msgid "@TeX{} packages"
  57510. msgstr "软件包数据类型。"
  57511. #. type: cindex
  57512. #: guix-git/doc/guix.texi:39209
  57513. #, fuzzy, no-wrap
  57514. #| msgid "Building packages."
  57515. msgid "@LaTeX{} packages"
  57516. msgstr "构建软件包。"
  57517. #. type: Plain text
  57518. #: guix-git/doc/guix.texi:39217
  57519. msgid "Guix provides packages for the @TeX{}, @LaTeX{}, ConTeXt, LuaTeX, and related typesetting systems, taken from the @uref{https://www.tug.org/texlive/, @TeX{} Live distribution}. However, because @TeX{} Live is so huge and because finding your way in this maze is tricky, we thought that you, dear user, would welcome guidance on how to deploy the relevant packages so you can compile your @TeX{} and @LaTeX{} documents."
  57520. msgstr ""
  57521. #. type: Plain text
  57522. #: guix-git/doc/guix.texi:39219
  57523. msgid "@TeX{} Live currently comes in two flavors in Guix:"
  57524. msgstr ""
  57525. #. type: itemize
  57526. #: guix-git/doc/guix.texi:39225
  57527. msgid "The ``monolithic'' @code{texlive} package: it comes with @emph{every single @TeX{} Live package} (more than 7,000 of them), but it is huge (more than 4@tie{}GiB for a single package!)."
  57528. msgstr ""
  57529. #. type: itemize
  57530. #: guix-git/doc/guix.texi:39235
  57531. msgid "The ``modular'' @code{texlive-} packages: you install @code{texlive-base}, which provides core functionality and the main commands---@command{pdflatex}, @command{dvips}, @command{luatex}, @command{mf}, etc.---together with individual packages that provide just the features you need---@code{texlive-listings} for the @code{listings} package, @code{texlive-hyperref} for @code{hyperref}, @code{texlive-beamer} for Beamer, @code{texlive-pgf} for PGF/TikZ, and so on."
  57532. msgstr ""
  57533. #. type: Plain text
  57534. #: guix-git/doc/guix.texi:39240
  57535. msgid "We recommend using the modular package set because it is much less resource-hungry. To build your documents, you would use commands such as:"
  57536. msgstr ""
  57537. #. type: example
  57538. #: guix-git/doc/guix.texi:39244
  57539. #, no-wrap
  57540. msgid ""
  57541. "guix shell texlive-base texlive-wrapfig \\\n"
  57542. " texlive-hyperref texlive-cm-super -- pdflatex doc.tex\n"
  57543. msgstr ""
  57544. #. type: Plain text
  57545. #: guix-git/doc/guix.texi:39248
  57546. msgid "You can quickly end up with unreasonably long command lines though. The solution is to instead write a manifest, for example like this one:"
  57547. msgstr ""
  57548. #. type: lisp
  57549. #: guix-git/doc/guix.texi:39252
  57550. #, no-wrap
  57551. msgid ""
  57552. "(specifications->manifest\n"
  57553. " '(\"rubber\"\n"
  57554. "\n"
  57555. msgstr ""
  57556. #. type: lisp
  57557. #: guix-git/doc/guix.texi:39255
  57558. #, no-wrap
  57559. msgid ""
  57560. " \"texlive-base\"\n"
  57561. " \"texlive-wrapfig\"\n"
  57562. "\n"
  57563. msgstr ""
  57564. #. type: lisp
  57565. #: guix-git/doc/guix.texi:39258
  57566. #, no-wrap
  57567. msgid ""
  57568. " \"texlive-microtype\"\n"
  57569. " \"texlive-listings\" \"texlive-hyperref\"\n"
  57570. "\n"
  57571. msgstr ""
  57572. #. type: lisp
  57573. #: guix-git/doc/guix.texi:39261
  57574. #, no-wrap
  57575. msgid ""
  57576. " ;; PGF/TikZ\n"
  57577. " \"texlive-pgf\"\n"
  57578. "\n"
  57579. msgstr ""
  57580. #. type: lisp
  57581. #: guix-git/doc/guix.texi:39265
  57582. #, no-wrap
  57583. msgid ""
  57584. " ;; Additional fonts.\n"
  57585. " \"texlive-cm-super\" \"texlive-amsfonts\"\n"
  57586. " \"texlive-times\" \"texlive-helvetic\" \"texlive-courier\"))\n"
  57587. msgstr ""
  57588. #. type: Plain text
  57589. #: guix-git/doc/guix.texi:39268
  57590. msgid "You can then pass it to any command with the @option{-m} option:"
  57591. msgstr ""
  57592. #. type: example
  57593. #: guix-git/doc/guix.texi:39271
  57594. #, no-wrap
  57595. msgid "guix shell -m manifest.scm -- pdflatex doc.tex\n"
  57596. msgstr ""
  57597. #. type: Plain text
  57598. #: guix-git/doc/guix.texi:39279
  57599. msgid "@xref{Invoking guix package, @option{--manifest}}, for more on manifests. In the future, we plan to provide packages for @TeX{} Live @dfn{collections}---``meta-packages'' such as @code{fontsrecommended}, @code{humanities}, or @code{langarabic} that provide the set of packages needed in this particular domain. That will allow you to list fewer packages."
  57600. msgstr ""
  57601. #. type: Plain text
  57602. #: guix-git/doc/guix.texi:39285
  57603. msgid "The main difficulty here is that using the modular package set forces you to select precisely the packages that you need. You can use @command{guix search}, but finding the right package can prove to be tedious. When a package is missing, @command{pdflatex} and similar commands fail with an obscure message along the lines of:"
  57604. msgstr ""
  57605. #. type: example
  57606. #: guix-git/doc/guix.texi:39289
  57607. #, no-wrap
  57608. msgid ""
  57609. "doc.tex: File `tikz.sty' not found.\n"
  57610. "doc.tex:7: Emergency stop.\n"
  57611. msgstr ""
  57612. #. type: Plain text
  57613. #: guix-git/doc/guix.texi:39293
  57614. msgid "or, for a missing font:"
  57615. msgstr ""
  57616. #. type: example
  57617. #: guix-git/doc/guix.texi:39297
  57618. #, no-wrap
  57619. msgid ""
  57620. "kpathsea: Running mktexmf phvr7t\n"
  57621. "! I can't find file `phvr7t'.\n"
  57622. msgstr ""
  57623. #. type: Plain text
  57624. #: guix-git/doc/guix.texi:39301
  57625. msgid "How do you determine what the missing package is? In the first case, you'll find the answer by running:"
  57626. msgstr ""
  57627. #. type: example
  57628. #: guix-git/doc/guix.texi:39307
  57629. #, no-wrap
  57630. msgid ""
  57631. "$ guix search texlive tikz\n"
  57632. "name: texlive-pgf\n"
  57633. "version: 59745\n"
  57634. "@dots{}\n"
  57635. msgstr ""
  57636. #. type: Plain text
  57637. #: guix-git/doc/guix.texi:39312
  57638. msgid "In the second case, @command{guix search} turns up nothing. Instead, you can search the @TeX{} Live package database using the @command{tlmgr} command:"
  57639. msgstr ""
  57640. #. type: example
  57641. #: guix-git/doc/guix.texi:39316
  57642. #, no-wrap
  57643. msgid ""
  57644. "$ guix shell texlive-base -- tlmgr info phvr7t\n"
  57645. "tlmgr: cannot find package phvr7t, searching for other matches:\n"
  57646. "\n"
  57647. msgstr ""
  57648. #. type: example
  57649. #: guix-git/doc/guix.texi:39318
  57650. #, no-wrap
  57651. msgid ""
  57652. "Packages containing `phvr7t' in their title/description:\n"
  57653. "\n"
  57654. msgstr ""
  57655. #. type: example
  57656. #: guix-git/doc/guix.texi:39327
  57657. #, no-wrap
  57658. msgid ""
  57659. "Packages containing files matching `phvr7t':\n"
  57660. "helvetic:\n"
  57661. " texmf-dist/fonts/tfm/adobe/helvetic/phvr7t.tfm\n"
  57662. " texmf-dist/fonts/tfm/adobe/helvetic/phvr7tn.tfm\n"
  57663. " texmf-dist/fonts/vf/adobe/helvetic/phvr7t.vf\n"
  57664. " texmf-dist/fonts/vf/adobe/helvetic/phvr7tn.vf\n"
  57665. "tex4ht:\n"
  57666. " texmf-dist/tex4ht/ht-fonts/alias/adobe/helvetic/phvr7t.htf\n"
  57667. msgstr ""
  57668. #. type: Plain text
  57669. #: guix-git/doc/guix.texi:39332
  57670. msgid "The file is available in the @TeX{} Live @code{helvetic} package, which is known in Guix as @code{texlive-helvetic}. Quite a ride, but we found it!"
  57671. msgstr ""
  57672. #. type: Plain text
  57673. #: guix-git/doc/guix.texi:39336
  57674. msgid "There is one important limitation though: Guix currently provides a subset of the @TeX{} Live packages. If you stumble upon a missing package, you can try and import it (@pxref{Invoking guix import}):"
  57675. msgstr ""
  57676. #. type: example
  57677. #: guix-git/doc/guix.texi:39339
  57678. #, fuzzy, no-wrap
  57679. msgid "guix import texlive @var{package}\n"
  57680. msgstr "guix install emacs-guix\n"
  57681. #. type: quotation
  57682. #: guix-git/doc/guix.texi:39344
  57683. msgid "@TeX{} Live packaging is still very much work in progress, but you can help! @xref{Contributing}, for more information."
  57684. msgstr ""
  57685. #. type: cindex
  57686. #: guix-git/doc/guix.texi:39349
  57687. #, no-wrap
  57688. msgid "security updates"
  57689. msgstr ""
  57690. #. type: Plain text
  57691. #: guix-git/doc/guix.texi:39358
  57692. 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:"
  57693. msgstr ""
  57694. #. type: smallexample
  57695. #: guix-git/doc/guix.texi:39365
  57696. #, no-wrap
  57697. msgid ""
  57698. "$ guix lint -c cve\n"
  57699. "gnu/packages/base.scm:652:2: glibc@@2.21: probably vulnerable to CVE-2015-1781, CVE-2015-7547\n"
  57700. "gnu/packages/gcc.scm:334:2: gcc@@4.9.3: probably vulnerable to CVE-2015-5276\n"
  57701. "gnu/packages/image.scm:312:2: openjpeg@@2.1.0: probably vulnerable to CVE-2016-1923, CVE-2016-1924\n"
  57702. "@dots{}\n"
  57703. msgstr ""
  57704. #. type: Plain text
  57705. #: guix-git/doc/guix.texi:39368
  57706. msgid "@xref{Invoking guix lint}, for more information."
  57707. msgstr ""
  57708. #. type: Plain text
  57709. #: guix-git/doc/guix.texi:39377
  57710. 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."
  57711. msgstr ""
  57712. #. type: cindex
  57713. #: guix-git/doc/guix.texi:39378
  57714. #, no-wrap
  57715. msgid "grafts"
  57716. msgstr ""
  57717. #. type: Plain text
  57718. #: guix-git/doc/guix.texi:39386
  57719. 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."
  57720. msgstr ""
  57721. #. type: cindex
  57722. #: guix-git/doc/guix.texi:39387
  57723. #, no-wrap
  57724. msgid "replacements of packages, for grafts"
  57725. msgstr ""
  57726. #. type: Plain text
  57727. #: guix-git/doc/guix.texi:39393
  57728. 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:"
  57729. msgstr ""
  57730. #. type: lisp
  57731. #: guix-git/doc/guix.texi:39400
  57732. #, no-wrap
  57733. msgid ""
  57734. "(define bash\n"
  57735. " (package\n"
  57736. " (name \"bash\")\n"
  57737. " ;; @dots{}\n"
  57738. " (replacement bash-fixed)))\n"
  57739. msgstr ""
  57740. #. type: Plain text
  57741. #: guix-git/doc/guix.texi:39410
  57742. 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."
  57743. msgstr ""
  57744. #. type: Plain text
  57745. #: guix-git/doc/guix.texi:39418
  57746. 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."
  57747. msgstr ""
  57748. #. type: Plain text
  57749. #: guix-git/doc/guix.texi:39422
  57750. msgid "The @option{--no-grafts} command-line option allows you to forcefully avoid grafting (@pxref{Common Build Options, @option{--no-grafts}}). Thus, the command:"
  57751. msgstr ""
  57752. #. type: example
  57753. #: guix-git/doc/guix.texi:39425
  57754. #, no-wrap
  57755. msgid "guix build bash --no-grafts\n"
  57756. msgstr ""
  57757. #. type: Plain text
  57758. #: guix-git/doc/guix.texi:39429
  57759. msgid "returns the store file name of the original Bash, whereas:"
  57760. msgstr ""
  57761. #. type: example
  57762. #: guix-git/doc/guix.texi:39432
  57763. #, no-wrap
  57764. msgid "guix build bash\n"
  57765. msgstr ""
  57766. #. type: Plain text
  57767. #: guix-git/doc/guix.texi:39437
  57768. msgid "returns the store file name of the ``fixed'', replacement Bash. This allows you to distinguish between the two variants of Bash."
  57769. msgstr ""
  57770. #. type: Plain text
  57771. #: guix-git/doc/guix.texi:39440
  57772. msgid "To verify which Bash your whole profile refers to, you can run (@pxref{Invoking guix gc}):"
  57773. msgstr ""
  57774. #. type: example
  57775. #: guix-git/doc/guix.texi:39443
  57776. #, no-wrap
  57777. msgid "guix gc -R $(readlink -f ~/.guix-profile) | grep bash\n"
  57778. msgstr ""
  57779. #. type: Plain text
  57780. #: guix-git/doc/guix.texi:39448
  57781. msgid "@dots{} and compare the store file names that you get with those above. Likewise for a complete Guix system generation:"
  57782. msgstr ""
  57783. #. type: example
  57784. #: guix-git/doc/guix.texi:39451
  57785. #, no-wrap
  57786. msgid "guix gc -R $(guix system build my-config.scm) | grep bash\n"
  57787. msgstr ""
  57788. #. type: Plain text
  57789. #: guix-git/doc/guix.texi:39455
  57790. msgid "Lastly, to check which Bash running processes are using, you can use the @command{lsof} command:"
  57791. msgstr ""
  57792. #. type: example
  57793. #: guix-git/doc/guix.texi:39458
  57794. #, no-wrap
  57795. msgid "lsof | grep /gnu/store/.*bash\n"
  57796. msgstr ""
  57797. #. type: cindex
  57798. #: guix-git/doc/guix.texi:39466
  57799. #, no-wrap
  57800. msgid "bootstrapping"
  57801. msgstr ""
  57802. #. type: Plain text
  57803. #: guix-git/doc/guix.texi:39473
  57804. 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?"
  57805. msgstr ""
  57806. #. type: Plain text
  57807. #: guix-git/doc/guix.texi:39481
  57808. 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."
  57809. msgstr ""
  57810. #. type: cindex
  57811. #: guix-git/doc/guix.texi:39482 guix-git/doc/guix.texi:39694
  57812. #, no-wrap
  57813. msgid "bootstrap binaries"
  57814. msgstr ""
  57815. #. type: Plain text
  57816. #: guix-git/doc/guix.texi:39492
  57817. 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}."
  57818. msgstr ""
  57819. #. type: Plain text
  57820. #: guix-git/doc/guix.texi:39496
  57821. msgid "These bootstrap binaries are ``taken for granted'', though we can also re-create them if needed (@pxref{Preparing to Use the Bootstrap Binaries})."
  57822. msgstr ""
  57823. #. type: section
  57824. #: guix-git/doc/guix.texi:39503
  57825. #, no-wrap
  57826. msgid "The Reduced Binary Seed Bootstrap"
  57827. msgstr ""
  57828. #. type: Plain text
  57829. #: guix-git/doc/guix.texi:39510
  57830. 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.''"
  57831. msgstr ""
  57832. #. type: Plain text
  57833. #: guix-git/doc/guix.texi:39516
  57834. 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."
  57835. msgstr ""
  57836. #. type: Plain text
  57837. #: guix-git/doc/guix.texi:39521
  57838. 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.}."
  57839. msgstr ""
  57840. #. type: Plain text
  57841. #: guix-git/doc/guix.texi:39527
  57842. 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)."
  57843. msgstr ""
  57844. #. type: Plain text
  57845. #: guix-git/doc/guix.texi:39532
  57846. 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."
  57847. msgstr ""
  57848. #. type: Plain text
  57849. #: guix-git/doc/guix.texi:39540
  57850. 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."
  57851. msgstr ""
  57852. #. type: Plain text
  57853. #: guix-git/doc/guix.texi:39550
  57854. 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."
  57855. msgstr ""
  57856. #. type: Plain text
  57857. #: guix-git/doc/guix.texi:39554
  57858. 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."
  57859. msgstr ""
  57860. #. type: Plain text
  57861. #: guix-git/doc/guix.texi:39557
  57862. msgid "@image{images/gcc-core-mesboot0-graph,6in,,Dependency graph of gcc-core-mesboot0}"
  57863. msgstr ""
  57864. #. type: Plain text
  57865. #: guix-git/doc/guix.texi:39564
  57866. 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.}."
  57867. msgstr ""
  57868. #. type: Plain text
  57869. #: guix-git/doc/guix.texi:39567
  57870. 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}."
  57871. msgstr ""
  57872. #. type: Plain text
  57873. #: guix-git/doc/guix.texi:39572
  57874. 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."
  57875. msgstr ""
  57876. #. type: Plain text
  57877. #: guix-git/doc/guix.texi:39576
  57878. 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}."
  57879. msgstr ""
  57880. #. type: Plain text
  57881. #: guix-git/doc/guix.texi:39583
  57882. msgid "@image{images/bootstrap-graph,6in,,Dependency graph of the early bootstrap derivations}"
  57883. msgstr ""
  57884. #. type: Plain text
  57885. #: guix-git/doc/guix.texi:39588
  57886. 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:"
  57887. msgstr ""
  57888. #. type: example
  57889. #: guix-git/doc/guix.texi:39593
  57890. #, no-wrap
  57891. msgid ""
  57892. "guix graph -t derivation \\\n"
  57893. " -e '(@@@@ (gnu packages bootstrap) %bootstrap-gcc)' \\\n"
  57894. " | dot -Tps > gcc.ps\n"
  57895. msgstr ""
  57896. #. type: Plain text
  57897. #: guix-git/doc/guix.texi:39596
  57898. msgid "or, for the further Reduced Binary Seed bootstrap"
  57899. msgstr ""
  57900. #. type: example
  57901. #: guix-git/doc/guix.texi:39601
  57902. #, no-wrap
  57903. msgid ""
  57904. "guix graph -t derivation \\\n"
  57905. " -e '(@@@@ (gnu packages bootstrap) %bootstrap-mes)' \\\n"
  57906. " | dot -Tps > mes.ps\n"
  57907. msgstr ""
  57908. #. type: Plain text
  57909. #: guix-git/doc/guix.texi:39610
  57910. 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})."
  57911. msgstr ""
  57912. #. type: Plain text
  57913. #: guix-git/doc/guix.texi:39619
  57914. 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."
  57915. msgstr ""
  57916. #. type: Plain text
  57917. #: guix-git/doc/guix.texi:39631
  57918. 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})."
  57919. msgstr ""
  57920. #. type: Plain text
  57921. #: guix-git/doc/guix.texi:39636
  57922. 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."
  57923. msgstr ""
  57924. #. type: unnumberedsec
  57925. #: guix-git/doc/guix.texi:39637
  57926. #, no-wrap
  57927. msgid "Building the Build Tools"
  57928. msgstr ""
  57929. #. type: Plain text
  57930. #: guix-git/doc/guix.texi:39646
  57931. 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."
  57932. msgstr ""
  57933. #. type: Plain text
  57934. #: guix-git/doc/guix.texi:39653
  57935. 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:"
  57936. msgstr ""
  57937. #. type: example
  57938. #: guix-git/doc/guix.texi:39658
  57939. #, no-wrap
  57940. msgid ""
  57941. "guix graph -t bag \\\n"
  57942. " -e '(@@@@ (gnu packages commencement)\n"
  57943. " glibc-final-with-bootstrap-bash)' | xdot -\n"
  57944. msgstr ""
  57945. #. type: Plain text
  57946. #: guix-git/doc/guix.texi:39665
  57947. 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."
  57948. msgstr ""
  57949. #. type: Plain text
  57950. #: guix-git/doc/guix.texi:39667
  57951. msgid "@image{images/bootstrap-packages,6in,,Dependency graph of the early packages}"
  57952. msgstr ""
  57953. #. type: Plain text
  57954. #: guix-git/doc/guix.texi:39673
  57955. 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."
  57956. msgstr ""
  57957. #. type: Plain text
  57958. #: guix-git/doc/guix.texi:39678
  57959. 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."
  57960. msgstr ""
  57961. #. type: Plain text
  57962. #: guix-git/doc/guix.texi:39684
  57963. 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."
  57964. msgstr ""
  57965. #. type: Plain text
  57966. #: guix-git/doc/guix.texi:39690
  57967. 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}})."
  57968. msgstr ""
  57969. #. type: unnumberedsec
  57970. #: guix-git/doc/guix.texi:39692
  57971. #, no-wrap
  57972. msgid "Building the Bootstrap Binaries"
  57973. msgstr ""
  57974. #. type: Plain text
  57975. #: guix-git/doc/guix.texi:39699
  57976. 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."
  57977. msgstr ""
  57978. #. type: Plain text
  57979. #: guix-git/doc/guix.texi:39705
  57980. 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):"
  57981. msgstr ""
  57982. #. type: example
  57983. #: guix-git/doc/guix.texi:39708
  57984. #, no-wrap
  57985. msgid "guix build bootstrap-tarballs\n"
  57986. msgstr ""
  57987. #. type: Plain text
  57988. #: guix-git/doc/guix.texi:39713
  57989. 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."
  57990. msgstr ""
  57991. #. type: Plain text
  57992. #: guix-git/doc/guix.texi:39719
  57993. 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."
  57994. msgstr ""
  57995. #. type: unnumberedsec
  57996. #: guix-git/doc/guix.texi:39720
  57997. #, no-wrap
  57998. msgid "Reducing the Set of Bootstrap Binaries"
  57999. msgstr ""
  58000. #. type: Plain text
  58001. #: guix-git/doc/guix.texi:39728
  58002. 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}."
  58003. msgstr ""
  58004. #. type: Plain text
  58005. #: guix-git/doc/guix.texi:39734
  58006. 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."
  58007. msgstr ""
  58008. #. type: Plain text
  58009. #: guix-git/doc/guix.texi:39740
  58010. 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."
  58011. msgstr ""
  58012. #. type: Plain text
  58013. #: guix-git/doc/guix.texi:39749
  58014. 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."
  58015. msgstr ""
  58016. #. type: Plain text
  58017. #: guix-git/doc/guix.texi:39752
  58018. 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!"
  58019. msgstr ""
  58020. #. type: chapter
  58021. #: guix-git/doc/guix.texi:39754
  58022. #, no-wrap
  58023. msgid "Porting to a New Platform"
  58024. msgstr ""
  58025. #. type: Plain text
  58026. #: guix-git/doc/guix.texi:39763
  58027. 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."
  58028. msgstr ""
  58029. #. type: Plain text
  58030. #: guix-git/doc/guix.texi:39768
  58031. 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:"
  58032. msgstr ""
  58033. #. type: example
  58034. #: guix-git/doc/guix.texi:39771
  58035. #, no-wrap
  58036. msgid "guix build --target=armv5tel-linux-gnueabi bootstrap-tarballs\n"
  58037. msgstr ""
  58038. #. type: Plain text
  58039. #: guix-git/doc/guix.texi:39778
  58040. 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."
  58041. msgstr ""
  58042. #. type: Plain text
  58043. #: guix-git/doc/guix.texi:39787
  58044. 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."
  58045. msgstr ""
  58046. #. type: Plain text
  58047. #: guix-git/doc/guix.texi:39796
  58048. 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."
  58049. msgstr ""
  58050. #. type: include
  58051. #: guix-git/doc/guix.texi:39798
  58052. #, no-wrap
  58053. msgid "contributing.texi"
  58054. msgstr "contributing.zh_CN.texi"
  58055. #. type: Plain text
  58056. #: guix-git/doc/guix.texi:39811
  58057. 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."
  58058. msgstr ""
  58059. #. type: Plain text
  58060. #: guix-git/doc/guix.texi:39814
  58061. msgid "The Nix-based software distributions, Nixpkgs and NixOS, have also been an inspiration for Guix."
  58062. msgstr "基于 Nix 的软件发行版 Nixpkgs 和 NixOS 也给 Guix 带来了灵感。"
  58063. #. type: Plain text
  58064. #: guix-git/doc/guix.texi:39820
  58065. 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!"
  58066. msgstr ""
  58067. #. type: cindex
  58068. #: guix-git/doc/guix.texi:39825
  58069. #, no-wrap
  58070. msgid "license, GNU Free Documentation License"
  58071. msgstr ""
  58072. #. type: include
  58073. #: guix-git/doc/guix.texi:39826
  58074. #, no-wrap
  58075. msgid "fdl-1.3.texi"
  58076. msgstr ""
  58077. #~ msgid "./etc/indent-code.el gnu/packages/@var{file}.scm @var{package}\n"
  58078. #~ msgstr "./etc/indent-code.el gnu/packages/@var{文件}.scm @var{软件包}\n"
  58079. #~ 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:"
  58080. #~ msgstr "这会调用Emacs以批处理模式自动地缩进@file{gnu/packages/@var{文件}.scm}里@var{软件包}的定义。如果想缩进整个文件,省略第二个参数:"
  58081. #~ msgid "./etc/indent-code.el gnu/services/@var{file}.scm\n"
  58082. #~ msgstr "./etc/indent-code.el gnu/services/@var{文件}.scm\n"
  58083. #, fuzzy
  58084. #~ msgid ""
  58085. #~ " (build-machine\n"
  58086. #~ " (name \"armeight.example.org\")\n"
  58087. #~ " (systems (list \"aarch64-linux\"))\n"
  58088. #~ " (host-key \"ssh-rsa AAAAB3Nza@dots{}\")\n"
  58089. #~ " (user \"alice\")\n"
  58090. #~ " (private-key\n"
  58091. #~ " (string-append (getenv \"HOME\")\n"
  58092. #~ " \"/.ssh/identity-for-guix\"))))\n"
  58093. #~ msgstr ""
  58094. #~ " (build-machine\n"
  58095. #~ " (name \"meeps.example.org\")\n"
  58096. #~ " (system \"mips64el-linux\")\n"
  58097. #~ " (host-key \"ssh-rsa AAAAB3Nza@dots{}\")\n"
  58098. #~ " (user \"alice\")\n"
  58099. #~ " (private-key\n"
  58100. #~ " (string-append (getenv \"HOME\")\n"
  58101. #~ " \"/.ssh/identity-for-guix\"))))\n"
  58102. #, fuzzy
  58103. #~ msgid "@code{socket-directory} (default: @code{#false})"
  58104. #~ msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  58105. #~ msgid "git-send-email"
  58106. #~ msgstr "git-send-email"
  58107. #, fuzzy
  58108. #~ msgid "@code{opam}, the default opam repository,"
  58109. #~ msgstr "@code{mate}(默认值:@code{mate})"
  58110. #, fuzzy
  58111. #~ msgid "of coq packages."
  58112. #~ msgstr "定义新软件包。"
  58113. #~ msgid "Using Debbugs."
  58114. #~ msgstr "用Debbugs。"
  58115. #, fuzzy
  58116. #~| msgid "@xref{Invoking guix pack}, for more info on this handy tool."
  58117. #~ msgid "@xref{Build Phases}, for more info on build phases and ways to customize them."
  58118. #~ msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  58119. #~ msgid ""
  58120. #~ "(service qemu-binfmt-service-type\n"
  58121. #~ " (qemu-binfmt-configuration\n"
  58122. #~ " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))\n"
  58123. #~ " (guix-support? #t)))\n"
  58124. #~ msgstr ""
  58125. #~ "(service qemu-binfmt-service-type\n"
  58126. #~ " (qemu-binfmt-configuration\n"
  58127. #~ " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))\n"
  58128. #~ " (guix-support? #t)))\n"
  58129. #, fuzzy
  58130. #~| msgid "@code{zonefile-load} (default: @code{#f})"
  58131. #~ msgid "@code{queries-log-file} (default: @code{#f})"
  58132. #~ msgstr "@code{zonefile-load}(默认值:@code{#f})"
  58133. #, fuzzy
  58134. #~| msgid "@code{zonefile-load} (default: @code{#f})"
  58135. #~ msgid "@code{web-queries-log-file} (default: @code{#f})"
  58136. #~ msgstr "@code{zonefile-load}(默认值:@code{#f})"
  58137. #, fuzzy
  58138. #~| msgid "The host name of the remote machine."
  58139. #~ msgid "Size of the database writer queue."
  58140. #~ msgstr "远程机器的主机名。"
  58141. #, fuzzy
  58142. #~| msgid "Manage the operating system configuration."
  58143. #~ msgid "Data type representing the configuration of a simple Cuirass instance."
  58144. #~ msgstr "管理操作系统配置。"
  58145. #, fuzzy
  58146. #~| msgid "@code{port} (default: @code{22})"
  58147. #~ msgid "@code{build} (default: @code{all})"
  58148. #~ msgstr "@code{port}(默认值:@code{22})"
  58149. #, fuzzy
  58150. #~| msgid "{Data Type} build-machine"
  58151. #~ msgid "{Data Type} build-manifest"
  58152. #~ msgstr "{数据类型} build-machine"
  58153. #, fuzzy
  58154. #~| msgid "Channels"
  58155. #~ msgid "channel-name"
  58156. #~ msgstr "通道"
  58157. #, fuzzy
  58158. #~| msgid "-c @var{n}"
  58159. #~ msgid "manifest"
  58160. #~ msgstr "-c @var{n}"
  58161. #, fuzzy
  58162. #~| msgid "@code{includes} (default: @code{'()})"
  58163. #~ msgid "@code{non-package-channels} (default: @code{'()})"
  58164. #~ msgstr "@code{includes}(默认值:@code{'()})"
  58165. #, fuzzy
  58166. #~| msgid "@code{port} (default: @code{22})"
  58167. #~ msgid "@code{guix-support?} (default: @code{#t})"
  58168. #~ msgstr "@code{port}(默认值:@code{22})"
  58169. #, fuzzy
  58170. #~| msgid "@code{zonefile-load} (default: @code{#f})"
  58171. #~ msgid "@code{password-file} (default: @code{#f})"
  58172. #~ msgstr "@code{zonefile-load}(默认值:@code{#f})"
  58173. #~ 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."
  58174. #~ msgstr "通常,@code{master}之外的其它分支如果最近被评审过,或有一个对应的@code{-next}分支,则被视为@emph{冻结}状态。如果不清楚该把补丁放到哪里,请在邮件列表或IRC上提问。"
  58175. #~ msgid "@xref{Invoking guix environment}, for more information on that command. Extra dependencies can be added with @option{--ad-hoc}:"
  58176. #~ msgstr "这个命令更多的信息请参考@xref{Invoking guix environment}。额外的依赖可以通过@option{--ad-hoc}选项添加:"
  58177. #~ msgid "Fiddling with Guix interactively."
  58178. #~ msgstr "交互式地操作Guix。"
  58179. #~ 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!"
  58180. #~ msgstr "小端序64位ARMv8-A处理器,Linux-Libre内核。目前处于实验阶段,支持有限。@xref{Contributing},提供帮助!"
  58181. #~ msgid "@url{https://zlib.net, zlib};"
  58182. #~ msgstr "@url{https://zlib.net, zlib};"
  58183. #~ 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."
  58184. #~ msgstr "当一个已经安装的且可用的@url{https://nixos.org/nix/, Nix包管理器}存在时,你可以为Guix配置@code{--disable-daemon}参数。那样Nix可以替换上面的三个依赖。"
  58185. #~ 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."
  58186. #~ 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}参数不是必须的。"
  58187. #~ msgid "Do not use the @dfn{build hook}."
  58188. #~ msgstr "不要使用@dfn{构建钩子}。"
  58189. #~ 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})."
  58190. #~ msgstr "构建钩子是一个可以被后台进程启动并且提交构建请求的辅助程序。这个机制被用来向其它机器下发构建。(@pxref{Daemon Offload Setup})。"
  58191. #~ 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}."
  58192. #~ msgstr "@code{guix}软件包必须保留在@code{root}的profile里,否则它会被垃圾回收清理掉--那时你会发现缺少@command{guix}命令。换句话说,不要用@code{guix package -r guix}命令删除@code{guix}。"