guix-manual.zh_CN.po 2.7 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701657026570365704657056570665707657086570965710657116571265713657146571565716657176571865719657206572165722657236572465725657266572765728657296573065731657326573365734657356573665737657386573965740657416574265743657446574565746657476574865749657506575165752657536575465755657566575765758657596576065761657626576365764657656576665767657686576965770657716577265773657746577565776657776577865779657806578165782657836578465785657866578765788657896579065791657926579365794657956579665797657986579965800658016580265803658046580565806658076580865809658106581165812658136581465815658166581765818658196582065821658226582365824658256582665827658286582965830658316583265833658346583565836658376583865839658406584165842658436584465845658466584765848658496585065851658526585365854658556585665857658586585965860658616586265863658646586565866658676586865869658706587165872658736587465875658766587765878658796588065881658826588365884658856588665887658886588965890658916589265893658946589565896658976589865899659006590165902659036590465905659066590765908659096591065911659126591365914659156591665917659186591965920659216592265923659246592565926659276592865929659306593165932659336593465935659366593765938659396594065941659426594365944659456594665947659486594965950659516595265953659546595565956659576595865959659606596165962659636596465965659666596765968659696597065971659726597365974659756597665977659786597965980659816598265983659846598565986659876598865989659906599165992659936599465995659966599765998659996600066001660026600366004660056600666007660086600966010660116601266013660146601566016660176601866019660206602166022660236602466025660266602766028660296603066031660326603366034660356603666037660386603966040660416604266043660446604566046660476604866049660506605166052660536605466055660566605766058660596606066061660626606366064660656606666067660686606966070660716607266073660746607566076660776607866079660806608166082660836608466085660866608766088660896609066091660926609366094660956609666097660986609966100661016610266103661046610566106661076610866109661106611166112661136611466115661166611766118661196612066121661226612366124661256612666127661286612966130661316613266133661346613566136661376613866139661406614166142661436614466145661466614766148661496615066151661526615366154661556615666157661586615966160661616616266163661646616566166661676616866169661706617166172661736617466175661766617766178661796618066181661826618366184661856618666187661886618966190661916619266193661946619566196661976619866199662006620166202662036620466205662066620766208662096621066211662126621366214662156621666217662186621966220662216622266223662246622566226662276622866229662306623166232662336623466235662366623766238662396624066241662426624366244662456624666247662486624966250662516625266253662546625566256662576625866259662606626166262662636626466265662666626766268662696627066271662726627366274662756627666277662786627966280662816628266283662846628566286662876628866289662906629166292662936629466295662966629766298662996630066301663026630366304663056630666307663086630966310663116631266313663146631566316663176631866319663206632166322663236632466325663266632766328663296633066331663326633366334663356633666337663386633966340663416634266343663446634566346663476634866349663506635166352663536635466355663566635766358663596636066361663626636366364663656636666367663686636966370663716637266373663746637566376663776637866379663806638166382663836638466385663866638766388663896639066391663926639366394663956639666397663986639966400664016640266403664046640566406664076640866409664106641166412664136641466415664166641766418664196642066421664226642366424664256642666427664286642966430664316643266433664346643566436664376643866439664406644166442664436644466445664466644766448664496645066451664526645366454664556645666457664586645966460664616646266463664646646566466664676646866469664706647166472664736647466475664766647766478664796648066481664826648366484664856648666487664886648966490664916649266493664946649566496664976649866499665006650166502665036650466505665066650766508665096651066511665126651366514665156651666517665186651966520665216652266523665246652566526665276652866529665306653166532665336653466535665366653766538665396654066541665426654366544665456654666547665486654966550665516655266553665546655566556665576655866559665606656166562665636656466565665666656766568665696657066571665726657366574665756657666577665786657966580665816658266583665846658566586665876658866589665906659166592665936659466595665966659766598665996660066601666026660366604666056660666607666086660966610666116661266613666146661566616666176661866619666206662166622666236662466625666266662766628666296663066631666326663366634666356663666637666386663966640666416664266643666446664566646666476664866649666506665166652666536665466655666566665766658666596666066661666626666366664666656666666667666686666966670666716667266673666746667566676666776667866679666806668166682666836668466685666866668766688666896669066691666926669366694666956669666697666986669966700667016670266703667046670566706667076670866709667106671166712667136671466715667166671766718667196672066721667226672366724667256672666727667286672966730667316673266733667346673566736667376673866739667406674166742667436674466745667466674766748667496675066751667526675366754667556675666757667586675966760667616676266763667646676566766667676676866769667706677166772667736677466775667766677766778667796678066781667826678366784667856678666787667886678966790667916679266793667946679566796667976679866799668006680166802668036680466805668066680766808668096681066811668126681366814668156681666817668186681966820668216682266823668246682566826668276682866829668306683166832668336683466835668366683766838668396684066841668426684366844668456684666847668486684966850668516685266853668546685566856668576685866859668606686166862668636686466865668666686766868668696687066871668726687366874668756687666877668786687966880668816688266883668846688566886668876688866889668906689166892668936689466895668966689766898668996690066901669026690366904669056690666907669086690966910669116691266913669146691566916669176691866919669206692166922669236692466925669266692766928669296693066931669326693366934669356693666937669386693966940669416694266943669446694566946669476694866949669506695166952669536695466955669566695766958669596696066961669626696366964669656696666967669686696966970669716697266973669746697566976669776697866979669806698166982669836698466985669866698766988669896699066991669926699366994669956699666997669986699967000670016700267003670046700567006670076700867009670106701167012670136701467015670166701767018670196702067021670226702367024670256702667027670286702967030670316703267033670346703567036670376703867039670406704167042670436704467045670466704767048670496705067051670526705367054670556705667057670586705967060670616706267063670646706567066670676706867069670706707167072670736707467075670766707767078670796708067081670826708367084670856708667087670886708967090670916709267093670946709567096670976709867099671006710167102671036710467105671066710767108671096711067111671126711367114671156711667117671186711967120671216712267123671246712567126671276712867129671306713167132671336713467135671366713767138671396714067141671426714367144671456714667147671486714967150671516715267153671546715567156671576715867159671606716167162671636716467165671666716767168671696717067171671726717367174671756717667177671786717967180671816718267183671846718567186671876718867189671906719167192671936719467195671966719767198671996720067201672026720367204672056720667207672086720967210672116721267213672146721567216672176721867219672206722167222672236722467225672266722767228672296723067231672326723367234672356723667237672386723967240672416724267243672446724567246672476724867249672506725167252672536725467255672566725767258672596726067261672626726367264672656726667267672686726967270672716727267273672746727567276672776727867279672806728167282672836728467285672866728767288672896729067291672926729367294672956729667297672986729967300673016730267303673046730567306673076730867309673106731167312673136731467315673166731767318673196732067321673226732367324673256732667327673286732967330673316733267333673346733567336673376733867339673406734167342673436734467345673466734767348673496735067351673526735367354673556735667357673586735967360673616736267363673646736567366673676736867369673706737167372673736737467375673766737767378673796738067381673826738367384673856738667387673886738967390673916739267393673946739567396673976739867399674006740167402674036740467405674066740767408674096741067411674126741367414674156741667417674186741967420674216742267423674246742567426674276742867429674306743167432674336743467435674366743767438674396744067441674426744367444674456744667447674486744967450674516745267453674546745567456674576745867459674606746167462674636746467465674666746767468674696747067471674726747367474674756747667477674786747967480674816748267483674846748567486674876748867489674906749167492674936749467495674966749767498674996750067501675026750367504675056750667507675086750967510675116751267513675146751567516675176751867519675206752167522675236752467525675266752767528675296753067531675326753367534675356753667537675386753967540675416754267543675446754567546675476754867549675506755167552675536755467555675566755767558675596756067561675626756367564675656756667567675686756967570675716757267573675746757567576675776757867579675806758167582675836758467585675866758767588675896759067591675926759367594675956759667597675986759967600676016760267603676046760567606676076760867609676106761167612676136761467615676166761767618676196762067621676226762367624676256762667627676286762967630676316763267633676346763567636676376763867639676406764167642676436764467645676466764767648676496765067651676526765367654676556765667657676586765967660676616766267663676646766567666676676766867669676706767167672676736767467675676766767767678676796768067681676826768367684676856768667687676886768967690676916769267693676946769567696676976769867699677006770167702677036770467705677066770767708677096771067711677126771367714677156771667717677186771967720677216772267723677246772567726677276772867729677306773167732677336773467735677366773767738677396774067741677426774367744677456774667747677486774967750677516775267753677546775567756677576775867759677606776167762677636776467765677666776767768677696777067771677726777367774677756777667777677786777967780677816778267783677846778567786677876778867789677906779167792677936779467795677966779767798677996780067801678026780367804678056780667807678086780967810678116781267813678146781567816678176781867819678206782167822678236782467825678266782767828678296783067831678326783367834678356783667837678386783967840678416784267843678446784567846678476784867849678506785167852678536785467855678566785767858678596786067861678626786367864678656786667867678686786967870678716787267873678746787567876678776787867879678806788167882678836788467885678866788767888678896789067891678926789367894678956789667897678986789967900679016790267903679046790567906679076790867909679106791167912679136791467915679166791767918679196792067921679226792367924679256792667927679286792967930679316793267933679346793567936679376793867939679406794167942679436794467945679466794767948679496795067951679526795367954679556795667957679586795967960679616796267963679646796567966679676796867969679706797167972679736797467975679766797767978679796798067981679826798367984679856798667987679886798967990679916799267993679946799567996679976799867999680006800168002680036800468005680066800768008680096801068011680126801368014680156801668017680186801968020680216802268023680246802568026680276802868029680306803168032680336803468035680366803768038680396804068041680426804368044680456804668047680486804968050680516805268053680546805568056680576805868059680606806168062680636806468065680666806768068680696807068071680726807368074680756807668077680786807968080680816808268083680846808568086680876808868089680906809168092680936809468095680966809768098680996810068101681026810368104681056810668107681086810968110681116811268113681146811568116681176811868119681206812168122681236812468125681266812768128681296813068131681326813368134681356813668137681386813968140681416814268143681446814568146681476814868149681506815168152681536815468155681566815768158681596816068161681626816368164681656816668167681686816968170681716817268173681746817568176681776817868179681806818168182681836818468185681866818768188681896819068191681926819368194681956819668197681986819968200682016820268203682046820568206682076820868209682106821168212682136821468215682166821768218682196822068221682226822368224682256822668227682286822968230682316823268233682346823568236682376823868239682406824168242682436824468245682466824768248682496825068251682526825368254682556825668257682586825968260682616826268263682646826568266682676826868269682706827168272682736827468275682766827768278682796828068281682826828368284682856828668287682886828968290682916829268293682946829568296682976829868299683006830168302683036830468305683066830768308683096831068311683126831368314683156831668317683186831968320683216832268323683246832568326683276832868329683306833168332683336833468335683366833768338683396834068341683426834368344683456834668347683486834968350683516835268353683546835568356683576835868359683606836168362683636836468365683666836768368683696837068371683726837368374683756837668377683786837968380683816838268383683846838568386683876838868389683906839168392683936839468395683966839768398683996840068401684026840368404684056840668407684086840968410684116841268413684146841568416684176841868419684206842168422684236842468425684266842768428684296843068431684326843368434684356843668437684386843968440684416844268443684446844568446684476844868449684506845168452684536845468455684566845768458684596846068461684626846368464684656846668467684686846968470684716847268473684746847568476684776847868479684806848168482684836848468485684866848768488684896849068491684926849368494684956849668497684986849968500685016850268503685046850568506685076850868509685106851168512685136851468515685166851768518685196852068521685226852368524685256852668527685286852968530685316853268533685346853568536685376853868539685406854168542685436854468545685466854768548685496855068551685526855368554685556855668557685586855968560685616856268563685646856568566685676856868569685706857168572685736857468575685766857768578685796858068581685826858368584685856858668587685886858968590685916859268593685946859568596685976859868599686006860168602686036860468605686066860768608686096861068611686126861368614686156861668617686186861968620686216862268623686246862568626686276862868629686306863168632686336863468635686366863768638686396864068641686426864368644686456864668647686486864968650686516865268653686546865568656686576865868659686606866168662686636866468665686666866768668686696867068671686726867368674686756867668677686786867968680686816868268683686846868568686686876868868689686906869168692686936869468695686966869768698686996870068701687026870368704687056870668707687086870968710687116871268713687146871568716687176871868719687206872168722687236872468725687266872768728687296873068731687326873368734687356873668737687386873968740687416874268743687446874568746687476874868749687506875168752687536875468755687566875768758687596876068761687626876368764687656876668767687686876968770687716877268773687746877568776687776877868779687806878168782687836878468785687866878768788687896879068791687926879368794687956879668797687986879968800688016880268803688046880568806688076880868809688106881168812688136881468815688166881768818688196882068821688226882368824688256882668827688286882968830688316883268833688346883568836688376883868839688406884168842688436884468845688466884768848688496885068851688526885368854688556885668857688586885968860688616886268863688646886568866688676886868869688706887168872688736887468875688766887768878688796888068881688826888368884688856888668887688886888968890688916889268893688946889568896688976889868899689006890168902689036890468905689066890768908689096891068911689126891368914689156891668917689186891968920689216892268923689246892568926689276892868929689306893168932689336893468935689366893768938689396894068941689426894368944689456894668947689486894968950689516895268953689546895568956689576895868959689606896168962689636896468965689666896768968689696897068971689726897368974689756897668977689786897968980689816898268983689846898568986689876898868989689906899168992689936899468995689966899768998689996900069001690026900369004690056900669007690086900969010690116901269013690146901569016690176901869019690206902169022690236902469025690266902769028690296903069031690326903369034690356903669037690386903969040690416904269043690446904569046690476904869049690506905169052690536905469055690566905769058690596906069061690626906369064690656906669067690686906969070690716907269073690746907569076690776907869079690806908169082690836908469085690866908769088690896909069091690926909369094690956909669097690986909969100691016910269103691046910569106691076910869109691106911169112691136911469115691166911769118691196912069121691226912369124691256912669127691286912969130691316913269133691346913569136691376913869139691406914169142691436914469145691466914769148691496915069151691526915369154691556915669157691586915969160691616916269163691646916569166691676916869169691706917169172691736917469175691766917769178691796918069181691826918369184691856918669187691886918969190691916919269193691946919569196691976919869199692006920169202692036920469205692066920769208692096921069211692126921369214692156921669217692186921969220692216922269223692246922569226692276922869229692306923169232692336923469235692366923769238692396924069241692426924369244692456924669247692486924969250692516925269253692546925569256692576925869259692606926169262692636926469265692666926769268692696927069271692726927369274692756927669277692786927969280692816928269283692846928569286692876928869289692906929169292692936929469295692966929769298692996930069301693026930369304693056930669307693086930969310693116931269313693146931569316693176931869319693206932169322693236932469325693266932769328693296933069331693326933369334693356933669337693386933969340693416934269343693446934569346693476934869349693506935169352693536935469355693566935769358693596936069361693626936369364693656936669367693686936969370693716937269373693746937569376693776937869379693806938169382693836938469385693866938769388693896939069391693926939369394693956939669397693986939969400694016940269403694046940569406694076940869409694106941169412694136941469415694166941769418694196942069421694226942369424694256942669427694286942969430694316943269433694346943569436694376943869439694406944169442694436944469445694466944769448694496945069451694526945369454694556945669457694586945969460694616946269463694646946569466694676946869469694706947169472694736947469475694766947769478694796948069481694826948369484694856948669487694886948969490694916949269493694946949569496694976949869499695006950169502695036950469505695066950769508695096951069511695126951369514695156951669517695186951969520695216952269523695246952569526695276952869529695306953169532695336953469535695366953769538695396954069541695426954369544695456954669547695486954969550695516955269553695546955569556695576955869559695606956169562695636956469565695666956769568695696957069571695726957369574695756957669577695786957969580695816958269583695846958569586695876958869589695906959169592695936959469595695966959769598695996960069601696026960369604696056960669607696086960969610696116961269613696146961569616696176961869619696206962169622696236962469625696266962769628696296963069631696326963369634696356963669637696386963969640696416964269643696446964569646696476964869649696506965169652696536965469655696566965769658696596966069661696626966369664696656966669667696686966969670696716967269673696746967569676696776967869679696806968169682696836968469685696866968769688696896969069691696926969369694696956969669697696986969969700697016970269703697046970569706697076970869709697106971169712697136971469715697166971769718697196972069721697226972369724697256972669727697286972969730697316973269733697346973569736697376973869739697406974169742697436974469745697466974769748697496975069751697526975369754697556975669757697586975969760697616976269763697646976569766697676976869769697706977169772697736977469775697766977769778697796978069781697826978369784697856978669787697886978969790697916979269793697946979569796697976979869799698006980169802698036980469805698066980769808698096981069811698126981369814698156981669817698186981969820698216982269823698246982569826698276982869829698306983169832698336983469835698366983769838698396984069841698426984369844698456984669847698486984969850698516985269853698546985569856698576985869859698606986169862698636986469865698666986769868698696987069871698726987369874698756987669877698786987969880698816988269883698846988569886698876988869889698906989169892698936989469895698966989769898698996990069901699026990369904699056990669907699086990969910699116991269913699146991569916699176991869919699206992169922699236992469925699266992769928699296993069931699326993369934699356993669937699386993969940699416994269943699446994569946699476994869949699506995169952699536995469955699566995769958699596996069961699626996369964699656996669967699686996969970699716997269973699746997569976699776997869979699806998169982699836998469985699866998769988699896999069991699926999369994699956999669997699986999970000700017000270003700047000570006700077000870009700107001170012700137001470015700167001770018700197002070021700227002370024700257002670027700287002970030700317003270033700347003570036700377003870039700407004170042700437004470045700467004770048700497005070051700527005370054700557005670057700587005970060700617006270063700647006570066700677006870069700707007170072700737007470075700767007770078700797008070081700827008370084700857008670087700887008970090700917009270093700947009570096700977009870099701007010170102701037010470105701067010770108701097011070111701127011370114701157011670117701187011970120701217012270123701247012570126701277012870129701307013170132701337013470135701367013770138701397014070141701427014370144701457014670147701487014970150701517015270153701547015570156701577015870159701607016170162701637016470165701667016770168701697017070171701727017370174701757017670177701787017970180701817018270183701847018570186701877018870189701907019170192701937019470195701967019770198701997020070201702027020370204702057020670207702087020970210702117021270213702147021570216702177021870219702207022170222702237022470225702267022770228702297023070231702327023370234702357023670237702387023970240702417024270243702447024570246702477024870249702507025170252702537025470255702567025770258702597026070261702627026370264702657026670267702687026970270702717027270273702747027570276702777027870279702807028170282702837028470285702867028770288702897029070291702927029370294702957029670297702987029970300703017030270303703047030570306703077030870309703107031170312703137031470315703167031770318703197032070321703227032370324703257032670327703287032970330703317033270333703347033570336703377033870339703407034170342703437034470345703467034770348703497035070351703527035370354703557035670357703587035970360703617036270363703647036570366703677036870369703707037170372703737037470375703767037770378703797038070381703827038370384703857038670387703887038970390703917039270393703947039570396703977039870399704007040170402704037040470405704067040770408704097041070411704127041370414704157041670417704187041970420704217042270423704247042570426704277042870429704307043170432704337043470435704367043770438704397044070441704427044370444704457044670447704487044970450704517045270453704547045570456704577045870459704607046170462704637046470465704667046770468704697047070471704727047370474704757047670477704787047970480704817048270483704847048570486704877048870489704907049170492704937049470495704967049770498704997050070501705027050370504705057050670507705087050970510705117051270513705147051570516705177051870519705207052170522705237052470525705267052770528705297053070531705327053370534705357053670537705387053970540705417054270543705447054570546705477054870549705507055170552705537055470555705567055770558705597056070561705627056370564705657056670567705687056970570705717057270573705747057570576705777057870579705807058170582705837058470585705867058770588705897059070591705927059370594705957059670597705987059970600706017060270603706047060570606706077060870609706107061170612706137061470615706167061770618706197062070621706227062370624706257062670627706287062970630706317063270633706347063570636706377063870639706407064170642706437064470645706467064770648706497065070651706527065370654706557065670657706587065970660706617066270663706647066570666706677066870669706707067170672706737067470675706767067770678706797068070681706827068370684706857068670687706887068970690706917069270693706947069570696706977069870699707007070170702707037070470705707067070770708707097071070711707127071370714707157071670717707187071970720707217072270723707247072570726707277072870729707307073170732707337073470735707367073770738707397074070741707427074370744707457074670747707487074970750707517075270753707547075570756707577075870759707607076170762707637076470765707667076770768707697077070771707727077370774707757077670777707787077970780707817078270783707847078570786707877078870789707907079170792707937079470795707967079770798707997080070801708027080370804708057080670807708087080970810708117081270813708147081570816708177081870819708207082170822708237082470825708267082770828708297083070831708327083370834708357083670837708387083970840708417084270843708447084570846708477084870849708507085170852708537085470855708567085770858708597086070861708627086370864708657086670867708687086970870708717087270873708747087570876708777087870879708807088170882708837088470885708867088770888708897089070891708927089370894708957089670897708987089970900709017090270903709047090570906709077090870909709107091170912709137091470915709167091770918709197092070921709227092370924709257092670927709287092970930709317093270933709347093570936709377093870939709407094170942709437094470945709467094770948709497095070951709527095370954709557095670957709587095970960709617096270963709647096570966709677096870969709707097170972709737097470975709767097770978709797098070981709827098370984709857098670987709887098970990709917099270993709947099570996709977099870999710007100171002710037100471005710067100771008710097101071011710127101371014710157101671017710187101971020710217102271023710247102571026710277102871029710307103171032710337103471035710367103771038710397104071041710427104371044710457104671047710487104971050710517105271053710547105571056710577105871059710607106171062710637106471065710667106771068710697107071071710727107371074710757107671077710787107971080710817108271083710847108571086710877108871089710907109171092710937109471095710967109771098710997110071101711027110371104711057110671107711087110971110711117111271113711147111571116711177111871119711207112171122711237112471125711267112771128711297113071131711327113371134711357113671137711387113971140711417114271143711447114571146711477114871149711507115171152711537115471155711567115771158711597116071161711627116371164711657116671167711687116971170711717117271173711747117571176711777117871179711807118171182711837118471185711867118771188711897119071191711927119371194711957119671197711987119971200712017120271203712047120571206712077120871209712107121171212712137121471215712167121771218712197122071221712227122371224712257122671227712287122971230712317123271233712347123571236712377123871239712407124171242712437124471245712467124771248712497125071251712527125371254712557125671257712587125971260712617126271263712647126571266712677126871269712707127171272712737127471275712767127771278712797128071281712827128371284712857128671287712887128971290712917129271293712947129571296712977129871299713007130171302713037130471305713067130771308713097131071311713127131371314713157131671317713187131971320713217132271323713247132571326713277132871329713307133171332713337133471335713367133771338713397134071341713427134371344713457134671347713487134971350713517135271353713547135571356713577135871359713607136171362713637136471365713667136771368713697137071371713727137371374713757137671377713787137971380713817138271383713847138571386713877138871389713907139171392713937139471395713967139771398713997140071401714027140371404714057140671407714087140971410714117141271413714147141571416714177141871419714207142171422714237142471425714267142771428714297143071431714327143371434714357143671437714387143971440714417144271443714447144571446714477144871449714507145171452714537145471455714567145771458714597146071461714627146371464714657146671467714687146971470714717147271473714747147571476714777147871479714807148171482714837148471485714867148771488714897149071491714927149371494714957149671497714987149971500715017150271503715047150571506715077150871509715107151171512715137151471515715167151771518715197152071521715227152371524715257152671527715287152971530715317153271533715347153571536715377153871539715407154171542715437154471545715467154771548715497155071551715527155371554715557155671557715587155971560715617156271563715647156571566715677156871569715707157171572715737157471575715767157771578715797158071581715827158371584715857158671587715887158971590715917159271593715947159571596715977159871599716007160171602716037160471605716067160771608716097161071611716127161371614716157161671617716187161971620716217162271623716247162571626716277162871629716307163171632716337163471635716367163771638716397164071641716427164371644716457164671647716487164971650716517165271653716547165571656716577165871659716607166171662716637166471665716667166771668716697167071671716727167371674716757167671677716787167971680716817168271683716847168571686716877168871689716907169171692716937169471695716967169771698716997170071701717027170371704717057170671707717087170971710717117171271713717147171571716717177171871719717207172171722717237172471725717267172771728717297173071731717327173371734717357173671737717387173971740717417174271743717447174571746717477174871749717507175171752717537175471755717567175771758717597176071761717627176371764717657176671767717687176971770717717177271773717747177571776717777177871779717807178171782717837178471785717867178771788717897179071791717927179371794717957179671797717987179971800718017180271803718047180571806718077180871809718107181171812718137181471815718167181771818718197182071821718227182371824718257182671827718287182971830718317183271833718347183571836718377183871839718407184171842718437184471845718467184771848718497185071851718527185371854718557185671857718587185971860718617186271863718647186571866718677186871869718707187171872718737187471875718767187771878718797188071881718827188371884718857188671887718887188971890718917189271893718947189571896718977189871899719007190171902719037190471905719067190771908719097191071911719127191371914719157191671917719187191971920719217192271923719247192571926719277192871929719307193171932719337193471935719367193771938719397194071941719427194371944719457194671947719487194971950719517195271953719547195571956719577195871959719607196171962719637196471965719667196771968719697197071971719727197371974719757197671977719787197971980719817198271983719847198571986719877198871989719907199171992719937199471995719967199771998719997200072001720027200372004720057200672007720087200972010720117201272013720147201572016720177201872019720207202172022720237202472025720267202772028720297203072031720327203372034720357203672037720387203972040720417204272043720447204572046720477204872049720507205172052720537205472055720567205772058720597206072061720627206372064720657206672067720687206972070720717207272073720747207572076720777207872079720807208172082720837208472085720867208772088720897209072091720927209372094720957209672097720987209972100721017210272103721047210572106721077210872109721107211172112721137211472115721167211772118721197212072121721227212372124721257212672127721287212972130721317213272133721347213572136721377213872139721407214172142721437214472145721467214772148721497215072151721527215372154721557215672157721587215972160721617216272163721647216572166721677216872169721707217172172721737217472175721767217772178721797218072181721827218372184721857218672187721887218972190721917219272193721947219572196721977219872199722007220172202722037220472205722067220772208722097221072211722127221372214722157221672217722187221972220722217222272223722247222572226722277222872229722307223172232722337223472235722367223772238722397224072241722427224372244722457224672247722487224972250722517225272253722547225572256722577225872259722607226172262722637226472265722667226772268722697227072271722727227372274722757227672277722787227972280722817228272283722847228572286722877228872289722907229172292722937229472295722967229772298722997230072301723027230372304723057230672307723087230972310723117231272313723147231572316723177231872319723207232172322723237232472325723267232772328723297233072331723327233372334723357233672337723387233972340723417234272343723447234572346723477234872349723507235172352723537235472355723567235772358723597236072361723627236372364723657236672367723687236972370723717237272373723747237572376723777237872379723807238172382723837238472385723867238772388723897239072391723927239372394723957239672397723987239972400724017240272403724047240572406724077240872409724107241172412724137241472415724167241772418724197242072421724227242372424724257242672427724287242972430724317243272433724347243572436724377243872439724407244172442724437244472445724467244772448724497245072451724527245372454724557245672457724587245972460724617246272463724647246572466724677246872469724707247172472724737247472475724767247772478724797248072481724827248372484724857248672487724887248972490724917249272493724947249572496724977249872499725007250172502725037250472505725067250772508725097251072511725127251372514725157251672517725187251972520725217252272523725247252572526725277252872529725307253172532725337253472535725367253772538725397254072541725427254372544725457254672547725487254972550725517255272553725547255572556725577255872559725607256172562725637256472565725667256772568725697257072571725727257372574725757257672577725787257972580725817258272583725847258572586725877258872589725907259172592725937259472595725967259772598725997260072601726027260372604726057260672607726087260972610726117261272613726147261572616726177261872619726207262172622726237262472625726267262772628726297263072631726327263372634726357263672637726387263972640726417264272643726447264572646726477264872649726507265172652726537265472655726567265772658726597266072661726627266372664726657266672667726687266972670726717267272673726747267572676726777267872679726807268172682726837268472685726867268772688726897269072691726927269372694726957269672697726987269972700727017270272703727047270572706727077270872709727107271172712727137271472715727167271772718727197272072721727227272372724727257272672727727287272972730727317273272733727347273572736727377273872739727407274172742727437274472745727467274772748727497275072751727527275372754727557275672757727587275972760727617276272763727647276572766727677276872769727707277172772727737277472775727767277772778727797278072781727827278372784727857278672787727887278972790727917279272793727947279572796727977279872799728007280172802728037280472805728067280772808728097281072811728127281372814728157281672817728187281972820728217282272823728247282572826728277282872829728307283172832728337283472835728367283772838728397284072841728427284372844728457284672847728487284972850728517285272853728547285572856728577285872859728607286172862728637286472865728667286772868728697287072871728727287372874728757287672877728787287972880728817288272883728847288572886728877288872889728907289172892728937289472895728967289772898728997290072901729027290372904729057290672907729087290972910729117291272913729147291572916729177291872919729207292172922729237292472925729267292772928729297293072931729327293372934729357293672937729387293972940729417294272943729447294572946729477294872949729507295172952729537295472955729567295772958729597296072961729627296372964729657296672967729687296972970729717297272973729747297572976729777297872979729807298172982729837298472985729867298772988729897299072991729927299372994729957299672997729987299973000730017300273003730047300573006730077300873009730107301173012730137301473015730167301773018730197302073021730227302373024730257302673027730287302973030730317303273033730347303573036730377303873039730407304173042730437304473045730467304773048730497305073051730527305373054730557305673057730587305973060730617306273063730647306573066730677306873069730707307173072730737307473075730767307773078730797308073081730827308373084730857308673087730887308973090730917309273093730947309573096730977309873099731007310173102731037310473105731067310773108731097311073111731127311373114731157311673117731187311973120731217312273123731247312573126731277312873129731307313173132731337313473135731367313773138731397314073141731427314373144731457314673147731487314973150731517315273153731547315573156731577315873159731607316173162731637316473165731667316773168731697317073171731727317373174731757317673177731787317973180731817318273183731847318573186731877318873189731907319173192731937319473195731967319773198731997320073201732027320373204732057320673207732087320973210732117321273213732147321573216732177321873219732207322173222732237322473225732267322773228732297323073231732327323373234732357323673237732387323973240732417324273243732447324573246732477324873249732507325173252732537325473255732567325773258732597326073261732627326373264732657326673267732687326973270732717327273273732747327573276732777327873279732807328173282732837328473285732867328773288732897329073291732927329373294732957329673297732987329973300733017330273303733047330573306733077330873309733107331173312733137331473315733167331773318733197332073321733227332373324733257332673327733287332973330733317333273333733347333573336733377333873339733407334173342733437334473345733467334773348733497335073351733527335373354733557335673357733587335973360733617336273363733647336573366733677336873369733707337173372733737337473375733767337773378733797338073381733827338373384733857338673387733887338973390733917339273393733947339573396733977339873399734007340173402734037340473405734067340773408734097341073411734127341373414734157341673417734187341973420734217342273423734247342573426734277342873429734307343173432734337343473435734367343773438734397344073441734427344373444734457344673447734487344973450734517345273453734547345573456734577345873459734607346173462734637346473465734667346773468734697347073471734727347373474734757347673477734787347973480734817348273483734847348573486734877348873489734907349173492734937349473495734967349773498734997350073501735027350373504735057350673507735087350973510735117351273513735147351573516735177351873519735207352173522735237352473525735267352773528735297353073531735327353373534735357353673537735387353973540735417354273543735447354573546735477354873549735507355173552735537355473555735567355773558735597356073561735627356373564735657356673567735687356973570735717357273573735747357573576735777357873579735807358173582735837358473585735867358773588735897359073591735927359373594735957359673597735987359973600736017360273603736047360573606736077360873609736107361173612736137361473615736167361773618736197362073621736227362373624736257362673627736287362973630736317363273633736347363573636736377363873639736407364173642736437364473645736467364773648736497365073651736527365373654736557365673657736587365973660736617366273663736647366573666736677366873669736707367173672736737367473675736767367773678736797368073681736827368373684736857368673687736887368973690736917369273693736947369573696736977369873699737007370173702737037370473705737067370773708737097371073711737127371373714737157371673717737187371973720737217372273723737247372573726737277372873729737307373173732737337373473735737367373773738737397374073741737427374373744737457374673747737487374973750737517375273753737547375573756737577375873759737607376173762737637376473765737667376773768737697377073771737727377373774737757377673777737787377973780737817378273783737847378573786737877378873789737907379173792737937379473795737967379773798737997380073801738027380373804738057380673807738087380973810738117381273813738147381573816738177381873819738207382173822738237382473825738267382773828738297383073831738327383373834738357383673837738387383973840738417384273843738447384573846738477384873849738507385173852738537385473855738567385773858738597386073861738627386373864738657386673867738687386973870738717387273873738747387573876738777387873879738807388173882738837388473885738867388773888738897389073891738927389373894738957389673897738987389973900739017390273903739047390573906739077390873909739107391173912739137391473915739167391773918739197392073921739227392373924739257392673927739287392973930739317393273933739347393573936739377393873939739407394173942739437394473945739467394773948739497395073951739527395373954739557395673957739587395973960739617396273963739647396573966739677396873969739707397173972739737397473975739767397773978739797398073981739827398373984739857398673987739887398973990739917399273993739947399573996739977399873999740007400174002740037400474005740067400774008740097401074011740127401374014740157401674017740187401974020740217402274023740247402574026740277402874029740307403174032740337403474035740367403774038740397404074041740427404374044740457404674047740487404974050740517405274053740547405574056740577405874059740607406174062740637406474065740667406774068740697407074071740727407374074740757407674077740787407974080740817408274083740847408574086740877408874089740907409174092740937409474095740967409774098740997410074101741027410374104741057410674107741087410974110741117411274113741147411574116741177411874119741207412174122741237412474125741267412774128741297413074131741327413374134741357413674137741387413974140741417414274143741447414574146741477414874149741507415174152741537415474155741567415774158741597416074161741627416374164741657416674167741687416974170741717417274173741747417574176741777417874179741807418174182741837418474185741867418774188741897419074191741927419374194741957419674197741987419974200742017420274203742047420574206742077420874209742107421174212742137421474215742167421774218742197422074221742227422374224742257422674227742287422974230742317423274233742347423574236742377423874239742407424174242742437424474245742467424774248742497425074251742527425374254742557425674257742587425974260742617426274263742647426574266742677426874269742707427174272742737427474275742767427774278742797428074281742827428374284742857428674287742887428974290742917429274293742947429574296742977429874299743007430174302743037430474305743067430774308743097431074311743127431374314743157431674317743187431974320743217432274323743247432574326743277432874329743307433174332743337433474335743367433774338743397434074341743427434374344743457434674347743487434974350743517435274353743547435574356743577435874359743607436174362743637436474365743667436774368743697437074371743727437374374743757437674377743787437974380743817438274383743847438574386743877438874389743907439174392743937439474395743967439774398743997440074401744027440374404744057440674407744087440974410744117441274413744147441574416744177441874419744207442174422744237442474425744267442774428744297443074431744327443374434744357443674437744387443974440744417444274443744447444574446744477444874449744507445174452744537445474455744567445774458744597446074461744627446374464744657446674467744687446974470744717447274473744747447574476744777447874479744807448174482744837448474485744867448774488744897449074491744927449374494744957449674497744987449974500745017450274503745047450574506745077450874509745107451174512745137451474515745167451774518745197452074521745227452374524745257452674527745287452974530745317453274533745347453574536745377453874539745407454174542745437454474545745467454774548745497455074551745527455374554745557455674557745587455974560745617456274563745647456574566745677456874569745707457174572745737457474575745767457774578745797458074581745827458374584745857458674587745887458974590745917459274593745947459574596745977459874599746007460174602746037460474605746067460774608746097461074611746127461374614746157461674617746187461974620746217462274623746247462574626746277462874629746307463174632746337463474635746367463774638746397464074641746427464374644746457464674647746487464974650746517465274653746547465574656746577465874659746607466174662746637466474665746667466774668746697467074671746727467374674746757467674677746787467974680746817468274683746847468574686746877468874689746907469174692746937469474695746967469774698746997470074701747027470374704747057470674707747087470974710747117471274713747147471574716747177471874719747207472174722747237472474725747267472774728747297473074731747327473374734747357473674737747387473974740747417474274743747447474574746747477474874749747507475174752747537475474755747567475774758747597476074761747627476374764747657476674767747687476974770747717477274773747747477574776747777477874779747807478174782747837478474785747867478774788747897479074791747927479374794747957479674797747987479974800748017480274803748047480574806748077480874809748107481174812748137481474815748167481774818748197482074821748227482374824748257482674827748287482974830748317483274833748347483574836748377483874839748407484174842748437484474845748467484774848748497485074851748527485374854748557485674857748587485974860748617486274863748647486574866748677486874869748707487174872748737487474875748767487774878748797488074881748827488374884748857488674887748887488974890748917489274893748947489574896748977489874899749007490174902749037490474905749067490774908749097491074911749127491374914749157491674917749187491974920749217492274923749247492574926749277492874929749307493174932749337493474935749367493774938749397494074941749427494374944749457494674947749487494974950749517495274953749547495574956749577495874959749607496174962749637496474965749667496774968749697497074971749727497374974749757497674977749787497974980749817498274983749847498574986749877498874989749907499174992749937499474995749967499774998749997500075001750027500375004750057500675007750087500975010750117501275013750147501575016750177501875019750207502175022750237502475025750267502775028750297503075031750327503375034750357503675037750387503975040750417504275043750447504575046750477504875049750507505175052750537505475055750567505775058750597506075061750627506375064750657506675067750687506975070750717507275073750747507575076750777507875079750807508175082750837508475085750867508775088750897509075091750927509375094750957509675097750987509975100751017510275103751047510575106751077510875109751107511175112751137511475115751167511775118751197512075121751227512375124751257512675127751287512975130751317513275133751347513575136751377513875139751407514175142751437514475145751467514775148751497515075151751527515375154751557515675157751587515975160751617516275163751647516575166751677516875169751707517175172751737517475175751767517775178751797518075181751827518375184751857518675187751887518975190751917519275193751947519575196751977519875199752007520175202752037520475205752067520775208752097521075211752127521375214752157521675217752187521975220752217522275223752247522575226752277522875229752307523175232752337523475235752367523775238752397524075241752427524375244752457524675247752487524975250752517525275253752547525575256752577525875259752607526175262752637526475265752667526775268752697527075271752727527375274752757527675277752787527975280752817528275283752847528575286752877528875289752907529175292752937529475295752967529775298752997530075301753027530375304753057530675307753087530975310753117531275313753147531575316753177531875319753207532175322753237532475325753267532775328753297533075331753327533375334753357533675337753387533975340753417534275343753447534575346753477534875349753507535175352753537535475355753567535775358753597536075361753627536375364753657536675367753687536975370753717537275373753747537575376753777537875379753807538175382753837538475385753867538775388753897539075391753927539375394753957539675397753987539975400754017540275403754047540575406754077540875409754107541175412754137541475415754167541775418754197542075421754227542375424754257542675427754287542975430754317543275433754347543575436754377543875439754407544175442754437544475445754467544775448754497545075451754527545375454754557545675457754587545975460754617546275463754647546575466754677546875469754707547175472754737547475475754767547775478754797548075481754827548375484754857548675487754887548975490754917549275493754947549575496754977549875499755007550175502755037550475505755067550775508755097551075511755127551375514755157551675517755187551975520755217552275523755247552575526755277552875529755307553175532755337553475535755367553775538755397554075541755427554375544755457554675547755487554975550755517555275553755547555575556755577555875559755607556175562755637556475565755667556775568755697557075571755727557375574755757557675577755787557975580755817558275583755847558575586755877558875589755907559175592755937559475595755967559775598755997560075601756027560375604756057560675607756087560975610756117561275613756147561575616756177561875619756207562175622756237562475625756267562775628756297563075631756327563375634756357563675637756387563975640756417564275643756447564575646756477564875649756507565175652756537565475655756567565775658756597566075661756627566375664756657566675667756687566975670756717567275673756747567575676756777567875679756807568175682756837568475685756867568775688756897569075691756927569375694756957569675697756987569975700757017570275703757047570575706757077570875709757107571175712757137571475715757167571775718757197572075721757227572375724757257572675727757287572975730757317573275733757347573575736757377573875739757407574175742757437574475745757467574775748757497575075751757527575375754757557575675757757587575975760757617576275763757647576575766757677576875769757707577175772757737577475775757767577775778757797578075781757827578375784757857578675787757887578975790757917579275793757947579575796757977579875799758007580175802758037580475805758067580775808758097581075811758127581375814758157581675817758187581975820758217582275823758247582575826758277582875829758307583175832758337583475835758367583775838758397584075841758427584375844758457584675847758487584975850758517585275853758547585575856758577585875859758607586175862758637586475865758667586775868758697587075871758727587375874758757587675877758787587975880758817588275883758847588575886758877588875889758907589175892758937589475895758967589775898758997590075901759027590375904759057590675907759087590975910759117591275913759147591575916759177591875919759207592175922759237592475925759267592775928759297593075931759327593375934759357593675937759387593975940759417594275943759447594575946759477594875949759507595175952759537595475955759567595775958759597596075961759627596375964759657596675967759687596975970759717597275973759747597575976759777597875979759807598175982759837598475985759867598775988759897599075991759927599375994759957599675997759987599976000760017600276003760047600576006760077600876009760107601176012760137601476015760167601776018760197602076021760227602376024760257602676027760287602976030760317603276033760347603576036760377603876039760407604176042760437604476045760467604776048760497605076051760527605376054760557605676057760587605976060760617606276063760647606576066760677606876069760707607176072760737607476075760767607776078760797608076081760827608376084760857608676087760887608976090760917609276093760947609576096760977609876099761007610176102761037610476105761067610776108761097611076111761127611376114761157611676117761187611976120761217612276123761247612576126761277612876129761307613176132761337613476135761367613776138761397614076141761427614376144761457614676147761487614976150761517615276153761547615576156761577615876159761607616176162761637616476165761667616776168761697617076171761727617376174761757617676177761787617976180761817618276183761847618576186761877618876189761907619176192761937619476195761967619776198761997620076201762027620376204762057620676207762087620976210762117621276213762147621576216762177621876219762207622176222762237622476225762267622776228762297623076231762327623376234762357623676237762387623976240762417624276243762447624576246762477624876249762507625176252762537625476255762567625776258762597626076261762627626376264762657626676267762687626976270762717627276273762747627576276762777627876279762807628176282762837628476285762867628776288762897629076291762927629376294762957629676297762987629976300763017630276303763047630576306763077630876309763107631176312763137631476315763167631776318763197632076321763227632376324763257632676327763287632976330763317633276333763347633576336763377633876339763407634176342763437634476345763467634776348763497635076351763527635376354763557635676357763587635976360763617636276363763647636576366763677636876369763707637176372763737637476375763767637776378763797638076381763827638376384763857638676387763887638976390763917639276393763947639576396763977639876399764007640176402764037640476405764067640776408764097641076411764127641376414764157641676417764187641976420764217642276423764247642576426764277642876429764307643176432764337643476435764367643776438764397644076441764427644376444764457644676447764487644976450764517645276453764547645576456764577645876459764607646176462764637646476465764667646776468764697647076471764727647376474764757647676477764787647976480764817648276483764847648576486764877648876489764907649176492764937649476495764967649776498764997650076501765027650376504765057650676507765087650976510765117651276513765147651576516765177651876519765207652176522765237652476525765267652776528765297653076531765327653376534765357653676537765387653976540765417654276543765447654576546765477654876549765507655176552765537655476555765567655776558765597656076561765627656376564765657656676567765687656976570765717657276573765747657576576765777657876579765807658176582765837658476585765867658776588765897659076591765927659376594765957659676597765987659976600766017660276603766047660576606766077660876609766107661176612766137661476615766167661776618766197662076621766227662376624766257662676627766287662976630766317663276633766347663576636766377663876639766407664176642766437664476645766467664776648766497665076651766527665376654766557665676657766587665976660766617666276663766647666576666766677666876669766707667176672766737667476675766767667776678766797668076681766827668376684766857668676687766887668976690766917669276693766947669576696766977669876699767007670176702767037670476705767067670776708767097671076711767127671376714767157671676717767187671976720767217672276723767247672576726767277672876729767307673176732767337673476735767367673776738767397674076741767427674376744767457674676747767487674976750767517675276753767547675576756767577675876759767607676176762767637676476765767667676776768767697677076771767727677376774767757677676777767787677976780767817678276783767847678576786767877678876789767907679176792767937679476795767967679776798767997680076801768027680376804768057680676807768087680976810768117681276813768147681576816768177681876819768207682176822768237682476825768267682776828768297683076831768327683376834768357683676837768387683976840768417684276843768447684576846768477684876849768507685176852768537685476855768567685776858768597686076861768627686376864768657686676867768687686976870768717687276873768747687576876768777687876879768807688176882768837688476885768867688776888768897689076891768927689376894768957689676897768987689976900769017690276903769047690576906769077690876909769107691176912769137691476915769167691776918769197692076921769227692376924769257692676927769287692976930769317693276933769347693576936769377693876939769407694176942769437694476945769467694776948769497695076951769527695376954769557695676957769587695976960769617696276963769647696576966769677696876969769707697176972769737697476975769767697776978769797698076981769827698376984769857698676987769887698976990769917699276993769947699576996769977699876999770007700177002770037700477005770067700777008770097701077011770127701377014770157701677017770187701977020770217702277023770247702577026770277702877029770307703177032770337703477035770367703777038770397704077041770427704377044770457704677047770487704977050770517705277053770547705577056770577705877059770607706177062770637706477065770667706777068770697707077071770727707377074770757707677077770787707977080770817708277083770847708577086770877708877089770907709177092770937709477095770967709777098770997710077101771027710377104771057710677107771087710977110771117711277113771147711577116771177711877119771207712177122771237712477125771267712777128771297713077131771327713377134771357713677137771387713977140771417714277143771447714577146771477714877149771507715177152771537715477155771567715777158771597716077161771627716377164771657716677167771687716977170771717717277173771747717577176771777717877179771807718177182771837718477185771867718777188771897719077191771927719377194771957719677197771987719977200772017720277203772047720577206772077720877209772107721177212772137721477215772167721777218772197722077221772227722377224772257722677227772287722977230772317723277233772347723577236772377723877239772407724177242772437724477245772467724777248772497725077251772527725377254772557725677257772587725977260772617726277263772647726577266772677726877269772707727177272772737727477275772767727777278772797728077281772827728377284772857728677287772887728977290772917729277293772947729577296772977729877299773007730177302773037730477305773067730777308773097731077311773127731377314773157731677317773187731977320773217732277323773247732577326773277732877329773307733177332773337733477335773367733777338773397734077341773427734377344773457734677347773487734977350773517735277353773547735577356773577735877359773607736177362773637736477365773667736777368773697737077371773727737377374773757737677377773787737977380773817738277383773847738577386773877738877389773907739177392773937739477395773967739777398773997740077401774027740377404774057740677407774087740977410774117741277413774147741577416774177741877419774207742177422774237742477425774267742777428774297743077431774327743377434774357743677437774387743977440774417744277443774447744577446774477744877449774507745177452774537745477455774567745777458774597746077461774627746377464774657746677467774687746977470774717747277473774747747577476774777747877479774807748177482774837748477485774867748777488774897749077491774927749377494774957749677497774987749977500775017750277503775047750577506775077750877509775107751177512775137751477515775167751777518775197752077521775227752377524775257752677527775287752977530775317753277533775347753577536775377753877539775407754177542775437754477545775467754777548775497755077551775527755377554775557755677557775587755977560775617756277563775647756577566775677756877569775707757177572775737757477575775767757777578775797758077581775827758377584775857758677587775887758977590775917759277593775947759577596775977759877599776007760177602776037760477605776067760777608776097761077611776127761377614776157761677617776187761977620776217762277623776247762577626776277762877629776307763177632776337763477635776367763777638776397764077641776427764377644776457764677647776487764977650776517765277653776547765577656776577765877659776607766177662776637766477665776667766777668776697767077671776727767377674776757767677677776787767977680776817768277683776847768577686776877768877689776907769177692776937769477695776967769777698776997770077701777027770377704777057770677707777087770977710777117771277713777147771577716777177771877719777207772177722777237772477725777267772777728777297773077731777327773377734777357773677737777387773977740777417774277743777447774577746777477774877749777507775177752777537775477755777567775777758777597776077761777627776377764777657776677767777687776977770777717777277773777747777577776777777777877779777807778177782777837778477785777867778777788777897779077791777927779377794777957779677797777987779977800778017780277803778047780577806778077780877809778107781177812778137781477815778167781777818778197782077821778227782377824778257782677827778287782977830778317783277833778347783577836778377783877839778407784177842778437784477845778467784777848778497785077851778527785377854778557785677857778587785977860778617786277863778647786577866778677786877869778707787177872778737787477875778767787777878778797788077881778827788377884778857788677887778887788977890778917789277893778947789577896778977789877899779007790177902779037790477905779067790777908779097791077911779127791377914779157791677917779187791977920779217792277923779247792577926779277792877929779307793177932779337793477935779367793777938779397794077941779427794377944779457794677947779487794977950779517795277953779547795577956779577795877959779607796177962779637796477965779667796777968779697797077971779727797377974779757797677977779787797977980779817798277983779847798577986779877798877989779907799177992779937799477995779967799777998779997800078001780027800378004780057800678007780087800978010780117801278013780147801578016780177801878019780207802178022780237802478025780267802778028780297803078031780327803378034780357803678037780387803978040780417804278043780447804578046780477804878049780507805178052780537805478055780567805778058780597806078061780627806378064780657806678067780687806978070780717807278073780747807578076780777807878079780807808178082780837808478085780867808778088780897809078091780927809378094780957809678097780987809978100781017810278103781047810578106781077810878109781107811178112781137811478115781167811778118781197812078121781227812378124781257812678127781287812978130781317813278133781347813578136781377813878139781407814178142781437814478145781467814778148781497815078151781527815378154781557815678157781587815978160781617816278163781647816578166781677816878169781707817178172781737817478175781767817778178781797818078181781827818378184781857818678187781887818978190781917819278193781947819578196781977819878199782007820178202782037820478205782067820778208782097821078211782127821378214782157821678217782187821978220782217822278223782247822578226782277822878229782307823178232782337823478235782367823778238782397824078241782427824378244782457824678247782487824978250782517825278253782547825578256782577825878259782607826178262782637826478265782667826778268782697827078271782727827378274782757827678277782787827978280782817828278283782847828578286782877828878289782907829178292782937829478295782967829778298782997830078301783027830378304783057830678307783087830978310783117831278313783147831578316783177831878319783207832178322783237832478325783267832778328783297833078331783327833378334783357833678337783387833978340783417834278343783447834578346783477834878349783507835178352783537835478355783567835778358783597836078361783627836378364783657836678367783687836978370783717837278373783747837578376783777837878379783807838178382783837838478385783867838778388783897839078391783927839378394783957839678397783987839978400784017840278403784047840578406784077840878409784107841178412784137841478415784167841778418784197842078421784227842378424784257842678427784287842978430784317843278433784347843578436784377843878439784407844178442784437844478445784467844778448784497845078451784527845378454784557845678457784587845978460784617846278463784647846578466784677846878469784707847178472784737847478475784767847778478784797848078481784827848378484784857848678487784887848978490784917849278493784947849578496784977849878499785007850178502785037850478505785067850778508785097851078511785127851378514785157851678517785187851978520785217852278523785247852578526785277852878529785307853178532785337853478535785367853778538785397854078541785427854378544785457854678547785487854978550785517855278553785547855578556785577855878559785607856178562785637856478565785667856778568785697857078571785727857378574785757857678577785787857978580785817858278583785847858578586785877858878589785907859178592785937859478595785967859778598785997860078601786027860378604786057860678607786087860978610786117861278613786147861578616786177861878619786207862178622786237862478625786267862778628786297863078631786327863378634786357863678637786387863978640786417864278643786447864578646786477864878649786507865178652786537865478655786567865778658786597866078661786627866378664786657866678667786687866978670786717867278673786747867578676786777867878679786807868178682786837868478685786867868778688786897869078691786927869378694786957869678697786987869978700787017870278703787047870578706787077870878709787107871178712787137871478715787167871778718787197872078721787227872378724787257872678727787287872978730787317873278733787347873578736787377873878739787407874178742787437874478745787467874778748787497875078751787527875378754787557875678757787587875978760787617876278763787647876578766787677876878769787707877178772787737877478775787767877778778787797878078781787827878378784787857878678787787887878978790787917879278793787947879578796787977879878799788007880178802788037880478805788067880778808788097881078811788127881378814788157881678817788187881978820788217882278823788247882578826788277882878829788307883178832788337883478835788367883778838788397884078841788427884378844788457884678847788487884978850788517885278853788547885578856788577885878859788607886178862788637886478865788667886778868788697887078871788727887378874788757887678877788787887978880788817888278883788847888578886788877888878889788907889178892788937889478895788967889778898788997890078901789027890378904789057890678907789087890978910789117891278913789147891578916789177891878919789207892178922789237892478925789267892778928789297893078931789327893378934789357893678937789387893978940789417894278943789447894578946789477894878949789507895178952789537895478955789567895778958789597896078961789627896378964789657896678967789687896978970789717897278973789747897578976789777897878979789807898178982789837898478985789867898778988789897899078991789927899378994789957899678997789987899979000790017900279003790047900579006790077900879009790107901179012790137901479015790167901779018790197902079021790227902379024790257902679027790287902979030790317903279033790347903579036790377903879039790407904179042790437904479045790467904779048790497905079051790527905379054790557905679057790587905979060790617906279063790647906579066790677906879069790707907179072790737907479075790767907779078790797908079081790827908379084790857908679087790887908979090790917909279093790947909579096790977909879099791007910179102791037910479105791067910779108791097911079111791127911379114791157911679117791187911979120791217912279123791247912579126791277912879129791307913179132791337913479135791367913779138791397914079141791427914379144791457914679147791487914979150791517915279153791547915579156791577915879159791607916179162791637916479165791667916779168791697917079171791727917379174791757917679177791787917979180791817918279183791847918579186791877918879189791907919179192791937919479195791967919779198791997920079201792027920379204792057920679207792087920979210792117921279213792147921579216792177921879219792207922179222792237922479225792267922779228792297923079231792327923379234792357923679237792387923979240792417924279243792447924579246792477924879249792507925179252792537925479255792567925779258792597926079261792627926379264792657926679267792687926979270792717927279273792747927579276792777927879279792807928179282792837928479285792867928779288792897929079291792927929379294792957929679297792987929979300793017930279303793047930579306793077930879309793107931179312793137931479315793167931779318793197932079321793227932379324793257932679327793287932979330793317933279333793347933579336793377933879339793407934179342793437934479345793467934779348793497935079351793527935379354793557935679357793587935979360793617936279363793647936579366793677936879369793707937179372793737937479375793767937779378793797938079381793827938379384793857938679387793887938979390793917939279393793947939579396793977939879399794007940179402794037940479405794067940779408794097941079411794127941379414794157941679417794187941979420794217942279423794247942579426794277942879429794307943179432794337943479435794367943779438794397944079441794427944379444794457944679447794487944979450794517945279453794547945579456794577945879459794607946179462794637946479465794667946779468794697947079471794727947379474794757947679477794787947979480794817948279483794847948579486794877948879489794907949179492794937949479495794967949779498794997950079501795027950379504795057950679507795087950979510795117951279513795147951579516795177951879519795207952179522795237952479525795267952779528795297953079531795327953379534795357953679537795387953979540795417954279543795447954579546795477954879549795507955179552795537955479555795567955779558795597956079561795627956379564795657956679567795687956979570795717957279573795747957579576795777957879579795807958179582795837958479585795867958779588795897959079591795927959379594795957959679597795987959979600796017960279603796047960579606796077960879609796107961179612796137961479615796167961779618796197962079621796227962379624796257962679627796287962979630796317963279633796347963579636796377963879639796407964179642796437964479645796467964779648796497965079651796527965379654796557965679657796587965979660796617966279663796647966579666796677966879669796707967179672796737967479675796767967779678796797968079681796827968379684796857968679687796887968979690796917969279693796947969579696796977969879699797007970179702797037970479705797067970779708797097971079711797127971379714797157971679717797187971979720797217972279723797247972579726797277972879729797307973179732797337973479735797367973779738797397974079741797427974379744797457974679747797487974979750797517975279753797547975579756797577975879759797607976179762797637976479765797667976779768797697977079771797727977379774797757977679777797787977979780797817978279783797847978579786797877978879789797907979179792797937979479795797967979779798797997980079801798027980379804798057980679807798087980979810798117981279813798147981579816798177981879819798207982179822798237982479825798267982779828798297983079831798327983379834798357983679837798387983979840798417984279843798447984579846798477984879849798507985179852798537985479855798567985779858798597986079861798627986379864798657986679867798687986979870798717987279873798747987579876798777987879879798807988179882798837988479885798867988779888798897989079891798927989379894798957989679897798987989979900799017990279903799047990579906799077990879909799107991179912799137991479915799167991779918799197992079921799227992379924799257992679927799287992979930799317993279933799347993579936799377993879939799407994179942799437994479945799467994779948799497995079951799527995379954799557995679957799587995979960799617996279963799647996579966799677996879969799707997179972799737997479975799767997779978799797998079981799827998379984799857998679987799887998979990799917999279993799947999579996799977999879999800008000180002800038000480005800068000780008800098001080011800128001380014800158001680017800188001980020800218002280023800248002580026800278002880029800308003180032800338003480035800368003780038800398004080041800428004380044800458004680047800488004980050800518005280053800548005580056800578005880059800608006180062800638006480065800668006780068800698007080071800728007380074800758007680077800788007980080800818008280083800848008580086800878008880089800908009180092800938009480095800968009780098800998010080101801028010380104801058010680107801088010980110801118011280113801148011580116801178011880119801208012180122801238012480125801268012780128801298013080131801328013380134801358013680137801388013980140801418014280143801448014580146801478014880149801508015180152801538015480155801568015780158801598016080161801628016380164801658016680167801688016980170801718017280173801748017580176801778017880179801808018180182801838018480185801868018780188801898019080191801928019380194801958019680197801988019980200802018020280203802048020580206802078020880209802108021180212802138021480215802168021780218802198022080221802228022380224802258022680227802288022980230802318023280233802348023580236802378023880239802408024180242802438024480245802468024780248802498025080251802528025380254802558025680257802588025980260802618026280263802648026580266802678026880269802708027180272802738027480275802768027780278802798028080281802828028380284802858028680287802888028980290802918029280293802948029580296802978029880299803008030180302803038030480305803068030780308803098031080311803128031380314803158031680317803188031980320803218032280323803248032580326803278032880329803308033180332803338033480335803368033780338803398034080341803428034380344803458034680347803488034980350803518035280353803548035580356803578035880359803608036180362803638036480365803668036780368803698037080371803728037380374803758037680377803788037980380803818038280383803848038580386803878038880389803908039180392803938039480395803968039780398803998040080401804028040380404804058040680407804088040980410804118041280413804148041580416804178041880419804208042180422804238042480425804268042780428804298043080431804328043380434804358043680437804388043980440804418044280443804448044580446804478044880449804508045180452804538045480455804568045780458804598046080461804628046380464804658046680467804688046980470804718047280473804748047580476804778047880479804808048180482804838048480485804868048780488804898049080491804928049380494804958049680497804988049980500805018050280503805048050580506805078050880509805108051180512805138051480515805168051780518805198052080521805228052380524805258052680527805288052980530805318053280533805348053580536805378053880539805408054180542805438054480545805468054780548805498055080551805528055380554805558055680557805588055980560805618056280563805648056580566805678056880569805708057180572805738057480575805768057780578805798058080581805828058380584805858058680587805888058980590805918059280593805948059580596805978059880599806008060180602806038060480605806068060780608806098061080611806128061380614806158061680617806188061980620806218062280623806248062580626806278062880629806308063180632806338063480635806368063780638806398064080641806428064380644806458064680647806488064980650806518065280653806548065580656806578065880659806608066180662806638066480665806668066780668806698067080671806728067380674806758067680677806788067980680806818068280683806848068580686806878068880689806908069180692806938069480695806968069780698806998070080701807028070380704807058070680707807088070980710807118071280713807148071580716807178071880719807208072180722807238072480725807268072780728807298073080731807328073380734807358073680737807388073980740807418074280743807448074580746807478074880749807508075180752807538075480755807568075780758807598076080761807628076380764807658076680767807688076980770807718077280773807748077580776807778077880779807808078180782807838078480785807868078780788807898079080791807928079380794807958079680797807988079980800808018080280803808048080580806808078080880809808108081180812808138081480815808168081780818808198082080821808228082380824808258082680827808288082980830808318083280833808348083580836808378083880839808408084180842808438084480845808468084780848808498085080851808528085380854808558085680857808588085980860808618086280863808648086580866808678086880869808708087180872808738087480875808768087780878808798088080881808828088380884808858088680887808888088980890808918089280893808948089580896808978089880899809008090180902809038090480905809068090780908809098091080911809128091380914809158091680917809188091980920809218092280923809248092580926809278092880929809308093180932809338093480935809368093780938809398094080941809428094380944809458094680947809488094980950809518095280953809548095580956809578095880959809608096180962809638096480965809668096780968809698097080971809728097380974809758097680977809788097980980809818098280983809848098580986809878098880989809908099180992809938099480995809968099780998809998100081001810028100381004810058100681007810088100981010810118101281013810148101581016810178101881019810208102181022810238102481025810268102781028810298103081031810328103381034810358103681037810388103981040810418104281043810448104581046810478104881049810508105181052810538105481055810568105781058810598106081061810628106381064810658106681067810688106981070810718107281073810748107581076810778107881079810808108181082810838108481085810868108781088810898109081091810928109381094810958109681097810988109981100811018110281103811048110581106811078110881109811108111181112811138111481115811168111781118811198112081121811228112381124811258112681127811288112981130811318113281133811348113581136811378113881139811408114181142811438114481145811468114781148811498115081151811528115381154811558115681157811588115981160811618116281163811648116581166811678116881169811708117181172811738117481175811768117781178811798118081181811828118381184811858118681187811888118981190811918119281193811948119581196811978119881199812008120181202812038120481205812068120781208812098121081211812128121381214812158121681217812188121981220812218122281223812248122581226812278122881229812308123181232812338123481235812368123781238812398124081241812428124381244812458124681247812488124981250812518125281253812548125581256812578125881259812608126181262812638126481265812668126781268812698127081271812728127381274812758127681277812788127981280812818128281283812848128581286812878128881289812908129181292812938129481295812968129781298812998130081301813028130381304813058130681307813088130981310813118131281313813148131581316813178131881319813208132181322813238132481325813268132781328813298133081331813328133381334813358133681337813388133981340813418134281343813448134581346813478134881349813508135181352813538135481355813568135781358813598136081361813628136381364813658136681367813688136981370813718137281373813748137581376813778137881379813808138181382813838138481385813868138781388813898139081391813928139381394813958139681397813988139981400814018140281403814048140581406814078140881409814108141181412814138141481415814168141781418814198142081421814228142381424814258142681427814288142981430814318143281433814348143581436814378143881439814408144181442814438144481445814468144781448814498145081451814528145381454814558145681457814588145981460814618146281463814648146581466814678146881469814708147181472814738147481475814768147781478814798148081481814828148381484814858148681487814888148981490814918149281493814948149581496814978149881499815008150181502815038150481505815068150781508815098151081511815128151381514815158151681517815188151981520815218152281523815248152581526815278152881529815308153181532815338153481535815368153781538815398154081541815428154381544815458154681547815488154981550815518155281553815548155581556815578155881559815608156181562815638156481565815668156781568815698157081571815728157381574815758157681577815788157981580815818158281583815848158581586815878158881589815908159181592815938159481595815968159781598815998160081601816028160381604816058160681607816088160981610816118161281613816148161581616816178161881619816208162181622816238162481625816268162781628816298163081631816328163381634816358163681637816388163981640816418164281643816448164581646816478164881649816508165181652816538165481655816568165781658816598166081661816628166381664816658166681667816688166981670816718167281673816748167581676816778167881679816808168181682816838168481685816868168781688
  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, 2023.
  6. # Liu Tao <lyuutau@outlook.com>, 2021, 2023.
  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. # chin housin <sharingfun@163.com>, 2022.
  12. # Julien Lepiller <fedora-account@lepiller.eu>, 2022.
  13. # Yang Yulin <yylteam@icloud.com>, 2022.
  14. # Thomas Cheng <orangecza@gmail.com>, 2023.
  15. msgid ""
  16. msgstr ""
  17. "Project-Id-Version: guix-manual 1.0.1-pre1\n"
  18. "Report-Msgid-Bugs-To: bug-guix@gnu.org\n"
  19. "POT-Creation-Date: 2023-05-25 03:18+0000\n"
  20. "PO-Revision-Date: 2023-05-31 10:47+0000\n"
  21. "Last-Translator: Liu Tao <lyuutau@outlook.com>\n"
  22. "Language-Team: Chinese (Simplified) <https://translate.fedoraproject.org/projects/guix/documentation-manual/zh_CN/>\n"
  23. "Language: zh_CN\n"
  24. "MIME-Version: 1.0\n"
  25. "Content-Type: text/plain; charset=UTF-8\n"
  26. "Content-Transfer-Encoding: 8bit\n"
  27. "Plural-Forms: nplurals=1; plural=0;\n"
  28. "X-Generator: Weblate 4.17\n"
  29. "X-Bugs: Report translation errors to the Language-Team address.\n"
  30. #. #-#-#-#-# contributing.pot (guix manual checkout) #-#-#-#-#
  31. #. type: chapter
  32. #. #-#-#-#-# guix.pot (guix manual checkout) #-#-#-#-#
  33. #. type: menuentry
  34. #: guix-git/doc/contributing.texi:1 guix-git/doc/contributing.texi:2
  35. #: guix-git/doc/guix.texi:204
  36. #, no-wrap
  37. msgid "Contributing"
  38. msgstr "贡献"
  39. #. type: Plain text
  40. #: guix-git/doc/contributing.texi:9
  41. 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})."
  42. msgstr "本项目是团体合作成果,我们需要您的帮助以更好地发展。请通过 @email{guix-devel@@gnu.org} 邮箱和 Libera Chat IRC 网络上的 @code{#guix} 频道联系我们。我们欢迎您的想法、Bug 反馈、补丁和任何可能对项目有帮助的贡献。我们特别欢迎帮助我们打包(@pxref{Packaging Guidelines})。"
  43. #. type: cindex
  44. #: guix-git/doc/contributing.texi:10
  45. #, no-wrap
  46. msgid "code of conduct, of contributors"
  47. msgstr "行为准则和贡献者"
  48. #. type: cindex
  49. #: guix-git/doc/contributing.texi:11
  50. #, no-wrap
  51. msgid "contributor covenant"
  52. msgstr "贡献者契约"
  53. #. type: Plain text
  54. #: guix-git/doc/contributing.texi:17
  55. 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."
  56. msgstr "我们希望提供一个温暖、友好,并且没有骚扰的的环境,这样每个人都能尽最大努力贡献。为了这个目的,我们的项目遵循“贡献者契约”,这个契约是根据 @url{https://contributor-covenant.org/} 制定的。你可以在源代码目录里的 @file{CODE-OF-CONDUCT} 文件里找到一份本地版。"
  57. #. type: Plain text
  58. #: guix-git/doc/contributing.texi:21
  59. 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."
  60. msgstr "贡献者在提交补丁和网上交流时不需要使用法律认可的名字。他们可以使用任何名字或者假名。"
  61. #. type: section
  62. #: guix-git/doc/contributing.texi:34 guix-git/doc/contributing.texi:36
  63. #: guix-git/doc/contributing.texi:37
  64. #, no-wrap
  65. msgid "Building from Git"
  66. msgstr "从Git构建"
  67. #. type: menuentry
  68. #: guix-git/doc/contributing.texi:34
  69. msgid "The latest and greatest."
  70. msgstr "最新的并且最好的。"
  71. #. type: section
  72. #: guix-git/doc/contributing.texi:34 guix-git/doc/contributing.texi:195
  73. #: guix-git/doc/contributing.texi:196
  74. #, no-wrap
  75. msgid "Running Guix Before It Is Installed"
  76. msgstr "在安装之前运行Guix"
  77. #. type: menuentry
  78. #: guix-git/doc/contributing.texi:34
  79. msgid "Hacker tricks."
  80. msgstr "黑客技巧。"
  81. #. type: section
  82. #: guix-git/doc/contributing.texi:34 guix-git/doc/contributing.texi:286
  83. #: guix-git/doc/contributing.texi:287
  84. #, no-wrap
  85. msgid "The Perfect Setup"
  86. msgstr "完美的配置"
  87. #. type: menuentry
  88. #: guix-git/doc/contributing.texi:34
  89. msgid "The right tools."
  90. msgstr "正确的工具。"
  91. #. type: section
  92. #: guix-git/doc/contributing.texi:34 guix-git/doc/contributing.texi:387
  93. #: guix-git/doc/contributing.texi:388
  94. #, no-wrap
  95. msgid "Packaging Guidelines"
  96. msgstr "打包指导"
  97. #. type: menuentry
  98. #: guix-git/doc/contributing.texi:34
  99. msgid "Growing the distribution."
  100. msgstr "帮助发行版成长。"
  101. #. type: section
  102. #: guix-git/doc/contributing.texi:34 guix-git/doc/contributing.texi:1052
  103. #: guix-git/doc/contributing.texi:1053
  104. #, no-wrap
  105. msgid "Coding Style"
  106. msgstr "代码风格"
  107. #. type: menuentry
  108. #: guix-git/doc/contributing.texi:34
  109. msgid "Hygiene of the contributor."
  110. msgstr "贡献者代码卫生守则。"
  111. #. type: section
  112. #: guix-git/doc/contributing.texi:34 guix-git/doc/contributing.texi:1150
  113. #: guix-git/doc/contributing.texi:1151
  114. #, no-wrap
  115. msgid "Submitting Patches"
  116. msgstr "提交补丁"
  117. #. type: menuentry
  118. #: guix-git/doc/contributing.texi:34
  119. msgid "Share your work."
  120. msgstr "分享你的工作。"
  121. #. type: section
  122. #: guix-git/doc/contributing.texi:34 guix-git/doc/contributing.texi:1577
  123. #: guix-git/doc/contributing.texi:1578
  124. #, no-wrap
  125. msgid "Tracking Bugs and Patches"
  126. msgstr "跟踪程序漏洞和补丁"
  127. #. type: menuentry
  128. #: guix-git/doc/contributing.texi:34
  129. msgid "Keeping it all organized."
  130. msgstr "保持井井有条。"
  131. #. type: section
  132. #: guix-git/doc/contributing.texi:34 guix-git/doc/contributing.texi:1692
  133. #: guix-git/doc/contributing.texi:1693
  134. #, no-wrap
  135. msgid "Commit Access"
  136. msgstr "提交权利"
  137. #. type: menuentry
  138. #: guix-git/doc/contributing.texi:34
  139. msgid "Pushing to the official repository."
  140. msgstr "推送到官方仓库。"
  141. #. type: section
  142. #: guix-git/doc/contributing.texi:34 guix-git/doc/contributing.texi:1926
  143. #: guix-git/doc/contributing.texi:1927
  144. #, no-wrap
  145. msgid "Updating the Guix Package"
  146. msgstr "更新Guix软件包"
  147. #. type: menuentry
  148. #: guix-git/doc/contributing.texi:34
  149. msgid "Updating the Guix package definition."
  150. msgstr "更新Guix的软件包定义。"
  151. #. type: section
  152. #: guix-git/doc/contributing.texi:34 guix-git/doc/contributing.texi:1964
  153. #: guix-git/doc/contributing.texi:1965
  154. #, no-wrap
  155. msgid "Writing Documentation"
  156. msgstr "撰写文档"
  157. #. type: menuentry
  158. #: guix-git/doc/contributing.texi:34
  159. msgid "Improving documentation in GNU Guix."
  160. msgstr "完善GNU Guix中的文档。"
  161. #. type: section
  162. #: guix-git/doc/contributing.texi:34 guix-git/doc/contributing.texi:2008
  163. #: guix-git/doc/contributing.texi:2009
  164. #, no-wrap
  165. msgid "Translating Guix"
  166. msgstr "翻译 Guix"
  167. #. type: menuentry
  168. #: guix-git/doc/contributing.texi:34
  169. msgid "Make Guix speak your native language."
  170. msgstr "用您的母语翻译 Guix。"
  171. #. type: Plain text
  172. #: guix-git/doc/contributing.texi:41
  173. msgid "If you want to hack Guix itself, it is recommended to use the latest version from the Git repository:"
  174. msgstr "如果你想折腾Guix本身,建议使用Git仓库里最新的版本:"
  175. #. type: example
  176. #: guix-git/doc/contributing.texi:44
  177. #, no-wrap
  178. msgid "git clone https://git.savannah.gnu.org/git/guix.git\n"
  179. msgstr "git clone https://git.savannah.gnu.org/git/guix.git\n"
  180. #. type: cindex
  181. #: guix-git/doc/contributing.texi:46
  182. #, fuzzy, no-wrap
  183. msgid "authentication, of a Guix checkout"
  184. msgstr "Guix签出的身份认证"
  185. #. type: Plain text
  186. #: guix-git/doc/contributing.texi:51
  187. 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}):"
  188. msgstr "如何确保您获得了存储库的真实副本?为此,运行@command{guix git authenticate},将@dfn{channel introduction}(@pxref{Invoking guix git authenticate})的提交和OpenPGP指纹传递给它:"
  189. #. type: example
  190. #: guix-git/doc/contributing.texi:58
  191. #, no-wrap
  192. msgid ""
  193. "git fetch origin keyring:keyring\n"
  194. "guix git authenticate 9edb3f66fd807b096b48283debdcddccfea34bad \\\n"
  195. " \"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA\"\n"
  196. msgstr ""
  197. "git fetch origin keyring:keyring\n"
  198. "guix git authenticate 9edb3f66fd807b096b48283debdcddccfea34bad \\\n"
  199. " \"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA\"\n"
  200. #. type: Plain text
  201. #: guix-git/doc/contributing.texi:63
  202. msgid "This command completes with exit code zero on success; it prints an error message and exits with a non-zero code otherwise."
  203. msgstr "此命令完成,若成功退出代码为零;否则打印一条错误消息,以非零代码退出。"
  204. #. type: Plain text
  205. #: guix-git/doc/contributing.texi:70
  206. 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."
  207. msgstr "如你所见,存在一个先有鸡还是蛋的问题:首先你需要安装Guix。更多情况,您将在另一个发行版(@pxref{System Installation})上安装Guix系统(@pxref{Binary Installation})或Guix;但无论如何,您都需要在安装介质上验证OpenPGP签名。这“保证”了信任链。"
  208. #. type: Plain text
  209. #: guix-git/doc/contributing.texi:75
  210. 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:"
  211. msgstr "设置Guix开发环境的最简单的方式当然是使用Guix!下面这些命令启动一个shell,所有的依赖和环境变量都为折腾Guix设置好了:"
  212. #. type: example
  213. #: guix-git/doc/contributing.texi:78
  214. #, no-wrap
  215. msgid "guix shell -D guix --pure\n"
  216. msgstr "guix shell -D guix --pure\n"
  217. #. type: Plain text
  218. #: guix-git/doc/contributing.texi:81
  219. msgid "@xref{Invoking guix shell}, for more information on that command."
  220. msgstr "@xref{Invoking guix shell},了解这个方便的工具。"
  221. #. type: Plain text
  222. #: guix-git/doc/contributing.texi:85
  223. 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})."
  224. msgstr "当从Git检出构建Guix时无法使用Guix,除安装指导(@pxref{Requirements})里提及的软件包之外还需要这些包。"
  225. #. type: item
  226. #: guix-git/doc/contributing.texi:87
  227. #, no-wrap
  228. msgid "@url{https://gnu.org/software/autoconf/, GNU Autoconf};"
  229. msgstr "@url{https://gnu.org/software/autoconf/, GNU Autoconf};"
  230. #. type: item
  231. #: guix-git/doc/contributing.texi:88
  232. #, no-wrap
  233. msgid "@url{https://gnu.org/software/automake/, GNU Automake};"
  234. msgstr "@url{https://gnu.org/software/automake/, GNU Automake};"
  235. #. type: item
  236. #: guix-git/doc/contributing.texi:89
  237. #, no-wrap
  238. msgid "@url{https://gnu.org/software/gettext/, GNU Gettext};"
  239. msgstr "@url{https://gnu.org/software/gettext/, GNU Gettext};"
  240. #. type: item
  241. #: guix-git/doc/contributing.texi:90
  242. #, no-wrap
  243. msgid "@url{https://gnu.org/software/texinfo/, GNU Texinfo};"
  244. msgstr "@url{https://gnu.org/software/texinfo/, GNU Texinfo};"
  245. #. type: item
  246. #: guix-git/doc/contributing.texi:91
  247. #, no-wrap
  248. msgid "@url{https://www.graphviz.org/, Graphviz};"
  249. msgstr "@url{https://www.graphviz.org/, Graphviz};"
  250. #. type: item
  251. #: guix-git/doc/contributing.texi:92
  252. #, no-wrap
  253. msgid "@url{https://www.gnu.org/software/help2man/, GNU Help2man (optional)}."
  254. msgstr "@url{https://www.gnu.org/software/help2man/, GNU Help2man(可选)}。"
  255. #. type: Plain text
  256. #: guix-git/doc/contributing.texi:97
  257. msgid "On Guix, extra dependencies can be added by instead running @command{guix shell}:"
  258. msgstr "在 Guix 上,额外的依赖也可以通过 @command{guix shell} 添加:"
  259. #. type: example
  260. #: guix-git/doc/contributing.texi:100
  261. #, no-wrap
  262. msgid "guix shell -D guix help2man git strace --pure\n"
  263. msgstr "guix shell -D guix help2man git strace --pure\n"
  264. #. type: Plain text
  265. #: guix-git/doc/contributing.texi:104
  266. msgid "From there you can generate the build system infrastructure using Autoconf and Automake:"
  267. msgstr "在这里你可以使用Autoconf和Automake生成构建系统的基础设施。"
  268. #. type: example
  269. #: guix-git/doc/contributing.texi:107
  270. #, no-wrap
  271. msgid "./bootstrap\n"
  272. msgstr "引导\n"
  273. #. type: Plain text
  274. #: guix-git/doc/contributing.texi:110
  275. msgid "If you get an error like this one:"
  276. msgstr "若你得到一个像这样的错误:"
  277. #. type: example
  278. #: guix-git/doc/contributing.texi:113
  279. #, no-wrap
  280. msgid "configure.ac:46: error: possibly undefined macro: PKG_CHECK_MODULES\n"
  281. msgstr "configure.ac:46: error: possibly undefined macro: PKG_CHECK_MODULES\n"
  282. #. type: Plain text
  283. #: guix-git/doc/contributing.texi:122
  284. 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:"
  285. msgstr "它可能意味着Autoconf无法找到由pkg-config提供的@file{pkg.m4}。请确保@file{pkg.m4}可用。由Guile提供的@file{guile.m4}宏也类似。假如你的Automake安装在@file{/usr/local},那么它不会从@file{/usr/share}里寻找@file{.m4}文件。这种情况下,你必须执行下面这个命令:"
  286. #. type: example
  287. #: guix-git/doc/contributing.texi:125
  288. #, no-wrap
  289. msgid "export ACLOCAL_PATH=/usr/share/aclocal\n"
  290. msgstr "export ACLOCAL_PATH=/usr/share/aclocal\n"
  291. #. type: Plain text
  292. #: guix-git/doc/contributing.texi:129
  293. msgid "@xref{Macro Search Path,,, automake, The GNU Automake Manual}, for more information."
  294. msgstr "参考@xref{Macro Search Path,,, automake, The GNU Automake Manual}."
  295. #. type: Plain text
  296. #: guix-git/doc/contributing.texi:131
  297. msgid "Then, run:"
  298. msgstr "然后,运行:"
  299. #. type: example
  300. #: guix-git/doc/contributing.texi:134
  301. #, fuzzy, no-wrap
  302. #| msgid "./configure --localstatedir=/var\n"
  303. msgid "./configure --localstatedir=/var --sysconfdir=/etc\n"
  304. msgstr "./configure --localstatedir=/var\n"
  305. #. type: Plain text
  306. #: guix-git/doc/contributing.texi:143
  307. #, fuzzy
  308. #| 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}."
  309. msgid "... where @file{/var} is the normal @code{localstatedir} value (@pxref{The Store}, for information about this) and @file{/etc} is the normal @code{sysconfdir} value. 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} and @code{sysconfdir} values, which get recorded in the @code{(guix config)} Guile module."
  310. msgstr "... 这里的 @file{/var} 是普通的 @code{localstatedir} 值 (@pxref{The Store}, 获取更多信息)。 请注意,即使在最后不运行 @command{make install}, 也要传递正确的参数 @code{localstatedir}。"
  311. #. type: Plain text
  312. #: guix-git/doc/contributing.texi:146
  313. msgid "Finally, you can build Guix and, if you feel so inclined, run the tests (@pxref{Running the Test Suite}):"
  314. msgstr "最后,你可以构建 Guix。若你希望,还可以运行测试 (@pxref{Running the Test Suite}):"
  315. #. type: example
  316. #: guix-git/doc/contributing.texi:150
  317. #, no-wrap
  318. msgid ""
  319. "make\n"
  320. "make check\n"
  321. msgstr ""
  322. "make\n"
  323. "make check\n"
  324. #. type: Plain text
  325. #: guix-git/doc/contributing.texi:156
  326. 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}."
  327. msgstr "如果遇到任何错误,请参考“安装指导”(@pxref{Installation})或者给@email{guix-devel@@gnu.org, 邮件列表}发邮件。"
  328. #. type: Plain text
  329. #: guix-git/doc/contributing.texi:159
  330. msgid "From there on, you can authenticate all the commits included in your checkout by running:"
  331. msgstr "从这开始,你可以运行下面的命令认证检出中的所有提交:"
  332. #. type: example
  333. #: guix-git/doc/contributing.texi:162 guix-git/doc/contributing.texi:1807
  334. #, no-wrap
  335. msgid "make authenticate\n"
  336. msgstr "make authenticate\n"
  337. #. type: Plain text
  338. #: guix-git/doc/contributing.texi:165
  339. msgid "The first run takes a couple of minutes, but subsequent runs are faster."
  340. msgstr "第一次运行会花费几分钟,不过再次运行就会快的多。"
  341. #. type: Plain text
  342. #: guix-git/doc/contributing.texi:171
  343. 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:"
  344. msgstr "或者,当你的本地 Git 仓库与默认的不符时,你可以通过环境变量 @code{GUIX_GIT_KEYRING} 提供一个对@code{keyring} 分支的引用。下面的例子假设你有一个名为 @samp{myremote} 的 Git 远程分支,它指向官方仓库:"
  345. #. type: example
  346. #: guix-git/doc/contributing.texi:174
  347. #, no-wrap
  348. msgid "make authenticate GUIX_GIT_KEYRING=myremote/keyring\n"
  349. msgstr "make authenticate GUIX_GIT_KEYRING=myremote/keyring\n"
  350. #. type: quotation
  351. #: guix-git/doc/contributing.texi:176 guix-git/doc/contributing.texi:790
  352. #: guix-git/doc/contributing.texi:1417 guix-git/doc/contributing.texi:1462
  353. #: guix-git/doc/contributing.texi:1780 guix-git/doc/guix.texi:680
  354. #: guix-git/doc/guix.texi:729 guix-git/doc/guix.texi:933
  355. #: guix-git/doc/guix.texi:1564 guix-git/doc/guix.texi:1951
  356. #: guix-git/doc/guix.texi:2164 guix-git/doc/guix.texi:2226
  357. #: guix-git/doc/guix.texi:2413 guix-git/doc/guix.texi:2635
  358. #: guix-git/doc/guix.texi:2847 guix-git/doc/guix.texi:4079
  359. #: guix-git/doc/guix.texi:4857 guix-git/doc/guix.texi:4871
  360. #: guix-git/doc/guix.texi:4928 guix-git/doc/guix.texi:4981
  361. #: guix-git/doc/guix.texi:5211 guix-git/doc/guix.texi:6001
  362. #: guix-git/doc/guix.texi:6022 guix-git/doc/guix.texi:6644
  363. #: guix-git/doc/guix.texi:6923 guix-git/doc/guix.texi:7044
  364. #: guix-git/doc/guix.texi:7073 guix-git/doc/guix.texi:7114
  365. #: guix-git/doc/guix.texi:7169 guix-git/doc/guix.texi:8597
  366. #: guix-git/doc/guix.texi:10802 guix-git/doc/guix.texi:10944
  367. #: guix-git/doc/guix.texi:11014 guix-git/doc/guix.texi:12892
  368. #: guix-git/doc/guix.texi:12932 guix-git/doc/guix.texi:13032
  369. #: guix-git/doc/guix.texi:13257 guix-git/doc/guix.texi:13269
  370. #: guix-git/doc/guix.texi:15970 guix-git/doc/guix.texi:16664
  371. #: guix-git/doc/guix.texi:16770 guix-git/doc/guix.texi:17747
  372. #: guix-git/doc/guix.texi:18305 guix-git/doc/guix.texi:18807
  373. #: guix-git/doc/guix.texi:21895 guix-git/doc/guix.texi:22078
  374. #: guix-git/doc/guix.texi:22565 guix-git/doc/guix.texi:27143
  375. #: guix-git/doc/guix.texi:27752 guix-git/doc/guix.texi:31140
  376. #: guix-git/doc/guix.texi:35316 guix-git/doc/guix.texi:39561
  377. #: guix-git/doc/guix.texi:39635 guix-git/doc/guix.texi:39677
  378. #: guix-git/doc/guix.texi:39952 guix-git/doc/guix.texi:40122
  379. #: guix-git/doc/guix.texi:40290 guix-git/doc/guix.texi:40397
  380. #: guix-git/doc/guix.texi:40443 guix-git/doc/guix.texi:40500
  381. #: guix-git/doc/guix.texi:40527 guix-git/doc/guix.texi:40865
  382. #: guix-git/doc/guix.texi:42073 guix-git/doc/guix.texi:42148
  383. #: guix-git/doc/guix.texi:42198 guix-git/doc/guix.texi:42248
  384. #: guix-git/doc/guix.texi:42353 guix-git/doc/guix.texi:43862
  385. #: guix-git/doc/guix.texi:45064
  386. #, no-wrap
  387. msgid "Note"
  388. msgstr "注"
  389. #. type: quotation
  390. #: guix-git/doc/contributing.texi:180
  391. 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."
  392. msgstr "建议你在每次调用 @command{git pull} 后运行 @command{make authenticate} 。这将确保你持续接收合法的变动到仓库。"
  393. #. type: Plain text
  394. #: guix-git/doc/contributing.texi:184
  395. msgid "After updating the repository, @command{make} might fail with an error similar to the following example:"
  396. msgstr "在每次更新仓库后,@command{make} 可能会因为一个错误而失败,就像下面的例子:"
  397. #. type: example
  398. #: guix-git/doc/contributing.texi:188
  399. #, no-wrap
  400. msgid ""
  401. "error: failed to load 'gnu/packages/dunst.scm':\n"
  402. "ice-9/eval.scm:293:34: In procedure abi-check: #<record-type <origin>>: record ABI mismatch; recompilation needed\n"
  403. msgstr ""
  404. "error: failed to load 'gnu/packages/dunst.scm':\n"
  405. "ice-9/eval.scm:293:34: In procedure abi-check: #<record-type <origin>>: record ABI mismatch; recompilation needed\n"
  406. #. type: Plain text
  407. #: guix-git/doc/contributing.texi:194
  408. 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}."
  409. msgstr "它的意思是 Guix 定义的一个记录类型变动了(在这个例子中,为 @code{origin} 记录),并且全部 guix 都需要重编译来让这个变动生效。运行 @command{make clean-go} 和 @command{make} 来重新编译。"
  410. #. type: Plain text
  411. #: guix-git/doc/contributing.texi:202
  412. 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."
  413. msgstr "为了保持一个合适的工作环境,你会发现在你的本地代码树里测试修改而不用安装它们会很有用。TODO: So that you can distinguish between your ``end-user'' hat and your ``motley'' costume."
  414. #. type: Plain text
  415. #: guix-git/doc/contributing.texi:213
  416. #, fuzzy
  417. 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):"
  418. 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模块。}:"
  419. #. type: example
  420. #: guix-git/doc/contributing.texi:216
  421. #, no-wrap
  422. msgid "$ ./pre-inst-env guix build hello\n"
  423. msgstr "$ ./pre-inst-env guix build hello\n"
  424. #. type: Plain text
  425. #: guix-git/doc/contributing.texi:220
  426. msgid "Similarly, an example for a Guile session using the Guix modules:"
  427. msgstr "同样,一个使用 Guix 模块的 Guile 会话的例子:"
  428. #. type: example
  429. #: guix-git/doc/contributing.texi:223
  430. #, no-wrap
  431. msgid ""
  432. "$ ./pre-inst-env guile -c '(use-modules (guix utils)) (pk (%current-system))'\n"
  433. "\n"
  434. msgstr ""
  435. "$ ./pre-inst-env guile -c '(use-modules (guix utils)) (pk (%current-system))'\n"
  436. "\n"
  437. #. type: example
  438. #: guix-git/doc/contributing.texi:225
  439. #, no-wrap
  440. msgid ";;; (\"x86_64-linux\")\n"
  441. msgstr ";;; (\"x86_64-linux\")\n"
  442. #. type: cindex
  443. #: guix-git/doc/contributing.texi:228
  444. #, no-wrap
  445. msgid "REPL"
  446. msgstr "REPL"
  447. #. type: cindex
  448. #: guix-git/doc/contributing.texi:229
  449. #, no-wrap
  450. msgid "read-eval-print loop"
  451. msgstr "read-eval-print loop"
  452. #. type: Plain text
  453. #: guix-git/doc/contributing.texi:231
  454. #, fuzzy
  455. #| msgid "@dots{} and for a REPL (@pxref{Using Guile Interactively,,, guile, Guile Reference Manual}):"
  456. msgid "@dots{} and for a REPL (@pxref{Using Guix Interactively}):"
  457. msgstr "@dots{} and for a REPL (@pxref{Using Guile Interactively,,, guile, Guile Reference Manual}):"
  458. #. type: example
  459. #: guix-git/doc/contributing.texi:246
  460. #, no-wrap
  461. msgid ""
  462. "$ ./pre-inst-env guile\n"
  463. "scheme@@(guile-user)> ,use(guix)\n"
  464. "scheme@@(guile-user)> ,use(gnu)\n"
  465. "scheme@@(guile-user)> (define snakes\n"
  466. " (fold-packages\n"
  467. " (lambda (package lst)\n"
  468. " (if (string-prefix? \"python\"\n"
  469. " (package-name package))\n"
  470. " (cons package lst)\n"
  471. " lst))\n"
  472. " '()))\n"
  473. "scheme@@(guile-user)> (length snakes)\n"
  474. "$1 = 361\n"
  475. msgstr ""
  476. "$ ./pre-inst-env guile\n"
  477. "scheme@@(guile-user)> ,use(guix)\n"
  478. "scheme@@(guile-user)> ,use(gnu)\n"
  479. "scheme@@(guile-user)> (define snakes\n"
  480. " (fold-packages\n"
  481. " (lambda (package lst)\n"
  482. " (if (string-prefix? \"python\"\n"
  483. " (package-name package))\n"
  484. " (cons package lst)\n"
  485. " lst))\n"
  486. " '()))\n"
  487. "scheme@@(guile-user)> (length snakes)\n"
  488. "$1 = 361\n"
  489. #. type: Plain text
  490. #: guix-git/doc/contributing.texi:254
  491. #, fuzzy
  492. 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.}:"
  493. 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模块。}:"
  494. #. type: example
  495. #: guix-git/doc/contributing.texi:257
  496. #, no-wrap
  497. msgid "$ sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild\n"
  498. msgstr "$ sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild\n"
  499. #. type: Plain text
  500. #: guix-git/doc/contributing.texi:261
  501. 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}."
  502. msgstr "@command{pre-inst-env}脚本设置为此好了所有必要的的环境变量,包括@env{PATH}和@env{GUILE_LOAD_PATH}。"
  503. #. type: Plain text
  504. #: guix-git/doc/contributing.texi:266
  505. 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."
  506. msgstr "@command{./pre-inst-env guix pull} @emph{不} 会更新本地源代码树,它只更新符号链接@file{~/.config/guix/current} (@pxref{Invoking guix pull})。如果你想更新本地源代码树,请运行@command{git pull}。"
  507. #. type: Plain text
  508. #: guix-git/doc/contributing.texi:270
  509. msgid "Sometimes, especially if you have recently updated your repository, running @command{./pre-inst-env} will print a message similar to the following example:"
  510. msgstr "有时,特别是刚刚更新过你的仓库时,运行 @command{./pre-inst-env} 将会打印一个消息,类似于下面的例子:"
  511. #. type: example
  512. #: guix-git/doc/contributing.texi:274
  513. #, no-wrap
  514. msgid ""
  515. ";;; note: source file /home/user/projects/guix/guix/progress.scm\n"
  516. ";;; newer than compiled /home/user/projects/guix/guix/progress.go\n"
  517. msgstr ""
  518. ";;; note: source file /home/user/projects/guix/guix/progress.scm\n"
  519. ";;; newer than compiled /home/user/projects/guix/guix/progress.go\n"
  520. #. type: Plain text
  521. #: guix-git/doc/contributing.texi:280
  522. 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."
  523. msgstr "这仅仅是一个提示,你可以安全地忽略它,可以通过运行 @command{make -j4} 来避免这条消息。若你不这么做,Guile 就会运行的稍微慢一些,因为它会解释代码而不是使用预备的 Guile 对象 (@file{.go}) 文件。"
  524. #. type: Plain text
  525. #: guix-git/doc/contributing.texi:285
  526. 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, run @samp{watchexec -w gnu/packages -- make -j4}."
  527. msgstr "你可以使用 @code{watchexec} 包中的 @command{watchexec} 在你干活时自动运行 @command{make}。例如,若要在每次更新一个包文件后都再次构建,运行@samp{watchexec -w gnu/packages -- make -j4}。"
  528. #. type: Plain text
  529. #: guix-git/doc/contributing.texi:294
  530. 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:"
  531. 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}。为此,运行:"
  532. #. type: example
  533. #: guix-git/doc/contributing.texi:297
  534. #, no-wrap
  535. msgid "guix install emacs guile emacs-geiser emacs-geiser-guile\n"
  536. msgstr "guix install emacs guile emacs-geiser emacs-geiser-guile\n"
  537. #. type: Plain text
  538. #: guix-git/doc/contributing.texi:306
  539. 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:"
  540. msgstr "Geiser 允许在 Emacs 里进行交互式的、增长式的开发:buffer 里的代码补全和执行,获取一行的文档 (docstrings),上下文敏感的补全,@kbd{M-.} 跳转到对象定义,测试代码的 REPL,及更多(@pxref{Introduction,,, geiser, Geiser User Manual})。为了方便的 Guix 开发,请确保修改 Guile 的加载路径 (load path) 以使其能从你的项目里找到源代码文件:"
  541. #. type: lisp
  542. #: guix-git/doc/contributing.texi:311
  543. #, no-wrap
  544. msgid ""
  545. ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  546. "(with-eval-after-load 'geiser-guile\n"
  547. " (add-to-list 'geiser-guile-load-path \"~/src/guix\"))\n"
  548. msgstr ""
  549. ";; @r{假设Guix项目在 ~/src/guix.}\n"
  550. "(with-eval-after-load 'geiser-guile\n"
  551. " (add-to-list 'geiser-guile-load-path \"~/src/guix\"))\n"
  552. #. type: Plain text
  553. #: guix-git/doc/contributing.texi:319
  554. 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."
  555. msgstr "真正编辑代码时别忘了 Emacs 自带了方便的 Scheme 模式。而且,一定不要错过 @url{https://www.emacswiki.org/emacs/ParEdit, Paredit}。它提供了直接操作语法树的的功能,例如,用 S- 表达式替换父节点,为 S- 表达式添加、删除前后的括号,删除后面的 S- 表达式,等等。"
  556. #. type: cindex
  557. #: guix-git/doc/contributing.texi:320
  558. #, no-wrap
  559. msgid "code snippets"
  560. msgstr "代码片段"
  561. #. type: cindex
  562. #: guix-git/doc/contributing.texi:321
  563. #, no-wrap
  564. msgid "templates"
  565. msgstr "模板"
  566. #. type: cindex
  567. #: guix-git/doc/contributing.texi:322
  568. #, no-wrap
  569. msgid "reducing boilerplate"
  570. msgstr "减少样板"
  571. #. type: Plain text
  572. #: guix-git/doc/contributing.texi:332
  573. #, fuzzy
  574. msgid "We also provide templates for common git commit messages and package definitions in the @file{etc/snippets} directory. These templates can be used to expand short trigger strings to interactive text snippets. If you use @url{https://joaotavora.github.io/yasnippet/, YASnippet}, you may want to add the @file{etc/snippets/yas} snippets directory to the @var{yas-snippet-dirs} variable. If you use @url{https://github.com/minad/tempel/, Tempel}, you may want to add the @file{etc/snippets/tempel/*} path to the @var{tempel-path} variable in Emacs."
  575. msgstr "在@file{etc/snippets}文件夹里,我们还为普通的git commit信息和软件包定义提供模板。这些模板可以通过@url{http://joaotavora.github.io/yasnippet/, YASnippet}使用,它可以把短的触发字符串扩展成交互式的文字片段。你可能希望将这个文件夹添加到Emacs的@var{yas-snippet-dirs}变量里。"
  576. #. type: lisp
  577. #: guix-git/doc/contributing.texi:344
  578. #, no-wrap
  579. msgid ""
  580. ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  581. ";; @r{Yasnippet configuration}\n"
  582. "(with-eval-after-load 'yasnippet\n"
  583. " (add-to-list 'yas-snippet-dirs \"~/src/guix/etc/snippets/yas\"))\n"
  584. ";; @r{Tempel configuration}\n"
  585. "(with-eval-after-load 'tempel\n"
  586. " ;; Ensure tempel-path is a list -- it may also be a string.\n"
  587. " (unless (listp 'tempel-path)\n"
  588. " (setq tempel-path (list tempel-path)))\n"
  589. " (add-to-list 'tempel-path \"~/src/guix/etc/snippets/tempel/*\"))\n"
  590. msgstr ""
  591. ";; @r{假设 Guix 签出在 ~/src/guix 中。}\n"
  592. ";; @r{Yasnippet 配置}\n"
  593. "(with-eval-after-load 'yasnippet\n"
  594. " (add-to-list 'yas-snippet-dirs \"~/src/guix/etc/snippets/yas\"))\n"
  595. ";; @r{Tempel 配置}\n"
  596. "(with-eval-after-load 'tempel\n"
  597. " ;; 确保 tempel-path 是一个列表——它也可以是一个字符串。\n"
  598. " (unless (listp 'tempel-path)\n"
  599. " (setq tempel-path (list tempel-path)))\n"
  600. " (add-to-list 'tempel-path \"~/src/guix/etc/snippets/tempel/*\"))\n"
  601. #. type: Plain text
  602. #: guix-git/doc/contributing.texi:352
  603. 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."
  604. msgstr "commit信息片段显示staged文件需要依赖@url{https://magit.vc/, Magit}。编辑commit信息时,输入@code{add},然后按@kbd{TAB}就可以插入一段用于新增软件包的模板;输入@code{update},然后按@kbd{TAB}可以插入一段更新软件包的模板;输入@code{https}然后按@kbd{TAB}可以插入一段修改主页URI为HTTPS的模板。"
  605. #. type: Plain text
  606. #: guix-git/doc/contributing.texi:358
  607. 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."
  608. msgstr "@code{scheme-mode}最重要的模板可以通过输入@code{package...},然后按@kbd{TAB}触发。这个片段还插入了触发字符串@code{origin...},以进一步展开。@code{origin}片段更进一步的可能插入其它以@code{...}结尾的触发字符串,它们可以被继续展开。"
  609. #. type: cindex
  610. #: guix-git/doc/contributing.texi:359
  611. #, no-wrap
  612. msgid "insert or update copyright"
  613. msgstr "插入或更新版权"
  614. #. type: code{#1}
  615. #: guix-git/doc/contributing.texi:360
  616. #, no-wrap
  617. msgid "M-x guix-copyright"
  618. msgstr "M-x guix-copyright"
  619. #. type: code{#1}
  620. #: guix-git/doc/contributing.texi:361
  621. #, no-wrap
  622. msgid "M-x copyright-update"
  623. msgstr "M-x copyright-update"
  624. #. type: Plain text
  625. #: guix-git/doc/contributing.texi:365
  626. 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."
  627. msgstr "我们在@file{etc/copyright.el} 中额外提供了版权的插入和自动更新。你也许会想要设置你的全名,邮箱以及加载一个文件。"
  628. #. type: lisp
  629. #: guix-git/doc/contributing.texi:371
  630. #, no-wrap
  631. msgid ""
  632. "(setq user-full-name \"Alice Doe\")\n"
  633. "(setq user-mail-address \"alice@@mail.org\")\n"
  634. ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  635. "(load-file \"~/src/guix/etc/copyright.el\")\n"
  636. msgstr ""
  637. "(setq user-full-name \"Alice Doe\")\n"
  638. "(setq user-mail-address \"alice@@mail.org\")\n"
  639. ";; @r{假设 Guix 签出在 ~/src/guix。}\n"
  640. "(load-file \"~/src/guix/etc/copyright.el\")\n"
  641. #. type: Plain text
  642. #: guix-git/doc/contributing.texi:374
  643. msgid "To insert a copyright at the current line invoke @code{M-x guix-copyright}."
  644. msgstr "要在当前行插入版权信息,调用@code{M-x guix-copyright}。"
  645. #. type: Plain text
  646. #: guix-git/doc/contributing.texi:376
  647. msgid "To update a copyright you need to specify a @code{copyright-names-regexp}."
  648. msgstr "要更新一个版权信息,你需要指定 @code{copyright-names-regexp}。"
  649. #. type: lisp
  650. #: guix-git/doc/contributing.texi:380
  651. #, no-wrap
  652. msgid ""
  653. "(setq copyright-names-regexp\n"
  654. " (format \"%s <%s>\" user-full-name user-mail-address))\n"
  655. msgstr ""
  656. "(setq copyright-names-regexp\n"
  657. " (format \"%s <%s>\" user-full-name user-mail-address))\n"
  658. #. type: Plain text
  659. #: guix-git/doc/contributing.texi:386
  660. 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."
  661. msgstr "你可以通过执行 @code{M-x copyright-update} 检查版权信息是否已更新。若你想要在每次缓存区保存后自动做这件事,就在 Emacs 中添加 @code{(add-hook 'after-save-hook 'copyright-update)}。"
  662. #. type: cindex
  663. #: guix-git/doc/contributing.texi:390
  664. #, no-wrap
  665. msgid "packages, creating"
  666. msgstr "软件包, 创建"
  667. #. type: Plain text
  668. #: guix-git/doc/contributing.texi:394
  669. 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."
  670. msgstr "这个GNU发行版正在开发的早期阶段,可能缺少一些你喜欢的软件。这个章节介绍你可以怎样帮助这个发行版成长。"
  671. #. type: Plain text
  672. #: guix-git/doc/contributing.texi:402
  673. 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."
  674. msgstr "自由软件通常以@dfn{源代码包}的形式分发,通常是包含完整代码的@file{tar.gz}包。添加软件包到这个发行版意味着两件事:添加描述如何构建包的@dfn{配方}和一系列依赖软件,以及添加配方之外的@dfn{软件包元数据},如一段文字描述和证书信息。"
  675. #. type: Plain text
  676. #: guix-git/doc/contributing.texi:411
  677. 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}."
  678. msgstr "在Guix里所有这些信息都包含在@dfn{软件包定义}里。软件包定义提供了软件包的高层视角。它们使用Scheme编程语言编写,事实上,对每个软件包我们都定义一个绑定到软件包定义的的变量,并且从模块(@pxref{Package Modules})中导出那个变量。然而,深入的Scheme知识@emph{不}是创建软件包的前提条件。若要了解软件包的更多信息,@pxref{Defining Packages}。"
  679. #. type: Plain text
  680. #: guix-git/doc/contributing.texi:417
  681. 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}):"
  682. msgstr "一旦软件包定义准备好了,并且包存在Guix代码树的一个文件里,你可以用@command{guix build} (@pxref{Invoking guix build})命令测试它。假设这个新软件包的名字叫做@code{gnew},你可以在Guix构建树里运行这个命令(@pxref{Running Guix Before It Is Installed}):"
  683. #. type: example
  684. #: guix-git/doc/contributing.texi:420
  685. #, no-wrap
  686. msgid "./pre-inst-env guix build gnew --keep-failed\n"
  687. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  688. #. type: Plain text
  689. #: guix-git/doc/contributing.texi:426
  690. 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."
  691. msgstr "使用@code{--keep-failed}参数会保留失败的构建树,这可以使调试构建错误更容易。@code{--log-file}也是一个调试时很有用的参数,它可以用来访问构建日志。"
  692. #. type: Plain text
  693. #: guix-git/doc/contributing.texi:431
  694. 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:"
  695. msgstr "如果@command{guix}命令找不到这个软件包,那可能是因为源文件包含语法错误,或者缺少导出软件包的@code{define-public}语句。为了查找错误,你可以用Guile导入这个模块以了解这个错误的详情:"
  696. #. type: example
  697. #: guix-git/doc/contributing.texi:434
  698. #, no-wrap
  699. msgid "./pre-inst-env guile -c '(use-modules (gnu packages gnew))'\n"
  700. msgstr "./pre-inst-env guile -c '(use-modules (gnu packages gnew))'\n"
  701. #. type: Plain text
  702. #: guix-git/doc/contributing.texi:441
  703. #, fuzzy
  704. 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}."
  705. msgstr "一旦你的软件包可以正确构建,请给我们发送补丁(@pxref{Submitting Patches})。当然,如果你需要帮助,我们也会很乐意帮助你。一旦补丁被提交到 Guix 仓库里,这个新的软件包会被自动地在支持的平台上构建 @url{@value{SUBSTITUTE-URL}, our continuous integration system}。"
  706. #. type: cindex
  707. #: guix-git/doc/contributing.texi:442
  708. #, no-wrap
  709. msgid "substituter"
  710. msgstr "substitutes"
  711. #. type: Plain text
  712. #: guix-git/doc/contributing.texi:449
  713. #, fuzzy
  714. #| 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."
  715. 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."
  716. msgstr "用户可以通过运行@command{guix pull}命令获取最新的软件包定义(@pxref{Invoking guix pull})。当@code{@value{SUBSTITUTE-SERVER}}构建好这些软件包之后,安装这些软件包时会自动从服务器(@pxref{Substitutes})上下载构建好的二进制包。唯一需要人工干预的地方是评审和应用代码补丁。"
  717. #. type: subsection
  718. #: guix-git/doc/contributing.texi:464 guix-git/doc/contributing.texi:466
  719. #: guix-git/doc/contributing.texi:467
  720. #, no-wrap
  721. msgid "Software Freedom"
  722. msgstr "软件自由"
  723. #. type: menuentry
  724. #: guix-git/doc/contributing.texi:464
  725. msgid "What may go into the distribution."
  726. msgstr "什么可以进入这个发行版。"
  727. #. type: subsection
  728. #: guix-git/doc/contributing.texi:464 guix-git/doc/contributing.texi:494
  729. #: guix-git/doc/contributing.texi:495
  730. #, no-wrap
  731. msgid "Package Naming"
  732. msgstr "软件包命名"
  733. #. type: menuentry
  734. #: guix-git/doc/contributing.texi:464
  735. msgid "What's in a name?"
  736. msgstr "名字里包含什么?"
  737. #. type: subsection
  738. #: guix-git/doc/contributing.texi:464 guix-git/doc/contributing.texi:527
  739. #: guix-git/doc/contributing.texi:528
  740. #, no-wrap
  741. msgid "Version Numbers"
  742. msgstr "版本号"
  743. #. type: menuentry
  744. #: guix-git/doc/contributing.texi:464
  745. msgid "When the name is not enough."
  746. msgstr "当名字不够时。"
  747. #. type: subsection
  748. #: guix-git/doc/contributing.texi:464 guix-git/doc/contributing.texi:634
  749. #: guix-git/doc/contributing.texi:635
  750. #, no-wrap
  751. msgid "Synopses and Descriptions"
  752. msgstr "简介和描述"
  753. #. type: menuentry
  754. #: guix-git/doc/contributing.texi:464
  755. msgid "Helping users find the right package."
  756. msgstr "帮助用户寻找合适的软件包。"
  757. #. type: subsection
  758. #: guix-git/doc/contributing.texi:464 guix-git/doc/contributing.texi:713
  759. #: guix-git/doc/contributing.texi:714
  760. #, no-wrap
  761. msgid "Snippets versus Phases"
  762. msgstr "原始片段 vs. 构建阶段"
  763. #. type: menuentry
  764. #: guix-git/doc/contributing.texi:464
  765. msgid "Whether to use a snippet, or a build phase."
  766. msgstr "用片段,还是用构建阶段。"
  767. #. type: subsection
  768. #: guix-git/doc/contributing.texi:464 guix-git/doc/contributing.texi:728
  769. #: guix-git/doc/contributing.texi:729 guix-git/doc/guix.texi:2148
  770. #, no-wrap
  771. msgid "Emacs Packages"
  772. msgstr "Emacs 包"
  773. #. type: menuentry
  774. #: guix-git/doc/contributing.texi:464
  775. msgid "Your Elisp fix."
  776. msgstr "你的 Elisp 补丁。"
  777. #. type: subsection
  778. #: guix-git/doc/contributing.texi:464 guix-git/doc/contributing.texi:768
  779. #: guix-git/doc/contributing.texi:769
  780. #, no-wrap
  781. msgid "Python Modules"
  782. msgstr "Python模块"
  783. #. type: menuentry
  784. #: guix-git/doc/contributing.texi:464
  785. msgid "A touch of British comedy."
  786. msgstr "接触英式的喜剧。"
  787. #. type: subsection
  788. #: guix-git/doc/contributing.texi:464 guix-git/doc/contributing.texi:863
  789. #: guix-git/doc/contributing.texi:864
  790. #, no-wrap
  791. msgid "Perl Modules"
  792. msgstr "Perl模块"
  793. #. type: menuentry
  794. #: guix-git/doc/contributing.texi:464
  795. msgid "Little pearls."
  796. msgstr "小珍珠。"
  797. #. type: subsection
  798. #: guix-git/doc/contributing.texi:464 guix-git/doc/contributing.texi:879
  799. #: guix-git/doc/contributing.texi:880
  800. #, no-wrap
  801. msgid "Java Packages"
  802. msgstr "Java包"
  803. #. type: menuentry
  804. #: guix-git/doc/contributing.texi:464
  805. msgid "Coffee break."
  806. msgstr "喝咖啡休息。"
  807. #. type: subsection
  808. #: guix-git/doc/contributing.texi:464 guix-git/doc/contributing.texi:899
  809. #: guix-git/doc/contributing.texi:900
  810. #, no-wrap
  811. msgid "Rust Crates"
  812. msgstr "Rust Crates"
  813. #. type: menuentry
  814. #: guix-git/doc/contributing.texi:464
  815. msgid "Beware of oxidation."
  816. msgstr "谨防氧化。"
  817. #. type: subsection
  818. #: guix-git/doc/contributing.texi:464 guix-git/doc/contributing.texi:933
  819. #: guix-git/doc/contributing.texi:934
  820. #, no-wrap
  821. msgid "Elm Packages"
  822. msgstr "Elm包"
  823. #. type: menuentry
  824. #: guix-git/doc/contributing.texi:464
  825. msgid "Trees of browser code"
  826. msgstr "树状浏览器代码"
  827. #. type: subsection
  828. #: guix-git/doc/contributing.texi:464 guix-git/doc/contributing.texi:1014
  829. #: guix-git/doc/contributing.texi:1015
  830. #, no-wrap
  831. msgid "Fonts"
  832. msgstr "字体"
  833. #. type: menuentry
  834. #: guix-git/doc/contributing.texi:464
  835. msgid "Fond of fonts."
  836. msgstr "字体的乐趣。"
  837. #. type: cindex
  838. #: guix-git/doc/contributing.texi:470
  839. #, no-wrap
  840. msgid "free software"
  841. msgstr "自由软件"
  842. #. type: Plain text
  843. #: guix-git/doc/contributing.texi:478
  844. 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."
  845. msgstr "开发 GNU 操作系统是为了用户拥有计算的自由。GNU是@dfn{自由软件},这意味着它有@url{https://www.gnu.org/philosophy/free-sw.html,四项重要的自由}:运行程序的自由,以源代码形式学习和修改程序的自由,原样重新分发副本的自由,和分发修改后的版本的自由。GNU 发行版里包含的软件包只提供遵守这四项自由的软件。"
  846. #. type: Plain text
  847. #: guix-git/doc/contributing.texi:484
  848. 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."
  849. msgstr "此外,GNU 发行版遵循@url{https://www.gnu.org/distros/free-system-distribution-guidelines.html,自由软件发行版准则}。这些准则拒绝非自由的固件和对非自由软件的推荐,并讨论解决商标和专利的方法。"
  850. #. type: Plain text
  851. #: guix-git/doc/contributing.texi:492
  852. 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."
  853. msgstr "某些上游的软件包源代码包含一小部分违反上述准则的可选的子集,比如这个子集本身就是非自由代码。这时,这些讨厌的代码需要用合适的补丁或者软件包定义(@pxref{Defining Packages})里的@code{origin}里的代码片段移除。这样,@code{guix build --source}就可以返回自由的源代码而不是未经修改的上游源代码。"
  854. #. type: cindex
  855. #: guix-git/doc/contributing.texi:497
  856. #, no-wrap
  857. msgid "package name"
  858. msgstr "软件包名字"
  859. #. type: Plain text
  860. #: guix-git/doc/contributing.texi:505
  861. 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}."
  862. msgstr "一个软件包事实上有两个名字:第一个是@emph{Scheme变量}的名字,即用@code{define-public}定义的名字。通过这个名字,软件包可以被Scheme代码找到,如用作其它软件包的输入。第二个名字是软件包定义里的@code{name}属性的字符串值。这个名字用于软件包管理命令,如:@command{guix package},@command{guix build}。"
  863. #. type: Plain text
  864. #: guix-git/doc/contributing.texi:510
  865. 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}."
  866. msgstr "两个名字通常是相同的,常是上游项目名字转成小写字母并把下划线替换成连字符的结果。比如,GNUnet转成@code{gnunet},SDL_net转成@code{sdl-net}。"
  867. #. type: Plain text
  868. #: guix-git/doc/contributing.texi:518
  869. 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."
  870. msgstr "这条规则有一个值得注意的例外,那就是当工程名只有一个字符,或与它同名的一个旧工程已经存在——不论是否已经被打为 Guix 包。你应该动用常识来让这些名字无歧义且有意义。比如说,上游称为 ``s'' 的 shell 程序在 Guix 中称为 @code{s-shell} 而 @emph{不是} @code{s}。你可以随便问问你的黑客伙计们来获得一些启发。"
  871. #. type: Plain text
  872. #: guix-git/doc/contributing.texi:523
  873. 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."
  874. msgstr "我们不给库软件包添加@code{lib}前缀,除非它是项目官方名字的一部分。但是@pxref{Python Modules}和@ref{Perl Modules}有关于Python和Perl语言的特殊规则。"
  875. #. type: Plain text
  876. #: guix-git/doc/contributing.texi:525
  877. msgid "Font package names are handled differently, @pxref{Fonts}."
  878. msgstr "字体软件包的名字处理起来不同,@pxref{Fonts}."
  879. #. type: cindex
  880. #: guix-git/doc/contributing.texi:530
  881. #, no-wrap
  882. msgid "package version"
  883. msgstr "软件包版本"
  884. #. type: Plain text
  885. #: guix-git/doc/contributing.texi:539
  886. 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."
  887. msgstr "我们通常只为每个自由软件的最新版本打包。但是有时候,比如对于版本不兼容的库,需要有同一个软件包的两个或更多版本。它们需要使用不同的Scheme变量名。我们为最新的版本使用@ref{Package Naming}里规定的名字,旧的版本使用加上后缀的名字,后缀是@code{-}和可以区分开版本号的版本号的最小前缀。"
  888. #. type: Plain text
  889. #: guix-git/doc/contributing.texi:542
  890. msgid "The name inside the package definition is the same for all versions of a package and does not contain any version number."
  891. msgstr "软件包定义里的名字对于同一个软件包的所有版本都是相同的,并且不含有版本号。"
  892. #. type: Plain text
  893. #: guix-git/doc/contributing.texi:544
  894. msgid "For instance, the versions 2.24.20 and 3.9.12 of GTK+ may be packaged as follows:"
  895. msgstr "例如,GTK+的2.24.20和3.9.12两个版本可以这样打包:"
  896. #. type: lisp
  897. #: guix-git/doc/contributing.texi:556
  898. #, no-wrap
  899. msgid ""
  900. "(define-public gtk+\n"
  901. " (package\n"
  902. " (name \"gtk+\")\n"
  903. " (version \"3.9.12\")\n"
  904. " ...))\n"
  905. "(define-public gtk+-2\n"
  906. " (package\n"
  907. " (name \"gtk+\")\n"
  908. " (version \"2.24.20\")\n"
  909. " ...))\n"
  910. msgstr ""
  911. "(define-public gtk+\n"
  912. " (package\n"
  913. " (name \"gtk+\")\n"
  914. " (version \"3.9.12\")\n"
  915. " ...))\n"
  916. "(define-public gtk+-2\n"
  917. " (package\n"
  918. " (name \"gtk+\")\n"
  919. " (version \"2.24.20\")\n"
  920. " ...))\n"
  921. #. type: Plain text
  922. #: guix-git/doc/contributing.texi:558
  923. msgid "If we also wanted GTK+ 3.8.2, this would be packaged as"
  924. msgstr "如果我们还需要GTK+ 3.8.2,就这样打包"
  925. #. type: lisp
  926. #: guix-git/doc/contributing.texi:564
  927. #, no-wrap
  928. msgid ""
  929. "(define-public gtk+-3.8\n"
  930. " (package\n"
  931. " (name \"gtk+\")\n"
  932. " (version \"3.8.2\")\n"
  933. " ...))\n"
  934. msgstr ""
  935. "(define-public gtk+-3.8\n"
  936. " (package\n"
  937. " (name \"gtk+\")\n"
  938. " (version \"3.8.2\")\n"
  939. " ...))\n"
  940. #. type: cindex
  941. #: guix-git/doc/contributing.texi:568
  942. #, no-wrap
  943. msgid "version number, for VCS snapshots"
  944. msgstr "用于版本控制快照的版本号"
  945. #. type: Plain text
  946. #: guix-git/doc/contributing.texi:574
  947. 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?"
  948. msgstr "有时候,我们为软件包上游的版本控制系统(VCS)的快照而不是正式发布版打包。这是特殊情况,因为决定哪个是稳定版的权力应该属于上游开发者。然而,有时候这是必须的。那么,我们该如何决定写在@code{version}里的版本号呢?"
  949. #. type: Plain text
  950. #: guix-git/doc/contributing.texi:582
  951. 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:"
  952. msgstr "显然,我们需要让VCS快照的commit ID在版本号中体现出来,但是我们也需要确保版本号单调递增,以便@command{guix package --upgrade}决定哪个版本号更新。由于commit ID,尤其是Git的commit ID,不是单调递增的,我们添加一个每次升级快照时都手动增长的revision数字。最后的版本号字符串看起来是这样:"
  953. #. type: example
  954. #: guix-git/doc/contributing.texi:591
  955. #, no-wrap
  956. msgid ""
  957. "2.0.11-3.cabba9e\n"
  958. " ^ ^ ^\n"
  959. " | | `-- upstream commit ID\n"
  960. " | |\n"
  961. " | `--- Guix package revision\n"
  962. " |\n"
  963. "latest upstream version\n"
  964. msgstr ""
  965. "2.0.11-3.cabba9e\n"
  966. " ^ ^ ^\n"
  967. " | | `-- 上游的commit ID\n"
  968. " | |\n"
  969. " | `--- Guix软件包的revision\n"
  970. " |\n"
  971. "最新的上游版本号\n"
  972. #. type: Plain text
  973. #: guix-git/doc/contributing.texi:601
  974. 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:"
  975. msgstr "把@code{版本号}里的commit ID截短,比如只取7个数字,是一个好主意。它避免了美学上的烦恼(假设美学在这里很重要),以及操作系统限制引起的问题(比如Linux内核的127字节)。尽管如此,在@code{origin}里最好使用完整的commit ID,以避免混淆。通常一个软件包应该看起来是下面这样:"
  976. #. type: lisp
  977. #: guix-git/doc/contributing.texi:618
  978. #, no-wrap
  979. msgid ""
  980. "(define my-package\n"
  981. " (let ((commit \"c3f29bc928d5900971f65965feaae59e1272a3f7\")\n"
  982. " (revision \"1\")) ;Guix package revision\n"
  983. " (package\n"
  984. " (version (git-version \"0.9\" revision commit))\n"
  985. " (source (origin\n"
  986. " (method git-fetch)\n"
  987. " (uri (git-reference\n"
  988. " (url \"git://example.org/my-package.git\")\n"
  989. " (commit commit)))\n"
  990. " (sha256 (base32 \"1mbikn@dots{}\"))\n"
  991. " (file-name (git-file-name name version))))\n"
  992. " ;; @dots{}\n"
  993. " )))\n"
  994. msgstr ""
  995. "(define my-package\n"
  996. " (let ((commit \"c3f29bc928d5900971f65965feaae59e1272a3f7\")\n"
  997. " (revision \"1\")) ;Guix软件包的revision\n"
  998. " (package\n"
  999. " (version (git-version \"0.9\" revision commit))\n"
  1000. " (source (origin\n"
  1001. " (method git-fetch)\n"
  1002. " (uri (git-reference\n"
  1003. " (url \"git://example.org/my-package.git\")\n"
  1004. " (commit commit)))\n"
  1005. " (sha256 (base32 \"1mbikn@dots{}\"))\n"
  1006. " (file-name (git-file-name name version))))\n"
  1007. " ;; @dots{}\n"
  1008. " )))\n"
  1009. #. type: deffn
  1010. #: guix-git/doc/contributing.texi:620
  1011. #, no-wrap
  1012. msgid "{Scheme Procedure} git-version @var{VERSION} @var{REVISION} @var{COMMIT}"
  1013. msgstr "{Scheme 过程} git-version @var{VERSION} @var{REVISION} @var{COMMIT}"
  1014. #. type: deffn
  1015. #: guix-git/doc/contributing.texi:622
  1016. msgid "Return the version string for packages using @code{git-fetch}."
  1017. msgstr "返回包的版本字符串,利用 @code{git-fetch}。"
  1018. #. type: lisp
  1019. #: guix-git/doc/contributing.texi:626
  1020. #, no-wrap
  1021. msgid ""
  1022. "(git-version \"0.2.3\" \"0\" \"93818c936ee7e2f1ba1b315578bde363a7d43d05\")\n"
  1023. "@result{} \"0.2.3-0.93818c9\"\n"
  1024. msgstr ""
  1025. "(git-version \"0.2.3\" \"0\" \"93818c936ee7e2f1ba1b315578bde363a7d43d05\")\n"
  1026. "@result{} \"0.2.3-0.93818c9\"\n"
  1027. #. type: deffn
  1028. #: guix-git/doc/contributing.texi:629
  1029. #, no-wrap
  1030. msgid "{Scheme Procedure} hg-version @var{VERSION} @var{REVISION} @var{CHANGESET}"
  1031. msgstr "{Scheme 过程} hg-version @var{VERSION} @var{REVISION} @var{CHANGESET}"
  1032. #. type: deffn
  1033. #: guix-git/doc/contributing.texi:632
  1034. msgid "Return the version string for packages using @code{hg-fetch}. It works in the same way as @code{git-version}."
  1035. msgstr "返回包的版本字符串,利用 @code{hg-fetch},就像 @code{git-version} 那样。"
  1036. #. type: cindex
  1037. #: guix-git/doc/contributing.texi:637
  1038. #, no-wrap
  1039. msgid "package description"
  1040. msgstr "软件包描述"
  1041. #. type: cindex
  1042. #: guix-git/doc/contributing.texi:638
  1043. #, no-wrap
  1044. msgid "package synopsis"
  1045. msgstr "软件包简介"
  1046. #. type: Plain text
  1047. #: guix-git/doc/contributing.texi:645
  1048. 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."
  1049. msgstr "我们已经看到,GNU@tie{}Guix里的每个软件包都包含一个简介(synopsis)和一个描述(description)(@pxref{Defining Packages})。简介和描述很重要:它们是@command{guix package --search}搜索的信息,并且是帮助用户决定一个软件包是否符合自己需求的重要信息。因此,打包的人应该关注怎样写它们的内容。"
  1050. #. type: Plain text
  1051. #: guix-git/doc/contributing.texi:653
  1052. 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''."
  1053. 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''。"
  1054. #. type: Plain text
  1055. #: guix-git/doc/contributing.texi:663
  1056. 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."
  1057. msgstr "记住,简介必须能被广大的听众理解。例如,“以SAM格式修改对齐”可能对经验丰富的生物信息科研工作者来说能理解,但是对普通对听众则是无用的甚至是令人误解的。简介最好说明软件包应用的领域。在这个例子中,应该这样描述“修改核苷酸序列的对齐格式”,这会让用户更容易判断这是不是他们想要的。"
  1058. #. type: Plain text
  1059. #: guix-git/doc/contributing.texi:671
  1060. 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."
  1061. msgstr "描述应该在5至10句话之间。使用完整的句子,并且避免在未介绍的情况下使用缩写。请避免推广营销性对词汇,如“世界领先”,“行业最强”,“下一代”,并且避免高级的形容词,如“最先进的”--他们对用户寻找软件包是无用的,甚至是可疑的。相反的,尽量务实,提及用例和功能。"
  1062. #. type: cindex
  1063. #: guix-git/doc/contributing.texi:672
  1064. #, no-wrap
  1065. msgid "Texinfo markup, in package descriptions"
  1066. msgstr "软件包描述里的Texinfo标记"
  1067. #. type: Plain text
  1068. #: guix-git/doc/contributing.texi:681
  1069. #, fuzzy
  1070. #| 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."
  1071. 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 show} take care of rendering it appropriately."
  1072. msgstr "描述可以含有Texinfo标记,这对格式化有帮助,如@code{@@code}、@code{@@dfn}、列表、超链接(@pxref{Overview,,, texinfo, GNU Texinfo})。但是,在使用某些字符时应该小心,如@samp{@@}和花括号是基本的Texinfo特殊字符(@pxref{Special Characters,,, texinfo, GNU Texinfo})。@command{guix package --show}之类的用户界面会解决渲染问题。"
  1073. #. type: Plain text
  1074. #: guix-git/doc/contributing.texi:687
  1075. #, fuzzy
  1076. 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."
  1077. msgstr "简介和描述会由@uref{http://translationproject.org/domain/guix-packages.html, Translation Project}项目的志愿者翻译,从而使尽可能多的用户可以用母语阅读。用户界面用当前区域设置的语言搜索和展示这些信息。"
  1078. #. type: Plain text
  1079. #: guix-git/doc/contributing.texi:692
  1080. 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:"
  1081. msgstr "为了让@command{xgettext}可以把它们提取成待翻译的字符串,简介和描述@emph{必须是文字字符串}。这意味着你不能使用@code{string-append}或@code{format}来合成字符串:"
  1082. #. type: lisp
  1083. #: guix-git/doc/contributing.texi:698
  1084. #, no-wrap
  1085. msgid ""
  1086. "(package\n"
  1087. " ;; @dots{}\n"
  1088. " (synopsis \"This is translatable\")\n"
  1089. " (description (string-append \"This is \" \"*not*\" \" translatable.\")))\n"
  1090. msgstr ""
  1091. "(package\n"
  1092. " ;; @dots{}\n"
  1093. " (synopsis \"这是可以翻译的\")\n"
  1094. " (description (string-append \"这是\" \"*不可以*\" \"翻译的\")))\n"
  1095. #. type: Plain text
  1096. #: guix-git/doc/contributing.texi:706
  1097. 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}):"
  1098. msgstr "翻译是很繁重的工作,所以,作为打包者请更加注意你的简介和介绍,每一个改动都会增加翻译的工作量。为了帮助他们,你可以插入这类可以被他们看到的建议和指示(@pxref{xgettext Invocation,,, gettext, GNU Gettext}):"
  1099. #. type: lisp
  1100. #: guix-git/doc/contributing.texi:711
  1101. #, no-wrap
  1102. msgid ""
  1103. ";; TRANSLATORS: \"X11 resize-and-rotate\" should not be translated.\n"
  1104. "(description \"ARandR is designed to provide a simple visual front end\n"
  1105. "for the X11 resize-and-rotate (RandR) extension. @dots{}\")\n"
  1106. msgstr ""
  1107. ";; TRANSLATORS: \"X11 resize-and-rotate\"不需要翻译。\n"
  1108. "(description \"ARandR为X11 resize-and-rotate (RandR)扩展提供简单的图形界面。@dots{}\")\n"
  1109. #. type: cindex
  1110. #: guix-git/doc/contributing.texi:716
  1111. #, no-wrap
  1112. msgid "snippets, when to use"
  1113. msgstr "何时使用片段"
  1114. #. type: Plain text
  1115. #: guix-git/doc/contributing.texi:727
  1116. 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})."
  1117. msgstr "原始片段和构建阶段的边界比较难以理解。原始片段通常用来移除不想要的文件,比如捆绑的库,非自由源,或者用于应用简单的替换。从原始源迭代出的源应该在上游包支持的系统上都能成功构建包(就是说,像对应的原始源那样动作)。尤其是,原始片段一定不能内嵌有 store 中的项目;这样的补丁更应该在构建阶段完成。参考@code{origin} 记录文档获取更多信息 (@pxref{origin Reference})。"
  1118. #. type: cindex
  1119. #: guix-git/doc/contributing.texi:731
  1120. #, no-wrap
  1121. msgid "emacs, packaging"
  1122. msgstr "emacs,打包"
  1123. #. type: cindex
  1124. #: guix-git/doc/contributing.texi:732
  1125. #, no-wrap
  1126. msgid "elisp, packaging"
  1127. msgstr "elisp,打包"
  1128. #. type: Plain text
  1129. #: guix-git/doc/contributing.texi:744
  1130. 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."
  1131. msgstr "为统一化以及享受构建阶段的方便,比如自动生成 autoloads 文件、字节编译源文件,Emacs 包应该选择 Emacs 构建系统(@pxref{emacs-build-system})。由于没有标准化的方法运行Emacs包的测试用例,测试默认是禁用的。当一个测试用例可用时,可以通过设置 @code{#:tests?} 参数为 @code{#true} 启用。默认条件下,运行测试的命令是 @command{make check},不过其它的命令也可以用 @code{#:test-command} 参数指定。参数 @code{#:test-command} 应当由包含命令和命令参数的列表,并在 @code{check} 阶段调用。"
  1132. #. type: Plain text
  1133. #: guix-git/doc/contributing.texi:749
  1134. 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}."
  1135. msgstr "Emacs包的Elisp依赖项通常在运行时需要时作为 @code{propagated-inputs} 提供。 对于其他包,构建或测试依赖项应指定为@code{native-inputs}。"
  1136. #. type: Plain text
  1137. #: guix-git/doc/contributing.texi:758
  1138. 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:"
  1139. msgstr "Emacs包有时依赖于应与Elisp文件一并安装的资源目录。 @code{#:include} 参数可用于此目的,方法是指定要匹配的正则表达式列表。 使用 @code{#:include} 参数时的最佳实践是扩展而不是覆盖它的默认值(可通过@code{%default-include} 变量访问)。 例如,yasnippet 扩展包通常包含一个 @file{snippets} 目录,可以使用以下命令将其复制到安装目录:"
  1140. #. type: lisp
  1141. #: guix-git/doc/contributing.texi:761
  1142. #, no-wrap
  1143. msgid "#:include (cons \"^snippets/\" %default-include)\n"
  1144. msgstr "#:include (cons \"^snippets/\" %default-include)\n"
  1145. #. type: Plain text
  1146. #: guix-git/doc/contributing.texi:767
  1147. 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."
  1148. msgstr "当遇到问题时,明智的做法是检查包主要源文件中是否存在 @code{Package-Requires} 扩展标头,以及是否满足其中列出的任何依赖项及其版本。"
  1149. #. type: cindex
  1150. #: guix-git/doc/contributing.texi:771
  1151. #, no-wrap
  1152. msgid "python"
  1153. msgstr "python"
  1154. #. type: Plain text
  1155. #: guix-git/doc/contributing.texi:777
  1156. 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}."
  1157. msgstr "我们目前为Python 2和Python 3打包,如@ref{Version Numbers}的规则所述,它们的Scheme变量名分别是@code{python-2}和@code{python}。为了避免和其他编程语言的冲突,Python模块的软件包名字最好含有@code{python}。"
  1158. #. type: Plain text
  1159. #: guix-git/doc/contributing.texi:783
  1160. #, fuzzy
  1161. #| 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."
  1162. 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}. Python 2 packages are being removed from the distribution; please do no not submit any new Python 2 packages."
  1163. msgstr "某些模块仅和一个版本的Python兼容,而某些模块和两个版本都兼容。如果一个叫做Foo的软件包仅和Python 3兼容,我们把它命名为@code{python-foo};如果它仅和Python 2兼容,我们把它命名为@code{python2-foo}。只有当需要时,我们才会添加它的Python 2变体。"
  1164. #. type: Plain text
  1165. #: guix-git/doc/contributing.texi:789
  1166. 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."
  1167. msgstr "如果一个项目的名字已经含有@code{python}这个单词,我们把它丢掉;例如,python-dateutil模块打包后的名字是@code{python-dateutil}和@code{python2-dateutil}。如果项目的名字以@code{py}开头(如@: @code{pytz}),我们把它保留,并且添加上面所述的前缀。"
  1168. #. type: quotation
  1169. #: guix-git/doc/contributing.texi:803
  1170. msgid "Currently there are two different build systems for Python packages in Guix: @var{python-build-system} and @var{pyproject-build-system}. For the longest time, Python packages were built from an informally specified @file{setup.py} file. That worked amazingly well, considering Python's success, but was difficult to build tooling around. As a result, a host of alternative build systems emerged and the community eventually settled on a @url{https://peps.python.org/pep-0517/, formal standard} for specifying build requirements. @var{pyproject-build-system} is Guix's implementation of this standard. It is considered ``experimental'' in that it does not yet support all the various PEP-517 @emph{build backends}, but you are encouraged to try it for new Python packages and report any problems. It will eventually be deprecated and merged into @var{python-build-system}."
  1171. msgstr "目前在 Guix 中有两种不同的 Python 包构建系统:@var{python-build-system} 和@var{pyproject-build-system}。 在很长的一段时间里,Python 包是从非正式指定的 @file{setup.py} 文件构建的。 考虑到 Python 的成功,这工作得非常好,但很难围绕它构建工具。 结果,出现了许多替代构建系统,社区最终确定了一个 @url{https://peps.python.org/pep-0517/, 正式标准} 来指定构建要求。 @var{pyproject-build-system} 是 Guix 对该标准的实现。 它被认为是“实验性的”,因为它还不支持所有不同的 PEP-517 @emph{编译后端},但我们鼓励您为新的 Python 包尝试它并报告任何问题。 它最终将被弃用并合并到 @var{python-build-system} 中。"
  1172. #. type: subsubsection
  1173. #: guix-git/doc/contributing.texi:805
  1174. #, no-wrap
  1175. msgid "Specifying Dependencies"
  1176. msgstr "指定依赖"
  1177. #. type: cindex
  1178. #: guix-git/doc/contributing.texi:806
  1179. #, no-wrap
  1180. msgid "inputs, for Python packages"
  1181. msgstr "Python软件包的输入"
  1182. #. type: Plain text
  1183. #: guix-git/doc/contributing.texi:813
  1184. msgid "Dependency information for Python packages is usually available in the package source tree, with varying degrees of accuracy: in the @file{pyproject.toml} file, the @file{setup.py} file, in @file{requirements.txt}, or in @file{tox.ini} (the latter mostly for test dependencies)."
  1185. msgstr "Python软件包的依赖信息通常在包的源代码树里,各种文件有不同的准确度:@file{setup.py}文件,@file{requirements.txt}文件,或在 @file{tox.ini}文件(后者主要用于测试依赖项)。"
  1186. #. type: Plain text
  1187. #: guix-git/doc/contributing.texi:819
  1188. 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."
  1189. msgstr "你在写软件包配方时的任务是把这些依赖转换成相应的“输入”(@pxref{package Reference, inputs})。尽管@code{pypi}导入工具通常可以做得很好(@pxref{Invoking guix import}),你可能想检查下面这个清单,以决定每个依赖放在哪儿。"
  1190. #. type: itemize
  1191. #: guix-git/doc/contributing.texi:826
  1192. msgid "We currently package Python with @code{setuptools} and @code{pip} installed per default. This is about to change, and users are encouraged to use @code{python-toolchain} if they want a build environment for Python."
  1193. msgstr "我们目前将 Python 打包为默认安装的 @code{setuptools} 和 @code{pip}。 这即将改变,如果用户想要 Python 的构建环境,我们鼓励他们使用@code{python-toolchain}。"
  1194. #. type: itemize
  1195. #: guix-git/doc/contributing.texi:829
  1196. msgid "@command{guix lint} will warn if @code{setuptools} or @code{pip} are added as native-inputs because they are generally not necessary."
  1197. msgstr "如果将 @code{setuptools} 或 @code{pip} 添加为本机输入,@command{guix lint} 将发出警告,因为通常它们不是必需的。"
  1198. #. type: itemize
  1199. #: guix-git/doc/contributing.texi:835
  1200. 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."
  1201. msgstr "运行时需要的Python依赖要放进@code{propagated-inputs}。它们通常由@file{setup.py}文件里的@code{install_requires}关键字或@file{requirements.txt}文件定义。"
  1202. #. type: itemize
  1203. #: guix-git/doc/contributing.texi:844
  1204. #, fuzzy
  1205. #| 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."
  1206. msgid "Python packages required only at build time---e.g., those listed under @code{build-system.requires} in @file{pyproject.toml} or with the @code{setup_requires} keyword in @file{setup.py}---or dependencies only for testing---e.g., those in @code{tests_require} or @file{tox.ini}---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."
  1207. msgstr "仅在构建时依赖的Python包--如,@file{setup.py}里的@code{setup_requires}关键字列举的包--或仅在测试时依赖的包--如,@code{tests_require}里的包--要放进@code{native-inputs}。因为,(1)在运行时不需要它们,因此不需要propagate,并且(2)在交叉编译时,它们属于“native”输入。"
  1208. #. type: itemize
  1209. #: guix-git/doc/contributing.texi:848
  1210. 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}."
  1211. msgstr "例如@code{pytest},@code{mock},@code{nose}测试框架。当然,如果在运行时需要这里的任何一个包,它需要被加进@code{propagated-inputs}。"
  1212. #. type: itemize
  1213. #: guix-git/doc/contributing.texi:853
  1214. 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."
  1215. msgstr "任何不属于上述类别的包都要被加进@code{inputs},如,构建含有C语言扩展的Python包所需的程序和C语言库。"
  1216. #. type: itemize
  1217. #: guix-git/doc/contributing.texi:859
  1218. 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}})."
  1219. msgstr "如果一个Python软件包由可选的依赖(@code{extras_require}),由你根据它们的性价比(用处/负担)决定是否添加它们(@pxref{Submitting Patches, @command{guix size}})。"
  1220. #. type: cindex
  1221. #: guix-git/doc/contributing.texi:866
  1222. #, no-wrap
  1223. msgid "perl"
  1224. msgstr "perl"
  1225. #. type: Plain text
  1226. #: guix-git/doc/contributing.texi:877
  1227. 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}."
  1228. msgstr "Perl程序和其它软件包的命名规则类似,用小写的上游名字命名。对于仅包含一个类的Perl包,我们使用小写的类名,把所有的@code{::}替换成破折号,并且添加@code{perl-}前缀。所以类@code{XML::Parser}变成@code{perl-xml-parser}。包含多个类的模块保留它们上游的名字,并且添加@code{perl-}前缀。这类模块的名字通常含有@code{perl},这个单词需要被删掉。例如,@code{libwww-perl}变成@code{perl-libwww}。"
  1229. #. type: cindex
  1230. #: guix-git/doc/contributing.texi:882
  1231. #, no-wrap
  1232. msgid "java"
  1233. msgstr "java"
  1234. #. type: Plain text
  1235. #: guix-git/doc/contributing.texi:885
  1236. msgid "Java programs standing for themselves are named as any other package, using the lowercase upstream name."
  1237. msgstr "Java程序和其它软件包的命名规则类似,用小写的上游名字命名。"
  1238. #. type: Plain text
  1239. #: guix-git/doc/contributing.texi:891
  1240. 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}."
  1241. msgstr "为了避免和其它编程语言混淆和命名冲突,Java软件包的名字最好有@code{java-}前缀。如果一个项目的名字已经含有@code{java},我们把它删掉;例如,@code{ngsjava}打包后的名字是@code{java-ngs}。"
  1242. #. type: Plain text
  1243. #: guix-git/doc/contributing.texi:897
  1244. 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}."
  1245. msgstr "对于仅包含一个或很少几个类的Java软件包,我们使用小写的类名,把所有的@code{.}替换成破折号,并且添加@code{java-}前缀。因此,类@code{apache.commons.cli}打包后的名字是@code{java-apache-commons-cli}。"
  1246. #. type: cindex
  1247. #: guix-git/doc/contributing.texi:902
  1248. #, no-wrap
  1249. msgid "rust"
  1250. msgstr "rust"
  1251. #. type: Plain text
  1252. #: guix-git/doc/contributing.texi:905
  1253. msgid "Rust programs standing for themselves are named as any other package, using the lowercase upstream name."
  1254. msgstr "Rust 程序和其它软件包的命名规则类似,用小写的上游名字命名。"
  1255. #. type: Plain text
  1256. #: guix-git/doc/contributing.texi:909
  1257. 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."
  1258. msgstr ""
  1259. #. type: Plain text
  1260. #: guix-git/doc/contributing.texi:915
  1261. 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}."
  1262. msgstr ""
  1263. #. type: Plain text
  1264. #: guix-git/doc/contributing.texi:925
  1265. 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."
  1266. msgstr ""
  1267. #. type: Plain text
  1268. #: guix-git/doc/contributing.texi:931
  1269. 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."
  1270. msgstr ""
  1271. #. type: cindex
  1272. #: guix-git/doc/contributing.texi:936
  1273. #, no-wrap
  1274. msgid "Elm"
  1275. msgstr ""
  1276. #. type: Plain text
  1277. #: guix-git/doc/contributing.texi:939
  1278. msgid "Elm applications can be named like other software: their names need not mention Elm."
  1279. msgstr ""
  1280. #. type: Plain text
  1281. #: guix-git/doc/contributing.texi:945
  1282. msgid "Packages in the Elm sense (see @code{elm-build-system} under @ref{Build Systems}) are required use names of the format @var{author}@code{/}@var{project}, where both the @var{author} and the @var{project} may contain hyphens internally, and the @var{author} sometimes contains uppercase letters."
  1283. msgstr ""
  1284. #. type: Plain text
  1285. #: guix-git/doc/contributing.texi:949
  1286. msgid "To form the Guix package name from the upstream name, we follow a convention similar to Python packages (@pxref{Python Modules}), adding an @code{elm-} prefix unless the name would already begin with @code{elm-}."
  1287. msgstr ""
  1288. #. type: Plain text
  1289. #: guix-git/doc/contributing.texi:956
  1290. msgid "In many cases we can reconstruct an Elm package's upstream name heuristically, but, since conversion to a Guix-style name involves a loss of information, this is not always possible. Care should be taken to add the @code{'upstream-name} property when necessary so that @samp{guix import elm} will work correctly (@pxref{Invoking guix import}). The most notable scenarios when explicitly specifying the upstream name is necessary are:"
  1291. msgstr ""
  1292. #. type: enumerate
  1293. #: guix-git/doc/contributing.texi:961
  1294. msgid "When the @var{author} is @code{elm} and the @var{project} contains one or more hyphens, as with @code{elm/virtual-dom}; and"
  1295. msgstr ""
  1296. #. type: enumerate
  1297. #: guix-git/doc/contributing.texi:968
  1298. msgid "When the @var{author} contains hyphens or uppercase letters, as with @code{Elm-Canvas/raster-shapes}---unless the @var{author} is @code{elm-explorations}, which is handled as a special case, so packages like @code{elm-explorations/markdown} do @emph{not} need to use the @code{'upstream-name} property."
  1299. msgstr ""
  1300. #. type: Plain text
  1301. #: guix-git/doc/contributing.texi:972
  1302. msgid "The module @code{(guix build-system elm)} provides the following utilities for working with names and related conventions:"
  1303. msgstr ""
  1304. #. type: deffn
  1305. #: guix-git/doc/contributing.texi:973
  1306. #, no-wrap
  1307. msgid "{Scheme procedure} elm-package-origin @var{elm-name} @var{version} @"
  1308. msgstr ""
  1309. #. type: deffn
  1310. #: guix-git/doc/contributing.texi:978
  1311. msgid "@var{hash} Returns a Git origin using the repository naming and tagging regime required for a published Elm package with the upstream name @var{elm-name} at version @var{version} with sha256 checksum @var{hash}."
  1312. msgstr ""
  1313. #. #-#-#-#-# contributing.pot (guix manual checkout) #-#-#-#-#
  1314. #. type: deffn
  1315. #. #-#-#-#-# guix.pot (guix manual checkout) #-#-#-#-#
  1316. #. type: defun
  1317. #: guix-git/doc/contributing.texi:980 guix-git/doc/guix.texi:35183
  1318. #: guix-git/doc/guix.texi:38812
  1319. msgid "For example:"
  1320. msgstr ""
  1321. #. type: lisp
  1322. #: guix-git/doc/contributing.texi:990
  1323. #, no-wrap
  1324. msgid ""
  1325. "(package\n"
  1326. " (name \"elm-html\")\n"
  1327. " (version \"1.0.0\")\n"
  1328. " (source\n"
  1329. " (elm-package-origin\n"
  1330. " \"elm/html\"\n"
  1331. " version\n"
  1332. " (base32 \"15k1679ja57vvlpinpv06znmrxy09lbhzfkzdc89i01qa8c4gb4a\")))\n"
  1333. " ...)\n"
  1334. msgstr ""
  1335. #. type: deffn
  1336. #: guix-git/doc/contributing.texi:993
  1337. #, no-wrap
  1338. msgid "{Scheme procedure} elm->package-name @var{elm-name}"
  1339. msgstr ""
  1340. #. type: deffn
  1341. #: guix-git/doc/contributing.texi:996
  1342. msgid "Returns the Guix-style package name for an Elm package with upstream name @var{elm-name}."
  1343. msgstr ""
  1344. #. type: deffn
  1345. #: guix-git/doc/contributing.texi:999
  1346. msgid "Note that there is more than one possible @var{elm-name} for which @code{elm->package-name} will produce a given result."
  1347. msgstr ""
  1348. #. type: deffn
  1349. #: guix-git/doc/contributing.texi:1001
  1350. #, no-wrap
  1351. msgid "{Scheme procedure} guix-package->elm-name @var{package}"
  1352. msgstr ""
  1353. #. type: deffn
  1354. #: guix-git/doc/contributing.texi:1005
  1355. msgid "Given an Elm @var{package}, returns the possibly-inferred upstream name, or @code{#f} the upstream name is not specified via the @code{'upstream-name} property and can not be inferred by @code{infer-elm-package-name}."
  1356. msgstr ""
  1357. #. type: deffn
  1358. #: guix-git/doc/contributing.texi:1007
  1359. #, no-wrap
  1360. msgid "{Scheme procedure} infer-elm-package-name @var{guix-name}"
  1361. msgstr ""
  1362. #. type: deffn
  1363. #: guix-git/doc/contributing.texi:1012
  1364. msgid "Given the @var{guix-name} of an Elm package, returns the inferred upstream name, or @code{#f} if the upstream name can't be inferred. If the result is not @code{#f}, supplying it to @code{elm->package-name} would produce @var{guix-name}."
  1365. msgstr ""
  1366. #. type: cindex
  1367. #: guix-git/doc/contributing.texi:1017 guix-git/doc/guix.texi:2083
  1368. #, no-wrap
  1369. msgid "fonts"
  1370. msgstr "字体"
  1371. #. type: Plain text
  1372. #: guix-git/doc/contributing.texi:1023
  1373. 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."
  1374. msgstr "对于通常不会被用户安装用于排版的字体,或者随更大的软件包分发的字体,我们使用通常的命名规则。例如,这适用于X.Org系统附带的字体或TeX Live附带的字体。"
  1375. #. type: Plain text
  1376. #: guix-git/doc/contributing.texi:1027
  1377. 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."
  1378. msgstr "为了让用户更容易搜索字体,其它仅含有字体的软件包按以下规则命名,不管上游的包名是什么。"
  1379. #. type: Plain text
  1380. #: guix-git/doc/contributing.texi:1035
  1381. 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}."
  1382. msgstr "仅含有一个字体家族的软件包需要以@code{font-}开头;如果作者名字已知,则添加作者名字和@code{-},接着是字体家族名字(把空格替换成破折号),(和通常一样,把所有的大写字母转换成小写字母)。例如,由SIL设计的Gentium字体家族打包后的名字是@code{font-sil-gentium}。"
  1383. #. type: Plain text
  1384. #: guix-git/doc/contributing.texi:1044
  1385. 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}."
  1386. msgstr "对于一个含有多个字体家族的软件包,用集合的名字替换字体家族的名字。例如,Liberation字体含有三个家族,Liberation Sans、Liberation Serif和Liberation Mono。它们可以用@code{font-liberation-sans}等名字分开打包;但是由于它们以一个共同的名字分发,我们倾向于以@code{font-liberation}名字统一打包。"
  1387. #. type: Plain text
  1388. #: guix-git/doc/contributing.texi:1050
  1389. 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."
  1390. msgstr "当同一个字体家族或字体集合的不同格式分开打包时,把破折号和格式(缩写)添加在软件包名字后面。我们用@code{-ttf}代表TrueType字体,@code{-otf}代表OpenType字体,@code{-type1}代表PostScript Type 1字体。"
  1391. #. type: Plain text
  1392. #: guix-git/doc/contributing.texi:1058
  1393. 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."
  1394. msgstr "总的来说,我们的代码遵循GNU代码规范(@pxref{Top,,, standards, GNU代码规范})。但是,这个规范对Scheme的介绍不多,所以这儿提供一些额外的规则。"
  1395. #. type: subsection
  1396. #: guix-git/doc/contributing.texi:1064 guix-git/doc/contributing.texi:1066
  1397. #: guix-git/doc/contributing.texi:1067
  1398. #, no-wrap
  1399. msgid "Programming Paradigm"
  1400. msgstr "编程范例"
  1401. #. type: menuentry
  1402. #: guix-git/doc/contributing.texi:1064
  1403. msgid "How to compose your elements."
  1404. msgstr "怎样合成元素。"
  1405. #. type: subsection
  1406. #: guix-git/doc/contributing.texi:1064 guix-git/doc/contributing.texi:1073
  1407. #: guix-git/doc/contributing.texi:1074
  1408. #, no-wrap
  1409. msgid "Modules"
  1410. msgstr "模块"
  1411. #. type: menuentry
  1412. #: guix-git/doc/contributing.texi:1064
  1413. msgid "Where to store your code?"
  1414. msgstr "在哪里保存代码?"
  1415. #. type: subsection
  1416. #: guix-git/doc/contributing.texi:1064 guix-git/doc/contributing.texi:1084
  1417. #: guix-git/doc/contributing.texi:1085
  1418. #, no-wrap
  1419. msgid "Data Types and Pattern Matching"
  1420. msgstr "数据类型和模式匹配"
  1421. #. type: menuentry
  1422. #: guix-git/doc/contributing.texi:1064
  1423. msgid "Implementing data structures."
  1424. msgstr "实现数据结构。"
  1425. #. type: subsection
  1426. #: guix-git/doc/contributing.texi:1064 guix-git/doc/contributing.texi:1104
  1427. #: guix-git/doc/contributing.texi:1105
  1428. #, no-wrap
  1429. msgid "Formatting Code"
  1430. msgstr "格式化代码"
  1431. #. type: menuentry
  1432. #: guix-git/doc/contributing.texi:1064
  1433. msgid "Writing conventions."
  1434. msgstr "书写规范。"
  1435. #. type: Plain text
  1436. #: guix-git/doc/contributing.texi:1072
  1437. 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."
  1438. msgstr "Guix里的Scheme代码是以纯函数的风格写的。一个例外是有关输入/输出的代码,和实现底层概念的过程,如@code{memoize}过程。"
  1439. #. type: Plain text
  1440. #: guix-git/doc/contributing.texi:1080
  1441. 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."
  1442. msgstr "用于构建的Guile模块必须放在@code{(guix build @dots{})}命名空间里。它们不允许引用其它Guix或GNU模块。但是,主机端(host-side)模块可以使用构建端(build-side)模块。"
  1443. #. type: Plain text
  1444. #: guix-git/doc/contributing.texi:1083
  1445. msgid "Modules that deal with the broader GNU system should be in the @code{(gnu @dots{})} name space rather than @code{(guix @dots{})}."
  1446. msgstr "关于更广的GNU系统的模块应该在@code{(gnu @dots{})}命名空间里而不是@code{(guix @dots{})}。"
  1447. #. type: Plain text
  1448. #: guix-git/doc/contributing.texi:1092
  1449. 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."
  1450. msgstr "经典的Lisp倾向于用列表表示所有的东西,然后用@code{car},@code{cdr},@code{cadr}等手动浏览它们。这种风格有几个问题,特别是难以阅读,易出错,并且妨碍生成合适的类型错误报告。"
  1451. #. type: findex
  1452. #: guix-git/doc/contributing.texi:1093
  1453. #, no-wrap
  1454. msgid "define-record-type*"
  1455. msgstr ""
  1456. #. type: findex
  1457. #: guix-git/doc/contributing.texi:1094
  1458. #, no-wrap
  1459. msgid "match-record"
  1460. msgstr ""
  1461. #. type: cindex
  1462. #: guix-git/doc/contributing.texi:1095
  1463. #, fuzzy, no-wrap
  1464. #| msgid "Data Types and Pattern Matching"
  1465. msgid "pattern matching"
  1466. msgstr "数据类型和模式匹配"
  1467. #. type: Plain text
  1468. #: guix-git/doc/contributing.texi:1103
  1469. #, fuzzy
  1470. 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}); pattern matching for records is better done using @code{match-record} from @code{(guix records)}, which, unlike @code{match}, verifies field names at macro-expansion time."
  1471. msgstr "Guix代码应该定义合适的数据类型(例如,用@code{define-record-type*})而不是滥用列表。而且,它应该利用Guile的@code{(ice-9 match)}模块使用模式匹配,特别是匹配列表的时候。"
  1472. #. type: cindex
  1473. #: guix-git/doc/contributing.texi:1107
  1474. #, no-wrap
  1475. msgid "formatting code"
  1476. msgstr "格式化代码"
  1477. #. type: cindex
  1478. #: guix-git/doc/contributing.texi:1108
  1479. #, no-wrap
  1480. msgid "coding style"
  1481. msgstr "代码风格"
  1482. #. type: Plain text
  1483. #: guix-git/doc/contributing.texi:1115
  1484. #, fuzzy
  1485. 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."
  1486. msgstr "在写Scheme代码时,我们遵循Scheme程序员的通用智慧。通常,我们遵循@url{http://mumble.net/~campbell/scheme/style.txt, Riastradh的Lisp风格}。这个文档碰巧描述了在Guile代码里大量使用的惯例。它很周到,而且写的很好,所以务必阅读。"
  1487. #. type: Plain text
  1488. #: guix-git/doc/contributing.texi:1122
  1489. 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})."
  1490. msgstr "一些Guix添加的special form,如@code{substitute*}宏,有特殊的缩进规则。它们的规则在@file{.dir-locals.el}文件里定义,Emacs会自动使用。另外,Emacs-Guix提供的@code{guix-devel-mode}模式可以正确地缩进和高亮Guix代码(@pxref{Development,,, emacs-guix, Emacs-Guix参考手册})。"
  1491. #. type: cindex
  1492. #: guix-git/doc/contributing.texi:1123
  1493. #, no-wrap
  1494. msgid "indentation, of code"
  1495. msgstr "代码缩进"
  1496. #. type: cindex
  1497. #: guix-git/doc/contributing.texi:1124
  1498. #, no-wrap
  1499. msgid "formatting, of code"
  1500. msgstr "代码格式化"
  1501. #. type: Plain text
  1502. #: guix-git/doc/contributing.texi:1127
  1503. 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:"
  1504. msgstr "如果你不使用Emacs,请确保让你的编辑器知道这些规则。为了自动地缩进软件包定义,你也可以运行:"
  1505. #. type: example
  1506. #: guix-git/doc/contributing.texi:1130
  1507. #, fuzzy, no-wrap
  1508. msgid "./pre-inst-env guix style @var{package}\n"
  1509. msgstr "guix install emacs-guix\n"
  1510. #. type: Plain text
  1511. #: guix-git/doc/contributing.texi:1134
  1512. #, fuzzy
  1513. msgid "@xref{Invoking guix style}, for more information."
  1514. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  1515. #. type: cindex
  1516. #: guix-git/doc/contributing.texi:1135
  1517. #, no-wrap
  1518. msgid "Vim, Scheme code editing"
  1519. msgstr "Vim,编辑Scheme代码"
  1520. #. type: Plain text
  1521. #: guix-git/doc/contributing.texi:1141
  1522. 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."
  1523. msgstr "如果你用Vim编辑代码,我们推荐你运行@code{:set autoindent},以使你在输入时自动缩进代码。另外,@uref{https://www.vim.org/scripts/script.php?script_id=3998, @code{paredit.vim}}可以帮你处理括号。"
  1524. #. type: Plain text
  1525. #: guix-git/doc/contributing.texi:1145
  1526. 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."
  1527. msgstr "我们要求所有的顶级过程附带一个docstring。这个要求对@code{(guix build @dots{})}命名空间里的简单的私有过程可以放宽。"
  1528. #. type: Plain text
  1529. #: guix-git/doc/contributing.texi:1148
  1530. msgid "Procedures should not have more than four positional parameters. Use keyword parameters for procedures that take more than four parameters."
  1531. msgstr "过程不应该有多于四个定位参数。对于接收多于四个定位参数的过程应使用关键字参数。"
  1532. #. type: Plain text
  1533. #: guix-git/doc/contributing.texi:1162
  1534. #, fuzzy
  1535. 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 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})."
  1536. msgstr "开发是使用Git分布式版本控制系统完成的。因此,对仓库的访问权限不是必须的。我们欢迎以向@email{guix-patches@@gnu.org}邮件列表发送@code{git format-patch}补丁的方式共享代码。"
  1537. #. type: Plain text
  1538. #: guix-git/doc/contributing.texi:1169
  1539. #, fuzzy
  1540. 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{ISSUE_NUMBER}@@debbugs.gnu.org}, where @var{ISSUE_NUMBER} is the tracking number (@pxref{Sending a Patch Series})."
  1541. msgstr "这个邮件列表的后端是一个Debbugs实例(可以从@uref{https://bugs.gnu.org/guix-patches}访问),它允许我们跟踪提交的bug。每个发送到那个邮件列表的消息都会被分配一个跟踪数字;之后人们可以通过向@code{@var{NNN}@@debbugs.gnu.org}发送邮件来跟进提交(@var{NNN}是跟踪数字,@pxref{Sending a Patch Series})。"
  1542. #. type: Plain text
  1543. #: guix-git/doc/contributing.texi:1173
  1544. msgid "Please write commit logs in the ChangeLog format (@pxref{Change Logs,,, standards, GNU Coding Standards}); you can check the commit history for examples."
  1545. msgstr "请以ChangeLog格式(@pxref{Change Logs,,, standards, GNU代码规范})写commit日志;你可以浏览commit历史里的例子。"
  1546. #. type: Plain text
  1547. #: guix-git/doc/contributing.texi:1183
  1548. msgid "You can help make the review process more efficient, and increase the chance that your patch will be reviewed quickly, by describing the context of your patch and the impact you expect it to have. For example, if your patch is fixing something that is broken, describe the problem and how your patch fixes it. Tell us how you have tested your patch. Will users of the code changed by your patch have to adjust their workflow at all? If so, tell us how. In general, try to imagine what questions a reviewer will ask, and answer those questions in advance."
  1549. msgstr ""
  1550. #. type: Plain text
  1551. #: guix-git/doc/contributing.texi:1186
  1552. msgid "Before submitting a patch that adds or modifies a package definition, please run through this check list:"
  1553. msgstr "提交添加或者修改软件包定义的补丁之前,请过一遍这个检查列表:"
  1554. #. type: enumerate
  1555. #: guix-git/doc/contributing.texi:1193
  1556. 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."
  1557. msgstr "如果软件包的作者为发布的文件包提供了密码学签名,请验证文件的真实性。对于独立的 GPG 签名文件,这可以通过 @code{gpg --verify} 命令完成。"
  1558. #. type: enumerate
  1559. #: guix-git/doc/contributing.texi:1197
  1560. msgid "Take some time to provide an adequate synopsis and description for the package. @xref{Synopses and Descriptions}, for some guidelines."
  1561. msgstr "花些时间为软件包提供一个合适的简介和描述。更多指导,@xref{Synopses and Descriptions}。"
  1562. #. type: enumerate
  1563. #: guix-git/doc/contributing.texi:1202
  1564. 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})."
  1565. msgstr "运行@code{guix lint @var{软件包}},@var{软件包}是新添加的或修改过的软件包的名字,修复它报告的错误(@pxref{Invoking guix lint})。"
  1566. #. type: enumerate
  1567. #: guix-git/doc/contributing.texi:1206
  1568. #, fuzzy
  1569. #| 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})."
  1570. msgid "Run @code{guix style @var{package}} to format the new package definition according to the project's conventions (@pxref{Invoking guix style})."
  1571. msgstr "运行@code{guix lint @var{软件包}},@var{软件包}是新添加的或修改过的软件包的名字,修复它报告的错误(@pxref{Invoking guix lint})。"
  1572. #. type: enumerate
  1573. #: guix-git/doc/contributing.texi:1210
  1574. msgid "Make sure the package builds on your platform, using @code{guix build @var{package}}."
  1575. msgstr "用@code{guix build @var{软件包}}命令确保这个软件包可以在你的平台上构建。"
  1576. #. type: enumerate
  1577. #: guix-git/doc/contributing.texi:1218
  1578. #, fuzzy
  1579. #| 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:"
  1580. 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:"
  1581. msgstr "我们建议你同时尝试在别的支持的平台上构建这个软件包。你可能没有别的平台的真实的硬件,我们推荐使用@code{qemu-binfmt-service-type}来模拟它们。为了启用这个功能,把下面这个服务添加到你的@code{操作系统}配置的服务列表里:"
  1582. #. type: lisp
  1583. #: guix-git/doc/contributing.texi:1223
  1584. #, no-wrap
  1585. msgid ""
  1586. "(service qemu-binfmt-service-type\n"
  1587. " (qemu-binfmt-configuration\n"
  1588. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))))\n"
  1589. msgstr ""
  1590. "(service qemu-binfmt-service-type\n"
  1591. " (qemu-binfmt-configuration\n"
  1592. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))))\n"
  1593. #. type: enumerate
  1594. #: guix-git/doc/contributing.texi:1226
  1595. msgid "Then reconfigure your system."
  1596. msgstr "然后重新配置你的系统。"
  1597. #. type: enumerate
  1598. #: guix-git/doc/contributing.texi:1231
  1599. #, fuzzy
  1600. #| 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:"
  1601. 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:"
  1602. msgstr "你之后可以用@code{--system}参数为不同的平台构建软件包。例如,为armhf,aarch64,或mips64架构构建\"hello\"软件包,你可以依次运行如下的命令:"
  1603. #. type: example
  1604. #: guix-git/doc/contributing.texi:1234
  1605. #, no-wrap
  1606. msgid ""
  1607. "guix build --system=armhf-linux --rounds=2 hello\n"
  1608. "guix build --system=aarch64-linux --rounds=2 hello\n"
  1609. msgstr ""
  1610. "guix build --system=armhf-linux --rounds=2 hello\n"
  1611. "guix build --system=aarch64-linux --rounds=2 hello\n"
  1612. #. type: cindex
  1613. #: guix-git/doc/contributing.texi:1237
  1614. #, no-wrap
  1615. msgid "bundling"
  1616. msgstr "构建"
  1617. #. type: enumerate
  1618. #: guix-git/doc/contributing.texi:1240
  1619. msgid "Make sure the package does not use bundled copies of software already available as separate packages."
  1620. msgstr "请确保软件包里不捆绑出现已经被打过包的软件的副本。"
  1621. #. type: enumerate
  1622. #: guix-git/doc/contributing.texi:1249
  1623. 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."
  1624. msgstr "有时,软件包为了方便用户,捆绑了依赖库的源代码。然而,当依赖库在发行版里已经存在时,做为一个发行版,我们希望确保这些软件包使用发行版里已有的副本。这提高资源使用率(依赖库只构建一次,存储一份),并且使发行版更容易管理,如仅在一个地方对某个软件包进行安全更新就可以影响整个系统--捆绑软件会妨碍这么做。"
  1625. #. type: enumerate
  1626. #: guix-git/doc/contributing.texi:1258
  1627. #, fuzzy
  1628. 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."
  1629. msgstr "看一下@command{guix size}(@pxref{Invoking guix size})的分析报告。这会让你注意到对其它软件包无意中的引用。它也可以帮助决定是否要把一个软件包分割成几个输出(@pxref{有多个输出的软件包}),以及需要使用哪些可选的依赖。特别地,避免把@code{texlive}添加为依赖:因为它太大了,请使用@code{texlive-tiny}或@code{texlive-union}代替它。"
  1630. #. type: enumerate
  1631. #: guix-git/doc/contributing.texi:1263
  1632. #, fuzzy
  1633. #| 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})."
  1634. 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})."
  1635. msgstr "对于重要的更改,确保依赖它的软件包没有受到影响。@code{guix refresh --list-dependent @var{软件包}}会帮你检查(@pxref{Invoking guix refresh})。"
  1636. #. type: cindex
  1637. #: guix-git/doc/contributing.texi:1265
  1638. #, no-wrap
  1639. msgid "branching strategy"
  1640. msgstr "分支策略"
  1641. #. type: cindex
  1642. #: guix-git/doc/contributing.texi:1266
  1643. #, no-wrap
  1644. msgid "rebuild scheduling strategy"
  1645. msgstr "重新构建的调度策略"
  1646. #. type: enumerate
  1647. #: guix-git/doc/contributing.texi:1269
  1648. msgid "Depending on the number of dependent packages and thus the amount of rebuilding induced, commits go to different branches, along these lines:"
  1649. msgstr "取决于受影响的软件包的数量,即需要重新构建的数量,commit需要被提交到不同的分支,具体如下:"
  1650. #. type: item
  1651. #: guix-git/doc/contributing.texi:1271
  1652. #, no-wrap
  1653. msgid "300 dependent packages or less"
  1654. msgstr "300个或更少的受影响的软件包"
  1655. #. type: table
  1656. #: guix-git/doc/contributing.texi:1273
  1657. msgid "@code{master} branch (non-disruptive changes)."
  1658. msgstr "@code{master}分支(非破坏性的更改)。"
  1659. #. type: item
  1660. #: guix-git/doc/contributing.texi:1274
  1661. #, no-wrap
  1662. msgid "between 300 and 1,800 dependent packages"
  1663. msgstr "300 至 1800 个受影响的软件包"
  1664. #. type: table
  1665. #: guix-git/doc/contributing.texi:1280
  1666. #, fuzzy
  1667. 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."
  1668. msgstr "@code{staging}分支(非破坏性的更改)。这个分支每隔大约3周会被合并进@code{master}。对某个主题的更改(如对GNOME系列的更新)可以放进一个特定的分支(如@code{gnome-updates})。"
  1669. #. type: item
  1670. #: guix-git/doc/contributing.texi:1281
  1671. #, no-wrap
  1672. msgid "more than 1,800 dependent packages"
  1673. msgstr "超过 1800 个受影响的软件包"
  1674. #. type: table
  1675. #: guix-git/doc/contributing.texi:1286
  1676. #, fuzzy
  1677. 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."
  1678. msgstr "@code{core-updates}分支(可能含有重要的或破坏性的更改)。这个分支每隔大约2.5个月会被合并进@code{master}。"
  1679. #. type: enumerate
  1680. #: guix-git/doc/contributing.texi:1293
  1681. #, fuzzy
  1682. #| 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."
  1683. 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."
  1684. msgstr "所有这些分支都@uref{@value{SUBSTITUTE-URL}, 被构建农场跟踪},并且当一切都被顺利构建时合并进@code{master}。这使我们在影响到用户之前就能改正问题,并且缩小没有准备好预构建的二进制包的窗口期。"
  1685. #. type: enumerate
  1686. #: guix-git/doc/contributing.texi:1302
  1687. 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."
  1688. msgstr ""
  1689. #. type: cindex
  1690. #: guix-git/doc/contributing.texi:1304
  1691. #, no-wrap
  1692. msgid "determinism, of build processes"
  1693. msgstr "构建过程的确定性"
  1694. #. type: cindex
  1695. #: guix-git/doc/contributing.texi:1305
  1696. #, no-wrap
  1697. msgid "reproducible builds, checking"
  1698. msgstr "检查可复现的构建"
  1699. #. type: enumerate
  1700. #: guix-git/doc/contributing.texi:1309
  1701. 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."
  1702. msgstr "检查软件包的构建过程是不是确定性的。这通常意味着检查对软件包的独立构建是否能得到每一个比特都完全相同的结果。"
  1703. #. type: enumerate
  1704. #: guix-git/doc/contributing.texi:1312
  1705. 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}):"
  1706. msgstr "为此,一个简单的做法是在你的机器上多次构建同一个软件包(@pxref{Invoking guix build}):"
  1707. #. type: example
  1708. #: guix-git/doc/contributing.texi:1315
  1709. #, no-wrap
  1710. msgid "guix build --rounds=2 my-package\n"
  1711. msgstr "guix build --rounds=2 <我的软件包>\n"
  1712. #. type: enumerate
  1713. #: guix-git/doc/contributing.texi:1319
  1714. msgid "This is enough to catch a class of common non-determinism issues, such as timestamps or randomly-generated output in the build result."
  1715. msgstr "这足以查出一批普通的不确定性问题,如构建结果里存在时间戳或随机生成的输出。"
  1716. #. type: enumerate
  1717. #: guix-git/doc/contributing.texi:1329
  1718. #, fuzzy
  1719. #| 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."
  1720. 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."
  1721. msgstr "另一个选择是使用@command{guix challenge}(@pxref{Invoking guix challenge})。当软件包被提交并且被@code{@value{SUBSTITUTE-SERVER}}构建之后,你可以运行这个命令检查你是否得到相同的构建结果。更好的:找另一台可以构建的机器,运行@command{guix publish}。由于远程的构建机器很可能和你的机器不同,这可以捕捉到由硬件不同引起的不确定性问题--如,使用不同的指令集--或不同操作系统内核引起的问题--如,对@code{uname}或@file{/proc}文件的依赖。"
  1722. #. type: enumerate
  1723. #: guix-git/doc/contributing.texi:1335
  1724. 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."
  1725. msgstr "在编写文档时,请用性别中立的词语指代人,如@uref{https://en.wikipedia.org/wiki/Singular_they, “他”@comma{} “他的”},等。"
  1726. #. type: enumerate
  1727. #: guix-git/doc/contributing.texi:1339
  1728. msgid "Verify that your patch contains only one set of related changes. Bundling unrelated changes together makes reviewing harder and slower."
  1729. msgstr "检查你的补丁只包含一些相关的更改。把不相关的更改捆绑在一起会让评审更困难和更慢。"
  1730. #. type: enumerate
  1731. #: guix-git/doc/contributing.texi:1342
  1732. msgid "Examples of unrelated changes include the addition of several packages, or a package update along with fixes to that package."
  1733. msgstr "不相关的更改的例子有:同时新增多个软件包,或更新软件包同时修补这个软件包。"
  1734. #. type: enumerate
  1735. #: guix-git/doc/contributing.texi:1347
  1736. #, fuzzy
  1737. #| 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})."
  1738. msgid "Please follow our code formatting rules, possibly running @command{guix style} script to do that automatically for you (@pxref{Formatting Code})."
  1739. msgstr "请遵守我们的代码格式规范,最好运行@command{etc/indent-code.el}脚本以自动为你格式化(@pxref{Formatting Code})。"
  1740. #. type: enumerate
  1741. #: guix-git/doc/contributing.texi:1355
  1742. 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."
  1743. msgstr "当可能时,请在源URL里使用镜像@pxref{Invoking guix download}。使用可靠的而不是生成的URL。例如,GitHub的下载文件每次生成时不一定是相同的,所以这时最好克隆仓库。不要在URL里使用@command{name}变量:这没有什么用,而且如果名字变了,URL很可能就错了。"
  1744. #. type: enumerate
  1745. #: guix-git/doc/contributing.texi:1359
  1746. msgid "Check if Guix builds (@pxref{Building from Git}) and address the warnings, especially those about use of undefined symbols."
  1747. msgstr ""
  1748. #. type: enumerate
  1749. #: guix-git/doc/contributing.texi:1362
  1750. msgid "Make sure your changes do not break Guix and simulate a @code{guix pull} with:"
  1751. msgstr ""
  1752. #. type: example
  1753. #: guix-git/doc/contributing.texi:1364
  1754. #, no-wrap
  1755. msgid "guix pull --url=/path/to/your/checkout --profile=/tmp/guix.master\n"
  1756. msgstr ""
  1757. #. type: Plain text
  1758. #: guix-git/doc/contributing.texi:1372
  1759. 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{}}."
  1760. msgstr ""
  1761. #. type: Plain text
  1762. #: guix-git/doc/contributing.texi:1378
  1763. #, fuzzy
  1764. msgid "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."
  1765. msgstr "在提交补丁到邮件列表时,使用@samp{[PATCH] @dots{}}做为主题。你可以使用你的邮件客户端或者@command{git send-email}命令(@pxref{Sending a Patch Series})。我们倾向于接收纯文本的邮件,无论是在正文里还是在MIME附件里。建议你注意你的邮件客户端是否会自动修改换行或缩进,这可能会损坏补丁。"
  1766. #. type: Plain text
  1767. #: guix-git/doc/contributing.texi:1383
  1768. 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."
  1769. msgstr ""
  1770. #. type: Plain text
  1771. #: guix-git/doc/contributing.texi:1386
  1772. #, fuzzy
  1773. #| msgid "When a bug is resolved, please close the thread by sending an email to @email{@var{NNN}-done@@debbugs.gnu.org}."
  1774. msgid "When a bug is resolved, please close the thread by sending an email to @email{@var{ISSUE_NUMBER}-done@@debbugs.gnu.org}."
  1775. msgstr "当一个bug被修复时,请通过向@email{@var{NNN}-done@@debbugs.gnu.org}发邮件的方式关闭thread。"
  1776. #. type: subsection
  1777. #: guix-git/doc/contributing.texi:1387 guix-git/doc/contributing.texi:1388
  1778. #, no-wrap
  1779. msgid "Configuring Git"
  1780. msgstr "配置Git"
  1781. #. type: cindex
  1782. #: guix-git/doc/contributing.texi:1389
  1783. #, fuzzy, no-wrap
  1784. msgid "git configuration"
  1785. msgstr "系统配置"
  1786. #. type: code{#1}
  1787. #: guix-git/doc/contributing.texi:1390 guix-git/doc/contributing.texi:1407
  1788. #, no-wrap
  1789. msgid "git format-patch"
  1790. msgstr ""
  1791. #. type: code{#1}
  1792. #: guix-git/doc/contributing.texi:1391 guix-git/doc/contributing.texi:1406
  1793. #, no-wrap
  1794. msgid "git send-email"
  1795. msgstr "git send-email"
  1796. #. type: Plain text
  1797. #: guix-git/doc/contributing.texi:1399
  1798. 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}."
  1799. msgstr ""
  1800. #. type: Plain text
  1801. #: guix-git/doc/contributing.texi:1402
  1802. msgid "Other important Git configuration will automatically be configured when building the project (@pxref{Building from Git})."
  1803. msgstr ""
  1804. #. type: subsection
  1805. #: guix-git/doc/contributing.texi:1403 guix-git/doc/contributing.texi:1404
  1806. #, no-wrap
  1807. msgid "Sending a Patch Series"
  1808. msgstr "发送补丁系列"
  1809. #. type: cindex
  1810. #: guix-git/doc/contributing.texi:1405
  1811. #, no-wrap
  1812. msgid "patch series"
  1813. msgstr "补丁系列"
  1814. #. type: anchor{#1}
  1815. #: guix-git/doc/contributing.texi:1409 guix-git/doc/contributing.texi:1416
  1816. #, fuzzy, no-wrap
  1817. #| msgid "Submitting Patches"
  1818. msgid "Single Patches"
  1819. msgstr "提交补丁"
  1820. #. type: Plain text
  1821. #: guix-git/doc/contributing.texi:1416
  1822. msgid "The @command{git send-email} command is the best way to send both single patches and patch series (@pxref{Multiple Patches}) to the Guix mailing list. Sending patches as email attachments may make them difficult to review in some mail clients, and @command{git diff} does not store commit metadata."
  1823. msgstr ""
  1824. #. type: quotation
  1825. #: guix-git/doc/contributing.texi:1420
  1826. msgid "The @command{git send-email} command is provided by the @code{send-email} output of the @code{git} package, i.e. @code{git:send-email}."
  1827. msgstr ""
  1828. #. type: Plain text
  1829. #: guix-git/doc/contributing.texi:1427
  1830. msgid "The following command will create a patch email from the latest commit, open it in your @var{EDITOR} or @var{VISUAL} for editing, and send it to the Guix mailing list to be reviewed and merged. Assuming you have already configured Git according to @xref{Configuring Git}, you can simply use:"
  1831. msgstr ""
  1832. #. type: example
  1833. #: guix-git/doc/contributing.texi:1430
  1834. #, fuzzy, no-wrap
  1835. #| msgid "git send-email"
  1836. msgid "$ git send-email --annotate -1\n"
  1837. msgstr "git send-email"
  1838. #. type: quotation
  1839. #: guix-git/doc/contributing.texi:1432 guix-git/doc/guix.texi:19525
  1840. #: guix-git/doc/guix.texi:19533 guix-git/doc/guix.texi:32947
  1841. #, fuzzy, no-wrap
  1842. #| msgid "Top"
  1843. msgid "Tip"
  1844. msgstr "Top"
  1845. #. type: quotation
  1846. #: guix-git/doc/contributing.texi:1438
  1847. msgid "To add a prefix to the subject of your patch, you may use the @option{--subject-prefix} option. The Guix project uses this to specify that the patch is intended for a branch or repository other than the @code{master} branch of @url{https://git.savannah.gnu.org/cgit/guix.git}."
  1848. msgstr ""
  1849. #. type: example
  1850. #: guix-git/doc/contributing.texi:1441
  1851. #, no-wrap
  1852. msgid "git send-email --annotate --subject-prefix='PATCH core-updates' -1\n"
  1853. msgstr ""
  1854. #. type: Plain text
  1855. #: guix-git/doc/contributing.texi:1448
  1856. msgid "The patch email contains a three-dash separator line after the commit message. You may ``annotate'' the patch with explanatory text by adding it under this line. If you do not wish to annotate the email, you may drop the @option{--annotate} option."
  1857. msgstr ""
  1858. #. type: Plain text
  1859. #: guix-git/doc/contributing.texi:1455
  1860. msgid "If you need to send a revised patch, don't resend it like this or send a ``fix'' patch to be applied on top of the last one; instead, use @command{git commit --amend} or @url{https://git-rebase.io, @command{git rebase}} to modify the commit, and use the @email{@var{ISSUE_NUMBER}@@debbugs.gnu.org} address and the @option{-v} flag with @command{git send-email}."
  1861. msgstr ""
  1862. #. type: example
  1863. #: guix-git/doc/contributing.texi:1460
  1864. #, no-wrap
  1865. msgid ""
  1866. "$ git commit --amend\n"
  1867. "$ git send-email --annotate -v@var{REVISION} \\\n"
  1868. " --to=@var{ISSUE_NUMBER}@@debbugs.gnu.org -1\n"
  1869. msgstr ""
  1870. #. type: quotation
  1871. #: guix-git/doc/contributing.texi:1466
  1872. msgid "Due to an apparent bug in @command{git send-email}, @option{-v @var{REVISION}} (with the space) will not work; you @emph{must} use @option{-v@var{REVISION}}."
  1873. msgstr ""
  1874. #. type: Plain text
  1875. #: guix-git/doc/contributing.texi:1472
  1876. msgid "You can find out @var{ISSUE_NUMBER} either by searching on the mumi interface at @url{https://issues.guix.gnu.org} for the name of your patch or reading the acknowledgement email sent automatically by Debbugs in reply to incoming bugs and patches, which contains the bug number."
  1877. msgstr ""
  1878. #. type: anchor{#1}
  1879. #: guix-git/doc/contributing.texi:1473 guix-git/doc/contributing.texi:1475
  1880. #, no-wrap
  1881. msgid "Notifying Teams"
  1882. msgstr ""
  1883. #. type: cindex
  1884. #: guix-git/doc/contributing.texi:1475 guix-git/doc/contributing.texi:1541
  1885. #, no-wrap
  1886. msgid "teams"
  1887. msgstr ""
  1888. #. type: Plain text
  1889. #: guix-git/doc/contributing.texi:1484
  1890. msgid "If your git checkout has been correctly configured (@pxref{Configuring Git}), the @command{git send-email} command will automatically notify the appropriate team members, based on the scope of your changes. This relies on the @file{etc/teams.scm} script, which can also be invoked manually if you do not use the preferred @command{git send-email} command to submit patches. To list the available actions of the script, you can invoke it via the @command{etc/teams.scm help} command. For more information regarding teams, see @xref{Teams}."
  1891. msgstr ""
  1892. #. type: anchor{#1}
  1893. #: guix-git/doc/contributing.texi:1485 guix-git/doc/contributing.texi:1487
  1894. #, fuzzy, no-wrap
  1895. #| msgid "Submitting Patches"
  1896. msgid "Multiple Patches"
  1897. msgstr "提交补丁"
  1898. #. type: cindex
  1899. #: guix-git/doc/contributing.texi:1487
  1900. #, no-wrap
  1901. msgid "cover letter"
  1902. msgstr ""
  1903. #. type: Plain text
  1904. #: guix-git/doc/contributing.texi:1493
  1905. msgid "While @command{git send-email} alone will suffice for a single patch, an unfortunate flaw in Debbugs means you need to be more careful when sending multiple patches: if you send them all to the @email{guix-patches@@gnu.org} address, a new issue will be created for each patch!"
  1906. msgstr ""
  1907. #. type: Plain text
  1908. #: guix-git/doc/contributing.texi:1499
  1909. msgid "When sending a series of patches, it's best to send a Git ``cover letter'' first, to give reviewers an overview of the patch series. We can create a directory called @file{outgoing} containing both our patch series and a cover letter called @file{0000-cover-letter.patch} with @command{git format-patch}."
  1910. msgstr ""
  1911. #. type: example
  1912. #: guix-git/doc/contributing.texi:1503
  1913. #, no-wrap
  1914. msgid ""
  1915. "$ git format-patch -@var{NUMBER_COMMITS} -o outgoing \\\n"
  1916. " --cover-letter --base=auto\n"
  1917. msgstr ""
  1918. #. type: Plain text
  1919. #: guix-git/doc/contributing.texi:1508
  1920. msgid "We can now send @emph{just} the cover letter to the @email{guix-patches@@gnu.org} address, which will create an issue that we can send the rest of the patches to."
  1921. msgstr ""
  1922. #. type: example
  1923. #: guix-git/doc/contributing.texi:1512
  1924. #, no-wrap
  1925. msgid ""
  1926. "$ git send-email outgoing/0000-cover-letter.patch --annotate\n"
  1927. "$ rm outgoing/0000-cover-letter.patch # we don't want to resend it!\n"
  1928. msgstr ""
  1929. #. type: Plain text
  1930. #: guix-git/doc/contributing.texi:1517
  1931. msgid "Ensure you edit the email to add an appropriate subject line and blurb before sending it. Note the automatically generated shortlog and diffstat below the blurb."
  1932. msgstr ""
  1933. #. type: Plain text
  1934. #: guix-git/doc/contributing.texi:1520
  1935. msgid "Once the Debbugs mailer has replied to your cover letter email, you can send the actual patches to the newly-created issue address."
  1936. msgstr ""
  1937. #. type: example
  1938. #: guix-git/doc/contributing.texi:1524
  1939. #, no-wrap
  1940. msgid ""
  1941. "$ git send-email outgoing/*.patch --to=@var{ISSUE_NUMBER}@@debbugs.gnu.org\n"
  1942. "$ rm -rf outgoing # we don't need these anymore\n"
  1943. msgstr ""
  1944. #. type: Plain text
  1945. #: guix-git/doc/contributing.texi:1529
  1946. msgid "Thankfully, this @command{git format-patch} dance is not necessary to send an amended patch series, since an issue already exists for the patchset."
  1947. msgstr ""
  1948. #. type: example
  1949. #: guix-git/doc/contributing.texi:1533
  1950. #, no-wrap
  1951. msgid ""
  1952. "$ git send-email -@var{NUMBER_COMMITS} -v@var{REVISION} \\\n"
  1953. " --to=@var{ISSUE_NUMBER}@@debbugs.gnu.org\n"
  1954. msgstr ""
  1955. #. type: Plain text
  1956. #: guix-git/doc/contributing.texi:1538
  1957. msgid "If need be, you may use @option{--cover-letter --annotate} to send another cover letter, e.g. for explaining what's changed since the last revision, and these changes are necessary."
  1958. msgstr ""
  1959. #. type: subsection
  1960. #: guix-git/doc/contributing.texi:1539 guix-git/doc/contributing.texi:1540
  1961. #, no-wrap
  1962. msgid "Teams"
  1963. msgstr ""
  1964. #. type: Plain text
  1965. #: guix-git/doc/contributing.texi:1545
  1966. msgid "There are several teams mentoring different parts of the Guix source code. To list all those teams, you can run from a Guix checkout:"
  1967. msgstr ""
  1968. #. type: example
  1969. #: guix-git/doc/contributing.texi:1558
  1970. #, no-wrap
  1971. msgid ""
  1972. "$ ./etc/teams.scm list-teams\n"
  1973. "id: mentors\n"
  1974. "name: Mentors\n"
  1975. "description: A group of mentors who chaperone contributions by newcomers.\n"
  1976. "members:\n"
  1977. "+ Christopher Baines <mail@@cbaines.net>\n"
  1978. "+ Ricardo Wurmus <rekado@@elephly.net>\n"
  1979. "+ Mathieu Othacehe <othacehe@@gnu.org>\n"
  1980. "+ jgart <jgart@@dismail.de>\n"
  1981. "+ Ludovic Courtès <ludo@@gnu.org>\n"
  1982. "@dots{}\n"
  1983. msgstr ""
  1984. #. type: Plain text
  1985. #: guix-git/doc/contributing.texi:1562
  1986. msgid "You can run the following command to have the @code{Mentors} team put in CC of a patch series:"
  1987. msgstr ""
  1988. #. type: example
  1989. #: guix-git/doc/contributing.texi:1566
  1990. #, no-wrap
  1991. msgid ""
  1992. "$ git send-email --to=@var{ISSUE_NUMBER}@@debbugs.gnu.org \\\n"
  1993. " --header-cmd='etc/teams.scm cc-mentors-header-cmd' *.patch\n"
  1994. msgstr ""
  1995. #. type: Plain text
  1996. #: guix-git/doc/contributing.texi:1571
  1997. msgid "The appropriate team or teams can also be inferred from the modified files. For instance, if you want to send the two latest commits of the current Git repository to review, you can run:"
  1998. msgstr ""
  1999. #. type: example
  2000. #: guix-git/doc/contributing.texi:1575
  2001. #, no-wrap
  2002. msgid ""
  2003. "$ guix shell -D guix\n"
  2004. "[env]$ git send-email --to=@var{ISSUE_NUMBER}@@debbugs.gnu.org -2\n"
  2005. msgstr ""
  2006. #. type: Plain text
  2007. #: guix-git/doc/contributing.texi:1582
  2008. msgid "This section describes how the Guix project tracks its bug reports and patch submissions."
  2009. msgstr ""
  2010. #. type: subsection
  2011. #: guix-git/doc/contributing.texi:1587 guix-git/doc/contributing.texi:1589
  2012. #: guix-git/doc/contributing.texi:1590
  2013. #, no-wrap
  2014. msgid "The Issue Tracker"
  2015. msgstr ""
  2016. #. type: menuentry
  2017. #: guix-git/doc/contributing.texi:1587
  2018. msgid "The official bug and patch tracker."
  2019. msgstr ""
  2020. #. type: subsection
  2021. #: guix-git/doc/contributing.texi:1587 guix-git/doc/contributing.texi:1603
  2022. #: guix-git/doc/contributing.texi:1604
  2023. #, fuzzy, no-wrap
  2024. #| msgid "user interfaces"
  2025. msgid "Debbugs User Interfaces"
  2026. msgstr "用户界面"
  2027. #. type: menuentry
  2028. #: guix-git/doc/contributing.texi:1587
  2029. msgid "Ways to interact with Debbugs."
  2030. msgstr ""
  2031. #. type: subsection
  2032. #: guix-git/doc/contributing.texi:1587 guix-git/doc/contributing.texi:1643
  2033. #: guix-git/doc/contributing.texi:1644
  2034. #, no-wrap
  2035. msgid "Debbugs Usertags"
  2036. msgstr ""
  2037. #. type: menuentry
  2038. #: guix-git/doc/contributing.texi:1587
  2039. msgid "Tag reports with custom labels."
  2040. msgstr ""
  2041. #. type: cindex
  2042. #: guix-git/doc/contributing.texi:1592
  2043. #, no-wrap
  2044. msgid "bug reports, tracking"
  2045. msgstr ""
  2046. #. type: cindex
  2047. #: guix-git/doc/contributing.texi:1593
  2048. #, no-wrap
  2049. msgid "patch submissions, tracking"
  2050. msgstr ""
  2051. #. type: cindex
  2052. #: guix-git/doc/contributing.texi:1594
  2053. #, no-wrap
  2054. msgid "issue tracking"
  2055. msgstr ""
  2056. #. type: cindex
  2057. #: guix-git/doc/contributing.texi:1595
  2058. #, no-wrap
  2059. msgid "Debbugs, issue tracking system"
  2060. msgstr ""
  2061. #. type: Plain text
  2062. #: guix-git/doc/contributing.texi:1602
  2063. 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})."
  2064. msgstr ""
  2065. #. type: Plain text
  2066. #: guix-git/doc/contributing.texi:1608
  2067. msgid "A web interface (actually @emph{two} web interfaces!) are available to browse issues:"
  2068. msgstr ""
  2069. #. type: itemize
  2070. #: guix-git/doc/contributing.texi:1617
  2071. 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;"
  2072. msgstr ""
  2073. #. type: itemize
  2074. #: guix-git/doc/contributing.texi:1619
  2075. #, fuzzy
  2076. msgid "@url{https://bugs.gnu.org/guix} lists bug reports;"
  2077. msgstr "@url{https://gnupg.org/, GNU libgcrypt};"
  2078. #. type: itemize
  2079. #: guix-git/doc/contributing.texi:1621
  2080. msgid "@url{https://bugs.gnu.org/guix-patches} lists patch submissions."
  2081. msgstr ""
  2082. #. type: Plain text
  2083. #: guix-git/doc/contributing.texi:1626
  2084. 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}}."
  2085. msgstr ""
  2086. #. type: Plain text
  2087. #: guix-git/doc/contributing.texi:1629
  2088. msgid "If you use Emacs, you may find it more convenient to interact with issues using @file{debbugs.el}, which you can install with:"
  2089. msgstr ""
  2090. #. type: example
  2091. #: guix-git/doc/contributing.texi:1632
  2092. #, fuzzy, no-wrap
  2093. msgid "guix install emacs-debbugs\n"
  2094. msgstr "guix install emacs-guix\n"
  2095. #. type: Plain text
  2096. #: guix-git/doc/contributing.texi:1635
  2097. msgid "For example, to list all open issues on @code{guix-patches}, hit:"
  2098. msgstr ""
  2099. #. type: example
  2100. #: guix-git/doc/contributing.texi:1638
  2101. #, no-wrap
  2102. msgid "@kbd{C-u} @kbd{M-x} debbugs-gnu @kbd{RET} @kbd{RET} guix-patches @kbd{RET} n y\n"
  2103. msgstr ""
  2104. #. type: Plain text
  2105. #: guix-git/doc/contributing.texi:1642
  2106. msgid "@xref{Top,,, debbugs-ug, Debbugs User Guide}, for more information on this nifty tool!"
  2107. msgstr "@xref{Top,,, debbugs-ug, Debbugs User Guide},了解更多有关此实用工具的信息!"
  2108. #. type: cindex
  2109. #: guix-git/doc/contributing.texi:1646
  2110. #, no-wrap
  2111. msgid "usertags, for debbugs"
  2112. msgstr ""
  2113. #. type: cindex
  2114. #: guix-git/doc/contributing.texi:1647
  2115. #, no-wrap
  2116. msgid "Debbugs usertags"
  2117. msgstr ""
  2118. #. type: Plain text
  2119. #: guix-git/doc/contributing.texi:1653
  2120. 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.}."
  2121. msgstr ""
  2122. #. type: Plain text
  2123. #: guix-git/doc/contributing.texi:1659
  2124. 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}."
  2125. msgstr ""
  2126. #. type: Plain text
  2127. #: guix-git/doc/contributing.texi:1663
  2128. 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."
  2129. msgstr ""
  2130. #. type: Plain text
  2131. #: guix-git/doc/contributing.texi:1668
  2132. 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:"
  2133. msgstr ""
  2134. #. #-#-#-#-# contributing.pot (guix manual checkout) #-#-#-#-#
  2135. #. type: item
  2136. #. #-#-#-#-# guix.pot (guix manual checkout) #-#-#-#-#
  2137. #. type: defvar
  2138. #: guix-git/doc/contributing.texi:1671 guix-git/doc/guix.texi:632
  2139. #: guix-git/doc/guix.texi:44220
  2140. #, fuzzy, no-wrap
  2141. msgid "powerpc64le-linux"
  2142. msgstr "aarch64-linux"
  2143. #. type: table
  2144. #: guix-git/doc/contributing.texi:1679
  2145. 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."
  2146. msgstr ""
  2147. #. #-#-#-#-# contributing.pot (guix manual checkout) #-#-#-#-#
  2148. #. type: item
  2149. #. #-#-#-#-# guix.pot (guix manual checkout) #-#-#-#-#
  2150. #. type: cindex
  2151. #: guix-git/doc/contributing.texi:1680 guix-git/doc/guix.texi:3358
  2152. #: guix-git/doc/guix.texi:5105
  2153. #, no-wrap
  2154. msgid "reproducibility"
  2155. msgstr ""
  2156. #. type: table
  2157. #: guix-git/doc/contributing.texi:1684
  2158. 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."
  2159. msgstr ""
  2160. #. type: Plain text
  2161. #: guix-git/doc/contributing.texi:1691
  2162. 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."
  2163. msgstr ""
  2164. #. type: cindex
  2165. #: guix-git/doc/contributing.texi:1695
  2166. #, no-wrap
  2167. msgid "commit access, for developers"
  2168. msgstr ""
  2169. #. type: Plain text
  2170. #: guix-git/doc/contributing.texi:1711
  2171. 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. It is expected from all contributors, and even more so from committers, to help build consensus and make decisions based on consensus. To learn what consensus decision making means and understand its finer details, you are encouraged to read @url{https://www.seedsforchange.org.uk/consensus}."
  2172. msgstr ""
  2173. #. type: Plain text
  2174. #: guix-git/doc/contributing.texi:1715
  2175. 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."
  2176. msgstr ""
  2177. #. type: subsection
  2178. #: guix-git/doc/contributing.texi:1716
  2179. #, fuzzy, no-wrap
  2180. #| msgid "Commit Access"
  2181. msgid "Applying for Commit Access"
  2182. msgstr "提交权利"
  2183. #. type: Plain text
  2184. #: guix-git/doc/contributing.texi:1720
  2185. msgid "When you deem it necessary, consider applying for commit access by following these steps:"
  2186. msgstr ""
  2187. #. type: enumerate
  2188. #: guix-git/doc/contributing.texi:1729
  2189. 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."
  2190. msgstr ""
  2191. #. type: enumerate
  2192. #: guix-git/doc/contributing.texi:1735
  2193. 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''."
  2194. msgstr ""
  2195. #. type: enumerate
  2196. #: guix-git/doc/contributing.texi:1742
  2197. 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."
  2198. msgstr ""
  2199. #. type: enumerate
  2200. #: guix-git/doc/contributing.texi:1748
  2201. 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}):"
  2202. msgstr ""
  2203. #. type: example
  2204. #: guix-git/doc/contributing.texi:1751
  2205. #, no-wrap
  2206. msgid "digest-algo sha512\n"
  2207. msgstr ""
  2208. #. type: enumerate
  2209. #: guix-git/doc/contributing.texi:1756
  2210. msgid "Maintainers ultimately decide whether to grant you commit access, usually following your referrals' recommendation."
  2211. msgstr ""
  2212. #. type: cindex
  2213. #: guix-git/doc/contributing.texi:1758
  2214. #, no-wrap
  2215. msgid "OpenPGP, signed commits"
  2216. msgstr ""
  2217. #. type: enumerate
  2218. #: guix-git/doc/contributing.texi:1763
  2219. 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."
  2220. msgstr ""
  2221. #. type: quotation
  2222. #: guix-git/doc/contributing.texi:1764 guix-git/doc/guix.texi:20709
  2223. #, no-wrap
  2224. msgid "Important"
  2225. msgstr ""
  2226. #. type: quotation
  2227. #: guix-git/doc/contributing.texi:1766
  2228. msgid "Before you can push for the first time, maintainers must:"
  2229. msgstr ""
  2230. #. type: enumerate
  2231. #: guix-git/doc/contributing.texi:1770
  2232. msgid "add your OpenPGP key to the @code{keyring} branch;"
  2233. msgstr ""
  2234. #. type: enumerate
  2235. #: guix-git/doc/contributing.texi:1773
  2236. msgid "add your OpenPGP fingerprint to the @file{.guix-authorizations} file of the branch(es) you will commit to."
  2237. msgstr ""
  2238. #. type: enumerate
  2239. #: guix-git/doc/contributing.texi:1778
  2240. msgid "Make sure to read the rest of this section and... profit!"
  2241. msgstr ""
  2242. #. type: quotation
  2243. #: guix-git/doc/contributing.texi:1784
  2244. 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!"
  2245. msgstr ""
  2246. #. type: quotation
  2247. #: guix-git/doc/contributing.texi:1788
  2248. 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!"
  2249. msgstr ""
  2250. #. type: Plain text
  2251. #: guix-git/doc/contributing.texi:1795
  2252. 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:"
  2253. msgstr ""
  2254. #. type: example
  2255. #: guix-git/doc/contributing.texi:1798
  2256. #, no-wrap
  2257. msgid ""
  2258. "git config commit.gpgsign true\n"
  2259. "\n"
  2260. msgstr ""
  2261. #. type: example
  2262. #: guix-git/doc/contributing.texi:1801
  2263. #, no-wrap
  2264. msgid ""
  2265. "# Substitute the fingerprint of your public PGP key.\n"
  2266. "git config user.signingkey CABBA6EA1DC0FF33\n"
  2267. msgstr ""
  2268. #. type: Plain text
  2269. #: guix-git/doc/contributing.texi:1804
  2270. msgid "To check that commits are signed with correct key, use:"
  2271. msgstr ""
  2272. #. type: Plain text
  2273. #: guix-git/doc/contributing.texi:1812
  2274. msgid "To avoid accidentally pushing unsigned or signed with the wrong key commits to Savannah, make sure to configure Git according to @xref{Configuring Git}."
  2275. msgstr ""
  2276. #. type: subsection
  2277. #: guix-git/doc/contributing.texi:1813
  2278. #, fuzzy, no-wrap
  2279. #| msgid "Commit Access"
  2280. msgid "Commit Policy"
  2281. msgstr "提交权利"
  2282. #. type: Plain text
  2283. #: guix-git/doc/contributing.texi:1818
  2284. 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})."
  2285. msgstr ""
  2286. #. type: Plain text
  2287. #: guix-git/doc/contributing.texi:1830
  2288. msgid "Changes should be posted to @email{guix-patches@@gnu.org}. This mailing list fills the patch-tracking database (@pxref{Tracking Bugs and Patches}). It also allows patches to be picked up and tested by the quality assurance tooling; the result of that testing eventually shows up on the dashboard at @indicateurl{https://qa.guix.gnu.org/issue/@var{ISSUE_NUMBER}}, where @var{ISSUE_NUMBER} is the number assigned by the issue tracker. Leave time for a review, without committing anything (@pxref{Submitting Patches}). If you didn’t receive any reply after one week (two weeks for more significant changes), and if you're confident, it's OK to commit."
  2289. msgstr ""
  2290. #. type: Plain text
  2291. #: guix-git/doc/contributing.texi:1836
  2292. msgid "As an exception, some changes considered ``trivial'' or ``obvious'' may be pushed directly. This includes changes to fix typos and reverting commits that caused immediate problems. This is subject to being adjusted, allowing individuals to commit directly on non-controversial changes on parts they’re familiar with."
  2293. msgstr ""
  2294. #. type: Plain text
  2295. #: guix-git/doc/contributing.texi:1841
  2296. 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."
  2297. msgstr ""
  2298. #. type: Plain text
  2299. #: guix-git/doc/contributing.texi:1845
  2300. 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:"
  2301. msgstr ""
  2302. #. type: example
  2303. #: guix-git/doc/contributing.texi:1848
  2304. #, fuzzy, no-wrap
  2305. msgid "make check-channel-news\n"
  2306. msgstr "make check\n"
  2307. #. type: subsection
  2308. #: guix-git/doc/contributing.texi:1850
  2309. #, no-wrap
  2310. msgid "Addressing Issues"
  2311. msgstr ""
  2312. #. type: Plain text
  2313. #: guix-git/doc/contributing.texi:1861
  2314. 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."
  2315. msgstr ""
  2316. #. type: Plain text
  2317. #: guix-git/doc/contributing.texi:1866
  2318. 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."
  2319. msgstr ""
  2320. #. type: cindex
  2321. #: guix-git/doc/contributing.texi:1867
  2322. #, no-wrap
  2323. msgid "reverting commits"
  2324. msgstr ""
  2325. #. type: Plain text
  2326. #: guix-git/doc/contributing.texi:1873
  2327. 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."
  2328. msgstr ""
  2329. #. type: Plain text
  2330. #: guix-git/doc/contributing.texi:1879
  2331. 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."
  2332. msgstr ""
  2333. #. type: Plain text
  2334. #: guix-git/doc/contributing.texi:1888
  2335. 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."
  2336. msgstr ""
  2337. #. type: subsection
  2338. #: guix-git/doc/contributing.texi:1889
  2339. #, fuzzy, no-wrap
  2340. #| msgid "Log Rotation"
  2341. msgid "Commit Revocation"
  2342. msgstr "日志轮替"
  2343. #. type: Plain text
  2344. #: guix-git/doc/contributing.texi:1896
  2345. 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."
  2346. msgstr ""
  2347. #. type: Plain text
  2348. #: guix-git/doc/contributing.texi:1906
  2349. 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:"
  2350. msgstr ""
  2351. #. type: item
  2352. #: guix-git/doc/contributing.texi:1908
  2353. #, no-wrap
  2354. msgid "repeated violation of the commit policy stated above;"
  2355. msgstr ""
  2356. #. type: item
  2357. #: guix-git/doc/contributing.texi:1909
  2358. #, no-wrap
  2359. msgid "repeated failure to take peer criticism into account;"
  2360. msgstr ""
  2361. #. type: item
  2362. #: guix-git/doc/contributing.texi:1910
  2363. #, no-wrap
  2364. msgid "breaching trust through a series of grave incidents."
  2365. msgstr ""
  2366. #. type: Plain text
  2367. #: guix-git/doc/contributing.texi:1917
  2368. 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."
  2369. msgstr ""
  2370. #. type: subsection
  2371. #: guix-git/doc/contributing.texi:1918
  2372. #, no-wrap
  2373. msgid "Helping Out"
  2374. msgstr ""
  2375. #. type: Plain text
  2376. #: guix-git/doc/contributing.texi:1925
  2377. 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!"
  2378. msgstr ""
  2379. #. type: cindex
  2380. #: guix-git/doc/contributing.texi:1929
  2381. #, fuzzy, no-wrap
  2382. msgid "update-guix-package, updating the guix package"
  2383. msgstr "guix package:调用guix package"
  2384. #. type: Plain text
  2385. #: guix-git/doc/contributing.texi:1935
  2386. 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:"
  2387. msgstr ""
  2388. #. type: example
  2389. #: guix-git/doc/contributing.texi:1938
  2390. #, no-wrap
  2391. msgid "make update-guix-package\n"
  2392. msgstr ""
  2393. #. type: Plain text
  2394. #: guix-git/doc/contributing.texi:1945
  2395. 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."
  2396. msgstr ""
  2397. #. type: Plain text
  2398. #: guix-git/doc/contributing.texi:1949
  2399. 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:"
  2400. msgstr ""
  2401. #. type: example
  2402. #: guix-git/doc/contributing.texi:1952
  2403. #, fuzzy, no-wrap
  2404. msgid "./pre-inst-env guix build guix\n"
  2405. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  2406. #. type: Plain text
  2407. #: guix-git/doc/contributing.texi:1957
  2408. 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."
  2409. msgstr ""
  2410. #. type: Plain text
  2411. #: guix-git/doc/contributing.texi:1962
  2412. 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."
  2413. msgstr ""
  2414. #. #-#-#-#-# contributing.pot (guix manual checkout) #-#-#-#-#
  2415. #. type: cindex
  2416. #. #-#-#-#-# guix.pot (guix manual checkout) #-#-#-#-#
  2417. #. type: item
  2418. #: guix-git/doc/contributing.texi:1963 guix-git/doc/guix.texi:4374
  2419. #: guix-git/doc/guix.texi:41492 guix-git/doc/guix.texi:41549
  2420. #, no-wrap
  2421. msgid "documentation"
  2422. msgstr ""
  2423. #. type: Plain text
  2424. #: guix-git/doc/contributing.texi:1970
  2425. msgid "Guix is documented using the Texinfo system. If you are not yet familiar with it, we accept contributions for documentation in most formats. That includes plain text, Markdown, Org, etc."
  2426. msgstr ""
  2427. #. type: Plain text
  2428. #: guix-git/doc/contributing.texi:1974
  2429. msgid "Documentation contributions can be sent to @email{guix-patches@@gnu.org}. Prepend @samp{[DOCUMENTATION]} to the subject."
  2430. msgstr ""
  2431. #. type: Plain text
  2432. #: guix-git/doc/contributing.texi:1979
  2433. msgid "When you need to make more than a simple addition to the documentation, we prefer that you send a proper patch as opposed to sending an email as described above. @xref{Submitting Patches} for more information on how to send your patches."
  2434. msgstr ""
  2435. #. type: Plain text
  2436. #: guix-git/doc/contributing.texi:1988
  2437. msgid "To modify the documentation, you need to edit @file{doc/guix.texi} and @file{doc/contributing.texi} (which contains this documentation section), or @file{doc/guix-cookbook.texi} for the cookbook. If you compiled the Guix repository before, you will have many more @file{.texi} files that are translations of these documents. Do not modify them, the translation is managed through @uref{https://translate.fedoraproject.org/projects/guix, Weblate}. @xref{Translating Guix} for more information."
  2438. msgstr ""
  2439. #. type: Plain text
  2440. #: guix-git/doc/contributing.texi:1993
  2441. msgid "To render documentation, you must first make sure that you ran @command{./configure} in your source tree (@pxref{Running Guix Before It Is Installed}). After that you can run one of the following commands:"
  2442. msgstr ""
  2443. #. type: item
  2444. #: guix-git/doc/contributing.texi:1995
  2445. #, no-wrap
  2446. msgid "@samp{make doc/guix.info} to compile the Info manual."
  2447. msgstr ""
  2448. #. type: itemize
  2449. #: guix-git/doc/contributing.texi:1997
  2450. msgid "You can check it with @command{info doc/guix.info}."
  2451. msgstr ""
  2452. #. type: item
  2453. #: guix-git/doc/contributing.texi:1997
  2454. #, no-wrap
  2455. msgid "@samp{make doc/guix.html} to compile the HTML version."
  2456. msgstr ""
  2457. #. type: itemize
  2458. #: guix-git/doc/contributing.texi:2000
  2459. msgid "You can point your browser to the relevant file in the @file{doc/guix.html} directory."
  2460. msgstr ""
  2461. #. type: item
  2462. #: guix-git/doc/contributing.texi:2000
  2463. #, no-wrap
  2464. msgid "@samp{make doc/guix-cookbook.info} for the cookbook Info manual."
  2465. msgstr ""
  2466. #. type: item
  2467. #: guix-git/doc/contributing.texi:2001
  2468. #, no-wrap
  2469. msgid "@samp{make doc/guix-cookbook.html} for the cookbook HTML version."
  2470. msgstr ""
  2471. #. type: cindex
  2472. #: guix-git/doc/contributing.texi:2004
  2473. #, fuzzy, no-wrap
  2474. #| msgid "isolation"
  2475. msgid "translation"
  2476. msgstr "隔离"
  2477. #. type: cindex
  2478. #: guix-git/doc/contributing.texi:2005
  2479. #, no-wrap
  2480. msgid "l10n"
  2481. msgstr ""
  2482. #. type: cindex
  2483. #: guix-git/doc/contributing.texi:2006
  2484. #, no-wrap
  2485. msgid "i18n"
  2486. msgstr "i18n"
  2487. #. type: cindex
  2488. #: guix-git/doc/contributing.texi:2007
  2489. #, no-wrap
  2490. msgid "native language support"
  2491. msgstr ""
  2492. #. type: Plain text
  2493. #: guix-git/doc/contributing.texi:2017
  2494. 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!"
  2495. msgstr ""
  2496. #. type: Plain text
  2497. #: guix-git/doc/contributing.texi:2023
  2498. 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."
  2499. msgstr ""
  2500. #. type: Plain text
  2501. #: guix-git/doc/contributing.texi:2030
  2502. 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."
  2503. msgstr ""
  2504. #. type: Plain text
  2505. #: guix-git/doc/contributing.texi:2035
  2506. 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}."
  2507. msgstr ""
  2508. #. type: Plain text
  2509. #: guix-git/doc/contributing.texi:2037
  2510. msgid "Guix has five components hosted on Weblate."
  2511. msgstr ""
  2512. #. type: item
  2513. #: guix-git/doc/contributing.texi:2039
  2514. #, no-wrap
  2515. msgid "@code{guix} contains all the strings from the Guix software (the"
  2516. msgstr ""
  2517. #. type: itemize
  2518. #: guix-git/doc/contributing.texi:2041
  2519. msgid "guided system installer, the package manager, etc), excluding packages."
  2520. msgstr ""
  2521. #. type: item
  2522. #: guix-git/doc/contributing.texi:2041
  2523. #, no-wrap
  2524. msgid "@code{packages} contains the synopsis (single-sentence description"
  2525. msgstr ""
  2526. #. type: itemize
  2527. #: guix-git/doc/contributing.texi:2043
  2528. msgid "of a package) and description (longer description) of packages in Guix."
  2529. msgstr ""
  2530. #. type: item
  2531. #: guix-git/doc/contributing.texi:2043
  2532. #, no-wrap
  2533. msgid "@code{website} contains the official Guix website, except for"
  2534. msgstr ""
  2535. #. type: itemize
  2536. #: guix-git/doc/contributing.texi:2045
  2537. msgid "blog posts and multimedia content."
  2538. msgstr ""
  2539. #. type: item
  2540. #: guix-git/doc/contributing.texi:2045
  2541. #, no-wrap
  2542. msgid "@code{documentation-manual} corresponds to this manual."
  2543. msgstr ""
  2544. #. type: item
  2545. #: guix-git/doc/contributing.texi:2046
  2546. #, no-wrap
  2547. msgid "@code{documentation-cookbook} is the component for the cookbook."
  2548. msgstr ""
  2549. #. type: subsubheading
  2550. #: guix-git/doc/contributing.texi:2049
  2551. #, no-wrap
  2552. msgid "General Directions"
  2553. msgstr ""
  2554. #. type: Plain text
  2555. #: guix-git/doc/contributing.texi:2057
  2556. 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."
  2557. msgstr ""
  2558. #. type: Plain text
  2559. #: guix-git/doc/contributing.texi:2062
  2560. 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."
  2561. msgstr ""
  2562. #. type: Plain text
  2563. #: guix-git/doc/contributing.texi:2073
  2564. 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."
  2565. msgstr ""
  2566. #. type: Plain text
  2567. #: guix-git/doc/contributing.texi:2078
  2568. 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."
  2569. msgstr ""
  2570. #. type: subsubheading
  2571. #: guix-git/doc/contributing.texi:2079
  2572. #, no-wrap
  2573. msgid "Translation Components"
  2574. msgstr ""
  2575. #. type: Plain text
  2576. #: guix-git/doc/contributing.texi:2084
  2577. 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!"
  2578. msgstr ""
  2579. #. type: item
  2580. #: guix-git/doc/contributing.texi:2086 guix-git/doc/guix.texi:10973
  2581. #, no-wrap
  2582. msgid "guix"
  2583. msgstr ""
  2584. #. type: table
  2585. #: guix-git/doc/contributing.texi:2091
  2586. 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."
  2587. msgstr ""
  2588. #. type: table
  2589. #: guix-git/doc/contributing.texi:2100
  2590. 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."
  2591. msgstr ""
  2592. #. type: table
  2593. #: guix-git/doc/contributing.texi:2104
  2594. 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."
  2595. msgstr ""
  2596. #. type: table
  2597. #: guix-git/doc/contributing.texi:2112
  2598. 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."
  2599. msgstr ""
  2600. #. #-#-#-#-# contributing.pot (guix manual checkout) #-#-#-#-#
  2601. #. type: item
  2602. #. #-#-#-#-# guix.pot (guix manual checkout) #-#-#-#-#
  2603. #. type: cindex
  2604. #: guix-git/doc/contributing.texi:2113 guix-git/doc/guix.texi:3276
  2605. #, no-wrap
  2606. msgid "packages"
  2607. msgstr ""
  2608. #. type: table
  2609. #: guix-git/doc/contributing.texi:2118
  2610. 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."
  2611. msgstr ""
  2612. #. type: table
  2613. #: guix-git/doc/contributing.texi:2127
  2614. 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})."
  2615. msgstr ""
  2616. #. type: item
  2617. #: guix-git/doc/contributing.texi:2128
  2618. #, no-wrap
  2619. msgid "documentation-manual and documentation-cookbook"
  2620. msgstr ""
  2621. #. type: table
  2622. #: guix-git/doc/contributing.texi:2132
  2623. msgid "The first step to ensure a successful translation of the manual is to find and translate the following strings @emph{first}:"
  2624. msgstr ""
  2625. #. type: item
  2626. #: guix-git/doc/contributing.texi:2134
  2627. #, no-wrap
  2628. msgid "@code{version.texi}: Translate this string as @code{version-xx.texi},"
  2629. msgstr ""
  2630. #. type: itemize
  2631. #: guix-git/doc/contributing.texi:2137
  2632. msgid "where @code{xx} is your language code (the one shown in the URL on weblate)."
  2633. msgstr ""
  2634. #. type: item
  2635. #: guix-git/doc/contributing.texi:2137
  2636. #, no-wrap
  2637. msgid "@code{contributing.texi}: Translate this string as"
  2638. msgstr ""
  2639. #. type: itemize
  2640. #: guix-git/doc/contributing.texi:2139
  2641. msgid "@code{contributing.xx.texi}, where @code{xx} is the same language code."
  2642. msgstr ""
  2643. #. type: item
  2644. #: guix-git/doc/contributing.texi:2139
  2645. #, no-wrap
  2646. msgid "@code{Top}: Do not translate this string, it is important for Texinfo."
  2647. msgstr ""
  2648. #. type: itemize
  2649. #: guix-git/doc/contributing.texi:2142
  2650. 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."
  2651. msgstr ""
  2652. #. type: table
  2653. #: guix-git/doc/contributing.texi:2147
  2654. 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."
  2655. msgstr ""
  2656. #. type: table
  2657. #: guix-git/doc/contributing.texi:2154
  2658. 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."
  2659. msgstr ""
  2660. #. type: table
  2661. #: guix-git/doc/contributing.texi:2162
  2662. 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."
  2663. msgstr ""
  2664. #. type: table
  2665. #: guix-git/doc/contributing.texi:2172
  2666. 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."
  2667. msgstr ""
  2668. #. type: item
  2669. #: guix-git/doc/contributing.texi:2173
  2670. #, fuzzy, no-wrap
  2671. #| msgid "official website"
  2672. msgid "website"
  2673. msgstr "官方网站"
  2674. #. type: table
  2675. #: guix-git/doc/contributing.texi:2180
  2676. 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."
  2677. msgstr ""
  2678. #. type: example
  2679. #: guix-git/doc/contributing.texi:2187
  2680. #, no-wrap
  2681. msgid ""
  2682. "#. TRANSLATORS: Defining Packages is a section name\n"
  2683. "#. in the English (en) manual.\n"
  2684. "#: apps/base/templates/about.scm:64\n"
  2685. "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"
  2686. "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"
  2687. msgstr ""
  2688. #. type: table
  2689. #: guix-git/doc/contributing.texi:2190
  2690. msgid "Note that you need to include the same markups. You cannot skip any."
  2691. msgstr ""
  2692. #. type: Plain text
  2693. #: guix-git/doc/contributing.texi:2198
  2694. 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."
  2695. msgstr ""
  2696. #. type: subsubheading
  2697. #: guix-git/doc/contributing.texi:2199
  2698. #, no-wrap
  2699. msgid "Outside of Weblate"
  2700. msgstr ""
  2701. #. type: Plain text
  2702. #: guix-git/doc/contributing.texi:2202
  2703. msgid "Currently, some parts of Guix cannot be translated on Weblate, help wanted!"
  2704. msgstr ""
  2705. #. type: item
  2706. #: guix-git/doc/contributing.texi:2204
  2707. #, no-wrap
  2708. msgid "@command{guix pull} news can be translated in @file{news.scm}, but is not"
  2709. msgstr ""
  2710. #. type: itemize
  2711. #: guix-git/doc/contributing.texi:2210
  2712. 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."
  2713. msgstr ""
  2714. #. type: item
  2715. #: guix-git/doc/contributing.texi:2210
  2716. #, no-wrap
  2717. msgid "Guix blog posts cannot currently be translated."
  2718. msgstr ""
  2719. #. type: item
  2720. #: guix-git/doc/contributing.texi:2211
  2721. #, no-wrap
  2722. msgid "The installer script (for foreign distributions) is entirely in English."
  2723. msgstr ""
  2724. #. type: item
  2725. #: guix-git/doc/contributing.texi:2212
  2726. #, no-wrap
  2727. msgid "Some of the libraries Guix uses cannot be translated or are translated"
  2728. msgstr ""
  2729. #. type: itemize
  2730. #: guix-git/doc/contributing.texi:2214
  2731. msgid "outside of the Guix project. Guile itself is not internationalized."
  2732. msgstr ""
  2733. #. type: item
  2734. #: guix-git/doc/contributing.texi:2214
  2735. #, no-wrap
  2736. msgid "Other manuals linked from this manual or the cookbook might not be"
  2737. msgstr ""
  2738. #. type: itemize
  2739. #: guix-git/doc/contributing.texi:2216
  2740. msgid "translated."
  2741. msgstr ""
  2742. #. type: subsubheading
  2743. #: guix-git/doc/contributing.texi:2218
  2744. #, no-wrap
  2745. msgid "Conditions for Inclusion"
  2746. msgstr ""
  2747. #. type: Plain text
  2748. #: guix-git/doc/contributing.texi:2225
  2749. msgid "There are no conditions for adding new translations of the @code{guix} and @code{guix-packages} components, other than they need at least one translated string. New languages will be added to Guix as soon as possible. The files may be removed if they fall out of sync and have no more translated strings."
  2750. msgstr ""
  2751. #. type: Plain text
  2752. #: guix-git/doc/contributing.texi:2231
  2753. msgid "Given that the web site is dedicated to new users, we want its translation to be as complete as possible before we include it in the language menu. For a new language to be included, it needs to reach at least 80% completion. When a language is included, it may be removed in the future if it stays out of sync and falls below 60% completion."
  2754. msgstr ""
  2755. #. type: Plain text
  2756. #: guix-git/doc/contributing.texi:2239
  2757. msgid "The manual and cookbook are automatically added in the default compilation target. Every time we synchronize translations, developers need to recompile all the translated manuals and cookbooks. This is useless for what is essentially the English manual or cookbook. Therefore, we will only include a new language when it reaches 10% completion in the component. When a language is included, it may be removed in the future if it stays out of sync and falls below 5% completion."
  2758. msgstr ""
  2759. #. type: subsubheading
  2760. #: guix-git/doc/contributing.texi:2240
  2761. #, no-wrap
  2762. msgid "Translation Infrastructure"
  2763. msgstr ""
  2764. #. type: Plain text
  2765. #: guix-git/doc/contributing.texi:2251
  2766. 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."
  2767. msgstr ""
  2768. #. type: Plain text
  2769. #: guix-git/doc/contributing.texi:2255
  2770. 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."
  2771. msgstr ""
  2772. #. type: Plain text
  2773. #: guix-git/doc/contributing.texi:2261
  2774. 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."
  2775. msgstr ""
  2776. #. type: Plain text
  2777. #: guix-git/doc/contributing.texi:2265
  2778. 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."
  2779. msgstr ""
  2780. #. type: item
  2781. #: guix-git/doc/contributing.texi:2267
  2782. #, no-wrap
  2783. msgid "New po files for the @code{guix} and @code{packages} components must"
  2784. msgstr ""
  2785. #. type: itemize
  2786. #: guix-git/doc/contributing.texi:2270
  2787. msgid "be registered by adding the new language to @file{po/guix/LINGUAS} or @file{po/packages/LINGUAS}."
  2788. msgstr ""
  2789. #. type: item
  2790. #: guix-git/doc/contributing.texi:2270
  2791. #, no-wrap
  2792. msgid "New po files for the @code{documentation-manual} component must be"
  2793. msgstr ""
  2794. #. type: itemize
  2795. #: guix-git/doc/contributing.texi:2276
  2796. 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}."
  2797. msgstr ""
  2798. #. type: item
  2799. #: guix-git/doc/contributing.texi:2276
  2800. #, no-wrap
  2801. msgid "New po files for the @code{documentation-cookbook} component must be"
  2802. msgstr ""
  2803. #. type: itemize
  2804. #: guix-git/doc/contributing.texi:2282
  2805. 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}."
  2806. msgstr ""
  2807. #. type: item
  2808. #: guix-git/doc/contributing.texi:2282
  2809. #, no-wrap
  2810. msgid "New po files for the @code{website} component must be added to the"
  2811. msgstr ""
  2812. #. type: itemize
  2813. #: guix-git/doc/contributing.texi:2287
  2814. 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)."
  2815. msgstr ""
  2816. #. type: Plain text
  2817. #: guix-git/doc/guix.texi:7
  2818. msgid "@documentencoding UTF-8"
  2819. msgstr "@documentencoding UTF-8"
  2820. #. type: title
  2821. #: guix-git/doc/guix.texi:7 guix-git/doc/guix.texi:147
  2822. #, no-wrap
  2823. msgid "GNU Guix Reference Manual"
  2824. msgstr "GNU Guix 参考手册"
  2825. #. type: include
  2826. #: guix-git/doc/guix.texi:10
  2827. #, no-wrap
  2828. msgid "version.texi"
  2829. msgstr "version-zh_CN.texi"
  2830. #. type: copying
  2831. #: guix-git/doc/guix.texi:119
  2832. msgid "Copyright @copyright{} 2012-2023 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, 2023 Leo Famulari@* Copyright @copyright{} 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 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, 2021, 2022, 2023 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, 2022 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, 2022 Hartmut Goebel@* Copyright @copyright{} 2017, 2019, 2020, 2021, 2022, 2023 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, 2022, 2023 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, 2023 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, 2022 Pierre Langlois@* Copyright @copyright{} 2020 pinoaffe@* Copyright @copyright{} 2020, 2023 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, 2022 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, 2022 Josselin Poiret@* Copyright @copyright{} 2021 muradm@* Copyright @copyright{} 2021, 2022 Andrew Tropin@* Copyright @copyright{} 2021 Sarah Morgensen@* Copyright @copyright{} 2022 Remco van 't Veer@* Copyright @copyright{} 2022 Aleksandr Vityazev@* Copyright @copyright{} 2022 Philip M@sup{c}Grath@* Copyright @copyright{} 2022 Karl Hallsby@* Copyright @copyright{} 2022 Justin Veilleux@* Copyright @copyright{} 2022 Reily Siegel@* Copyright @copyright{} 2022 Simon Streit@* Copyright @copyright{} 2022 (@* Copyright @copyright{} 2022 John Kehayias@* Copyright @copyright{} 2022⁠–⁠2023 Bruno Victal@* Copyright @copyright{} 2022 Ivan Vilata-i-Balaguer@* Copyright @copyright{} 2023 Giacomo Leidi@* Copyright @copyright{} 2022 Antero Mejr@* Copyright @copyright{} 2023 Karl Hallsby@* Copyright @copyright{} 2023 Nathaniel Nicandro@* Copyright @copyright{} 2023 Tanguy Le Carrour@*"
  2833. msgstr ""
  2834. #. type: copying
  2835. #: guix-git/doc/guix.texi:126
  2836. 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''."
  2837. 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''."
  2838. #. type: dircategory
  2839. #: guix-git/doc/guix.texi:128
  2840. #, no-wrap
  2841. msgid "System administration"
  2842. msgstr "系统管理"
  2843. #. type: menuentry
  2844. #: guix-git/doc/guix.texi:136
  2845. msgid "Guix: (guix)"
  2846. msgstr "Guix:(guix)"
  2847. #. type: menuentry
  2848. #: guix-git/doc/guix.texi:136
  2849. msgid "Manage installed software and system configuration."
  2850. msgstr "管理安装的软件和系统配置。"
  2851. #. type: menuentry
  2852. #: guix-git/doc/guix.texi:136
  2853. msgid "guix package: (guix)Invoking guix package"
  2854. msgstr "guix package:调用guix package"
  2855. #. type: menuentry
  2856. #: guix-git/doc/guix.texi:136
  2857. msgid "Installing, removing, and upgrading packages."
  2858. msgstr "安装、删除和升级软件包。"
  2859. #. type: menuentry
  2860. #: guix-git/doc/guix.texi:136
  2861. msgid "guix gc: (guix)Invoking guix gc"
  2862. msgstr "guix gc:调用guix gc"
  2863. #. type: menuentry
  2864. #: guix-git/doc/guix.texi:136
  2865. msgid "Reclaiming unused disk space."
  2866. msgstr "回收不使用的硬盘空间。"
  2867. #. type: menuentry
  2868. #: guix-git/doc/guix.texi:136
  2869. msgid "guix pull: (guix)Invoking guix pull"
  2870. msgstr "guix pull:调用guix pull"
  2871. #. type: menuentry
  2872. #: guix-git/doc/guix.texi:136
  2873. msgid "Update the list of available packages."
  2874. msgstr "更新可用的软件包列表。"
  2875. #. type: menuentry
  2876. #: guix-git/doc/guix.texi:136
  2877. msgid "guix system: (guix)Invoking guix system"
  2878. msgstr "guix system:调用guix system"
  2879. #. type: menuentry
  2880. #: guix-git/doc/guix.texi:136
  2881. msgid "Manage the operating system configuration."
  2882. msgstr "管理操作系统配置。"
  2883. #. type: menuentry
  2884. #: guix-git/doc/guix.texi:136
  2885. #, fuzzy
  2886. msgid "guix deploy: (guix)Invoking guix deploy"
  2887. msgstr "guix pull:调用guix pull"
  2888. #. type: menuentry
  2889. #: guix-git/doc/guix.texi:136
  2890. #, fuzzy
  2891. msgid "Manage operating system configurations for remote hosts."
  2892. msgstr "管理操作系统配置。"
  2893. #. type: dircategory
  2894. #: guix-git/doc/guix.texi:138
  2895. #, no-wrap
  2896. msgid "Software development"
  2897. msgstr "软件开发"
  2898. #. type: menuentry
  2899. #: guix-git/doc/guix.texi:144
  2900. #, fuzzy
  2901. #| msgid "guix pull: (guix)Invoking guix pull"
  2902. msgid "guix shell: (guix)Invoking guix shell"
  2903. msgstr "guix pull:调用guix pull"
  2904. #. type: menuentry
  2905. #: guix-git/doc/guix.texi:144
  2906. #, fuzzy
  2907. #| msgid "Creating software bundles."
  2908. msgid "Creating software environments."
  2909. msgstr "创建软件bundle。"
  2910. #. type: menuentry
  2911. #: guix-git/doc/guix.texi:144
  2912. msgid "guix environment: (guix)Invoking guix environment"
  2913. msgstr "guix environment:调用guix environment"
  2914. #. type: menuentry
  2915. #: guix-git/doc/guix.texi:144
  2916. msgid "Building development environments with Guix."
  2917. msgstr "用Guix构建开发环境。"
  2918. #. type: menuentry
  2919. #: guix-git/doc/guix.texi:144
  2920. msgid "guix build: (guix)Invoking guix build"
  2921. msgstr "guix build:(guix)调用guix build"
  2922. #. type: menuentry
  2923. #: guix-git/doc/guix.texi:144
  2924. msgid "Building packages."
  2925. msgstr "构建软件包。"
  2926. #. type: menuentry
  2927. #: guix-git/doc/guix.texi:144
  2928. msgid "guix pack: (guix)Invoking guix pack"
  2929. msgstr "guix pack:(guix)调用guix pack"
  2930. #. type: menuentry
  2931. #: guix-git/doc/guix.texi:144
  2932. msgid "Creating binary bundles."
  2933. msgstr "创建二进制bundle。"
  2934. #. type: subtitle
  2935. #: guix-git/doc/guix.texi:148
  2936. #, no-wrap
  2937. msgid "Using the GNU Guix Functional Package Manager"
  2938. msgstr "使用GNU Guix函数式包管理器"
  2939. #. type: author
  2940. #: guix-git/doc/guix.texi:149
  2941. #, no-wrap
  2942. msgid "The GNU Guix Developers"
  2943. msgstr "GNU Guix开发者"
  2944. #. type: titlepage
  2945. #: guix-git/doc/guix.texi:155
  2946. msgid "Edition @value{EDITION} @* @value{UPDATED} @*"
  2947. msgstr "版本@value{EDITION} @* @value{UPDATED} @*"
  2948. #. type: node
  2949. #: guix-git/doc/guix.texi:162
  2950. #, no-wrap
  2951. msgid "Top"
  2952. msgstr "Top"
  2953. #. type: top
  2954. #: guix-git/doc/guix.texi:163
  2955. #, no-wrap
  2956. msgid "GNU Guix"
  2957. msgstr "GNU Guix"
  2958. #. type: Plain text
  2959. #: guix-git/doc/guix.texi:167
  2960. msgid "This document describes GNU Guix version @value{VERSION}, a functional package management tool written for the GNU system."
  2961. msgstr "这份文档介绍GNU Guix版本@value{VERSION},一个为GNU系统编写的函数式包管理器。"
  2962. #. You can replace the following paragraph with information on
  2963. #. type: Plain text
  2964. #: guix-git/doc/guix.texi:180
  2965. #, fuzzy
  2966. 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}), Brazilian Portuguese (@pxref{Top,,, guix.pt_BR, Manual de referência do 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})."
  2967. 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}。"
  2968. #. type: chapter
  2969. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:214
  2970. #: guix-git/doc/guix.texi:478 guix-git/doc/guix.texi:479
  2971. #, no-wrap
  2972. msgid "Introduction"
  2973. msgstr "介绍"
  2974. #. type: menuentry
  2975. #: guix-git/doc/guix.texi:204
  2976. msgid "What is Guix about?"
  2977. msgstr "Guix是关于什么的?"
  2978. #. type: chapter
  2979. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:219
  2980. #: guix-git/doc/guix.texi:675 guix-git/doc/guix.texi:676
  2981. #, no-wrap
  2982. msgid "Installation"
  2983. msgstr "安装"
  2984. #. type: menuentry
  2985. #: guix-git/doc/guix.texi:204
  2986. msgid "Installing Guix."
  2987. msgstr "安装Guix。"
  2988. #. type: chapter
  2989. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:235
  2990. #: guix-git/doc/guix.texi:2215 guix-git/doc/guix.texi:2216
  2991. #, no-wrap
  2992. msgid "System Installation"
  2993. msgstr "系统安装"
  2994. #. type: menuentry
  2995. #: guix-git/doc/guix.texi:204
  2996. msgid "Installing the whole operating system."
  2997. msgstr "安装整个操作系统。"
  2998. #. type: chapter
  2999. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:252
  3000. #: guix-git/doc/guix.texi:2949 guix-git/doc/guix.texi:2950
  3001. #, no-wrap
  3002. msgid "System Troubleshooting Tips"
  3003. msgstr ""
  3004. #. type: menuentry
  3005. #: guix-git/doc/guix.texi:204
  3006. msgid "When things don't go as planned."
  3007. msgstr ""
  3008. #. type: chapter
  3009. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:3065
  3010. #: guix-git/doc/guix.texi:3066
  3011. #, no-wrap
  3012. msgid "Getting Started"
  3013. msgstr "入门"
  3014. #. type: menuentry
  3015. #: guix-git/doc/guix.texi:204
  3016. msgid "Your first steps."
  3017. msgstr ""
  3018. #. type: chapter
  3019. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:256
  3020. #: guix-git/doc/guix.texi:3273 guix-git/doc/guix.texi:3274
  3021. #, no-wrap
  3022. msgid "Package Management"
  3023. msgstr "软件包管理"
  3024. #. type: menuentry
  3025. #: guix-git/doc/guix.texi:204
  3026. msgid "Package installation, upgrade, etc."
  3027. msgstr "软件包安装、升级等。"
  3028. #. type: chapter
  3029. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:279
  3030. #: guix-git/doc/guix.texi:5390 guix-git/doc/guix.texi:5391
  3031. #, no-wrap
  3032. msgid "Channels"
  3033. msgstr "通道"
  3034. #. type: menuentry
  3035. #: guix-git/doc/guix.texi:204
  3036. msgid "Customizing the package collection."
  3037. msgstr "定制软件包集合。"
  3038. #. type: chapter
  3039. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:293
  3040. #: guix-git/doc/guix.texi:5966 guix-git/doc/guix.texi:5967
  3041. #, no-wrap
  3042. msgid "Development"
  3043. msgstr "开发"
  3044. #. type: menuentry
  3045. #: guix-git/doc/guix.texi:204
  3046. msgid "Guix-aided software development."
  3047. msgstr "Guix辅助的软件开发。"
  3048. #. type: chapter
  3049. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:301
  3050. #: guix-git/doc/guix.texi:7442 guix-git/doc/guix.texi:7443
  3051. #, no-wrap
  3052. msgid "Programming Interface"
  3053. msgstr "编程接口"
  3054. #. type: menuentry
  3055. #: guix-git/doc/guix.texi:204
  3056. msgid "Using Guix in Scheme."
  3057. msgstr "在Scheme里使用Guix。"
  3058. #. type: chapter
  3059. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:323
  3060. #: guix-git/doc/guix.texi:12467 guix-git/doc/guix.texi:12468
  3061. #, no-wrap
  3062. msgid "Utilities"
  3063. msgstr "工具"
  3064. #. type: menuentry
  3065. #: guix-git/doc/guix.texi:204
  3066. msgid "Package management commands."
  3067. msgstr "软件包管理命令。"
  3068. #. type: chapter
  3069. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:349
  3070. #: guix-git/doc/guix.texi:16250 guix-git/doc/guix.texi:16251
  3071. #, no-wrap
  3072. msgid "Foreign Architectures"
  3073. msgstr ""
  3074. #. type: menuentry
  3075. #: guix-git/doc/guix.texi:204
  3076. msgid "Build for foreign architectures."
  3077. msgstr ""
  3078. #. type: chapter
  3079. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:354
  3080. #: guix-git/doc/guix.texi:16412 guix-git/doc/guix.texi:16413
  3081. #, no-wrap
  3082. msgid "System Configuration"
  3083. msgstr "系统配置"
  3084. #. type: menuentry
  3085. #: guix-git/doc/guix.texi:204
  3086. msgid "Configuring the operating system."
  3087. msgstr "配置操作系统。"
  3088. #. type: chapter
  3089. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:426
  3090. #: guix-git/doc/guix.texi:42058 guix-git/doc/guix.texi:42059
  3091. #, fuzzy, no-wrap
  3092. #| msgid "System Configuration"
  3093. msgid "Home Configuration"
  3094. msgstr "系统配置"
  3095. #. type: menuentry
  3096. #: guix-git/doc/guix.texi:204
  3097. #, fuzzy
  3098. #| msgid "Configuring the boot loader."
  3099. msgid "Configuring the home environment."
  3100. msgstr "设置引导程序。"
  3101. #. type: chapter
  3102. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:44076
  3103. #: guix-git/doc/guix.texi:44077
  3104. #, no-wrap
  3105. msgid "Documentation"
  3106. msgstr "文档"
  3107. #. type: menuentry
  3108. #: guix-git/doc/guix.texi:204
  3109. msgid "Browsing software user manuals."
  3110. msgstr "浏览软件用户手册。"
  3111. #. type: chapter
  3112. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:449
  3113. #: guix-git/doc/guix.texi:44142 guix-git/doc/guix.texi:44143
  3114. #, no-wrap
  3115. msgid "Platforms"
  3116. msgstr "平台"
  3117. #. type: menuentry
  3118. #: guix-git/doc/guix.texi:204
  3119. #, fuzzy
  3120. #| msgid "Defining new packages."
  3121. msgid "Defining platforms."
  3122. msgstr "定义新软件包。"
  3123. #. type: node
  3124. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:44251
  3125. #, fuzzy, no-wrap
  3126. msgid "System Images"
  3127. msgstr "系统安装"
  3128. #. type: menuentry
  3129. #: guix-git/doc/guix.texi:204
  3130. #, fuzzy
  3131. #| msgid "Creating software bundles."
  3132. msgid "Creating system images."
  3133. msgstr "创建系统镜像。"
  3134. #. type: chapter
  3135. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:465
  3136. #: guix-git/doc/guix.texi:44763 guix-git/doc/guix.texi:44764
  3137. #, no-wrap
  3138. msgid "Installing Debugging Files"
  3139. msgstr "安装调试文件"
  3140. #. type: menuentry
  3141. #: guix-git/doc/guix.texi:204
  3142. msgid "Feeding the debugger."
  3143. msgstr "为调试工具提供输入。"
  3144. #. type: node
  3145. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:44918
  3146. #, no-wrap
  3147. msgid "Using TeX and LaTeX"
  3148. msgstr ""
  3149. #. type: menuentry
  3150. #: guix-git/doc/guix.texi:204
  3151. #, fuzzy
  3152. #| msgid "Testing Guix."
  3153. msgid "Typesetting."
  3154. msgstr "测试Guix。"
  3155. #. type: chapter
  3156. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:45069
  3157. #: guix-git/doc/guix.texi:45070
  3158. #, no-wrap
  3159. msgid "Security Updates"
  3160. msgstr "安全更新"
  3161. #. type: menuentry
  3162. #: guix-git/doc/guix.texi:204
  3163. msgid "Deploying security fixes quickly."
  3164. msgstr "快速部署安全补丁。"
  3165. #. type: chapter
  3166. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:470
  3167. #: guix-git/doc/guix.texi:45184 guix-git/doc/guix.texi:45185
  3168. #, no-wrap
  3169. msgid "Bootstrapping"
  3170. msgstr "引导"
  3171. #. type: menuentry
  3172. #: guix-git/doc/guix.texi:204
  3173. msgid "GNU/Linux built from scratch."
  3174. msgstr "从头开始构建GNU/Linux。"
  3175. #. type: node
  3176. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:45483
  3177. #, no-wrap
  3178. msgid "Porting"
  3179. msgstr "移植"
  3180. #. type: menuentry
  3181. #: guix-git/doc/guix.texi:204
  3182. msgid "Targeting another platform or kernel."
  3183. msgstr "以别的平台或内核为目标。"
  3184. #. type: menuentry
  3185. #: guix-git/doc/guix.texi:204
  3186. msgid "Your help needed!"
  3187. msgstr "你需要帮助!"
  3188. #. type: chapter
  3189. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:45533
  3190. #: guix-git/doc/guix.texi:45534
  3191. #, no-wrap
  3192. msgid "Acknowledgments"
  3193. msgstr "致谢"
  3194. #. type: menuentry
  3195. #: guix-git/doc/guix.texi:209
  3196. msgid "Thanks!"
  3197. msgstr "感谢!"
  3198. #. type: appendix
  3199. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:45555
  3200. #: guix-git/doc/guix.texi:45556
  3201. #, no-wrap
  3202. msgid "GNU Free Documentation License"
  3203. msgstr "GNU自由文档许可证"
  3204. #. type: menuentry
  3205. #: guix-git/doc/guix.texi:209
  3206. msgid "The license of this manual."
  3207. msgstr "这个用户手册的许可证。"
  3208. #. type: unnumbered
  3209. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:45561
  3210. #: guix-git/doc/guix.texi:45562
  3211. #, no-wrap
  3212. msgid "Concept Index"
  3213. msgstr "概念索引"
  3214. #. type: menuentry
  3215. #: guix-git/doc/guix.texi:209
  3216. msgid "Concepts."
  3217. msgstr "概念。"
  3218. #. type: unnumbered
  3219. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:45565
  3220. #: guix-git/doc/guix.texi:45566
  3221. #, no-wrap
  3222. msgid "Programming Index"
  3223. msgstr "编程索引"
  3224. #. type: menuentry
  3225. #: guix-git/doc/guix.texi:209
  3226. msgid "Data types, functions, and variables."
  3227. msgstr "数据类型、函数和变量。"
  3228. #. type: menuentry
  3229. #: guix-git/doc/guix.texi:212
  3230. msgid "--- The Detailed Node Listing ---"
  3231. msgstr "---详细的章节列表---"
  3232. #. type: section
  3233. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:505
  3234. #: guix-git/doc/guix.texi:507 guix-git/doc/guix.texi:508
  3235. #, no-wrap
  3236. msgid "Managing Software the Guix Way"
  3237. msgstr "以Guix的方式管理软件"
  3238. #. type: menuentry
  3239. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:505
  3240. msgid "What's special."
  3241. msgstr "特殊的地方。"
  3242. #. type: section
  3243. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:505
  3244. #: guix-git/doc/guix.texi:562 guix-git/doc/guix.texi:563
  3245. #, no-wrap
  3246. msgid "GNU Distribution"
  3247. msgstr "GNU发行版"
  3248. #. type: menuentry
  3249. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:505
  3250. msgid "The packages and tools."
  3251. msgstr "软件包和工具。"
  3252. #. type: section
  3253. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:715
  3254. #: guix-git/doc/guix.texi:717 guix-git/doc/guix.texi:718
  3255. #, no-wrap
  3256. msgid "Binary Installation"
  3257. msgstr "二进制文件安装"
  3258. #. type: menuentry
  3259. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:715
  3260. msgid "Getting Guix running in no time!"
  3261. msgstr "立刻运行Guix!"
  3262. #. type: section
  3263. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:715
  3264. #: guix-git/doc/guix.texi:971 guix-git/doc/guix.texi:972
  3265. #, no-wrap
  3266. msgid "Requirements"
  3267. msgstr "需求"
  3268. #. type: menuentry
  3269. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:715
  3270. msgid "Software needed to build and run Guix."
  3271. msgstr "构建和运行Guix需要的软件。"
  3272. #. type: section
  3273. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:715
  3274. #: guix-git/doc/guix.texi:1067 guix-git/doc/guix.texi:1068
  3275. #, no-wrap
  3276. msgid "Running the Test Suite"
  3277. msgstr "运行测试套件"
  3278. #. type: menuentry
  3279. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:715
  3280. msgid "Testing Guix."
  3281. msgstr "测试Guix。"
  3282. #. type: section
  3283. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:229
  3284. #: guix-git/doc/guix.texi:715 guix-git/doc/guix.texi:1164
  3285. #: guix-git/doc/guix.texi:1165
  3286. #, no-wrap
  3287. msgid "Setting Up the Daemon"
  3288. msgstr "设置后台进程"
  3289. #. type: menuentry
  3290. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:715
  3291. msgid "Preparing the build daemon's environment."
  3292. msgstr "准备“构建后台进程”的环境。"
  3293. #. type: node
  3294. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:715
  3295. #: guix-git/doc/guix.texi:1659
  3296. #, no-wrap
  3297. msgid "Invoking guix-daemon"
  3298. msgstr "调用guix-daemon"
  3299. #. type: menuentry
  3300. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:715
  3301. msgid "Running the build daemon."
  3302. msgstr "运行后台构建进程。"
  3303. #. type: section
  3304. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:715
  3305. #: guix-git/doc/guix.texi:1965 guix-git/doc/guix.texi:1966
  3306. #, no-wrap
  3307. msgid "Application Setup"
  3308. msgstr "设置应用程序"
  3309. #. type: menuentry
  3310. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:715
  3311. msgid "Application-specific setup."
  3312. msgstr "应用程序相关的设置。"
  3313. #. type: section
  3314. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:715
  3315. #: guix-git/doc/guix.texi:2178 guix-git/doc/guix.texi:2179
  3316. #, no-wrap
  3317. msgid "Upgrading Guix"
  3318. msgstr "升级 Guix"
  3319. #. type: menuentry
  3320. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:715
  3321. msgid "Upgrading Guix and its build daemon."
  3322. msgstr "升级 Guix 及其构建守护进程。"
  3323. #. type: subsection
  3324. #: guix-git/doc/guix.texi:233 guix-git/doc/guix.texi:1184
  3325. #: guix-git/doc/guix.texi:1186 guix-git/doc/guix.texi:1187
  3326. #, no-wrap
  3327. msgid "Build Environment Setup"
  3328. msgstr "设置构建环境"
  3329. #. type: menuentry
  3330. #: guix-git/doc/guix.texi:233 guix-git/doc/guix.texi:1184
  3331. msgid "Preparing the isolated build environment."
  3332. msgstr "准备隔离的构建环境。"
  3333. #. type: node
  3334. #: guix-git/doc/guix.texi:233 guix-git/doc/guix.texi:1184
  3335. #: guix-git/doc/guix.texi:1310
  3336. #, no-wrap
  3337. msgid "Daemon Offload Setup"
  3338. msgstr "下发工作给后台进程的设置"
  3339. #. type: menuentry
  3340. #: guix-git/doc/guix.texi:233 guix-git/doc/guix.texi:1184
  3341. msgid "Offloading builds to remote machines."
  3342. msgstr "下发构建工作给远程的机器。"
  3343. #. type: subsection
  3344. #: guix-git/doc/guix.texi:233 guix-git/doc/guix.texi:1184
  3345. #: guix-git/doc/guix.texi:1549 guix-git/doc/guix.texi:1550
  3346. #, no-wrap
  3347. msgid "SELinux Support"
  3348. msgstr "SELinux的支持"
  3349. #. type: menuentry
  3350. #: guix-git/doc/guix.texi:233 guix-git/doc/guix.texi:1184
  3351. msgid "Using an SELinux policy for the daemon."
  3352. msgstr "为后台进程使用SELinux规则。"
  3353. #. type: section
  3354. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:1604
  3355. #: guix-git/doc/guix.texi:2249 guix-git/doc/guix.texi:2251
  3356. #: guix-git/doc/guix.texi:2252
  3357. #, no-wrap
  3358. msgid "Limitations"
  3359. msgstr "限制"
  3360. #. type: menuentry
  3361. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:2249
  3362. msgid "What you can expect."
  3363. msgstr "你可以期待什么。"
  3364. #. type: section
  3365. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:2249
  3366. #: guix-git/doc/guix.texi:2277 guix-git/doc/guix.texi:2278
  3367. #, no-wrap
  3368. msgid "Hardware Considerations"
  3369. msgstr "硬件的考虑"
  3370. #. type: menuentry
  3371. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:2249
  3372. msgid "Supported hardware."
  3373. msgstr "支持的硬件。"
  3374. #. type: section
  3375. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:2249
  3376. #: guix-git/doc/guix.texi:2315 guix-git/doc/guix.texi:2316
  3377. #, no-wrap
  3378. msgid "USB Stick and DVD Installation"
  3379. msgstr "U盘和DVD安装"
  3380. #. type: menuentry
  3381. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:2249
  3382. msgid "Preparing the installation medium."
  3383. msgstr "准备安装介质。"
  3384. #. type: section
  3385. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:2249
  3386. #: guix-git/doc/guix.texi:2396 guix-git/doc/guix.texi:2397
  3387. #, no-wrap
  3388. msgid "Preparing for Installation"
  3389. msgstr "准备安装"
  3390. #. type: menuentry
  3391. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:2249
  3392. msgid "Networking, partitioning, etc."
  3393. msgstr "网络、分区等。"
  3394. #. type: section
  3395. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:2249
  3396. #: guix-git/doc/guix.texi:2419 guix-git/doc/guix.texi:2420
  3397. #, no-wrap
  3398. msgid "Guided Graphical Installation"
  3399. msgstr "指导的图形安装"
  3400. #. type: menuentry
  3401. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:2249
  3402. msgid "Easy graphical installation."
  3403. msgstr "简单的图形安装。"
  3404. #. type: section
  3405. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:247
  3406. #: guix-git/doc/guix.texi:2249 guix-git/doc/guix.texi:2450
  3407. #: guix-git/doc/guix.texi:2451
  3408. #, no-wrap
  3409. msgid "Manual Installation"
  3410. msgstr "手动安装"
  3411. #. type: menuentry
  3412. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:2249
  3413. msgid "Manual installation for wizards."
  3414. msgstr "适合巫师的手动安装。"
  3415. #. type: section
  3416. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:2249
  3417. #: guix-git/doc/guix.texi:2830 guix-git/doc/guix.texi:2831
  3418. #, no-wrap
  3419. msgid "After System Installation"
  3420. msgstr "系统安装之后"
  3421. #. type: menuentry
  3422. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:2249
  3423. msgid "When installation succeeded."
  3424. msgstr "当安装成功后。"
  3425. #. type: node
  3426. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:2249
  3427. #: guix-git/doc/guix.texi:2864
  3428. #, no-wrap
  3429. msgid "Installing Guix in a VM"
  3430. msgstr "在虚拟机里安装 Guix"
  3431. #. type: menuentry
  3432. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:2249
  3433. msgid "Guix System playground."
  3434. msgstr "Guix系统游乐场。"
  3435. #. type: section
  3436. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:2249
  3437. #: guix-git/doc/guix.texi:2915 guix-git/doc/guix.texi:2916
  3438. #, no-wrap
  3439. msgid "Building the Installation Image"
  3440. msgstr "构建安装镜像"
  3441. #. type: menuentry
  3442. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:2249
  3443. msgid "How this comes to be."
  3444. msgstr "这是怎样实现的。"
  3445. #. type: node
  3446. #: guix-git/doc/guix.texi:250 guix-git/doc/guix.texi:2468
  3447. #: guix-git/doc/guix.texi:2470
  3448. #, no-wrap
  3449. msgid "Keyboard Layout and Networking and Partitioning"
  3450. msgstr "键盘布局、网络和分区"
  3451. #. type: menuentry
  3452. #: guix-git/doc/guix.texi:250 guix-git/doc/guix.texi:2468
  3453. msgid "Initial setup."
  3454. msgstr "初始设置。"
  3455. #. type: subsection
  3456. #: guix-git/doc/guix.texi:250 guix-git/doc/guix.texi:2468
  3457. #: guix-git/doc/guix.texi:2741 guix-git/doc/guix.texi:2742
  3458. #, no-wrap
  3459. msgid "Proceeding with the Installation"
  3460. msgstr "继续安装步骤"
  3461. #. type: menuentry
  3462. #: guix-git/doc/guix.texi:250 guix-git/doc/guix.texi:2468
  3463. msgid "Installing."
  3464. msgstr "安装。"
  3465. #. type: section
  3466. #: guix-git/doc/guix.texi:254 guix-git/doc/guix.texi:2966
  3467. #: guix-git/doc/guix.texi:2968 guix-git/doc/guix.texi:2969
  3468. #, no-wrap
  3469. msgid "Chrooting into an existing system"
  3470. msgstr "改变目录进入现有系统"
  3471. #. type: section
  3472. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:3305
  3473. #: guix-git/doc/guix.texi:3307 guix-git/doc/guix.texi:3308
  3474. #, no-wrap
  3475. msgid "Features"
  3476. msgstr "功能"
  3477. #. type: menuentry
  3478. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:3305
  3479. msgid "How Guix will make your life brighter."
  3480. msgstr "Guix怎样让你的生活更美好。"
  3481. #. type: node
  3482. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:3305
  3483. #: guix-git/doc/guix.texi:3397
  3484. #, no-wrap
  3485. msgid "Invoking guix package"
  3486. msgstr "调用guix package"
  3487. #. type: menuentry
  3488. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:3305
  3489. msgid "Package installation, removal, etc."
  3490. msgstr "软件包安装,移除等。"
  3491. #. type: section
  3492. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:269
  3493. #: guix-git/doc/guix.texi:3305 guix-git/doc/guix.texi:4010
  3494. #: guix-git/doc/guix.texi:4011
  3495. #, no-wrap
  3496. msgid "Substitutes"
  3497. msgstr "substitutes"
  3498. #. type: menuentry
  3499. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:3305
  3500. msgid "Downloading pre-built binaries."
  3501. msgstr "下载构建好的二进制文件。"
  3502. #. type: section
  3503. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:3305
  3504. #: guix-git/doc/guix.texi:4346 guix-git/doc/guix.texi:4347
  3505. #, no-wrap
  3506. msgid "Packages with Multiple Outputs"
  3507. msgstr "有多个输出的软件包"
  3508. #. type: menuentry
  3509. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:3305
  3510. msgid "Single source package, multiple outputs."
  3511. msgstr "单个输入多个输出的软件包。"
  3512. #. type: node
  3513. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:3305
  3514. #: guix-git/doc/guix.texi:4419
  3515. #, no-wrap
  3516. msgid "Invoking guix gc"
  3517. msgstr "调用guix gc"
  3518. #. type: menuentry
  3519. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:3305
  3520. msgid "Running the garbage collector."
  3521. msgstr "运行垃圾回收器。"
  3522. #. type: node
  3523. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:3305
  3524. #: guix-git/doc/guix.texi:4643
  3525. #, no-wrap
  3526. msgid "Invoking guix pull"
  3527. msgstr "调用guix pull"
  3528. #. type: menuentry
  3529. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:3305
  3530. msgid "Fetching the latest Guix and distribution."
  3531. msgstr "获取最新的Guix和发行版。"
  3532. #. type: node
  3533. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:3305
  3534. #: guix-git/doc/guix.texi:4894
  3535. #, fuzzy, no-wrap
  3536. msgid "Invoking guix time-machine"
  3537. msgstr "调用guix archive"
  3538. #. type: menuentry
  3539. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:3305
  3540. #, fuzzy
  3541. msgid "Running an older revision of Guix."
  3542. msgstr "和其它版本的Guix交互。"
  3543. #. type: section
  3544. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:3305
  3545. #: guix-git/doc/guix.texi:4977 guix-git/doc/guix.texi:4978
  3546. #, no-wrap
  3547. msgid "Inferiors"
  3548. msgstr ""
  3549. #. type: menuentry
  3550. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:3305
  3551. msgid "Interacting with another revision of Guix."
  3552. msgstr "和其它版本的Guix交互。"
  3553. #. type: node
  3554. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:3305
  3555. #: guix-git/doc/guix.texi:5102
  3556. #, no-wrap
  3557. msgid "Invoking guix describe"
  3558. msgstr "调用guix describe"
  3559. #. type: menuentry
  3560. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:3305
  3561. msgid "Display information about your Guix revision."
  3562. msgstr "显示你的Guix版本信息。"
  3563. #. type: node
  3564. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:3305
  3565. #: guix-git/doc/guix.texi:5198
  3566. #, no-wrap
  3567. msgid "Invoking guix archive"
  3568. msgstr "调用guix archive"
  3569. #. type: menuentry
  3570. #: guix-git/doc/guix.texi:267 guix-git/doc/guix.texi:3305
  3571. msgid "Exporting and importing store files."
  3572. msgstr "导出和导入仓库文件。"
  3573. #. type: subsection
  3574. #: guix-git/doc/guix.texi:277 guix-git/doc/guix.texi:4034
  3575. #: guix-git/doc/guix.texi:4036 guix-git/doc/guix.texi:4037
  3576. #, fuzzy, no-wrap
  3577. #| msgid "Official Substitute Server"
  3578. msgid "Official Substitute Servers"
  3579. msgstr "官方的substitute服务器"
  3580. #. type: menuentry
  3581. #: guix-git/doc/guix.texi:277 guix-git/doc/guix.texi:4034
  3582. msgid "One particular source of substitutes."
  3583. msgstr "substitute的一个特殊来源。"
  3584. #. type: subsection
  3585. #: guix-git/doc/guix.texi:277 guix-git/doc/guix.texi:4034
  3586. #: guix-git/doc/guix.texi:4066 guix-git/doc/guix.texi:4067
  3587. #, no-wrap
  3588. msgid "Substitute Server Authorization"
  3589. msgstr "substitute服务器授权"
  3590. #. type: menuentry
  3591. #: guix-git/doc/guix.texi:277 guix-git/doc/guix.texi:4034
  3592. msgid "How to enable or disable substitutes."
  3593. msgstr "怎么开启或关闭substitute。"
  3594. #. type: subsection
  3595. #: guix-git/doc/guix.texi:277 guix-git/doc/guix.texi:4034
  3596. #: guix-git/doc/guix.texi:4136 guix-git/doc/guix.texi:4137
  3597. #, no-wrap
  3598. msgid "Getting Substitutes from Other Servers"
  3599. msgstr ""
  3600. #. type: menuentry
  3601. #: guix-git/doc/guix.texi:277 guix-git/doc/guix.texi:4034
  3602. msgid "Substitute diversity."
  3603. msgstr "substitutes多样化。"
  3604. #. type: subsection
  3605. #: guix-git/doc/guix.texi:277 guix-git/doc/guix.texi:4034
  3606. #: guix-git/doc/guix.texi:4241 guix-git/doc/guix.texi:4242
  3607. #, no-wrap
  3608. msgid "Substitute Authentication"
  3609. msgstr "验证substitute"
  3610. #. type: menuentry
  3611. #: guix-git/doc/guix.texi:277 guix-git/doc/guix.texi:4034
  3612. msgid "How Guix verifies substitutes."
  3613. msgstr "Guix怎样验证substitute。"
  3614. #. type: subsection
  3615. #: guix-git/doc/guix.texi:277 guix-git/doc/guix.texi:4034
  3616. #: guix-git/doc/guix.texi:4276 guix-git/doc/guix.texi:4277
  3617. #, no-wrap
  3618. msgid "Proxy Settings"
  3619. msgstr "代理设置"
  3620. #. type: menuentry
  3621. #: guix-git/doc/guix.texi:277 guix-git/doc/guix.texi:4034
  3622. msgid "How to get substitutes via proxy."
  3623. msgstr "怎样通过代理获取substitute。"
  3624. #. type: subsection
  3625. #: guix-git/doc/guix.texi:277 guix-git/doc/guix.texi:4034
  3626. #: guix-git/doc/guix.texi:4288 guix-git/doc/guix.texi:4289
  3627. #, no-wrap
  3628. msgid "Substitution Failure"
  3629. msgstr "substitute失败"
  3630. #. type: menuentry
  3631. #: guix-git/doc/guix.texi:277 guix-git/doc/guix.texi:4034
  3632. msgid "What happens when substitution fails."
  3633. msgstr "当substitute失败时会发生什么。"
  3634. #. type: subsection
  3635. #: guix-git/doc/guix.texi:277 guix-git/doc/guix.texi:4034
  3636. #: guix-git/doc/guix.texi:4316 guix-git/doc/guix.texi:4317
  3637. #, no-wrap
  3638. msgid "On Trusting Binaries"
  3639. msgstr "关于信任二进制文件"
  3640. #. type: menuentry
  3641. #: guix-git/doc/guix.texi:277 guix-git/doc/guix.texi:4034
  3642. msgid "How can you trust that binary blob?"
  3643. msgstr "你怎么能信任二进制的 blob 呢?"
  3644. #. type: section
  3645. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3646. #: guix-git/doc/guix.texi:5423 guix-git/doc/guix.texi:5424
  3647. #, no-wrap
  3648. msgid "Specifying Additional Channels"
  3649. msgstr ""
  3650. #. type: menuentry
  3651. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3652. msgid "Extending the package collection."
  3653. msgstr "拓展软件包集合。"
  3654. #. type: section
  3655. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3656. #: guix-git/doc/guix.texi:5469 guix-git/doc/guix.texi:5470
  3657. #, no-wrap
  3658. msgid "Using a Custom Guix Channel"
  3659. msgstr ""
  3660. #. type: menuentry
  3661. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3662. msgid "Using a customized Guix."
  3663. msgstr ""
  3664. #. type: section
  3665. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3666. #: guix-git/doc/guix.texi:5510 guix-git/doc/guix.texi:5511
  3667. #, no-wrap
  3668. msgid "Replicating Guix"
  3669. msgstr ""
  3670. #. type: menuentry
  3671. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3672. msgid "Running the @emph{exact same} Guix."
  3673. msgstr ""
  3674. #. type: section
  3675. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3676. #: guix-git/doc/guix.texi:5570 guix-git/doc/guix.texi:5571
  3677. #, fuzzy, no-wrap
  3678. msgid "Channel Authentication"
  3679. msgstr "验证substitute"
  3680. #. type: menuentry
  3681. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3682. #, fuzzy
  3683. msgid "How Guix verifies what it fetches."
  3684. msgstr "Guix怎样验证substitute。"
  3685. #. type: section
  3686. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3687. #: guix-git/doc/guix.texi:5610 guix-git/doc/guix.texi:5611
  3688. #, fuzzy, no-wrap
  3689. msgid "Channels with Substitutes"
  3690. msgstr "分享substitute。"
  3691. #. type: menuentry
  3692. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3693. msgid "Using channels with available substitutes."
  3694. msgstr ""
  3695. #. type: section
  3696. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3697. #: guix-git/doc/guix.texi:5635 guix-git/doc/guix.texi:5636
  3698. #, no-wrap
  3699. msgid "Creating a Channel"
  3700. msgstr "创建一个频道"
  3701. #. type: menuentry
  3702. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3703. msgid "How to write your custom channel."
  3704. msgstr ""
  3705. #. type: section
  3706. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3707. #: guix-git/doc/guix.texi:5702 guix-git/doc/guix.texi:5703
  3708. #, fuzzy, no-wrap
  3709. msgid "Package Modules in a Sub-directory"
  3710. msgstr "软件包模块"
  3711. #. type: menuentry
  3712. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3713. #, fuzzy
  3714. msgid "Specifying the channel's package modules location."
  3715. msgstr "指定如何构建软件包。"
  3716. #. type: section
  3717. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3718. #: guix-git/doc/guix.texi:5728 guix-git/doc/guix.texi:5729
  3719. #, no-wrap
  3720. msgid "Declaring Channel Dependencies"
  3721. msgstr ""
  3722. #. type: menuentry
  3723. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3724. msgid "How to depend on other channels."
  3725. msgstr ""
  3726. #. type: section
  3727. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3728. #: guix-git/doc/guix.texi:5770 guix-git/doc/guix.texi:5771
  3729. #, no-wrap
  3730. msgid "Specifying Channel Authorizations"
  3731. msgstr ""
  3732. #. type: menuentry
  3733. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3734. msgid "Defining channel authors authorizations."
  3735. msgstr ""
  3736. #. type: section
  3737. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3738. #: guix-git/doc/guix.texi:5873 guix-git/doc/guix.texi:5874
  3739. #, no-wrap
  3740. msgid "Primary URL"
  3741. msgstr ""
  3742. #. type: menuentry
  3743. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3744. msgid "Distinguishing mirror to original."
  3745. msgstr ""
  3746. #. type: section
  3747. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3748. #: guix-git/doc/guix.texi:5896 guix-git/doc/guix.texi:5897
  3749. #, no-wrap
  3750. msgid "Writing Channel News"
  3751. msgstr ""
  3752. #. type: menuentry
  3753. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:5421
  3754. msgid "Communicating information to channel's users."
  3755. msgstr ""
  3756. #. type: node
  3757. #: guix-git/doc/guix.texi:299 guix-git/doc/guix.texi:5986
  3758. #: guix-git/doc/guix.texi:5988
  3759. #, no-wrap
  3760. msgid "Invoking guix shell"
  3761. msgstr "调用 guix shell"
  3762. #. type: menuentry
  3763. #: guix-git/doc/guix.texi:299 guix-git/doc/guix.texi:5986
  3764. #, fuzzy
  3765. #| msgid "Preparing the isolated build environment."
  3766. msgid "Spawning one-off software environments."
  3767. msgstr "准备隔离的构建环境。"
  3768. #. type: node
  3769. #: guix-git/doc/guix.texi:299 guix-git/doc/guix.texi:5986
  3770. #: guix-git/doc/guix.texi:6516
  3771. #, no-wrap
  3772. msgid "Invoking guix environment"
  3773. msgstr "调用guix environment"
  3774. #. type: menuentry
  3775. #: guix-git/doc/guix.texi:299 guix-git/doc/guix.texi:5986
  3776. msgid "Setting up development environments."
  3777. msgstr "设置开发环境。"
  3778. #. type: node
  3779. #: guix-git/doc/guix.texi:299 guix-git/doc/guix.texi:5986
  3780. #: guix-git/doc/guix.texi:6913
  3781. #, no-wrap
  3782. msgid "Invoking guix pack"
  3783. msgstr "调用guix pack"
  3784. #. type: menuentry
  3785. #: guix-git/doc/guix.texi:299 guix-git/doc/guix.texi:5986
  3786. msgid "Creating software bundles."
  3787. msgstr "创建软件bundle。"
  3788. #. type: section
  3789. #: guix-git/doc/guix.texi:299 guix-git/doc/guix.texi:5986
  3790. #: guix-git/doc/guix.texi:7352 guix-git/doc/guix.texi:7353
  3791. #, no-wrap
  3792. msgid "The GCC toolchain"
  3793. msgstr ""
  3794. #. type: menuentry
  3795. #: guix-git/doc/guix.texi:299 guix-git/doc/guix.texi:5986
  3796. msgid "Working with languages supported by GCC."
  3797. msgstr ""
  3798. #. type: node
  3799. #: guix-git/doc/guix.texi:299 guix-git/doc/guix.texi:5986
  3800. #: guix-git/doc/guix.texi:7378
  3801. #, no-wrap
  3802. msgid "Invoking guix git authenticate"
  3803. msgstr "调用guix git授权"
  3804. #. type: menuentry
  3805. #: guix-git/doc/guix.texi:299 guix-git/doc/guix.texi:5986
  3806. #, fuzzy
  3807. msgid "Authenticating Git repositories."
  3808. msgstr "认证HTTPS服务器。"
  3809. #. type: section
  3810. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3811. #: guix-git/doc/guix.texi:7487 guix-git/doc/guix.texi:7488
  3812. #, no-wrap
  3813. msgid "Package Modules"
  3814. msgstr "软件包模块"
  3815. #. type: menuentry
  3816. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3817. msgid "Packages from the programmer's viewpoint."
  3818. msgstr "从程序员的角度看软件包。"
  3819. #. type: section
  3820. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:318
  3821. #: guix-git/doc/guix.texi:7485 guix-git/doc/guix.texi:7549
  3822. #: guix-git/doc/guix.texi:7550
  3823. #, no-wrap
  3824. msgid "Defining Packages"
  3825. msgstr "定义软件包"
  3826. #. type: menuentry
  3827. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3828. msgid "Defining new packages."
  3829. msgstr "定义新软件包。"
  3830. #. type: section
  3831. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3832. #: guix-git/doc/guix.texi:8254 guix-git/doc/guix.texi:8255
  3833. #, fuzzy, no-wrap
  3834. msgid "Defining Package Variants"
  3835. msgstr "定义软件包"
  3836. #. type: menuentry
  3837. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3838. #, fuzzy
  3839. msgid "Customizing packages."
  3840. msgstr "构建软件包。"
  3841. #. type: section
  3842. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3843. #: guix-git/doc/guix.texi:8526 guix-git/doc/guix.texi:8527
  3844. #, no-wrap
  3845. msgid "Writing Manifests"
  3846. msgstr "书写清单"
  3847. #. type: menuentry
  3848. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3849. msgid "The bill of materials of your environment."
  3850. msgstr ""
  3851. #. type: section
  3852. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3853. #: guix-git/doc/guix.texi:8831 guix-git/doc/guix.texi:8832
  3854. #, no-wrap
  3855. msgid "Build Systems"
  3856. msgstr "构建系统"
  3857. #. type: menuentry
  3858. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3859. msgid "Specifying how packages are built."
  3860. msgstr "指定如何构建软件包。"
  3861. #. type: subsection
  3862. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3863. #: guix-git/doc/guix.texi:10036 guix-git/doc/guix.texi:10037
  3864. #: guix-git/doc/guix.texi:10568
  3865. #, fuzzy, no-wrap
  3866. msgid "Build Phases"
  3867. msgstr "构建系统"
  3868. #. type: menuentry
  3869. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3870. msgid "Phases of the build process of a package."
  3871. msgstr ""
  3872. #. type: section
  3873. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3874. #: guix-git/doc/guix.texi:10256 guix-git/doc/guix.texi:10257
  3875. #, fuzzy, no-wrap
  3876. msgid "Build Utilities"
  3877. msgstr "工具"
  3878. #. type: menuentry
  3879. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3880. #, fuzzy
  3881. msgid "Helpers for your package definitions and more."
  3882. msgstr "导入软件包定义。"
  3883. #. type: section
  3884. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3885. #: guix-git/doc/guix.texi:10725 guix-git/doc/guix.texi:10726
  3886. #, no-wrap
  3887. msgid "Search Paths"
  3888. msgstr ""
  3889. #. type: menuentry
  3890. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3891. #, fuzzy
  3892. #| msgid "Preparing the isolated build environment."
  3893. msgid "Declaring search path environment variables."
  3894. msgstr "准备隔离的构建环境。"
  3895. #. type: section
  3896. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3897. #: guix-git/doc/guix.texi:10922 guix-git/doc/guix.texi:10923
  3898. #, no-wrap
  3899. msgid "The Store"
  3900. msgstr "仓库"
  3901. #. type: menuentry
  3902. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3903. msgid "Manipulating the package store."
  3904. msgstr "操纵软件包仓库。"
  3905. #. type: section
  3906. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3907. #: guix-git/doc/guix.texi:11074 guix-git/doc/guix.texi:11075
  3908. #, no-wrap
  3909. msgid "Derivations"
  3910. msgstr ""
  3911. #. type: menuentry
  3912. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3913. msgid "Low-level interface to package derivations."
  3914. msgstr "软件包derivation的底层接口。"
  3915. #. type: section
  3916. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3917. #: guix-git/doc/guix.texi:11267 guix-git/doc/guix.texi:11268
  3918. #, no-wrap
  3919. msgid "The Store Monad"
  3920. msgstr "仓库monad"
  3921. #. type: menuentry
  3922. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3923. msgid "Purely functional interface to the store."
  3924. msgstr "仓库的纯函数式接口。"
  3925. #. type: section
  3926. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3927. #: guix-git/doc/guix.texi:11589 guix-git/doc/guix.texi:11590
  3928. #, no-wrap
  3929. msgid "G-Expressions"
  3930. msgstr "G-表达式"
  3931. #. type: menuentry
  3932. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3933. msgid "Manipulating build expressions."
  3934. msgstr "操纵构建表达式。"
  3935. #. type: node
  3936. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3937. #: guix-git/doc/guix.texi:12223
  3938. #, no-wrap
  3939. msgid "Invoking guix repl"
  3940. msgstr "调用guix repl"
  3941. #. type: menuentry
  3942. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3943. #, fuzzy
  3944. msgid "Programming Guix in Guile"
  3945. msgstr "在 Guile 中为 Guix 编程"
  3946. #. type: section
  3947. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3948. #: guix-git/doc/guix.texi:12340 guix-git/doc/guix.texi:12341
  3949. #, fuzzy, no-wrap
  3950. #| msgid "Fiddling with Guix interactively."
  3951. msgid "Using Guix Interactively"
  3952. msgstr "交互式地操作Guix。"
  3953. #. type: menuentry
  3954. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:7485
  3955. msgid "Fine-grain interaction at the REPL."
  3956. msgstr ""
  3957. #. type: node
  3958. #: guix-git/doc/guix.texi:321 guix-git/doc/guix.texi:7753
  3959. #: guix-git/doc/guix.texi:7756
  3960. #, no-wrap
  3961. msgid "package Reference"
  3962. msgstr "软件包引用"
  3963. #. type: menuentry
  3964. #: guix-git/doc/guix.texi:321 guix-git/doc/guix.texi:7753
  3965. msgid "The package data type."
  3966. msgstr "软件包数据类型。"
  3967. #. type: node
  3968. #: guix-git/doc/guix.texi:321 guix-git/doc/guix.texi:7753
  3969. #: guix-git/doc/guix.texi:8064
  3970. #, no-wrap
  3971. msgid "origin Reference"
  3972. msgstr "origin参考手册"
  3973. #. type: menuentry
  3974. #: guix-git/doc/guix.texi:321 guix-git/doc/guix.texi:7753
  3975. msgid "The origin data type."
  3976. msgstr "origin数据类型。"
  3977. #. type: node
  3978. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  3979. #: guix-git/doc/guix.texi:12494
  3980. #, no-wrap
  3981. msgid "Invoking guix build"
  3982. msgstr "调用guix build"
  3983. #. type: menuentry
  3984. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  3985. msgid "Building packages from the command line."
  3986. msgstr "用命令行构建软件包。"
  3987. #. type: node
  3988. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  3989. #: guix-git/doc/guix.texi:13452
  3990. #, no-wrap
  3991. msgid "Invoking guix edit"
  3992. msgstr "调用 guix edit"
  3993. #. type: menuentry
  3994. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  3995. msgid "Editing package definitions."
  3996. msgstr "编辑软件包定义。"
  3997. #. type: node
  3998. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  3999. #: guix-git/doc/guix.texi:13482
  4000. #, no-wrap
  4001. msgid "Invoking guix download"
  4002. msgstr "调用guix download"
  4003. #. type: menuentry
  4004. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4005. msgid "Downloading a file and printing its hash."
  4006. msgstr "下载一个文件并打印它的hash。"
  4007. #. type: node
  4008. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4009. #: guix-git/doc/guix.texi:13540
  4010. #, no-wrap
  4011. msgid "Invoking guix hash"
  4012. msgstr "调用guix hash"
  4013. #. type: menuentry
  4014. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4015. msgid "Computing the cryptographic hash of a file."
  4016. msgstr "计算一个文件的密码学hash。"
  4017. #. type: node
  4018. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4019. #: guix-git/doc/guix.texi:13631
  4020. #, no-wrap
  4021. msgid "Invoking guix import"
  4022. msgstr "调用guix import"
  4023. #. type: menuentry
  4024. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4025. msgid "Importing package definitions."
  4026. msgstr "导入软件包定义。"
  4027. #. type: node
  4028. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4029. #: guix-git/doc/guix.texi:14228
  4030. #, no-wrap
  4031. msgid "Invoking guix refresh"
  4032. msgstr "调用guix refresh"
  4033. #. type: menuentry
  4034. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4035. msgid "Updating package definitions."
  4036. msgstr "更新软件包定义。"
  4037. #. type: node
  4038. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4039. #: guix-git/doc/guix.texi:14626
  4040. #, fuzzy, no-wrap
  4041. #| msgid "Invoking guix system"
  4042. msgid "Invoking guix style"
  4043. msgstr "调用 guix 样式"
  4044. #. type: menuentry
  4045. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4046. #, fuzzy
  4047. #| msgid "Editing package definitions."
  4048. msgid "Styling package definitions."
  4049. msgstr "编辑软件包定义。"
  4050. #. type: node
  4051. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4052. #: guix-git/doc/guix.texi:14828
  4053. #, no-wrap
  4054. msgid "Invoking guix lint"
  4055. msgstr "调用guix lint"
  4056. #. type: menuentry
  4057. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4058. msgid "Finding errors in package definitions."
  4059. msgstr "从软件包定义里寻找错误。"
  4060. #. type: node
  4061. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4062. #: guix-git/doc/guix.texi:15014
  4063. #, no-wrap
  4064. msgid "Invoking guix size"
  4065. msgstr "调用guix size"
  4066. #. type: menuentry
  4067. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4068. msgid "Profiling disk usage."
  4069. msgstr "分析硬盘使用情况。"
  4070. #. type: node
  4071. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4072. #: guix-git/doc/guix.texi:15158
  4073. #, no-wrap
  4074. msgid "Invoking guix graph"
  4075. msgstr "调用guix graph"
  4076. #. type: menuentry
  4077. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4078. msgid "Visualizing the graph of packages."
  4079. msgstr "展示软件包的关系图。"
  4080. #. type: node
  4081. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4082. #: guix-git/doc/guix.texi:15439
  4083. #, no-wrap
  4084. msgid "Invoking guix publish"
  4085. msgstr "调用guix publish"
  4086. #. type: menuentry
  4087. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4088. msgid "Sharing substitutes."
  4089. msgstr "分享substitute。"
  4090. #. type: node
  4091. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4092. #: guix-git/doc/guix.texi:15713
  4093. #, no-wrap
  4094. msgid "Invoking guix challenge"
  4095. msgstr "调用guix challenge"
  4096. #. type: menuentry
  4097. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4098. msgid "Challenging substitute servers."
  4099. msgstr "挑战subtitute服务器。"
  4100. #. type: node
  4101. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4102. #: guix-git/doc/guix.texi:15902
  4103. #, no-wrap
  4104. msgid "Invoking guix copy"
  4105. msgstr "调用guix copy"
  4106. #. type: menuentry
  4107. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4108. msgid "Copying to and from a remote store."
  4109. msgstr "复制到远程的仓库,或从远程的仓库复制。"
  4110. #. type: node
  4111. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4112. #: guix-git/doc/guix.texi:15966
  4113. #, no-wrap
  4114. msgid "Invoking guix container"
  4115. msgstr "调用guix container"
  4116. #. type: menuentry
  4117. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4118. msgid "Process isolation."
  4119. msgstr "进程隔离。"
  4120. #. type: node
  4121. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4122. #: guix-git/doc/guix.texi:16020
  4123. #, no-wrap
  4124. msgid "Invoking guix weather"
  4125. msgstr "调用guix weather"
  4126. #. type: menuentry
  4127. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4128. msgid "Assessing substitute availability."
  4129. msgstr "评估substitute的可用性。"
  4130. #. type: node
  4131. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4132. #: guix-git/doc/guix.texi:16151
  4133. #, no-wrap
  4134. msgid "Invoking guix processes"
  4135. msgstr "调用guix processes"
  4136. #. type: menuentry
  4137. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:12492
  4138. msgid "Listing client processes."
  4139. msgstr "列出客户端进程。"
  4140. #. type: section
  4141. #: guix-git/doc/guix.texi:342 guix-git/doc/guix.texi:12495
  4142. #, no-wrap
  4143. msgid "Invoking @command{guix build}"
  4144. msgstr "调用@command{guix build}"
  4145. #. type: subsection
  4146. #: guix-git/doc/guix.texi:347 guix-git/doc/guix.texi:12546
  4147. #: guix-git/doc/guix.texi:12548 guix-git/doc/guix.texi:12549
  4148. #, no-wrap
  4149. msgid "Common Build Options"
  4150. msgstr "普通的构建选项"
  4151. #. type: menuentry
  4152. #: guix-git/doc/guix.texi:347 guix-git/doc/guix.texi:12546
  4153. msgid "Build options for most commands."
  4154. msgstr "大部分命令的构建选项。"
  4155. #. type: subsection
  4156. #: guix-git/doc/guix.texi:347 guix-git/doc/guix.texi:12546
  4157. #: guix-git/doc/guix.texi:12703 guix-git/doc/guix.texi:12704
  4158. #, no-wrap
  4159. msgid "Package Transformation Options"
  4160. msgstr "软件包转换选项"
  4161. #. type: menuentry
  4162. #: guix-git/doc/guix.texi:347 guix-git/doc/guix.texi:12546
  4163. msgid "Creating variants of packages."
  4164. msgstr "创建软件包的变体。"
  4165. #. type: subsection
  4166. #: guix-git/doc/guix.texi:347 guix-git/doc/guix.texi:12546
  4167. #: guix-git/doc/guix.texi:13126 guix-git/doc/guix.texi:13127
  4168. #, no-wrap
  4169. msgid "Additional Build Options"
  4170. msgstr "额外的构建选项"
  4171. #. type: menuentry
  4172. #: guix-git/doc/guix.texi:347 guix-git/doc/guix.texi:12546
  4173. msgid "Options specific to 'guix build'."
  4174. msgstr "只属于'guix build'的选项。"
  4175. #. type: subsection
  4176. #: guix-git/doc/guix.texi:347 guix-git/doc/guix.texi:12546
  4177. #: guix-git/doc/guix.texi:13372 guix-git/doc/guix.texi:13373
  4178. #, no-wrap
  4179. msgid "Debugging Build Failures"
  4180. msgstr "调试构建错误"
  4181. #. type: menuentry
  4182. #: guix-git/doc/guix.texi:347 guix-git/doc/guix.texi:12546
  4183. msgid "Real life packaging experience."
  4184. msgstr "真实的打包经验。"
  4185. #. type: section
  4186. #: guix-git/doc/guix.texi:352 guix-git/doc/guix.texi:16274
  4187. #: guix-git/doc/guix.texi:16276 guix-git/doc/guix.texi:16277
  4188. #, no-wrap
  4189. msgid "Cross-Compilation"
  4190. msgstr "交叉编译"
  4191. #. type: menuentry
  4192. #: guix-git/doc/guix.texi:352 guix-git/doc/guix.texi:16274
  4193. msgid "Cross-compiling for another architecture."
  4194. msgstr ""
  4195. #. type: section
  4196. #: guix-git/doc/guix.texi:352 guix-git/doc/guix.texi:16274
  4197. #: guix-git/doc/guix.texi:16324 guix-git/doc/guix.texi:16325
  4198. #, no-wrap
  4199. msgid "Native Builds"
  4200. msgstr ""
  4201. #. type: menuentry
  4202. #: guix-git/doc/guix.texi:352 guix-git/doc/guix.texi:16274
  4203. #, fuzzy
  4204. #| msgid "Targeting another platform or kernel."
  4205. msgid "Targeting another architecture through native builds."
  4206. msgstr "以别的平台或内核为目标。"
  4207. #. type: section
  4208. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4209. #: guix-git/doc/guix.texi:16458 guix-git/doc/guix.texi:16459
  4210. #, no-wrap
  4211. msgid "Using the Configuration System"
  4212. msgstr "使用配置系统"
  4213. #. type: menuentry
  4214. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4215. msgid "Customizing your GNU system."
  4216. msgstr "定制你的GNU系统。"
  4217. #. type: node
  4218. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4219. #: guix-git/doc/guix.texi:16714
  4220. #, no-wrap
  4221. msgid "operating-system Reference"
  4222. msgstr "操作系统参考"
  4223. #. type: menuentry
  4224. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4225. msgid "Detail of operating-system declarations."
  4226. msgstr "操作系统声明详情。"
  4227. #. type: section
  4228. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:375
  4229. #: guix-git/doc/guix.texi:16456 guix-git/doc/guix.texi:16932
  4230. #: guix-git/doc/guix.texi:16933
  4231. #, no-wrap
  4232. msgid "File Systems"
  4233. msgstr "文件系统"
  4234. #. type: menuentry
  4235. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4236. msgid "Configuring file system mounts."
  4237. msgstr "设置文件系统挂载。"
  4238. #. type: section
  4239. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4240. #: guix-git/doc/guix.texi:17295 guix-git/doc/guix.texi:17296
  4241. #, no-wrap
  4242. msgid "Mapped Devices"
  4243. msgstr "映射的设备"
  4244. #. type: menuentry
  4245. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4246. msgid "Block device extra processing."
  4247. msgstr "块设备额外的处理。"
  4248. #. type: section
  4249. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4250. #: guix-git/doc/guix.texi:17444 guix-git/doc/guix.texi:17445
  4251. #, no-wrap
  4252. msgid "Swap Space"
  4253. msgstr "交换空间"
  4254. #. type: menuentry
  4255. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4256. msgid "Backing RAM with disk space."
  4257. msgstr ""
  4258. #. type: section
  4259. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4260. #: guix-git/doc/guix.texi:17626 guix-git/doc/guix.texi:17627
  4261. #, no-wrap
  4262. msgid "User Accounts"
  4263. msgstr "用户帐号"
  4264. #. type: menuentry
  4265. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4266. msgid "Specifying user accounts."
  4267. msgstr "指定用户帐号。"
  4268. #. type: section
  4269. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:2477
  4270. #: guix-git/doc/guix.texi:16456 guix-git/doc/guix.texi:17807
  4271. #: guix-git/doc/guix.texi:17808
  4272. #, no-wrap
  4273. msgid "Keyboard Layout"
  4274. msgstr "键盘布局"
  4275. #. type: menuentry
  4276. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4277. msgid "How the system interprets key strokes."
  4278. msgstr "系统怎样理解按键。"
  4279. #. type: section
  4280. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:1973
  4281. #: guix-git/doc/guix.texi:16456 guix-git/doc/guix.texi:17952
  4282. #: guix-git/doc/guix.texi:17953
  4283. #, no-wrap
  4284. msgid "Locales"
  4285. msgstr "区域"
  4286. #. type: menuentry
  4287. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4288. msgid "Language and cultural convention settings."
  4289. msgstr "语言和文化惯例设置。"
  4290. #. type: node
  4291. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:379
  4292. #: guix-git/doc/guix.texi:16456 guix-git/doc/guix.texi:18092
  4293. #: guix-git/doc/guix.texi:18093 guix-git/doc/guix.texi:32920
  4294. #, no-wrap
  4295. msgid "Services"
  4296. msgstr "服务"
  4297. #. type: menuentry
  4298. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4299. msgid "Specifying system services."
  4300. msgstr "指定系统服务。"
  4301. #. type: section
  4302. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4303. #: guix-git/doc/guix.texi:39008 guix-git/doc/guix.texi:39009
  4304. #, no-wrap
  4305. msgid "Setuid Programs"
  4306. msgstr "setuid程序"
  4307. #. type: menuentry
  4308. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4309. #, fuzzy
  4310. #| msgid "Programs running with root privileges."
  4311. msgid "Programs running with elevated privileges."
  4312. msgstr "以root权限运行的程序。"
  4313. #. type: section
  4314. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:2137
  4315. #: guix-git/doc/guix.texi:16456 guix-git/doc/guix.texi:39095
  4316. #: guix-git/doc/guix.texi:39096
  4317. #, no-wrap
  4318. msgid "X.509 Certificates"
  4319. msgstr "X.509证书"
  4320. #. type: menuentry
  4321. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4322. msgid "Authenticating HTTPS servers."
  4323. msgstr "认证HTTPS服务器。"
  4324. #. type: section
  4325. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:2032
  4326. #: guix-git/doc/guix.texi:16456 guix-git/doc/guix.texi:39159
  4327. #: guix-git/doc/guix.texi:39160
  4328. #, no-wrap
  4329. msgid "Name Service Switch"
  4330. msgstr "Name Service Switch"
  4331. #. type: menuentry
  4332. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4333. msgid "Configuring libc's name service switch."
  4334. msgstr "设置libc的name service switch。"
  4335. #. type: section
  4336. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4337. #: guix-git/doc/guix.texi:39297 guix-git/doc/guix.texi:39298
  4338. #, no-wrap
  4339. msgid "Initial RAM Disk"
  4340. msgstr "初始的内存虚拟硬盘"
  4341. #. type: menuentry
  4342. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4343. msgid "Linux-Libre bootstrapping."
  4344. msgstr "Linux-Libre引导。"
  4345. #. type: section
  4346. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4347. #: guix-git/doc/guix.texi:39504 guix-git/doc/guix.texi:39505
  4348. #, no-wrap
  4349. msgid "Bootloader Configuration"
  4350. msgstr "引导设置"
  4351. #. type: menuentry
  4352. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4353. msgid "Configuring the boot loader."
  4354. msgstr "设置引导程序。"
  4355. #. type: node
  4356. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4357. #: guix-git/doc/guix.texi:39869
  4358. #, no-wrap
  4359. msgid "Invoking guix system"
  4360. msgstr "调用guix system"
  4361. #. type: menuentry
  4362. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4363. msgid "Instantiating a system configuration."
  4364. msgstr "实例化一个系统配置。"
  4365. #. type: node
  4366. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4367. #: guix-git/doc/guix.texi:40516
  4368. #, no-wrap
  4369. msgid "Invoking guix deploy"
  4370. msgstr "调用 guix deploy"
  4371. #. type: menuentry
  4372. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4373. #, fuzzy
  4374. msgid "Deploying a system configuration to a remote host."
  4375. msgstr "实例化一个系统配置。"
  4376. #. type: node
  4377. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4378. #: guix-git/doc/guix.texi:40757
  4379. #, no-wrap
  4380. msgid "Running Guix in a VM"
  4381. msgstr "在虚拟机里运行Guix"
  4382. #. type: menuentry
  4383. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4384. msgid "How to run Guix System in a virtual machine."
  4385. msgstr "怎样在虚拟机里运行Guix。"
  4386. #. type: section
  4387. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:418
  4388. #: guix-git/doc/guix.texi:16456 guix-git/doc/guix.texi:40892
  4389. #: guix-git/doc/guix.texi:40893
  4390. #, no-wrap
  4391. msgid "Defining Services"
  4392. msgstr "定义服务"
  4393. #. type: menuentry
  4394. #: guix-git/doc/guix.texi:373 guix-git/doc/guix.texi:16456
  4395. msgid "Adding new service definitions."
  4396. msgstr "添加新的服务定义。"
  4397. #. type: subsection
  4398. #: guix-git/doc/guix.texi:377 guix-git/doc/guix.texi:17189
  4399. #: guix-git/doc/guix.texi:17191 guix-git/doc/guix.texi:17192
  4400. #, fuzzy, no-wrap
  4401. msgid "Btrfs file system"
  4402. msgstr "网络文件系统"
  4403. #. type: subsection
  4404. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4405. #: guix-git/doc/guix.texi:18191 guix-git/doc/guix.texi:18192
  4406. #, no-wrap
  4407. msgid "Base Services"
  4408. msgstr "基础服务"
  4409. #. type: menuentry
  4410. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4411. msgid "Essential system services."
  4412. msgstr "必要的系统服务。"
  4413. #. type: subsection
  4414. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4415. #: guix-git/doc/guix.texi:19464 guix-git/doc/guix.texi:19465
  4416. #, no-wrap
  4417. msgid "Scheduled Job Execution"
  4418. msgstr "执行计划任务"
  4419. #. type: menuentry
  4420. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4421. msgid "The mcron service."
  4422. msgstr "mcron服务。"
  4423. #. type: subsection
  4424. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4425. #: guix-git/doc/guix.texi:19638 guix-git/doc/guix.texi:19639
  4426. #, no-wrap
  4427. msgid "Log Rotation"
  4428. msgstr "日志轮替"
  4429. #. type: menuentry
  4430. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4431. msgid "The rottlog service."
  4432. msgstr "rottlog服务。"
  4433. #. type: subsection
  4434. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4435. #: guix-git/doc/guix.texi:19859 guix-git/doc/guix.texi:19860
  4436. #, fuzzy, no-wrap
  4437. #| msgid "Networking Services"
  4438. msgid "Networking Setup"
  4439. msgstr "网络服务"
  4440. #. type: menuentry
  4441. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4442. msgid "Setting up network interfaces."
  4443. msgstr "配置网络接口。"
  4444. #. type: subsection
  4445. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4446. #: guix-git/doc/guix.texi:20298 guix-git/doc/guix.texi:20299
  4447. #, no-wrap
  4448. msgid "Networking Services"
  4449. msgstr "网络服务"
  4450. #. type: menuentry
  4451. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4452. msgid "Firewall, SSH daemon, etc."
  4453. msgstr "防火墙,SSH后台进程等。"
  4454. #. type: subsection
  4455. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4456. #: guix-git/doc/guix.texi:21764 guix-git/doc/guix.texi:21765
  4457. #, no-wrap
  4458. msgid "Unattended Upgrades"
  4459. msgstr ""
  4460. #. type: menuentry
  4461. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4462. msgid "Automated system upgrades."
  4463. msgstr ""
  4464. #. type: subsection
  4465. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4466. #: guix-git/doc/guix.texi:21913 guix-git/doc/guix.texi:21914
  4467. #, no-wrap
  4468. msgid "X Window"
  4469. msgstr "X窗口"
  4470. #. type: menuentry
  4471. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4472. msgid "Graphical display."
  4473. msgstr "图形显示器。"
  4474. #. type: subsection
  4475. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4476. #: guix-git/doc/guix.texi:22526 guix-git/doc/guix.texi:22527
  4477. #, no-wrap
  4478. msgid "Printing Services"
  4479. msgstr "打印服务"
  4480. #. type: menuentry
  4481. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4482. msgid "Local and remote printer support."
  4483. msgstr "本地和远程打印机的支持。"
  4484. #. type: subsection
  4485. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4486. #: guix-git/doc/guix.texi:23348 guix-git/doc/guix.texi:23349
  4487. #, no-wrap
  4488. msgid "Desktop Services"
  4489. msgstr "桌面服务"
  4490. #. type: menuentry
  4491. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4492. msgid "D-Bus and desktop services."
  4493. msgstr "D-Bus和桌面服务。"
  4494. #. type: subsection
  4495. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4496. #: guix-git/doc/guix.texi:24474 guix-git/doc/guix.texi:24475
  4497. #, no-wrap
  4498. msgid "Sound Services"
  4499. msgstr "声音服务"
  4500. #. type: menuentry
  4501. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4502. msgid "ALSA and Pulseaudio services."
  4503. msgstr "ALSA和Pulseaudio服务。"
  4504. #. type: subsection
  4505. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4506. #: guix-git/doc/guix.texi:24647 guix-git/doc/guix.texi:24648
  4507. #, no-wrap
  4508. msgid "Database Services"
  4509. msgstr "数据库服务"
  4510. #. type: menuentry
  4511. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4512. msgid "SQL databases, key-value stores, etc."
  4513. msgstr "SQL数据库,键值仓库等。"
  4514. #. type: subsection
  4515. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4516. #: guix-git/doc/guix.texi:24982 guix-git/doc/guix.texi:24983
  4517. #, no-wrap
  4518. msgid "Mail Services"
  4519. msgstr "邮件服务"
  4520. #. type: menuentry
  4521. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4522. msgid "IMAP, POP3, SMTP, and all that."
  4523. msgstr "IMAP,POP3,SMTP等。"
  4524. #. type: subsection
  4525. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4526. #: guix-git/doc/guix.texi:26852 guix-git/doc/guix.texi:26853
  4527. #, no-wrap
  4528. msgid "Messaging Services"
  4529. msgstr "消息服务"
  4530. #. type: menuentry
  4531. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4532. msgid "Messaging services."
  4533. msgstr "消息服务。"
  4534. #. type: subsection
  4535. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4536. #: guix-git/doc/guix.texi:27357 guix-git/doc/guix.texi:27358
  4537. #, no-wrap
  4538. msgid "Telephony Services"
  4539. msgstr "电话服务"
  4540. #. type: menuentry
  4541. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4542. msgid "Telephony services."
  4543. msgstr "电话服务。"
  4544. #. type: subsection
  4545. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4546. #: guix-git/doc/guix.texi:27801 guix-git/doc/guix.texi:27802
  4547. #, fuzzy, no-wrap
  4548. msgid "File-Sharing Services"
  4549. msgstr "消息服务"
  4550. #. type: menuentry
  4551. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4552. #, fuzzy
  4553. msgid "File-sharing services."
  4554. msgstr "消息服务。"
  4555. #. type: subsection
  4556. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4557. #: guix-git/doc/guix.texi:28599 guix-git/doc/guix.texi:28600
  4558. #, no-wrap
  4559. msgid "Monitoring Services"
  4560. msgstr "监控服务"
  4561. #. type: menuentry
  4562. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4563. msgid "Monitoring services."
  4564. msgstr "监控服务。"
  4565. #. type: subsection
  4566. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4567. #: guix-git/doc/guix.texi:29257 guix-git/doc/guix.texi:29258
  4568. #, no-wrap
  4569. msgid "Kerberos Services"
  4570. msgstr "Kerberos服务"
  4571. #. type: menuentry
  4572. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4573. msgid "Kerberos services."
  4574. msgstr "Kerberos服务。"
  4575. #. type: subsection
  4576. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4577. #: guix-git/doc/guix.texi:29383 guix-git/doc/guix.texi:29384
  4578. #, no-wrap
  4579. msgid "LDAP Services"
  4580. msgstr ""
  4581. #. type: menuentry
  4582. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4583. msgid "LDAP services."
  4584. msgstr ""
  4585. #. type: subsection
  4586. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4587. #: guix-git/doc/guix.texi:30047 guix-git/doc/guix.texi:30048
  4588. #, no-wrap
  4589. msgid "Web Services"
  4590. msgstr "Web服务"
  4591. #. type: menuentry
  4592. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4593. msgid "Web servers."
  4594. msgstr "Web服务。"
  4595. #. type: subsection
  4596. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4597. #: guix-git/doc/guix.texi:31272 guix-git/doc/guix.texi:31273
  4598. #, no-wrap
  4599. msgid "Certificate Services"
  4600. msgstr "证书服务"
  4601. #. type: menuentry
  4602. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4603. msgid "TLS certificates via Let's Encrypt."
  4604. msgstr "Let's Encrypt TLS证书。"
  4605. #. type: subsection
  4606. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4607. #: guix-git/doc/guix.texi:31453 guix-git/doc/guix.texi:31454
  4608. #, no-wrap
  4609. msgid "DNS Services"
  4610. msgstr "DNS服务"
  4611. #. type: menuentry
  4612. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4613. msgid "DNS daemons."
  4614. msgstr "DNS后台进程。"
  4615. #. type: subsection
  4616. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4617. #: guix-git/doc/guix.texi:32213 guix-git/doc/guix.texi:32214
  4618. #, fuzzy, no-wrap
  4619. #| msgid "VPN Services"
  4620. msgid "VNC Services"
  4621. msgstr "VNC 服务"
  4622. #. type: menuentry
  4623. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4624. #, fuzzy
  4625. #| msgid "VPN daemons."
  4626. msgid "VNC daemons."
  4627. msgstr "VPN后台进程。"
  4628. #. type: subsection
  4629. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4630. #: guix-git/doc/guix.texi:32367 guix-git/doc/guix.texi:32368
  4631. #, no-wrap
  4632. msgid "VPN Services"
  4633. msgstr "VPN服务"
  4634. #. type: menuentry
  4635. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4636. msgid "VPN daemons."
  4637. msgstr "VPN后台进程。"
  4638. #. type: node
  4639. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4640. #: guix-git/doc/guix.texi:32724 guix-git/doc/guix.texi:32725
  4641. #: guix-git/doc/guix.texi:32920
  4642. #, no-wrap
  4643. msgid "Network File System"
  4644. msgstr "网络文件系统"
  4645. #. type: menuentry
  4646. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4647. msgid "NFS related services."
  4648. msgstr "网络文件系统相关的服务。"
  4649. #. type: subsection
  4650. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4651. #: guix-git/doc/guix.texi:32920 guix-git/doc/guix.texi:32921
  4652. #, fuzzy, no-wrap
  4653. #| msgid "Game Services"
  4654. msgid "Samba Services"
  4655. msgstr "游戏服务"
  4656. #. type: menuentry
  4657. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4658. #, fuzzy
  4659. msgid "Samba services."
  4660. msgstr "基础服务"
  4661. #. type: subsection
  4662. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4663. #: guix-git/doc/guix.texi:32920 guix-git/doc/guix.texi:33072
  4664. #: guix-git/doc/guix.texi:33073
  4665. #, no-wrap
  4666. msgid "Continuous Integration"
  4667. msgstr "持续集成"
  4668. #. type: menuentry
  4669. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4670. #, fuzzy
  4671. msgid "Cuirass and Laminar services."
  4672. msgstr "Cuirass服务。"
  4673. #. type: subsection
  4674. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4675. #: guix-git/doc/guix.texi:33358 guix-git/doc/guix.texi:33359
  4676. #, no-wrap
  4677. msgid "Power Management Services"
  4678. msgstr "电源管理服务"
  4679. #. type: menuentry
  4680. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4681. msgid "Extending battery life."
  4682. msgstr "延长电池寿命。"
  4683. #. type: subsection
  4684. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4685. #: guix-git/doc/guix.texi:33924 guix-git/doc/guix.texi:33925
  4686. #, no-wrap
  4687. msgid "Audio Services"
  4688. msgstr "音频服务"
  4689. #. type: menuentry
  4690. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4691. msgid "The MPD."
  4692. msgstr "MPD。"
  4693. #. type: subsection
  4694. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4695. #: guix-git/doc/guix.texi:34291 guix-git/doc/guix.texi:34292
  4696. #, no-wrap
  4697. msgid "Virtualization Services"
  4698. msgstr "虚拟化服务"
  4699. #. type: menuentry
  4700. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4701. msgid "Virtualization services."
  4702. msgstr "虚拟化服务。"
  4703. #. type: subsection
  4704. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4705. #: guix-git/doc/guix.texi:35985 guix-git/doc/guix.texi:35986
  4706. #, no-wrap
  4707. msgid "Version Control Services"
  4708. msgstr "版本控制服务"
  4709. #. type: menuentry
  4710. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4711. msgid "Providing remote access to Git repositories."
  4712. msgstr "远程访问Git仓库。"
  4713. #. type: subsection
  4714. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4715. #: guix-git/doc/guix.texi:37341 guix-git/doc/guix.texi:37342
  4716. #, no-wrap
  4717. msgid "Game Services"
  4718. msgstr "游戏服务"
  4719. #. type: menuentry
  4720. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4721. msgid "Game servers."
  4722. msgstr "游戏服务器。"
  4723. #. type: subsection
  4724. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4725. #: guix-git/doc/guix.texi:37392 guix-git/doc/guix.texi:37393
  4726. #, fuzzy, no-wrap
  4727. msgid "PAM Mount Service"
  4728. msgstr "声音服务"
  4729. #. type: menuentry
  4730. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4731. msgid "Service to mount volumes when logging in."
  4732. msgstr ""
  4733. #. type: subsection
  4734. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4735. #: guix-git/doc/guix.texi:37475 guix-git/doc/guix.texi:37476
  4736. #, fuzzy, no-wrap
  4737. msgid "Guix Services"
  4738. msgstr "音频服务"
  4739. #. type: menuentry
  4740. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4741. msgid "Services relating specifically to Guix."
  4742. msgstr ""
  4743. #. type: subsection
  4744. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4745. #: guix-git/doc/guix.texi:37902 guix-git/doc/guix.texi:37903
  4746. #, fuzzy, no-wrap
  4747. msgid "Linux Services"
  4748. msgstr "邮件服务"
  4749. #. type: menuentry
  4750. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4751. msgid "Services tied to the Linux kernel."
  4752. msgstr ""
  4753. #. type: subsection
  4754. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4755. #: guix-git/doc/guix.texi:38191 guix-git/doc/guix.texi:38192
  4756. #, fuzzy, no-wrap
  4757. msgid "Hurd Services"
  4758. msgstr "声音服务"
  4759. #. type: menuentry
  4760. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4761. msgid "Services specific for a Hurd System."
  4762. msgstr ""
  4763. #. type: subsection
  4764. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4765. #: guix-git/doc/guix.texi:38233 guix-git/doc/guix.texi:38234
  4766. #, no-wrap
  4767. msgid "Miscellaneous Services"
  4768. msgstr "其它各种服务"
  4769. #. type: menuentry
  4770. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:18189
  4771. msgid "Other services."
  4772. msgstr "其它服务。"
  4773. #. type: subsection
  4774. #: guix-git/doc/guix.texi:424 guix-git/doc/guix.texi:40905
  4775. #: guix-git/doc/guix.texi:40907 guix-git/doc/guix.texi:40908
  4776. #, no-wrap
  4777. msgid "Service Composition"
  4778. msgstr "合成服务"
  4779. #. type: menuentry
  4780. #: guix-git/doc/guix.texi:424 guix-git/doc/guix.texi:40905
  4781. msgid "The model for composing services."
  4782. msgstr "服务合成的模型。"
  4783. #. type: subsection
  4784. #: guix-git/doc/guix.texi:424 guix-git/doc/guix.texi:40905
  4785. #: guix-git/doc/guix.texi:40963 guix-git/doc/guix.texi:40964
  4786. #, no-wrap
  4787. msgid "Service Types and Services"
  4788. msgstr "服务类型和服务"
  4789. #. type: menuentry
  4790. #: guix-git/doc/guix.texi:424 guix-git/doc/guix.texi:40905
  4791. msgid "Types and services."
  4792. msgstr "类型和服务。"
  4793. #. type: subsection
  4794. #: guix-git/doc/guix.texi:424 guix-git/doc/guix.texi:40905
  4795. #: guix-git/doc/guix.texi:41099 guix-git/doc/guix.texi:41100
  4796. #, no-wrap
  4797. msgid "Service Reference"
  4798. msgstr "服务参考"
  4799. #. type: menuentry
  4800. #: guix-git/doc/guix.texi:424 guix-git/doc/guix.texi:40905
  4801. msgid "API reference."
  4802. msgstr "API参考。"
  4803. #. type: subsection
  4804. #: guix-git/doc/guix.texi:424 guix-git/doc/guix.texi:40905
  4805. #: guix-git/doc/guix.texi:41416 guix-git/doc/guix.texi:41417
  4806. #, no-wrap
  4807. msgid "Shepherd Services"
  4808. msgstr "Shepherd服务"
  4809. #. type: menuentry
  4810. #: guix-git/doc/guix.texi:424 guix-git/doc/guix.texi:40905
  4811. msgid "A particular type of service."
  4812. msgstr "一种特别的服务。"
  4813. #. type: subsection
  4814. #: guix-git/doc/guix.texi:424 guix-git/doc/guix.texi:40905
  4815. #: guix-git/doc/guix.texi:41668 guix-git/doc/guix.texi:41669
  4816. #, fuzzy, no-wrap
  4817. #| msgid "System Configuration"
  4818. msgid "Complex Configurations"
  4819. msgstr "系统配置"
  4820. #. type: menuentry
  4821. #: guix-git/doc/guix.texi:424 guix-git/doc/guix.texi:40905
  4822. #, fuzzy
  4823. #| msgid "Instantiating a system configuration."
  4824. msgid "Defining bindings for complex configurations."
  4825. msgstr "实例化一个系统配置。"
  4826. #. type: section
  4827. #: guix-git/doc/guix.texi:431 guix-git/doc/guix.texi:42121
  4828. #: guix-git/doc/guix.texi:42123 guix-git/doc/guix.texi:42124
  4829. #, fuzzy, no-wrap
  4830. #| msgid "Preparing the isolated build environment."
  4831. msgid "Declaring the Home Environment"
  4832. msgstr "准备隔离的构建环境。"
  4833. #. type: menuentry
  4834. #: guix-git/doc/guix.texi:431 guix-git/doc/guix.texi:42121
  4835. #, fuzzy
  4836. #| msgid "Customizing your GNU system."
  4837. msgid "Customizing your Home."
  4838. msgstr "定制你的GNU系统。"
  4839. #. type: section
  4840. #: guix-git/doc/guix.texi:431 guix-git/doc/guix.texi:42121
  4841. #: guix-git/doc/guix.texi:42206 guix-git/doc/guix.texi:42207
  4842. #, fuzzy, no-wrap
  4843. #| msgid "Configuring the boot loader."
  4844. msgid "Configuring the Shell"
  4845. msgstr "设置引导程序。"
  4846. #. type: menuentry
  4847. #: guix-git/doc/guix.texi:431 guix-git/doc/guix.texi:42121
  4848. #, fuzzy
  4849. #| msgid "Invoking guix environment"
  4850. msgid "Enabling home environment."
  4851. msgstr "调用guix environment"
  4852. #. type: section
  4853. #: guix-git/doc/guix.texi:431 guix-git/doc/guix.texi:433
  4854. #: guix-git/doc/guix.texi:42121 guix-git/doc/guix.texi:42253
  4855. #: guix-git/doc/guix.texi:42254
  4856. #, fuzzy, no-wrap
  4857. #| msgid "Game Services"
  4858. msgid "Home Services"
  4859. msgstr "游戏服务"
  4860. #. type: menuentry
  4861. #: guix-git/doc/guix.texi:431 guix-git/doc/guix.texi:42121
  4862. #, fuzzy
  4863. #| msgid "Specifying system services."
  4864. msgid "Specifying home services."
  4865. msgstr "指定系统服务。"
  4866. #. type: node
  4867. #: guix-git/doc/guix.texi:431 guix-git/doc/guix.texi:42121
  4868. #: guix-git/doc/guix.texi:43735
  4869. #, fuzzy, no-wrap
  4870. #| msgid "Invoking guix hash"
  4871. msgid "Invoking guix home"
  4872. msgstr "调用guix hash"
  4873. #. type: menuentry
  4874. #: guix-git/doc/guix.texi:431 guix-git/doc/guix.texi:42121
  4875. #, fuzzy
  4876. #| msgid "Instantiating a system configuration."
  4877. msgid "Instantiating a home configuration."
  4878. msgstr "实例化一个系统配置。"
  4879. #. type: subsection
  4880. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4881. #: guix-git/doc/guix.texi:42302 guix-git/doc/guix.texi:42303
  4882. #, fuzzy, no-wrap
  4883. #| msgid "Essential system services."
  4884. msgid "Essential Home Services"
  4885. msgstr "必要的系统服务。"
  4886. #. type: menuentry
  4887. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4888. msgid "Environment variables, packages, on-* scripts."
  4889. msgstr ""
  4890. #. type: menuentry
  4891. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4892. #, fuzzy
  4893. #| msgid "Shepherd Services"
  4894. msgid "Shells: Shells Home Services"
  4895. msgstr "Shepherd服务"
  4896. #. type: menuentry
  4897. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4898. msgid "POSIX shells, Bash, Zsh."
  4899. msgstr ""
  4900. #. type: menuentry
  4901. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4902. #, fuzzy
  4903. msgid "Mcron: Mcron Home Service"
  4904. msgstr "声音服务"
  4905. #. type: menuentry
  4906. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4907. #, fuzzy
  4908. #| msgid "Scheduled Job Execution"
  4909. msgid "Scheduled User's Job Execution."
  4910. msgstr "执行计划任务"
  4911. #. type: menuentry
  4912. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4913. #, fuzzy
  4914. #| msgid "Power Management Services"
  4915. msgid "Power Management: Power Management Home Services"
  4916. msgstr "电源管理服务"
  4917. #. type: menuentry
  4918. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4919. #, fuzzy
  4920. msgid "Services for battery power."
  4921. msgstr "分享你的工作。"
  4922. #. type: menuentry
  4923. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4924. #, fuzzy
  4925. #| msgid "Shepherd Services"
  4926. msgid "Shepherd: Shepherd Home Service"
  4927. msgstr "Shepherd服务"
  4928. #. type: menuentry
  4929. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4930. #, fuzzy
  4931. #| msgid "Messaging services."
  4932. msgid "Managing User's Daemons."
  4933. msgstr "消息服务。"
  4934. #. type: menuentry
  4935. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4936. msgid "SSH: Secure Shell"
  4937. msgstr ""
  4938. #. type: menuentry
  4939. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4940. msgid "Setting up the secure shell client."
  4941. msgstr ""
  4942. #. type: menuentry
  4943. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4944. msgid "GPG: GNU Privacy Guard"
  4945. msgstr ""
  4946. #. type: menuentry
  4947. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4948. msgid "Setting up GPG and related tools."
  4949. msgstr ""
  4950. #. type: menuentry
  4951. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4952. #, fuzzy
  4953. #| msgid "Desktop Services"
  4954. msgid "Desktop: Desktop Home Services"
  4955. msgstr "桌面服务"
  4956. #. type: menuentry
  4957. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4958. msgid "Services for graphical environments."
  4959. msgstr ""
  4960. #. type: menuentry
  4961. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4962. #, fuzzy
  4963. #| msgid "Game Services"
  4964. msgid "Guix: Guix Home Services"
  4965. msgstr "游戏服务"
  4966. #. type: menuentry
  4967. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4968. #, fuzzy
  4969. #| msgid "Services"
  4970. msgid "Services for Guix."
  4971. msgstr "服务"
  4972. #. type: menuentry
  4973. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4974. #, fuzzy
  4975. msgid "Fonts: Fonts Home Services"
  4976. msgstr "声音服务"
  4977. #. type: menuentry
  4978. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4979. #, fuzzy
  4980. #| msgid "Messaging services."
  4981. msgid "Services for managing User's fonts."
  4982. msgstr "消息服务。"
  4983. #. type: menuentry
  4984. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4985. #, fuzzy
  4986. msgid "Sound: Sound Home Services"
  4987. msgstr "声音服务"
  4988. #. type: menuentry
  4989. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4990. msgid "Dealing with audio."
  4991. msgstr ""
  4992. #. type: menuentry
  4993. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  4994. #, fuzzy
  4995. #| msgid "Messaging Services"
  4996. msgid "Messaging: Messaging Home Services"
  4997. msgstr "消息服务"
  4998. #. type: menuentry
  4999. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  5000. #, fuzzy
  5001. #| msgid "Messaging services."
  5002. msgid "Services for managing messaging."
  5003. msgstr "消息服务。"
  5004. #. type: menuentry
  5005. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  5006. #, fuzzy
  5007. #| msgid "Game Services"
  5008. msgid "Media: Media Home Services"
  5009. msgstr "游戏服务"
  5010. #. type: menuentry
  5011. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:42299
  5012. #, fuzzy
  5013. #| msgid "Messaging services."
  5014. msgid "Services for managing media."
  5015. msgstr "消息服务。"
  5016. #. type: node
  5017. #: guix-git/doc/guix.texi:452 guix-git/doc/guix.texi:44154
  5018. #: guix-git/doc/guix.texi:44156
  5019. #, fuzzy, no-wrap
  5020. #| msgid "origin Reference"
  5021. msgid "platform Reference"
  5022. msgstr "origin参考手册"
  5023. #. type: menuentry
  5024. #: guix-git/doc/guix.texi:452 guix-git/doc/guix.texi:44154
  5025. #, fuzzy
  5026. #| msgid "Detail of operating-system declarations."
  5027. msgid "Detail of platform declarations."
  5028. msgstr "操作系统声明详情。"
  5029. #. type: section
  5030. #: guix-git/doc/guix.texi:452 guix-git/doc/guix.texi:44154
  5031. #: guix-git/doc/guix.texi:44198 guix-git/doc/guix.texi:44199
  5032. #, fuzzy, no-wrap
  5033. #| msgid "Supported hardware."
  5034. msgid "Supported Platforms"
  5035. msgstr "支持的硬件。"
  5036. #. type: menuentry
  5037. #: guix-git/doc/guix.texi:452 guix-git/doc/guix.texi:44154
  5038. msgid "Description of the supported platforms."
  5039. msgstr ""
  5040. #. type: chapter
  5041. #: guix-git/doc/guix.texi:454 guix-git/doc/guix.texi:44252
  5042. #, no-wrap
  5043. msgid "Creating System Images"
  5044. msgstr "创建系统镜像"
  5045. #. type: node
  5046. #: guix-git/doc/guix.texi:459 guix-git/doc/guix.texi:44284
  5047. #: guix-git/doc/guix.texi:44286
  5048. #, fuzzy, no-wrap
  5049. #| msgid "package Reference"
  5050. msgid "image Reference"
  5051. msgstr "软件包引用"
  5052. #. type: menuentry
  5053. #: guix-git/doc/guix.texi:459 guix-git/doc/guix.texi:44284
  5054. #, fuzzy
  5055. #| msgid "Detail of operating-system declarations."
  5056. msgid "Detail of image declarations."
  5057. msgstr "操作系统声明详情。"
  5058. #. type: section
  5059. #: guix-git/doc/guix.texi:459 guix-git/doc/guix.texi:44284
  5060. #: guix-git/doc/guix.texi:44435 guix-git/doc/guix.texi:44436
  5061. #, no-wrap
  5062. msgid "Instantiate an Image"
  5063. msgstr ""
  5064. #. type: menuentry
  5065. #: guix-git/doc/guix.texi:459 guix-git/doc/guix.texi:44284
  5066. msgid "How to instantiate an image record."
  5067. msgstr ""
  5068. #. type: section
  5069. #: guix-git/doc/guix.texi:459 guix-git/doc/guix.texi:44284
  5070. #: guix-git/doc/guix.texi:44589 guix-git/doc/guix.texi:44590
  5071. #, fuzzy, no-wrap
  5072. #| msgid "package Reference"
  5073. msgid "image-type Reference"
  5074. msgstr "软件包引用"
  5075. #. type: menuentry
  5076. #: guix-git/doc/guix.texi:459 guix-git/doc/guix.texi:44284
  5077. #, fuzzy
  5078. #| msgid "Detail of operating-system declarations."
  5079. msgid "Detail of image types declaration."
  5080. msgstr "操作系统声明详情。"
  5081. #. type: section
  5082. #: guix-git/doc/guix.texi:459 guix-git/doc/guix.texi:44284
  5083. #: guix-git/doc/guix.texi:44710 guix-git/doc/guix.texi:44711
  5084. #, fuzzy, no-wrap
  5085. #| msgid "Package Modules"
  5086. msgid "Image Modules"
  5087. msgstr "软件包模块"
  5088. #. type: menuentry
  5089. #: guix-git/doc/guix.texi:459 guix-git/doc/guix.texi:44284
  5090. msgid "Definition of image modules."
  5091. msgstr ""
  5092. #. type: section
  5093. #: guix-git/doc/guix.texi:461 guix-git/doc/guix.texi:44287
  5094. #, fuzzy, no-wrap
  5095. #| msgid "package Reference"
  5096. msgid "@code{image} Reference"
  5097. msgstr "软件包引用"
  5098. #. type: node
  5099. #: guix-git/doc/guix.texi:463 guix-git/doc/guix.texi:44376
  5100. #: guix-git/doc/guix.texi:44378
  5101. #, fuzzy, no-wrap
  5102. #| msgid "origin Reference"
  5103. msgid "partition Reference"
  5104. msgstr "origin参考手册"
  5105. #. type: section
  5106. #: guix-git/doc/guix.texi:468 guix-git/doc/guix.texi:44780
  5107. #: guix-git/doc/guix.texi:44782 guix-git/doc/guix.texi:44783
  5108. #, no-wrap
  5109. msgid "Separate Debug Info"
  5110. msgstr ""
  5111. #. type: menuentry
  5112. #: guix-git/doc/guix.texi:468 guix-git/doc/guix.texi:44780
  5113. msgid "Installing 'debug' outputs."
  5114. msgstr "安装“调试”输出"
  5115. #. type: section
  5116. #: guix-git/doc/guix.texi:468 guix-git/doc/guix.texi:44780
  5117. #: guix-git/doc/guix.texi:44855 guix-git/doc/guix.texi:44856
  5118. #, no-wrap
  5119. msgid "Rebuilding Debug Info"
  5120. msgstr ""
  5121. #. type: menuentry
  5122. #: guix-git/doc/guix.texi:468 guix-git/doc/guix.texi:44780
  5123. msgid "Building missing debug info."
  5124. msgstr ""
  5125. #. type: node
  5126. #: guix-git/doc/guix.texi:473 guix-git/doc/guix.texi:45223
  5127. #: guix-git/doc/guix.texi:45225
  5128. #, no-wrap
  5129. msgid "Full-Source Bootstrap"
  5130. msgstr ""
  5131. #. type: menuentry
  5132. #: guix-git/doc/guix.texi:473 guix-git/doc/guix.texi:45223
  5133. msgid "A Bootstrap worthy of GNU."
  5134. msgstr ""
  5135. #. type: section
  5136. #: guix-git/doc/guix.texi:473 guix-git/doc/guix.texi:45223
  5137. #: guix-git/doc/guix.texi:45307 guix-git/doc/guix.texi:45308
  5138. #, no-wrap
  5139. msgid "Preparing to Use the Bootstrap Binaries"
  5140. msgstr ""
  5141. #. type: menuentry
  5142. #: guix-git/doc/guix.texi:473 guix-git/doc/guix.texi:45223
  5143. msgid "Building that what matters most."
  5144. msgstr ""
  5145. #. type: cindex
  5146. #: guix-git/doc/guix.texi:481
  5147. #, no-wrap
  5148. msgid "purpose"
  5149. msgstr "目的"
  5150. #. type: Plain text
  5151. #: guix-git/doc/guix.texi:489
  5152. 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."
  5153. msgstr "GNU Guix@footnote{``Guix''读做``geeks'',或``ɡiːks''(国际音标)}是GNU系统的包管理器和发行版。Guix让无特权的用户可以轻松地安装,升级,或删除软件包,回滚到前一个软件包集合,从源代码构建软件包,及辅助软件环境的创建和维护。"
  5154. #. type: cindex
  5155. #: guix-git/doc/guix.texi:490 guix-git/doc/guix.texi:565
  5156. #, no-wrap
  5157. msgid "Guix System"
  5158. msgstr "Guix系统"
  5159. #. type: cindex
  5160. #: guix-git/doc/guix.texi:491
  5161. #, no-wrap
  5162. msgid "GuixSD, now Guix System"
  5163. msgstr "GuixSD,现在称为Guix系统"
  5164. #. type: cindex
  5165. #: guix-git/doc/guix.texi:492
  5166. #, no-wrap
  5167. msgid "Guix System Distribution, now Guix System"
  5168. msgstr "Guix系统发行版,现在称为Guix系统"
  5169. #. type: Plain text
  5170. #: guix-git/doc/guix.texi:501
  5171. 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}."
  5172. msgstr "你可以在现有的GNU/Linux发行版上安装GNU@tie{}Guix(@pxref{Installation}),Guix可以补充已有的工具,并且不会和它们产生冲突。或者你可以把它当作独立的操作系统发行版(@dfn{Guix@tie{}系统}@footnote{我们以前把Guix系统称为``Guix系统发行版''或``GuixSD''。我们现在觉得把一切都统一在``Guix''的旗帜下更合理,因为,毕竟即使在别的发行版上你也可以随时通过@command{guix system}命令获得Guix系统})。@xref{GNU Distribution}."
  5173. #. type: cindex
  5174. #: guix-git/doc/guix.texi:510
  5175. #, no-wrap
  5176. msgid "user interfaces"
  5177. msgstr "用户界面"
  5178. #. type: Plain text
  5179. #: guix-git/doc/guix.texi:516
  5180. #, fuzzy
  5181. 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})."
  5182. msgstr "Guix提供了命令行软件包管理接口(@pxref{Package Management}),辅助软件开发的工具(@pxref{Development}),高级用法的命令行接口(@pxref{Utilities}),以及Scheme编程语言接口(@pxref{Programming Interface})。"
  5183. #. type: cindex
  5184. #: guix-git/doc/guix.texi:516
  5185. #, no-wrap
  5186. msgid "build daemon"
  5187. msgstr "构建后台进程"
  5188. #. type: Plain text
  5189. #: guix-git/doc/guix.texi:520
  5190. 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})."
  5191. msgstr "@dfn{构建后台进程}为用户构建软件包(@pxref{Setting Up the Daemon}),及从授权的源(@pxref{Substitutes})下载预构建的二进制文件。"
  5192. #. type: cindex
  5193. #: guix-git/doc/guix.texi:521
  5194. #, no-wrap
  5195. msgid "extensibility of the distribution"
  5196. msgstr "发行版的扩展性"
  5197. #. type: cindex
  5198. #: guix-git/doc/guix.texi:522 guix-git/doc/guix.texi:7509
  5199. #, no-wrap
  5200. msgid "customization, of packages"
  5201. msgstr "定制软件包"
  5202. #. type: Plain text
  5203. #: guix-git/doc/guix.texi:531
  5204. 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})."
  5205. 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})。"
  5206. #. type: cindex
  5207. #: guix-git/doc/guix.texi:532
  5208. #, no-wrap
  5209. msgid "functional package management"
  5210. msgstr "函数式包管理器"
  5211. #. type: cindex
  5212. #: guix-git/doc/guix.texi:533
  5213. #, no-wrap
  5214. msgid "isolation"
  5215. msgstr "隔离"
  5216. #. type: Plain text
  5217. #: guix-git/doc/guix.texi:548
  5218. 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."
  5219. msgstr "在底层,Guix实现了由Nix(@pxref{Acknowledgments})开创的@dfn{函数式包管理器}。在Guix里,软件包构建和安装过程被视为数学意义上的@emph{函数}。函数获取输入,如构建脚本、编译器和库,并且返回一个安装好的软件包。作为一个纯函数,它的结果只取决于它的输入--例如,它不能引用没有作为显式输入传入的软件和脚本。当传入特定的输入时,一个构建函数总是得到相同的结果。它不能以任何方式修改运行系统的环境,例如,它不能创建,修改,或删除构建和安装环境之外的文件夹。这是通过在隔离的环境(@dfn{容器})里运行构建进程实现的,在这个环境里只能访问到显式的输入。"
  5220. #. type: cindex
  5221. #: guix-git/doc/guix.texi:549 guix-git/doc/guix.texi:10925
  5222. #, no-wrap
  5223. msgid "store"
  5224. msgstr "仓库"
  5225. #. type: Plain text
  5226. #: guix-git/doc/guix.texi:556
  5227. 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."
  5228. msgstr "软件包构建函数的结果被@dfn{缓存}在文件系统里的一个叫做@dfn{仓库}(@pxref{The Store})的特殊文件夹内。每个软件包都被安装在仓库(默认在@file{/gnu/store})里的一个独立的文件夹内。这个文件夹的名字含有用于构建这个软件包的所有输入的hash,所以,修改输入会得到一个不同的文件夹名。"
  5229. #. type: Plain text
  5230. #: guix-git/doc/guix.texi:560
  5231. 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})."
  5232. msgstr "这种手段是实现Guix的突出功能的基础:对事务型软件包升级和回滚的支持,每个用户独立的安装,软件包垃圾回收@pxref{Features}。"
  5233. #. type: Plain text
  5234. #: guix-git/doc/guix.texi:575
  5235. 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."
  5236. msgstr "Guix提供了一个GNU系统发行版,这个发新版只包含自由软件@footnote{这里的“自由”指的是@url{https://www.gnu.org/philosophy/free-sw.html,软件提供给用户的自由}。}。这个发行版可以独立安装(@pxref{System Installation}),但是把Guix安装为一个已经安装好的GNU/Linux系统的包管理器也是可行的(@pxref{Installation})。当我们需要区分这两者时,我们把独立的发行版称为“Guix系统”。"
  5237. #. type: Plain text
  5238. #: guix-git/doc/guix.texi:581
  5239. 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}):"
  5240. msgstr "这个发行版提供了GNU核心软件包,如libc、gcc和Binutils,以及很多GNU和非GNU应用程序。可用的软件包的完整列表可以在@url{https://www.gnu.org/software/guix/packages,on-line}浏览,或者通过运行@command{guix package}(@pxref{Invoking guix package})获得:"
  5241. #. type: example
  5242. #: guix-git/doc/guix.texi:584
  5243. #, no-wrap
  5244. msgid "guix package --list-available\n"
  5245. msgstr "guix package --list-available\n"
  5246. #. type: Plain text
  5247. #: guix-git/doc/guix.texi:590
  5248. 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."
  5249. msgstr "我们的目标是提供一个基于Linux和其它GNU变体的可用的100%自由的软件发行版,我们的重点是推广和紧密集成GNU组件,以及强调帮助用户行使那些自由的程序和工具。"
  5250. #. type: Plain text
  5251. #: guix-git/doc/guix.texi:592
  5252. msgid "Packages are currently available on the following platforms:"
  5253. msgstr "目前这些平台提供软件包:"
  5254. #. type: defvar
  5255. #: guix-git/doc/guix.texi:595 guix-git/doc/guix.texi:2324
  5256. #: guix-git/doc/guix.texi:44232
  5257. #, no-wrap
  5258. msgid "x86_64-linux"
  5259. msgstr "x86_64-linux"
  5260. #. type: table
  5261. #: guix-git/doc/guix.texi:597
  5262. msgid "Intel/AMD @code{x86_64} architecture, Linux-Libre kernel."
  5263. msgstr "Intel/AMD @code{x86_64} 架构,Linux-Libre 内核。"
  5264. #. type: defvar
  5265. #: guix-git/doc/guix.texi:598 guix-git/doc/guix.texi:2327
  5266. #: guix-git/doc/guix.texi:44228
  5267. #, no-wrap
  5268. msgid "i686-linux"
  5269. msgstr "i686-linux"
  5270. #. type: table
  5271. #: guix-git/doc/guix.texi:600
  5272. msgid "Intel 32-bit architecture (IA32), Linux-Libre kernel."
  5273. msgstr "Intel 32 位架构(IA32),Linux-Libre 内核。"
  5274. #. type: item
  5275. #: guix-git/doc/guix.texi:601
  5276. #, no-wrap
  5277. msgid "armhf-linux"
  5278. msgstr "armhf-linux"
  5279. #. type: table
  5280. #: guix-git/doc/guix.texi:605
  5281. msgid "ARMv7-A architecture with hard float, Thumb-2 and NEON, using the EABI hard-float application binary interface (ABI), and Linux-Libre kernel."
  5282. msgstr "ARMv7-A架构,带硬件浮点数、Thumb-2和NEON扩展,EABI硬件浮点数应用二进制接口(ABI),和Linux-Libre内核。"
  5283. #. type: defvar
  5284. #: guix-git/doc/guix.texi:606 guix-git/doc/guix.texi:44208
  5285. #, no-wrap
  5286. msgid "aarch64-linux"
  5287. msgstr "aarch64-linux"
  5288. #. type: table
  5289. #: guix-git/doc/guix.texi:608
  5290. #, fuzzy
  5291. msgid "little-endian 64-bit ARMv8-A processors, Linux-Libre kernel."
  5292. msgstr "小端序64位MIPS处理器,龙芯系列,n32 ABI,Linux-Libre内核。"
  5293. #. type: defvar
  5294. #: guix-git/doc/guix.texi:609 guix-git/doc/guix.texi:44246
  5295. #, no-wrap
  5296. msgid "i586-gnu"
  5297. msgstr ""
  5298. #. type: table
  5299. #: guix-git/doc/guix.texi:612
  5300. msgid "@uref{https://hurd.gnu.org, GNU/Hurd} on the Intel 32-bit architecture (IA32)."
  5301. msgstr ""
  5302. #. type: table
  5303. #: guix-git/doc/guix.texi:618
  5304. 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!"
  5305. msgstr ""
  5306. #. type: item
  5307. #: guix-git/doc/guix.texi:619
  5308. #, fuzzy, no-wrap
  5309. msgid "mips64el-linux (unsupported)"
  5310. msgstr "mips64el-linux"
  5311. #. type: table
  5312. #: guix-git/doc/guix.texi:625
  5313. 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."
  5314. msgstr ""
  5315. #. type: item
  5316. #: guix-git/doc/guix.texi:626
  5317. #, no-wrap
  5318. msgid "powerpc-linux (unsupported)"
  5319. msgstr ""
  5320. #. type: table
  5321. #: guix-git/doc/guix.texi:631
  5322. 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."
  5323. msgstr ""
  5324. #. type: table
  5325. #: guix-git/doc/guix.texi:642
  5326. 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!"
  5327. msgstr ""
  5328. #. type: defvar
  5329. #: guix-git/doc/guix.texi:643 guix-git/doc/guix.texi:44224
  5330. #, fuzzy, no-wrap
  5331. #| msgid "aarch64-linux"
  5332. msgid "riscv64-linux"
  5333. msgstr "aarch64-linux"
  5334. #. type: table
  5335. #: guix-git/doc/guix.texi:651
  5336. msgid "little-endian 64-bit RISC-V processors, specifically RV64GC, and Linux-Libre kernel. 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!"
  5337. msgstr "小端64位RISC-V处理器,特别是RV64GC和Linux Libre内核。该平台可作为“技术预览”使用:尽管支持该平台,但构建场(@pxref{Substitutes})中尚未提供substitutes,并且某些包可能无法构建 (@pxref{Tracking Bugs and Patches})。这就是说,Guix社区正在积极完善这种支持,现在是探索和加入它的好时机!"
  5338. #. type: Plain text
  5339. #: guix-git/doc/guix.texi:661
  5340. 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."
  5341. msgstr "在Guix系统里,你@emph{声明}操作系统所有方面的配置,然后Guix以事务型的,可重复的,和无状态的方式解决实例化配置的问题(@pxref{System Configuration})。Guix系统使用Linux-Libre内核,Shepherd初始化系统@pxref{Introduction,,, shepherd, GNU Shepherd用户手册},知名的GNU工具和工具链,以及你可选的图形界面环境和系统服务。"
  5342. #. type: Plain text
  5343. #: guix-git/doc/guix.texi:665
  5344. msgid "Guix System is available on all the above platforms except @code{mips64el-linux}, @code{powerpc-linux}, @code{powerpc64le-linux} and @code{riscv64-linux}."
  5345. msgstr "Guix系统在上面所有的平台上都可用,但@code{mips64el-linux}, @code{powerpc-linux}, @code{powerpc64le-linux} 和 @code{riscv64-linux}除外。"
  5346. #. type: Plain text
  5347. #: guix-git/doc/guix.texi:669
  5348. msgid "For information on porting to other architectures or kernels, @pxref{Porting}."
  5349. msgstr "关于移植到其它架构或内核的信息,@pxref{Porting}。"
  5350. #. type: Plain text
  5351. #: guix-git/doc/guix.texi:672
  5352. msgid "Building this distribution is a cooperative effort, and you are invited to join! @xref{Contributing}, for information about how you can help."
  5353. msgstr "构建这个发行版需要努力合作,欢迎你加入!关于你可以怎样提供帮助的信息,@xref{Contributing}。"
  5354. #. type: cindex
  5355. #: guix-git/doc/guix.texi:678
  5356. #, no-wrap
  5357. msgid "installing Guix"
  5358. msgstr "安装Guix"
  5359. #. type: quotation
  5360. #: guix-git/doc/guix.texi:690
  5361. 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."
  5362. 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用户身份运行。"
  5363. #. type: cindex
  5364. #: guix-git/doc/guix.texi:692 guix-git/doc/guix.texi:1968
  5365. #, no-wrap
  5366. msgid "foreign distro"
  5367. msgstr "别的发行版"
  5368. #. type: cindex
  5369. #: guix-git/doc/guix.texi:693
  5370. #, no-wrap
  5371. msgid "directories related to foreign distro"
  5372. msgstr "和foreign distro相关的文件夹"
  5373. #. type: Plain text
  5374. #: guix-git/doc/guix.texi:698
  5375. 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."
  5376. msgstr "在foreign distro上安装时,GNU@tie{}Guix可以在不引起冲突的前提下补充现有的工具。它的数据只存放在两个文件夹里,通常是@file{/gnu/store}和@file{/var/guix};系统上的其它文件,如@file{/etc},不会被修改。"
  5377. #. type: Plain text
  5378. #: guix-git/doc/guix.texi:701
  5379. msgid "Once installed, Guix can be updated by running @command{guix pull} (@pxref{Invoking guix pull})."
  5380. msgstr "一旦安装好了,可以通过运行@command{guix pull}升级Guix(@pxref{Invoking guix pull})。"
  5381. #. type: Plain text
  5382. #: guix-git/doc/guix.texi:706
  5383. 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."
  5384. msgstr "如果你希望手动执行安装步骤,或者想改变安装步骤,接下来这些小节会很有用。它们介绍Guix的软件依赖,以及如何手动安装和使用Guix。"
  5385. #. type: cindex
  5386. #: guix-git/doc/guix.texi:720
  5387. #, no-wrap
  5388. msgid "installing Guix from binaries"
  5389. msgstr "用二进制文件安装Guix"
  5390. #. type: cindex
  5391. #: guix-git/doc/guix.texi:721
  5392. #, no-wrap
  5393. msgid "installer script"
  5394. msgstr "安装脚本"
  5395. #. type: Plain text
  5396. #: guix-git/doc/guix.texi:727
  5397. 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."
  5398. msgstr "这个小节介绍如何在任意的系统上用独立的Guix二进制文件包安装Guix和它的依赖。这通常比从源代码安装更快,下一小节会介绍如何从源代码安装。唯一的需求是有GNU@tie{}tar和Xz。"
  5399. #. type: quotation
  5400. #: guix-git/doc/guix.texi:735
  5401. 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:"
  5402. msgstr "我们推荐使用这个@uref{https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh, shell安装脚本}。这个脚本自动执行下述的下载、安装并且初始化Guix的过程。它需要以root用户身份运行。作为root用户,因此你可以运行这个:"
  5403. #. type: example
  5404. #: guix-git/doc/guix.texi:741
  5405. #, no-wrap
  5406. msgid ""
  5407. "cd /tmp\n"
  5408. "wget https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh\n"
  5409. "chmod +x guix-install.sh\n"
  5410. "./guix-install.sh\n"
  5411. msgstr ""
  5412. #. type: quotation
  5413. #: guix-git/doc/guix.texi:746
  5414. msgid "If you're running Debian or a derivative such as Ubuntu, you can instead install the package (it might be a version older than @value{VERSION} but you can update it afterwards by running @samp{guix pull}):"
  5415. msgstr ""
  5416. #. type: example
  5417. #: guix-git/doc/guix.texi:749
  5418. #, fuzzy, no-wrap
  5419. #| msgid "guix install emacs-guix\n"
  5420. msgid "sudo apt install guix\n"
  5421. msgstr "guix install emacs-guix\n"
  5422. #. type: quotation
  5423. #: guix-git/doc/guix.texi:752
  5424. msgid "Likewise on openSUSE:"
  5425. msgstr ""
  5426. #. type: example
  5427. #: guix-git/doc/guix.texi:755
  5428. #, fuzzy, no-wrap
  5429. #| msgid "guix install emacs-guix\n"
  5430. msgid "sudo zypper install guix\n"
  5431. msgstr "guix install emacs-guix\n"
  5432. #. type: quotation
  5433. #: guix-git/doc/guix.texi:759
  5434. msgid "When you're done, @pxref{Application Setup} for extra configuration you might need, and @ref{Getting Started} for your first steps!"
  5435. msgstr ""
  5436. #. type: Plain text
  5437. #: guix-git/doc/guix.texi:762
  5438. msgid "Installing goes along these lines:"
  5439. msgstr "安装步骤如下:"
  5440. #. type: cindex
  5441. #: guix-git/doc/guix.texi:765
  5442. #, no-wrap
  5443. msgid "downloading Guix binary"
  5444. msgstr "下载Guix二进制文件"
  5445. #. type: enumerate
  5446. #: guix-git/doc/guix.texi:771
  5447. #, fuzzy
  5448. 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})."
  5449. msgstr "从@indicateurl{@value{BASE-URL}/guix-binary-@value{VERSION}.@var{系统}.tar.xz}下载二进制安装包,对于运行Linux内核的@code{x86_64}机器来说@var{系统}是@code{x86_64-linux},以此类推。"
  5450. #. type: enumerate
  5451. #: guix-git/doc/guix.texi:775
  5452. msgid "Make sure to download the associated @file{.sig} file and to verify the authenticity of the tarball against it, along these lines:"
  5453. msgstr "请确保下载相关的@file{.sig}文件,并且用它验证文件包的可靠性,方法如下:"
  5454. #. type: example
  5455. #: guix-git/doc/guix.texi:779
  5456. #, fuzzy, no-wrap
  5457. msgid ""
  5458. "$ wget @value{BASE-URL}/guix-binary-@value{VERSION}.x86_64-linux.tar.xz.sig\n"
  5459. "$ gpg --verify guix-binary-@value{VERSION}.x86_64-linux.tar.xz.sig\n"
  5460. msgstr ""
  5461. "$ wget @value{BASE-URL}/guix-binary-@value{VERSION}.@var{系统}.tar.xz.sig\n"
  5462. "$ gpg --verify guix-binary-@value{VERSION}.@var{系统}.tar.xz.sig\n"
  5463. #. type: Plain text
  5464. #: guix-git/doc/guix.texi:783 guix-git/doc/guix.texi:2342
  5465. msgid "If that command fails because you do not have the required public key, then run this command to import it:"
  5466. msgstr "如果那个命令因为缺少所需的公钥而失败了,那么用这个命令导入它:"
  5467. #. type: example
  5468. #: guix-git/doc/guix.texi:787
  5469. #, no-wrap
  5470. msgid ""
  5471. "$ wget '@value{OPENPGP-SIGNING-KEY-URL}' \\\n"
  5472. " -qO - | gpg --import -\n"
  5473. msgstr ""
  5474. #. type: Plain text
  5475. #: guix-git/doc/guix.texi:791 guix-git/doc/guix.texi:2350
  5476. msgid "and rerun the @code{gpg --verify} command."
  5477. msgstr "再次运行@code{gpg --verify}命令。"
  5478. #. type: Plain text
  5479. #: guix-git/doc/guix.texi:794 guix-git/doc/guix.texi:2353
  5480. msgid "Take note that a warning like ``This key is not certified with a trusted signature!'' is normal."
  5481. msgstr ""
  5482. #. type: enumerate
  5483. #: guix-git/doc/guix.texi:800
  5484. 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:"
  5485. msgstr "现在你需要成为@code{root}用户。基于你的发行版,你可能需要执行@code{su -}或@code{sudo -i}。以@code{root}用户身份,执行:"
  5486. #. type: example
  5487. #: guix-git/doc/guix.texi:806
  5488. #, fuzzy, no-wrap
  5489. msgid ""
  5490. "# cd /tmp\n"
  5491. "# tar --warning=no-timestamp -xf \\\n"
  5492. " /path/to/guix-binary-@value{VERSION}.x86_64-linux.tar.xz\n"
  5493. "# mv var/guix /var/ && mv gnu /\n"
  5494. msgstr ""
  5495. "# cd /tmp\n"
  5496. "# tar --warning=no-timestamp -xf \\\n"
  5497. " guix-binary-@value{VERSION}.@var{系统}.tar.xz\n"
  5498. "# mv var/guix /var/ && mv gnu /\n"
  5499. #. type: enumerate
  5500. #: guix-git/doc/guix.texi:811
  5501. #, fuzzy
  5502. 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)."
  5503. msgstr "这会创建@file{/gnu/store}(@pxref{The Store})和@file{/var/guix}。后一个文件夹为@code{root}用户提供了一个立即可用的profile(见下一步)。"
  5504. #. type: enumerate
  5505. #: guix-git/doc/guix.texi:814
  5506. msgid "Do @emph{not} unpack the tarball on a working Guix system since that would overwrite its own essential files."
  5507. msgstr "@emph{不要}在一个正常的Guix系统上解压这个文件包,因为那会把现有的重要的文件覆盖。"
  5508. #. type: enumerate
  5509. #: guix-git/doc/guix.texi:824
  5510. #, fuzzy
  5511. 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."
  5512. msgstr "@code{--warning=no-timestamp}选项使GNU@tie{}tar不输出有关“implausibly old time stamps”的警告(这类警告会被GNU@tie{}tar 1.26或更老的版本触发;新的版本没事)。这类警告是因为文件包里的所有文件的修改时间戳都被设置为0(即1970年1月1日)。这是故意的,为了确保文件包的内容独立于创建的时间,从而使它可再现。"
  5513. #. type: enumerate
  5514. #: guix-git/doc/guix.texi:828
  5515. msgid "Make the profile available under @file{~root/.config/guix/current}, which is where @command{guix pull} will install updates (@pxref{Invoking guix pull}):"
  5516. msgstr "使profile出现在@file{~root/.config/guix/current},这是@command{guix pull}安装更新的位置(@pxref{Invoking guix pull}):"
  5517. #. type: example
  5518. #: guix-git/doc/guix.texi:833
  5519. #, no-wrap
  5520. msgid ""
  5521. "# mkdir -p ~root/.config/guix\n"
  5522. "# ln -sf /var/guix/profiles/per-user/root/current-guix \\\n"
  5523. " ~root/.config/guix/current\n"
  5524. msgstr ""
  5525. "# mkdir -p ~root/.config/guix\n"
  5526. "# ln -sf /var/guix/profiles/per-user/root/current-guix \\\n"
  5527. " ~root/.config/guix/current\n"
  5528. #. type: enumerate
  5529. #: guix-git/doc/guix.texi:837
  5530. #, fuzzy
  5531. msgid "Source @file{etc/profile} to augment @env{PATH} and other relevant environment variables:"
  5532. msgstr "执行@file{etc/profile}以更新@code{PATH}和其它相关的环境变量:"
  5533. #. type: example
  5534. #: guix-git/doc/guix.texi:841
  5535. #, no-wrap
  5536. msgid ""
  5537. "# GUIX_PROFILE=\"`echo ~root`/.config/guix/current\" ; \\\n"
  5538. " source $GUIX_PROFILE/etc/profile\n"
  5539. msgstr ""
  5540. "# GUIX_PROFILE=\"`echo ~root`/.config/guix/current\" ; \\\n"
  5541. " source $GUIX_PROFILE/etc/profile\n"
  5542. #. type: enumerate
  5543. #: guix-git/doc/guix.texi:846
  5544. msgid "Create the group and user accounts for build users as explained below (@pxref{Build Environment Setup})."
  5545. msgstr "像下面解释的那样为“构建用户”创建用户组和用户(@pxref{Build Environment Setup})。"
  5546. #. type: enumerate
  5547. #: guix-git/doc/guix.texi:849
  5548. msgid "Run the daemon, and set it to automatically start on boot."
  5549. msgstr "运行后台进程,并设置为开机自启动。"
  5550. #. type: enumerate
  5551. #: guix-git/doc/guix.texi:852
  5552. msgid "If your host distro uses the systemd init system, this can be achieved with these commands:"
  5553. msgstr "如果你的主机的发行版使用systemd init系统,可以用这些命令:"
  5554. #. type: example
  5555. #: guix-git/doc/guix.texi:865
  5556. #, no-wrap
  5557. msgid ""
  5558. "# cp ~root/.config/guix/current/lib/systemd/system/gnu-store.mount \\\n"
  5559. " ~root/.config/guix/current/lib/systemd/system/guix-daemon.service \\\n"
  5560. " /etc/systemd/system/\n"
  5561. "# systemctl enable --now gnu-store.mount guix-daemon\n"
  5562. msgstr ""
  5563. "# cp ~root/.config/guix/current/lib/systemd/system/gnu-store.mount \\\n"
  5564. " ~root/.config/guix/current/lib/systemd/system/guix-daemon.service \\\n"
  5565. " /etc/systemd/system/\n"
  5566. "# systemctl enable --now gnu-store.mount guix-daemon\n"
  5567. #. type: enumerate
  5568. #: guix-git/doc/guix.texi:868
  5569. msgid "You may also want to arrange for @command{guix gc} to run periodically:"
  5570. msgstr ""
  5571. #. type: example
  5572. #: guix-git/doc/guix.texi:874
  5573. #, no-wrap
  5574. msgid ""
  5575. "# cp ~root/.config/guix/current/lib/systemd/system/guix-gc.service \\\n"
  5576. " ~root/.config/guix/current/lib/systemd/system/guix-gc.timer \\\n"
  5577. " /etc/systemd/system/\n"
  5578. "# systemctl enable --now guix-gc.timer\n"
  5579. msgstr ""
  5580. "# cp ~root/.config/guix/current/lib/systemd/system/guix-gc.service \\\n"
  5581. " ~root/.config/guix/current/lib/systemd/system/guix-gc.timer \\\n"
  5582. " /etc/systemd/system/\n"
  5583. "# systemctl enable --now guix-gc.timer\n"
  5584. #. type: enumerate
  5585. #: guix-git/doc/guix.texi:878
  5586. msgid "You may want to edit @file{guix-gc.service} to adjust the command line options to fit your needs (@pxref{Invoking guix gc})."
  5587. msgstr ""
  5588. #. type: itemize
  5589. #: guix-git/doc/guix.texi:880 guix-git/doc/guix.texi:15703
  5590. msgid "If your host distro uses the Upstart init system:"
  5591. msgstr "如果你的主机的发行版使用Upstart init系统:"
  5592. #. type: example
  5593. #: guix-git/doc/guix.texi:886
  5594. #, no-wrap
  5595. msgid ""
  5596. "# initctl reload-configuration\n"
  5597. "# cp ~root/.config/guix/current/lib/upstart/system/guix-daemon.conf \\\n"
  5598. " /etc/init/\n"
  5599. "# start guix-daemon\n"
  5600. msgstr ""
  5601. "# initctl reload-configuration\n"
  5602. "# cp ~root/.config/guix/current/lib/upstart/system/guix-daemon.conf \\\n"
  5603. " /etc/init/\n"
  5604. "# start guix-daemon\n"
  5605. #. type: enumerate
  5606. #: guix-git/doc/guix.texi:889
  5607. msgid "Otherwise, you can still start the daemon manually with:"
  5608. msgstr "此外,你可以手动启动后台进程:"
  5609. #. type: example
  5610. #: guix-git/doc/guix.texi:893
  5611. #, no-wrap
  5612. msgid ""
  5613. "# ~root/.config/guix/current/bin/guix-daemon \\\n"
  5614. " --build-users-group=guixbuild\n"
  5615. msgstr ""
  5616. "# ~root/.config/guix/current/bin/guix-daemon \\\n"
  5617. " --build-users-group=guixbuild\n"
  5618. #. type: enumerate
  5619. #: guix-git/doc/guix.texi:898
  5620. msgid "Make the @command{guix} command available to other users on the machine, for instance with:"
  5621. msgstr "使机器上的其他用户也可以使用@command{guix}命令:"
  5622. #. type: example
  5623. #: guix-git/doc/guix.texi:903
  5624. #, no-wrap
  5625. msgid ""
  5626. "# mkdir -p /usr/local/bin\n"
  5627. "# cd /usr/local/bin\n"
  5628. "# ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix\n"
  5629. msgstr ""
  5630. "# mkdir -p /usr/local/bin\n"
  5631. "# cd /usr/local/bin\n"
  5632. "# ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix\n"
  5633. #. type: enumerate
  5634. #: guix-git/doc/guix.texi:907
  5635. msgid "It is also a good idea to make the Info version of this manual available there:"
  5636. msgstr "最好让这个用户手册的Info版也可以被访问:"
  5637. #. type: example
  5638. #: guix-git/doc/guix.texi:913
  5639. #, no-wrap
  5640. msgid ""
  5641. "# mkdir -p /usr/local/share/info\n"
  5642. "# cd /usr/local/share/info\n"
  5643. "# for i in /var/guix/profiles/per-user/root/current-guix/share/info/* ;\n"
  5644. " do ln -s $i ; done\n"
  5645. msgstr ""
  5646. "# mkdir -p /usr/local/share/info\n"
  5647. "# cd /usr/local/share/info\n"
  5648. "# for i in /var/guix/profiles/per-user/root/current-guix/share/info/* ;\n"
  5649. " do ln -s $i ; done\n"
  5650. #. type: enumerate
  5651. #: guix-git/doc/guix.texi:919
  5652. #, fuzzy
  5653. 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)."
  5654. msgstr "那样,假设@file{/usr/local/share/info}在搜索路径里,运行@command{info guix}命令就会打开这个用户手册(@pxref{Other Info Directories,,, texinfo, GNU Texinfo},更多关于Info搜索路径的信息)。"
  5655. #. type: cindex
  5656. #: guix-git/doc/guix.texi:921 guix-git/doc/guix.texi:4070
  5657. #: guix-git/doc/guix.texi:18794
  5658. #, no-wrap
  5659. msgid "substitutes, authorization thereof"
  5660. msgstr "substitutes,对其授权"
  5661. #. type: enumerate
  5662. #: guix-git/doc/guix.texi:925
  5663. #, fuzzy
  5664. #| msgid "To use substitutes from @code{@value{SUBSTITUTE-SERVER}} or one of its mirrors (@pxref{Substitutes}), authorize them:"
  5665. msgid "To use substitutes from @code{@value{SUBSTITUTE-SERVER-1}}, @code{@value{SUBSTITUTE-SERVER-2}} or a mirror (@pxref{Substitutes}), authorize them:"
  5666. msgstr "为了使用@code{@value{SUBSTITUTE-SERVER}}或其镜像的substitute(@pxref{Substitutes}),对其授权:"
  5667. #. type: example
  5668. #: guix-git/doc/guix.texi:931
  5669. #, no-wrap
  5670. msgid ""
  5671. "# guix archive --authorize < \\\n"
  5672. " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER-1}.pub\n"
  5673. "# guix archive --authorize < \\\n"
  5674. " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER-2}.pub\n"
  5675. msgstr ""
  5676. "# guix archive --authorize < \\\n"
  5677. " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER-1}.pub\n"
  5678. "# guix archive --authorize < \\\n"
  5679. " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER-2}.pub\n"
  5680. #. type: quotation
  5681. #: guix-git/doc/guix.texi:938
  5682. 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."
  5683. msgstr ""
  5684. #. type: enumerate
  5685. #: guix-git/doc/guix.texi:943
  5686. msgid "Each user may need to perform a few additional steps to make their Guix environment ready for use, @pxref{Application Setup}."
  5687. msgstr "每个用户可能需要执行一些额外的步骤以使各自的Guix环境可用,@pxref{Application Setup}。"
  5688. #. type: Plain text
  5689. #: guix-git/doc/guix.texi:946
  5690. msgid "Voilà, the installation is complete!"
  5691. msgstr "瞧,安装完成了!"
  5692. #. type: Plain text
  5693. #: guix-git/doc/guix.texi:949
  5694. msgid "You can confirm that Guix is working by installing a sample package into the root profile:"
  5695. msgstr "你可以通过给root profile安装一个软件包来确认Guix可以正常工作。"
  5696. #. type: example
  5697. #: guix-git/doc/guix.texi:952
  5698. #, no-wrap
  5699. msgid "# guix install hello\n"
  5700. msgstr "# guix install hello\n"
  5701. #. type: Plain text
  5702. #: guix-git/doc/guix.texi:956
  5703. msgid "The binary installation tarball can be (re)produced and verified simply by running the following command in the Guix source tree:"
  5704. msgstr "二进制安装包可以通过在Guix源代码树里运行下面这些命令来重现和验证:"
  5705. #. type: example
  5706. #: guix-git/doc/guix.texi:959
  5707. #, no-wrap
  5708. msgid "make guix-binary.@var{system}.tar.xz\n"
  5709. msgstr "make guix-binary.@var{系统}.tar.xz\n"
  5710. #. type: Plain text
  5711. #: guix-git/doc/guix.texi:963
  5712. msgid "...@: which, in turn, runs:"
  5713. msgstr "...@: 这个命令会执行:"
  5714. #. type: example
  5715. #: guix-git/doc/guix.texi:967
  5716. #, no-wrap
  5717. msgid ""
  5718. "guix pack -s @var{system} --localstatedir \\\n"
  5719. " --profile-name=current-guix guix\n"
  5720. msgstr ""
  5721. "guix pack -s @var{系统} --localstatedir \\\n"
  5722. " --profile-name=current-guix guix\n"
  5723. #. type: Plain text
  5724. #: guix-git/doc/guix.texi:970
  5725. msgid "@xref{Invoking guix pack}, for more info on this handy tool."
  5726. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  5727. #. type: Plain text
  5728. #: guix-git/doc/guix.texi:978
  5729. 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."
  5730. msgstr "这个小节列举了从源代码构建Guix的需求。构建Guix的步骤和其它GNU软件相同,这里不介绍。请阅读Guix源代码树里的@file{README}和@file{INSTALL}文件以了解更多的信息。"
  5731. #. type: cindex
  5732. #: guix-git/doc/guix.texi:979
  5733. #, no-wrap
  5734. msgid "official website"
  5735. msgstr "官方网站"
  5736. #. type: Plain text
  5737. #: guix-git/doc/guix.texi:982
  5738. msgid "GNU Guix is available for download from its website at @url{https://www.gnu.org/software/guix/}."
  5739. msgstr "GNU Guix可以从它的网站下载@url{https://www.gnu.org/software/guix/}。"
  5740. #. type: Plain text
  5741. #: guix-git/doc/guix.texi:984
  5742. msgid "GNU Guix depends on the following packages:"
  5743. msgstr "GNU Guix依赖这些软件包:"
  5744. #. type: item
  5745. #: guix-git/doc/guix.texi:986
  5746. #, fuzzy, no-wrap
  5747. msgid "@url{https://gnu.org/software/guile/, GNU Guile}, version 3.0.x,"
  5748. msgstr "@url{https://gnu.org/software/guile/, GNU Guile},版本2.2.x;"
  5749. #. type: itemize
  5750. #: guix-git/doc/guix.texi:988
  5751. #, fuzzy
  5752. msgid "version 3.0.3 or later;"
  5753. msgstr "0.1.0或更新;"
  5754. #. type: item
  5755. #: guix-git/doc/guix.texi:988
  5756. #, no-wrap
  5757. msgid "@url{https://notabug.org/cwebber/guile-gcrypt, Guile-Gcrypt}, version"
  5758. msgstr "@url{https://notabug.org/cwebber/guile-gcrypt, Guile-Gcrypt},版本"
  5759. #. type: itemize
  5760. #: guix-git/doc/guix.texi:990
  5761. msgid "0.1.0 or later;"
  5762. msgstr "0.1.0或更新;"
  5763. #. type: itemize
  5764. #: guix-git/doc/guix.texi:996
  5765. msgid "@uref{https://gitlab.com/gnutls/guile/, Guile-GnuTLS} (@pxref{Guile Preparations, how to install the GnuTLS bindings for Guile,, gnutls-guile, GnuTLS-Guile})@footnote{The Guile bindings to @uref{https://gnutls.org/, GnuTLS} were distributed as part of GnuTLS until version 3.7.8 included.};"
  5766. msgstr ""
  5767. #. type: itemize
  5768. #: guix-git/doc/guix.texi:999
  5769. msgid "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3}, version 0.1.0 or later;"
  5770. msgstr "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3},版本0.1.0或更新;"
  5771. #. type: item
  5772. #: guix-git/doc/guix.texi:999
  5773. #, fuzzy, no-wrap
  5774. msgid "@uref{https://notabug.org/guile-zlib/guile-zlib, Guile-zlib},"
  5775. msgstr "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3},版本0.1.0或更新;"
  5776. #. type: itemize
  5777. #: guix-git/doc/guix.texi:1001
  5778. #, fuzzy
  5779. msgid "version 0.1.0 or later;"
  5780. msgstr "0.1.0或更新;"
  5781. #. type: item
  5782. #: guix-git/doc/guix.texi:1001
  5783. #, fuzzy, no-wrap
  5784. msgid "@uref{https://notabug.org/guile-lzlib/guile-lzlib, Guile-lzlib};"
  5785. msgstr "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3},版本0.1.0或更新;"
  5786. #. type: item
  5787. #: guix-git/doc/guix.texi:1002
  5788. #, no-wrap
  5789. msgid "@uref{https://www.nongnu.org/guile-avahi/, Guile-Avahi};"
  5790. msgstr "@uref{https://www.nongnu.org/guile-avahi/, Guile-Avahi};"
  5791. #. type: itemize
  5792. #: guix-git/doc/guix.texi:1006
  5793. #, fuzzy
  5794. msgid "@uref{https://gitlab.com/guile-git/guile-git, Guile-Git}, version 0.5.0 or later;"
  5795. msgstr "@uref{https://gitlab.com/guile-git/guile-git, Guile-Git},2017年8月及之后的版本;"
  5796. #. type: item
  5797. #: guix-git/doc/guix.texi:1006
  5798. #, fuzzy, no-wrap
  5799. msgid "@uref{https://savannah.nongnu.org/projects/guile-json/, Guile-JSON}"
  5800. msgstr "@uref{https://savannah.nongnu.org/projects/guile-json/, Guile-JSON};"
  5801. #. type: itemize
  5802. #: guix-git/doc/guix.texi:1008
  5803. #, fuzzy
  5804. msgid "4.3.0 or later;"
  5805. msgstr "0.1.0或更新;"
  5806. #. type: item
  5807. #: guix-git/doc/guix.texi:1008
  5808. #, no-wrap
  5809. msgid "@url{https://www.gnu.org/software/make/, GNU Make}."
  5810. msgstr "@url{https://www.gnu.org/software/make/, GNU Make}。"
  5811. #. type: Plain text
  5812. #: guix-git/doc/guix.texi:1012
  5813. msgid "The following dependencies are optional:"
  5814. msgstr "这些依赖是可选的:"
  5815. #. type: itemize
  5816. #: guix-git/doc/guix.texi:1020
  5817. #, fuzzy
  5818. 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."
  5819. 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或更新。"
  5820. #. type: itemize
  5821. #: guix-git/doc/guix.texi:1025
  5822. 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})."
  5823. msgstr ""
  5824. #. type: itemize
  5825. #: guix-git/doc/guix.texi:1029
  5826. msgid "@uref{https://ngyro.com/software/guile-semver.html, Guile-Semver} for the @code{crate} importer (@pxref{Invoking guix import})."
  5827. msgstr ""
  5828. #. type: itemize
  5829. #: guix-git/doc/guix.texi:1034
  5830. 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})."
  5831. msgstr ""
  5832. #. type: itemize
  5833. #: guix-git/doc/guix.texi:1038
  5834. msgid "When @url{http://www.bzip.org, libbz2} is available, @command{guix-daemon} can use it to compress build logs."
  5835. msgstr "当@url{http://www.bzip.org, libbz2}存在时,@command{guix-daemon}可以用它压缩构建日志。"
  5836. #. type: Plain text
  5837. #: guix-git/doc/guix.texi:1042
  5838. #, fuzzy
  5839. msgid "Unless @option{--disable-daemon} was passed to @command{configure}, the following packages are also needed:"
  5840. msgstr "除非@code{--disable-daemon}参数被传给@command{configure},这些软件包也是需要的依赖:"
  5841. #. type: item
  5842. #: guix-git/doc/guix.texi:1044
  5843. #, no-wrap
  5844. msgid "@url{https://gnupg.org/, GNU libgcrypt};"
  5845. msgstr "@url{https://gnupg.org/, GNU libgcrypt};"
  5846. #. type: item
  5847. #: guix-git/doc/guix.texi:1045
  5848. #, no-wrap
  5849. msgid "@url{https://sqlite.org, SQLite 3};"
  5850. msgstr "@url{https://sqlite.org, SQLite 3};"
  5851. #. type: item
  5852. #: guix-git/doc/guix.texi:1046
  5853. #, no-wrap
  5854. msgid "@url{https://gcc.gnu.org, GCC's g++}, with support for the"
  5855. msgstr "@url{https://gcc.gnu.org, GCC's g++},支持"
  5856. #. type: itemize
  5857. #: guix-git/doc/guix.texi:1048
  5858. msgid "C++11 standard."
  5859. msgstr "C++11标准。"
  5860. #. type: cindex
  5861. #: guix-git/doc/guix.texi:1050
  5862. #, no-wrap
  5863. msgid "state directory"
  5864. msgstr "状态文件夹"
  5865. #. type: cindex
  5866. #: guix-git/doc/guix.texi:1051
  5867. #, no-wrap
  5868. msgid "localstatedir"
  5869. msgstr ""
  5870. #. type: cindex
  5871. #: guix-git/doc/guix.texi:1052
  5872. #, fuzzy, no-wrap
  5873. #| msgid "System Configuration"
  5874. msgid "system configuration directory"
  5875. msgstr "系统配置"
  5876. #. type: cindex
  5877. #: guix-git/doc/guix.texi:1053
  5878. #, no-wrap
  5879. msgid "sysconfdir"
  5880. msgstr ""
  5881. #. type: Plain text
  5882. #: guix-git/doc/guix.texi:1066
  5883. #, fuzzy
  5884. 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}). The configuration directory should also be configured by setting the @option{--sysconfdir} option to the @file{/etc} value, which is the location used by Guix to store for example the access control list of authorized machines and the definition of offload machines."
  5885. msgstr "当在一个已经安装Guix的系统上配置Guix时,请确保用@command{configure}的@code{--localstatedir}参数指定和现有的安装相同的状态文件夹(@pxref{Directory Variables, @code{localstatedir},, standards, GNU Coding Standards})。@command{configure}保护你免于误设置@var{localstatedir},从而不会无意中损坏仓库(@pxref{The Store})。"
  5886. #. type: cindex
  5887. #: guix-git/doc/guix.texi:1070
  5888. #, no-wrap
  5889. msgid "test suite"
  5890. msgstr "测试套件"
  5891. #. type: Plain text
  5892. #: guix-git/doc/guix.texi:1076
  5893. 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:"
  5894. msgstr "成功执行@command{configure}和@code{make}之后,最好运行测试套件。它可以帮助查找设置和环境的错误,或者是Guix自身的bug--并且,报告测试错误是帮助改进软件的好方法。输入下面的命令以执行测试套件。"
  5895. #. type: example
  5896. #: guix-git/doc/guix.texi:1079
  5897. #, no-wrap
  5898. msgid "make check\n"
  5899. msgstr "make check\n"
  5900. #. type: Plain text
  5901. #: guix-git/doc/guix.texi:1086
  5902. 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."
  5903. msgstr "测试用例可以并行运行:你可以用GNU@tie{}make的@code{-j}参数来加速运行。才一台较新的机器上第一次运行可能会花几分钟,后续的运行会更快,因为为测试创建的仓库已经包含了各种缓存。"
  5904. #. type: Plain text
  5905. #: guix-git/doc/guix.texi:1089
  5906. msgid "It is also possible to run a subset of the tests by defining the @code{TESTS} makefile variable as in this example:"
  5907. msgstr "你还可以通过定义makefile的@code{TESTS}变量只运行测试的一个子集:"
  5908. #. type: example
  5909. #: guix-git/doc/guix.texi:1092
  5910. #, no-wrap
  5911. msgid "make check TESTS=\"tests/store.scm tests/cpio.scm\"\n"
  5912. msgstr "make check TESTS=\"tests/store.scm tests/cpio.scm\"\n"
  5913. #. type: Plain text
  5914. #: guix-git/doc/guix.texi:1097
  5915. 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:"
  5916. msgstr "默认情况下,测试结果只展示到文件层级。为了看每个独立的测试用例的详情,可以像这样定义@code{SCM_LOG_DRIVER_FLAGS} makefile变量:"
  5917. #. type: example
  5918. #: guix-git/doc/guix.texi:1100
  5919. #, no-wrap
  5920. msgid "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  5921. msgstr "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  5922. #. type: Plain text
  5923. #: guix-git/doc/guix.texi:1108
  5924. 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'':"
  5925. msgstr ""
  5926. #. type: example
  5927. #: guix-git/doc/guix.texi:1112
  5928. #, no-wrap
  5929. msgid ""
  5930. "export SCM_LOG_DRIVER_FLAGS=\"--select=^transaction-upgrade-entry\"\n"
  5931. "make check TESTS=\"tests/packages.scm\"\n"
  5932. msgstr ""
  5933. #. type: Plain text
  5934. #: guix-git/doc/guix.texi:1118
  5935. 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:"
  5936. msgstr ""
  5937. #. type: example
  5938. #: guix-git/doc/guix.texi:1121
  5939. #, fuzzy, no-wrap
  5940. msgid "make check SCM_LOG_DRIVER_FLAGS=\"--brief=no --errors-only=yes\" VERBOSE=1\n"
  5941. msgstr "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  5942. #. type: Plain text
  5943. #: guix-git/doc/guix.texi:1126
  5944. 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}:"
  5945. msgstr ""
  5946. #. type: example
  5947. #: guix-git/doc/guix.texi:1129
  5948. #, fuzzy, no-wrap
  5949. msgid "make check SCM_LOG_DRIVER_FLAGS=\"--brief=no --show-duration=yes\"\n"
  5950. msgstr "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  5951. #. type: Plain text
  5952. #: guix-git/doc/guix.texi:1133
  5953. msgid "@xref{Parallel Test Harness,,,automake,GNU Automake} for more information about the Automake Parallel Test Harness."
  5954. msgstr ""
  5955. #. type: Plain text
  5956. #: guix-git/doc/guix.texi:1138
  5957. 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."
  5958. msgstr "遇到错误时,请给@email{bug-guix@@gnu.org}发邮件,并附带@file{test-suite.log}文件。请在消息里说明使用的Guix的版本信息和依赖(@pxref{Requirements})的版本信息。"
  5959. #. type: Plain text
  5960. #: guix-git/doc/guix.texi:1142
  5961. 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:"
  5962. msgstr "Guix还附带了一个可以测试整个Guix系统实例的全系统测试套件。它只能在已经安装Guix的系统上运行:"
  5963. #. type: example
  5964. #: guix-git/doc/guix.texi:1145
  5965. #, no-wrap
  5966. msgid "make check-system\n"
  5967. msgstr "make check-system\n"
  5968. #. type: Plain text
  5969. #: guix-git/doc/guix.texi:1149
  5970. msgid "or, again, by defining @code{TESTS} to select a subset of tests to run:"
  5971. msgstr "或者,同样的,通过定义@code{TESTS}只运行测试的一个子集:"
  5972. #. type: example
  5973. #: guix-git/doc/guix.texi:1152
  5974. #, no-wrap
  5975. msgid "make check-system TESTS=\"basic mcron\"\n"
  5976. msgstr "make check-system TESTS=\"basic mcron\"\n"
  5977. #. type: Plain text
  5978. #: guix-git/doc/guix.texi:1160
  5979. 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."
  5980. msgstr "这些系统测试是在@code{(gnu tests @dots{})}模块里定义的。它们在虚拟机(VM)里运行轻量的指令。它们的计算量可能很多也可能很少,这取决于它们依赖的substitute(@pxref{Substitutes})是否已经存在。它们之中有些需要很多存储空间以保存虚拟机硬盘。"
  5981. #. type: Plain text
  5982. #: guix-git/doc/guix.texi:1163
  5983. msgid "Again in case of test failures, please send @email{bug-guix@@gnu.org} all the details."
  5984. msgstr "再重复一遍,如果遇到测试错误,请给@email{bug-guix@@gnu.org}发邮件,并附带详细的说明。"
  5985. #. type: cindex
  5986. #: guix-git/doc/guix.texi:1167
  5987. #, no-wrap
  5988. msgid "daemon"
  5989. msgstr "后台进程"
  5990. #. type: Plain text
  5991. #: guix-git/doc/guix.texi:1175
  5992. 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."
  5993. msgstr "构建软件包或运行垃圾回收器之类的操作都是由一个特殊的进程代替客户执行的,即@dfn{构建后台进程}。只有这个进程可以访问仓库和相关的数据库。因此,所有修改仓库的操作都通过这个后台进程执行。例如,@command{guix package}和@command{guix build}之类的命令行工具通过和这个后台进程通信(@i{通过}远程过程调用)来指示它该做什么。"
  5994. #. type: Plain text
  5995. #: guix-git/doc/guix.texi:1179
  5996. 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."
  5997. msgstr "接下来的几个小节介绍如何准备“构建后台进程”的环境。参考@ref{Substitutes},了解怎样允许这个后台进程下载预构建好的二进制文件。"
  5998. #. type: cindex
  5999. #: guix-git/doc/guix.texi:1189 guix-git/doc/guix.texi:1680
  6000. #, no-wrap
  6001. msgid "build environment"
  6002. msgstr "构建环境"
  6003. #. type: Plain text
  6004. #: guix-git/doc/guix.texi:1197
  6005. 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."
  6006. msgstr "在一个标准的多用户设置里,Guix和它的后台进程--@command{guix-daemon}程序--是由@code{root}用户安装的,并且@command{guix-daemon}以@code{root}用户身份运行。无特权的用户可以用Guix的工具构建软件包或访问仓库,这个后台进程会代替用户进行这些操作,以确保仓库保持一致的状态,并且允许构建好的软件包可以在不同用户间共享。"
  6007. #. type: cindex
  6008. #: guix-git/doc/guix.texi:1198
  6009. #, no-wrap
  6010. msgid "build users"
  6011. msgstr "构建用户"
  6012. #. type: Plain text
  6013. #: guix-git/doc/guix.texi:1209
  6014. 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})."
  6015. msgstr "当@command{guix-daemon}以@code{root}用户身份运行时,由于安全方面的考虑,你可能不希望软件包构建进程也以@code{root}用户身份运行。为了避免那样,我们需要创建一个@dfn{构建用户}池,以供后台进程启动的构建进程使用。这些构建用户不需要拥有shell和家目录:他们只会在后台进程为构建进程剥夺@code{root}特权时使用。拥有多个这类用户使后台进程可以以不同的UID启动不同的构建进程,这保证它们不会互相干扰--这是一个重要的功能,因为构建被视为纯函数(@pxref{Introduction})。"
  6016. #. type: Plain text
  6017. #: guix-git/doc/guix.texi:1212
  6018. msgid "On a GNU/Linux system, a build user pool may be created like this (using Bash syntax and the @code{shadow} commands):"
  6019. msgstr "在一个GNU/Linux系统上,可以这样创建一个构建用户池(用bash语法和@code{shadow}命令):"
  6020. #. type: example
  6021. #: guix-git/doc/guix.texi:1224
  6022. #, fuzzy, no-wrap
  6023. msgid ""
  6024. "# groupadd --system guixbuild\n"
  6025. "# for i in $(seq -w 1 10);\n"
  6026. " do\n"
  6027. " useradd -g guixbuild -G guixbuild \\\n"
  6028. " -d /var/empty -s $(which nologin) \\\n"
  6029. " -c \"Guix build user $i\" --system \\\n"
  6030. " guixbuilder$i;\n"
  6031. " done\n"
  6032. msgstr ""
  6033. "# groupadd --system guixbuild\n"
  6034. "# for i in `seq -w 1 10`;\n"
  6035. " do\n"
  6036. " useradd -g guixbuild -G guixbuild \\\n"
  6037. " -d /var/empty -s `which nologin` \\\n"
  6038. " -c \"Guix build user $i\" --system \\\n"
  6039. " guixbuilder$i;\n"
  6040. " done\n"
  6041. #. type: Plain text
  6042. #: guix-git/doc/guix.texi:1234
  6043. 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})."
  6044. 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})。"
  6045. #. type: Plain text
  6046. #: guix-git/doc/guix.texi:1243
  6047. #, fuzzy
  6048. #| 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}.}:"
  6049. 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, copying the @file{@var{prefix}/lib/systemd/system/guix-daemon.service} file to @file{/etc/systemd/system} will ensure that @command{guix-daemon} is automatically started. Similarly, if your machine uses the Upstart init system, copy the @file{@var{prefix}/lib/upstart/system/guix-daemon.conf} file to @file{/etc/init}.}:"
  6050. 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}文件夹里}:"
  6051. #. type: example
  6052. #: guix-git/doc/guix.texi:1246 guix-git/doc/guix.texi:1669
  6053. #, no-wrap
  6054. msgid "# guix-daemon --build-users-group=guixbuild\n"
  6055. msgstr "# guix-daemon --build-users-group=guixbuild\n"
  6056. #. type: cindex
  6057. #: guix-git/doc/guix.texi:1248 guix-git/doc/guix.texi:1678
  6058. #, no-wrap
  6059. msgid "chroot"
  6060. msgstr "chroot"
  6061. #. type: Plain text
  6062. #: guix-git/doc/guix.texi:1253
  6063. 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:"
  6064. msgstr "这样,后台进程在一个chroot环境里,以一个@code{guixbuilder}用户组成员的身份启动构建进程。在GNU/Linux上,默认的,这个chroot环境仅包含这些东西:"
  6065. #. type: itemize
  6066. #: guix-git/doc/guix.texi:1261
  6067. 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.};"
  6068. msgstr "一个和主机@code{/dev}独立的@footnote{大致这样,因为虽然chroot环境里的@code{/dev}包含的文件是固定的,大部分这些文件只有在主机有对应的文件时才能创建。},最小的@code{/dev}文件夹;"
  6069. #. type: itemize
  6070. #: guix-git/doc/guix.texi:1265
  6071. msgid "the @code{/proc} directory; it only shows the processes of the container since a separate PID name space is used;"
  6072. msgstr "@code{/proc}文件夹;它只含有当前容器的进程,因为用了一个独立的进程PID命名空间;"
  6073. #. type: itemize
  6074. #: guix-git/doc/guix.texi:1269
  6075. msgid "@file{/etc/passwd} with an entry for the current user and an entry for user @file{nobody};"
  6076. msgstr "@file{/etc/passwd},仅包含当前用户和@file{nobody};"
  6077. #. type: itemize
  6078. #: guix-git/doc/guix.texi:1272
  6079. msgid "@file{/etc/group} with an entry for the user's group;"
  6080. msgstr "@file{/etc/group},包含用户的组;"
  6081. #. type: itemize
  6082. #: guix-git/doc/guix.texi:1276
  6083. msgid "@file{/etc/hosts} with an entry that maps @code{localhost} to @code{127.0.0.1};"
  6084. msgstr "@file{/etc/hosts},包含@code{localhost}映射到@code{127.0.0.1}的条目;"
  6085. #. type: itemize
  6086. #: guix-git/doc/guix.texi:1279
  6087. msgid "a writable @file{/tmp} directory."
  6088. msgstr "一个可写的@file{/tmp}文件夹。"
  6089. #. type: Plain text
  6090. #: guix-git/doc/guix.texi:1285
  6091. 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."
  6092. msgstr ""
  6093. #. type: Plain text
  6094. #: guix-git/doc/guix.texi:1293
  6095. #, fuzzy
  6096. 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."
  6097. msgstr "你可以@i{通过}@code{TMPDIR}环境变量修改后台进程保存构建树的位置。但是,chroot里的构建树总是在@file{/tmp/guix-build-@var{名字}.drv-0},@var{名字}是derivation的名字--如@code{coreutils-8.24}。这样,@code{TMPDIR}的值就不会泄漏到构建环境里,这可以避免由构建进程读取构建树名字引起的问题。"
  6098. #. type: vindex
  6099. #: guix-git/doc/guix.texi:1294 guix-git/doc/guix.texi:4279
  6100. #, no-wrap
  6101. msgid "http_proxy"
  6102. msgstr "http_proxy"
  6103. #. type: vindex
  6104. #: guix-git/doc/guix.texi:1295 guix-git/doc/guix.texi:4280
  6105. #, fuzzy, no-wrap
  6106. msgid "https_proxy"
  6107. msgstr "https_proxy"
  6108. #. type: Plain text
  6109. #: guix-git/doc/guix.texi:1300
  6110. #, fuzzy
  6111. 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})."
  6112. msgstr "后台进程通过HTTP下载时还遵守@code{http_proxy}环境变量,无论是下载derivation(@pxref{Derivations}),还是下载substitute(@pxref{Substitutes})。"
  6113. #. type: Plain text
  6114. #: guix-git/doc/guix.texi:1308
  6115. #, fuzzy
  6116. 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."
  6117. msgstr "如果你是以无特权的用户的身份安装Guix,你仍可以运行@command{guix-daemon},只要添加@code{--disable-chroot}参数就行了。但是,构建进程不会互相隔离,也不会和系统的其它部分隔离。因此,构建进程有可能互相干扰,可以访问程序、库和系统上的其它文件--这样就很难把它看作@emph{纯}函数。"
  6118. #. type: subsection
  6119. #: guix-git/doc/guix.texi:1311
  6120. #, no-wrap
  6121. msgid "Using the Offload Facility"
  6122. msgstr "使用任务下发设施"
  6123. #. type: cindex
  6124. #: guix-git/doc/guix.texi:1313 guix-git/doc/guix.texi:1739
  6125. #, no-wrap
  6126. msgid "offloading"
  6127. msgstr "下发"
  6128. #. type: cindex
  6129. #: guix-git/doc/guix.texi:1314
  6130. #, no-wrap
  6131. msgid "build hook"
  6132. msgstr "构建钩子"
  6133. #. type: Plain text
  6134. #: guix-git/doc/guix.texi:1333
  6135. #, fuzzy
  6136. 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:"
  6137. 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复制到目标机器,然后继续构建;成功后,构建输出的结果被复制回初始的机器上。"
  6138. #. type: enumerate
  6139. #: guix-git/doc/guix.texi:1339
  6140. 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."
  6141. msgstr ""
  6142. #. type: enumerate
  6143. #: guix-git/doc/guix.texi:1343
  6144. msgid "Its relative speed, as defined via the @code{speed} field of its @code{build-machine} object."
  6145. msgstr ""
  6146. #. type: enumerate
  6147. #: guix-git/doc/guix.texi:1348
  6148. 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."
  6149. msgstr ""
  6150. #. type: enumerate
  6151. #: guix-git/doc/guix.texi:1351
  6152. msgid "Disk space availability. More than a 100 MiB must be available."
  6153. msgstr ""
  6154. #. type: Plain text
  6155. #: guix-git/doc/guix.texi:1354
  6156. msgid "The @file{/etc/guix/machines.scm} file typically looks like this:"
  6157. msgstr "@file{/etc/guix/machines.scm}文件通常是这样的:"
  6158. #. type: lisp
  6159. #: guix-git/doc/guix.texi:1362
  6160. #, fuzzy, no-wrap
  6161. msgid ""
  6162. "(list (build-machine\n"
  6163. " (name \"eightysix.example.org\")\n"
  6164. " (systems (list \"x86_64-linux\" \"i686-linux\"))\n"
  6165. " (host-key \"ssh-ed25519 AAAAC3Nza@dots{}\")\n"
  6166. " (user \"bob\")\n"
  6167. " (speed 2.)) ;incredibly fast!\n"
  6168. "\n"
  6169. msgstr ""
  6170. "(list (build-machine\n"
  6171. " (name \"eightysix.example.org\")\n"
  6172. " (system \"x86_64-linux\")\n"
  6173. " (host-key \"ssh-ed25519 AAAAC3Nza@dots{}\")\n"
  6174. " (user \"bob\")\n"
  6175. " (speed 2.)) ;非常快!\n"
  6176. "\n"
  6177. #. type: lisp
  6178. #: guix-git/doc/guix.texi:1368
  6179. #, no-wrap
  6180. msgid ""
  6181. " (build-machine\n"
  6182. " (name \"armeight.example.org\")\n"
  6183. " (systems (list \"aarch64-linux\"))\n"
  6184. " (host-key \"ssh-rsa AAAAB3Nza@dots{}\")\n"
  6185. " (user \"alice\")\n"
  6186. "\n"
  6187. msgstr ""
  6188. " (build-machine\n"
  6189. " (name \"armeight.example.org\")\n"
  6190. " (systems (list \"aarch64-linux\"))\n"
  6191. " (host-key \"ssh-rsa AAAAB3Nza@dots{}\")\n"
  6192. " (user \"alice\")\n"
  6193. "\n"
  6194. #. type: lisp
  6195. #: guix-git/doc/guix.texi:1372
  6196. #, no-wrap
  6197. msgid ""
  6198. " ;; Remember 'guix offload' is spawned by\n"
  6199. " ;; 'guix-daemon' as root.\n"
  6200. " (private-key \"/root/.ssh/identity-for-guix\")))\n"
  6201. msgstr ""
  6202. #. type: Plain text
  6203. #: guix-git/doc/guix.texi:1378
  6204. #, fuzzy
  6205. 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."
  6206. msgstr "在上面的例子里,我们指定了一个包含两个构建机器的列表,一个是@code{x86_64}架构,一个是@code{mips64el}架构。"
  6207. #. type: Plain text
  6208. #: guix-git/doc/guix.texi:1387
  6209. 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."
  6210. msgstr "事实上,这个文件--并不意外地--是一个Scheme文件,当@code{下发}钩子被启动时执行。它的返回值必须是一个包含@code{build-machine}对象的列表。虽然这个例子展示的是一个固定的列表,你可以想象,使用DNS-SD来返回一个包含从局域网内发现的构建机器的列表,@pxref{Introduction, Guile-Avahi,, guile-avahi, 在Guile Scheme程序里使用Avahi}。@code{build-machine}数据类型的详细信息如下。"
  6211. #. type: deftp
  6212. #: guix-git/doc/guix.texi:1388
  6213. #, no-wrap
  6214. msgid "{Data Type} build-machine"
  6215. msgstr "{数据类型} build-machine"
  6216. #. type: deftp
  6217. #: guix-git/doc/guix.texi:1391
  6218. msgid "This data type represents build machines to which the daemon may offload builds. The important fields are:"
  6219. msgstr "这个数据类型表示后台进程可以下发构建任务的构建机器。重要的项有:"
  6220. #. type: code{#1}
  6221. #: guix-git/doc/guix.texi:1394 guix-git/doc/guix.texi:7766
  6222. #: guix-git/doc/guix.texi:8689 guix-git/doc/guix.texi:17672
  6223. #: guix-git/doc/guix.texi:17771 guix-git/doc/guix.texi:18011
  6224. #: guix-git/doc/guix.texi:20030 guix-git/doc/guix.texi:20672
  6225. #: guix-git/doc/guix.texi:20932 guix-git/doc/guix.texi:24848
  6226. #: guix-git/doc/guix.texi:27777 guix-git/doc/guix.texi:29318
  6227. #: guix-git/doc/guix.texi:30115 guix-git/doc/guix.texi:30482
  6228. #: guix-git/doc/guix.texi:30526 guix-git/doc/guix.texi:32697
  6229. #: guix-git/doc/guix.texi:35478 guix-git/doc/guix.texi:35516
  6230. #: guix-git/doc/guix.texi:38457 guix-git/doc/guix.texi:38474
  6231. #: guix-git/doc/guix.texi:39276 guix-git/doc/guix.texi:41221
  6232. #: guix-git/doc/guix.texi:41546 guix-git/doc/guix.texi:44606
  6233. #, no-wrap
  6234. msgid "name"
  6235. msgstr "名字"
  6236. #. type: table
  6237. #: guix-git/doc/guix.texi:1396
  6238. msgid "The host name of the remote machine."
  6239. msgstr "远程机器的主机名。"
  6240. #. type: item
  6241. #: guix-git/doc/guix.texi:1397
  6242. #, fuzzy, no-wrap
  6243. msgid "systems"
  6244. msgstr "系统"
  6245. #. type: table
  6246. #: guix-git/doc/guix.texi:1400
  6247. #, fuzzy
  6248. msgid "The system types the remote machine supports---e.g., @code{(list \"x86_64-linux\" \"i686-linux\")}."
  6249. msgstr "远程机器的系统类型--如,@code{\"x86_64-linux\"}。"
  6250. #. type: code{#1}
  6251. #: guix-git/doc/guix.texi:1401 guix-git/doc/guix.texi:20682
  6252. #, no-wrap
  6253. msgid "user"
  6254. msgstr "用户"
  6255. #. type: table
  6256. #: guix-git/doc/guix.texi:1405
  6257. 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."
  6258. msgstr "通过SSH连接远程机器时使用的用户帐号。注意,SSH密钥@emph{不}能被密码保护,以支持无交互的登录。"
  6259. #. type: item
  6260. #: guix-git/doc/guix.texi:1406
  6261. #, no-wrap
  6262. msgid "host-key"
  6263. msgstr "主机公钥"
  6264. #. type: table
  6265. #: guix-git/doc/guix.texi:1410
  6266. 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:"
  6267. msgstr "这必须是机器的OpenSSH格式的SSH@dfn{公钥}。这是用来在连接机器时认证身份的。它是一个像这样的长字符串:"
  6268. #. type: example
  6269. #: guix-git/doc/guix.texi:1413
  6270. #, no-wrap
  6271. msgid "ssh-ed25519 AAAAC3NzaC@dots{}mde+UhL hint@@example.org\n"
  6272. msgstr "ssh-ed25519 AAAAC3NzaC@dots{}mde+UhL hint@@example.org\n"
  6273. #. type: table
  6274. #: guix-git/doc/guix.texi:1418
  6275. 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}."
  6276. msgstr "如果这个机器正在运行OpenSSH后台进程,@command{sshd},那么主机公钥可以在@file{/etc/ssh/ssh_host_ed25519_key.pub}找到。"
  6277. #. type: table
  6278. #: guix-git/doc/guix.texi:1423
  6279. 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}):"
  6280. msgstr "如果这个机器正在运行GNU@tie{}lsh,@command{lshd},那么主机公钥可以在@file{/etc/lsh/host-key.pub}或类似的位置找到。它可以通过@command{lsh-export-key}命令转换成OpenSSH格式(@pxref{Converting keys,,, lsh, LSH用户手册}):"
  6281. #. type: example
  6282. #: guix-git/doc/guix.texi:1427
  6283. #, fuzzy, no-wrap
  6284. msgid ""
  6285. "$ lsh-export-key --openssh < /etc/lsh/host-key.pub\n"
  6286. "ssh-rsa AAAAB3NzaC1yc2EAAAAEOp8FoQAAAQEAs1eB46LV@dots{}\n"
  6287. msgstr ""
  6288. "$ lsh-export-key --openssh < /etc/lsh/host-key.pub \n"
  6289. "ssh-rsa AAAAB3NzaC1yc2EAAAAEOp8FoQAAAQEAs1eB46LV@dots{}\n"
  6290. #. type: deftp
  6291. #: guix-git/doc/guix.texi:1432
  6292. msgid "A number of optional fields may be specified:"
  6293. msgstr "一些可选的项:"
  6294. #. type: item
  6295. #: guix-git/doc/guix.texi:1435 guix-git/doc/guix.texi:40697
  6296. #, no-wrap
  6297. msgid "@code{port} (default: @code{22})"
  6298. msgstr "@code{port}(默认值:@code{22})"
  6299. #. type: table
  6300. #: guix-git/doc/guix.texi:1437
  6301. msgid "Port number of SSH server on the machine."
  6302. msgstr "机器上的SSH服务器的端口号。"
  6303. #. type: item
  6304. #: guix-git/doc/guix.texi:1438
  6305. #, no-wrap
  6306. msgid "@code{private-key} (default: @file{~root/.ssh/id_rsa})"
  6307. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  6308. #. type: table
  6309. #: guix-git/doc/guix.texi:1441
  6310. 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."
  6311. msgstr "连接机器时使用的SSH私钥,OpenSSH格式。这个私钥不能被密码保护。"
  6312. #. type: table
  6313. #: guix-git/doc/guix.texi:1444
  6314. msgid "Note that the default value is the private key @emph{of the root account}. Make sure it exists if you use the default."
  6315. msgstr "注意,默认值是@emph{root帐号}的私钥。使用默认值时请确保它存在。"
  6316. #. type: item
  6317. #: guix-git/doc/guix.texi:1445
  6318. #, no-wrap
  6319. msgid "@code{compression} (default: @code{\"zlib@@openssh.com,zlib\"})"
  6320. msgstr "@code{compression}(默认值:@code{\"zlib@@openssh.com,zlib\"})"
  6321. #. type: itemx
  6322. #: guix-git/doc/guix.texi:1446
  6323. #, no-wrap
  6324. msgid "@code{compression-level} (default: @code{3})"
  6325. msgstr "@code{compression-level}(默认值:@code{3})"
  6326. #. type: table
  6327. #: guix-git/doc/guix.texi:1448
  6328. msgid "The SSH-level compression methods and compression level requested."
  6329. msgstr "SSH压缩算法和压缩级别。"
  6330. #. type: table
  6331. #: guix-git/doc/guix.texi:1451
  6332. msgid "Note that offloading relies on SSH compression to reduce bandwidth usage when transferring files to and from build machines."
  6333. msgstr "下发任务依赖SSH压缩来减少传输文件到构建机器时使用的带宽。"
  6334. #. type: item
  6335. #: guix-git/doc/guix.texi:1452
  6336. #, no-wrap
  6337. msgid "@code{daemon-socket} (default: @code{\"/var/guix/daemon-socket/socket\"})"
  6338. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  6339. #. type: table
  6340. #: guix-git/doc/guix.texi:1455
  6341. msgid "File name of the Unix-domain socket @command{guix-daemon} is listening to on that machine."
  6342. msgstr "那台机器上的@command{guix-daemon}监听的Unix套接字文件名。"
  6343. #. type: item
  6344. #: guix-git/doc/guix.texi:1456
  6345. #, fuzzy, no-wrap
  6346. msgid "@code{overload-threshold} (default: @code{0.8})"
  6347. msgstr "@code{features} (@code{'()})"
  6348. #. type: table
  6349. #: guix-git/doc/guix.texi:1462
  6350. 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}."
  6351. msgstr ""
  6352. #. type: item
  6353. #: guix-git/doc/guix.texi:1463
  6354. #, no-wrap
  6355. msgid "@code{parallel-builds} (default: @code{1})"
  6356. msgstr "@code{parallel-builds}(默认值:@code{1})"
  6357. #. type: table
  6358. #: guix-git/doc/guix.texi:1465
  6359. msgid "The number of builds that may run in parallel on the machine."
  6360. msgstr "那台机器上可以并行运行的构建任务数量。"
  6361. #. type: item
  6362. #: guix-git/doc/guix.texi:1466
  6363. #, no-wrap
  6364. msgid "@code{speed} (default: @code{1.0})"
  6365. msgstr "@code{speed}(默认值:@code{1.0})"
  6366. #. type: table
  6367. #: guix-git/doc/guix.texi:1469
  6368. msgid "A ``relative speed factor''. The offload scheduler will tend to prefer machines with a higher speed factor."
  6369. msgstr "一个相对的速度值。下发调度器会偏好速度更快的机器。"
  6370. #. type: item
  6371. #: guix-git/doc/guix.texi:1470
  6372. #, no-wrap
  6373. msgid "@code{features} (default: @code{'()})"
  6374. msgstr "@code{features} (@code{'()})"
  6375. #. type: table
  6376. #: guix-git/doc/guix.texi:1475
  6377. 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."
  6378. msgstr "一个表示机器支持的功能的字符串列表。例如,@code{\"kvm\"}表示机器有KVM Linux模块和相关的硬件支持。Derivation可以通过名字请求需要的功能,然后被分发到匹配的机器的任务队列里。"
  6379. #. type: Plain text
  6380. #: guix-git/doc/guix.texi:1481
  6381. 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:"
  6382. msgstr "@command{guix}命令必须在构建机器的搜素路径里。你可以通过这个命令检查:"
  6383. #. type: example
  6384. #: guix-git/doc/guix.texi:1484
  6385. #, no-wrap
  6386. msgid "ssh build-machine guix repl --version\n"
  6387. msgstr "ssh build-machine guix repl --version\n"
  6388. #. type: Plain text
  6389. #: guix-git/doc/guix.texi:1491
  6390. 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}):"
  6391. msgstr "@file{machines.scm}到位后,还有一件要做的事。如上所述,下发任务时会在机器的仓库之间传输文件。为此,你需要在每台机器上生成一个密钥对,以使后台进程可以从仓库导出签名后的文件包(@pxref{Invoking guix archive}):"
  6392. #. type: example
  6393. #: guix-git/doc/guix.texi:1494 guix-git/doc/guix.texi:40601
  6394. #, no-wrap
  6395. msgid "# guix archive --generate-key\n"
  6396. msgstr "# guix archive --generate-key\n"
  6397. #. type: Plain text
  6398. #: guix-git/doc/guix.texi:1499
  6399. msgid "Each build machine must authorize the key of the master machine so that it accepts store items it receives from the master:"
  6400. msgstr "每台构建机器都必须认证主机器的公钥,从而接收从主机器接收的仓库文件:"
  6401. #. type: example
  6402. #: guix-git/doc/guix.texi:1502
  6403. #, no-wrap
  6404. msgid "# guix archive --authorize < master-public-key.txt\n"
  6405. msgstr "# guix archive --authorize < master-public-key.txt\n"
  6406. #. type: Plain text
  6407. #: guix-git/doc/guix.texi:1506
  6408. msgid "Likewise, the master machine must authorize the key of each build machine."
  6409. msgstr "类似的,主机器必须认证每台构建机器的公钥:"
  6410. #. type: Plain text
  6411. #: guix-git/doc/guix.texi:1512
  6412. 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."
  6413. msgstr "所有这些有关公钥的繁琐事宜都是为了表达主服务器和构建服务器之间成对的互相信任关系。具体地,当主机器从构建机器接收文件时(反之亦然),它的构建后台进程可以确保文件是原样的,没有被篡改,并且被认证的公钥签名过。"
  6414. #. type: cindex
  6415. #: guix-git/doc/guix.texi:1513
  6416. #, no-wrap
  6417. msgid "offload test"
  6418. msgstr "下发测试"
  6419. #. type: Plain text
  6420. #: guix-git/doc/guix.texi:1516
  6421. msgid "To test whether your setup is operational, run this command on the master node:"
  6422. msgstr "为了测试你的设置是否能正常工作,在主节点上运行这个命令:"
  6423. #. type: example
  6424. #: guix-git/doc/guix.texi:1519
  6425. #, no-wrap
  6426. msgid "# guix offload test\n"
  6427. msgstr "# guix offload test\n"
  6428. #. type: Plain text
  6429. #: guix-git/doc/guix.texi:1525
  6430. #, fuzzy
  6431. 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."
  6432. msgstr "这会尝试连接每台在@file{/etc/guix/machines.scm}里指定的构建机器,确保Guile和Guix模块在每台机器上都可用,尝试导出到这些机器和从这些机器导入,并且报告这个过程中遇到的任何错误。"
  6433. #. type: Plain text
  6434. #: guix-git/doc/guix.texi:1528
  6435. msgid "If you want to test a different machine file, just specify it on the command line:"
  6436. msgstr "如果你希望用别的文件测试,只需要在命令行指定它:"
  6437. #. type: example
  6438. #: guix-git/doc/guix.texi:1531
  6439. #, no-wrap
  6440. msgid "# guix offload test machines-qualif.scm\n"
  6441. msgstr "# guix offload test machines-qualif.scm\n"
  6442. #. type: Plain text
  6443. #: guix-git/doc/guix.texi:1535
  6444. msgid "Last, you can test the subset of the machines whose name matches a regular expression like this:"
  6445. msgstr "最后,你可以像这样只测试机器列表里名字匹配某个正则表达式的子集:"
  6446. #. type: example
  6447. #: guix-git/doc/guix.texi:1538
  6448. #, no-wrap
  6449. msgid "# guix offload test machines.scm '\\.gnu\\.org$'\n"
  6450. msgstr "# guix offload test machines.scm '\\.gnu\\.org$'\n"
  6451. #. type: cindex
  6452. #: guix-git/doc/guix.texi:1540
  6453. #, no-wrap
  6454. msgid "offload status"
  6455. msgstr "下发状态"
  6456. #. type: Plain text
  6457. #: guix-git/doc/guix.texi:1543
  6458. msgid "To display the current load of all build hosts, run this command on the main node:"
  6459. msgstr "若想展示所有构建主机的当前负载,在主节点上运行这个命令:"
  6460. #. type: example
  6461. #: guix-git/doc/guix.texi:1546
  6462. #, no-wrap
  6463. msgid "# guix offload status\n"
  6464. msgstr "# guix offload status\n"
  6465. #. type: cindex
  6466. #: guix-git/doc/guix.texi:1552
  6467. #, no-wrap
  6468. msgid "SELinux, daemon policy"
  6469. msgstr "SELinux,后台进程策略"
  6470. #. type: cindex
  6471. #: guix-git/doc/guix.texi:1553
  6472. #, no-wrap
  6473. msgid "mandatory access control, SELinux"
  6474. msgstr "强制访问控制,SELinux"
  6475. #. type: cindex
  6476. #: guix-git/doc/guix.texi:1554
  6477. #, no-wrap
  6478. msgid "security, guix-daemon"
  6479. msgstr "安全,guix-daemon"
  6480. #. type: Plain text
  6481. #: guix-git/doc/guix.texi:1560
  6482. 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."
  6483. msgstr "Guix附带一个SELinux策略文件,位置在@file{etc/guix-daemon.cil},它可以在启用SELinux的系统上安装,为Guix的文件添加标签及指定后台进程的期望行为。由于Guix系统不提供SELinux基础策略,这个后台进程策略不能在Guix系统上使用。"
  6484. #. type: subsubsection
  6485. #: guix-git/doc/guix.texi:1561
  6486. #, no-wrap
  6487. msgid "Installing the SELinux policy"
  6488. msgstr "安装SELinux策略"
  6489. #. type: cindex
  6490. #: guix-git/doc/guix.texi:1562
  6491. #, no-wrap
  6492. msgid "SELinux, policy installation"
  6493. msgstr "SELinux,安装策略"
  6494. #. type: quotation
  6495. #: guix-git/doc/guix.texi:1567
  6496. msgid "The @code{guix-install.sh} binary installation script offers to perform the steps below for you (@pxref{Binary Installation})."
  6497. msgstr ""
  6498. #. type: Plain text
  6499. #: guix-git/doc/guix.texi:1570
  6500. msgid "To install the policy run this command as root:"
  6501. msgstr "用root用户执行这个命令以安装策略:"
  6502. #. type: example
  6503. #: guix-git/doc/guix.texi:1573
  6504. #, fuzzy, no-wrap
  6505. #| msgid ""
  6506. #| "# mkdir -p /usr/local/bin\n"
  6507. #| "# cd /usr/local/bin\n"
  6508. #| "# ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix\n"
  6509. msgid "semodule -i /var/guix/profiles/per-user/root/current-guix/share/selinux/guix-daemon.cil\n"
  6510. msgstr ""
  6511. "# mkdir -p /usr/local/bin\n"
  6512. "# cd /usr/local/bin\n"
  6513. "# ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix\n"
  6514. #. type: Plain text
  6515. #: guix-git/doc/guix.texi:1577
  6516. msgid "Then, as root, relabel the file system, possibly after making it writable:"
  6517. msgstr ""
  6518. #. type: example
  6519. #: guix-git/doc/guix.texi:1581
  6520. #, no-wrap
  6521. msgid ""
  6522. "mount -o remount,rw /gnu/store\n"
  6523. "restorecon -R /gnu /var/guix\n"
  6524. msgstr ""
  6525. #. type: Plain text
  6526. #: guix-git/doc/guix.texi:1586
  6527. msgid "At this point you can start or restart @command{guix-daemon}; on a distribution that uses systemd as its service manager, you can do that with:"
  6528. msgstr ""
  6529. #. type: example
  6530. #: guix-git/doc/guix.texi:1589
  6531. #, fuzzy, no-wrap
  6532. msgid "systemctl restart guix-daemon\n"
  6533. msgstr "semodule -i etc/guix-daemon.cil\n"
  6534. #. type: Plain text
  6535. #: guix-git/doc/guix.texi:1595
  6536. 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:"
  6537. msgstr "一旦安装好策略,为文件系统重新打好标签,并且重启了后台进程,它应该在@code{guix_daemon_t}环境里运行。你可以用下面这个命令确认:"
  6538. #. type: example
  6539. #: guix-git/doc/guix.texi:1598
  6540. #, no-wrap
  6541. msgid "ps -Zax | grep guix-daemon\n"
  6542. msgstr "ps -Zax | grep guix-daemon\n"
  6543. #. type: Plain text
  6544. #: guix-git/doc/guix.texi:1603
  6545. 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."
  6546. msgstr "运行@code{guix build hello}之类的命令并监控SELinux日志以说服你自己SELinux允许所有的操作。"
  6547. #. type: cindex
  6548. #: guix-git/doc/guix.texi:1605
  6549. #, no-wrap
  6550. msgid "SELinux, limitations"
  6551. msgstr "SELinux,限制"
  6552. #. type: Plain text
  6553. #: guix-git/doc/guix.texi:1610
  6554. 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."
  6555. msgstr "这个策略不是完美的。这里有一个关于限制和缺陷的列表,当为Guix后台进程部署提供的SELinux策略时该认真考虑。"
  6556. #. type: enumerate
  6557. #: guix-git/doc/guix.texi:1617
  6558. #, fuzzy
  6559. 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."
  6560. msgstr "@code{guix_daemon_socket_t}没有被实际使用。所有的套接字操作都和@code{guix_daemon_socket_t}没有任何关系。存在这个没被使用的标签并不碍事,但是为这个标签定义套接字规则是更好的选择。"
  6561. #. type: enumerate
  6562. #: guix-git/doc/guix.texi:1628
  6563. #, fuzzy
  6564. #| 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."
  6565. 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 @file{$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."
  6566. msgstr "@code{guix gc}不可以任意访问指向profile的链接。由于设计的原因,符号链接的目标的文件标签和符号链接本身的文件标签是不同的。尽管$localstatedir里的所有profile都被打上了标签,指向这些profile的符号链接继承它们所在的文件夹的标签。对于普通用户的家目录里的链接,标签是@code{user_home_t}。但是对于root用户的家目录,或@file{/tmp},或HTTP服务器的工作目录等文件夹里的链接不是这样。@code{guix gc}会被阻止读取和跟随这些链接。"
  6567. #. type: enumerate
  6568. #: guix-git/doc/guix.texi:1633
  6569. 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."
  6570. msgstr "后台进程监听TCP连接的功能不再可用。这可能需要额外的规则,因为SELinux区别对待网络套接字和文件。"
  6571. #. type: enumerate
  6572. #: guix-git/doc/guix.texi:1644
  6573. 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."
  6574. 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无法阻止它访问所在域的进程可以访问的文件。"
  6575. #. type: enumerate
  6576. #: guix-git/doc/guix.texi:1649
  6577. 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."
  6578. msgstr ""
  6579. #. type: enumerate
  6580. #: guix-git/doc/guix.texi:1657
  6581. 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."
  6582. msgstr "我们可以在安装时生成一个更严格的策略,仅当前安装的@code{guix-daemon}的@emph{精确的}的文件名会被打上@code{guix_daemon_exec_t}标签,而不是用一个宽泛的正则表达式。这样的缺点是root必须在每次安装提供@code{guix-daemon}的Guix软件包时安装或升级策略。"
  6583. #. type: section
  6584. #: guix-git/doc/guix.texi:1660
  6585. #, no-wrap
  6586. msgid "Invoking @command{guix-daemon}"
  6587. msgstr "调用@command{guix-daemon}"
  6588. #. type: command{#1}
  6589. #: guix-git/doc/guix.texi:1661
  6590. #, fuzzy, no-wrap
  6591. #| msgid "Invoking guix-daemon"
  6592. msgid "guix-daemon"
  6593. msgstr "调用guix-daemon"
  6594. #. type: Plain text
  6595. #: guix-git/doc/guix.texi:1666
  6596. 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:"
  6597. msgstr "@command{guix-daemon}程序实现了所有访问仓库的功能。包括启动构建进程,运行垃圾回收器,查询构建结果,等。它通常以@code{root}身份运行:"
  6598. #. type: cindex
  6599. #: guix-git/doc/guix.texi:1671
  6600. #, fuzzy, no-wrap
  6601. #| msgid "Invoking @command{guix-daemon}"
  6602. msgid "socket activation, for @command{guix-daemon}"
  6603. msgstr "调用@command{guix-daemon}"
  6604. #. type: Plain text
  6605. #: guix-git/doc/guix.texi:1675
  6606. msgid "This daemon can also be started following the systemd ``socket activation'' protocol (@pxref{Service De- and Constructors, @code{make-systemd-constructor},, shepherd, The GNU Shepherd Manual})."
  6607. msgstr ""
  6608. #. type: Plain text
  6609. #: guix-git/doc/guix.texi:1677
  6610. msgid "For details on how to set it up, @pxref{Setting Up the Daemon}."
  6611. msgstr "关于如何设置它,@pxref{Setting Up the Daemon}。"
  6612. #. type: cindex
  6613. #: guix-git/doc/guix.texi:1679
  6614. #, no-wrap
  6615. msgid "container, build environment"
  6616. msgstr "容器,构建环境"
  6617. #. type: cindex
  6618. #: guix-git/doc/guix.texi:1681 guix-git/doc/guix.texi:3359
  6619. #: guix-git/doc/guix.texi:4260 guix-git/doc/guix.texi:15716
  6620. #, no-wrap
  6621. msgid "reproducible builds"
  6622. msgstr "可复现的构建"
  6623. #. type: Plain text
  6624. #: guix-git/doc/guix.texi:1693
  6625. #, fuzzy
  6626. 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})."
  6627. 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})。"
  6628. #. type: Plain text
  6629. #: guix-git/doc/guix.texi:1699
  6630. #, fuzzy
  6631. 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}."
  6632. msgstr "当后台进程代替用户执行构建时,它在@file{/tmp}或@code{TMPDIR}环境变量指定的文件夹里创建一个文件夹。在构建期间,这个文件夹被共享给容器,然而容器内,这个构建树总是叫做@file{/tmp/guix-build-@var{name}.drv-0}。"
  6633. #. type: Plain text
  6634. #: guix-git/doc/guix.texi:1703
  6635. #, fuzzy
  6636. 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}})."
  6637. msgstr "结束时构建文件夹就被自动删除了,除非构建失败并且客户端指定了@option{--keep-failed}参数(@pxref{Invoking guix build, @option{--keep-failed}})。"
  6638. #. type: Plain text
  6639. #: guix-git/doc/guix.texi:1709
  6640. #, fuzzy
  6641. 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."
  6642. msgstr "后台进程监听连接并且为每个客户端(@command{guix}的子命令)启动的会话生成一个子进程。@command{guix processes}命令允许你获取系统上的活动的概况,浏览每个活动会话和客户端。@xref{Invoking guix processes},以了解更多信息。"
  6643. #. type: Plain text
  6644. #: guix-git/doc/guix.texi:1711
  6645. msgid "The following command-line options are supported:"
  6646. msgstr "下面这些命令行选项受支持:"
  6647. #. type: item
  6648. #: guix-git/doc/guix.texi:1713
  6649. #, no-wrap
  6650. msgid "--build-users-group=@var{group}"
  6651. msgstr "--build-users-group=@var{用户组}"
  6652. #. type: table
  6653. #: guix-git/doc/guix.texi:1716
  6654. msgid "Take users from @var{group} to run build processes (@pxref{Setting Up the Daemon, build users})."
  6655. msgstr "这会从@var{用户组}里选取用户,以运行构建进程(@pxref{Setting Up the Daemon,构建用户})。"
  6656. #. type: item
  6657. #: guix-git/doc/guix.texi:1717 guix-git/doc/guix.texi:12608
  6658. #, no-wrap
  6659. msgid "--no-substitutes"
  6660. msgstr "--no-substitutes"
  6661. #. type: cindex
  6662. #: guix-git/doc/guix.texi:1718 guix-git/doc/guix.texi:3371
  6663. #: guix-git/doc/guix.texi:4013
  6664. #, no-wrap
  6665. msgid "substitutes"
  6666. msgstr "substitutes"
  6667. #. type: table
  6668. #: guix-git/doc/guix.texi:1722 guix-git/doc/guix.texi:12612
  6669. msgid "Do not use substitutes for build products. That is, always build things locally instead of allowing downloads of pre-built binaries (@pxref{Substitutes})."
  6670. msgstr "不要为构建商品使用substitute。即,总是在本地构建,而不是下载预构建的二进制文件(@pxref{Substitutes})。"
  6671. #. type: table
  6672. #: guix-git/doc/guix.texi:1726
  6673. #, fuzzy
  6674. 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})."
  6675. msgstr "当后台进程用@code{--no-substitutes}参数启动时,客户端仍然可以显式地@i{通过}@code{set-build-options}远程过程调用来启用substitute(@pxref{The Store})。"
  6676. #. type: anchor{#1}
  6677. #: guix-git/doc/guix.texi:1728
  6678. msgid "daemon-substitute-urls"
  6679. msgstr "daemon-substitute-urls"
  6680. #. type: item
  6681. #: guix-git/doc/guix.texi:1728 guix-git/doc/guix.texi:12595
  6682. #: guix-git/doc/guix.texi:15118 guix-git/doc/guix.texi:15868
  6683. #: guix-git/doc/guix.texi:16095
  6684. #, no-wrap
  6685. msgid "--substitute-urls=@var{urls}"
  6686. msgstr "--substitute-urls=@var{urls}"
  6687. #. type: table
  6688. #: guix-git/doc/guix.texi:1732
  6689. #, fuzzy
  6690. #| 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."
  6691. msgid "Consider @var{urls} the default whitespace-separated list of substitute source URLs. When this option is omitted, @indicateurl{@value{SUBSTITUTE-URLS}} is used."
  6692. msgstr "@var{urls}是用空格分隔的substitute源URL列表。当这个选项被省略时,默认使用@indicateurl{https://@value{SUBSTITUTE-SERVER}}。"
  6693. #. type: table
  6694. #: guix-git/doc/guix.texi:1735
  6695. msgid "This means that substitutes may be downloaded from @var{urls}, as long as they are signed by a trusted signature (@pxref{Substitutes})."
  6696. msgstr "这意味着可以从@var{urls}下载substitute,只要它们的签名可信(@pxref{Substitutes})。"
  6697. #. type: table
  6698. #: guix-git/doc/guix.texi:1738
  6699. msgid "@xref{Getting Substitutes from Other Servers}, for more information on how to configure the daemon to get substitutes from other servers."
  6700. msgstr ""
  6701. #. type: item
  6702. #: guix-git/doc/guix.texi:1740 guix-git/doc/guix.texi:12631
  6703. #, fuzzy, no-wrap
  6704. msgid "--no-offload"
  6705. msgstr "下发"
  6706. #. type: table
  6707. #: guix-git/doc/guix.texi:1744 guix-git/doc/guix.texi:12635
  6708. #, fuzzy
  6709. 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."
  6710. msgstr "不要为构建商品使用substitute。即,总是在本地构建,而不是下载预构建的二进制文件(@pxref{Substitutes})。"
  6711. #. type: item
  6712. #: guix-git/doc/guix.texi:1745
  6713. #, no-wrap
  6714. msgid "--cache-failures"
  6715. msgstr "--cache-failures"
  6716. #. type: table
  6717. #: guix-git/doc/guix.texi:1747
  6718. msgid "Cache build failures. By default, only successful builds are cached."
  6719. msgstr "缓存失败的构建。默认地,只缓存成功的构建。"
  6720. #. type: table
  6721. #: guix-git/doc/guix.texi:1752
  6722. 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}."
  6723. msgstr "当这个选项被使用时,可以用@command{guix gc --list-failures}查询被标记为失败的仓库文件;@command{guix gc --clear-failures}从仓库里删除失败的缓存。@xref{Invoking guix gc}。"
  6724. #. type: item
  6725. #: guix-git/doc/guix.texi:1753 guix-git/doc/guix.texi:12661
  6726. #, no-wrap
  6727. msgid "--cores=@var{n}"
  6728. msgstr "--cores=@var{n}"
  6729. #. type: itemx
  6730. #: guix-git/doc/guix.texi:1754 guix-git/doc/guix.texi:12662
  6731. #, no-wrap
  6732. msgid "-c @var{n}"
  6733. msgstr "-c @var{n}"
  6734. #. type: table
  6735. #: guix-git/doc/guix.texi:1757
  6736. msgid "Use @var{n} CPU cores to build each derivation; @code{0} means as many as available."
  6737. msgstr "用@var{n}个CPU核来构建每个derivation;@code{0}表示有多少就用多少。"
  6738. #. type: table
  6739. #: guix-git/doc/guix.texi:1761
  6740. #, fuzzy
  6741. 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})."
  6742. msgstr "默认值是@code{0},但是它的值可以被客户端覆盖,例如@command{guix build}的@code{--cores}选项(@pxref{Invoking guix build})。"
  6743. #. type: table
  6744. #: guix-git/doc/guix.texi:1765
  6745. #, fuzzy
  6746. 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}."
  6747. msgstr "他的作用是在构建进程里设置@code{NIX_BUILD_CORES}环境变量,从而用它来利用内部的并行机制--例如,通过运行@code{make -j$NIX_BUILD_CORES}。"
  6748. #. type: item
  6749. #: guix-git/doc/guix.texi:1766 guix-git/doc/guix.texi:12666
  6750. #, no-wrap
  6751. msgid "--max-jobs=@var{n}"
  6752. msgstr "--max-jobs=@var{n}"
  6753. #. type: itemx
  6754. #: guix-git/doc/guix.texi:1767 guix-git/doc/guix.texi:12667
  6755. #, no-wrap
  6756. msgid "-M @var{n}"
  6757. msgstr "-M @var{n}"
  6758. #. type: table
  6759. #: guix-git/doc/guix.texi:1772
  6760. 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."
  6761. msgstr "最多允许@var{n}个并行的构建任务。默认值是@code{1}。设置为@code{0}表示不在本地执行构建;而是下发构建任务(@pxref{Daemon Offload Setup}),或者直接失败。"
  6762. #. type: item
  6763. #: guix-git/doc/guix.texi:1773 guix-git/doc/guix.texi:12636
  6764. #, no-wrap
  6765. msgid "--max-silent-time=@var{seconds}"
  6766. msgstr "--max-silent-time=@var{seconds}"
  6767. #. type: table
  6768. #: guix-git/doc/guix.texi:1776 guix-git/doc/guix.texi:12639
  6769. msgid "When the build or substitution process remains silent for more than @var{seconds}, terminate it and report a build failure."
  6770. msgstr "当构建或substitution进程超过@var{seconds}秒仍然保持静默,就把它结束掉并报告构建失败。"
  6771. #. type: table
  6772. #: guix-git/doc/guix.texi:1778 guix-git/doc/guix.texi:1787
  6773. msgid "The default value is @code{0}, which disables the timeout."
  6774. msgstr "默认值是@code{0},表示关闭超时。"
  6775. #. type: table
  6776. #: guix-git/doc/guix.texi:1781
  6777. #, fuzzy
  6778. msgid "The value specified here can be overridden by clients (@pxref{Common Build Options, @option{--max-silent-time}})."
  6779. msgstr "这里指定的值可以被客户端覆盖(@pxref{Common Build Options, @code{--max-silent-time}})。"
  6780. #. type: item
  6781. #: guix-git/doc/guix.texi:1782 guix-git/doc/guix.texi:12643
  6782. #, no-wrap
  6783. msgid "--timeout=@var{seconds}"
  6784. msgstr "--timeout=@var{seconds}"
  6785. #. type: table
  6786. #: guix-git/doc/guix.texi:1785 guix-git/doc/guix.texi:12646
  6787. msgid "Likewise, when the build or substitution process lasts for more than @var{seconds}, terminate it and report a build failure."
  6788. msgstr "类似地,当构建或substitution进程执行超过@var{seconds}秒,就把它结束掉并报告构建失败。"
  6789. #. type: table
  6790. #: guix-git/doc/guix.texi:1790
  6791. #, fuzzy
  6792. msgid "The value specified here can be overridden by clients (@pxref{Common Build Options, @option{--timeout}})."
  6793. msgstr "这里指定的值可以被客户端覆盖(@pxref{Common Build Options, @code{--timeout}})。"
  6794. #. type: item
  6795. #: guix-git/doc/guix.texi:1791
  6796. #, no-wrap
  6797. msgid "--rounds=@var{N}"
  6798. msgstr "--rounds=@var{N}"
  6799. #. type: table
  6800. #: guix-git/doc/guix.texi:1796
  6801. 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})."
  6802. msgstr "为每个derivation构建@var{n}次,如果连续的构建结果不是每个比特都相同就报告错误。这个设置可以被@command{guix build}之类的客户端覆盖(@pxref{Invoking guix build})。"
  6803. #. type: table
  6804. #: guix-git/doc/guix.texi:1800 guix-git/doc/guix.texi:12630
  6805. #: guix-git/doc/guix.texi:13314
  6806. 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."
  6807. msgstr "当和@option{--keep-failed}一起使用时,不同的输出保存在@file{/gnu/store/@dots{}-check}。这让检查两个结果的区别更容易。"
  6808. #. type: item
  6809. #: guix-git/doc/guix.texi:1801
  6810. #, no-wrap
  6811. msgid "--debug"
  6812. msgstr "--debug"
  6813. #. type: table
  6814. #: guix-git/doc/guix.texi:1803
  6815. msgid "Produce debugging output."
  6816. msgstr "生成调试输出。"
  6817. #. type: table
  6818. #: guix-git/doc/guix.texi:1807
  6819. #, fuzzy
  6820. 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})."
  6821. msgstr "这对调试后台进程的启动问题很有用,但是之后它可能会被客户端覆盖,例如@command{guix build}命令的@code{--verbosity}选项(@pxref{Invoking guix build})。"
  6822. #. type: item
  6823. #: guix-git/doc/guix.texi:1808
  6824. #, no-wrap
  6825. msgid "--chroot-directory=@var{dir}"
  6826. msgstr "--chroot-directory=@var{dir}"
  6827. #. type: table
  6828. #: guix-git/doc/guix.texi:1810
  6829. msgid "Add @var{dir} to the build chroot."
  6830. msgstr "把@var{dir}添加到构建的chroot。"
  6831. #. type: table
  6832. #: guix-git/doc/guix.texi:1816
  6833. 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."
  6834. msgstr "这么做可能会改变构建进程的结果--例如,如果它们使用了在@var{dir}里发现的可选依赖。因此,建议不要这么做,而是确保每个derivation声明所需的全部输入。"
  6835. #. type: item
  6836. #: guix-git/doc/guix.texi:1817
  6837. #, no-wrap
  6838. msgid "--disable-chroot"
  6839. msgstr "--disable-chroot"
  6840. #. type: table
  6841. #: guix-git/doc/guix.texi:1819
  6842. msgid "Disable chroot builds."
  6843. msgstr "关闭chroot构建。"
  6844. #. type: table
  6845. #: guix-git/doc/guix.texi:1824
  6846. 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."
  6847. msgstr "不建议使用这个选项,因为它会允许构建进程访问到没被声明的依赖。但是,当@command{guix-daemon}以没有特权的用户身份运行时,这个选项是必须的。"
  6848. #. type: item
  6849. #: guix-git/doc/guix.texi:1825
  6850. #, no-wrap
  6851. msgid "--log-compression=@var{type}"
  6852. msgstr "--log-compression=@var{type}"
  6853. #. type: table
  6854. #: guix-git/doc/guix.texi:1828
  6855. msgid "Compress build logs according to @var{type}, one of @code{gzip}, @code{bzip2}, or @code{none}."
  6856. msgstr "以@var{type}方式压缩构建日志,可选的值:@code{gzip},@code{bzip2},@code{none}。"
  6857. #. type: table
  6858. #: guix-git/doc/guix.texi:1832
  6859. #, fuzzy
  6860. 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."
  6861. msgstr "除非使用了@code{--lose-logs},所有的构建日志都保存在@var{localstatedir}里。为了节省空间,后台进程默认使用bzip2对它们进行压缩。"
  6862. #. type: item
  6863. #: guix-git/doc/guix.texi:1833
  6864. #, no-wrap
  6865. msgid "--discover[=yes|no]"
  6866. msgstr ""
  6867. #. type: table
  6868. #: guix-git/doc/guix.texi:1836 guix-git/doc/guix.texi:18875
  6869. msgid "Whether to discover substitute servers on the local network using mDNS and DNS-SD."
  6870. msgstr ""
  6871. #. type: table
  6872. #: guix-git/doc/guix.texi:1839
  6873. msgid "This feature is still experimental. However, here are a few considerations."
  6874. msgstr ""
  6875. #. type: enumerate
  6876. #: guix-git/doc/guix.texi:1843
  6877. msgid "It might be faster/less expensive than fetching from remote servers;"
  6878. msgstr ""
  6879. #. type: enumerate
  6880. #: guix-git/doc/guix.texi:1846
  6881. msgid "There are no security risks, only genuine substitutes will be used (@pxref{Substitute Authentication});"
  6882. msgstr ""
  6883. #. type: enumerate
  6884. #: guix-git/doc/guix.texi:1850
  6885. msgid "An attacker advertising @command{guix publish} on your LAN cannot serve you malicious binaries, but they can learn what software you’re installing;"
  6886. msgstr ""
  6887. #. type: enumerate
  6888. #: guix-git/doc/guix.texi:1853
  6889. msgid "Servers may serve substitute over HTTP, unencrypted, so anyone on the LAN can see what software you’re installing."
  6890. msgstr ""
  6891. #. type: table
  6892. #: guix-git/doc/guix.texi:1857
  6893. msgid "It is also possible to enable or disable substitute server discovery at run-time by running:"
  6894. msgstr ""
  6895. #. type: example
  6896. #: guix-git/doc/guix.texi:1861
  6897. #, no-wrap
  6898. msgid ""
  6899. "herd discover guix-daemon on\n"
  6900. "herd discover guix-daemon off\n"
  6901. msgstr ""
  6902. #. type: item
  6903. #: guix-git/doc/guix.texi:1863
  6904. #, no-wrap
  6905. msgid "--disable-deduplication"
  6906. msgstr "--disable-deduplication"
  6907. #. type: cindex
  6908. #: guix-git/doc/guix.texi:1864 guix-git/doc/guix.texi:4619
  6909. #, no-wrap
  6910. msgid "deduplication"
  6911. msgstr "去重"
  6912. #. type: table
  6913. #: guix-git/doc/guix.texi:1866
  6914. msgid "Disable automatic file ``deduplication'' in the store."
  6915. msgstr "关闭自动对仓库文件“去重”。"
  6916. #. type: table
  6917. #: guix-git/doc/guix.texi:1873
  6918. 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."
  6919. msgstr "默认地,添加到仓库的文件会被自动“去重”:如果新添加的文件和仓库里找到的某个文件完全相同,后台进程把这个新文件变成另一个文件的硬链接。这可以明显地减少硬盘使用,代价是构建结束后轻微地增加输入/输出负载。这个选项关闭这个优化。"
  6920. #. type: item
  6921. #: guix-git/doc/guix.texi:1874
  6922. #, no-wrap
  6923. msgid "--gc-keep-outputs[=yes|no]"
  6924. msgstr "--gc-keep-outputs[=yes|no]"
  6925. #. type: table
  6926. #: guix-git/doc/guix.texi:1877
  6927. msgid "Tell whether the garbage collector (GC) must keep outputs of live derivations."
  6928. msgstr "垃圾收集器(GC)是否必须保留存活的derivation的输出。"
  6929. #. type: cindex
  6930. #: guix-git/doc/guix.texi:1878 guix-git/doc/guix.texi:4431
  6931. #, no-wrap
  6932. msgid "GC roots"
  6933. msgstr "GC根"
  6934. #. type: cindex
  6935. #: guix-git/doc/guix.texi:1879 guix-git/doc/guix.texi:4432
  6936. #, no-wrap
  6937. msgid "garbage collector roots"
  6938. msgstr "垃圾收集的根"
  6939. #. type: table
  6940. #: guix-git/doc/guix.texi:1885
  6941. #, fuzzy
  6942. 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."
  6943. msgstr "当设置为“yes”时,GC会保留仓库里每个存活的derivation(@code{.drv}文件)的输出。默认是“no”,表示只有当从GC根可以访问时才保留derivation的输出。@xref{Invoking guix gc},了解更多关于GC根的信息。"
  6944. #. type: item
  6945. #: guix-git/doc/guix.texi:1886
  6946. #, no-wrap
  6947. msgid "--gc-keep-derivations[=yes|no]"
  6948. msgstr "--gc-keep-derivations[=yes|no]"
  6949. #. type: table
  6950. #: guix-git/doc/guix.texi:1889
  6951. msgid "Tell whether the garbage collector (GC) must keep derivations corresponding to live outputs."
  6952. msgstr "垃圾收集器(GC)是否必须保留和存活的输出相关的derivation。"
  6953. #. type: table
  6954. #: guix-git/doc/guix.texi:1895
  6955. #, fuzzy
  6956. 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."
  6957. msgstr "当设置为“yes”时(默认),只要derivation(即@code{.drv}文件)的输出至少有一个是存活的,GC就将其保留。这让用户可以追踪仓库里物品的源头。设置为“no”可以节省一点硬盘空间。"
  6958. #. type: table
  6959. #: guix-git/doc/guix.texi:1904
  6960. #, fuzzy
  6961. 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."
  6962. msgstr "这样,设置@code{--gc-keep-derivations}为“yes”使存活性从“输出”传递到“derivation”,设置@code{--gc-keep-outputs}为“yes”使存活性从“derivation”传递到“输出”。当两者都设置为“yes”时,效果是保留所有在仓库里的存活对象的构建先决条件(源代码,编译器,库,和其它构建时的工具),不管这些先决条件是否能从某个GC根访问到。这对开发者来说很方便,因为它避免了重复构建和下载。"
  6963. #. type: item
  6964. #: guix-git/doc/guix.texi:1905
  6965. #, no-wrap
  6966. msgid "--impersonate-linux-2.6"
  6967. msgstr "--impersonate-linux-2.6"
  6968. #. type: table
  6969. #: guix-git/doc/guix.texi:1908
  6970. #, fuzzy
  6971. 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."
  6972. msgstr "在基于Linux的系统上,伪装成Linux 2.6。这意味着内核的@code{uname}系统调用会把版本号报告为2.6。"
  6973. #. type: table
  6974. #: guix-git/doc/guix.texi:1911
  6975. msgid "This might be helpful to build programs that (usually wrongfully) depend on the kernel version number."
  6976. msgstr "这可能会有助于构建那些(通常是错误地)依赖内核版本号的程序。"
  6977. #. type: item
  6978. #: guix-git/doc/guix.texi:1912
  6979. #, no-wrap
  6980. msgid "--lose-logs"
  6981. msgstr "--lose-logs"
  6982. #. type: table
  6983. #: guix-git/doc/guix.texi:1915
  6984. #, fuzzy
  6985. msgid "Do not keep build logs. By default they are kept under @file{@var{localstatedir}/guix/log}."
  6986. msgstr "不保留构建日志。默认保存在@code{@var{localstatedir}/guix/log}。"
  6987. #. type: item
  6988. #: guix-git/doc/guix.texi:1916 guix-git/doc/guix.texi:4876
  6989. #: guix-git/doc/guix.texi:6304 guix-git/doc/guix.texi:6801
  6990. #: guix-git/doc/guix.texi:7269 guix-git/doc/guix.texi:13250
  6991. #: guix-git/doc/guix.texi:15145 guix-git/doc/guix.texi:15410
  6992. #: guix-git/doc/guix.texi:16100 guix-git/doc/guix.texi:40309
  6993. #, no-wrap
  6994. msgid "--system=@var{system}"
  6995. msgstr "--system=@var{system}"
  6996. #. type: table
  6997. #: guix-git/doc/guix.texi:1920
  6998. 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}."
  6999. msgstr "假设@var{system}是当前的系统类型。默认值是configure时发现的架构/内核元组,如@code{x86_64-linux}。"
  7000. #. type: item
  7001. #: guix-git/doc/guix.texi:1921 guix-git/doc/guix.texi:12310
  7002. #, no-wrap
  7003. msgid "--listen=@var{endpoint}"
  7004. msgstr "--listen=@var{endpoint}"
  7005. #. type: table
  7006. #: guix-git/doc/guix.texi:1926
  7007. 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:"
  7008. msgstr ""
  7009. #. type: item
  7010. #: guix-git/doc/guix.texi:1928
  7011. #, no-wrap
  7012. msgid "--listen=/gnu/var/daemon"
  7013. msgstr ""
  7014. #. type: table
  7015. #: guix-git/doc/guix.texi:1931
  7016. msgid "Listen for connections on the @file{/gnu/var/daemon} Unix-domain socket, creating it if needed."
  7017. msgstr ""
  7018. #. type: item
  7019. #: guix-git/doc/guix.texi:1932
  7020. #, no-wrap
  7021. msgid "--listen=localhost"
  7022. msgstr ""
  7023. #. type: cindex
  7024. #: guix-git/doc/guix.texi:1933 guix-git/doc/guix.texi:10974
  7025. #, no-wrap
  7026. msgid "daemon, remote access"
  7027. msgstr ""
  7028. #. type: cindex
  7029. #: guix-git/doc/guix.texi:1934 guix-git/doc/guix.texi:10975
  7030. #, no-wrap
  7031. msgid "remote access to the daemon"
  7032. msgstr ""
  7033. #. type: cindex
  7034. #: guix-git/doc/guix.texi:1935 guix-git/doc/guix.texi:10976
  7035. #, no-wrap
  7036. msgid "daemon, cluster setup"
  7037. msgstr ""
  7038. #. type: cindex
  7039. #: guix-git/doc/guix.texi:1936 guix-git/doc/guix.texi:10977
  7040. #, no-wrap
  7041. msgid "clusters, daemon setup"
  7042. msgstr ""
  7043. #. type: table
  7044. #: guix-git/doc/guix.texi:1939
  7045. msgid "Listen for TCP connections on the network interface corresponding to @code{localhost}, on port 44146."
  7046. msgstr ""
  7047. #. type: item
  7048. #: guix-git/doc/guix.texi:1940
  7049. #, no-wrap
  7050. msgid "--listen=128.0.0.42:1234"
  7051. msgstr ""
  7052. #. type: table
  7053. #: guix-git/doc/guix.texi:1943
  7054. msgid "Listen for TCP connections on the network interface corresponding to @code{128.0.0.42}, on port 1234."
  7055. msgstr ""
  7056. #. type: table
  7057. #: guix-git/doc/guix.texi:1950
  7058. 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}})."
  7059. msgstr ""
  7060. #. type: quotation
  7061. #: guix-git/doc/guix.texi:1957
  7062. 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."
  7063. msgstr ""
  7064. #. type: table
  7065. #: guix-git/doc/guix.texi:1962
  7066. 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}."
  7067. msgstr ""
  7068. #. type: Plain text
  7069. #: guix-git/doc/guix.texi:1972
  7070. 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."
  7071. msgstr ""
  7072. #. type: anchor{#1}
  7073. #: guix-git/doc/guix.texi:1976
  7074. msgid "locales-and-locpath"
  7075. msgstr ""
  7076. #. type: cindex
  7077. #: guix-git/doc/guix.texi:1976
  7078. #, no-wrap
  7079. msgid "locales, when not on Guix System"
  7080. msgstr ""
  7081. #. type: vindex
  7082. #: guix-git/doc/guix.texi:1977 guix-git/doc/guix.texi:17995
  7083. #, no-wrap
  7084. msgid "LOCPATH"
  7085. msgstr ""
  7086. #. type: vindex
  7087. #: guix-git/doc/guix.texi:1978
  7088. #, no-wrap
  7089. msgid "GUIX_LOCPATH"
  7090. msgstr ""
  7091. #. type: Plain text
  7092. #: guix-git/doc/guix.texi:1983
  7093. 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:"
  7094. msgstr ""
  7095. #. type: example
  7096. #: guix-git/doc/guix.texi:1987
  7097. #, no-wrap
  7098. msgid ""
  7099. "$ guix install glibc-locales\n"
  7100. "$ export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale\n"
  7101. msgstr ""
  7102. #. type: Plain text
  7103. #: guix-git/doc/guix.texi:1999
  7104. 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:"
  7105. msgstr ""
  7106. #. type: lisp
  7107. #: guix-git/doc/guix.texi:2002
  7108. #, no-wrap
  7109. msgid ""
  7110. "(use-modules (gnu packages base))\n"
  7111. "\n"
  7112. msgstr ""
  7113. "(use-modules (gnu packages base))\n"
  7114. "\n"
  7115. #. type: lisp
  7116. #: guix-git/doc/guix.texi:2008
  7117. #, no-wrap
  7118. msgid ""
  7119. "(define my-glibc-locales\n"
  7120. " (make-glibc-utf8-locales\n"
  7121. " glibc\n"
  7122. " #:locales (list \"en_CA\" \"fr_CA\" \"ik_CA\" \"iu_CA\" \"shs_CA\")\n"
  7123. " #:name \"glibc-canadian-utf8-locales\"))\n"
  7124. msgstr ""
  7125. #. type: Plain text
  7126. #: guix-git/doc/guix.texi:2013
  7127. 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:"
  7128. msgstr ""
  7129. #. type: enumerate
  7130. #: guix-git/doc/guix.texi:2020
  7131. 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."
  7132. msgstr ""
  7133. #. type: enumerate
  7134. #: guix-git/doc/guix.texi:2027
  7135. 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."
  7136. msgstr ""
  7137. #. type: Plain text
  7138. #: guix-git/doc/guix.texi:2031
  7139. msgid "This is important because the locale data format used by different libc versions may be incompatible."
  7140. msgstr ""
  7141. #. type: cindex
  7142. #: guix-git/doc/guix.texi:2034
  7143. #, no-wrap
  7144. msgid "name service switch, glibc"
  7145. msgstr ""
  7146. #. type: cindex
  7147. #: guix-git/doc/guix.texi:2035
  7148. #, no-wrap
  7149. msgid "NSS (name service switch), glibc"
  7150. msgstr ""
  7151. #. type: cindex
  7152. #: guix-git/doc/guix.texi:2036 guix-git/doc/guix.texi:18633
  7153. #, fuzzy, no-wrap
  7154. #| msgid "Web Services"
  7155. msgid "@abbr{nscd, name service cache daemon}"
  7156. msgstr "Web服务"
  7157. #. type: Plain text
  7158. #: guix-git/doc/guix.texi:2043
  7159. 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."
  7160. msgstr ""
  7161. #. type: file{#1}
  7162. #: guix-git/doc/guix.texi:2044
  7163. #, no-wrap
  7164. msgid "nsswitch.conf"
  7165. msgstr ""
  7166. #. type: Plain text
  7167. #: guix-git/doc/guix.texi:2049
  7168. 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})."
  7169. msgstr ""
  7170. #. type: cindex
  7171. #: guix-git/doc/guix.texi:2050
  7172. #, no-wrap
  7173. msgid "Network information service (NIS)"
  7174. msgstr ""
  7175. #. type: cindex
  7176. #: guix-git/doc/guix.texi:2051
  7177. #, no-wrap
  7178. msgid "NIS (Network information service)"
  7179. msgstr ""
  7180. #. type: Plain text
  7181. #: guix-git/doc/guix.texi:2060
  7182. 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})."
  7183. msgstr ""
  7184. #. type: Plain text
  7185. #: guix-git/doc/guix.texi:2070
  7186. 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)."
  7187. msgstr ""
  7188. #. type: Plain text
  7189. #: guix-git/doc/guix.texi:2075
  7190. 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."
  7191. msgstr ""
  7192. #. type: Plain text
  7193. #: guix-git/doc/guix.texi:2080
  7194. 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."
  7195. msgstr ""
  7196. #. type: subsection
  7197. #: guix-git/doc/guix.texi:2081
  7198. #, no-wrap
  7199. msgid "X11 Fonts"
  7200. msgstr "X11 字体"
  7201. #. type: Plain text
  7202. #: guix-git/doc/guix.texi:2091
  7203. 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}."
  7204. msgstr ""
  7205. #. type: code{#1}
  7206. #: guix-git/doc/guix.texi:2092
  7207. #, no-wrap
  7208. msgid "fc-cache"
  7209. msgstr ""
  7210. #. type: cindex
  7211. #: guix-git/doc/guix.texi:2093
  7212. #, no-wrap
  7213. msgid "font cache"
  7214. msgstr ""
  7215. #. type: Plain text
  7216. #: guix-git/doc/guix.texi:2097
  7217. 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:"
  7218. msgstr ""
  7219. #. type: example
  7220. #: guix-git/doc/guix.texi:2101
  7221. #, no-wrap
  7222. msgid ""
  7223. "guix install fontconfig\n"
  7224. "fc-cache -rv\n"
  7225. msgstr ""
  7226. #. type: Plain text
  7227. #: guix-git/doc/guix.texi:2109
  7228. 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:"
  7229. msgstr ""
  7230. #. type: example
  7231. #: guix-git/doc/guix.texi:2112
  7232. #, no-wrap
  7233. msgid "guix install font-adobe-source-han-sans:cn\n"
  7234. msgstr ""
  7235. #. type: code{#1}
  7236. #: guix-git/doc/guix.texi:2114
  7237. #, no-wrap
  7238. msgid "xterm"
  7239. msgstr ""
  7240. #. type: Plain text
  7241. #: guix-git/doc/guix.texi:2118
  7242. 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:"
  7243. msgstr ""
  7244. #. type: example
  7245. #: guix-git/doc/guix.texi:2121
  7246. #, no-wrap
  7247. msgid "-*-dejavu sans-medium-r-normal-*-*-100-*-*-*-*-*-1\n"
  7248. msgstr ""
  7249. #. type: Plain text
  7250. #: guix-git/doc/guix.texi:2125
  7251. 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:"
  7252. msgstr ""
  7253. #. type: example
  7254. #: guix-git/doc/guix.texi:2130
  7255. #, no-wrap
  7256. msgid "xset +fp $(dirname $(readlink -f ~/.guix-profile/share/fonts/truetype/fonts.dir))\n"
  7257. msgstr ""
  7258. #. type: code{#1}
  7259. #: guix-git/doc/guix.texi:2132
  7260. #, no-wrap
  7261. msgid "xlsfonts"
  7262. msgstr ""
  7263. #. type: Plain text
  7264. #: guix-git/doc/guix.texi:2135
  7265. msgid "After that, you can run @code{xlsfonts} (from @code{xlsfonts} package) to make sure your TrueType fonts are listed there."
  7266. msgstr ""
  7267. #. type: code{#1}
  7268. #: guix-git/doc/guix.texi:2139 guix-git/doc/guix.texi:39116
  7269. #, no-wrap
  7270. msgid "nss-certs"
  7271. msgstr ""
  7272. #. type: Plain text
  7273. #: guix-git/doc/guix.texi:2142
  7274. msgid "The @code{nss-certs} package provides X.509 certificates, which allow programs to authenticate Web servers accessed over HTTPS."
  7275. msgstr ""
  7276. #. type: Plain text
  7277. #: guix-git/doc/guix.texi:2147
  7278. 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."
  7279. msgstr ""
  7280. #. type: code{#1}
  7281. #: guix-git/doc/guix.texi:2150
  7282. #, no-wrap
  7283. msgid "emacs"
  7284. msgstr ""
  7285. #. type: Plain text
  7286. #: guix-git/doc/guix.texi:2156
  7287. 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."
  7288. msgstr ""
  7289. #. type: Plain text
  7290. #: guix-git/doc/guix.texi:2163
  7291. 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})."
  7292. msgstr ""
  7293. #. type: quotation
  7294. #: guix-git/doc/guix.texi:2169
  7295. msgid "Emacs can now compile packages natively. Under the default configuration, this means that Emacs packages will now be just-in-time (JIT) compiled as you use them, and the results stored in a subdirectory of your @code{user-emacs-directory}."
  7296. msgstr ""
  7297. #. type: quotation
  7298. #: guix-git/doc/guix.texi:2176
  7299. msgid "Furthermore, the build system for Emacs packages transparently supports native compilation, but note, that @code{emacs-minimal}---the default Emacs for building packages---has been configured without native compilation. To natively compile your emacs packages ahead of time, use a transformation like @option{--with-input=emacs-minimal=emacs}."
  7300. msgstr ""
  7301. #. type: cindex
  7302. #: guix-git/doc/guix.texi:2181
  7303. #, no-wrap
  7304. msgid "Upgrading Guix, on a foreign distro"
  7305. msgstr ""
  7306. #. type: Plain text
  7307. #: guix-git/doc/guix.texi:2184
  7308. msgid "To upgrade Guix, run:"
  7309. msgstr ""
  7310. #. type: example
  7311. #: guix-git/doc/guix.texi:2187 guix-git/doc/guix.texi:3167
  7312. #, no-wrap
  7313. msgid "guix pull\n"
  7314. msgstr "guix pull\n"
  7315. #. type: Plain text
  7316. #: guix-git/doc/guix.texi:2190
  7317. #, fuzzy
  7318. msgid "@xref{Invoking guix pull}, for more information."
  7319. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  7320. #. type: cindex
  7321. #: guix-git/doc/guix.texi:2191
  7322. #, no-wrap
  7323. msgid "upgrading Guix for the root user, on a foreign distro"
  7324. msgstr ""
  7325. #. type: cindex
  7326. #: guix-git/doc/guix.texi:2192
  7327. #, no-wrap
  7328. msgid "upgrading the Guix daemon, on a foreign distro"
  7329. msgstr ""
  7330. #. type: cindex
  7331. #: guix-git/doc/guix.texi:2193
  7332. #, no-wrap
  7333. msgid "@command{guix pull} for the root user, on a foreign distro"
  7334. msgstr ""
  7335. #. type: Plain text
  7336. #: guix-git/doc/guix.texi:2196
  7337. msgid "On a foreign distro, you can upgrade the build daemon by running:"
  7338. msgstr ""
  7339. #. type: example
  7340. #: guix-git/doc/guix.texi:2199
  7341. #, no-wrap
  7342. msgid "sudo -i guix pull\n"
  7343. msgstr "sudo -i guix pull\n"
  7344. #. type: Plain text
  7345. #: guix-git/doc/guix.texi:2204
  7346. msgid "followed by (assuming your distro uses the systemd service management tool):"
  7347. msgstr ""
  7348. #. type: example
  7349. #: guix-git/doc/guix.texi:2207
  7350. #, fuzzy, no-wrap
  7351. msgid "systemctl restart guix-daemon.service\n"
  7352. msgstr "semodule -i etc/guix-daemon.cil\n"
  7353. #. type: Plain text
  7354. #: guix-git/doc/guix.texi:2211
  7355. msgid "On Guix System, upgrading the daemon is achieved by reconfiguring the system (@pxref{Invoking guix system, @code{guix system reconfigure}})."
  7356. msgstr ""
  7357. #. type: cindex
  7358. #: guix-git/doc/guix.texi:2218
  7359. #, no-wrap
  7360. msgid "installing Guix System"
  7361. msgstr ""
  7362. #. type: cindex
  7363. #: guix-git/doc/guix.texi:2219
  7364. #, no-wrap
  7365. msgid "Guix System, installation"
  7366. msgstr ""
  7367. #. type: Plain text
  7368. #: guix-git/doc/guix.texi:2224
  7369. 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}."
  7370. msgstr ""
  7371. #. type: quotation
  7372. #: guix-git/doc/guix.texi:2233
  7373. 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."
  7374. msgstr ""
  7375. #. type: quotation
  7376. #: guix-git/doc/guix.texi:2236
  7377. msgid "Alternatively, run @command{info info} in another tty to keep the manual available."
  7378. msgstr ""
  7379. #. type: Plain text
  7380. #: guix-git/doc/guix.texi:2257
  7381. 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."
  7382. msgstr ""
  7383. #. type: Plain text
  7384. #: guix-git/doc/guix.texi:2260
  7385. msgid "Nevertheless, before you proceed with the installation, be aware of the following noteworthy limitations applicable to version @value{VERSION}:"
  7386. msgstr ""
  7387. #. type: itemize
  7388. #: guix-git/doc/guix.texi:2265
  7389. msgid "More and more system services are provided (@pxref{Services}), but some may be missing."
  7390. msgstr ""
  7391. #. type: itemize
  7392. #: guix-git/doc/guix.texi:2270
  7393. 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."
  7394. msgstr ""
  7395. #. type: Plain text
  7396. #: guix-git/doc/guix.texi:2275
  7397. 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."
  7398. msgstr ""
  7399. #. type: cindex
  7400. #: guix-git/doc/guix.texi:2280
  7401. #, no-wrap
  7402. msgid "hardware support on Guix System"
  7403. msgstr ""
  7404. #. type: Plain text
  7405. #: guix-git/doc/guix.texi:2289
  7406. 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."
  7407. msgstr ""
  7408. #. type: cindex
  7409. #: guix-git/doc/guix.texi:2290
  7410. #, no-wrap
  7411. msgid "WiFi, hardware support"
  7412. msgstr ""
  7413. #. type: Plain text
  7414. #: guix-git/doc/guix.texi:2299
  7415. 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}})."
  7416. msgstr ""
  7417. #. type: Plain text
  7418. #: guix-git/doc/guix.texi:2302
  7419. msgid "The installer warns you early on if it detects devices that are known @emph{not} to work due to the lack of free firmware or free drivers."
  7420. msgstr ""
  7421. #. type: cindex
  7422. #: guix-git/doc/guix.texi:2303
  7423. #, no-wrap
  7424. msgid "RYF, Respects Your Freedom"
  7425. msgstr ""
  7426. #. type: Plain text
  7427. #: guix-git/doc/guix.texi:2309
  7428. 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."
  7429. msgstr ""
  7430. #. type: Plain text
  7431. #: guix-git/doc/guix.texi:2313
  7432. 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."
  7433. msgstr ""
  7434. #. type: Plain text
  7435. #: guix-git/doc/guix.texi:2322
  7436. 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:"
  7437. msgstr ""
  7438. #. type: table
  7439. #: guix-git/doc/guix.texi:2326
  7440. msgid "for a GNU/Linux system on Intel/AMD-compatible 64-bit CPUs;"
  7441. msgstr ""
  7442. #. type: table
  7443. #: guix-git/doc/guix.texi:2329
  7444. msgid "for a 32-bit GNU/Linux system on Intel-compatible CPUs."
  7445. msgstr ""
  7446. #. type: Plain text
  7447. #: guix-git/doc/guix.texi:2334
  7448. msgid "Make sure to download the associated @file{.sig} file and to verify the authenticity of the image against it, along these lines:"
  7449. msgstr ""
  7450. #. type: example
  7451. #: guix-git/doc/guix.texi:2338
  7452. #, no-wrap
  7453. msgid ""
  7454. "$ wget @value{BASE-URL}/guix-system-install-@value{VERSION}.x86_64-linux.iso.sig\n"
  7455. "$ gpg --verify guix-system-install-@value{VERSION}.x86_64-linux.iso.sig\n"
  7456. msgstr ""
  7457. "$ wget @value{BASE-URL}/guix-system-install-@value{VERSION}.@var{系统}.iso.sig\n"
  7458. "$ gpg --verify guix-system-install-@value{VERSION}.@var{系统}.iso.sig\n"
  7459. #. type: example
  7460. #: guix-git/doc/guix.texi:2346
  7461. #, no-wrap
  7462. msgid ""
  7463. "$ wget @value{OPENPGP-SIGNING-KEY-URL} \\\n"
  7464. " -qO - | gpg --import -\n"
  7465. msgstr ""
  7466. #. type: Plain text
  7467. #: guix-git/doc/guix.texi:2358
  7468. 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."
  7469. msgstr ""
  7470. #. type: unnumberedsubsec
  7471. #: guix-git/doc/guix.texi:2359
  7472. #, no-wrap
  7473. msgid "Copying to a USB Stick"
  7474. msgstr ""
  7475. #. type: Plain text
  7476. #: guix-git/doc/guix.texi:2364
  7477. 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:"
  7478. msgstr ""
  7479. #. type: example
  7480. #: guix-git/doc/guix.texi:2368
  7481. #, no-wrap
  7482. msgid ""
  7483. "dd if=guix-system-install-@value{VERSION}.x86_64-linux.iso of=/dev/sdX status=progress\n"
  7484. "sync\n"
  7485. msgstr ""
  7486. #. type: Plain text
  7487. #: guix-git/doc/guix.texi:2371
  7488. msgid "Access to @file{/dev/sdX} usually requires root privileges."
  7489. msgstr ""
  7490. #. type: unnumberedsubsec
  7491. #: guix-git/doc/guix.texi:2372
  7492. #, no-wrap
  7493. msgid "Burning on a DVD"
  7494. msgstr ""
  7495. #. type: Plain text
  7496. #: guix-git/doc/guix.texi:2377
  7497. 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:"
  7498. msgstr ""
  7499. #. type: example
  7500. #: guix-git/doc/guix.texi:2380
  7501. #, no-wrap
  7502. msgid "growisofs -dvd-compat -Z /dev/srX=guix-system-install-@value{VERSION}.x86_64-linux.iso\n"
  7503. msgstr ""
  7504. #. type: Plain text
  7505. #: guix-git/doc/guix.texi:2383
  7506. msgid "Access to @file{/dev/srX} usually requires root privileges."
  7507. msgstr ""
  7508. #. type: unnumberedsubsec
  7509. #: guix-git/doc/guix.texi:2384
  7510. #, no-wrap
  7511. msgid "Booting"
  7512. msgstr ""
  7513. #. type: Plain text
  7514. #: guix-git/doc/guix.texi:2391
  7515. 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}."
  7516. msgstr ""
  7517. #. type: Plain text
  7518. #: guix-git/doc/guix.texi:2394
  7519. msgid "@xref{Installing Guix in a VM}, if, instead, you would like to install Guix System in a virtual machine (VM)."
  7520. msgstr ""
  7521. #. type: Plain text
  7522. #: guix-git/doc/guix.texi:2404
  7523. 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})."
  7524. msgstr ""
  7525. #. type: Plain text
  7526. #: guix-git/doc/guix.texi:2412
  7527. 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."
  7528. msgstr ""
  7529. #. type: quotation
  7530. #: guix-git/doc/guix.texi:2417
  7531. msgid "Installation requires access to the Internet so that any missing dependencies of your system configuration can be downloaded. See the ``Networking'' section below."
  7532. msgstr ""
  7533. #. type: Plain text
  7534. #: guix-git/doc/guix.texi:2424
  7535. 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."
  7536. msgstr ""
  7537. #. type: Plain text
  7538. #: guix-git/doc/guix.texi:2429
  7539. 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."
  7540. msgstr ""
  7541. #. type: Plain text
  7542. #: guix-git/doc/guix.texi:2431
  7543. msgid "@image{images/installer-network,5in,, networking setup with the graphical installer}"
  7544. msgstr ""
  7545. #. type: Plain text
  7546. #: guix-git/doc/guix.texi:2436
  7547. 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."
  7548. msgstr ""
  7549. #. type: Plain text
  7550. #: guix-git/doc/guix.texi:2438
  7551. msgid "@image{images/installer-partitions,5in,, partitioning with the graphical installer}"
  7552. msgstr ""
  7553. #. type: Plain text
  7554. #: guix-git/doc/guix.texi:2441
  7555. 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."
  7556. msgstr ""
  7557. #. type: Plain text
  7558. #: guix-git/doc/guix.texi:2443
  7559. msgid "@image{images/installer-resume,5in,, resuming the installation process}"
  7560. msgstr ""
  7561. #. type: Plain text
  7562. #: guix-git/doc/guix.texi:2448
  7563. 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!"
  7564. msgstr ""
  7565. #. type: Plain text
  7566. #: guix-git/doc/guix.texi:2458
  7567. 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})."
  7568. msgstr ""
  7569. #. type: Plain text
  7570. #: guix-git/doc/guix.texi:2464
  7571. 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 is also a full-blown Guix System. This means that you can install additional packages, should you need it, using @command{guix package} (@pxref{Invoking guix package})."
  7572. msgstr ""
  7573. #. type: subsection
  7574. #: guix-git/doc/guix.texi:2471
  7575. #, no-wrap
  7576. msgid "Keyboard Layout, Networking, and Partitioning"
  7577. msgstr ""
  7578. #. type: Plain text
  7579. #: guix-git/doc/guix.texi:2476
  7580. 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."
  7581. msgstr ""
  7582. #. type: cindex
  7583. #: guix-git/doc/guix.texi:2479 guix-git/doc/guix.texi:17810
  7584. #, no-wrap
  7585. msgid "keyboard layout"
  7586. msgstr ""
  7587. #. type: Plain text
  7588. #: guix-git/doc/guix.texi:2483
  7589. 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:"
  7590. msgstr "安装镜像使用的是美国的 qwerty 键盘布局,如果想更改,可以使用 @command{loadkeys} 命令。 例如,用以下命令选择 Dvorak 键盘布局:"
  7591. #. type: example
  7592. #: guix-git/doc/guix.texi:2486
  7593. #, no-wrap
  7594. msgid "loadkeys dvorak\n"
  7595. msgstr ""
  7596. #. type: Plain text
  7597. #: guix-git/doc/guix.texi:2491
  7598. 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."
  7599. msgstr ""
  7600. #. type: anchor{#1}
  7601. #: guix-git/doc/guix.texi:2493
  7602. #, fuzzy
  7603. #| msgid "Manual Installation"
  7604. msgid "manual-installation-networking"
  7605. msgstr "手动安装"
  7606. #. type: subsubsection
  7607. #: guix-git/doc/guix.texi:2493
  7608. #, no-wrap
  7609. msgid "Networking"
  7610. msgstr ""
  7611. #. type: Plain text
  7612. #: guix-git/doc/guix.texi:2496
  7613. msgid "Run the following command to see what your network interfaces are called:"
  7614. msgstr "运行以下命令查看你的网络接口的名称:"
  7615. #. type: example
  7616. #: guix-git/doc/guix.texi:2499
  7617. #, no-wrap
  7618. msgid "ifconfig -a\n"
  7619. msgstr ""
  7620. #. type: table
  7621. #: guix-git/doc/guix.texi:2503 guix-git/doc/guix.texi:2525
  7622. msgid "@dots{} or, using the GNU/Linux-specific @command{ip} command:"
  7623. msgstr "@dots{} 或者,使用 GNU/Linux 特有的 @command{ip} 命令:"
  7624. #. type: example
  7625. #: guix-git/doc/guix.texi:2506
  7626. #, no-wrap
  7627. msgid "ip address\n"
  7628. msgstr ""
  7629. #. type: Plain text
  7630. #: guix-git/doc/guix.texi:2513
  7631. 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}."
  7632. msgstr ""
  7633. #. type: item
  7634. #: guix-git/doc/guix.texi:2515
  7635. #, no-wrap
  7636. msgid "Wired connection"
  7637. msgstr "有线连接"
  7638. #. type: table
  7639. #: guix-git/doc/guix.texi:2518
  7640. msgid "To configure a wired network run the following command, substituting @var{interface} with the name of the wired interface you want to use."
  7641. msgstr ""
  7642. #. type: example
  7643. #: guix-git/doc/guix.texi:2521
  7644. #, no-wrap
  7645. msgid "ifconfig @var{interface} up\n"
  7646. msgstr ""
  7647. #. type: example
  7648. #: guix-git/doc/guix.texi:2528
  7649. #, no-wrap
  7650. msgid "ip link set @var{interface} up\n"
  7651. msgstr ""
  7652. #. type: item
  7653. #: guix-git/doc/guix.texi:2530
  7654. #, no-wrap
  7655. msgid "Wireless connection"
  7656. msgstr "无线连接"
  7657. #. type: cindex
  7658. #: guix-git/doc/guix.texi:2531
  7659. #, no-wrap
  7660. msgid "wireless"
  7661. msgstr ""
  7662. #. type: cindex
  7663. #: guix-git/doc/guix.texi:2532
  7664. #, no-wrap
  7665. msgid "WiFi"
  7666. msgstr ""
  7667. #. type: table
  7668. #: guix-git/doc/guix.texi:2537
  7669. 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}:"
  7670. msgstr ""
  7671. #. type: example
  7672. #: guix-git/doc/guix.texi:2540
  7673. #, no-wrap
  7674. msgid "nano wpa_supplicant.conf\n"
  7675. msgstr ""
  7676. #. type: table
  7677. #: guix-git/doc/guix.texi:2545
  7678. 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:"
  7679. msgstr ""
  7680. #. type: example
  7681. #: guix-git/doc/guix.texi:2552
  7682. #, no-wrap
  7683. msgid ""
  7684. "network=@{\n"
  7685. " ssid=\"@var{my-ssid}\"\n"
  7686. " key_mgmt=WPA-PSK\n"
  7687. " psk=\"the network's secret passphrase\"\n"
  7688. "@}\n"
  7689. msgstr ""
  7690. #. type: table
  7691. #: guix-git/doc/guix.texi:2557
  7692. 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):"
  7693. msgstr ""
  7694. #. type: example
  7695. #: guix-git/doc/guix.texi:2560
  7696. #, no-wrap
  7697. msgid "wpa_supplicant -c wpa_supplicant.conf -i @var{interface} -B\n"
  7698. msgstr ""
  7699. #. type: table
  7700. #: guix-git/doc/guix.texi:2563
  7701. msgid "Run @command{man wpa_supplicant} for more information."
  7702. msgstr ""
  7703. #. type: cindex
  7704. #: guix-git/doc/guix.texi:2565
  7705. #, no-wrap
  7706. msgid "DHCP"
  7707. msgstr ""
  7708. #. type: Plain text
  7709. #: guix-git/doc/guix.texi:2568
  7710. 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:"
  7711. msgstr ""
  7712. #. type: example
  7713. #: guix-git/doc/guix.texi:2571
  7714. #, no-wrap
  7715. msgid "dhclient -v @var{interface}\n"
  7716. msgstr ""
  7717. #. type: Plain text
  7718. #: guix-git/doc/guix.texi:2574
  7719. msgid "Try to ping a server to see if networking is up and running:"
  7720. msgstr ""
  7721. #. type: example
  7722. #: guix-git/doc/guix.texi:2577
  7723. #, no-wrap
  7724. msgid "ping -c 3 gnu.org\n"
  7725. msgstr ""
  7726. #. type: Plain text
  7727. #: guix-git/doc/guix.texi:2581
  7728. 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."
  7729. msgstr ""
  7730. #. type: cindex
  7731. #: guix-git/doc/guix.texi:2582
  7732. #, fuzzy, no-wrap
  7733. msgid "proxy, during system installation"
  7734. msgstr "系统安装之后"
  7735. #. type: Plain text
  7736. #: guix-git/doc/guix.texi:2585
  7737. msgid "If you need HTTP and HTTPS access to go through a proxy, run the following command:"
  7738. msgstr ""
  7739. #. type: example
  7740. #: guix-git/doc/guix.texi:2588
  7741. #, no-wrap
  7742. msgid "herd set-http-proxy guix-daemon @var{URL}\n"
  7743. msgstr ""
  7744. #. type: Plain text
  7745. #: guix-git/doc/guix.texi:2593
  7746. msgid "where @var{URL} is the proxy URL, for example @code{http://example.org:8118}."
  7747. msgstr ""
  7748. #. type: cindex
  7749. #: guix-git/doc/guix.texi:2594
  7750. #, no-wrap
  7751. msgid "installing over SSH"
  7752. msgstr ""
  7753. #. type: Plain text
  7754. #: guix-git/doc/guix.texi:2597
  7755. msgid "If you want to, you can continue the installation remotely by starting an SSH server:"
  7756. msgstr ""
  7757. #. type: example
  7758. #: guix-git/doc/guix.texi:2600
  7759. #, no-wrap
  7760. msgid "herd start ssh-daemon\n"
  7761. msgstr ""
  7762. #. type: Plain text
  7763. #: guix-git/doc/guix.texi:2604
  7764. msgid "Make sure to either set a password with @command{passwd}, or configure OpenSSH public key authentication before logging in."
  7765. msgstr ""
  7766. #. type: subsubsection
  7767. #: guix-git/doc/guix.texi:2605
  7768. #, no-wrap
  7769. msgid "Disk Partitioning"
  7770. msgstr "磁盘分区"
  7771. #. type: Plain text
  7772. #: guix-git/doc/guix.texi:2609
  7773. msgid "Unless this has already been done, the next step is to partition, and then format the target partition(s)."
  7774. msgstr ""
  7775. #. type: Plain text
  7776. #: guix-git/doc/guix.texi:2614
  7777. 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:"
  7778. msgstr ""
  7779. #. type: example
  7780. #: guix-git/doc/guix.texi:2617
  7781. #, no-wrap
  7782. msgid "cfdisk\n"
  7783. msgstr ""
  7784. #. type: Plain text
  7785. #: guix-git/doc/guix.texi:2623
  7786. 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})."
  7787. msgstr ""
  7788. #. type: cindex
  7789. #: guix-git/doc/guix.texi:2624
  7790. #, no-wrap
  7791. msgid "EFI, installation"
  7792. msgstr ""
  7793. #. type: cindex
  7794. #: guix-git/doc/guix.texi:2625
  7795. #, no-wrap
  7796. msgid "UEFI, installation"
  7797. msgstr ""
  7798. #. type: cindex
  7799. #: guix-git/doc/guix.texi:2626
  7800. #, no-wrap
  7801. msgid "ESP, EFI system partition"
  7802. msgstr ""
  7803. #. type: Plain text
  7804. #: guix-git/doc/guix.texi:2630
  7805. 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}:"
  7806. msgstr ""
  7807. #. type: example
  7808. #: guix-git/doc/guix.texi:2633
  7809. #, no-wrap
  7810. msgid "parted /dev/sda set 1 esp on\n"
  7811. msgstr ""
  7812. #. type: vindex
  7813. #: guix-git/doc/guix.texi:2636 guix-git/doc/guix.texi:39543
  7814. #, no-wrap
  7815. msgid "grub-bootloader"
  7816. msgstr ""
  7817. #. type: vindex
  7818. #: guix-git/doc/guix.texi:2637 guix-git/doc/guix.texi:39547
  7819. #, no-wrap
  7820. msgid "grub-efi-bootloader"
  7821. msgstr ""
  7822. #. type: quotation
  7823. #: guix-git/doc/guix.texi:2644
  7824. 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."
  7825. msgstr ""
  7826. #. type: Plain text
  7827. #: guix-git/doc/guix.texi:2652
  7828. 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:"
  7829. msgstr ""
  7830. #. type: example
  7831. #: guix-git/doc/guix.texi:2655
  7832. #, no-wrap
  7833. msgid "mkfs.fat -F32 /dev/sda1\n"
  7834. msgstr ""
  7835. #. type: Plain text
  7836. #: guix-git/doc/guix.texi:2662
  7837. 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})."
  7838. msgstr ""
  7839. #. type: Plain text
  7840. #: guix-git/doc/guix.texi:2669
  7841. 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:"
  7842. msgstr ""
  7843. #. type: example
  7844. #: guix-git/doc/guix.texi:2672
  7845. #, no-wrap
  7846. msgid "mkfs.ext4 -L my-root /dev/sda2\n"
  7847. msgstr ""
  7848. #. type: cindex
  7849. #: guix-git/doc/guix.texi:2674 guix-git/doc/guix.texi:16609
  7850. #, no-wrap
  7851. msgid "encrypted disk"
  7852. msgstr ""
  7853. #. type: Plain text
  7854. #: guix-git/doc/guix.texi:2679
  7855. 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)."
  7856. msgstr ""
  7857. #. type: quotation
  7858. #: guix-git/doc/guix.texi:2680 guix-git/doc/guix.texi:5651
  7859. #: guix-git/doc/guix.texi:7081 guix-git/doc/guix.texi:7121
  7860. #: guix-git/doc/guix.texi:13069 guix-git/doc/guix.texi:16740
  7861. #: guix-git/doc/guix.texi:24559 guix-git/doc/guix.texi:24566
  7862. #: guix-git/doc/guix.texi:32284 guix-git/doc/guix.texi:37976
  7863. #, no-wrap
  7864. msgid "Warning"
  7865. msgstr "警告"
  7866. #. type: quotation
  7867. #: guix-git/doc/guix.texi:2687
  7868. 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."
  7869. msgstr ""
  7870. #. type: Plain text
  7871. #: guix-git/doc/guix.texi:2692
  7872. 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:"
  7873. msgstr ""
  7874. #. type: example
  7875. #: guix-git/doc/guix.texi:2697
  7876. #, no-wrap
  7877. msgid ""
  7878. "cryptsetup luksFormat --type luks2 --pbkdf pbkdf2 /dev/sda2\n"
  7879. "cryptsetup open /dev/sda2 my-partition\n"
  7880. "mkfs.ext4 -L my-root /dev/mapper/my-partition\n"
  7881. msgstr ""
  7882. #. type: Plain text
  7883. #: guix-git/doc/guix.texi:2702
  7884. 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):"
  7885. msgstr ""
  7886. #. type: example
  7887. #: guix-git/doc/guix.texi:2705
  7888. #, no-wrap
  7889. msgid "mount LABEL=my-root /mnt\n"
  7890. msgstr ""
  7891. #. type: Plain text
  7892. #: guix-git/doc/guix.texi:2711
  7893. 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."
  7894. msgstr ""
  7895. #. type: Plain text
  7896. #: guix-git/doc/guix.texi:2715
  7897. 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:"
  7898. msgstr ""
  7899. #. type: example
  7900. #: guix-git/doc/guix.texi:2719
  7901. #, no-wrap
  7902. msgid ""
  7903. "mkswap /dev/sda3\n"
  7904. "swapon /dev/sda3\n"
  7905. msgstr ""
  7906. #. type: Plain text
  7907. #: guix-git/doc/guix.texi:2727
  7908. 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}.}:"
  7909. msgstr ""
  7910. #. type: example
  7911. #: guix-git/doc/guix.texi:2735
  7912. #, no-wrap
  7913. msgid ""
  7914. "# This is 10 GiB of swap space. Adjust \"count\" to change the size.\n"
  7915. "dd if=/dev/zero of=/mnt/swapfile bs=1MiB count=10240\n"
  7916. "# For security, make the file readable and writable only by root.\n"
  7917. "chmod 600 /mnt/swapfile\n"
  7918. "mkswap /mnt/swapfile\n"
  7919. "swapon /mnt/swapfile\n"
  7920. msgstr ""
  7921. #. type: Plain text
  7922. #: guix-git/doc/guix.texi:2740
  7923. 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."
  7924. msgstr ""
  7925. #. type: Plain text
  7926. #: guix-git/doc/guix.texi:2746
  7927. msgid "With the target partitions ready and the target root mounted on @file{/mnt}, we're ready to go. First, run:"
  7928. msgstr ""
  7929. #. type: example
  7930. #: guix-git/doc/guix.texi:2749
  7931. #, no-wrap
  7932. msgid "herd start cow-store /mnt\n"
  7933. msgstr ""
  7934. #. type: Plain text
  7935. #: guix-git/doc/guix.texi:2756
  7936. 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."
  7937. msgstr ""
  7938. #. type: Plain text
  7939. #: guix-git/doc/guix.texi:2767
  7940. 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."
  7941. msgstr ""
  7942. #. type: Plain text
  7943. #: guix-git/doc/guix.texi:2774
  7944. 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:"
  7945. msgstr ""
  7946. #. type: example
  7947. #: guix-git/doc/guix.texi:2779
  7948. #, no-wrap
  7949. msgid ""
  7950. "# mkdir /mnt/etc\n"
  7951. "# cp /etc/configuration/desktop.scm /mnt/etc/config.scm\n"
  7952. "# nano /mnt/etc/config.scm\n"
  7953. msgstr ""
  7954. #. type: Plain text
  7955. #: guix-git/doc/guix.texi:2783
  7956. msgid "You should pay attention to what your configuration file contains, and in particular:"
  7957. msgstr ""
  7958. #. type: itemize
  7959. #: guix-git/doc/guix.texi:2795
  7960. 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."
  7961. msgstr ""
  7962. #. type: itemize
  7963. #: guix-git/doc/guix.texi:2801
  7964. 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."
  7965. msgstr ""
  7966. #. type: itemize
  7967. #: guix-git/doc/guix.texi:2805
  7968. msgid "If there are encrypted or RAID partitions, make sure to add a @code{mapped-devices} field to describe them (@pxref{Mapped Devices})."
  7969. msgstr ""
  7970. #. type: Plain text
  7971. #: guix-git/doc/guix.texi:2810
  7972. 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}):"
  7973. msgstr ""
  7974. #. type: example
  7975. #: guix-git/doc/guix.texi:2813
  7976. #, no-wrap
  7977. msgid "guix system init /mnt/etc/config.scm /mnt\n"
  7978. msgstr ""
  7979. #. type: Plain text
  7980. #: guix-git/doc/guix.texi:2820
  7981. 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."
  7982. msgstr ""
  7983. #. type: Plain text
  7984. #: guix-git/doc/guix.texi:2828
  7985. 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!"
  7986. msgstr ""
  7987. #. type: Plain text
  7988. #: guix-git/doc/guix.texi:2835
  7989. msgid "Success, you've now booted into Guix System! From then on, you can update the system whenever you want by running, say:"
  7990. msgstr ""
  7991. #. type: example
  7992. #: guix-git/doc/guix.texi:2839
  7993. #, no-wrap
  7994. msgid ""
  7995. "guix pull\n"
  7996. "sudo guix system reconfigure /etc/config.scm\n"
  7997. msgstr ""
  7998. #. type: Plain text
  7999. #: guix-git/doc/guix.texi:2845
  8000. 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})."
  8001. msgstr ""
  8002. #. type: cindex
  8003. #: guix-git/doc/guix.texi:2848
  8004. #, no-wrap
  8005. msgid "sudo vs. @command{guix pull}"
  8006. msgstr ""
  8007. #. type: quotation
  8008. #: guix-git/doc/guix.texi:2852
  8009. 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{}}."
  8010. msgstr ""
  8011. #. type: quotation
  8012. #: guix-git/doc/guix.texi:2857
  8013. 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."
  8014. msgstr ""
  8015. #. type: Plain text
  8016. #: guix-git/doc/guix.texi:2862
  8017. 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!"
  8018. msgstr ""
  8019. #. type: section
  8020. #: guix-git/doc/guix.texi:2865
  8021. #, no-wrap
  8022. msgid "Installing Guix in a Virtual Machine"
  8023. msgstr ""
  8024. #. type: cindex
  8025. #: guix-git/doc/guix.texi:2867
  8026. #, no-wrap
  8027. msgid "virtual machine, Guix System installation"
  8028. msgstr ""
  8029. #. type: cindex
  8030. #: guix-git/doc/guix.texi:2868
  8031. #, no-wrap
  8032. msgid "virtual private server (VPS)"
  8033. msgstr ""
  8034. #. type: cindex
  8035. #: guix-git/doc/guix.texi:2869
  8036. #, no-wrap
  8037. msgid "VPS (virtual private server)"
  8038. msgstr ""
  8039. #. type: Plain text
  8040. #: guix-git/doc/guix.texi:2873
  8041. 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."
  8042. msgstr ""
  8043. #. type: Plain text
  8044. #: guix-git/doc/guix.texi:2876
  8045. msgid "To boot a @uref{https://qemu.org/,QEMU} VM for installing Guix System in a disk image, follow these steps:"
  8046. msgstr ""
  8047. #. type: enumerate
  8048. #: guix-git/doc/guix.texi:2881
  8049. msgid "First, retrieve and decompress the Guix system installation image as described previously (@pxref{USB Stick and DVD Installation})."
  8050. msgstr ""
  8051. #. type: enumerate
  8052. #: guix-git/doc/guix.texi:2885
  8053. msgid "Create a disk image that will hold the installed system. To make a qcow2-formatted disk image, use the @command{qemu-img} command:"
  8054. msgstr ""
  8055. #. type: example
  8056. #: guix-git/doc/guix.texi:2888
  8057. #, no-wrap
  8058. msgid "qemu-img create -f qcow2 guix-system.img 50G\n"
  8059. msgstr ""
  8060. #. type: enumerate
  8061. #: guix-git/doc/guix.texi:2892
  8062. 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."
  8063. msgstr ""
  8064. #. type: enumerate
  8065. #: guix-git/doc/guix.texi:2895
  8066. msgid "Boot the USB installation image in an VM:"
  8067. msgstr ""
  8068. #. type: example
  8069. #: guix-git/doc/guix.texi:2901
  8070. #, no-wrap
  8071. msgid ""
  8072. "qemu-system-x86_64 -m 1024 -smp 1 -enable-kvm \\\n"
  8073. " -nic user,model=virtio-net-pci -boot menu=on,order=d \\\n"
  8074. " -drive file=guix-system.img \\\n"
  8075. " -drive media=cdrom,file=guix-system-install-@value{VERSION}.@var{system}.iso\n"
  8076. msgstr ""
  8077. #. type: enumerate
  8078. #: guix-git/doc/guix.texi:2905
  8079. msgid "@code{-enable-kvm} is optional, but significantly improves performance, @pxref{Running Guix in a VM}."
  8080. msgstr ""
  8081. #. type: enumerate
  8082. #: guix-git/doc/guix.texi:2909
  8083. msgid "You're now root in the VM, proceed with the installation process. @xref{Preparing for Installation}, and follow the instructions."
  8084. msgstr ""
  8085. #. type: Plain text
  8086. #: guix-git/doc/guix.texi:2914
  8087. 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."
  8088. msgstr ""
  8089. #. type: cindex
  8090. #: guix-git/doc/guix.texi:2918
  8091. #, no-wrap
  8092. msgid "installation image"
  8093. msgstr ""
  8094. #. type: Plain text
  8095. #: guix-git/doc/guix.texi:2921
  8096. msgid "The installation image described above was built using the @command{guix system} command, specifically:"
  8097. msgstr ""
  8098. #. type: example
  8099. #: guix-git/doc/guix.texi:2924
  8100. #, no-wrap
  8101. msgid "guix system image -t iso9660 gnu/system/install.scm\n"
  8102. msgstr ""
  8103. #. type: Plain text
  8104. #: guix-git/doc/guix.texi:2929
  8105. 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."
  8106. msgstr ""
  8107. #. type: section
  8108. #: guix-git/doc/guix.texi:2930
  8109. #, no-wrap
  8110. msgid "Building the Installation Image for ARM Boards"
  8111. msgstr ""
  8112. #. type: Plain text
  8113. #: guix-git/doc/guix.texi:2934
  8114. msgid "Many ARM boards require a specific variant of the @uref{https://www.denx.de/wiki/U-Boot/, U-Boot} bootloader."
  8115. msgstr ""
  8116. #. type: Plain text
  8117. #: guix-git/doc/guix.texi:2938
  8118. 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:"
  8119. msgstr ""
  8120. #. type: example
  8121. #: guix-git/doc/guix.texi:2941
  8122. #, no-wrap
  8123. msgid "guix system image --system=armhf-linux -e '((@@ (gnu system install) os-with-u-boot) (@@ (gnu system install) installation-os) \"A20-OLinuXino-Lime2\")'\n"
  8124. msgstr ""
  8125. #. type: Plain text
  8126. #: guix-git/doc/guix.texi:2945
  8127. 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."
  8128. msgstr ""
  8129. #. type: cindex
  8130. #: guix-git/doc/guix.texi:2947
  8131. #, fuzzy, no-wrap
  8132. #| msgid "Invoking guix system"
  8133. msgid "troubleshooting, guix system"
  8134. msgstr "调用guix system"
  8135. #. type: cindex
  8136. #: guix-git/doc/guix.texi:2948
  8137. #, fuzzy, no-wrap
  8138. #| msgid "guix system describe\n"
  8139. msgid "guix system troubleshooting"
  8140. msgstr "guix system describe\n"
  8141. #. type: Plain text
  8142. #: guix-git/doc/guix.texi:2960
  8143. msgid "Guix System allows rebooting into a previous generation should the last one be malfunctioning, which makes it quite robust against being broken irreversibly. This feature depends on GRUB being correctly functioning though, which means that if for whatever reasons your GRUB installation becomes corrupted during a system reconfiguration, you may not be able to easily boot into a previous generation. A technique that can be used in this case is to @i{chroot} into your broken system and reconfigure it from there. Such technique is explained below."
  8144. msgstr ""
  8145. #. type: cindex
  8146. #: guix-git/doc/guix.texi:2961
  8147. #, fuzzy, no-wrap
  8148. #| msgid "Invoking guix system"
  8149. msgid "chroot, guix system"
  8150. msgstr "调用guix system"
  8151. #. type: cindex
  8152. #: guix-git/doc/guix.texi:2962
  8153. #, fuzzy, no-wrap
  8154. #| msgid "Invoking guix system"
  8155. msgid "chrooting, guix system"
  8156. msgstr "调用guix system"
  8157. #. type: cindex
  8158. #: guix-git/doc/guix.texi:2963
  8159. #, no-wrap
  8160. msgid "repairing GRUB, via chroot"
  8161. msgstr ""
  8162. #. type: Plain text
  8163. #: guix-git/doc/guix.texi:2976
  8164. msgid "This section details how to @i{chroot} to an already installed Guix System with the aim of reconfiguring it, for example to fix a broken GRUB installation. The process is similar to how it would be done on other GNU/Linux systems, but there are some Guix System particularities such as the daemon and profiles that make it worthy of explaining here."
  8165. msgstr ""
  8166. #. type: enumerate
  8167. #: guix-git/doc/guix.texi:2985
  8168. msgid "Obtain a bootable image of Guix System. It is recommended the latest development snapshot so the kernel and the tools used are at least as as new as those of your installed system; it can be retrieved from the @url{https://ci.guix.gnu.org/search/latest/ISO-9660?query=spec:images+status:success+system:x86_64-linux+image.iso, https://ci.guix.gnu.org} URL. Follow the @pxref{USB Stick and DVD Installation} section for copying it to a bootable media."
  8169. msgstr ""
  8170. #. type: enumerate
  8171. #: guix-git/doc/guix.texi:2994
  8172. msgid "Boot the image, and proceed with the graphical text-based installer until your network is configured. Alternatively, you could configure the network manually by following the @ref{manual-installation-networking} section. If you get the error @samp{RTNETLINK answers: Operation not possible due to RF-kill}, try @samp{rfkill list} followed by @samp{rfkill unblock 0}, where @samp{0} is your device identifier (ID)."
  8173. msgstr ""
  8174. #. type: enumerate
  8175. #: guix-git/doc/guix.texi:3000
  8176. msgid "Switch to a virtual console (tty) if you haven't already by pressing simultaneously the @kbd{Control + Alt + F4} keys. Mount your file system at @file{/mnt}. Assuming your root partition is @file{/dev/sda2}, you would do:"
  8177. msgstr ""
  8178. #. type: example
  8179. #: guix-git/doc/guix.texi:3003
  8180. #, no-wrap
  8181. msgid "mount /dev/sda2 /mnt\n"
  8182. msgstr ""
  8183. #. type: enumerate
  8184. #: guix-git/doc/guix.texi:3007
  8185. msgid "Mount special block devices and Linux-specific directories:"
  8186. msgstr ""
  8187. #. type: example
  8188. #: guix-git/doc/guix.texi:3012
  8189. #, no-wrap
  8190. msgid ""
  8191. "mount --rbind /proc /mnt/proc\n"
  8192. "mount --rbind /sys /mnt/sys\n"
  8193. "mount --rbind /dev /mnt/dev\n"
  8194. msgstr ""
  8195. #. type: enumerate
  8196. #: guix-git/doc/guix.texi:3016
  8197. msgid "If your system is EFI-based, you must also mount the ESP partition. Assuming it is @file{/dev/sda1}, you can do so with:"
  8198. msgstr ""
  8199. #. type: example
  8200. #: guix-git/doc/guix.texi:3019
  8201. #, no-wrap
  8202. msgid "mount /dev/sda1 /mnt/boot/efi\n"
  8203. msgstr ""
  8204. #. type: enumerate
  8205. #: guix-git/doc/guix.texi:3023
  8206. msgid "Enter your system via chroot:"
  8207. msgstr ""
  8208. #. type: example
  8209. #: guix-git/doc/guix.texi:3026
  8210. #, no-wrap
  8211. msgid "chroot /mnt /bin/sh\n"
  8212. msgstr ""
  8213. #. type: enumerate
  8214. #: guix-git/doc/guix.texi:3032
  8215. msgid "Source the system profile as well as your @var{user} profile to setup the environment, where @var{user} is the user name used for the Guix System you are attempting to repair:"
  8216. msgstr ""
  8217. #. type: example
  8218. #: guix-git/doc/guix.texi:3036
  8219. #, no-wrap
  8220. msgid ""
  8221. "source /var/guix/profiles/system/profile/etc/profile\n"
  8222. "source /home/@var{user}/.guix-profile/etc/profile\n"
  8223. msgstr ""
  8224. #. type: enumerate
  8225. #: guix-git/doc/guix.texi:3040
  8226. msgid "To ensure you are working with the Guix revision you normally would as your normal user, also source your current Guix profile:"
  8227. msgstr ""
  8228. #. type: example
  8229. #: guix-git/doc/guix.texi:3043
  8230. #, no-wrap
  8231. msgid "source /home/@var{user}/.config/guix/current/etc/profile\n"
  8232. msgstr ""
  8233. #. type: enumerate
  8234. #: guix-git/doc/guix.texi:3047
  8235. msgid "Start a minimal @command{guix-daemon} in the background:"
  8236. msgstr ""
  8237. #. type: example
  8238. #: guix-git/doc/guix.texi:3050
  8239. #, fuzzy, no-wrap
  8240. #| msgid "# guix-daemon --build-users-group=guixbuild\n"
  8241. msgid "guix-daemon --build-users-group=guixbuild --disable-chroot &\n"
  8242. msgstr "# guix-daemon --build-users-group=guixbuild\n"
  8243. #. type: enumerate
  8244. #: guix-git/doc/guix.texi:3054
  8245. msgid "Edit your Guix System configuration if needed, then reconfigure with:"
  8246. msgstr ""
  8247. #. type: example
  8248. #: guix-git/doc/guix.texi:3057
  8249. #, fuzzy, no-wrap
  8250. msgid "guix system reconfigure your-config.scm\n"
  8251. msgstr "guix package --list-available\n"
  8252. #. type: enumerate
  8253. #: guix-git/doc/guix.texi:3061
  8254. msgid "Finally, you should be good to reboot the system to test your fix."
  8255. msgstr ""
  8256. #. type: Plain text
  8257. #: guix-git/doc/guix.texi:3073
  8258. 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."
  8259. msgstr ""
  8260. #. type: Plain text
  8261. #: guix-git/doc/guix.texi:3077
  8262. 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:"
  8263. msgstr ""
  8264. #. type: example
  8265. #: guix-git/doc/guix.texi:3080
  8266. #, no-wrap
  8267. msgid "guix search text editor\n"
  8268. msgstr ""
  8269. #. type: Plain text
  8270. #: guix-git/doc/guix.texi:3087
  8271. 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}!):"
  8272. msgstr ""
  8273. #. type: example
  8274. #: guix-git/doc/guix.texi:3090
  8275. #, fuzzy, no-wrap
  8276. msgid "guix install emacs\n"
  8277. msgstr "guix install emacs-guix\n"
  8278. #. type: cindex
  8279. #: guix-git/doc/guix.texi:3092 guix-git/doc/guix.texi:3404
  8280. #: guix-git/doc/guix.texi:3457
  8281. #, no-wrap
  8282. msgid "profile"
  8283. msgstr ""
  8284. #. type: Plain text
  8285. #: guix-git/doc/guix.texi:3100
  8286. 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)."
  8287. msgstr ""
  8288. #. type: Plain text
  8289. #: guix-git/doc/guix.texi:3103
  8290. msgid "Unless you're using Guix System, the @command{guix install} command must have printed this hint:"
  8291. msgstr ""
  8292. #. type: example
  8293. #: guix-git/doc/guix.texi:3106
  8294. #, no-wrap
  8295. msgid ""
  8296. "hint: Consider setting the necessary environment variables by running:\n"
  8297. "\n"
  8298. msgstr ""
  8299. #. type: example
  8300. #: guix-git/doc/guix.texi:3109
  8301. #, no-wrap
  8302. msgid ""
  8303. " GUIX_PROFILE=\"$HOME/.guix-profile\"\n"
  8304. " . \"$GUIX_PROFILE/etc/profile\"\n"
  8305. "\n"
  8306. msgstr ""
  8307. " GUIX_PROFILE=\"$HOME/.guix-profile\"\n"
  8308. " . \"$GUIX_PROFILE/etc/profile\"\n"
  8309. "\n"
  8310. #. type: example
  8311. #: guix-git/doc/guix.texi:3111
  8312. #, no-wrap
  8313. msgid "Alternately, see `guix package --search-paths -p \"$HOME/.guix-profile\"'.\n"
  8314. msgstr ""
  8315. #. type: Plain text
  8316. #: guix-git/doc/guix.texi:3125
  8317. 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."
  8318. msgstr ""
  8319. #. type: Plain text
  8320. #: guix-git/doc/guix.texi:3128
  8321. msgid "You can go on installing packages at your will. To list installed packages, run:"
  8322. msgstr ""
  8323. #. type: example
  8324. #: guix-git/doc/guix.texi:3131
  8325. #, fuzzy, no-wrap
  8326. msgid "guix package --list-installed\n"
  8327. msgstr "guix package --list-available\n"
  8328. #. type: Plain text
  8329. #: guix-git/doc/guix.texi:3136
  8330. 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:"
  8331. msgstr ""
  8332. #. type: example
  8333. #: guix-git/doc/guix.texi:3139
  8334. #, fuzzy, no-wrap
  8335. msgid "guix package --roll-back\n"
  8336. msgstr "guix package --list-available\n"
  8337. #. type: Plain text
  8338. #: guix-git/doc/guix.texi:3144
  8339. 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:"
  8340. msgstr ""
  8341. #. type: example
  8342. #: guix-git/doc/guix.texi:3147
  8343. #, fuzzy, no-wrap
  8344. msgid "guix package --list-generations\n"
  8345. msgstr "guix package --list-available\n"
  8346. #. type: Plain text
  8347. #: guix-git/doc/guix.texi:3150
  8348. msgid "Now you know the basics of package management!"
  8349. msgstr "现在你知道包管理的基本知识了吧!"
  8350. #. type: quotation
  8351. #: guix-git/doc/guix.texi:3151 guix-git/doc/guix.texi:3210
  8352. #: guix-git/doc/guix.texi:7689
  8353. #, no-wrap
  8354. msgid "Going further"
  8355. msgstr ""
  8356. #. type: quotation
  8357. #: guix-git/doc/guix.texi:3159
  8358. 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."
  8359. msgstr ""
  8360. #. type: Plain text
  8361. #: guix-git/doc/guix.texi:3164
  8362. 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:"
  8363. msgstr ""
  8364. #. type: Plain text
  8365. #: guix-git/doc/guix.texi:3174
  8366. 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}:"
  8367. msgstr ""
  8368. #. type: example
  8369. #: guix-git/doc/guix.texi:3178
  8370. #, no-wrap
  8371. msgid ""
  8372. "GUIX_PROFILE=\"$HOME/.config/guix/current\"\n"
  8373. ". \"$GUIX_PROFILE/etc/profile\"\n"
  8374. msgstr ""
  8375. "GUIX_PROFILE=\"$HOME/.config/guix/current\"\n"
  8376. ". \"$GUIX_PROFILE/etc/profile\"\n"
  8377. #. type: Plain text
  8378. #: guix-git/doc/guix.texi:3182
  8379. msgid "You must also instruct your shell to point to this new @command{guix}:"
  8380. msgstr ""
  8381. #. type: example
  8382. #: guix-git/doc/guix.texi:3185
  8383. #, no-wrap
  8384. msgid "hash guix\n"
  8385. msgstr ""
  8386. #. type: Plain text
  8387. #: guix-git/doc/guix.texi:3189
  8388. 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:"
  8389. msgstr ""
  8390. #. type: example
  8391. #: guix-git/doc/guix.texi:3192
  8392. #, no-wrap
  8393. msgid "guix upgrade\n"
  8394. msgstr ""
  8395. #. type: Plain text
  8396. #: guix-git/doc/guix.texi:3198
  8397. 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!"
  8398. msgstr ""
  8399. #. type: Plain text
  8400. #: guix-git/doc/guix.texi:3201
  8401. msgid "You can display the exact revision of Guix you're currently using by running:"
  8402. msgstr ""
  8403. #. type: example
  8404. #: guix-git/doc/guix.texi:3204
  8405. #, no-wrap
  8406. msgid "guix describe\n"
  8407. msgstr "guix describe\n"
  8408. #. type: Plain text
  8409. #: guix-git/doc/guix.texi:3209
  8410. 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."
  8411. msgstr ""
  8412. #. type: quotation
  8413. #: guix-git/doc/guix.texi:3215
  8414. 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})."
  8415. msgstr ""
  8416. #. type: Plain text
  8417. #: guix-git/doc/guix.texi:3220
  8418. 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:"
  8419. msgstr ""
  8420. #. type: example
  8421. #: guix-git/doc/guix.texi:3223
  8422. #, no-wrap
  8423. msgid "sudo guix system reconfigure /etc/config.scm\n"
  8424. msgstr ""
  8425. #. type: Plain text
  8426. #: guix-git/doc/guix.texi:3232
  8427. 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}:"
  8428. msgstr ""
  8429. #. type: example
  8430. #: guix-git/doc/guix.texi:3235
  8431. #, no-wrap
  8432. msgid "sudo guix system roll-back\n"
  8433. msgstr ""
  8434. #. type: Plain text
  8435. #: guix-git/doc/guix.texi:3242
  8436. 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."
  8437. msgstr ""
  8438. #. type: Plain text
  8439. #: guix-git/doc/guix.texi:3244
  8440. msgid "Now you know enough to get started!"
  8441. msgstr ""
  8442. #. type: quotation
  8443. #: guix-git/doc/guix.texi:3245
  8444. #, no-wrap
  8445. msgid "Resources"
  8446. msgstr ""
  8447. #. type: quotation
  8448. #: guix-git/doc/guix.texi:3248
  8449. msgid "The rest of this manual provides a reference for all things Guix. Here are some additional resources you may find useful:"
  8450. msgstr ""
  8451. #. type: itemize
  8452. #: guix-git/doc/guix.texi:3253
  8453. msgid "@xref{Top,,, guix-cookbook, The GNU Guix Cookbook}, for a list of ``how-to'' style of recipes for a variety of applications."
  8454. msgstr ""
  8455. #. type: itemize
  8456. #: guix-git/doc/guix.texi:3258
  8457. 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."
  8458. msgstr ""
  8459. #. type: itemize
  8460. #: guix-git/doc/guix.texi:3263
  8461. 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."
  8462. msgstr ""
  8463. #. type: itemize
  8464. #: guix-git/doc/guix.texi:3267
  8465. msgid "@xref{Documentation}, to learn how to access documentation on your computer."
  8466. msgstr ""
  8467. #. type: quotation
  8468. #: guix-git/doc/guix.texi:3270
  8469. msgid "We hope you will enjoy Guix as much as the community enjoys building it!"
  8470. msgstr ""
  8471. #. type: Plain text
  8472. #: guix-git/doc/guix.texi:3281
  8473. 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."
  8474. msgstr ""
  8475. #. type: Plain text
  8476. #: guix-git/doc/guix.texi:3289
  8477. 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):"
  8478. msgstr ""
  8479. #. type: example
  8480. #: guix-git/doc/guix.texi:3292
  8481. #, no-wrap
  8482. msgid "guix install emacs-guix\n"
  8483. msgstr "guix install emacs-guix\n"
  8484. #. type: Plain text
  8485. #: guix-git/doc/guix.texi:3313
  8486. 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."
  8487. msgstr ""
  8488. #. type: Plain text
  8489. #: guix-git/doc/guix.texi:3317
  8490. 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."
  8491. msgstr ""
  8492. #. type: Plain text
  8493. #: guix-git/doc/guix.texi:3322
  8494. 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}."
  8495. msgstr ""
  8496. #. type: Plain text
  8497. #: guix-git/doc/guix.texi:3330
  8498. 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."
  8499. msgstr ""
  8500. #. type: Plain text
  8501. #: guix-git/doc/guix.texi:3334
  8502. 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}."
  8503. msgstr ""
  8504. #. type: cindex
  8505. #: guix-git/doc/guix.texi:3335 guix-git/doc/guix.texi:3419
  8506. #, no-wrap
  8507. msgid "transactions"
  8508. msgstr ""
  8509. #. type: Plain text
  8510. #: guix-git/doc/guix.texi:3342
  8511. 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."
  8512. msgstr ""
  8513. #. type: Plain text
  8514. #: guix-git/doc/guix.texi:3350
  8515. 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})."
  8516. msgstr ""
  8517. #. type: Plain text
  8518. #: guix-git/doc/guix.texi:3357
  8519. 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."
  8520. msgstr ""
  8521. #. type: Plain text
  8522. #: guix-git/doc/guix.texi:3370
  8523. 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})."
  8524. msgstr ""
  8525. #. type: Plain text
  8526. #: guix-git/doc/guix.texi:3381
  8527. 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})."
  8528. msgstr ""
  8529. #. type: Plain text
  8530. #: guix-git/doc/guix.texi:3387
  8531. 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})."
  8532. msgstr ""
  8533. #. type: cindex
  8534. #: guix-git/doc/guix.texi:3388
  8535. #, no-wrap
  8536. msgid "replication, of software environments"
  8537. msgstr ""
  8538. #. type: cindex
  8539. #: guix-git/doc/guix.texi:3389
  8540. #, no-wrap
  8541. msgid "provenance tracking, of software artifacts"
  8542. msgstr ""
  8543. #. type: Plain text
  8544. #: guix-git/doc/guix.texi:3396
  8545. 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."
  8546. msgstr ""
  8547. #. type: section
  8548. #: guix-git/doc/guix.texi:3398
  8549. #, no-wrap
  8550. msgid "Invoking @command{guix package}"
  8551. msgstr ""
  8552. #. type: cindex
  8553. #: guix-git/doc/guix.texi:3400
  8554. #, no-wrap
  8555. msgid "installing packages"
  8556. msgstr ""
  8557. #. type: cindex
  8558. #: guix-git/doc/guix.texi:3401
  8559. #, no-wrap
  8560. msgid "removing packages"
  8561. msgstr ""
  8562. #. type: cindex
  8563. #: guix-git/doc/guix.texi:3402
  8564. #, no-wrap
  8565. msgid "package installation"
  8566. msgstr ""
  8567. #. type: cindex
  8568. #: guix-git/doc/guix.texi:3403
  8569. #, no-wrap
  8570. msgid "package removal"
  8571. msgstr ""
  8572. #. type: command{#1}
  8573. #: guix-git/doc/guix.texi:3405
  8574. #, fuzzy, no-wrap
  8575. #| msgid "Invoking guix package"
  8576. msgid "guix package"
  8577. msgstr "调用guix package"
  8578. #. type: Plain text
  8579. #: guix-git/doc/guix.texi:3414
  8580. 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:"
  8581. msgstr ""
  8582. #. type: example
  8583. #: guix-git/doc/guix.texi:3417
  8584. #, no-wrap
  8585. msgid "guix package @var{options}\n"
  8586. msgstr ""
  8587. #. type: Plain text
  8588. #: guix-git/doc/guix.texi:3424
  8589. 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."
  8590. msgstr ""
  8591. #. type: Plain text
  8592. #: guix-git/doc/guix.texi:3427
  8593. msgid "For example, to remove @code{lua} and install @code{guile} and @code{guile-cairo} in a single transaction:"
  8594. msgstr ""
  8595. #. type: example
  8596. #: guix-git/doc/guix.texi:3430
  8597. #, no-wrap
  8598. msgid "guix package -r lua -i guile guile-cairo\n"
  8599. msgstr ""
  8600. #. type: cindex
  8601. #: guix-git/doc/guix.texi:3432
  8602. #, no-wrap
  8603. msgid "aliases, for @command{guix package}"
  8604. msgstr ""
  8605. #. type: Plain text
  8606. #: guix-git/doc/guix.texi:3434
  8607. msgid "For your convenience, we also provide the following aliases:"
  8608. msgstr ""
  8609. #. type: itemize
  8610. #: guix-git/doc/guix.texi:3438
  8611. msgid "@command{guix search} is an alias for @command{guix package -s},"
  8612. msgstr ""
  8613. #. type: itemize
  8614. #: guix-git/doc/guix.texi:3440
  8615. msgid "@command{guix install} is an alias for @command{guix package -i},"
  8616. msgstr ""
  8617. #. type: itemize
  8618. #: guix-git/doc/guix.texi:3442
  8619. msgid "@command{guix remove} is an alias for @command{guix package -r},"
  8620. msgstr ""
  8621. #. type: itemize
  8622. #: guix-git/doc/guix.texi:3444
  8623. msgid "@command{guix upgrade} is an alias for @command{guix package -u},"
  8624. msgstr ""
  8625. #. type: itemize
  8626. #: guix-git/doc/guix.texi:3446
  8627. msgid "and @command{guix show} is an alias for @command{guix package --show=}."
  8628. msgstr ""
  8629. #. type: Plain text
  8630. #: guix-git/doc/guix.texi:3451
  8631. 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."
  8632. msgstr ""
  8633. #. type: Plain text
  8634. #: guix-git/doc/guix.texi:3456
  8635. 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}})."
  8636. msgstr ""
  8637. #. type: Plain text
  8638. #: guix-git/doc/guix.texi:3463
  8639. 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."
  8640. msgstr ""
  8641. #. type: cindex
  8642. #: guix-git/doc/guix.texi:3463 guix-git/doc/guix.texi:3689
  8643. #, no-wrap
  8644. msgid "search paths"
  8645. msgstr ""
  8646. #. type: Plain text
  8647. #: guix-git/doc/guix.texi:3468
  8648. 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:"
  8649. msgstr ""
  8650. #. type: example
  8651. #: guix-git/doc/guix.texi:3472
  8652. #, no-wrap
  8653. msgid ""
  8654. "GUIX_PROFILE=\"$HOME/.guix-profile\" ; \\\n"
  8655. "source \"$GUIX_PROFILE/etc/profile\"\n"
  8656. msgstr ""
  8657. "GUIX_PROFILE=\"$HOME/.guix-profile\" ; \\\n"
  8658. "source \"$GUIX_PROFILE/etc/profile\"\n"
  8659. #. type: Plain text
  8660. #: guix-git/doc/guix.texi:3483
  8661. 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}."
  8662. msgstr ""
  8663. #. type: Plain text
  8664. #: guix-git/doc/guix.texi:3485
  8665. msgid "The @var{options} can be among the following:"
  8666. msgstr ""
  8667. #. type: item
  8668. #: guix-git/doc/guix.texi:3488
  8669. #, no-wrap
  8670. msgid "--install=@var{package} @dots{}"
  8671. msgstr ""
  8672. #. type: itemx
  8673. #: guix-git/doc/guix.texi:3489
  8674. #, no-wrap
  8675. msgid "-i @var{package} @dots{}"
  8676. msgstr ""
  8677. #. type: table
  8678. #: guix-git/doc/guix.texi:3491
  8679. msgid "Install the specified @var{package}s."
  8680. msgstr ""
  8681. #. type: table
  8682. #: guix-git/doc/guix.texi:3496
  8683. msgid "Each @var{package} may specify a simple package name, such as @code{guile}, optionally followed by an at-sign and version number, such as @code{guile@@3.0.7} or simply @code{guile@@3.0}. In the latter case, the newest version prefixed by @code{3.0} is selected."
  8684. msgstr ""
  8685. #. type: table
  8686. #: guix-git/doc/guix.texi:3502
  8687. msgid "If no version number is specified, the newest available version will be selected. In addition, such a @var{package} specification 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})."
  8688. msgstr ""
  8689. #. type: table
  8690. #: guix-git/doc/guix.texi:3506
  8691. msgid "Packages with a corresponding name (and optionally version) are searched for among the GNU distribution modules (@pxref{Package Modules})."
  8692. msgstr ""
  8693. #. type: table
  8694. #: guix-git/doc/guix.texi:3510
  8695. msgid "Alternatively, a @var{package} can directly specify a store file name such as @file{/gnu/store/...-guile-3.0.7}, as produced by, e.g., @code{guix build}."
  8696. msgstr ""
  8697. #. type: cindex
  8698. #: guix-git/doc/guix.texi:3511
  8699. #, no-wrap
  8700. msgid "propagated inputs"
  8701. msgstr ""
  8702. #. type: table
  8703. #: guix-git/doc/guix.texi:3517
  8704. 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)."
  8705. msgstr ""
  8706. #. type: anchor{#1}
  8707. #: guix-git/doc/guix.texi:3524
  8708. msgid "package-cmd-propagated-inputs"
  8709. msgstr ""
  8710. #. type: table
  8711. #: guix-git/doc/guix.texi:3524
  8712. 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."
  8713. msgstr ""
  8714. #. type: table
  8715. #: guix-git/doc/guix.texi:3529
  8716. 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."
  8717. msgstr ""
  8718. #. type: item
  8719. #: guix-git/doc/guix.texi:3530
  8720. #, no-wrap
  8721. msgid "--install-from-expression=@var{exp}"
  8722. msgstr ""
  8723. #. type: itemx
  8724. #: guix-git/doc/guix.texi:3531
  8725. #, no-wrap
  8726. msgid "-e @var{exp}"
  8727. msgstr ""
  8728. #. type: table
  8729. #: guix-git/doc/guix.texi:3533
  8730. msgid "Install the package @var{exp} evaluates to."
  8731. msgstr ""
  8732. #. type: table
  8733. #: guix-git/doc/guix.texi:3538
  8734. 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)}."
  8735. msgstr ""
  8736. #. type: table
  8737. #: guix-git/doc/guix.texi:3542
  8738. 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."
  8739. msgstr ""
  8740. #. type: item
  8741. #: guix-git/doc/guix.texi:3543
  8742. #, no-wrap
  8743. msgid "--install-from-file=@var{file}"
  8744. msgstr ""
  8745. #. type: itemx
  8746. #: guix-git/doc/guix.texi:3544 guix-git/doc/guix.texi:6193
  8747. #: guix-git/doc/guix.texi:13141
  8748. #, no-wrap
  8749. msgid "-f @var{file}"
  8750. msgstr ""
  8751. #. type: table
  8752. #: guix-git/doc/guix.texi:3546
  8753. msgid "Install the package that the code within @var{file} evaluates to."
  8754. msgstr ""
  8755. #. type: table
  8756. #: guix-git/doc/guix.texi:3549 guix-git/doc/guix.texi:6199
  8757. #: guix-git/doc/guix.texi:6724
  8758. msgid "As an example, @var{file} might contain a definition like this (@pxref{Defining Packages}):"
  8759. msgstr ""
  8760. #. type: include
  8761. #: guix-git/doc/guix.texi:3551 guix-git/doc/guix.texi:13149
  8762. #, no-wrap
  8763. msgid "package-hello.scm"
  8764. msgstr ""
  8765. #. type: table
  8766. #: guix-git/doc/guix.texi:3558
  8767. 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})."
  8768. msgstr ""
  8769. #. type: table
  8770. #: guix-git/doc/guix.texi:3563
  8771. 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}:"
  8772. msgstr ""
  8773. #. type: example
  8774. #: guix-git/doc/guix.texi:3566 guix-git/doc/guix.texi:13159
  8775. #, no-wrap
  8776. msgid "@verbatiminclude package-hello.json\n"
  8777. msgstr ""
  8778. #. type: item
  8779. #: guix-git/doc/guix.texi:3568
  8780. #, no-wrap
  8781. msgid "--remove=@var{package} @dots{}"
  8782. msgstr ""
  8783. #. type: itemx
  8784. #: guix-git/doc/guix.texi:3569
  8785. #, no-wrap
  8786. msgid "-r @var{package} @dots{}"
  8787. msgstr ""
  8788. #. type: table
  8789. #: guix-git/doc/guix.texi:3571
  8790. msgid "Remove the specified @var{package}s."
  8791. msgstr ""
  8792. #. type: table
  8793. #: guix-git/doc/guix.texi:3576
  8794. 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}."
  8795. msgstr ""
  8796. #. type: item
  8797. #: guix-git/doc/guix.texi:3577
  8798. #, no-wrap
  8799. msgid "--upgrade[=@var{regexp} @dots{}]"
  8800. msgstr ""
  8801. #. type: itemx
  8802. #: guix-git/doc/guix.texi:3578
  8803. #, no-wrap
  8804. msgid "-u [@var{regexp} @dots{}]"
  8805. msgstr ""
  8806. #. type: cindex
  8807. #: guix-git/doc/guix.texi:3579
  8808. #, no-wrap
  8809. msgid "upgrading packages"
  8810. msgstr ""
  8811. #. type: table
  8812. #: guix-git/doc/guix.texi:3583
  8813. 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."
  8814. msgstr ""
  8815. #. type: table
  8816. #: guix-git/doc/guix.texi:3588
  8817. 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})."
  8818. msgstr ""
  8819. #. type: cindex
  8820. #: guix-git/doc/guix.texi:3589
  8821. #, fuzzy, no-wrap
  8822. msgid "package transformations, upgrades"
  8823. msgstr "软件包变换选项。"
  8824. #. type: table
  8825. #: guix-git/doc/guix.texi:3594
  8826. 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:"
  8827. msgstr ""
  8828. #. type: example
  8829. #: guix-git/doc/guix.texi:3597
  8830. #, no-wrap
  8831. msgid "guix install emacs-next --with-branch=emacs-next=master\n"
  8832. msgstr ""
  8833. #. type: table
  8834. #: guix-git/doc/guix.texi:3602
  8835. 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."
  8836. msgstr ""
  8837. #. type: table
  8838. #: guix-git/doc/guix.texi:3607
  8839. 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:"
  8840. msgstr ""
  8841. #. type: example
  8842. #: guix-git/doc/guix.texi:3610
  8843. #, fuzzy, no-wrap
  8844. msgid "guix install @var{package}\n"
  8845. msgstr "guix install emacs-guix\n"
  8846. #. type: item
  8847. #: guix-git/doc/guix.texi:3612
  8848. #, no-wrap
  8849. msgid "--do-not-upgrade[=@var{regexp} @dots{}]"
  8850. msgstr ""
  8851. #. type: table
  8852. #: guix-git/doc/guix.texi:3617
  8853. 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'':"
  8854. msgstr ""
  8855. #. type: example
  8856. #: guix-git/doc/guix.texi:3620
  8857. #, no-wrap
  8858. msgid "$ guix package --upgrade . --do-not-upgrade emacs\n"
  8859. msgstr ""
  8860. #. type: anchor{#1}
  8861. #: guix-git/doc/guix.texi:3622
  8862. #, no-wrap
  8863. msgid "profile-manifest"
  8864. msgstr ""
  8865. #. type: item
  8866. #: guix-git/doc/guix.texi:3622 guix-git/doc/guix.texi:6212
  8867. #: guix-git/doc/guix.texi:6729 guix-git/doc/guix.texi:7250
  8868. #: guix-git/doc/guix.texi:14375 guix-git/doc/guix.texi:16106
  8869. #, no-wrap
  8870. msgid "--manifest=@var{file}"
  8871. msgstr ""
  8872. #. type: itemx
  8873. #: guix-git/doc/guix.texi:3623 guix-git/doc/guix.texi:6213
  8874. #: guix-git/doc/guix.texi:6730 guix-git/doc/guix.texi:7251
  8875. #: guix-git/doc/guix.texi:14376
  8876. #, no-wrap
  8877. msgid "-m @var{file}"
  8878. msgstr ""
  8879. #. type: cindex
  8880. #: guix-git/doc/guix.texi:3624
  8881. #, no-wrap
  8882. msgid "profile declaration"
  8883. msgstr ""
  8884. #. type: cindex
  8885. #: guix-git/doc/guix.texi:3625
  8886. #, no-wrap
  8887. msgid "profile manifest"
  8888. msgstr ""
  8889. #. type: table
  8890. #: guix-git/doc/guix.texi:3629
  8891. 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."
  8892. msgstr ""
  8893. #. type: table
  8894. #: guix-git/doc/guix.texi:3635
  8895. 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."
  8896. msgstr ""
  8897. #. type: table
  8898. #: guix-git/doc/guix.texi:3638
  8899. msgid "@var{file} must return a @dfn{manifest} object, which is roughly a list of packages:"
  8900. msgstr ""
  8901. #. type: findex
  8902. #: guix-git/doc/guix.texi:3639
  8903. #, no-wrap
  8904. msgid "packages->manifest"
  8905. msgstr ""
  8906. #. type: lisp
  8907. #: guix-git/doc/guix.texi:3642
  8908. #, no-wrap
  8909. msgid ""
  8910. "(use-package-modules guile emacs)\n"
  8911. "\n"
  8912. msgstr ""
  8913. #. type: lisp
  8914. #: guix-git/doc/guix.texi:3648
  8915. #, no-wrap
  8916. msgid ""
  8917. "(packages->manifest\n"
  8918. " (list emacs\n"
  8919. " guile-2.0\n"
  8920. " ;; Use a specific package output.\n"
  8921. " (list guile-2.0 \"debug\")))\n"
  8922. msgstr ""
  8923. #. type: table
  8924. #: guix-git/doc/guix.texi:3653
  8925. msgid "@xref{Writing Manifests}, for information on how to write a manifest. @xref{export-manifest, @option{--export-manifest}}, to learn how to obtain a manifest file from an existing profile."
  8926. msgstr ""
  8927. #. type: item
  8928. #: guix-git/doc/guix.texi:3654 guix-git/doc/guix.texi:4801
  8929. #, no-wrap
  8930. msgid "--roll-back"
  8931. msgstr ""
  8932. #. type: cindex
  8933. #: guix-git/doc/guix.texi:3655 guix-git/doc/guix.texi:4802
  8934. #: guix-git/doc/guix.texi:40055 guix-git/doc/guix.texi:43939
  8935. #, no-wrap
  8936. msgid "rolling back"
  8937. msgstr ""
  8938. #. type: cindex
  8939. #: guix-git/doc/guix.texi:3656 guix-git/doc/guix.texi:4803
  8940. #, no-wrap
  8941. msgid "undoing transactions"
  8942. msgstr ""
  8943. #. type: cindex
  8944. #: guix-git/doc/guix.texi:3657 guix-git/doc/guix.texi:4804
  8945. #, no-wrap
  8946. msgid "transactions, undoing"
  8947. msgstr ""
  8948. #. type: table
  8949. #: guix-git/doc/guix.texi:3660
  8950. msgid "Roll back to the previous @dfn{generation} of the profile---i.e., undo the last transaction."
  8951. msgstr ""
  8952. #. type: table
  8953. #: guix-git/doc/guix.texi:3663
  8954. msgid "When combined with options such as @option{--install}, roll back occurs before any other actions."
  8955. msgstr ""
  8956. #. type: table
  8957. #: guix-git/doc/guix.texi:3667
  8958. 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."
  8959. msgstr ""
  8960. #. type: table
  8961. #: guix-git/doc/guix.texi:3671
  8962. 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."
  8963. msgstr ""
  8964. #. type: item
  8965. #: guix-git/doc/guix.texi:3672 guix-git/doc/guix.texi:4808
  8966. #, no-wrap
  8967. msgid "--switch-generation=@var{pattern}"
  8968. msgstr ""
  8969. #. type: itemx
  8970. #: guix-git/doc/guix.texi:3673 guix-git/doc/guix.texi:4809
  8971. #, no-wrap
  8972. msgid "-S @var{pattern}"
  8973. msgstr ""
  8974. #. type: cindex
  8975. #: guix-git/doc/guix.texi:3674 guix-git/doc/guix.texi:3907
  8976. #: guix-git/doc/guix.texi:4810 guix-git/doc/guix.texi:40013
  8977. #, no-wrap
  8978. msgid "generations"
  8979. msgstr ""
  8980. #. type: table
  8981. #: guix-git/doc/guix.texi:3676 guix-git/doc/guix.texi:4812
  8982. msgid "Switch to a particular generation defined by @var{pattern}."
  8983. msgstr ""
  8984. #. type: table
  8985. #: guix-git/doc/guix.texi:3682 guix-git/doc/guix.texi:4818
  8986. 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}."
  8987. msgstr ""
  8988. #. type: table
  8989. #: guix-git/doc/guix.texi:3687
  8990. 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."
  8991. msgstr ""
  8992. #. type: item
  8993. #: guix-git/doc/guix.texi:3688
  8994. #, no-wrap
  8995. msgid "--search-paths[=@var{kind}]"
  8996. msgstr ""
  8997. #. type: table
  8998. #: guix-git/doc/guix.texi:3694
  8999. 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."
  9000. msgstr ""
  9001. #. type: table
  9002. #: guix-git/doc/guix.texi:3703
  9003. 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.)"
  9004. msgstr ""
  9005. #. type: table
  9006. #: guix-git/doc/guix.texi:3706
  9007. msgid "The typical use case is to define these environment variables in the shell:"
  9008. msgstr ""
  9009. #. type: example
  9010. #: guix-git/doc/guix.texi:3709
  9011. #, fuzzy, no-wrap
  9012. msgid "$ eval $(guix package --search-paths)\n"
  9013. msgstr "guix package --list-available\n"
  9014. #. type: table
  9015. #: guix-git/doc/guix.texi:3715
  9016. 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}."
  9017. msgstr ""
  9018. #. type: table
  9019. #: guix-git/doc/guix.texi:3718
  9020. msgid "This option can also be used to compute the @emph{combined} search paths of several profiles. Consider this example:"
  9021. msgstr ""
  9022. #. type: example
  9023. #: guix-git/doc/guix.texi:3723
  9024. #, no-wrap
  9025. msgid ""
  9026. "$ guix package -p foo -i guile\n"
  9027. "$ guix package -p bar -i guile-json\n"
  9028. "$ guix package -p foo -p bar --search-paths\n"
  9029. msgstr ""
  9030. #. type: table
  9031. #: guix-git/doc/guix.texi:3728
  9032. 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."
  9033. msgstr ""
  9034. #. type: cindex
  9035. #: guix-git/doc/guix.texi:3730
  9036. #, no-wrap
  9037. msgid "profile, choosing"
  9038. msgstr ""
  9039. #. type: item
  9040. #: guix-git/doc/guix.texi:3731 guix-git/doc/guix.texi:4838
  9041. #: guix-git/doc/guix.texi:5193 guix-git/doc/guix.texi:6272
  9042. #: guix-git/doc/guix.texi:6769
  9043. #, no-wrap
  9044. msgid "--profile=@var{profile}"
  9045. msgstr ""
  9046. #. type: itemx
  9047. #: guix-git/doc/guix.texi:3732 guix-git/doc/guix.texi:4839
  9048. #: guix-git/doc/guix.texi:5194 guix-git/doc/guix.texi:6273
  9049. #: guix-git/doc/guix.texi:6770
  9050. #, no-wrap
  9051. msgid "-p @var{profile}"
  9052. msgstr ""
  9053. #. type: table
  9054. #: guix-git/doc/guix.texi:3734
  9055. msgid "Use @var{profile} instead of the user's default profile."
  9056. msgstr ""
  9057. #. type: table
  9058. #: guix-git/doc/guix.texi:3739
  9059. 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:"
  9060. msgstr ""
  9061. #. type: example
  9062. #: guix-git/doc/guix.texi:3745
  9063. #, no-wrap
  9064. msgid ""
  9065. "$ guix install hello -p ~/code/my-profile\n"
  9066. "@dots{}\n"
  9067. "$ ~/code/my-profile/bin/hello\n"
  9068. "Hello, world!\n"
  9069. msgstr ""
  9070. #. type: table
  9071. #: guix-git/doc/guix.texi:3749
  9072. msgid "All it takes to get rid of the profile is to remove this symlink and its siblings that point to specific generations:"
  9073. msgstr ""
  9074. #. type: example
  9075. #: guix-git/doc/guix.texi:3752
  9076. #, no-wrap
  9077. msgid "$ rm ~/code/my-profile ~/code/my-profile-*-link\n"
  9078. msgstr ""
  9079. #. type: item
  9080. #: guix-git/doc/guix.texi:3754
  9081. #, no-wrap
  9082. msgid "--list-profiles"
  9083. msgstr ""
  9084. #. type: table
  9085. #: guix-git/doc/guix.texi:3756
  9086. msgid "List all the user's profiles:"
  9087. msgstr ""
  9088. #. type: example
  9089. #: guix-git/doc/guix.texi:3763
  9090. #, no-wrap
  9091. msgid ""
  9092. "$ guix package --list-profiles\n"
  9093. "/home/charlie/.guix-profile\n"
  9094. "/home/charlie/code/my-profile\n"
  9095. "/home/charlie/code/devel-profile\n"
  9096. "/home/charlie/tmp/test\n"
  9097. msgstr ""
  9098. #. type: table
  9099. #: guix-git/doc/guix.texi:3766
  9100. msgid "When running as root, list all the profiles of all the users."
  9101. msgstr ""
  9102. #. type: cindex
  9103. #: guix-git/doc/guix.texi:3767
  9104. #, no-wrap
  9105. msgid "collisions, in a profile"
  9106. msgstr ""
  9107. #. type: cindex
  9108. #: guix-git/doc/guix.texi:3768
  9109. #, no-wrap
  9110. msgid "colliding packages in profiles"
  9111. msgstr ""
  9112. #. type: cindex
  9113. #: guix-git/doc/guix.texi:3769
  9114. #, no-wrap
  9115. msgid "profile collisions"
  9116. msgstr ""
  9117. #. type: item
  9118. #: guix-git/doc/guix.texi:3770
  9119. #, no-wrap
  9120. msgid "--allow-collisions"
  9121. msgstr ""
  9122. #. type: table
  9123. #: guix-git/doc/guix.texi:3772
  9124. msgid "Allow colliding packages in the new profile. Use at your own risk!"
  9125. msgstr ""
  9126. #. type: table
  9127. #: guix-git/doc/guix.texi:3776
  9128. 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."
  9129. msgstr ""
  9130. #. type: item
  9131. #: guix-git/doc/guix.texi:3777 guix-git/doc/guix.texi:4881
  9132. #: guix-git/doc/guix.texi:7342
  9133. #, no-wrap
  9134. msgid "--bootstrap"
  9135. msgstr ""
  9136. #. type: table
  9137. #: guix-git/doc/guix.texi:3780
  9138. msgid "Use the bootstrap Guile to build the profile. This option is only useful to distribution developers."
  9139. msgstr ""
  9140. #. type: Plain text
  9141. #: guix-git/doc/guix.texi:3786
  9142. 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:"
  9143. msgstr ""
  9144. #. type: item
  9145. #: guix-git/doc/guix.texi:3789
  9146. #, no-wrap
  9147. msgid "--search=@var{regexp}"
  9148. msgstr ""
  9149. #. type: itemx
  9150. #: guix-git/doc/guix.texi:3790
  9151. #, no-wrap
  9152. msgid "-s @var{regexp}"
  9153. msgstr ""
  9154. #. type: anchor{#1}
  9155. #: guix-git/doc/guix.texi:3792
  9156. msgid "guix-search"
  9157. msgstr ""
  9158. #. type: cindex
  9159. #: guix-git/doc/guix.texi:3792
  9160. #, no-wrap
  9161. msgid "searching for packages"
  9162. msgstr ""
  9163. #. type: table
  9164. #: guix-git/doc/guix.texi:3798
  9165. 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})."
  9166. msgstr ""
  9167. #. type: table
  9168. #: guix-git/doc/guix.texi:3801
  9169. msgid "This allows specific fields to be extracted using the @command{recsel} command, for instance:"
  9170. msgstr ""
  9171. #. type: example
  9172. #: guix-git/doc/guix.texi:3807
  9173. #, no-wrap
  9174. msgid ""
  9175. "$ guix package -s malloc | recsel -p name,version,relevance\n"
  9176. "name: jemalloc\n"
  9177. "version: 4.5.0\n"
  9178. "relevance: 6\n"
  9179. "\n"
  9180. msgstr ""
  9181. #. type: example
  9182. #: guix-git/doc/guix.texi:3811
  9183. #, no-wrap
  9184. msgid ""
  9185. "name: glibc\n"
  9186. "version: 2.25\n"
  9187. "relevance: 1\n"
  9188. "\n"
  9189. msgstr ""
  9190. #. type: example
  9191. #: guix-git/doc/guix.texi:3815
  9192. #, no-wrap
  9193. msgid ""
  9194. "name: libgc\n"
  9195. "version: 7.6.0\n"
  9196. "relevance: 1\n"
  9197. msgstr ""
  9198. #. type: table
  9199. #: guix-git/doc/guix.texi:3819
  9200. msgid "Similarly, to show the name of all the packages available under the terms of the GNU@tie{}LGPL version 3:"
  9201. msgstr ""
  9202. #. type: example
  9203. #: guix-git/doc/guix.texi:3823
  9204. #, no-wrap
  9205. msgid ""
  9206. "$ guix package -s \"\" | recsel -p name -e 'license ~ \"LGPL 3\"'\n"
  9207. "name: elfutils\n"
  9208. "\n"
  9209. msgstr ""
  9210. #. type: example
  9211. #: guix-git/doc/guix.texi:3826
  9212. #, no-wrap
  9213. msgid ""
  9214. "name: gmp\n"
  9215. "@dots{}\n"
  9216. msgstr ""
  9217. #. type: table
  9218. #: guix-git/doc/guix.texi:3832
  9219. 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):"
  9220. msgstr ""
  9221. #. type: example
  9222. #: guix-git/doc/guix.texi:3837
  9223. #, no-wrap
  9224. msgid ""
  9225. "$ guix search '\\<board\\>' game | recsel -p name\n"
  9226. "name: gnubg\n"
  9227. "@dots{}\n"
  9228. msgstr ""
  9229. #. type: table
  9230. #: guix-git/doc/guix.texi:3843
  9231. 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."
  9232. msgstr ""
  9233. #. type: table
  9234. #: guix-git/doc/guix.texi:3847
  9235. 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:"
  9236. msgstr ""
  9237. #. type: example
  9238. #: guix-git/doc/guix.texi:3851
  9239. #, no-wrap
  9240. msgid ""
  9241. "$ guix search crypto library | \\\n"
  9242. " recsel -e '! (name ~ \"^(ghc|perl|python|ruby)\")' -p name,synopsis\n"
  9243. msgstr ""
  9244. #. type: table
  9245. #: guix-git/doc/guix.texi:3856
  9246. msgid "@xref{Selection Expressions,,, recutils, GNU recutils manual}, for more information on @dfn{selection expressions} for @code{recsel -e}."
  9247. msgstr ""
  9248. #. type: item
  9249. #: guix-git/doc/guix.texi:3857
  9250. #, no-wrap
  9251. msgid "--show=@var{package}"
  9252. msgstr ""
  9253. #. type: table
  9254. #: guix-git/doc/guix.texi:3861
  9255. 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})."
  9256. msgstr ""
  9257. #. type: example
  9258. #: guix-git/doc/guix.texi:3866
  9259. #, no-wrap
  9260. msgid ""
  9261. "$ guix package --show=guile | recsel -p name,version\n"
  9262. "name: guile\n"
  9263. "version: 3.0.5\n"
  9264. "\n"
  9265. msgstr ""
  9266. #. type: example
  9267. #: guix-git/doc/guix.texi:3869
  9268. #, no-wrap
  9269. msgid ""
  9270. "name: guile\n"
  9271. "version: 3.0.2\n"
  9272. "\n"
  9273. msgstr ""
  9274. #. type: example
  9275. #: guix-git/doc/guix.texi:3873
  9276. #, no-wrap
  9277. msgid ""
  9278. "name: guile\n"
  9279. "version: 2.2.7\n"
  9280. "@dots{}\n"
  9281. msgstr ""
  9282. #. type: table
  9283. #: guix-git/doc/guix.texi:3877
  9284. 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):"
  9285. msgstr ""
  9286. #. type: example
  9287. #: guix-git/doc/guix.texi:3881
  9288. #, no-wrap
  9289. msgid ""
  9290. "$ guix show guile@@3.0.5 | recsel -p name,version\n"
  9291. "name: guile\n"
  9292. "version: 3.0.5\n"
  9293. msgstr ""
  9294. #. type: item
  9295. #: guix-git/doc/guix.texi:3883
  9296. #, no-wrap
  9297. msgid "--list-installed[=@var{regexp}]"
  9298. msgstr ""
  9299. #. type: itemx
  9300. #: guix-git/doc/guix.texi:3884
  9301. #, no-wrap
  9302. msgid "-I [@var{regexp}]"
  9303. msgstr ""
  9304. #. type: table
  9305. #: guix-git/doc/guix.texi:3888
  9306. 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}."
  9307. msgstr ""
  9308. #. type: table
  9309. #: guix-git/doc/guix.texi:3894
  9310. 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."
  9311. msgstr ""
  9312. #. type: item
  9313. #: guix-git/doc/guix.texi:3895
  9314. #, no-wrap
  9315. msgid "--list-available[=@var{regexp}]"
  9316. msgstr ""
  9317. #. type: itemx
  9318. #: guix-git/doc/guix.texi:3896
  9319. #, no-wrap
  9320. msgid "-A [@var{regexp}]"
  9321. msgstr ""
  9322. #. type: table
  9323. #: guix-git/doc/guix.texi:3900
  9324. 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}."
  9325. msgstr ""
  9326. #. type: table
  9327. #: guix-git/doc/guix.texi:3904
  9328. 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."
  9329. msgstr ""
  9330. #. type: item
  9331. #: guix-git/doc/guix.texi:3905 guix-git/doc/guix.texi:4784
  9332. #, no-wrap
  9333. msgid "--list-generations[=@var{pattern}]"
  9334. msgstr ""
  9335. #. type: itemx
  9336. #: guix-git/doc/guix.texi:3906 guix-git/doc/guix.texi:4785
  9337. #, no-wrap
  9338. msgid "-l [@var{pattern}]"
  9339. msgstr ""
  9340. #. type: table
  9341. #: guix-git/doc/guix.texi:3912
  9342. 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."
  9343. msgstr ""
  9344. #. type: table
  9345. #: guix-git/doc/guix.texi:3917
  9346. 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."
  9347. msgstr ""
  9348. #. type: table
  9349. #: guix-git/doc/guix.texi:3920
  9350. msgid "When @var{pattern} is used, the command returns only matching generations. Valid patterns include:"
  9351. msgstr ""
  9352. #. type: item
  9353. #: guix-git/doc/guix.texi:3922
  9354. #, no-wrap
  9355. msgid "@emph{Integers and comma-separated integers}. Both patterns denote"
  9356. msgstr ""
  9357. #. type: itemize
  9358. #: guix-git/doc/guix.texi:3925
  9359. msgid "generation numbers. For instance, @option{--list-generations=1} returns the first one."
  9360. msgstr ""
  9361. #. type: itemize
  9362. #: guix-git/doc/guix.texi:3928
  9363. msgid "And @option{--list-generations=1,8,2} outputs three generations in the specified order. Neither spaces nor trailing commas are allowed."
  9364. msgstr ""
  9365. #. type: item
  9366. #: guix-git/doc/guix.texi:3929
  9367. #, no-wrap
  9368. msgid "@emph{Ranges}. @option{--list-generations=2..9} prints the"
  9369. msgstr ""
  9370. #. type: itemize
  9371. #: guix-git/doc/guix.texi:3932
  9372. msgid "specified generations and everything in between. Note that the start of a range must be smaller than its end."
  9373. msgstr ""
  9374. #. type: itemize
  9375. #: guix-git/doc/guix.texi:3936
  9376. msgid "It is also possible to omit the endpoint. For example, @option{--list-generations=2..}, returns all generations starting from the second one."
  9377. msgstr ""
  9378. #. type: item
  9379. #: guix-git/doc/guix.texi:3937
  9380. #, no-wrap
  9381. msgid "@emph{Durations}. You can also get the last @emph{N}@tie{}days, weeks,"
  9382. msgstr ""
  9383. #. type: itemize
  9384. #: guix-git/doc/guix.texi:3941
  9385. 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."
  9386. msgstr ""
  9387. #. type: item
  9388. #: guix-git/doc/guix.texi:3943 guix-git/doc/guix.texi:4819
  9389. #, no-wrap
  9390. msgid "--delete-generations[=@var{pattern}]"
  9391. msgstr ""
  9392. #. type: itemx
  9393. #: guix-git/doc/guix.texi:3944 guix-git/doc/guix.texi:4820
  9394. #, no-wrap
  9395. msgid "-d [@var{pattern}]"
  9396. msgstr ""
  9397. #. type: table
  9398. #: guix-git/doc/guix.texi:3947 guix-git/doc/guix.texi:4823
  9399. msgid "When @var{pattern} is omitted, delete all generations except the current one."
  9400. msgstr ""
  9401. #. type: table
  9402. #: guix-git/doc/guix.texi:3953 guix-git/doc/guix.texi:4829
  9403. 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."
  9404. msgstr ""
  9405. #. type: table
  9406. #: guix-git/doc/guix.texi:3956
  9407. msgid "If the current generation matches, it is @emph{not} deleted. Also, the zeroth generation is never deleted."
  9408. msgstr ""
  9409. #. type: table
  9410. #: guix-git/doc/guix.texi:3959 guix-git/doc/guix.texi:4834
  9411. msgid "Note that deleting generations prevents rolling back to them. Consequently, this command must be used with care."
  9412. msgstr ""
  9413. #. type: cindex
  9414. #: guix-git/doc/guix.texi:3960 guix-git/doc/guix.texi:6225
  9415. #, no-wrap
  9416. msgid "manifest, exporting"
  9417. msgstr ""
  9418. #. type: anchor{#1}
  9419. #: guix-git/doc/guix.texi:3962
  9420. msgid "export-manifest"
  9421. msgstr ""
  9422. #. type: item
  9423. #: guix-git/doc/guix.texi:3962 guix-git/doc/guix.texi:6227
  9424. #, no-wrap
  9425. msgid "--export-manifest"
  9426. msgstr ""
  9427. #. type: table
  9428. #: guix-git/doc/guix.texi:3965
  9429. msgid "Write to standard output a manifest suitable for @option{--manifest} corresponding to the chosen profile(s)."
  9430. msgstr ""
  9431. #. type: table
  9432. #: guix-git/doc/guix.texi:3969
  9433. 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."
  9434. msgstr ""
  9435. #. type: table
  9436. #: guix-git/doc/guix.texi:3974
  9437. 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."
  9438. msgstr ""
  9439. #. type: table
  9440. #: guix-git/doc/guix.texi:3979
  9441. 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."
  9442. msgstr ""
  9443. #. type: cindex
  9444. #: guix-git/doc/guix.texi:3980
  9445. #, fuzzy, no-wrap
  9446. msgid "pinning, channel revisions of a profile"
  9447. msgstr "和其它版本的Guix交互。"
  9448. #. type: item
  9449. #: guix-git/doc/guix.texi:3981
  9450. #, no-wrap
  9451. msgid "--export-channels"
  9452. msgstr ""
  9453. #. type: table
  9454. #: guix-git/doc/guix.texi:3985
  9455. 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})."
  9456. msgstr ""
  9457. #. type: table
  9458. #: guix-git/doc/guix.texi:3989
  9459. msgid "Together with @option{--export-manifest}, this option provides information allowing you to replicate the current profile (@pxref{Replicating Guix})."
  9460. msgstr ""
  9461. #. type: table
  9462. #: guix-git/doc/guix.texi:3997
  9463. 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})."
  9464. msgstr ""
  9465. #. type: table
  9466. #: guix-git/doc/guix.texi:4002
  9467. 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."
  9468. msgstr ""
  9469. #. type: Plain text
  9470. #: guix-git/doc/guix.texi:4009
  9471. 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})."
  9472. msgstr ""
  9473. #. type: cindex
  9474. #: guix-git/doc/guix.texi:4014
  9475. #, no-wrap
  9476. msgid "pre-built binaries"
  9477. msgstr ""
  9478. #. type: Plain text
  9479. #: guix-git/doc/guix.texi:4020
  9480. 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."
  9481. msgstr ""
  9482. #. type: Plain text
  9483. #: guix-git/doc/guix.texi:4025
  9484. 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."
  9485. msgstr ""
  9486. #. type: cindex
  9487. #: guix-git/doc/guix.texi:4039
  9488. #, no-wrap
  9489. msgid "build farm"
  9490. msgstr ""
  9491. #. type: Plain text
  9492. #: guix-git/doc/guix.texi:4050
  9493. 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})."
  9494. msgstr ""
  9495. #. type: Plain text
  9496. #: guix-git/doc/guix.texi:4056
  9497. 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."
  9498. msgstr ""
  9499. #. type: Plain text
  9500. #: guix-git/doc/guix.texi:4065
  9501. 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."
  9502. msgstr ""
  9503. #. type: cindex
  9504. #: guix-git/doc/guix.texi:4069
  9505. #, no-wrap
  9506. msgid "security"
  9507. msgstr ""
  9508. #. type: cindex
  9509. #: guix-git/doc/guix.texi:4071
  9510. #, no-wrap
  9511. msgid "access control list (ACL), for substitutes"
  9512. msgstr ""
  9513. #. type: cindex
  9514. #: guix-git/doc/guix.texi:4072
  9515. #, no-wrap
  9516. msgid "ACL (access control list), for substitutes"
  9517. msgstr ""
  9518. #. type: Plain text
  9519. #: guix-git/doc/guix.texi:4078
  9520. 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."
  9521. msgstr ""
  9522. #. type: quotation
  9523. #: guix-git/doc/guix.texi:4083
  9524. 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."
  9525. msgstr ""
  9526. #. type: Plain text
  9527. #: guix-git/doc/guix.texi:4091
  9528. 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:"
  9529. msgstr ""
  9530. #. type: example
  9531. #: guix-git/doc/guix.texi:4095
  9532. #, no-wrap
  9533. msgid ""
  9534. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-1}.pub\n"
  9535. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-2}.pub\n"
  9536. msgstr ""
  9537. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-1}.pub\n"
  9538. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-2}.pub\n"
  9539. #. type: Plain text
  9540. #: guix-git/doc/guix.texi:4099
  9541. msgid "Once this is in place, the output of a command like @code{guix build} should change from something like:"
  9542. msgstr ""
  9543. #. type: example
  9544. #: guix-git/doc/guix.texi:4108
  9545. #, no-wrap
  9546. msgid ""
  9547. "$ guix build emacs --dry-run\n"
  9548. "The following derivations would be built:\n"
  9549. " /gnu/store/yr7bnx8xwcayd6j95r2clmkdl1qh688w-emacs-24.3.drv\n"
  9550. " /gnu/store/x8qsh1hlhgjx6cwsjyvybnfv2i37z23w-dbus-1.6.4.tar.gz.drv\n"
  9551. " /gnu/store/1ixwp12fl950d15h2cj11c73733jay0z-alsa-lib-1.0.27.1.tar.bz2.drv\n"
  9552. " /gnu/store/nlma1pw0p603fpfiqy7kn4zm105r5dmw-util-linux-2.21.drv\n"
  9553. "@dots{}\n"
  9554. msgstr ""
  9555. #. type: Plain text
  9556. #: guix-git/doc/guix.texi:4112
  9557. msgid "to something like:"
  9558. msgstr ""
  9559. #. type: example
  9560. #: guix-git/doc/guix.texi:4121
  9561. #, no-wrap
  9562. msgid ""
  9563. "$ guix build emacs --dry-run\n"
  9564. "112.3 MB would be downloaded:\n"
  9565. " /gnu/store/pk3n22lbq6ydamyymqkkz7i69wiwjiwi-emacs-24.3\n"
  9566. " /gnu/store/2ygn4ncnhrpr61rssa6z0d9x22si0va3-libjpeg-8d\n"
  9567. " /gnu/store/71yz6lgx4dazma9dwn2mcjxaah9w77jq-cairo-1.12.16\n"
  9568. " /gnu/store/7zdhgp0n1518lvfn8mb96sxqfmvqrl7v-libxrender-0.9.7\n"
  9569. "@dots{}\n"
  9570. msgstr ""
  9571. #. type: Plain text
  9572. #: guix-git/doc/guix.texi:4128
  9573. 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."
  9574. msgstr ""
  9575. #. type: cindex
  9576. #: guix-git/doc/guix.texi:4129
  9577. #, no-wrap
  9578. msgid "substitutes, how to disable"
  9579. msgstr ""
  9580. #. type: Plain text
  9581. #: guix-git/doc/guix.texi:4135
  9582. 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."
  9583. msgstr ""
  9584. #. type: cindex
  9585. #: guix-git/doc/guix.texi:4139
  9586. #, fuzzy, no-wrap
  9587. msgid "substitute servers, adding more"
  9588. msgstr "授权substitute服务器。"
  9589. #. type: Plain text
  9590. #: guix-git/doc/guix.texi:4146
  9591. 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."
  9592. msgstr ""
  9593. #. type: Plain text
  9594. #: guix-git/doc/guix.texi:4151
  9595. 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."
  9596. msgstr ""
  9597. #. type: Plain text
  9598. #: guix-git/doc/guix.texi:4158
  9599. 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}})."
  9600. msgstr ""
  9601. #. type: Plain text
  9602. #: guix-git/doc/guix.texi:4164
  9603. 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:"
  9604. msgstr ""
  9605. #. type: lisp
  9606. #: guix-git/doc/guix.texi:4181
  9607. #, no-wrap
  9608. msgid ""
  9609. "(operating-system\n"
  9610. " ;; @dots{}\n"
  9611. " (services\n"
  9612. " ;; Assume we're starting from '%desktop-services'. Replace it\n"
  9613. " ;; with the list of services you're actually using.\n"
  9614. " (modify-services %desktop-services\n"
  9615. " (guix-service-type config =>\n"
  9616. " (guix-configuration\n"
  9617. " (inherit config)\n"
  9618. " (substitute-urls\n"
  9619. " (append (list \"https://guix.example.org\")\n"
  9620. " %default-substitute-urls))\n"
  9621. " (authorized-keys\n"
  9622. " (append (list (local-file \"./key.pub\"))\n"
  9623. " %default-authorized-guix-keys)))))))\n"
  9624. msgstr ""
  9625. #. type: Plain text
  9626. #: guix-git/doc/guix.texi:4188
  9627. 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:"
  9628. msgstr ""
  9629. #. type: example
  9630. #: guix-git/doc/guix.texi:4192
  9631. #, no-wrap
  9632. msgid ""
  9633. "$ sudo guix system reconfigure /etc/config.scm\n"
  9634. "$ sudo herd restart guix-daemon\n"
  9635. msgstr ""
  9636. #. type: Plain text
  9637. #: guix-git/doc/guix.texi:4196
  9638. msgid "If you're running Guix on a ``foreign distro'', you would instead take the following steps to get substitutes from additional servers:"
  9639. msgstr ""
  9640. #. type: enumerate
  9641. #: guix-git/doc/guix.texi:4205
  9642. 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}}):"
  9643. msgstr ""
  9644. #. type: example
  9645. #: guix-git/doc/guix.texi:4208
  9646. #, no-wrap
  9647. msgid "@dots{} --substitute-urls='https://guix.example.org @value{SUBSTITUTE-URLS}'\n"
  9648. msgstr ""
  9649. #. type: enumerate
  9650. #: guix-git/doc/guix.texi:4212
  9651. msgid "Restart the daemon. For systemd, it goes like this:"
  9652. msgstr ""
  9653. #. type: example
  9654. #: guix-git/doc/guix.texi:4216
  9655. #, no-wrap
  9656. msgid ""
  9657. "systemctl daemon-reload\n"
  9658. "systemctl restart guix-daemon.service\n"
  9659. msgstr ""
  9660. #. type: enumerate
  9661. #: guix-git/doc/guix.texi:4220
  9662. msgid "Authorize the key of the new server (@pxref{Invoking guix archive}):"
  9663. msgstr ""
  9664. #. type: example
  9665. #: guix-git/doc/guix.texi:4223
  9666. #, fuzzy, no-wrap
  9667. msgid "guix archive --authorize < key.pub\n"
  9668. msgstr "# guix archive --authorize < master-public-key.txt\n"
  9669. #. type: enumerate
  9670. #: guix-git/doc/guix.texi:4227
  9671. msgid "Again this assumes @file{key.pub} contains the public key that @code{guix.example.org} uses to sign substitutes."
  9672. msgstr ""
  9673. #. type: Plain text
  9674. #: guix-git/doc/guix.texi:4236
  9675. 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."
  9676. msgstr ""
  9677. #. type: Plain text
  9678. #: guix-git/doc/guix.texi:4240
  9679. 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."
  9680. msgstr ""
  9681. #. type: cindex
  9682. #: guix-git/doc/guix.texi:4244
  9683. #, no-wrap
  9684. msgid "digital signatures"
  9685. msgstr ""
  9686. #. type: Plain text
  9687. #: guix-git/doc/guix.texi:4248
  9688. 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."
  9689. msgstr ""
  9690. #. type: Plain text
  9691. #: guix-git/doc/guix.texi:4254
  9692. 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:"
  9693. msgstr ""
  9694. #. type: example
  9695. #: guix-git/doc/guix.texi:4257
  9696. #, no-wrap
  9697. msgid "--substitute-urls=\"https://a.example.org https://b.example.org\"\n"
  9698. msgstr ""
  9699. #. type: Plain text
  9700. #: guix-git/doc/guix.texi:4268
  9701. 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)."
  9702. msgstr ""
  9703. #. type: Plain text
  9704. #: guix-git/doc/guix.texi:4275
  9705. 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)."
  9706. msgstr ""
  9707. #. type: Plain text
  9708. #: guix-git/doc/guix.texi:4287
  9709. 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}."
  9710. msgstr ""
  9711. #. type: Plain text
  9712. #: guix-git/doc/guix.texi:4296
  9713. 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."
  9714. msgstr ""
  9715. #. type: Plain text
  9716. #: guix-git/doc/guix.texi:4310
  9717. 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."
  9718. msgstr ""
  9719. #. type: Plain text
  9720. #: guix-git/doc/guix.texi:4315
  9721. 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."
  9722. msgstr ""
  9723. #. type: cindex
  9724. #: guix-git/doc/guix.texi:4319
  9725. #, no-wrap
  9726. msgid "trust, of pre-built binaries"
  9727. msgstr ""
  9728. #. type: Plain text
  9729. #: guix-git/doc/guix.texi:4329
  9730. 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})."
  9731. msgstr ""
  9732. #. type: Plain text
  9733. #: guix-git/doc/guix.texi:4341
  9734. 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}})."
  9735. msgstr ""
  9736. #. type: Plain text
  9737. #: guix-git/doc/guix.texi:4345
  9738. 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}."
  9739. msgstr ""
  9740. #. type: cindex
  9741. #: guix-git/doc/guix.texi:4349
  9742. #, no-wrap
  9743. msgid "multiple-output packages"
  9744. msgstr ""
  9745. #. type: cindex
  9746. #: guix-git/doc/guix.texi:4350
  9747. #, no-wrap
  9748. msgid "package outputs"
  9749. msgstr ""
  9750. #. type: cindex
  9751. #: guix-git/doc/guix.texi:4351
  9752. #, no-wrap
  9753. msgid "outputs"
  9754. msgstr ""
  9755. #. type: Plain text
  9756. #: guix-git/doc/guix.texi:4361
  9757. 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."
  9758. msgstr ""
  9759. #. type: Plain text
  9760. #: guix-git/doc/guix.texi:4369
  9761. 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:"
  9762. msgstr ""
  9763. #. type: example
  9764. #: guix-git/doc/guix.texi:4372
  9765. #, no-wrap
  9766. msgid "guix install glib\n"
  9767. msgstr "guix install glib\n"
  9768. #. type: Plain text
  9769. #: guix-git/doc/guix.texi:4376
  9770. msgid "The command to install its documentation is:"
  9771. msgstr ""
  9772. #. type: example
  9773. #: guix-git/doc/guix.texi:4379
  9774. #, no-wrap
  9775. msgid "guix install glib:doc\n"
  9776. msgstr ""
  9777. #. type: Plain text
  9778. #: guix-git/doc/guix.texi:4388
  9779. msgid "While the colon syntax works for command-line specification of package outputs, it will not work when using a package @emph{variable} in Scheme code. For example, to add the documentation of @code{glib} to the globally installed packages of an @code{operating-system} (see @ref{operating-system Reference}), a list of two items, the first one being the package @emph{variable} and the second one the name of the output to select (a string), must be used instead:"
  9780. msgstr ""
  9781. #. type: lisp
  9782. #: guix-git/doc/guix.texi:4398
  9783. #, no-wrap
  9784. msgid ""
  9785. "(use-modules (gnu packages glib))\n"
  9786. ";; glib-with-documentation is the Guile symbol for the glib package\n"
  9787. "(operating-system\n"
  9788. " ...\n"
  9789. " (packages\n"
  9790. " (append\n"
  9791. " (list (list glib-with-documentation \"doc\"))\n"
  9792. " %base-packages)))\n"
  9793. msgstr ""
  9794. #. type: Plain text
  9795. #: guix-git/doc/guix.texi:4409
  9796. 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})."
  9797. msgstr ""
  9798. #. type: Plain text
  9799. #: guix-git/doc/guix.texi:4417
  9800. 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})."
  9801. msgstr ""
  9802. #. type: section
  9803. #: guix-git/doc/guix.texi:4420
  9804. #, no-wrap
  9805. msgid "Invoking @command{guix gc}"
  9806. msgstr ""
  9807. #. type: cindex
  9808. #: guix-git/doc/guix.texi:4422
  9809. #, no-wrap
  9810. msgid "garbage collector"
  9811. msgstr ""
  9812. #. type: cindex
  9813. #: guix-git/doc/guix.texi:4423
  9814. #, no-wrap
  9815. msgid "disk space"
  9816. msgstr ""
  9817. #. type: command{#1}
  9818. #: guix-git/doc/guix.texi:4424
  9819. #, fuzzy, no-wrap
  9820. #| msgid "Invoking guix gc"
  9821. msgid "guix gc"
  9822. msgstr "调用guix gc"
  9823. #. type: Plain text
  9824. #: guix-git/doc/guix.texi:4430
  9825. 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!"
  9826. msgstr ""
  9827. #. type: Plain text
  9828. #: guix-git/doc/guix.texi:4441
  9829. 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."
  9830. msgstr ""
  9831. #. type: Plain text
  9832. #: guix-git/doc/guix.texi:4447
  9833. 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})."
  9834. msgstr ""
  9835. #. type: Plain text
  9836. #: guix-git/doc/guix.texi:4451
  9837. 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:"
  9838. msgstr ""
  9839. #. type: example
  9840. #: guix-git/doc/guix.texi:4454
  9841. #, no-wrap
  9842. msgid "guix gc -F 5G\n"
  9843. msgstr ""
  9844. #. type: Plain text
  9845. #: guix-git/doc/guix.texi:4463
  9846. 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."
  9847. msgstr ""
  9848. #. type: Plain text
  9849. #: guix-git/doc/guix.texi:4469
  9850. 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:"
  9851. msgstr ""
  9852. #. type: item
  9853. #: guix-git/doc/guix.texi:4471
  9854. #, no-wrap
  9855. msgid "--collect-garbage[=@var{min}]"
  9856. msgstr ""
  9857. #. type: itemx
  9858. #: guix-git/doc/guix.texi:4472
  9859. #, no-wrap
  9860. msgid "-C [@var{min}]"
  9861. msgstr ""
  9862. #. type: table
  9863. #: guix-git/doc/guix.texi:4476
  9864. msgid "Collect garbage---i.e., unreachable @file{/gnu/store} files and sub-directories. This is the default operation when no option is specified."
  9865. msgstr ""
  9866. #. type: table
  9867. #: guix-git/doc/guix.texi:4481
  9868. 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})."
  9869. msgstr ""
  9870. #. type: table
  9871. #: guix-git/doc/guix.texi:4483
  9872. msgid "When @var{min} is omitted, collect all the garbage."
  9873. msgstr ""
  9874. #. type: item
  9875. #: guix-git/doc/guix.texi:4484
  9876. #, no-wrap
  9877. msgid "--free-space=@var{free}"
  9878. msgstr ""
  9879. #. type: itemx
  9880. #: guix-git/doc/guix.texi:4485
  9881. #, no-wrap
  9882. msgid "-F @var{free}"
  9883. msgstr ""
  9884. #. type: table
  9885. #: guix-git/doc/guix.texi:4489
  9886. 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."
  9887. msgstr ""
  9888. #. type: table
  9889. #: guix-git/doc/guix.texi:4492
  9890. msgid "When @var{free} or more is already available in @file{/gnu/store}, do nothing and exit immediately."
  9891. msgstr ""
  9892. #. type: item
  9893. #: guix-git/doc/guix.texi:4493
  9894. #, no-wrap
  9895. msgid "--delete-generations[=@var{duration}]"
  9896. msgstr ""
  9897. #. type: itemx
  9898. #: guix-git/doc/guix.texi:4494
  9899. #, no-wrap
  9900. msgid "-d [@var{duration}]"
  9901. msgstr ""
  9902. #. type: table
  9903. #: guix-git/doc/guix.texi:4499
  9904. msgid "Before starting the garbage collection process, delete all the generations older than @var{duration}, for all the user profiles and home environment generations; when run as root, this applies to all the profiles @emph{of all the users}."
  9905. msgstr ""
  9906. #. type: table
  9907. #: guix-git/doc/guix.texi:4503
  9908. 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:"
  9909. msgstr ""
  9910. #. type: example
  9911. #: guix-git/doc/guix.texi:4506
  9912. #, no-wrap
  9913. msgid "guix gc -d 2m -F 10G\n"
  9914. msgstr ""
  9915. #. type: item
  9916. #: guix-git/doc/guix.texi:4508
  9917. #, no-wrap
  9918. msgid "--delete"
  9919. msgstr ""
  9920. #. type: itemx
  9921. #: guix-git/doc/guix.texi:4509 guix-git/doc/guix.texi:6148
  9922. #, no-wrap
  9923. msgid "-D"
  9924. msgstr ""
  9925. #. type: table
  9926. #: guix-git/doc/guix.texi:4513
  9927. 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."
  9928. msgstr ""
  9929. #. type: item
  9930. #: guix-git/doc/guix.texi:4514
  9931. #, no-wrap
  9932. msgid "--list-failures"
  9933. msgstr ""
  9934. #. type: table
  9935. #: guix-git/doc/guix.texi:4516
  9936. msgid "List store items corresponding to cached build failures."
  9937. msgstr ""
  9938. #. type: table
  9939. #: guix-git/doc/guix.texi:4520
  9940. msgid "This prints nothing unless the daemon was started with @option{--cache-failures} (@pxref{Invoking guix-daemon, @option{--cache-failures}})."
  9941. msgstr ""
  9942. #. type: item
  9943. #: guix-git/doc/guix.texi:4521
  9944. #, no-wrap
  9945. msgid "--list-roots"
  9946. msgstr ""
  9947. #. type: table
  9948. #: guix-git/doc/guix.texi:4524
  9949. msgid "List the GC roots owned by the user; when run as root, list @emph{all} the GC roots."
  9950. msgstr ""
  9951. #. type: item
  9952. #: guix-git/doc/guix.texi:4525
  9953. #, no-wrap
  9954. msgid "--list-busy"
  9955. msgstr ""
  9956. #. type: table
  9957. #: guix-git/doc/guix.texi:4528
  9958. msgid "List store items in use by currently running processes. These store items are effectively considered GC roots: they cannot be deleted."
  9959. msgstr ""
  9960. #. type: item
  9961. #: guix-git/doc/guix.texi:4529
  9962. #, no-wrap
  9963. msgid "--clear-failures"
  9964. msgstr ""
  9965. #. type: table
  9966. #: guix-git/doc/guix.texi:4531
  9967. msgid "Remove the specified store items from the failed-build cache."
  9968. msgstr ""
  9969. #. type: table
  9970. #: guix-git/doc/guix.texi:4534
  9971. msgid "Again, this option only makes sense when the daemon is started with @option{--cache-failures}. Otherwise, it does nothing."
  9972. msgstr ""
  9973. #. type: item
  9974. #: guix-git/doc/guix.texi:4535
  9975. #, no-wrap
  9976. msgid "--list-dead"
  9977. msgstr ""
  9978. #. type: table
  9979. #: guix-git/doc/guix.texi:4538
  9980. 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."
  9981. msgstr ""
  9982. #. type: item
  9983. #: guix-git/doc/guix.texi:4539
  9984. #, no-wrap
  9985. msgid "--list-live"
  9986. msgstr ""
  9987. #. type: table
  9988. #: guix-git/doc/guix.texi:4541
  9989. msgid "Show the list of live store files and directories."
  9990. msgstr ""
  9991. #. type: Plain text
  9992. #: guix-git/doc/guix.texi:4545
  9993. msgid "In addition, the references among existing store files can be queried:"
  9994. msgstr ""
  9995. #. type: item
  9996. #: guix-git/doc/guix.texi:4548
  9997. #, no-wrap
  9998. msgid "--references"
  9999. msgstr ""
  10000. #. type: itemx
  10001. #: guix-git/doc/guix.texi:4549
  10002. #, no-wrap
  10003. msgid "--referrers"
  10004. msgstr ""
  10005. #. type: cindex
  10006. #: guix-git/doc/guix.texi:4550 guix-git/doc/guix.texi:15163
  10007. #, no-wrap
  10008. msgid "package dependencies"
  10009. msgstr ""
  10010. #. type: table
  10011. #: guix-git/doc/guix.texi:4553
  10012. msgid "List the references (respectively, the referrers) of store files given as arguments."
  10013. msgstr ""
  10014. #. type: item
  10015. #: guix-git/doc/guix.texi:4554
  10016. #, no-wrap
  10017. msgid "--requisites"
  10018. msgstr ""
  10019. #. type: itemx
  10020. #: guix-git/doc/guix.texi:4555 guix-git/doc/guix.texi:7135
  10021. #, no-wrap
  10022. msgid "-R"
  10023. msgstr ""
  10024. #. type: item
  10025. #: guix-git/doc/guix.texi:4556 guix-git/doc/guix.texi:15019
  10026. #: guix-git/doc/guix.texi:15047 guix-git/doc/guix.texi:15128
  10027. #, no-wrap
  10028. msgid "closure"
  10029. msgstr ""
  10030. #. type: table
  10031. #: guix-git/doc/guix.texi:4561
  10032. 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."
  10033. msgstr ""
  10034. #. type: table
  10035. #: guix-git/doc/guix.texi:4565
  10036. 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."
  10037. msgstr ""
  10038. #. type: item
  10039. #: guix-git/doc/guix.texi:4566
  10040. #, no-wrap
  10041. msgid "--derivers"
  10042. msgstr ""
  10043. #. type: item
  10044. #: guix-git/doc/guix.texi:4567 guix-git/doc/guix.texi:7458
  10045. #: guix-git/doc/guix.texi:14865 guix-git/doc/guix.texi:15272
  10046. #, no-wrap
  10047. msgid "derivation"
  10048. msgstr ""
  10049. #. type: table
  10050. #: guix-git/doc/guix.texi:4570
  10051. msgid "Return the derivation(s) leading to the given store items (@pxref{Derivations})."
  10052. msgstr ""
  10053. #. type: table
  10054. #: guix-git/doc/guix.texi:4572
  10055. msgid "For example, this command:"
  10056. msgstr ""
  10057. #. type: example
  10058. #: guix-git/doc/guix.texi:4575
  10059. #, no-wrap
  10060. msgid "guix gc --derivers $(guix package -I ^emacs$ | cut -f4)\n"
  10061. msgstr ""
  10062. #. type: table
  10063. #: guix-git/doc/guix.texi:4580
  10064. msgid "returns the @file{.drv} file(s) leading to the @code{emacs} package installed in your profile."
  10065. msgstr ""
  10066. #. type: table
  10067. #: guix-git/doc/guix.texi:4584
  10068. 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."
  10069. msgstr ""
  10070. #. type: Plain text
  10071. #: guix-git/doc/guix.texi:4588
  10072. msgid "Lastly, the following options allow you to check the integrity of the store and to control disk usage."
  10073. msgstr ""
  10074. #. type: item
  10075. #: guix-git/doc/guix.texi:4591
  10076. #, no-wrap
  10077. msgid "--verify[=@var{options}]"
  10078. msgstr ""
  10079. #. type: cindex
  10080. #: guix-git/doc/guix.texi:4592
  10081. #, no-wrap
  10082. msgid "integrity, of the store"
  10083. msgstr ""
  10084. #. type: cindex
  10085. #: guix-git/doc/guix.texi:4593
  10086. #, no-wrap
  10087. msgid "integrity checking"
  10088. msgstr ""
  10089. #. type: table
  10090. #: guix-git/doc/guix.texi:4595
  10091. msgid "Verify the integrity of the store."
  10092. msgstr ""
  10093. #. type: table
  10094. #: guix-git/doc/guix.texi:4598
  10095. 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}."
  10096. msgstr ""
  10097. #. type: table
  10098. #: guix-git/doc/guix.texi:4601
  10099. msgid "When provided, @var{options} must be a comma-separated list containing one or more of @code{contents} and @code{repair}."
  10100. msgstr ""
  10101. #. type: table
  10102. #: guix-git/doc/guix.texi:4607
  10103. 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."
  10104. msgstr ""
  10105. #. type: cindex
  10106. #: guix-git/doc/guix.texi:4608
  10107. #, no-wrap
  10108. msgid "repairing the store"
  10109. msgstr ""
  10110. #. type: cindex
  10111. #: guix-git/doc/guix.texi:4609 guix-git/doc/guix.texi:13317
  10112. #, no-wrap
  10113. msgid "corruption, recovering from"
  10114. msgstr ""
  10115. #. type: table
  10116. #: guix-git/doc/guix.texi:4617
  10117. 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})."
  10118. msgstr ""
  10119. #. type: item
  10120. #: guix-git/doc/guix.texi:4618
  10121. #, no-wrap
  10122. msgid "--optimize"
  10123. msgstr ""
  10124. #. type: table
  10125. #: guix-git/doc/guix.texi:4622
  10126. msgid "Optimize the store by hard-linking identical files---this is @dfn{deduplication}."
  10127. msgstr ""
  10128. #. type: table
  10129. #: guix-git/doc/guix.texi:4628
  10130. 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}."
  10131. msgstr ""
  10132. #. type: item
  10133. #: guix-git/doc/guix.texi:4629
  10134. #, no-wrap
  10135. msgid "--vacuum-database"
  10136. msgstr ""
  10137. #. type: cindex
  10138. #: guix-git/doc/guix.texi:4630
  10139. #, no-wrap
  10140. msgid "vacuum the store database"
  10141. msgstr ""
  10142. #. type: table
  10143. #: guix-git/doc/guix.texi:4640
  10144. msgid "Guix uses an sqlite database to keep track of the items in (@pxref{The Store}). Over time it is possible that the database may grow to a large size and become fragmented. As a result, one may wish to clear the freed space and join the partially used pages in the database left behind from removed packages or after running the garbage collector. Running @command{sudo guix gc --vacuum-database} will lock the database and @code{VACUUM} the store, defragmenting the database and purging freed pages, unlocking the database when it finishes."
  10145. msgstr ""
  10146. #. type: section
  10147. #: guix-git/doc/guix.texi:4644
  10148. #, no-wrap
  10149. msgid "Invoking @command{guix pull}"
  10150. msgstr ""
  10151. #. type: cindex
  10152. #: guix-git/doc/guix.texi:4646
  10153. #, no-wrap
  10154. msgid "upgrading Guix"
  10155. msgstr ""
  10156. #. type: cindex
  10157. #: guix-git/doc/guix.texi:4647
  10158. #, no-wrap
  10159. msgid "updating Guix"
  10160. msgstr ""
  10161. #. type: command{#1}
  10162. #: guix-git/doc/guix.texi:4648
  10163. #, no-wrap
  10164. msgid "guix pull"
  10165. msgstr ""
  10166. #. type: cindex
  10167. #: guix-git/doc/guix.texi:4649
  10168. #, no-wrap
  10169. msgid "pull"
  10170. msgstr ""
  10171. #. type: cindex
  10172. #: guix-git/doc/guix.texi:4650
  10173. #, fuzzy, no-wrap
  10174. msgid "security, @command{guix pull}"
  10175. msgstr "调用@command{guix build}"
  10176. #. type: cindex
  10177. #: guix-git/doc/guix.texi:4651
  10178. #, no-wrap
  10179. msgid "authenticity, of code obtained with @command{guix pull}"
  10180. msgstr ""
  10181. #. type: Plain text
  10182. #: guix-git/doc/guix.texi:4661
  10183. 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/book/en/, 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."
  10184. msgstr ""
  10185. #. type: Plain text
  10186. #: guix-git/doc/guix.texi:4664
  10187. msgid "Specifically, @command{guix pull} downloads code from the @dfn{channels} (@pxref{Channels}) specified by one of the followings, in this order:"
  10188. msgstr ""
  10189. #. type: enumerate
  10190. #: guix-git/doc/guix.texi:4668
  10191. msgid "the @option{--channels} option;"
  10192. msgstr ""
  10193. #. type: enumerate
  10194. #: guix-git/doc/guix.texi:4670
  10195. msgid "the user's @file{~/.config/guix/channels.scm} file;"
  10196. msgstr ""
  10197. #. type: enumerate
  10198. #: guix-git/doc/guix.texi:4672
  10199. msgid "the system-wide @file{/etc/guix/channels.scm} file;"
  10200. msgstr ""
  10201. #. type: enumerate
  10202. #: guix-git/doc/guix.texi:4675
  10203. msgid "the built-in default channels specified in the @code{%default-channels} variable."
  10204. msgstr ""
  10205. #. type: Plain text
  10206. #: guix-git/doc/guix.texi:4682
  10207. 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."
  10208. msgstr ""
  10209. #. type: Plain text
  10210. #: guix-git/doc/guix.texi:4688
  10211. 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."
  10212. msgstr ""
  10213. #. type: Plain text
  10214. #: guix-git/doc/guix.texi:4694
  10215. 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}):"
  10216. msgstr ""
  10217. #. type: example
  10218. #: guix-git/doc/guix.texi:4698
  10219. #, no-wrap
  10220. msgid ""
  10221. "export PATH=\"$HOME/.config/guix/current/bin:$PATH\"\n"
  10222. "export INFOPATH=\"$HOME/.config/guix/current/share/info:$INFOPATH\"\n"
  10223. msgstr ""
  10224. #. type: Plain text
  10225. #: guix-git/doc/guix.texi:4702
  10226. msgid "The @option{--list-generations} or @option{-l} option lists past generations produced by @command{guix pull}, along with details about their provenance:"
  10227. msgstr ""
  10228. #. type: example
  10229. #: guix-git/doc/guix.texi:4710
  10230. #, no-wrap
  10231. msgid ""
  10232. "$ guix pull -l\n"
  10233. "Generation 1\tJun 10 2018 00:18:18\n"
  10234. " guix 65956ad\n"
  10235. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  10236. " branch: origin/master\n"
  10237. " commit: 65956ad3526ba09e1f7a40722c96c6ef7c0936fe\n"
  10238. "\n"
  10239. msgstr ""
  10240. #. type: example
  10241. #: guix-git/doc/guix.texi:4716
  10242. #, no-wrap
  10243. msgid ""
  10244. "Generation 2\tJun 11 2018 11:02:49\n"
  10245. " guix e0cc7f6\n"
  10246. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  10247. " branch: origin/master\n"
  10248. " commit: e0cc7f669bec22c37481dd03a7941c7d11a64f1d\n"
  10249. "\n"
  10250. msgstr ""
  10251. #. type: example
  10252. #: guix-git/doc/guix.texi:4722
  10253. #, no-wrap
  10254. msgid ""
  10255. "Generation 3\tJun 13 2018 23:31:07\t(current)\n"
  10256. " guix 844cc1c\n"
  10257. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  10258. " branch: origin/master\n"
  10259. " commit: 844cc1c8f394f03b404c5bb3aee086922373490c\n"
  10260. msgstr ""
  10261. #. type: Plain text
  10262. #: guix-git/doc/guix.texi:4726
  10263. msgid "@xref{Invoking guix describe, @command{guix describe}}, for other ways to describe the current status of Guix."
  10264. msgstr ""
  10265. #. type: Plain text
  10266. #: guix-git/doc/guix.texi:4731
  10267. 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:"
  10268. msgstr ""
  10269. #. type: example
  10270. #: guix-git/doc/guix.texi:4737
  10271. #, no-wrap
  10272. msgid ""
  10273. "$ guix pull --roll-back\n"
  10274. "switched from generation 3 to 2\n"
  10275. "$ guix pull --delete-generations=1\n"
  10276. "deleting /var/guix/profiles/per-user/charlie/current-guix-1-link\n"
  10277. msgstr ""
  10278. #. type: Plain text
  10279. #: guix-git/doc/guix.texi:4741
  10280. msgid "You can also use @command{guix package} (@pxref{Invoking guix package}) to manage the profile by naming it explicitly:"
  10281. msgstr ""
  10282. #. type: example
  10283. #: guix-git/doc/guix.texi:4746
  10284. #, no-wrap
  10285. msgid ""
  10286. "$ guix package -p ~/.config/guix/current --roll-back\n"
  10287. "switched from generation 3 to 2\n"
  10288. "$ guix package -p ~/.config/guix/current --delete-generations=1\n"
  10289. "deleting /var/guix/profiles/per-user/charlie/current-guix-1-link\n"
  10290. msgstr ""
  10291. #. type: Plain text
  10292. #: guix-git/doc/guix.texi:4750
  10293. msgid "The @command{guix pull} command is usually invoked with no arguments, but it supports the following options:"
  10294. msgstr ""
  10295. #. type: item
  10296. #: guix-git/doc/guix.texi:4752 guix-git/doc/guix.texi:4948
  10297. #, no-wrap
  10298. msgid "--url=@var{url}"
  10299. msgstr ""
  10300. #. type: itemx
  10301. #: guix-git/doc/guix.texi:4753 guix-git/doc/guix.texi:4949
  10302. #, no-wrap
  10303. msgid "--commit=@var{commit}"
  10304. msgstr ""
  10305. #. type: itemx
  10306. #: guix-git/doc/guix.texi:4754 guix-git/doc/guix.texi:4950
  10307. #, no-wrap
  10308. msgid "--branch=@var{branch}"
  10309. msgstr ""
  10310. #. type: table
  10311. #: guix-git/doc/guix.texi:4758
  10312. 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 the name of a tag), or @var{branch}."
  10313. msgstr ""
  10314. #. type: cindex
  10315. #: guix-git/doc/guix.texi:4759 guix-git/doc/guix.texi:5394
  10316. #, no-wrap
  10317. msgid "@file{channels.scm}, configuration file"
  10318. msgstr ""
  10319. #. type: cindex
  10320. #: guix-git/doc/guix.texi:4760 guix-git/doc/guix.texi:5395
  10321. #, no-wrap
  10322. msgid "configuration file for channels"
  10323. msgstr ""
  10324. #. type: table
  10325. #: guix-git/doc/guix.texi:4764
  10326. 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)."
  10327. msgstr ""
  10328. #. type: item
  10329. #: guix-git/doc/guix.texi:4765 guix-git/doc/guix.texi:4955
  10330. #, no-wrap
  10331. msgid "--channels=@var{file}"
  10332. msgstr ""
  10333. #. type: itemx
  10334. #: guix-git/doc/guix.texi:4766 guix-git/doc/guix.texi:4956
  10335. #, no-wrap
  10336. msgid "-C @var{file}"
  10337. msgstr ""
  10338. #. type: table
  10339. #: guix-git/doc/guix.texi:4772
  10340. 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."
  10341. msgstr ""
  10342. #. type: cindex
  10343. #: guix-git/doc/guix.texi:4773
  10344. #, fuzzy, no-wrap
  10345. msgid "channel news"
  10346. msgstr "通道"
  10347. #. type: item
  10348. #: guix-git/doc/guix.texi:4774
  10349. #, no-wrap
  10350. msgid "--news"
  10351. msgstr ""
  10352. #. type: itemx
  10353. #: guix-git/doc/guix.texi:4775 guix-git/doc/guix.texi:6322
  10354. #: guix-git/doc/guix.texi:6819 guix-git/doc/guix.texi:40367
  10355. #: guix-git/doc/guix.texi:43817
  10356. #, no-wrap
  10357. msgid "-N"
  10358. msgstr ""
  10359. #. type: table
  10360. #: guix-git/doc/guix.texi:4780
  10361. 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."
  10362. msgstr ""
  10363. #. type: table
  10364. #: guix-git/doc/guix.texi:4783
  10365. msgid "You can view that information for previous generations with @command{guix pull -l}."
  10366. msgstr ""
  10367. #. type: table
  10368. #: guix-git/doc/guix.texi:4790
  10369. 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})."
  10370. msgstr ""
  10371. #. type: table
  10372. #: guix-git/doc/guix.texi:4795
  10373. 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."
  10374. msgstr ""
  10375. #. type: item
  10376. #: guix-git/doc/guix.texi:4796
  10377. #, no-wrap
  10378. msgid "--details"
  10379. msgstr ""
  10380. #. type: table
  10381. #: guix-git/doc/guix.texi:4800
  10382. msgid "Instruct @option{--list-generations} or @option{--news} to display more information about the differences between subsequent generations---see above."
  10383. msgstr ""
  10384. #. type: table
  10385. #: guix-git/doc/guix.texi:4807
  10386. msgid "Roll back to the previous @dfn{generation} of @file{~/.config/guix/current}---i.e., undo the last transaction."
  10387. msgstr ""
  10388. #. type: table
  10389. #: guix-git/doc/guix.texi:4831
  10390. msgid "If the current generation matches, it is @emph{not} deleted."
  10391. msgstr ""
  10392. #. type: table
  10393. #: guix-git/doc/guix.texi:4837
  10394. msgid "@xref{Invoking guix describe}, for a way to display information about the current generation only."
  10395. msgstr ""
  10396. #. type: table
  10397. #: guix-git/doc/guix.texi:4841
  10398. msgid "Use @var{profile} instead of @file{~/.config/guix/current}."
  10399. msgstr ""
  10400. #. type: item
  10401. #: guix-git/doc/guix.texi:4842 guix-git/doc/guix.texi:12586
  10402. #: guix-git/doc/guix.texi:14703
  10403. #, no-wrap
  10404. msgid "--dry-run"
  10405. msgstr ""
  10406. #. type: itemx
  10407. #: guix-git/doc/guix.texi:4843 guix-git/doc/guix.texi:12587
  10408. #: guix-git/doc/guix.texi:14704 guix-git/doc/guix.texi:15001
  10409. #, no-wrap
  10410. msgid "-n"
  10411. msgstr ""
  10412. #. type: table
  10413. #: guix-git/doc/guix.texi:4846
  10414. msgid "Show which channel commit(s) would be used and what would be built or substituted but do not actually do it."
  10415. msgstr ""
  10416. #. type: item
  10417. #: guix-git/doc/guix.texi:4847 guix-git/doc/guix.texi:40386
  10418. #: guix-git/doc/guix.texi:44064
  10419. #, no-wrap
  10420. msgid "--allow-downgrades"
  10421. msgstr ""
  10422. #. type: table
  10423. #: guix-git/doc/guix.texi:4850
  10424. msgid "Allow pulling older or unrelated revisions of channels than those currently in use."
  10425. msgstr ""
  10426. #. type: cindex
  10427. #: guix-git/doc/guix.texi:4851
  10428. #, no-wrap
  10429. msgid "downgrade attacks, protection against"
  10430. msgstr ""
  10431. #. type: table
  10432. #: guix-git/doc/guix.texi:4856
  10433. 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."
  10434. msgstr ""
  10435. #. type: quotation
  10436. #: guix-git/doc/guix.texi:4860 guix-git/doc/guix.texi:40400
  10437. msgid "Make sure you understand its security implications before using @option{--allow-downgrades}."
  10438. msgstr ""
  10439. #. type: item
  10440. #: guix-git/doc/guix.texi:4862
  10441. #, fuzzy, no-wrap
  10442. msgid "--disable-authentication"
  10443. msgstr "--disable-deduplication"
  10444. #. type: table
  10445. #: guix-git/doc/guix.texi:4864
  10446. msgid "Allow pulling channel code without authenticating it."
  10447. msgstr ""
  10448. #. type: cindex
  10449. #: guix-git/doc/guix.texi:4865 guix-git/doc/guix.texi:5574
  10450. #, fuzzy, no-wrap
  10451. msgid "authentication, of channel code"
  10452. msgstr "代码缩进"
  10453. #. type: table
  10454. #: guix-git/doc/guix.texi:4870
  10455. 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."
  10456. msgstr ""
  10457. #. type: quotation
  10458. #: guix-git/doc/guix.texi:4874
  10459. msgid "Make sure you understand its security implications before using @option{--disable-authentication}."
  10460. msgstr ""
  10461. #. type: itemx
  10462. #: guix-git/doc/guix.texi:4877 guix-git/doc/guix.texi:6305
  10463. #: guix-git/doc/guix.texi:6802 guix-git/doc/guix.texi:7270
  10464. #: guix-git/doc/guix.texi:13251 guix-git/doc/guix.texi:15146
  10465. #: guix-git/doc/guix.texi:15411 guix-git/doc/guix.texi:16101
  10466. #: guix-git/doc/guix.texi:40310
  10467. #, no-wrap
  10468. msgid "-s @var{system}"
  10469. msgstr ""
  10470. #. type: table
  10471. #: guix-git/doc/guix.texi:4880 guix-git/doc/guix.texi:7273
  10472. msgid "Attempt to build for @var{system}---e.g., @code{i686-linux}---instead of the system type of the build host."
  10473. msgstr ""
  10474. #. type: table
  10475. #: guix-git/doc/guix.texi:4884
  10476. msgid "Use the bootstrap Guile to build the latest Guix. This option is only useful to Guix developers."
  10477. msgstr ""
  10478. #. type: Plain text
  10479. #: guix-git/doc/guix.texi:4890
  10480. 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."
  10481. msgstr ""
  10482. #. type: Plain text
  10483. #: guix-git/doc/guix.texi:4893
  10484. msgid "In addition, @command{guix pull} supports all the common build options (@pxref{Common Build Options})."
  10485. msgstr ""
  10486. #. type: section
  10487. #: guix-git/doc/guix.texi:4895
  10488. #, fuzzy, no-wrap
  10489. msgid "Invoking @command{guix time-machine}"
  10490. msgstr "调用@command{guix-daemon}"
  10491. #. type: command{#1}
  10492. #: guix-git/doc/guix.texi:4897
  10493. #, no-wrap
  10494. msgid "guix time-machine"
  10495. msgstr ""
  10496. #. type: cindex
  10497. #: guix-git/doc/guix.texi:4898 guix-git/doc/guix.texi:5513
  10498. #, no-wrap
  10499. msgid "pinning, channels"
  10500. msgstr ""
  10501. #. type: cindex
  10502. #: guix-git/doc/guix.texi:4899 guix-git/doc/guix.texi:5106
  10503. #: guix-git/doc/guix.texi:5514
  10504. #, no-wrap
  10505. msgid "replicating Guix"
  10506. msgstr ""
  10507. #. type: cindex
  10508. #: guix-git/doc/guix.texi:4900 guix-git/doc/guix.texi:5515
  10509. #, no-wrap
  10510. msgid "reproducibility, of Guix"
  10511. msgstr ""
  10512. #. type: Plain text
  10513. #: guix-git/doc/guix.texi:4908
  10514. 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})."
  10515. msgstr ""
  10516. #. type: Plain text
  10517. #: guix-git/doc/guix.texi:4912
  10518. msgid "Let's assume that you want to travel to those days of November 2020 when version 1.2.0 of Guix was released and, once you're there, run the @command{guile} of that time:"
  10519. msgstr ""
  10520. #. type: example
  10521. #: guix-git/doc/guix.texi:4916
  10522. #, no-wrap
  10523. msgid ""
  10524. "guix time-machine --commit=v1.2.0 -- \\\n"
  10525. " environment -C --ad-hoc guile -- guile\n"
  10526. msgstr ""
  10527. #. type: Plain text
  10528. #: guix-git/doc/guix.texi:4927
  10529. msgid "The command above fetches Guix@tie{}1.2.0 and runs its @command{guix environment} command to spawn an environment in a container running @command{guile} (@command{guix environment} has since been subsumed by @command{guix shell}; @pxref{Invoking guix shell}). It's like driving a DeLorean@footnote{If you don't know what a DeLorean is, consider traveling back to the 1980's.}! The first @command{guix time-machine} invocation can be expensive: it may have to download or even build a large number of packages; the result is cached though and subsequent commands targeting the same commit are almost instantaneous."
  10530. msgstr ""
  10531. #. type: quotation
  10532. #: guix-git/doc/guix.texi:4935
  10533. msgid "The history of Guix is immutable and @command{guix time-machine} provides the exact same software as they are in a specific Guix revision. Naturally, no security fixes are provided for old versions of Guix or its channels. A careless use of @command{guix time-machine} opens the door to security vulnerabilities. @xref{Invoking guix pull, @option{--allow-downgrades}}."
  10534. msgstr ""
  10535. #. type: Plain text
  10536. #: guix-git/doc/guix.texi:4938 guix-git/doc/guix.texi:6009
  10537. #: guix-git/doc/guix.texi:6536 guix-git/doc/guix.texi:7396
  10538. #: guix-git/doc/guix.texi:12239 guix-git/doc/guix.texi:12506
  10539. #: guix-git/doc/guix.texi:13550 guix-git/doc/guix.texi:13646
  10540. #: guix-git/doc/guix.texi:14683 guix-git/doc/guix.texi:14966
  10541. #: guix-git/doc/guix.texi:15469 guix-git/doc/guix.texi:15847
  10542. #: guix-git/doc/guix.texi:15943 guix-git/doc/guix.texi:15982
  10543. #: guix-git/doc/guix.texi:16080
  10544. msgid "The general syntax is:"
  10545. msgstr ""
  10546. #. type: example
  10547. #: guix-git/doc/guix.texi:4941
  10548. #, no-wrap
  10549. msgid "guix time-machine @var{options}@dots{} -- @var{command} @var {arg}@dots{}\n"
  10550. msgstr ""
  10551. #. type: Plain text
  10552. #: guix-git/doc/guix.texi:4946
  10553. 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}):"
  10554. msgstr ""
  10555. #. type: table
  10556. #: guix-git/doc/guix.texi:4954
  10557. 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 the name of a tag), or @var{branch}."
  10558. msgstr ""
  10559. #. type: table
  10560. #: guix-git/doc/guix.texi:4960
  10561. 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."
  10562. msgstr ""
  10563. #. type: Plain text
  10564. #: guix-git/doc/guix.texi:4964
  10565. 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"
  10566. msgstr ""
  10567. #. type: example
  10568. #: guix-git/doc/guix.texi:4967
  10569. #, no-wrap
  10570. msgid "guix time-machine -- build hello\n"
  10571. msgstr ""
  10572. #. type: Plain text
  10573. #: guix-git/doc/guix.texi:4972
  10574. 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!"
  10575. msgstr ""
  10576. #. type: Plain text
  10577. #: guix-git/doc/guix.texi:4976
  10578. 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})."
  10579. msgstr ""
  10580. #. type: quotation
  10581. #: guix-git/doc/guix.texi:4984
  10582. msgid "The functionality described here is a ``technology preview'' as of version @value{VERSION}. As such, the interface is subject to change."
  10583. msgstr ""
  10584. #. type: cindex
  10585. #: guix-git/doc/guix.texi:4986 guix-git/doc/guix.texi:12285
  10586. #, no-wrap
  10587. msgid "inferiors"
  10588. msgstr ""
  10589. #. type: cindex
  10590. #: guix-git/doc/guix.texi:4987
  10591. #, no-wrap
  10592. msgid "composition of Guix revisions"
  10593. msgstr ""
  10594. #. type: Plain text
  10595. #: guix-git/doc/guix.texi:4992
  10596. 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."
  10597. msgstr ""
  10598. #. type: cindex
  10599. #: guix-git/doc/guix.texi:4993 guix-git/doc/guix.texi:5056
  10600. #, no-wrap
  10601. msgid "inferior packages"
  10602. msgstr ""
  10603. #. type: Plain text
  10604. #: guix-git/doc/guix.texi:4999
  10605. 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}."
  10606. msgstr ""
  10607. #. type: Plain text
  10608. #: guix-git/doc/guix.texi:5009
  10609. 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{Writing Manifests}); 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:"
  10610. msgstr ""
  10611. #. type: lisp
  10612. #: guix-git/doc/guix.texi:5013
  10613. #, no-wrap
  10614. msgid ""
  10615. "(use-modules (guix inferior) (guix channels)\n"
  10616. " (srfi srfi-1)) ;for 'first'\n"
  10617. "\n"
  10618. msgstr ""
  10619. #. type: lisp
  10620. #: guix-git/doc/guix.texi:5022
  10621. #, no-wrap
  10622. msgid ""
  10623. "(define channels\n"
  10624. " ;; This is the old revision from which we want to\n"
  10625. " ;; extract guile-json.\n"
  10626. " (list (channel\n"
  10627. " (name 'guix)\n"
  10628. " (url \"https://git.savannah.gnu.org/git/guix.git\")\n"
  10629. " (commit\n"
  10630. " \"65956ad3526ba09e1f7a40722c96c6ef7c0936fe\"))))\n"
  10631. "\n"
  10632. msgstr ""
  10633. #. type: lisp
  10634. #: guix-git/doc/guix.texi:5026
  10635. #, no-wrap
  10636. msgid ""
  10637. "(define inferior\n"
  10638. " ;; An inferior representing the above revision.\n"
  10639. " (inferior-for-channels channels))\n"
  10640. "\n"
  10641. msgstr ""
  10642. #. type: lisp
  10643. #: guix-git/doc/guix.texi:5032
  10644. #, no-wrap
  10645. msgid ""
  10646. ";; Now create a manifest with the current \"guile\" package\n"
  10647. ";; and the old \"guile-json\" package.\n"
  10648. "(packages->manifest\n"
  10649. " (list (first (lookup-inferior-packages inferior \"guile-json\"))\n"
  10650. " (specification->package \"guile\")))\n"
  10651. msgstr ""
  10652. #. type: Plain text
  10653. #: guix-git/doc/guix.texi:5037
  10654. 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."
  10655. msgstr ""
  10656. #. type: Plain text
  10657. #: guix-git/doc/guix.texi:5040
  10658. msgid "The @code{(guix inferior)} module provides the following procedures to open an inferior:"
  10659. msgstr ""
  10660. #. type: defun
  10661. #: guix-git/doc/guix.texi:5041
  10662. #, no-wrap
  10663. msgid "inferior-for-channels channels [#:cache-directory] [#:ttl]"
  10664. msgstr ""
  10665. #. type: defun
  10666. #: guix-git/doc/guix.texi:5045
  10667. msgid "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."
  10668. msgstr ""
  10669. #. type: defun
  10670. #: guix-git/doc/guix.texi:5048
  10671. msgid "As a side effect, this procedure may build or substitute binaries for @var{channels}, which can take time."
  10672. msgstr ""
  10673. #. type: defun
  10674. #: guix-git/doc/guix.texi:5050
  10675. #, no-wrap
  10676. msgid "open-inferior directory [#:command \"bin/guix\"]"
  10677. msgstr ""
  10678. #. type: defun
  10679. #: guix-git/doc/guix.texi:5054
  10680. msgid "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."
  10681. msgstr ""
  10682. #. type: Plain text
  10683. #: guix-git/doc/guix.texi:5059
  10684. msgid "The procedures listed below allow you to obtain and manipulate inferior packages."
  10685. msgstr ""
  10686. #. type: defun
  10687. #: guix-git/doc/guix.texi:5060
  10688. #, fuzzy, no-wrap
  10689. msgid "inferior-packages inferior"
  10690. msgstr "从软件包定义里寻找错误。"
  10691. #. type: defun
  10692. #: guix-git/doc/guix.texi:5062
  10693. msgid "Return the list of packages known to @var{inferior}."
  10694. msgstr ""
  10695. #. type: defun
  10696. #: guix-git/doc/guix.texi:5064
  10697. #, no-wrap
  10698. msgid "lookup-inferior-packages inferior name [version]"
  10699. msgstr ""
  10700. #. type: defun
  10701. #: guix-git/doc/guix.texi:5068
  10702. msgid "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}."
  10703. msgstr ""
  10704. #. type: defun
  10705. #: guix-git/doc/guix.texi:5070
  10706. #, fuzzy, no-wrap
  10707. msgid "inferior-package? obj"
  10708. msgstr "从软件包定义里寻找错误。"
  10709. #. type: defun
  10710. #: guix-git/doc/guix.texi:5072
  10711. msgid "Return true if @var{obj} is an inferior package."
  10712. msgstr ""
  10713. #. type: defun
  10714. #: guix-git/doc/guix.texi:5074
  10715. #, no-wrap
  10716. msgid "inferior-package-name package"
  10717. msgstr ""
  10718. #. type: defunx
  10719. #: guix-git/doc/guix.texi:5075
  10720. #, no-wrap
  10721. msgid "inferior-package-version package"
  10722. msgstr ""
  10723. #. type: defunx
  10724. #: guix-git/doc/guix.texi:5076
  10725. #, fuzzy, no-wrap
  10726. #| msgid "package synopsis"
  10727. msgid "inferior-package-synopsis package"
  10728. msgstr "软件包简介"
  10729. #. type: defunx
  10730. #: guix-git/doc/guix.texi:5077
  10731. #, fuzzy, no-wrap
  10732. #| msgid "package description"
  10733. msgid "inferior-package-description package"
  10734. msgstr "软件包描述"
  10735. #. type: defunx
  10736. #: guix-git/doc/guix.texi:5078
  10737. #, no-wrap
  10738. msgid "inferior-package-home-page package"
  10739. msgstr ""
  10740. #. type: defunx
  10741. #: guix-git/doc/guix.texi:5079
  10742. #, no-wrap
  10743. msgid "inferior-package-location package"
  10744. msgstr ""
  10745. #. type: defunx
  10746. #: guix-git/doc/guix.texi:5080
  10747. #, no-wrap
  10748. msgid "inferior-package-inputs package"
  10749. msgstr ""
  10750. #. type: defunx
  10751. #: guix-git/doc/guix.texi:5081
  10752. #, no-wrap
  10753. msgid "inferior-package-native-inputs package"
  10754. msgstr ""
  10755. #. type: defunx
  10756. #: guix-git/doc/guix.texi:5082
  10757. #, no-wrap
  10758. msgid "inferior-package-propagated-inputs package"
  10759. msgstr ""
  10760. #. type: defunx
  10761. #: guix-git/doc/guix.texi:5083
  10762. #, no-wrap
  10763. msgid "inferior-package-transitive-propagated-inputs package"
  10764. msgstr ""
  10765. #. type: defunx
  10766. #: guix-git/doc/guix.texi:5084
  10767. #, no-wrap
  10768. msgid "inferior-package-native-search-paths package"
  10769. msgstr ""
  10770. #. type: defunx
  10771. #: guix-git/doc/guix.texi:5085
  10772. #, no-wrap
  10773. msgid "inferior-package-transitive-native-search-paths package"
  10774. msgstr ""
  10775. #. type: defunx
  10776. #: guix-git/doc/guix.texi:5086
  10777. #, no-wrap
  10778. msgid "inferior-package-search-paths package"
  10779. msgstr ""
  10780. #. type: defun
  10781. #: guix-git/doc/guix.texi:5091
  10782. 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."
  10783. msgstr ""
  10784. #. type: Plain text
  10785. #: guix-git/doc/guix.texi:5101
  10786. 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."
  10787. msgstr ""
  10788. #. type: section
  10789. #: guix-git/doc/guix.texi:5103
  10790. #, no-wrap
  10791. msgid "Invoking @command{guix describe}"
  10792. msgstr ""
  10793. #. type: command{#1}
  10794. #: guix-git/doc/guix.texi:5107
  10795. #, no-wrap
  10796. msgid "guix describe"
  10797. msgstr "guix describe"
  10798. #. type: Plain text
  10799. #: guix-git/doc/guix.texi:5115
  10800. 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."
  10801. msgstr ""
  10802. #. type: Plain text
  10803. #: guix-git/doc/guix.texi:5119
  10804. 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}):"
  10805. msgstr ""
  10806. #. type: example
  10807. #: guix-git/doc/guix.texi:5127
  10808. #, no-wrap
  10809. msgid ""
  10810. "$ guix describe\n"
  10811. "Generation 10\tSep 03 2018 17:32:44\t(current)\n"
  10812. " guix e0fa68c\n"
  10813. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  10814. " branch: master\n"
  10815. " commit: e0fa68c7718fffd33d81af415279d6ddb518f727\n"
  10816. msgstr ""
  10817. #. type: Plain text
  10818. #: guix-git/doc/guix.texi:5136
  10819. 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."
  10820. msgstr ""
  10821. #. type: Plain text
  10822. #: guix-git/doc/guix.texi:5139
  10823. 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:"
  10824. msgstr ""
  10825. #. type: example
  10826. #: guix-git/doc/guix.texi:5152
  10827. #, no-wrap
  10828. msgid ""
  10829. "$ guix describe -f channels\n"
  10830. "(list (channel\n"
  10831. " (name 'guix)\n"
  10832. " (url \"https://git.savannah.gnu.org/git/guix.git\")\n"
  10833. " (commit\n"
  10834. " \"e0fa68c7718fffd33d81af415279d6ddb518f727\")\n"
  10835. " (introduction\n"
  10836. " (make-channel-introduction\n"
  10837. " \"9edb3f66fd807b096b48283debdcddccfea34bad\"\n"
  10838. " (openpgp-fingerprint\n"
  10839. " \"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA\")))))\n"
  10840. msgstr ""
  10841. #. type: Plain text
  10842. #: guix-git/doc/guix.texi:5161
  10843. 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!"
  10844. msgstr ""
  10845. #. type: Plain text
  10846. #: guix-git/doc/guix.texi:5164
  10847. msgid "The details of the options supported by @command{guix describe} are as follows:"
  10848. msgstr ""
  10849. #. type: item
  10850. #: guix-git/doc/guix.texi:5166 guix-git/doc/guix.texi:7021
  10851. #: guix-git/doc/guix.texi:16214
  10852. #, no-wrap
  10853. msgid "--format=@var{format}"
  10854. msgstr ""
  10855. #. type: itemx
  10856. #: guix-git/doc/guix.texi:5167 guix-git/doc/guix.texi:7022
  10857. #: guix-git/doc/guix.texi:16215
  10858. #, no-wrap
  10859. msgid "-f @var{format}"
  10860. msgstr ""
  10861. #. type: table
  10862. #: guix-git/doc/guix.texi:5169 guix-git/doc/guix.texi:16217
  10863. msgid "Produce output in the specified @var{format}, one of:"
  10864. msgstr ""
  10865. #. type: item
  10866. #: guix-git/doc/guix.texi:5171
  10867. #, no-wrap
  10868. msgid "human"
  10869. msgstr ""
  10870. #. type: table
  10871. #: guix-git/doc/guix.texi:5173
  10872. msgid "produce human-readable output;"
  10873. msgstr ""
  10874. #. type: cindex
  10875. #: guix-git/doc/guix.texi:5173 guix-git/doc/guix.texi:5393
  10876. #, no-wrap
  10877. msgid "channels"
  10878. msgstr ""
  10879. #. type: table
  10880. #: guix-git/doc/guix.texi:5177
  10881. 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});"
  10882. msgstr ""
  10883. #. type: item
  10884. #: guix-git/doc/guix.texi:5177
  10885. #, no-wrap
  10886. msgid "channels-sans-intro"
  10887. msgstr ""
  10888. #. type: table
  10889. #: guix-git/doc/guix.texi:5183
  10890. 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;"
  10891. msgstr ""
  10892. #. type: item
  10893. #: guix-git/doc/guix.texi:5183 guix-git/doc/guix.texi:13873
  10894. #, no-wrap
  10895. msgid "json"
  10896. msgstr ""
  10897. #. type: cindex
  10898. #: guix-git/doc/guix.texi:5184
  10899. #, no-wrap
  10900. msgid "JSON"
  10901. msgstr ""
  10902. #. type: table
  10903. #: guix-git/doc/guix.texi:5186
  10904. msgid "produce a list of channel specifications in JSON format;"
  10905. msgstr ""
  10906. #. type: item
  10907. #: guix-git/doc/guix.texi:5186 guix-git/doc/guix.texi:16219
  10908. #, no-wrap
  10909. msgid "recutils"
  10910. msgstr ""
  10911. #. type: table
  10912. #: guix-git/doc/guix.texi:5188
  10913. msgid "produce a list of channel specifications in Recutils format."
  10914. msgstr ""
  10915. #. type: item
  10916. #: guix-git/doc/guix.texi:5190
  10917. #, no-wrap
  10918. msgid "--list-formats"
  10919. msgstr ""
  10920. #. type: table
  10921. #: guix-git/doc/guix.texi:5192
  10922. msgid "Display available formats for @option{--format} option."
  10923. msgstr ""
  10924. #. type: table
  10925. #: guix-git/doc/guix.texi:5196
  10926. msgid "Display information about @var{profile}."
  10927. msgstr ""
  10928. #. type: section
  10929. #: guix-git/doc/guix.texi:5199
  10930. #, no-wrap
  10931. msgid "Invoking @command{guix archive}"
  10932. msgstr ""
  10933. #. type: command{#1}
  10934. #: guix-git/doc/guix.texi:5201
  10935. #, no-wrap
  10936. msgid "guix archive"
  10937. msgstr ""
  10938. #. type: cindex
  10939. #: guix-git/doc/guix.texi:5202
  10940. #, no-wrap
  10941. msgid "archive"
  10942. msgstr "归档"
  10943. #. type: cindex
  10944. #: guix-git/doc/guix.texi:5203
  10945. #, no-wrap
  10946. msgid "exporting files from the store"
  10947. msgstr ""
  10948. #. type: cindex
  10949. #: guix-git/doc/guix.texi:5204
  10950. #, no-wrap
  10951. msgid "importing files to the store"
  10952. msgstr ""
  10953. #. type: Plain text
  10954. #: guix-git/doc/guix.texi:5210
  10955. 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."
  10956. msgstr ""
  10957. #. type: quotation
  10958. #: guix-git/doc/guix.texi:5214
  10959. msgid "If you're looking for a way to produce archives in a format suitable for tools other than Guix, @pxref{Invoking guix pack}."
  10960. msgstr ""
  10961. #. type: cindex
  10962. #: guix-git/doc/guix.texi:5216
  10963. #, no-wrap
  10964. msgid "exporting store items"
  10965. msgstr ""
  10966. #. type: Plain text
  10967. #: guix-git/doc/guix.texi:5218
  10968. msgid "To export store files as an archive to standard output, run:"
  10969. msgstr ""
  10970. #. type: example
  10971. #: guix-git/doc/guix.texi:5221
  10972. #, no-wrap
  10973. msgid "guix archive --export @var{options} @var{specifications}...\n"
  10974. msgstr ""
  10975. #. type: Plain text
  10976. #: guix-git/doc/guix.texi:5228
  10977. 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}:"
  10978. msgstr ""
  10979. #. type: example
  10980. #: guix-git/doc/guix.texi:5231
  10981. #, no-wrap
  10982. msgid "guix archive --export git:gui /gnu/store/...-emacs-24.3 > great.nar\n"
  10983. msgstr ""
  10984. #. type: Plain text
  10985. #: guix-git/doc/guix.texi:5236
  10986. 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})."
  10987. msgstr ""
  10988. #. type: Plain text
  10989. #: guix-git/doc/guix.texi:5239
  10990. msgid "To transfer the @code{emacs} package to a machine connected over SSH, one would run:"
  10991. msgstr ""
  10992. #. type: example
  10993. #: guix-git/doc/guix.texi:5242
  10994. #, no-wrap
  10995. msgid "guix archive --export -r emacs | ssh the-machine guix archive --import\n"
  10996. msgstr ""
  10997. #. type: Plain text
  10998. #: guix-git/doc/guix.texi:5247
  10999. msgid "Similarly, a complete user profile may be transferred from one machine to another like this:"
  11000. msgstr ""
  11001. #. type: example
  11002. #: guix-git/doc/guix.texi:5251
  11003. #, no-wrap
  11004. msgid ""
  11005. "guix archive --export -r $(readlink -f ~/.guix-profile) | \\\n"
  11006. " ssh the-machine guix archive --import\n"
  11007. msgstr ""
  11008. #. type: Plain text
  11009. #: guix-git/doc/guix.texi:5261
  11010. 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})."
  11011. msgstr ""
  11012. #. type: cindex
  11013. #: guix-git/doc/guix.texi:5262
  11014. #, no-wrap
  11015. msgid "nar, archive format"
  11016. msgstr ""
  11017. #. type: cindex
  11018. #: guix-git/doc/guix.texi:5263
  11019. #, no-wrap
  11020. msgid "normalized archive (nar)"
  11021. msgstr ""
  11022. #. type: cindex
  11023. #: guix-git/doc/guix.texi:5264
  11024. #, no-wrap
  11025. msgid "nar bundle, archive format"
  11026. msgstr ""
  11027. #. type: Plain text
  11028. #: guix-git/doc/guix.texi:5269
  11029. 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}."
  11030. msgstr ""
  11031. #. type: Plain text
  11032. #: guix-git/doc/guix.texi:5279
  11033. 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."
  11034. msgstr ""
  11035. #. type: Plain text
  11036. #: guix-git/doc/guix.texi:5283
  11037. 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."
  11038. msgstr ""
  11039. #. type: Plain text
  11040. #: guix-git/doc/guix.texi:5289
  11041. 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."
  11042. msgstr ""
  11043. #. type: Plain text
  11044. #: guix-git/doc/guix.texi:5291
  11045. msgid "The main options are:"
  11046. msgstr ""
  11047. #. type: item
  11048. #: guix-git/doc/guix.texi:5293
  11049. #, no-wrap
  11050. msgid "--export"
  11051. msgstr ""
  11052. #. type: table
  11053. #: guix-git/doc/guix.texi:5296
  11054. msgid "Export the specified store files or packages (see below). Write the resulting archive to the standard output."
  11055. msgstr ""
  11056. #. type: table
  11057. #: guix-git/doc/guix.texi:5299
  11058. msgid "Dependencies are @emph{not} included in the output, unless @option{--recursive} is passed."
  11059. msgstr ""
  11060. #. type: itemx
  11061. #: guix-git/doc/guix.texi:5300 guix-git/doc/guix.texi:13583
  11062. #: guix-git/doc/guix.texi:13710 guix-git/doc/guix.texi:13741
  11063. #: guix-git/doc/guix.texi:13773 guix-git/doc/guix.texi:13948
  11064. #: guix-git/doc/guix.texi:13989 guix-git/doc/guix.texi:14040
  11065. #: guix-git/doc/guix.texi:14065 guix-git/doc/guix.texi:14090
  11066. #: guix-git/doc/guix.texi:14106 guix-git/doc/guix.texi:14154
  11067. #: guix-git/doc/guix.texi:14190 guix-git/doc/guix.texi:14217
  11068. #: guix-git/doc/guix.texi:45058
  11069. #, no-wrap
  11070. msgid "-r"
  11071. msgstr ""
  11072. #. type: item
  11073. #: guix-git/doc/guix.texi:5301 guix-git/doc/guix.texi:13582
  11074. #: guix-git/doc/guix.texi:13709 guix-git/doc/guix.texi:13740
  11075. #: guix-git/doc/guix.texi:13772 guix-git/doc/guix.texi:13947
  11076. #: guix-git/doc/guix.texi:13988 guix-git/doc/guix.texi:14039
  11077. #: guix-git/doc/guix.texi:14064 guix-git/doc/guix.texi:14089
  11078. #: guix-git/doc/guix.texi:14105 guix-git/doc/guix.texi:14153
  11079. #: guix-git/doc/guix.texi:14189 guix-git/doc/guix.texi:14216
  11080. #: guix-git/doc/guix.texi:14265 guix-git/doc/guix.texi:45057
  11081. #, no-wrap
  11082. msgid "--recursive"
  11083. msgstr ""
  11084. #. type: table
  11085. #: guix-git/doc/guix.texi:5306
  11086. 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."
  11087. msgstr ""
  11088. #. type: item
  11089. #: guix-git/doc/guix.texi:5307
  11090. #, no-wrap
  11091. msgid "--import"
  11092. msgstr ""
  11093. #. type: table
  11094. #: guix-git/doc/guix.texi:5312
  11095. 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)."
  11096. msgstr ""
  11097. #. type: item
  11098. #: guix-git/doc/guix.texi:5313
  11099. #, no-wrap
  11100. msgid "--missing"
  11101. msgstr ""
  11102. #. type: table
  11103. #: guix-git/doc/guix.texi:5317
  11104. 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."
  11105. msgstr ""
  11106. #. type: item
  11107. #: guix-git/doc/guix.texi:5318
  11108. #, no-wrap
  11109. msgid "--generate-key[=@var{parameters}]"
  11110. msgstr ""
  11111. #. type: cindex
  11112. #: guix-git/doc/guix.texi:5319
  11113. #, no-wrap
  11114. msgid "signing, archives"
  11115. msgstr ""
  11116. #. type: table
  11117. #: guix-git/doc/guix.texi:5326
  11118. 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."
  11119. msgstr ""
  11120. #. type: table
  11121. #: guix-git/doc/guix.texi:5336
  11122. 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})."
  11123. msgstr ""
  11124. #. type: item
  11125. #: guix-git/doc/guix.texi:5337
  11126. #, no-wrap
  11127. msgid "--authorize"
  11128. msgstr ""
  11129. #. type: cindex
  11130. #: guix-git/doc/guix.texi:5338
  11131. #, no-wrap
  11132. msgid "authorizing, archives"
  11133. msgstr ""
  11134. #. type: table
  11135. #: guix-git/doc/guix.texi:5342
  11136. 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."
  11137. msgstr ""
  11138. #. type: table
  11139. #: guix-git/doc/guix.texi:5349
  11140. 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)}."
  11141. msgstr ""
  11142. #. type: item
  11143. #: guix-git/doc/guix.texi:5350
  11144. #, no-wrap
  11145. msgid "--extract=@var{directory}"
  11146. msgstr ""
  11147. #. type: itemx
  11148. #: guix-git/doc/guix.texi:5351
  11149. #, no-wrap
  11150. msgid "-x @var{directory}"
  11151. msgstr ""
  11152. #. type: table
  11153. #: guix-git/doc/guix.texi:5355
  11154. 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."
  11155. msgstr ""
  11156. #. type: table
  11157. #: guix-git/doc/guix.texi:5358
  11158. msgid "For example, the following command extracts the substitute for Emacs served by @code{@value{SUBSTITUTE-SERVER-1}} to @file{/tmp/emacs}:"
  11159. msgstr ""
  11160. #. type: example
  11161. #: guix-git/doc/guix.texi:5363
  11162. #, no-wrap
  11163. msgid ""
  11164. "$ wget -O - \\\n"
  11165. " https://@value{SUBSTITUTE-SERVER-1}/nar/gzip/@dots{}-emacs-24.5 \\\n"
  11166. " | gunzip | guix archive -x /tmp/emacs\n"
  11167. msgstr ""
  11168. #. type: table
  11169. #: guix-git/doc/guix.texi:5370
  11170. 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."
  11171. msgstr ""
  11172. #. type: table
  11173. #: guix-git/doc/guix.texi:5374
  11174. msgid "The primary purpose of this operation is to facilitate inspection of archive contents coming from possibly untrusted substitute servers (@pxref{Invoking guix challenge})."
  11175. msgstr ""
  11176. #. type: item
  11177. #: guix-git/doc/guix.texi:5375
  11178. #, no-wrap
  11179. msgid "--list"
  11180. msgstr ""
  11181. #. type: itemx
  11182. #: guix-git/doc/guix.texi:5376 guix-git/doc/guix.texi:13935
  11183. #: guix-git/doc/guix.texi:13982
  11184. #, no-wrap
  11185. msgid "-t"
  11186. msgstr ""
  11187. #. type: table
  11188. #: guix-git/doc/guix.texi:5380
  11189. 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:"
  11190. msgstr ""
  11191. #. type: example
  11192. #: guix-git/doc/guix.texi:5385
  11193. #, no-wrap
  11194. msgid ""
  11195. "$ wget -O - \\\n"
  11196. " https://@value{SUBSTITUTE-SERVER-1}/nar/lzip/@dots{}-emacs-26.3 \\\n"
  11197. " | lzip -d | guix archive -t\n"
  11198. msgstr ""
  11199. #. type: cindex
  11200. #: guix-git/doc/guix.texi:5396
  11201. #, no-wrap
  11202. msgid "@command{guix pull}, configuration file"
  11203. msgstr ""
  11204. #. type: cindex
  11205. #: guix-git/doc/guix.texi:5397
  11206. #, no-wrap
  11207. msgid "configuration of @command{guix pull}"
  11208. msgstr ""
  11209. #. type: Plain text
  11210. #: guix-git/doc/guix.texi:5408
  11211. 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."
  11212. msgstr ""
  11213. #. type: cindex
  11214. #: guix-git/doc/guix.texi:5426
  11215. #, no-wrap
  11216. msgid "extending the package collection (channels)"
  11217. msgstr ""
  11218. #. type: cindex
  11219. #: guix-git/doc/guix.texi:5427
  11220. #, no-wrap
  11221. msgid "variant packages (channels)"
  11222. msgstr ""
  11223. #. type: Plain text
  11224. #: guix-git/doc/guix.texi:5431
  11225. 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):"
  11226. msgstr ""
  11227. #. type: vindex
  11228. #: guix-git/doc/guix.texi:5432
  11229. #, no-wrap
  11230. msgid "%default-channels"
  11231. msgstr ""
  11232. #. type: lisp
  11233. #: guix-git/doc/guix.texi:5439
  11234. #, no-wrap
  11235. msgid ""
  11236. ";; Add variant packages to those Guix provides.\n"
  11237. "(cons (channel\n"
  11238. " (name 'variant-packages)\n"
  11239. " (url \"https://example.org/variant-packages.git\"))\n"
  11240. " %default-channels)\n"
  11241. msgstr ""
  11242. #. type: Plain text
  11243. #: guix-git/doc/guix.texi:5449
  11244. 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:"
  11245. msgstr ""
  11246. #. type: example
  11247. #: guix-git/doc/guix.texi:5461
  11248. #, no-wrap
  11249. msgid ""
  11250. "$ guix describe\n"
  11251. "Generation 19\tAug 27 2018 16:20:48\n"
  11252. " guix d894ab8\n"
  11253. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  11254. " branch: master\n"
  11255. " commit: d894ab8e9bfabcefa6c49d9ba2e834dd5a73a300\n"
  11256. " variant-packages dd3df5e\n"
  11257. " repository URL: https://example.org/variant-packages.git\n"
  11258. " branch: master\n"
  11259. " commit: dd3df5e2c8818760a8fc0bd699e55d3b69fef2bb\n"
  11260. msgstr ""
  11261. #. type: Plain text
  11262. #: guix-git/doc/guix.texi:5468
  11263. msgid "The output of @command{guix describe} above shows that we're now running Generation@tie{}19 and that it includes both Guix and packages from the @code{variant-personal-packages} channel (@pxref{Invoking guix describe})."
  11264. msgstr ""
  11265. #. type: Plain text
  11266. #: guix-git/doc/guix.texi:5477
  11267. 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:"
  11268. msgstr ""
  11269. #. type: lisp
  11270. #: guix-git/doc/guix.texi:5484
  11271. #, no-wrap
  11272. msgid ""
  11273. ";; Tell 'guix pull' to use another repo.\n"
  11274. "(list (channel\n"
  11275. " (name 'guix)\n"
  11276. " (url \"https://example.org/another-guix.git\")\n"
  11277. " (branch \"super-hacks\")))\n"
  11278. msgstr ""
  11279. #. type: Plain text
  11280. #: guix-git/doc/guix.texi:5490
  11281. 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})."
  11282. msgstr ""
  11283. #. type: Plain text
  11284. #: guix-git/doc/guix.texi:5500
  11285. msgid "Note that you can specify a local directory on the @code{url} field above if the channel that you intend to use resides on a local file system. However, in this case @command{guix} checks said directory for ownership before any further processing. This means that if the user is not the directory owner, but wants to use it as their default, they will then need to set it as a safe directory in their global git configuration file. Otherwise, @command{guix} will refuse to even read it. Supposing your system-wide local directory is at @code{/src/guix.git}, you would then create a git configuration file at @code{~/.gitconfig} with the following contents:"
  11286. msgstr ""
  11287. #. type: example
  11288. #: guix-git/doc/guix.texi:5504
  11289. #, no-wrap
  11290. msgid ""
  11291. "[safe]\n"
  11292. " directory = /src/guix.git\n"
  11293. msgstr ""
  11294. #. type: Plain text
  11295. #: guix-git/doc/guix.texi:5509
  11296. msgid "This also applies to the root user unless when called with @command{sudo} by the directory owner."
  11297. msgstr ""
  11298. #. type: Plain text
  11299. #: guix-git/doc/guix.texi:5521
  11300. msgid "The @command{guix describe} command shows precisely which commits were used to build the instance of Guix we're using (@pxref{Invoking guix describe}). We can replicate this instance on another machine or at a different point in time by providing a channel specification ``pinned'' to these commits that looks like this:"
  11301. msgstr ""
  11302. #. type: lisp
  11303. #: guix-git/doc/guix.texi:5532
  11304. #, no-wrap
  11305. msgid ""
  11306. ";; Deploy specific commits of my channels of interest.\n"
  11307. "(list (channel\n"
  11308. " (name 'guix)\n"
  11309. " (url \"https://git.savannah.gnu.org/git/guix.git\")\n"
  11310. " (commit \"6298c3ffd9654d3231a6f25390b056483e8f407c\"))\n"
  11311. " (channel\n"
  11312. " (name 'variant-packages)\n"
  11313. " (url \"https://example.org/variant-packages.git\")\n"
  11314. " (commit \"dd3df5e2c8818760a8fc0bd699e55d3b69fef2bb\")))\n"
  11315. msgstr ""
  11316. #. type: Plain text
  11317. #: guix-git/doc/guix.texi:5537
  11318. msgid "To obtain this pinned channel specification, the easiest way is to run @command{guix describe} and to save its output in the @code{channels} format in a file, like so:"
  11319. msgstr ""
  11320. #. type: example
  11321. #: guix-git/doc/guix.texi:5540
  11322. #, no-wrap
  11323. msgid "guix describe -f channels > channels.scm\n"
  11324. msgstr ""
  11325. #. type: Plain text
  11326. #: guix-git/doc/guix.texi:5546
  11327. msgid "The resulting @file{channels.scm} file can be passed to the @option{-C} option of @command{guix pull} (@pxref{Invoking guix pull}) or @command{guix time-machine} (@pxref{Invoking guix time-machine}), as in this example:"
  11328. msgstr ""
  11329. #. type: example
  11330. #: guix-git/doc/guix.texi:5549
  11331. #, no-wrap
  11332. msgid "guix time-machine -C channels.scm -- shell python -- python3\n"
  11333. msgstr ""
  11334. #. type: Plain text
  11335. #: guix-git/doc/guix.texi:5555
  11336. msgid "Given the @file{channels.scm} file, the command above will always fetch the @emph{exact same Guix instance}, then use that instance to run the exact same Python (@pxref{Invoking guix shell}). On any machine, at any time, it ends up running the exact same binaries, bit for bit."
  11337. msgstr ""
  11338. #. type: cindex
  11339. #: guix-git/doc/guix.texi:5556
  11340. #, no-wrap
  11341. msgid "lock files"
  11342. msgstr ""
  11343. #. type: Plain text
  11344. #: guix-git/doc/guix.texi:5564
  11345. msgid "Pinned channels address a problem similar to ``lock files'' as implemented by some deployment tools---they let you pin and reproduce a set of packages. In the case of Guix though, you are effectively pinning the entire package set as defined at the given channel commits; in fact, you are pinning all of Guix, including its core modules and command-line tools. You're also getting strong guarantees that you are, indeed, obtaining the exact same software."
  11346. msgstr ""
  11347. #. type: Plain text
  11348. #: guix-git/doc/guix.texi:5569
  11349. 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."
  11350. msgstr ""
  11351. #. type: anchor{#1}
  11352. #: guix-git/doc/guix.texi:5574
  11353. msgid "channel-authentication"
  11354. msgstr ""
  11355. #. type: Plain text
  11356. #: guix-git/doc/guix.texi:5580
  11357. 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."
  11358. msgstr ""
  11359. #. type: Plain text
  11360. #: guix-git/doc/guix.texi:5585
  11361. 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:"
  11362. msgstr ""
  11363. #. type: lisp
  11364. #: guix-git/doc/guix.texi:5595
  11365. #, no-wrap
  11366. msgid ""
  11367. "(channel\n"
  11368. " (name 'some-channel)\n"
  11369. " (url \"https://example.org/some-channel.git\")\n"
  11370. " (introduction\n"
  11371. " (make-channel-introduction\n"
  11372. " \"6f0d8cc0d88abb59c324b2990bfee2876016bb86\"\n"
  11373. " (openpgp-fingerprint\n"
  11374. " \"CABB A931 C0FF EEC6 900D 0CFB 090B 1199 3D9A EBB5\"))))\n"
  11375. msgstr ""
  11376. #. type: Plain text
  11377. #: guix-git/doc/guix.texi:5601
  11378. 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{}}."
  11379. msgstr ""
  11380. #. type: Plain text
  11381. #: guix-git/doc/guix.texi:5607
  11382. 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."
  11383. msgstr ""
  11384. #. type: Plain text
  11385. #: guix-git/doc/guix.texi:5609
  11386. msgid "If you're curious about the authentication mechanics, read on!"
  11387. msgstr ""
  11388. #. type: Plain text
  11389. #: guix-git/doc/guix.texi:5620
  11390. 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}."
  11391. msgstr ""
  11392. #. type: lisp
  11393. #: guix-git/doc/guix.texi:5623
  11394. #, no-wrap
  11395. msgid ""
  11396. "(use-modules (guix ci))\n"
  11397. "\n"
  11398. msgstr ""
  11399. #. type: lisp
  11400. #: guix-git/doc/guix.texi:5627
  11401. #, no-wrap
  11402. msgid ""
  11403. "(list (channel-with-substitutes-available\n"
  11404. " %default-guix-channel\n"
  11405. " \"https://ci.guix.gnu.org\"))\n"
  11406. msgstr ""
  11407. #. type: Plain text
  11408. #: guix-git/doc/guix.texi:5634
  11409. 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."
  11410. msgstr ""
  11411. #. type: cindex
  11412. #: guix-git/doc/guix.texi:5638
  11413. #, no-wrap
  11414. msgid "personal packages (channels)"
  11415. msgstr ""
  11416. #. type: cindex
  11417. #: guix-git/doc/guix.texi:5639
  11418. #, no-wrap
  11419. msgid "channels, for personal packages"
  11420. msgstr ""
  11421. #. type: Plain text
  11422. #: guix-git/doc/guix.texi:5647
  11423. 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?"
  11424. msgstr ""
  11425. #. type: quotation
  11426. #: guix-git/doc/guix.texi:5655
  11427. 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:"
  11428. msgstr ""
  11429. #. type: itemize
  11430. #: guix-git/doc/guix.texi:5663
  11431. 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."
  11432. msgstr ""
  11433. #. type: itemize
  11434. #: guix-git/doc/guix.texi:5672
  11435. 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."
  11436. msgstr ""
  11437. #. type: itemize
  11438. #: guix-git/doc/guix.texi:5676
  11439. 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."
  11440. msgstr ""
  11441. #. type: quotation
  11442. #: guix-git/doc/guix.texi:5683
  11443. 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."
  11444. msgstr ""
  11445. #. type: Plain text
  11446. #: guix-git/doc/guix.texi:5695
  11447. 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})."
  11448. msgstr ""
  11449. #. type: Plain text
  11450. #: guix-git/doc/guix.texi:5700
  11451. 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."
  11452. msgstr ""
  11453. #. type: cindex
  11454. #: guix-git/doc/guix.texi:5705
  11455. #, no-wrap
  11456. msgid "subdirectory, channels"
  11457. msgstr ""
  11458. #. type: Plain text
  11459. #: guix-git/doc/guix.texi:5709
  11460. 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:"
  11461. msgstr ""
  11462. #. type: lisp
  11463. #: guix-git/doc/guix.texi:5714
  11464. #, no-wrap
  11465. msgid ""
  11466. "(channel\n"
  11467. " (version 0)\n"
  11468. " (directory \"guix\"))\n"
  11469. msgstr ""
  11470. #. type: Plain text
  11471. #: guix-git/doc/guix.texi:5721
  11472. msgid "The modules must be @b{underneath} the specified directory, as the @code{directory} changes Guile's @code{load-path}. For example, if @file{.guix-channel} has @code{(directory \"base\")}, then a module defined as @code{(define-module (gnu packages fun))} must be located at @code{base/gnu/packages/fun.scm}."
  11473. msgstr ""
  11474. #. type: Plain text
  11475. #: guix-git/doc/guix.texi:5727
  11476. msgid "Doing this allows for only parts of a repository to be used as a channel, as Guix expects valid Guile modules when pulling. For instance, @command{guix deploy} machine configuration files are not valid Guile modules, and treating them as such would make @command{guix pull} fail."
  11477. msgstr ""
  11478. #. type: cindex
  11479. #: guix-git/doc/guix.texi:5731
  11480. #, no-wrap
  11481. msgid "dependencies, channels"
  11482. msgstr ""
  11483. #. type: cindex
  11484. #: guix-git/doc/guix.texi:5732
  11485. #, no-wrap
  11486. msgid "meta-data, channels"
  11487. msgstr ""
  11488. #. type: Plain text
  11489. #: guix-git/doc/guix.texi:5737
  11490. 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."
  11491. msgstr ""
  11492. #. type: Plain text
  11493. #: guix-git/doc/guix.texi:5739
  11494. msgid "The meta-data file should contain a simple S-expression like this:"
  11495. msgstr ""
  11496. #. type: lisp
  11497. #: guix-git/doc/guix.texi:5747
  11498. #, no-wrap
  11499. msgid ""
  11500. "(channel\n"
  11501. " (version 0)\n"
  11502. " (dependencies\n"
  11503. " (channel\n"
  11504. " (name some-collection)\n"
  11505. " (url \"https://example.org/first-collection.git\")\n"
  11506. "\n"
  11507. msgstr ""
  11508. #. type: lisp
  11509. #: guix-git/doc/guix.texi:5759
  11510. #, no-wrap
  11511. msgid ""
  11512. " ;; The 'introduction' bit below is optional: you would\n"
  11513. " ;; provide it for dependencies that can be authenticated.\n"
  11514. " (introduction\n"
  11515. " (channel-introduction\n"
  11516. " (version 0)\n"
  11517. " (commit \"a8883b58dc82e167c96506cf05095f37c2c2c6cd\")\n"
  11518. " (signer \"CABB A931 C0FF EEC6 900D 0CFB 090B 1199 3D9A EBB5\"))))\n"
  11519. " (channel\n"
  11520. " (name some-other-collection)\n"
  11521. " (url \"https://example.org/second-collection.git\")\n"
  11522. " (branch \"testing\"))))\n"
  11523. msgstr ""
  11524. #. type: Plain text
  11525. #: guix-git/doc/guix.texi:5765
  11526. 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."
  11527. msgstr ""
  11528. #. type: Plain text
  11529. #: guix-git/doc/guix.texi:5769
  11530. 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."
  11531. msgstr ""
  11532. #. type: cindex
  11533. #: guix-git/doc/guix.texi:5773
  11534. #, no-wrap
  11535. msgid "channel authorizations"
  11536. msgstr ""
  11537. #. type: anchor{#1}
  11538. #: guix-git/doc/guix.texi:5787
  11539. msgid "channel-authorizations"
  11540. msgstr ""
  11541. #. type: Plain text
  11542. #: guix-git/doc/guix.texi:5787
  11543. 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:"
  11544. msgstr ""
  11545. #. type: lisp
  11546. #: guix-git/doc/guix.texi:5790
  11547. #, no-wrap
  11548. msgid ""
  11549. ";; Example '.guix-authorizations' file.\n"
  11550. "\n"
  11551. msgstr ""
  11552. #. type: lisp
  11553. #: guix-git/doc/guix.texi:5793
  11554. #, no-wrap
  11555. msgid ""
  11556. "(authorizations\n"
  11557. " (version 0) ;current file format version\n"
  11558. "\n"
  11559. msgstr ""
  11560. #. type: lisp
  11561. #: guix-git/doc/guix.texi:5800
  11562. #, no-wrap
  11563. msgid ""
  11564. " ((\"AD17 A21E F8AE D8F1 CC02 DBD9 F8AE D8F1 765C 61E3\"\n"
  11565. " (name \"alice\"))\n"
  11566. " (\"2A39 3FFF 68F4 EF7A 3D29 12AF 68F4 EF7A 22FB B2D5\"\n"
  11567. " (name \"bob\"))\n"
  11568. " (\"CABB A931 C0FF EEC6 900D 0CFB 090B 1199 3D9A EBB5\"\n"
  11569. " (name \"charlie\"))))\n"
  11570. msgstr ""
  11571. #. type: Plain text
  11572. #: guix-git/doc/guix.texi:5804
  11573. msgid "Each fingerprint is followed by optional key/value pairs, as in the example above. Currently these key/value pairs are ignored."
  11574. msgstr ""
  11575. #. type: Plain text
  11576. #: guix-git/doc/guix.texi:5809
  11577. 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?"
  11578. msgstr ""
  11579. #. type: cindex
  11580. #: guix-git/doc/guix.texi:5810
  11581. #, fuzzy, no-wrap
  11582. msgid "channel introduction"
  11583. msgstr "介绍"
  11584. #. type: Plain text
  11585. #: guix-git/doc/guix.texi:5819
  11586. 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."
  11587. msgstr ""
  11588. #. type: Plain text
  11589. #: guix-git/doc/guix.texi:5826
  11590. 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:"
  11591. msgstr ""
  11592. #. type: lisp
  11593. #: guix-git/doc/guix.texi:5831
  11594. #, no-wrap
  11595. msgid ""
  11596. "(channel\n"
  11597. " (version 0)\n"
  11598. " (keyring-reference \"my-keyring-branch\"))\n"
  11599. msgstr ""
  11600. #. type: Plain text
  11601. #: guix-git/doc/guix.texi:5835
  11602. msgid "To summarize, as the author of a channel, there are three things you have to do to allow users to authenticate your code:"
  11603. msgstr ""
  11604. #. type: enumerate
  11605. #: guix-git/doc/guix.texi:5841
  11606. 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})."
  11607. msgstr ""
  11608. #. type: enumerate
  11609. #: guix-git/doc/guix.texi:5846
  11610. 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.)"
  11611. msgstr ""
  11612. #. type: enumerate
  11613. #: guix-git/doc/guix.texi:5852
  11614. 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."
  11615. msgstr ""
  11616. #. type: Plain text
  11617. #: guix-git/doc/guix.texi:5857
  11618. 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:"
  11619. msgstr ""
  11620. #. type: example
  11621. #: guix-git/doc/guix.texi:5860
  11622. #, no-wrap
  11623. msgid "guix git authenticate @var{commit} @var{signer}\n"
  11624. msgstr ""
  11625. #. type: Plain text
  11626. #: guix-git/doc/guix.texi:5865
  11627. msgid "where @var{commit} and @var{signer} are your channel introduction. @xref{Invoking guix git authenticate}, for details."
  11628. msgstr ""
  11629. #. type: Plain text
  11630. #: guix-git/doc/guix.texi:5872
  11631. 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."
  11632. msgstr ""
  11633. #. type: cindex
  11634. #: guix-git/doc/guix.texi:5876
  11635. #, no-wrap
  11636. msgid "primary URL, channels"
  11637. msgstr ""
  11638. #. type: Plain text
  11639. #: guix-git/doc/guix.texi:5879
  11640. msgid "Channel authors can indicate the primary URL of their channel's Git repository in the @file{.guix-channel} file, like so:"
  11641. msgstr ""
  11642. #. type: lisp
  11643. #: guix-git/doc/guix.texi:5884
  11644. #, no-wrap
  11645. msgid ""
  11646. "(channel\n"
  11647. " (version 0)\n"
  11648. " (url \"https://example.org/guix.git\"))\n"
  11649. msgstr ""
  11650. #. type: Plain text
  11651. #: guix-git/doc/guix.texi:5891
  11652. 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."
  11653. msgstr ""
  11654. #. type: Plain text
  11655. #: guix-git/doc/guix.texi:5895
  11656. 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."
  11657. msgstr ""
  11658. #. type: cindex
  11659. #: guix-git/doc/guix.texi:5899
  11660. #, no-wrap
  11661. msgid "news, for channels"
  11662. msgstr ""
  11663. #. type: Plain text
  11664. #: guix-git/doc/guix.texi:5903
  11665. 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."
  11666. msgstr ""
  11667. #. type: Plain text
  11668. #: guix-git/doc/guix.texi:5908
  11669. 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."
  11670. msgstr ""
  11671. #. type: Plain text
  11672. #: guix-git/doc/guix.texi:5911
  11673. msgid "To do that, channel authors must first declare the name of the news file in their @file{.guix-channel} file:"
  11674. msgstr ""
  11675. #. type: lisp
  11676. #: guix-git/doc/guix.texi:5916
  11677. #, no-wrap
  11678. msgid ""
  11679. "(channel\n"
  11680. " (version 0)\n"
  11681. " (news-file \"etc/news.txt\"))\n"
  11682. msgstr ""
  11683. #. type: Plain text
  11684. #: guix-git/doc/guix.texi:5920
  11685. msgid "The news file itself, @file{etc/news.txt} in this example, must look something like this:"
  11686. msgstr ""
  11687. #. type: lisp
  11688. #: guix-git/doc/guix.texi:5933
  11689. #, no-wrap
  11690. msgid ""
  11691. "(channel-news\n"
  11692. " (version 0)\n"
  11693. " (entry (tag \"the-bug-fix\")\n"
  11694. " (title (en \"Fixed terrible bug\")\n"
  11695. " (fr \"Oh la la\"))\n"
  11696. " (body (en \"@@emph@{Good news@}! It's fixed!\")\n"
  11697. " (eo \"Certe ĝi pli bone funkcias nun!\")))\n"
  11698. " (entry (commit \"bdcabe815cd28144a2d2b4bc3c5057b051fa9906\")\n"
  11699. " (title (en \"Added a great package\")\n"
  11700. " (ca \"Què vol dir guix?\"))\n"
  11701. " (body (en \"Don't miss the @@code@{hello@} package!\"))))\n"
  11702. msgstr ""
  11703. #. type: Plain text
  11704. #: guix-git/doc/guix.texi:5940
  11705. 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."
  11706. msgstr ""
  11707. #. type: Plain text
  11708. #: guix-git/doc/guix.texi:5945
  11709. 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."
  11710. msgstr ""
  11711. #. type: Plain text
  11712. #: guix-git/doc/guix.texi:5951
  11713. 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."
  11714. msgstr ""
  11715. #. type: Plain text
  11716. #: guix-git/doc/guix.texi:5957
  11717. 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:"
  11718. msgstr ""
  11719. #. type: example
  11720. #: guix-git/doc/guix.texi:5960
  11721. #, no-wrap
  11722. msgid "xgettext -o news.po -l scheme -ken etc/news.txt\n"
  11723. msgstr ""
  11724. #. type: Plain text
  11725. #: guix-git/doc/guix.texi:5964
  11726. 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."
  11727. msgstr ""
  11728. #. type: cindex
  11729. #: guix-git/doc/guix.texi:5969
  11730. #, no-wrap
  11731. msgid "software development"
  11732. msgstr ""
  11733. #. type: Plain text
  11734. #: guix-git/doc/guix.texi:5973
  11735. 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."
  11736. msgstr ""
  11737. #. type: Plain text
  11738. #: guix-git/doc/guix.texi:5979
  11739. 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."
  11740. msgstr ""
  11741. #. type: section
  11742. #: guix-git/doc/guix.texi:5989
  11743. #, fuzzy, no-wrap
  11744. #| msgid "Invoking @command{guix build}"
  11745. msgid "Invoking @command{guix shell}"
  11746. msgstr "调用@command{guix build}"
  11747. #. type: cindex
  11748. #: guix-git/doc/guix.texi:5991
  11749. #, no-wrap
  11750. msgid "reproducible build environments"
  11751. msgstr ""
  11752. #. type: cindex
  11753. #: guix-git/doc/guix.texi:5992
  11754. #, no-wrap
  11755. msgid "development environments"
  11756. msgstr ""
  11757. #. type: command{#1}
  11758. #: guix-git/doc/guix.texi:5993 guix-git/doc/guix.texi:6519
  11759. #, no-wrap
  11760. msgid "guix environment"
  11761. msgstr ""
  11762. #. type: command{#1}
  11763. #: guix-git/doc/guix.texi:5994
  11764. #, no-wrap
  11765. msgid "guix shell"
  11766. msgstr "guix shell"
  11767. #. type: cindex
  11768. #: guix-git/doc/guix.texi:5995
  11769. #, no-wrap
  11770. msgid "environment, package build environment"
  11771. msgstr ""
  11772. #. type: Plain text
  11773. #: guix-git/doc/guix.texi:6000
  11774. 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."
  11775. msgstr ""
  11776. #. type: quotation
  11777. #: guix-git/doc/guix.texi:6006
  11778. 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."
  11779. msgstr ""
  11780. #. type: example
  11781. #: guix-git/doc/guix.texi:6012
  11782. #, no-wrap
  11783. msgid "guix shell [@var{options}] [@var{package}@dots{}]\n"
  11784. msgstr ""
  11785. #. type: Plain text
  11786. #: guix-git/doc/guix.texi:6017
  11787. 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:"
  11788. msgstr ""
  11789. #. type: example
  11790. #: guix-git/doc/guix.texi:6020
  11791. #, no-wrap
  11792. msgid "guix shell python python-numpy -- python3\n"
  11793. msgstr ""
  11794. #. type: cindex
  11795. #: guix-git/doc/guix.texi:6023
  11796. #, fuzzy, no-wrap
  11797. #| msgid "Invoking @command{guix build}"
  11798. msgid "shebang, for @command{guix shell}"
  11799. msgstr "调用@command{guix build}"
  11800. #. type: quotation
  11801. #: guix-git/doc/guix.texi:6027
  11802. msgid "@command{guix shell} can be also be used as a script interpreter, also known as @dfn{shebang}. Here is an example self-contained Python script making use of this feature:"
  11803. msgstr ""
  11804. #. type: example
  11805. #: guix-git/doc/guix.texi:6032
  11806. #, no-wrap
  11807. msgid ""
  11808. "#!/usr/bin/env -S guix shell python python-numpy -- python3\n"
  11809. "import numpy\n"
  11810. "print(\"This is numpy\", numpy.version.version)\n"
  11811. msgstr ""
  11812. #. type: quotation
  11813. #: guix-git/doc/guix.texi:6036
  11814. msgid "You may pass any @command{guix shell} option, but there's one caveat: the Linux kernel has a limit of 127 bytes on shebang length."
  11815. msgstr ""
  11816. #. type: Plain text
  11817. #: guix-git/doc/guix.texi:6041
  11818. 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:"
  11819. msgstr ""
  11820. #. type: example
  11821. #: guix-git/doc/guix.texi:6044
  11822. #, no-wrap
  11823. msgid "guix shell --development inkscape\n"
  11824. msgstr ""
  11825. #. type: Plain text
  11826. #: guix-git/doc/guix.texi:6050
  11827. 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."
  11828. msgstr ""
  11829. #. type: Plain text
  11830. #: guix-git/doc/guix.texi:6054
  11831. msgid "As an added convenience, @command{guix shell} will try to do what you mean when it is invoked interactively without any other arguments as in:"
  11832. msgstr ""
  11833. #. type: example
  11834. #: guix-git/doc/guix.texi:6057
  11835. #, fuzzy, no-wrap
  11836. #| msgid "guix pull\n"
  11837. msgid "guix shell\n"
  11838. msgstr "guix pull\n"
  11839. #. type: Plain text
  11840. #: guix-git/doc/guix.texi:6069
  11841. msgid "If it finds a @file{manifest.scm} in the current working directory or any of its parents, it uses this manifest as though it was given via @code{--manifest}. Likewise, if it finds a @file{guix.scm} in the same directories, it uses it to build a development profile as though both @code{--development} and @code{--file} were present. In either case, the file will only be loaded if the directory it resides in is listed in @file{~/.config/guix/shell-authorized-directories}. This provides an easy way to define, share, and enter development environments."
  11842. msgstr ""
  11843. #. type: Plain text
  11844. #: guix-git/doc/guix.texi:6080
  11845. 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:"
  11846. msgstr ""
  11847. #. type: example
  11848. #: guix-git/doc/guix.texi:6083
  11849. #, no-wrap
  11850. msgid "guix shell --container emacs gcc-toolchain\n"
  11851. msgstr ""
  11852. #. type: Plain text
  11853. #: guix-git/doc/guix.texi:6091
  11854. 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."
  11855. msgstr ""
  11856. #. type: Plain text
  11857. #: guix-git/doc/guix.texi:6098
  11858. 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:"
  11859. msgstr ""
  11860. #. type: example
  11861. #: guix-git/doc/guix.texi:6102
  11862. #, no-wrap
  11863. msgid ""
  11864. "guix shell --container --network --no-cwd ungoogled-chromium \\\n"
  11865. " --preserve='^DISPLAY$' -- chromium\n"
  11866. msgstr ""
  11867. #. type: vindex
  11868. #: guix-git/doc/guix.texi:6104 guix-git/doc/guix.texi:6570
  11869. #, no-wrap
  11870. msgid "GUIX_ENVIRONMENT"
  11871. msgstr ""
  11872. #. type: Plain text
  11873. #: guix-git/doc/guix.texi:6110
  11874. 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}):"
  11875. msgstr ""
  11876. #. type: example
  11877. #: guix-git/doc/guix.texi:6116 guix-git/doc/guix.texi:6582
  11878. #, no-wrap
  11879. msgid ""
  11880. "if [ -n \"$GUIX_ENVIRONMENT\" ]\n"
  11881. "then\n"
  11882. " export PS1=\"\\u@@\\h \\w [dev]\\$ \"\n"
  11883. "fi\n"
  11884. msgstr ""
  11885. #. type: Plain text
  11886. #: guix-git/doc/guix.texi:6120 guix-git/doc/guix.texi:6586
  11887. msgid "...@: or to browse the profile:"
  11888. msgstr ""
  11889. #. type: example
  11890. #: guix-git/doc/guix.texi:6123 guix-git/doc/guix.texi:6589
  11891. #, no-wrap
  11892. msgid "$ ls \"$GUIX_ENVIRONMENT/bin\"\n"
  11893. msgstr ""
  11894. #. type: Plain text
  11895. #: guix-git/doc/guix.texi:6126 guix-git/doc/guix.texi:6665
  11896. msgid "The available options are summarized below."
  11897. msgstr ""
  11898. #. type: item
  11899. #: guix-git/doc/guix.texi:6128 guix-git/doc/guix.texi:6667
  11900. #: guix-git/doc/guix.texi:13299
  11901. #, no-wrap
  11902. msgid "--check"
  11903. msgstr ""
  11904. #. type: table
  11905. #: guix-git/doc/guix.texi:6133
  11906. 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."
  11907. msgstr ""
  11908. #. type: table
  11909. #: guix-git/doc/guix.texi:6137
  11910. 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."
  11911. msgstr ""
  11912. #. type: table
  11913. #: guix-git/doc/guix.texi:6145
  11914. 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."
  11915. msgstr ""
  11916. #. type: anchor{#1}
  11917. #: guix-git/doc/guix.texi:6147
  11918. #, fuzzy
  11919. #| msgid "Development"
  11920. msgid "shell-development-option"
  11921. msgstr "开发"
  11922. #. type: item
  11923. #: guix-git/doc/guix.texi:6147
  11924. #, fuzzy, no-wrap
  11925. #| msgid "Development"
  11926. msgid "--development"
  11927. msgstr "开发"
  11928. #. type: table
  11929. #: guix-git/doc/guix.texi:6154
  11930. 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:"
  11931. msgstr ""
  11932. #. type: example
  11933. #: guix-git/doc/guix.texi:6157
  11934. #, no-wrap
  11935. msgid "guix shell -D guile autoconf automake libtool\n"
  11936. msgstr ""
  11937. #. type: item
  11938. #: guix-git/doc/guix.texi:6159 guix-git/doc/guix.texi:6688
  11939. #: guix-git/doc/guix.texi:7241 guix-git/doc/guix.texi:13166
  11940. #: guix-git/doc/guix.texi:14329 guix-git/doc/guix.texi:14792
  11941. #: guix-git/doc/guix.texi:14990 guix-git/doc/guix.texi:15400
  11942. #: guix-git/doc/guix.texi:40301 guix-git/doc/guix.texi:44058
  11943. #, no-wrap
  11944. msgid "--expression=@var{expr}"
  11945. msgstr ""
  11946. #. type: itemx
  11947. #: guix-git/doc/guix.texi:6160 guix-git/doc/guix.texi:6689
  11948. #: guix-git/doc/guix.texi:7242 guix-git/doc/guix.texi:13167
  11949. #: guix-git/doc/guix.texi:14330 guix-git/doc/guix.texi:14793
  11950. #: guix-git/doc/guix.texi:14991 guix-git/doc/guix.texi:15401
  11951. #: guix-git/doc/guix.texi:40302 guix-git/doc/guix.texi:44059
  11952. #, no-wrap
  11953. msgid "-e @var{expr}"
  11954. msgstr ""
  11955. #. type: table
  11956. #: guix-git/doc/guix.texi:6163 guix-git/doc/guix.texi:6692
  11957. msgid "Create an environment for the package or list of packages that @var{expr} evaluates to."
  11958. msgstr ""
  11959. #. type: table
  11960. #: guix-git/doc/guix.texi:6165 guix-git/doc/guix.texi:6694
  11961. #: guix-git/doc/guix.texi:14797
  11962. msgid "For example, running:"
  11963. msgstr ""
  11964. #. type: example
  11965. #: guix-git/doc/guix.texi:6168
  11966. #, no-wrap
  11967. msgid "guix shell -D -e '(@@ (gnu packages maths) petsc-openmpi)'\n"
  11968. msgstr ""
  11969. #. type: table
  11970. #: guix-git/doc/guix.texi:6172 guix-git/doc/guix.texi:6701
  11971. msgid "starts a shell with the environment for this specific variant of the PETSc package."
  11972. msgstr ""
  11973. #. type: table
  11974. #: guix-git/doc/guix.texi:6174 guix-git/doc/guix.texi:6703
  11975. msgid "Running:"
  11976. msgstr ""
  11977. #. type: example
  11978. #: guix-git/doc/guix.texi:6177
  11979. #, no-wrap
  11980. msgid "guix shell -e '(@@ (gnu) %base-packages)'\n"
  11981. msgstr ""
  11982. #. type: table
  11983. #: guix-git/doc/guix.texi:6180 guix-git/doc/guix.texi:6709
  11984. msgid "starts a shell with all the base system packages available."
  11985. msgstr ""
  11986. #. type: table
  11987. #: guix-git/doc/guix.texi:6183 guix-git/doc/guix.texi:6712
  11988. msgid "The above commands only use the default output of the given packages. To select other outputs, two element tuples can be specified:"
  11989. msgstr ""
  11990. #. type: example
  11991. #: guix-git/doc/guix.texi:6186
  11992. #, no-wrap
  11993. msgid "guix shell -e '(list (@@ (gnu packages bash) bash) \"include\")'\n"
  11994. msgstr ""
  11995. #. type: table
  11996. #: guix-git/doc/guix.texi:6191
  11997. msgid "@xref{package-development-manifest, @code{package->development-manifest}}, for information on how to write a manifest for the development environment of a package."
  11998. msgstr ""
  11999. #. type: item
  12000. #: guix-git/doc/guix.texi:6192 guix-git/doc/guix.texi:13140
  12001. #, no-wrap
  12002. msgid "--file=@var{file}"
  12003. msgstr ""
  12004. #. type: table
  12005. #: guix-git/doc/guix.texi:6196
  12006. msgid "Create an environment containing the package or list of packages that the code within @var{file} evaluates to."
  12007. msgstr ""
  12008. #. type: lisp
  12009. #: guix-git/doc/guix.texi:6202 guix-git/doc/guix.texi:6727
  12010. #, no-wrap
  12011. msgid "@verbatiminclude environment-gdb.scm\n"
  12012. msgstr ""
  12013. #. type: table
  12014. #: guix-git/doc/guix.texi:6206
  12015. msgid "With the file above, you can enter a development environment for GDB by running:"
  12016. msgstr ""
  12017. #. type: example
  12018. #: guix-git/doc/guix.texi:6209
  12019. #, no-wrap
  12020. msgid "guix shell -D -f gdb-devel.scm\n"
  12021. msgstr ""
  12022. #. type: anchor{#1}
  12023. #: guix-git/doc/guix.texi:6212
  12024. #, fuzzy
  12025. #| msgid "-c @var{n}"
  12026. msgid "shell-manifest"
  12027. msgstr "-c @var{n}"
  12028. #. type: table
  12029. #: guix-git/doc/guix.texi:6217 guix-git/doc/guix.texi:6734
  12030. 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."
  12031. msgstr ""
  12032. #. type: table
  12033. #: guix-git/doc/guix.texi:6221 guix-git/doc/guix.texi:6738
  12034. msgid "This is similar to the same-named option in @command{guix package} (@pxref{profile-manifest, @option{--manifest}}) and uses the same manifest files."
  12035. msgstr ""
  12036. #. type: table
  12037. #: guix-git/doc/guix.texi:6224
  12038. msgid "@xref{Writing Manifests}, for information on how to write a manifest. See @option{--export-manifest} below on how to obtain a first manifest."
  12039. msgstr ""
  12040. #. type: anchor{#1}
  12041. #: guix-git/doc/guix.texi:6227
  12042. msgid "shell-export-manifest"
  12043. msgstr ""
  12044. #. type: table
  12045. #: guix-git/doc/guix.texi:6230
  12046. msgid "Write to standard output a manifest suitable for @option{--manifest} corresponding to given command-line options."
  12047. msgstr ""
  12048. #. type: table
  12049. #: guix-git/doc/guix.texi:6234
  12050. msgid "This is a way to ``convert'' command-line arguments into a manifest. For example, imagine you are tired of typing long lines and would like to get a manifest equivalent to this command line:"
  12051. msgstr ""
  12052. #. type: example
  12053. #: guix-git/doc/guix.texi:6237
  12054. #, fuzzy, no-wrap
  12055. #| msgid "guix package -i emacs guile emacs-geiser\n"
  12056. msgid "guix shell -D guile git emacs emacs-geiser emacs-geiser-guile\n"
  12057. msgstr "guix package -i emacs guile emacs-geiser\n"
  12058. #. type: table
  12059. #: guix-git/doc/guix.texi:6240
  12060. msgid "Just add @option{--export-manifest} to the command line above:"
  12061. msgstr ""
  12062. #. type: example
  12063. #: guix-git/doc/guix.texi:6244
  12064. #, no-wrap
  12065. msgid ""
  12066. "guix shell --export-manifest \\\n"
  12067. " -D guile git emacs emacs-geiser emacs-geiser-guile\n"
  12068. msgstr ""
  12069. "guix shell --export-manifest \\\n"
  12070. " -D guile git emacs emacs-geiser emacs-geiser-guile\n"
  12071. #. type: table
  12072. #: guix-git/doc/guix.texi:6248
  12073. #, fuzzy
  12074. #| msgid "Installing goes along these lines:"
  12075. msgid "... and you get a manifest along these lines:"
  12076. msgstr "安装步骤如下:"
  12077. #. type: lisp
  12078. #: guix-git/doc/guix.texi:6258
  12079. #, no-wrap
  12080. msgid ""
  12081. "(concatenate-manifests\n"
  12082. " (list (specifications->manifest\n"
  12083. " (list \"git\"\n"
  12084. " \"emacs\"\n"
  12085. " \"emacs-geiser\"\n"
  12086. " \"emacs-geiser-guile\"))\n"
  12087. " (package->development-manifest\n"
  12088. " (specification->package \"guile\"))))\n"
  12089. msgstr ""
  12090. #. type: table
  12091. #: guix-git/doc/guix.texi:6263
  12092. msgid "You can store it into a file, say @file{manifest.scm}, and from there pass it to @command{guix shell} or indeed pretty much any @command{guix} command:"
  12093. msgstr ""
  12094. #. type: example
  12095. #: guix-git/doc/guix.texi:6266 guix-git/doc/guix.texi:8563
  12096. #, fuzzy, no-wrap
  12097. #| msgid "guix environment guix --pure\n"
  12098. msgid "guix shell -m manifest.scm\n"
  12099. msgstr "guix environment guix --pure\n"
  12100. #. type: table
  12101. #: guix-git/doc/guix.texi:6271
  12102. msgid "Voilà, you've converted a long command line into a manifest! That conversion process honors package transformation options (@pxref{Package Transformation Options}) so it should be lossless."
  12103. msgstr ""
  12104. #. type: table
  12105. #: guix-git/doc/guix.texi:6277 guix-git/doc/guix.texi:6774
  12106. msgid "Create an environment containing the packages installed in @var{profile}. Use @command{guix package} (@pxref{Invoking guix package}) to create and manage profiles."
  12107. msgstr ""
  12108. #. type: item
  12109. #: guix-git/doc/guix.texi:6278 guix-git/doc/guix.texi:6775
  12110. #, no-wrap
  12111. msgid "--pure"
  12112. msgstr ""
  12113. #. type: table
  12114. #: guix-git/doc/guix.texi:6282 guix-git/doc/guix.texi:6779
  12115. 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."
  12116. msgstr ""
  12117. #. type: item
  12118. #: guix-git/doc/guix.texi:6283 guix-git/doc/guix.texi:6780
  12119. #, no-wrap
  12120. msgid "--preserve=@var{regexp}"
  12121. msgstr ""
  12122. #. type: itemx
  12123. #: guix-git/doc/guix.texi:6284 guix-git/doc/guix.texi:6781
  12124. #, no-wrap
  12125. msgid "-E @var{regexp}"
  12126. msgstr ""
  12127. #. type: table
  12128. #: guix-git/doc/guix.texi:6289 guix-git/doc/guix.texi:6786
  12129. 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."
  12130. msgstr ""
  12131. #. type: example
  12132. #: guix-git/doc/guix.texi:6293
  12133. #, no-wrap
  12134. msgid ""
  12135. "guix shell --pure --preserve=^SLURM openmpi @dots{} \\\n"
  12136. " -- mpirun @dots{}\n"
  12137. msgstr ""
  12138. #. type: table
  12139. #: guix-git/doc/guix.texi:6299 guix-git/doc/guix.texi:6796
  12140. 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.)."
  12141. msgstr ""
  12142. #. type: item
  12143. #: guix-git/doc/guix.texi:6300 guix-git/doc/guix.texi:6797
  12144. #, no-wrap
  12145. msgid "--search-paths"
  12146. msgstr ""
  12147. #. type: table
  12148. #: guix-git/doc/guix.texi:6303 guix-git/doc/guix.texi:6800
  12149. msgid "Display the environment variable definitions that make up the environment."
  12150. msgstr ""
  12151. #. type: table
  12152. #: guix-git/doc/guix.texi:6307 guix-git/doc/guix.texi:6804
  12153. msgid "Attempt to build for @var{system}---e.g., @code{i686-linux}."
  12154. msgstr ""
  12155. #. type: item
  12156. #: guix-git/doc/guix.texi:6308 guix-git/doc/guix.texi:6805
  12157. #, no-wrap
  12158. msgid "--container"
  12159. msgstr ""
  12160. #. type: itemx
  12161. #: guix-git/doc/guix.texi:6309 guix-git/doc/guix.texi:6806
  12162. #, no-wrap
  12163. msgid "-C"
  12164. msgstr ""
  12165. #. type: item
  12166. #: guix-git/doc/guix.texi:6310 guix-git/doc/guix.texi:6631
  12167. #: guix-git/doc/guix.texi:6807 guix-git/doc/guix.texi:15968
  12168. #: guix-git/doc/guix.texi:40265 guix-git/doc/guix.texi:43798
  12169. #, no-wrap
  12170. msgid "container"
  12171. msgstr "容器"
  12172. #. type: table
  12173. #: guix-git/doc/guix.texi:6316 guix-git/doc/guix.texi:6813
  12174. 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."
  12175. msgstr ""
  12176. #. type: table
  12177. #: guix-git/doc/guix.texi:6320 guix-git/doc/guix.texi:6817
  12178. 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)."
  12179. msgstr ""
  12180. #. type: item
  12181. #: guix-git/doc/guix.texi:6321 guix-git/doc/guix.texi:6818
  12182. #: guix-git/doc/guix.texi:40366 guix-git/doc/guix.texi:43816
  12183. #, no-wrap
  12184. msgid "--network"
  12185. msgstr ""
  12186. #. type: table
  12187. #: guix-git/doc/guix.texi:6326 guix-git/doc/guix.texi:6823
  12188. msgid "For containers, share the network namespace with the host system. Containers created without this flag only have access to the loopback device."
  12189. msgstr ""
  12190. #. type: item
  12191. #: guix-git/doc/guix.texi:6327 guix-git/doc/guix.texi:6824
  12192. #, no-wrap
  12193. msgid "--link-profile"
  12194. msgstr ""
  12195. #. type: itemx
  12196. #: guix-git/doc/guix.texi:6328 guix-git/doc/guix.texi:6825
  12197. #, no-wrap
  12198. msgid "-P"
  12199. msgstr ""
  12200. #. type: table
  12201. #: guix-git/doc/guix.texi:6336
  12202. 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."
  12203. msgstr ""
  12204. #. type: table
  12205. #: guix-git/doc/guix.texi:6342 guix-git/doc/guix.texi:6839
  12206. 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."
  12207. msgstr ""
  12208. #. type: item
  12209. #: guix-git/doc/guix.texi:6343 guix-git/doc/guix.texi:6840
  12210. #: guix-git/doc/guix.texi:15538
  12211. #, no-wrap
  12212. msgid "--user=@var{user}"
  12213. msgstr ""
  12214. #. type: itemx
  12215. #: guix-git/doc/guix.texi:6344 guix-git/doc/guix.texi:6841
  12216. #: guix-git/doc/guix.texi:15539
  12217. #, no-wrap
  12218. msgid "-u @var{user}"
  12219. msgstr ""
  12220. #. type: table
  12221. #: guix-git/doc/guix.texi:6351 guix-git/doc/guix.texi:6848
  12222. 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."
  12223. msgstr ""
  12224. #. type: table
  12225. #: guix-git/doc/guix.texi:6356 guix-git/doc/guix.texi:6853
  12226. 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."
  12227. msgstr ""
  12228. #. type: example
  12229. #: guix-git/doc/guix.texi:6363
  12230. #, no-wrap
  12231. msgid ""
  12232. "# will expose paths as /home/foo/wd, /home/foo/test, and /home/foo/target\n"
  12233. "cd $HOME/wd\n"
  12234. "guix shell --container --user=foo \\\n"
  12235. " --expose=$HOME/test \\\n"
  12236. " --expose=/tmp/target=$HOME/target\n"
  12237. msgstr ""
  12238. #. type: table
  12239. #: guix-git/doc/guix.texi:6368 guix-git/doc/guix.texi:6865
  12240. 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."
  12241. msgstr ""
  12242. #. type: item
  12243. #: guix-git/doc/guix.texi:6369 guix-git/doc/guix.texi:6866
  12244. #, no-wrap
  12245. msgid "--no-cwd"
  12246. msgstr ""
  12247. #. type: table
  12248. #: guix-git/doc/guix.texi:6376 guix-git/doc/guix.texi:6873
  12249. 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}."
  12250. msgstr ""
  12251. #. type: item
  12252. #: guix-git/doc/guix.texi:6377 guix-git/doc/guix.texi:6874
  12253. #: guix-git/doc/guix.texi:43820
  12254. #, no-wrap
  12255. msgid "--expose=@var{source}[=@var{target}]"
  12256. msgstr ""
  12257. #. type: itemx
  12258. #: guix-git/doc/guix.texi:6378 guix-git/doc/guix.texi:6875
  12259. #: guix-git/doc/guix.texi:43821
  12260. #, no-wrap
  12261. msgid "--share=@var{source}[=@var{target}]"
  12262. msgstr ""
  12263. #. type: table
  12264. #: guix-git/doc/guix.texi:6384 guix-git/doc/guix.texi:6881
  12265. 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."
  12266. msgstr ""
  12267. #. type: table
  12268. #: guix-git/doc/guix.texi:6388 guix-git/doc/guix.texi:6885
  12269. 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:"
  12270. msgstr ""
  12271. #. type: example
  12272. #: guix-git/doc/guix.texi:6391
  12273. #, no-wrap
  12274. msgid "guix shell --container --expose=$HOME=/exchange guile -- guile\n"
  12275. msgstr ""
  12276. #. type: cindex
  12277. #: guix-git/doc/guix.texi:6393
  12278. #, fuzzy, no-wrap
  12279. #| msgid "Invoking guix size"
  12280. msgid "symbolic links, guix shell"
  12281. msgstr "调用guix size"
  12282. #. type: item
  12283. #: guix-git/doc/guix.texi:6394 guix-git/doc/guix.texi:7287
  12284. #, no-wrap
  12285. msgid "--symlink=@var{spec}"
  12286. msgstr ""
  12287. #. type: itemx
  12288. #: guix-git/doc/guix.texi:6395 guix-git/doc/guix.texi:7288
  12289. #, no-wrap
  12290. msgid "-S @var{spec}"
  12291. msgstr ""
  12292. #. type: table
  12293. #: guix-git/doc/guix.texi:6398
  12294. msgid "For containers, create the symbolic links specified by @var{spec}, as documented in @ref{pack-symlink-option}."
  12295. msgstr ""
  12296. #. type: cindex
  12297. #: guix-git/doc/guix.texi:6399
  12298. #, no-wrap
  12299. msgid "file system hierarchy standard (FHS)"
  12300. msgstr ""
  12301. #. type: cindex
  12302. #: guix-git/doc/guix.texi:6400
  12303. #, no-wrap
  12304. msgid "FHS (file system hierarchy standard)"
  12305. msgstr ""
  12306. #. type: item
  12307. #: guix-git/doc/guix.texi:6401 guix-git/doc/guix.texi:6890
  12308. #, fuzzy, no-wrap
  12309. #| msgid "templates"
  12310. msgid "--emulate-fhs"
  12311. msgstr "模板"
  12312. #. type: item
  12313. #: guix-git/doc/guix.texi:6402 guix-git/doc/guix.texi:6891
  12314. #, no-wrap
  12315. msgid "-F"
  12316. msgstr ""
  12317. #. type: table
  12318. #: guix-git/doc/guix.texi:6408
  12319. msgid "When used with @option{--container}, emulate a @uref{https://refspecs.linuxfoundation.org/fhs.shtml, Filesystem Hierarchy Standard (FHS)} configuration within the container, providing @file{/bin}, @file{/lib}, and other directories and files specified by the FHS."
  12320. msgstr ""
  12321. #. type: table
  12322. #: guix-git/doc/guix.texi:6419
  12323. msgid "As Guix deviates from the FHS specification, this option sets up the container to more closely mimic that of other GNU/Linux distributions. This is useful for reproducing other development environments, testing, and using programs which expect the FHS specification to be followed. With this option, the container will include a version of glibc that will read @file{/etc/ld.so.cache} within the container for the shared library cache (contrary to glibc in regular Guix usage) and set up the expected FHS directories: @file{/bin}, @file{/etc}, @file{/lib}, and @file{/usr} from the container's profile."
  12324. msgstr ""
  12325. #. type: cindex
  12326. #: guix-git/doc/guix.texi:6420
  12327. #, fuzzy, no-wrap
  12328. #| msgid "Invoking @command{guix build}"
  12329. msgid "nested containers, for @command{guix shell}"
  12330. msgstr "调用@command{guix build}"
  12331. #. type: cindex
  12332. #: guix-git/doc/guix.texi:6421
  12333. #, fuzzy, no-wrap
  12334. #| msgid "Invoking @command{guix build}"
  12335. msgid "container nesting, for @command{guix shell}"
  12336. msgstr "调用@command{guix build}"
  12337. #. type: item
  12338. #: guix-git/doc/guix.texi:6422
  12339. #, no-wrap
  12340. msgid "--nesting"
  12341. msgstr ""
  12342. #. type: itemx
  12343. #: guix-git/doc/guix.texi:6423
  12344. #, no-wrap
  12345. msgid "-W"
  12346. msgstr ""
  12347. #. type: table
  12348. #: guix-git/doc/guix.texi:6429
  12349. msgid "When used with @option{--container}, provide Guix @emph{inside} the container and arrange so that it can interact with the build daemon that runs outside the container. This is useful if you want, within your isolated container, to create other containers, as in this sample session:"
  12350. msgstr ""
  12351. #. type: example
  12352. #: guix-git/doc/guix.texi:6435
  12353. #, no-wrap
  12354. msgid ""
  12355. "$ guix shell -CW coreutils\n"
  12356. "[env]$ guix shell -C guile -- guile -c '(display \"hello!\\n\")'\n"
  12357. "hello!\n"
  12358. "[env]$ exit\n"
  12359. msgstr ""
  12360. #. type: table
  12361. #: guix-git/doc/guix.texi:6440
  12362. msgid "The session above starts a container with @code{coreutils} programs available in @env{PATH}. From there, we spawn @command{guix shell} to create a @emph{nested} container that provides nothing but Guile."
  12363. msgstr ""
  12364. #. type: table
  12365. #: guix-git/doc/guix.texi:6443
  12366. msgid "Another example is evaluating a @file{guix.scm} file that is untrusted, as shown here:"
  12367. msgstr ""
  12368. #. type: example
  12369. #: guix-git/doc/guix.texi:6446
  12370. #, fuzzy, no-wrap
  12371. #| msgid "guix shell -D guix --pure\n"
  12372. msgid "guix shell -CW -- guix build -f guix.scm\n"
  12373. msgstr "guix shell -D guix --pure\n"
  12374. #. type: table
  12375. #: guix-git/doc/guix.texi:6450
  12376. msgid "The @command{guix build} command as executed above can only access the current directory."
  12377. msgstr ""
  12378. #. type: table
  12379. #: guix-git/doc/guix.texi:6452
  12380. msgid "Under the hood, the @option{-W} option does several things:"
  12381. msgstr ""
  12382. #. type: itemize
  12383. #: guix-git/doc/guix.texi:6457
  12384. #, fuzzy
  12385. #| msgid "@code{daemon-socket} (default: @code{\"/var/guix/daemon-socket/socket\"})"
  12386. msgid "map the daemon's socket (by default @file{/var/guix/daemon-socket/socket}) inside the container;"
  12387. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  12388. #. type: itemize
  12389. #: guix-git/doc/guix.texi:6461
  12390. msgid "map the whole store (by default @file{/gnu/store}) inside the container such that store items made available by nested @command{guix} invocations are visible;"
  12391. msgstr ""
  12392. #. type: itemize
  12393. #: guix-git/doc/guix.texi:6465
  12394. msgid "add the currently-used @command{guix} command to the profile in the container, such that @command{guix describe} returns the same state inside and outside the container;"
  12395. msgstr ""
  12396. #. type: itemize
  12397. #: guix-git/doc/guix.texi:6469
  12398. msgid "share the cache (by default @file{~/.cache/guix}) with the host, to speed up operations such as @command{guix time-machine} and @command{guix shell}."
  12399. msgstr ""
  12400. #. type: item
  12401. #: guix-git/doc/guix.texi:6471
  12402. #, fuzzy, no-wrap
  12403. #| msgid "--no-build-hook"
  12404. msgid "--rebuild-cache"
  12405. msgstr "--no-build-hook"
  12406. #. type: cindex
  12407. #: guix-git/doc/guix.texi:6472
  12408. #, fuzzy, no-wrap
  12409. msgid "caching, of profiles"
  12410. msgstr "代码格式化"
  12411. #. type: cindex
  12412. #: guix-git/doc/guix.texi:6473
  12413. #, fuzzy, no-wrap
  12414. #| msgid "Invoking @command{guix build}"
  12415. msgid "caching, in @command{guix shell}"
  12416. msgstr "调用@command{guix build}"
  12417. #. type: table
  12418. #: guix-git/doc/guix.texi:6479
  12419. 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."
  12420. msgstr ""
  12421. #. type: table
  12422. #: guix-git/doc/guix.texi:6485
  12423. 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."
  12424. msgstr ""
  12425. #. type: item
  12426. #: guix-git/doc/guix.texi:6486 guix-git/doc/guix.texi:6672
  12427. #: guix-git/doc/guix.texi:7316 guix-git/doc/guix.texi:13328
  12428. #: guix-git/doc/guix.texi:40371
  12429. #, no-wrap
  12430. msgid "--root=@var{file}"
  12431. msgstr ""
  12432. #. type: itemx
  12433. #: guix-git/doc/guix.texi:6487 guix-git/doc/guix.texi:6673
  12434. #: guix-git/doc/guix.texi:7317 guix-git/doc/guix.texi:13329
  12435. #: guix-git/doc/guix.texi:40372
  12436. #, no-wrap
  12437. msgid "-r @var{file}"
  12438. msgstr ""
  12439. #. type: cindex
  12440. #: guix-git/doc/guix.texi:6488 guix-git/doc/guix.texi:6674
  12441. #, no-wrap
  12442. msgid "persistent environment"
  12443. msgstr ""
  12444. #. type: cindex
  12445. #: guix-git/doc/guix.texi:6489 guix-git/doc/guix.texi:6675
  12446. #, no-wrap
  12447. msgid "garbage collector root, for environments"
  12448. msgstr ""
  12449. #. type: table
  12450. #: guix-git/doc/guix.texi:6492 guix-git/doc/guix.texi:6678
  12451. msgid "Make @var{file} a symlink to the profile for this environment, and register it as a garbage collector root."
  12452. msgstr ""
  12453. #. type: table
  12454. #: guix-git/doc/guix.texi:6495 guix-git/doc/guix.texi:6681
  12455. msgid "This is useful if you want to protect your environment from garbage collection, to make it ``persistent''."
  12456. msgstr ""
  12457. #. type: table
  12458. #: guix-git/doc/guix.texi:6501
  12459. 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."
  12460. msgstr ""
  12461. #. type: table
  12462. #: guix-git/doc/guix.texi:6508
  12463. 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."
  12464. msgstr ""
  12465. #. type: table
  12466. #: guix-git/doc/guix.texi:6510
  12467. #, fuzzy
  12468. msgid "@xref{Invoking guix gc}, for more on GC roots."
  12469. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  12470. #. type: Plain text
  12471. #: guix-git/doc/guix.texi:6515
  12472. 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})."
  12473. msgstr ""
  12474. #. type: section
  12475. #: guix-git/doc/guix.texi:6517
  12476. #, no-wrap
  12477. msgid "Invoking @command{guix environment}"
  12478. msgstr ""
  12479. #. type: Plain text
  12480. #: guix-git/doc/guix.texi:6523
  12481. msgid "The purpose of @command{guix environment} is to assist in creating development environments."
  12482. msgstr ""
  12483. #. type: quotation
  12484. #: guix-git/doc/guix.texi:6524
  12485. #, no-wrap
  12486. msgid "Deprecation warning"
  12487. msgstr ""
  12488. #. type: quotation
  12489. #: guix-git/doc/guix.texi:6528
  12490. 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}."
  12491. msgstr ""
  12492. #. type: quotation
  12493. #: guix-git/doc/guix.texi:6533
  12494. 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."
  12495. msgstr ""
  12496. #. type: example
  12497. #: guix-git/doc/guix.texi:6539
  12498. #, no-wrap
  12499. msgid "guix environment @var{options} @var{package}@dots{}\n"
  12500. msgstr ""
  12501. #. type: Plain text
  12502. #: guix-git/doc/guix.texi:6543
  12503. msgid "The following example spawns a new shell set up for the development of GNU@tie{}Guile:"
  12504. msgstr ""
  12505. #. type: example
  12506. #: guix-git/doc/guix.texi:6546
  12507. #, no-wrap
  12508. msgid "guix environment guile\n"
  12509. msgstr ""
  12510. #. type: Plain text
  12511. #: guix-git/doc/guix.texi:6563
  12512. 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.}."
  12513. msgstr ""
  12514. #. type: Plain text
  12515. #: guix-git/doc/guix.texi:6569
  12516. 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."
  12517. msgstr ""
  12518. #. type: Plain text
  12519. #: guix-git/doc/guix.texi:6576
  12520. 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}):"
  12521. msgstr ""
  12522. #. type: Plain text
  12523. #: guix-git/doc/guix.texi:6595
  12524. 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:"
  12525. msgstr ""
  12526. #. type: example
  12527. #: guix-git/doc/guix.texi:6598
  12528. #, no-wrap
  12529. msgid "guix environment guile emacs\n"
  12530. msgstr ""
  12531. #. type: Plain text
  12532. #: guix-git/doc/guix.texi:6603
  12533. 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:"
  12534. msgstr ""
  12535. #. type: example
  12536. #: guix-git/doc/guix.texi:6606
  12537. #, no-wrap
  12538. msgid "guix environment guile -- make -j4\n"
  12539. msgstr ""
  12540. #. type: Plain text
  12541. #: guix-git/doc/guix.texi:6612
  12542. 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:"
  12543. msgstr ""
  12544. #. type: example
  12545. #: guix-git/doc/guix.texi:6615
  12546. #, no-wrap
  12547. msgid "guix environment --ad-hoc python-numpy python -- python3\n"
  12548. msgstr ""
  12549. #. type: Plain text
  12550. #: guix-git/doc/guix.texi:6626
  12551. 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:"
  12552. msgstr ""
  12553. #. type: example
  12554. #: guix-git/doc/guix.texi:6629
  12555. #, fuzzy, no-wrap
  12556. msgid "guix environment --pure guix --ad-hoc git strace\n"
  12557. msgstr "guix environment guix --ad-hoc help2man git strace\n"
  12558. #. type: Plain text
  12559. #: guix-git/doc/guix.texi:6639
  12560. 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:"
  12561. msgstr ""
  12562. #. type: example
  12563. #: guix-git/doc/guix.texi:6642
  12564. #, no-wrap
  12565. msgid "guix environment --ad-hoc --container guile -- guile\n"
  12566. msgstr ""
  12567. #. type: quotation
  12568. #: guix-git/doc/guix.texi:6646
  12569. msgid "The @option{--container} option requires Linux-libre 3.19 or newer."
  12570. msgstr ""
  12571. #. type: cindex
  12572. #: guix-git/doc/guix.texi:6648
  12573. #, fuzzy, no-wrap
  12574. msgid "certificates"
  12575. msgstr "X.509证书"
  12576. #. type: Plain text
  12577. #: guix-git/doc/guix.texi:6655
  12578. 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."
  12579. msgstr ""
  12580. #. type: example
  12581. #: guix-git/doc/guix.texi:6662
  12582. #, no-wrap
  12583. msgid ""
  12584. "guix environment --preserve='^DISPLAY$' --container --network \\\n"
  12585. " --expose=/etc/machine-id \\\n"
  12586. " --expose=/etc/ssl/certs/ \\\n"
  12587. " --share=$HOME/.local/share/eolie/=$HOME/.local/share/eolie/ \\\n"
  12588. " --ad-hoc eolie nss-certs dbus -- eolie\n"
  12589. msgstr ""
  12590. #. type: table
  12591. #: guix-git/doc/guix.texi:6671
  12592. msgid "Set up the environment and check whether the shell would clobber environment variables. @xref{Invoking guix shell, @option{--check}}, for more info."
  12593. msgstr ""
  12594. #. type: table
  12595. #: guix-git/doc/guix.texi:6687
  12596. 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."
  12597. msgstr ""
  12598. #. type: example
  12599. #: guix-git/doc/guix.texi:6697
  12600. #, no-wrap
  12601. msgid "guix environment -e '(@@ (gnu packages maths) petsc-openmpi)'\n"
  12602. msgstr ""
  12603. #. type: example
  12604. #: guix-git/doc/guix.texi:6706
  12605. #, no-wrap
  12606. msgid "guix environment --ad-hoc -e '(@@ (gnu) %base-packages)'\n"
  12607. msgstr ""
  12608. #. type: example
  12609. #: guix-git/doc/guix.texi:6715
  12610. #, no-wrap
  12611. msgid "guix environment --ad-hoc -e '(list (@@ (gnu packages bash) bash) \"include\")'\n"
  12612. msgstr ""
  12613. #. type: item
  12614. #: guix-git/doc/guix.texi:6717
  12615. #, no-wrap
  12616. msgid "--load=@var{file}"
  12617. msgstr ""
  12618. #. type: itemx
  12619. #: guix-git/doc/guix.texi:6718
  12620. #, no-wrap
  12621. msgid "-l @var{file}"
  12622. msgstr ""
  12623. #. type: table
  12624. #: guix-git/doc/guix.texi:6721
  12625. msgid "Create an environment for the package or list of packages that the code within @var{file} evaluates to."
  12626. msgstr ""
  12627. #. type: table
  12628. #: guix-git/doc/guix.texi:6742
  12629. msgid "@xref{shell-export-manifest, @command{guix shell --export-manifest}}, for information on how to ``convert'' command-line options into a manifest."
  12630. msgstr ""
  12631. #. type: item
  12632. #: guix-git/doc/guix.texi:6743
  12633. #, no-wrap
  12634. msgid "--ad-hoc"
  12635. msgstr ""
  12636. #. type: table
  12637. #: guix-git/doc/guix.texi:6748
  12638. 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."
  12639. msgstr ""
  12640. #. type: table
  12641. #: guix-git/doc/guix.texi:6750
  12642. msgid "For instance, the command:"
  12643. msgstr ""
  12644. #. type: example
  12645. #: guix-git/doc/guix.texi:6753
  12646. #, no-wrap
  12647. msgid "guix environment --ad-hoc guile guile-sdl -- guile\n"
  12648. msgstr ""
  12649. #. type: table
  12650. #: guix-git/doc/guix.texi:6757
  12651. msgid "runs @command{guile} in an environment where Guile and Guile-SDL are available."
  12652. msgstr ""
  12653. #. type: table
  12654. #: guix-git/doc/guix.texi:6762
  12655. 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})."
  12656. msgstr ""
  12657. #. type: table
  12658. #: guix-git/doc/guix.texi:6768
  12659. 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."
  12660. msgstr ""
  12661. #. type: example
  12662. #: guix-git/doc/guix.texi:6790
  12663. #, no-wrap
  12664. msgid ""
  12665. "guix environment --pure --preserve=^SLURM --ad-hoc openmpi @dots{} \\\n"
  12666. " -- mpirun @dots{}\n"
  12667. msgstr ""
  12668. #. type: table
  12669. #: guix-git/doc/guix.texi:6833
  12670. 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."
  12671. msgstr ""
  12672. #. type: example
  12673. #: guix-git/doc/guix.texi:6860
  12674. #, no-wrap
  12675. msgid ""
  12676. "# will expose paths as /home/foo/wd, /home/foo/test, and /home/foo/target\n"
  12677. "cd $HOME/wd\n"
  12678. "guix environment --container --user=foo \\\n"
  12679. " --expose=$HOME/test \\\n"
  12680. " --expose=/tmp/target=$HOME/target\n"
  12681. msgstr ""
  12682. #. type: example
  12683. #: guix-git/doc/guix.texi:6888
  12684. #, no-wrap
  12685. msgid "guix environment --container --expose=$HOME=/exchange --ad-hoc guile -- guile\n"
  12686. msgstr ""
  12687. #. type: table
  12688. #: guix-git/doc/guix.texi:6905
  12689. msgid "For containers, emulate a Filesystem Hierarchy Standard (FHS) configuration within the container, see @uref{https://refspecs.linuxfoundation.org/fhs.shtml, the official specification}. As Guix deviates from the FHS specification, this option sets up the container to more closely mimic that of other GNU/Linux distributions. This is useful for reproducing other development environments, testing, and using programs which expect the FHS specification to be followed. With this option, the container will include a version of @code{glibc} which will read @code{/etc/ld.so.cache} within the container for the shared library cache (contrary to @code{glibc} in regular Guix usage) and set up the expected FHS directories: @code{/bin}, @code{/etc}, @code{/lib}, and @code{/usr} from the container's profile."
  12690. msgstr ""
  12691. #. type: Plain text
  12692. #: guix-git/doc/guix.texi:6912
  12693. 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})."
  12694. msgstr ""
  12695. #. type: section
  12696. #: guix-git/doc/guix.texi:6914
  12697. #, no-wrap
  12698. msgid "Invoking @command{guix pack}"
  12699. msgstr ""
  12700. #. type: command{#1}
  12701. #: guix-git/doc/guix.texi:6916
  12702. #, fuzzy, no-wrap
  12703. #| msgid "Invoking guix pack"
  12704. msgid "guix pack"
  12705. msgstr "调用guix pack"
  12706. #. type: Plain text
  12707. #: guix-git/doc/guix.texi:6922
  12708. 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."
  12709. msgstr ""
  12710. #. type: quotation
  12711. #: guix-git/doc/guix.texi:6927
  12712. 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}."
  12713. msgstr ""
  12714. #. type: cindex
  12715. #: guix-git/doc/guix.texi:6929
  12716. #, no-wrap
  12717. msgid "pack"
  12718. msgstr ""
  12719. #. type: cindex
  12720. #: guix-git/doc/guix.texi:6930
  12721. #, no-wrap
  12722. msgid "bundle"
  12723. msgstr ""
  12724. #. type: cindex
  12725. #: guix-git/doc/guix.texi:6931
  12726. #, no-wrap
  12727. msgid "application bundle"
  12728. msgstr ""
  12729. #. type: cindex
  12730. #: guix-git/doc/guix.texi:6932
  12731. #, no-wrap
  12732. msgid "software bundle"
  12733. msgstr ""
  12734. #. type: Plain text
  12735. #: guix-git/doc/guix.texi:6941
  12736. 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."
  12737. msgstr ""
  12738. #. type: Plain text
  12739. #: guix-git/doc/guix.texi:6944
  12740. msgid "For example, to create a bundle containing Guile, Emacs, Geiser, and all their dependencies, you can run:"
  12741. msgstr ""
  12742. #. type: example
  12743. #: guix-git/doc/guix.texi:6949
  12744. #, no-wrap
  12745. msgid ""
  12746. "$ guix pack guile emacs emacs-geiser\n"
  12747. "@dots{}\n"
  12748. "/gnu/store/@dots{}-pack.tar.gz\n"
  12749. msgstr ""
  12750. #. type: Plain text
  12751. #: guix-git/doc/guix.texi:6957
  12752. 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})."
  12753. msgstr ""
  12754. #. type: Plain text
  12755. #: guix-git/doc/guix.texi:6962
  12756. 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:"
  12757. msgstr ""
  12758. #. type: example
  12759. #: guix-git/doc/guix.texi:6965
  12760. #, fuzzy, no-wrap
  12761. msgid "guix pack -S /opt/gnu/bin=bin guile emacs emacs-geiser\n"
  12762. msgstr "guix package -i emacs guile emacs-geiser\n"
  12763. #. type: Plain text
  12764. #: guix-git/doc/guix.texi:6969
  12765. msgid "That way, users can happily type @file{/opt/gnu/bin/guile} and enjoy."
  12766. msgstr ""
  12767. #. type: cindex
  12768. #: guix-git/doc/guix.texi:6970
  12769. #, no-wrap
  12770. msgid "relocatable binaries, with @command{guix pack}"
  12771. msgstr ""
  12772. #. type: Plain text
  12773. #: guix-git/doc/guix.texi:6978
  12774. 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}."
  12775. msgstr ""
  12776. #. type: cindex
  12777. #: guix-git/doc/guix.texi:6979
  12778. #, no-wrap
  12779. msgid "Docker, build an image with guix pack"
  12780. msgstr ""
  12781. #. type: Plain text
  12782. #: guix-git/doc/guix.texi:6982
  12783. msgid "Alternatively, you can produce a pack in the Docker image format using the following command:"
  12784. msgstr ""
  12785. #. type: example
  12786. #: guix-git/doc/guix.texi:6985
  12787. #, no-wrap
  12788. msgid "guix pack -f docker -S /bin=bin guile guile-readline\n"
  12789. msgstr ""
  12790. #. type: Plain text
  12791. #: guix-git/doc/guix.texi:6990
  12792. msgid "The result is a tarball that can be passed to the @command{docker load} command, followed by @code{docker run}:"
  12793. msgstr ""
  12794. #. type: example
  12795. #: guix-git/doc/guix.texi:6994
  12796. #, no-wrap
  12797. msgid ""
  12798. "docker load < @var{file}\n"
  12799. "docker run -ti guile-guile-readline /bin/guile\n"
  12800. msgstr ""
  12801. #. type: Plain text
  12802. #: guix-git/doc/guix.texi:7001
  12803. 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."
  12804. msgstr ""
  12805. #. type: cindex
  12806. #: guix-git/doc/guix.texi:7002
  12807. #, no-wrap
  12808. msgid "Singularity, build an image with guix pack"
  12809. msgstr ""
  12810. #. type: cindex
  12811. #: guix-git/doc/guix.texi:7003
  12812. #, no-wrap
  12813. msgid "SquashFS, build an image with guix pack"
  12814. msgstr ""
  12815. #. type: Plain text
  12816. #: guix-git/doc/guix.texi:7006
  12817. msgid "Yet another option is to produce a SquashFS image with the following command:"
  12818. msgstr ""
  12819. #. type: example
  12820. #: guix-git/doc/guix.texi:7009
  12821. #, fuzzy, no-wrap
  12822. msgid "guix pack -f squashfs bash guile emacs emacs-geiser\n"
  12823. msgstr "guix package -i emacs guile emacs-geiser\n"
  12824. #. type: Plain text
  12825. #: guix-git/doc/guix.texi:7017
  12826. 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}."
  12827. msgstr ""
  12828. #. type: Plain text
  12829. #: guix-git/doc/guix.texi:7019
  12830. msgid "Several command-line options allow you to customize your pack:"
  12831. msgstr ""
  12832. #. type: table
  12833. #: guix-git/doc/guix.texi:7024
  12834. msgid "Produce a pack in the given @var{format}."
  12835. msgstr ""
  12836. #. type: table
  12837. #: guix-git/doc/guix.texi:7026
  12838. msgid "The available formats are:"
  12839. msgstr ""
  12840. #. type: item
  12841. #: guix-git/doc/guix.texi:7028
  12842. #, no-wrap
  12843. msgid "tarball"
  12844. msgstr ""
  12845. #. type: table
  12846. #: guix-git/doc/guix.texi:7031
  12847. msgid "This is the default format. It produces a tarball containing all the specified binaries and symlinks."
  12848. msgstr ""
  12849. #. type: item
  12850. #: guix-git/doc/guix.texi:7032
  12851. #, no-wrap
  12852. msgid "docker"
  12853. msgstr ""
  12854. #. type: table
  12855. #: guix-git/doc/guix.texi:7038
  12856. 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."
  12857. msgstr ""
  12858. #. type: item
  12859. #: guix-git/doc/guix.texi:7039
  12860. #, no-wrap
  12861. msgid "squashfs"
  12862. msgstr ""
  12863. #. type: table
  12864. #: guix-git/doc/guix.texi:7043
  12865. 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."
  12866. msgstr ""
  12867. #. type: quotation
  12868. #: guix-git/doc/guix.texi:7049
  12869. 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:"
  12870. msgstr ""
  12871. #. type: example
  12872. #: guix-git/doc/guix.texi:7052
  12873. #, no-wrap
  12874. msgid "guix pack -f squashfs bash @dots{}\n"
  12875. msgstr ""
  12876. #. type: quotation
  12877. #: guix-git/doc/guix.texi:7057
  12878. 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."
  12879. msgstr ""
  12880. #. type: item
  12881. #: guix-git/doc/guix.texi:7059
  12882. #, fuzzy, no-wrap
  12883. #| msgid "--debug"
  12884. msgid "deb"
  12885. msgstr "--debug"
  12886. #. type: cindex
  12887. #: guix-git/doc/guix.texi:7060
  12888. #, no-wrap
  12889. msgid "Debian, build a .deb package with guix pack"
  12890. msgstr ""
  12891. #. type: table
  12892. #: guix-git/doc/guix.texi:7068
  12893. 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."
  12894. msgstr ""
  12895. #. type: example
  12896. #: guix-git/doc/guix.texi:7071
  12897. #, no-wrap
  12898. msgid "guix pack -f deb -C xz -S /usr/bin/hello=bin/hello hello\n"
  12899. msgstr ""
  12900. #. type: quotation
  12901. #: guix-git/doc/guix.texi:7079
  12902. 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. You can nonetheless pack as many Guix packages as you want in one such archive."
  12903. msgstr ""
  12904. #. type: quotation
  12905. #: guix-git/doc/guix.texi:7087
  12906. 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."
  12907. msgstr ""
  12908. #. type: item
  12909. #: guix-git/doc/guix.texi:7089
  12910. #, no-wrap
  12911. msgid "rpm"
  12912. msgstr ""
  12913. #. type: cindex
  12914. #: guix-git/doc/guix.texi:7090
  12915. #, no-wrap
  12916. msgid "RPM, build an RPM archive with guix pack"
  12917. msgstr ""
  12918. #. type: table
  12919. #: guix-git/doc/guix.texi:7096
  12920. msgid "This produces an RPM archive (a package with the @samp{.rpm} file extension) containing all the specified binaries and symbolic links, that can be installed on top of any RPM-based GNU/Linux distribution. The RPM format embeds checksums for every file it contains, which the @command{rpm} command uses to validate the integrity of the archive."
  12921. msgstr ""
  12922. #. type: table
  12923. #: guix-git/doc/guix.texi:7101
  12924. msgid "Advanced RPM-related options are revealed via the @option{--help-rpm-format} option. These options allow embedding maintainer scripts that can run before or after the installation of the RPM archive, for example."
  12925. msgstr ""
  12926. #. type: table
  12927. #: guix-git/doc/guix.texi:7105
  12928. msgid "The RPM format supports relocatable packages via the @option{--prefix} option of the @command{rpm} command, which can be handy to install an RPM package to a specific prefix."
  12929. msgstr ""
  12930. #. type: example
  12931. #: guix-git/doc/guix.texi:7108
  12932. #, no-wrap
  12933. msgid "guix pack -f rpm -R -C xz -S /usr/bin/hello=bin/hello hello\n"
  12934. msgstr ""
  12935. #. type: example
  12936. #: guix-git/doc/guix.texi:7112
  12937. #, no-wrap
  12938. msgid "sudo rpm --install --prefix=/opt /gnu/store/...-hello.rpm\n"
  12939. msgstr ""
  12940. #. type: quotation
  12941. #: guix-git/doc/guix.texi:7119
  12942. msgid "Contrary to Debian packages, conflicting but @emph{identical} files in RPM packages can be installed simultaneously, which means multiple @command{guix pack}-produced RPM packages can usually be installed side by side without any problem."
  12943. msgstr ""
  12944. #. type: quotation
  12945. #: guix-git/doc/guix.texi:7129
  12946. msgid "@command{rpm} assumes ownership of any files contained in the pack, which means it will remove @file{/gnu/store} upon uninstalling a Guix-generated RPM package, unless the RPM package was installed with the @option{--prefix} option of the @command{rpm} command. It is unwise to install Guix-produced @samp{.rpm} packages on a system where @file{/gnu/store} is shared by other software, such as a Guix installation or other, non-rpm packs."
  12947. msgstr ""
  12948. #. type: cindex
  12949. #: guix-git/doc/guix.texi:7133
  12950. #, no-wrap
  12951. msgid "relocatable binaries"
  12952. msgstr ""
  12953. #. type: item
  12954. #: guix-git/doc/guix.texi:7134
  12955. #, no-wrap
  12956. msgid "--relocatable"
  12957. msgstr ""
  12958. #. type: table
  12959. #: guix-git/doc/guix.texi:7138
  12960. msgid "Produce @dfn{relocatable binaries}---i.e., binaries that can be placed anywhere in the file system hierarchy and run from there."
  12961. msgstr ""
  12962. #. type: table
  12963. #: guix-git/doc/guix.texi:7146
  12964. 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."
  12965. msgstr ""
  12966. #. type: table
  12967. #: guix-git/doc/guix.texi:7148
  12968. msgid "For example, if you create a pack containing Bash with:"
  12969. msgstr ""
  12970. #. type: example
  12971. #: guix-git/doc/guix.texi:7151
  12972. #, no-wrap
  12973. msgid "guix pack -RR -S /mybin=bin bash\n"
  12974. msgstr ""
  12975. #. type: table
  12976. #: guix-git/doc/guix.texi:7156
  12977. msgid "...@: you can copy that pack to a machine that lacks Guix, and from your home directory as a normal user, run:"
  12978. msgstr ""
  12979. #. type: example
  12980. #: guix-git/doc/guix.texi:7160
  12981. #, no-wrap
  12982. msgid ""
  12983. "tar xf pack.tar.gz\n"
  12984. "./mybin/sh\n"
  12985. msgstr ""
  12986. #. type: table
  12987. #: guix-git/doc/guix.texi:7168
  12988. 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."
  12989. msgstr ""
  12990. #. type: quotation
  12991. #: guix-git/doc/guix.texi:7174
  12992. 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."
  12993. msgstr ""
  12994. #. type: quotation
  12995. #: guix-git/doc/guix.texi:7180
  12996. 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:"
  12997. msgstr ""
  12998. #. type: item
  12999. #: guix-git/doc/guix.texi:7182 guix-git/doc/guix.texi:20115
  13000. #, no-wrap
  13001. msgid "default"
  13002. msgstr ""
  13003. #. type: table
  13004. #: guix-git/doc/guix.texi:7185
  13005. msgid "Try user namespaces and fall back to PRoot if user namespaces are not supported (see below)."
  13006. msgstr ""
  13007. #. type: item
  13008. #: guix-git/doc/guix.texi:7186
  13009. #, fuzzy, no-wrap
  13010. msgid "performance"
  13011. msgstr "格式化代码"
  13012. #. type: table
  13013. #: guix-git/doc/guix.texi:7189
  13014. msgid "Try user namespaces and fall back to Fakechroot if user namespaces are not supported (see below)."
  13015. msgstr ""
  13016. #. type: item
  13017. #: guix-git/doc/guix.texi:7190
  13018. #, fuzzy, no-wrap
  13019. msgid "userns"
  13020. msgstr "用户"
  13021. #. type: table
  13022. #: guix-git/doc/guix.texi:7193
  13023. msgid "Run the program through user namespaces and abort if they are not supported."
  13024. msgstr ""
  13025. #. type: item
  13026. #: guix-git/doc/guix.texi:7194
  13027. #, fuzzy, no-wrap
  13028. msgid "proot"
  13029. msgstr "chroot"
  13030. #. type: table
  13031. #: guix-git/doc/guix.texi:7201
  13032. 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."
  13033. msgstr ""
  13034. #. type: item
  13035. #: guix-git/doc/guix.texi:7202
  13036. #, fuzzy, no-wrap
  13037. msgid "fakechroot"
  13038. msgstr "chroot"
  13039. #. type: table
  13040. #: guix-git/doc/guix.texi:7210
  13041. 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."
  13042. msgstr ""
  13043. #. type: vindex
  13044. #: guix-git/doc/guix.texi:7212
  13045. #, no-wrap
  13046. msgid "GUIX_EXECUTION_ENGINE"
  13047. msgstr ""
  13048. #. type: quotation
  13049. #: guix-git/doc/guix.texi:7216
  13050. 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."
  13051. msgstr ""
  13052. #. type: cindex
  13053. #: guix-git/doc/guix.texi:7218
  13054. #, no-wrap
  13055. msgid "entry point, for Docker images"
  13056. msgstr ""
  13057. #. type: item
  13058. #: guix-git/doc/guix.texi:7219
  13059. #, fuzzy, no-wrap
  13060. msgid "--entry-point=@var{command}"
  13061. msgstr "--timeout=@var{seconds}"
  13062. #. type: table
  13063. #: guix-git/doc/guix.texi:7224
  13064. 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."
  13065. msgstr ""
  13066. #. type: table
  13067. #: guix-git/doc/guix.texi:7228
  13068. 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:"
  13069. msgstr ""
  13070. #. type: example
  13071. #: guix-git/doc/guix.texi:7231
  13072. #, no-wrap
  13073. msgid "guix pack -f docker --entry-point=bin/guile guile\n"
  13074. msgstr ""
  13075. #. type: table
  13076. #: guix-git/doc/guix.texi:7235
  13077. msgid "The resulting pack can easily be loaded and @code{docker run} with no extra arguments will spawn @code{bin/guile}:"
  13078. msgstr ""
  13079. #. type: example
  13080. #: guix-git/doc/guix.texi:7239
  13081. #, no-wrap
  13082. msgid ""
  13083. "docker load -i pack.tar.gz\n"
  13084. "docker run @var{image-id}\n"
  13085. msgstr ""
  13086. #. type: table
  13087. #: guix-git/doc/guix.texi:7244 guix-git/doc/guix.texi:14332
  13088. #: guix-git/doc/guix.texi:14993 guix-git/doc/guix.texi:15403
  13089. msgid "Consider the package @var{expr} evaluates to."
  13090. msgstr ""
  13091. #. type: table
  13092. #: guix-git/doc/guix.texi:7248
  13093. 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}})."
  13094. msgstr ""
  13095. #. type: anchor{#1}
  13096. #: guix-git/doc/guix.texi:7250
  13097. #, fuzzy
  13098. #| msgid "-c @var{n}"
  13099. msgid "pack-manifest"
  13100. msgstr "-c @var{n}"
  13101. #. type: table
  13102. #: guix-git/doc/guix.texi:7255
  13103. 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."
  13104. msgstr ""
  13105. #. type: table
  13106. #: guix-git/doc/guix.texi:7263
  13107. 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."
  13108. msgstr ""
  13109. #. type: table
  13110. #: guix-git/doc/guix.texi:7268
  13111. msgid "@xref{Writing Manifests}, for information on how to write a manifest. @xref{shell-export-manifest, @command{guix shell --export-manifest}}, for information on how to ``convert'' command-line options into a manifest."
  13112. msgstr ""
  13113. #. type: item
  13114. #: guix-git/doc/guix.texi:7274 guix-git/doc/guix.texi:13284
  13115. #: guix-git/doc/guix.texi:40314
  13116. #, no-wrap
  13117. msgid "--target=@var{triplet}"
  13118. msgstr ""
  13119. #. type: cindex
  13120. #: guix-git/doc/guix.texi:7275 guix-git/doc/guix.texi:7734
  13121. #: guix-git/doc/guix.texi:13285
  13122. #, no-wrap
  13123. msgid "cross-compilation"
  13124. msgstr ""
  13125. #. type: table
  13126. #: guix-git/doc/guix.texi:7279 guix-git/doc/guix.texi:40318
  13127. 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})."
  13128. msgstr ""
  13129. #. type: item
  13130. #: guix-git/doc/guix.texi:7280
  13131. #, no-wrap
  13132. msgid "--compression=@var{tool}"
  13133. msgstr ""
  13134. #. type: itemx
  13135. #: guix-git/doc/guix.texi:7281
  13136. #, no-wrap
  13137. msgid "-C @var{tool}"
  13138. msgstr ""
  13139. #. type: table
  13140. #: guix-git/doc/guix.texi:7285
  13141. #, fuzzy
  13142. 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."
  13143. msgstr "以@var{type}方式压缩构建日志,可选的值:@code{gzip},@code{bzip2},@code{none}。"
  13144. #. type: anchor{#1}
  13145. #: guix-git/doc/guix.texi:7287
  13146. msgid "pack-symlink-option"
  13147. msgstr ""
  13148. #. type: table
  13149. #: guix-git/doc/guix.texi:7291
  13150. msgid "Add the symlinks specified by @var{spec} to the pack. This option can appear several times."
  13151. msgstr ""
  13152. #. type: table
  13153. #: guix-git/doc/guix.texi:7295
  13154. 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."
  13155. msgstr ""
  13156. #. type: table
  13157. #: guix-git/doc/guix.texi:7298
  13158. 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."
  13159. msgstr ""
  13160. #. type: item
  13161. #: guix-git/doc/guix.texi:7299 guix-git/doc/guix.texi:40325
  13162. #, no-wrap
  13163. msgid "--save-provenance"
  13164. msgstr ""
  13165. #. type: table
  13166. #: guix-git/doc/guix.texi:7303
  13167. 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})."
  13168. msgstr ""
  13169. #. type: table
  13170. #: guix-git/doc/guix.texi:7309
  13171. 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."
  13172. msgstr ""
  13173. #. type: table
  13174. #: guix-git/doc/guix.texi:7315
  13175. 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."
  13176. msgstr ""
  13177. #. type: cindex
  13178. #: guix-git/doc/guix.texi:7318
  13179. #, fuzzy, no-wrap
  13180. msgid "garbage collector root, for packs"
  13181. msgstr "垃圾收集的根"
  13182. #. type: table
  13183. #: guix-git/doc/guix.texi:7321
  13184. msgid "Make @var{file} a symlink to the resulting pack, and register it as a garbage collector root."
  13185. msgstr ""
  13186. #. type: item
  13187. #: guix-git/doc/guix.texi:7322
  13188. #, no-wrap
  13189. msgid "--localstatedir"
  13190. msgstr ""
  13191. #. type: itemx
  13192. #: guix-git/doc/guix.texi:7323
  13193. #, no-wrap
  13194. msgid "--profile-name=@var{name}"
  13195. msgstr ""
  13196. #. type: table
  13197. #: guix-git/doc/guix.texi:7328
  13198. 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}."
  13199. msgstr ""
  13200. #. type: table
  13201. #: guix-git/doc/guix.texi:7334
  13202. 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."
  13203. msgstr ""
  13204. #. type: table
  13205. #: guix-git/doc/guix.texi:7337
  13206. msgid "One use case for this is the Guix self-contained binary tarball (@pxref{Binary Installation})."
  13207. msgstr ""
  13208. #. type: item
  13209. #: guix-git/doc/guix.texi:7338 guix-git/doc/guix.texi:40319
  13210. #, no-wrap
  13211. msgid "--derivation"
  13212. msgstr ""
  13213. #. type: itemx
  13214. #: guix-git/doc/guix.texi:7339 guix-git/doc/guix.texi:13324
  13215. #: guix-git/doc/guix.texi:40320
  13216. #, no-wrap
  13217. msgid "-d"
  13218. msgstr ""
  13219. #. type: table
  13220. #: guix-git/doc/guix.texi:7341
  13221. msgid "Print the name of the derivation that builds the pack."
  13222. msgstr ""
  13223. #. type: table
  13224. #: guix-git/doc/guix.texi:7345
  13225. msgid "Use the bootstrap binaries to build the pack. This option is only useful to Guix developers."
  13226. msgstr ""
  13227. #. type: Plain text
  13228. #: guix-git/doc/guix.texi:7350
  13229. 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})."
  13230. msgstr ""
  13231. #. type: cindex
  13232. #: guix-git/doc/guix.texi:7355
  13233. #, no-wrap
  13234. msgid "GCC"
  13235. msgstr ""
  13236. #. type: cindex
  13237. #: guix-git/doc/guix.texi:7356
  13238. #, no-wrap
  13239. msgid "ld-wrapper"
  13240. msgstr ""
  13241. #. type: cindex
  13242. #: guix-git/doc/guix.texi:7357
  13243. #, no-wrap
  13244. msgid "linker wrapper"
  13245. msgstr ""
  13246. #. type: cindex
  13247. #: guix-git/doc/guix.texi:7358
  13248. #, fuzzy, no-wrap
  13249. msgid "toolchain, for C development"
  13250. msgstr "软件开发"
  13251. #. type: cindex
  13252. #: guix-git/doc/guix.texi:7359
  13253. #, no-wrap
  13254. msgid "toolchain, for Fortran development"
  13255. msgstr ""
  13256. #. type: Plain text
  13257. #: guix-git/doc/guix.texi:7366
  13258. 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."
  13259. msgstr ""
  13260. #. type: Plain text
  13261. #: guix-git/doc/guix.texi:7372
  13262. 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}."
  13263. msgstr ""
  13264. #. type: Plain text
  13265. #: guix-git/doc/guix.texi:7376
  13266. 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})."
  13267. msgstr ""
  13268. #. type: section
  13269. #: guix-git/doc/guix.texi:7379
  13270. #, fuzzy, no-wrap
  13271. msgid "Invoking @command{guix git authenticate}"
  13272. msgstr "调用@command{guix build}"
  13273. #. type: command{#1}
  13274. #: guix-git/doc/guix.texi:7381
  13275. #, fuzzy, no-wrap
  13276. #| msgid "Invoking guix git authenticate"
  13277. msgid "guix git authenticate"
  13278. msgstr "调用guix git授权"
  13279. #. type: Plain text
  13280. #: guix-git/doc/guix.texi:7389
  13281. 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)."
  13282. msgstr ""
  13283. #. type: Plain text
  13284. #: guix-git/doc/guix.texi:7394
  13285. 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."
  13286. msgstr ""
  13287. #. type: example
  13288. #: guix-git/doc/guix.texi:7399
  13289. #, no-wrap
  13290. msgid "guix git authenticate @var{commit} @var{signer} [@var{options}@dots{}]\n"
  13291. msgstr ""
  13292. #. type: Plain text
  13293. #: guix-git/doc/guix.texi:7408
  13294. 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."
  13295. msgstr ""
  13296. #. type: item
  13297. #: guix-git/doc/guix.texi:7410
  13298. #, fuzzy, no-wrap
  13299. msgid "--repository=@var{directory}"
  13300. msgstr "--chroot-directory=@var{dir}"
  13301. #. type: itemx
  13302. #: guix-git/doc/guix.texi:7411
  13303. #, fuzzy, no-wrap
  13304. msgid "-r @var{directory}"
  13305. msgstr "状态文件夹"
  13306. #. type: table
  13307. #: guix-git/doc/guix.texi:7414
  13308. msgid "Open the Git repository in @var{directory} instead of the current directory."
  13309. msgstr ""
  13310. #. type: item
  13311. #: guix-git/doc/guix.texi:7415
  13312. #, no-wrap
  13313. msgid "--keyring=@var{reference}"
  13314. msgstr ""
  13315. #. type: itemx
  13316. #: guix-git/doc/guix.texi:7416
  13317. #, fuzzy, no-wrap
  13318. msgid "-k @var{reference}"
  13319. msgstr "-c @var{n}"
  13320. #. type: table
  13321. #: guix-git/doc/guix.texi:7422
  13322. 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}."
  13323. msgstr ""
  13324. #. type: item
  13325. #: guix-git/doc/guix.texi:7423
  13326. #, no-wrap
  13327. msgid "--stats"
  13328. msgstr ""
  13329. #. type: table
  13330. #: guix-git/doc/guix.texi:7425
  13331. msgid "Display commit signing statistics upon completion."
  13332. msgstr ""
  13333. #. type: item
  13334. #: guix-git/doc/guix.texi:7426
  13335. #, fuzzy, no-wrap
  13336. msgid "--cache-key=@var{key}"
  13337. msgstr "--cores=@var{n}"
  13338. #. type: table
  13339. #: guix-git/doc/guix.texi:7430
  13340. 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."
  13341. msgstr ""
  13342. #. type: item
  13343. #: guix-git/doc/guix.texi:7431
  13344. #, no-wrap
  13345. msgid "--historical-authorizations=@var{file}"
  13346. msgstr ""
  13347. #. type: table
  13348. #: guix-git/doc/guix.texi:7438
  13349. 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})."
  13350. msgstr ""
  13351. #. type: Plain text
  13352. #: guix-git/doc/guix.texi:7451
  13353. 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."
  13354. msgstr ""
  13355. #. type: Plain text
  13356. #: guix-git/doc/guix.texi:7457
  13357. 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."
  13358. msgstr ""
  13359. #. type: Plain text
  13360. #: guix-git/doc/guix.texi:7466
  13361. 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."
  13362. msgstr ""
  13363. #. type: Plain text
  13364. #: guix-git/doc/guix.texi:7469
  13365. msgid "This chapter describes all these APIs in turn, starting from high-level package definitions."
  13366. msgstr ""
  13367. #. type: Plain text
  13368. #: guix-git/doc/guix.texi:7501
  13369. 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})."
  13370. msgstr ""
  13371. #. type: Plain text
  13372. #: guix-git/doc/guix.texi:7508
  13373. 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."
  13374. msgstr ""
  13375. #. type: cindex
  13376. #: guix-git/doc/guix.texi:7510
  13377. #, no-wrap
  13378. msgid "package module search path"
  13379. msgstr ""
  13380. #. type: Plain text
  13381. #: guix-git/doc/guix.texi:7519
  13382. 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:"
  13383. msgstr ""
  13384. #. type: enumerate
  13385. #: guix-git/doc/guix.texi:7526
  13386. 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."
  13387. msgstr ""
  13388. #. type: enumerate
  13389. #: guix-git/doc/guix.texi:7532
  13390. 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."
  13391. msgstr ""
  13392. #. type: Plain text
  13393. #: guix-git/doc/guix.texi:7535
  13394. msgid "@env{GUIX_PACKAGE_PATH} works similarly to other search path variables:"
  13395. msgstr ""
  13396. #. type: defvr
  13397. #: guix-git/doc/guix.texi:7536
  13398. #, no-wrap
  13399. msgid "{Environment Variable} GUIX_PACKAGE_PATH"
  13400. msgstr ""
  13401. #. type: defvr
  13402. #: guix-git/doc/guix.texi:7540
  13403. 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."
  13404. msgstr ""
  13405. #. type: Plain text
  13406. #: guix-git/doc/guix.texi:7548
  13407. 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}."
  13408. msgstr ""
  13409. #. type: Plain text
  13410. #: guix-git/doc/guix.texi:7556
  13411. 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:"
  13412. msgstr ""
  13413. #. type: lisp
  13414. #: guix-git/doc/guix.texi:7564
  13415. #, no-wrap
  13416. msgid ""
  13417. "(define-module (gnu packages hello)\n"
  13418. " #:use-module (guix packages)\n"
  13419. " #:use-module (guix download)\n"
  13420. " #:use-module (guix build-system gnu)\n"
  13421. " #:use-module (guix licenses)\n"
  13422. " #:use-module (gnu packages gawk))\n"
  13423. "\n"
  13424. msgstr ""
  13425. #. type: lisp
  13426. #: guix-git/doc/guix.texi:7583
  13427. #, no-wrap
  13428. msgid ""
  13429. "(define-public hello\n"
  13430. " (package\n"
  13431. " (name \"hello\")\n"
  13432. " (version \"2.10\")\n"
  13433. " (source (origin\n"
  13434. " (method url-fetch)\n"
  13435. " (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
  13436. " \".tar.gz\"))\n"
  13437. " (sha256\n"
  13438. " (base32\n"
  13439. " \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"))))\n"
  13440. " (build-system gnu-build-system)\n"
  13441. " (arguments '(#:configure-flags '(\"--enable-silent-rules\")))\n"
  13442. " (inputs (list gawk))\n"
  13443. " (synopsis \"Hello, GNU world: An example GNU package\")\n"
  13444. " (description \"Guess what GNU Hello prints!\")\n"
  13445. " (home-page \"https://www.gnu.org/software/hello/\")\n"
  13446. " (license gpl3+)))\n"
  13447. msgstr ""
  13448. #. type: Plain text
  13449. #: guix-git/doc/guix.texi:7593
  13450. 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\"}."
  13451. msgstr ""
  13452. #. type: Plain text
  13453. #: guix-git/doc/guix.texi:7597
  13454. 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})."
  13455. msgstr ""
  13456. #. type: Plain text
  13457. #: guix-git/doc/guix.texi:7603
  13458. 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})."
  13459. msgstr ""
  13460. #. type: Plain text
  13461. #: guix-git/doc/guix.texi:7605
  13462. msgid "There are a few points worth noting in the above package definition:"
  13463. msgstr ""
  13464. #. type: itemize
  13465. #: guix-git/doc/guix.texi:7612
  13466. 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."
  13467. msgstr ""
  13468. #. type: itemize
  13469. #: guix-git/doc/guix.texi:7615
  13470. msgid "The @code{mirror://gnu} prefix instructs @code{url-fetch} to use one of the GNU mirrors defined in @code{(guix download)}."
  13471. msgstr ""
  13472. #. type: itemize
  13473. #: guix-git/doc/guix.texi:7622
  13474. 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})."
  13475. msgstr ""
  13476. #. type: cindex
  13477. #: guix-git/doc/guix.texi:7623
  13478. #, no-wrap
  13479. msgid "patches"
  13480. msgstr ""
  13481. #. type: itemize
  13482. #: guix-git/doc/guix.texi:7627
  13483. 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."
  13484. msgstr ""
  13485. #. type: cindex
  13486. #: guix-git/doc/guix.texi:7629
  13487. #, no-wrap
  13488. msgid "GNU Build System"
  13489. msgstr ""
  13490. #. type: itemize
  13491. #: guix-git/doc/guix.texi:7635
  13492. 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."
  13493. msgstr ""
  13494. #. type: itemize
  13495. #: guix-git/doc/guix.texi:7639
  13496. 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."
  13497. msgstr ""
  13498. #. type: itemize
  13499. #: guix-git/doc/guix.texi:7645
  13500. 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."
  13501. msgstr ""
  13502. #. type: findex
  13503. #: guix-git/doc/guix.texi:7646 guix-git/doc/guix.texi:7649
  13504. #, no-wrap
  13505. msgid "quote"
  13506. msgstr ""
  13507. #. type: cindex
  13508. #: guix-git/doc/guix.texi:7647
  13509. #, no-wrap
  13510. msgid "quoting"
  13511. msgstr ""
  13512. #. type: findex
  13513. #: guix-git/doc/guix.texi:7648
  13514. #, no-wrap
  13515. msgid "'"
  13516. msgstr ""
  13517. #. type: cindex
  13518. #: guix-git/doc/guix.texi:7650
  13519. #, no-wrap
  13520. msgid "backquote (quasiquote)"
  13521. msgstr ""
  13522. #. type: findex
  13523. #: guix-git/doc/guix.texi:7651
  13524. #, no-wrap
  13525. msgid "`"
  13526. msgstr ""
  13527. #. type: findex
  13528. #: guix-git/doc/guix.texi:7652
  13529. #, no-wrap
  13530. msgid "quasiquote"
  13531. msgstr ""
  13532. #. type: cindex
  13533. #: guix-git/doc/guix.texi:7653
  13534. #, no-wrap
  13535. msgid "comma (unquote)"
  13536. msgstr ""
  13537. #. type: findex
  13538. #: guix-git/doc/guix.texi:7654
  13539. #, no-wrap
  13540. msgid ","
  13541. msgstr ""
  13542. #. type: findex
  13543. #: guix-git/doc/guix.texi:7655
  13544. #, no-wrap
  13545. msgid "unquote"
  13546. msgstr ""
  13547. #. type: itemize
  13548. #: guix-git/doc/guix.texi:7665
  13549. 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})."
  13550. msgstr ""
  13551. #. type: itemize
  13552. #: guix-git/doc/guix.texi:7671
  13553. 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})."
  13554. msgstr ""
  13555. #. type: itemize
  13556. #: guix-git/doc/guix.texi:7677
  13557. 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."
  13558. msgstr ""
  13559. #. type: itemize
  13560. #: guix-git/doc/guix.texi:7681
  13561. 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})."
  13562. msgstr ""
  13563. #. type: itemize
  13564. #: guix-git/doc/guix.texi:7685
  13565. 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."
  13566. msgstr ""
  13567. #. type: Plain text
  13568. #: guix-git/doc/guix.texi:7688
  13569. msgid "@xref{package Reference}, for a full description of possible fields."
  13570. msgstr ""
  13571. #. type: cindex
  13572. #: guix-git/doc/guix.texi:7690
  13573. #, no-wrap
  13574. msgid "Scheme programming language, getting started"
  13575. msgstr ""
  13576. #. type: quotation
  13577. #: guix-git/doc/guix.texi:7695
  13578. msgid "Intimidated by the Scheme language or curious about it? The Cookbook has a short section to get started that recaps some of the things shown above and explains the fundamentals. @xref{A Scheme Crash Course,,, guix-cookbook, GNU Guix Cookbook}, for more information."
  13579. msgstr ""
  13580. #. type: Plain text
  13581. #: guix-git/doc/guix.texi:7707
  13582. 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."
  13583. msgstr ""
  13584. #. type: vindex
  13585. #: guix-git/doc/guix.texi:7707
  13586. #, no-wrap
  13587. msgid "GUIX_PACKAGE_PATH"
  13588. msgstr ""
  13589. #. type: Plain text
  13590. #: guix-git/doc/guix.texi:7711
  13591. msgid "Lastly, @pxref{Channels}, for information on how to extend the distribution by adding your own package definitions in a ``channel''."
  13592. msgstr ""
  13593. #. type: Plain text
  13594. #: guix-git/doc/guix.texi:7715
  13595. 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})."
  13596. msgstr ""
  13597. #. type: Plain text
  13598. #: guix-git/doc/guix.texi:7721
  13599. 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})."
  13600. msgstr ""
  13601. #. type: defun
  13602. #: guix-git/doc/guix.texi:7722
  13603. #, no-wrap
  13604. msgid "package-derivation store package [system]"
  13605. msgstr ""
  13606. #. type: defun
  13607. #: guix-git/doc/guix.texi:7725
  13608. msgid "Return the @code{<derivation>} object of @var{package} for @var{system} (@pxref{Derivations})."
  13609. msgstr ""
  13610. #. type: defun
  13611. #: guix-git/doc/guix.texi:7731
  13612. 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})."
  13613. msgstr ""
  13614. #. type: Plain text
  13615. #: guix-git/doc/guix.texi:7737
  13616. msgid "Similarly, it is possible to compute a derivation that cross-builds a package for some other system:"
  13617. msgstr ""
  13618. #. type: defun
  13619. #: guix-git/doc/guix.texi:7738
  13620. #, no-wrap
  13621. msgid "package-cross-derivation store package target [system]"
  13622. msgstr ""
  13623. #. type: defun
  13624. #: guix-git/doc/guix.texi:7741
  13625. msgid "Return the @code{<derivation>} object of @var{package} cross-built from @var{system} to @var{target}."
  13626. msgstr ""
  13627. #. type: defun
  13628. #: guix-git/doc/guix.texi:7745
  13629. 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})."
  13630. msgstr ""
  13631. #. type: Plain text
  13632. #: guix-git/doc/guix.texi:7749
  13633. msgid "Once you have package definitions, you can easily define @emph{variants} of those packages. @xref{Defining Package Variants}, for more on that."
  13634. msgstr ""
  13635. #. type: subsection
  13636. #: guix-git/doc/guix.texi:7757
  13637. #, no-wrap
  13638. msgid "@code{package} Reference"
  13639. msgstr ""
  13640. #. type: Plain text
  13641. #: guix-git/doc/guix.texi:7761
  13642. msgid "This section summarizes all the options available in @code{package} declarations (@pxref{Defining Packages})."
  13643. msgstr ""
  13644. #. type: deftp
  13645. #: guix-git/doc/guix.texi:7762
  13646. #, no-wrap
  13647. msgid "{Data Type} package"
  13648. msgstr ""
  13649. #. type: deftp
  13650. #: guix-git/doc/guix.texi:7764
  13651. msgid "This is the data type representing a package recipe."
  13652. msgstr ""
  13653. #. type: table
  13654. #: guix-git/doc/guix.texi:7768
  13655. msgid "The name of the package, as a string."
  13656. msgstr ""
  13657. #. type: code{#1}
  13658. #: guix-git/doc/guix.texi:7769 guix-git/doc/guix.texi:8690
  13659. #, no-wrap
  13660. msgid "version"
  13661. msgstr ""
  13662. #. type: table
  13663. #: guix-git/doc/guix.texi:7772
  13664. msgid "The version of the package, as a string. @xref{Version Numbers}, for guidelines."
  13665. msgstr ""
  13666. #. type: code{#1}
  13667. #: guix-git/doc/guix.texi:7773 guix-git/doc/guix.texi:14848
  13668. #: guix-git/doc/guix.texi:17325 guix-git/doc/guix.texi:18015
  13669. #, no-wrap
  13670. msgid "source"
  13671. msgstr ""
  13672. #. type: table
  13673. #: guix-git/doc/guix.texi:7780
  13674. 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}})."
  13675. msgstr ""
  13676. #. type: code{#1}
  13677. #: guix-git/doc/guix.texi:7781
  13678. #, no-wrap
  13679. msgid "build-system"
  13680. msgstr ""
  13681. #. type: table
  13682. #: guix-git/doc/guix.texi:7784
  13683. msgid "The build system that should be used to build the package (@pxref{Build Systems})."
  13684. msgstr ""
  13685. #. type: item
  13686. #: guix-git/doc/guix.texi:7785 guix-git/doc/guix.texi:20690
  13687. #, no-wrap
  13688. msgid "@code{arguments} (default: @code{'()})"
  13689. msgstr ""
  13690. #. type: table
  13691. #: guix-git/doc/guix.texi:7789
  13692. msgid "The arguments that should be passed to the build system (@pxref{Build Systems}). This is a list, typically containing sequential keyword-value pairs, as in this example:"
  13693. msgstr ""
  13694. #. type: lisp
  13695. #: guix-git/doc/guix.texi:7798
  13696. #, no-wrap
  13697. msgid ""
  13698. "(package\n"
  13699. " (name \"example\")\n"
  13700. " ;; several fields omitted\n"
  13701. " (arguments\n"
  13702. " (list #:tests? #f ;skip tests\n"
  13703. " #:make-flags #~'(\"VERBOSE=1\") ;pass flags to 'make'\n"
  13704. " #:configure-flags #~'(\"--enable-frobbing\"))))\n"
  13705. msgstr ""
  13706. #. type: table
  13707. #: guix-git/doc/guix.texi:7805
  13708. msgid "The exact set of supported keywords depends on the build system (@pxref{Build Systems}), but you will find that almost all of them honor @code{#:configure-flags}, @code{#:make-flags}, @code{#:tests?}, and @code{#:phases}. The @code{#:phases} keyword in particular lets you modify the set of build phases for your package (@pxref{Build Phases})."
  13709. msgstr ""
  13710. #. type: quotation
  13711. #: guix-git/doc/guix.texi:7806 guix-git/doc/guix.texi:7843
  13712. #, fuzzy, no-wrap
  13713. #| msgid "Nix, compatibility"
  13714. msgid "Compatibility Note"
  13715. msgstr "Nix,兼容性"
  13716. #. type: quotation
  13717. #: guix-git/doc/guix.texi:7810
  13718. msgid "Until version 1.3.0, the @code{arguments} field would typically use @code{quote} (@code{'}) or @code{quasiquote} (@code{`}) and no G-expressions, like so:"
  13719. msgstr ""
  13720. #. type: lisp
  13721. #: guix-git/doc/guix.texi:7817
  13722. #, no-wrap
  13723. msgid ""
  13724. "(package\n"
  13725. " ;; several fields omitted\n"
  13726. " (arguments ;old-style quoted arguments\n"
  13727. " '(#:tests? #f\n"
  13728. " #:configure-flags '(\"--enable-frobbing\"))))\n"
  13729. msgstr ""
  13730. #. type: quotation
  13731. #: guix-git/doc/guix.texi:7822
  13732. msgid "To convert from that style to the one shown above, you can run @code{guix style -S arguments @var{package}} (@pxref{Invoking guix style})."
  13733. msgstr ""
  13734. #. type: item
  13735. #: guix-git/doc/guix.texi:7824
  13736. #, no-wrap
  13737. msgid "@code{inputs} (default: @code{'()})"
  13738. msgstr ""
  13739. #. type: itemx
  13740. #: guix-git/doc/guix.texi:7825
  13741. #, no-wrap
  13742. msgid "@code{native-inputs} (default: @code{'()})"
  13743. msgstr ""
  13744. #. type: itemx
  13745. #: guix-git/doc/guix.texi:7826
  13746. #, no-wrap
  13747. msgid "@code{propagated-inputs} (default: @code{'()})"
  13748. msgstr ""
  13749. #. type: cindex
  13750. #: guix-git/doc/guix.texi:7827
  13751. #, no-wrap
  13752. msgid "inputs, of packages"
  13753. msgstr ""
  13754. #. type: table
  13755. #: guix-git/doc/guix.texi:7834
  13756. 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:"
  13757. msgstr ""
  13758. #. type: lisp
  13759. #: guix-git/doc/guix.texi:7838
  13760. #, no-wrap
  13761. msgid ""
  13762. "(list libffi libunistring\n"
  13763. " `(,glib \"bin\")) ;the \"bin\" output of GLib\n"
  13764. msgstr ""
  13765. #. type: table
  13766. #: guix-git/doc/guix.texi:7842
  13767. msgid "In the example above, the @code{\"out\"} output of @code{libffi} and @code{libunistring} is used."
  13768. msgstr ""
  13769. #. type: quotation
  13770. #: guix-git/doc/guix.texi:7850
  13771. 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}:"
  13772. msgstr ""
  13773. #. type: lisp
  13774. #: guix-git/doc/guix.texi:7856
  13775. #, no-wrap
  13776. msgid ""
  13777. ";; Old input style (deprecated).\n"
  13778. "`((\"libffi\" ,libffi)\n"
  13779. " (\"libunistring\" ,libunistring)\n"
  13780. " (\"glib:bin\" ,glib \"bin\")) ;the \"bin\" output of GLib\n"
  13781. msgstr ""
  13782. #. type: quotation
  13783. #: guix-git/doc/guix.texi:7862
  13784. 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."
  13785. msgstr ""
  13786. #. type: cindex
  13787. #: guix-git/doc/guix.texi:7864
  13788. #, no-wrap
  13789. msgid "cross compilation, package dependencies"
  13790. msgstr ""
  13791. #. type: table
  13792. #: guix-git/doc/guix.texi:7870
  13793. 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."
  13794. msgstr ""
  13795. #. type: table
  13796. #: guix-git/doc/guix.texi:7875
  13797. 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})."
  13798. msgstr ""
  13799. #. type: anchor{#1}
  13800. #: guix-git/doc/guix.texi:7883
  13801. msgid "package-propagated-inputs"
  13802. msgstr ""
  13803. #. type: table
  13804. #: guix-git/doc/guix.texi:7883
  13805. 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)."
  13806. msgstr ""
  13807. #. type: table
  13808. #: guix-git/doc/guix.texi:7887
  13809. 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."
  13810. msgstr ""
  13811. #. type: table
  13812. #: guix-git/doc/guix.texi:7894
  13813. 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}."
  13814. msgstr ""
  13815. #. type: item
  13816. #: guix-git/doc/guix.texi:7895
  13817. #, no-wrap
  13818. msgid "@code{outputs} (default: @code{'(\"out\")})"
  13819. msgstr ""
  13820. #. type: table
  13821. #: guix-git/doc/guix.texi:7898
  13822. msgid "The list of output names of the package. @xref{Packages with Multiple Outputs}, for typical uses of additional outputs."
  13823. msgstr ""
  13824. #. type: item
  13825. #: guix-git/doc/guix.texi:7899
  13826. #, no-wrap
  13827. msgid "@code{native-search-paths} (default: @code{'()})"
  13828. msgstr ""
  13829. #. type: item
  13830. #: guix-git/doc/guix.texi:7900 guix-git/doc/guix.texi:8709
  13831. #, no-wrap
  13832. msgid "@code{search-paths} (default: @code{'()})"
  13833. msgstr ""
  13834. #. type: table
  13835. #: guix-git/doc/guix.texi:7904
  13836. 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."
  13837. msgstr ""
  13838. #. type: table
  13839. #: guix-git/doc/guix.texi:7910
  13840. 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."
  13841. msgstr ""
  13842. #. type: table
  13843. #: guix-git/doc/guix.texi:7917
  13844. 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."
  13845. msgstr ""
  13846. #. type: item
  13847. #: guix-git/doc/guix.texi:7918
  13848. #, no-wrap
  13849. msgid "@code{replacement} (default: @code{#f})"
  13850. msgstr ""
  13851. #. type: table
  13852. #: guix-git/doc/guix.texi:7922
  13853. 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."
  13854. msgstr ""
  13855. #. type: item
  13856. #: guix-git/doc/guix.texi:7923 guix-git/doc/guix.texi:14840
  13857. #, no-wrap
  13858. msgid "synopsis"
  13859. msgstr ""
  13860. #. type: table
  13861. #: guix-git/doc/guix.texi:7925
  13862. msgid "A one-line description of the package."
  13863. msgstr ""
  13864. #. type: code{#1}
  13865. #: guix-git/doc/guix.texi:7926 guix-git/doc/guix.texi:14841
  13866. #: guix-git/doc/guix.texi:41085 guix-git/doc/guix.texi:41245
  13867. #, no-wrap
  13868. msgid "description"
  13869. msgstr ""
  13870. #. type: table
  13871. #: guix-git/doc/guix.texi:7929
  13872. msgid "A more elaborate description of the package, as a string in Texinfo syntax."
  13873. msgstr ""
  13874. #. type: code{#1}
  13875. #: guix-git/doc/guix.texi:7930
  13876. #, no-wrap
  13877. msgid "license"
  13878. msgstr ""
  13879. #. type: cindex
  13880. #: guix-git/doc/guix.texi:7931
  13881. #, no-wrap
  13882. msgid "license, of packages"
  13883. msgstr ""
  13884. #. type: table
  13885. #: guix-git/doc/guix.texi:7934
  13886. msgid "The license of the package; a value from @code{(guix licenses)}, or a list of such values."
  13887. msgstr ""
  13888. #. type: itemx
  13889. #: guix-git/doc/guix.texi:7935 guix-git/doc/guix.texi:14849
  13890. #, no-wrap
  13891. msgid "home-page"
  13892. msgstr ""
  13893. #. type: table
  13894. #: guix-git/doc/guix.texi:7937
  13895. msgid "The URL to the home-page of the package, as a string."
  13896. msgstr ""
  13897. #. type: item
  13898. #: guix-git/doc/guix.texi:7938
  13899. #, fuzzy, no-wrap
  13900. msgid "@code{supported-systems} (default: @code{%supported-systems})"
  13901. msgstr "@code{port}(默认值:@code{22})"
  13902. #. type: table
  13903. #: guix-git/doc/guix.texi:7941
  13904. msgid "The list of systems supported by the package, as strings of the form @code{architecture-kernel}, for example @code{\"x86_64-linux\"}."
  13905. msgstr ""
  13906. #. type: item
  13907. #: guix-git/doc/guix.texi:7942
  13908. #, no-wrap
  13909. msgid "@code{location} (default: source location of the @code{package} form)"
  13910. msgstr ""
  13911. #. type: table
  13912. #: guix-git/doc/guix.texi:7946
  13913. 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."
  13914. msgstr ""
  13915. #. type: defmac
  13916. #: guix-git/doc/guix.texi:7949
  13917. #, fuzzy, no-wrap
  13918. #| msgid "Invoking guix package"
  13919. msgid "this-package"
  13920. msgstr "调用guix package"
  13921. #. type: defmac
  13922. #: guix-git/doc/guix.texi:7952
  13923. msgid "When used in the @emph{lexical scope} of a package field definition, this identifier resolves to the package being defined."
  13924. msgstr ""
  13925. #. type: defmac
  13926. #: guix-git/doc/guix.texi:7955
  13927. msgid "The example below shows how to add a package as a native input of itself when cross-compiling:"
  13928. msgstr ""
  13929. #. type: lisp
  13930. #: guix-git/doc/guix.texi:7960
  13931. #, no-wrap
  13932. msgid ""
  13933. "(package\n"
  13934. " (name \"guile\")\n"
  13935. " ;; ...\n"
  13936. "\n"
  13937. msgstr ""
  13938. #. type: lisp
  13939. #: guix-git/doc/guix.texi:7966
  13940. #, no-wrap
  13941. msgid ""
  13942. " ;; When cross-compiled, Guile, for example, depends on\n"
  13943. " ;; a native version of itself. Add it here.\n"
  13944. " (native-inputs (if (%current-target-system)\n"
  13945. " (list this-package)\n"
  13946. " '())))\n"
  13947. msgstr ""
  13948. #. type: defmac
  13949. #: guix-git/doc/guix.texi:7969
  13950. msgid "It is an error to refer to @code{this-package} outside a package definition."
  13951. msgstr ""
  13952. #. type: Plain text
  13953. #: guix-git/doc/guix.texi:7973
  13954. msgid "The following helper procedures are provided to help deal with package inputs."
  13955. msgstr ""
  13956. #. type: defun
  13957. #: guix-git/doc/guix.texi:7974
  13958. #, no-wrap
  13959. msgid "lookup-package-input package name"
  13960. msgstr ""
  13961. #. type: defunx
  13962. #: guix-git/doc/guix.texi:7975
  13963. #, no-wrap
  13964. msgid "lookup-package-native-input package name"
  13965. msgstr ""
  13966. #. type: defunx
  13967. #: guix-git/doc/guix.texi:7976
  13968. #, no-wrap
  13969. msgid "lookup-package-propagated-input package name"
  13970. msgstr ""
  13971. #. type: defunx
  13972. #: guix-git/doc/guix.texi:7977
  13973. #, no-wrap
  13974. msgid "lookup-package-direct-input package name"
  13975. msgstr ""
  13976. #. type: defun
  13977. #: guix-git/doc/guix.texi:7980
  13978. msgid "Look up @var{name} among @var{package}'s inputs (or native, propagated, or direct inputs). Return it if found, @code{#f} otherwise."
  13979. msgstr ""
  13980. #. type: defun
  13981. #: guix-git/doc/guix.texi:7983
  13982. msgid "@var{name} is the name of a package depended on. Here's how you might use it:"
  13983. msgstr ""
  13984. #. type: lisp
  13985. #: guix-git/doc/guix.texi:7986
  13986. #, no-wrap
  13987. msgid ""
  13988. "(use-modules (guix packages) (gnu packages base))\n"
  13989. "\n"
  13990. msgstr ""
  13991. #. type: lisp
  13992. #: guix-git/doc/guix.texi:7989
  13993. #, no-wrap
  13994. msgid ""
  13995. "(lookup-package-direct-input coreutils \"gmp\")\n"
  13996. "@result{} #<package gmp@@6.2.1 @dots{}>\n"
  13997. msgstr ""
  13998. #. type: defun
  13999. #: guix-git/doc/guix.texi:7993
  14000. msgid "In this example we obtain the @code{gmp} package that is among the direct inputs of @code{coreutils}."
  14001. msgstr ""
  14002. #. type: cindex
  14003. #: guix-git/doc/guix.texi:7995
  14004. #, fuzzy, no-wrap
  14005. msgid "development inputs, of a package"
  14006. msgstr "创建软件包的变体。"
  14007. #. type: cindex
  14008. #: guix-git/doc/guix.texi:7996
  14009. #, fuzzy, no-wrap
  14010. #| msgid "inputs, for Python packages"
  14011. msgid "implicit inputs, of a package"
  14012. msgstr "Python软件包的输入"
  14013. #. type: Plain text
  14014. #: guix-git/doc/guix.texi:8001
  14015. 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."
  14016. msgstr ""
  14017. #. type: defun
  14018. #: guix-git/doc/guix.texi:8002
  14019. #, no-wrap
  14020. msgid "package-development-inputs package [system] [#:target #f]"
  14021. msgstr ""
  14022. #. type: defun
  14023. #: guix-git/doc/guix.texi:8008
  14024. msgid "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{target}, where @var{target} is a triplet such as @code{\"aarch64-linux-gnu\"}."
  14025. msgstr ""
  14026. #. type: defun
  14027. #: guix-git/doc/guix.texi:8012
  14028. 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:"
  14029. msgstr ""
  14030. #. type: lisp
  14031. #: guix-git/doc/guix.texi:8015
  14032. #, no-wrap
  14033. msgid ""
  14034. "(use-modules (gnu packages base) (guix packages))\n"
  14035. "\n"
  14036. msgstr ""
  14037. #. type: lisp
  14038. #: guix-git/doc/guix.texi:8018
  14039. #, no-wrap
  14040. msgid ""
  14041. "hello\n"
  14042. "@result{} #<package hello@@2.10 gnu/packages/base.scm:79 7f585d4f6790>\n"
  14043. "\n"
  14044. msgstr ""
  14045. #. type: lisp
  14046. #: guix-git/doc/guix.texi:8021
  14047. #, no-wrap
  14048. msgid ""
  14049. "(package-direct-inputs hello)\n"
  14050. "@result{} ()\n"
  14051. "\n"
  14052. msgstr ""
  14053. #. type: lisp
  14054. #: guix-git/doc/guix.texi:8024
  14055. #, no-wrap
  14056. msgid ""
  14057. "(package-development-inputs hello)\n"
  14058. "@result{} ((\"source\" @dots{}) (\"tar\" #<package tar@@1.32 @dots{}>) @dots{})\n"
  14059. msgstr ""
  14060. #. type: defun
  14061. #: guix-git/doc/guix.texi:8033
  14062. 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})."
  14063. msgstr ""
  14064. #. type: Plain text
  14065. #: guix-git/doc/guix.texi:8039
  14066. 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."
  14067. msgstr ""
  14068. #. type: cindex
  14069. #: guix-git/doc/guix.texi:8040
  14070. #, no-wrap
  14071. msgid "tool chain, choosing a package's tool chain"
  14072. msgstr ""
  14073. #. type: defun
  14074. #: guix-git/doc/guix.texi:8041
  14075. #, no-wrap
  14076. msgid "package-with-c-toolchain package toolchain"
  14077. msgstr ""
  14078. #. type: defun
  14079. #: guix-git/doc/guix.texi:8046
  14080. 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."
  14081. msgstr ""
  14082. #. type: defun
  14083. #: guix-git/doc/guix.texi:8050
  14084. 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:"
  14085. msgstr ""
  14086. #. type: lisp
  14087. #: guix-git/doc/guix.texi:8054
  14088. #, no-wrap
  14089. msgid ""
  14090. "(let ((toolchain (specification->package \"gcc-toolchain@@10\")))\n"
  14091. " (package-with-c-toolchain hello `((\"toolchain\" ,toolchain))))\n"
  14092. msgstr ""
  14093. #. type: defun
  14094. #: guix-git/doc/guix.texi:8062
  14095. 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."
  14096. msgstr ""
  14097. #. type: subsection
  14098. #: guix-git/doc/guix.texi:8065
  14099. #, no-wrap
  14100. msgid "@code{origin} Reference"
  14101. msgstr ""
  14102. #. type: Plain text
  14103. #: guix-git/doc/guix.texi:8073
  14104. 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."
  14105. msgstr ""
  14106. #. type: deftp
  14107. #: guix-git/doc/guix.texi:8074
  14108. #, no-wrap
  14109. msgid "{Data Type} origin"
  14110. msgstr ""
  14111. #. type: deftp
  14112. #: guix-git/doc/guix.texi:8076
  14113. msgid "This is the data type representing a source code origin."
  14114. msgstr ""
  14115. #. type: code{#1}
  14116. #: guix-git/doc/guix.texi:8078 guix-git/doc/guix.texi:30504
  14117. #, no-wrap
  14118. msgid "uri"
  14119. msgstr ""
  14120. #. type: table
  14121. #: guix-git/doc/guix.texi:8083
  14122. 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."
  14123. msgstr ""
  14124. #. type: cindex
  14125. #: guix-git/doc/guix.texi:8084
  14126. #, no-wrap
  14127. msgid "fixed-output derivations, for download"
  14128. msgstr ""
  14129. #. type: code{#1}
  14130. #: guix-git/doc/guix.texi:8085
  14131. #, no-wrap
  14132. msgid "method"
  14133. msgstr ""
  14134. #. type: table
  14135. #: guix-git/doc/guix.texi:8092
  14136. 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})."
  14137. msgstr ""
  14138. #. type: table
  14139. #: guix-git/doc/guix.texi:8096
  14140. 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)."
  14141. msgstr ""
  14142. #. type: code{#1}
  14143. #: guix-git/doc/guix.texi:8097
  14144. #, no-wrap
  14145. msgid "sha256"
  14146. msgstr ""
  14147. #. type: table
  14148. #: guix-git/doc/guix.texi:8101
  14149. 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."
  14150. msgstr ""
  14151. #. type: code{#1}
  14152. #: guix-git/doc/guix.texi:8102
  14153. #, no-wrap
  14154. msgid "hash"
  14155. msgstr ""
  14156. #. type: table
  14157. #: guix-git/doc/guix.texi:8105
  14158. msgid "The @code{content-hash} object of the source---see below for how to use @code{content-hash}."
  14159. msgstr ""
  14160. #. type: table
  14161. #: guix-git/doc/guix.texi:8109
  14162. msgid "You can obtain this information using @code{guix download} (@pxref{Invoking guix download}) or @code{guix hash} (@pxref{Invoking guix hash})."
  14163. msgstr ""
  14164. #. type: item
  14165. #: guix-git/doc/guix.texi:8110
  14166. #, no-wrap
  14167. msgid "@code{file-name} (default: @code{#f})"
  14168. msgstr ""
  14169. #. type: table
  14170. #: guix-git/doc/guix.texi:8116
  14171. 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."
  14172. msgstr ""
  14173. #. type: item
  14174. #: guix-git/doc/guix.texi:8117
  14175. #, no-wrap
  14176. msgid "@code{patches} (default: @code{'()})"
  14177. msgstr ""
  14178. #. type: table
  14179. #: guix-git/doc/guix.texi:8120
  14180. 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."
  14181. msgstr ""
  14182. #. type: table
  14183. #: guix-git/doc/guix.texi:8124
  14184. 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}."
  14185. msgstr ""
  14186. #. type: item
  14187. #: guix-git/doc/guix.texi:8125
  14188. #, no-wrap
  14189. msgid "@code{snippet} (default: @code{#f})"
  14190. msgstr ""
  14191. #. type: table
  14192. #: guix-git/doc/guix.texi:8129
  14193. 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."
  14194. msgstr ""
  14195. #. type: item
  14196. #: guix-git/doc/guix.texi:8130
  14197. #, no-wrap
  14198. msgid "@code{patch-flags} (default: @code{'(\"-p1\")})"
  14199. msgstr ""
  14200. #. type: table
  14201. #: guix-git/doc/guix.texi:8133
  14202. msgid "A list of command-line flags that should be passed to the @code{patch} command."
  14203. msgstr ""
  14204. #. type: item
  14205. #: guix-git/doc/guix.texi:8134
  14206. #, no-wrap
  14207. msgid "@code{patch-inputs} (default: @code{#f})"
  14208. msgstr ""
  14209. #. type: table
  14210. #: guix-git/doc/guix.texi:8138
  14211. 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."
  14212. msgstr ""
  14213. #. type: item
  14214. #: guix-git/doc/guix.texi:8139 guix-git/doc/guix.texi:30373
  14215. #, no-wrap
  14216. msgid "@code{modules} (default: @code{'()})"
  14217. msgstr ""
  14218. #. type: table
  14219. #: guix-git/doc/guix.texi:8142
  14220. msgid "A list of Guile modules that should be loaded during the patching process and while running the code in the @code{snippet} field."
  14221. msgstr ""
  14222. #. type: item
  14223. #: guix-git/doc/guix.texi:8143
  14224. #, no-wrap
  14225. msgid "@code{patch-guile} (default: @code{#f})"
  14226. msgstr ""
  14227. #. type: table
  14228. #: guix-git/doc/guix.texi:8146
  14229. msgid "The Guile package that should be used in the patching process. When this is @code{#f}, a sensible default is used."
  14230. msgstr ""
  14231. #. type: deftp
  14232. #: guix-git/doc/guix.texi:8149
  14233. #, no-wrap
  14234. msgid "{Data Type} content-hash @var{value} [@var{algorithm}]"
  14235. msgstr ""
  14236. #. type: deftp
  14237. #: guix-git/doc/guix.texi:8153
  14238. 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}."
  14239. msgstr ""
  14240. #. type: deftp
  14241. #: guix-git/doc/guix.texi:8156
  14242. msgid "@var{value} can be a literal string, in which case it is base32-decoded, or it can be a bytevector."
  14243. msgstr ""
  14244. #. type: deftp
  14245. #: guix-git/doc/guix.texi:8158
  14246. #, fuzzy
  14247. msgid "The following forms are all equivalent:"
  14248. msgstr "这些依赖是可选的:"
  14249. #. type: lisp
  14250. #: guix-git/doc/guix.texi:8167
  14251. #, no-wrap
  14252. msgid ""
  14253. "(content-hash \"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj\")\n"
  14254. "(content-hash \"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj\"\n"
  14255. " sha256)\n"
  14256. "(content-hash (base32\n"
  14257. " \"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj\"))\n"
  14258. "(content-hash (base64 \"kkb+RPaP7uyMZmu4eXPVkM4BN8yhRd8BTHLslb6f/Rc=\")\n"
  14259. " sha256)\n"
  14260. msgstr ""
  14261. #. type: deftp
  14262. #: guix-git/doc/guix.texi:8172
  14263. 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}."
  14264. msgstr ""
  14265. #. type: Plain text
  14266. #: guix-git/doc/guix.texi:8178
  14267. 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."
  14268. msgstr ""
  14269. #. type: defun
  14270. #: guix-git/doc/guix.texi:8179
  14271. #, no-wrap
  14272. msgid "url-fetch url hash-algo hash [name] [#:executable? #f]"
  14273. msgstr ""
  14274. #. type: defun
  14275. #: guix-git/doc/guix.texi:8186
  14276. msgid "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."
  14277. msgstr ""
  14278. #. type: defun
  14279. #: guix-git/doc/guix.texi:8189
  14280. 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}."
  14281. msgstr ""
  14282. #. type: defun
  14283. #: guix-git/doc/guix.texi:8192
  14284. msgid "Alternatively, when URL starts with @code{file://}, return the corresponding file name in the store."
  14285. msgstr ""
  14286. #. type: Plain text
  14287. #: guix-git/doc/guix.texi:8198
  14288. 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."
  14289. msgstr ""
  14290. #. type: defun
  14291. #: guix-git/doc/guix.texi:8199
  14292. #, no-wrap
  14293. msgid "git-fetch ref hash-algo hash"
  14294. msgstr ""
  14295. #. type: defun
  14296. #: guix-git/doc/guix.texi:8204
  14297. 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}."
  14298. msgstr ""
  14299. #. type: deftp
  14300. #: guix-git/doc/guix.texi:8206
  14301. #, fuzzy, no-wrap
  14302. msgid "{Data Type} git-reference"
  14303. msgstr "{数据类型} build-machine"
  14304. #. type: deftp
  14305. #: guix-git/doc/guix.texi:8209
  14306. msgid "This data type represents a Git reference for @code{git-fetch} to retrieve."
  14307. msgstr ""
  14308. #. type: code{#1}
  14309. #: guix-git/doc/guix.texi:8211 guix-git/doc/guix.texi:27784
  14310. #, no-wrap
  14311. msgid "url"
  14312. msgstr ""
  14313. #. type: table
  14314. #: guix-git/doc/guix.texi:8213
  14315. msgid "The URL of the Git repository to clone."
  14316. msgstr ""
  14317. #. type: code{#1}
  14318. #: guix-git/doc/guix.texi:8214
  14319. #, no-wrap
  14320. msgid "commit"
  14321. msgstr ""
  14322. #. type: table
  14323. #: guix-git/doc/guix.texi:8219
  14324. 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}."
  14325. msgstr ""
  14326. #. type: item
  14327. #: guix-git/doc/guix.texi:8220
  14328. #, fuzzy, no-wrap
  14329. msgid "@code{recursive?} (default: @code{#f})"
  14330. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  14331. #. type: table
  14332. #: guix-git/doc/guix.texi:8222
  14333. msgid "This Boolean indicates whether to recursively fetch Git sub-modules."
  14334. msgstr ""
  14335. #. type: deftp
  14336. #: guix-git/doc/guix.texi:8226
  14337. msgid "The example below denotes the @code{v2.10} tag of the GNU@tie{}Hello repository:"
  14338. msgstr ""
  14339. #. type: lisp
  14340. #: guix-git/doc/guix.texi:8231
  14341. #, no-wrap
  14342. msgid ""
  14343. "(git-reference\n"
  14344. " (url \"https://git.savannah.gnu.org/git/hello.git\")\n"
  14345. " (commit \"v2.10\"))\n"
  14346. msgstr ""
  14347. "(git-reference\n"
  14348. " (url \"https://git.savannah.gnu.org/git/hello.git\")\n"
  14349. " (commit \"v2.10\"))\n"
  14350. #. type: deftp
  14351. #: guix-git/doc/guix.texi:8235
  14352. msgid "This is equivalent to the reference below, which explicitly names the commit:"
  14353. msgstr ""
  14354. #. type: lisp
  14355. #: guix-git/doc/guix.texi:8240
  14356. #, no-wrap
  14357. msgid ""
  14358. "(git-reference\n"
  14359. " (url \"https://git.savannah.gnu.org/git/hello.git\")\n"
  14360. " (commit \"dc7dc56a00e48fe6f231a58f6537139fe2908fb9\"))\n"
  14361. msgstr ""
  14362. #. type: Plain text
  14363. #: guix-git/doc/guix.texi:8246
  14364. 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."
  14365. msgstr ""
  14366. #. type: defun
  14367. #: guix-git/doc/guix.texi:8247
  14368. #, no-wrap
  14369. msgid "hg-fetch ref hash-algo hash [name]"
  14370. msgstr ""
  14371. #. type: defun
  14372. #: guix-git/doc/guix.texi:8252
  14373. msgid "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}."
  14374. msgstr ""
  14375. #. type: cindex
  14376. #: guix-git/doc/guix.texi:8257
  14377. #, fuzzy, no-wrap
  14378. msgid "customizing packages"
  14379. msgstr "定制软件包"
  14380. #. type: cindex
  14381. #: guix-git/doc/guix.texi:8258
  14382. #, fuzzy, no-wrap
  14383. msgid "variants, of packages"
  14384. msgstr "创建软件包的变体。"
  14385. #. type: Plain text
  14386. #: guix-git/doc/guix.texi:8268
  14387. 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{Writing Manifests}) and in your own package collection (@pxref{Creating a Channel}), among others!"
  14388. msgstr ""
  14389. #. type: cindex
  14390. #: guix-git/doc/guix.texi:8269
  14391. #, fuzzy, no-wrap
  14392. msgid "inherit, for package definitions"
  14393. msgstr "从软件包定义里寻找错误。"
  14394. #. type: Plain text
  14395. #: guix-git/doc/guix.texi:8276
  14396. 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."
  14397. msgstr ""
  14398. #. type: Plain text
  14399. #: guix-git/doc/guix.texi:8281
  14400. 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!):"
  14401. msgstr ""
  14402. #. type: lisp
  14403. #: guix-git/doc/guix.texi:8284
  14404. #, no-wrap
  14405. msgid ""
  14406. "(use-modules (gnu packages base)) ;for 'hello'\n"
  14407. "\n"
  14408. msgstr ""
  14409. #. type: lisp
  14410. #: guix-git/doc/guix.texi:8296
  14411. #, no-wrap
  14412. msgid ""
  14413. "(define hello-2.2\n"
  14414. " (package\n"
  14415. " (inherit hello)\n"
  14416. " (version \"2.2\")\n"
  14417. " (source (origin\n"
  14418. " (method url-fetch)\n"
  14419. " (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
  14420. " \".tar.gz\"))\n"
  14421. " (sha256\n"
  14422. " (base32\n"
  14423. " \"0lappv4slgb5spyqbh6yl5r013zv72yqg2pcl30mginf3wdqd8k9\"))))))\n"
  14424. msgstr ""
  14425. #. type: Plain text
  14426. #: guix-git/doc/guix.texi:8306
  14427. msgid "The example above corresponds to what the @option{--with-version} or @option{--with-source} package transformations option do. 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."
  14428. msgstr ""
  14429. #. type: Plain text
  14430. #: guix-git/doc/guix.texi:8312
  14431. 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:"
  14432. msgstr ""
  14433. #. type: lisp
  14434. #: guix-git/doc/guix.texi:8315
  14435. #, no-wrap
  14436. msgid ""
  14437. "(use-modules (gnu packages gdb)) ;for 'gdb'\n"
  14438. "\n"
  14439. msgstr ""
  14440. #. type: lisp
  14441. #: guix-git/doc/guix.texi:8321
  14442. #, no-wrap
  14443. msgid ""
  14444. "(define gdb-sans-guile\n"
  14445. " (package\n"
  14446. " (inherit gdb)\n"
  14447. " (inputs (modify-inputs (package-inputs gdb)\n"
  14448. " (delete \"guile\")))))\n"
  14449. msgstr ""
  14450. #. type: Plain text
  14451. #: guix-git/doc/guix.texi:8327
  14452. 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."
  14453. msgstr ""
  14454. #. type: defmac
  14455. #: guix-git/doc/guix.texi:8328
  14456. #, no-wrap
  14457. msgid "modify-inputs inputs clauses"
  14458. msgstr ""
  14459. #. type: defmac
  14460. #: guix-git/doc/guix.texi:8332
  14461. 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:"
  14462. msgstr ""
  14463. #. type: item
  14464. #: guix-git/doc/guix.texi:8334
  14465. #, fuzzy, no-wrap
  14466. msgid "(delete @var{name}@dots{})"
  14467. msgstr "--log-compression=@var{type}"
  14468. #. type: table
  14469. #: guix-git/doc/guix.texi:8336
  14470. msgid "Delete from the inputs packages with the given @var{name}s (strings)."
  14471. msgstr ""
  14472. #. type: item
  14473. #: guix-git/doc/guix.texi:8337
  14474. #, fuzzy, no-wrap
  14475. msgid "(prepend @var{package}@dots{})"
  14476. msgstr "(prepend @var{package}@dots{})"
  14477. #. type: table
  14478. #: guix-git/doc/guix.texi:8339
  14479. msgid "Add @var{package}s to the front of the input list."
  14480. msgstr ""
  14481. #. type: item
  14482. #: guix-git/doc/guix.texi:8340
  14483. #, no-wrap
  14484. msgid "(append @var{package}@dots{})"
  14485. msgstr "(append @var{软件包}@dots{})"
  14486. #. type: table
  14487. #: guix-git/doc/guix.texi:8342
  14488. msgid "Add @var{package}s to the end of the input list."
  14489. msgstr ""
  14490. #. type: item
  14491. #: guix-git/doc/guix.texi:8343
  14492. #, fuzzy, no-wrap
  14493. msgid "(replace @var{name} @var{replacement})"
  14494. msgstr "--log-compression=@var{type}"
  14495. #. type: table
  14496. #: guix-git/doc/guix.texi:8345
  14497. msgid "Replace the package called @var{name} with @var{replacement}."
  14498. msgstr ""
  14499. #. type: defmac
  14500. #: guix-git/doc/guix.texi:8349
  14501. msgid "The example below removes the GMP and ACL inputs of Coreutils and adds libcap to the front of the input list:"
  14502. msgstr ""
  14503. #. type: lisp
  14504. #: guix-git/doc/guix.texi:8354
  14505. #, no-wrap
  14506. msgid ""
  14507. "(modify-inputs (package-inputs coreutils)\n"
  14508. " (delete \"gmp\" \"acl\")\n"
  14509. " (prepend libcap))\n"
  14510. msgstr ""
  14511. #. type: defmac
  14512. #: guix-git/doc/guix.texi:8358
  14513. msgid "The example below replaces the @code{guile} package from the inputs of @code{guile-redis} with @code{guile-2.2}:"
  14514. msgstr ""
  14515. #. type: lisp
  14516. #: guix-git/doc/guix.texi:8362
  14517. #, no-wrap
  14518. msgid ""
  14519. "(modify-inputs (package-inputs guile-redis)\n"
  14520. " (replace \"guile\" guile-2.2))\n"
  14521. msgstr ""
  14522. #. type: defmac
  14523. #: guix-git/doc/guix.texi:8366
  14524. msgid "The last type of clause is @code{append}, to add inputs at the back of the list."
  14525. msgstr ""
  14526. #. type: Plain text
  14527. #: guix-git/doc/guix.texi:8375
  14528. 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:"
  14529. msgstr ""
  14530. #. type: lisp
  14531. #: guix-git/doc/guix.texi:8385
  14532. #, no-wrap
  14533. msgid ""
  14534. "(define (make-lua-socket name lua)\n"
  14535. " ;; Return a luasocket package built with LUA.\n"
  14536. " (package\n"
  14537. " (name name)\n"
  14538. " (version \"3.0\")\n"
  14539. " ;; several fields omitted\n"
  14540. " (inputs (list lua))\n"
  14541. " (synopsis \"Socket library for Lua\")))\n"
  14542. "\n"
  14543. msgstr ""
  14544. #. type: lisp
  14545. #: guix-git/doc/guix.texi:8388
  14546. #, no-wrap
  14547. msgid ""
  14548. "(define-public lua5.1-socket\n"
  14549. " (make-lua-socket \"lua5.1-socket\" lua-5.1))\n"
  14550. "\n"
  14551. msgstr ""
  14552. #. type: lisp
  14553. #: guix-git/doc/guix.texi:8391
  14554. #, no-wrap
  14555. msgid ""
  14556. "(define-public lua5.2-socket\n"
  14557. " (make-lua-socket \"lua5.2-socket\" lua-5.2))\n"
  14558. msgstr ""
  14559. #. type: Plain text
  14560. #: guix-git/doc/guix.texi:8399
  14561. 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})."
  14562. msgstr ""
  14563. #. type: cindex
  14564. #: guix-git/doc/guix.texi:8400
  14565. #, no-wrap
  14566. msgid "package transformations"
  14567. msgstr ""
  14568. #. type: Plain text
  14569. #: guix-git/doc/guix.texi:8405
  14570. 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}):"
  14571. msgstr ""
  14572. #. type: defun
  14573. #: guix-git/doc/guix.texi:8406
  14574. #, no-wrap
  14575. msgid "options->transformation opts"
  14576. msgstr ""
  14577. #. type: defun
  14578. #: guix-git/doc/guix.texi:8410
  14579. 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:"
  14580. msgstr ""
  14581. #. type: lisp
  14582. #: guix-git/doc/guix.texi:8414
  14583. #, no-wrap
  14584. msgid ""
  14585. "((with-branch . \"guile-gcrypt=master\")\n"
  14586. " (without-tests . \"libgcrypt\"))\n"
  14587. msgstr ""
  14588. #. type: defun
  14589. #: guix-git/doc/guix.texi:8418
  14590. msgid "Each symbol names a transformation and the corresponding string is an argument to that transformation."
  14591. msgstr ""
  14592. #. type: Plain text
  14593. #: guix-git/doc/guix.texi:8421
  14594. msgid "For instance, a manifest equivalent to this command:"
  14595. msgstr ""
  14596. #. type: example
  14597. #: guix-git/doc/guix.texi:8426
  14598. #, no-wrap
  14599. msgid ""
  14600. "guix build guix \\\n"
  14601. " --with-branch=guile-gcrypt=master \\\n"
  14602. " --with-debug-info=zlib\n"
  14603. msgstr ""
  14604. #. type: Plain text
  14605. #: guix-git/doc/guix.texi:8430
  14606. msgid "... would look like this:"
  14607. msgstr ""
  14608. #. type: lisp
  14609. #: guix-git/doc/guix.texi:8433
  14610. #, no-wrap
  14611. msgid ""
  14612. "(use-modules (guix transformations))\n"
  14613. "\n"
  14614. msgstr ""
  14615. #. type: lisp
  14616. #: guix-git/doc/guix.texi:8439
  14617. #, no-wrap
  14618. msgid ""
  14619. "(define transform\n"
  14620. " ;; The package transformation procedure.\n"
  14621. " (options->transformation\n"
  14622. " '((with-branch . \"guile-gcrypt=master\")\n"
  14623. " (with-debug-info . \"zlib\"))))\n"
  14624. "\n"
  14625. msgstr ""
  14626. #. type: lisp
  14627. #: guix-git/doc/guix.texi:8442
  14628. #, no-wrap
  14629. msgid ""
  14630. "(packages->manifest\n"
  14631. " (list (transform (specification->package \"guix\"))))\n"
  14632. msgstr ""
  14633. #. type: cindex
  14634. #: guix-git/doc/guix.texi:8444
  14635. #, no-wrap
  14636. msgid "input rewriting"
  14637. msgstr ""
  14638. #. type: cindex
  14639. #: guix-git/doc/guix.texi:8445
  14640. #, no-wrap
  14641. msgid "dependency graph rewriting"
  14642. msgstr ""
  14643. #. type: Plain text
  14644. #: guix-git/doc/guix.texi:8452
  14645. 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."
  14646. msgstr ""
  14647. #. type: Plain text
  14648. #: guix-git/doc/guix.texi:8456
  14649. 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."
  14650. msgstr ""
  14651. #. type: defun
  14652. #: guix-git/doc/guix.texi:8457
  14653. #, no-wrap
  14654. msgid "package-input-rewriting replacements [rewrite-name] [#:deep? #t]"
  14655. msgstr ""
  14656. #. type: defun
  14657. #: guix-git/doc/guix.texi:8463
  14658. msgid "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."
  14659. msgstr ""
  14660. #. type: defun
  14661. #: guix-git/doc/guix.texi:8466
  14662. msgid "Optionally, @var{rewrite-name} is a one-argument procedure that takes the name of a package and returns its new name after rewrite."
  14663. msgstr ""
  14664. #. type: table
  14665. #: guix-git/doc/guix.texi:8470 guix-git/doc/guix.texi:12910
  14666. msgid "Consider this example:"
  14667. msgstr ""
  14668. #. type: lisp
  14669. #: guix-git/doc/guix.texi:8476
  14670. #, no-wrap
  14671. msgid ""
  14672. "(define libressl-instead-of-openssl\n"
  14673. " ;; This is a procedure to replace OPENSSL by LIBRESSL,\n"
  14674. " ;; recursively.\n"
  14675. " (package-input-rewriting `((,openssl . ,libressl))))\n"
  14676. "\n"
  14677. msgstr ""
  14678. #. type: lisp
  14679. #: guix-git/doc/guix.texi:8479
  14680. #, no-wrap
  14681. msgid ""
  14682. "(define git-with-libressl\n"
  14683. " (libressl-instead-of-openssl git))\n"
  14684. msgstr ""
  14685. #. type: Plain text
  14686. #: guix-git/doc/guix.texi:8487
  14687. 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}})."
  14688. msgstr ""
  14689. #. type: Plain text
  14690. #: guix-git/doc/guix.texi:8490
  14691. msgid "The following variant of @code{package-input-rewriting} can match packages to be replaced by name rather than by identity."
  14692. msgstr ""
  14693. #. type: deffn
  14694. #: guix-git/doc/guix.texi:8491
  14695. #, no-wrap
  14696. msgid "{Scheme Procedure} package-input-rewriting/spec @var{replacements} [#:deep? #t]"
  14697. msgstr ""
  14698. #. type: deffn
  14699. #: guix-git/doc/guix.texi:8495
  14700. 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."
  14701. msgstr ""
  14702. #. type: deffn
  14703. #: guix-git/doc/guix.texi:8501
  14704. msgid "@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. Matching packages that have the @code{hidden?} property set are not replaced."
  14705. msgstr ""
  14706. #. type: Plain text
  14707. #: guix-git/doc/guix.texi:8504
  14708. msgid "The example above could be rewritten this way:"
  14709. msgstr ""
  14710. #. type: lisp
  14711. #: guix-git/doc/guix.texi:8509
  14712. #, no-wrap
  14713. msgid ""
  14714. "(define libressl-instead-of-openssl\n"
  14715. " ;; Replace all the packages called \"openssl\" with LibreSSL.\n"
  14716. " (package-input-rewriting/spec `((\"openssl\" . ,(const libressl)))))\n"
  14717. msgstr ""
  14718. #. type: Plain text
  14719. #: guix-git/doc/guix.texi:8514
  14720. 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."
  14721. msgstr ""
  14722. #. type: Plain text
  14723. #: guix-git/doc/guix.texi:8518
  14724. msgid "A more generic procedure to rewrite a package dependency graph is @code{package-mapping}: it supports arbitrary changes to nodes in the graph."
  14725. msgstr ""
  14726. #. type: defun
  14727. #: guix-git/doc/guix.texi:8519
  14728. #, no-wrap
  14729. msgid "package-mapping proc [cut?] [#:deep? #f]"
  14730. msgstr ""
  14731. #. type: defun
  14732. #: guix-git/doc/guix.texi:8524
  14733. 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."
  14734. msgstr ""
  14735. #. type: cindex
  14736. #: guix-git/doc/guix.texi:8529
  14737. #, fuzzy, no-wrap
  14738. #| msgid "-c @var{n}"
  14739. msgid "manifest"
  14740. msgstr "-c @var{n}"
  14741. #. type: cindex
  14742. #: guix-git/doc/guix.texi:8530
  14743. #, no-wrap
  14744. msgid "bill of materials (manifests)"
  14745. msgstr ""
  14746. #. type: Plain text
  14747. #: guix-git/doc/guix.texi:8541
  14748. msgid "@command{guix} commands let you specify package lists on the command line. This is convenient, but as the command line becomes longer and less trivial, it quickly becomes more convenient to have that package list in what we call a @dfn{manifest}. A manifest is some sort of a ``bill of materials'' that defines a package set. You would typically come up with a code snippet that builds the manifest, store it in a file, say @file{manifest.scm}, and then pass that file to the @option{-m} (or @option{--manifest}) option that many @command{guix} commands support. For example, here's what a manifest for a simple package set might look like:"
  14749. msgstr ""
  14750. #. type: lisp
  14751. #: guix-git/doc/guix.texi:8545
  14752. #, no-wrap
  14753. msgid ""
  14754. ";; Manifest for three packages.\n"
  14755. "(specifications->manifest '(\"gcc-toolchain\" \"make\" \"git\"))\n"
  14756. msgstr ""
  14757. #. type: Plain text
  14758. #: guix-git/doc/guix.texi:8551
  14759. msgid "Once you have that manifest, you can pass it, for example, to @command{guix package} to install just those three packages to your profile (@pxref{profile-manifest, @option{-m} option of @command{guix package}}):"
  14760. msgstr ""
  14761. #. type: example
  14762. #: guix-git/doc/guix.texi:8554
  14763. #, fuzzy, no-wrap
  14764. #| msgid "guix environment guix --pure\n"
  14765. msgid "guix package -m manifest.scm\n"
  14766. msgstr "guix environment guix --pure\n"
  14767. #. type: Plain text
  14768. #: guix-git/doc/guix.texi:8560
  14769. msgid "... or you can pass it to @command{guix shell} (@pxref{shell-manifest, @command{-m} option of @command{guix shell}}) to spawn an ephemeral environment:"
  14770. msgstr ""
  14771. #. type: Plain text
  14772. #: guix-git/doc/guix.texi:8570
  14773. msgid "... or you can pass it to @command{guix pack} in pretty much the same way (@pxref{pack-manifest, @option{-m} option of @command{guix pack}}). You can store the manifest under version control, share it with others so they can easily get set up, etc."
  14774. msgstr ""
  14775. #. type: Plain text
  14776. #: guix-git/doc/guix.texi:8576
  14777. msgid "But how do you write your first manifest? To get started, maybe you'll want to write a manifest that mirrors what you already have in a profile. Rather than start from a blank page, @command{guix package} can generate a manifest for you (@pxref{export-manifest, @command{guix package --export-manifest}}):"
  14778. msgstr ""
  14779. #. type: example
  14780. #: guix-git/doc/guix.texi:8581
  14781. #, no-wrap
  14782. msgid ""
  14783. "# Write to 'manifest.scm' a manifest corresponding to the\n"
  14784. "# default profile, ~/.guix-profile.\n"
  14785. "guix package --export-manifest > manifest.scm\n"
  14786. msgstr ""
  14787. #. type: Plain text
  14788. #: guix-git/doc/guix.texi:8586
  14789. msgid "Or maybe you'll want to ``translate'' command-line arguments into a manifest. In that case, @command{guix shell} can help (@pxref{shell-export-manifest, @command{guix shell --export-manifest}}):"
  14790. msgstr ""
  14791. #. type: example
  14792. #: guix-git/doc/guix.texi:8590
  14793. #, no-wrap
  14794. msgid ""
  14795. "# Write a manifest for the packages specified on the command line.\n"
  14796. "guix shell --export-manifest gcc-toolchain make git > manifest.scm\n"
  14797. msgstr ""
  14798. #. type: Plain text
  14799. #: guix-git/doc/guix.texi:8596
  14800. msgid "In both cases, the @option{--export-manifest} option tries hard to generate a faithful manifest; in particular, it takes package transformation options into account (@pxref{Package Transformation Options})."
  14801. msgstr ""
  14802. #. type: quotation
  14803. #: guix-git/doc/guix.texi:8602
  14804. msgid "Manifests are @emph{symbolic}: they refer to packages of the channels @emph{currently in use} (@pxref{Channels}). In the example above, @code{gcc-toolchain} might refer to version 11 today, but it might refer to version 13 two years from now."
  14805. msgstr ""
  14806. #. type: quotation
  14807. #: guix-git/doc/guix.texi:8607
  14808. msgid "If you want to ``pin'' your software environment to specific package versions and variants, you need an additional piece of information: the list of channel revisions in use, as returned by @command{guix describe}. @xref{Replicating Guix}, for more information."
  14809. msgstr ""
  14810. #. type: Plain text
  14811. #: guix-git/doc/guix.texi:8612
  14812. msgid "Once you've obtained your first manifest, perhaps you'll want to customize it. Since your manifest is code, you now have access to all the Guix programming interfaces!"
  14813. msgstr ""
  14814. #. type: Plain text
  14815. #: guix-git/doc/guix.texi:8618
  14816. msgid "Let's assume you want a manifest to deploy a custom variant of GDB, the GNU Debugger, that does not depend on Guile, together with another package. Building on the example seen in the previous section (@pxref{Defining Package Variants}), you can write a manifest along these lines:"
  14817. msgstr ""
  14818. #. type: lisp
  14819. #: guix-git/doc/guix.texi:8623
  14820. #, no-wrap
  14821. msgid ""
  14822. "(use-modules (guix packages)\n"
  14823. " (gnu packages gdb) ;for 'gdb'\n"
  14824. " (gnu packages version-control)) ;for 'git'\n"
  14825. "\n"
  14826. msgstr ""
  14827. #. type: lisp
  14828. #: guix-git/doc/guix.texi:8630
  14829. #, no-wrap
  14830. msgid ""
  14831. ";; Define a variant of GDB without a dependency on Guile.\n"
  14832. "(define gdb-sans-guile\n"
  14833. " (package\n"
  14834. " (inherit gdb)\n"
  14835. " (inputs (modify-inputs (package-inputs gdb)\n"
  14836. " (delete \"guile\")))))\n"
  14837. "\n"
  14838. msgstr ""
  14839. #. type: lisp
  14840. #: guix-git/doc/guix.texi:8633
  14841. #, no-wrap
  14842. msgid ""
  14843. ";; Return a manifest containing that one package plus Git.\n"
  14844. "(packages->manifest (list gdb-sans-guile git))\n"
  14845. msgstr ""
  14846. #. type: Plain text
  14847. #: guix-git/doc/guix.texi:8644
  14848. msgid "Note that in this example, the manifest directly refers to the @code{gdb} and @code{git} variables, which are bound to a @code{package} object (@pxref{package Reference}), instead of calling @code{specifications->manifest} to look up packages by name as we did before. The @code{use-modules} form at the top lets us access the core package interface (@pxref{Defining Packages}) and the modules that define @code{gdb} and @code{git} (@pxref{Package Modules}). Seamlessly, we're weaving all this together---the possibilities are endless, unleash your creativity!"
  14849. msgstr ""
  14850. #. type: Plain text
  14851. #: guix-git/doc/guix.texi:8648
  14852. msgid "The data type for manifests as well as supporting procedures are defined in the @code{(guix profiles)} module, which is automatically available to code passed to @option{-m}. The reference follows."
  14853. msgstr ""
  14854. #. type: deftp
  14855. #: guix-git/doc/guix.texi:8649
  14856. #, fuzzy, no-wrap
  14857. #| msgid "{Data Type} build-machine"
  14858. msgid "{Data Type} manifest"
  14859. msgstr "{数据类型} build-machine"
  14860. #. type: deftp
  14861. #: guix-git/doc/guix.texi:8651
  14862. #, fuzzy
  14863. msgid "Data type representing a manifest."
  14864. msgstr "管理操作系统配置。"
  14865. #. type: deftp
  14866. #: guix-git/doc/guix.texi:8653
  14867. msgid "It currently has one field:"
  14868. msgstr ""
  14869. #. type: item
  14870. #: guix-git/doc/guix.texi:8655
  14871. #, no-wrap
  14872. msgid "entries"
  14873. msgstr ""
  14874. #. type: table
  14875. #: guix-git/doc/guix.texi:8657
  14876. msgid "This must be a list of @code{manifest-entry} records---see below."
  14877. msgstr ""
  14878. #. type: deftp
  14879. #: guix-git/doc/guix.texi:8660
  14880. #, fuzzy, no-wrap
  14881. #| msgid "{Data Type} build-machine"
  14882. msgid "{Data Type} manifest-entry"
  14883. msgstr "{数据类型} build-machine"
  14884. #. type: deftp
  14885. #: guix-git/doc/guix.texi:8666
  14886. msgid "Data type representing a manifest entry. A manifest entry contains essential metadata: a name and version string, the object (usually a package) for that entry, the desired output (@pxref{Packages with Multiple Outputs}), and a number of optional pieces of information detailed below."
  14887. msgstr ""
  14888. #. type: deftp
  14889. #: guix-git/doc/guix.texi:8671
  14890. msgid "Most of the time, you won't build a manifest entry directly; instead, you will pass a package to @code{package->manifest-entry}, described below. In some unusual cases though, you might want to create manifest entries for things that are @emph{not} packages, as in this example:"
  14891. msgstr ""
  14892. #. type: lisp
  14893. #: guix-git/doc/guix.texi:8684
  14894. #, no-wrap
  14895. msgid ""
  14896. ";; Manually build a single manifest entry for a non-package object.\n"
  14897. "(let ((hello (program-file \"hello\" #~(display \"Hi!\"))))\n"
  14898. " (manifest-entry\n"
  14899. " (name \"foo\")\n"
  14900. " (version \"42\")\n"
  14901. " (item\n"
  14902. " (computed-file \"hello-directory\"\n"
  14903. " #~(let ((bin (string-append #$output \"/bin\")))\n"
  14904. " (mkdir #$output) (mkdir bin)\n"
  14905. " (symlink #$hello\n"
  14906. " (string-append bin \"/hello\")))))))\n"
  14907. msgstr ""
  14908. #. type: deftp
  14909. #: guix-git/doc/guix.texi:8687
  14910. #, fuzzy
  14911. #| msgid "Packages are currently available on the following platforms:"
  14912. msgid "The available fields are the following:"
  14913. msgstr "目前这些平台提供软件包:"
  14914. #. type: table
  14915. #: guix-git/doc/guix.texi:8692
  14916. msgid "Name and version string for this entry."
  14917. msgstr ""
  14918. #. type: code{#1}
  14919. #: guix-git/doc/guix.texi:8693
  14920. #, no-wrap
  14921. msgid "item"
  14922. msgstr ""
  14923. #. type: table
  14924. #: guix-git/doc/guix.texi:8696
  14925. msgid "A package or other file-like object (@pxref{G-Expressions, file-like objects})."
  14926. msgstr ""
  14927. #. type: item
  14928. #: guix-git/doc/guix.texi:8697
  14929. #, fuzzy, no-wrap
  14930. msgid "@code{output} (default: @code{\"out\"})"
  14931. msgstr "@code{gnome}(默认值:@code{gnome})"
  14932. #. type: table
  14933. #: guix-git/doc/guix.texi:8700
  14934. msgid "Output of @code{item} to use, in case @code{item} has multiple outputs (@pxref{Packages with Multiple Outputs})."
  14935. msgstr ""
  14936. #. type: item
  14937. #: guix-git/doc/guix.texi:8701 guix-git/doc/guix.texi:17091
  14938. #: guix-git/doc/guix.texi:17504
  14939. #, no-wrap
  14940. msgid "@code{dependencies} (default: @code{'()})"
  14941. msgstr ""
  14942. #. type: table
  14943. #: guix-git/doc/guix.texi:8704
  14944. msgid "List of manifest entries this entry depends on. When building a profile, dependencies are added to the profile."
  14945. msgstr ""
  14946. #. type: table
  14947. #: guix-git/doc/guix.texi:8708
  14948. msgid "Typically, the propagated inputs of a package (@pxref{package Reference, @code{propagated-inputs}}) end up having a corresponding manifest entry in among the dependencies of the package's own manifest entry."
  14949. msgstr ""
  14950. #. type: table
  14951. #: guix-git/doc/guix.texi:8712
  14952. msgid "The list of search path specifications honored by this entry (@pxref{Search Paths})."
  14953. msgstr ""
  14954. #. type: item
  14955. #: guix-git/doc/guix.texi:8713
  14956. #, fuzzy, no-wrap
  14957. msgid "@code{properties} (default: @code{'()})"
  14958. msgstr "@code{features} (@code{'()})"
  14959. #. type: table
  14960. #: guix-git/doc/guix.texi:8716
  14961. msgid "List of symbol/value pairs. When building a profile, those properties get serialized."
  14962. msgstr ""
  14963. #. type: table
  14964. #: guix-git/doc/guix.texi:8720
  14965. msgid "This can be used to piggyback additional metadata---e.g., the transformations applied to a package (@pxref{Package Transformation Options})."
  14966. msgstr ""
  14967. #. type: item
  14968. #: guix-git/doc/guix.texi:8721
  14969. #, fuzzy, no-wrap
  14970. msgid "@code{parent} (default: @code{(delay #f)})"
  14971. msgstr "@code{port}(默认值:@code{22})"
  14972. #. type: table
  14973. #: guix-git/doc/guix.texi:8723
  14974. msgid "A promise pointing to the ``parent'' manifest entry."
  14975. msgstr ""
  14976. #. type: table
  14977. #: guix-git/doc/guix.texi:8726
  14978. msgid "This is used as a hint to provide context when reporting an error related to a manifest entry coming from a @code{dependencies} field."
  14979. msgstr ""
  14980. #. type: defun
  14981. #: guix-git/doc/guix.texi:8729
  14982. #, no-wrap
  14983. msgid "concatenate-manifests lst"
  14984. msgstr ""
  14985. #. type: defun
  14986. #: guix-git/doc/guix.texi:8732
  14987. msgid "Concatenate the manifests listed in @var{lst} and return the resulting manifest."
  14988. msgstr ""
  14989. #. type: defun
  14990. #: guix-git/doc/guix.texi:8736
  14991. #, no-wrap
  14992. msgid "package->manifest-entry package [output] [#:properties]"
  14993. msgstr ""
  14994. #. type: defun
  14995. #: guix-git/doc/guix.texi:8744
  14996. msgid "Return a manifest entry for the @var{output} of package @var{package}, where @var{output} defaults to @code{\"out\"}, and with the given @var{properties}. By default @var{properties} is the empty list or, if one or more package transformations were applied to @var{package}, it is an association list representing those transformations, suitable as an argument to @code{options->transformation} (@pxref{Defining Package Variants, @code{options->transformation}})."
  14997. msgstr ""
  14998. #. type: defun
  14999. #: guix-git/doc/guix.texi:8747
  15000. msgid "The code snippet below builds a manifest with an entry for the default output and the @code{send-email} output of the @code{git} package:"
  15001. msgstr ""
  15002. #. type: lisp
  15003. #: guix-git/doc/guix.texi:8750 guix-git/doc/guix.texi:8767
  15004. #, no-wrap
  15005. msgid ""
  15006. "(use-modules (gnu packages version-control))\n"
  15007. "\n"
  15008. msgstr ""
  15009. "(use-modules (gnu packages version-control))\n"
  15010. "\n"
  15011. #. type: lisp
  15012. #: guix-git/doc/guix.texi:8753
  15013. #, no-wrap
  15014. msgid ""
  15015. "(manifest (list (package->manifest-entry git)\n"
  15016. " (package->manifest-entry git \"send-email\")))\n"
  15017. msgstr ""
  15018. #. type: defun
  15019. #: guix-git/doc/guix.texi:8756
  15020. #, fuzzy, no-wrap
  15021. #| msgid "-c @var{n}"
  15022. msgid "packages->manifest packages"
  15023. msgstr "-c @var{n}"
  15024. #. type: defun
  15025. #: guix-git/doc/guix.texi:8761
  15026. msgid "Return a list of manifest entries, one for each item listed in @var{packages}. Elements of @var{packages} can be either package objects or package/string tuples denoting a specific output of a package."
  15027. msgstr ""
  15028. #. type: defun
  15029. #: guix-git/doc/guix.texi:8764
  15030. msgid "Using this procedure, the manifest above may be rewritten more concisely:"
  15031. msgstr ""
  15032. #. type: lisp
  15033. #: guix-git/doc/guix.texi:8769
  15034. #, no-wrap
  15035. msgid "(packages->manifest (list git `(,git \"send-email\")))\n"
  15036. msgstr ""
  15037. #. type: anchor{#1}
  15038. #: guix-git/doc/guix.texi:8773
  15039. msgid "package-development-manifest"
  15040. msgstr ""
  15041. #. type: defun
  15042. #: guix-git/doc/guix.texi:8773
  15043. #, no-wrap
  15044. msgid "package->development-manifest package [system] [#:target]"
  15045. msgstr ""
  15046. #. type: defun
  15047. #: guix-git/doc/guix.texi:8778
  15048. msgid "Return a manifest for the @dfn{development inputs} of @var{package} for @var{system}, optionally when cross-compiling to @var{target}. Development inputs include both explicit and implicit inputs of @var{package}."
  15049. msgstr ""
  15050. #. type: defun
  15051. #: guix-git/doc/guix.texi:8786
  15052. msgid "Like the @option{-D} option of @command{guix shell} (@pxref{shell-development-option, @command{guix shell -D}}), the resulting manifest describes the environment in which one can develop @var{package}. For example, suppose you're willing to set up a development environment for Inkscape, with the addition of Git for version control; you can describe that ``bill of materials'' with the following manifest:"
  15053. msgstr ""
  15054. #. type: lisp
  15055. #: guix-git/doc/guix.texi:8790
  15056. #, no-wrap
  15057. msgid ""
  15058. "(use-modules (gnu packages inkscape) ;for 'inkscape'\n"
  15059. " (gnu packages version-control)) ;for 'git'\n"
  15060. "\n"
  15061. msgstr ""
  15062. #. type: lisp
  15063. #: guix-git/doc/guix.texi:8794
  15064. #, no-wrap
  15065. msgid ""
  15066. "(concatenate-manifests\n"
  15067. " (list (package->development-manifest inkscape)\n"
  15068. " (packages->manifest (list git))))\n"
  15069. msgstr ""
  15070. #. type: defun
  15071. #: guix-git/doc/guix.texi:8801
  15072. msgid "In this example, the development manifest that @code{package->development-manifest} returns includes the compiler (GCC), the many supporting libraries (Boost, GLib, GTK, etc.), and a couple of additional development tools---these are the dependencies @command{guix show inkscape} lists."
  15073. msgstr ""
  15074. #. type: Plain text
  15075. #: guix-git/doc/guix.texi:8808
  15076. msgid "Last, the @code{(gnu packages)} module provides higher-level facilities to build manifests. In particular, it lets you look up packages by name---see below."
  15077. msgstr ""
  15078. #. type: defun
  15079. #: guix-git/doc/guix.texi:8809
  15080. #, no-wrap
  15081. msgid "specifications->manifest specs"
  15082. msgstr ""
  15083. #. type: defun
  15084. #: guix-git/doc/guix.texi:8814
  15085. msgid "Given @var{specs}, a list of specifications such as @code{\"emacs@@25.2\"} or @code{\"guile:debug\"}, return a manifest. Specs have the format that command-line tools such as @command{guix install} and @command{guix package} understand (@pxref{Invoking guix package})."
  15086. msgstr ""
  15087. #. type: defun
  15088. #: guix-git/doc/guix.texi:8817
  15089. msgid "As an example, it lets you rewrite the Git manifest that we saw earlier like this:"
  15090. msgstr ""
  15091. #. type: lisp
  15092. #: guix-git/doc/guix.texi:8820
  15093. #, no-wrap
  15094. msgid "(specifications->manifest '(\"git\" \"git:send-email\"))\n"
  15095. msgstr ""
  15096. #. type: defun
  15097. #: guix-git/doc/guix.texi:8826
  15098. msgid "Notice that we do not need to worry about @code{use-modules}, importing the right set of modules, and referring to the right variables. Instead, we directly refer to packages in the same way as on the command line, which can often be more convenient."
  15099. msgstr ""
  15100. #. type: cindex
  15101. #: guix-git/doc/guix.texi:8834
  15102. #, no-wrap
  15103. msgid "build system"
  15104. msgstr ""
  15105. #. type: Plain text
  15106. #: guix-git/doc/guix.texi:8839
  15107. 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."
  15108. msgstr ""
  15109. #. type: Plain text
  15110. #: guix-git/doc/guix.texi:8843
  15111. 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."
  15112. msgstr ""
  15113. #. type: cindex
  15114. #: guix-git/doc/guix.texi:8844
  15115. #, no-wrap
  15116. msgid "bag (low-level package representation)"
  15117. msgstr ""
  15118. #. type: Plain text
  15119. #: guix-git/doc/guix.texi:8854
  15120. 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}})."
  15121. msgstr ""
  15122. #. type: Plain text
  15123. #: guix-git/doc/guix.texi:8862
  15124. 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})."
  15125. msgstr ""
  15126. #. type: Plain text
  15127. #: guix-git/doc/guix.texi:8866
  15128. 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."
  15129. msgstr ""
  15130. #. type: defvar
  15131. #: guix-git/doc/guix.texi:8867
  15132. #, fuzzy, no-wrap
  15133. #| msgid "Guix System"
  15134. msgid "gnu-build-system"
  15135. msgstr "Guix系统"
  15136. #. type: defvar
  15137. #: guix-git/doc/guix.texi:8871
  15138. msgid "@code{gnu-build-system} represents the GNU Build System, and variants thereof (@pxref{Configuration, configuration and makefile conventions,, standards, GNU Coding Standards})."
  15139. msgstr ""
  15140. #. type: cindex
  15141. #: guix-git/doc/guix.texi:8872 guix-git/doc/guix.texi:9955
  15142. #: guix-git/doc/guix.texi:10570
  15143. #, no-wrap
  15144. msgid "build phases"
  15145. msgstr ""
  15146. #. type: defvar
  15147. #: guix-git/doc/guix.texi:8879
  15148. 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."
  15149. msgstr ""
  15150. #. type: defvar
  15151. #: guix-git/doc/guix.texi:8886
  15152. 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."
  15153. msgstr ""
  15154. #. type: defvar
  15155. #: guix-git/doc/guix.texi:8890
  15156. 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:"
  15157. msgstr ""
  15158. #. type: item
  15159. #: guix-git/doc/guix.texi:8892
  15160. #, no-wrap
  15161. msgid "#:phases"
  15162. msgstr ""
  15163. #. type: table
  15164. #: guix-git/doc/guix.texi:8895
  15165. msgid "This argument specifies build-side code that evaluates to an alist of build phases. @xref{Build Phases}, for more information."
  15166. msgstr ""
  15167. #. type: item
  15168. #: guix-git/doc/guix.texi:8896
  15169. #, fuzzy, no-wrap
  15170. msgid "#:configure-flags"
  15171. msgstr "系统配置"
  15172. #. type: table
  15173. #: guix-git/doc/guix.texi:8899
  15174. msgid "This is a list of flags (strings) passed to the @command{configure} script. @xref{Defining Packages}, for an example."
  15175. msgstr ""
  15176. #. type: item
  15177. #: guix-git/doc/guix.texi:8900
  15178. #, no-wrap
  15179. msgid "#:make-flags"
  15180. msgstr ""
  15181. #. type: table
  15182. #: guix-git/doc/guix.texi:8904
  15183. msgid "This list of strings contains flags passed as arguments to @command{make} invocations in the @code{build}, @code{check}, and @code{install} phases."
  15184. msgstr ""
  15185. #. type: item
  15186. #: guix-git/doc/guix.texi:8905
  15187. #, no-wrap
  15188. msgid "#:out-of-source?"
  15189. msgstr ""
  15190. #. type: table
  15191. #: guix-git/doc/guix.texi:8908
  15192. msgid "This Boolean, @code{#f} by default, indicates whether to run builds in a build directory separate from the source tree."
  15193. msgstr ""
  15194. #. type: table
  15195. #: guix-git/doc/guix.texi:8913
  15196. 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}."
  15197. msgstr ""
  15198. #. type: item
  15199. #: guix-git/doc/guix.texi:8914
  15200. #, no-wrap
  15201. msgid "#:tests?"
  15202. msgstr ""
  15203. #. type: table
  15204. #: guix-git/doc/guix.texi:8917
  15205. msgid "This Boolean, @code{#t} by default, indicates whether the @code{check} phase should run the package's test suite."
  15206. msgstr ""
  15207. #. type: item
  15208. #: guix-git/doc/guix.texi:8918
  15209. #, no-wrap
  15210. msgid "#:test-target"
  15211. msgstr ""
  15212. #. type: table
  15213. #: guix-git/doc/guix.texi:8921
  15214. msgid "This string, @code{\"check\"} by default, gives the name of the makefile target used by the @code{check} phase."
  15215. msgstr ""
  15216. #. type: item
  15217. #: guix-git/doc/guix.texi:8922
  15218. #, no-wrap
  15219. msgid "#:parallel-build?"
  15220. msgstr ""
  15221. #. type: itemx
  15222. #: guix-git/doc/guix.texi:8923
  15223. #, no-wrap
  15224. msgid "#:parallel-tests?"
  15225. msgstr ""
  15226. #. type: table
  15227. #: guix-git/doc/guix.texi:8930
  15228. 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}})."
  15229. msgstr ""
  15230. #. type: cindex
  15231. #: guix-git/doc/guix.texi:8931 guix-git/doc/guix.texi:10092
  15232. #, no-wrap
  15233. msgid "RUNPATH, validation"
  15234. msgstr ""
  15235. #. type: item
  15236. #: guix-git/doc/guix.texi:8932
  15237. #, no-wrap
  15238. msgid "#:validate-runpath?"
  15239. msgstr ""
  15240. #. type: table
  15241. #: guix-git/doc/guix.texi:8938
  15242. 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. @xref{phase-validate-runpath, the @code{validate-runpath} phase}, for details."
  15243. msgstr ""
  15244. #. type: item
  15245. #: guix-git/doc/guix.texi:8939
  15246. #, fuzzy, no-wrap
  15247. msgid "#:substitutable?"
  15248. msgstr "#:substitutable?"
  15249. #. type: table
  15250. #: guix-git/doc/guix.texi:8943
  15251. 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})."
  15252. msgstr ""
  15253. #. type: item
  15254. #: guix-git/doc/guix.texi:8944
  15255. #, no-wrap
  15256. msgid "#:allowed-references"
  15257. msgstr ""
  15258. #. type: itemx
  15259. #: guix-git/doc/guix.texi:8945
  15260. #, no-wrap
  15261. msgid "#:disallowed-references"
  15262. msgstr ""
  15263. #. type: table
  15264. #: guix-git/doc/guix.texi:8950
  15265. 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."
  15266. msgstr ""
  15267. #. type: table
  15268. #: guix-git/doc/guix.texi:8955
  15269. 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})."
  15270. msgstr ""
  15271. #. type: defvar
  15272. #: guix-git/doc/guix.texi:8958
  15273. msgid "Most other build systems support these keyword arguments."
  15274. msgstr ""
  15275. #. type: Plain text
  15276. #: guix-git/doc/guix.texi:8965
  15277. 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."
  15278. msgstr ""
  15279. #. type: defvar
  15280. #: guix-git/doc/guix.texi:8966
  15281. #, fuzzy, no-wrap
  15282. #| msgid "Build Systems"
  15283. msgid "ant-build-system"
  15284. msgstr "构建系统"
  15285. #. type: defvar
  15286. #: guix-git/doc/guix.texi:8970
  15287. 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}."
  15288. msgstr ""
  15289. #. type: defvar
  15290. #: guix-git/doc/guix.texi:8975
  15291. 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."
  15292. msgstr ""
  15293. #. type: defvar
  15294. #: guix-git/doc/guix.texi:8981
  15295. 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''."
  15296. msgstr ""
  15297. #. type: defvar
  15298. #: guix-git/doc/guix.texi:8989
  15299. 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."
  15300. msgstr ""
  15301. #. type: defvar
  15302. #: guix-git/doc/guix.texi:8993
  15303. 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."
  15304. msgstr ""
  15305. #. type: defvar
  15306. #: guix-git/doc/guix.texi:8996
  15307. #, no-wrap
  15308. msgid "android-ndk-build-system"
  15309. msgstr ""
  15310. #. type: cindex
  15311. #: guix-git/doc/guix.texi:8997
  15312. #, no-wrap
  15313. msgid "Android distribution"
  15314. msgstr ""
  15315. #. type: cindex
  15316. #: guix-git/doc/guix.texi:8998
  15317. #, no-wrap
  15318. msgid "Android NDK build system"
  15319. msgstr ""
  15320. #. type: defvar
  15321. #: guix-git/doc/guix.texi:9002
  15322. 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."
  15323. msgstr ""
  15324. #. type: defvar
  15325. #: guix-git/doc/guix.texi:9006
  15326. 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."
  15327. msgstr ""
  15328. #. type: defvar
  15329. #: guix-git/doc/guix.texi:9009
  15330. msgid "It's also assumed that the union of all the dependencies of a package has no conflicting files."
  15331. msgstr ""
  15332. #. type: defvar
  15333. #: guix-git/doc/guix.texi:9012
  15334. msgid "For the time being, cross-compilation is not supported - so right now the libraries and header files are assumed to be host tools."
  15335. msgstr ""
  15336. #. type: defvar
  15337. #: guix-git/doc/guix.texi:9015
  15338. #, no-wrap
  15339. msgid "asdf-build-system/source"
  15340. msgstr ""
  15341. #. type: defvarx
  15342. #: guix-git/doc/guix.texi:9016
  15343. #, no-wrap
  15344. msgid "asdf-build-system/sbcl"
  15345. msgstr ""
  15346. #. type: defvarx
  15347. #: guix-git/doc/guix.texi:9017
  15348. #, no-wrap
  15349. msgid "asdf-build-system/ecl"
  15350. msgstr ""
  15351. #. type: defvar
  15352. #: guix-git/doc/guix.texi:9023
  15353. 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."
  15354. msgstr ""
  15355. #. type: defvar
  15356. #: guix-git/doc/guix.texi:9030
  15357. 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."
  15358. msgstr ""
  15359. #. type: defvar
  15360. #: guix-git/doc/guix.texi:9034
  15361. 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}."
  15362. msgstr ""
  15363. #. type: defvar
  15364. #: guix-git/doc/guix.texi:9038
  15365. 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."
  15366. msgstr ""
  15367. #. type: defvar
  15368. #: guix-git/doc/guix.texi:9046
  15369. 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."
  15370. msgstr ""
  15371. #. type: defvar
  15372. #: guix-git/doc/guix.texi:9055
  15373. 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."
  15374. msgstr ""
  15375. #. type: defvar
  15376. #: guix-git/doc/guix.texi:9060
  15377. 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."
  15378. msgstr ""
  15379. #. type: defvar
  15380. #: guix-git/doc/guix.texi:9063
  15381. #, fuzzy, no-wrap
  15382. #| msgid "Guix System"
  15383. msgid "cargo-build-system"
  15384. msgstr "Guix系统"
  15385. #. type: cindex
  15386. #: guix-git/doc/guix.texi:9064
  15387. #, no-wrap
  15388. msgid "Rust programming language"
  15389. msgstr ""
  15390. #. type: cindex
  15391. #: guix-git/doc/guix.texi:9065
  15392. #, no-wrap
  15393. msgid "Cargo (Rust build system)"
  15394. msgstr ""
  15395. #. type: defvar
  15396. #: guix-git/doc/guix.texi:9069
  15397. 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}."
  15398. msgstr ""
  15399. #. type: defvar
  15400. #: guix-git/doc/guix.texi:9072
  15401. 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."
  15402. msgstr ""
  15403. #. type: defvar
  15404. #: guix-git/doc/guix.texi:9082
  15405. 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."
  15406. msgstr ""
  15407. #. type: defvar
  15408. #: guix-git/doc/guix.texi:9092
  15409. 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."
  15410. msgstr ""
  15411. #. type: defvar
  15412. #: guix-git/doc/guix.texi:9094
  15413. #, no-wrap
  15414. msgid "chicken-build-system"
  15415. msgstr ""
  15416. #. type: defvar
  15417. #: guix-git/doc/guix.texi:9099
  15418. 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."
  15419. msgstr ""
  15420. #. type: defvar
  15421. #: guix-git/doc/guix.texi:9102
  15422. msgid "This build system adds @code{chicken} to the package inputs, as well as the packages of @code{gnu-build-system}."
  15423. msgstr ""
  15424. #. type: defvar
  15425. #: guix-git/doc/guix.texi:9106
  15426. 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."
  15427. msgstr ""
  15428. #. type: defvar
  15429. #: guix-git/doc/guix.texi:9108
  15430. msgid "For example, if you are packaging the @code{srfi-1} egg:"
  15431. msgstr ""
  15432. #. type: lisp
  15433. #: guix-git/doc/guix.texi:9111
  15434. #, no-wrap
  15435. msgid "(arguments '(#:egg-name \"srfi-1\"))\n"
  15436. msgstr ""
  15437. #. type: defvar
  15438. #: guix-git/doc/guix.texi:9116
  15439. 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."
  15440. msgstr ""
  15441. #. type: defvar
  15442. #: guix-git/doc/guix.texi:9118
  15443. #, fuzzy, no-wrap
  15444. #| msgid "Build Systems"
  15445. msgid "copy-build-system"
  15446. msgstr "构建系统"
  15447. #. type: defvar
  15448. #: guix-git/doc/guix.texi:9122
  15449. 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."
  15450. msgstr ""
  15451. #. type: defvar
  15452. #: guix-git/doc/guix.texi:9127
  15453. 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}."
  15454. msgstr ""
  15455. #. type: defvar
  15456. #: guix-git/doc/guix.texi:9132
  15457. 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."
  15458. msgstr ""
  15459. #. type: item
  15460. #: guix-git/doc/guix.texi:9134
  15461. #, no-wrap
  15462. msgid "When @var{source} matches a file or directory without trailing slash, install it to @var{target}."
  15463. msgstr ""
  15464. #. type: item
  15465. #: guix-git/doc/guix.texi:9136
  15466. #, no-wrap
  15467. msgid "If @var{target} has a trailing slash, install @var{source} basename beneath @var{target}."
  15468. msgstr ""
  15469. #. type: item
  15470. #: guix-git/doc/guix.texi:9137
  15471. #, no-wrap
  15472. msgid "Otherwise install @var{source} as @var{target}."
  15473. msgstr ""
  15474. #. type: item
  15475. #: guix-git/doc/guix.texi:9140
  15476. #, no-wrap
  15477. msgid "When @var{source} is a directory with a trailing slash, or when @var{filters} are used,"
  15478. msgstr ""
  15479. #. type: itemize
  15480. #: guix-git/doc/guix.texi:9143
  15481. msgid "the trailing slash of @var{target} is implied with the same meaning as above."
  15482. msgstr ""
  15483. #. type: item
  15484. #: guix-git/doc/guix.texi:9144
  15485. #, no-wrap
  15486. msgid "Without @var{filters}, install the full @var{source} @emph{content} to @var{target}."
  15487. msgstr ""
  15488. #. type: item
  15489. #: guix-git/doc/guix.texi:9145
  15490. #, no-wrap
  15491. msgid "With @var{filters} among @code{#:include}, @code{#:include-regexp}, @code{#:exclude},"
  15492. msgstr ""
  15493. #. type: itemize
  15494. #: guix-git/doc/guix.texi:9148
  15495. msgid "@code{#:exclude-regexp}, only select files are installed depending on the filters. Each filters is specified by a list of strings."
  15496. msgstr ""
  15497. #. type: item
  15498. #: guix-git/doc/guix.texi:9149
  15499. #, no-wrap
  15500. msgid "With @code{#:include}, install all the files which the path suffix matches"
  15501. msgstr ""
  15502. #. type: itemize
  15503. #: guix-git/doc/guix.texi:9151
  15504. msgid "at least one of the elements in the given list."
  15505. msgstr ""
  15506. #. type: item
  15507. #: guix-git/doc/guix.texi:9151
  15508. #, no-wrap
  15509. msgid "With @code{#:include-regexp}, install all the files which the"
  15510. msgstr ""
  15511. #. type: itemize
  15512. #: guix-git/doc/guix.texi:9154
  15513. msgid "subpaths match at least one of the regular expressions in the given list."
  15514. msgstr ""
  15515. #. type: item
  15516. #: guix-git/doc/guix.texi:9154
  15517. #, no-wrap
  15518. msgid "The @code{#:exclude} and @code{#:exclude-regexp} filters"
  15519. msgstr ""
  15520. #. type: itemize
  15521. #: guix-git/doc/guix.texi:9159
  15522. 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."
  15523. msgstr ""
  15524. #. type: itemize
  15525. #: guix-git/doc/guix.texi:9163
  15526. msgid "In all cases, the paths relative to @var{source} are preserved within @var{target}."
  15527. msgstr ""
  15528. #. type: defvar
  15529. #: guix-git/doc/guix.texi:9166
  15530. msgid "Examples:"
  15531. msgstr ""
  15532. #. type: item
  15533. #: guix-git/doc/guix.texi:9168
  15534. #, no-wrap
  15535. msgid "@code{(\"foo/bar\" \"share/my-app/\")}: Install @file{bar} to @file{share/my-app/bar}."
  15536. msgstr ""
  15537. #. type: item
  15538. #: guix-git/doc/guix.texi:9169
  15539. #, no-wrap
  15540. msgid "@code{(\"foo/bar\" \"share/my-app/baz\")}: Install @file{bar} to @file{share/my-app/baz}."
  15541. msgstr ""
  15542. #. type: item
  15543. #: guix-git/doc/guix.texi:9170
  15544. #, no-wrap
  15545. msgid "@code{(\"foo/\" \"share/my-app\")}: Install the content of @file{foo} inside @file{share/my-app},"
  15546. msgstr ""
  15547. #. type: itemize
  15548. #: guix-git/doc/guix.texi:9172
  15549. msgid "e.g., install @file{foo/sub/file} to @file{share/my-app/sub/file}."
  15550. msgstr ""
  15551. #. type: item
  15552. #: guix-git/doc/guix.texi:9172
  15553. #, no-wrap
  15554. msgid "@code{(\"foo/\" \"share/my-app\" #:include (\"sub/file\"))}: Install only @file{foo/sub/file} to"
  15555. msgstr ""
  15556. #. type: itemize
  15557. #: guix-git/doc/guix.texi:9174
  15558. msgid "@file{share/my-app/sub/file}."
  15559. msgstr ""
  15560. #. type: item
  15561. #: guix-git/doc/guix.texi:9174
  15562. #, no-wrap
  15563. msgid "@code{(\"foo/sub\" \"share/my-app\" #:include (\"file\"))}: Install @file{foo/sub/file} to"
  15564. msgstr ""
  15565. #. type: itemize
  15566. #: guix-git/doc/guix.texi:9176
  15567. msgid "@file{share/my-app/file}."
  15568. msgstr ""
  15569. #. type: cindex
  15570. #: guix-git/doc/guix.texi:9180
  15571. #, no-wrap
  15572. msgid "Clojure (programming language)"
  15573. msgstr ""
  15574. #. type: cindex
  15575. #: guix-git/doc/guix.texi:9181
  15576. #, no-wrap
  15577. msgid "simple Clojure build system"
  15578. msgstr ""
  15579. #. type: defvar
  15580. #: guix-git/doc/guix.texi:9182
  15581. #, fuzzy, no-wrap
  15582. msgid "clojure-build-system"
  15583. msgstr "aarch64-linux"
  15584. #. type: defvar
  15585. #: guix-git/doc/guix.texi:9187
  15586. 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."
  15587. msgstr ""
  15588. #. type: defvar
  15589. #: guix-git/doc/guix.texi:9191
  15590. 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."
  15591. msgstr ""
  15592. #. type: defvar
  15593. #: guix-git/doc/guix.texi:9197
  15594. 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."
  15595. msgstr ""
  15596. #. type: defvar
  15597. #: guix-git/doc/guix.texi:9200
  15598. msgid "This build system is an extension of @code{ant-build-system}, but with the following phases changed:"
  15599. msgstr ""
  15600. #. type: item
  15601. #: guix-git/doc/guix.texi:9203 guix-git/doc/guix.texi:9765
  15602. #: guix-git/doc/guix.texi:9916 guix-git/doc/guix.texi:9965
  15603. #: guix-git/doc/guix.texi:10070 guix-git/doc/guix.texi:40091
  15604. #: guix-git/doc/guix.texi:43966
  15605. #, no-wrap
  15606. msgid "build"
  15607. msgstr ""
  15608. #. type: table
  15609. #: guix-git/doc/guix.texi:9212
  15610. 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."
  15611. msgstr ""
  15612. #. type: item
  15613. #: guix-git/doc/guix.texi:9213 guix-git/doc/guix.texi:9769
  15614. #: guix-git/doc/guix.texi:9920 guix-git/doc/guix.texi:10075
  15615. #, no-wrap
  15616. msgid "check"
  15617. msgstr ""
  15618. #. type: table
  15619. #: guix-git/doc/guix.texi:9220
  15620. 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."
  15621. msgstr ""
  15622. #. type: item
  15623. #: guix-git/doc/guix.texi:9221 guix-git/doc/guix.texi:9775
  15624. #: guix-git/doc/guix.texi:9926 guix-git/doc/guix.texi:9969
  15625. #: guix-git/doc/guix.texi:10081
  15626. #, no-wrap
  15627. msgid "install"
  15628. msgstr ""
  15629. #. type: table
  15630. #: guix-git/doc/guix.texi:9223
  15631. msgid "This phase installs all jars built previously."
  15632. msgstr ""
  15633. #. type: defvar
  15634. #: guix-git/doc/guix.texi:9226
  15635. msgid "Apart from the above, this build system also contains an additional phase:"
  15636. msgstr ""
  15637. #. type: item
  15638. #: guix-git/doc/guix.texi:9229
  15639. #, no-wrap
  15640. msgid "install-doc"
  15641. msgstr ""
  15642. #. type: table
  15643. #: guix-git/doc/guix.texi:9234
  15644. 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."
  15645. msgstr ""
  15646. #. type: defvar
  15647. #: guix-git/doc/guix.texi:9237
  15648. #, no-wrap
  15649. msgid "cmake-build-system"
  15650. msgstr "cmake-build-system"
  15651. #. type: defvar
  15652. #: guix-git/doc/guix.texi:9241
  15653. 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}."
  15654. msgstr ""
  15655. #. type: defvar
  15656. #: guix-git/doc/guix.texi:9245
  15657. 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."
  15658. msgstr ""
  15659. #. type: defvar
  15660. #: guix-git/doc/guix.texi:9252
  15661. 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."
  15662. msgstr ""
  15663. #. type: defvar
  15664. #: guix-git/doc/guix.texi:9254
  15665. #, fuzzy, no-wrap
  15666. #| msgid "Build Systems"
  15667. msgid "dune-build-system"
  15668. msgstr "构建系统"
  15669. #. type: defvar
  15670. #: guix-git/doc/guix.texi:9261
  15671. 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."
  15672. msgstr ""
  15673. #. type: defvar
  15674. #: guix-git/doc/guix.texi:9265
  15675. 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."
  15676. msgstr ""
  15677. #. type: defvar
  15678. #: guix-git/doc/guix.texi:9269
  15679. 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."
  15680. msgstr ""
  15681. #. type: defvar
  15682. #: guix-git/doc/guix.texi:9273
  15683. 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}."
  15684. msgstr ""
  15685. #. type: defvar
  15686. #: guix-git/doc/guix.texi:9278
  15687. 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}."
  15688. msgstr ""
  15689. #. type: defvar
  15690. #: guix-git/doc/guix.texi:9281
  15691. #, fuzzy, no-wrap
  15692. #| msgid "Build Systems"
  15693. msgid "elm-build-system"
  15694. msgstr "构建系统"
  15695. #. type: defvar
  15696. #: guix-git/doc/guix.texi:9285
  15697. msgid "This variable is exported by @code{(guix build-system elm)}. It implements a build procedure for @url{https://elm-lang.org, Elm} packages similar to @samp{elm install}."
  15698. msgstr ""
  15699. #. type: defvar
  15700. #: guix-git/doc/guix.texi:9293
  15701. msgid "The build system adds an Elm compiler package to the set of inputs. The default compiler package (currently @code{elm-sans-reactor}) can be overridden using the @code{#:elm} argument. Additionally, Elm packages needed by the build system itself are added as implicit inputs if they are not already present: to suppress this behavior, use the @code{#:implicit-elm-package-inputs?} argument, which is primarily useful for bootstrapping."
  15702. msgstr ""
  15703. #. type: defvar
  15704. #: guix-git/doc/guix.texi:9297
  15705. msgid "The @code{\"dependencies\"} and @code{\"test-dependencies\"} in an Elm package's @file{elm.json} file correspond to @code{propagated-inputs} and @code{inputs}, respectively."
  15706. msgstr ""
  15707. #. type: defvar
  15708. #: guix-git/doc/guix.texi:9301
  15709. msgid "Elm requires a particular structure for package names: @pxref{Elm Packages} for more details, including utilities provided by @code{(guix build-system elm)}."
  15710. msgstr ""
  15711. #. type: defvar
  15712. #: guix-git/doc/guix.texi:9303
  15713. msgid "There are currently a few noteworthy limitations to @code{elm-build-system}:"
  15714. msgstr ""
  15715. #. type: itemize
  15716. #: guix-git/doc/guix.texi:9314
  15717. msgid "The build system is focused on @dfn{packages} in the Elm sense of the word: Elm @dfn{projects} which declare @code{@{ \"type\": \"package\" @}} in their @file{elm.json} files. Using @code{elm-build-system} to build Elm @dfn{applications} (which declare @code{@{ \"type\": \"application\" @}}) is possible, but requires ad-hoc modifications to the build phases. For examples, see the definitions of the @code{elm-todomvc} example application and the @code{elm} package itself (because the front-end for the @samp{elm reactor} command is an Elm application)."
  15718. msgstr ""
  15719. #. type: itemize
  15720. #: guix-git/doc/guix.texi:9326
  15721. msgid "Elm supports multiple versions of a package coexisting simultaneously under @env{ELM_HOME}, but this does not yet work well with @code{elm-build-system}. This limitation primarily affects Elm applications, because they specify exact versions for their dependencies, whereas Elm packages specify supported version ranges. As a workaround, the example applications mentioned above use the @code{patch-application-dependencies} procedure provided by @code{(guix build elm-build-system)} to rewrite their @file{elm.json} files to refer to the package versions actually present in the build environment. Alternatively, Guix package transformations (@pxref{Defining Package Variants}) could be used to rewrite an application's entire dependency graph."
  15722. msgstr ""
  15723. #. type: itemize
  15724. #: guix-git/doc/guix.texi:9332
  15725. msgid "We are not yet able to run tests for Elm projects because neither @url{https://github.com/mpizenberg/elm-test-rs, @command{elm-test-rs}} nor the Node.js-based @url{https://github.com/rtfeldman/node-test-runner, @command{elm-test}} runner has been packaged for Guix yet."
  15726. msgstr ""
  15727. #. type: defvar
  15728. #: guix-git/doc/guix.texi:9335
  15729. #, fuzzy, no-wrap
  15730. #| msgid "Guix System"
  15731. msgid "go-build-system"
  15732. msgstr "Guix系统"
  15733. #. type: defvar
  15734. #: guix-git/doc/guix.texi:9340
  15735. 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}."
  15736. msgstr ""
  15737. #. type: defvar
  15738. #: guix-git/doc/guix.texi:9351
  15739. 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."
  15740. msgstr ""
  15741. #. type: defvar
  15742. #: guix-git/doc/guix.texi:9356
  15743. 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."
  15744. msgstr ""
  15745. #. type: defvar
  15746. #: guix-git/doc/guix.texi:9363
  15747. 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}."
  15748. msgstr ""
  15749. #. type: defvar
  15750. #: guix-git/doc/guix.texi:9366
  15751. msgid "The key @code{#:go} can be used to specify the Go compiler package with which to build the package."
  15752. msgstr ""
  15753. #. type: defvar
  15754. #: guix-git/doc/guix.texi:9369
  15755. #, no-wrap
  15756. msgid "glib-or-gtk-build-system"
  15757. msgstr ""
  15758. #. type: defvar
  15759. #: guix-git/doc/guix.texi:9372
  15760. 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+."
  15761. msgstr ""
  15762. #. type: defvar
  15763. #: guix-git/doc/guix.texi:9375
  15764. msgid "This build system adds the following two phases to the ones defined by @code{gnu-build-system}:"
  15765. msgstr ""
  15766. #. type: item
  15767. #: guix-git/doc/guix.texi:9377 guix-git/doc/guix.texi:9942
  15768. #, no-wrap
  15769. msgid "glib-or-gtk-wrap"
  15770. msgstr ""
  15771. #. type: table
  15772. #: guix-git/doc/guix.texi:9384
  15773. 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."
  15774. msgstr ""
  15775. #. type: table
  15776. #: guix-git/doc/guix.texi:9391
  15777. 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+."
  15778. msgstr ""
  15779. #. type: item
  15780. #: guix-git/doc/guix.texi:9392 guix-git/doc/guix.texi:9946
  15781. #, no-wrap
  15782. msgid "glib-or-gtk-compile-schemas"
  15783. msgstr ""
  15784. #. type: table
  15785. #: guix-git/doc/guix.texi:9400
  15786. 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."
  15787. msgstr ""
  15788. #. type: defvar
  15789. #: guix-git/doc/guix.texi:9403
  15790. msgid "Both phases are executed after the @code{install} phase."
  15791. msgstr ""
  15792. #. type: defvar
  15793. #: guix-git/doc/guix.texi:9405
  15794. #, fuzzy, no-wrap
  15795. #| msgid "Guix System"
  15796. msgid "guile-build-system"
  15797. msgstr "Guix系统"
  15798. #. type: defvar
  15799. #: guix-git/doc/guix.texi:9412
  15800. 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."
  15801. msgstr ""
  15802. #. type: defvar
  15803. #: guix-git/doc/guix.texi:9415
  15804. msgid "This build system supports cross-compilation by using the @option{--target} option of @samp{guild compile}."
  15805. msgstr ""
  15806. #. type: defvar
  15807. #: guix-git/doc/guix.texi:9418
  15808. msgid "Packages built with @code{guile-build-system} must provide a Guile package in their @code{native-inputs} field."
  15809. msgstr ""
  15810. #. type: defvar
  15811. #: guix-git/doc/guix.texi:9420
  15812. #, no-wrap
  15813. msgid "julia-build-system"
  15814. msgstr ""
  15815. #. type: defvar
  15816. #: guix-git/doc/guix.texi:9427
  15817. 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}."
  15818. msgstr ""
  15819. #. type: defvar
  15820. #: guix-git/doc/guix.texi:9432
  15821. 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}."
  15822. msgstr ""
  15823. #. type: defvar
  15824. #: guix-git/doc/guix.texi:9436
  15825. 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}."
  15826. msgstr ""
  15827. #. type: defvar
  15828. #: guix-git/doc/guix.texi:9441
  15829. 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."
  15830. msgstr ""
  15831. #. type: defvar
  15832. #: guix-git/doc/guix.texi:9445
  15833. 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:"
  15834. msgstr ""
  15835. #. type: lisp
  15836. #: guix-git/doc/guix.texi:9457
  15837. #, no-wrap
  15838. msgid ""
  15839. "(add-after 'unpack 'override-binary-path\n"
  15840. " (lambda* (#:key inputs #:allow-other-keys)\n"
  15841. " (for-each (lambda (wrapper)\n"
  15842. " (substitute* wrapper\n"
  15843. " ((\"generate_wrapper_header.*\")\n"
  15844. " (string-append\n"
  15845. " \"generate_wrapper_header(\\\"MbedTLS\\\", \\\"\"\n"
  15846. " (assoc-ref inputs \"mbedtls-apache\") \"\\\")\\n\"))))\n"
  15847. " ;; There's a Julia file for each platform, override them all.\n"
  15848. " (find-files \"src/wrappers/\" \"\\\\.jl$\"))))\n"
  15849. msgstr ""
  15850. #. type: defvar
  15851. #: guix-git/doc/guix.texi:9463
  15852. 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."
  15853. msgstr ""
  15854. #. type: defvar
  15855. #: guix-git/doc/guix.texi:9465
  15856. #, no-wrap
  15857. msgid "maven-build-system"
  15858. msgstr ""
  15859. #. type: defvar
  15860. #: guix-git/doc/guix.texi:9472
  15861. 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."
  15862. msgstr ""
  15863. #. type: defvar
  15864. #: guix-git/doc/guix.texi:9482
  15865. 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."
  15866. msgstr ""
  15867. #. type: defvar
  15868. #: guix-git/doc/guix.texi:9485
  15869. 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."
  15870. msgstr ""
  15871. #. type: defvar
  15872. #: guix-git/doc/guix.texi:9491
  15873. 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}."
  15874. msgstr ""
  15875. #. type: defvar
  15876. #: guix-git/doc/guix.texi:9497
  15877. 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."
  15878. msgstr ""
  15879. #. type: defvar
  15880. #: guix-git/doc/guix.texi:9500
  15881. msgid "You can override the default @code{jdk} and @code{maven} packages with the corresponding argument, @code{#:jdk} and @code{#:maven}."
  15882. msgstr ""
  15883. #. type: defvar
  15884. #: guix-git/doc/guix.texi:9505
  15885. 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."
  15886. msgstr ""
  15887. #. type: defvar
  15888. #: guix-git/doc/guix.texi:9507
  15889. #, no-wrap
  15890. msgid "minetest-mod-build-system"
  15891. msgstr ""
  15892. #. type: defvar
  15893. #: guix-git/doc/guix.texi:9513
  15894. 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."
  15895. msgstr ""
  15896. #. type: defvar
  15897. #: guix-git/doc/guix.texi:9515
  15898. #, no-wrap
  15899. msgid "minify-build-system"
  15900. msgstr ""
  15901. #. type: defvar
  15902. #: guix-git/doc/guix.texi:9518
  15903. msgid "This variable is exported by @code{(guix build-system minify)}. It implements a minification procedure for simple JavaScript packages."
  15904. msgstr ""
  15905. #. type: defvar
  15906. #: guix-git/doc/guix.texi:9524
  15907. 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."
  15908. msgstr ""
  15909. #. type: defvar
  15910. #: guix-git/doc/guix.texi:9528
  15911. 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."
  15912. msgstr ""
  15913. #. type: defvar
  15914. #: guix-git/doc/guix.texi:9530
  15915. #, fuzzy, no-wrap
  15916. #| msgid "Guix System"
  15917. msgid "mozilla-build-system"
  15918. msgstr "Guix系统"
  15919. #. type: defvar
  15920. #: guix-git/doc/guix.texi:9537
  15921. msgid "This variable is exported by @code{(guix build-system mozilla)}. It sets the @code{--target} and @code{--host} configuration flags to what software developed by Mozilla expects -- due to historical reasons, Mozilla software expects @code{--host} to be the system that is cross-compiled from and @code{--target} to be the system that is cross-compiled to, contrary to the standard Autotools conventions."
  15922. msgstr ""
  15923. #. type: defvar
  15924. #: guix-git/doc/guix.texi:9539
  15925. #, no-wrap
  15926. msgid "ocaml-build-system"
  15927. msgstr ""
  15928. #. type: defvar
  15929. #: guix-git/doc/guix.texi:9545
  15930. 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."
  15931. msgstr ""
  15932. #. type: defvar
  15933. #: guix-git/doc/guix.texi:9555
  15934. 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."
  15935. msgstr ""
  15936. #. type: defvar
  15937. #: guix-git/doc/guix.texi:9560
  15938. 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."
  15939. msgstr ""
  15940. #. type: defvar
  15941. #: guix-git/doc/guix.texi:9564
  15942. 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."
  15943. msgstr ""
  15944. #. type: defvar
  15945. #: guix-git/doc/guix.texi:9572
  15946. 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."
  15947. msgstr ""
  15948. #. type: defvar
  15949. #: guix-git/doc/guix.texi:9580
  15950. 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."
  15951. msgstr ""
  15952. #. type: defvar
  15953. #: guix-git/doc/guix.texi:9582
  15954. #, no-wrap
  15955. msgid "python-build-system"
  15956. msgstr ""
  15957. #. type: defvar
  15958. #: guix-git/doc/guix.texi:9587
  15959. 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{}}."
  15960. msgstr ""
  15961. #. type: defvar
  15962. #: guix-git/doc/guix.texi:9592
  15963. 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."
  15964. msgstr ""
  15965. #. type: defvar
  15966. #: guix-git/doc/guix.texi:9598
  15967. 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."
  15968. msgstr ""
  15969. #. type: defvar
  15970. #: guix-git/doc/guix.texi:9603
  15971. 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}."
  15972. msgstr ""
  15973. #. type: defvar
  15974. #: guix-git/doc/guix.texi:9609
  15975. 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."
  15976. msgstr ""
  15977. #. type: defvar
  15978. #: guix-git/doc/guix.texi:9611
  15979. #, fuzzy, no-wrap
  15980. msgid "pyproject-build-system"
  15981. msgstr "aarch64-linux"
  15982. #. type: defvar
  15983. #: guix-git/doc/guix.texi:9616
  15984. msgid "This is a variable exported by @code{guix build-system pyproject}. It is based on @var{python-build-system}, and adds support for @file{pyproject.toml} and @url{https://peps.python.org/pep-0517/, PEP 517}. It also supports a variety of build backends and test frameworks."
  15985. msgstr ""
  15986. #. type: defvar
  15987. #: guix-git/doc/guix.texi:9618
  15988. msgid "The API is slightly different from @var{python-build-system}:"
  15989. msgstr ""
  15990. #. type: itemize
  15991. #: guix-git/doc/guix.texi:9621
  15992. msgid "@code{#:use-setuptools?} and @code{#:test-target} is removed."
  15993. msgstr ""
  15994. #. type: itemize
  15995. #: guix-git/doc/guix.texi:9624
  15996. msgid "@code{#:build-backend} is added. It defaults to @code{#false} and will try to guess the appropriate backend based on @file{pyproject.toml}."
  15997. msgstr ""
  15998. #. type: itemize
  15999. #: guix-git/doc/guix.texi:9627
  16000. msgid "@code{#:test-backend} is added. It defaults to @code{#false} and will guess an appropriate test backend based on what is available in package inputs."
  16001. msgstr ""
  16002. #. type: itemize
  16003. #: guix-git/doc/guix.texi:9631
  16004. msgid "@code{#:test-flags} is added. The default is @code{'()}. These flags are passed as arguments to the test command. Note that flags for verbose output is always enabled on supported backends."
  16005. msgstr ""
  16006. #. type: defvar
  16007. #: guix-git/doc/guix.texi:9637
  16008. msgid "It is considered ``experimental'' in that the implementation details are not set in stone yet, however users are encouraged to try it for new Python projects (even those using @file{setup.py}). The API is subject to change, but any breaking changes in the Guix channel will be dealt with."
  16009. msgstr ""
  16010. #. type: defvar
  16011. #: guix-git/doc/guix.texi:9640
  16012. msgid "Eventually this build system will be deprecated and merged back into @var{python-build-system}, probably some time in 2024."
  16013. msgstr ""
  16014. #. type: defvar
  16015. #: guix-git/doc/guix.texi:9642
  16016. #, fuzzy, no-wrap
  16017. #| msgid "operating-system Reference"
  16018. msgid "perl-build-system"
  16019. msgstr "操作系统参考"
  16020. #. type: defvar
  16021. #: guix-git/doc/guix.texi:9654
  16022. 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."
  16023. msgstr ""
  16024. #. type: defvar
  16025. #: guix-git/doc/guix.texi:9658
  16026. 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."
  16027. msgstr ""
  16028. #. type: defvar
  16029. #: guix-git/doc/guix.texi:9660
  16030. msgid "Which Perl package is used can be specified with @code{#:perl}."
  16031. msgstr ""
  16032. #. type: defvar
  16033. #: guix-git/doc/guix.texi:9662
  16034. #, no-wrap
  16035. msgid "renpy-build-system"
  16036. msgstr ""
  16037. #. type: defvar
  16038. #: guix-git/doc/guix.texi:9666
  16039. 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."
  16040. msgstr ""
  16041. #. type: defvar
  16042. #: guix-git/doc/guix.texi:9669
  16043. 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."
  16044. msgstr ""
  16045. #. type: defvar
  16046. #: guix-git/doc/guix.texi:9673
  16047. 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}."
  16048. msgstr ""
  16049. #. type: defvar
  16050. #: guix-git/doc/guix.texi:9675
  16051. #, fuzzy, no-wrap
  16052. #| msgid "Build Systems"
  16053. msgid "qt-build-system"
  16054. msgstr "构建系统"
  16055. #. type: defvar
  16056. #: guix-git/doc/guix.texi:9678
  16057. msgid "This variable is exported by @code{(guix build-system qt)}. It is intended for use with applications using Qt or KDE."
  16058. msgstr ""
  16059. #. type: defvar
  16060. #: guix-git/doc/guix.texi:9681
  16061. msgid "This build system adds the following two phases to the ones defined by @code{cmake-build-system}:"
  16062. msgstr ""
  16063. #. type: item
  16064. #: guix-git/doc/guix.texi:9683
  16065. #, no-wrap
  16066. msgid "check-setup"
  16067. msgstr ""
  16068. #. type: table
  16069. #: guix-git/doc/guix.texi:9690
  16070. 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}."
  16071. msgstr ""
  16072. #. type: table
  16073. #: guix-git/doc/guix.texi:9693
  16074. msgid "This phase is added before the @code{check} phase. It's a separate phase to ease adjusting if necessary."
  16075. msgstr ""
  16076. #. type: item
  16077. #: guix-git/doc/guix.texi:9694
  16078. #, no-wrap
  16079. msgid "qt-wrap"
  16080. msgstr ""
  16081. #. type: table
  16082. #: guix-git/doc/guix.texi:9700
  16083. 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."
  16084. msgstr ""
  16085. #. type: table
  16086. #: guix-git/doc/guix.texi:9706
  16087. 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."
  16088. msgstr ""
  16089. #. type: table
  16090. #: guix-git/doc/guix.texi:9708
  16091. msgid "This phase is added after the @code{install} phase."
  16092. msgstr ""
  16093. #. type: defvar
  16094. #: guix-git/doc/guix.texi:9711
  16095. #, fuzzy, no-wrap
  16096. #| msgid "Build Systems"
  16097. msgid "r-build-system"
  16098. msgstr "构建系统"
  16099. #. type: defvar
  16100. #: guix-git/doc/guix.texi:9719
  16101. 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}."
  16102. msgstr ""
  16103. #. type: defvar
  16104. #: guix-git/doc/guix.texi:9721
  16105. #, no-wrap
  16106. msgid "rakudo-build-system"
  16107. msgstr ""
  16108. #. type: defvar
  16109. #: guix-git/doc/guix.texi:9729
  16110. 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."
  16111. msgstr ""
  16112. #. type: defvar
  16113. #: guix-git/doc/guix.texi:9737
  16114. 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."
  16115. msgstr ""
  16116. #. type: defvar
  16117. #: guix-git/doc/guix.texi:9739
  16118. #, no-wrap
  16119. msgid "rebar-build-system"
  16120. msgstr ""
  16121. #. type: defvar
  16122. #: guix-git/doc/guix.texi:9743
  16123. msgid "This variable is exported by @code{(guix build-system rebar)}. It implements a build procedure around @uref{https://rebar3.org,rebar3}, a build system for programs written in the Erlang language."
  16124. msgstr ""
  16125. #. type: defvar
  16126. #: guix-git/doc/guix.texi:9747
  16127. msgid "It adds both @code{rebar3} and the @code{erlang} to the set of inputs. Different packages can be specified with the @code{#:rebar} and @code{#:erlang} parameters, respectively."
  16128. msgstr ""
  16129. #. type: defvar
  16130. #: guix-git/doc/guix.texi:9750
  16131. msgid "This build system is based on @code{gnu-build-system}, but with the following phases changed:"
  16132. msgstr ""
  16133. #. type: item
  16134. #: guix-git/doc/guix.texi:9753 guix-git/doc/guix.texi:10055
  16135. #, no-wrap
  16136. msgid "unpack"
  16137. msgstr ""
  16138. #. type: table
  16139. #: guix-git/doc/guix.texi:9759
  16140. msgid "This phase, after unpacking the source like the @code{gnu-build-system} does, checks for a file @code{contents.tar.gz} at the top-level of the source. If this file exists, it will be unpacked, too. This eases handling of package hosted at @uref{https://hex.pm/}, the Erlang and Elixir package repository."
  16141. msgstr ""
  16142. #. type: item
  16143. #: guix-git/doc/guix.texi:9760
  16144. #, fuzzy, no-wrap
  16145. #| msgid "Bootstrapping"
  16146. msgid "bootstrap"
  16147. msgstr "引导"
  16148. #. type: item
  16149. #: guix-git/doc/guix.texi:9761 guix-git/doc/guix.texi:9910
  16150. #: guix-git/doc/guix.texi:9961 guix-git/doc/guix.texi:10065
  16151. #, no-wrap
  16152. msgid "configure"
  16153. msgstr ""
  16154. #. type: table
  16155. #: guix-git/doc/guix.texi:9764
  16156. msgid "There are no @code{bootstrap} and @code{configure} phase because erlang packages typically don’t need to be configured."
  16157. msgstr ""
  16158. #. type: table
  16159. #: guix-git/doc/guix.texi:9768
  16160. msgid "This phase runs @code{rebar3 compile} with the flags listed in @code{#:rebar-flags}."
  16161. msgstr ""
  16162. #. type: table
  16163. #: guix-git/doc/guix.texi:9774
  16164. msgid "Unless @code{#:tests? #f} is passed, this phase runs @code{rebar3 eunit}, or some other target specified with @code{#:test-target}, with the flags listed in @code{#:rebar-flags},"
  16165. msgstr ""
  16166. #. type: table
  16167. #: guix-git/doc/guix.texi:9778
  16168. msgid "This installs the files created in the @i{default} profile, or some other profile specified with @code{#:install-profile}."
  16169. msgstr ""
  16170. #. type: defvar
  16171. #: guix-git/doc/guix.texi:9782
  16172. #, no-wrap
  16173. msgid "texlive-build-system"
  16174. msgstr ""
  16175. #. type: defvar
  16176. #: guix-git/doc/guix.texi:9787
  16177. 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."
  16178. msgstr ""
  16179. #. type: defvar
  16180. #: guix-git/doc/guix.texi:9796
  16181. 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."
  16182. msgstr ""
  16183. #. type: defvar
  16184. #: guix-git/doc/guix.texi:9799
  16185. msgid "The @code{#:tex-directory} parameter tells the build system where to install the built files under the texmf tree."
  16186. msgstr ""
  16187. #. type: defvar
  16188. #: guix-git/doc/guix.texi:9801
  16189. #, fuzzy, no-wrap
  16190. #| msgid "Build Systems"
  16191. msgid "ruby-build-system"
  16192. msgstr "构建系统"
  16193. #. type: defvar
  16194. #: guix-git/doc/guix.texi:9805
  16195. 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}."
  16196. msgstr ""
  16197. #. type: defvar
  16198. #: guix-git/doc/guix.texi:9813
  16199. 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."
  16200. msgstr ""
  16201. #. type: defvar
  16202. #: guix-git/doc/guix.texi:9817
  16203. 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."
  16204. msgstr ""
  16205. #. type: defvar
  16206. #: guix-git/doc/guix.texi:9819
  16207. #, fuzzy, no-wrap
  16208. #| msgid "Build Systems"
  16209. msgid "waf-build-system"
  16210. msgstr "构建系统"
  16211. #. type: defvar
  16212. #: guix-git/doc/guix.texi:9825
  16213. 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."
  16214. msgstr ""
  16215. #. type: defvar
  16216. #: guix-git/doc/guix.texi:9829
  16217. 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."
  16218. msgstr ""
  16219. #. type: defvar
  16220. #: guix-git/doc/guix.texi:9831
  16221. #, no-wrap
  16222. msgid "scons-build-system"
  16223. msgstr ""
  16224. #. type: defvar
  16225. #: guix-git/doc/guix.texi:9837
  16226. 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."
  16227. msgstr ""
  16228. #. type: defvar
  16229. #: guix-git/doc/guix.texi:9844
  16230. 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."
  16231. msgstr ""
  16232. #. type: defvar
  16233. #: guix-git/doc/guix.texi:9846
  16234. #, no-wrap
  16235. msgid "haskell-build-system"
  16236. msgstr ""
  16237. #. type: defvar
  16238. #: guix-git/doc/guix.texi:9860
  16239. 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."
  16240. msgstr ""
  16241. #. type: defvar
  16242. #: guix-git/doc/guix.texi:9863
  16243. msgid "Which Haskell compiler is used can be specified with the @code{#:haskell} parameter which defaults to @code{ghc}."
  16244. msgstr ""
  16245. #. type: defvar
  16246. #: guix-git/doc/guix.texi:9865
  16247. #, fuzzy, no-wrap
  16248. #| msgid "Build Systems"
  16249. msgid "dub-build-system"
  16250. msgstr "构建系统"
  16251. #. type: defvar
  16252. #: guix-git/doc/guix.texi:9870
  16253. 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."
  16254. msgstr ""
  16255. #. type: defvar
  16256. #: guix-git/doc/guix.texi:9873
  16257. msgid "Which D compiler is used can be specified with the @code{#:ldc} parameter which defaults to @code{ldc}."
  16258. msgstr ""
  16259. #. type: defvar
  16260. #: guix-git/doc/guix.texi:9876
  16261. #, no-wrap
  16262. msgid "emacs-build-system"
  16263. msgstr ""
  16264. #. type: defvar
  16265. #: guix-git/doc/guix.texi:9880
  16266. 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})."
  16267. msgstr ""
  16268. #. type: defvar
  16269. #: guix-git/doc/guix.texi:9886
  16270. 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}."
  16271. msgstr ""
  16272. #. type: defvar
  16273. #: guix-git/doc/guix.texi:9888
  16274. #, fuzzy, no-wrap
  16275. #| msgid "Build Systems"
  16276. msgid "font-build-system"
  16277. msgstr "构建系统"
  16278. #. type: defvar
  16279. #: guix-git/doc/guix.texi:9894
  16280. 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."
  16281. msgstr ""
  16282. #. type: defvar
  16283. #: guix-git/doc/guix.texi:9896
  16284. #, no-wrap
  16285. msgid "meson-build-system"
  16286. msgstr ""
  16287. #. type: defvar
  16288. #: guix-git/doc/guix.texi:9900
  16289. 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."
  16290. msgstr ""
  16291. #. type: defvar
  16292. #: guix-git/doc/guix.texi:9904
  16293. 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."
  16294. msgstr ""
  16295. #. type: defvar
  16296. #: guix-git/doc/guix.texi:9907
  16297. msgid "This build system is an extension of @code{gnu-build-system}, but with the following phases changed to some specific for Meson:"
  16298. msgstr ""
  16299. #. type: table
  16300. #: guix-git/doc/guix.texi:9915
  16301. 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}."
  16302. msgstr ""
  16303. #. type: table
  16304. #: guix-git/doc/guix.texi:9919
  16305. msgid "The phase runs @code{ninja} to build the package in parallel by default, but this can be changed with @code{#:parallel-build?}."
  16306. msgstr ""
  16307. #. type: table
  16308. #: guix-git/doc/guix.texi:9925
  16309. 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."
  16310. msgstr ""
  16311. #. type: table
  16312. #: guix-git/doc/guix.texi:9928
  16313. msgid "The phase runs @code{ninja install} and can not be changed."
  16314. msgstr ""
  16315. #. type: defvar
  16316. #: guix-git/doc/guix.texi:9931
  16317. msgid "Apart from that, the build system also adds the following phases:"
  16318. msgstr ""
  16319. #. type: item
  16320. #: guix-git/doc/guix.texi:9934
  16321. #, no-wrap
  16322. msgid "fix-runpath"
  16323. msgstr ""
  16324. #. type: table
  16325. #: guix-git/doc/guix.texi:9941
  16326. 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."
  16327. msgstr ""
  16328. #. type: table
  16329. #: guix-git/doc/guix.texi:9945 guix-git/doc/guix.texi:9949
  16330. 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?}."
  16331. msgstr ""
  16332. #. type: defvar
  16333. #: guix-git/doc/guix.texi:9952
  16334. #, no-wrap
  16335. msgid "linux-module-build-system"
  16336. msgstr ""
  16337. #. type: defvar
  16338. #: guix-git/doc/guix.texi:9954
  16339. msgid "@code{linux-module-build-system} allows building Linux kernel modules."
  16340. msgstr ""
  16341. #. type: defvar
  16342. #: guix-git/doc/guix.texi:9958
  16343. msgid "This build system is an extension of @code{gnu-build-system}, but with the following phases changed:"
  16344. msgstr ""
  16345. #. type: table
  16346. #: guix-git/doc/guix.texi:9964
  16347. msgid "This phase configures the environment so that the Linux kernel's Makefile can be used to build the external kernel module."
  16348. msgstr ""
  16349. #. type: table
  16350. #: guix-git/doc/guix.texi:9968
  16351. msgid "This phase uses the Linux kernel's Makefile in order to build the external kernel module."
  16352. msgstr ""
  16353. #. type: table
  16354. #: guix-git/doc/guix.texi:9972
  16355. msgid "This phase uses the Linux kernel's Makefile in order to install the external kernel module."
  16356. msgstr ""
  16357. #. type: defvar
  16358. #: guix-git/doc/guix.texi:9977
  16359. 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)."
  16360. msgstr ""
  16361. #. type: defvar
  16362. #: guix-git/doc/guix.texi:9979
  16363. #, fuzzy, no-wrap
  16364. #| msgid "Build Systems"
  16365. msgid "node-build-system"
  16366. msgstr "构建系统"
  16367. #. type: defvar
  16368. #: guix-git/doc/guix.texi:9984
  16369. 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."
  16370. msgstr ""
  16371. #. type: defvar
  16372. #: guix-git/doc/guix.texi:9988
  16373. 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}."
  16374. msgstr ""
  16375. #. type: defvar
  16376. #: guix-git/doc/guix.texi:9990
  16377. #, fuzzy, no-wrap
  16378. #| msgid "Build Systems"
  16379. msgid "tree-sitter-build-system"
  16380. msgstr "构建系统"
  16381. #. type: defvar
  16382. #: guix-git/doc/guix.texi:9998
  16383. msgid "This variable is exported by @code{(guix build-system tree-sitter)}. It implements procedures to compile grammars for the @url{https://tree-sitter.github.io/tree-sitter/, Tree-sitter} parsing library. It essentially runs @code{tree-sitter generate} to translate @code{grammar.js} grammars to JSON and then to C. Which it then compiles to native code."
  16384. msgstr ""
  16385. #. type: defvar
  16386. #: guix-git/doc/guix.texi:10002
  16387. msgid "Tree-sitter packages may support multiple grammars, so this build system supports a @code{#:grammar-directories} keyword to specify a list of locations where a @code{grammar.js} file may be found."
  16388. msgstr ""
  16389. #. type: defvar
  16390. #: guix-git/doc/guix.texi:10006
  16391. msgid "Grammars sometimes depend on each other, such as C++ depending on C and TypeScript depending on JavaScript. You may use inputs to declare such dependencies."
  16392. msgstr ""
  16393. #. type: Plain text
  16394. #: guix-git/doc/guix.texi:10013
  16395. 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."
  16396. msgstr ""
  16397. #. type: defvar
  16398. #: guix-git/doc/guix.texi:10014
  16399. #, no-wrap
  16400. msgid "trivial-build-system"
  16401. msgstr ""
  16402. #. type: defvar
  16403. #: guix-git/doc/guix.texi:10016
  16404. msgid "This variable is exported by @code{(guix build-system trivial)}."
  16405. msgstr ""
  16406. #. type: defvar
  16407. #: guix-git/doc/guix.texi:10021
  16408. 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}})."
  16409. msgstr ""
  16410. #. type: defvar
  16411. #: guix-git/doc/guix.texi:10023
  16412. #, fuzzy, no-wrap
  16413. msgid "channel-build-system"
  16414. msgstr "通道"
  16415. #. type: defvar
  16416. #: guix-git/doc/guix.texi:10025
  16417. msgid "This variable is exported by @code{(guix build-system channel)}."
  16418. msgstr ""
  16419. #. type: defvar
  16420. #: guix-git/doc/guix.texi:10031
  16421. msgid "This build system is meant primarily for internal use. A package using this build system must have a channel specification as its @code{source} field (@pxref{Channels}); alternatively, its source can be a directory name, in which case an additional @code{#:commit} argument must be supplied to specify the commit being built (a hexadecimal string)."
  16422. msgstr ""
  16423. #. type: defvar
  16424. #: guix-git/doc/guix.texi:10034
  16425. msgid "The resulting package is a Guix instance of the given channel, similar to how @command{guix time-machine} would build it."
  16426. msgstr ""
  16427. #. type: cindex
  16428. #: guix-git/doc/guix.texi:10039
  16429. #, fuzzy, no-wrap
  16430. msgid "build phases, for packages"
  16431. msgstr "Python软件包的输入"
  16432. #. type: Plain text
  16433. #: guix-git/doc/guix.texi:10045
  16434. 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})."
  16435. msgstr ""
  16436. #. type: Plain text
  16437. #: guix-git/doc/guix.texi:10049
  16438. 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:"
  16439. msgstr ""
  16440. #. type: item
  16441. #: guix-git/doc/guix.texi:10051
  16442. #, no-wrap
  16443. msgid "set-paths"
  16444. msgstr ""
  16445. #. type: table
  16446. #: guix-git/doc/guix.texi:10054
  16447. msgid "Define search path environment variables for all the input packages, including @env{PATH} (@pxref{Search Paths})."
  16448. msgstr ""
  16449. #. type: table
  16450. #: guix-git/doc/guix.texi:10059
  16451. 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."
  16452. msgstr ""
  16453. #. type: item
  16454. #: guix-git/doc/guix.texi:10060
  16455. #, no-wrap
  16456. msgid "patch-source-shebangs"
  16457. msgstr ""
  16458. #. type: table
  16459. #: guix-git/doc/guix.texi:10064
  16460. 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}."
  16461. msgstr ""
  16462. #. type: table
  16463. #: guix-git/doc/guix.texi:10069
  16464. 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."
  16465. msgstr ""
  16466. #. type: table
  16467. #: guix-git/doc/guix.texi:10074
  16468. 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}."
  16469. msgstr ""
  16470. #. type: table
  16471. #: guix-git/doc/guix.texi:10080
  16472. 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}."
  16473. msgstr ""
  16474. #. type: table
  16475. #: guix-git/doc/guix.texi:10083
  16476. msgid "Run @code{make install} with the flags listed in @code{#:make-flags}."
  16477. msgstr ""
  16478. #. type: item
  16479. #: guix-git/doc/guix.texi:10084
  16480. #, no-wrap
  16481. msgid "patch-shebangs"
  16482. msgstr ""
  16483. #. type: table
  16484. #: guix-git/doc/guix.texi:10086
  16485. msgid "Patch shebangs on the installed executable files."
  16486. msgstr ""
  16487. #. type: item
  16488. #: guix-git/doc/guix.texi:10087
  16489. #, no-wrap
  16490. msgid "strip"
  16491. msgstr ""
  16492. #. type: table
  16493. #: guix-git/doc/guix.texi:10091
  16494. 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})."
  16495. msgstr ""
  16496. #. type: anchor{#1}
  16497. #: guix-git/doc/guix.texi:10094
  16498. msgid "phase-validate-runpath"
  16499. msgstr ""
  16500. #. type: item
  16501. #: guix-git/doc/guix.texi:10094
  16502. #, no-wrap
  16503. msgid "validate-runpath"
  16504. msgstr ""
  16505. #. type: table
  16506. #: guix-git/doc/guix.texi:10097
  16507. msgid "Validate the @code{RUNPATH} of ELF binaries, unless @code{#:validate-runpath?} is false (@pxref{Build Systems})."
  16508. msgstr ""
  16509. #. type: table
  16510. #: guix-git/doc/guix.texi:10105
  16511. 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}."
  16512. msgstr ""
  16513. #. type: Plain text
  16514. #: guix-git/doc/guix.texi:10115
  16515. 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})."
  16516. msgstr ""
  16517. #. type: Plain text
  16518. #: guix-git/doc/guix.texi:10122
  16519. 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."
  16520. msgstr ""
  16521. #. type: vindex
  16522. #: guix-git/doc/guix.texi:10123
  16523. #, no-wrap
  16524. msgid "%standard-phases"
  16525. msgstr ""
  16526. #. type: Plain text
  16527. #: guix-git/doc/guix.texi:10129
  16528. 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!}:"
  16529. msgstr ""
  16530. #. type: lisp
  16531. #: guix-git/doc/guix.texi:10132
  16532. #, no-wrap
  16533. msgid ""
  16534. ";; The build phases of 'gnu-build-system'.\n"
  16535. "\n"
  16536. msgstr ""
  16537. #. type: lisp
  16538. #: guix-git/doc/guix.texi:10136
  16539. #, no-wrap
  16540. msgid ""
  16541. "(define* (unpack #:key source #:allow-other-keys)\n"
  16542. " ;; Extract the source tarball.\n"
  16543. " (invoke \"tar\" \"xvf\" source))\n"
  16544. "\n"
  16545. msgstr ""
  16546. #. type: lisp
  16547. #: guix-git/doc/guix.texi:10142
  16548. #, no-wrap
  16549. msgid ""
  16550. "(define* (configure #:key outputs #:allow-other-keys)\n"
  16551. " ;; Run the 'configure' script. Install to output \"out\".\n"
  16552. " (let ((out (assoc-ref outputs \"out\")))\n"
  16553. " (invoke \"./configure\"\n"
  16554. " (string-append \"--prefix=\" out))))\n"
  16555. "\n"
  16556. msgstr ""
  16557. #. type: lisp
  16558. #: guix-git/doc/guix.texi:10146
  16559. #, no-wrap
  16560. msgid ""
  16561. "(define* (build #:allow-other-keys)\n"
  16562. " ;; Compile.\n"
  16563. " (invoke \"make\"))\n"
  16564. "\n"
  16565. msgstr ""
  16566. #. type: lisp
  16567. #: guix-git/doc/guix.texi:10153
  16568. #, no-wrap
  16569. msgid ""
  16570. "(define* (check #:key (test-target \"check\") (tests? #true)\n"
  16571. " #:allow-other-keys)\n"
  16572. " ;; Run the test suite.\n"
  16573. " (if tests?\n"
  16574. " (invoke \"make\" test-target)\n"
  16575. " (display \"test suite not run\\n\")))\n"
  16576. "\n"
  16577. msgstr ""
  16578. #. type: lisp
  16579. #: guix-git/doc/guix.texi:10157
  16580. #, no-wrap
  16581. msgid ""
  16582. "(define* (install #:allow-other-keys)\n"
  16583. " ;; Install files to the prefix 'configure' specified.\n"
  16584. " (invoke \"make\" \"install\"))\n"
  16585. "\n"
  16586. msgstr ""
  16587. #. type: lisp
  16588. #: guix-git/doc/guix.texi:10166
  16589. #, no-wrap
  16590. msgid ""
  16591. "(define %standard-phases\n"
  16592. " ;; The list of standard phases (quite a few are omitted\n"
  16593. " ;; for brevity). Each element is a symbol/procedure pair.\n"
  16594. " (list (cons 'unpack unpack)\n"
  16595. " (cons 'configure configure)\n"
  16596. " (cons 'build build)\n"
  16597. " (cons 'check check)\n"
  16598. " (cons 'install install)))\n"
  16599. msgstr ""
  16600. #. type: Plain text
  16601. #: guix-git/doc/guix.texi:10176
  16602. 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."
  16603. msgstr ""
  16604. #. type: Plain text
  16605. #: guix-git/doc/guix.texi:10182
  16606. 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})."
  16607. msgstr ""
  16608. #. type: Plain text
  16609. #: guix-git/doc/guix.texi:10198
  16610. 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."
  16611. msgstr ""
  16612. #. type: cindex
  16613. #: guix-git/doc/guix.texi:10199
  16614. #, no-wrap
  16615. msgid "build phases, customizing"
  16616. msgstr ""
  16617. #. type: Plain text
  16618. #: guix-git/doc/guix.texi:10208
  16619. 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}})."
  16620. msgstr ""
  16621. #. type: Plain text
  16622. #: guix-git/doc/guix.texi:10213
  16623. 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}:"
  16624. msgstr ""
  16625. #. type: lisp
  16626. #: guix-git/doc/guix.texi:10237
  16627. #, no-wrap
  16628. msgid ""
  16629. "(define-public example\n"
  16630. " (package\n"
  16631. " (name \"example\")\n"
  16632. " ;; other fields omitted\n"
  16633. " (build-system gnu-build-system)\n"
  16634. " (arguments\n"
  16635. " (list\n"
  16636. " #:phases\n"
  16637. " #~(modify-phases %standard-phases\n"
  16638. " (delete 'configure)\n"
  16639. " (add-before 'build 'set-prefix-in-makefile\n"
  16640. " (lambda* (#:key inputs #:allow-other-keys)\n"
  16641. " ;; Modify the makefile so that its\n"
  16642. " ;; 'PREFIX' variable points to #$output and\n"
  16643. " ;; 'XMLLINT' points to the correct path.\n"
  16644. " (substitute* \"Makefile\"\n"
  16645. " ((\"PREFIX =.*\")\n"
  16646. " (string-append \"PREFIX = \" #$output \"\\n\"))\n"
  16647. " ((\"XMLLINT =.*\")\n"
  16648. " (string-append \"XMLLINT = \"\n"
  16649. " (search-input-file inputs \"/bin/xmllint\")\n"
  16650. " \"\\n\"))))))))))\n"
  16651. msgstr ""
  16652. #. type: Plain text
  16653. #: guix-git/doc/guix.texi:10246
  16654. msgid "The new phase that is inserted is written as an anonymous procedure, introduced with @code{lambda*}; it looks for the @file{xmllint} executable under a @file{/bin} directory among the package's inputs (@pxref{package Reference}). It also 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}."
  16655. msgstr ""
  16656. #. type: cindex
  16657. #: guix-git/doc/guix.texi:10247 guix-git/doc/guix.texi:11600
  16658. #, no-wrap
  16659. msgid "code staging"
  16660. msgstr ""
  16661. #. type: cindex
  16662. #: guix-git/doc/guix.texi:10248 guix-git/doc/guix.texi:11601
  16663. #, fuzzy, no-wrap
  16664. msgid "staging, of code"
  16665. msgstr "代码格式化"
  16666. #. type: Plain text
  16667. #: guix-git/doc/guix.texi:10255
  16668. 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."
  16669. msgstr ""
  16670. #. type: Plain text
  16671. #: guix-git/doc/guix.texi:10265
  16672. 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."
  16673. msgstr ""
  16674. #. type: Plain text
  16675. #: guix-git/doc/guix.texi:10269
  16676. 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."
  16677. msgstr ""
  16678. #. type: Plain text
  16679. #: guix-git/doc/guix.texi:10274
  16680. 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}):"
  16681. msgstr ""
  16682. #. type: lisp
  16683. #: guix-git/doc/guix.texi:10281
  16684. #, no-wrap
  16685. msgid ""
  16686. "(with-imported-modules '((guix build utils)) ;import it\n"
  16687. " (computed-file \"empty-tree\"\n"
  16688. " #~(begin\n"
  16689. " ;; Put it in scope.\n"
  16690. " (use-modules (guix build utils))\n"
  16691. "\n"
  16692. msgstr ""
  16693. #. type: lisp
  16694. #: guix-git/doc/guix.texi:10284
  16695. #, no-wrap
  16696. msgid ""
  16697. " ;; Happily use its 'mkdir-p' procedure.\n"
  16698. " (mkdir-p (string-append #$output \"/a/b/c\")))))\n"
  16699. msgstr ""
  16700. #. type: Plain text
  16701. #: guix-git/doc/guix.texi:10288
  16702. msgid "The remainder of this section is the reference for most of the utility procedures provided by @code{(guix build utils)}."
  16703. msgstr ""
  16704. #. type: subsection
  16705. #: guix-git/doc/guix.texi:10291
  16706. #, no-wrap
  16707. msgid "Dealing with Store File Names"
  16708. msgstr ""
  16709. #. type: Plain text
  16710. #: guix-git/doc/guix.texi:10294
  16711. msgid "This section documents procedures that deal with store file names."
  16712. msgstr ""
  16713. #. type: defun
  16714. #: guix-git/doc/guix.texi:10295
  16715. #, fuzzy, no-wrap
  16716. #| msgid "state directory"
  16717. msgid "%store-directory"
  16718. msgstr "状态文件夹"
  16719. #. type: defun
  16720. #: guix-git/doc/guix.texi:10297
  16721. #, fuzzy
  16722. msgid "Return the directory name of the store."
  16723. msgstr "仓库的纯函数式接口。"
  16724. #. type: defun
  16725. #: guix-git/doc/guix.texi:10299
  16726. #, fuzzy, no-wrap
  16727. msgid "store-file-name? file"
  16728. msgstr "通道"
  16729. #. type: defun
  16730. #: guix-git/doc/guix.texi:10301
  16731. msgid "Return true if @var{file} is in the store."
  16732. msgstr ""
  16733. #. type: defun
  16734. #: guix-git/doc/guix.texi:10303
  16735. #, no-wrap
  16736. msgid "strip-store-file-name file"
  16737. msgstr ""
  16738. #. type: defun
  16739. #: guix-git/doc/guix.texi:10306
  16740. 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."
  16741. msgstr ""
  16742. #. type: defun
  16743. #: guix-git/doc/guix.texi:10308
  16744. #, fuzzy, no-wrap
  16745. #| msgid "package version"
  16746. msgid "package-name->name+version name"
  16747. msgstr "软件包版本"
  16748. #. type: defun
  16749. #: guix-git/doc/guix.texi:10313
  16750. 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."
  16751. msgstr ""
  16752. #. type: subsection
  16753. #: guix-git/doc/guix.texi:10315
  16754. #, fuzzy, no-wrap
  16755. msgid "File Types"
  16756. msgstr "文件系统"
  16757. #. type: Plain text
  16758. #: guix-git/doc/guix.texi:10318
  16759. msgid "The procedures below deal with files and file types."
  16760. msgstr ""
  16761. #. type: defun
  16762. #: guix-git/doc/guix.texi:10319
  16763. #, fuzzy, no-wrap
  16764. #| msgid "state directory"
  16765. msgid "directory-exists? dir"
  16766. msgstr "状态文件夹"
  16767. #. type: defun
  16768. #: guix-git/doc/guix.texi:10321
  16769. msgid "Return @code{#t} if @var{dir} exists and is a directory."
  16770. msgstr ""
  16771. #. type: defun
  16772. #: guix-git/doc/guix.texi:10323
  16773. #, no-wrap
  16774. msgid "executable-file? file"
  16775. msgstr ""
  16776. #. type: defun
  16777. #: guix-git/doc/guix.texi:10325
  16778. msgid "Return @code{#t} if @var{file} exists and is executable."
  16779. msgstr ""
  16780. #. type: defun
  16781. #: guix-git/doc/guix.texi:10327
  16782. #, fuzzy, no-wrap
  16783. #| msgid "Invoking guix size"
  16784. msgid "symbolic-link? file"
  16785. msgstr "调用guix size"
  16786. #. type: defun
  16787. #: guix-git/doc/guix.texi:10329
  16788. msgid "Return @code{#t} if @var{file} is a symbolic link (aka. a ``symlink'')."
  16789. msgstr ""
  16790. #. type: defun
  16791. #: guix-git/doc/guix.texi:10331
  16792. #, no-wrap
  16793. msgid "elf-file? file"
  16794. msgstr ""
  16795. #. type: defunx
  16796. #: guix-git/doc/guix.texi:10332
  16797. #, no-wrap
  16798. msgid "ar-file? file"
  16799. msgstr ""
  16800. #. type: defunx
  16801. #: guix-git/doc/guix.texi:10333
  16802. #, no-wrap
  16803. msgid "gzip-file? file"
  16804. msgstr ""
  16805. #. type: defun
  16806. #: guix-git/doc/guix.texi:10336
  16807. 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."
  16808. msgstr ""
  16809. #. type: defun
  16810. #: guix-git/doc/guix.texi:10338
  16811. #, no-wrap
  16812. msgid "reset-gzip-timestamp file [#:keep-mtime? #t]"
  16813. msgstr ""
  16814. #. type: defun
  16815. #: guix-git/doc/guix.texi:10342
  16816. 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."
  16817. msgstr ""
  16818. #. type: subsection
  16819. #: guix-git/doc/guix.texi:10344
  16820. #, no-wrap
  16821. msgid "File Manipulation"
  16822. msgstr ""
  16823. #. type: Plain text
  16824. #: guix-git/doc/guix.texi:10351
  16825. 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})."
  16826. msgstr ""
  16827. #. type: defmac
  16828. #: guix-git/doc/guix.texi:10352
  16829. #, no-wrap
  16830. msgid "with-directory-excursion directory body @dots{}"
  16831. msgstr ""
  16832. #. type: defmac
  16833. #: guix-git/doc/guix.texi:10354
  16834. msgid "Run @var{body} with @var{directory} as the process's current directory."
  16835. msgstr ""
  16836. #. type: defmac
  16837. #: guix-git/doc/guix.texi:10361
  16838. 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."
  16839. msgstr ""
  16840. #. type: defun
  16841. #: guix-git/doc/guix.texi:10363
  16842. #, no-wrap
  16843. msgid "mkdir-p dir"
  16844. msgstr ""
  16845. #. type: defun
  16846. #: guix-git/doc/guix.texi:10365
  16847. msgid "Create directory @var{dir} and all its ancestors."
  16848. msgstr ""
  16849. #. type: defun
  16850. #: guix-git/doc/guix.texi:10367
  16851. #, fuzzy, no-wrap
  16852. #| msgid "a writable @file{/tmp} directory."
  16853. msgid "install-file file directory"
  16854. msgstr "一个可写的@file{/tmp}文件夹。"
  16855. #. type: defun
  16856. #: guix-git/doc/guix.texi:10370
  16857. msgid "Create @var{directory} if it does not exist and copy @var{file} in there under the same name."
  16858. msgstr ""
  16859. #. type: defun
  16860. #: guix-git/doc/guix.texi:10372
  16861. #, no-wrap
  16862. msgid "make-file-writable file"
  16863. msgstr ""
  16864. #. type: defun
  16865. #: guix-git/doc/guix.texi:10374
  16866. msgid "Make @var{file} writable for its owner."
  16867. msgstr ""
  16868. #. type: defun
  16869. #: guix-git/doc/guix.texi:10376
  16870. #, no-wrap
  16871. msgid "copy-recursively source destination @"
  16872. msgstr ""
  16873. #. type: defun
  16874. #: guix-git/doc/guix.texi:10385
  16875. 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."
  16876. msgstr ""
  16877. #. type: defun
  16878. #: guix-git/doc/guix.texi:10387
  16879. #, no-wrap
  16880. msgid "delete-file-recursively dir [#:follow-mounts? #f]"
  16881. msgstr ""
  16882. #. type: defun
  16883. #: guix-git/doc/guix.texi:10391
  16884. msgid "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."
  16885. msgstr ""
  16886. #. type: defmac
  16887. #: guix-git/doc/guix.texi:10393
  16888. #, fuzzy, no-wrap
  16889. #| msgid "substituter"
  16890. msgid "substitute* file @"
  16891. msgstr "substitutes"
  16892. #. type: defmac
  16893. #: guix-git/doc/guix.texi:10398
  16894. msgid "((regexp match-var@dots{}) 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:"
  16895. msgstr ""
  16896. #. type: lisp
  16897. #: guix-git/doc/guix.texi:10405
  16898. #, no-wrap
  16899. msgid ""
  16900. "(substitute* file\n"
  16901. " ((\"hello\")\n"
  16902. " \"good morning\\n\")\n"
  16903. " ((\"foo([a-z]+)bar(.*)$\" all letters end)\n"
  16904. " (string-append \"baz\" letters end)))\n"
  16905. msgstr ""
  16906. #. type: defmac
  16907. #: guix-git/doc/guix.texi:10411
  16908. 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."
  16909. msgstr ""
  16910. #. type: defmac
  16911. #: guix-git/doc/guix.texi:10414
  16912. msgid "When one of the @var{match-var} is @code{_}, no variable is bound to the corresponding match substring."
  16913. msgstr ""
  16914. #. type: defmac
  16915. #: guix-git/doc/guix.texi:10417
  16916. msgid "Alternatively, @var{file} may be a list of file names, in which case they are all subject to the substitutions."
  16917. msgstr ""
  16918. #. type: defmac
  16919. #: guix-git/doc/guix.texi:10422
  16920. 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. For example, to match a whole line ending with a backslash, one needs a regex like @code{\"(.*)\\\\\\\\\\n$\"}."
  16921. msgstr ""
  16922. #. type: subsection
  16923. #: guix-git/doc/guix.texi:10424
  16924. #, fuzzy, no-wrap
  16925. msgid "File Search"
  16926. msgstr "文件系统"
  16927. #. type: cindex
  16928. #: guix-git/doc/guix.texi:10426
  16929. #, no-wrap
  16930. msgid "file, searching"
  16931. msgstr ""
  16932. #. type: Plain text
  16933. #: guix-git/doc/guix.texi:10428
  16934. msgid "This section documents procedures to search and filter files."
  16935. msgstr ""
  16936. #. type: defun
  16937. #: guix-git/doc/guix.texi:10429
  16938. #, no-wrap
  16939. msgid "file-name-predicate regexp"
  16940. msgstr ""
  16941. #. type: defun
  16942. #: guix-git/doc/guix.texi:10432
  16943. msgid "Return a predicate that returns true when passed a file name whose base name matches @var{regexp}."
  16944. msgstr ""
  16945. #. type: defun
  16946. #: guix-git/doc/guix.texi:10434
  16947. #, no-wrap
  16948. msgid "find-files dir [pred] @"
  16949. msgstr ""
  16950. #. type: defun
  16951. #: guix-git/doc/guix.texi:10445
  16952. 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."
  16953. msgstr ""
  16954. #. type: Plain text
  16955. #: guix-git/doc/guix.texi:10449
  16956. msgid "Here are a few examples where we assume that the current directory is the root of the Guix source tree:"
  16957. msgstr ""
  16958. #. type: lisp
  16959. #: guix-git/doc/guix.texi:10454
  16960. #, no-wrap
  16961. msgid ""
  16962. ";; List all the regular files in the current directory.\n"
  16963. "(find-files \".\")\n"
  16964. "@result{} (\"./.dir-locals.el\" \"./.gitignore\" @dots{})\n"
  16965. "\n"
  16966. msgstr ""
  16967. #. type: lisp
  16968. #: guix-git/doc/guix.texi:10458
  16969. #, no-wrap
  16970. msgid ""
  16971. ";; List all the .scm files under gnu/services.\n"
  16972. "(find-files \"gnu/services\" \"\\\\.scm$\")\n"
  16973. "@result{} (\"gnu/services/admin.scm\" \"gnu/services/audio.scm\" @dots{})\n"
  16974. "\n"
  16975. msgstr ""
  16976. #. type: lisp
  16977. #: guix-git/doc/guix.texi:10462
  16978. #, no-wrap
  16979. msgid ""
  16980. ";; List ar files in the current directory.\n"
  16981. "(find-files \".\" (lambda (file stat) (ar-file? file)))\n"
  16982. "@result{} (\"./libformat.a\" \"./libstore.a\" @dots{})\n"
  16983. msgstr ""
  16984. #. type: defun
  16985. #: guix-git/doc/guix.texi:10464
  16986. #, fuzzy, no-wrap
  16987. #| msgid "Setuid Programs"
  16988. msgid "which program"
  16989. msgstr "setuid程序"
  16990. #. type: defun
  16991. #: guix-git/doc/guix.texi:10467
  16992. msgid "Return the complete file name for @var{program} as found in @code{$PATH}, or @code{#f} if @var{program} could not be found."
  16993. msgstr ""
  16994. #. type: defun
  16995. #: guix-git/doc/guix.texi:10469
  16996. #, no-wrap
  16997. msgid "search-input-file inputs name"
  16998. msgstr ""
  16999. #. type: defunx
  17000. #: guix-git/doc/guix.texi:10470
  17001. #, no-wrap
  17002. msgid "search-input-directory inputs name"
  17003. msgstr ""
  17004. #. type: defun
  17005. #: guix-git/doc/guix.texi:10475
  17006. 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."
  17007. msgstr ""
  17008. #. type: defun
  17009. #: guix-git/doc/guix.texi:10479
  17010. msgid "Here, @var{inputs} must be an association list like @code{inputs} and @code{native-inputs} as available to build phases (@pxref{Build Phases})."
  17011. msgstr ""
  17012. #. type: Plain text
  17013. #: guix-git/doc/guix.texi:10483
  17014. msgid "Here is a (simplified) example of how @code{search-input-file} is used in a build phase of the @code{wireguard-tools} package:"
  17015. msgstr ""
  17016. #. type: lisp
  17017. #: guix-git/doc/guix.texi:10492
  17018. #, no-wrap
  17019. msgid ""
  17020. "(add-after 'install 'wrap-wg-quick\n"
  17021. " (lambda* (#:key inputs outputs #:allow-other-keys)\n"
  17022. " (let ((coreutils (string-append (assoc-ref inputs \"coreutils\")\n"
  17023. " \"/bin\")))\n"
  17024. " (wrap-program (search-input-file outputs \"bin/wg-quick\")\n"
  17025. " #:sh (search-input-file inputs \"bin/bash\")\n"
  17026. " `(\"PATH\" \":\" prefix ,(list coreutils))))))\n"
  17027. msgstr ""
  17028. #. type: subsection
  17029. #: guix-git/doc/guix.texi:10494
  17030. #, fuzzy, no-wrap
  17031. #| msgid "Log Rotation"
  17032. msgid "Program Invocation"
  17033. msgstr "日志轮替"
  17034. #. type: cindex
  17035. #: guix-git/doc/guix.texi:10496
  17036. #, no-wrap
  17037. msgid "program invocation, from Scheme"
  17038. msgstr ""
  17039. #. type: cindex
  17040. #: guix-git/doc/guix.texi:10497
  17041. #, no-wrap
  17042. msgid "invoking programs, from Scheme"
  17043. msgstr ""
  17044. #. type: Plain text
  17045. #: guix-git/doc/guix.texi:10501
  17046. 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})."
  17047. msgstr ""
  17048. #. type: defun
  17049. #: guix-git/doc/guix.texi:10502
  17050. #, no-wrap
  17051. msgid "invoke program args@dots{}"
  17052. msgstr ""
  17053. #. type: defun
  17054. #: guix-git/doc/guix.texi:10506
  17055. 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}."
  17056. msgstr ""
  17057. #. type: defun
  17058. #: guix-git/doc/guix.texi:10510
  17059. 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."
  17060. msgstr ""
  17061. #. type: defun
  17062. #: guix-git/doc/guix.texi:10512
  17063. #, no-wrap
  17064. msgid "invoke-error? c"
  17065. msgstr ""
  17066. #. type: defun
  17067. #: guix-git/doc/guix.texi:10514
  17068. msgid "Return true if @var{c} is an @code{&invoke-error} condition."
  17069. msgstr ""
  17070. #. type: defun
  17071. #: guix-git/doc/guix.texi:10516
  17072. #, no-wrap
  17073. msgid "invoke-error-program c"
  17074. msgstr ""
  17075. #. type: defunx
  17076. #: guix-git/doc/guix.texi:10517
  17077. #, no-wrap
  17078. msgid "invoke-error-arguments c"
  17079. msgstr ""
  17080. #. type: defunx
  17081. #: guix-git/doc/guix.texi:10518
  17082. #, no-wrap
  17083. msgid "invoke-error-exit-status c"
  17084. msgstr ""
  17085. #. type: defunx
  17086. #: guix-git/doc/guix.texi:10519
  17087. #, no-wrap
  17088. msgid "invoke-error-term-signal c"
  17089. msgstr ""
  17090. #. type: defunx
  17091. #: guix-git/doc/guix.texi:10520
  17092. #, no-wrap
  17093. msgid "invoke-error-stop-signal c"
  17094. msgstr ""
  17095. #. type: defun
  17096. #: guix-git/doc/guix.texi:10522
  17097. msgid "Access specific fields of @var{c}, an @code{&invoke-error} condition."
  17098. msgstr ""
  17099. #. type: defun
  17100. #: guix-git/doc/guix.texi:10524
  17101. #, no-wrap
  17102. msgid "report-invoke-error c [port]"
  17103. msgstr ""
  17104. #. type: defun
  17105. #: guix-git/doc/guix.texi:10527
  17106. msgid "Report to @var{port} (by default the current error port) about @var{c}, an @code{&invoke-error} condition, in a human-friendly way."
  17107. msgstr ""
  17108. #. type: defun
  17109. #: guix-git/doc/guix.texi:10529
  17110. msgid "Typical usage would look like this:"
  17111. msgstr ""
  17112. #. type: lisp
  17113. #: guix-git/doc/guix.texi:10533
  17114. #, no-wrap
  17115. msgid ""
  17116. "(use-modules (srfi srfi-34) ;for 'guard'\n"
  17117. " (guix build utils))\n"
  17118. "\n"
  17119. msgstr ""
  17120. #. type: lisp
  17121. #: guix-git/doc/guix.texi:10537
  17122. #, no-wrap
  17123. msgid ""
  17124. "(guard (c ((invoke-error? c)\n"
  17125. " (report-invoke-error c)))\n"
  17126. " (invoke \"date\" \"--imaginary-option\"))\n"
  17127. "\n"
  17128. msgstr ""
  17129. #. type: lisp
  17130. #: guix-git/doc/guix.texi:10539
  17131. #, no-wrap
  17132. msgid "@print{} command \"date\" \"--imaginary-option\" failed with status 1\n"
  17133. msgstr ""
  17134. #. type: defun
  17135. #: guix-git/doc/guix.texi:10542
  17136. #, no-wrap
  17137. msgid "invoke/quiet program args@dots{}"
  17138. msgstr ""
  17139. #. type: defun
  17140. #: guix-git/doc/guix.texi:10548
  17141. 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}."
  17142. msgstr ""
  17143. #. type: defun
  17144. #: guix-git/doc/guix.texi:10550
  17145. msgid "Here's an example:"
  17146. msgstr ""
  17147. #. type: lisp
  17148. #: guix-git/doc/guix.texi:10555
  17149. #, no-wrap
  17150. msgid ""
  17151. "(use-modules (srfi srfi-34) ;for 'guard'\n"
  17152. " (srfi srfi-35) ;for 'message-condition?'\n"
  17153. " (guix build utils))\n"
  17154. "\n"
  17155. msgstr ""
  17156. #. type: lisp
  17157. #: guix-git/doc/guix.texi:10560
  17158. #, no-wrap
  17159. msgid ""
  17160. "(guard (c ((message-condition? c)\n"
  17161. " (display (condition-message c))))\n"
  17162. " (invoke/quiet \"date\") ;all is fine\n"
  17163. " (invoke/quiet \"date\" \"--imaginary-option\"))\n"
  17164. "\n"
  17165. msgstr ""
  17166. #. type: lisp
  17167. #: guix-git/doc/guix.texi:10562
  17168. #, no-wrap
  17169. msgid ""
  17170. "@print{} 'date --imaginary-option' exited with status 1; output follows:\n"
  17171. "\n"
  17172. msgstr ""
  17173. #. type: lisp
  17174. #: guix-git/doc/guix.texi:10565
  17175. #, no-wrap
  17176. msgid ""
  17177. " date: unrecognized option '--imaginary-option'\n"
  17178. " Try 'date --help' for more information.\n"
  17179. msgstr ""
  17180. #. type: Plain text
  17181. #: guix-git/doc/guix.texi:10577
  17182. 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})."
  17183. msgstr ""
  17184. #. type: Plain text
  17185. #: guix-git/doc/guix.texi:10581
  17186. 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."
  17187. msgstr ""
  17188. #. type: cindex
  17189. #: guix-git/doc/guix.texi:10582
  17190. #, fuzzy, no-wrap
  17191. msgid "build phases, modifying"
  17192. msgstr "构建后台进程"
  17193. #. type: defmac
  17194. #: guix-git/doc/guix.texi:10583
  17195. #, no-wrap
  17196. msgid "modify-phases phases clause@dots{}"
  17197. msgstr ""
  17198. #. type: defmac
  17199. #: guix-git/doc/guix.texi:10586
  17200. msgid "Modify @var{phases} sequentially as per each @var{clause}, which may have one of the following forms:"
  17201. msgstr ""
  17202. #. type: lisp
  17203. #: guix-git/doc/guix.texi:10592
  17204. #, no-wrap
  17205. msgid ""
  17206. "(delete @var{old-phase-name})\n"
  17207. "(replace @var{old-phase-name} @var{new-phase})\n"
  17208. "(add-before @var{old-phase-name} @var{new-phase-name} @var{new-phase})\n"
  17209. "(add-after @var{old-phase-name} @var{new-phase-name} @var{new-phase})\n"
  17210. msgstr ""
  17211. #. type: defmac
  17212. #: guix-git/doc/guix.texi:10596
  17213. msgid "Where every @var{phase-name} above is an expression evaluating to a symbol, and @var{new-phase} an expression evaluating to a procedure."
  17214. msgstr ""
  17215. #. type: Plain text
  17216. #: guix-git/doc/guix.texi:10607
  17217. 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:"
  17218. msgstr ""
  17219. #. type: lisp
  17220. #: guix-git/doc/guix.texi:10620
  17221. #, no-wrap
  17222. msgid ""
  17223. "(modify-phases %standard-phases\n"
  17224. " (add-after 'install 'fix-egrep-and-fgrep\n"
  17225. " ;; Patch 'egrep' and 'fgrep' to execute 'grep' via its\n"
  17226. " ;; absolute file name instead of searching for it in $PATH.\n"
  17227. " (lambda* (#:key outputs #:allow-other-keys)\n"
  17228. " (let* ((out (assoc-ref outputs \"out\"))\n"
  17229. " (bin (string-append out \"/bin\")))\n"
  17230. " (substitute* (list (string-append bin \"/egrep\")\n"
  17231. " (string-append bin \"/fgrep\"))\n"
  17232. " ((\"^exec grep\")\n"
  17233. " (string-append \"exec \" bin \"/grep\")))))))\n"
  17234. msgstr ""
  17235. #. type: Plain text
  17236. #: guix-git/doc/guix.texi:10627
  17237. 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:"
  17238. msgstr ""
  17239. #. type: lisp
  17240. #: guix-git/doc/guix.texi:10639
  17241. #, no-wrap
  17242. msgid ""
  17243. "(modify-phases %standard-phases\n"
  17244. " (delete 'configure) ;no 'configure' script\n"
  17245. " (replace 'install\n"
  17246. " (lambda* (#:key outputs #:allow-other-keys)\n"
  17247. " ;; The package's Makefile doesn't provide an \"install\"\n"
  17248. " ;; rule so do it by ourselves.\n"
  17249. " (let ((bin (string-append (assoc-ref outputs \"out\")\n"
  17250. " \"/bin\")))\n"
  17251. " (install-file \"footswitch\" bin)\n"
  17252. " (install-file \"scythe\" bin)))))\n"
  17253. msgstr ""
  17254. #. type: subsection
  17255. #: guix-git/doc/guix.texi:10643
  17256. #, no-wrap
  17257. msgid "Wrappers"
  17258. msgstr ""
  17259. #. type: cindex
  17260. #: guix-git/doc/guix.texi:10645
  17261. #, no-wrap
  17262. msgid "program wrappers"
  17263. msgstr ""
  17264. #. type: cindex
  17265. #: guix-git/doc/guix.texi:10646
  17266. #, no-wrap
  17267. msgid "wrapping programs"
  17268. msgstr ""
  17269. #. type: Plain text
  17270. #: guix-git/doc/guix.texi:10652
  17271. 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:"
  17272. msgstr ""
  17273. #. type: itemize
  17274. #: guix-git/doc/guix.texi:10656
  17275. msgid "a shell script that assumes all the commands it uses are in @env{PATH};"
  17276. msgstr ""
  17277. #. type: itemize
  17278. #: guix-git/doc/guix.texi:10660
  17279. msgid "a Guile program that assumes all its modules are in @env{GUILE_LOAD_PATH} and @env{GUILE_LOAD_COMPILED_PATH};"
  17280. msgstr ""
  17281. #. type: itemize
  17282. #: guix-git/doc/guix.texi:10664
  17283. msgid "a Qt application that expects to find certain plugins in @env{QT_PLUGIN_PATH}."
  17284. msgstr ""
  17285. #. type: Plain text
  17286. #: guix-git/doc/guix.texi:10672
  17287. 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."
  17288. msgstr ""
  17289. #. type: Plain text
  17290. #: guix-git/doc/guix.texi:10675
  17291. msgid "To ease that task, the @code{(guix build utils)} module provides a couple of helpers to wrap commands."
  17292. msgstr ""
  17293. #. type: defun
  17294. #: guix-git/doc/guix.texi:10676
  17295. #, no-wrap
  17296. msgid "wrap-program program [#:sh sh] [#:rest variables]"
  17297. msgstr ""
  17298. #. type: defun
  17299. #: guix-git/doc/guix.texi:10678
  17300. msgid "Make a wrapper for @var{program}. @var{variables} should look like this:"
  17301. msgstr ""
  17302. #. type: lisp
  17303. #: guix-git/doc/guix.texi:10681
  17304. #, no-wrap
  17305. msgid "'(@var{variable} @var{delimiter} @var{position} @var{list-of-directories})\n"
  17306. msgstr ""
  17307. #. type: defun
  17308. #: guix-git/doc/guix.texi:10685
  17309. msgid "where @var{delimiter} is optional. @code{:} will be used if @var{delimiter} is not given."
  17310. msgstr ""
  17311. #. type: defun
  17312. #: guix-git/doc/guix.texi:10687
  17313. msgid "For example, this call:"
  17314. msgstr ""
  17315. #. type: lisp
  17316. #: guix-git/doc/guix.texi:10693
  17317. #, no-wrap
  17318. msgid ""
  17319. "(wrap-program \"foo\"\n"
  17320. " '(\"PATH\" \":\" = (\"/gnu/.../bar/bin\"))\n"
  17321. " '(\"CERT_PATH\" suffix (\"/gnu/.../baz/certs\"\n"
  17322. " \"/qux/certs\")))\n"
  17323. msgstr ""
  17324. #. type: defun
  17325. #: guix-git/doc/guix.texi:10697
  17326. msgid "will copy @file{foo} to @file{.foo-real} and create the file @file{foo} with the following contents:"
  17327. msgstr ""
  17328. #. type: example
  17329. #: guix-git/doc/guix.texi:10703
  17330. #, no-wrap
  17331. msgid ""
  17332. "#!location/of/bin/bash\n"
  17333. "export PATH=\"/gnu/.../bar/bin\"\n"
  17334. "export CERT_PATH=\"$CERT_PATH$@{CERT_PATH:+:@}/gnu/.../baz/certs:/qux/certs\"\n"
  17335. "exec -a $0 location/of/.foo-real \"$@@\"\n"
  17336. msgstr ""
  17337. #. type: defun
  17338. #: guix-git/doc/guix.texi:10708
  17339. 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."
  17340. msgstr ""
  17341. #. type: defun
  17342. #: guix-git/doc/guix.texi:10710
  17343. #, no-wrap
  17344. msgid "wrap-script program [#:guile guile] [#:rest variables]"
  17345. msgstr ""
  17346. #. type: defun
  17347. #: guix-git/doc/guix.texi:10717
  17348. msgid "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."
  17349. msgstr ""
  17350. #. type: defun
  17351. #: guix-git/doc/guix.texi:10720
  17352. msgid "Special encoding comments as supported by Python are recreated on the second line."
  17353. msgstr ""
  17354. #. type: defun
  17355. #: guix-git/doc/guix.texi:10723
  17356. msgid "Note that this procedure can only be used once per file as Guile scripts are not supported."
  17357. msgstr ""
  17358. #. type: cindex
  17359. #: guix-git/doc/guix.texi:10728
  17360. #, no-wrap
  17361. msgid "search path"
  17362. msgstr ""
  17363. #. type: Plain text
  17364. #: guix-git/doc/guix.texi:10735
  17365. 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."
  17366. msgstr ""
  17367. #. type: Plain text
  17368. #: guix-git/doc/guix.texi:10743
  17369. 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''."
  17370. msgstr ""
  17371. #. type: Plain text
  17372. #: guix-git/doc/guix.texi:10753
  17373. 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}):"
  17374. msgstr ""
  17375. #. type: example
  17376. #: guix-git/doc/guix.texi:10758
  17377. #, no-wrap
  17378. msgid ""
  17379. "$ guix shell python python-numpy --pure --search-paths\n"
  17380. "export PATH=\"/gnu/store/@dots{}-profile/bin\"\n"
  17381. "export GUIX_PYTHONPATH=\"/gnu/store/@dots{}-profile/lib/python3.9/site-packages\"\n"
  17382. msgstr ""
  17383. #. type: Plain text
  17384. #: guix-git/doc/guix.texi:10762
  17385. msgid "When you omit @option{--search-paths}, it defines these environment variables right away, such that Python can readily find NumPy:"
  17386. msgstr ""
  17387. #. type: example
  17388. #: guix-git/doc/guix.texi:10771
  17389. #, no-wrap
  17390. msgid ""
  17391. "$ guix shell python python-numpy -- python3\n"
  17392. "Python 3.9.6 (default, Jan 1 1970, 00:00:01)\n"
  17393. "[GCC 10.3.0] on linux\n"
  17394. "Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n"
  17395. ">>> import numpy\n"
  17396. ">>> numpy.version.version\n"
  17397. "'1.20.3'\n"
  17398. msgstr ""
  17399. #. type: Plain text
  17400. #: guix-git/doc/guix.texi:10776
  17401. 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:"
  17402. msgstr ""
  17403. #. type: lisp
  17404. #: guix-git/doc/guix.texi:10786
  17405. #, no-wrap
  17406. msgid ""
  17407. "(package\n"
  17408. " (name \"python\")\n"
  17409. " (version \"3.9.9\")\n"
  17410. " ;; some fields omitted...\n"
  17411. " (native-search-paths\n"
  17412. " (list (search-path-specification\n"
  17413. " (variable \"GUIX_PYTHONPATH\")\n"
  17414. " (files (list \"lib/python/3.9/site-packages\"))))))\n"
  17415. msgstr ""
  17416. #. type: Plain text
  17417. #: guix-git/doc/guix.texi:10801
  17418. 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{:})."
  17419. msgstr ""
  17420. #. type: quotation
  17421. #: guix-git/doc/guix.texi:10808
  17422. 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."
  17423. msgstr ""
  17424. #. type: quotation
  17425. #: guix-git/doc/guix.texi:10812
  17426. 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:"
  17427. msgstr ""
  17428. #. type: example
  17429. #: guix-git/doc/guix.texi:10816
  17430. #, no-wrap
  17431. msgid ""
  17432. "$ guix shell python-numpy --search-paths --pure\n"
  17433. "export PATH=\"/gnu/store/@dots{}-profile/bin\"\n"
  17434. msgstr ""
  17435. #. type: quotation
  17436. #: guix-git/doc/guix.texi:10820
  17437. 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}."
  17438. msgstr ""
  17439. #. type: Plain text
  17440. #: guix-git/doc/guix.texi:10830
  17441. 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:"
  17442. msgstr ""
  17443. #. type: lisp
  17444. #: guix-git/doc/guix.texi:10842
  17445. #, no-wrap
  17446. msgid ""
  17447. "(package\n"
  17448. " (name \"libxml2\")\n"
  17449. " ;; some fields omitted\n"
  17450. " (native-search-paths\n"
  17451. " (list (search-path-specification\n"
  17452. " (variable \"XML_CATALOG_FILES\")\n"
  17453. " (separator \" \")\n"
  17454. " (files '(\"xml\"))\n"
  17455. " (file-pattern \"^catalog\\\\.xml$\")\n"
  17456. " (file-type 'regular)))))\n"
  17457. msgstr ""
  17458. #. type: Plain text
  17459. #: guix-git/doc/guix.texi:10845
  17460. msgid "Worry not, search path specifications are usually not this tricky."
  17461. msgstr ""
  17462. #. type: Plain text
  17463. #: guix-git/doc/guix.texi:10849
  17464. 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."
  17465. msgstr ""
  17466. #. type: deftp
  17467. #: guix-git/doc/guix.texi:10850
  17468. #, fuzzy, no-wrap
  17469. msgid "{Data Type} search-path-specification"
  17470. msgstr "管理操作系统配置。"
  17471. #. type: deftp
  17472. #: guix-git/doc/guix.texi:10852
  17473. #, fuzzy
  17474. msgid "The data type for search path specifications."
  17475. msgstr "管理操作系统配置。"
  17476. #. type: code{#1}
  17477. #: guix-git/doc/guix.texi:10854
  17478. #, no-wrap
  17479. msgid "variable"
  17480. msgstr ""
  17481. #. type: table
  17482. #: guix-git/doc/guix.texi:10856
  17483. msgid "The name of the environment variable for this search path (a string)."
  17484. msgstr ""
  17485. #. type: code{#1}
  17486. #: guix-git/doc/guix.texi:10857 guix-git/doc/guix.texi:19728
  17487. #, no-wrap
  17488. msgid "files"
  17489. msgstr ""
  17490. #. type: table
  17491. #: guix-git/doc/guix.texi:10860
  17492. msgid "The list of sub-directories (strings) that should be added to the search path."
  17493. msgstr ""
  17494. #. type: item
  17495. #: guix-git/doc/guix.texi:10861
  17496. #, fuzzy, no-wrap
  17497. msgid "@code{separator} (default: @code{\":\"})"
  17498. msgstr "@code{port}(默认值:@code{22})"
  17499. #. type: table
  17500. #: guix-git/doc/guix.texi:10863
  17501. msgid "The string used to separate search path components."
  17502. msgstr ""
  17503. #. type: table
  17504. #: guix-git/doc/guix.texi:10871
  17505. 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."
  17506. msgstr ""
  17507. #. type: item
  17508. #: guix-git/doc/guix.texi:10872
  17509. #, fuzzy, no-wrap
  17510. msgid "@code{file-type} (default: @code{'directory})"
  17511. msgstr "@code{mate}(默认值:@code{mate})"
  17512. #. type: table
  17513. #: guix-git/doc/guix.texi:10876
  17514. 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})."
  17515. msgstr ""
  17516. #. type: table
  17517. #: guix-git/doc/guix.texi:10879
  17518. msgid "In the libxml2 example above, we would match regular files; in the Python example, we would match directories."
  17519. msgstr ""
  17520. #. type: item
  17521. #: guix-git/doc/guix.texi:10880
  17522. #, fuzzy, no-wrap
  17523. msgid "@code{file-pattern} (default: @code{#f})"
  17524. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  17525. #. type: table
  17526. #: guix-git/doc/guix.texi:10884
  17527. 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."
  17528. msgstr ""
  17529. #. type: table
  17530. #: guix-git/doc/guix.texi:10886
  17531. msgid "Again, the libxml2 example shows a situation where this is needed."
  17532. msgstr ""
  17533. #. type: Plain text
  17534. #: guix-git/doc/guix.texi:10892
  17535. msgid "Some search paths are not tied by a single package but to many packages. To reduce duplications, some of them are pre-defined in @code{(guix search-paths)}."
  17536. msgstr ""
  17537. #. type: defvar
  17538. #: guix-git/doc/guix.texi:10893
  17539. #, no-wrap
  17540. msgid "$SSL_CERT_DIR"
  17541. msgstr ""
  17542. #. type: defvarx
  17543. #: guix-git/doc/guix.texi:10894
  17544. #, no-wrap
  17545. msgid "$SSL_CERT_FILE"
  17546. msgstr ""
  17547. #. type: defvar
  17548. #: guix-git/doc/guix.texi:10897
  17549. msgid "These two search paths indicate where X.509 certificates can be found (@pxref{X.509 Certificates})."
  17550. msgstr ""
  17551. #. type: Plain text
  17552. #: guix-git/doc/guix.texi:10900
  17553. msgid "These pre-defined search paths can be used as in the following example:"
  17554. msgstr ""
  17555. #. type: lisp
  17556. #: guix-git/doc/guix.texi:10906
  17557. #, no-wrap
  17558. msgid ""
  17559. "(package\n"
  17560. " (name \"curl\")\n"
  17561. " ;; some fields omitted ...\n"
  17562. " (native-search-paths (list $SSL_CERT_DIR $SSL_CERT_FILE)))\n"
  17563. msgstr ""
  17564. #. type: Plain text
  17565. #: guix-git/doc/guix.texi:10911
  17566. 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}."
  17567. msgstr ""
  17568. #. type: defun
  17569. #: guix-git/doc/guix.texi:10912
  17570. #, no-wrap
  17571. msgid "evaluate-search-paths search-paths directories [getenv]"
  17572. msgstr ""
  17573. #. type: defun
  17574. #: guix-git/doc/guix.texi:10917
  17575. msgid "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."
  17576. msgstr ""
  17577. #. type: Plain text
  17578. #: guix-git/doc/guix.texi:10921
  17579. msgid "The @code{(guix profiles)} provides a higher-level helper procedure, @code{load-profile}, that sets the environment variables of a profile."
  17580. msgstr ""
  17581. #. type: cindex
  17582. #: guix-git/doc/guix.texi:10926
  17583. #, no-wrap
  17584. msgid "store items"
  17585. msgstr ""
  17586. #. type: cindex
  17587. #: guix-git/doc/guix.texi:10927
  17588. #, no-wrap
  17589. msgid "store paths"
  17590. msgstr ""
  17591. #. type: Plain text
  17592. #: guix-git/doc/guix.texi:10938
  17593. 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}."
  17594. msgstr ""
  17595. #. type: Plain text
  17596. #: guix-git/doc/guix.texi:10943
  17597. 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."
  17598. msgstr ""
  17599. #. type: quotation
  17600. #: guix-git/doc/guix.texi:10948
  17601. 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})."
  17602. msgstr ""
  17603. #. type: quotation
  17604. #: guix-git/doc/guix.texi:10952
  17605. 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."
  17606. msgstr ""
  17607. #. type: Plain text
  17608. #: guix-git/doc/guix.texi:10959
  17609. 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."
  17610. msgstr ""
  17611. #. type: defvr
  17612. #: guix-git/doc/guix.texi:10960
  17613. #, no-wrap
  17614. msgid "{Environment Variable} GUIX_DAEMON_SOCKET"
  17615. msgstr ""
  17616. #. type: defvr
  17617. #: guix-git/doc/guix.texi:10965
  17618. 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:"
  17619. msgstr ""
  17620. #. type: code{#1}
  17621. #: guix-git/doc/guix.texi:10967 guix-git/doc/guix.texi:30118
  17622. #, no-wrap
  17623. msgid "file"
  17624. msgstr ""
  17625. #. type: itemx
  17626. #: guix-git/doc/guix.texi:10968
  17627. #, no-wrap
  17628. msgid "unix"
  17629. msgstr ""
  17630. #. type: table
  17631. #: guix-git/doc/guix.texi:10972
  17632. msgid "These are for Unix-domain sockets. @code{file:///var/guix/daemon-socket/socket} is equivalent to @file{/var/guix/daemon-socket/socket}."
  17633. msgstr ""
  17634. #. type: table
  17635. #: guix-git/doc/guix.texi:10981
  17636. 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):"
  17637. msgstr ""
  17638. #. type: example
  17639. #: guix-git/doc/guix.texi:10984
  17640. #, no-wrap
  17641. msgid "guix://master.guix.example.org:1234\n"
  17642. msgstr ""
  17643. #. type: table
  17644. #: guix-git/doc/guix.texi:10989
  17645. 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}."
  17646. msgstr ""
  17647. #. type: table
  17648. #: guix-git/doc/guix.texi:10993
  17649. 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}})."
  17650. msgstr ""
  17651. #. type: item
  17652. #: guix-git/doc/guix.texi:10994
  17653. #, no-wrap
  17654. msgid "ssh"
  17655. msgstr ""
  17656. #. type: cindex
  17657. #: guix-git/doc/guix.texi:10995
  17658. #, no-wrap
  17659. msgid "SSH access to build daemons"
  17660. msgstr ""
  17661. #. type: table
  17662. #: guix-git/doc/guix.texi:11001
  17663. 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:"
  17664. msgstr ""
  17665. #. type: example
  17666. #: guix-git/doc/guix.texi:11004
  17667. #, no-wrap
  17668. msgid "ssh://charlie@@guix.example.org:22\n"
  17669. msgstr ""
  17670. #. type: table
  17671. #: guix-git/doc/guix.texi:11008
  17672. msgid "As for @command{guix copy}, the usual OpenSSH client configuration files are honored (@pxref{Invoking guix copy})."
  17673. msgstr ""
  17674. #. type: defvr
  17675. #: guix-git/doc/guix.texi:11011
  17676. msgid "Additional URI schemes may be supported in the future."
  17677. msgstr ""
  17678. #. type: quotation
  17679. #: guix-git/doc/guix.texi:11018
  17680. 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})."
  17681. msgstr ""
  17682. #. type: defun
  17683. #: guix-git/doc/guix.texi:11021
  17684. #, no-wrap
  17685. msgid "open-connection [uri] [#:reserve-space? #t]"
  17686. msgstr ""
  17687. #. type: defun
  17688. #: guix-git/doc/guix.texi:11026
  17689. 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."
  17690. msgstr ""
  17691. #. type: defun
  17692. #: guix-git/doc/guix.texi:11029
  17693. msgid "@var{file} defaults to @code{%default-socket-path}, which is the normal location given the options that were passed to @command{configure}."
  17694. msgstr ""
  17695. #. type: defun
  17696. #: guix-git/doc/guix.texi:11031
  17697. #, no-wrap
  17698. msgid "close-connection server"
  17699. msgstr ""
  17700. #. type: defun
  17701. #: guix-git/doc/guix.texi:11033
  17702. msgid "Close the connection to @var{server}."
  17703. msgstr ""
  17704. #. type: defvar
  17705. #: guix-git/doc/guix.texi:11035
  17706. #, no-wrap
  17707. msgid "current-build-output-port"
  17708. msgstr ""
  17709. #. type: defvar
  17710. #: guix-git/doc/guix.texi:11038
  17711. 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."
  17712. msgstr ""
  17713. #. type: Plain text
  17714. #: guix-git/doc/guix.texi:11042
  17715. msgid "Procedures that make RPCs all take a server object as their first argument."
  17716. msgstr ""
  17717. #. type: cindex
  17718. #: guix-git/doc/guix.texi:11043
  17719. #, no-wrap
  17720. msgid "invalid store items"
  17721. msgstr ""
  17722. #. type: defun
  17723. #: guix-git/doc/guix.texi:11044
  17724. #, no-wrap
  17725. msgid "valid-path? server path"
  17726. msgstr ""
  17727. #. type: defun
  17728. #: guix-git/doc/guix.texi:11049
  17729. 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)."
  17730. msgstr ""
  17731. #. type: defun
  17732. #: guix-git/doc/guix.texi:11052
  17733. msgid "A @code{&store-protocol-error} condition is raised if @var{path} is not prefixed by the store directory (@file{/gnu/store})."
  17734. msgstr ""
  17735. #. type: defun
  17736. #: guix-git/doc/guix.texi:11054
  17737. #, no-wrap
  17738. msgid "add-text-to-store server name text [references]"
  17739. msgstr ""
  17740. #. type: defun
  17741. #: guix-git/doc/guix.texi:11058
  17742. 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."
  17743. msgstr ""
  17744. #. type: defun
  17745. #: guix-git/doc/guix.texi:11060
  17746. #, no-wrap
  17747. msgid "build-derivations store derivations [mode]"
  17748. msgstr ""
  17749. #. type: defun
  17750. #: guix-git/doc/guix.texi:11064
  17751. msgid "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."
  17752. msgstr ""
  17753. #. type: Plain text
  17754. #: guix-git/doc/guix.texi:11070
  17755. 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})."
  17756. msgstr ""
  17757. #. type: i{#1}
  17758. #: guix-git/doc/guix.texi:11073
  17759. msgid "This section is currently incomplete."
  17760. msgstr ""
  17761. #. type: cindex
  17762. #: guix-git/doc/guix.texi:11077
  17763. #, no-wrap
  17764. msgid "derivations"
  17765. msgstr ""
  17766. #. type: Plain text
  17767. #: guix-git/doc/guix.texi:11081
  17768. 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:"
  17769. msgstr ""
  17770. #. type: itemize
  17771. #: guix-git/doc/guix.texi:11086
  17772. msgid "The outputs of the derivation---derivations produce at least one file or directory in the store, but may produce more."
  17773. msgstr ""
  17774. #. type: cindex
  17775. #: guix-git/doc/guix.texi:11088
  17776. #, no-wrap
  17777. msgid "build-time dependencies"
  17778. msgstr ""
  17779. #. type: cindex
  17780. #: guix-git/doc/guix.texi:11089
  17781. #, no-wrap
  17782. msgid "dependencies, build-time"
  17783. msgstr ""
  17784. #. type: itemize
  17785. #: guix-git/doc/guix.texi:11093
  17786. 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.)."
  17787. msgstr ""
  17788. #. type: itemize
  17789. #: guix-git/doc/guix.texi:11096
  17790. msgid "The system type targeted by the derivation---e.g., @code{x86_64-linux}."
  17791. msgstr ""
  17792. #. type: itemize
  17793. #: guix-git/doc/guix.texi:11100
  17794. msgid "The file name of a build script in the store, along with the arguments to be passed."
  17795. msgstr ""
  17796. #. type: itemize
  17797. #: guix-git/doc/guix.texi:11103
  17798. msgid "A list of environment variables to be defined."
  17799. msgstr ""
  17800. #. type: cindex
  17801. #: guix-git/doc/guix.texi:11106
  17802. #, no-wrap
  17803. msgid "derivation path"
  17804. msgstr ""
  17805. #. type: Plain text
  17806. #: guix-git/doc/guix.texi:11114
  17807. 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})."
  17808. msgstr ""
  17809. #. type: cindex
  17810. #: guix-git/doc/guix.texi:11115
  17811. #, no-wrap
  17812. msgid "fixed-output derivations"
  17813. msgstr ""
  17814. #. type: Plain text
  17815. #: guix-git/doc/guix.texi:11122
  17816. 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."
  17817. msgstr ""
  17818. #. type: item
  17819. #: guix-git/doc/guix.texi:11123 guix-git/doc/guix.texi:15299
  17820. #, no-wrap
  17821. msgid "references"
  17822. msgstr ""
  17823. #. type: cindex
  17824. #: guix-git/doc/guix.texi:11124
  17825. #, no-wrap
  17826. msgid "run-time dependencies"
  17827. msgstr ""
  17828. #. type: cindex
  17829. #: guix-git/doc/guix.texi:11125
  17830. #, no-wrap
  17831. msgid "dependencies, run-time"
  17832. msgstr ""
  17833. #. type: Plain text
  17834. #: guix-git/doc/guix.texi:11132
  17835. 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."
  17836. msgstr ""
  17837. #. type: Plain text
  17838. #: guix-git/doc/guix.texi:11137
  17839. 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:"
  17840. msgstr ""
  17841. #. type: defun
  17842. #: guix-git/doc/guix.texi:11138
  17843. #, no-wrap
  17844. msgid "derivation store name builder args @"
  17845. msgstr ""
  17846. #. type: defun
  17847. #: guix-git/doc/guix.texi:11147
  17848. msgid "[#: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."
  17849. msgstr ""
  17850. #. type: defun
  17851. #: guix-git/doc/guix.texi:11154
  17852. 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."
  17853. msgstr ""
  17854. #. type: defun
  17855. #: guix-git/doc/guix.texi:11159
  17856. 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."
  17857. msgstr ""
  17858. #. type: defun
  17859. #: guix-git/doc/guix.texi:11164
  17860. 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."
  17861. msgstr ""
  17862. #. type: defun
  17863. #: guix-git/doc/guix.texi:11171
  17864. 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."
  17865. msgstr ""
  17866. #. type: defun
  17867. #: guix-git/doc/guix.texi:11176
  17868. 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."
  17869. msgstr ""
  17870. #. type: defun
  17871. #: guix-git/doc/guix.texi:11181
  17872. 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."
  17873. msgstr ""
  17874. #. type: defun
  17875. #: guix-git/doc/guix.texi:11184
  17876. msgid "@var{properties} must be an association list describing ``properties'' of the derivation. It is kept as-is, uninterpreted, in the derivation."
  17877. msgstr ""
  17878. #. type: Plain text
  17879. #: guix-git/doc/guix.texi:11190
  17880. 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:"
  17881. msgstr ""
  17882. #. type: lisp
  17883. #: guix-git/doc/guix.texi:11195
  17884. #, no-wrap
  17885. msgid ""
  17886. "(use-modules (guix utils)\n"
  17887. " (guix store)\n"
  17888. " (guix derivations))\n"
  17889. "\n"
  17890. msgstr ""
  17891. #. type: lisp
  17892. #: guix-git/doc/guix.texi:11204
  17893. #, no-wrap
  17894. msgid ""
  17895. "(let ((builder ; add the Bash script to the store\n"
  17896. " (add-text-to-store store \"my-builder.sh\"\n"
  17897. " \"echo hello world > $out\\n\" '())))\n"
  17898. " (derivation store \"foo\"\n"
  17899. " bash `(\"-e\" ,builder)\n"
  17900. " #:inputs `((,bash) (,builder))\n"
  17901. " #:env-vars '((\"HOME\" . \"/homeless\"))))\n"
  17902. "@result{} #<derivation /gnu/store/@dots{}-foo.drv => /gnu/store/@dots{}-foo>\n"
  17903. msgstr ""
  17904. #. type: Plain text
  17905. #: guix-git/doc/guix.texi:11211
  17906. 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}."
  17907. msgstr ""
  17908. #. type: Plain text
  17909. #: guix-git/doc/guix.texi:11216
  17910. 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}."
  17911. msgstr ""
  17912. #. type: defun
  17913. #: guix-git/doc/guix.texi:11217
  17914. #, no-wrap
  17915. msgid "build-expression->derivation store name exp @"
  17916. msgstr ""
  17917. #. type: defun
  17918. #: guix-git/doc/guix.texi:11232
  17919. msgid "[#: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))}."
  17920. msgstr ""
  17921. #. type: defun
  17922. #: guix-git/doc/guix.texi:11240
  17923. 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."
  17924. msgstr ""
  17925. #. type: defun
  17926. #: guix-git/doc/guix.texi:11244
  17927. 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."
  17928. msgstr ""
  17929. #. type: defun
  17930. #: guix-git/doc/guix.texi:11249
  17931. 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?}."
  17932. msgstr ""
  17933. #. type: Plain text
  17934. #: guix-git/doc/guix.texi:11254
  17935. msgid "Here's an example of a single-output derivation that creates a directory containing one file:"
  17936. msgstr ""
  17937. #. type: lisp
  17938. #: guix-git/doc/guix.texi:11262
  17939. #, no-wrap
  17940. msgid ""
  17941. "(let ((builder '(let ((out (assoc-ref %outputs \"out\")))\n"
  17942. " (mkdir out) ; create /gnu/store/@dots{}-goo\n"
  17943. " (call-with-output-file (string-append out \"/test\")\n"
  17944. " (lambda (p)\n"
  17945. " (display '(hello guix) p))))))\n"
  17946. " (build-expression->derivation store \"goo\" builder))\n"
  17947. "\n"
  17948. msgstr ""
  17949. #. type: lisp
  17950. #: guix-git/doc/guix.texi:11264
  17951. #, no-wrap
  17952. msgid "@result{} #<derivation /gnu/store/@dots{}-goo.drv => @dots{}>\n"
  17953. msgstr ""
  17954. #. type: cindex
  17955. #: guix-git/doc/guix.texi:11270
  17956. #, no-wrap
  17957. msgid "monad"
  17958. msgstr ""
  17959. #. type: Plain text
  17960. #: guix-git/doc/guix.texi:11276
  17961. 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."
  17962. msgstr ""
  17963. #. type: Plain text
  17964. #: guix-git/doc/guix.texi:11282
  17965. 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."
  17966. msgstr ""
  17967. #. type: cindex
  17968. #: guix-git/doc/guix.texi:11283
  17969. #, no-wrap
  17970. msgid "monadic values"
  17971. msgstr ""
  17972. #. type: cindex
  17973. #: guix-git/doc/guix.texi:11284
  17974. #, no-wrap
  17975. msgid "monadic functions"
  17976. msgstr ""
  17977. #. type: Plain text
  17978. #: guix-git/doc/guix.texi:11294
  17979. 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}."
  17980. msgstr ""
  17981. #. type: Plain text
  17982. #: guix-git/doc/guix.texi:11296
  17983. msgid "Consider this ``normal'' procedure:"
  17984. msgstr ""
  17985. #. type: lisp
  17986. #: guix-git/doc/guix.texi:11305
  17987. #, no-wrap
  17988. msgid ""
  17989. "(define (sh-symlink store)\n"
  17990. " ;; Return a derivation that symlinks the 'bash' executable.\n"
  17991. " (let* ((drv (package-derivation store bash))\n"
  17992. " (out (derivation->output-path drv))\n"
  17993. " (sh (string-append out \"/bin/bash\")))\n"
  17994. " (build-expression->derivation store \"sh\"\n"
  17995. " `(symlink ,sh %output))))\n"
  17996. msgstr ""
  17997. #. type: Plain text
  17998. #: guix-git/doc/guix.texi:11309
  17999. msgid "Using @code{(guix monads)} and @code{(guix gexp)}, it may be rewritten as a monadic function:"
  18000. msgstr ""
  18001. #. type: lisp
  18002. #: guix-git/doc/guix.texi:11317
  18003. #, no-wrap
  18004. msgid ""
  18005. "(define (sh-symlink)\n"
  18006. " ;; Same, but return a monadic value.\n"
  18007. " (mlet %store-monad ((drv (package->derivation bash)))\n"
  18008. " (gexp->derivation \"sh\"\n"
  18009. " #~(symlink (string-append #$drv \"/bin/bash\")\n"
  18010. " #$output))))\n"
  18011. msgstr ""
  18012. #. type: Plain text
  18013. #: guix-git/doc/guix.texi:11324
  18014. 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}."
  18015. msgstr ""
  18016. #. type: Plain text
  18017. #: guix-git/doc/guix.texi:11328
  18018. 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}):"
  18019. msgstr ""
  18020. #. type: lisp
  18021. #: guix-git/doc/guix.texi:11334
  18022. #, no-wrap
  18023. msgid ""
  18024. "(define (sh-symlink)\n"
  18025. " (gexp->derivation \"sh\"\n"
  18026. " #~(symlink (string-append #$bash \"/bin/bash\")\n"
  18027. " #$output)))\n"
  18028. msgstr ""
  18029. #. type: Plain text
  18030. #: guix-git/doc/guix.texi:11343
  18031. 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}:"
  18032. msgstr ""
  18033. #. type: lisp
  18034. #: guix-git/doc/guix.texi:11347
  18035. #, no-wrap
  18036. msgid ""
  18037. "(run-with-store (open-connection) (sh-symlink))\n"
  18038. "@result{} /gnu/store/...-sh-symlink\n"
  18039. msgstr ""
  18040. #. type: Plain text
  18041. #: guix-git/doc/guix.texi:11354
  18042. msgid "Note that the @code{(guix monad-repl)} module extends the Guile REPL with new ``commands'' to make it easier to deal with monadic procedures: @code{run-in-store}, and @code{enter-store-monad} (@pxref{Using Guix Interactively}). The former is used to ``run'' a single monadic value through the store:"
  18043. msgstr ""
  18044. #. type: example
  18045. #: guix-git/doc/guix.texi:11358
  18046. #, no-wrap
  18047. msgid ""
  18048. "scheme@@(guile-user)> ,run-in-store (package->derivation hello)\n"
  18049. "$1 = #<derivation /gnu/store/@dots{}-hello-2.9.drv => @dots{}>\n"
  18050. msgstr ""
  18051. #. type: Plain text
  18052. #: guix-git/doc/guix.texi:11362
  18053. msgid "The latter enters a recursive REPL, where all the return values are automatically run through the store:"
  18054. msgstr ""
  18055. #. type: example
  18056. #: guix-git/doc/guix.texi:11371
  18057. #, no-wrap
  18058. msgid ""
  18059. "scheme@@(guile-user)> ,enter-store-monad\n"
  18060. "store-monad@@(guile-user) [1]> (package->derivation hello)\n"
  18061. "$2 = #<derivation /gnu/store/@dots{}-hello-2.9.drv => @dots{}>\n"
  18062. "store-monad@@(guile-user) [1]> (text-file \"foo\" \"Hello!\")\n"
  18063. "$3 = \"/gnu/store/@dots{}-foo\"\n"
  18064. "store-monad@@(guile-user) [1]> ,q\n"
  18065. "scheme@@(guile-user)>\n"
  18066. msgstr ""
  18067. #. type: Plain text
  18068. #: guix-git/doc/guix.texi:11376
  18069. msgid "Note that non-monadic values cannot be returned in the @code{store-monad} REPL."
  18070. msgstr ""
  18071. #. type: Plain text
  18072. #: guix-git/doc/guix.texi:11379
  18073. msgid "Other meta-commands are available at the REPL, such as @code{,build} to build a file-like object (@pxref{Using Guix Interactively})."
  18074. msgstr ""
  18075. #. type: Plain text
  18076. #: guix-git/doc/guix.texi:11382
  18077. msgid "The main syntactic forms to deal with monads in general are provided by the @code{(guix monads)} module and are described below."
  18078. msgstr ""
  18079. #. type: defmac
  18080. #: guix-git/doc/guix.texi:11383
  18081. #, no-wrap
  18082. msgid "with-monad monad body @dots{}"
  18083. msgstr ""
  18084. #. type: defmac
  18085. #: guix-git/doc/guix.texi:11386
  18086. msgid "Evaluate any @code{>>=} or @code{return} forms in @var{body} as being in @var{monad}."
  18087. msgstr ""
  18088. #. type: defmac
  18089. #: guix-git/doc/guix.texi:11388
  18090. #, no-wrap
  18091. msgid "return val"
  18092. msgstr ""
  18093. #. type: defmac
  18094. #: guix-git/doc/guix.texi:11390
  18095. msgid "Return a monadic value that encapsulates @var{val}."
  18096. msgstr ""
  18097. #. type: defmac
  18098. #: guix-git/doc/guix.texi:11392
  18099. #, no-wrap
  18100. msgid ">>= mval mproc @dots{}"
  18101. msgstr ""
  18102. #. type: defmac
  18103. #: guix-git/doc/guix.texi:11399
  18104. 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:"
  18105. msgstr ""
  18106. #. type: lisp
  18107. #: guix-git/doc/guix.texi:11407
  18108. #, no-wrap
  18109. msgid ""
  18110. "(run-with-state\n"
  18111. " (with-monad %state-monad\n"
  18112. " (>>= (return 1)\n"
  18113. " (lambda (x) (return (+ 1 x)))\n"
  18114. " (lambda (x) (return (* 2 x)))))\n"
  18115. " 'some-state)\n"
  18116. "\n"
  18117. msgstr ""
  18118. #. type: lisp
  18119. #: guix-git/doc/guix.texi:11410
  18120. #, no-wrap
  18121. msgid ""
  18122. "@result{} 4\n"
  18123. "@result{} some-state\n"
  18124. msgstr ""
  18125. #. type: defmac
  18126. #: guix-git/doc/guix.texi:11413
  18127. #, no-wrap
  18128. msgid "mlet monad ((var mval) @dots{}) body @dots{}"
  18129. msgstr ""
  18130. #. type: defmacx
  18131. #: guix-git/doc/guix.texi:11414
  18132. #, no-wrap
  18133. msgid "mlet* monad ((var mval) @dots{}) body @dots{}"
  18134. msgstr ""
  18135. #. type: defmac
  18136. #: guix-git/doc/guix.texi:11425
  18137. msgid "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}."
  18138. msgstr ""
  18139. #. type: defmac
  18140. #: guix-git/doc/guix.texi:11428
  18141. msgid "@code{mlet*} is to @code{mlet} what @code{let*} is to @code{let} (@pxref{Local Bindings,,, guile, GNU Guile Reference Manual})."
  18142. msgstr ""
  18143. #. type: defmac
  18144. #: guix-git/doc/guix.texi:11430
  18145. #, no-wrap
  18146. msgid "mbegin monad mexp @dots{}"
  18147. msgstr ""
  18148. #. type: defmac
  18149. #: guix-git/doc/guix.texi:11434
  18150. 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."
  18151. msgstr ""
  18152. #. type: defmac
  18153. #: guix-git/doc/guix.texi:11438
  18154. 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."
  18155. msgstr ""
  18156. #. type: defmac
  18157. #: guix-git/doc/guix.texi:11440
  18158. #, no-wrap
  18159. msgid "mwhen condition mexp0 mexp* @dots{}"
  18160. msgstr ""
  18161. #. type: defmac
  18162. #: guix-git/doc/guix.texi:11445
  18163. 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."
  18164. msgstr ""
  18165. #. type: defmac
  18166. #: guix-git/doc/guix.texi:11447
  18167. #, no-wrap
  18168. msgid "munless condition mexp0 mexp* @dots{}"
  18169. msgstr ""
  18170. #. type: defmac
  18171. #: guix-git/doc/guix.texi:11452
  18172. 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."
  18173. msgstr ""
  18174. #. type: cindex
  18175. #: guix-git/doc/guix.texi:11454
  18176. #, no-wrap
  18177. msgid "state monad"
  18178. msgstr ""
  18179. #. type: Plain text
  18180. #: guix-git/doc/guix.texi:11458
  18181. 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."
  18182. msgstr ""
  18183. #. type: defvar
  18184. #: guix-git/doc/guix.texi:11459
  18185. #, no-wrap
  18186. msgid "%state-monad"
  18187. msgstr ""
  18188. #. type: defvar
  18189. #: guix-git/doc/guix.texi:11462
  18190. msgid "The state monad. Procedures in the state monad can access and change the state that is threaded."
  18191. msgstr ""
  18192. #. type: defvar
  18193. #: guix-git/doc/guix.texi:11466
  18194. 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:"
  18195. msgstr ""
  18196. #. type: lisp
  18197. #: guix-git/doc/guix.texi:11473
  18198. #, no-wrap
  18199. msgid ""
  18200. "(define (square x)\n"
  18201. " (mlet %state-monad ((count (current-state)))\n"
  18202. " (mbegin %state-monad\n"
  18203. " (set-current-state (+ 1 count))\n"
  18204. " (return (* x x)))))\n"
  18205. "\n"
  18206. msgstr ""
  18207. #. type: lisp
  18208. #: guix-git/doc/guix.texi:11477
  18209. #, no-wrap
  18210. msgid ""
  18211. "(run-with-state (sequence %state-monad (map square (iota 3))) 0)\n"
  18212. "@result{} (0 1 4)\n"
  18213. "@result{} 3\n"
  18214. msgstr ""
  18215. #. type: defvar
  18216. #: guix-git/doc/guix.texi:11481
  18217. msgid "When ``run'' through @code{%state-monad}, we obtain that additional state value, which is the number of @code{square} calls."
  18218. msgstr ""
  18219. #. type: deffn
  18220. #: guix-git/doc/guix.texi:11483
  18221. #, no-wrap
  18222. msgid "{Monadic Procedure} current-state"
  18223. msgstr ""
  18224. #. type: deffn
  18225. #: guix-git/doc/guix.texi:11485
  18226. msgid "Return the current state as a monadic value."
  18227. msgstr ""
  18228. #. type: deffn
  18229. #: guix-git/doc/guix.texi:11487
  18230. #, no-wrap
  18231. msgid "{Monadic Procedure} set-current-state @var{value}"
  18232. msgstr ""
  18233. #. type: deffn
  18234. #: guix-git/doc/guix.texi:11490
  18235. msgid "Set the current state to @var{value} and return the previous state as a monadic value."
  18236. msgstr ""
  18237. #. type: deffn
  18238. #: guix-git/doc/guix.texi:11492
  18239. #, no-wrap
  18240. msgid "{Monadic Procedure} state-push @var{value}"
  18241. msgstr ""
  18242. #. type: deffn
  18243. #: guix-git/doc/guix.texi:11495
  18244. msgid "Push @var{value} to the current state, which is assumed to be a list, and return the previous state as a monadic value."
  18245. msgstr ""
  18246. #. type: deffn
  18247. #: guix-git/doc/guix.texi:11497
  18248. #, no-wrap
  18249. msgid "{Monadic Procedure} state-pop"
  18250. msgstr ""
  18251. #. type: deffn
  18252. #: guix-git/doc/guix.texi:11500
  18253. msgid "Pop a value from the current state and return it as a monadic value. The state is assumed to be a list."
  18254. msgstr ""
  18255. #. type: defun
  18256. #: guix-git/doc/guix.texi:11502
  18257. #, no-wrap
  18258. msgid "run-with-state mval [state]"
  18259. msgstr ""
  18260. #. type: defun
  18261. #: guix-git/doc/guix.texi:11505
  18262. msgid "Run monadic value @var{mval} starting with @var{state} as the initial state. Return two values: the resulting value, and the resulting state."
  18263. msgstr ""
  18264. #. type: Plain text
  18265. #: guix-git/doc/guix.texi:11509
  18266. msgid "The main interface to the store monad, provided by the @code{(guix store)} module, is as follows."
  18267. msgstr ""
  18268. #. type: defvar
  18269. #: guix-git/doc/guix.texi:11510
  18270. #, no-wrap
  18271. msgid "%store-monad"
  18272. msgstr ""
  18273. #. type: defvar
  18274. #: guix-git/doc/guix.texi:11512
  18275. msgid "The store monad---an alias for @code{%state-monad}."
  18276. msgstr ""
  18277. #. type: defvar
  18278. #: guix-git/doc/guix.texi:11516
  18279. 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)."
  18280. msgstr ""
  18281. #. type: defun
  18282. #: guix-git/doc/guix.texi:11518
  18283. #, no-wrap
  18284. msgid "run-with-store store mval @"
  18285. msgstr ""
  18286. #. type: defun
  18287. #: guix-git/doc/guix.texi:11522
  18288. msgid "[#:guile-for-build] [#:system (%current-system)] Run @var{mval}, a monadic value in the store monad, in @var{store}, an open store connection."
  18289. msgstr ""
  18290. #. type: deffn
  18291. #: guix-git/doc/guix.texi:11524
  18292. #, no-wrap
  18293. msgid "{Monadic Procedure} text-file @var{name} @var{text} [@var{references}]"
  18294. msgstr ""
  18295. #. type: deffn
  18296. #: guix-git/doc/guix.texi:11528
  18297. 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."
  18298. msgstr ""
  18299. #. type: deffn
  18300. #: guix-git/doc/guix.texi:11530
  18301. #, no-wrap
  18302. msgid "{Monadic Procedure} binary-file @var{name} @var{data} [@var{references}]"
  18303. msgstr ""
  18304. #. type: deffn
  18305. #: guix-git/doc/guix.texi:11534
  18306. 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."
  18307. msgstr ""
  18308. #. type: deffn
  18309. #: guix-git/doc/guix.texi:11536
  18310. #, no-wrap
  18311. msgid "{Monadic Procedure} interned-file @var{file} [@var{name}] @"
  18312. msgstr ""
  18313. #. type: deffn
  18314. #: guix-git/doc/guix.texi:11541
  18315. 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."
  18316. msgstr ""
  18317. #. type: defun
  18318. #: guix-git/doc/guix.texi:11545 guix-git/doc/guix.texi:11967
  18319. 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."
  18320. msgstr ""
  18321. #. type: defun
  18322. #: guix-git/doc/guix.texi:11550 guix-git/doc/guix.texi:11972
  18323. 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."
  18324. msgstr ""
  18325. #. type: deffn
  18326. #: guix-git/doc/guix.texi:11552
  18327. msgid "The example below adds a file to the store, under two different names:"
  18328. msgstr ""
  18329. #. type: lisp
  18330. #: guix-git/doc/guix.texi:11558
  18331. #, no-wrap
  18332. msgid ""
  18333. "(run-with-store (open-connection)\n"
  18334. " (mlet %store-monad ((a (interned-file \"README\"))\n"
  18335. " (b (interned-file \"README\" \"LEGU-MIN\")))\n"
  18336. " (return (list a b))))\n"
  18337. "\n"
  18338. msgstr ""
  18339. #. type: lisp
  18340. #: guix-git/doc/guix.texi:11560
  18341. #, no-wrap
  18342. msgid "@result{} (\"/gnu/store/rwm@dots{}-README\" \"/gnu/store/44i@dots{}-LEGU-MIN\")\n"
  18343. msgstr ""
  18344. #. type: Plain text
  18345. #: guix-git/doc/guix.texi:11566
  18346. msgid "The @code{(guix packages)} module exports the following package-related monadic procedures:"
  18347. msgstr ""
  18348. #. type: deffn
  18349. #: guix-git/doc/guix.texi:11567
  18350. #, no-wrap
  18351. msgid "{Monadic Procedure} package-file @var{package} [@var{file}] @"
  18352. msgstr ""
  18353. #. type: deffn
  18354. #: guix-git/doc/guix.texi:11575
  18355. 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."
  18356. msgstr ""
  18357. #. type: deffn
  18358. #: guix-git/doc/guix.texi:11579
  18359. 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."
  18360. msgstr ""
  18361. #. type: deffn
  18362. #: guix-git/doc/guix.texi:11581
  18363. #, no-wrap
  18364. msgid "{Monadic Procedure} package->derivation @var{package} [@var{system}]"
  18365. msgstr ""
  18366. #. type: deffnx
  18367. #: guix-git/doc/guix.texi:11582
  18368. #, no-wrap
  18369. msgid "{Monadic Procedure} package->cross-derivation @var{package} @"
  18370. msgstr ""
  18371. #. type: deffn
  18372. #: guix-git/doc/guix.texi:11586
  18373. msgid "@var{target} [@var{system}] Monadic version of @code{package-derivation} and @code{package-cross-derivation} (@pxref{Defining Packages})."
  18374. msgstr ""
  18375. #. type: cindex
  18376. #: guix-git/doc/guix.texi:11592
  18377. #, no-wrap
  18378. msgid "G-expression"
  18379. msgstr ""
  18380. #. type: cindex
  18381. #: guix-git/doc/guix.texi:11593
  18382. #, no-wrap
  18383. msgid "build code quoting"
  18384. msgstr ""
  18385. #. type: Plain text
  18386. #: guix-git/doc/guix.texi:11599
  18387. 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})."
  18388. msgstr ""
  18389. #. type: cindex
  18390. #: guix-git/doc/guix.texi:11602
  18391. #, no-wrap
  18392. msgid "strata of code"
  18393. msgstr ""
  18394. #. type: Plain text
  18395. #: guix-git/doc/guix.texi:11614
  18396. 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})."
  18397. msgstr ""
  18398. #. type: Plain text
  18399. #: guix-git/doc/guix.texi:11621
  18400. 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."
  18401. msgstr ""
  18402. #. type: Plain text
  18403. #: guix-git/doc/guix.texi:11630
  18404. 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:"
  18405. msgstr ""
  18406. #. type: itemize
  18407. #: guix-git/doc/guix.texi:11635
  18408. msgid "Gexps are meant to be written to a file and run or manipulated by other processes."
  18409. msgstr ""
  18410. #. type: itemize
  18411. #: guix-git/doc/guix.texi:11640
  18412. 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."
  18413. msgstr ""
  18414. #. type: itemize
  18415. #: guix-git/doc/guix.texi:11645
  18416. 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."
  18417. msgstr ""
  18418. #. type: cindex
  18419. #: guix-git/doc/guix.texi:11647 guix-git/doc/guix.texi:12199
  18420. #, no-wrap
  18421. msgid "lowering, of high-level objects in gexps"
  18422. msgstr ""
  18423. #. type: Plain text
  18424. #: guix-git/doc/guix.texi:11657
  18425. 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)."
  18426. msgstr ""
  18427. #. type: Plain text
  18428. #: guix-git/doc/guix.texi:11659
  18429. msgid "To illustrate the idea, here is an example of a gexp:"
  18430. msgstr ""
  18431. #. type: lisp
  18432. #: guix-git/doc/guix.texi:11667
  18433. #, no-wrap
  18434. msgid ""
  18435. "(define build-exp\n"
  18436. " #~(begin\n"
  18437. " (mkdir #$output)\n"
  18438. " (chdir #$output)\n"
  18439. " (symlink (string-append #$coreutils \"/bin/ls\")\n"
  18440. " \"list-files\")))\n"
  18441. msgstr ""
  18442. #. type: Plain text
  18443. #: guix-git/doc/guix.texi:11672
  18444. 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}:"
  18445. msgstr ""
  18446. #. type: lisp
  18447. #: guix-git/doc/guix.texi:11675
  18448. #, no-wrap
  18449. msgid "(gexp->derivation \"the-thing\" build-exp)\n"
  18450. msgstr ""
  18451. #. type: Plain text
  18452. #: guix-git/doc/guix.texi:11683
  18453. 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."
  18454. msgstr ""
  18455. #. type: cindex
  18456. #: guix-git/doc/guix.texi:11684
  18457. #, no-wrap
  18458. msgid "cross compilation"
  18459. msgstr ""
  18460. #. type: Plain text
  18461. #: guix-git/doc/guix.texi:11690
  18462. 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:"
  18463. msgstr ""
  18464. #. type: lisp
  18465. #: guix-git/doc/guix.texi:11701
  18466. #, no-wrap
  18467. msgid ""
  18468. "(gexp->derivation \"vi\"\n"
  18469. " #~(begin\n"
  18470. " (mkdir #$output)\n"
  18471. " (mkdir (string-append #$output \"/bin\"))\n"
  18472. " (system* (string-append #+coreutils \"/bin/ln\")\n"
  18473. " \"-s\"\n"
  18474. " (string-append #$emacs \"/bin/emacs\")\n"
  18475. " (string-append #$output \"/bin/vi\")))\n"
  18476. " #:target \"aarch64-linux-gnu\")\n"
  18477. msgstr ""
  18478. #. type: Plain text
  18479. #: guix-git/doc/guix.texi:11707
  18480. 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."
  18481. msgstr ""
  18482. #. type: cindex
  18483. #: guix-git/doc/guix.texi:11708
  18484. #, no-wrap
  18485. msgid "imported modules, for gexps"
  18486. msgstr ""
  18487. #. type: findex
  18488. #: guix-git/doc/guix.texi:11709
  18489. #, no-wrap
  18490. msgid "with-imported-modules"
  18491. msgstr ""
  18492. #. type: Plain text
  18493. #: guix-git/doc/guix.texi:11714
  18494. 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:"
  18495. msgstr ""
  18496. #. type: lisp
  18497. #: guix-git/doc/guix.texi:11725
  18498. #, no-wrap
  18499. msgid ""
  18500. "(let ((build (with-imported-modules '((guix build utils))\n"
  18501. " #~(begin\n"
  18502. " (use-modules (guix build utils))\n"
  18503. " (mkdir-p (string-append #$output \"/bin\"))))))\n"
  18504. " (gexp->derivation \"empty-dir\"\n"
  18505. " #~(begin\n"
  18506. " #$build\n"
  18507. " (display \"success!\\n\")\n"
  18508. " #t)))\n"
  18509. msgstr ""
  18510. #. type: Plain text
  18511. #: guix-git/doc/guix.texi:11731
  18512. 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."
  18513. msgstr ""
  18514. #. type: cindex
  18515. #: guix-git/doc/guix.texi:11732
  18516. #, no-wrap
  18517. msgid "module closure"
  18518. msgstr ""
  18519. #. type: findex
  18520. #: guix-git/doc/guix.texi:11733
  18521. #, no-wrap
  18522. msgid "source-module-closure"
  18523. msgstr ""
  18524. #. type: Plain text
  18525. #: guix-git/doc/guix.texi:11740
  18526. 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:"
  18527. msgstr ""
  18528. #. type: lisp
  18529. #: guix-git/doc/guix.texi:11743
  18530. #, no-wrap
  18531. msgid ""
  18532. "(use-modules (guix modules)) ;for 'source-module-closure'\n"
  18533. "\n"
  18534. msgstr ""
  18535. #. type: lisp
  18536. #: guix-git/doc/guix.texi:11752
  18537. #, no-wrap
  18538. msgid ""
  18539. "(with-imported-modules (source-module-closure\n"
  18540. " '((guix build utils)\n"
  18541. " (gnu build image)))\n"
  18542. " (gexp->derivation \"something-with-vms\"\n"
  18543. " #~(begin\n"
  18544. " (use-modules (guix build utils)\n"
  18545. " (gnu build image))\n"
  18546. " @dots{})))\n"
  18547. msgstr ""
  18548. #. type: cindex
  18549. #: guix-git/doc/guix.texi:11754
  18550. #, no-wrap
  18551. msgid "extensions, for gexps"
  18552. msgstr ""
  18553. #. type: findex
  18554. #: guix-git/doc/guix.texi:11755
  18555. #, no-wrap
  18556. msgid "with-extensions"
  18557. msgstr ""
  18558. #. type: Plain text
  18559. #: guix-git/doc/guix.texi:11760
  18560. 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:"
  18561. msgstr ""
  18562. #. type: lisp
  18563. #: guix-git/doc/guix.texi:11763
  18564. #, no-wrap
  18565. msgid ""
  18566. "(use-modules (gnu packages guile)) ;for 'guile-json'\n"
  18567. "\n"
  18568. msgstr ""
  18569. #. type: lisp
  18570. #: guix-git/doc/guix.texi:11769
  18571. #, no-wrap
  18572. msgid ""
  18573. "(with-extensions (list guile-json)\n"
  18574. " (gexp->derivation \"something-with-json\"\n"
  18575. " #~(begin\n"
  18576. " (use-modules (json))\n"
  18577. " @dots{})))\n"
  18578. msgstr ""
  18579. #. type: Plain text
  18580. #: guix-git/doc/guix.texi:11772
  18581. msgid "The syntactic form to construct gexps is summarized below."
  18582. msgstr ""
  18583. #. type: defmac
  18584. #: guix-git/doc/guix.texi:11773
  18585. #, no-wrap
  18586. msgid "#~@var{exp}"
  18587. msgstr ""
  18588. #. type: defmacx
  18589. #: guix-git/doc/guix.texi:11774
  18590. #, fuzzy, no-wrap
  18591. msgid "(gexp @var{exp})"
  18592. msgstr "--log-compression=@var{type}"
  18593. #. type: defmac
  18594. #: guix-git/doc/guix.texi:11777
  18595. msgid "Return a G-expression containing @var{exp}. @var{exp} may contain one or more of the following forms:"
  18596. msgstr ""
  18597. #. type: item
  18598. #: guix-git/doc/guix.texi:11779
  18599. #, no-wrap
  18600. msgid "#$@var{obj}"
  18601. msgstr ""
  18602. #. type: itemx
  18603. #: guix-git/doc/guix.texi:11780
  18604. #, no-wrap
  18605. msgid "(ungexp @var{obj})"
  18606. msgstr ""
  18607. #. type: table
  18608. #: guix-git/doc/guix.texi:11785
  18609. 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}."
  18610. msgstr ""
  18611. #. type: table
  18612. #: guix-git/doc/guix.texi:11788
  18613. msgid "If @var{obj} is a list, it is traversed and references to supported objects are substituted similarly."
  18614. msgstr ""
  18615. #. type: table
  18616. #: guix-git/doc/guix.texi:11791
  18617. msgid "If @var{obj} is another gexp, its contents are inserted and its dependencies are added to those of the containing gexp."
  18618. msgstr ""
  18619. #. type: table
  18620. #: guix-git/doc/guix.texi:11793
  18621. msgid "If @var{obj} is another kind of object, it is inserted as is."
  18622. msgstr ""
  18623. #. type: item
  18624. #: guix-git/doc/guix.texi:11794
  18625. #, no-wrap
  18626. msgid "#$@var{obj}:@var{output}"
  18627. msgstr ""
  18628. #. type: itemx
  18629. #: guix-git/doc/guix.texi:11795
  18630. #, no-wrap
  18631. msgid "(ungexp @var{obj} @var{output})"
  18632. msgstr ""
  18633. #. type: table
  18634. #: guix-git/doc/guix.texi:11799
  18635. 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})."
  18636. msgstr ""
  18637. #. type: item
  18638. #: guix-git/doc/guix.texi:11800
  18639. #, no-wrap
  18640. msgid "#+@var{obj}"
  18641. msgstr ""
  18642. #. type: itemx
  18643. #: guix-git/doc/guix.texi:11801
  18644. #, no-wrap
  18645. msgid "#+@var{obj}:output"
  18646. msgstr ""
  18647. #. type: itemx
  18648. #: guix-git/doc/guix.texi:11802
  18649. #, no-wrap
  18650. msgid "(ungexp-native @var{obj})"
  18651. msgstr ""
  18652. #. type: itemx
  18653. #: guix-git/doc/guix.texi:11803
  18654. #, no-wrap
  18655. msgid "(ungexp-native @var{obj} @var{output})"
  18656. msgstr ""
  18657. #. type: table
  18658. #: guix-git/doc/guix.texi:11806
  18659. msgid "Same as @code{ungexp}, but produces a reference to the @emph{native} build of @var{obj} when used in a cross compilation context."
  18660. msgstr ""
  18661. #. type: item
  18662. #: guix-git/doc/guix.texi:11807
  18663. #, no-wrap
  18664. msgid "#$output[:@var{output}]"
  18665. msgstr ""
  18666. #. type: itemx
  18667. #: guix-git/doc/guix.texi:11808
  18668. #, no-wrap
  18669. msgid "(ungexp output [@var{output}])"
  18670. msgstr ""
  18671. #. type: table
  18672. #: guix-git/doc/guix.texi:11811
  18673. msgid "Insert a reference to derivation output @var{output}, or to the main output when @var{output} is omitted."
  18674. msgstr ""
  18675. #. type: table
  18676. #: guix-git/doc/guix.texi:11813
  18677. msgid "This only makes sense for gexps passed to @code{gexp->derivation}."
  18678. msgstr ""
  18679. #. type: item
  18680. #: guix-git/doc/guix.texi:11814
  18681. #, no-wrap
  18682. msgid "#$@@@var{lst}"
  18683. msgstr ""
  18684. #. type: itemx
  18685. #: guix-git/doc/guix.texi:11815
  18686. #, no-wrap
  18687. msgid "(ungexp-splicing @var{lst})"
  18688. msgstr ""
  18689. #. type: table
  18690. #: guix-git/doc/guix.texi:11818
  18691. msgid "Like the above, but splices the contents of @var{lst} inside the containing list."
  18692. msgstr ""
  18693. #. type: item
  18694. #: guix-git/doc/guix.texi:11819
  18695. #, no-wrap
  18696. msgid "#+@@@var{lst}"
  18697. msgstr ""
  18698. #. type: itemx
  18699. #: guix-git/doc/guix.texi:11820
  18700. #, no-wrap
  18701. msgid "(ungexp-native-splicing @var{lst})"
  18702. msgstr ""
  18703. #. type: table
  18704. #: guix-git/doc/guix.texi:11823
  18705. msgid "Like the above, but refers to native builds of the objects listed in @var{lst}."
  18706. msgstr ""
  18707. #. type: defmac
  18708. #: guix-git/doc/guix.texi:11828
  18709. msgid "G-expressions created by @code{gexp} or @code{#~} are run-time objects of the @code{gexp?} type (see below)."
  18710. msgstr ""
  18711. #. type: defmac
  18712. #: guix-git/doc/guix.texi:11830
  18713. #, no-wrap
  18714. msgid "with-imported-modules modules body@dots{}"
  18715. msgstr ""
  18716. #. type: defmac
  18717. #: guix-git/doc/guix.texi:11833
  18718. msgid "Mark the gexps defined in @var{body}@dots{} as requiring @var{modules} in their execution environment."
  18719. msgstr ""
  18720. #. type: defmac
  18721. #: guix-git/doc/guix.texi:11837
  18722. 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:"
  18723. msgstr ""
  18724. #. type: lisp
  18725. #: guix-git/doc/guix.texi:11843
  18726. #, no-wrap
  18727. msgid ""
  18728. "`((guix build utils)\n"
  18729. " (guix gcrypt)\n"
  18730. " ((guix config) => ,(scheme-file \"config.scm\"\n"
  18731. " #~(define-module @dots{}))))\n"
  18732. msgstr ""
  18733. #. type: defmac
  18734. #: guix-git/doc/guix.texi:11848
  18735. 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."
  18736. msgstr ""
  18737. #. type: defmac
  18738. #: guix-git/doc/guix.texi:11852
  18739. 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{}."
  18740. msgstr ""
  18741. #. type: defmac
  18742. #: guix-git/doc/guix.texi:11854
  18743. #, no-wrap
  18744. msgid "with-extensions extensions body@dots{}"
  18745. msgstr ""
  18746. #. type: defmac
  18747. #: guix-git/doc/guix.texi:11859
  18748. 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."
  18749. msgstr ""
  18750. #. type: defmac
  18751. #: guix-git/doc/guix.texi:11864
  18752. 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{}."
  18753. msgstr ""
  18754. #. type: defun
  18755. #: guix-git/doc/guix.texi:11866
  18756. #, no-wrap
  18757. msgid "gexp? obj"
  18758. msgstr ""
  18759. #. type: defun
  18760. #: guix-git/doc/guix.texi:11868
  18761. msgid "Return @code{#t} if @var{obj} is a G-expression."
  18762. msgstr ""
  18763. #. type: Plain text
  18764. #: guix-git/doc/guix.texi:11874
  18765. 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)."
  18766. msgstr ""
  18767. #. type: deffn
  18768. #: guix-git/doc/guix.texi:11875
  18769. #, no-wrap
  18770. msgid "{Monadic Procedure} gexp->derivation @var{name} @var{exp} @"
  18771. msgstr ""
  18772. #. type: deffn
  18773. #: guix-git/doc/guix.texi:11893
  18774. 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}."
  18775. msgstr ""
  18776. #. type: deffn
  18777. #: guix-git/doc/guix.texi:11901
  18778. 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))}."
  18779. msgstr ""
  18780. #. type: deffn
  18781. #: guix-git/doc/guix.texi:11904
  18782. 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\"}."
  18783. msgstr ""
  18784. #. type: deffn
  18785. #: guix-git/doc/guix.texi:11907
  18786. msgid "@var{graft?} determines whether packages referred to by @var{exp} should be grafted when applicable."
  18787. msgstr ""
  18788. #. type: deffn
  18789. #: guix-git/doc/guix.texi:11910
  18790. msgid "When @var{references-graphs} is true, it must be a list of tuples of one of the following forms:"
  18791. msgstr ""
  18792. #. type: example
  18793. #: guix-git/doc/guix.texi:11917
  18794. #, no-wrap
  18795. msgid ""
  18796. "(@var{file-name} @var{package})\n"
  18797. "(@var{file-name} @var{package} @var{output})\n"
  18798. "(@var{file-name} @var{derivation})\n"
  18799. "(@var{file-name} @var{derivation} @var{output})\n"
  18800. "(@var{file-name} @var{store-item})\n"
  18801. msgstr ""
  18802. #. type: deffn
  18803. #: guix-git/doc/guix.texi:11923
  18804. 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."
  18805. msgstr ""
  18806. #. type: deffn
  18807. #: guix-git/doc/guix.texi:11929
  18808. 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."
  18809. msgstr ""
  18810. #. type: deffn
  18811. #: guix-git/doc/guix.texi:11932
  18812. msgid "@var{deprecation-warnings} determines whether to show deprecation warnings while compiling modules. It can be @code{#f}, @code{#t}, or @code{'detailed}."
  18813. msgstr ""
  18814. #. type: deffn
  18815. #: guix-git/doc/guix.texi:11934
  18816. msgid "The other arguments are as for @code{derivation} (@pxref{Derivations})."
  18817. msgstr ""
  18818. #. type: cindex
  18819. #: guix-git/doc/guix.texi:11936
  18820. #, no-wrap
  18821. msgid "file-like objects"
  18822. msgstr ""
  18823. #. type: Plain text
  18824. #: guix-git/doc/guix.texi:11941
  18825. 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:"
  18826. msgstr ""
  18827. #. type: lisp
  18828. #: guix-git/doc/guix.texi:11945
  18829. #, no-wrap
  18830. msgid ""
  18831. "#~(system* #$(file-append glibc \"/sbin/nscd\") \"-f\"\n"
  18832. " #$(local-file \"/tmp/my-nscd.conf\"))\n"
  18833. msgstr ""
  18834. #. type: Plain text
  18835. #: guix-git/doc/guix.texi:11954
  18836. 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."
  18837. msgstr ""
  18838. #. type: defun
  18839. #: guix-git/doc/guix.texi:11955
  18840. #, no-wrap
  18841. msgid "local-file file [name] [#:recursive? #f] [#:select? (const #t)]"
  18842. msgstr ""
  18843. #. type: defun
  18844. #: guix-git/doc/guix.texi:11963
  18845. msgid "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}."
  18846. msgstr ""
  18847. #. type: defun
  18848. #: guix-git/doc/guix.texi:11975
  18849. msgid "This is the declarative counterpart of the @code{interned-file} monadic procedure (@pxref{The Store Monad, @code{interned-file}})."
  18850. msgstr ""
  18851. #. type: defun
  18852. #: guix-git/doc/guix.texi:11977
  18853. #, no-wrap
  18854. msgid "plain-file name content"
  18855. msgstr ""
  18856. #. type: defun
  18857. #: guix-git/doc/guix.texi:11980
  18858. 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."
  18859. msgstr ""
  18860. #. type: defun
  18861. #: guix-git/doc/guix.texi:11982
  18862. msgid "This is the declarative counterpart of @code{text-file}."
  18863. msgstr ""
  18864. #. type: defun
  18865. #: guix-git/doc/guix.texi:11984
  18866. #, no-wrap
  18867. msgid "computed-file name gexp [#:local-build? #t] [#:options '()]"
  18868. msgstr ""
  18869. #. type: defun
  18870. #: guix-git/doc/guix.texi:11989
  18871. msgid "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}."
  18872. msgstr ""
  18873. #. type: defun
  18874. #: guix-git/doc/guix.texi:11991
  18875. msgid "This is the declarative counterpart of @code{gexp->derivation}."
  18876. msgstr ""
  18877. #. type: deffn
  18878. #: guix-git/doc/guix.texi:11993
  18879. #, no-wrap
  18880. msgid "{Monadic Procedure} gexp->script @var{name} @var{exp} @"
  18881. msgstr ""
  18882. #. type: deffn
  18883. #: guix-git/doc/guix.texi:11999
  18884. 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}."
  18885. msgstr ""
  18886. #. type: deffn
  18887. #: guix-git/doc/guix.texi:12002
  18888. msgid "The example below builds a script that simply invokes the @command{ls} command:"
  18889. msgstr ""
  18890. #. type: lisp
  18891. #: guix-git/doc/guix.texi:12005
  18892. #, no-wrap
  18893. msgid ""
  18894. "(use-modules (guix gexp) (gnu packages base))\n"
  18895. "\n"
  18896. msgstr ""
  18897. #. type: lisp
  18898. #: guix-git/doc/guix.texi:12009
  18899. #, no-wrap
  18900. msgid ""
  18901. "(gexp->script \"list-files\"\n"
  18902. " #~(execl #$(file-append coreutils \"/bin/ls\")\n"
  18903. " \"ls\"))\n"
  18904. msgstr ""
  18905. #. type: deffn
  18906. #: guix-git/doc/guix.texi:12014
  18907. 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:"
  18908. msgstr ""
  18909. #. type: example
  18910. #: guix-git/doc/guix.texi:12019
  18911. #, no-wrap
  18912. msgid ""
  18913. "#!/gnu/store/@dots{}-guile-2.0.11/bin/guile -ds\n"
  18914. "!#\n"
  18915. "(execl \"/gnu/store/@dots{}-coreutils-8.22\"/bin/ls\" \"ls\")\n"
  18916. msgstr ""
  18917. #. type: defun
  18918. #: guix-git/doc/guix.texi:12022
  18919. #, no-wrap
  18920. msgid "program-file name exp [#:guile #f] [#:module-path %load-path]"
  18921. msgstr ""
  18922. #. type: defun
  18923. #: guix-git/doc/guix.texi:12026
  18924. msgid "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}."
  18925. msgstr ""
  18926. #. type: defun
  18927. #: guix-git/doc/guix.texi:12028
  18928. msgid "This is the declarative counterpart of @code{gexp->script}."
  18929. msgstr ""
  18930. #. type: deffn
  18931. #: guix-git/doc/guix.texi:12030
  18932. #, no-wrap
  18933. msgid "{Monadic Procedure} gexp->file @var{name} @var{exp} @"
  18934. msgstr ""
  18935. #. type: deffn
  18936. #: guix-git/doc/guix.texi:12037
  18937. 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."
  18938. msgstr ""
  18939. #. type: deffn
  18940. #: guix-git/doc/guix.texi:12042
  18941. 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}."
  18942. msgstr ""
  18943. #. type: deffn
  18944. #: guix-git/doc/guix.texi:12045
  18945. msgid "The resulting file holds references to all the dependencies of @var{exp} or a subset thereof."
  18946. msgstr ""
  18947. #. type: defun
  18948. #: guix-git/doc/guix.texi:12047
  18949. #, no-wrap
  18950. msgid "scheme-file name exp [#:splice? #f] [#:set-load-path? #t]"
  18951. msgstr ""
  18952. #. type: defun
  18953. #: guix-git/doc/guix.texi:12050
  18954. msgid "Return an object representing the Scheme file @var{name} that contains @var{exp}."
  18955. msgstr ""
  18956. #. type: defun
  18957. #: guix-git/doc/guix.texi:12052
  18958. msgid "This is the declarative counterpart of @code{gexp->file}."
  18959. msgstr ""
  18960. #. type: deffn
  18961. #: guix-git/doc/guix.texi:12054
  18962. #, no-wrap
  18963. msgid "{Monadic Procedure} text-file* @var{name} @var{text} @dots{}"
  18964. msgstr ""
  18965. #. type: deffn
  18966. #: guix-git/doc/guix.texi:12060
  18967. 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."
  18968. msgstr ""
  18969. #. type: deffn
  18970. #: guix-git/doc/guix.texi:12065
  18971. 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:"
  18972. msgstr ""
  18973. #. type: lisp
  18974. #: guix-git/doc/guix.texi:12073
  18975. #, no-wrap
  18976. msgid ""
  18977. "(define (profile.sh)\n"
  18978. " ;; Return the name of a shell script in the store that\n"
  18979. " ;; initializes the 'PATH' environment variable.\n"
  18980. " (text-file* \"profile.sh\"\n"
  18981. " \"export PATH=\" coreutils \"/bin:\"\n"
  18982. " grep \"/bin:\" sed \"/bin\\n\"))\n"
  18983. msgstr ""
  18984. #. type: deffn
  18985. #: guix-git/doc/guix.texi:12078
  18986. 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."
  18987. msgstr ""
  18988. #. type: defun
  18989. #: guix-git/doc/guix.texi:12080
  18990. #, no-wrap
  18991. msgid "mixed-text-file name text @dots{}"
  18992. msgstr ""
  18993. #. type: defun
  18994. #: guix-git/doc/guix.texi:12084
  18995. 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:"
  18996. msgstr ""
  18997. #. type: lisp
  18998. #: guix-git/doc/guix.texi:12088
  18999. #, no-wrap
  19000. msgid ""
  19001. "(mixed-text-file \"profile\"\n"
  19002. " \"export PATH=\" coreutils \"/bin:\" grep \"/bin\")\n"
  19003. msgstr ""
  19004. #. type: defun
  19005. #: guix-git/doc/guix.texi:12091
  19006. msgid "This is the declarative counterpart of @code{text-file*}."
  19007. msgstr ""
  19008. #. type: defun
  19009. #: guix-git/doc/guix.texi:12093
  19010. #, fuzzy, no-wrap
  19011. msgid "file-union name files"
  19012. msgstr "通道"
  19013. #. type: defun
  19014. #: guix-git/doc/guix.texi:12098
  19015. 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:"
  19016. msgstr ""
  19017. #. type: lisp
  19018. #: guix-git/doc/guix.texi:12105
  19019. #, no-wrap
  19020. msgid ""
  19021. "(file-union \"etc\"\n"
  19022. " `((\"hosts\" ,(plain-file \"hosts\"\n"
  19023. " \"127.0.0.1 localhost\"))\n"
  19024. " (\"bashrc\" ,(plain-file \"bashrc\"\n"
  19025. " \"alias ls='ls --color=auto'\"))))\n"
  19026. msgstr ""
  19027. #. type: defun
  19028. #: guix-git/doc/guix.texi:12108
  19029. msgid "This yields an @code{etc} directory containing these two files."
  19030. msgstr ""
  19031. #. type: defun
  19032. #: guix-git/doc/guix.texi:12110
  19033. #, no-wrap
  19034. msgid "directory-union name things"
  19035. msgstr ""
  19036. #. type: defun
  19037. #: guix-git/doc/guix.texi:12113
  19038. 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:"
  19039. msgstr ""
  19040. #. type: lisp
  19041. #: guix-git/doc/guix.texi:12116
  19042. #, no-wrap
  19043. msgid "(directory-union \"guile+emacs\" (list guile emacs))\n"
  19044. msgstr ""
  19045. #. type: defun
  19046. #: guix-git/doc/guix.texi:12119
  19047. msgid "yields a directory that is the union of the @code{guile} and @code{emacs} packages."
  19048. msgstr ""
  19049. #. type: defun
  19050. #: guix-git/doc/guix.texi:12121
  19051. #, no-wrap
  19052. msgid "file-append obj suffix @dots{}"
  19053. msgstr ""
  19054. #. type: defun
  19055. #: guix-git/doc/guix.texi:12125
  19056. 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."
  19057. msgstr ""
  19058. #. type: defun
  19059. #: guix-git/doc/guix.texi:12127
  19060. msgid "As an example, consider this gexp:"
  19061. msgstr ""
  19062. #. type: lisp
  19063. #: guix-git/doc/guix.texi:12132
  19064. #, no-wrap
  19065. msgid ""
  19066. "(gexp->script \"run-uname\"\n"
  19067. " #~(system* #$(file-append coreutils\n"
  19068. " \"/bin/uname\")))\n"
  19069. msgstr ""
  19070. #. type: defun
  19071. #: guix-git/doc/guix.texi:12135
  19072. msgid "The same effect could be achieved with:"
  19073. msgstr ""
  19074. #. type: lisp
  19075. #: guix-git/doc/guix.texi:12140
  19076. #, no-wrap
  19077. msgid ""
  19078. "(gexp->script \"run-uname\"\n"
  19079. " #~(system* (string-append #$coreutils\n"
  19080. " \"/bin/uname\")))\n"
  19081. msgstr ""
  19082. #. type: defun
  19083. #: guix-git/doc/guix.texi:12146
  19084. 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}."
  19085. msgstr ""
  19086. #. type: defmac
  19087. #: guix-git/doc/guix.texi:12148
  19088. #, no-wrap
  19089. msgid "let-system system body@dots{}"
  19090. msgstr ""
  19091. #. type: defmacx
  19092. #: guix-git/doc/guix.texi:12149
  19093. #, no-wrap
  19094. msgid "let-system (system target) body@dots{}"
  19095. msgstr ""
  19096. #. type: defmac
  19097. #: guix-git/doc/guix.texi:12152
  19098. #, fuzzy
  19099. msgid "Bind @var{system} to the currently targeted system---e.g., @code{\"x86_64-linux\"}---within @var{body}."
  19100. msgstr "远程机器的系统类型--如,@code{\"x86_64-linux\"}。"
  19101. #. type: defmac
  19102. #: guix-git/doc/guix.texi:12157
  19103. 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."
  19104. msgstr ""
  19105. #. type: defmac
  19106. #: guix-git/doc/guix.texi:12160
  19107. 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:"
  19108. msgstr ""
  19109. #. type: lisp
  19110. #: guix-git/doc/guix.texi:12171
  19111. #, no-wrap
  19112. msgid ""
  19113. "#~(system*\n"
  19114. " #+(let-system system\n"
  19115. " (cond ((string-prefix? \"armhf-\" system)\n"
  19116. " (file-append qemu \"/bin/qemu-system-arm\"))\n"
  19117. " ((string-prefix? \"x86_64-\" system)\n"
  19118. " (file-append qemu \"/bin/qemu-system-x86_64\"))\n"
  19119. " (else\n"
  19120. " (error \"dunno!\"))))\n"
  19121. " \"-net\" \"user\" #$image)\n"
  19122. msgstr ""
  19123. #. type: defmac
  19124. #: guix-git/doc/guix.texi:12174
  19125. #, no-wrap
  19126. msgid "with-parameters ((parameter value) @dots{}) exp"
  19127. msgstr ""
  19128. #. type: defmac
  19129. #: guix-git/doc/guix.texi:12180
  19130. 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."
  19131. msgstr ""
  19132. #. type: defmac
  19133. #: guix-git/doc/guix.texi:12183
  19134. msgid "A typical use of @code{with-parameters} is to force the system in effect for a given object:"
  19135. msgstr ""
  19136. #. type: lisp
  19137. #: guix-git/doc/guix.texi:12187
  19138. #, no-wrap
  19139. msgid ""
  19140. "(with-parameters ((%current-system \"i686-linux\"))\n"
  19141. " coreutils)\n"
  19142. msgstr ""
  19143. #. type: defmac
  19144. #: guix-git/doc/guix.texi:12191
  19145. msgid "The example above returns an object that corresponds to the i686 build of Coreutils, regardless of the current value of @code{%current-system}."
  19146. msgstr ""
  19147. #. type: Plain text
  19148. #: guix-git/doc/guix.texi:12198
  19149. 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."
  19150. msgstr ""
  19151. #. type: Plain text
  19152. #: guix-git/doc/guix.texi:12204
  19153. 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."
  19154. msgstr ""
  19155. #. type: deffn
  19156. #: guix-git/doc/guix.texi:12205
  19157. #, no-wrap
  19158. msgid "{Monadic Procedure} lower-object @var{obj} [@var{system}] @"
  19159. msgstr ""
  19160. #. type: deffn
  19161. #: guix-git/doc/guix.texi:12211
  19162. 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>}."
  19163. msgstr ""
  19164. #. type: defun
  19165. #: guix-git/doc/guix.texi:12213
  19166. #, no-wrap
  19167. msgid "gexp->approximate-sexp gexp"
  19168. msgstr ""
  19169. #. type: defun
  19170. #: guix-git/doc/guix.texi:12221
  19171. 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."
  19172. msgstr ""
  19173. #. type: section
  19174. #: guix-git/doc/guix.texi:12224
  19175. #, no-wrap
  19176. msgid "Invoking @command{guix repl}"
  19177. msgstr ""
  19178. #. type: command{#1}
  19179. #: guix-git/doc/guix.texi:12226
  19180. #, no-wrap
  19181. msgid "guix repl"
  19182. msgstr "guix repl"
  19183. #. type: cindex
  19184. #: guix-git/doc/guix.texi:12227
  19185. #, fuzzy, no-wrap
  19186. msgid "REPL, read-eval-print loop, script"
  19187. msgstr "read-eval-print loop"
  19188. #. type: Plain text
  19189. #: guix-git/doc/guix.texi:12237
  19190. 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."
  19191. msgstr ""
  19192. #. type: example
  19193. #: guix-git/doc/guix.texi:12242
  19194. #, no-wrap
  19195. msgid "guix repl @var{options} [@var{file} @var{args}]\n"
  19196. msgstr ""
  19197. #. type: Plain text
  19198. #: guix-git/doc/guix.texi:12246
  19199. msgid "When a @var{file} argument is provided, @var{file} is executed as a Guile scripts:"
  19200. msgstr ""
  19201. #. type: example
  19202. #: guix-git/doc/guix.texi:12249
  19203. #, no-wrap
  19204. msgid "guix repl my-script.scm\n"
  19205. msgstr ""
  19206. #. type: Plain text
  19207. #: guix-git/doc/guix.texi:12253
  19208. msgid "To pass arguments to the script, use @code{--} to prevent them from being interpreted as arguments to @command{guix repl} itself:"
  19209. msgstr ""
  19210. #. type: example
  19211. #: guix-git/doc/guix.texi:12256
  19212. #, no-wrap
  19213. msgid "guix repl -- my-script.scm --input=foo.txt\n"
  19214. msgstr ""
  19215. #. type: Plain text
  19216. #: guix-git/doc/guix.texi:12261
  19217. 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:"
  19218. msgstr ""
  19219. #. type: example
  19220. #: guix-git/doc/guix.texi:12265
  19221. #, no-wrap
  19222. msgid ""
  19223. "@code{#!/usr/bin/env -S guix repl --}\n"
  19224. "@code{!#}\n"
  19225. msgstr ""
  19226. #. type: Plain text
  19227. #: guix-git/doc/guix.texi:12269
  19228. msgid "To make a script that launches an interactive REPL directly from the shell, use the @code{--interactive} flag:"
  19229. msgstr ""
  19230. #. type: example
  19231. #: guix-git/doc/guix.texi:12273
  19232. #, no-wrap
  19233. msgid ""
  19234. "@code{#!/usr/bin/env -S guix repl --interactive}\n"
  19235. "@code{!#}\n"
  19236. msgstr ""
  19237. #. type: Plain text
  19238. #: guix-git/doc/guix.texi:12277
  19239. msgid "Without a file name argument, a Guile REPL is started, allowing for interactive use (@pxref{Using Guix Interactively}):"
  19240. msgstr ""
  19241. #. type: example
  19242. #: guix-git/doc/guix.texi:12283
  19243. #, no-wrap
  19244. msgid ""
  19245. "$ guix repl\n"
  19246. "scheme@@(guile-user)> ,use (gnu packages base)\n"
  19247. "scheme@@(guile-user)> coreutils\n"
  19248. "$1 = #<package coreutils@@8.29 gnu/packages/base.scm:327 3e28300>\n"
  19249. msgstr ""
  19250. #. type: Plain text
  19251. #: guix-git/doc/guix.texi:12290
  19252. 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."
  19253. msgstr ""
  19254. #. type: Plain text
  19255. #: guix-git/doc/guix.texi:12292
  19256. msgid "The available options are as follows:"
  19257. msgstr ""
  19258. #. type: item
  19259. #: guix-git/doc/guix.texi:12294 guix-git/doc/guix.texi:15374
  19260. #, no-wrap
  19261. msgid "--list-types"
  19262. msgstr ""
  19263. #. type: table
  19264. #: guix-git/doc/guix.texi:12297
  19265. msgid "Display the @var{TYPE} options for @command{guix repl --type=TYPE} and exit."
  19266. msgstr ""
  19267. #. type: item
  19268. #: guix-git/doc/guix.texi:12298 guix-git/doc/guix.texi:15369
  19269. #, no-wrap
  19270. msgid "--type=@var{type}"
  19271. msgstr ""
  19272. #. type: itemx
  19273. #: guix-git/doc/guix.texi:12299 guix-git/doc/guix.texi:15370
  19274. #: guix-git/doc/guix.texi:40344
  19275. #, no-wrap
  19276. msgid "-t @var{type}"
  19277. msgstr ""
  19278. #. type: table
  19279. #: guix-git/doc/guix.texi:12301
  19280. msgid "Start a REPL of the given @var{TYPE}, which can be one of the following:"
  19281. msgstr ""
  19282. #. type: item
  19283. #: guix-git/doc/guix.texi:12303
  19284. #, no-wrap
  19285. msgid "guile"
  19286. msgstr ""
  19287. #. type: table
  19288. #: guix-git/doc/guix.texi:12305
  19289. msgid "This is default, and it spawns a standard full-featured Guile REPL."
  19290. msgstr ""
  19291. #. type: item
  19292. #: guix-git/doc/guix.texi:12305
  19293. #, no-wrap
  19294. msgid "machine"
  19295. msgstr ""
  19296. #. type: table
  19297. #: guix-git/doc/guix.texi:12308
  19298. msgid "Spawn a REPL that uses the machine-readable protocol. This is the protocol that the @code{(guix inferior)} module speaks."
  19299. msgstr ""
  19300. #. type: table
  19301. #: guix-git/doc/guix.texi:12314
  19302. 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:"
  19303. msgstr ""
  19304. #. type: item
  19305. #: guix-git/doc/guix.texi:12316
  19306. #, no-wrap
  19307. msgid "--listen=tcp:37146"
  19308. msgstr ""
  19309. #. type: table
  19310. #: guix-git/doc/guix.texi:12318
  19311. msgid "Accept connections on localhost on port 37146."
  19312. msgstr ""
  19313. #. type: item
  19314. #: guix-git/doc/guix.texi:12319
  19315. #, no-wrap
  19316. msgid "--listen=unix:/tmp/socket"
  19317. msgstr ""
  19318. #. type: table
  19319. #: guix-git/doc/guix.texi:12321
  19320. msgid "Accept connections on the Unix-domain socket @file{/tmp/socket}."
  19321. msgstr ""
  19322. #. type: item
  19323. #: guix-git/doc/guix.texi:12323
  19324. #, fuzzy, no-wrap
  19325. #| msgid "user interfaces"
  19326. msgid "--interactive"
  19327. msgstr "用户界面"
  19328. #. type: itemx
  19329. #: guix-git/doc/guix.texi:12324
  19330. #, no-wrap
  19331. msgid "-i"
  19332. msgstr ""
  19333. #. type: table
  19334. #: guix-git/doc/guix.texi:12326
  19335. msgid "Launch the interactive REPL after @var{file} is executed."
  19336. msgstr ""
  19337. #. type: item
  19338. #: guix-git/doc/guix.texi:12327 guix-git/doc/guix.texi:12558
  19339. #: guix-git/doc/guix.texi:14604 guix-git/doc/guix.texi:14787
  19340. #: guix-git/doc/guix.texi:15004 guix-git/doc/guix.texi:15149
  19341. #: guix-git/doc/guix.texi:15417
  19342. #, no-wrap
  19343. msgid "--load-path=@var{directory}"
  19344. msgstr ""
  19345. #. type: itemx
  19346. #: guix-git/doc/guix.texi:12328 guix-git/doc/guix.texi:12559
  19347. #: guix-git/doc/guix.texi:14605 guix-git/doc/guix.texi:14788
  19348. #: guix-git/doc/guix.texi:15005 guix-git/doc/guix.texi:15150
  19349. #: guix-git/doc/guix.texi:15418
  19350. #, no-wrap
  19351. msgid "-L @var{directory}"
  19352. msgstr ""
  19353. #. type: table
  19354. #: guix-git/doc/guix.texi:12331 guix-git/doc/guix.texi:12562
  19355. #: guix-git/doc/guix.texi:14608 guix-git/doc/guix.texi:14791
  19356. #: guix-git/doc/guix.texi:15008 guix-git/doc/guix.texi:15153
  19357. #: guix-git/doc/guix.texi:15421
  19358. msgid "Add @var{directory} to the front of the package module search path (@pxref{Package Modules})."
  19359. msgstr ""
  19360. #. type: table
  19361. #: guix-git/doc/guix.texi:12334
  19362. msgid "This allows users to define their own packages and make them visible to the script or REPL."
  19363. msgstr ""
  19364. #. type: itemx
  19365. #: guix-git/doc/guix.texi:12335 guix-git/doc/guix.texi:13135
  19366. #, no-wrap
  19367. msgid "-q"
  19368. msgstr ""
  19369. #. type: table
  19370. #: guix-git/doc/guix.texi:12338
  19371. msgid "Inhibit loading of the @file{~/.guile} file. By default, that configuration file is loaded when spawning a @code{guile} REPL."
  19372. msgstr ""
  19373. #. type: cindex
  19374. #: guix-git/doc/guix.texi:12343
  19375. #, fuzzy, no-wrap
  19376. #| msgid "user interfaces"
  19377. msgid "interactive use"
  19378. msgstr "用户界面"
  19379. #. type: cindex
  19380. #: guix-git/doc/guix.texi:12344
  19381. #, fuzzy, no-wrap
  19382. #| msgid "read-eval-print loop"
  19383. msgid "REPL, read-eval-print loop"
  19384. msgstr "read-eval-print loop"
  19385. #. type: Plain text
  19386. #: guix-git/doc/guix.texi:12350
  19387. msgid "The @command{guix repl} command gives you access to a warm and friendly @dfn{read-eval-print loop} (REPL) (@pxref{Invoking guix repl}). If you're getting into Guix programming---defining your own packages, writing manifests, defining services for Guix System or Guix Home, etc.---you will surely find it convenient to toy with ideas at the REPL."
  19388. msgstr ""
  19389. #. type: Plain text
  19390. #: guix-git/doc/guix.texi:12356
  19391. msgid "If you use Emacs, the most convenient way to do that is with Geiser (@pxref{The Perfect Setup}), but you do not have to use Emacs to enjoy the REPL@. When using @command{guix repl} or @command{guile} in the terminal, we recommend using Readline for completion and Colorized to get colorful output. To do that, you can run:"
  19392. msgstr ""
  19393. #. type: example
  19394. #: guix-git/doc/guix.texi:12359
  19395. #, no-wrap
  19396. msgid "guix install guile guile-readline guile-colorized\n"
  19397. msgstr ""
  19398. #. type: Plain text
  19399. #: guix-git/doc/guix.texi:12364
  19400. msgid "... and then create a @file{.guile} file in your home directory containing this:"
  19401. msgstr ""
  19402. #. type: lisp
  19403. #: guix-git/doc/guix.texi:12367
  19404. #, no-wrap
  19405. msgid ""
  19406. "(use-modules (ice-9 readline) (ice-9 colorized))\n"
  19407. "\n"
  19408. msgstr ""
  19409. #. type: lisp
  19410. #: guix-git/doc/guix.texi:12370
  19411. #, no-wrap
  19412. msgid ""
  19413. "(activate-readline)\n"
  19414. "(activate-colorized)\n"
  19415. msgstr ""
  19416. #. type: Plain text
  19417. #: guix-git/doc/guix.texi:12374
  19418. msgid "The REPL lets you evaluate Scheme code; you type a Scheme expression at the prompt, and the REPL prints what it evaluates to:"
  19419. msgstr ""
  19420. #. type: example
  19421. #: guix-git/doc/guix.texi:12381
  19422. #, no-wrap
  19423. msgid ""
  19424. "$ guix repl\n"
  19425. "scheme@@(guix-user)> (+ 2 3)\n"
  19426. "$1 = 5\n"
  19427. "scheme@@(guix-user)> (string-append \"a\" \"b\")\n"
  19428. "$2 = \"ab\"\n"
  19429. msgstr ""
  19430. #. type: Plain text
  19431. #: guix-git/doc/guix.texi:12392
  19432. msgid "It becomes interesting when you start fiddling with Guix at the REPL. The first thing you'll want to do is to ``import'' the @code{(guix)} module, which gives access to the main part of the programming interface, and perhaps a bunch of useful Guix modules. You could type @code{(use-modules (guix))}, which is valid Scheme code to import a module (@pxref{Using Guile Modules,,, guile, GNU Guile Reference Manual}), but the REPL provides the @code{use} @dfn{command} as a shorthand notation (@pxref{REPL Commands,,, guile, GNU Guile Reference Manual}):"
  19433. msgstr ""
  19434. #. type: example
  19435. #: guix-git/doc/guix.texi:12396
  19436. #, no-wrap
  19437. msgid ""
  19438. "scheme@@(guix-user)> ,use (guix)\n"
  19439. "scheme@@(guix-user)> ,use (gnu packages base)\n"
  19440. msgstr ""
  19441. #. type: Plain text
  19442. #: guix-git/doc/guix.texi:12401
  19443. msgid "Notice that REPL commands are introduced by a leading comma. A REPL command like @code{use} is not valid Scheme code; it's interpreted specially by the REPL."
  19444. msgstr ""
  19445. #. type: Plain text
  19446. #: guix-git/doc/guix.texi:12410
  19447. msgid "Guix extends the Guile REPL with additional commands for convenience. Among those, the @code{build} command comes in handy: it ensures that the given file-like object is built, building it if needed, and returns its output file name(s). In the example below, we build the @code{coreutils} and @code{grep} packages, as well as a ``computed file'' (@pxref{G-Expressions, @code{computed-file}}), and we use the @code{scandir} procedure to list the files in Grep's @code{/bin} directory:"
  19448. msgstr ""
  19449. #. type: example
  19450. #: guix-git/doc/guix.texi:12423
  19451. #, no-wrap
  19452. msgid ""
  19453. "scheme@@(guix-user)> ,build coreutils\n"
  19454. "$1 = \"/gnu/store/@dots{}-coreutils-8.32-debug\"\n"
  19455. "$2 = \"/gnu/store/@dots{}-coreutils-8.32\"\n"
  19456. "scheme@@(guix-user)> ,build grep\n"
  19457. "$3 = \"/gnu/store/@dots{}-grep-3.6\"\n"
  19458. "scheme@@(guix-user)> ,build (computed-file \"x\" #~(mkdir #$output))\n"
  19459. "building /gnu/store/@dots{}-x.drv...\n"
  19460. "$4 = \"/gnu/store/@dots{}-x\"\n"
  19461. "scheme@@(guix-user)> ,use(ice-9 ftw)\n"
  19462. "scheme@@(guix-user)> (scandir (string-append $3 \"/bin\"))\n"
  19463. "$5 = (\".\" \"..\" \"egrep\" \"fgrep\" \"grep\")\n"
  19464. msgstr ""
  19465. #. type: Plain text
  19466. #: guix-git/doc/guix.texi:12428
  19467. msgid "At a lower-level, a useful command is @code{lower}: it takes a file-like object and ``lowers'' it into a derivation (@pxref{Derivations}) or a store file:"
  19468. msgstr ""
  19469. #. type: example
  19470. #: guix-git/doc/guix.texi:12434
  19471. #, no-wrap
  19472. msgid ""
  19473. "scheme@@(guix-user)> ,lower grep\n"
  19474. "$6 = #<derivation /gnu/store/@dots{}-grep-3.6.drv => /gnu/store/@dots{}-grep-3.6 7f0e639115f0>\n"
  19475. "scheme@@(guix-user)> ,lower (plain-file \"x\" \"Hello!\")\n"
  19476. "$7 = \"/gnu/store/@dots{}-x\"\n"
  19477. msgstr ""
  19478. #. type: Plain text
  19479. #: guix-git/doc/guix.texi:12438
  19480. msgid "The full list of REPL commands can be seen by typing @code{,help guix} and is given below for reference."
  19481. msgstr ""
  19482. #. type: deffn
  19483. #: guix-git/doc/guix.texi:12439
  19484. #, no-wrap
  19485. msgid "{REPL command} build @var{object}"
  19486. msgstr ""
  19487. #. type: deffn
  19488. #: guix-git/doc/guix.texi:12442
  19489. msgid "Lower @var{object} and build it if it's not already built, returning its output file name(s)."
  19490. msgstr ""
  19491. #. type: deffn
  19492. #: guix-git/doc/guix.texi:12444
  19493. #, no-wrap
  19494. msgid "{REPL command} lower @var{object}"
  19495. msgstr ""
  19496. #. type: deffn
  19497. #: guix-git/doc/guix.texi:12446
  19498. msgid "Lower @var{object} into a derivation or store file name and return it."
  19499. msgstr ""
  19500. #. type: deffn
  19501. #: guix-git/doc/guix.texi:12448
  19502. #, no-wrap
  19503. msgid "{REPL command} verbosity @var{level}"
  19504. msgstr ""
  19505. #. type: deffn
  19506. #: guix-git/doc/guix.texi:12450
  19507. msgid "Change build verbosity to @var{level}."
  19508. msgstr ""
  19509. #. type: deffn
  19510. #: guix-git/doc/guix.texi:12454
  19511. msgid "This is similar to the @option{--verbosity} command-line option (@pxref{Common Build Options}): level 0 means total silence, level 1 shows build events only, and higher levels print build logs."
  19512. msgstr ""
  19513. #. type: deffn
  19514. #: guix-git/doc/guix.texi:12456
  19515. #, no-wrap
  19516. msgid "{REPL command} run-in-store @var{exp}"
  19517. msgstr ""
  19518. #. type: deffn
  19519. #: guix-git/doc/guix.texi:12459
  19520. msgid "Run @var{exp}, a monadic expresssion, through the store monad. @xref{The Store Monad}, for more information."
  19521. msgstr ""
  19522. #. type: deffn
  19523. #: guix-git/doc/guix.texi:12461
  19524. #, no-wrap
  19525. msgid "{REPL command} enter-store-monad"
  19526. msgstr ""
  19527. #. type: deffn
  19528. #: guix-git/doc/guix.texi:12464
  19529. msgid "Enter a new REPL to evaluate monadic expressions (@pxref{The Store Monad}). You can quit this ``inner'' REPL by typing @code{,q}."
  19530. msgstr ""
  19531. #. type: Plain text
  19532. #: guix-git/doc/guix.texi:12474
  19533. 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."
  19534. msgstr ""
  19535. #. type: cindex
  19536. #: guix-git/doc/guix.texi:12497
  19537. #, no-wrap
  19538. msgid "package building"
  19539. msgstr ""
  19540. #. type: command{#1}
  19541. #: guix-git/doc/guix.texi:12498
  19542. #, no-wrap
  19543. msgid "guix build"
  19544. msgstr ""
  19545. #. type: Plain text
  19546. #: guix-git/doc/guix.texi:12504
  19547. 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."
  19548. msgstr ""
  19549. #. type: example
  19550. #: guix-git/doc/guix.texi:12509
  19551. #, no-wrap
  19552. msgid "guix build @var{options} @var{package-or-derivation}@dots{}\n"
  19553. msgstr ""
  19554. #. type: Plain text
  19555. #: guix-git/doc/guix.texi:12514
  19556. 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:"
  19557. msgstr ""
  19558. #. type: example
  19559. #: guix-git/doc/guix.texi:12517
  19560. #, no-wrap
  19561. msgid "guix build emacs guile\n"
  19562. msgstr ""
  19563. #. type: Plain text
  19564. #: guix-git/doc/guix.texi:12520
  19565. msgid "Similarly, the following command builds all the available packages:"
  19566. msgstr ""
  19567. #. type: example
  19568. #: guix-git/doc/guix.texi:12524
  19569. #, no-wrap
  19570. msgid ""
  19571. "guix build --quiet --keep-going \\\n"
  19572. " $(guix package -A | awk '@{ print $1 \"@@\" $2 @}')\n"
  19573. msgstr ""
  19574. #. type: Plain text
  19575. #: guix-git/doc/guix.texi:12532
  19576. 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})."
  19577. msgstr ""
  19578. #. type: Plain text
  19579. #: guix-git/doc/guix.texi:12537
  19580. 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."
  19581. msgstr ""
  19582. #. type: Plain text
  19583. #: guix-git/doc/guix.texi:12540
  19584. msgid "There may be zero or more @var{options}. The available options are described in the subsections below."
  19585. msgstr ""
  19586. #. type: Plain text
  19587. #: guix-git/doc/guix.texi:12555
  19588. 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:"
  19589. msgstr ""
  19590. #. type: table
  19591. #: guix-git/doc/guix.texi:12565 guix-git/doc/guix.texi:14611
  19592. #: guix-git/doc/guix.texi:15011 guix-git/doc/guix.texi:15156
  19593. #: guix-git/doc/guix.texi:15424
  19594. msgid "This allows users to define their own packages and make them visible to the command-line tools."
  19595. msgstr ""
  19596. #. type: item
  19597. #: guix-git/doc/guix.texi:12566
  19598. #, no-wrap
  19599. msgid "--keep-failed"
  19600. msgstr ""
  19601. #. type: itemx
  19602. #: guix-git/doc/guix.texi:12567
  19603. #, no-wrap
  19604. msgid "-K"
  19605. msgstr ""
  19606. #. type: table
  19607. #: guix-git/doc/guix.texi:12573
  19608. 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."
  19609. msgstr ""
  19610. #. type: table
  19611. #: guix-git/doc/guix.texi:12577
  19612. 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})."
  19613. msgstr ""
  19614. #. type: item
  19615. #: guix-git/doc/guix.texi:12578
  19616. #, no-wrap
  19617. msgid "--keep-going"
  19618. msgstr ""
  19619. #. type: itemx
  19620. #: guix-git/doc/guix.texi:12579
  19621. #, no-wrap
  19622. msgid "-k"
  19623. msgstr ""
  19624. #. type: table
  19625. #: guix-git/doc/guix.texi:12582
  19626. msgid "Keep going when some of the derivations fail to build; return only once all the builds have either completed or failed."
  19627. msgstr ""
  19628. #. type: table
  19629. #: guix-git/doc/guix.texi:12585
  19630. msgid "The default behavior is to stop as soon as one of the specified derivations has failed."
  19631. msgstr ""
  19632. #. type: table
  19633. #: guix-git/doc/guix.texi:12589
  19634. msgid "Do not build the derivations."
  19635. msgstr ""
  19636. #. type: anchor{#1}
  19637. #: guix-git/doc/guix.texi:12591
  19638. msgid "fallback-option"
  19639. msgstr ""
  19640. #. type: item
  19641. #: guix-git/doc/guix.texi:12591
  19642. #, no-wrap
  19643. msgid "--fallback"
  19644. msgstr ""
  19645. #. type: table
  19646. #: guix-git/doc/guix.texi:12594
  19647. msgid "When substituting a pre-built binary fails, fall back to building packages locally (@pxref{Substitution Failure})."
  19648. msgstr ""
  19649. #. type: anchor{#1}
  19650. #: guix-git/doc/guix.texi:12600
  19651. msgid "client-substitute-urls"
  19652. msgstr ""
  19653. #. type: table
  19654. #: guix-git/doc/guix.texi:12600
  19655. 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})."
  19656. msgstr ""
  19657. #. type: table
  19658. #: guix-git/doc/guix.texi:12604
  19659. 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})."
  19660. msgstr ""
  19661. #. type: table
  19662. #: guix-git/doc/guix.texi:12607
  19663. msgid "When @var{urls} is the empty string, substitutes are effectively disabled."
  19664. msgstr ""
  19665. #. type: item
  19666. #: guix-git/doc/guix.texi:12613
  19667. #, no-wrap
  19668. msgid "--no-grafts"
  19669. msgstr ""
  19670. #. type: table
  19671. #: guix-git/doc/guix.texi:12617
  19672. 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."
  19673. msgstr ""
  19674. #. type: item
  19675. #: guix-git/doc/guix.texi:12618
  19676. #, no-wrap
  19677. msgid "--rounds=@var{n}"
  19678. msgstr ""
  19679. #. type: table
  19680. #: guix-git/doc/guix.texi:12621
  19681. msgid "Build each derivation @var{n} times in a row, and raise an error if consecutive build results are not bit-for-bit identical."
  19682. msgstr ""
  19683. #. type: table
  19684. #: guix-git/doc/guix.texi:12626
  19685. 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."
  19686. msgstr ""
  19687. #. type: table
  19688. #: guix-git/doc/guix.texi:12642
  19689. msgid "By default, the daemon's setting is honored (@pxref{Invoking guix-daemon, @option{--max-silent-time}})."
  19690. msgstr ""
  19691. #. type: table
  19692. #: guix-git/doc/guix.texi:12649
  19693. msgid "By default, the daemon's setting is honored (@pxref{Invoking guix-daemon, @option{--timeout}})."
  19694. msgstr ""
  19695. #. type: cindex
  19696. #: guix-git/doc/guix.texi:12652
  19697. #, no-wrap
  19698. msgid "verbosity, of the command-line tools"
  19699. msgstr ""
  19700. #. type: cindex
  19701. #: guix-git/doc/guix.texi:12653
  19702. #, no-wrap
  19703. msgid "build logs, verbosity"
  19704. msgstr ""
  19705. #. type: item
  19706. #: guix-git/doc/guix.texi:12654
  19707. #, no-wrap
  19708. msgid "-v @var{level}"
  19709. msgstr ""
  19710. #. type: itemx
  19711. #: guix-git/doc/guix.texi:12655
  19712. #, no-wrap
  19713. msgid "--verbosity=@var{level}"
  19714. msgstr ""
  19715. #. type: table
  19716. #: guix-git/doc/guix.texi:12660
  19717. 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."
  19718. msgstr ""
  19719. #. type: table
  19720. #: guix-git/doc/guix.texi:12665
  19721. 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."
  19722. msgstr ""
  19723. #. type: table
  19724. #: guix-git/doc/guix.texi:12671
  19725. 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."
  19726. msgstr ""
  19727. #. type: item
  19728. #: guix-git/doc/guix.texi:12672
  19729. #, no-wrap
  19730. msgid "--debug=@var{level}"
  19731. msgstr ""
  19732. #. type: table
  19733. #: guix-git/doc/guix.texi:12676
  19734. 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."
  19735. msgstr ""
  19736. #. type: Plain text
  19737. #: guix-git/doc/guix.texi:12683
  19738. 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."
  19739. msgstr ""
  19740. #. type: Plain text
  19741. #: guix-git/doc/guix.texi:12687
  19742. 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."
  19743. msgstr ""
  19744. #. type: defvr
  19745. #: guix-git/doc/guix.texi:12688
  19746. #, no-wrap
  19747. msgid "{Environment Variable} GUIX_BUILD_OPTIONS"
  19748. msgstr ""
  19749. #. type: defvr
  19750. #: guix-git/doc/guix.texi:12693
  19751. 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:"
  19752. msgstr ""
  19753. #. type: example
  19754. #: guix-git/doc/guix.texi:12696
  19755. #, no-wrap
  19756. msgid "$ export GUIX_BUILD_OPTIONS=\"--no-substitutes -c 2 -L /foo/bar\"\n"
  19757. msgstr ""
  19758. #. type: defvr
  19759. #: guix-git/doc/guix.texi:12700
  19760. msgid "These options are parsed independently, and the result is appended to the parsed command-line options."
  19761. msgstr ""
  19762. #. type: cindex
  19763. #: guix-git/doc/guix.texi:12706
  19764. #, no-wrap
  19765. msgid "package variants"
  19766. msgstr ""
  19767. #. type: Plain text
  19768. #: guix-git/doc/guix.texi:12714
  19769. 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})."
  19770. msgstr ""
  19771. #. type: Plain text
  19772. #: guix-git/doc/guix.texi:12718
  19773. 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."
  19774. msgstr ""
  19775. #. type: Plain text
  19776. #: guix-git/doc/guix.texi:12723
  19777. 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)."
  19778. msgstr ""
  19779. #. type: cindex
  19780. #: guix-git/doc/guix.texi:12726
  19781. #, fuzzy, no-wrap
  19782. #| msgid "formatting code"
  19783. msgid "performance, tuning code"
  19784. msgstr "格式化代码"
  19785. #. type: cindex
  19786. #: guix-git/doc/guix.texi:12727
  19787. #, fuzzy, no-wrap
  19788. #| msgid "customization, of packages"
  19789. msgid "optimization, of package code"
  19790. msgstr "定制软件包"
  19791. #. type: cindex
  19792. #: guix-git/doc/guix.texi:12728
  19793. #, fuzzy, no-wrap
  19794. msgid "tuning, of package code"
  19795. msgstr "代码格式化"
  19796. #. type: cindex
  19797. #: guix-git/doc/guix.texi:12729
  19798. #, no-wrap
  19799. msgid "SIMD support"
  19800. msgstr ""
  19801. #. type: cindex
  19802. #: guix-git/doc/guix.texi:12730
  19803. #, fuzzy, no-wrap
  19804. #| msgid "Building packages."
  19805. msgid "tunable packages"
  19806. msgstr "构建软件包。"
  19807. #. type: cindex
  19808. #: guix-git/doc/guix.texi:12731
  19809. #, fuzzy, no-wrap
  19810. #| msgid "package version"
  19811. msgid "package multi-versioning"
  19812. msgstr "软件包版本"
  19813. #. type: item
  19814. #: guix-git/doc/guix.texi:12732
  19815. #, fuzzy, no-wrap
  19816. #| msgid "--rounds=@var{N}"
  19817. msgid "--tune[=@var{cpu}]"
  19818. msgstr "--rounds=@var{N}"
  19819. #. type: table
  19820. #: guix-git/doc/guix.texi:12736
  19821. 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."
  19822. msgstr ""
  19823. #. type: table
  19824. #: guix-git/doc/guix.texi:12742
  19825. 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)})."
  19826. msgstr ""
  19827. #. type: table
  19828. #: guix-git/doc/guix.texi:12749
  19829. 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."
  19830. msgstr ""
  19831. #. type: table
  19832. #: guix-git/doc/guix.texi:12756
  19833. 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:"
  19834. msgstr ""
  19835. #. type: lisp
  19836. #: guix-git/doc/guix.texi:12761
  19837. #, no-wrap
  19838. msgid ""
  19839. "(package\n"
  19840. " (name \"hello-simd\")\n"
  19841. " ;; ...\n"
  19842. "\n"
  19843. msgstr ""
  19844. #. type: lisp
  19845. #: guix-git/doc/guix.texi:12765
  19846. #, no-wrap
  19847. msgid ""
  19848. " ;; This package may benefit from SIMD extensions so\n"
  19849. " ;; mark it as \"tunable\".\n"
  19850. " (properties '((tunable? . #t))))\n"
  19851. msgstr ""
  19852. #. type: table
  19853. #: guix-git/doc/guix.texi:12770
  19854. 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."
  19855. msgstr ""
  19856. #. type: table
  19857. #: guix-git/doc/guix.texi:12776
  19858. 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."
  19859. msgstr ""
  19860. #. type: table
  19861. #: guix-git/doc/guix.texi:12780
  19862. 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}."
  19863. msgstr ""
  19864. #. type: table
  19865. #: guix-git/doc/guix.texi:12786
  19866. 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)})."
  19867. msgstr ""
  19868. #. type: item
  19869. #: guix-git/doc/guix.texi:12787
  19870. #, no-wrap
  19871. msgid "--with-source=@var{source}"
  19872. msgstr ""
  19873. #. type: itemx
  19874. #: guix-git/doc/guix.texi:12788
  19875. #, no-wrap
  19876. msgid "--with-source=@var{package}=@var{source}"
  19877. msgstr ""
  19878. #. type: itemx
  19879. #: guix-git/doc/guix.texi:12789
  19880. #, no-wrap
  19881. msgid "--with-source=@var{package}@@@var{version}=@var{source}"
  19882. msgstr ""
  19883. #. type: table
  19884. #: guix-git/doc/guix.texi:12794
  19885. 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})."
  19886. msgstr ""
  19887. #. type: table
  19888. #: guix-git/doc/guix.texi:12800
  19889. 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}."
  19890. msgstr ""
  19891. #. type: table
  19892. #: guix-git/doc/guix.texi:12803
  19893. 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}."
  19894. msgstr ""
  19895. #. type: table
  19896. #: guix-git/doc/guix.texi:12808
  19897. 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:"
  19898. msgstr ""
  19899. #. type: example
  19900. #: guix-git/doc/guix.texi:12811
  19901. #, no-wrap
  19902. msgid "guix build ed --with-source=mirror://gnu/ed/ed-1.4.tar.gz\n"
  19903. msgstr ""
  19904. #. type: table
  19905. #: guix-git/doc/guix.texi:12816
  19906. msgid "As a developer, @option{--with-source} makes it easy to test release candidates, and even to test their impact on packages that depend on them:"
  19907. msgstr ""
  19908. #. type: example
  19909. #: guix-git/doc/guix.texi:12819
  19910. #, no-wrap
  19911. msgid "guix build elogind --with-source=@dots{}/shepherd-0.9.0rc1.tar.gz\n"
  19912. msgstr ""
  19913. #. type: table
  19914. #: guix-git/doc/guix.texi:12822
  19915. msgid "@dots{} or to build from a checkout in a pristine environment:"
  19916. msgstr ""
  19917. #. type: example
  19918. #: guix-git/doc/guix.texi:12826
  19919. #, no-wrap
  19920. msgid ""
  19921. "$ git clone git://git.sv.gnu.org/guix.git\n"
  19922. "$ guix build guix --with-source=guix@@1.0=./guix\n"
  19923. msgstr ""
  19924. #. type: item
  19925. #: guix-git/doc/guix.texi:12828
  19926. #, no-wrap
  19927. msgid "--with-input=@var{package}=@var{replacement}"
  19928. msgstr ""
  19929. #. type: table
  19930. #: guix-git/doc/guix.texi:12833
  19931. 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}."
  19932. msgstr ""
  19933. #. type: table
  19934. #: guix-git/doc/guix.texi:12837
  19935. 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.2}:"
  19936. msgstr ""
  19937. #. type: example
  19938. #: guix-git/doc/guix.texi:12840
  19939. #, no-wrap
  19940. msgid "guix build --with-input=guile=guile@@2.2 guix\n"
  19941. msgstr ""
  19942. #. type: table
  19943. #: guix-git/doc/guix.texi:12845
  19944. 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.2}."
  19945. msgstr ""
  19946. #. type: table
  19947. #: guix-git/doc/guix.texi:12848
  19948. msgid "This is implemented using the @code{package-input-rewriting/spec} Scheme procedure (@pxref{Defining Packages, @code{package-input-rewriting/spec}})."
  19949. msgstr ""
  19950. #. type: item
  19951. #: guix-git/doc/guix.texi:12849
  19952. #, no-wrap
  19953. msgid "--with-graft=@var{package}=@var{replacement}"
  19954. msgstr ""
  19955. #. type: table
  19956. #: guix-git/doc/guix.texi:12855
  19957. 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."
  19958. msgstr ""
  19959. #. type: table
  19960. #: guix-git/doc/guix.texi:12859
  19961. 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:"
  19962. msgstr ""
  19963. #. type: example
  19964. #: guix-git/doc/guix.texi:12862
  19965. #, no-wrap
  19966. msgid "guix build --with-graft=gnutls=gnutls@@3.5.4 wget\n"
  19967. msgstr ""
  19968. #. type: table
  19969. #: guix-git/doc/guix.texi:12871
  19970. 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!"
  19971. msgstr ""
  19972. #. type: cindex
  19973. #: guix-git/doc/guix.texi:12872 guix-git/doc/guix.texi:44858
  19974. #, no-wrap
  19975. msgid "debugging info, rebuilding"
  19976. msgstr ""
  19977. #. type: item
  19978. #: guix-git/doc/guix.texi:12873
  19979. #, no-wrap
  19980. msgid "--with-debug-info=@var{package}"
  19981. msgstr ""
  19982. #. type: table
  19983. #: guix-git/doc/guix.texi:12878
  19984. 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})."
  19985. msgstr ""
  19986. #. type: table
  19987. #: guix-git/doc/guix.texi:12884
  19988. 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:"
  19989. msgstr ""
  19990. #. type: example
  19991. #: guix-git/doc/guix.texi:12887 guix-git/doc/guix.texi:44889
  19992. #, no-wrap
  19993. msgid "guix install inkscape --with-debug-info=glib\n"
  19994. msgstr ""
  19995. #. type: table
  19996. #: guix-git/doc/guix.texi:12891
  19997. msgid "Only GLib needs to be recompiled so this takes a reasonable amount of time. @xref{Installing Debugging Files}, for more info."
  19998. msgstr ""
  19999. #. type: quotation
  20000. #: guix-git/doc/guix.texi:12897
  20001. 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."
  20002. msgstr ""
  20003. #. type: quotation
  20004. #: guix-git/doc/guix.texi:12901
  20005. 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."
  20006. msgstr ""
  20007. #. type: cindex
  20008. #: guix-git/doc/guix.texi:12903
  20009. #, no-wrap
  20010. msgid "tool chain, changing the build tool chain of a package"
  20011. msgstr ""
  20012. #. type: item
  20013. #: guix-git/doc/guix.texi:12904
  20014. #, no-wrap
  20015. msgid "--with-c-toolchain=@var{package}=@var{toolchain}"
  20016. msgstr ""
  20017. #. type: table
  20018. #: guix-git/doc/guix.texi:12908
  20019. 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++."
  20020. msgstr ""
  20021. #. type: example
  20022. #: guix-git/doc/guix.texi:12915
  20023. #, no-wrap
  20024. msgid ""
  20025. "guix build octave-cli \\\n"
  20026. " --with-c-toolchain=fftw=gcc-toolchain@@10 \\\n"
  20027. " --with-c-toolchain=fftwf=gcc-toolchain@@10\n"
  20028. msgstr ""
  20029. #. type: table
  20030. #: guix-git/doc/guix.texi:12922
  20031. 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}."
  20032. msgstr ""
  20033. #. type: table
  20034. #: guix-git/doc/guix.texi:12926
  20035. 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:"
  20036. msgstr ""
  20037. #. type: example
  20038. #: guix-git/doc/guix.texi:12930
  20039. #, no-wrap
  20040. msgid ""
  20041. "guix build --with-c-toolchain=hwloc=clang-toolchain \\\n"
  20042. " intel-mpi-benchmarks\n"
  20043. msgstr ""
  20044. #. type: quotation
  20045. #: guix-git/doc/guix.texi:12939
  20046. 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."
  20047. msgstr ""
  20048. #. type: item
  20049. #: guix-git/doc/guix.texi:12941
  20050. #, no-wrap
  20051. msgid "--with-git-url=@var{package}=@var{url}"
  20052. msgstr ""
  20053. #. type: cindex
  20054. #: guix-git/doc/guix.texi:12942
  20055. #, no-wrap
  20056. msgid "Git, using the latest commit"
  20057. msgstr ""
  20058. #. type: cindex
  20059. #: guix-git/doc/guix.texi:12943
  20060. #, no-wrap
  20061. msgid "latest commit, building"
  20062. msgstr ""
  20063. #. type: table
  20064. #: guix-git/doc/guix.texi:12947
  20065. 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."
  20066. msgstr ""
  20067. #. type: table
  20068. #: guix-git/doc/guix.texi:12950
  20069. msgid "For example, the following command builds the NumPy Python library against the latest commit of the master branch of Python itself:"
  20070. msgstr ""
  20071. #. type: example
  20072. #: guix-git/doc/guix.texi:12954
  20073. #, no-wrap
  20074. msgid ""
  20075. "guix build python-numpy \\\n"
  20076. " --with-git-url=python=https://github.com/python/cpython\n"
  20077. msgstr ""
  20078. #. type: table
  20079. #: guix-git/doc/guix.texi:12958
  20080. msgid "This option can also be combined with @option{--with-branch} or @option{--with-commit} (see below)."
  20081. msgstr ""
  20082. #. type: cindex
  20083. #: guix-git/doc/guix.texi:12959 guix-git/doc/guix.texi:33075
  20084. #, no-wrap
  20085. msgid "continuous integration"
  20086. msgstr ""
  20087. #. type: table
  20088. #: guix-git/doc/guix.texi:12965
  20089. 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)."
  20090. msgstr ""
  20091. #. type: table
  20092. #: guix-git/doc/guix.texi:12969
  20093. 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."
  20094. msgstr ""
  20095. #. type: item
  20096. #: guix-git/doc/guix.texi:12970
  20097. #, no-wrap
  20098. msgid "--with-branch=@var{package}=@var{branch}"
  20099. msgstr ""
  20100. #. type: table
  20101. #: guix-git/doc/guix.texi:12976
  20102. 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."
  20103. msgstr ""
  20104. #. type: table
  20105. #: guix-git/doc/guix.texi:12981
  20106. 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:"
  20107. msgstr ""
  20108. #. type: example
  20109. #: guix-git/doc/guix.texi:12984
  20110. #, no-wrap
  20111. msgid "guix build --with-branch=guile-sqlite3=master cuirass\n"
  20112. msgstr ""
  20113. #. type: item
  20114. #: guix-git/doc/guix.texi:12986
  20115. #, no-wrap
  20116. msgid "--with-commit=@var{package}=@var{commit}"
  20117. msgstr ""
  20118. #. type: table
  20119. #: guix-git/doc/guix.texi:12991
  20120. 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}."
  20121. msgstr ""
  20122. #. type: item
  20123. #: guix-git/doc/guix.texi:12992
  20124. #, no-wrap
  20125. msgid "--with-patch=@var{package}=@var{file}"
  20126. msgstr ""
  20127. #. type: table
  20128. #: guix-git/doc/guix.texi:12999
  20129. 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})."
  20130. msgstr ""
  20131. #. type: table
  20132. #: guix-git/doc/guix.texi:13002
  20133. msgid "As an example, the command below rebuilds Coreutils with the GNU C Library (glibc) patched with the given patch:"
  20134. msgstr ""
  20135. #. type: example
  20136. #: guix-git/doc/guix.texi:13005
  20137. #, no-wrap
  20138. msgid "guix build coreutils --with-patch=glibc=./glibc-frob.patch\n"
  20139. msgstr ""
  20140. #. type: table
  20141. #: guix-git/doc/guix.texi:13009
  20142. msgid "In this example, glibc itself as well as everything that leads to Coreutils in the dependency graph is rebuilt."
  20143. msgstr ""
  20144. #. type: cindex
  20145. #: guix-git/doc/guix.texi:13010
  20146. #, no-wrap
  20147. msgid "configure flags, changing them"
  20148. msgstr ""
  20149. #. type: item
  20150. #: guix-git/doc/guix.texi:13011
  20151. #, fuzzy, no-wrap
  20152. msgid "--with-configure-flag=@var{package}=@var{flag}"
  20153. msgstr "--log-compression=@var{type}"
  20154. #. type: table
  20155. #: guix-git/doc/guix.texi:13016
  20156. msgid "Append @var{flag} to the configure flags of @var{package}, where @var{package} is a spec such as @code{guile@@3.0} or @code{glibc}. The build system of @var{package} must support the @code{#:configure-flags} argument."
  20157. msgstr ""
  20158. #. type: table
  20159. #: guix-git/doc/guix.texi:13019
  20160. msgid "For example, the command below builds GNU@tie{}Hello with the configure flag @code{--disable-nls}:"
  20161. msgstr ""
  20162. #. type: example
  20163. #: guix-git/doc/guix.texi:13022
  20164. #, no-wrap
  20165. msgid "guix build hello --with-configure-flag=hello=--disable-nls\n"
  20166. msgstr ""
  20167. #. type: table
  20168. #: guix-git/doc/guix.texi:13026
  20169. msgid "The following command passes an extra flag to @command{cmake} as it builds @code{lapack}:"
  20170. msgstr ""
  20171. #. type: example
  20172. #: guix-git/doc/guix.texi:13030
  20173. #, no-wrap
  20174. msgid ""
  20175. "guix build lapack \\\n"
  20176. " --with-configure-flag=lapack=-DBUILD_SHARED_LIBS=OFF\n"
  20177. msgstr ""
  20178. #. type: quotation
  20179. #: guix-git/doc/guix.texi:13037
  20180. msgid "Under the hood, this option works by passing the @samp{#:configure-flags} argument 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."
  20181. msgstr ""
  20182. #. type: cindex
  20183. #: guix-git/doc/guix.texi:13039
  20184. #, fuzzy, no-wrap
  20185. msgid "upstream, latest version"
  20186. msgstr "软件包版本"
  20187. #. type: item
  20188. #: guix-git/doc/guix.texi:13040
  20189. #, fuzzy, no-wrap
  20190. msgid "--with-latest=@var{package}"
  20191. msgstr "--log-compression=@var{type}"
  20192. #. type: itemx
  20193. #: guix-git/doc/guix.texi:13041
  20194. #, fuzzy, no-wrap
  20195. msgid "--with-version=@var{package}=@var{version}"
  20196. msgstr "--log-compression=@var{type}"
  20197. #. type: table
  20198. #: guix-git/doc/guix.texi:13047
  20199. msgid "So you like living on the bleeding edge? The @option{--with-latest} 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})."
  20200. msgstr ""
  20201. #. type: table
  20202. #: guix-git/doc/guix.texi:13051
  20203. 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."
  20204. msgstr ""
  20205. #. type: table
  20206. #: guix-git/doc/guix.texi:13054
  20207. msgid "As an example, the command below builds Guix against the latest version of Guile-JSON:"
  20208. msgstr ""
  20209. #. type: example
  20210. #: guix-git/doc/guix.texi:13057
  20211. #, no-wrap
  20212. msgid "guix build guix --with-latest=guile-json\n"
  20213. msgstr ""
  20214. #. type: table
  20215. #: guix-git/doc/guix.texi:13064
  20216. msgid "The @option{--with-version} works similarly except that it lets you specify that you want precisely @var{version}, assuming that version exists upstream. For example, to spawn a development environment with SciPy built against version 1.22.4 of NumPy (skipping its test suite because hey, we're not gonna wait this long), you would run:"
  20217. msgstr ""
  20218. #. type: example
  20219. #: guix-git/doc/guix.texi:13067
  20220. #, no-wrap
  20221. msgid "guix shell python python-scipy --with-version=python-numpy=1.22.4\n"
  20222. msgstr ""
  20223. #. type: quotation
  20224. #: guix-git/doc/guix.texi:13074
  20225. msgid "Because they depend on source code published at a given point in time on upstream servers, deployments made with @option{--with-latest} and @option{--with-version} may be non-reproducible: source might disappear or be modified in place on the servers."
  20226. msgstr ""
  20227. #. type: quotation
  20228. #: guix-git/doc/guix.texi:13077
  20229. msgid "To deploy old software versions without compromising on reproducibility, @pxref{Invoking guix time-machine, @command{guix time-machine}}."
  20230. msgstr ""
  20231. #. type: table
  20232. #: guix-git/doc/guix.texi:13086
  20233. 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."
  20234. msgstr ""
  20235. #. type: table
  20236. #: guix-git/doc/guix.texi:13091
  20237. msgid "You've been warned! When those limitations are acceptable, 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 with @option{--with-latest} (@pxref{Contributing})."
  20238. msgstr ""
  20239. #. type: cindex
  20240. #: guix-git/doc/guix.texi:13092
  20241. #, fuzzy, no-wrap
  20242. msgid "test suite, skipping"
  20243. msgstr "测试套件"
  20244. #. type: item
  20245. #: guix-git/doc/guix.texi:13093
  20246. #, no-wrap
  20247. msgid "--without-tests=@var{package}"
  20248. msgstr ""
  20249. #. type: table
  20250. #: guix-git/doc/guix.texi:13099
  20251. 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."
  20252. msgstr ""
  20253. #. type: table
  20254. #: guix-git/doc/guix.texi:13103
  20255. 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:"
  20256. msgstr ""
  20257. #. type: example
  20258. #: guix-git/doc/guix.texi:13106
  20259. #, no-wrap
  20260. msgid "guix install --without-tests=python python-notebook\n"
  20261. msgstr ""
  20262. #. type: table
  20263. #: guix-git/doc/guix.texi:13112
  20264. 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."
  20265. msgstr ""
  20266. #. type: table
  20267. #: guix-git/doc/guix.texi:13118
  20268. 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."
  20269. msgstr ""
  20270. #. type: Plain text
  20271. #: guix-git/doc/guix.texi:13125
  20272. 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."
  20273. msgstr ""
  20274. #. type: Plain text
  20275. #: guix-git/doc/guix.texi:13131
  20276. msgid "The command-line options presented below are specific to @command{guix build}."
  20277. msgstr ""
  20278. #. type: item
  20279. #: guix-git/doc/guix.texi:13134
  20280. #, no-wrap
  20281. msgid "--quiet"
  20282. msgstr ""
  20283. #. type: table
  20284. #: guix-git/doc/guix.texi:13139
  20285. 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."
  20286. msgstr ""
  20287. #. type: table
  20288. #: guix-git/doc/guix.texi:13144
  20289. msgid "Build the package, derivation, or other file-like object that the code within @var{file} evaluates to (@pxref{G-Expressions, file-like objects})."
  20290. msgstr ""
  20291. #. type: table
  20292. #: guix-git/doc/guix.texi:13147
  20293. msgid "As an example, @var{file} might contain a package definition like this (@pxref{Defining Packages}):"
  20294. msgstr ""
  20295. #. type: table
  20296. #: guix-git/doc/guix.texi:13156
  20297. 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}:"
  20298. msgstr ""
  20299. #. type: item
  20300. #: guix-git/doc/guix.texi:13161
  20301. #, fuzzy, no-wrap
  20302. msgid "--manifest=@var{manifest}"
  20303. msgstr "--listen=@var{endpoint}"
  20304. #. type: itemx
  20305. #: guix-git/doc/guix.texi:13162
  20306. #, fuzzy, no-wrap
  20307. msgid "-m @var{manifest}"
  20308. msgstr "-c @var{n}"
  20309. #. type: table
  20310. #: guix-git/doc/guix.texi:13165
  20311. msgid "Build all packages listed in the given @var{manifest} (@pxref{profile-manifest, @option{--manifest}})."
  20312. msgstr ""
  20313. #. type: table
  20314. #: guix-git/doc/guix.texi:13169
  20315. msgid "Build the package or derivation @var{expr} evaluates to."
  20316. msgstr ""
  20317. #. type: table
  20318. #: guix-git/doc/guix.texi:13173
  20319. 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."
  20320. msgstr ""
  20321. #. type: table
  20322. #: guix-git/doc/guix.texi:13177
  20323. 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})."
  20324. msgstr ""
  20325. #. type: table
  20326. #: guix-git/doc/guix.texi:13181
  20327. 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}."
  20328. msgstr ""
  20329. #. type: item
  20330. #: guix-git/doc/guix.texi:13182
  20331. #, no-wrap
  20332. msgid "--source"
  20333. msgstr ""
  20334. #. type: itemx
  20335. #: guix-git/doc/guix.texi:13183
  20336. #, no-wrap
  20337. msgid "-S"
  20338. msgstr ""
  20339. #. type: table
  20340. #: guix-git/doc/guix.texi:13186
  20341. msgid "Build the source derivations of the packages, rather than the packages themselves."
  20342. msgstr ""
  20343. #. type: table
  20344. #: guix-git/doc/guix.texi:13190
  20345. 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."
  20346. msgstr ""
  20347. #. type: table
  20348. #: guix-git/doc/guix.texi:13194
  20349. msgid "The returned source tarball is the result of applying any patches and code snippets specified in the package @code{origin} (@pxref{Defining Packages})."
  20350. msgstr ""
  20351. #. type: cindex
  20352. #: guix-git/doc/guix.texi:13195
  20353. #, no-wrap
  20354. msgid "source, verification"
  20355. msgstr ""
  20356. #. type: table
  20357. #: guix-git/doc/guix.texi:13201
  20358. 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."
  20359. msgstr ""
  20360. #. type: table
  20361. #: guix-git/doc/guix.texi:13206
  20362. 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."
  20363. msgstr ""
  20364. #. type: item
  20365. #: guix-git/doc/guix.texi:13207
  20366. #, no-wrap
  20367. msgid "--sources"
  20368. msgstr ""
  20369. #. type: table
  20370. #: guix-git/doc/guix.texi:13214
  20371. 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:"
  20372. msgstr ""
  20373. #. type: item
  20374. #: guix-git/doc/guix.texi:13216 guix-git/doc/guix.texi:15210
  20375. #, no-wrap
  20376. msgid "package"
  20377. msgstr ""
  20378. #. type: table
  20379. #: guix-git/doc/guix.texi:13219
  20380. msgid "This value causes the @option{--sources} option to behave in the same way as the @option{--source} option."
  20381. msgstr ""
  20382. #. type: item
  20383. #: guix-git/doc/guix.texi:13220 guix-git/doc/guix.texi:22654
  20384. #, no-wrap
  20385. msgid "all"
  20386. msgstr ""
  20387. #. type: table
  20388. #: guix-git/doc/guix.texi:13223
  20389. msgid "Build the source derivations of all packages, including any source that might be listed as @code{inputs}. This is the default value."
  20390. msgstr ""
  20391. #. type: example
  20392. #: guix-git/doc/guix.texi:13229
  20393. #, no-wrap
  20394. msgid ""
  20395. "$ guix build --sources tzdata\n"
  20396. "The following derivations will be built:\n"
  20397. " /gnu/store/@dots{}-tzdata2015b.tar.gz.drv\n"
  20398. " /gnu/store/@dots{}-tzcode2015b.tar.gz.drv\n"
  20399. msgstr ""
  20400. #. type: item
  20401. #: guix-git/doc/guix.texi:13231
  20402. #, no-wrap
  20403. msgid "transitive"
  20404. msgstr ""
  20405. #. type: table
  20406. #: guix-git/doc/guix.texi:13235
  20407. 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."
  20408. msgstr ""
  20409. #. type: example
  20410. #: guix-git/doc/guix.texi:13246
  20411. #, no-wrap
  20412. msgid ""
  20413. "$ guix build --sources=transitive tzdata\n"
  20414. "The following derivations will be built:\n"
  20415. " /gnu/store/@dots{}-tzcode2015b.tar.gz.drv\n"
  20416. " /gnu/store/@dots{}-findutils-4.4.2.tar.xz.drv\n"
  20417. " /gnu/store/@dots{}-grep-2.21.tar.xz.drv\n"
  20418. " /gnu/store/@dots{}-coreutils-8.23.tar.xz.drv\n"
  20419. " /gnu/store/@dots{}-make-4.1.tar.xz.drv\n"
  20420. " /gnu/store/@dots{}-bash-4.3.tar.xz.drv\n"
  20421. "@dots{}\n"
  20422. msgstr ""
  20423. #. type: table
  20424. #: guix-git/doc/guix.texi:13256
  20425. 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."
  20426. msgstr ""
  20427. #. type: quotation
  20428. #: guix-git/doc/guix.texi:13261
  20429. 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."
  20430. msgstr ""
  20431. #. type: table
  20432. #: guix-git/doc/guix.texi:13268
  20433. 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."
  20434. msgstr ""
  20435. #. type: quotation
  20436. #: guix-git/doc/guix.texi:13273
  20437. 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."
  20438. msgstr ""
  20439. #. type: table
  20440. #: guix-git/doc/guix.texi:13279
  20441. 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."
  20442. msgstr ""
  20443. #. type: table
  20444. #: guix-git/doc/guix.texi:13283
  20445. 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."
  20446. msgstr ""
  20447. #. type: table
  20448. #: guix-git/doc/guix.texi:13289
  20449. 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})."
  20450. msgstr ""
  20451. #. type: item
  20452. #: guix-git/doc/guix.texi:13290
  20453. #, fuzzy, no-wrap
  20454. msgid "--list-systems"
  20455. msgstr "系统"
  20456. #. type: table
  20457. #: guix-git/doc/guix.texi:13293
  20458. msgid "List all the supported systems, that can be passed as an argument to @option{--system}."
  20459. msgstr ""
  20460. #. type: item
  20461. #: guix-git/doc/guix.texi:13294
  20462. #, no-wrap
  20463. msgid "--list-targets"
  20464. msgstr ""
  20465. #. type: table
  20466. #: guix-git/doc/guix.texi:13297
  20467. msgid "List all the supported targets, that can be passed as an argument to @option{--target}."
  20468. msgstr ""
  20469. #. type: anchor{#1}
  20470. #: guix-git/doc/guix.texi:13299
  20471. msgid "build-check"
  20472. msgstr ""
  20473. #. type: cindex
  20474. #: guix-git/doc/guix.texi:13300
  20475. #, no-wrap
  20476. msgid "determinism, checking"
  20477. msgstr ""
  20478. #. type: cindex
  20479. #: guix-git/doc/guix.texi:13301
  20480. #, no-wrap
  20481. msgid "reproducibility, checking"
  20482. msgstr ""
  20483. #. type: table
  20484. #: guix-git/doc/guix.texi:13305
  20485. 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."
  20486. msgstr ""
  20487. #. type: table
  20488. #: guix-git/doc/guix.texi:13310
  20489. 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."
  20490. msgstr ""
  20491. #. type: item
  20492. #: guix-git/doc/guix.texi:13315
  20493. #, no-wrap
  20494. msgid "--repair"
  20495. msgstr ""
  20496. #. type: cindex
  20497. #: guix-git/doc/guix.texi:13316
  20498. #, no-wrap
  20499. msgid "repairing store items"
  20500. msgstr ""
  20501. #. type: table
  20502. #: guix-git/doc/guix.texi:13320
  20503. msgid "Attempt to repair the specified store items, if they are corrupt, by re-downloading or rebuilding them."
  20504. msgstr ""
  20505. #. type: table
  20506. #: guix-git/doc/guix.texi:13322
  20507. msgid "This operation is not atomic and thus restricted to @code{root}."
  20508. msgstr ""
  20509. #. type: item
  20510. #: guix-git/doc/guix.texi:13323
  20511. #, no-wrap
  20512. msgid "--derivations"
  20513. msgstr ""
  20514. #. type: table
  20515. #: guix-git/doc/guix.texi:13327
  20516. msgid "Return the derivation paths, not the output paths, of the given packages."
  20517. msgstr ""
  20518. #. type: cindex
  20519. #: guix-git/doc/guix.texi:13330
  20520. #, no-wrap
  20521. msgid "GC roots, adding"
  20522. msgstr ""
  20523. #. type: cindex
  20524. #: guix-git/doc/guix.texi:13331
  20525. #, no-wrap
  20526. msgid "garbage collector roots, adding"
  20527. msgstr ""
  20528. #. type: table
  20529. #: guix-git/doc/guix.texi:13334 guix-git/doc/guix.texi:40375
  20530. msgid "Make @var{file} a symlink to the result, and register it as a garbage collector root."
  20531. msgstr ""
  20532. #. type: table
  20533. #: guix-git/doc/guix.texi:13340
  20534. 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."
  20535. msgstr ""
  20536. #. type: item
  20537. #: guix-git/doc/guix.texi:13341
  20538. #, no-wrap
  20539. msgid "--log-file"
  20540. msgstr ""
  20541. #. type: cindex
  20542. #: guix-git/doc/guix.texi:13342
  20543. #, no-wrap
  20544. msgid "build logs, access"
  20545. msgstr ""
  20546. #. type: table
  20547. #: guix-git/doc/guix.texi:13346
  20548. 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."
  20549. msgstr ""
  20550. #. type: table
  20551. #: guix-git/doc/guix.texi:13349
  20552. msgid "This works regardless of how packages or derivations are specified. For instance, the following invocations are equivalent:"
  20553. msgstr ""
  20554. #. type: example
  20555. #: guix-git/doc/guix.texi:13355
  20556. #, no-wrap
  20557. msgid ""
  20558. "guix build --log-file $(guix build -d guile)\n"
  20559. "guix build --log-file $(guix build guile)\n"
  20560. "guix build --log-file guile\n"
  20561. "guix build --log-file -e '(@@ (gnu packages guile) guile-2.0)'\n"
  20562. msgstr ""
  20563. #. type: table
  20564. #: guix-git/doc/guix.texi:13360
  20565. 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})."
  20566. msgstr ""
  20567. #. type: table
  20568. #: guix-git/doc/guix.texi:13363
  20569. msgid "So for instance, imagine you want to see the build log of GDB on @code{aarch64}, but you are actually on an @code{x86_64} machine:"
  20570. msgstr ""
  20571. #. type: example
  20572. #: guix-git/doc/guix.texi:13367
  20573. #, no-wrap
  20574. msgid ""
  20575. "$ guix build --log-file gdb -s aarch64-linux\n"
  20576. "https://@value{SUBSTITUTE-SERVER-1}/log/@dots{}-gdb-7.10\n"
  20577. msgstr ""
  20578. #. type: table
  20579. #: guix-git/doc/guix.texi:13370
  20580. msgid "You can freely access a huge library of build logs!"
  20581. msgstr ""
  20582. #. type: cindex
  20583. #: guix-git/doc/guix.texi:13375
  20584. #, no-wrap
  20585. msgid "build failures, debugging"
  20586. msgstr ""
  20587. #. type: Plain text
  20588. #: guix-git/doc/guix.texi:13381
  20589. 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."
  20590. msgstr ""
  20591. #. type: Plain text
  20592. #: guix-git/doc/guix.texi:13386
  20593. 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}})."
  20594. msgstr ""
  20595. #. type: Plain text
  20596. #: guix-git/doc/guix.texi:13392
  20597. 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:"
  20598. msgstr ""
  20599. #. type: example
  20600. #: guix-git/doc/guix.texi:13399
  20601. #, no-wrap
  20602. msgid ""
  20603. "$ guix build foo -K\n"
  20604. "@dots{} @i{build fails}\n"
  20605. "$ cd /tmp/guix-build-foo.drv-0\n"
  20606. "$ source ./environment-variables\n"
  20607. "$ cd foo-1.2\n"
  20608. msgstr ""
  20609. #. type: Plain text
  20610. #: guix-git/doc/guix.texi:13403
  20611. msgid "Now, you can invoke commands as if you were the daemon (almost) and troubleshoot your build process."
  20612. msgstr ""
  20613. #. type: Plain text
  20614. #: guix-git/doc/guix.texi:13409
  20615. 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})."
  20616. msgstr ""
  20617. #. type: Plain text
  20618. #: guix-git/doc/guix.texi:13412
  20619. 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:"
  20620. msgstr ""
  20621. #. type: example
  20622. #: guix-git/doc/guix.texi:13420
  20623. #, no-wrap
  20624. msgid ""
  20625. "$ guix build -K foo\n"
  20626. "@dots{}\n"
  20627. "$ cd /tmp/guix-build-foo.drv-0\n"
  20628. "$ guix shell --no-grafts -C -D foo strace gdb\n"
  20629. "[env]# source ./environment-variables\n"
  20630. "[env]# cd foo-1.2\n"
  20631. msgstr ""
  20632. #. type: Plain text
  20633. #: guix-git/doc/guix.texi:13429
  20634. 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)."
  20635. msgstr ""
  20636. #. type: Plain text
  20637. #: guix-git/doc/guix.texi:13432
  20638. msgid "To get closer to a container like that used by the build daemon, we can remove @file{/bin/sh}:"
  20639. msgstr ""
  20640. #. type: example
  20641. #: guix-git/doc/guix.texi:13435
  20642. #, no-wrap
  20643. msgid "[env]# rm /bin/sh\n"
  20644. msgstr ""
  20645. #. type: Plain text
  20646. #: guix-git/doc/guix.texi:13439
  20647. msgid "(Don't worry, this is harmless: this is all happening in the throw-away container created by @command{guix shell}.)"
  20648. msgstr ""
  20649. #. type: Plain text
  20650. #: guix-git/doc/guix.texi:13442
  20651. msgid "The @command{strace} command is probably not in the search path, but we can run:"
  20652. msgstr ""
  20653. #. type: example
  20654. #: guix-git/doc/guix.texi:13445
  20655. #, no-wrap
  20656. msgid "[env]# $GUIX_ENVIRONMENT/bin/strace -f -o log make check\n"
  20657. msgstr ""
  20658. #. type: Plain text
  20659. #: guix-git/doc/guix.texi:13450
  20660. 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."
  20661. msgstr ""
  20662. #. type: section
  20663. #: guix-git/doc/guix.texi:13453
  20664. #, no-wrap
  20665. msgid "Invoking @command{guix edit}"
  20666. msgstr ""
  20667. #. type: command{#1}
  20668. #: guix-git/doc/guix.texi:13455
  20669. #, no-wrap
  20670. msgid "guix edit"
  20671. msgstr ""
  20672. #. type: cindex
  20673. #: guix-git/doc/guix.texi:13456
  20674. #, no-wrap
  20675. msgid "package definition, editing"
  20676. msgstr ""
  20677. #. type: Plain text
  20678. #: guix-git/doc/guix.texi:13461
  20679. 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:"
  20680. msgstr ""
  20681. #. type: example
  20682. #: guix-git/doc/guix.texi:13464
  20683. #, no-wrap
  20684. msgid "guix edit gcc@@4.9 vim\n"
  20685. msgstr ""
  20686. #. type: Plain text
  20687. #: guix-git/doc/guix.texi:13470
  20688. 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."
  20689. msgstr ""
  20690. #. type: Plain text
  20691. #: guix-git/doc/guix.texi:13476
  20692. 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."
  20693. msgstr ""
  20694. #. type: Plain text
  20695. #: guix-git/doc/guix.texi:13481
  20696. 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."
  20697. msgstr ""
  20698. #. type: section
  20699. #: guix-git/doc/guix.texi:13483
  20700. #, no-wrap
  20701. msgid "Invoking @command{guix download}"
  20702. msgstr ""
  20703. #. type: command{#1}
  20704. #: guix-git/doc/guix.texi:13485
  20705. #, no-wrap
  20706. msgid "guix download"
  20707. msgstr ""
  20708. #. type: cindex
  20709. #: guix-git/doc/guix.texi:13486
  20710. #, no-wrap
  20711. msgid "downloading package sources"
  20712. msgstr ""
  20713. #. type: Plain text
  20714. #: guix-git/doc/guix.texi:13493
  20715. 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."
  20716. msgstr ""
  20717. #. type: Plain text
  20718. #: guix-git/doc/guix.texi:13500
  20719. 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})."
  20720. msgstr ""
  20721. #. type: Plain text
  20722. #: guix-git/doc/guix.texi:13508
  20723. 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."
  20724. msgstr ""
  20725. #. type: Plain text
  20726. #: guix-git/doc/guix.texi:13513
  20727. 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."
  20728. msgstr ""
  20729. #. type: Plain text
  20730. #: guix-git/doc/guix.texi:13515 guix-git/doc/guix.texi:15528
  20731. msgid "The following options are available:"
  20732. msgstr ""
  20733. #. type: item
  20734. #: guix-git/doc/guix.texi:13517 guix-git/doc/guix.texi:13561
  20735. #, no-wrap
  20736. msgid "--hash=@var{algorithm}"
  20737. msgstr ""
  20738. #. type: itemx
  20739. #: guix-git/doc/guix.texi:13518 guix-git/doc/guix.texi:13562
  20740. #, no-wrap
  20741. msgid "-H @var{algorithm}"
  20742. msgstr ""
  20743. #. type: table
  20744. #: guix-git/doc/guix.texi:13521
  20745. msgid "Compute a hash using the specified @var{algorithm}. @xref{Invoking guix hash}, for more information."
  20746. msgstr ""
  20747. #. type: item
  20748. #: guix-git/doc/guix.texi:13522 guix-git/doc/guix.texi:13571
  20749. #, no-wrap
  20750. msgid "--format=@var{fmt}"
  20751. msgstr ""
  20752. #. type: itemx
  20753. #: guix-git/doc/guix.texi:13523 guix-git/doc/guix.texi:13572
  20754. #, no-wrap
  20755. msgid "-f @var{fmt}"
  20756. msgstr ""
  20757. #. type: table
  20758. #: guix-git/doc/guix.texi:13526
  20759. 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}."
  20760. msgstr ""
  20761. #. type: item
  20762. #: guix-git/doc/guix.texi:13527
  20763. #, no-wrap
  20764. msgid "--no-check-certificate"
  20765. msgstr ""
  20766. #. type: table
  20767. #: guix-git/doc/guix.texi:13529
  20768. msgid "Do not validate the X.509 certificates of HTTPS servers."
  20769. msgstr ""
  20770. #. type: table
  20771. #: guix-git/doc/guix.texi:13533
  20772. 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."
  20773. msgstr ""
  20774. #. type: item
  20775. #: guix-git/doc/guix.texi:13534
  20776. #, no-wrap
  20777. msgid "--output=@var{file}"
  20778. msgstr ""
  20779. #. type: itemx
  20780. #: guix-git/doc/guix.texi:13535
  20781. #, no-wrap
  20782. msgid "-o @var{file}"
  20783. msgstr ""
  20784. #. type: table
  20785. #: guix-git/doc/guix.texi:13538
  20786. msgid "Save the downloaded file to @var{file} instead of adding it to the store."
  20787. msgstr ""
  20788. #. type: section
  20789. #: guix-git/doc/guix.texi:13541
  20790. #, no-wrap
  20791. msgid "Invoking @command{guix hash}"
  20792. msgstr ""
  20793. #. type: command{#1}
  20794. #: guix-git/doc/guix.texi:13543
  20795. #, no-wrap
  20796. msgid "guix hash"
  20797. msgstr ""
  20798. #. type: Plain text
  20799. #: guix-git/doc/guix.texi:13548
  20800. 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})."
  20801. msgstr ""
  20802. #. type: example
  20803. #: guix-git/doc/guix.texi:13553
  20804. #, fuzzy, no-wrap
  20805. msgid "guix hash @var{option} @var{file} ...\n"
  20806. msgstr "guix install emacs-guix\n"
  20807. #. type: Plain text
  20808. #: guix-git/doc/guix.texi:13558
  20809. 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:"
  20810. msgstr ""
  20811. #. type: table
  20812. #: guix-git/doc/guix.texi:13565
  20813. msgid "Compute a hash using the specified @var{algorithm}, @code{sha256} by default."
  20814. msgstr ""
  20815. #. type: table
  20816. #: guix-git/doc/guix.texi:13570
  20817. 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})."
  20818. msgstr ""
  20819. #. type: table
  20820. #: guix-git/doc/guix.texi:13574
  20821. msgid "Write the hash in the format specified by @var{fmt}."
  20822. msgstr ""
  20823. #. type: table
  20824. #: guix-git/doc/guix.texi:13577
  20825. msgid "Supported formats: @code{base64}, @code{nix-base32}, @code{base32}, @code{base16} (@code{hex} and @code{hexadecimal} can be used as well)."
  20826. msgstr ""
  20827. #. type: table
  20828. #: guix-git/doc/guix.texi:13581
  20829. 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."
  20830. msgstr ""
  20831. #. type: table
  20832. #: guix-git/doc/guix.texi:13587
  20833. msgid "The @option{--recursive} option is deprecated in favor of @option{--serializer=nar} (see below); @option{-r} remains accepted as a convenient shorthand."
  20834. msgstr ""
  20835. #. type: item
  20836. #: guix-git/doc/guix.texi:13588
  20837. #, fuzzy, no-wrap
  20838. msgid "--serializer=@var{type}"
  20839. msgstr "--log-compression=@var{type}"
  20840. #. type: itemx
  20841. #: guix-git/doc/guix.texi:13589
  20842. #, fuzzy, no-wrap
  20843. #| msgid "-c @var{n}"
  20844. msgid "-S @var{type}"
  20845. msgstr "-c @var{n}"
  20846. #. type: table
  20847. #: guix-git/doc/guix.texi:13591
  20848. msgid "Compute the hash on @var{file} using @var{type} serialization."
  20849. msgstr ""
  20850. #. type: table
  20851. #: guix-git/doc/guix.texi:13593
  20852. msgid "@var{type} may be one of the following:"
  20853. msgstr ""
  20854. #. type: item
  20855. #: guix-git/doc/guix.texi:13595 guix-git/doc/guix.texi:15887
  20856. #: guix-git/doc/guix.texi:20149 guix-git/doc/guix.texi:22651
  20857. #, no-wrap
  20858. msgid "none"
  20859. msgstr ""
  20860. #. type: table
  20861. #: guix-git/doc/guix.texi:13597
  20862. msgid "This is the default: it computes the hash of a file's contents."
  20863. msgstr ""
  20864. #. type: item
  20865. #: guix-git/doc/guix.texi:13598
  20866. #, no-wrap
  20867. msgid "nar"
  20868. msgstr ""
  20869. #. type: table
  20870. #: guix-git/doc/guix.texi:13608
  20871. 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)."
  20872. msgstr ""
  20873. #. type: item
  20874. #: guix-git/doc/guix.texi:13609
  20875. #, no-wrap
  20876. msgid "git"
  20877. msgstr ""
  20878. #. type: table
  20879. #: guix-git/doc/guix.texi:13612
  20880. msgid "Compute the hash of the file or directory as a Git ``tree'', following the same method as the Git version control system."
  20881. msgstr ""
  20882. #. type: item
  20883. #: guix-git/doc/guix.texi:13614
  20884. #, no-wrap
  20885. msgid "--exclude-vcs"
  20886. msgstr ""
  20887. #. type: itemx
  20888. #: guix-git/doc/guix.texi:13615 guix-git/doc/guix.texi:14986
  20889. #, no-wrap
  20890. msgid "-x"
  20891. msgstr ""
  20892. #. type: table
  20893. #: guix-git/doc/guix.texi:13618
  20894. msgid "When combined with @option{--recursive}, exclude version control system directories (@file{.bzr}, @file{.git}, @file{.hg}, etc.)."
  20895. msgstr ""
  20896. #. type: vindex
  20897. #: guix-git/doc/guix.texi:13619
  20898. #, no-wrap
  20899. msgid "git-fetch"
  20900. msgstr ""
  20901. #. type: table
  20902. #: guix-git/doc/guix.texi:13623
  20903. 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}):"
  20904. msgstr ""
  20905. #. type: example
  20906. #: guix-git/doc/guix.texi:13628
  20907. #, no-wrap
  20908. msgid ""
  20909. "$ git clone http://example.org/foo.git\n"
  20910. "$ cd foo\n"
  20911. "$ guix hash -x --serializer=nar .\n"
  20912. msgstr ""
  20913. #. type: cindex
  20914. #: guix-git/doc/guix.texi:13632 guix-git/doc/guix.texi:13637
  20915. #, no-wrap
  20916. msgid "Invoking @command{guix import}"
  20917. msgstr ""
  20918. #. type: cindex
  20919. #: guix-git/doc/guix.texi:13634
  20920. #, no-wrap
  20921. msgid "importing packages"
  20922. msgstr ""
  20923. #. type: cindex
  20924. #: guix-git/doc/guix.texi:13635
  20925. #, no-wrap
  20926. msgid "package import"
  20927. msgstr ""
  20928. #. type: cindex
  20929. #: guix-git/doc/guix.texi:13636
  20930. #, no-wrap
  20931. msgid "package conversion"
  20932. msgstr ""
  20933. #. type: Plain text
  20934. #: guix-git/doc/guix.texi:13644
  20935. 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})."
  20936. msgstr ""
  20937. #. type: example
  20938. #: guix-git/doc/guix.texi:13649
  20939. #, no-wrap
  20940. msgid "guix import @var{importer} @var{options}@dots{}\n"
  20941. msgstr ""
  20942. #. type: Plain text
  20943. #: guix-git/doc/guix.texi:13654
  20944. 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}."
  20945. msgstr ""
  20946. #. type: Plain text
  20947. #: guix-git/doc/guix.texi:13658
  20948. 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."
  20949. msgstr ""
  20950. #. type: Plain text
  20951. #: guix-git/doc/guix.texi:13660
  20952. msgid "Currently, the available ``importers'' are:"
  20953. msgstr ""
  20954. #. type: item
  20955. #: guix-git/doc/guix.texi:13662 guix-git/doc/guix.texi:14386
  20956. #, no-wrap
  20957. msgid "gnu"
  20958. msgstr ""
  20959. #. type: table
  20960. #: guix-git/doc/guix.texi:13666
  20961. 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."
  20962. msgstr ""
  20963. #. type: table
  20964. #: guix-git/doc/guix.texi:13669
  20965. msgid "Additional information such as the package dependencies and its license needs to be figured out manually."
  20966. msgstr ""
  20967. #. type: table
  20968. #: guix-git/doc/guix.texi:13672
  20969. msgid "For example, the following command returns a package definition for GNU@tie{}Hello:"
  20970. msgstr ""
  20971. #. type: example
  20972. #: guix-git/doc/guix.texi:13675
  20973. #, no-wrap
  20974. msgid "guix import gnu hello\n"
  20975. msgstr ""
  20976. #. type: table
  20977. #: guix-git/doc/guix.texi:13678 guix-git/doc/guix.texi:13929
  20978. #: guix-git/doc/guix.texi:13979 guix-git/doc/guix.texi:14008
  20979. msgid "Specific command-line options are:"
  20980. msgstr ""
  20981. #. type: item
  20982. #: guix-git/doc/guix.texi:13680 guix-git/doc/guix.texi:14584
  20983. #, no-wrap
  20984. msgid "--key-download=@var{policy}"
  20985. msgstr ""
  20986. #. type: table
  20987. #: guix-git/doc/guix.texi:13684
  20988. 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}}."
  20989. msgstr ""
  20990. #. type: item
  20991. #: guix-git/doc/guix.texi:13686 guix-git/doc/guix.texi:13687
  20992. #: guix-git/doc/guix.texi:14410
  20993. #, no-wrap
  20994. msgid "pypi"
  20995. msgstr ""
  20996. #. type: table
  20997. #: guix-git/doc/guix.texi:13694
  20998. 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."
  20999. msgstr ""
  21000. #. type: table
  21001. #: guix-git/doc/guix.texi:13697
  21002. msgid "The command below imports metadata for the latest version of the @code{itsdangerous} Python package:"
  21003. msgstr ""
  21004. #. type: example
  21005. #: guix-git/doc/guix.texi:13700
  21006. #, no-wrap
  21007. msgid "guix import pypi itsdangerous\n"
  21008. msgstr ""
  21009. #. type: table
  21010. #: guix-git/doc/guix.texi:13703 guix-git/doc/guix.texi:13734
  21011. #: guix-git/doc/guix.texi:13812 guix-git/doc/guix.texi:14182
  21012. msgid "You can also ask for a specific version:"
  21013. msgstr ""
  21014. #. type: example
  21015. #: guix-git/doc/guix.texi:13706
  21016. #, no-wrap
  21017. msgid "guix import pypi itsdangerous@@1.1.0\n"
  21018. msgstr ""
  21019. #. type: table
  21020. #: guix-git/doc/guix.texi:13714 guix-git/doc/guix.texi:13745
  21021. #: guix-git/doc/guix.texi:13777 guix-git/doc/guix.texi:13952
  21022. #: guix-git/doc/guix.texi:13993 guix-git/doc/guix.texi:14044
  21023. #: guix-git/doc/guix.texi:14069 guix-git/doc/guix.texi:14094
  21024. #: guix-git/doc/guix.texi:14110 guix-git/doc/guix.texi:14158
  21025. #: guix-git/doc/guix.texi:14194 guix-git/doc/guix.texi:14221
  21026. #: guix-git/doc/guix.texi:45062
  21027. 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."
  21028. msgstr ""
  21029. #. type: item
  21030. #: guix-git/doc/guix.texi:13716 guix-git/doc/guix.texi:13717
  21031. #: guix-git/doc/guix.texi:14412
  21032. #, no-wrap
  21033. msgid "gem"
  21034. msgstr ""
  21035. #. type: table
  21036. #: guix-git/doc/guix.texi:13726
  21037. 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."
  21038. msgstr ""
  21039. #. type: table
  21040. #: guix-git/doc/guix.texi:13728
  21041. msgid "The command below imports metadata for the @code{rails} Ruby package:"
  21042. msgstr ""
  21043. #. type: example
  21044. #: guix-git/doc/guix.texi:13731
  21045. #, no-wrap
  21046. msgid "guix import gem rails\n"
  21047. msgstr ""
  21048. #. type: example
  21049. #: guix-git/doc/guix.texi:13737
  21050. #, no-wrap
  21051. msgid "guix import gem rails@@7.0.4\n"
  21052. msgstr ""
  21053. #. type: cindex
  21054. #: guix-git/doc/guix.texi:13747 guix-git/doc/guix.texi:13748
  21055. #, no-wrap
  21056. msgid "minetest"
  21057. msgstr ""
  21058. #. type: cindex
  21059. #: guix-git/doc/guix.texi:13749
  21060. #, no-wrap
  21061. msgid "ContentDB"
  21062. msgstr ""
  21063. #. type: table
  21064. #: guix-git/doc/guix.texi:13758
  21065. 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."
  21066. msgstr ""
  21067. #. type: table
  21068. #: guix-git/doc/guix.texi:13760
  21069. msgid "The command below imports metadata for the Mesecons mod by Jeija:"
  21070. msgstr ""
  21071. #. type: example
  21072. #: guix-git/doc/guix.texi:13763
  21073. #, no-wrap
  21074. msgid "guix import minetest Jeija/mesecons\n"
  21075. msgstr ""
  21076. #. type: table
  21077. #: guix-git/doc/guix.texi:13766
  21078. msgid "The author name can also be left out:"
  21079. msgstr ""
  21080. #. type: example
  21081. #: guix-git/doc/guix.texi:13769
  21082. #, no-wrap
  21083. msgid "guix import minetest mesecons\n"
  21084. msgstr ""
  21085. #. type: item
  21086. #: guix-git/doc/guix.texi:13779 guix-git/doc/guix.texi:14408
  21087. #, no-wrap
  21088. msgid "cpan"
  21089. msgstr ""
  21090. #. type: cindex
  21091. #: guix-git/doc/guix.texi:13780
  21092. #, no-wrap
  21093. msgid "CPAN"
  21094. msgstr ""
  21095. #. type: table
  21096. #: guix-git/doc/guix.texi:13788
  21097. 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."
  21098. msgstr ""
  21099. #. type: table
  21100. #: guix-git/doc/guix.texi:13791
  21101. msgid "The command command below imports metadata for the Acme::Boolean Perl module:"
  21102. msgstr ""
  21103. #. type: example
  21104. #: guix-git/doc/guix.texi:13794
  21105. #, no-wrap
  21106. msgid "guix import cpan Acme::Boolean\n"
  21107. msgstr ""
  21108. #. type: item
  21109. #: guix-git/doc/guix.texi:13796 guix-git/doc/guix.texi:14404
  21110. #, no-wrap
  21111. msgid "cran"
  21112. msgstr ""
  21113. #. type: cindex
  21114. #: guix-git/doc/guix.texi:13797
  21115. #, no-wrap
  21116. msgid "CRAN"
  21117. msgstr ""
  21118. #. type: cindex
  21119. #: guix-git/doc/guix.texi:13798
  21120. #, no-wrap
  21121. msgid "Bioconductor"
  21122. msgstr ""
  21123. #. type: table
  21124. #: guix-git/doc/guix.texi:13802
  21125. 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}."
  21126. msgstr ""
  21127. #. type: table
  21128. #: guix-git/doc/guix.texi:13804
  21129. msgid "Information is extracted from the @file{DESCRIPTION} file of the package."
  21130. msgstr ""
  21131. #. type: table
  21132. #: guix-git/doc/guix.texi:13806
  21133. msgid "The command command below imports metadata for the Cairo R package:"
  21134. msgstr ""
  21135. #. type: example
  21136. #: guix-git/doc/guix.texi:13809
  21137. #, no-wrap
  21138. msgid "guix import cran Cairo\n"
  21139. msgstr ""
  21140. #. type: example
  21141. #: guix-git/doc/guix.texi:13815
  21142. #, no-wrap
  21143. msgid "guix import cran rasterVis@@0.50.3\n"
  21144. msgstr ""
  21145. #. type: table
  21146. #: guix-git/doc/guix.texi:13820
  21147. 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."
  21148. msgstr ""
  21149. #. type: table
  21150. #: guix-git/doc/guix.texi:13827
  21151. 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}."
  21152. msgstr ""
  21153. #. type: table
  21154. #: guix-git/doc/guix.texi:13831
  21155. msgid "When @option{--prefix=license:} is added, the importer will prefix license atoms with @code{license:}, allowing a prefixed import of @code{(guix licenses)}."
  21156. msgstr ""
  21157. #. type: table
  21158. #: guix-git/doc/guix.texi:13836
  21159. 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."
  21160. msgstr ""
  21161. #. type: table
  21162. #: guix-git/doc/guix.texi:13839
  21163. msgid "Information is extracted from the @file{DESCRIPTION} file contained in the package archive."
  21164. msgstr ""
  21165. #. type: table
  21166. #: guix-git/doc/guix.texi:13841
  21167. msgid "The command below imports metadata for the GenomicRanges R package:"
  21168. msgstr ""
  21169. #. type: example
  21170. #: guix-git/doc/guix.texi:13844
  21171. #, no-wrap
  21172. msgid "guix import cran --archive=bioconductor GenomicRanges\n"
  21173. msgstr ""
  21174. #. type: table
  21175. #: guix-git/doc/guix.texi:13849
  21176. 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:"
  21177. msgstr ""
  21178. #. type: example
  21179. #: guix-git/doc/guix.texi:13852
  21180. #, no-wrap
  21181. msgid "guix import cran --archive=git https://github.com/immunogenomics/harmony\n"
  21182. msgstr ""
  21183. #. type: item
  21184. #: guix-git/doc/guix.texi:13854
  21185. #, no-wrap
  21186. msgid "texlive"
  21187. msgstr ""
  21188. #. type: cindex
  21189. #: guix-git/doc/guix.texi:13855
  21190. #, no-wrap
  21191. msgid "TeX Live"
  21192. msgstr ""
  21193. #. type: cindex
  21194. #: guix-git/doc/guix.texi:13856
  21195. #, no-wrap
  21196. msgid "CTAN"
  21197. msgstr ""
  21198. #. type: table
  21199. #: guix-git/doc/guix.texi:13860
  21200. 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}."
  21201. msgstr ""
  21202. #. type: table
  21203. #: guix-git/doc/guix.texi:13865
  21204. 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."
  21205. msgstr ""
  21206. #. type: table
  21207. #: guix-git/doc/guix.texi:13868
  21208. msgid "The command command below imports metadata for the @code{fontspec} TeX package:"
  21209. msgstr ""
  21210. #. type: example
  21211. #: guix-git/doc/guix.texi:13871
  21212. #, no-wrap
  21213. msgid "guix import texlive fontspec\n"
  21214. msgstr ""
  21215. #. type: cindex
  21216. #: guix-git/doc/guix.texi:13874
  21217. #, no-wrap
  21218. msgid "JSON, import"
  21219. msgstr ""
  21220. #. type: table
  21221. #: guix-git/doc/guix.texi:13877
  21222. msgid "Import package metadata from a local JSON file. Consider the following example package definition in JSON format:"
  21223. msgstr ""
  21224. #. type: example
  21225. #: guix-git/doc/guix.texi:13890
  21226. #, no-wrap
  21227. msgid ""
  21228. "@{\n"
  21229. " \"name\": \"hello\",\n"
  21230. " \"version\": \"2.10\",\n"
  21231. " \"source\": \"mirror://gnu/hello/hello-2.10.tar.gz\",\n"
  21232. " \"build-system\": \"gnu\",\n"
  21233. " \"home-page\": \"https://www.gnu.org/software/hello/\",\n"
  21234. " \"synopsis\": \"Hello, GNU world: An example GNU package\",\n"
  21235. " \"description\": \"GNU Hello prints a greeting.\",\n"
  21236. " \"license\": \"GPL-3.0+\",\n"
  21237. " \"native-inputs\": [\"gettext\"]\n"
  21238. "@}\n"
  21239. msgstr ""
  21240. #. type: table
  21241. #: guix-git/doc/guix.texi:13896
  21242. 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}."
  21243. msgstr ""
  21244. #. type: table
  21245. #: guix-git/doc/guix.texi:13899
  21246. msgid "The importer also supports a more explicit source definition using the common fields for @code{<origin>} records:"
  21247. msgstr ""
  21248. #. type: example
  21249. #: guix-git/doc/guix.texi:13912
  21250. #, no-wrap
  21251. msgid ""
  21252. "@{\n"
  21253. " @dots{}\n"
  21254. " \"source\": @{\n"
  21255. " \"method\": \"url-fetch\",\n"
  21256. " \"uri\": \"mirror://gnu/hello/hello-2.10.tar.gz\",\n"
  21257. " \"sha256\": @{\n"
  21258. " \"base32\": \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"\n"
  21259. " @}\n"
  21260. " @}\n"
  21261. " @dots{}\n"
  21262. "@}\n"
  21263. msgstr ""
  21264. #. type: table
  21265. #: guix-git/doc/guix.texi:13916
  21266. msgid "The command below reads metadata from the JSON file @code{hello.json} and outputs a package expression:"
  21267. msgstr ""
  21268. #. type: example
  21269. #: guix-git/doc/guix.texi:13919
  21270. #, no-wrap
  21271. msgid "guix import json hello.json\n"
  21272. msgstr ""
  21273. #. type: item
  21274. #: guix-git/doc/guix.texi:13921 guix-git/doc/guix.texi:13922
  21275. #: guix-git/doc/guix.texi:14416
  21276. #, no-wrap
  21277. msgid "hackage"
  21278. msgstr ""
  21279. #. type: table
  21280. #: guix-git/doc/guix.texi:13927
  21281. 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."
  21282. msgstr ""
  21283. #. type: item
  21284. #: guix-git/doc/guix.texi:13931
  21285. #, no-wrap
  21286. msgid "--stdin"
  21287. msgstr ""
  21288. #. type: itemx
  21289. #: guix-git/doc/guix.texi:13932
  21290. #, no-wrap
  21291. msgid "-s"
  21292. msgstr ""
  21293. #. type: table
  21294. #: guix-git/doc/guix.texi:13934
  21295. msgid "Read a Cabal file from standard input."
  21296. msgstr ""
  21297. #. type: item
  21298. #: guix-git/doc/guix.texi:13934 guix-git/doc/guix.texi:13981
  21299. #, no-wrap
  21300. msgid "--no-test-dependencies"
  21301. msgstr ""
  21302. #. type: table
  21303. #: guix-git/doc/guix.texi:13937 guix-git/doc/guix.texi:13984
  21304. msgid "Do not include dependencies required only by the test suites."
  21305. msgstr ""
  21306. #. type: item
  21307. #: guix-git/doc/guix.texi:13937
  21308. #, no-wrap
  21309. msgid "--cabal-environment=@var{alist}"
  21310. msgstr ""
  21311. #. type: itemx
  21312. #: guix-git/doc/guix.texi:13938
  21313. #, no-wrap
  21314. msgid "-e @var{alist}"
  21315. msgstr ""
  21316. #. type: table
  21317. #: guix-git/doc/guix.texi:13947
  21318. 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."
  21319. msgstr ""
  21320. #. type: table
  21321. #: guix-git/doc/guix.texi:13957
  21322. 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}:"
  21323. msgstr ""
  21324. #. type: example
  21325. #: guix-git/doc/guix.texi:13960
  21326. #, no-wrap
  21327. msgid "guix import hackage -t -e \"'((\\\"network-uri\\\" . false))\" HTTP\n"
  21328. msgstr ""
  21329. #. type: table
  21330. #: guix-git/doc/guix.texi:13964
  21331. 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:"
  21332. msgstr ""
  21333. #. type: example
  21334. #: guix-git/doc/guix.texi:13967
  21335. #, no-wrap
  21336. msgid "guix import hackage mtl@@2.1.3.1\n"
  21337. msgstr ""
  21338. #. type: item
  21339. #: guix-git/doc/guix.texi:13969 guix-git/doc/guix.texi:13970
  21340. #: guix-git/doc/guix.texi:14418
  21341. #, no-wrap
  21342. msgid "stackage"
  21343. msgstr ""
  21344. #. type: table
  21345. #: guix-git/doc/guix.texi:13977
  21346. 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."
  21347. msgstr ""
  21348. #. type: item
  21349. #: guix-git/doc/guix.texi:13984
  21350. #, no-wrap
  21351. msgid "--lts-version=@var{version}"
  21352. msgstr ""
  21353. #. type: itemx
  21354. #: guix-git/doc/guix.texi:13985
  21355. #, no-wrap
  21356. msgid "-l @var{version}"
  21357. msgstr ""
  21358. #. type: table
  21359. #: guix-git/doc/guix.texi:13988
  21360. msgid "@var{version} is the desired LTS release version. If omitted the latest release is used."
  21361. msgstr ""
  21362. #. type: table
  21363. #: guix-git/doc/guix.texi:13997
  21364. msgid "The command below imports metadata for the HTTP Haskell package included in the LTS Stackage release version 7.18:"
  21365. msgstr ""
  21366. #. type: example
  21367. #: guix-git/doc/guix.texi:14000
  21368. #, no-wrap
  21369. msgid "guix import stackage --lts-version=7.18 HTTP\n"
  21370. msgstr ""
  21371. #. type: item
  21372. #: guix-git/doc/guix.texi:14002 guix-git/doc/guix.texi:14003
  21373. #: guix-git/doc/guix.texi:14402
  21374. #, no-wrap
  21375. msgid "elpa"
  21376. msgstr ""
  21377. #. type: table
  21378. #: guix-git/doc/guix.texi:14006
  21379. msgid "Import metadata from an Emacs Lisp Package Archive (ELPA) package repository (@pxref{Packages,,, emacs, The GNU Emacs Manual})."
  21380. msgstr ""
  21381. #. type: item
  21382. #: guix-git/doc/guix.texi:14010
  21383. #, no-wrap
  21384. msgid "--archive=@var{repo}"
  21385. msgstr ""
  21386. #. type: itemx
  21387. #: guix-git/doc/guix.texi:14011
  21388. #, no-wrap
  21389. msgid "-a @var{repo}"
  21390. msgstr ""
  21391. #. type: table
  21392. #: guix-git/doc/guix.texi:14015
  21393. msgid "@var{repo} identifies the archive repository from which to retrieve the information. Currently the supported repositories and their identifiers are:"
  21394. msgstr ""
  21395. #. type: itemize
  21396. #: guix-git/doc/guix.texi:14019
  21397. msgid "@uref{https://elpa.gnu.org/packages, GNU}, selected by the @code{gnu} identifier. This is the default."
  21398. msgstr ""
  21399. #. type: itemize
  21400. #: guix-git/doc/guix.texi:14025
  21401. 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})."
  21402. msgstr ""
  21403. #. type: itemize
  21404. #: guix-git/doc/guix.texi:14029
  21405. msgid "@uref{https://elpa.nongnu.org/nongnu/, NonGNU}, selected by the @code{nongnu} identifier."
  21406. msgstr ""
  21407. #. type: itemize
  21408. #: guix-git/doc/guix.texi:14033
  21409. msgid "@uref{https://stable.melpa.org/packages, MELPA-Stable}, selected by the @code{melpa-stable} identifier."
  21410. msgstr ""
  21411. #. type: itemize
  21412. #: guix-git/doc/guix.texi:14037
  21413. msgid "@uref{https://melpa.org/packages, MELPA}, selected by the @code{melpa} identifier."
  21414. msgstr ""
  21415. #. type: item
  21416. #: guix-git/doc/guix.texi:14046 guix-git/doc/guix.texi:14047
  21417. #: guix-git/doc/guix.texi:14420
  21418. #, no-wrap
  21419. msgid "crate"
  21420. msgstr ""
  21421. #. type: table
  21422. #: guix-git/doc/guix.texi:14050
  21423. msgid "Import metadata from the crates.io Rust package repository @uref{https://crates.io, crates.io}, as in this example:"
  21424. msgstr ""
  21425. #. type: example
  21426. #: guix-git/doc/guix.texi:14053
  21427. #, no-wrap
  21428. msgid "guix import crate blake2-rfc\n"
  21429. msgstr ""
  21430. #. type: table
  21431. #: guix-git/doc/guix.texi:14056
  21432. msgid "The crate importer also allows you to specify a version string:"
  21433. msgstr ""
  21434. #. type: example
  21435. #: guix-git/doc/guix.texi:14059
  21436. #, no-wrap
  21437. msgid "guix import crate constant-time-eq@@0.1.0\n"
  21438. msgstr ""
  21439. #. type: Plain text
  21440. #: guix-git/doc/guix.texi:14062 guix-git/doc/guix.texi:14087
  21441. #: guix-git/doc/guix.texi:14103 guix-git/doc/guix.texi:14151
  21442. #: guix-git/doc/guix.texi:14188 guix-git/doc/guix.texi:14214
  21443. #: guix-git/doc/guix.texi:45055
  21444. #, fuzzy
  21445. msgid "Additional options include:"
  21446. msgstr "额外的构建选项"
  21447. #. type: cindex
  21448. #: guix-git/doc/guix.texi:14071 guix-git/doc/guix.texi:14072
  21449. #, no-wrap
  21450. msgid "elm"
  21451. msgstr ""
  21452. #. type: table
  21453. #: guix-git/doc/guix.texi:14075
  21454. msgid "Import metadata from the Elm package repository @uref{https://package.elm-lang.org, package.elm-lang.org}, as in this example:"
  21455. msgstr ""
  21456. #. type: example
  21457. #: guix-git/doc/guix.texi:14078
  21458. #, no-wrap
  21459. msgid "guix import elm elm-explorations/webgl\n"
  21460. msgstr ""
  21461. #. type: table
  21462. #: guix-git/doc/guix.texi:14081
  21463. msgid "The Elm importer also allows you to specify a version string:"
  21464. msgstr ""
  21465. #. type: example
  21466. #: guix-git/doc/guix.texi:14084
  21467. #, no-wrap
  21468. msgid "guix import elm elm-explorations/webgl@@1.1.3\n"
  21469. msgstr ""
  21470. #. type: item
  21471. #: guix-git/doc/guix.texi:14096
  21472. #, no-wrap
  21473. msgid "opam"
  21474. msgstr ""
  21475. #. type: cindex
  21476. #: guix-git/doc/guix.texi:14097
  21477. #, no-wrap
  21478. msgid "OPAM"
  21479. msgstr ""
  21480. #. type: cindex
  21481. #: guix-git/doc/guix.texi:14098
  21482. #, no-wrap
  21483. msgid "OCaml"
  21484. msgstr ""
  21485. #. type: table
  21486. #: guix-git/doc/guix.texi:14101
  21487. msgid "Import metadata from the @uref{https://opam.ocaml.org/, OPAM} package repository used by the OCaml community."
  21488. msgstr ""
  21489. #. type: item
  21490. #: guix-git/doc/guix.texi:14110
  21491. #, no-wrap
  21492. msgid "--repo"
  21493. msgstr ""
  21494. #. type: table
  21495. #: guix-git/doc/guix.texi:14114
  21496. 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:"
  21497. msgstr ""
  21498. #. type: item
  21499. #: guix-git/doc/guix.texi:14116
  21500. #, no-wrap
  21501. msgid "the name of a known repository - can be one of @code{opam},"
  21502. msgstr ""
  21503. #. type: itemize
  21504. #: guix-git/doc/guix.texi:14119
  21505. msgid "@code{coq} (equivalent to @code{coq-released}), @code{coq-core-dev}, @code{coq-extra-dev} or @code{grew}."
  21506. msgstr ""
  21507. #. type: item
  21508. #: guix-git/doc/guix.texi:14119
  21509. #, no-wrap
  21510. msgid "the URL of a repository as expected by the"
  21511. msgstr ""
  21512. #. type: itemize
  21513. #: guix-git/doc/guix.texi:14123
  21514. msgid "@code{opam repository add} command (for instance, the URL equivalent of the above @code{opam} name would be @uref{https://opam.ocaml.org})."
  21515. msgstr ""
  21516. #. type: item
  21517. #: guix-git/doc/guix.texi:14123
  21518. #, no-wrap
  21519. msgid "the path to a local copy of a repository (a directory containing a"
  21520. msgstr ""
  21521. #. type: itemize
  21522. #: guix-git/doc/guix.texi:14125
  21523. #, fuzzy
  21524. msgid "@file{packages/} sub-directory)."
  21525. msgstr "软件包模块"
  21526. #. type: table
  21527. #: guix-git/doc/guix.texi:14130
  21528. 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."
  21529. msgstr ""
  21530. #. type: table
  21531. #: guix-git/doc/guix.texi:14135
  21532. 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}."
  21533. msgstr ""
  21534. #. type: cindex
  21535. #: guix-git/doc/guix.texi:14138 guix-git/doc/guix.texi:14139
  21536. #, no-wrap
  21537. msgid "go"
  21538. msgstr ""
  21539. #. type: table
  21540. #: guix-git/doc/guix.texi:14142
  21541. msgid "Import metadata for a Go module using @uref{https://proxy.golang.org, proxy.golang.org}."
  21542. msgstr ""
  21543. #. type: example
  21544. #: guix-git/doc/guix.texi:14145
  21545. #, no-wrap
  21546. msgid "guix import go gopkg.in/yaml.v2\n"
  21547. msgstr ""
  21548. #. type: table
  21549. #: guix-git/doc/guix.texi:14149
  21550. msgid "It is possible to use a package specification with a @code{@@VERSION} suffix to import a specific version."
  21551. msgstr ""
  21552. #. type: item
  21553. #: guix-git/doc/guix.texi:14158
  21554. #, no-wrap
  21555. msgid "--pin-versions"
  21556. msgstr ""
  21557. #. type: table
  21558. #: guix-git/doc/guix.texi:14166
  21559. 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."
  21560. msgstr ""
  21561. #. type: item
  21562. #: guix-git/doc/guix.texi:14168 guix-git/doc/guix.texi:14169
  21563. #: guix-git/doc/guix.texi:14400
  21564. #, no-wrap
  21565. msgid "egg"
  21566. msgstr ""
  21567. #. type: table
  21568. #: guix-git/doc/guix.texi:14176
  21569. 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)."
  21570. msgstr ""
  21571. #. type: example
  21572. #: guix-git/doc/guix.texi:14179
  21573. #, no-wrap
  21574. msgid "guix import egg sourcehut\n"
  21575. msgstr ""
  21576. #. type: example
  21577. #: guix-git/doc/guix.texi:14185
  21578. #, no-wrap
  21579. msgid "guix import egg arrays@@1.0\n"
  21580. msgstr ""
  21581. #. type: cindex
  21582. #: guix-git/doc/guix.texi:14196 guix-git/doc/guix.texi:14197
  21583. #, no-wrap
  21584. msgid "hexpm"
  21585. msgstr ""
  21586. #. type: table
  21587. #: guix-git/doc/guix.texi:14200
  21588. msgid "Import metadata from the hex.pm Erlang and Elixir package repository @uref{https://hex.pm, hex.pm}, as in this example:"
  21589. msgstr ""
  21590. #. type: example
  21591. #: guix-git/doc/guix.texi:14203
  21592. #, no-wrap
  21593. msgid "guix import hexpm stun\n"
  21594. msgstr ""
  21595. #. type: table
  21596. #: guix-git/doc/guix.texi:14206
  21597. msgid "The importer tries to determine the build system used by the package."
  21598. msgstr ""
  21599. #. type: table
  21600. #: guix-git/doc/guix.texi:14208
  21601. msgid "The hexpm importer also allows you to specify a version string:"
  21602. msgstr ""
  21603. #. type: example
  21604. #: guix-git/doc/guix.texi:14211
  21605. #, no-wrap
  21606. msgid "guix import hexpm cf@@0.3.0\n"
  21607. msgstr ""
  21608. #. type: Plain text
  21609. #: guix-git/doc/guix.texi:14227
  21610. 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})."
  21611. msgstr ""
  21612. #. type: section
  21613. #: guix-git/doc/guix.texi:14229
  21614. #, no-wrap
  21615. msgid "Invoking @command{guix refresh}"
  21616. msgstr ""
  21617. #. type: command{#1}
  21618. #: guix-git/doc/guix.texi:14231
  21619. #, no-wrap
  21620. msgid "guix refresh"
  21621. msgstr ""
  21622. #. type: Plain text
  21623. #: guix-git/doc/guix.texi:14239
  21624. 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:"
  21625. msgstr ""
  21626. #. type: example
  21627. #: guix-git/doc/guix.texi:14244
  21628. #, no-wrap
  21629. msgid ""
  21630. "$ guix refresh\n"
  21631. "gnu/packages/gettext.scm:29:13: gettext would be upgraded from 0.18.1.1 to 0.18.2.1\n"
  21632. "gnu/packages/glib.scm:77:12: glib would be upgraded from 2.34.3 to 2.37.0\n"
  21633. msgstr ""
  21634. #. type: Plain text
  21635. #: guix-git/doc/guix.texi:14248
  21636. msgid "Alternatively, one can specify packages to consider, in which case a warning is emitted for packages that lack an updater:"
  21637. msgstr ""
  21638. #. type: example
  21639. #: guix-git/doc/guix.texi:14253
  21640. #, no-wrap
  21641. msgid ""
  21642. "$ guix refresh coreutils guile guile-ssh\n"
  21643. "gnu/packages/ssh.scm:205:2: warning: no updater for guile-ssh\n"
  21644. "gnu/packages/guile.scm:136:12: guile would be upgraded from 2.0.12 to 2.0.13\n"
  21645. msgstr ""
  21646. #. type: Plain text
  21647. #: guix-git/doc/guix.texi:14262
  21648. 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!"
  21649. msgstr ""
  21650. #. type: table
  21651. #: guix-git/doc/guix.texi:14267
  21652. msgid "Consider the packages specified, and all the packages upon which they depend."
  21653. msgstr ""
  21654. #. type: example
  21655. #: guix-git/doc/guix.texi:14275
  21656. #, no-wrap
  21657. msgid ""
  21658. "$ guix refresh --recursive coreutils\n"
  21659. "gnu/packages/acl.scm:40:13: acl would be upgraded from 2.2.53 to 2.3.1\n"
  21660. "gnu/packages/m4.scm:30:12: 1.4.18 is already the latest version of m4\n"
  21661. "gnu/packages/xml.scm:68:2: warning: no updater for expat\n"
  21662. "gnu/packages/multiprecision.scm:40:12: 6.1.2 is already the latest version of gmp\n"
  21663. "@dots{}\n"
  21664. msgstr ""
  21665. #. type: Plain text
  21666. #: guix-git/doc/guix.texi:14284
  21667. msgid "If for some reason you don't want to update to the latest version, you can update to a specific version by appending an equal sign and the desired version number to the package specification. Note that not all updaters support this; an error is reported when an updater cannot refresh to the specified version."
  21668. msgstr ""
  21669. #. type: example
  21670. #: guix-git/doc/guix.texi:14296
  21671. #, no-wrap
  21672. msgid ""
  21673. "$ guix refresh trytond-party\n"
  21674. "gnu/packages/guile.scm:392:2: guile would be upgraded from 3.0.3 to 3.0.5\n"
  21675. "$ guix refresh -u guile=3.0.4\n"
  21676. "@dots{}\n"
  21677. "gnu/packages/guile.scm:392:2: guile: updating from version 3.0.3 to version 3.0.4...\n"
  21678. "@dots{}\n"
  21679. "$ guix refresh -u guile@@2.0=2.0.12\n"
  21680. "@dots{}\n"
  21681. "gnu/packages/guile.scm:147:2: guile: updating from version 2.0.10 to version 2.0.12...\n"
  21682. "@dots{}\n"
  21683. msgstr ""
  21684. #. type: Plain text
  21685. #: guix-git/doc/guix.texi:14302
  21686. 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:"
  21687. msgstr ""
  21688. #. type: lisp
  21689. #: guix-git/doc/guix.texi:14309
  21690. #, no-wrap
  21691. msgid ""
  21692. "(define-public network-manager\n"
  21693. " (package\n"
  21694. " (name \"network-manager\")\n"
  21695. " ;; @dots{}\n"
  21696. " (properties '((upstream-name . \"NetworkManager\")))))\n"
  21697. msgstr ""
  21698. #. type: Plain text
  21699. #: guix-git/doc/guix.texi:14318
  21700. 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."
  21701. msgstr ""
  21702. #. type: Plain text
  21703. #: guix-git/doc/guix.texi:14324
  21704. 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."
  21705. msgstr ""
  21706. #. type: Plain text
  21707. #: guix-git/doc/guix.texi:14326
  21708. msgid "The following options are supported:"
  21709. msgstr ""
  21710. #. type: table
  21711. #: guix-git/doc/guix.texi:14334 guix-git/doc/guix.texi:15405
  21712. msgid "This is useful to precisely refer to a package, as in this example:"
  21713. msgstr ""
  21714. #. type: example
  21715. #: guix-git/doc/guix.texi:14337
  21716. #, no-wrap
  21717. msgid "guix refresh -l -e '(@@@@ (gnu packages commencement) glibc-final)'\n"
  21718. msgstr ""
  21719. #. type: table
  21720. #: guix-git/doc/guix.texi:14341
  21721. msgid "This command lists the dependents of the ``final'' libc (essentially all the packages)."
  21722. msgstr ""
  21723. #. type: item
  21724. #: guix-git/doc/guix.texi:14342
  21725. #, no-wrap
  21726. msgid "--update"
  21727. msgstr ""
  21728. #. type: itemx
  21729. #: guix-git/doc/guix.texi:14343
  21730. #, no-wrap
  21731. msgid "-u"
  21732. msgstr ""
  21733. #. type: table
  21734. #: guix-git/doc/guix.texi:14347
  21735. 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}):"
  21736. msgstr ""
  21737. #. type: example
  21738. #: guix-git/doc/guix.texi:14350
  21739. #, no-wrap
  21740. msgid "$ ./pre-inst-env guix refresh -s non-core -u\n"
  21741. msgstr ""
  21742. #. type: table
  21743. #: guix-git/doc/guix.texi:14353
  21744. msgid "@xref{Defining Packages}, for more information on package definitions."
  21745. msgstr ""
  21746. #. type: item
  21747. #: guix-git/doc/guix.texi:14354
  21748. #, no-wrap
  21749. msgid "--select=[@var{subset}]"
  21750. msgstr ""
  21751. #. type: itemx
  21752. #: guix-git/doc/guix.texi:14355
  21753. #, no-wrap
  21754. msgid "-s @var{subset}"
  21755. msgstr ""
  21756. #. type: table
  21757. #: guix-git/doc/guix.texi:14358
  21758. msgid "Select all the packages in @var{subset}, one of @code{core}, @code{non-core} or @code{module:@var{name}}."
  21759. msgstr ""
  21760. #. type: table
  21761. #: guix-git/doc/guix.texi:14365
  21762. 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."
  21763. msgstr ""
  21764. #. type: table
  21765. #: guix-git/doc/guix.texi:14369
  21766. 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."
  21767. msgstr ""
  21768. #. type: table
  21769. #: guix-git/doc/guix.texi:14374
  21770. msgid "The @code{module:@var{name}} subset refers to all the packages in a specified guile module. The module can be specified as @code{module:guile} or @code{module:(gnu packages guile)}, the former is a shorthand for the later."
  21771. msgstr ""
  21772. #. type: table
  21773. #: guix-git/doc/guix.texi:14379
  21774. 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."
  21775. msgstr ""
  21776. #. type: item
  21777. #: guix-git/doc/guix.texi:14380
  21778. #, no-wrap
  21779. msgid "--type=@var{updater}"
  21780. msgstr ""
  21781. #. type: itemx
  21782. #: guix-git/doc/guix.texi:14381
  21783. #, no-wrap
  21784. msgid "-t @var{updater}"
  21785. msgstr ""
  21786. #. type: table
  21787. #: guix-git/doc/guix.texi:14384
  21788. msgid "Select only packages handled by @var{updater} (may be a comma-separated list of updaters). Currently, @var{updater} may be one of:"
  21789. msgstr ""
  21790. #. type: table
  21791. #: guix-git/doc/guix.texi:14388
  21792. msgid "the updater for GNU packages;"
  21793. msgstr ""
  21794. #. type: item
  21795. #: guix-git/doc/guix.texi:14388
  21796. #, no-wrap
  21797. msgid "savannah"
  21798. msgstr ""
  21799. #. type: table
  21800. #: guix-git/doc/guix.texi:14390
  21801. msgid "the updater for packages hosted at @uref{https://savannah.gnu.org, Savannah};"
  21802. msgstr ""
  21803. #. type: item
  21804. #: guix-git/doc/guix.texi:14390
  21805. #, no-wrap
  21806. msgid "sourceforge"
  21807. msgstr ""
  21808. #. type: table
  21809. #: guix-git/doc/guix.texi:14392
  21810. msgid "the updater for packages hosted at @uref{https://sourceforge.net, SourceForge};"
  21811. msgstr ""
  21812. #. type: item
  21813. #: guix-git/doc/guix.texi:14392
  21814. #, no-wrap
  21815. msgid "gnome"
  21816. msgstr ""
  21817. #. type: table
  21818. #: guix-git/doc/guix.texi:14394
  21819. msgid "the updater for GNOME packages;"
  21820. msgstr ""
  21821. #. type: item
  21822. #: guix-git/doc/guix.texi:14394
  21823. #, no-wrap
  21824. msgid "kde"
  21825. msgstr ""
  21826. #. type: table
  21827. #: guix-git/doc/guix.texi:14396
  21828. msgid "the updater for KDE packages;"
  21829. msgstr ""
  21830. #. type: item
  21831. #: guix-git/doc/guix.texi:14396
  21832. #, no-wrap
  21833. msgid "xorg"
  21834. msgstr ""
  21835. #. type: table
  21836. #: guix-git/doc/guix.texi:14398
  21837. msgid "the updater for X.org packages;"
  21838. msgstr ""
  21839. #. type: item
  21840. #: guix-git/doc/guix.texi:14398
  21841. #, no-wrap
  21842. msgid "kernel.org"
  21843. msgstr ""
  21844. #. type: table
  21845. #: guix-git/doc/guix.texi:14400
  21846. msgid "the updater for packages hosted on kernel.org;"
  21847. msgstr ""
  21848. #. type: table
  21849. #: guix-git/doc/guix.texi:14402
  21850. msgid "the updater for @uref{https://wiki.call-cc.org/eggs/, Egg} packages;"
  21851. msgstr ""
  21852. #. type: table
  21853. #: guix-git/doc/guix.texi:14404
  21854. msgid "the updater for @uref{https://elpa.gnu.org/, ELPA} packages;"
  21855. msgstr ""
  21856. #. type: table
  21857. #: guix-git/doc/guix.texi:14406
  21858. msgid "the updater for @uref{https://cran.r-project.org/, CRAN} packages;"
  21859. msgstr ""
  21860. #. type: item
  21861. #: guix-git/doc/guix.texi:14406
  21862. #, no-wrap
  21863. msgid "bioconductor"
  21864. msgstr ""
  21865. #. type: table
  21866. #: guix-git/doc/guix.texi:14408
  21867. msgid "the updater for @uref{https://www.bioconductor.org/, Bioconductor} R packages;"
  21868. msgstr ""
  21869. #. type: table
  21870. #: guix-git/doc/guix.texi:14410
  21871. msgid "the updater for @uref{https://www.cpan.org/, CPAN} packages;"
  21872. msgstr ""
  21873. #. type: table
  21874. #: guix-git/doc/guix.texi:14412
  21875. msgid "the updater for @uref{https://pypi.python.org, PyPI} packages."
  21876. msgstr ""
  21877. #. type: table
  21878. #: guix-git/doc/guix.texi:14414
  21879. msgid "the updater for @uref{https://rubygems.org, RubyGems} packages."
  21880. msgstr ""
  21881. #. type: item
  21882. #: guix-git/doc/guix.texi:14414
  21883. #, no-wrap
  21884. msgid "github"
  21885. msgstr ""
  21886. #. type: table
  21887. #: guix-git/doc/guix.texi:14416
  21888. msgid "the updater for @uref{https://github.com, GitHub} packages."
  21889. msgstr ""
  21890. #. type: table
  21891. #: guix-git/doc/guix.texi:14418
  21892. msgid "the updater for @uref{https://hackage.haskell.org, Hackage} packages."
  21893. msgstr ""
  21894. #. type: table
  21895. #: guix-git/doc/guix.texi:14420
  21896. msgid "the updater for @uref{https://www.stackage.org, Stackage} packages."
  21897. msgstr ""
  21898. #. type: table
  21899. #: guix-git/doc/guix.texi:14422
  21900. msgid "the updater for @uref{https://crates.io, Crates} packages."
  21901. msgstr ""
  21902. #. type: item
  21903. #: guix-git/doc/guix.texi:14422
  21904. #, no-wrap
  21905. msgid "launchpad"
  21906. msgstr ""
  21907. #. type: table
  21908. #: guix-git/doc/guix.texi:14424
  21909. msgid "the updater for @uref{https://launchpad.net, Launchpad} packages."
  21910. msgstr ""
  21911. #. type: item
  21912. #: guix-git/doc/guix.texi:14424
  21913. #, no-wrap
  21914. msgid "generic-html"
  21915. msgstr ""
  21916. #. type: table
  21917. #: guix-git/doc/guix.texi:14428
  21918. msgid "a generic updater that crawls the HTML page where the source tarball of the package is hosted, when applicable, or the HTML page specified by the @code{release-monitoring-url} property of the package."
  21919. msgstr ""
  21920. #. type: item
  21921. #: guix-git/doc/guix.texi:14429
  21922. #, no-wrap
  21923. msgid "generic-git"
  21924. msgstr ""
  21925. #. type: table
  21926. #: guix-git/doc/guix.texi:14434
  21927. 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."
  21928. msgstr ""
  21929. #. type: item
  21930. #: guix-git/doc/guix.texi:14436
  21931. #, no-wrap
  21932. msgid "@code{release-tag-prefix}: a regular expression for matching a prefix of"
  21933. msgstr ""
  21934. #. type: itemize
  21935. #: guix-git/doc/guix.texi:14438 guix-git/doc/guix.texi:14441
  21936. #, fuzzy
  21937. msgid "the tag name."
  21938. msgstr "仓库monad"
  21939. #. type: item
  21940. #: guix-git/doc/guix.texi:14439
  21941. #, no-wrap
  21942. msgid "@code{release-tag-suffix}: a regular expression for matching a suffix of"
  21943. msgstr ""
  21944. #. type: item
  21945. #: guix-git/doc/guix.texi:14442
  21946. #, no-wrap
  21947. msgid "@code{release-tag-version-delimiter}: a string used as the delimiter in"
  21948. msgstr ""
  21949. #. type: itemize
  21950. #: guix-git/doc/guix.texi:14444
  21951. msgid "the tag name for separating the numbers of the version."
  21952. msgstr ""
  21953. #. type: item
  21954. #: guix-git/doc/guix.texi:14445
  21955. #, no-wrap
  21956. msgid "@code{accept-pre-releases}: by default, the updater will ignore"
  21957. msgstr ""
  21958. #. type: itemize
  21959. #: guix-git/doc/guix.texi:14448
  21960. msgid "pre-releases; to make it also look for pre-releases, set the this property to @code{#t}."
  21961. msgstr ""
  21962. #. type: lisp
  21963. #: guix-git/doc/guix.texi:14459
  21964. #, no-wrap
  21965. msgid ""
  21966. "(package\n"
  21967. " (name \"foo\")\n"
  21968. " ;; ...\n"
  21969. " (properties\n"
  21970. " '((release-tag-prefix . \"^release0-\")\n"
  21971. " (release-tag-suffix . \"[a-z]?$\")\n"
  21972. " (release-tag-version-delimiter . \":\"))))\n"
  21973. msgstr ""
  21974. #. type: table
  21975. #: guix-git/doc/guix.texi:14466
  21976. 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:"
  21977. msgstr ""
  21978. #. type: example
  21979. #: guix-git/doc/guix.texi:14471
  21980. #, no-wrap
  21981. msgid ""
  21982. "$ guix refresh --type=elpa,cran\n"
  21983. "gnu/packages/statistics.scm:819:13: r-testthat would be upgraded from 0.10.0 to 0.11.0\n"
  21984. "gnu/packages/emacs.scm:856:13: emacs-auctex would be upgraded from 11.88.6 to 11.88.9\n"
  21985. msgstr ""
  21986. #. type: item
  21987. #: guix-git/doc/guix.texi:14473
  21988. #, no-wrap
  21989. msgid "--list-updaters"
  21990. msgstr ""
  21991. #. type: table
  21992. #: guix-git/doc/guix.texi:14475
  21993. msgid "List available updaters and exit (see @option{--type} above)."
  21994. msgstr ""
  21995. #. type: table
  21996. #: guix-git/doc/guix.texi:14478
  21997. msgid "For each updater, display the fraction of packages it covers; at the end, display the fraction of packages covered by all these updaters."
  21998. msgstr ""
  21999. #. type: Plain text
  22000. #: guix-git/doc/guix.texi:14482
  22001. msgid "In addition, @command{guix refresh} can be passed one or more package names, as in this example:"
  22002. msgstr ""
  22003. #. type: example
  22004. #: guix-git/doc/guix.texi:14485
  22005. #, no-wrap
  22006. msgid "$ ./pre-inst-env guix refresh -u emacs idutils gcc@@4.8\n"
  22007. msgstr ""
  22008. #. type: Plain text
  22009. #: guix-git/doc/guix.texi:14492
  22010. 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:"
  22011. msgstr ""
  22012. #. type: example
  22013. #: guix-git/doc/guix.texi:14496
  22014. #, no-wrap
  22015. msgid ""
  22016. "$ ./pre-inst-env guix refresh -u \\\n"
  22017. " $(guix package --list-installed | cut -f1)\n"
  22018. msgstr ""
  22019. #. type: Plain text
  22020. #: guix-git/doc/guix.texi:14502
  22021. 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:"
  22022. msgstr ""
  22023. #. type: item
  22024. #: guix-git/doc/guix.texi:14505
  22025. #, no-wrap
  22026. msgid "--list-dependent"
  22027. msgstr ""
  22028. #. type: itemx
  22029. #: guix-git/doc/guix.texi:14506 guix-git/doc/guix.texi:14784
  22030. #: guix-git/doc/guix.texi:14976
  22031. #, no-wrap
  22032. msgid "-l"
  22033. msgstr ""
  22034. #. type: table
  22035. #: guix-git/doc/guix.texi:14509
  22036. msgid "List top-level dependent packages that would need to be rebuilt as a result of upgrading one or more packages."
  22037. msgstr ""
  22038. #. type: table
  22039. #: guix-git/doc/guix.texi:14513
  22040. 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."
  22041. msgstr ""
  22042. #. type: Plain text
  22043. #: guix-git/doc/guix.texi:14519
  22044. 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."
  22045. msgstr ""
  22046. #. type: example
  22047. #: guix-git/doc/guix.texi:14524
  22048. #, no-wrap
  22049. msgid ""
  22050. "$ guix refresh --list-dependent flex\n"
  22051. "Building the following 120 packages would ensure 213 dependent packages are rebuilt:\n"
  22052. "hop@@2.4.0 emacs-geiser@@0.13 notmuch@@0.18 mu@@0.9.9.5 cflow@@1.4 idutils@@4.6 @dots{}\n"
  22053. msgstr ""
  22054. #. type: Plain text
  22055. #: guix-git/doc/guix.texi:14528
  22056. msgid "The command above lists a set of packages that could be built to check for compatibility with an upgraded @code{flex} package."
  22057. msgstr ""
  22058. #. type: item
  22059. #: guix-git/doc/guix.texi:14531
  22060. #, no-wrap
  22061. msgid "--list-transitive"
  22062. msgstr ""
  22063. #. type: itemx
  22064. #: guix-git/doc/guix.texi:14532
  22065. #, no-wrap
  22066. msgid "-T"
  22067. msgstr ""
  22068. #. type: table
  22069. #: guix-git/doc/guix.texi:14534
  22070. msgid "List all the packages which one or more packages depend upon."
  22071. msgstr ""
  22072. #. type: example
  22073. #: guix-git/doc/guix.texi:14539
  22074. #, no-wrap
  22075. msgid ""
  22076. "$ guix refresh --list-transitive flex\n"
  22077. "flex@@2.6.4 depends on the following 25 packages: perl@@5.28.0 help2man@@1.47.6\n"
  22078. "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"
  22079. msgstr ""
  22080. #. type: Plain text
  22081. #: guix-git/doc/guix.texi:14545
  22082. msgid "The command above lists a set of packages which, when changed, would cause @code{flex} to be rebuilt."
  22083. msgstr ""
  22084. #. type: Plain text
  22085. #: guix-git/doc/guix.texi:14547
  22086. msgid "The following options can be used to customize GnuPG operation:"
  22087. msgstr ""
  22088. #. type: item
  22089. #: guix-git/doc/guix.texi:14550
  22090. #, no-wrap
  22091. msgid "--gpg=@var{command}"
  22092. msgstr ""
  22093. #. type: table
  22094. #: guix-git/doc/guix.texi:14553
  22095. msgid "Use @var{command} as the GnuPG 2.x command. @var{command} is searched for in @code{$PATH}."
  22096. msgstr ""
  22097. #. type: item
  22098. #: guix-git/doc/guix.texi:14554
  22099. #, no-wrap
  22100. msgid "--keyring=@var{file}"
  22101. msgstr ""
  22102. #. type: table
  22103. #: guix-git/doc/guix.texi:14560
  22104. 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)."
  22105. msgstr ""
  22106. #. type: table
  22107. #: guix-git/doc/guix.texi:14566
  22108. 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)."
  22109. msgstr ""
  22110. #. type: table
  22111. #: guix-git/doc/guix.texi:14569
  22112. msgid "You can export keys from your default GPG keyring into a keybox file using commands like this one:"
  22113. msgstr ""
  22114. #. type: example
  22115. #: guix-git/doc/guix.texi:14572
  22116. #, no-wrap
  22117. msgid "gpg --export rms@@gnu.org | kbxutil --import-openpgp >> mykeyring.kbx\n"
  22118. msgstr ""
  22119. #. type: table
  22120. #: guix-git/doc/guix.texi:14575
  22121. msgid "Likewise, you can fetch keys to a specific keybox file like this:"
  22122. msgstr ""
  22123. #. type: example
  22124. #: guix-git/doc/guix.texi:14579
  22125. #, no-wrap
  22126. msgid ""
  22127. "gpg --no-default-keyring --keyring mykeyring.kbx \\\n"
  22128. " --recv-keys @value{OPENPGP-SIGNING-KEY-ID}\n"
  22129. msgstr ""
  22130. "gpg --no-default-keyring --keyring mykeyring.kbx \\\n"
  22131. " --recv-keys @value{OPENPGP-SIGNING-KEY-ID}\n"
  22132. #. type: table
  22133. #: guix-git/doc/guix.texi:14583
  22134. msgid "@xref{GPG Configuration Options, @option{--keyring},, gnupg, Using the GNU Privacy Guard}, for more information on GPG's @option{--keyring} option."
  22135. msgstr ""
  22136. #. type: table
  22137. #: guix-git/doc/guix.texi:14587
  22138. msgid "Handle missing OpenPGP keys according to @var{policy}, which may be one of:"
  22139. msgstr ""
  22140. #. type: item
  22141. #: guix-git/doc/guix.texi:14589 guix-git/doc/guix.texi:14819
  22142. #: guix-git/doc/guix.texi:25829
  22143. #, no-wrap
  22144. msgid "always"
  22145. msgstr ""
  22146. #. type: table
  22147. #: guix-git/doc/guix.texi:14592
  22148. msgid "Always download missing OpenPGP keys from the key server, and add them to the user's GnuPG keyring."
  22149. msgstr ""
  22150. #. type: item
  22151. #: guix-git/doc/guix.texi:14593 guix-git/doc/guix.texi:25831
  22152. #, no-wrap
  22153. msgid "never"
  22154. msgstr ""
  22155. #. type: table
  22156. #: guix-git/doc/guix.texi:14595
  22157. msgid "Never try to download missing OpenPGP keys. Instead just bail out."
  22158. msgstr ""
  22159. #. type: item
  22160. #: guix-git/doc/guix.texi:14596
  22161. #, no-wrap
  22162. msgid "interactive"
  22163. msgstr ""
  22164. #. type: table
  22165. #: guix-git/doc/guix.texi:14599
  22166. 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."
  22167. msgstr ""
  22168. #. type: item
  22169. #: guix-git/doc/guix.texi:14601
  22170. #, no-wrap
  22171. msgid "--key-server=@var{host}"
  22172. msgstr ""
  22173. #. type: table
  22174. #: guix-git/doc/guix.texi:14603
  22175. msgid "Use @var{host} as the OpenPGP key server when importing a public key."
  22176. msgstr ""
  22177. #. type: Plain text
  22178. #: guix-git/doc/guix.texi:14624
  22179. 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."
  22180. msgstr ""
  22181. #. type: section
  22182. #: guix-git/doc/guix.texi:14627
  22183. #, fuzzy, no-wrap
  22184. #| msgid "Invoking @command{guix build}"
  22185. msgid "Invoking @command{guix style}"
  22186. msgstr "调用@command{guix build}"
  22187. #. type: command{#1}
  22188. #: guix-git/doc/guix.texi:14629
  22189. #, fuzzy, no-wrap
  22190. #| msgid "Invoking guix system"
  22191. msgid "guix style"
  22192. msgstr "调用guix system"
  22193. #. type: cindex
  22194. #: guix-git/doc/guix.texi:14630
  22195. #, fuzzy, no-wrap
  22196. #| msgid "--rounds=@var{N}"
  22197. msgid "styling rules"
  22198. msgstr "--rounds=@var{N}"
  22199. #. type: cindex
  22200. #: guix-git/doc/guix.texi:14631
  22201. #, fuzzy, no-wrap
  22202. #| msgid "coding style"
  22203. msgid "lint, code style"
  22204. msgstr "代码风格"
  22205. #. type: cindex
  22206. #: guix-git/doc/guix.texi:14632
  22207. #, fuzzy, no-wrap
  22208. #| msgid "formatting code"
  22209. msgid "format, code style"
  22210. msgstr "格式化代码"
  22211. #. type: cindex
  22212. #: guix-git/doc/guix.texi:14633
  22213. #, fuzzy, no-wrap
  22214. #| msgid "Writing conventions."
  22215. msgid "format conventions"
  22216. msgstr "书写规范。"
  22217. #. type: Plain text
  22218. #: guix-git/doc/guix.texi:14640
  22219. msgid "The @command{guix style} command helps users and packagers alike style their package definitions and configuration files according to the latest fashionable trends. It can either reformat whole files, with the @option{--whole-file} option, or apply specific @dfn{styling rules} to individual package definitions. The command currently provides the following styling rules:"
  22220. msgstr ""
  22221. #. type: itemize
  22222. #: guix-git/doc/guix.texi:14645
  22223. msgid "formatting package definitions according to the project's conventions (@pxref{Formatting Code});"
  22224. msgstr ""
  22225. #. type: itemize
  22226. #: guix-git/doc/guix.texi:14648
  22227. msgid "rewriting package inputs to the ``new style'', as explained below."
  22228. msgstr ""
  22229. #. type: Plain text
  22230. #: guix-git/doc/guix.texi:14654
  22231. 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:"
  22232. msgstr ""
  22233. #. type: lisp
  22234. #: guix-git/doc/guix.texi:14661
  22235. #, no-wrap
  22236. msgid ""
  22237. "(package\n"
  22238. " ;; @dots{}\n"
  22239. " ;; The \"old style\" (deprecated).\n"
  22240. " (inputs `((\"libunistring\" ,libunistring)\n"
  22241. " (\"libffi\" ,libffi))))\n"
  22242. msgstr ""
  22243. #. type: Plain text
  22244. #: guix-git/doc/guix.texi:14665
  22245. msgid "Today, the old style is deprecated and the preferred style looks like this:"
  22246. msgstr ""
  22247. #. type: lisp
  22248. #: guix-git/doc/guix.texi:14671
  22249. #, no-wrap
  22250. msgid ""
  22251. "(package\n"
  22252. " ;; @dots{}\n"
  22253. " ;; The \"new style\".\n"
  22254. " (inputs (list libunistring libffi)))\n"
  22255. msgstr ""
  22256. #. type: Plain text
  22257. #: guix-git/doc/guix.texi:14676
  22258. 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})."
  22259. msgstr ""
  22260. #. type: Plain text
  22261. #: guix-git/doc/guix.texi:14681
  22262. 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."
  22263. msgstr ""
  22264. #. type: example
  22265. #: guix-git/doc/guix.texi:14686
  22266. #, fuzzy, no-wrap
  22267. msgid "guix style [@var{options}] @var{package}@dots{}\n"
  22268. msgstr "guix install emacs-guix\n"
  22269. #. type: Plain text
  22270. #: guix-git/doc/guix.texi:14693
  22271. 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."
  22272. msgstr ""
  22273. #. type: Plain text
  22274. #: guix-git/doc/guix.texi:14695
  22275. msgid "To reformat entire source files, the syntax is:"
  22276. msgstr ""
  22277. #. type: example
  22278. #: guix-git/doc/guix.texi:14698
  22279. #, fuzzy, no-wrap
  22280. msgid "guix style --whole-file @var{file}@dots{}\n"
  22281. msgstr "guix install emacs-guix\n"
  22282. #. type: Plain text
  22283. #: guix-git/doc/guix.texi:14701 guix-git/doc/guix.texi:16093
  22284. msgid "The available options are listed below."
  22285. msgstr ""
  22286. #. type: table
  22287. #: guix-git/doc/guix.texi:14706
  22288. msgid "Show source file locations that would be edited but do not modify them."
  22289. msgstr ""
  22290. #. type: item
  22291. #: guix-git/doc/guix.texi:14707
  22292. #, no-wrap
  22293. msgid "--whole-file"
  22294. msgstr ""
  22295. #. type: itemx
  22296. #: guix-git/doc/guix.texi:14708
  22297. #, no-wrap
  22298. msgid "-f"
  22299. msgstr ""
  22300. #. type: table
  22301. #: guix-git/doc/guix.texi:14712
  22302. msgid "Reformat the given files in their entirety. In that case, subsequent arguments are interpreted as file names (rather than package names), and the @option{--styling} option has no effect."
  22303. msgstr ""
  22304. #. type: table
  22305. #: guix-git/doc/guix.texi:14715
  22306. msgid "As an example, here is how you might reformat your operating system configuration (you need write permissions for the file):"
  22307. msgstr ""
  22308. #. type: example
  22309. #: guix-git/doc/guix.texi:14718
  22310. #, fuzzy, no-wrap
  22311. msgid "guix style -f /etc/config.scm\n"
  22312. msgstr "guix package --list-available\n"
  22313. #. type: item
  22314. #: guix-git/doc/guix.texi:14720
  22315. #, fuzzy, no-wrap
  22316. #| msgid "--rounds=@var{N}"
  22317. msgid "--styling=@var{rule}"
  22318. msgstr "--rounds=@var{N}"
  22319. #. type: itemx
  22320. #: guix-git/doc/guix.texi:14721
  22321. #, fuzzy, no-wrap
  22322. #| msgid "-c @var{n}"
  22323. msgid "-S @var{rule}"
  22324. msgstr "-c @var{n}"
  22325. #. type: table
  22326. #: guix-git/doc/guix.texi:14723
  22327. #, fuzzy
  22328. #| msgid "Packages are currently available on the following platforms:"
  22329. msgid "Apply @var{rule}, one of the following styling rules:"
  22330. msgstr "目前这些平台提供软件包:"
  22331. #. type: code{#1}
  22332. #: guix-git/doc/guix.texi:14725 guix-git/doc/guix.texi:44300
  22333. #, no-wrap
  22334. msgid "format"
  22335. msgstr ""
  22336. #. type: table
  22337. #: guix-git/doc/guix.texi:14730
  22338. 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:"
  22339. msgstr ""
  22340. #. type: example
  22341. #: guix-git/doc/guix.texi:14733
  22342. #, fuzzy, no-wrap
  22343. msgid "./pre-inst-env guix style coreutils\n"
  22344. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  22345. #. type: item
  22346. #: guix-git/doc/guix.texi:14735
  22347. #, no-wrap
  22348. msgid "inputs"
  22349. msgstr ""
  22350. #. type: table
  22351. #: guix-git/doc/guix.texi:14739
  22352. 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:"
  22353. msgstr ""
  22354. #. type: example
  22355. #: guix-git/doc/guix.texi:14742
  22356. #, no-wrap
  22357. msgid "guix style -L ~/my/channel -S inputs whatnot\n"
  22358. msgstr ""
  22359. #. type: table
  22360. #: guix-git/doc/guix.texi:14748
  22361. 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."
  22362. msgstr ""
  22363. #. type: item
  22364. #: guix-git/doc/guix.texi:14749 guix-git/doc/guix.texi:20036
  22365. #, no-wrap
  22366. msgid "arguments"
  22367. msgstr ""
  22368. #. type: table
  22369. #: guix-git/doc/guix.texi:14752
  22370. msgid "Rewrite package arguments to use G-expressions (@pxref{G-Expressions}). For example, consider this package definition:"
  22371. msgstr ""
  22372. #. type: lisp
  22373. #: guix-git/doc/guix.texi:14761
  22374. #, no-wrap
  22375. msgid ""
  22376. "(define-public my-package\n"
  22377. " (package\n"
  22378. " ;; @dots{}\n"
  22379. " (arguments ;old-style quoted arguments\n"
  22380. " '(#:make-flags '(\"V=1\")\n"
  22381. " #:phases (modify-phases %standard-phases\n"
  22382. " (delete 'build))))))\n"
  22383. msgstr ""
  22384. #. type: table
  22385. #: guix-git/doc/guix.texi:14766
  22386. msgid "Running @command{guix style -S arguments} on this package would rewrite its @code{arguments} field like to:"
  22387. msgstr ""
  22388. #. type: lisp
  22389. #: guix-git/doc/guix.texi:14775
  22390. #, no-wrap
  22391. msgid ""
  22392. "(define-public my-package\n"
  22393. " (package\n"
  22394. " ;; @dots{}\n"
  22395. " (arguments\n"
  22396. " (list #:make-flags #~'(\"V=1\")\n"
  22397. " #:phases #~(modify-phases %standard-phases\n"
  22398. " (delete 'build))))))\n"
  22399. msgstr ""
  22400. #. type: table
  22401. #: guix-git/doc/guix.texi:14781
  22402. msgid "Note that changes made by the @code{arguments} rule do not entail a rebuild of the affected packages. Furthermore, if a package definition happens to be using G-expressions already, @command{guix style} leaves it unchanged."
  22403. msgstr ""
  22404. #. type: item
  22405. #: guix-git/doc/guix.texi:14783
  22406. #, fuzzy, no-wrap
  22407. msgid "--list-stylings"
  22408. msgstr "系统"
  22409. #. type: table
  22410. #: guix-git/doc/guix.texi:14786
  22411. msgid "List and describe the available styling rules and exit."
  22412. msgstr ""
  22413. #. type: table
  22414. #: guix-git/doc/guix.texi:14795
  22415. msgid "Style the package @var{expr} evaluates to."
  22416. msgstr ""
  22417. #. type: example
  22418. #: guix-git/doc/guix.texi:14800
  22419. #, no-wrap
  22420. msgid "guix style -e '(@@ (gnu packages gcc) gcc-5)'\n"
  22421. msgstr ""
  22422. #. type: table
  22423. #: guix-git/doc/guix.texi:14803
  22424. #, fuzzy
  22425. #| msgid "Updating the Guix package definition."
  22426. msgid "styles the @code{gcc-5} package definition."
  22427. msgstr "更新Guix的软件包定义。"
  22428. #. type: item
  22429. #: guix-git/doc/guix.texi:14804
  22430. #, no-wrap
  22431. msgid "--input-simplification=@var{policy}"
  22432. msgstr ""
  22433. #. type: table
  22434. #: guix-git/doc/guix.texi:14809
  22435. 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:"
  22436. msgstr ""
  22437. #. type: item
  22438. #: guix-git/doc/guix.texi:14811
  22439. #, no-wrap
  22440. msgid "silent"
  22441. msgstr ""
  22442. #. type: table
  22443. #: guix-git/doc/guix.texi:14814
  22444. msgid "Simplify inputs only when the change is ``silent'', meaning that the package does not need to be rebuilt (its derivation is unchanged)."
  22445. msgstr ""
  22446. #. type: item
  22447. #: guix-git/doc/guix.texi:14815
  22448. #, no-wrap
  22449. msgid "safe"
  22450. msgstr ""
  22451. #. type: table
  22452. #: guix-git/doc/guix.texi:14818
  22453. 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."
  22454. msgstr ""
  22455. #. type: table
  22456. #: guix-git/doc/guix.texi:14822
  22457. msgid "Simplify inputs even when input labels do not match package names, and even if that might have an observable effect."
  22458. msgstr ""
  22459. #. type: table
  22460. #: guix-git/doc/guix.texi:14826
  22461. msgid "The default is @code{silent}, meaning that input simplifications do not trigger any package rebuild."
  22462. msgstr ""
  22463. #. type: section
  22464. #: guix-git/doc/guix.texi:14829
  22465. #, no-wrap
  22466. msgid "Invoking @command{guix lint}"
  22467. msgstr ""
  22468. #. type: command{#1}
  22469. #: guix-git/doc/guix.texi:14831
  22470. #, no-wrap
  22471. msgid "guix lint"
  22472. msgstr ""
  22473. #. type: cindex
  22474. #: guix-git/doc/guix.texi:14832
  22475. #, no-wrap
  22476. msgid "package, checking for errors"
  22477. msgstr ""
  22478. #. type: Plain text
  22479. #: guix-git/doc/guix.texi:14838
  22480. 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):"
  22481. msgstr ""
  22482. #. type: table
  22483. #: guix-git/doc/guix.texi:14844
  22484. msgid "Validate certain typographical and stylistic rules about package descriptions and synopses."
  22485. msgstr ""
  22486. #. type: item
  22487. #: guix-git/doc/guix.texi:14845
  22488. #, no-wrap
  22489. msgid "inputs-should-be-native"
  22490. msgstr ""
  22491. #. type: table
  22492. #: guix-git/doc/guix.texi:14847
  22493. msgid "Identify inputs that should most likely be native inputs."
  22494. msgstr ""
  22495. #. type: itemx
  22496. #: guix-git/doc/guix.texi:14850
  22497. #, no-wrap
  22498. msgid "mirror-url"
  22499. msgstr ""
  22500. #. type: itemx
  22501. #: guix-git/doc/guix.texi:14851
  22502. #, no-wrap
  22503. msgid "github-url"
  22504. msgstr ""
  22505. #. type: itemx
  22506. #: guix-git/doc/guix.texi:14852
  22507. #, no-wrap
  22508. msgid "source-file-name"
  22509. msgstr ""
  22510. #. type: table
  22511. #: guix-git/doc/guix.texi:14859
  22512. 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})."
  22513. msgstr ""
  22514. #. type: item
  22515. #: guix-git/doc/guix.texi:14860
  22516. #, no-wrap
  22517. msgid "source-unstable-tarball"
  22518. msgstr ""
  22519. #. type: table
  22520. #: guix-git/doc/guix.texi:14864
  22521. 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."
  22522. msgstr ""
  22523. #. type: table
  22524. #: guix-git/doc/guix.texi:14868
  22525. msgid "Check that the derivation of the given packages can be successfully computed for all the supported systems (@pxref{Derivations})."
  22526. msgstr ""
  22527. #. type: item
  22528. #: guix-git/doc/guix.texi:14869
  22529. #, no-wrap
  22530. msgid "profile-collisions"
  22531. msgstr ""
  22532. #. type: table
  22533. #: guix-git/doc/guix.texi:14875
  22534. 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."
  22535. msgstr ""
  22536. #. type: item
  22537. #: guix-git/doc/guix.texi:14876
  22538. #, no-wrap
  22539. msgid "archival"
  22540. msgstr ""
  22541. #. type: cindex
  22542. #: guix-git/doc/guix.texi:14877
  22543. #, no-wrap
  22544. msgid "Software Heritage, source code archive"
  22545. msgstr ""
  22546. #. type: cindex
  22547. #: guix-git/doc/guix.texi:14878
  22548. #, no-wrap
  22549. msgid "archival of source code, Software Heritage"
  22550. msgstr ""
  22551. #. type: table
  22552. #: guix-git/doc/guix.texi:14881
  22553. msgid "Checks whether the package's source code is archived at @uref{https://www.softwareheritage.org, Software Heritage}."
  22554. msgstr ""
  22555. #. type: table
  22556. #: guix-git/doc/guix.texi:14889
  22557. 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}."
  22558. msgstr ""
  22559. #. type: table
  22560. #: guix-git/doc/guix.texi:14894
  22561. 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."
  22562. msgstr ""
  22563. #. type: table
  22564. #: guix-git/doc/guix.texi:14900
  22565. 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."
  22566. msgstr ""
  22567. #. type: item
  22568. #: guix-git/doc/guix.texi:14901
  22569. #, no-wrap
  22570. msgid "cve"
  22571. msgstr ""
  22572. #. type: cindex
  22573. #: guix-git/doc/guix.texi:14902 guix-git/doc/guix.texi:45073
  22574. #, no-wrap
  22575. msgid "security vulnerabilities"
  22576. msgstr ""
  22577. #. type: cindex
  22578. #: guix-git/doc/guix.texi:14903
  22579. #, no-wrap
  22580. msgid "CVE, Common Vulnerabilities and Exposures"
  22581. msgstr ""
  22582. #. type: table
  22583. #: guix-git/doc/guix.texi:14908
  22584. 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}."
  22585. msgstr ""
  22586. #. type: table
  22587. #: guix-git/doc/guix.texi:14910
  22588. msgid "To view information about a particular vulnerability, visit pages such as:"
  22589. msgstr ""
  22590. #. type: indicateurl{#1}
  22591. #: guix-git/doc/guix.texi:14914
  22592. msgid "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-YYYY-ABCD"
  22593. msgstr ""
  22594. #. type: indicateurl{#1}
  22595. #: guix-git/doc/guix.texi:14916
  22596. msgid "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-YYYY-ABCD"
  22597. msgstr ""
  22598. #. type: table
  22599. #: guix-git/doc/guix.texi:14921
  22600. msgid "where @code{CVE-YYYY-ABCD} is the CVE identifier---e.g., @code{CVE-2015-7554}."
  22601. msgstr ""
  22602. #. type: table
  22603. #: guix-git/doc/guix.texi:14926
  22604. 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:"
  22605. msgstr ""
  22606. #. type: lisp
  22607. #: guix-git/doc/guix.texi:14934
  22608. #, no-wrap
  22609. msgid ""
  22610. "(package\n"
  22611. " (name \"grub\")\n"
  22612. " ;; @dots{}\n"
  22613. " ;; CPE calls this package \"grub2\".\n"
  22614. " (properties '((cpe-name . \"grub2\")\n"
  22615. " (cpe-version . \"2.3\"))))\n"
  22616. msgstr ""
  22617. #. type: table
  22618. #: guix-git/doc/guix.texi:14941
  22619. 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:"
  22620. msgstr ""
  22621. #. type: lisp
  22622. #: guix-git/doc/guix.texi:14951
  22623. #, no-wrap
  22624. msgid ""
  22625. "(package\n"
  22626. " (name \"t1lib\")\n"
  22627. " ;; @dots{}\n"
  22628. " ;; These CVEs no longer apply and can be safely ignored.\n"
  22629. " (properties `((lint-hidden-cve . (\"CVE-2011-0433\"\n"
  22630. " \"CVE-2011-1553\"\n"
  22631. " \"CVE-2011-1554\"\n"
  22632. " \"CVE-2011-5244\")))))\n"
  22633. msgstr ""
  22634. #. type: item
  22635. #: guix-git/doc/guix.texi:14953
  22636. #, no-wrap
  22637. msgid "formatting"
  22638. msgstr ""
  22639. #. type: table
  22640. #: guix-git/doc/guix.texi:14956
  22641. msgid "Warn about obvious source code formatting issues: trailing white space, use of tabulations, etc."
  22642. msgstr ""
  22643. #. type: item
  22644. #: guix-git/doc/guix.texi:14957
  22645. #, no-wrap
  22646. msgid "input-labels"
  22647. msgstr ""
  22648. #. type: table
  22649. #: guix-git/doc/guix.texi:14963
  22650. 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."
  22651. msgstr ""
  22652. #. type: example
  22653. #: guix-git/doc/guix.texi:14969
  22654. #, no-wrap
  22655. msgid "guix lint @var{options} @var{package}@dots{}\n"
  22656. msgstr ""
  22657. #. type: Plain text
  22658. #: guix-git/doc/guix.texi:14973
  22659. 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:"
  22660. msgstr ""
  22661. #. type: item
  22662. #: guix-git/doc/guix.texi:14975
  22663. #, no-wrap
  22664. msgid "--list-checkers"
  22665. msgstr ""
  22666. #. type: table
  22667. #: guix-git/doc/guix.texi:14979
  22668. msgid "List and describe all the available checkers that will be run on packages and exit."
  22669. msgstr ""
  22670. #. type: item
  22671. #: guix-git/doc/guix.texi:14980
  22672. #, no-wrap
  22673. msgid "--checkers"
  22674. msgstr ""
  22675. #. type: itemx
  22676. #: guix-git/doc/guix.texi:14981
  22677. #, no-wrap
  22678. msgid "-c"
  22679. msgstr ""
  22680. #. type: table
  22681. #: guix-git/doc/guix.texi:14984
  22682. msgid "Only enable the checkers specified in a comma-separated list using the names returned by @option{--list-checkers}."
  22683. msgstr ""
  22684. #. type: item
  22685. #: guix-git/doc/guix.texi:14985
  22686. #, no-wrap
  22687. msgid "--exclude"
  22688. msgstr ""
  22689. #. type: table
  22690. #: guix-git/doc/guix.texi:14989
  22691. msgid "Only disable the checkers specified in a comma-separated list using the names returned by @option{--list-checkers}."
  22692. msgstr ""
  22693. #. type: table
  22694. #: guix-git/doc/guix.texi:14995
  22695. msgid "This is useful to unambiguously designate packages, as in this example:"
  22696. msgstr ""
  22697. #. type: example
  22698. #: guix-git/doc/guix.texi:14998
  22699. #, no-wrap
  22700. msgid "guix lint -c archival -e '(@@ (gnu packages guile) guile-3.0)'\n"
  22701. msgstr ""
  22702. #. type: item
  22703. #: guix-git/doc/guix.texi:15000
  22704. #, no-wrap
  22705. msgid "--no-network"
  22706. msgstr ""
  22707. #. type: table
  22708. #: guix-git/doc/guix.texi:15003
  22709. msgid "Only enable the checkers that do not depend on Internet access."
  22710. msgstr ""
  22711. #. type: section
  22712. #: guix-git/doc/guix.texi:15015
  22713. #, no-wrap
  22714. msgid "Invoking @command{guix size}"
  22715. msgstr ""
  22716. #. type: code{#1}
  22717. #: guix-git/doc/guix.texi:15017 guix-git/doc/guix.texi:40750
  22718. #, no-wrap
  22719. msgid "size"
  22720. msgstr ""
  22721. #. type: cindex
  22722. #: guix-git/doc/guix.texi:15018
  22723. #, no-wrap
  22724. msgid "package size"
  22725. msgstr ""
  22726. #. type: command{#1}
  22727. #: guix-git/doc/guix.texi:15020
  22728. #, no-wrap
  22729. msgid "guix size"
  22730. msgstr ""
  22731. #. type: Plain text
  22732. #: guix-git/doc/guix.texi:15027
  22733. 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."
  22734. msgstr ""
  22735. #. type: Plain text
  22736. #: guix-git/doc/guix.texi:15032
  22737. 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:"
  22738. msgstr ""
  22739. #. type: example
  22740. #: guix-git/doc/guix.texi:15045
  22741. #, no-wrap
  22742. msgid ""
  22743. "$ guix size coreutils\n"
  22744. "store item total self\n"
  22745. "/gnu/store/@dots{}-gcc-5.5.0-lib 60.4 30.1 38.1%\n"
  22746. "/gnu/store/@dots{}-glibc-2.27 30.3 28.8 36.6%\n"
  22747. "/gnu/store/@dots{}-coreutils-8.28 78.9 15.0 19.0%\n"
  22748. "/gnu/store/@dots{}-gmp-6.1.2 63.1 2.7 3.4%\n"
  22749. "/gnu/store/@dots{}-bash-static-4.4.12 1.5 1.5 1.9%\n"
  22750. "/gnu/store/@dots{}-acl-2.2.52 61.1 0.4 0.5%\n"
  22751. "/gnu/store/@dots{}-attr-2.4.47 60.6 0.2 0.3%\n"
  22752. "/gnu/store/@dots{}-libcap-2.25 60.5 0.2 0.2%\n"
  22753. "total: 78.9 MiB\n"
  22754. msgstr ""
  22755. #. type: Plain text
  22756. #: guix-git/doc/guix.texi:15051
  22757. 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:"
  22758. msgstr ""
  22759. #. type: example
  22760. #: guix-git/doc/guix.texi:15054
  22761. #, no-wrap
  22762. msgid "$ guix gc -R /gnu/store/@dots{}-coreutils-8.23\n"
  22763. msgstr ""
  22764. #. type: Plain text
  22765. #: guix-git/doc/guix.texi:15062
  22766. 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."
  22767. msgstr ""
  22768. #. type: Plain text
  22769. #: guix-git/doc/guix.texi:15068
  22770. 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.)"
  22771. msgstr ""
  22772. #. type: Plain text
  22773. #: guix-git/doc/guix.texi:15071
  22774. msgid "Since the command also accepts store file names, assessing the size of a build result is straightforward:"
  22775. msgstr ""
  22776. #. type: example
  22777. #: guix-git/doc/guix.texi:15074
  22778. #, no-wrap
  22779. msgid "guix size $(guix system build config.scm)\n"
  22780. msgstr ""
  22781. #. type: Plain text
  22782. #: guix-git/doc/guix.texi:15084
  22783. 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})."
  22784. msgstr ""
  22785. #. type: Plain text
  22786. #: guix-git/doc/guix.texi:15089
  22787. 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."
  22788. msgstr ""
  22789. #. type: Plain text
  22790. #: guix-git/doc/guix.texi:15091
  22791. msgid "You can also specify several package names:"
  22792. msgstr ""
  22793. #. type: example
  22794. #: guix-git/doc/guix.texi:15101
  22795. #, no-wrap
  22796. msgid ""
  22797. "$ guix size coreutils grep sed bash\n"
  22798. "store item total self\n"
  22799. "/gnu/store/@dots{}-coreutils-8.24 77.8 13.8 13.4%\n"
  22800. "/gnu/store/@dots{}-grep-2.22 73.1 0.8 0.8%\n"
  22801. "/gnu/store/@dots{}-bash-4.3.42 72.3 4.7 4.6%\n"
  22802. "/gnu/store/@dots{}-readline-6.3 67.6 1.2 1.2%\n"
  22803. "@dots{}\n"
  22804. "total: 102.3 MiB\n"
  22805. msgstr ""
  22806. #. type: Plain text
  22807. #: guix-git/doc/guix.texi:15107
  22808. 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."
  22809. msgstr ""
  22810. #. type: Plain text
  22811. #: guix-git/doc/guix.texi:15113
  22812. 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})."
  22813. msgstr ""
  22814. #. type: Plain text
  22815. #: guix-git/doc/guix.texi:15115
  22816. msgid "The available options are:"
  22817. msgstr ""
  22818. #. type: table
  22819. #: guix-git/doc/guix.texi:15121
  22820. msgid "Use substitute information from @var{urls}. @xref{client-substitute-urls, the same option for @code{guix build}}."
  22821. msgstr ""
  22822. #. type: item
  22823. #: guix-git/doc/guix.texi:15122
  22824. #, no-wrap
  22825. msgid "--sort=@var{key}"
  22826. msgstr ""
  22827. #. type: table
  22828. #: guix-git/doc/guix.texi:15124
  22829. msgid "Sort lines according to @var{key}, one of the following options:"
  22830. msgstr ""
  22831. #. type: item
  22832. #: guix-git/doc/guix.texi:15126
  22833. #, no-wrap
  22834. msgid "self"
  22835. msgstr ""
  22836. #. type: table
  22837. #: guix-git/doc/guix.texi:15128
  22838. msgid "the size of each item (the default);"
  22839. msgstr ""
  22840. #. type: table
  22841. #: guix-git/doc/guix.texi:15130
  22842. msgid "the total size of the item's closure."
  22843. msgstr ""
  22844. #. type: item
  22845. #: guix-git/doc/guix.texi:15132
  22846. #, no-wrap
  22847. msgid "--map-file=@var{file}"
  22848. msgstr ""
  22849. #. type: table
  22850. #: guix-git/doc/guix.texi:15134
  22851. msgid "Write a graphical map of disk usage in PNG format to @var{file}."
  22852. msgstr ""
  22853. #. type: table
  22854. #: guix-git/doc/guix.texi:15136
  22855. msgid "For the example above, the map looks like this:"
  22856. msgstr ""
  22857. #. type: table
  22858. #: guix-git/doc/guix.texi:15139
  22859. msgid "@image{images/coreutils-size-map,5in,, map of Coreutils disk usage produced by @command{guix size}}"
  22860. msgstr ""
  22861. #. type: table
  22862. #: guix-git/doc/guix.texi:15144
  22863. 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."
  22864. msgstr ""
  22865. #. type: table
  22866. #: guix-git/doc/guix.texi:15148
  22867. msgid "Consider packages for @var{system}---e.g., @code{x86_64-linux}."
  22868. msgstr ""
  22869. #. type: section
  22870. #: guix-git/doc/guix.texi:15159
  22871. #, no-wrap
  22872. msgid "Invoking @command{guix graph}"
  22873. msgstr ""
  22874. #. type: cindex
  22875. #: guix-git/doc/guix.texi:15161
  22876. #, no-wrap
  22877. msgid "DAG"
  22878. msgstr ""
  22879. #. type: command{#1}
  22880. #: guix-git/doc/guix.texi:15162
  22881. #, no-wrap
  22882. msgid "guix graph"
  22883. msgstr ""
  22884. #. type: Plain text
  22885. #: guix-git/doc/guix.texi:15177
  22886. 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:"
  22887. msgstr ""
  22888. #. type: example
  22889. #: guix-git/doc/guix.texi:15180
  22890. #, no-wrap
  22891. msgid "guix graph @var{options} @var{package}@dots{}\n"
  22892. msgstr ""
  22893. #. type: Plain text
  22894. #: guix-git/doc/guix.texi:15185
  22895. 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:"
  22896. msgstr ""
  22897. #. type: example
  22898. #: guix-git/doc/guix.texi:15188
  22899. #, no-wrap
  22900. msgid "guix graph coreutils | dot -Tpdf > dag.pdf\n"
  22901. msgstr ""
  22902. #. type: Plain text
  22903. #: guix-git/doc/guix.texi:15191
  22904. msgid "The output looks like this:"
  22905. msgstr ""
  22906. #. type: Plain text
  22907. #: guix-git/doc/guix.texi:15193
  22908. msgid "@image{images/coreutils-graph,2in,,Dependency graph of the GNU Coreutils}"
  22909. msgstr ""
  22910. #. type: Plain text
  22911. #: guix-git/doc/guix.texi:15195
  22912. msgid "Nice little graph, no?"
  22913. msgstr ""
  22914. #. type: Plain text
  22915. #: guix-git/doc/guix.texi:15198
  22916. msgid "You may find it more pleasant to navigate the graph interactively with @command{xdot} (from the @code{xdot} package):"
  22917. msgstr ""
  22918. #. type: example
  22919. #: guix-git/doc/guix.texi:15201
  22920. #, no-wrap
  22921. msgid "guix graph coreutils | xdot -\n"
  22922. msgstr ""
  22923. #. type: Plain text
  22924. #: guix-git/doc/guix.texi:15208
  22925. 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:"
  22926. msgstr ""
  22927. #. type: table
  22928. #: guix-git/doc/guix.texi:15214
  22929. 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."
  22930. msgstr ""
  22931. #. type: item
  22932. #: guix-git/doc/guix.texi:15215
  22933. #, no-wrap
  22934. msgid "reverse-package"
  22935. msgstr ""
  22936. #. type: table
  22937. #: guix-git/doc/guix.texi:15217
  22938. msgid "This shows the @emph{reverse} DAG of packages. For example:"
  22939. msgstr ""
  22940. #. type: example
  22941. #: guix-git/doc/guix.texi:15220
  22942. #, no-wrap
  22943. msgid "guix graph --type=reverse-package ocaml\n"
  22944. msgstr ""
  22945. #. type: table
  22946. #: guix-git/doc/guix.texi:15225
  22947. 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)."
  22948. msgstr ""
  22949. #. type: table
  22950. #: guix-git/doc/guix.texi:15230
  22951. 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}})."
  22952. msgstr ""
  22953. #. type: item
  22954. #: guix-git/doc/guix.texi:15231
  22955. #, no-wrap
  22956. msgid "bag-emerged"
  22957. msgstr ""
  22958. #. type: table
  22959. #: guix-git/doc/guix.texi:15233
  22960. msgid "This is the package DAG, @emph{including} implicit inputs."
  22961. msgstr ""
  22962. #. type: table
  22963. #: guix-git/doc/guix.texi:15235
  22964. msgid "For instance, the following command:"
  22965. msgstr ""
  22966. #. type: example
  22967. #: guix-git/doc/guix.texi:15238
  22968. #, no-wrap
  22969. msgid "guix graph --type=bag-emerged coreutils\n"
  22970. msgstr ""
  22971. #. type: table
  22972. #: guix-git/doc/guix.texi:15241
  22973. msgid "...@: yields this bigger graph:"
  22974. msgstr ""
  22975. #. type: table
  22976. #: guix-git/doc/guix.texi:15243
  22977. msgid "@image{images/coreutils-bag-graph,,5in,Detailed dependency graph of the GNU Coreutils}"
  22978. msgstr ""
  22979. #. type: table
  22980. #: guix-git/doc/guix.texi:15246
  22981. 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}})."
  22982. msgstr ""
  22983. #. type: table
  22984. #: guix-git/doc/guix.texi:15250
  22985. msgid "Now, note that the dependencies of these implicit inputs---that is, the @dfn{bootstrap dependencies} (@pxref{Bootstrapping})---are not shown here, for conciseness."
  22986. msgstr ""
  22987. #. type: item
  22988. #: guix-git/doc/guix.texi:15251
  22989. #, no-wrap
  22990. msgid "bag"
  22991. msgstr ""
  22992. #. type: table
  22993. #: guix-git/doc/guix.texi:15254
  22994. msgid "Similar to @code{bag-emerged}, but this time including all the bootstrap dependencies."
  22995. msgstr ""
  22996. #. type: item
  22997. #: guix-git/doc/guix.texi:15255
  22998. #, no-wrap
  22999. msgid "bag-with-origins"
  23000. msgstr ""
  23001. #. type: table
  23002. #: guix-git/doc/guix.texi:15257
  23003. msgid "Similar to @code{bag}, but also showing origins and their dependencies."
  23004. msgstr ""
  23005. #. type: item
  23006. #: guix-git/doc/guix.texi:15258
  23007. #, no-wrap
  23008. msgid "reverse-bag"
  23009. msgstr ""
  23010. #. type: table
  23011. #: guix-git/doc/guix.texi:15261
  23012. msgid "This shows the @emph{reverse} DAG of packages. Unlike @code{reverse-package}, it also takes implicit dependencies into account. For example:"
  23013. msgstr ""
  23014. #. type: example
  23015. #: guix-git/doc/guix.texi:15264
  23016. #, no-wrap
  23017. msgid "guix graph -t reverse-bag dune\n"
  23018. msgstr ""
  23019. #. type: table
  23020. #: guix-git/doc/guix.texi:15271
  23021. 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."
  23022. msgstr ""
  23023. #. type: table
  23024. #: guix-git/doc/guix.texi:15277
  23025. 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."
  23026. msgstr ""
  23027. #. type: table
  23028. #: guix-git/doc/guix.texi:15280
  23029. msgid "For this type of graph, it is also possible to pass a @file{.drv} file name instead of a package name, as in:"
  23030. msgstr ""
  23031. #. type: example
  23032. #: guix-git/doc/guix.texi:15283
  23033. #, no-wrap
  23034. msgid "guix graph -t derivation $(guix system build -d my-config.scm)\n"
  23035. msgstr ""
  23036. #. type: item
  23037. #: guix-git/doc/guix.texi:15285
  23038. #, no-wrap
  23039. msgid "module"
  23040. msgstr "模块"
  23041. #. type: table
  23042. #: guix-git/doc/guix.texi:15289
  23043. 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:"
  23044. msgstr ""
  23045. #. type: example
  23046. #: guix-git/doc/guix.texi:15292
  23047. #, no-wrap
  23048. msgid "guix graph -t module guile | xdot -\n"
  23049. msgstr ""
  23050. #. type: Plain text
  23051. #: guix-git/doc/guix.texi:15297
  23052. msgid "All the types above correspond to @emph{build-time dependencies}. The following graph type represents the @emph{run-time dependencies}:"
  23053. msgstr ""
  23054. #. type: table
  23055. #: guix-git/doc/guix.texi:15302
  23056. msgid "This is the graph of @dfn{references} of a package output, as returned by @command{guix gc --references} (@pxref{Invoking guix gc})."
  23057. msgstr ""
  23058. #. type: table
  23059. #: guix-git/doc/guix.texi:15305
  23060. msgid "If the given package output is not available in the store, @command{guix graph} attempts to obtain dependency information from substitutes."
  23061. msgstr ""
  23062. #. type: table
  23063. #: guix-git/doc/guix.texi:15309
  23064. 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!):"
  23065. msgstr ""
  23066. #. type: example
  23067. #: guix-git/doc/guix.texi:15312
  23068. #, no-wrap
  23069. msgid "guix graph -t references $(readlink -f ~/.guix-profile)\n"
  23070. msgstr ""
  23071. #. type: item
  23072. #: guix-git/doc/guix.texi:15314
  23073. #, no-wrap
  23074. msgid "referrers"
  23075. msgstr ""
  23076. #. type: table
  23077. #: guix-git/doc/guix.texi:15317
  23078. msgid "This is the graph of the @dfn{referrers} of a store item, as returned by @command{guix gc --referrers} (@pxref{Invoking guix gc})."
  23079. msgstr ""
  23080. #. type: table
  23081. #: guix-git/doc/guix.texi:15323
  23082. 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."
  23083. msgstr ""
  23084. #. type: table
  23085. #: guix-git/doc/guix.texi:15326
  23086. msgid "It can help determine what is preventing a store item from being garbage collected."
  23087. msgstr ""
  23088. #. type: cindex
  23089. #: guix-git/doc/guix.texi:15329
  23090. #, fuzzy, no-wrap
  23091. msgid "shortest path, between packages"
  23092. msgstr "超过1200个受影响的软件包"
  23093. #. type: Plain text
  23094. #: guix-git/doc/guix.texi:15336
  23095. 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.):"
  23096. msgstr ""
  23097. #. type: example
  23098. #: guix-git/doc/guix.texi:15350
  23099. #, no-wrap
  23100. msgid ""
  23101. "$ guix graph --path emacs libunistring\n"
  23102. "emacs@@26.3\n"
  23103. "mailutils@@3.9\n"
  23104. "libunistring@@0.9.10\n"
  23105. "$ guix graph --path -t derivation emacs libunistring\n"
  23106. "/gnu/store/@dots{}-emacs-26.3.drv\n"
  23107. "/gnu/store/@dots{}-mailutils-3.9.drv\n"
  23108. "/gnu/store/@dots{}-libunistring-0.9.10.drv\n"
  23109. "$ guix graph --path -t references emacs libunistring\n"
  23110. "/gnu/store/@dots{}-emacs-26.3\n"
  23111. "/gnu/store/@dots{}-libidn2-2.2.0\n"
  23112. "/gnu/store/@dots{}-libunistring-0.9.10\n"
  23113. msgstr ""
  23114. #. type: Plain text
  23115. #: guix-git/doc/guix.texi:15358
  23116. 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:"
  23117. msgstr ""
  23118. #. type: example
  23119. #: guix-git/doc/guix.texi:15361
  23120. #, no-wrap
  23121. msgid "guix graph -M 2 libreoffice | xdot -f fdp -\n"
  23122. msgstr ""
  23123. #. type: Plain text
  23124. #: guix-git/doc/guix.texi:15365
  23125. 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."
  23126. msgstr ""
  23127. #. type: Plain text
  23128. #: guix-git/doc/guix.texi:15367
  23129. msgid "The available options are the following:"
  23130. msgstr ""
  23131. #. type: table
  23132. #: guix-git/doc/guix.texi:15373
  23133. msgid "Produce a graph output of @var{type}, where @var{type} must be one of the values listed above."
  23134. msgstr ""
  23135. #. type: table
  23136. #: guix-git/doc/guix.texi:15376
  23137. msgid "List the supported graph types."
  23138. msgstr ""
  23139. #. type: item
  23140. #: guix-git/doc/guix.texi:15377
  23141. #, no-wrap
  23142. msgid "--backend=@var{backend}"
  23143. msgstr ""
  23144. #. type: itemx
  23145. #: guix-git/doc/guix.texi:15378
  23146. #, no-wrap
  23147. msgid "-b @var{backend}"
  23148. msgstr ""
  23149. #. type: table
  23150. #: guix-git/doc/guix.texi:15380
  23151. msgid "Produce a graph using the selected @var{backend}."
  23152. msgstr ""
  23153. #. type: item
  23154. #: guix-git/doc/guix.texi:15381
  23155. #, no-wrap
  23156. msgid "--list-backends"
  23157. msgstr ""
  23158. #. type: table
  23159. #: guix-git/doc/guix.texi:15383
  23160. msgid "List the supported graph backends."
  23161. msgstr ""
  23162. #. type: table
  23163. #: guix-git/doc/guix.texi:15385
  23164. msgid "Currently, the available backends are Graphviz and d3.js."
  23165. msgstr ""
  23166. #. type: item
  23167. #: guix-git/doc/guix.texi:15386
  23168. #, no-wrap
  23169. msgid "--path"
  23170. msgstr ""
  23171. #. type: table
  23172. #: guix-git/doc/guix.texi:15391
  23173. 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}:"
  23174. msgstr ""
  23175. #. type: example
  23176. #: guix-git/doc/guix.texi:15398
  23177. #, no-wrap
  23178. msgid ""
  23179. "$ guix graph --path -t references libreoffice llvm\n"
  23180. "/gnu/store/@dots{}-libreoffice-6.4.2.2\n"
  23181. "/gnu/store/@dots{}-libepoxy-1.5.4\n"
  23182. "/gnu/store/@dots{}-mesa-19.3.4\n"
  23183. "/gnu/store/@dots{}-llvm-9.0.1\n"
  23184. msgstr ""
  23185. #. type: example
  23186. #: guix-git/doc/guix.texi:15408
  23187. #, no-wrap
  23188. msgid "guix graph -e '(@@@@ (gnu packages commencement) gnu-make-final)'\n"
  23189. msgstr ""
  23190. #. type: table
  23191. #: guix-git/doc/guix.texi:15413
  23192. msgid "Display the graph for @var{system}---e.g., @code{i686-linux}."
  23193. msgstr ""
  23194. #. type: table
  23195. #: guix-git/doc/guix.texi:15416
  23196. msgid "The package dependency graph is largely architecture-independent, but there are some architecture-dependent bits that this option allows you to visualize."
  23197. msgstr ""
  23198. #. type: Plain text
  23199. #: guix-git/doc/guix.texi:15432
  23200. 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:"
  23201. msgstr ""
  23202. #. type: example
  23203. #: guix-git/doc/guix.texi:15435
  23204. #, no-wrap
  23205. msgid "guix graph git --with-input=openssl=libressl\n"
  23206. msgstr ""
  23207. #. type: Plain text
  23208. #: guix-git/doc/guix.texi:15438
  23209. msgid "So many possibilities, so much fun!"
  23210. msgstr ""
  23211. #. type: section
  23212. #: guix-git/doc/guix.texi:15440
  23213. #, no-wrap
  23214. msgid "Invoking @command{guix publish}"
  23215. msgstr ""
  23216. #. type: command{#1}
  23217. #: guix-git/doc/guix.texi:15442
  23218. #, no-wrap
  23219. msgid "guix publish"
  23220. msgstr ""
  23221. #. type: Plain text
  23222. #: guix-git/doc/guix.texi:15446
  23223. 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})."
  23224. msgstr ""
  23225. #. type: Plain text
  23226. #: guix-git/doc/guix.texi:15452
  23227. 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."
  23228. msgstr ""
  23229. #. type: Plain text
  23230. #: guix-git/doc/guix.texi:15458
  23231. 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."
  23232. msgstr ""
  23233. #. type: Plain text
  23234. #: guix-git/doc/guix.texi:15462
  23235. msgid "The signing key pair must be generated before @command{guix publish} is launched, using @command{guix archive --generate-key} (@pxref{Invoking guix archive})."
  23236. msgstr ""
  23237. #. type: Plain text
  23238. #: guix-git/doc/guix.texi:15467
  23239. 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})."
  23240. msgstr ""
  23241. #. type: example
  23242. #: guix-git/doc/guix.texi:15472
  23243. #, no-wrap
  23244. msgid "guix publish @var{options}@dots{}\n"
  23245. msgstr ""
  23246. #. type: Plain text
  23247. #: guix-git/doc/guix.texi:15476
  23248. msgid "Running @command{guix publish} without any additional arguments will spawn an HTTP server on port 8080:"
  23249. msgstr ""
  23250. #. type: example
  23251. #: guix-git/doc/guix.texi:15479
  23252. #, no-wrap
  23253. msgid "guix publish\n"
  23254. msgstr ""
  23255. #. type: cindex
  23256. #: guix-git/doc/guix.texi:15481
  23257. #, fuzzy, no-wrap
  23258. #| msgid "Invoking @command{guix build}"
  23259. msgid "socket activation, for @command{guix publish}"
  23260. msgstr "调用@command{guix build}"
  23261. #. type: Plain text
  23262. #: guix-git/doc/guix.texi:15485
  23263. msgid "@command{guix publish} can also be started following the systemd ``socket activation'' protocol (@pxref{Service De- and Constructors, @code{make-systemd-constructor},, shepherd, The GNU Shepherd Manual})."
  23264. msgstr ""
  23265. #. type: Plain text
  23266. #: guix-git/doc/guix.texi:15488
  23267. msgid "Once a publishing server has been authorized, the daemon may download substitutes from it. @xref{Getting Substitutes from Other Servers}."
  23268. msgstr ""
  23269. #. type: Plain text
  23270. #: guix-git/doc/guix.texi:15496
  23271. 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})."
  23272. msgstr ""
  23273. #. type: Plain text
  23274. #: guix-git/doc/guix.texi:15503
  23275. 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}):"
  23276. msgstr ""
  23277. #. type: example
  23278. #: guix-git/doc/guix.texi:15506
  23279. #, no-wrap
  23280. msgid "http://example.org/file/hello-2.10.tar.gz/sha256/0ssi1@dots{}ndq1i\n"
  23281. msgstr ""
  23282. #. type: Plain text
  23283. #: guix-git/doc/guix.texi:15510
  23284. msgid "Obviously, these URLs only work for files that are in the store; in other cases, they return 404 (``Not Found'')."
  23285. msgstr ""
  23286. #. type: cindex
  23287. #: guix-git/doc/guix.texi:15511
  23288. #, no-wrap
  23289. msgid "build logs, publication"
  23290. msgstr ""
  23291. #. type: Plain text
  23292. #: guix-git/doc/guix.texi:15513
  23293. msgid "Build logs are available from @code{/log} URLs like:"
  23294. msgstr ""
  23295. #. type: example
  23296. #: guix-git/doc/guix.texi:15516
  23297. #, no-wrap
  23298. msgid "http://example.org/log/gwspk@dots{}-guile-2.2.3\n"
  23299. msgstr ""
  23300. #. type: Plain text
  23301. #: guix-git/doc/guix.texi:15526
  23302. 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."
  23303. msgstr ""
  23304. #. type: item
  23305. #: guix-git/doc/guix.texi:15530
  23306. #, no-wrap
  23307. msgid "--port=@var{port}"
  23308. msgstr ""
  23309. #. type: itemx
  23310. #: guix-git/doc/guix.texi:15531
  23311. #, no-wrap
  23312. msgid "-p @var{port}"
  23313. msgstr ""
  23314. #. type: table
  23315. #: guix-git/doc/guix.texi:15533
  23316. msgid "Listen for HTTP requests on @var{port}."
  23317. msgstr ""
  23318. #. type: item
  23319. #: guix-git/doc/guix.texi:15534
  23320. #, no-wrap
  23321. msgid "--listen=@var{host}"
  23322. msgstr ""
  23323. #. type: table
  23324. #: guix-git/doc/guix.texi:15537
  23325. msgid "Listen on the network interface for @var{host}. The default is to accept connections from any interface."
  23326. msgstr ""
  23327. #. type: table
  23328. #: guix-git/doc/guix.texi:15542
  23329. 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."
  23330. msgstr ""
  23331. #. type: item
  23332. #: guix-git/doc/guix.texi:15543
  23333. #, fuzzy, no-wrap
  23334. msgid "--compression[=@var{method}[:@var{level}]]"
  23335. msgstr "--log-compression=@var{type}"
  23336. #. type: itemx
  23337. #: guix-git/doc/guix.texi:15544
  23338. #, no-wrap
  23339. msgid "-C [@var{method}[:@var{level}]]"
  23340. msgstr ""
  23341. #. type: table
  23342. #: guix-git/doc/guix.texi:15548
  23343. 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."
  23344. msgstr ""
  23345. #. type: table
  23346. #: guix-git/doc/guix.texi:15552
  23347. 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."
  23348. msgstr ""
  23349. #. type: table
  23350. #: guix-git/doc/guix.texi:15559
  23351. 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."
  23352. msgstr ""
  23353. #. type: table
  23354. #: guix-git/doc/guix.texi:15563
  23355. 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}."
  23356. msgstr ""
  23357. #. type: table
  23358. #: guix-git/doc/guix.texi:15572
  23359. 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."
  23360. msgstr ""
  23361. #. type: table
  23362. #: guix-git/doc/guix.texi:15577
  23363. 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."
  23364. msgstr ""
  23365. #. type: item
  23366. #: guix-git/doc/guix.texi:15578
  23367. #, no-wrap
  23368. msgid "--cache=@var{directory}"
  23369. msgstr ""
  23370. #. type: itemx
  23371. #: guix-git/doc/guix.texi:15579
  23372. #, no-wrap
  23373. msgid "-c @var{directory}"
  23374. msgstr ""
  23375. #. type: table
  23376. #: guix-git/doc/guix.texi:15582
  23377. msgid "Cache archives and meta-data (@code{.narinfo} URLs) to @var{directory} and only serve archives that are in cache."
  23378. msgstr ""
  23379. #. type: table
  23380. #: guix-git/doc/guix.texi:15590
  23381. 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."
  23382. msgstr ""
  23383. #. type: table
  23384. #: guix-git/doc/guix.texi:15598
  23385. 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."
  23386. msgstr ""
  23387. #. type: table
  23388. #: guix-git/doc/guix.texi:15605
  23389. 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."
  23390. msgstr ""
  23391. #. type: table
  23392. #: guix-git/doc/guix.texi:15609
  23393. 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."
  23394. msgstr ""
  23395. #. type: table
  23396. #: guix-git/doc/guix.texi:15612
  23397. msgid "When @option{--ttl} is used, cached entries are automatically deleted when they have expired."
  23398. msgstr ""
  23399. #. type: item
  23400. #: guix-git/doc/guix.texi:15613
  23401. #, no-wrap
  23402. msgid "--workers=@var{N}"
  23403. msgstr ""
  23404. #. type: table
  23405. #: guix-git/doc/guix.texi:15616
  23406. msgid "When @option{--cache} is used, request the allocation of @var{N} worker threads to ``bake'' archives."
  23407. msgstr ""
  23408. #. type: item
  23409. #: guix-git/doc/guix.texi:15617
  23410. #, no-wrap
  23411. msgid "--ttl=@var{ttl}"
  23412. msgstr ""
  23413. #. type: table
  23414. #: guix-git/doc/guix.texi:15621 guix-git/doc/guix.texi:37846
  23415. 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."
  23416. msgstr ""
  23417. #. type: table
  23418. #: guix-git/doc/guix.texi:15626
  23419. 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}."
  23420. msgstr ""
  23421. #. type: table
  23422. #: guix-git/doc/guix.texi:15630
  23423. 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."
  23424. msgstr ""
  23425. #. type: item
  23426. #: guix-git/doc/guix.texi:15631
  23427. #, no-wrap
  23428. msgid "--negative-ttl=@var{ttl}"
  23429. msgstr ""
  23430. #. type: table
  23431. #: guix-git/doc/guix.texi:15636 guix-git/doc/guix.texi:37855
  23432. 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."
  23433. msgstr ""
  23434. #. type: table
  23435. #: guix-git/doc/guix.texi:15640
  23436. 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."
  23437. msgstr ""
  23438. #. type: item
  23439. #: guix-git/doc/guix.texi:15641
  23440. #, no-wrap
  23441. msgid "--cache-bypass-threshold=@var{size}"
  23442. msgstr ""
  23443. #. type: table
  23444. #: guix-git/doc/guix.texi:15646
  23445. 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}."
  23446. msgstr ""
  23447. #. type: table
  23448. #: guix-git/doc/guix.texi:15651
  23449. 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."
  23450. msgstr ""
  23451. #. type: table
  23452. #: guix-git/doc/guix.texi:15655
  23453. 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."
  23454. msgstr ""
  23455. #. type: item
  23456. #: guix-git/doc/guix.texi:15656
  23457. #, no-wrap
  23458. msgid "--nar-path=@var{path}"
  23459. msgstr ""
  23460. #. type: table
  23461. #: guix-git/doc/guix.texi:15659
  23462. msgid "Use @var{path} as the prefix for the URLs of ``nar'' files (@pxref{Invoking guix archive, normalized archives})."
  23463. msgstr ""
  23464. #. type: table
  23465. #: guix-git/doc/guix.texi:15663
  23466. 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}."
  23467. msgstr ""
  23468. #. type: item
  23469. #: guix-git/doc/guix.texi:15664
  23470. #, no-wrap
  23471. msgid "--public-key=@var{file}"
  23472. msgstr ""
  23473. #. type: itemx
  23474. #: guix-git/doc/guix.texi:15665
  23475. #, no-wrap
  23476. msgid "--private-key=@var{file}"
  23477. msgstr ""
  23478. #. type: table
  23479. #: guix-git/doc/guix.texi:15668 guix-git/doc/guix.texi:33259
  23480. #: guix-git/doc/guix.texi:33296
  23481. msgid "Use the specific @var{file}s as the public/private key pair used to sign the store items being published."
  23482. msgstr ""
  23483. #. type: table
  23484. #: guix-git/doc/guix.texi:15675
  23485. 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."
  23486. msgstr ""
  23487. #. type: item
  23488. #: guix-git/doc/guix.texi:15676
  23489. #, no-wrap
  23490. msgid "--repl[=@var{port}]"
  23491. msgstr ""
  23492. #. type: itemx
  23493. #: guix-git/doc/guix.texi:15677
  23494. #, no-wrap
  23495. msgid "-r [@var{port}]"
  23496. msgstr ""
  23497. #. type: table
  23498. #: guix-git/doc/guix.texi:15681
  23499. 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."
  23500. msgstr ""
  23501. #. type: Plain text
  23502. #: guix-git/doc/guix.texi:15687
  23503. 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}})."
  23504. msgstr ""
  23505. #. type: Plain text
  23506. #: guix-git/doc/guix.texi:15690
  23507. msgid "If you are instead running Guix on a ``foreign distro'', follow these instructions:"
  23508. msgstr ""
  23509. #. type: itemize
  23510. #: guix-git/doc/guix.texi:15694
  23511. msgid "If your host distro uses the systemd init system:"
  23512. msgstr ""
  23513. #. type: example
  23514. #: guix-git/doc/guix.texi:15699
  23515. #, no-wrap
  23516. msgid ""
  23517. "# ln -s ~root/.guix-profile/lib/systemd/system/guix-publish.service \\\n"
  23518. " /etc/systemd/system/\n"
  23519. "# systemctl start guix-publish && systemctl enable guix-publish\n"
  23520. msgstr ""
  23521. #. type: example
  23522. #: guix-git/doc/guix.texi:15707
  23523. #, no-wrap
  23524. msgid ""
  23525. "# ln -s ~root/.guix-profile/lib/upstart/system/guix-publish.conf /etc/init/\n"
  23526. "# start guix-publish\n"
  23527. msgstr ""
  23528. #. type: itemize
  23529. #: guix-git/doc/guix.texi:15711
  23530. msgid "Otherwise, proceed similarly with your distro's init system."
  23531. msgstr ""
  23532. #. type: section
  23533. #: guix-git/doc/guix.texi:15714
  23534. #, no-wrap
  23535. msgid "Invoking @command{guix challenge}"
  23536. msgstr ""
  23537. #. type: cindex
  23538. #: guix-git/doc/guix.texi:15717
  23539. #, no-wrap
  23540. msgid "verifiable builds"
  23541. msgstr ""
  23542. #. type: command{#1}
  23543. #: guix-git/doc/guix.texi:15718
  23544. #, no-wrap
  23545. msgid "guix challenge"
  23546. msgstr ""
  23547. #. type: cindex
  23548. #: guix-git/doc/guix.texi:15719
  23549. #, no-wrap
  23550. msgid "challenge"
  23551. msgstr ""
  23552. #. type: Plain text
  23553. #: guix-git/doc/guix.texi:15724
  23554. 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."
  23555. msgstr ""
  23556. #. type: Plain text
  23557. #: guix-git/doc/guix.texi:15732
  23558. 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."
  23559. msgstr ""
  23560. #. type: Plain text
  23561. #: guix-git/doc/guix.texi:15741
  23562. 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."
  23563. msgstr ""
  23564. #. type: Plain text
  23565. #: guix-git/doc/guix.texi:15743
  23566. msgid "The command output looks like this:"
  23567. msgstr ""
  23568. #. type: smallexample
  23569. #: guix-git/doc/guix.texi:15757
  23570. #, no-wrap
  23571. msgid ""
  23572. "$ guix challenge \\\n"
  23573. " --substitute-urls=\"https://@value{SUBSTITUTE-SERVER-1} https://guix.example.org\" \\\n"
  23574. " openssl git pius coreutils grep\n"
  23575. "updating substitutes from 'https://@value{SUBSTITUTE-SERVER-1}'... 100.0%\n"
  23576. "updating substitutes from 'https://guix.example.org'... 100.0%\n"
  23577. "/gnu/store/@dots{}-openssl-1.0.2d contents differ:\n"
  23578. " local hash: 0725l22r5jnzazaacncwsvp9kgf42266ayyp814v7djxs7nk963q\n"
  23579. " https://@value{SUBSTITUTE-SERVER-1}/nar/@dots{}-openssl-1.0.2d: 0725l22r5jnzazaacncwsvp9kgf42266ayyp814v7djxs7nk963q\n"
  23580. " https://guix.example.org/nar/@dots{}-openssl-1.0.2d: 1zy4fmaaqcnjrzzajkdn3f5gmjk754b43qkq47llbyak9z0qjyim\n"
  23581. " differing files:\n"
  23582. " /lib/libcrypto.so.1.1\n"
  23583. " /lib/libssl.so.1.1\n"
  23584. "\n"
  23585. msgstr ""
  23586. #. type: smallexample
  23587. #: guix-git/doc/guix.texi:15764
  23588. #, no-wrap
  23589. msgid ""
  23590. "/gnu/store/@dots{}-git-2.5.0 contents differ:\n"
  23591. " local hash: 00p3bmryhjxrhpn2gxs2fy0a15lnip05l97205pgbk5ra395hyha\n"
  23592. " https://@value{SUBSTITUTE-SERVER-1}/nar/@dots{}-git-2.5.0: 069nb85bv4d4a6slrwjdy8v1cn4cwspm3kdbmyb81d6zckj3nq9f\n"
  23593. " https://guix.example.org/nar/@dots{}-git-2.5.0: 0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73\n"
  23594. " differing file:\n"
  23595. " /libexec/git-core/git-fsck\n"
  23596. "\n"
  23597. msgstr ""
  23598. #. type: smallexample
  23599. #: guix-git/doc/guix.texi:15771
  23600. #, no-wrap
  23601. msgid ""
  23602. "/gnu/store/@dots{}-pius-2.1.1 contents differ:\n"
  23603. " local hash: 0k4v3m9z1zp8xzzizb7d8kjj72f9172xv078sq4wl73vnq9ig3ax\n"
  23604. " https://@value{SUBSTITUTE-SERVER-1}/nar/@dots{}-pius-2.1.1: 0k4v3m9z1zp8xzzizb7d8kjj72f9172xv078sq4wl73vnq9ig3ax\n"
  23605. " https://guix.example.org/nar/@dots{}-pius-2.1.1: 1cy25x1a4fzq5rk0pmvc8xhwyffnqz95h2bpvqsz2mpvlbccy0gs\n"
  23606. " differing file:\n"
  23607. " /share/man/man1/pius.1.gz\n"
  23608. "\n"
  23609. msgstr ""
  23610. #. type: smallexample
  23611. #: guix-git/doc/guix.texi:15773
  23612. #, no-wrap
  23613. msgid ""
  23614. "@dots{}\n"
  23615. "\n"
  23616. msgstr ""
  23617. #. type: smallexample
  23618. #: guix-git/doc/guix.texi:15778
  23619. #, no-wrap
  23620. msgid ""
  23621. "5 store items were analyzed:\n"
  23622. " - 2 (40.0%) were identical\n"
  23623. " - 3 (60.0%) differed\n"
  23624. " - 0 (0.0%) were inconclusive\n"
  23625. msgstr ""
  23626. #. type: Plain text
  23627. #: guix-git/doc/guix.texi:15788
  23628. msgid "In this example, @command{guix challenge} queries all the substitute servers for each of the fives packages specified on the command line. It then reports those store items for which the servers obtained a result different from the local build (if it exists) and/or different from one another; here, the @samp{local hash} lines indicate that a local build result was available for each of these packages and shows its hash."
  23629. msgstr ""
  23630. #. type: cindex
  23631. #: guix-git/doc/guix.texi:15789
  23632. #, no-wrap
  23633. msgid "non-determinism, in package builds"
  23634. msgstr ""
  23635. #. type: Plain text
  23636. #: guix-git/doc/guix.texi:15800
  23637. 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."
  23638. msgstr ""
  23639. #. type: Plain text
  23640. #: guix-git/doc/guix.texi:15803
  23641. msgid "To find out what is wrong with this Git binary, the easiest approach is to run:"
  23642. msgstr ""
  23643. #. type: example
  23644. #: guix-git/doc/guix.texi:15808
  23645. #, no-wrap
  23646. msgid ""
  23647. "guix challenge git \\\n"
  23648. " --diff=diffoscope \\\n"
  23649. " --substitute-urls=\"https://@value{SUBSTITUTE-SERVER-1} https://guix.example.org\"\n"
  23650. msgstr ""
  23651. #. type: Plain text
  23652. #: guix-git/doc/guix.texi:15812
  23653. msgid "This automatically invokes @command{diffoscope}, which displays detailed information about files that differ."
  23654. msgstr ""
  23655. #. type: Plain text
  23656. #: guix-git/doc/guix.texi:15815
  23657. msgid "Alternatively, we can do something along these lines (@pxref{Invoking guix archive}):"
  23658. msgstr ""
  23659. #. type: example
  23660. #: guix-git/doc/guix.texi:15820
  23661. #, no-wrap
  23662. msgid ""
  23663. "$ wget -q -O - https://@value{SUBSTITUTE-SERVER-1}/nar/lzip/@dots{}-git-2.5.0 \\\n"
  23664. " | lzip -d | guix archive -x /tmp/git\n"
  23665. "$ diff -ur --no-dereference /gnu/store/@dots{}-git.2.5.0 /tmp/git\n"
  23666. msgstr ""
  23667. #. type: Plain text
  23668. #: guix-git/doc/guix.texi:15829
  23669. 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."
  23670. msgstr ""
  23671. #. type: Plain text
  23672. #: guix-git/doc/guix.texi:15837
  23673. 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."
  23674. msgstr ""
  23675. #. type: Plain text
  23676. #: guix-git/doc/guix.texi:15841
  23677. 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:"
  23678. msgstr ""
  23679. #. type: example
  23680. #: guix-git/doc/guix.texi:15844
  23681. #, fuzzy, no-wrap
  23682. msgid "guix challenge @var{package}\n"
  23683. msgstr "guix install emacs-guix\n"
  23684. #. type: example
  23685. #: guix-git/doc/guix.texi:15850
  23686. #, fuzzy, no-wrap
  23687. msgid "guix challenge @var{options} @var{argument}@dots{}\n"
  23688. msgstr "guix install emacs-guix\n"
  23689. #. type: Plain text
  23690. #: guix-git/doc/guix.texi:15857
  23691. msgid "where @var{argument} is a package specification such as @code{guile@@2.0} or @code{glibc:debug} or, alternatively, a store file name as returned, for example, by @command{guix build} or @command{guix gc --list-live}."
  23692. msgstr ""
  23693. #. type: Plain text
  23694. #: guix-git/doc/guix.texi:15863
  23695. 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)."
  23696. msgstr ""
  23697. #. type: Plain text
  23698. #: guix-git/doc/guix.texi:15865
  23699. msgid "The one option that matters is:"
  23700. msgstr ""
  23701. #. type: table
  23702. #: guix-git/doc/guix.texi:15871
  23703. msgid "Consider @var{urls} the whitespace-separated list of substitute source URLs to compare to."
  23704. msgstr ""
  23705. #. type: item
  23706. #: guix-git/doc/guix.texi:15872
  23707. #, fuzzy, no-wrap
  23708. msgid "--diff=@var{mode}"
  23709. msgstr "--rounds=@var{N}"
  23710. #. type: table
  23711. #: guix-git/doc/guix.texi:15874
  23712. msgid "Upon mismatches, show differences according to @var{mode}, one of:"
  23713. msgstr ""
  23714. #. type: item
  23715. #: guix-git/doc/guix.texi:15876
  23716. #, fuzzy, no-wrap
  23717. msgid "@code{simple} (the default)"
  23718. msgstr "@code{speed}(默认值:@code{1.0})"
  23719. #. type: table
  23720. #: guix-git/doc/guix.texi:15878
  23721. msgid "Show the list of files that differ."
  23722. msgstr ""
  23723. #. type: code{#1}
  23724. #: guix-git/doc/guix.texi:15879
  23725. #, no-wrap
  23726. msgid "diffoscope"
  23727. msgstr ""
  23728. #. type: var{#1}
  23729. #: guix-git/doc/guix.texi:15880
  23730. #, no-wrap
  23731. msgid "command"
  23732. msgstr ""
  23733. #. type: table
  23734. #: guix-git/doc/guix.texi:15883
  23735. msgid "Invoke @uref{https://diffoscope.org/, Diffoscope}, passing it two directories whose contents do not match."
  23736. msgstr ""
  23737. #. type: table
  23738. #: guix-git/doc/guix.texi:15886
  23739. msgid "When @var{command} is an absolute file name, run @var{command} instead of Diffoscope."
  23740. msgstr ""
  23741. #. type: table
  23742. #: guix-git/doc/guix.texi:15889
  23743. msgid "Do not show further details about the differences."
  23744. msgstr ""
  23745. #. type: table
  23746. #: guix-git/doc/guix.texi:15894
  23747. 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."
  23748. msgstr ""
  23749. #. type: item
  23750. #: guix-git/doc/guix.texi:15895
  23751. #, no-wrap
  23752. msgid "--verbose"
  23753. msgstr ""
  23754. #. type: itemx
  23755. #: guix-git/doc/guix.texi:15896
  23756. #, no-wrap
  23757. msgid "-v"
  23758. msgstr ""
  23759. #. type: table
  23760. #: guix-git/doc/guix.texi:15899
  23761. msgid "Show details about matches (identical contents) in addition to information about mismatches."
  23762. msgstr ""
  23763. #. type: section
  23764. #: guix-git/doc/guix.texi:15903
  23765. #, no-wrap
  23766. msgid "Invoking @command{guix copy}"
  23767. msgstr ""
  23768. #. type: command{#1}
  23769. #: guix-git/doc/guix.texi:15905
  23770. #, fuzzy, no-wrap
  23771. #| msgid "Invoking guix copy"
  23772. msgid "guix copy"
  23773. msgstr "调用guix copy"
  23774. #. type: cindex
  23775. #: guix-git/doc/guix.texi:15906
  23776. #, no-wrap
  23777. msgid "copy, of store items, over SSH"
  23778. msgstr ""
  23779. #. type: cindex
  23780. #: guix-git/doc/guix.texi:15907
  23781. #, no-wrap
  23782. msgid "SSH, copy of store items"
  23783. msgstr ""
  23784. #. type: cindex
  23785. #: guix-git/doc/guix.texi:15908
  23786. #, no-wrap
  23787. msgid "sharing store items across machines"
  23788. msgstr ""
  23789. #. type: cindex
  23790. #: guix-git/doc/guix.texi:15909
  23791. #, no-wrap
  23792. msgid "transferring store items across machines"
  23793. msgstr ""
  23794. #. type: Plain text
  23795. #: guix-git/doc/guix.texi:15916
  23796. 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}:"
  23797. msgstr ""
  23798. #. type: example
  23799. #: guix-git/doc/guix.texi:15920
  23800. #, no-wrap
  23801. msgid ""
  23802. "guix copy --to=@var{user}@@@var{host} \\\n"
  23803. " coreutils $(readlink -f ~/.guix-profile)\n"
  23804. msgstr ""
  23805. #. type: Plain text
  23806. #: guix-git/doc/guix.texi:15924
  23807. msgid "If some of the items to be copied are already present on @var{host}, they are not actually sent."
  23808. msgstr ""
  23809. #. type: Plain text
  23810. #: guix-git/doc/guix.texi:15927
  23811. msgid "The command below retrieves @code{libreoffice} and @code{gimp} from @var{host}, assuming they are available there:"
  23812. msgstr ""
  23813. #. type: example
  23814. #: guix-git/doc/guix.texi:15930
  23815. #, no-wrap
  23816. msgid "guix copy --from=@var{host} libreoffice gimp\n"
  23817. msgstr ""
  23818. #. type: Plain text
  23819. #: guix-git/doc/guix.texi:15935
  23820. 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."
  23821. msgstr ""
  23822. #. type: Plain text
  23823. #: guix-git/doc/guix.texi:15941
  23824. 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."
  23825. msgstr ""
  23826. #. type: example
  23827. #: guix-git/doc/guix.texi:15946
  23828. #, no-wrap
  23829. msgid "guix copy [--to=@var{spec}|--from=@var{spec}] @var{items}@dots{}\n"
  23830. msgstr ""
  23831. #. type: Plain text
  23832. #: guix-git/doc/guix.texi:15949
  23833. msgid "You must always specify one of the following options:"
  23834. msgstr ""
  23835. #. type: item
  23836. #: guix-git/doc/guix.texi:15951
  23837. #, no-wrap
  23838. msgid "--to=@var{spec}"
  23839. msgstr ""
  23840. #. type: itemx
  23841. #: guix-git/doc/guix.texi:15952
  23842. #, no-wrap
  23843. msgid "--from=@var{spec}"
  23844. msgstr ""
  23845. #. type: table
  23846. #: guix-git/doc/guix.texi:15956
  23847. 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}."
  23848. msgstr ""
  23849. #. type: Plain text
  23850. #: guix-git/doc/guix.texi:15960
  23851. 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}."
  23852. msgstr ""
  23853. #. type: Plain text
  23854. #: guix-git/doc/guix.texi:15964
  23855. 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})."
  23856. msgstr ""
  23857. #. type: section
  23858. #: guix-git/doc/guix.texi:15967
  23859. #, no-wrap
  23860. msgid "Invoking @command{guix container}"
  23861. msgstr ""
  23862. #. type: command{#1}
  23863. #: guix-git/doc/guix.texi:15969
  23864. #, no-wrap
  23865. msgid "guix container"
  23866. msgstr ""
  23867. #. type: quotation
  23868. #: guix-git/doc/guix.texi:15973
  23869. msgid "As of version @value{VERSION}, this tool is experimental. The interface is subject to radical change in the future."
  23870. msgstr ""
  23871. #. type: Plain text
  23872. #: guix-git/doc/guix.texi:15980
  23873. 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."
  23874. msgstr ""
  23875. #. type: example
  23876. #: guix-git/doc/guix.texi:15985
  23877. #, no-wrap
  23878. msgid "guix container @var{action} @var{options}@dots{}\n"
  23879. msgstr ""
  23880. #. type: Plain text
  23881. #: guix-git/doc/guix.texi:15989
  23882. msgid "@var{action} specifies the operation to perform with a container, and @var{options} specifies the context-specific arguments for the action."
  23883. msgstr ""
  23884. #. type: Plain text
  23885. #: guix-git/doc/guix.texi:15991
  23886. msgid "The following actions are available:"
  23887. msgstr ""
  23888. #. type: item
  23889. #: guix-git/doc/guix.texi:15993
  23890. #, no-wrap
  23891. msgid "exec"
  23892. msgstr ""
  23893. #. type: table
  23894. #: guix-git/doc/guix.texi:15995
  23895. msgid "Execute a command within the context of a running container."
  23896. msgstr ""
  23897. #. type: table
  23898. #: guix-git/doc/guix.texi:15997
  23899. msgid "The syntax is:"
  23900. msgstr ""
  23901. #. type: example
  23902. #: guix-git/doc/guix.texi:16000
  23903. #, no-wrap
  23904. msgid "guix container exec @var{pid} @var{program} @var{arguments}@dots{}\n"
  23905. msgstr ""
  23906. #. type: table
  23907. #: guix-git/doc/guix.texi:16006
  23908. 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}."
  23909. msgstr ""
  23910. #. type: table
  23911. #: guix-git/doc/guix.texi:16010
  23912. 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:"
  23913. msgstr ""
  23914. #. type: example
  23915. #: guix-git/doc/guix.texi:16013
  23916. #, no-wrap
  23917. msgid "guix container exec 9001 /run/current-system/profile/bin/bash --login\n"
  23918. msgstr ""
  23919. #. type: table
  23920. #: guix-git/doc/guix.texi:16017
  23921. 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."
  23922. msgstr ""
  23923. #. type: section
  23924. #: guix-git/doc/guix.texi:16021
  23925. #, no-wrap
  23926. msgid "Invoking @command{guix weather}"
  23927. msgstr ""
  23928. #. type: command{#1}
  23929. #: guix-git/doc/guix.texi:16023
  23930. #, fuzzy, no-wrap
  23931. #| msgid "Invoking guix weather"
  23932. msgid "guix weather"
  23933. msgstr "调用guix weather"
  23934. #. type: Plain text
  23935. #: guix-git/doc/guix.texi:16031
  23936. 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})."
  23937. msgstr ""
  23938. #. type: cindex
  23939. #: guix-git/doc/guix.texi:16032
  23940. #, no-wrap
  23941. msgid "statistics, for substitutes"
  23942. msgstr ""
  23943. #. type: cindex
  23944. #: guix-git/doc/guix.texi:16033
  23945. #, no-wrap
  23946. msgid "availability of substitutes"
  23947. msgstr ""
  23948. #. type: cindex
  23949. #: guix-git/doc/guix.texi:16034
  23950. #, no-wrap
  23951. msgid "substitute availability"
  23952. msgstr ""
  23953. #. type: cindex
  23954. #: guix-git/doc/guix.texi:16035
  23955. #, no-wrap
  23956. msgid "weather, substitute availability"
  23957. msgstr ""
  23958. #. type: Plain text
  23959. #: guix-git/doc/guix.texi:16037
  23960. msgid "Here's a sample run:"
  23961. msgstr ""
  23962. #. type: example
  23963. #: guix-git/doc/guix.texi:16049
  23964. #, no-wrap
  23965. msgid ""
  23966. "$ guix weather --substitute-urls=https://guix.example.org\n"
  23967. "computing 5,872 package derivations for x86_64-linux...\n"
  23968. "looking for 6,128 store items on https://guix.example.org..\n"
  23969. "updating substitutes from 'https://guix.example.org'... 100.0%\n"
  23970. "https://guix.example.org\n"
  23971. " 43.4% substitutes available (2,658 out of 6,128)\n"
  23972. " 7,032.5 MiB of nars (compressed)\n"
  23973. " 19,824.2 MiB on disk (uncompressed)\n"
  23974. " 0.030 seconds per request (182.9 seconds in total)\n"
  23975. " 33.5 requests per second\n"
  23976. "\n"
  23977. msgstr ""
  23978. #. type: example
  23979. #: guix-git/doc/guix.texi:16059
  23980. #, no-wrap
  23981. msgid ""
  23982. " 9.8% (342 out of 3,470) of the missing items are queued\n"
  23983. " 867 queued builds\n"
  23984. " x86_64-linux: 518 (59.7%)\n"
  23985. " i686-linux: 221 (25.5%)\n"
  23986. " aarch64-linux: 128 (14.8%)\n"
  23987. " build rate: 23.41 builds per hour\n"
  23988. " x86_64-linux: 11.16 builds per hour\n"
  23989. " i686-linux: 6.03 builds per hour\n"
  23990. " aarch64-linux: 6.41 builds per hour\n"
  23991. msgstr ""
  23992. #. type: cindex
  23993. #: guix-git/doc/guix.texi:16061
  23994. #, no-wrap
  23995. msgid "continuous integration, statistics"
  23996. msgstr ""
  23997. #. type: Plain text
  23998. #: guix-git/doc/guix.texi:16072
  23999. 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)."
  24000. msgstr ""
  24001. #. type: Plain text
  24002. #: guix-git/doc/guix.texi:16078
  24003. 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."
  24004. msgstr ""
  24005. #. type: example
  24006. #: guix-git/doc/guix.texi:16083
  24007. #, no-wrap
  24008. msgid "guix weather @var{options}@dots{} [@var{packages}@dots{}]\n"
  24009. msgstr ""
  24010. #. type: Plain text
  24011. #: guix-git/doc/guix.texi:16091
  24012. 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%."
  24013. msgstr ""
  24014. #. type: table
  24015. #: guix-git/doc/guix.texi:16099
  24016. 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."
  24017. msgstr ""
  24018. #. type: table
  24019. #: guix-git/doc/guix.texi:16105
  24020. 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."
  24021. msgstr ""
  24022. #. type: table
  24023. #: guix-git/doc/guix.texi:16111
  24024. 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})."
  24025. msgstr ""
  24026. #. type: table
  24027. #: guix-git/doc/guix.texi:16114
  24028. msgid "This option can be repeated several times, in which case the manifests are concatenated."
  24029. msgstr ""
  24030. #. type: item
  24031. #: guix-git/doc/guix.texi:16115
  24032. #, no-wrap
  24033. msgid "--coverage[=@var{count}]"
  24034. msgstr ""
  24035. #. type: itemx
  24036. #: guix-git/doc/guix.texi:16116
  24037. #, no-wrap
  24038. msgid "-c [@var{count}]"
  24039. msgstr ""
  24040. #. type: table
  24041. #: guix-git/doc/guix.texi:16122
  24042. 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:"
  24043. msgstr ""
  24044. #. type: example
  24045. #: guix-git/doc/guix.texi:16136
  24046. #, no-wrap
  24047. msgid ""
  24048. "$ guix weather --substitute-urls=@value{SUBSTITUTE-URLS} -c 10\n"
  24049. "computing 8,983 package derivations for x86_64-linux...\n"
  24050. "looking for 9,343 store items on @value{SUBSTITUTE-URLS}...\n"
  24051. "updating substitutes from '@value{SUBSTITUTE-URLS}'... 100.0%\n"
  24052. "@value{SUBSTITUTE-URLS}\n"
  24053. " 64.7% substitutes available (6,047 out of 9,343)\n"
  24054. "@dots{}\n"
  24055. "2502 packages are missing from '@value{SUBSTITUTE-URLS}' for 'x86_64-linux', among which:\n"
  24056. " 58 kcoreaddons@@5.49.0 /gnu/store/@dots{}-kcoreaddons-5.49.0\n"
  24057. " 46 qgpgme@@1.11.1 /gnu/store/@dots{}-qgpgme-1.11.1\n"
  24058. " 37 perl-http-cookiejar@@0.008 /gnu/store/@dots{}-perl-http-cookiejar-0.008\n"
  24059. " @dots{}\n"
  24060. msgstr ""
  24061. #. type: table
  24062. #: guix-git/doc/guix.texi:16142
  24063. 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."
  24064. msgstr ""
  24065. #. type: table
  24066. #: guix-git/doc/guix.texi:16146
  24067. 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."
  24068. msgstr ""
  24069. #. type: item
  24070. #: guix-git/doc/guix.texi:16147
  24071. #, no-wrap
  24072. msgid "--display-missing"
  24073. msgstr ""
  24074. #. type: table
  24075. #: guix-git/doc/guix.texi:16149
  24076. msgid "Display the list of store items for which substitutes are missing."
  24077. msgstr ""
  24078. #. type: section
  24079. #: guix-git/doc/guix.texi:16152
  24080. #, no-wrap
  24081. msgid "Invoking @command{guix processes}"
  24082. msgstr ""
  24083. #. type: command{#1}
  24084. #: guix-git/doc/guix.texi:16154
  24085. #, fuzzy, no-wrap
  24086. #| msgid "Invoking guix processes"
  24087. msgid "guix processes"
  24088. msgstr "调用guix processes"
  24089. #. type: Plain text
  24090. #: guix-git/doc/guix.texi:16161
  24091. 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:"
  24092. msgstr ""
  24093. #. type: example
  24094. #: guix-git/doc/guix.texi:16167
  24095. #, no-wrap
  24096. msgid ""
  24097. "$ sudo guix processes\n"
  24098. "SessionPID: 19002\n"
  24099. "ClientPID: 19090\n"
  24100. "ClientCommand: guix shell python\n"
  24101. "\n"
  24102. msgstr ""
  24103. #. type: example
  24104. #: guix-git/doc/guix.texi:16171
  24105. #, no-wrap
  24106. msgid ""
  24107. "SessionPID: 19402\n"
  24108. "ClientPID: 19367\n"
  24109. "ClientCommand: guix publish -u guix-publish -p 3000 -C 9 @dots{}\n"
  24110. "\n"
  24111. msgstr ""
  24112. #. type: example
  24113. #: guix-git/doc/guix.texi:16184
  24114. #, no-wrap
  24115. msgid ""
  24116. "SessionPID: 19444\n"
  24117. "ClientPID: 19419\n"
  24118. "ClientCommand: cuirass --cache-directory /var/cache/cuirass @dots{}\n"
  24119. "LockHeld: /gnu/store/@dots{}-perl-ipc-cmd-0.96.lock\n"
  24120. "LockHeld: /gnu/store/@dots{}-python-six-bootstrap-1.11.0.lock\n"
  24121. "LockHeld: /gnu/store/@dots{}-libjpeg-turbo-2.0.0.lock\n"
  24122. "ChildPID: 20495\n"
  24123. "ChildCommand: guix offload x86_64-linux 7200 1 28800\n"
  24124. "ChildPID: 27733\n"
  24125. "ChildCommand: guix offload x86_64-linux 7200 1 28800\n"
  24126. "ChildPID: 27793\n"
  24127. "ChildCommand: guix offload x86_64-linux 7200 1 28800\n"
  24128. msgstr ""
  24129. #. type: Plain text
  24130. #: guix-git/doc/guix.texi:16191
  24131. 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."
  24132. msgstr ""
  24133. #. type: Plain text
  24134. #: guix-git/doc/guix.texi:16198
  24135. 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})."
  24136. msgstr ""
  24137. #. type: Plain text
  24138. #: guix-git/doc/guix.texi:16203
  24139. 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:"
  24140. msgstr ""
  24141. #. type: example
  24142. #: guix-git/doc/guix.texi:16209
  24143. #, no-wrap
  24144. msgid ""
  24145. "$ sudo guix processes | \\\n"
  24146. " recsel -p ClientPID,ClientCommand -e 'LockHeld ~ \"perl\"'\n"
  24147. "ClientPID: 19419\n"
  24148. "ClientCommand: cuirass --cache-directory /var/cache/cuirass @dots{}\n"
  24149. msgstr ""
  24150. #. type: Plain text
  24151. #: guix-git/doc/guix.texi:16212
  24152. #, fuzzy
  24153. msgid "Additional options are listed below."
  24154. msgstr "额外的构建选项"
  24155. #. type: table
  24156. #: guix-git/doc/guix.texi:16222
  24157. msgid "The default option. It outputs a set of Session recutils records that include each @code{ChildProcess} as a field."
  24158. msgstr ""
  24159. #. type: item
  24160. #: guix-git/doc/guix.texi:16223
  24161. #, no-wrap
  24162. msgid "normalized"
  24163. msgstr ""
  24164. #. type: table
  24165. #: guix-git/doc/guix.texi:16230
  24166. 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}."
  24167. msgstr ""
  24168. #. type: example
  24169. #: guix-git/doc/guix.texi:16240
  24170. #, no-wrap
  24171. msgid ""
  24172. "$ guix processes --format=normalized | \\\n"
  24173. " recsel \\\n"
  24174. " -j Session \\\n"
  24175. " -t ChildProcess \\\n"
  24176. " -p Session.PID,PID \\\n"
  24177. " -e 'Session.ClientCommand ~ \"guix build\"'\n"
  24178. "PID: 4435\n"
  24179. "Session_PID: 4278\n"
  24180. "\n"
  24181. msgstr ""
  24182. #. type: example
  24183. #: guix-git/doc/guix.texi:16243
  24184. #, no-wrap
  24185. msgid ""
  24186. "PID: 4554\n"
  24187. "Session_PID: 4278\n"
  24188. "\n"
  24189. msgstr ""
  24190. #. type: example
  24191. #: guix-git/doc/guix.texi:16246
  24192. #, no-wrap
  24193. msgid ""
  24194. "PID: 4646\n"
  24195. "Session_PID: 4278\n"
  24196. msgstr ""
  24197. #. type: Plain text
  24198. #: guix-git/doc/guix.texi:16256
  24199. msgid "You can target computers of different CPU architectures when producing packages (@pxref{Invoking guix package}), packs (@pxref{Invoking guix pack}) or full systems (@pxref{Invoking guix system})."
  24200. msgstr ""
  24201. #. type: Plain text
  24202. #: guix-git/doc/guix.texi:16259
  24203. msgid "GNU Guix supports two distinct mechanisms to target foreign architectures:"
  24204. msgstr ""
  24205. #. type: enumerate
  24206. #: guix-git/doc/guix.texi:16265
  24207. msgid "The traditional @uref{https://en.wikipedia.org/wiki/Cross_compiler,cross-compilation} mechanism."
  24208. msgstr ""
  24209. #. type: enumerate
  24210. #: guix-git/doc/guix.texi:16269
  24211. msgid "The native building mechanism which consists in building using the CPU instruction set of the foreign system you are targeting. It often requires emulation, using the QEMU program for instance."
  24212. msgstr ""
  24213. #. type: cindex
  24214. #: guix-git/doc/guix.texi:16279
  24215. #, fuzzy, no-wrap
  24216. #| msgid "foreign distro"
  24217. msgid "foreign architectures"
  24218. msgstr "别的发行版"
  24219. #. type: Plain text
  24220. #: guix-git/doc/guix.texi:16282
  24221. msgid "The commands supporting cross-compilation are proposing the @option{--list-targets} and @option{--target} options."
  24222. msgstr ""
  24223. #. type: Plain text
  24224. #: guix-git/doc/guix.texi:16285
  24225. msgid "The @option{--list-targets} option lists all the supported targets that can be passed as an argument to @option{--target}."
  24226. msgstr ""
  24227. #. type: example
  24228. #: guix-git/doc/guix.texi:16289
  24229. #, no-wrap
  24230. msgid ""
  24231. "$ guix build --list-targets\n"
  24232. "The available targets are:\n"
  24233. "\n"
  24234. msgstr ""
  24235. #. type: example
  24236. #: guix-git/doc/guix.texi:16301
  24237. #, no-wrap
  24238. msgid ""
  24239. " - aarch64-linux-gnu\n"
  24240. " - arm-linux-gnueabihf\n"
  24241. " - i586-pc-gnu\n"
  24242. " - i686-linux-gnu\n"
  24243. " - i686-w64-mingw32\n"
  24244. " - mips64el-linux-gnu\n"
  24245. " - powerpc-linux-gnu\n"
  24246. " - powerpc64le-linux-gnu\n"
  24247. " - riscv64-linux-gnu\n"
  24248. " - x86_64-linux-gnu\n"
  24249. " - x86_64-w64-mingw32\n"
  24250. msgstr ""
  24251. #. type: Plain text
  24252. #: guix-git/doc/guix.texi:16305
  24253. msgid "Targets are specified as GNU triplets (@pxref{Specifying Target Triplets, GNU configuration triplets,, autoconf, Autoconf})."
  24254. msgstr ""
  24255. #. type: Plain text
  24256. #: guix-git/doc/guix.texi:16309
  24257. msgid "Those triplets are passed to GCC and the other underlying compilers possibly involved when building a package, a system image or any other GNU Guix output."
  24258. msgstr ""
  24259. #. type: example
  24260. #: guix-git/doc/guix.texi:16313
  24261. #, no-wrap
  24262. msgid ""
  24263. "$ guix build --target=aarch64-linux-gnu hello\n"
  24264. "/gnu/store/9926by9qrxa91ijkhw9ndgwp4bn24g9h-hello-2.12\n"
  24265. "\n"
  24266. msgstr ""
  24267. #. type: example
  24268. #: guix-git/doc/guix.texi:16317
  24269. #, no-wrap
  24270. msgid ""
  24271. "$ file /gnu/store/9926by9qrxa91ijkhw9ndgwp4bn24g9h-hello-2.12/bin/hello\n"
  24272. "/gnu/store/9926by9qrxa91ijkhw9ndgwp4bn24g9h-hello-2.12/bin/hello: ELF\n"
  24273. "64-bit LSB executable, ARM aarch64 @dots{}\n"
  24274. msgstr ""
  24275. #. type: Plain text
  24276. #: guix-git/doc/guix.texi:16323
  24277. msgid "The major benefit of cross-compilation is that there are no performance penalty compared to emulation using QEMU. There are however higher risks that some packages fail to cross-compile because fewer users are using this mechanism extensively."
  24278. msgstr ""
  24279. #. type: Plain text
  24280. #: guix-git/doc/guix.texi:16329
  24281. msgid "The commands that support impersonating a specific system have the @option{--list-systems} and @option{--system} options."
  24282. msgstr ""
  24283. #. type: Plain text
  24284. #: guix-git/doc/guix.texi:16332
  24285. msgid "The @option{--list-systems} option lists all the supported systems that can be passed as an argument to @option{--system}."
  24286. msgstr ""
  24287. #. type: example
  24288. #: guix-git/doc/guix.texi:16336
  24289. #, no-wrap
  24290. msgid ""
  24291. "$ guix build --list-systems\n"
  24292. "The available systems are:\n"
  24293. "\n"
  24294. msgstr ""
  24295. #. type: example
  24296. #: guix-git/doc/guix.texi:16346
  24297. #, no-wrap
  24298. msgid ""
  24299. " - x86_64-linux [current]\n"
  24300. " - aarch64-linux\n"
  24301. " - armhf-linux\n"
  24302. " - i586-gnu\n"
  24303. " - i686-linux\n"
  24304. " - mips64el-linux\n"
  24305. " - powerpc-linux\n"
  24306. " - powerpc64le-linux\n"
  24307. " - riscv64-linux\n"
  24308. "\n"
  24309. msgstr ""
  24310. #. type: example
  24311. #: guix-git/doc/guix.texi:16349
  24312. #, no-wrap
  24313. msgid ""
  24314. "$ guix build --system=i686-linux hello\n"
  24315. "/gnu/store/cc0km35s8x2z4pmwkrqqjx46i8b1i3gm-hello-2.12\n"
  24316. "\n"
  24317. msgstr ""
  24318. #. type: example
  24319. #: guix-git/doc/guix.texi:16353
  24320. #, no-wrap
  24321. msgid ""
  24322. "$ file /gnu/store/cc0km35s8x2z4pmwkrqqjx46i8b1i3gm-hello-2.12/bin/hello\n"
  24323. "/gnu/store/cc0km35s8x2z4pmwkrqqjx46i8b1i3gm-hello-2.12/bin/hello: ELF\n"
  24324. "32-bit LSB executable, Intel 80386 @dots{}\n"
  24325. msgstr ""
  24326. #. type: Plain text
  24327. #: guix-git/doc/guix.texi:16357
  24328. msgid "In the above example, the current system is @var{x86_64-linux}. The @var{hello} package is however built for the @var{i686-linux} system."
  24329. msgstr ""
  24330. #. type: Plain text
  24331. #: guix-git/doc/guix.texi:16361
  24332. msgid "This is possible because the @var{i686} CPU instruction set is a subset of the @var{x86_64}, hence @var{i686} targeting binaries can be run on @var{x86_64}."
  24333. msgstr ""
  24334. #. type: Plain text
  24335. #: guix-git/doc/guix.texi:16366
  24336. msgid "Still in the context of the previous example, if picking the @var{aarch64-linux} system and the @command{guix build --system=aarch64-linux hello} has to build some derivations, an extra step might be needed."
  24337. msgstr ""
  24338. #. type: Plain text
  24339. #: guix-git/doc/guix.texi:16374
  24340. msgid "The @var{aarch64-linux} targeting binaries cannot directly be run on a @var{x86_64-linux} system. An emulation layer is requested. The GNU Guix daemon can take advantage of the Linux kernel @uref{https://en.wikipedia.org/wiki/Binfmt_misc,binfmt_misc} mechanism for that. In short, the Linux kernel can defer the execution of a binary targeting a foreign platform, here @var{aarch64-linux}, to a userspace program, usually an emulator."
  24341. msgstr ""
  24342. #. type: Plain text
  24343. #: guix-git/doc/guix.texi:16380
  24344. msgid "There is a service that registers QEMU as a backend for the @code{binfmt_misc} mechanism (@pxref{Virtualization Services, @code{qemu-binfmt-service-type}}). On Debian based foreign distributions, the alternative would be the @code{qemu-user-static} package."
  24345. msgstr ""
  24346. #. type: Plain text
  24347. #: guix-git/doc/guix.texi:16383
  24348. msgid "If the @code{binfmt_misc} mechanism is not setup correctly, the building will fail this way:"
  24349. msgstr ""
  24350. #. type: example
  24351. #: guix-git/doc/guix.texi:16391
  24352. #, no-wrap
  24353. msgid ""
  24354. "$ guix build --system=armhf-linux hello --check\n"
  24355. "@dots{}\n"
  24356. "@ unsupported-platform /gnu/store/jjn969pijv7hff62025yxpfmc8zy0aq0-hello-2.12.drv aarch64-linux\n"
  24357. "while setting up the build environment: a `aarch64-linux' is required to\n"
  24358. "build `/gnu/store/jjn969pijv7hff62025yxpfmc8zy0aq0-hello-2.12.drv', but\n"
  24359. "I am a `x86_64-linux'@dots{}\n"
  24360. msgstr ""
  24361. #. type: Plain text
  24362. #: guix-git/doc/guix.texi:16395
  24363. msgid "whereas, with the @code{binfmt_misc} mechanism correctly linked with QEMU, one can expect to see:"
  24364. msgstr ""
  24365. #. type: example
  24366. #: guix-git/doc/guix.texi:16399
  24367. #, no-wrap
  24368. msgid ""
  24369. "$ guix build --system=armhf-linux hello --check\n"
  24370. "/gnu/store/13xz4nghg39wpymivlwghy08yzj97hlj-hello-2.12\n"
  24371. msgstr ""
  24372. #. type: Plain text
  24373. #: guix-git/doc/guix.texi:16405
  24374. msgid "The main advantage of native building compared to cross-compiling, is that more packages are likely to build correctly. However it comes at a price: compilation backed by QEMU is @emph{way slower} than cross-compilation, because every instruction needs to be emulated."
  24375. msgstr ""
  24376. #. type: Plain text
  24377. #: guix-git/doc/guix.texi:16411
  24378. msgid "The availability of substitutes for the architecture targeted by the @code{--system} option can mitigate this problem. An other way to work around it is to install GNU Guix on a machine whose CPU supports the targeted instruction set, and set it up as an offload machine (@pxref{Daemon Offload Setup})."
  24379. msgstr ""
  24380. #. type: cindex
  24381. #: guix-git/doc/guix.texi:16415
  24382. #, no-wrap
  24383. msgid "system configuration"
  24384. msgstr ""
  24385. #. type: Plain text
  24386. #: guix-git/doc/guix.texi:16421
  24387. 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."
  24388. msgstr ""
  24389. #. type: Plain text
  24390. #: guix-git/doc/guix.texi:16431
  24391. 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."
  24392. msgstr ""
  24393. #. type: Plain text
  24394. #: guix-git/doc/guix.texi:16436
  24395. 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."
  24396. msgstr ""
  24397. #. type: Plain text
  24398. #: guix-git/doc/guix.texi:16466
  24399. 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:"
  24400. msgstr ""
  24401. #. type: code{#1}
  24402. #: guix-git/doc/guix.texi:16467 guix-git/doc/guix.texi:40669
  24403. #: guix-git/doc/guix.texi:44330
  24404. #, no-wrap
  24405. msgid "operating-system"
  24406. msgstr ""
  24407. #. type: include
  24408. #: guix-git/doc/guix.texi:16469
  24409. #, no-wrap
  24410. msgid "os-config-bare-bones.texi"
  24411. msgstr ""
  24412. #. type: Plain text
  24413. #: guix-git/doc/guix.texi:16476
  24414. 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."
  24415. msgstr ""
  24416. #. type: Plain text
  24417. #: guix-git/doc/guix.texi:16481
  24418. 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}."
  24419. msgstr ""
  24420. #. type: unnumberedsubsec
  24421. #: guix-git/doc/guix.texi:16482
  24422. #, no-wrap
  24423. msgid "Bootloader"
  24424. msgstr ""
  24425. #. type: cindex
  24426. #: guix-git/doc/guix.texi:16484
  24427. #, no-wrap
  24428. msgid "legacy boot, on Intel machines"
  24429. msgstr ""
  24430. #. type: cindex
  24431. #: guix-git/doc/guix.texi:16485
  24432. #, no-wrap
  24433. msgid "BIOS boot, on Intel machines"
  24434. msgstr ""
  24435. #. type: cindex
  24436. #: guix-git/doc/guix.texi:16486
  24437. #, no-wrap
  24438. msgid "UEFI boot"
  24439. msgstr ""
  24440. #. type: cindex
  24441. #: guix-git/doc/guix.texi:16487
  24442. #, no-wrap
  24443. msgid "EFI boot"
  24444. msgstr ""
  24445. #. type: Plain text
  24446. #: guix-git/doc/guix.texi:16493
  24447. 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:"
  24448. msgstr ""
  24449. #. type: lisp
  24450. #: guix-git/doc/guix.texi:16498
  24451. #, no-wrap
  24452. msgid ""
  24453. "(bootloader-configuration\n"
  24454. " (bootloader grub-efi-bootloader)\n"
  24455. " (targets '(\"/boot/efi\")))\n"
  24456. msgstr ""
  24457. #. type: Plain text
  24458. #: guix-git/doc/guix.texi:16502
  24459. msgid "@xref{Bootloader Configuration}, for more information on the available configuration options."
  24460. msgstr ""
  24461. #. type: unnumberedsubsec
  24462. #: guix-git/doc/guix.texi:16503
  24463. #, no-wrap
  24464. msgid "Globally-Visible Packages"
  24465. msgstr ""
  24466. #. type: vindex
  24467. #: guix-git/doc/guix.texi:16505
  24468. #, no-wrap
  24469. msgid "%base-packages"
  24470. msgstr ""
  24471. #. type: Plain text
  24472. #: guix-git/doc/guix.texi:16518
  24473. 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:"
  24474. msgstr ""
  24475. #. type: lisp
  24476. #: guix-git/doc/guix.texi:16522
  24477. #, no-wrap
  24478. msgid ""
  24479. "(use-modules (gnu packages))\n"
  24480. "(use-modules (gnu packages dns))\n"
  24481. "\n"
  24482. msgstr ""
  24483. #. type: lisp
  24484. #: guix-git/doc/guix.texi:16527
  24485. #, no-wrap
  24486. msgid ""
  24487. "(operating-system\n"
  24488. " ;; ...\n"
  24489. " (packages (cons (list isc-bind \"utils\")\n"
  24490. " %base-packages)))\n"
  24491. msgstr ""
  24492. #. type: findex
  24493. #: guix-git/doc/guix.texi:16529
  24494. #, no-wrap
  24495. msgid "specification->package"
  24496. msgstr ""
  24497. #. type: Plain text
  24498. #: guix-git/doc/guix.texi:16538
  24499. 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:"
  24500. msgstr ""
  24501. #. type: lisp
  24502. #: guix-git/doc/guix.texi:16541
  24503. #, no-wrap
  24504. msgid ""
  24505. "(use-modules (gnu packages))\n"
  24506. "\n"
  24507. msgstr ""
  24508. #. type: lisp
  24509. #: guix-git/doc/guix.texi:16547
  24510. #, no-wrap
  24511. msgid ""
  24512. "(operating-system\n"
  24513. " ;; ...\n"
  24514. " (packages (append (map specification->package\n"
  24515. " '(\"tcpdump\" \"htop\" \"gnupg@@2.0\"))\n"
  24516. " %base-packages)))\n"
  24517. msgstr ""
  24518. #. type: unnumberedsubsec
  24519. #: guix-git/doc/guix.texi:16549
  24520. #, no-wrap
  24521. msgid "System Services"
  24522. msgstr ""
  24523. #. type: cindex
  24524. #: guix-git/doc/guix.texi:16551 guix-git/doc/guix.texi:39263
  24525. #: guix-git/doc/guix.texi:40910
  24526. #, no-wrap
  24527. msgid "services"
  24528. msgstr ""
  24529. #. type: defvar
  24530. #: guix-git/doc/guix.texi:16552 guix-git/doc/guix.texi:18198
  24531. #, no-wrap
  24532. msgid "%base-services"
  24533. msgstr ""
  24534. #. type: Plain text
  24535. #: guix-git/doc/guix.texi:16562
  24536. 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})."
  24537. msgstr ""
  24538. #. type: cindex
  24539. #: guix-git/doc/guix.texi:16563
  24540. #, no-wrap
  24541. msgid "customization, of services"
  24542. msgstr ""
  24543. #. type: findex
  24544. #: guix-git/doc/guix.texi:16564
  24545. #, no-wrap
  24546. msgid "modify-services"
  24547. msgstr ""
  24548. #. type: Plain text
  24549. #: guix-git/doc/guix.texi:16568
  24550. 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."
  24551. msgstr ""
  24552. #. type: anchor{#1}
  24553. #: guix-git/doc/guix.texi:16574
  24554. msgid "auto-login to TTY"
  24555. msgstr ""
  24556. #. type: Plain text
  24557. #: guix-git/doc/guix.texi:16574
  24558. 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:"
  24559. msgstr ""
  24560. #. type: lisp
  24561. #: guix-git/doc/guix.texi:16591
  24562. #, no-wrap
  24563. msgid ""
  24564. "(define %my-services\n"
  24565. " ;; My very own list of services.\n"
  24566. " (modify-services %base-services\n"
  24567. " (guix-service-type config =>\n"
  24568. " (guix-configuration\n"
  24569. " (inherit config)\n"
  24570. " ;; Fetch substitutes from example.org.\n"
  24571. " (substitute-urls\n"
  24572. " (list \"https://example.org/guix\"\n"
  24573. " \"https://ci.guix.gnu.org\"))))\n"
  24574. " (mingetty-service-type config =>\n"
  24575. " (mingetty-configuration\n"
  24576. " (inherit config)\n"
  24577. " ;; Automatically log in as \"guest\".\n"
  24578. " (auto-login \"guest\")))))\n"
  24579. "\n"
  24580. msgstr ""
  24581. #. type: lisp
  24582. #: guix-git/doc/guix.texi:16595
  24583. #, no-wrap
  24584. msgid ""
  24585. "(operating-system\n"
  24586. " ;; @dots{}\n"
  24587. " (services %my-services))\n"
  24588. msgstr ""
  24589. #. type: Plain text
  24590. #: guix-git/doc/guix.texi:16608
  24591. 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."
  24592. msgstr ""
  24593. #. type: Plain text
  24594. #: guix-git/doc/guix.texi:16615
  24595. 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:"
  24596. msgstr ""
  24597. #. type: include
  24598. #: guix-git/doc/guix.texi:16617
  24599. #, no-wrap
  24600. msgid "os-config-desktop.texi"
  24601. msgstr ""
  24602. #. type: Plain text
  24603. #: guix-git/doc/guix.texi:16622
  24604. msgid "A graphical system with a choice of lightweight window managers instead of full-blown desktop environments would look like this:"
  24605. msgstr ""
  24606. #. type: include
  24607. #: guix-git/doc/guix.texi:16624
  24608. #, no-wrap
  24609. msgid "os-config-lightweight-desktop.texi"
  24610. msgstr ""
  24611. #. type: Plain text
  24612. #: guix-git/doc/guix.texi:16630
  24613. 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."
  24614. msgstr ""
  24615. #. type: Plain text
  24616. #: guix-git/doc/guix.texi:16634
  24617. 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."
  24618. msgstr ""
  24619. #. type: Plain text
  24620. #: guix-git/doc/guix.texi:16641
  24621. 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:"
  24622. msgstr ""
  24623. #. type: lisp
  24624. #: guix-git/doc/guix.texi:16646
  24625. #, no-wrap
  24626. msgid ""
  24627. "(remove (lambda (service)\n"
  24628. " (eq? (service-kind service) avahi-service-type))\n"
  24629. " %desktop-services)\n"
  24630. msgstr ""
  24631. #. type: Plain text
  24632. #: guix-git/doc/guix.texi:16649
  24633. msgid "Alternatively, the @code{modify-services} macro can be used:"
  24634. msgstr ""
  24635. #. type: lisp
  24636. #: guix-git/doc/guix.texi:16653
  24637. #, no-wrap
  24638. msgid ""
  24639. "(modify-services %desktop-services\n"
  24640. " (delete avahi-service-type))\n"
  24641. msgstr ""
  24642. #. type: unnumberedsubsec
  24643. #: guix-git/doc/guix.texi:16656
  24644. #, no-wrap
  24645. msgid "Instantiating the System"
  24646. msgstr ""
  24647. #. type: Plain text
  24648. #: guix-git/doc/guix.texi:16663
  24649. 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})."
  24650. msgstr ""
  24651. #. type: quotation
  24652. #: guix-git/doc/guix.texi:16667
  24653. msgid "We recommend that you keep this @file{my-system-config.scm} file safe and under version control to easily track changes to your configuration."
  24654. msgstr ""
  24655. #. type: Plain text
  24656. #: guix-git/doc/guix.texi:16676
  24657. 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."
  24658. msgstr ""
  24659. #. type: cindex
  24660. #: guix-git/doc/guix.texi:16677
  24661. #, no-wrap
  24662. msgid "roll-back, of the operating system"
  24663. msgstr ""
  24664. #. type: Plain text
  24665. #: guix-git/doc/guix.texi:16687
  24666. 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}."
  24667. msgstr ""
  24668. #. type: Plain text
  24669. #: guix-git/doc/guix.texi:16693
  24670. 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})."
  24671. msgstr ""
  24672. #. type: unnumberedsubsec
  24673. #: guix-git/doc/guix.texi:16694
  24674. #, no-wrap
  24675. msgid "The Programming Interface"
  24676. msgstr ""
  24677. #. type: Plain text
  24678. #: guix-git/doc/guix.texi:16699
  24679. msgid "At the Scheme level, the bulk of an @code{operating-system} declaration is instantiated with the following monadic procedure (@pxref{The Store Monad}):"
  24680. msgstr ""
  24681. #. type: deffn
  24682. #: guix-git/doc/guix.texi:16700
  24683. #, no-wrap
  24684. msgid "{Monadic Procedure} operating-system-derivation os"
  24685. msgstr ""
  24686. #. type: deffn
  24687. #: guix-git/doc/guix.texi:16703
  24688. msgid "Return a derivation that builds @var{os}, an @code{operating-system} object (@pxref{Derivations})."
  24689. msgstr ""
  24690. #. type: deffn
  24691. #: guix-git/doc/guix.texi:16707
  24692. 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}."
  24693. msgstr ""
  24694. #. type: Plain text
  24695. #: guix-git/doc/guix.texi:16712
  24696. 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!"
  24697. msgstr ""
  24698. #. type: section
  24699. #: guix-git/doc/guix.texi:16715
  24700. #, no-wrap
  24701. msgid "@code{operating-system} Reference"
  24702. msgstr ""
  24703. #. type: Plain text
  24704. #: guix-git/doc/guix.texi:16720
  24705. msgid "This section summarizes all the options available in @code{operating-system} declarations (@pxref{Using the Configuration System})."
  24706. msgstr ""
  24707. #. type: deftp
  24708. #: guix-git/doc/guix.texi:16721
  24709. #, no-wrap
  24710. msgid "{Data Type} operating-system"
  24711. msgstr ""
  24712. #. type: deftp
  24713. #: guix-git/doc/guix.texi:16725
  24714. 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})."
  24715. msgstr ""
  24716. #. type: item
  24717. #: guix-git/doc/guix.texi:16727
  24718. #, fuzzy, no-wrap
  24719. msgid "@code{kernel} (default: @code{linux-libre})"
  24720. msgstr "@code{gnome}(默认值:@code{gnome})"
  24721. #. type: table
  24722. #: guix-git/doc/guix.texi:16732
  24723. 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.}."
  24724. msgstr ""
  24725. #. type: code{#1}
  24726. #: guix-git/doc/guix.texi:16733 guix-git/doc/guix.texi:35135
  24727. #, no-wrap
  24728. msgid "hurd"
  24729. msgstr ""
  24730. #. type: item
  24731. #: guix-git/doc/guix.texi:16734
  24732. #, fuzzy, no-wrap
  24733. msgid "@code{hurd} (default: @code{#f})"
  24734. msgstr "@code{port}(默认值:@code{22})"
  24735. #. type: table
  24736. #: guix-git/doc/guix.texi:16739
  24737. 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."
  24738. msgstr ""
  24739. #. type: quotation
  24740. #: guix-git/doc/guix.texi:16742
  24741. msgid "This feature is experimental and only supported for disk images."
  24742. msgstr ""
  24743. #. type: item
  24744. #: guix-git/doc/guix.texi:16744
  24745. #, fuzzy, no-wrap
  24746. msgid "@code{kernel-loadable-modules} (default: '())"
  24747. msgstr "@code{features} (@code{'()})"
  24748. #. type: table
  24749. #: guix-git/doc/guix.texi:16747
  24750. msgid "A list of objects (usually packages) to collect loadable kernel modules from--e.g. @code{(list ddcci-driver-linux)}."
  24751. msgstr ""
  24752. #. type: item
  24753. #: guix-git/doc/guix.texi:16748
  24754. #, fuzzy, no-wrap
  24755. msgid "@code{kernel-arguments} (default: @code{%default-kernel-arguments})"
  24756. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  24757. #. type: table
  24758. #: guix-git/doc/guix.texi:16751
  24759. msgid "List of strings or gexps representing additional arguments to pass on the command-line of the kernel---e.g., @code{(\"console=ttyS0\")}."
  24760. msgstr ""
  24761. #. type: code{#1}
  24762. #: guix-git/doc/guix.texi:16752 guix-git/doc/guix.texi:39507
  24763. #: guix-git/doc/guix.texi:39526
  24764. #, no-wrap
  24765. msgid "bootloader"
  24766. msgstr ""
  24767. #. type: table
  24768. #: guix-git/doc/guix.texi:16754
  24769. msgid "The system bootloader configuration object. @xref{Bootloader Configuration}."
  24770. msgstr ""
  24771. #. type: code{#1}
  24772. #: guix-git/doc/guix.texi:16755 guix-git/doc/guix.texi:39749
  24773. #: guix-git/doc/guix.texi:44410
  24774. #, no-wrap
  24775. msgid "label"
  24776. msgstr ""
  24777. #. type: table
  24778. #: guix-git/doc/guix.texi:16758
  24779. 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."
  24780. msgstr ""
  24781. #. type: item
  24782. #: guix-git/doc/guix.texi:16759 guix-git/doc/guix.texi:18619
  24783. #: guix-git/doc/guix.texi:22454 guix-git/doc/guix.texi:39670
  24784. #, no-wrap
  24785. msgid "@code{keyboard-layout} (default: @code{#f})"
  24786. msgstr ""
  24787. #. type: table
  24788. #: guix-git/doc/guix.texi:16764
  24789. 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."
  24790. msgstr ""
  24791. #. type: table
  24792. #: guix-git/doc/guix.texi:16769
  24793. 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})."
  24794. msgstr ""
  24795. #. type: quotation
  24796. #: guix-git/doc/guix.texi:16776
  24797. 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."
  24798. msgstr ""
  24799. #. type: item
  24800. #: guix-git/doc/guix.texi:16778
  24801. #, no-wrap
  24802. msgid "@code{initrd-modules} (default: @code{%base-initrd-modules})"
  24803. msgstr ""
  24804. #. type: cindex
  24805. #: guix-git/doc/guix.texi:16779 guix-git/doc/guix.texi:39300
  24806. #: guix-git/doc/guix.texi:39433
  24807. #, no-wrap
  24808. msgid "initrd"
  24809. msgstr ""
  24810. #. type: cindex
  24811. #: guix-git/doc/guix.texi:16780 guix-git/doc/guix.texi:39301
  24812. #: guix-git/doc/guix.texi:39434
  24813. #, no-wrap
  24814. msgid "initial RAM disk"
  24815. msgstr ""
  24816. #. type: table
  24817. #: guix-git/doc/guix.texi:16783
  24818. msgid "The list of Linux kernel modules that need to be available in the initial RAM disk. @xref{Initial RAM Disk}."
  24819. msgstr ""
  24820. #. type: item
  24821. #: guix-git/doc/guix.texi:16784
  24822. #, no-wrap
  24823. msgid "@code{initrd} (default: @code{base-initrd})"
  24824. msgstr ""
  24825. #. type: table
  24826. #: guix-git/doc/guix.texi:16788
  24827. 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}."
  24828. msgstr ""
  24829. #. type: item
  24830. #: guix-git/doc/guix.texi:16789
  24831. #, fuzzy, no-wrap
  24832. msgid "@code{firmware} (default: @code{%base-firmware})"
  24833. msgstr "@code{mate}(默认值:@code{mate})"
  24834. #. type: cindex
  24835. #: guix-git/doc/guix.texi:16790
  24836. #, no-wrap
  24837. msgid "firmware"
  24838. msgstr ""
  24839. #. type: table
  24840. #: guix-git/doc/guix.texi:16792
  24841. msgid "List of firmware packages loadable by the operating system kernel."
  24842. msgstr ""
  24843. #. type: table
  24844. #: guix-git/doc/guix.texi:16797
  24845. 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."
  24846. msgstr ""
  24847. #. type: code{#1}
  24848. #: guix-git/doc/guix.texi:16798 guix-git/doc/guix.texi:40688
  24849. #, no-wrap
  24850. msgid "host-name"
  24851. msgstr ""
  24852. #. type: table
  24853. #: guix-git/doc/guix.texi:16800
  24854. msgid "The host name."
  24855. msgstr ""
  24856. #. type: item
  24857. #: guix-git/doc/guix.texi:16801
  24858. #, no-wrap
  24859. msgid "@code{mapped-devices} (default: @code{'()})"
  24860. msgstr ""
  24861. #. type: table
  24862. #: guix-git/doc/guix.texi:16803
  24863. msgid "A list of mapped devices. @xref{Mapped Devices}."
  24864. msgstr ""
  24865. #. type: code{#1}
  24866. #: guix-git/doc/guix.texi:16804
  24867. #, no-wrap
  24868. msgid "file-systems"
  24869. msgstr ""
  24870. #. type: table
  24871. #: guix-git/doc/guix.texi:16806
  24872. msgid "A list of file systems. @xref{File Systems}."
  24873. msgstr ""
  24874. #. type: item
  24875. #: guix-git/doc/guix.texi:16807
  24876. #, no-wrap
  24877. msgid "@code{swap-devices} (default: @code{'()})"
  24878. msgstr ""
  24879. #. type: cindex
  24880. #: guix-git/doc/guix.texi:16808
  24881. #, no-wrap
  24882. msgid "swap devices"
  24883. msgstr ""
  24884. #. type: table
  24885. #: guix-git/doc/guix.texi:16810
  24886. msgid "A list of swap spaces. @xref{Swap Space}."
  24887. msgstr ""
  24888. #. type: item
  24889. #: guix-git/doc/guix.texi:16811
  24890. #, no-wrap
  24891. msgid "@code{users} (default: @code{%base-user-accounts})"
  24892. msgstr ""
  24893. #. type: itemx
  24894. #: guix-git/doc/guix.texi:16812
  24895. #, fuzzy, no-wrap
  24896. msgid "@code{groups} (default: @code{%base-groups})"
  24897. msgstr "@code{gnome}(默认值:@code{gnome})"
  24898. #. type: table
  24899. #: guix-git/doc/guix.texi:16814
  24900. msgid "List of user accounts and groups. @xref{User Accounts}."
  24901. msgstr ""
  24902. #. type: table
  24903. #: guix-git/doc/guix.texi:16817
  24904. msgid "If the @code{users} list lacks a user account with UID@tie{}0, a ``root'' account with UID@tie{}0 is automatically added."
  24905. msgstr ""
  24906. #. type: item
  24907. #: guix-git/doc/guix.texi:16818
  24908. #, no-wrap
  24909. msgid "@code{skeletons} (default: @code{(default-skeletons)})"
  24910. msgstr ""
  24911. #. type: table
  24912. #: guix-git/doc/guix.texi:16822
  24913. 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."
  24914. msgstr ""
  24915. #. type: table
  24916. #: guix-git/doc/guix.texi:16824
  24917. msgid "For instance, a valid value may look like this:"
  24918. msgstr ""
  24919. #. type: lisp
  24920. #: guix-git/doc/guix.texi:16830
  24921. #, no-wrap
  24922. msgid ""
  24923. "`((\".bashrc\" ,(plain-file \"bashrc\" \"echo Hello\\n\"))\n"
  24924. " (\".guile\" ,(plain-file \"guile\"\n"
  24925. " \"(use-modules (ice-9 readline))\n"
  24926. " (activate-readline)\")))\n"
  24927. msgstr ""
  24928. #. type: item
  24929. #: guix-git/doc/guix.texi:16832
  24930. #, fuzzy, no-wrap
  24931. msgid "@code{issue} (default: @code{%default-issue})"
  24932. msgstr "@code{mate}(默认值:@code{mate})"
  24933. #. type: table
  24934. #: guix-git/doc/guix.texi:16835
  24935. msgid "A string denoting the contents of the @file{/etc/issue} file, which is displayed when users log in on a text console."
  24936. msgstr ""
  24937. #. type: item
  24938. #: guix-git/doc/guix.texi:16836
  24939. #, fuzzy, no-wrap
  24940. msgid "@code{packages} (default: @code{%base-packages})"
  24941. msgstr "@code{xfce}(默认值:@code{xfce})"
  24942. #. type: table
  24943. #: guix-git/doc/guix.texi:16840
  24944. 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:"
  24945. msgstr ""
  24946. #. type: lisp
  24947. #: guix-git/doc/guix.texi:16845
  24948. #, no-wrap
  24949. msgid ""
  24950. "(cons* git ; the default \"out\" output\n"
  24951. " (list git \"send-email\") ; another output of git\n"
  24952. " %base-packages) ; the default set\n"
  24953. msgstr ""
  24954. #. type: table
  24955. #: guix-git/doc/guix.texi:16850
  24956. msgid "The default set includes core utilities and it is good practice to install non-core utilities in user profiles (@pxref{Invoking guix package})."
  24957. msgstr ""
  24958. #. type: item
  24959. #: guix-git/doc/guix.texi:16851
  24960. #, fuzzy, no-wrap
  24961. msgid "@code{timezone} (default: @code{\"Etc/UTC\"})"
  24962. msgstr "@code{speed}(默认值:@code{1.0})"
  24963. #. type: table
  24964. #: guix-git/doc/guix.texi:16853
  24965. msgid "A timezone identifying string---e.g., @code{\"Europe/Paris\"}."
  24966. msgstr ""
  24967. #. type: table
  24968. #: guix-git/doc/guix.texi:16857
  24969. 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."
  24970. msgstr ""
  24971. #. type: item
  24972. #: guix-git/doc/guix.texi:16858 guix-git/doc/guix.texi:24694
  24973. #, no-wrap
  24974. msgid "@code{locale} (default: @code{\"en_US.utf8\"})"
  24975. msgstr ""
  24976. #. type: table
  24977. #: guix-git/doc/guix.texi:16861
  24978. msgid "The name of the default locale (@pxref{Locale Names,,, libc, The GNU C Library Reference Manual}). @xref{Locales}, for more information."
  24979. msgstr ""
  24980. #. type: item
  24981. #: guix-git/doc/guix.texi:16862
  24982. #, fuzzy, no-wrap
  24983. msgid "@code{locale-definitions} (default: @code{%default-locale-definitions})"
  24984. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  24985. #. type: table
  24986. #: guix-git/doc/guix.texi:16865
  24987. msgid "The list of locale definitions to be compiled and that may be used at run time. @xref{Locales}."
  24988. msgstr ""
  24989. #. type: item
  24990. #: guix-git/doc/guix.texi:16866
  24991. #, no-wrap
  24992. msgid "@code{locale-libcs} (default: @code{(list @var{glibc})})"
  24993. msgstr ""
  24994. #. type: table
  24995. #: guix-git/doc/guix.texi:16870
  24996. 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."
  24997. msgstr ""
  24998. #. type: item
  24999. #: guix-git/doc/guix.texi:16871
  25000. #, fuzzy, no-wrap
  25001. msgid "@code{name-service-switch} (default: @code{%default-nss})"
  25002. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  25003. #. type: table
  25004. #: guix-git/doc/guix.texi:16875
  25005. msgid "Configuration of the libc name service switch (NSS)---a @code{<name-service-switch>} object. @xref{Name Service Switch}, for details."
  25006. msgstr ""
  25007. #. type: item
  25008. #: guix-git/doc/guix.texi:16876
  25009. #, fuzzy, no-wrap
  25010. msgid "@code{services} (default: @code{%base-services})"
  25011. msgstr "@code{xfce}(默认值:@code{xfce})"
  25012. #. type: table
  25013. #: guix-git/doc/guix.texi:16878
  25014. msgid "A list of service objects denoting system services. @xref{Services}."
  25015. msgstr ""
  25016. #. type: anchor{#1}
  25017. #: guix-git/doc/guix.texi:16880
  25018. #, fuzzy
  25019. #| msgid "operating-system Reference"
  25020. msgid "operating-system-essential-services"
  25021. msgstr "操作系统参考"
  25022. #. type: cindex
  25023. #: guix-git/doc/guix.texi:16880
  25024. #, no-wrap
  25025. msgid "essential services"
  25026. msgstr ""
  25027. #. type: item
  25028. #: guix-git/doc/guix.texi:16881
  25029. #, no-wrap
  25030. msgid "@code{essential-services} (default: ...)"
  25031. msgstr ""
  25032. #. type: table
  25033. #: guix-git/doc/guix.texi:16887
  25034. msgid "The list of ``essential services''---i.e., things like instances of @code{system-service-type} (@pxref{Service Reference}) and @code{host-name-service-type}, which are derived from the operating system definition itself. As a user you should @emph{never} need to touch this field."
  25035. msgstr ""
  25036. #. type: item
  25037. #: guix-git/doc/guix.texi:16888
  25038. #, no-wrap
  25039. msgid "@code{pam-services} (default: @code{(base-pam-services)})"
  25040. msgstr ""
  25041. #. type: cindex
  25042. #: guix-git/doc/guix.texi:16889
  25043. #, no-wrap
  25044. msgid "PAM"
  25045. msgstr ""
  25046. #. type: cindex
  25047. #: guix-git/doc/guix.texi:16890
  25048. #, no-wrap
  25049. msgid "pluggable authentication modules"
  25050. msgstr ""
  25051. #. type: table
  25052. #: guix-git/doc/guix.texi:16893
  25053. msgid "Linux @dfn{pluggable authentication module} (PAM) services."
  25054. msgstr ""
  25055. #. type: item
  25056. #: guix-git/doc/guix.texi:16894
  25057. #, fuzzy, no-wrap
  25058. msgid "@code{setuid-programs} (default: @code{%setuid-programs})"
  25059. msgstr "@code{features} (@code{'()})"
  25060. #. type: table
  25061. #: guix-git/doc/guix.texi:16897
  25062. msgid "List of @code{<setuid-program>}. @xref{Setuid Programs}, for more information."
  25063. msgstr ""
  25064. #. type: item
  25065. #: guix-git/doc/guix.texi:16898
  25066. #, fuzzy, no-wrap
  25067. msgid "@code{sudoers-file} (default: @code{%sudoers-specification})"
  25068. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  25069. #. type: cindex
  25070. #: guix-git/doc/guix.texi:16899
  25071. #, no-wrap
  25072. msgid "sudoers file"
  25073. msgstr ""
  25074. #. type: table
  25075. #: guix-git/doc/guix.texi:16902
  25076. msgid "The contents of the @file{/etc/sudoers} file as a file-like object (@pxref{G-Expressions, @code{local-file} and @code{plain-file}})."
  25077. msgstr ""
  25078. #. type: table
  25079. #: guix-git/doc/guix.texi:16907
  25080. 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}."
  25081. msgstr ""
  25082. #. type: defmac
  25083. #: guix-git/doc/guix.texi:16910
  25084. #, fuzzy, no-wrap
  25085. #| msgid "operating-system Reference"
  25086. msgid "this-operating-system"
  25087. msgstr "操作系统参考"
  25088. #. type: defmac
  25089. #: guix-git/doc/guix.texi:16913
  25090. msgid "When used in the @emph{lexical scope} of an operating system field definition, this identifier resolves to the operating system being defined."
  25091. msgstr ""
  25092. #. type: defmac
  25093. #: guix-git/doc/guix.texi:16916
  25094. msgid "The example below shows how to refer to the operating system being defined in the definition of the @code{label} field:"
  25095. msgstr ""
  25096. #. type: lisp
  25097. #: guix-git/doc/guix.texi:16919
  25098. #, no-wrap
  25099. msgid ""
  25100. "(use-modules (gnu) (guix))\n"
  25101. "\n"
  25102. msgstr ""
  25103. #. type: lisp
  25104. #: guix-git/doc/guix.texi:16924
  25105. #, no-wrap
  25106. msgid ""
  25107. "(operating-system\n"
  25108. " ;; ...\n"
  25109. " (label (package-full-name\n"
  25110. " (operating-system-kernel this-operating-system))))\n"
  25111. msgstr ""
  25112. #. type: defmac
  25113. #: guix-git/doc/guix.texi:16928
  25114. msgid "It is an error to refer to @code{this-operating-system} outside an operating system definition."
  25115. msgstr ""
  25116. #. type: Plain text
  25117. #: guix-git/doc/guix.texi:16939
  25118. 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:"
  25119. msgstr ""
  25120. #. type: lisp
  25121. #: guix-git/doc/guix.texi:16945
  25122. #, no-wrap
  25123. msgid ""
  25124. "(file-system\n"
  25125. " (mount-point \"/home\")\n"
  25126. " (device \"/dev/sda3\")\n"
  25127. " (type \"ext4\"))\n"
  25128. msgstr ""
  25129. #. type: Plain text
  25130. #: guix-git/doc/guix.texi:16949
  25131. msgid "As usual, some of the fields are mandatory---those shown in the example above---while others can be omitted. These are described below."
  25132. msgstr ""
  25133. #. type: deftp
  25134. #: guix-git/doc/guix.texi:16950
  25135. #, no-wrap
  25136. msgid "{Data Type} file-system"
  25137. msgstr ""
  25138. #. type: deftp
  25139. #: guix-git/doc/guix.texi:16953
  25140. msgid "Objects of this type represent file systems to be mounted. They contain the following members:"
  25141. msgstr ""
  25142. #. type: code{#1}
  25143. #: guix-git/doc/guix.texi:16955 guix-git/doc/guix.texi:17345
  25144. #: guix-git/doc/guix.texi:20033 guix-git/doc/guix.texi:37886
  25145. #, no-wrap
  25146. msgid "type"
  25147. msgstr ""
  25148. #. type: table
  25149. #: guix-git/doc/guix.texi:16958
  25150. msgid "This is a string specifying the type of the file system---e.g., @code{\"ext4\"}."
  25151. msgstr ""
  25152. #. type: code{#1}
  25153. #: guix-git/doc/guix.texi:16959
  25154. #, no-wrap
  25155. msgid "mount-point"
  25156. msgstr ""
  25157. #. type: table
  25158. #: guix-git/doc/guix.texi:16961
  25159. msgid "This designates the place where the file system is to be mounted."
  25160. msgstr ""
  25161. #. type: item
  25162. #: guix-git/doc/guix.texi:16962 guix-git/doc/guix.texi:19983
  25163. #, no-wrap
  25164. msgid "device"
  25165. msgstr ""
  25166. #. type: table
  25167. #: guix-git/doc/guix.texi:16972
  25168. 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.}."
  25169. msgstr ""
  25170. #. type: findex
  25171. #: guix-git/doc/guix.texi:16973
  25172. #, no-wrap
  25173. msgid "file-system-label"
  25174. msgstr ""
  25175. #. type: table
  25176. #: guix-git/doc/guix.texi:16978
  25177. 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:"
  25178. msgstr ""
  25179. #. type: lisp
  25180. #: guix-git/doc/guix.texi:16984
  25181. #, no-wrap
  25182. msgid ""
  25183. "(file-system\n"
  25184. " (mount-point \"/home\")\n"
  25185. " (type \"ext4\")\n"
  25186. " (device (file-system-label \"my-home\")))\n"
  25187. msgstr ""
  25188. #. type: code{#1}
  25189. #: guix-git/doc/guix.texi:16986 guix-git/doc/guix.texi:37607
  25190. #: guix-git/doc/guix.texi:37623
  25191. #, no-wrap
  25192. msgid "uuid"
  25193. msgstr ""
  25194. #. type: table
  25195. #: guix-git/doc/guix.texi:16994
  25196. 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:"
  25197. msgstr ""
  25198. #. type: lisp
  25199. #: guix-git/doc/guix.texi:17000
  25200. #, no-wrap
  25201. msgid ""
  25202. "(file-system\n"
  25203. " (mount-point \"/home\")\n"
  25204. " (type \"ext4\")\n"
  25205. " (device (uuid \"4dab5feb-d176-45de-b287-9b0a6e4c01cb\")))\n"
  25206. msgstr ""
  25207. #. type: table
  25208. #: guix-git/doc/guix.texi:17008
  25209. 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."
  25210. msgstr ""
  25211. #. type: item
  25212. #: guix-git/doc/guix.texi:17009 guix-git/doc/guix.texi:44419
  25213. #, no-wrap
  25214. msgid "@code{flags} (default: @code{'()})"
  25215. msgstr ""
  25216. #. type: table
  25217. #: guix-git/doc/guix.texi:17021
  25218. 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{no-diratime} (likewise for directories only), @code{strict-atime} (update file access time), @code{lazy-time} (only update time on the in-memory version of the file inode), @code{no-exec} (disallow program execution), and @code{shared} (make the mount shared). @xref{Mount-Unmount-Remount,,, libc, The GNU C Library Reference Manual}, for more information on these flags."
  25219. msgstr ""
  25220. #. type: item
  25221. #: guix-git/doc/guix.texi:17022
  25222. #, no-wrap
  25223. msgid "@code{options} (default: @code{#f})"
  25224. msgstr ""
  25225. #. type: table
  25226. #: guix-git/doc/guix.texi:17026
  25227. 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."
  25228. msgstr ""
  25229. #. type: table
  25230. #: guix-git/doc/guix.texi:17030
  25231. msgid "Run @command{man 8 mount} for options for various file systems, but beware that what it lists as file-system-independent ``mount options'' are in fact flags, and belong in the @code{flags} field described above."
  25232. msgstr ""
  25233. #. type: table
  25234. #: guix-git/doc/guix.texi:17035
  25235. msgid "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."
  25236. msgstr ""
  25237. #. type: item
  25238. #: guix-git/doc/guix.texi:17036
  25239. #, no-wrap
  25240. msgid "@code{mount?} (default: @code{#t})"
  25241. msgstr ""
  25242. #. type: table
  25243. #: guix-git/doc/guix.texi:17041
  25244. 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."
  25245. msgstr ""
  25246. #. type: item
  25247. #: guix-git/doc/guix.texi:17042
  25248. #, no-wrap
  25249. msgid "@code{needed-for-boot?} (default: @code{#f})"
  25250. msgstr ""
  25251. #. type: table
  25252. #: guix-git/doc/guix.texi:17047
  25253. 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."
  25254. msgstr ""
  25255. #. type: item
  25256. #: guix-git/doc/guix.texi:17048
  25257. #, no-wrap
  25258. msgid "@code{check?} (default: @code{#t})"
  25259. msgstr ""
  25260. #. type: table
  25261. #: guix-git/doc/guix.texi:17052
  25262. 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."
  25263. msgstr ""
  25264. #. type: item
  25265. #: guix-git/doc/guix.texi:17053
  25266. #, fuzzy, no-wrap
  25267. msgid "@code{skip-check-if-clean?} (default: @code{#t})"
  25268. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  25269. #. type: table
  25270. #: guix-git/doc/guix.texi:17058
  25271. 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."
  25272. msgstr ""
  25273. #. type: table
  25274. #: guix-git/doc/guix.texi:17062
  25275. 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!"
  25276. msgstr ""
  25277. #. type: table
  25278. #: guix-git/doc/guix.texi:17066
  25279. 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."
  25280. msgstr ""
  25281. #. type: item
  25282. #: guix-git/doc/guix.texi:17067
  25283. #, fuzzy, no-wrap
  25284. msgid "@code{repair} (default: @code{'preen})"
  25285. msgstr "@code{features} (@code{'()})"
  25286. #. type: table
  25287. #: guix-git/doc/guix.texi:17070
  25288. msgid "When @code{check?} finds errors, it can (try to) repair them and continue booting. This option controls when and how to do so."
  25289. msgstr ""
  25290. #. type: table
  25291. #: guix-git/doc/guix.texi:17074
  25292. 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."
  25293. msgstr ""
  25294. #. type: table
  25295. #: guix-git/doc/guix.texi:17077
  25296. 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."
  25297. msgstr ""
  25298. #. type: table
  25299. #: guix-git/doc/guix.texi:17081
  25300. 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''."
  25301. msgstr ""
  25302. #. type: item
  25303. #: guix-git/doc/guix.texi:17082
  25304. #, no-wrap
  25305. msgid "@code{create-mount-point?} (default: @code{#f})"
  25306. msgstr ""
  25307. #. type: table
  25308. #: guix-git/doc/guix.texi:17084
  25309. msgid "When true, the mount point is created if it does not exist yet."
  25310. msgstr ""
  25311. #. type: item
  25312. #: guix-git/doc/guix.texi:17085
  25313. #, fuzzy, no-wrap
  25314. msgid "@code{mount-may-fail?} (default: @code{#f})"
  25315. msgstr "@code{max-journal-usage}(默认值:@code{#f})"
  25316. #. type: table
  25317. #: guix-git/doc/guix.texi:17090
  25318. 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."
  25319. msgstr ""
  25320. #. type: table
  25321. #: guix-git/doc/guix.texi:17095
  25322. 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."
  25323. msgstr ""
  25324. #. type: table
  25325. #: guix-git/doc/guix.texi:17099
  25326. 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}."
  25327. msgstr ""
  25328. #. type: table
  25329. #: guix-git/doc/guix.texi:17102
  25330. msgid "Another example is a file system that depends on a mapped device, for example for an encrypted partition (@pxref{Mapped Devices})."
  25331. msgstr ""
  25332. #. type: defun
  25333. #: guix-git/doc/guix.texi:17105
  25334. #, fuzzy, no-wrap
  25335. msgid "file-system-label str"
  25336. msgstr "网络文件系统"
  25337. #. type: defun
  25338. #: guix-git/doc/guix.texi:17108
  25339. msgid "This procedure returns an opaque file system label from @var{str}, a string:"
  25340. msgstr ""
  25341. #. type: lisp
  25342. #: guix-git/doc/guix.texi:17112
  25343. #, no-wrap
  25344. msgid ""
  25345. "(file-system-label \"home\")\n"
  25346. "@result{} #<file-system-label \"home\">\n"
  25347. msgstr ""
  25348. #. type: defun
  25349. #: guix-git/doc/guix.texi:17116
  25350. msgid "File system labels are used to refer to file systems by label rather than by device name. See above for examples."
  25351. msgstr ""
  25352. #. type: Plain text
  25353. #: guix-git/doc/guix.texi:17120
  25354. msgid "The @code{(gnu system file-systems)} exports the following useful variables."
  25355. msgstr ""
  25356. #. type: defvar
  25357. #: guix-git/doc/guix.texi:17121
  25358. #, fuzzy, no-wrap
  25359. msgid "%base-file-systems"
  25360. msgstr "网络文件系统"
  25361. #. type: defvar
  25362. #: guix-git/doc/guix.texi:17126
  25363. 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."
  25364. msgstr ""
  25365. #. type: defvar
  25366. #: guix-git/doc/guix.texi:17128
  25367. #, no-wrap
  25368. msgid "%pseudo-terminal-file-system"
  25369. msgstr ""
  25370. #. type: defvar
  25371. #: guix-git/doc/guix.texi:17134
  25372. 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}."
  25373. msgstr ""
  25374. #. type: defvar
  25375. #: guix-git/doc/guix.texi:17136
  25376. #, no-wrap
  25377. msgid "%shared-memory-file-system"
  25378. msgstr ""
  25379. #. type: defvar
  25380. #: guix-git/doc/guix.texi:17140
  25381. 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})."
  25382. msgstr ""
  25383. #. type: defvar
  25384. #: guix-git/doc/guix.texi:17142
  25385. #, no-wrap
  25386. msgid "%immutable-store"
  25387. msgstr ""
  25388. #. type: defvar
  25389. #: guix-git/doc/guix.texi:17147
  25390. 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."
  25391. msgstr ""
  25392. #. type: defvar
  25393. #: guix-git/doc/guix.texi:17150
  25394. msgid "The daemon itself is still able to write to the store: it remounts it read-write in its own ``name space.''"
  25395. msgstr ""
  25396. #. type: defvar
  25397. #: guix-git/doc/guix.texi:17152
  25398. #, no-wrap
  25399. msgid "%binary-format-file-system"
  25400. msgstr ""
  25401. #. type: defvar
  25402. #: guix-git/doc/guix.texi:17156
  25403. 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."
  25404. msgstr ""
  25405. #. type: defvar
  25406. #: guix-git/doc/guix.texi:17158
  25407. #, no-wrap
  25408. msgid "%fuse-control-file-system"
  25409. msgstr ""
  25410. #. type: defvar
  25411. #: guix-git/doc/guix.texi:17162
  25412. 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."
  25413. msgstr ""
  25414. #. type: Plain text
  25415. #: guix-git/doc/guix.texi:17166
  25416. msgid "The @code{(gnu system uuid)} module provides tools to deal with file system ``unique identifiers'' (UUIDs)."
  25417. msgstr ""
  25418. #. type: defun
  25419. #: guix-git/doc/guix.texi:17167
  25420. #, no-wrap
  25421. msgid "uuid str [type]"
  25422. msgstr ""
  25423. #. type: defun
  25424. #: guix-git/doc/guix.texi:17170
  25425. msgid "Return an opaque UUID (unique identifier) object of the given @var{type} (a symbol) by parsing @var{str} (a string):"
  25426. msgstr ""
  25427. #. type: lisp
  25428. #: guix-git/doc/guix.texi:17174
  25429. #, no-wrap
  25430. msgid ""
  25431. "(uuid \"4dab5feb-d176-45de-b287-9b0a6e4c01cb\")\n"
  25432. "@result{} #<<uuid> type: dce bv: @dots{}>\n"
  25433. "\n"
  25434. msgstr ""
  25435. #. type: lisp
  25436. #: guix-git/doc/guix.texi:17177
  25437. #, no-wrap
  25438. msgid ""
  25439. "(uuid \"1234-ABCD\" 'fat)\n"
  25440. "@result{} #<<uuid> type: fat bv: @dots{}>\n"
  25441. msgstr ""
  25442. #. type: defun
  25443. #: guix-git/doc/guix.texi:17181
  25444. msgid "@var{type} may be one of @code{dce}, @code{iso9660}, @code{fat}, @code{ntfs}, or one of the commonly found synonyms for these."
  25445. msgstr ""
  25446. #. type: defun
  25447. #: guix-git/doc/guix.texi:17184
  25448. msgid "UUIDs are another way to unambiguously refer to file systems in operating system configuration. See the examples above."
  25449. msgstr ""
  25450. #. type: Plain text
  25451. #: guix-git/doc/guix.texi:17198
  25452. 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."
  25453. msgstr ""
  25454. #. type: Plain text
  25455. #: guix-git/doc/guix.texi:17201
  25456. msgid "In its simplest usage, a Btrfs file system can be described, for example, by:"
  25457. msgstr ""
  25458. #. type: lisp
  25459. #: guix-git/doc/guix.texi:17207
  25460. #, no-wrap
  25461. msgid ""
  25462. "(file-system\n"
  25463. " (mount-point \"/home\")\n"
  25464. " (type \"btrfs\")\n"
  25465. " (device (file-system-label \"my-home\")))\n"
  25466. msgstr ""
  25467. #. type: Plain text
  25468. #: guix-git/doc/guix.texi:17213
  25469. 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}):"
  25470. msgstr ""
  25471. #. type: lisp
  25472. #: guix-git/doc/guix.texi:17221
  25473. #, no-wrap
  25474. msgid ""
  25475. "(file-system\n"
  25476. " (device (file-system-label \"my-btrfs-pool\"))\n"
  25477. " (mount-point \"/\")\n"
  25478. " (type \"btrfs\")\n"
  25479. " (options \"subvol=rootfs\")\n"
  25480. " (dependencies mapped-devices))\n"
  25481. msgstr ""
  25482. #. type: Plain text
  25483. #: guix-git/doc/guix.texi:17232
  25484. 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."
  25485. msgstr ""
  25486. #. type: Plain text
  25487. #: guix-git/doc/guix.texi:17240
  25488. 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.:"
  25489. msgstr ""
  25490. #. type: example
  25491. #: guix-git/doc/guix.texi:17247
  25492. #, no-wrap
  25493. msgid ""
  25494. "/ (top level)\n"
  25495. "├── rootfs (subvolume directory)\n"
  25496. " ├── gnu (normal directory)\n"
  25497. " ├── store (normal directory)\n"
  25498. "[...]\n"
  25499. msgstr ""
  25500. #. type: Plain text
  25501. #: guix-git/doc/guix.texi:17252
  25502. 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."
  25503. msgstr ""
  25504. #. type: Plain text
  25505. #: guix-git/doc/guix.texi:17255
  25506. msgid "The next example shows a nested hierarchy of subvolumes and directories:"
  25507. msgstr ""
  25508. #. type: example
  25509. #: guix-git/doc/guix.texi:17262
  25510. #, no-wrap
  25511. msgid ""
  25512. "/ (top level)\n"
  25513. "├── rootfs (subvolume)\n"
  25514. " ├── gnu (normal directory)\n"
  25515. " ├── store (subvolume)\n"
  25516. "[...]\n"
  25517. msgstr ""
  25518. #. type: Plain text
  25519. #: guix-git/doc/guix.texi:17269
  25520. 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}."
  25521. msgstr ""
  25522. #. type: Plain text
  25523. #: guix-git/doc/guix.texi:17271
  25524. msgid "Finally, a more contrived example of nested subvolumes:"
  25525. msgstr ""
  25526. #. type: example
  25527. #: guix-git/doc/guix.texi:17278
  25528. #, no-wrap
  25529. msgid ""
  25530. "/ (top level)\n"
  25531. "├── root-snapshots (subvolume)\n"
  25532. " ├── root-current (subvolume)\n"
  25533. " ├── guix-store (subvolume)\n"
  25534. "[...]\n"
  25535. msgstr ""
  25536. #. type: Plain text
  25537. #: guix-git/doc/guix.texi:17285
  25538. 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:"
  25539. msgstr ""
  25540. #. type: lisp
  25541. #: guix-git/doc/guix.texi:17293
  25542. #, no-wrap
  25543. msgid ""
  25544. "(file-system\n"
  25545. " (device (file-system-label \"btrfs-pool-1\"))\n"
  25546. " (mount-point \"/gnu/store\")\n"
  25547. " (type \"btrfs\")\n"
  25548. " (options \"subvol=root-snapshots/root-current/guix-store,\\\n"
  25549. "compress-force=zstd,space_cache=v2\"))\n"
  25550. msgstr ""
  25551. #. type: cindex
  25552. #: guix-git/doc/guix.texi:17298
  25553. #, no-wrap
  25554. msgid "device mapping"
  25555. msgstr ""
  25556. #. type: cindex
  25557. #: guix-git/doc/guix.texi:17299
  25558. #, no-wrap
  25559. msgid "mapped devices"
  25560. msgstr ""
  25561. #. type: Plain text
  25562. #: guix-git/doc/guix.texi:17316
  25563. 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."
  25564. msgstr ""
  25565. #. type: Plain text
  25566. #: guix-git/doc/guix.texi:17319
  25567. msgid "Mapped devices are declared using the @code{mapped-device} form, defined as follows; for examples, see below."
  25568. msgstr ""
  25569. #. type: deftp
  25570. #: guix-git/doc/guix.texi:17320
  25571. #, no-wrap
  25572. msgid "{Data Type} mapped-device"
  25573. msgstr ""
  25574. #. type: deftp
  25575. #: guix-git/doc/guix.texi:17323
  25576. msgid "Objects of this type represent device mappings that will be made when the system boots up."
  25577. msgstr ""
  25578. #. type: table
  25579. #: guix-git/doc/guix.texi:17330
  25580. 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."
  25581. msgstr ""
  25582. #. type: code{#1}
  25583. #: guix-git/doc/guix.texi:17331 guix-git/doc/guix.texi:17499
  25584. #: guix-git/doc/guix.texi:44168
  25585. #, no-wrap
  25586. msgid "target"
  25587. msgstr ""
  25588. #. type: table
  25589. #: guix-git/doc/guix.texi:17340
  25590. 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\"}."
  25591. msgstr ""
  25592. #. type: code{#1}
  25593. #: guix-git/doc/guix.texi:17341 guix-git/doc/guix.texi:39641
  25594. #, no-wrap
  25595. msgid "targets"
  25596. msgstr ""
  25597. #. type: table
  25598. #: guix-git/doc/guix.texi:17344
  25599. msgid "This list of strings specifies names of the resulting mapped devices in case there are several. The format is identical to @var{target}."
  25600. msgstr ""
  25601. #. type: table
  25602. #: guix-git/doc/guix.texi:17348
  25603. msgid "This must be a @code{mapped-device-kind} object, which specifies how @var{source} is mapped to @var{target}."
  25604. msgstr ""
  25605. #. type: defvar
  25606. #: guix-git/doc/guix.texi:17351
  25607. #, no-wrap
  25608. msgid "luks-device-mapping"
  25609. msgstr ""
  25610. #. type: defvar
  25611. #: guix-git/doc/guix.texi:17355
  25612. 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."
  25613. msgstr ""
  25614. #. type: defvar
  25615. #: guix-git/doc/guix.texi:17357
  25616. #, no-wrap
  25617. msgid "raid-device-mapping"
  25618. msgstr ""
  25619. #. type: defvar
  25620. #: guix-git/doc/guix.texi:17362
  25621. 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."
  25622. msgstr ""
  25623. #. type: cindex
  25624. #: guix-git/doc/guix.texi:17364
  25625. #, no-wrap
  25626. msgid "LVM, logical volume manager"
  25627. msgstr ""
  25628. #. type: defvar
  25629. #: guix-git/doc/guix.texi:17365
  25630. #, no-wrap
  25631. msgid "lvm-device-mapping"
  25632. msgstr ""
  25633. #. type: defvar
  25634. #: guix-git/doc/guix.texi:17370
  25635. 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."
  25636. msgstr ""
  25637. #. type: cindex
  25638. #: guix-git/doc/guix.texi:17372
  25639. #, no-wrap
  25640. msgid "disk encryption"
  25641. msgstr ""
  25642. #. type: cindex
  25643. #: guix-git/doc/guix.texi:17373
  25644. #, no-wrap
  25645. msgid "LUKS"
  25646. msgstr ""
  25647. #. type: Plain text
  25648. #: guix-git/doc/guix.texi:17381
  25649. 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})."
  25650. msgstr ""
  25651. #. type: lisp
  25652. #: guix-git/doc/guix.texi:17387
  25653. #, no-wrap
  25654. msgid ""
  25655. "(mapped-device\n"
  25656. " (source \"/dev/sda3\")\n"
  25657. " (target \"home\")\n"
  25658. " (type luks-device-mapping))\n"
  25659. msgstr ""
  25660. #. type: Plain text
  25661. #: guix-git/doc/guix.texi:17392
  25662. 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:"
  25663. msgstr ""
  25664. #. type: example
  25665. #: guix-git/doc/guix.texi:17395
  25666. #, no-wrap
  25667. msgid "cryptsetup luksUUID /dev/sda3\n"
  25668. msgstr ""
  25669. #. type: Plain text
  25670. #: guix-git/doc/guix.texi:17398
  25671. msgid "and use it as follows:"
  25672. msgstr ""
  25673. #. type: lisp
  25674. #: guix-git/doc/guix.texi:17404
  25675. #, no-wrap
  25676. msgid ""
  25677. "(mapped-device\n"
  25678. " (source (uuid \"cb67fc72-0d54-4c88-9d4b-b225f30b0f44\"))\n"
  25679. " (target \"home\")\n"
  25680. " (type luks-device-mapping))\n"
  25681. msgstr ""
  25682. #. type: cindex
  25683. #: guix-git/doc/guix.texi:17406
  25684. #, no-wrap
  25685. msgid "swap encryption"
  25686. msgstr ""
  25687. #. type: Plain text
  25688. #: guix-git/doc/guix.texi:17413
  25689. 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."
  25690. msgstr ""
  25691. #. type: Plain text
  25692. #: guix-git/doc/guix.texi:17416
  25693. msgid "A RAID device formed of the partitions @file{/dev/sda1} and @file{/dev/sdb1} may be declared as follows:"
  25694. msgstr ""
  25695. #. type: lisp
  25696. #: guix-git/doc/guix.texi:17422
  25697. #, no-wrap
  25698. msgid ""
  25699. "(mapped-device\n"
  25700. " (source (list \"/dev/sda1\" \"/dev/sdb1\"))\n"
  25701. " (target \"/dev/md0\")\n"
  25702. " (type raid-device-mapping))\n"
  25703. msgstr ""
  25704. #. type: Plain text
  25705. #: guix-git/doc/guix.texi:17429
  25706. 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."
  25707. msgstr ""
  25708. #. type: Plain text
  25709. #: guix-git/doc/guix.texi:17432
  25710. msgid "LVM logical volumes ``alpha'' and ``beta'' from volume group ``vg0'' can be declared as follows:"
  25711. msgstr ""
  25712. #. type: lisp
  25713. #: guix-git/doc/guix.texi:17438
  25714. #, no-wrap
  25715. msgid ""
  25716. "(mapped-device\n"
  25717. " (source \"vg0\")\n"
  25718. " (targets (list \"vg0-alpha\" \"vg0-beta\"))\n"
  25719. " (type lvm-device-mapping))\n"
  25720. msgstr ""
  25721. #. type: Plain text
  25722. #: guix-git/doc/guix.texi:17443
  25723. 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})."
  25724. msgstr ""
  25725. #. type: cindex
  25726. #: guix-git/doc/guix.texi:17446
  25727. #, no-wrap
  25728. msgid "swap space"
  25729. msgstr ""
  25730. #. type: Plain text
  25731. #: guix-git/doc/guix.texi:17456
  25732. 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."
  25733. msgstr ""
  25734. #. type: Plain text
  25735. #: guix-git/doc/guix.texi:17462
  25736. 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."
  25737. msgstr ""
  25738. #. type: Plain text
  25739. #: guix-git/doc/guix.texi:17466
  25740. msgid "For a more detailed description of how memory is managed from the viewpoint of a monolithic kernel, @pxref{Memory Concepts,,, libc, The GNU C Library Reference Manual}."
  25741. msgstr ""
  25742. #. type: Plain text
  25743. #: guix-git/doc/guix.texi:17475
  25744. 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."
  25745. msgstr ""
  25746. #. type: cindex
  25747. #: guix-git/doc/guix.texi:17476
  25748. #, fuzzy, no-wrap
  25749. msgid "hibernation"
  25750. msgstr "验证substitute"
  25751. #. type: cindex
  25752. #: guix-git/doc/guix.texi:17477
  25753. #, no-wrap
  25754. msgid "suspend to disk"
  25755. msgstr ""
  25756. #. type: Plain text
  25757. #: guix-git/doc/guix.texi:17488
  25758. msgid "Swap space is also required to put the system into @dfn{hibernation} (also called @dfn{suspend to disk}), whereby memory is dumped to swap before shutdown so it can be restored when the machine is eventually restarted. Hibernation uses at most half the size of the RAM in the configured swap space. The Linux kernel needs to know about the swap space to be used to resume from hibernation on boot (@i{via} a kernel argument). When using a swap file, its offset in the device holding it also needs to be given to the kernel; that value has to be updated if the file is initialized again as swap---e.g., because its size was changed."
  25759. msgstr ""
  25760. #. type: Plain text
  25761. #: guix-git/doc/guix.texi:17493
  25762. 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})."
  25763. msgstr ""
  25764. #. type: deftp
  25765. #: guix-git/doc/guix.texi:17494
  25766. #, fuzzy, no-wrap
  25767. msgid "{Data Type} swap-space"
  25768. msgstr "{数据类型} build-machine"
  25769. #. type: deftp
  25770. #: guix-git/doc/guix.texi:17497
  25771. msgid "Objects of this type represent swap spaces. They contain the following members:"
  25772. msgstr ""
  25773. #. type: table
  25774. #: guix-git/doc/guix.texi:17503
  25775. 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})."
  25776. msgstr ""
  25777. #. type: table
  25778. #: guix-git/doc/guix.texi:17510
  25779. 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."
  25780. msgstr ""
  25781. #. type: item
  25782. #: guix-git/doc/guix.texi:17511
  25783. #, fuzzy, no-wrap
  25784. msgid "@code{priority} (default: @code{#f})"
  25785. msgstr "@code{port}(默认值:@code{22})"
  25786. #. type: table
  25787. #: guix-git/doc/guix.texi:17518
  25788. 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)."
  25789. msgstr ""
  25790. #. type: item
  25791. #: guix-git/doc/guix.texi:17519
  25792. #, fuzzy, no-wrap
  25793. msgid "@code{discard?} (default: @code{#f})"
  25794. msgstr "@code{speed}(默认值:@code{1.0})"
  25795. #. type: table
  25796. #: guix-git/doc/guix.texi:17523
  25797. 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."
  25798. msgstr ""
  25799. #. type: Plain text
  25800. #: guix-git/doc/guix.texi:17528
  25801. msgid "Here are some examples:"
  25802. msgstr ""
  25803. #. type: lisp
  25804. #: guix-git/doc/guix.texi:17531
  25805. #, no-wrap
  25806. msgid "(swap-space (target (uuid \"4dab5feb-d176-45de-b287-9b0a6e4c01cb\")))\n"
  25807. msgstr ""
  25808. #. type: Plain text
  25809. #: guix-git/doc/guix.texi:17536
  25810. 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."
  25811. msgstr ""
  25812. #. type: lisp
  25813. #: guix-git/doc/guix.texi:17541
  25814. #, no-wrap
  25815. msgid ""
  25816. "(swap-space\n"
  25817. " (target (file-system-label \"swap\"))\n"
  25818. " (dependencies mapped-devices))\n"
  25819. msgstr ""
  25820. #. type: Plain text
  25821. #: guix-git/doc/guix.texi:17547
  25822. 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."
  25823. msgstr ""
  25824. #. type: Plain text
  25825. #: guix-git/doc/guix.texi:17550
  25826. msgid "Here's a more involved example with the corresponding @code{file-systems} part of an @code{operating-system} declaration."
  25827. msgstr ""
  25828. #. type: lisp
  25829. #: guix-git/doc/guix.texi:17561
  25830. #, no-wrap
  25831. msgid ""
  25832. "(file-systems\n"
  25833. " (list (file-system\n"
  25834. " (device (file-system-label \"root\"))\n"
  25835. " (mount-point \"/\")\n"
  25836. " (type \"ext4\"))\n"
  25837. " (file-system\n"
  25838. " (device (file-system-label \"btrfs\"))\n"
  25839. " (mount-point \"/btrfs\")\n"
  25840. " (type \"btrfs\"))))\n"
  25841. "\n"
  25842. msgstr ""
  25843. #. type: lisp
  25844. #: guix-git/doc/guix.texi:17568
  25845. #, no-wrap
  25846. msgid ""
  25847. "(swap-devices\n"
  25848. " (list\n"
  25849. " (swap-space\n"
  25850. " (target \"/btrfs/swapfile\")\n"
  25851. " (dependencies (filter (file-system-mount-point-predicate \"/btrfs\")\n"
  25852. " file-systems)))))\n"
  25853. msgstr ""
  25854. #. type: Plain text
  25855. #: guix-git/doc/guix.texi:17573
  25856. 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!"
  25857. msgstr ""
  25858. #. type: lisp
  25859. #: guix-git/doc/guix.texi:17580
  25860. #, no-wrap
  25861. msgid ""
  25862. "(swap-devices\n"
  25863. " (list\n"
  25864. " (swap-space\n"
  25865. " (target \"/dev/mapper/my-swap\")\n"
  25866. " (dependencies mapped-devices))))\n"
  25867. "\n"
  25868. msgstr ""
  25869. #. type: lisp
  25870. #: guix-git/doc/guix.texi:17584
  25871. #, no-wrap
  25872. msgid ""
  25873. "(kernel-arguments\n"
  25874. " (cons* \"resume=/dev/mapper/my-swap\"\n"
  25875. " %default-kernel-arguments))\n"
  25876. msgstr ""
  25877. "(kernel-arguments\n"
  25878. " (cons* \"resume=/dev/mapper/my-swap\"\n"
  25879. " %default-kernel-arguments))\n"
  25880. #. type: Plain text
  25881. #: guix-git/doc/guix.texi:17591
  25882. msgid "The above snippet of an @code{operating-system} declaration enables the mapped device @file{/dev/mapper/my-swap} (which may be part of an encrypted device) as swap space, and tells the kernel to use it for hibernation via the @code{resume} kernel argument (@pxref{operating-system Reference}, @code{kernel-arguments})."
  25883. msgstr ""
  25884. #. type: lisp
  25885. #: guix-git/doc/guix.texi:17599
  25886. #, no-wrap
  25887. msgid ""
  25888. "(swap-devices\n"
  25889. " (list\n"
  25890. " (swap-space\n"
  25891. " (target \"/swapfile\")\n"
  25892. " (dependencies (filter (file-system-mount-point-predicate \"/\")\n"
  25893. " file-systems)))))\n"
  25894. "\n"
  25895. msgstr ""
  25896. #. type: lisp
  25897. #: guix-git/doc/guix.texi:17604
  25898. #, fuzzy, no-wrap
  25899. #| msgid ""
  25900. #| "(kernel-arguments\n"
  25901. #| " (cons* \"resume=/dev/mapper/my-swap\"\n"
  25902. #| " %default-kernel-arguments))\n"
  25903. msgid ""
  25904. "(kernel-arguments\n"
  25905. " (cons* \"resume=/dev/sda3\" ;device that holds /swapfile\n"
  25906. " \"resume_offset=92514304\" ;offset of /swapfile on device\n"
  25907. " %default-kernel-arguments))\n"
  25908. msgstr ""
  25909. "(kernel-arguments\n"
  25910. " (cons* \"resume=/dev/mapper/my-swap\"\n"
  25911. " %default-kernel-arguments))\n"
  25912. #. type: Plain text
  25913. #: guix-git/doc/guix.texi:17614
  25914. msgid "This other snippet of @code{operating-system} enables the swap file @file{/swapfile} for hibernation by telling the kernel about the partition containing it (@code{resume} argument) and its offset on that partition (@code{resume_offset} argument). The latter value can be found in the output of the command @command{filefrag -e} as the first number right under the @code{physical_offset} column header (the second command extracts its value directly):"
  25915. msgstr ""
  25916. #. type: smallexample
  25917. #: guix-git/doc/guix.texi:17624
  25918. #, no-wrap
  25919. msgid ""
  25920. "$ sudo filefrag -e /swapfile\n"
  25921. "Filesystem type is: ef53\n"
  25922. "File size of /swapfile is 2463842304 (601524 blocks of 4096 bytes)\n"
  25923. " ext: logical_offset: physical_offset: length: expected: flags:\n"
  25924. " 0: 0.. 2047: 92514304.. 92516351: 2048:\n"
  25925. "@dots{}\n"
  25926. "$ sudo filefrag -e /swapfile | grep '^ *0:' | cut -d: -f3 | cut -d. -f1\n"
  25927. " 92514304\n"
  25928. msgstr ""
  25929. #. type: cindex
  25930. #: guix-git/doc/guix.texi:17629
  25931. #, no-wrap
  25932. msgid "users"
  25933. msgstr ""
  25934. #. type: cindex
  25935. #: guix-git/doc/guix.texi:17630
  25936. #, no-wrap
  25937. msgid "accounts"
  25938. msgstr ""
  25939. #. type: cindex
  25940. #: guix-git/doc/guix.texi:17631
  25941. #, no-wrap
  25942. msgid "user accounts"
  25943. msgstr ""
  25944. #. type: Plain text
  25945. #: guix-git/doc/guix.texi:17635
  25946. 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:"
  25947. msgstr ""
  25948. #. type: lisp
  25949. #: guix-git/doc/guix.texi:17645
  25950. #, no-wrap
  25951. msgid ""
  25952. "(user-account\n"
  25953. " (name \"alice\")\n"
  25954. " (group \"users\")\n"
  25955. " (supplementary-groups '(\"wheel\" ;allow use of sudo, etc.\n"
  25956. " \"audio\" ;sound card\n"
  25957. " \"video\" ;video devices such as webcams\n"
  25958. " \"cdrom\")) ;the good ol' CD-ROM\n"
  25959. " (comment \"Bob's sister\"))\n"
  25960. msgstr ""
  25961. #. type: Plain text
  25962. #: guix-git/doc/guix.texi:17649
  25963. msgid "Here's a user account that uses a different shell and a custom home directory (the default would be @file{\"/home/bob\"}):"
  25964. msgstr ""
  25965. #. type: lisp
  25966. #: guix-git/doc/guix.texi:17657
  25967. #, no-wrap
  25968. msgid ""
  25969. "(user-account\n"
  25970. " (name \"bob\")\n"
  25971. " (group \"users\")\n"
  25972. " (comment \"Alice's bro\")\n"
  25973. " (shell (file-append zsh \"/bin/zsh\"))\n"
  25974. " (home-directory \"/home/robert\"))\n"
  25975. msgstr ""
  25976. #. type: Plain text
  25977. #: guix-git/doc/guix.texi:17666
  25978. 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."
  25979. msgstr ""
  25980. #. type: deftp
  25981. #: guix-git/doc/guix.texi:17667
  25982. #, no-wrap
  25983. msgid "{Data Type} user-account"
  25984. msgstr ""
  25985. #. type: deftp
  25986. #: guix-git/doc/guix.texi:17670
  25987. msgid "Objects of this type represent user accounts. The following members may be specified:"
  25988. msgstr ""
  25989. #. type: table
  25990. #: guix-git/doc/guix.texi:17674
  25991. msgid "The name of the user account."
  25992. msgstr ""
  25993. #. type: itemx
  25994. #: guix-git/doc/guix.texi:17675 guix-git/doc/guix.texi:39254
  25995. #, no-wrap
  25996. msgid "group"
  25997. msgstr ""
  25998. #. type: cindex
  25999. #: guix-git/doc/guix.texi:17676 guix-git/doc/guix.texi:17760
  26000. #, no-wrap
  26001. msgid "groups"
  26002. msgstr ""
  26003. #. type: table
  26004. #: guix-git/doc/guix.texi:17679
  26005. msgid "This is the name (a string) or identifier (a number) of the user group this account belongs to."
  26006. msgstr ""
  26007. #. type: item
  26008. #: guix-git/doc/guix.texi:17680
  26009. #, no-wrap
  26010. msgid "@code{supplementary-groups} (default: @code{'()})"
  26011. msgstr ""
  26012. #. type: table
  26013. #: guix-git/doc/guix.texi:17683
  26014. msgid "Optionally, this can be defined as a list of group names that this account belongs to."
  26015. msgstr ""
  26016. #. type: item
  26017. #: guix-git/doc/guix.texi:17684
  26018. #, no-wrap
  26019. msgid "@code{uid} (default: @code{#f})"
  26020. msgstr ""
  26021. #. type: table
  26022. #: guix-git/doc/guix.texi:17688
  26023. 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."
  26024. msgstr ""
  26025. #. type: item
  26026. #: guix-git/doc/guix.texi:17689 guix-git/doc/guix.texi:20940
  26027. #, no-wrap
  26028. msgid "@code{comment} (default: @code{\"\"})"
  26029. msgstr ""
  26030. #. type: table
  26031. #: guix-git/doc/guix.texi:17691
  26032. msgid "A comment about the account, such as the account owner's full name."
  26033. msgstr ""
  26034. #. type: table
  26035. #: guix-git/doc/guix.texi:17696
  26036. 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."
  26037. msgstr ""
  26038. #. type: code{#1}
  26039. #: guix-git/doc/guix.texi:17697
  26040. #, no-wrap
  26041. msgid "home-directory"
  26042. msgstr ""
  26043. #. type: table
  26044. #: guix-git/doc/guix.texi:17699
  26045. msgid "This is the name of the home directory for the account."
  26046. msgstr ""
  26047. #. type: item
  26048. #: guix-git/doc/guix.texi:17700
  26049. #, no-wrap
  26050. msgid "@code{create-home-directory?} (default: @code{#t})"
  26051. msgstr ""
  26052. #. type: table
  26053. #: guix-git/doc/guix.texi:17703
  26054. msgid "Indicates whether the home directory of this account should be created if it does not exist yet."
  26055. msgstr ""
  26056. #. type: item
  26057. #: guix-git/doc/guix.texi:17704
  26058. #, no-wrap
  26059. msgid "@code{shell} (default: Bash)"
  26060. msgstr ""
  26061. #. type: table
  26062. #: guix-git/doc/guix.texi:17708
  26063. 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:"
  26064. msgstr ""
  26065. #. type: lisp
  26066. #: guix-git/doc/guix.texi:17711
  26067. #, no-wrap
  26068. msgid "(file-append bash \"/bin/bash\")\n"
  26069. msgstr ""
  26070. #. type: table
  26071. #: guix-git/doc/guix.texi:17715
  26072. msgid "... and to the Zsh executable like that:"
  26073. msgstr ""
  26074. #. type: lisp
  26075. #: guix-git/doc/guix.texi:17718
  26076. #, no-wrap
  26077. msgid "(file-append zsh \"/bin/zsh\")\n"
  26078. msgstr ""
  26079. #. type: item
  26080. #: guix-git/doc/guix.texi:17720 guix-git/doc/guix.texi:17778
  26081. #, no-wrap
  26082. msgid "@code{system?} (default: @code{#f})"
  26083. msgstr ""
  26084. #. type: table
  26085. #: guix-git/doc/guix.texi:17724
  26086. 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."
  26087. msgstr ""
  26088. #. type: anchor{#1}
  26089. #: guix-git/doc/guix.texi:17726
  26090. msgid "user-account-password"
  26091. msgstr ""
  26092. #. type: cindex
  26093. #: guix-git/doc/guix.texi:17726
  26094. #, no-wrap
  26095. msgid "password, for user accounts"
  26096. msgstr ""
  26097. #. type: item
  26098. #: guix-git/doc/guix.texi:17727 guix-git/doc/guix.texi:17782
  26099. #, no-wrap
  26100. msgid "@code{password} (default: @code{#f})"
  26101. msgstr ""
  26102. #. type: table
  26103. #: guix-git/doc/guix.texi:17733
  26104. 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."
  26105. msgstr ""
  26106. #. type: table
  26107. #: guix-git/doc/guix.texi:17737
  26108. 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:"
  26109. msgstr ""
  26110. #. type: lisp
  26111. #: guix-git/doc/guix.texi:17742
  26112. #, no-wrap
  26113. msgid ""
  26114. "(user-account\n"
  26115. " (name \"charlie\")\n"
  26116. " (group \"users\")\n"
  26117. "\n"
  26118. msgstr ""
  26119. #. type: lisp
  26120. #: guix-git/doc/guix.texi:17745
  26121. #, no-wrap
  26122. msgid ""
  26123. " ;; Specify a SHA-512-hashed initial password.\n"
  26124. " (password (crypt \"InitialPassword!\" \"$6$abc\")))\n"
  26125. msgstr ""
  26126. #. type: quotation
  26127. #: guix-git/doc/guix.texi:17751
  26128. 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."
  26129. msgstr ""
  26130. #. type: table
  26131. #: guix-git/doc/guix.texi:17756
  26132. 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."
  26133. msgstr ""
  26134. #. type: Plain text
  26135. #: guix-git/doc/guix.texi:17762
  26136. msgid "User group declarations are even simpler:"
  26137. msgstr ""
  26138. #. type: lisp
  26139. #: guix-git/doc/guix.texi:17765
  26140. #, no-wrap
  26141. msgid "(user-group (name \"students\"))\n"
  26142. msgstr ""
  26143. #. type: deftp
  26144. #: guix-git/doc/guix.texi:17767
  26145. #, no-wrap
  26146. msgid "{Data Type} user-group"
  26147. msgstr ""
  26148. #. type: deftp
  26149. #: guix-git/doc/guix.texi:17769
  26150. msgid "This type is for, well, user groups. There are just a few fields:"
  26151. msgstr ""
  26152. #. type: table
  26153. #: guix-git/doc/guix.texi:17773
  26154. msgid "The name of the group."
  26155. msgstr ""
  26156. #. type: item
  26157. #: guix-git/doc/guix.texi:17774 guix-git/doc/guix.texi:35221
  26158. #, no-wrap
  26159. msgid "@code{id} (default: @code{#f})"
  26160. msgstr ""
  26161. #. type: table
  26162. #: guix-git/doc/guix.texi:17777
  26163. msgid "The group identifier (a number). If @code{#f}, a new number is automatically allocated when the group is created."
  26164. msgstr ""
  26165. #. type: table
  26166. #: guix-git/doc/guix.texi:17781
  26167. msgid "This Boolean value indicates whether the group is a ``system'' group. System groups have low numerical IDs."
  26168. msgstr ""
  26169. #. type: table
  26170. #: guix-git/doc/guix.texi:17785
  26171. msgid "What, user groups can have a password? Well, apparently yes. Unless @code{#f}, this field specifies the password of the group."
  26172. msgstr ""
  26173. #. type: Plain text
  26174. #: guix-git/doc/guix.texi:17791
  26175. msgid "For convenience, a variable lists all the basic user groups one may expect:"
  26176. msgstr ""
  26177. #. type: defvar
  26178. #: guix-git/doc/guix.texi:17792
  26179. #, no-wrap
  26180. msgid "%base-groups"
  26181. msgstr ""
  26182. #. type: defvar
  26183. #: guix-git/doc/guix.texi:17797
  26184. 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''."
  26185. msgstr ""
  26186. #. type: defvar
  26187. #: guix-git/doc/guix.texi:17799
  26188. #, fuzzy, no-wrap
  26189. #| msgid "User Accounts"
  26190. msgid "%base-user-accounts"
  26191. msgstr "用户帐号"
  26192. #. type: defvar
  26193. #: guix-git/doc/guix.texi:17802
  26194. 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."
  26195. msgstr ""
  26196. #. type: defvar
  26197. #: guix-git/doc/guix.texi:17805
  26198. 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."
  26199. msgstr ""
  26200. #. type: cindex
  26201. #: guix-git/doc/guix.texi:17811
  26202. #, no-wrap
  26203. msgid "keymap"
  26204. msgstr ""
  26205. #. type: Plain text
  26206. #: guix-git/doc/guix.texi:17819
  26207. 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."
  26208. msgstr ""
  26209. #. type: cindex
  26210. #: guix-git/doc/guix.texi:17820
  26211. #, no-wrap
  26212. msgid "keyboard layout, definition"
  26213. msgstr ""
  26214. #. type: Plain text
  26215. #: guix-git/doc/guix.texi:17822
  26216. msgid "There are three components that will want to know about your keyboard layout:"
  26217. msgstr ""
  26218. #. type: itemize
  26219. #: guix-git/doc/guix.texi:17829
  26220. 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."
  26221. msgstr ""
  26222. #. type: itemize
  26223. #: guix-git/doc/guix.texi:17834
  26224. msgid "The @emph{operating system kernel}, Linux, will need that so that the console is properly configured (@pxref{operating-system Reference, @code{keyboard-layout}})."
  26225. msgstr ""
  26226. #. type: itemize
  26227. #: guix-git/doc/guix.texi:17838
  26228. msgid "The @emph{graphical display server}, usually Xorg, also has its own idea of the keyboard layout (@pxref{X Window, @code{keyboard-layout}})."
  26229. msgstr ""
  26230. #. type: Plain text
  26231. #: guix-git/doc/guix.texi:17842
  26232. msgid "Guix allows you to configure all three separately but, fortunately, it allows you to share the same keyboard layout for all three components."
  26233. msgstr ""
  26234. #. type: cindex
  26235. #: guix-git/doc/guix.texi:17843
  26236. #, no-wrap
  26237. msgid "XKB, keyboard layouts"
  26238. msgstr ""
  26239. #. type: Plain text
  26240. #: guix-git/doc/guix.texi:17851
  26241. 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."
  26242. msgstr ""
  26243. #. type: defun
  26244. #: guix-git/doc/guix.texi:17852
  26245. #, no-wrap
  26246. msgid "keyboard-layout name [variant] [#:model] [#:options '()]"
  26247. msgstr ""
  26248. #. type: defun
  26249. #: guix-git/doc/guix.texi:17854
  26250. msgid "Return a new keyboard layout with the given @var{name} and @var{variant}."
  26251. msgstr ""
  26252. #. type: defun
  26253. #: guix-git/doc/guix.texi:17858
  26254. 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."
  26255. msgstr ""
  26256. #. type: Plain text
  26257. #: guix-git/doc/guix.texi:17861
  26258. msgid "Here are a few examples:"
  26259. msgstr ""
  26260. #. type: lisp
  26261. #: guix-git/doc/guix.texi:17866
  26262. #, no-wrap
  26263. msgid ""
  26264. ";; The German QWERTZ layout. Here we assume a standard\n"
  26265. ";; \"pc105\" keyboard model.\n"
  26266. "(keyboard-layout \"de\")\n"
  26267. "\n"
  26268. msgstr ""
  26269. #. type: lisp
  26270. #: guix-git/doc/guix.texi:17869
  26271. #, no-wrap
  26272. msgid ""
  26273. ";; The bépo variant of the French layout.\n"
  26274. "(keyboard-layout \"fr\" \"bepo\")\n"
  26275. "\n"
  26276. msgstr ""
  26277. #. type: lisp
  26278. #: guix-git/doc/guix.texi:17872
  26279. #, no-wrap
  26280. msgid ""
  26281. ";; The Catalan layout.\n"
  26282. "(keyboard-layout \"es\" \"cat\")\n"
  26283. "\n"
  26284. msgstr ""
  26285. #. type: lisp
  26286. #: guix-git/doc/guix.texi:17875
  26287. #, no-wrap
  26288. msgid ""
  26289. ";; Arabic layout with \"Alt-Shift\" to switch to US layout.\n"
  26290. "(keyboard-layout \"ar,us\" #:options '(\"grp:alt_shift_toggle\"))\n"
  26291. "\n"
  26292. msgstr ""
  26293. #. type: lisp
  26294. #: guix-git/doc/guix.texi:17882
  26295. #, no-wrap
  26296. msgid ""
  26297. ";; The Latin American Spanish layout. In addition, the\n"
  26298. ";; \"Caps Lock\" key is used as an additional \"Ctrl\" key,\n"
  26299. ";; and the \"Menu\" key is used as a \"Compose\" key to enter\n"
  26300. ";; accented letters.\n"
  26301. "(keyboard-layout \"latam\"\n"
  26302. " #:options '(\"ctrl:nocaps\" \"compose:menu\"))\n"
  26303. "\n"
  26304. msgstr ""
  26305. #. type: lisp
  26306. #: guix-git/doc/guix.texi:17885
  26307. #, no-wrap
  26308. msgid ""
  26309. ";; The Russian layout for a ThinkPad keyboard.\n"
  26310. "(keyboard-layout \"ru\" #:model \"thinkpad\")\n"
  26311. "\n"
  26312. msgstr ""
  26313. #. type: lisp
  26314. #: guix-git/doc/guix.texi:17890
  26315. #, no-wrap
  26316. msgid ""
  26317. ";; The \"US international\" layout, which is the US layout plus\n"
  26318. ";; dead keys to enter accented characters. This is for an\n"
  26319. ";; Apple MacBook keyboard.\n"
  26320. "(keyboard-layout \"us\" \"intl\" #:model \"macbook78\")\n"
  26321. msgstr ""
  26322. #. type: Plain text
  26323. #: guix-git/doc/guix.texi:17894
  26324. msgid "See the @file{share/X11/xkb} directory of the @code{xkeyboard-config} package for a complete list of supported layouts, variants, and models."
  26325. msgstr ""
  26326. #. type: cindex
  26327. #: guix-git/doc/guix.texi:17895
  26328. #, no-wrap
  26329. msgid "keyboard layout, configuration"
  26330. msgstr ""
  26331. #. type: Plain text
  26332. #: guix-git/doc/guix.texi:17899
  26333. 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:"
  26334. msgstr ""
  26335. #. type: findex
  26336. #: guix-git/doc/guix.texi:17900
  26337. #, no-wrap
  26338. msgid "set-xorg-configuration"
  26339. msgstr ""
  26340. #. type: lisp
  26341. #: guix-git/doc/guix.texi:17904
  26342. #, no-wrap
  26343. msgid ""
  26344. ";; Using the Turkish layout for the bootloader, the console,\n"
  26345. ";; and for Xorg.\n"
  26346. "\n"
  26347. msgstr ""
  26348. #. type: lisp
  26349. #: guix-git/doc/guix.texi:17916
  26350. #, no-wrap
  26351. msgid ""
  26352. "(operating-system\n"
  26353. " ;; ...\n"
  26354. " (keyboard-layout (keyboard-layout \"tr\")) ;for the console\n"
  26355. " (bootloader (bootloader-configuration\n"
  26356. " (bootloader grub-efi-bootloader)\n"
  26357. " (targets '(\"/boot/efi\"))\n"
  26358. " (keyboard-layout keyboard-layout))) ;for GRUB\n"
  26359. " (services (cons (set-xorg-configuration\n"
  26360. " (xorg-configuration ;for Xorg\n"
  26361. " (keyboard-layout keyboard-layout)))\n"
  26362. " %desktop-services)))\n"
  26363. msgstr ""
  26364. #. type: Plain text
  26365. #: guix-git/doc/guix.texi:17923
  26366. 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."
  26367. msgstr ""
  26368. #. type: Plain text
  26369. #: guix-git/doc/guix.texi:17926
  26370. 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:"
  26371. msgstr ""
  26372. #. type: itemize
  26373. #: guix-git/doc/guix.texi:17931
  26374. msgid "If you're using GNOME, its settings panel has a ``Region & Language'' entry where you can select one or more keyboard layouts."
  26375. msgstr ""
  26376. #. type: itemize
  26377. #: guix-git/doc/guix.texi:17936
  26378. 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:"
  26379. msgstr ""
  26380. #. type: example
  26381. #: guix-git/doc/guix.texi:17939
  26382. #, no-wrap
  26383. msgid "setxkbmap us dvorak\n"
  26384. msgstr ""
  26385. #. type: itemize
  26386. #: guix-git/doc/guix.texi:17946
  26387. 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:"
  26388. msgstr ""
  26389. #. type: example
  26390. #: guix-git/doc/guix.texi:17949
  26391. #, no-wrap
  26392. msgid "loadkeys fr-bepo\n"
  26393. msgstr ""
  26394. #. type: cindex
  26395. #: guix-git/doc/guix.texi:17955
  26396. #, no-wrap
  26397. msgid "locale"
  26398. msgstr ""
  26399. #. type: Plain text
  26400. #: guix-git/doc/guix.texi:17962
  26401. 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."
  26402. msgstr ""
  26403. #. type: cindex
  26404. #: guix-git/doc/guix.texi:17963
  26405. #, no-wrap
  26406. msgid "locale definition"
  26407. msgstr ""
  26408. #. type: Plain text
  26409. #: guix-git/doc/guix.texi:17967
  26410. 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}})."
  26411. msgstr ""
  26412. #. type: Plain text
  26413. #: guix-git/doc/guix.texi:17976
  26414. 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."
  26415. msgstr ""
  26416. #. type: Plain text
  26417. #: guix-git/doc/guix.texi:17979
  26418. msgid "For instance, to add the North Frisian locale for Germany, the value of that field may be:"
  26419. msgstr ""
  26420. #. type: lisp
  26421. #: guix-git/doc/guix.texi:17984
  26422. #, no-wrap
  26423. msgid ""
  26424. "(cons (locale-definition\n"
  26425. " (name \"fy_DE.utf8\") (source \"fy_DE\"))\n"
  26426. " %default-locale-definitions)\n"
  26427. msgstr ""
  26428. #. type: Plain text
  26429. #: guix-git/doc/guix.texi:17988
  26430. msgid "Likewise, to save space, one might want @code{locale-definitions} to list only the locales that are actually used, as in:"
  26431. msgstr ""
  26432. #. type: lisp
  26433. #: guix-git/doc/guix.texi:17993
  26434. #, no-wrap
  26435. msgid ""
  26436. "(list (locale-definition\n"
  26437. " (name \"ja_JP.eucjp\") (source \"ja_JP\")\n"
  26438. " (charset \"EUC-JP\")))\n"
  26439. msgstr ""
  26440. #. type: Plain text
  26441. #: guix-git/doc/guix.texi:18002
  26442. 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})."
  26443. msgstr ""
  26444. #. type: Plain text
  26445. #: guix-git/doc/guix.texi:18005
  26446. msgid "The @code{locale-definition} form is provided by the @code{(gnu system locale)} module. Details are given below."
  26447. msgstr ""
  26448. #. type: deftp
  26449. #: guix-git/doc/guix.texi:18006
  26450. #, no-wrap
  26451. msgid "{Data Type} locale-definition"
  26452. msgstr ""
  26453. #. type: deftp
  26454. #: guix-git/doc/guix.texi:18008
  26455. msgid "This is the data type of a locale definition."
  26456. msgstr ""
  26457. #. type: table
  26458. #: guix-git/doc/guix.texi:18014
  26459. msgid "The name of the locale. @xref{Locale Names,,, libc, The GNU C Library Reference Manual}, for more information on locale names."
  26460. msgstr ""
  26461. #. type: table
  26462. #: guix-git/doc/guix.texi:18018
  26463. msgid "The name of the source for that locale. This is typically the @code{@var{language}_@var{territory}} part of the locale name."
  26464. msgstr ""
  26465. #. type: item
  26466. #: guix-git/doc/guix.texi:18019
  26467. #, no-wrap
  26468. msgid "@code{charset} (default: @code{\"UTF-8\"})"
  26469. msgstr ""
  26470. #. type: table
  26471. #: guix-git/doc/guix.texi:18023
  26472. msgid "The ``character set'' or ``code set'' for that locale, @uref{https://www.iana.org/assignments/character-sets, as defined by IANA}."
  26473. msgstr ""
  26474. #. type: defvar
  26475. #: guix-git/doc/guix.texi:18027
  26476. #, fuzzy, no-wrap
  26477. #| msgid "Updating package definitions."
  26478. msgid "%default-locale-definitions"
  26479. msgstr "更新软件包定义。"
  26480. #. type: defvar
  26481. #: guix-git/doc/guix.texi:18031
  26482. 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."
  26483. msgstr ""
  26484. #. type: cindex
  26485. #: guix-git/doc/guix.texi:18032
  26486. #, no-wrap
  26487. msgid "locale name"
  26488. msgstr ""
  26489. #. type: cindex
  26490. #: guix-git/doc/guix.texi:18033
  26491. #, no-wrap
  26492. msgid "normalized codeset in locale names"
  26493. msgstr ""
  26494. #. type: defvar
  26495. #: guix-git/doc/guix.texi:18039
  26496. 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}."
  26497. msgstr ""
  26498. #. type: subsection
  26499. #: guix-git/doc/guix.texi:18041
  26500. #, no-wrap
  26501. msgid "Locale Data Compatibility Considerations"
  26502. msgstr ""
  26503. #. type: cindex
  26504. #: guix-git/doc/guix.texi:18043
  26505. #, no-wrap
  26506. msgid "incompatibility, of locale data"
  26507. msgstr ""
  26508. #. type: Plain text
  26509. #: guix-git/doc/guix.texi:18050
  26510. 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."
  26511. msgstr ""
  26512. #. type: Plain text
  26513. #: guix-git/doc/guix.texi:18062
  26514. 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."
  26515. msgstr ""
  26516. #. type: Plain text
  26517. #: guix-git/doc/guix.texi:18067
  26518. 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."
  26519. msgstr ""
  26520. #. type: Plain text
  26521. #: guix-git/doc/guix.texi:18071
  26522. 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})."
  26523. msgstr ""
  26524. #. type: Plain text
  26525. #: guix-git/doc/guix.texi:18078
  26526. 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}:"
  26527. msgstr ""
  26528. #. type: lisp
  26529. #: guix-git/doc/guix.texi:18081
  26530. #, no-wrap
  26531. msgid ""
  26532. "(use-package-modules base)\n"
  26533. "\n"
  26534. msgstr ""
  26535. #. type: lisp
  26536. #: guix-git/doc/guix.texi:18085
  26537. #, no-wrap
  26538. msgid ""
  26539. "(operating-system\n"
  26540. " ;; @dots{}\n"
  26541. " (locale-libcs (list glibc-2.21 (canonical-package glibc))))\n"
  26542. msgstr ""
  26543. #. type: Plain text
  26544. #: guix-git/doc/guix.texi:18090
  26545. 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}."
  26546. msgstr ""
  26547. #. type: cindex
  26548. #: guix-git/doc/guix.texi:18095
  26549. #, no-wrap
  26550. msgid "system services"
  26551. msgstr ""
  26552. #. type: Plain text
  26553. #: guix-git/doc/guix.texi:18101
  26554. 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."
  26555. msgstr ""
  26556. #. type: Plain text
  26557. #: guix-git/doc/guix.texi:18108
  26558. 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:"
  26559. msgstr ""
  26560. #. type: example
  26561. #: guix-git/doc/guix.texi:18111
  26562. #, no-wrap
  26563. msgid "# herd status\n"
  26564. msgstr ""
  26565. #. type: Plain text
  26566. #: guix-git/doc/guix.texi:18116
  26567. 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:"
  26568. msgstr ""
  26569. #. type: example
  26570. #: guix-git/doc/guix.texi:18120
  26571. #, no-wrap
  26572. msgid ""
  26573. "# herd doc nscd\n"
  26574. "Run libc's name service cache daemon (nscd).\n"
  26575. "\n"
  26576. msgstr ""
  26577. #. type: example
  26578. #: guix-git/doc/guix.texi:18123
  26579. #, no-wrap
  26580. msgid ""
  26581. "# herd doc nscd action invalidate\n"
  26582. "invalidate: Invalidate the given cache--e.g., 'hosts' for host name lookups.\n"
  26583. msgstr ""
  26584. #. type: Plain text
  26585. #: guix-git/doc/guix.texi:18128
  26586. 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:"
  26587. msgstr ""
  26588. #. type: example
  26589. #: guix-git/doc/guix.texi:18135
  26590. #, no-wrap
  26591. msgid ""
  26592. "# herd stop nscd\n"
  26593. "Service nscd has been stopped.\n"
  26594. "# herd restart xorg-server\n"
  26595. "Service xorg-server has been stopped.\n"
  26596. "Service xorg-server has been started.\n"
  26597. msgstr ""
  26598. #. type: cindex
  26599. #: guix-git/doc/guix.texi:18137
  26600. #, fuzzy, no-wrap
  26601. msgid "configuration, action for shepherd services"
  26602. msgstr "管理操作系统配置。"
  26603. #. type: cindex
  26604. #: guix-git/doc/guix.texi:18138
  26605. #, fuzzy, no-wrap
  26606. msgid "configuration file, of a shepherd service"
  26607. msgstr "管理操作系统配置。"
  26608. #. type: Plain text
  26609. #: guix-git/doc/guix.texi:18142
  26610. msgid "For some services, @command{herd configuration} returns the name of the service's configuration file, which can be handy to inspect its configuration:"
  26611. msgstr ""
  26612. #. type: example
  26613. #: guix-git/doc/guix.texi:18146
  26614. #, no-wrap
  26615. msgid ""
  26616. "# herd configuration sshd\n"
  26617. "/gnu/store/@dots{}-sshd_config\n"
  26618. msgstr ""
  26619. #. type: Plain text
  26620. #: guix-git/doc/guix.texi:18151
  26621. msgid "The following sections document the available services, starting with the core services, that may be used in an @code{operating-system} declaration."
  26622. msgstr ""
  26623. #. type: Plain text
  26624. #: guix-git/doc/guix.texi:18197
  26625. 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."
  26626. msgstr ""
  26627. #. type: defvar
  26628. #: guix-git/doc/guix.texi:18204
  26629. 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."
  26630. msgstr ""
  26631. #. type: defvar
  26632. #: guix-git/doc/guix.texi:18209
  26633. 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:"
  26634. msgstr ""
  26635. #. type: lisp
  26636. #: guix-git/doc/guix.texi:18214
  26637. #, no-wrap
  26638. msgid ""
  26639. "(append (list (service avahi-service-type)\n"
  26640. " (service openssh-service-type))\n"
  26641. " %base-services)\n"
  26642. msgstr ""
  26643. #. type: defvar
  26644. #: guix-git/doc/guix.texi:18217
  26645. #, fuzzy, no-wrap
  26646. msgid "special-files-service-type"
  26647. msgstr "邮件服务"
  26648. #. type: defvar
  26649. #: guix-git/doc/guix.texi:18220
  26650. 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}."
  26651. msgstr ""
  26652. #. type: defvar
  26653. #: guix-git/doc/guix.texi:18224
  26654. msgid "The value associated with @code{special-files-service-type} services must be a list of two-element lists where the first element is the ``special file'' and the second element is its target. By default it is:"
  26655. msgstr ""
  26656. #. type: file{#1}
  26657. #: guix-git/doc/guix.texi:18225
  26658. #, no-wrap
  26659. msgid "/bin/sh"
  26660. msgstr ""
  26661. #. type: cindex
  26662. #: guix-git/doc/guix.texi:18226
  26663. #, no-wrap
  26664. msgid "@file{sh}, in @file{/bin}"
  26665. msgstr ""
  26666. #. type: lisp
  26667. #: guix-git/doc/guix.texi:18230
  26668. #, no-wrap
  26669. msgid ""
  26670. "`((\"/bin/sh\" ,(file-append bash \"/bin/sh\"))\n"
  26671. " (\"/usr/bin/env\" ,(file-append coreutils \"/bin/env\")))\n"
  26672. msgstr ""
  26673. #. type: file{#1}
  26674. #: guix-git/doc/guix.texi:18232
  26675. #, no-wrap
  26676. msgid "/usr/bin/env"
  26677. msgstr ""
  26678. #. type: cindex
  26679. #: guix-git/doc/guix.texi:18233
  26680. #, no-wrap
  26681. msgid "@file{env}, in @file{/usr/bin}"
  26682. msgstr ""
  26683. #. type: defvar
  26684. #: guix-git/doc/guix.texi:18236
  26685. msgid "If you want to add, say, @code{/bin/bash} to your system, you can change it to:"
  26686. msgstr ""
  26687. #. type: lisp
  26688. #: guix-git/doc/guix.texi:18241
  26689. #, no-wrap
  26690. msgid ""
  26691. "`((\"/bin/sh\" ,(file-append bash \"/bin/sh\"))\n"
  26692. " (\"/usr/bin/env\" ,(file-append coreutils \"/bin/env\"))\n"
  26693. " (\"/bin/bash\" ,(file-append bash \"/bin/bash\")))\n"
  26694. msgstr ""
  26695. #. type: defvar
  26696. #: guix-git/doc/guix.texi:18248
  26697. 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)."
  26698. msgstr ""
  26699. #. type: defun
  26700. #: guix-git/doc/guix.texi:18250
  26701. #, no-wrap
  26702. msgid "extra-special-file file target"
  26703. msgstr ""
  26704. #. type: defun
  26705. #: guix-git/doc/guix.texi:18252
  26706. msgid "Use @var{target} as the ``special file'' @var{file}."
  26707. msgstr ""
  26708. #. type: defun
  26709. #: guix-git/doc/guix.texi:18256
  26710. 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:"
  26711. msgstr ""
  26712. #. type: lisp
  26713. #: guix-git/doc/guix.texi:18260
  26714. #, no-wrap
  26715. msgid ""
  26716. "(extra-special-file \"/usr/bin/env\"\n"
  26717. " (file-append coreutils \"/bin/env\"))\n"
  26718. msgstr ""
  26719. #. type: defvar
  26720. #: guix-git/doc/guix.texi:18263
  26721. #, fuzzy, no-wrap
  26722. msgid "host-name-service-type"
  26723. msgstr "邮件服务"
  26724. #. type: defvar
  26725. #: guix-git/doc/guix.texi:18267
  26726. msgid "Type of the service that sets the system host name, whose value is a string. This service is included in @code{operating-system} by default (@pxref{operating-system-essential-services,@code{essential-services}})."
  26727. msgstr ""
  26728. #. type: defvar
  26729. #: guix-git/doc/guix.texi:18269
  26730. #, fuzzy, no-wrap
  26731. msgid "console-font-service-type"
  26732. msgstr "邮件服务"
  26733. #. type: defvar
  26734. #: guix-git/doc/guix.texi:18274
  26735. 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:"
  26736. msgstr ""
  26737. #. type: lisp
  26738. #: guix-git/doc/guix.texi:18283
  26739. #, no-wrap
  26740. msgid ""
  26741. "`((\"tty1\" . \"LatGrkCyr-8x16\")\n"
  26742. " (\"tty2\" . ,(file-append\n"
  26743. " font-tamzen\n"
  26744. " \"/share/kbd/consolefonts/TamzenForPowerline10x20.psf\"))\n"
  26745. " (\"tty3\" . ,(file-append\n"
  26746. " font-terminus\n"
  26747. " \"/share/consolefonts/ter-132n\"))) ; for HDPI\n"
  26748. msgstr ""
  26749. #. type: defvar
  26750. #: guix-git/doc/guix.texi:18286
  26751. #, fuzzy, no-wrap
  26752. msgid "hosts-service-type"
  26753. msgstr "邮件服务"
  26754. #. type: defvar
  26755. #: guix-git/doc/guix.texi:18290
  26756. msgid "Type of the service that populates the entries for (@file{/etc/hosts}). This service type can be @emph{extended} by passing it a list of @code{host} records."
  26757. msgstr ""
  26758. #. type: defvar
  26759. #: guix-git/doc/guix.texi:18292
  26760. msgid "The example below shows how to add two entries to @file{/etc/hosts}:"
  26761. msgstr ""
  26762. #. The domain names below SHOULD NOT be translated.
  26763. #. type: lisp
  26764. #: guix-git/doc/guix.texi:18303
  26765. #, no-wrap
  26766. msgid ""
  26767. "(simple-service 'add-extra-hosts\n"
  26768. " hosts-service-type\n"
  26769. " (list (host \"192.0.2.1\" \"example.com\"\n"
  26770. " '(\"example.net\" \"example.org\"))\n"
  26771. " (host \"2001:db8::1\" \"example.com\"\n"
  26772. " '(\"example.net\" \"example.org\"))))\n"
  26773. msgstr ""
  26774. #. type: cindex
  26775. #: guix-git/doc/guix.texi:18306
  26776. #, no-wrap
  26777. msgid "@file{/etc/hosts} default entries"
  26778. msgstr ""
  26779. #. type: quotation
  26780. #: guix-git/doc/guix.texi:18308
  26781. msgid "By default @file{/etc/hosts} comes with the following entries:"
  26782. msgstr ""
  26783. #. type: example
  26784. #: guix-git/doc/guix.texi:18311
  26785. #, no-wrap
  26786. msgid ""
  26787. "127.0.0.1 localhost @var{host-name}\n"
  26788. "::1 localhost @var{host-name}\n"
  26789. msgstr ""
  26790. #. type: quotation
  26791. #: guix-git/doc/guix.texi:18317
  26792. msgid "For most setups this is what you want though if you find yourself in the situation where you want to change the default entries, you can do so in @code{operating-system} via @code{modify-services} (@pxref{Service Reference,@code{modify-services}})."
  26793. msgstr ""
  26794. #. type: quotation
  26795. #: guix-git/doc/guix.texi:18320
  26796. msgid "The following example shows how to unset @var{host-name} from being an alias of @code{localhost}."
  26797. msgstr ""
  26798. #. type: lisp
  26799. #: guix-git/doc/guix.texi:18323 guix-git/doc/guix.texi:19513
  26800. #, no-wrap
  26801. msgid ""
  26802. "(operating-system\n"
  26803. " ;; @dots{}\n"
  26804. "\n"
  26805. msgstr ""
  26806. #. type: lisp
  26807. #: guix-git/doc/guix.texi:18330
  26808. #, no-wrap
  26809. msgid ""
  26810. " (essential-services\n"
  26811. " (modify-services\n"
  26812. " (operating-system-default-essential-services this-operating-system)\n"
  26813. " (hosts-service-type config => (list\n"
  26814. " (host \"127.0.0.1\" \"localhost\")\n"
  26815. " (host \"::1\" \"localhost\"))))))\n"
  26816. msgstr ""
  26817. #. type: defun
  26818. #: guix-git/doc/guix.texi:18335
  26819. #, no-wrap
  26820. msgid "host @var{address} @var{canonical-name} [@var{aliases}]"
  26821. msgstr ""
  26822. #. type: defun
  26823. #: guix-git/doc/guix.texi:18338
  26824. msgid "Return a new record for the host at @var{address} with the given @var{canonical-name} and possibly @var{aliases}."
  26825. msgstr ""
  26826. #. type: defun
  26827. #: guix-git/doc/guix.texi:18342
  26828. msgid "@var{address} must be a string denoting a valid IPv4 or IPv6 address, and @var{canonical-name} and the strings listed in @var{aliases} must be valid host names."
  26829. msgstr ""
  26830. #. type: defvar
  26831. #: guix-git/doc/guix.texi:18344
  26832. #, fuzzy, no-wrap
  26833. msgid "login-service-type"
  26834. msgstr "邮件服务"
  26835. #. type: defvar
  26836. #: guix-git/doc/guix.texi:18347
  26837. msgid "Type of the service that provides a console login service, whose value is a @code{<login-configuration>} object."
  26838. msgstr ""
  26839. #. type: deftp
  26840. #: guix-git/doc/guix.texi:18349
  26841. #, no-wrap
  26842. msgid "{Data Type} login-configuration"
  26843. msgstr ""
  26844. #. type: deftp
  26845. #: guix-git/doc/guix.texi:18352
  26846. #, fuzzy
  26847. msgid "Data type representing the configuration of login, which specifies the @acronym{MOTD, message of the day}, among other things."
  26848. msgstr "管理操作系统配置。"
  26849. #. type: code{#1}
  26850. #: guix-git/doc/guix.texi:18355 guix-git/doc/guix.texi:19309
  26851. #, no-wrap
  26852. msgid "motd"
  26853. msgstr ""
  26854. #. type: cindex
  26855. #: guix-git/doc/guix.texi:18356
  26856. #, no-wrap
  26857. msgid "message of the day"
  26858. msgstr ""
  26859. #. type: table
  26860. #: guix-git/doc/guix.texi:18358 guix-git/doc/guix.texi:19311
  26861. msgid "A file-like object containing the ``message of the day''."
  26862. msgstr ""
  26863. #. type: item
  26864. #: guix-git/doc/guix.texi:18359 guix-git/doc/guix.texi:19312
  26865. #: guix-git/doc/guix.texi:22048
  26866. #, no-wrap
  26867. msgid "@code{allow-empty-passwords?} (default: @code{#t})"
  26868. msgstr ""
  26869. #. type: table
  26870. #: guix-git/doc/guix.texi:18362 guix-git/doc/guix.texi:19315
  26871. msgid "Allow empty passwords by default so that first-time users can log in when the 'root' account has just been created."
  26872. msgstr ""
  26873. #. type: defvar
  26874. #: guix-git/doc/guix.texi:18366
  26875. #, fuzzy, no-wrap
  26876. msgid "mingetty-service-type"
  26877. msgstr "邮件服务"
  26878. #. type: defvar
  26879. #: guix-git/doc/guix.texi:18370
  26880. msgid "Type of the service that runs Mingetty, an implementation of the virtual console log-in. The value for this service is a @code{<mingetty-configuration>} object."
  26881. msgstr ""
  26882. #. type: deftp
  26883. #: guix-git/doc/guix.texi:18372
  26884. #, no-wrap
  26885. msgid "{Data Type} mingetty-configuration"
  26886. msgstr ""
  26887. #. type: deftp
  26888. #: guix-git/doc/guix.texi:18375
  26889. #, fuzzy
  26890. msgid "Data type representing the configuration of Mingetty, which specifies the tty to run, among other things."
  26891. msgstr "管理操作系统配置。"
  26892. #. type: code{#1}
  26893. #: guix-git/doc/guix.texi:18377 guix-git/doc/guix.texi:18415
  26894. #: guix-git/doc/guix.texi:38224
  26895. #, no-wrap
  26896. msgid "tty"
  26897. msgstr ""
  26898. #. type: table
  26899. #: guix-git/doc/guix.texi:18379
  26900. msgid "The name of the console this Mingetty runs on---e.g., @code{\"tty1\"}."
  26901. msgstr ""
  26902. #. type: item
  26903. #: guix-git/doc/guix.texi:18380 guix-git/doc/guix.texi:18444
  26904. #: guix-git/doc/guix.texi:18606
  26905. #, no-wrap
  26906. msgid "@code{auto-login} (default: @code{#f})"
  26907. msgstr ""
  26908. #. type: table
  26909. #: guix-git/doc/guix.texi:18384
  26910. 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."
  26911. msgstr ""
  26912. #. type: item
  26913. #: guix-git/doc/guix.texi:18385
  26914. #, no-wrap
  26915. msgid "@code{login-program} (default: @code{#f})"
  26916. msgstr ""
  26917. #. type: table
  26918. #: guix-git/doc/guix.texi:18389
  26919. 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."
  26920. msgstr ""
  26921. #. type: item
  26922. #: guix-git/doc/guix.texi:18390
  26923. #, no-wrap
  26924. msgid "@code{login-pause?} (default: @code{#f})"
  26925. msgstr ""
  26926. #. type: table
  26927. #: guix-git/doc/guix.texi:18393
  26928. 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."
  26929. msgstr ""
  26930. #. type: item
  26931. #: guix-git/doc/guix.texi:18394
  26932. #, fuzzy, no-wrap
  26933. msgid "@code{clear-on-logout?} (default: @code{#t})"
  26934. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  26935. #. type: table
  26936. #: guix-git/doc/guix.texi:18396
  26937. msgid "When set to @code{#t}, the screen will be cleared after logout."
  26938. msgstr ""
  26939. #. type: item
  26940. #: guix-git/doc/guix.texi:18397
  26941. #, no-wrap
  26942. msgid "@code{mingetty} (default: @var{mingetty})"
  26943. msgstr ""
  26944. #. type: table
  26945. #: guix-git/doc/guix.texi:18399
  26946. msgid "The Mingetty package to use."
  26947. msgstr ""
  26948. #. type: defvar
  26949. #: guix-git/doc/guix.texi:18403
  26950. #, fuzzy, no-wrap
  26951. msgid "agetty-service-type"
  26952. msgstr "邮件服务"
  26953. #. type: defvar
  26954. #: guix-git/doc/guix.texi:18407
  26955. msgid "Type of the service that runs agetty, which implements virtual and serial console log-in. The value for this service is a @code{<agetty-configuration>} object."
  26956. msgstr ""
  26957. #. type: deftp
  26958. #: guix-git/doc/guix.texi:18409
  26959. #, no-wrap
  26960. msgid "{Data Type} agetty-configuration"
  26961. msgstr ""
  26962. #. type: deftp
  26963. #: guix-git/doc/guix.texi:18413
  26964. msgid "Data type representing the configuration of agetty, which specifies the tty to run, among other things@footnote{See the @code{agetty(8)} man page for more information.}."
  26965. msgstr ""
  26966. #. type: table
  26967. #: guix-git/doc/guix.texi:18419
  26968. 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."
  26969. msgstr ""
  26970. #. type: table
  26971. #: guix-git/doc/guix.texi:18423
  26972. 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."
  26973. msgstr ""
  26974. #. type: table
  26975. #: guix-git/doc/guix.texi:18427
  26976. 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."
  26977. msgstr ""
  26978. #. type: table
  26979. #: guix-git/doc/guix.texi:18431
  26980. 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."
  26981. msgstr ""
  26982. #. type: item
  26983. #: guix-git/doc/guix.texi:18432 guix-git/doc/guix.texi:38410
  26984. #, no-wrap
  26985. msgid "@code{baud-rate} (default: @code{#f})"
  26986. msgstr ""
  26987. #. type: table
  26988. #: guix-git/doc/guix.texi:18435
  26989. msgid "A string containing a comma-separated list of one or more baud rates, in descending order."
  26990. msgstr ""
  26991. #. type: item
  26992. #: guix-git/doc/guix.texi:18436
  26993. #, no-wrap
  26994. msgid "@code{term} (default: @code{#f})"
  26995. msgstr ""
  26996. #. type: table
  26997. #: guix-git/doc/guix.texi:18439
  26998. msgid "A string containing the value used for the @env{TERM} environment variable."
  26999. msgstr ""
  27000. #. type: item
  27001. #: guix-git/doc/guix.texi:18440
  27002. #, no-wrap
  27003. msgid "@code{eight-bits?} (default: @code{#f})"
  27004. msgstr ""
  27005. #. type: table
  27006. #: guix-git/doc/guix.texi:18443
  27007. msgid "When @code{#t}, the tty is assumed to be 8-bit clean, and parity detection is disabled."
  27008. msgstr ""
  27009. #. type: table
  27010. #: guix-git/doc/guix.texi:18447 guix-git/doc/guix.texi:18609
  27011. 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."
  27012. msgstr ""
  27013. #. type: item
  27014. #: guix-git/doc/guix.texi:18448
  27015. #, no-wrap
  27016. msgid "@code{no-reset?} (default: @code{#f})"
  27017. msgstr ""
  27018. #. type: table
  27019. #: guix-git/doc/guix.texi:18450
  27020. msgid "When @code{#t}, don't reset terminal cflags (control modes)."
  27021. msgstr ""
  27022. #. type: item
  27023. #: guix-git/doc/guix.texi:18451
  27024. #, no-wrap
  27025. msgid "@code{host} (default: @code{#f})"
  27026. msgstr ""
  27027. #. type: table
  27028. #: guix-git/doc/guix.texi:18454
  27029. msgid "This accepts a string containing the ``login_host'', which will be written into the @file{/var/run/utmpx} file."
  27030. msgstr ""
  27031. #. type: item
  27032. #: guix-git/doc/guix.texi:18455
  27033. #, no-wrap
  27034. msgid "@code{remote?} (default: @code{#f})"
  27035. msgstr ""
  27036. #. type: table
  27037. #: guix-git/doc/guix.texi:18459
  27038. 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}."
  27039. msgstr ""
  27040. #. type: item
  27041. #: guix-git/doc/guix.texi:18460
  27042. #, no-wrap
  27043. msgid "@code{flow-control?} (default: @code{#f})"
  27044. msgstr ""
  27045. #. type: table
  27046. #: guix-git/doc/guix.texi:18462
  27047. msgid "When set to @code{#t}, enable hardware (RTS/CTS) flow control."
  27048. msgstr ""
  27049. #. type: item
  27050. #: guix-git/doc/guix.texi:18463
  27051. #, no-wrap
  27052. msgid "@code{no-issue?} (default: @code{#f})"
  27053. msgstr ""
  27054. #. type: table
  27055. #: guix-git/doc/guix.texi:18466
  27056. msgid "When set to @code{#t}, the contents of the @file{/etc/issue} file will not be displayed before presenting the login prompt."
  27057. msgstr ""
  27058. #. type: item
  27059. #: guix-git/doc/guix.texi:18467
  27060. #, no-wrap
  27061. msgid "@code{init-string} (default: @code{#f})"
  27062. msgstr ""
  27063. #. type: table
  27064. #: guix-git/doc/guix.texi:18470
  27065. 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."
  27066. msgstr ""
  27067. #. type: item
  27068. #: guix-git/doc/guix.texi:18471
  27069. #, no-wrap
  27070. msgid "@code{no-clear?} (default: @code{#f})"
  27071. msgstr ""
  27072. #. type: table
  27073. #: guix-git/doc/guix.texi:18474
  27074. msgid "When set to @code{#t}, agetty will not clear the screen before showing the login prompt."
  27075. msgstr ""
  27076. #. type: item
  27077. #: guix-git/doc/guix.texi:18475
  27078. #, no-wrap
  27079. msgid "@code{login-program} (default: (file-append shadow \"/bin/login\"))"
  27080. msgstr ""
  27081. #. type: table
  27082. #: guix-git/doc/guix.texi:18479
  27083. 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."
  27084. msgstr ""
  27085. #. type: item
  27086. #: guix-git/doc/guix.texi:18480
  27087. #, no-wrap
  27088. msgid "@code{local-line} (default: @code{#f})"
  27089. msgstr ""
  27090. #. type: table
  27091. #: guix-git/doc/guix.texi:18484
  27092. 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}."
  27093. msgstr ""
  27094. #. type: item
  27095. #: guix-git/doc/guix.texi:18485
  27096. #, no-wrap
  27097. msgid "@code{extract-baud?} (default: @code{#f})"
  27098. msgstr ""
  27099. #. type: table
  27100. #: guix-git/doc/guix.texi:18488
  27101. 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."
  27102. msgstr ""
  27103. #. type: item
  27104. #: guix-git/doc/guix.texi:18489
  27105. #, no-wrap
  27106. msgid "@code{skip-login?} (default: @code{#f})"
  27107. msgstr ""
  27108. #. type: table
  27109. #: guix-git/doc/guix.texi:18493
  27110. 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."
  27111. msgstr ""
  27112. #. type: item
  27113. #: guix-git/doc/guix.texi:18494
  27114. #, no-wrap
  27115. msgid "@code{no-newline?} (default: @code{#f})"
  27116. msgstr ""
  27117. #. type: table
  27118. #: guix-git/doc/guix.texi:18497
  27119. msgid "When set to @code{#t}, do not print a newline before printing the @file{/etc/issue} file."
  27120. msgstr ""
  27121. #. type: item
  27122. #: guix-git/doc/guix.texi:18499
  27123. #, no-wrap
  27124. msgid "@code{login-options} (default: @code{#f})"
  27125. msgstr ""
  27126. #. type: table
  27127. #: guix-git/doc/guix.texi:18504
  27128. 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."
  27129. msgstr ""
  27130. #. type: item
  27131. #: guix-git/doc/guix.texi:18505
  27132. #, no-wrap
  27133. msgid "@code{login-pause} (default: @code{#f})"
  27134. msgstr ""
  27135. #. type: table
  27136. #: guix-git/doc/guix.texi:18509
  27137. 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."
  27138. msgstr ""
  27139. #. type: item
  27140. #: guix-git/doc/guix.texi:18510 guix-git/doc/guix.texi:33034
  27141. #, no-wrap
  27142. msgid "@code{chroot} (default: @code{#f})"
  27143. msgstr ""
  27144. #. type: table
  27145. #: guix-git/doc/guix.texi:18513
  27146. msgid "Change root to the specified directory. This option accepts a directory path as a string."
  27147. msgstr ""
  27148. #. type: item
  27149. #: guix-git/doc/guix.texi:18514
  27150. #, no-wrap
  27151. msgid "@code{hangup?} (default: @code{#f})"
  27152. msgstr ""
  27153. #. type: table
  27154. #: guix-git/doc/guix.texi:18517
  27155. msgid "Use the Linux system call @code{vhangup} to do a virtual hangup of the specified terminal."
  27156. msgstr ""
  27157. #. type: item
  27158. #: guix-git/doc/guix.texi:18518
  27159. #, no-wrap
  27160. msgid "@code{keep-baud?} (default: @code{#f})"
  27161. msgstr ""
  27162. #. type: table
  27163. #: guix-git/doc/guix.texi:18522
  27164. 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."
  27165. msgstr ""
  27166. #. type: item
  27167. #: guix-git/doc/guix.texi:18523
  27168. #, no-wrap
  27169. msgid "@code{timeout} (default: @code{#f})"
  27170. msgstr ""
  27171. #. type: table
  27172. #: guix-git/doc/guix.texi:18526
  27173. msgid "When set to an integer value, terminate if no user name could be read within @var{timeout} seconds."
  27174. msgstr ""
  27175. #. type: item
  27176. #: guix-git/doc/guix.texi:18527
  27177. #, no-wrap
  27178. msgid "@code{detect-case?} (default: @code{#f})"
  27179. msgstr ""
  27180. #. type: table
  27181. #: guix-git/doc/guix.texi:18533
  27182. 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."
  27183. msgstr ""
  27184. #. type: item
  27185. #: guix-git/doc/guix.texi:18534
  27186. #, no-wrap
  27187. msgid "@code{wait-cr?} (default: @code{#f})"
  27188. msgstr ""
  27189. #. type: table
  27190. #: guix-git/doc/guix.texi:18539
  27191. 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."
  27192. msgstr ""
  27193. #. type: item
  27194. #: guix-git/doc/guix.texi:18540
  27195. #, no-wrap
  27196. msgid "@code{no-hints?} (default: @code{#f})"
  27197. msgstr ""
  27198. #. type: table
  27199. #: guix-git/doc/guix.texi:18543
  27200. msgid "When set to @code{#t}, do not print hints about Num, Caps, and Scroll locks."
  27201. msgstr ""
  27202. #. type: item
  27203. #: guix-git/doc/guix.texi:18544
  27204. #, no-wrap
  27205. msgid "@code{no-hostname?} (default: @code{#f})"
  27206. msgstr ""
  27207. #. type: table
  27208. #: guix-git/doc/guix.texi:18547
  27209. msgid "By default, the hostname is printed. When this option is set to @code{#t}, no hostname will be shown at all."
  27210. msgstr ""
  27211. #. type: item
  27212. #: guix-git/doc/guix.texi:18548
  27213. #, no-wrap
  27214. msgid "@code{long-hostname?} (default: @code{#f})"
  27215. msgstr ""
  27216. #. type: table
  27217. #: guix-git/doc/guix.texi:18552
  27218. 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."
  27219. msgstr ""
  27220. #. type: item
  27221. #: guix-git/doc/guix.texi:18553
  27222. #, no-wrap
  27223. msgid "@code{erase-characters} (default: @code{#f})"
  27224. msgstr ""
  27225. #. type: table
  27226. #: guix-git/doc/guix.texi:18556
  27227. msgid "This option accepts a string of additional characters that should be interpreted as backspace when the user types their login name."
  27228. msgstr ""
  27229. #. type: item
  27230. #: guix-git/doc/guix.texi:18557
  27231. #, no-wrap
  27232. msgid "@code{kill-characters} (default: @code{#f})"
  27233. msgstr ""
  27234. #. type: table
  27235. #: guix-git/doc/guix.texi:18561
  27236. 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."
  27237. msgstr ""
  27238. #. type: item
  27239. #: guix-git/doc/guix.texi:18562
  27240. #, no-wrap
  27241. msgid "@code{chdir} (default: @code{#f})"
  27242. msgstr ""
  27243. #. type: table
  27244. #: guix-git/doc/guix.texi:18565
  27245. msgid "This option accepts, as a string, a directory path that will be changed to before login."
  27246. msgstr ""
  27247. #. type: item
  27248. #: guix-git/doc/guix.texi:18566
  27249. #, no-wrap
  27250. msgid "@code{delay} (default: @code{#f})"
  27251. msgstr ""
  27252. #. type: table
  27253. #: guix-git/doc/guix.texi:18569
  27254. msgid "This options accepts, as an integer, the number of seconds to sleep before opening the tty and displaying the login prompt."
  27255. msgstr ""
  27256. #. type: item
  27257. #: guix-git/doc/guix.texi:18570
  27258. #, no-wrap
  27259. msgid "@code{nice} (default: @code{#f})"
  27260. msgstr ""
  27261. #. type: table
  27262. #: guix-git/doc/guix.texi:18573
  27263. msgid "This option accepts, as an integer, the nice value with which to run the @command{login} program."
  27264. msgstr ""
  27265. #. type: item
  27266. #: guix-git/doc/guix.texi:18574 guix-git/doc/guix.texi:18876
  27267. #: guix-git/doc/guix.texi:20229 guix-git/doc/guix.texi:28785
  27268. #: guix-git/doc/guix.texi:30610 guix-git/doc/guix.texi:33192
  27269. #: guix-git/doc/guix.texi:36043 guix-git/doc/guix.texi:38752
  27270. #: guix-git/doc/guix.texi:43115 guix-git/doc/guix.texi:43692
  27271. #: guix-git/doc/guix.texi:43728
  27272. #, no-wrap
  27273. msgid "@code{extra-options} (default: @code{'()})"
  27274. msgstr ""
  27275. #. type: table
  27276. #: guix-git/doc/guix.texi:18577
  27277. msgid "This option provides an ``escape hatch'' for the user to provide arbitrary command-line arguments to @command{agetty} as a list of strings."
  27278. msgstr ""
  27279. #. type: item
  27280. #: guix-git/doc/guix.texi:18578 guix-git/doc/guix.texi:20077
  27281. #: guix-git/doc/guix.texi:20185 guix-git/doc/guix.texi:26421
  27282. #: guix-git/doc/guix.texi:30286
  27283. #, fuzzy, no-wrap
  27284. msgid "@code{shepherd-requirement} (default: @code{'()})"
  27285. msgstr "@code{features} (@code{'()})"
  27286. #. type: table
  27287. #: guix-git/doc/guix.texi:18581
  27288. msgid "The option can be used to provides extra shepherd requirements (for example @code{'syslogd}) to the respective @code{'term-}* shepherd service."
  27289. msgstr ""
  27290. #. type: defvar
  27291. #: guix-git/doc/guix.texi:18585
  27292. #, fuzzy, no-wrap
  27293. msgid "kmscon-service-type"
  27294. msgstr "邮件服务"
  27295. #. type: defvar
  27296. #: guix-git/doc/guix.texi:18589
  27297. msgid "Type of the service that runs @uref{https://www.freedesktop.org/wiki/Software/kmscon,kmscon}, which implements virtual console log-in. The value for this service is a @code{<kmscon-configuration>} object."
  27298. msgstr ""
  27299. #. type: deftp
  27300. #: guix-git/doc/guix.texi:18591
  27301. #, no-wrap
  27302. msgid "{Data Type} kmscon-configuration"
  27303. msgstr ""
  27304. #. type: deftp
  27305. #: guix-git/doc/guix.texi:18594
  27306. #, fuzzy
  27307. msgid "Data type representing the configuration of Kmscon, which specifies the tty to run, among other things."
  27308. msgstr "管理操作系统配置。"
  27309. #. type: code{#1}
  27310. #: guix-git/doc/guix.texi:18596
  27311. #, no-wrap
  27312. msgid "virtual-terminal"
  27313. msgstr ""
  27314. #. type: table
  27315. #: guix-git/doc/guix.texi:18598
  27316. msgid "The name of the console this Kmscon runs on---e.g., @code{\"tty1\"}."
  27317. msgstr ""
  27318. #. type: item
  27319. #: guix-git/doc/guix.texi:18599
  27320. #, no-wrap
  27321. msgid "@code{login-program} (default: @code{#~(string-append #$shadow \"/bin/login\")})"
  27322. msgstr ""
  27323. #. type: table
  27324. #: guix-git/doc/guix.texi:18602
  27325. msgid "A gexp denoting the name of the log-in program. The default log-in program is @command{login} from the Shadow tool suite."
  27326. msgstr ""
  27327. #. type: item
  27328. #: guix-git/doc/guix.texi:18603
  27329. #, no-wrap
  27330. msgid "@code{login-arguments} (default: @code{'(\"-p\")})"
  27331. msgstr ""
  27332. #. type: table
  27333. #: guix-git/doc/guix.texi:18605
  27334. msgid "A list of arguments to pass to @command{login}."
  27335. msgstr ""
  27336. #. type: item
  27337. #: guix-git/doc/guix.texi:18610
  27338. #, no-wrap
  27339. msgid "@code{hardware-acceleration?} (default: #f)"
  27340. msgstr ""
  27341. #. type: table
  27342. #: guix-git/doc/guix.texi:18612
  27343. msgid "Whether to use hardware acceleration."
  27344. msgstr ""
  27345. #. type: item
  27346. #: guix-git/doc/guix.texi:18613
  27347. #, fuzzy, no-wrap
  27348. msgid "@code{font-engine} (default: @code{\"pango\"})"
  27349. msgstr "@code{journal-content}(默认值:@code{#f})"
  27350. #. type: table
  27351. #: guix-git/doc/guix.texi:18615
  27352. msgid "Font engine used in Kmscon."
  27353. msgstr ""
  27354. #. type: item
  27355. #: guix-git/doc/guix.texi:18616
  27356. #, fuzzy, no-wrap
  27357. msgid "@code{font-size} (default: @code{12})"
  27358. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  27359. #. type: table
  27360. #: guix-git/doc/guix.texi:18618
  27361. msgid "Font size used in Kmscon."
  27362. msgstr ""
  27363. #. type: table
  27364. #: guix-git/doc/guix.texi:18622
  27365. msgid "If this is @code{#f}, Kmscon uses the default keyboard layout---usually US English (``qwerty'') for a 105-key PC keyboard."
  27366. msgstr ""
  27367. #. type: table
  27368. #: guix-git/doc/guix.texi:18626
  27369. 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."
  27370. msgstr ""
  27371. #. type: item
  27372. #: guix-git/doc/guix.texi:18627
  27373. #, no-wrap
  27374. msgid "@code{kmscon} (default: @var{kmscon})"
  27375. msgstr ""
  27376. #. type: table
  27377. #: guix-git/doc/guix.texi:18629
  27378. msgid "The Kmscon package to use."
  27379. msgstr ""
  27380. #. type: defvar
  27381. #: guix-git/doc/guix.texi:18634
  27382. #, fuzzy, no-wrap
  27383. msgid "nscd-service-type"
  27384. msgstr "邮件服务"
  27385. #. type: defvar
  27386. #: guix-git/doc/guix.texi:18637
  27387. #, fuzzy
  27388. msgid "Type of the service that runs the libc @abbr{nscd, name service cache daemon}, whose value is an @code{<nscd-configuration>} object."
  27389. msgstr "管理操作系统配置。"
  27390. #. type: defvar
  27391. #: guix-git/doc/guix.texi:18639
  27392. msgid "For convenience, the Shepherd service for nscd provides the following actions:"
  27393. msgstr ""
  27394. #. type: item
  27395. #: guix-git/doc/guix.texi:18641
  27396. #, no-wrap
  27397. msgid "invalidate"
  27398. msgstr ""
  27399. #. type: cindex
  27400. #: guix-git/doc/guix.texi:18642
  27401. #, no-wrap
  27402. msgid "nscd, cache invalidation"
  27403. msgstr ""
  27404. #. type: cindex
  27405. #: guix-git/doc/guix.texi:18643
  27406. #, no-wrap
  27407. msgid "cache invalidation, nscd"
  27408. msgstr ""
  27409. #. type: table
  27410. #: guix-git/doc/guix.texi:18645
  27411. msgid "This invalidate the given cache. For instance, running:"
  27412. msgstr ""
  27413. #. type: example
  27414. #: guix-git/doc/guix.texi:18648
  27415. #, no-wrap
  27416. msgid "herd invalidate nscd hosts\n"
  27417. msgstr ""
  27418. #. type: table
  27419. #: guix-git/doc/guix.texi:18652
  27420. msgid "invalidates the host name lookup cache of nscd."
  27421. msgstr ""
  27422. #. type: item
  27423. #: guix-git/doc/guix.texi:18653
  27424. #, no-wrap
  27425. msgid "statistics"
  27426. msgstr ""
  27427. #. type: table
  27428. #: guix-git/doc/guix.texi:18656
  27429. msgid "Running @command{herd statistics nscd} displays information about nscd usage and caches."
  27430. msgstr ""
  27431. #. type: deftp
  27432. #: guix-git/doc/guix.texi:18659
  27433. #, no-wrap
  27434. msgid "{Data Type} nscd-configuration"
  27435. msgstr ""
  27436. #. type: deftp
  27437. #: guix-git/doc/guix.texi:18662
  27438. #, fuzzy
  27439. msgid "Data type representing the @abbr{nscd, name service cache daemon} configuration."
  27440. msgstr "管理操作系统配置。"
  27441. #. type: item
  27442. #: guix-git/doc/guix.texi:18665
  27443. #, no-wrap
  27444. msgid "@code{name-services} (default: @code{'()})"
  27445. msgstr ""
  27446. #. type: table
  27447. #: guix-git/doc/guix.texi:18668
  27448. msgid "List of packages denoting @dfn{name services} that must be visible to the nscd---e.g., @code{(list @var{nss-mdns})}."
  27449. msgstr ""
  27450. #. type: item
  27451. #: guix-git/doc/guix.texi:18669
  27452. #, no-wrap
  27453. msgid "@code{glibc} (default: @var{glibc})"
  27454. msgstr ""
  27455. #. type: table
  27456. #: guix-git/doc/guix.texi:18672
  27457. msgid "Package object denoting the GNU C Library providing the @command{nscd} command."
  27458. msgstr ""
  27459. #. type: item
  27460. #: guix-git/doc/guix.texi:18673
  27461. #, no-wrap
  27462. msgid "@code{log-file} (default: @code{\"/var/log/nscd.log\"})"
  27463. msgstr ""
  27464. #. type: table
  27465. #: guix-git/doc/guix.texi:18676
  27466. msgid "Name of the nscd log file. This is where debugging output goes when @code{debug-level} is strictly positive."
  27467. msgstr ""
  27468. #. type: item
  27469. #: guix-git/doc/guix.texi:18677
  27470. #, no-wrap
  27471. msgid "@code{debug-level} (default: @code{0})"
  27472. msgstr ""
  27473. #. type: table
  27474. #: guix-git/doc/guix.texi:18680
  27475. msgid "Integer denoting the debugging levels. Higher numbers mean that more debugging output is logged."
  27476. msgstr ""
  27477. #. type: item
  27478. #: guix-git/doc/guix.texi:18681
  27479. #, fuzzy, no-wrap
  27480. msgid "@code{caches} (default: @code{%nscd-default-caches})"
  27481. msgstr "@code{xfce}(默认值:@code{xfce})"
  27482. #. type: table
  27483. #: guix-git/doc/guix.texi:18684
  27484. msgid "List of @code{<nscd-cache>} objects denoting things to be cached; see below."
  27485. msgstr ""
  27486. #. type: deftp
  27487. #: guix-git/doc/guix.texi:18688
  27488. #, no-wrap
  27489. msgid "{Data Type} nscd-cache"
  27490. msgstr ""
  27491. #. type: deftp
  27492. #: guix-git/doc/guix.texi:18690
  27493. msgid "Data type representing a cache database of nscd and its parameters."
  27494. msgstr ""
  27495. #. type: cindex
  27496. #: guix-git/doc/guix.texi:18693 guix-git/doc/guix.texi:24650
  27497. #, no-wrap
  27498. msgid "database"
  27499. msgstr ""
  27500. #. type: table
  27501. #: guix-git/doc/guix.texi:18698
  27502. 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})."
  27503. msgstr ""
  27504. #. type: code{#1}
  27505. #: guix-git/doc/guix.texi:18699
  27506. #, no-wrap
  27507. msgid "positive-time-to-live"
  27508. msgstr ""
  27509. #. type: itemx
  27510. #: guix-git/doc/guix.texi:18700
  27511. #, no-wrap
  27512. msgid "@code{negative-time-to-live} (default: @code{20})"
  27513. msgstr ""
  27514. #. type: table
  27515. #: guix-git/doc/guix.texi:18703
  27516. msgid "A number representing the number of seconds during which a positive or negative lookup result remains in cache."
  27517. msgstr ""
  27518. #. type: item
  27519. #: guix-git/doc/guix.texi:18704
  27520. #, no-wrap
  27521. msgid "@code{check-files?} (default: @code{#t})"
  27522. msgstr ""
  27523. #. type: table
  27524. #: guix-git/doc/guix.texi:18707
  27525. msgid "Whether to check for updates of the files corresponding to @var{database}."
  27526. msgstr ""
  27527. #. type: table
  27528. #: guix-git/doc/guix.texi:18711
  27529. 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."
  27530. msgstr ""
  27531. #. type: item
  27532. #: guix-git/doc/guix.texi:18712
  27533. #, no-wrap
  27534. msgid "@code{persistent?} (default: @code{#t})"
  27535. msgstr ""
  27536. #. type: table
  27537. #: guix-git/doc/guix.texi:18714
  27538. msgid "Whether the cache should be stored persistently on disk."
  27539. msgstr ""
  27540. #. type: item
  27541. #: guix-git/doc/guix.texi:18715
  27542. #, no-wrap
  27543. msgid "@code{shared?} (default: @code{#t})"
  27544. msgstr ""
  27545. #. type: table
  27546. #: guix-git/doc/guix.texi:18717
  27547. msgid "Whether the cache should be shared among users."
  27548. msgstr ""
  27549. #. type: item
  27550. #: guix-git/doc/guix.texi:18718
  27551. #, no-wrap
  27552. msgid "@code{max-database-size} (default: 32@tie{}MiB)"
  27553. msgstr ""
  27554. #. type: table
  27555. #: guix-git/doc/guix.texi:18720
  27556. msgid "Maximum size in bytes of the database cache."
  27557. msgstr ""
  27558. #. type: defvar
  27559. #: guix-git/doc/guix.texi:18727
  27560. #, no-wrap
  27561. msgid "%nscd-default-caches"
  27562. msgstr ""
  27563. #. type: defvar
  27564. #: guix-git/doc/guix.texi:18730
  27565. msgid "List of @code{<nscd-cache>} objects used by default by @code{nscd-configuration} (see above)."
  27566. msgstr ""
  27567. #. type: defvar
  27568. #: guix-git/doc/guix.texi:18736
  27569. 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."
  27570. msgstr ""
  27571. #. type: cindex
  27572. #: guix-git/doc/guix.texi:18738
  27573. #, no-wrap
  27574. msgid "syslog"
  27575. msgstr ""
  27576. #. type: cindex
  27577. #: guix-git/doc/guix.texi:18739 guix-git/doc/guix.texi:19643
  27578. #, no-wrap
  27579. msgid "logging"
  27580. msgstr ""
  27581. #. type: defvar
  27582. #: guix-git/doc/guix.texi:18740
  27583. #, fuzzy, no-wrap
  27584. msgid "syslog-service-type"
  27585. msgstr "邮件服务"
  27586. #. type: defvar
  27587. #: guix-git/doc/guix.texi:18743
  27588. msgid "Type of the service that runs the syslog daemon, whose value is a @code{<syslog-configuration>} object."
  27589. msgstr ""
  27590. #. type: Plain text
  27591. #: guix-git/doc/guix.texi:18749
  27592. msgid "To have a modified @code{syslog-configuration} come into effect after reconfiguring your system, the @samp{reload} action should be preferred to restarting the service, as many services such as the login manager depend on it and would be restarted as well:"
  27593. msgstr ""
  27594. #. type: example
  27595. #: guix-git/doc/guix.texi:18752
  27596. #, no-wrap
  27597. msgid "# herd reload syslog\n"
  27598. msgstr ""
  27599. #. type: Plain text
  27600. #: guix-git/doc/guix.texi:18756
  27601. msgid "which will cause the running @command{syslogd} process to reload its configuration."
  27602. msgstr ""
  27603. #. type: deftp
  27604. #: guix-git/doc/guix.texi:18757
  27605. #, no-wrap
  27606. msgid "{Data Type} syslog-configuration"
  27607. msgstr ""
  27608. #. type: deftp
  27609. #: guix-git/doc/guix.texi:18759
  27610. #, fuzzy
  27611. msgid "Data type representing the configuration of the syslog daemon."
  27612. msgstr "管理操作系统配置。"
  27613. #. type: item
  27614. #: guix-git/doc/guix.texi:18761
  27615. #, no-wrap
  27616. msgid "@code{syslogd} (default: @code{#~(string-append #$inetutils \"/libexec/syslogd\")})"
  27617. msgstr ""
  27618. #. type: table
  27619. #: guix-git/doc/guix.texi:18763
  27620. msgid "The syslog daemon to use."
  27621. msgstr ""
  27622. #. type: item
  27623. #: guix-git/doc/guix.texi:18764
  27624. #, no-wrap
  27625. msgid "@code{config-file} (default: @code{%default-syslog.conf})"
  27626. msgstr ""
  27627. #. type: table
  27628. #: guix-git/doc/guix.texi:18768
  27629. msgid "The syslog configuration file to use. @xref{syslogd invocation,,, inetutils, GNU Inetutils}, for more information on the configuration file syntax."
  27630. msgstr ""
  27631. #. type: defvar
  27632. #: guix-git/doc/guix.texi:18772
  27633. #, fuzzy, no-wrap
  27634. msgid "guix-service-type"
  27635. msgstr "邮件服务"
  27636. #. type: defvar
  27637. #: guix-git/doc/guix.texi:18776
  27638. 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."
  27639. msgstr ""
  27640. #. type: anchor{#1}
  27641. #: guix-git/doc/guix.texi:18779
  27642. msgid "guix-configuration-type"
  27643. msgstr ""
  27644. #. type: deftp
  27645. #: guix-git/doc/guix.texi:18779
  27646. #, no-wrap
  27647. msgid "{Data Type} guix-configuration"
  27648. msgstr ""
  27649. #. type: deftp
  27650. #: guix-git/doc/guix.texi:18782
  27651. msgid "This data type represents the configuration of the Guix build daemon. @xref{Invoking guix-daemon}, for more information."
  27652. msgstr ""
  27653. #. type: item
  27654. #: guix-git/doc/guix.texi:18784
  27655. #, no-wrap
  27656. msgid "@code{guix} (default: @var{guix})"
  27657. msgstr ""
  27658. #. type: table
  27659. #: guix-git/doc/guix.texi:18786 guix-git/doc/guix.texi:19109
  27660. msgid "The Guix package to use."
  27661. msgstr ""
  27662. #. type: item
  27663. #: guix-git/doc/guix.texi:18787
  27664. #, no-wrap
  27665. msgid "@code{build-group} (default: @code{\"guixbuild\"})"
  27666. msgstr ""
  27667. #. type: table
  27668. #: guix-git/doc/guix.texi:18789
  27669. msgid "Name of the group for build user accounts."
  27670. msgstr ""
  27671. #. type: item
  27672. #: guix-git/doc/guix.texi:18790
  27673. #, no-wrap
  27674. msgid "@code{build-accounts} (default: @code{10})"
  27675. msgstr ""
  27676. #. type: table
  27677. #: guix-git/doc/guix.texi:18792
  27678. msgid "Number of build user accounts to create."
  27679. msgstr ""
  27680. #. type: item
  27681. #: guix-git/doc/guix.texi:18793
  27682. #, no-wrap
  27683. msgid "@code{authorize-key?} (default: @code{#t})"
  27684. msgstr ""
  27685. #. type: table
  27686. #: guix-git/doc/guix.texi:18800
  27687. 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})."
  27688. msgstr ""
  27689. #. type: table
  27690. #: guix-git/doc/guix.texi:18806
  27691. 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."
  27692. msgstr ""
  27693. #. type: quotation
  27694. #: guix-git/doc/guix.texi:18813
  27695. 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}."
  27696. msgstr ""
  27697. #. type: vindex
  27698. #: guix-git/doc/guix.texi:18815
  27699. #, no-wrap
  27700. msgid "%default-authorized-guix-keys"
  27701. msgstr ""
  27702. #. type: item
  27703. #: guix-git/doc/guix.texi:18816
  27704. #, fuzzy, no-wrap
  27705. msgid "@code{authorized-keys} (default: @code{%default-authorized-guix-keys})"
  27706. msgstr "@code{mate}(默认值:@code{mate})"
  27707. #. type: table
  27708. #: guix-git/doc/guix.texi:18822
  27709. 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."
  27710. msgstr ""
  27711. #. type: item
  27712. #: guix-git/doc/guix.texi:18823
  27713. #, no-wrap
  27714. msgid "@code{use-substitutes?} (default: @code{#t})"
  27715. msgstr ""
  27716. #. type: table
  27717. #: guix-git/doc/guix.texi:18825
  27718. msgid "Whether to use substitutes."
  27719. msgstr ""
  27720. #. type: item
  27721. #: guix-git/doc/guix.texi:18826 guix-git/doc/guix.texi:33289
  27722. #, fuzzy, no-wrap
  27723. msgid "@code{substitute-urls} (default: @code{%default-substitute-urls})"
  27724. msgstr "@code{mate}(默认值:@code{mate})"
  27725. #. type: table
  27726. #: guix-git/doc/guix.texi:18828 guix-git/doc/guix.texi:33291
  27727. msgid "The list of URLs where to look for substitutes by default."
  27728. msgstr ""
  27729. #. type: table
  27730. #: guix-git/doc/guix.texi:18835
  27731. 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:"
  27732. msgstr ""
  27733. #. type: lisp
  27734. #: guix-git/doc/guix.texi:18844
  27735. #, no-wrap
  27736. msgid ""
  27737. "(guix-configuration\n"
  27738. " (substitute-urls\n"
  27739. " (append (list \"https://guix.example.org\")\n"
  27740. " %default-substitute-urls))\n"
  27741. " (authorized-keys\n"
  27742. " (append (list (local-file \"./guix.example.org-key.pub\"))\n"
  27743. " %default-authorized-guix-keys)))\n"
  27744. msgstr ""
  27745. #. type: table
  27746. #: guix-git/doc/guix.texi:18849
  27747. 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."
  27748. msgstr ""
  27749. #. type: item
  27750. #: guix-git/doc/guix.texi:18850
  27751. #, fuzzy, no-wrap
  27752. msgid "@code{generate-substitute-key?} (default: @code{#t})"
  27753. msgstr "@code{mate}(默认值:@code{mate})"
  27754. #. type: table
  27755. #: guix-git/doc/guix.texi:18854
  27756. 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."
  27757. msgstr ""
  27758. #. type: table
  27759. #: guix-git/doc/guix.texi:18861
  27760. 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."
  27761. msgstr ""
  27762. #. type: item
  27763. #: guix-git/doc/guix.texi:18862
  27764. #, no-wrap
  27765. msgid "@code{max-silent-time} (default: @code{0})"
  27766. msgstr ""
  27767. #. type: itemx
  27768. #: guix-git/doc/guix.texi:18863
  27769. #, no-wrap
  27770. msgid "@code{timeout} (default: @code{0})"
  27771. msgstr ""
  27772. #. type: table
  27773. #: guix-git/doc/guix.texi:18867
  27774. 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."
  27775. msgstr ""
  27776. #. type: item
  27777. #: guix-git/doc/guix.texi:18868
  27778. #, fuzzy, no-wrap
  27779. #| msgid "@code{compression-level} (default: @code{3})"
  27780. msgid "@code{log-compression} (default: @code{'gzip})"
  27781. msgstr "@code{compression-level}(默认值:@code{3})"
  27782. #. type: table
  27783. #: guix-git/doc/guix.texi:18871
  27784. msgid "The type of compression used for build logs---one of @code{gzip}, @code{bzip2}, or @code{none}."
  27785. msgstr ""
  27786. #. type: item
  27787. #: guix-git/doc/guix.texi:18872
  27788. #, fuzzy, no-wrap
  27789. msgid "@code{discover?} (default: @code{#f})"
  27790. msgstr "@code{speed}(默认值:@code{1.0})"
  27791. #. type: table
  27792. #: guix-git/doc/guix.texi:18878
  27793. msgid "List of extra command-line options for @command{guix-daemon}."
  27794. msgstr ""
  27795. #. type: item
  27796. #: guix-git/doc/guix.texi:18879
  27797. #, no-wrap
  27798. msgid "@code{log-file} (default: @code{\"/var/log/guix-daemon.log\"})"
  27799. msgstr ""
  27800. #. type: table
  27801. #: guix-git/doc/guix.texi:18882
  27802. msgid "File where @command{guix-daemon}'s standard output and standard error are written."
  27803. msgstr ""
  27804. #. type: cindex
  27805. #: guix-git/doc/guix.texi:18883
  27806. #, no-wrap
  27807. msgid "HTTP proxy, for @code{guix-daemon}"
  27808. msgstr ""
  27809. #. type: cindex
  27810. #: guix-git/doc/guix.texi:18884
  27811. #, no-wrap
  27812. msgid "proxy, for @code{guix-daemon} HTTP access"
  27813. msgstr ""
  27814. #. type: item
  27815. #: guix-git/doc/guix.texi:18885
  27816. #, no-wrap
  27817. msgid "@code{http-proxy} (default: @code{#f})"
  27818. msgstr ""
  27819. #. type: table
  27820. #: guix-git/doc/guix.texi:18888
  27821. msgid "The URL of the HTTP and HTTPS proxy used for downloading fixed-output derivations and substitutes."
  27822. msgstr ""
  27823. #. type: table
  27824. #: guix-git/doc/guix.texi:18891
  27825. msgid "It is also possible to change the daemon's proxy at run time through the @code{set-http-proxy} action, which restarts it:"
  27826. msgstr ""
  27827. #. type: example
  27828. #: guix-git/doc/guix.texi:18894
  27829. #, no-wrap
  27830. msgid "herd set-http-proxy guix-daemon http://localhost:8118\n"
  27831. msgstr ""
  27832. #. type: table
  27833. #: guix-git/doc/guix.texi:18897
  27834. msgid "To clear the proxy settings, run:"
  27835. msgstr ""
  27836. #. type: example
  27837. #: guix-git/doc/guix.texi:18900
  27838. #, no-wrap
  27839. msgid "herd set-http-proxy guix-daemon\n"
  27840. msgstr "herd set-http-proxy guix-daemon\n"
  27841. #. type: item
  27842. #: guix-git/doc/guix.texi:18902
  27843. #, no-wrap
  27844. msgid "@code{tmpdir} (default: @code{#f})"
  27845. msgstr ""
  27846. #. type: table
  27847. #: guix-git/doc/guix.texi:18904
  27848. msgid "A directory path where the @command{guix-daemon} will perform builds."
  27849. msgstr ""
  27850. #. type: item
  27851. #: guix-git/doc/guix.texi:18905
  27852. #, fuzzy, no-wrap
  27853. msgid "@code{environment} (default: @code{'()})"
  27854. msgstr "@code{features} (@code{'()})"
  27855. #. type: table
  27856. #: guix-git/doc/guix.texi:18908
  27857. msgid "Environment variables to be set before starting the daemon, as a list of @code{key=value} strings."
  27858. msgstr ""
  27859. #. type: deftp
  27860. #: guix-git/doc/guix.texi:18912
  27861. #, fuzzy, no-wrap
  27862. msgid "{Data Type} guix-extension"
  27863. msgstr "{数据类型} build-machine"
  27864. #. type: deftp
  27865. #: guix-git/doc/guix.texi:18918
  27866. msgid "This data type represents the parameters of the Guix build daemon that are extendable. This is the type of the object that must be used within a guix service extension. @xref{Service Composition}, for more information."
  27867. msgstr ""
  27868. #. type: item
  27869. #: guix-git/doc/guix.texi:18920 guix-git/doc/guix.texi:21215
  27870. #, no-wrap
  27871. msgid "@code{authorized-keys} (default: @code{'()})"
  27872. msgstr ""
  27873. #. type: table
  27874. #: guix-git/doc/guix.texi:18922
  27875. msgid "A list of file-like objects where each element contains a public key."
  27876. msgstr ""
  27877. #. type: item
  27878. #: guix-git/doc/guix.texi:18923
  27879. #, fuzzy, no-wrap
  27880. msgid "@code{substitute-urls} (default: @code{'()})"
  27881. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  27882. #. type: table
  27883. #: guix-git/doc/guix.texi:18925
  27884. msgid "A list of strings where each element is a substitute URL."
  27885. msgstr ""
  27886. #. type: item
  27887. #: guix-git/doc/guix.texi:18926
  27888. #, fuzzy, no-wrap
  27889. msgid "@code{chroot-directories} (default: @code{'()})"
  27890. msgstr "@code{features} (@code{'()})"
  27891. #. type: table
  27892. #: guix-git/doc/guix.texi:18928
  27893. msgid "A list of file-like objects or strings pointing to additional directories the build daemon can use."
  27894. msgstr ""
  27895. #. type: defvar
  27896. #: guix-git/doc/guix.texi:18931
  27897. #, fuzzy, no-wrap
  27898. msgid "udev-service-type"
  27899. msgstr "邮件服务"
  27900. #. type: defvar
  27901. #: guix-git/doc/guix.texi:18935
  27902. msgid "Type of the service that runs udev, a service which populates the @file{/dev} directory dynamically, whose value is a @code{<udev-configuration>} object."
  27903. msgstr ""
  27904. #. type: defvar
  27905. #: guix-git/doc/guix.texi:18939
  27906. msgid "This service type can be @emph{extended} using procedures @code{udev-rules-service} along with @code{file->udev-rule} or @code{udev-rule} which simplify the process of writing udev rules."
  27907. msgstr ""
  27908. #. type: deftp
  27909. #: guix-git/doc/guix.texi:18941
  27910. #, fuzzy, no-wrap
  27911. msgid "{Data Type} udev-configuration"
  27912. msgstr "{数据类型} build-machine"
  27913. #. type: deftp
  27914. #: guix-git/doc/guix.texi:18943
  27915. #, fuzzy
  27916. msgid "Data type representing the configuration of udev."
  27917. msgstr "管理操作系统配置。"
  27918. #. type: item
  27919. #: guix-git/doc/guix.texi:18945
  27920. #, fuzzy, no-wrap
  27921. msgid "@code{udev} (default: @code{eudev}) (type: file-like)"
  27922. msgstr "@code{xfce}(默认值:@code{xfce})"
  27923. #. type: table
  27924. #: guix-git/doc/guix.texi:18947
  27925. #, fuzzy
  27926. msgid "Package object of the udev service."
  27927. msgstr "软件包数据类型。"
  27928. #. type: item
  27929. #: guix-git/doc/guix.texi:18948
  27930. #, fuzzy, no-wrap
  27931. msgid "@code{rules} (default: @var{'()}) (type: list-of-file-like)"
  27932. msgstr "@code{port}(默认值:@code{22})"
  27933. #. type: table
  27934. #: guix-git/doc/guix.texi:18950
  27935. msgid "List of file-like objects denoting udev-rule files."
  27936. msgstr ""
  27937. #. type: defun
  27938. #: guix-git/doc/guix.texi:18954
  27939. #, fuzzy, no-wrap
  27940. msgid "udev-rule @var{file-name} @var{contents}"
  27941. msgstr "--log-compression=@var{type}"
  27942. #. type: defun
  27943. #: guix-git/doc/guix.texi:18957
  27944. msgid "Return a udev-rule file named @var{file-name} containing the rules defined by the @var{contents} literal."
  27945. msgstr ""
  27946. #. type: defun
  27947. #: guix-git/doc/guix.texi:18961
  27948. 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."
  27949. msgstr ""
  27950. #. type: lisp
  27951. #: guix-git/doc/guix.texi:18969
  27952. #, no-wrap
  27953. msgid ""
  27954. "(define %example-udev-rule\n"
  27955. " (udev-rule\n"
  27956. " \"90-usb-thing.rules\"\n"
  27957. " (string-append \"ACTION==\\\"add\\\", SUBSYSTEM==\\\"usb\\\", \"\n"
  27958. " \"ATTR@{product@}==\\\"Example\\\", \"\n"
  27959. " \"RUN+=\\\"/path/to/script\\\"\")))\n"
  27960. msgstr ""
  27961. #. type: defun
  27962. #: guix-git/doc/guix.texi:18972
  27963. #, no-wrap
  27964. msgid "udev-rules-service @var{name} @var{rules} [#:groups '()]"
  27965. msgstr ""
  27966. #. type: defun
  27967. #: guix-git/doc/guix.texi:18978
  27968. msgid "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."
  27969. msgstr ""
  27970. #. type: defun
  27971. #: guix-git/doc/guix.texi:18981
  27972. msgid "Here we show how it can be used to extend @code{udev-service-type} with the previously defined rule @code{%example-udev-rule}."
  27973. msgstr ""
  27974. #. type: lisp
  27975. #: guix-git/doc/guix.texi:18988
  27976. #, no-wrap
  27977. msgid ""
  27978. "(operating-system\n"
  27979. " ;; @dots{}\n"
  27980. " (services\n"
  27981. " (cons (udev-rules-service 'usb-thing %example-udev-rule)\n"
  27982. " %desktop-services)))\n"
  27983. msgstr ""
  27984. #. type: defun
  27985. #: guix-git/doc/guix.texi:18991
  27986. #, no-wrap
  27987. msgid "file->udev-rule @var{file-name} @var{file}"
  27988. msgstr ""
  27989. #. type: defun
  27990. #: guix-git/doc/guix.texi:18994
  27991. msgid "Return a udev-rule file named @var{file-name} containing the rules defined within @var{file}, a file-like object."
  27992. msgstr ""
  27993. #. type: defun
  27994. #: guix-git/doc/guix.texi:18996
  27995. msgid "The following example showcases how we can use an existing rule file."
  27996. msgstr ""
  27997. #. type: lisp
  27998. #: guix-git/doc/guix.texi:19001
  27999. #, no-wrap
  28000. msgid ""
  28001. "(use-modules (guix download) ;for url-fetch\n"
  28002. " (guix packages) ;for origin\n"
  28003. " @dots{})\n"
  28004. "\n"
  28005. msgstr ""
  28006. #. type: lisp
  28007. #: guix-git/doc/guix.texi:19012
  28008. #, no-wrap
  28009. msgid ""
  28010. "(define %android-udev-rules\n"
  28011. " (file->udev-rule\n"
  28012. " \"51-android-udev.rules\"\n"
  28013. " (let ((version \"20170910\"))\n"
  28014. " (origin\n"
  28015. " (method url-fetch)\n"
  28016. " (uri (string-append \"https://raw.githubusercontent.com/M0Rf30/\"\n"
  28017. " \"android-udev-rules/\" version \"/51-android.rules\"))\n"
  28018. " (sha256\n"
  28019. " (base32 \"0lmmagpyb6xsq6zcr2w1cyx9qmjqmajkvrdbhjx32gqf1d9is003\"))))))\n"
  28020. msgstr ""
  28021. #. type: Plain text
  28022. #: guix-git/doc/guix.texi:19021
  28023. 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."
  28024. msgstr ""
  28025. #. type: Plain text
  28026. #: guix-git/doc/guix.texi:19030
  28027. 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."
  28028. msgstr ""
  28029. #. type: lisp
  28030. #: guix-git/doc/guix.texi:19035
  28031. #, no-wrap
  28032. msgid ""
  28033. "(use-modules (gnu packages android) ;for android-udev-rules\n"
  28034. " (gnu system shadow) ;for user-group\n"
  28035. " @dots{})\n"
  28036. "\n"
  28037. msgstr ""
  28038. #. type: lisp
  28039. #: guix-git/doc/guix.texi:19048
  28040. #, no-wrap
  28041. msgid ""
  28042. "(operating-system\n"
  28043. " ;; @dots{}\n"
  28044. " (users (cons (user-account\n"
  28045. " ;; @dots{}\n"
  28046. " (supplementary-groups\n"
  28047. " '(\"adbusers\" ;for adb\n"
  28048. " \"wheel\" \"netdev\" \"audio\" \"video\")))))\n"
  28049. " ;; @dots{}\n"
  28050. " (services\n"
  28051. " (cons (udev-rules-service 'android android-udev-rules\n"
  28052. " #:groups '(\"adbusers\"))\n"
  28053. " %desktop-services)))\n"
  28054. msgstr ""
  28055. #. type: defvar
  28056. #: guix-git/doc/guix.texi:19050
  28057. #, fuzzy, no-wrap
  28058. msgid "urandom-seed-service-type"
  28059. msgstr "邮件服务"
  28060. #. type: defvar
  28061. #: guix-git/doc/guix.texi:19055
  28062. 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."
  28063. msgstr ""
  28064. #. type: defvar
  28065. #: guix-git/doc/guix.texi:19057
  28066. #, no-wrap
  28067. msgid "%random-seed-file"
  28068. msgstr ""
  28069. #. type: defvar
  28070. #: guix-git/doc/guix.texi:19061
  28071. 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}."
  28072. msgstr ""
  28073. #. type: cindex
  28074. #: guix-git/doc/guix.texi:19063
  28075. #, no-wrap
  28076. msgid "mouse"
  28077. msgstr ""
  28078. #. type: cindex
  28079. #: guix-git/doc/guix.texi:19064
  28080. #, no-wrap
  28081. msgid "gpm"
  28082. msgstr ""
  28083. #. type: defvar
  28084. #: guix-git/doc/guix.texi:19065
  28085. #, fuzzy, no-wrap
  28086. msgid "gpm-service-type"
  28087. msgstr "邮件服务"
  28088. #. type: defvar
  28089. #: guix-git/doc/guix.texi:19070
  28090. 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."
  28091. msgstr ""
  28092. #. type: defvar
  28093. #: guix-git/doc/guix.texi:19073
  28094. 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}."
  28095. msgstr ""
  28096. #. type: deftp
  28097. #: guix-git/doc/guix.texi:19075
  28098. #, no-wrap
  28099. msgid "{Data Type} gpm-configuration"
  28100. msgstr ""
  28101. #. type: deftp
  28102. #: guix-git/doc/guix.texi:19077
  28103. msgid "Data type representing the configuration of GPM."
  28104. msgstr ""
  28105. #. type: item
  28106. #: guix-git/doc/guix.texi:19079
  28107. #, no-wrap
  28108. msgid "@code{options} (default: @code{%default-gpm-options})"
  28109. msgstr ""
  28110. #. type: table
  28111. #: guix-git/doc/guix.texi:19084
  28112. 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."
  28113. msgstr ""
  28114. #. type: item
  28115. #: guix-git/doc/guix.texi:19085
  28116. #, no-wrap
  28117. msgid "@code{gpm} (default: @code{gpm})"
  28118. msgstr ""
  28119. #. type: table
  28120. #: guix-git/doc/guix.texi:19087
  28121. msgid "The GPM package to use."
  28122. msgstr ""
  28123. #. type: defvar
  28124. #: guix-git/doc/guix.texi:19092
  28125. #, no-wrap
  28126. msgid "guix-publish-service-type"
  28127. msgstr ""
  28128. #. type: defvar
  28129. #: guix-git/doc/guix.texi:19096
  28130. 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."
  28131. msgstr ""
  28132. #. type: defvar
  28133. #: guix-git/doc/guix.texi:19100
  28134. 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."
  28135. msgstr ""
  28136. #. type: deftp
  28137. #: guix-git/doc/guix.texi:19102
  28138. #, no-wrap
  28139. msgid "{Data Type} guix-publish-configuration"
  28140. msgstr ""
  28141. #. type: deftp
  28142. #: guix-git/doc/guix.texi:19105
  28143. msgid "Data type representing the configuration of the @code{guix publish} service."
  28144. msgstr ""
  28145. #. type: item
  28146. #: guix-git/doc/guix.texi:19107
  28147. #, no-wrap
  28148. msgid "@code{guix} (default: @code{guix})"
  28149. msgstr ""
  28150. #. type: item
  28151. #: guix-git/doc/guix.texi:19110 guix-git/doc/guix.texi:35901
  28152. #, no-wrap
  28153. msgid "@code{port} (default: @code{80})"
  28154. msgstr ""
  28155. #. type: table
  28156. #: guix-git/doc/guix.texi:19112
  28157. msgid "The TCP port to listen for connections."
  28158. msgstr ""
  28159. #. type: item
  28160. #: guix-git/doc/guix.texi:19113 guix-git/doc/guix.texi:33172
  28161. #: guix-git/doc/guix.texi:37302
  28162. #, no-wrap
  28163. msgid "@code{host} (default: @code{\"localhost\"})"
  28164. msgstr ""
  28165. #. type: table
  28166. #: guix-git/doc/guix.texi:19116
  28167. msgid "The host (and thus, network interface) to listen to. Use @code{\"0.0.0.0\"} to listen on all the network interfaces."
  28168. msgstr ""
  28169. #. type: item
  28170. #: guix-git/doc/guix.texi:19117
  28171. #, fuzzy, no-wrap
  28172. msgid "@code{advertise?} (default: @code{#f})"
  28173. msgstr "@code{challenge}(默认值:@code{#f})"
  28174. #. type: table
  28175. #: guix-git/doc/guix.texi:19120
  28176. msgid "When true, advertise the service on the local network @i{via} the DNS-SD protocol, using Avahi."
  28177. msgstr ""
  28178. #. type: table
  28179. #: guix-git/doc/guix.texi:19124
  28180. 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."
  28181. msgstr ""
  28182. #. type: item
  28183. #: guix-git/doc/guix.texi:19125
  28184. #, fuzzy, no-wrap
  28185. msgid "@code{compression} (default: @code{'((\"gzip\" 3) (\"zstd\" 3))})"
  28186. msgstr "@code{compression-level}(默认值:@code{3})"
  28187. #. type: table
  28188. #: guix-git/doc/guix.texi:19129
  28189. 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:"
  28190. msgstr ""
  28191. #. type: lisp
  28192. #: guix-git/doc/guix.texi:19132
  28193. #, no-wrap
  28194. msgid "'((\"lzip\" 7) (\"gzip\" 9))\n"
  28195. msgstr ""
  28196. #. type: table
  28197. #: guix-git/doc/guix.texi:19138
  28198. 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."
  28199. msgstr ""
  28200. #. type: table
  28201. #: guix-git/doc/guix.texi:19140
  28202. msgid "An empty list disables compression altogether."
  28203. msgstr ""
  28204. #. type: item
  28205. #: guix-git/doc/guix.texi:19141
  28206. #, no-wrap
  28207. msgid "@code{nar-path} (default: @code{\"nar\"})"
  28208. msgstr ""
  28209. #. type: table
  28210. #: guix-git/doc/guix.texi:19144
  28211. msgid "The URL path at which ``nars'' can be fetched. @xref{Invoking guix publish, @option{--nar-path}}, for details."
  28212. msgstr ""
  28213. #. type: item
  28214. #: guix-git/doc/guix.texi:19145
  28215. #, no-wrap
  28216. msgid "@code{cache} (default: @code{#f})"
  28217. msgstr ""
  28218. #. type: table
  28219. #: guix-git/doc/guix.texi:19151
  28220. 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."
  28221. msgstr ""
  28222. #. type: item
  28223. #: guix-git/doc/guix.texi:19152 guix-git/doc/guix.texi:37889
  28224. #, no-wrap
  28225. msgid "@code{workers} (default: @code{#f})"
  28226. msgstr ""
  28227. #. type: table
  28228. #: guix-git/doc/guix.texi:19156
  28229. 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."
  28230. msgstr ""
  28231. #. type: item
  28232. #: guix-git/doc/guix.texi:19157
  28233. #, no-wrap
  28234. msgid "@code{cache-bypass-threshold} (default: 10 MiB)"
  28235. msgstr ""
  28236. #. type: table
  28237. #: guix-git/doc/guix.texi:19162
  28238. 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."
  28239. msgstr ""
  28240. #. type: item
  28241. #: guix-git/doc/guix.texi:19163 guix-git/doc/guix.texi:37842
  28242. #, no-wrap
  28243. msgid "@code{ttl} (default: @code{#f})"
  28244. msgstr ""
  28245. #. type: table
  28246. #: guix-git/doc/guix.texi:19167
  28247. 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."
  28248. msgstr ""
  28249. #. type: item
  28250. #: guix-git/doc/guix.texi:19168 guix-git/doc/guix.texi:37850
  28251. #, fuzzy, no-wrap
  28252. msgid "@code{negative-ttl} (default: @code{#f})"
  28253. msgstr "@code{challenge}(默认值:@code{#f})"
  28254. #. type: table
  28255. #: guix-git/doc/guix.texi:19172
  28256. 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."
  28257. msgstr ""
  28258. #. type: defvar
  28259. #: guix-git/doc/guix.texi:19175
  28260. #, fuzzy, no-wrap
  28261. msgid "rngd-service-type"
  28262. msgstr "邮件服务"
  28263. #. type: defvar
  28264. #: guix-git/doc/guix.texi:19178
  28265. msgid "Type of the service that runs rng-tools rngd, whose value is an @code{<rngd-configuration>} object."
  28266. msgstr ""
  28267. #. type: deftp
  28268. #: guix-git/doc/guix.texi:19180
  28269. #, fuzzy, no-wrap
  28270. msgid "{Data Type} rngd-configuration"
  28271. msgstr "系统配置"
  28272. #. type: deftp
  28273. #: guix-git/doc/guix.texi:19182
  28274. #, fuzzy
  28275. msgid "Data type representing the configuration of rngd."
  28276. msgstr "管理操作系统配置。"
  28277. #. type: item
  28278. #: guix-git/doc/guix.texi:19184
  28279. #, fuzzy, no-wrap
  28280. msgid "@code{rng-tools} (default: @code{rng-tools}) (type: file-like)"
  28281. msgstr "@code{xfce}(默认值:@code{xfce})"
  28282. #. type: table
  28283. #: guix-git/doc/guix.texi:19186
  28284. #, fuzzy
  28285. msgid "Package object of the rng-tools rngd."
  28286. msgstr "软件包数据类型。"
  28287. #. type: item
  28288. #: guix-git/doc/guix.texi:19187
  28289. #, fuzzy, no-wrap
  28290. msgid "@code{device} (default: @var{\"/dev/hwrng\"}) (type: string)"
  28291. msgstr "@code{xfce}(默认值:@code{xfce})"
  28292. #. type: table
  28293. #: guix-git/doc/guix.texi:19190
  28294. msgid "Path of the device to add to the kernel's entropy pool. The service will fail if @var{device} does not exist."
  28295. msgstr ""
  28296. #. type: cindex
  28297. #: guix-git/doc/guix.texi:19194
  28298. #, no-wrap
  28299. msgid "session limits"
  28300. msgstr ""
  28301. #. type: cindex
  28302. #: guix-git/doc/guix.texi:19195
  28303. #, no-wrap
  28304. msgid "ulimit"
  28305. msgstr ""
  28306. #. type: cindex
  28307. #: guix-git/doc/guix.texi:19196
  28308. #, no-wrap
  28309. msgid "priority"
  28310. msgstr ""
  28311. #. type: cindex
  28312. #: guix-git/doc/guix.texi:19197
  28313. #, no-wrap
  28314. msgid "realtime"
  28315. msgstr ""
  28316. #. type: cindex
  28317. #: guix-git/doc/guix.texi:19198
  28318. #, no-wrap
  28319. msgid "jackd"
  28320. msgstr ""
  28321. #. type: cindex
  28322. #: guix-git/doc/guix.texi:19199
  28323. #, no-wrap
  28324. msgid "nofile"
  28325. msgstr ""
  28326. #. type: cindex
  28327. #: guix-git/doc/guix.texi:19200
  28328. #, fuzzy, no-wrap
  28329. msgid "open file descriptors"
  28330. msgstr "简介和描述"
  28331. #. type: defvar
  28332. #: guix-git/doc/guix.texi:19202
  28333. #, fuzzy, no-wrap
  28334. msgid "pam-limits-service-type"
  28335. msgstr "邮件服务"
  28336. #. type: defvar
  28337. #: guix-git/doc/guix.texi:19209
  28338. msgid "Type of the 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 value for this service type is 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. By default, the value is the empty list."
  28339. msgstr ""
  28340. #. type: defvar
  28341. #: guix-git/doc/guix.texi:19212
  28342. msgid "The following limits definition sets two hard and soft limits for all login sessions of users in the @code{realtime} group:"
  28343. msgstr ""
  28344. #. type: lisp
  28345. #: guix-git/doc/guix.texi:19218
  28346. #, no-wrap
  28347. msgid ""
  28348. "(service pam-limits-service-type\n"
  28349. " (list\n"
  28350. " (pam-limits-entry \"@@realtime\" 'both 'rtprio 99)\n"
  28351. " (pam-limits-entry \"@@realtime\" 'both 'memlock 'unlimited)))\n"
  28352. msgstr ""
  28353. #. type: defvar
  28354. #: guix-git/doc/guix.texi:19224
  28355. 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."
  28356. msgstr ""
  28357. #. type: defvar
  28358. #: guix-git/doc/guix.texi:19227
  28359. msgid "Another useful example is raising the maximum number of open file descriptors that can be used:"
  28360. msgstr ""
  28361. #. type: lisp
  28362. #: guix-git/doc/guix.texi:19232
  28363. #, fuzzy, no-wrap
  28364. #| msgid ""
  28365. #| "(service home-unclutter-service-type\n"
  28366. #| " (home-unclutter-configuration\n"
  28367. #| " (idle-timeout 2)))\n"
  28368. msgid ""
  28369. "(service pam-limits-service-type\n"
  28370. " (list\n"
  28371. " (pam-limits-entry \"*\" 'both 'nofile 100000)))\n"
  28372. msgstr ""
  28373. "(service home-unclutter-service-type\n"
  28374. " (home-unclutter-configuration\n"
  28375. " (idle-timeout 2)))\n"
  28376. #. type: defvar
  28377. #: guix-git/doc/guix.texi:19240
  28378. 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."
  28379. msgstr ""
  28380. #. type: defvar
  28381. #: guix-git/doc/guix.texi:19242
  28382. #, fuzzy, no-wrap
  28383. msgid "greetd-service-type"
  28384. msgstr "邮件服务"
  28385. #. type: defvar
  28386. #: guix-git/doc/guix.texi:19246
  28387. msgid "@uref{https://git.sr.ht/~kennylevinsen/greetd, @code{greetd}} is a minimal and flexible login manager daemon, that makes no assumptions about what you want to launch."
  28388. msgstr ""
  28389. #. type: defvar
  28390. #: guix-git/doc/guix.texi:19250
  28391. msgid "If you can run it from your shell in a TTY, greetd can start it. If it can be taught to speak a simple JSON-based IPC protocol, then it can be a geeter."
  28392. msgstr ""
  28393. #. type: defvar
  28394. #: guix-git/doc/guix.texi:19253
  28395. msgid "@code{greetd-service-type} provides necessary infrastructure for logging in users, including:"
  28396. msgstr ""
  28397. #. type: itemize
  28398. #: guix-git/doc/guix.texi:19257
  28399. msgid "@code{greetd} PAM service"
  28400. msgstr ""
  28401. #. type: itemize
  28402. #: guix-git/doc/guix.texi:19260
  28403. msgid "Special variation of @code{pam-mount} to mount @code{XDG_RUNTIME_DIR}"
  28404. msgstr ""
  28405. #. type: defvar
  28406. #: guix-git/doc/guix.texi:19264
  28407. msgid "Here is example of switching from @code{mingetty-service-type} to @code{greetd-service-type}, and how different terminals could be:"
  28408. msgstr ""
  28409. #. type: lisp
  28410. #: guix-git/doc/guix.texi:19302
  28411. #, no-wrap
  28412. msgid ""
  28413. " (append\n"
  28414. " (modify-services %base-services\n"
  28415. " ;; greetd-service-type provides \"greetd\" PAM service\n"
  28416. " (delete login-service-type)\n"
  28417. " ;; and can be used in place of mingetty-service-type\n"
  28418. " (delete mingetty-service-type))\n"
  28419. " (list\n"
  28420. " (service greetd-service-type\n"
  28421. " (greetd-configuration\n"
  28422. " (terminals\n"
  28423. " (list\n"
  28424. " ;; we can make any terminal active by default\n"
  28425. " (greetd-terminal-configuration (terminal-vt \"1\") (terminal-switch #t))\n"
  28426. " ;; we can make environment without XDG_RUNTIME_DIR set\n"
  28427. " ;; even provide our own environment variables\n"
  28428. " (greetd-terminal-configuration\n"
  28429. " (terminal-vt \"2\")\n"
  28430. " (default-session-command\n"
  28431. " (greetd-agreety-session\n"
  28432. " (extra-env '((\"MY_VAR\" . \"1\")))\n"
  28433. " (xdg-env? #f))))\n"
  28434. " ;; we can use different shell instead of default bash\n"
  28435. " (greetd-terminal-configuration\n"
  28436. " (terminal-vt \"3\")\n"
  28437. " (default-session-command\n"
  28438. " (greetd-agreety-session (command (file-append zsh \"/bin/zsh\")))))\n"
  28439. " ;; we can use any other executable command as greeter\n"
  28440. " (greetd-terminal-configuration\n"
  28441. " (terminal-vt \"4\")\n"
  28442. " (default-session-command (program-file \"my-noop-greeter\" #~(exit))))\n"
  28443. " (greetd-terminal-configuration (terminal-vt \"5\"))\n"
  28444. " (greetd-terminal-configuration (terminal-vt \"6\"))))))\n"
  28445. " ;; mingetty-service-type can be used in parallel\n"
  28446. " ;; if needed to do so, do not (delete login-service-type)\n"
  28447. " ;; as illustrated above\n"
  28448. " #| (service mingetty-service-type (mingetty-configuration (tty \"tty8\"))) |#))\n"
  28449. msgstr ""
  28450. #. type: deftp
  28451. #: guix-git/doc/guix.texi:19305
  28452. #, fuzzy, no-wrap
  28453. msgid "{Data Type} greetd-configuration"
  28454. msgstr "管理操作系统配置。"
  28455. #. type: deftp
  28456. #: guix-git/doc/guix.texi:19307
  28457. #, fuzzy
  28458. msgid "Configuration record for the @code{greetd-service-type}."
  28459. msgstr "管理操作系统配置。"
  28460. #. type: item
  28461. #: guix-git/doc/guix.texi:19316
  28462. #, fuzzy, no-wrap
  28463. msgid "@code{terminals} (default: @code{'()})"
  28464. msgstr "@code{includes}(默认值:@code{'()})"
  28465. #. type: table
  28466. #: guix-git/doc/guix.texi:19319
  28467. msgid "List of @code{greetd-terminal-configuration} per terminal for which @code{greetd} should be started."
  28468. msgstr ""
  28469. #. type: item
  28470. #: guix-git/doc/guix.texi:19320
  28471. #, fuzzy, no-wrap
  28472. msgid "@code{greeter-supplementary-groups} (default: @code{'()})"
  28473. msgstr "@code{features} (@code{'()})"
  28474. #. type: table
  28475. #: guix-git/doc/guix.texi:19322
  28476. msgid "List of groups which should be added to @code{greeter} user. For instance:"
  28477. msgstr ""
  28478. #. type: lisp
  28479. #: guix-git/doc/guix.texi:19324
  28480. #, no-wrap
  28481. msgid "(greeter-supplementary-groups '(\"seat\" \"video\"))\n"
  28482. msgstr ""
  28483. #. type: table
  28484. #: guix-git/doc/guix.texi:19326
  28485. msgid "Note that this example will fail if @code{seat} group does not exist."
  28486. msgstr ""
  28487. #. type: deftp
  28488. #: guix-git/doc/guix.texi:19329
  28489. #, fuzzy, no-wrap
  28490. msgid "{Data Type} greetd-terminal-configuration"
  28491. msgstr "{数据类型} build-machine"
  28492. #. type: deftp
  28493. #: guix-git/doc/guix.texi:19331
  28494. #, fuzzy
  28495. msgid "Configuration record for per terminal greetd daemon service."
  28496. msgstr "管理操作系统配置。"
  28497. #. type: item
  28498. #: guix-git/doc/guix.texi:19333
  28499. #, fuzzy, no-wrap
  28500. msgid "@code{greetd} (default: @code{greetd})"
  28501. msgstr "@code{gnome}(默认值:@code{gnome})"
  28502. #. type: table
  28503. #: guix-git/doc/guix.texi:19335
  28504. #, fuzzy
  28505. msgid "The greetd package to use."
  28506. msgstr "软件包数据类型。"
  28507. #. type: code{#1}
  28508. #: guix-git/doc/guix.texi:19336
  28509. #, fuzzy, no-wrap
  28510. msgid "config-file-name"
  28511. msgstr "通道"
  28512. #. type: table
  28513. #: guix-git/doc/guix.texi:19339
  28514. msgid "Configuration file name to use for greetd daemon. Generally, autogenerated derivation based on @code{terminal-vt} value."
  28515. msgstr ""
  28516. #. type: code{#1}
  28517. #: guix-git/doc/guix.texi:19340
  28518. #, fuzzy, no-wrap
  28519. msgid "log-file-name"
  28520. msgstr "通道"
  28521. #. type: table
  28522. #: guix-git/doc/guix.texi:19343
  28523. msgid "Log file name to use for greetd daemon. Generally, autogenerated name based on @code{terminal-vt} value."
  28524. msgstr ""
  28525. #. type: item
  28526. #: guix-git/doc/guix.texi:19344
  28527. #, fuzzy, no-wrap
  28528. msgid "@code{terminal-vt} (default: @samp{\"7\"})"
  28529. msgstr "@code{mate}(默认值:@code{mate})"
  28530. #. type: table
  28531. #: guix-git/doc/guix.texi:19347
  28532. msgid "The VT to run on. Use of a specific VT with appropriate conflict avoidance is recommended."
  28533. msgstr ""
  28534. #. type: item
  28535. #: guix-git/doc/guix.texi:19348
  28536. #, fuzzy, no-wrap
  28537. msgid "@code{terminal-switch} (default: @code{#f})"
  28538. msgstr "@code{challenge}(默认值:@code{#f})"
  28539. #. type: table
  28540. #: guix-git/doc/guix.texi:19350
  28541. msgid "Make this terminal active on start of @code{greetd}."
  28542. msgstr ""
  28543. #. type: item
  28544. #: guix-git/doc/guix.texi:19351
  28545. #, fuzzy, no-wrap
  28546. msgid "@code{source-profile?} (default: @code{#t})"
  28547. msgstr "@code{port}(默认值:@code{22})"
  28548. #. type: table
  28549. #: guix-git/doc/guix.texi:19354
  28550. msgid "Whether to source @file{/etc/profile} and @file{~/.profile}, when they exist."
  28551. msgstr ""
  28552. #. type: item
  28553. #: guix-git/doc/guix.texi:19355
  28554. #, fuzzy, no-wrap
  28555. msgid "@code{default-session-user} (default: @samp{\"greeter\"})"
  28556. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  28557. #. type: table
  28558. #: guix-git/doc/guix.texi:19357
  28559. #, fuzzy
  28560. msgid "The user to use for running the greeter."
  28561. msgstr "mcron服务。"
  28562. #. type: item
  28563. #: guix-git/doc/guix.texi:19358
  28564. #, fuzzy, no-wrap
  28565. msgid "@code{default-session-command} (default: @code{(greetd-agreety-session)})"
  28566. msgstr "@code{mate}(默认值:@code{mate})"
  28567. #. type: table
  28568. #: guix-git/doc/guix.texi:19361
  28569. msgid "Can be either instance of @code{greetd-agreety-session} configuration or @code{gexp->script} like object to use as greeter."
  28570. msgstr ""
  28571. #. type: deftp
  28572. #: guix-git/doc/guix.texi:19365
  28573. #, fuzzy, no-wrap
  28574. msgid "{Data Type} greetd-agreety-session"
  28575. msgstr "{数据类型} build-machine"
  28576. #. type: deftp
  28577. #: guix-git/doc/guix.texi:19367
  28578. #, fuzzy
  28579. msgid "Configuration record for the agreety greetd greeter."
  28580. msgstr "管理操作系统配置。"
  28581. #. type: item
  28582. #: guix-git/doc/guix.texi:19369
  28583. #, fuzzy, no-wrap
  28584. msgid "@code{agreety} (default: @code{greetd})"
  28585. msgstr "@code{gnome}(默认值:@code{gnome})"
  28586. #. type: table
  28587. #: guix-git/doc/guix.texi:19371
  28588. #, fuzzy
  28589. #| msgid "Package management commands."
  28590. msgid "The package with @command{/bin/agreety} command."
  28591. msgstr "软件包管理命令。"
  28592. #. type: item
  28593. #: guix-git/doc/guix.texi:19372
  28594. #, fuzzy, no-wrap
  28595. msgid "@code{command} (default: @code{(file-append bash \"/bin/bash\")})"
  28596. msgstr "@code{includes}(默认值:@code{'()})"
  28597. #. type: table
  28598. #: guix-git/doc/guix.texi:19374
  28599. msgid "Command to be started by @command{/bin/agreety} on successful login."
  28600. msgstr ""
  28601. #. type: item
  28602. #: guix-git/doc/guix.texi:19375
  28603. #, fuzzy, no-wrap
  28604. msgid "@code{command-args} (default: @code{'(\"-l\")})"
  28605. msgstr "@code{includes}(默认值:@code{'()})"
  28606. #. type: table
  28607. #: guix-git/doc/guix.texi:19377 guix-git/doc/guix.texi:19401
  28608. msgid "Command arguments to pass to command."
  28609. msgstr ""
  28610. #. type: item
  28611. #: guix-git/doc/guix.texi:19378 guix-git/doc/guix.texi:19423
  28612. #, fuzzy, no-wrap
  28613. msgid "@code{extra-env} (default: @code{'()})"
  28614. msgstr "@code{features} (@code{'()})"
  28615. #. type: table
  28616. #: guix-git/doc/guix.texi:19380 guix-git/doc/guix.texi:19425
  28617. #, fuzzy
  28618. msgid "Extra environment variables to set on login."
  28619. msgstr "构建环境"
  28620. #. type: item
  28621. #: guix-git/doc/guix.texi:19381
  28622. #, fuzzy, no-wrap
  28623. msgid "@code{xdg-env?} (default: @code{#t})"
  28624. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  28625. #. type: table
  28626. #: guix-git/doc/guix.texi:19385
  28627. msgid "If true @code{XDG_RUNTIME_DIR} and @code{XDG_SESSION_TYPE} will be set before starting command. One should note that, @code{extra-env} variables are set right after mentioned variables, so that they can be overriden."
  28628. msgstr ""
  28629. #. type: deftp
  28630. #: guix-git/doc/guix.texi:19389
  28631. #, fuzzy, no-wrap
  28632. msgid "{Data Type} greetd-wlgreet-session"
  28633. msgstr "{数据类型} build-machine"
  28634. #. type: deftp
  28635. #: guix-git/doc/guix.texi:19391
  28636. #, fuzzy
  28637. msgid "Generic configuration record for the wlgreet greetd greeter."
  28638. msgstr "管理操作系统配置。"
  28639. #. type: item
  28640. #: guix-git/doc/guix.texi:19393
  28641. #, fuzzy, no-wrap
  28642. msgid "@code{wlgreet} (default: @code{wlgreet})"
  28643. msgstr "@code{gnome}(默认值:@code{gnome})"
  28644. #. type: table
  28645. #: guix-git/doc/guix.texi:19395
  28646. #, fuzzy
  28647. #| msgid "Package management commands."
  28648. msgid "The package with the @command{/bin/wlgreet} command."
  28649. msgstr "软件包管理命令。"
  28650. #. type: item
  28651. #: guix-git/doc/guix.texi:19396
  28652. #, fuzzy, no-wrap
  28653. msgid "@code{command} (default: @code{(file-append sway \"/bin/sway\")})"
  28654. msgstr "@code{includes}(默认值:@code{'()})"
  28655. #. type: table
  28656. #: guix-git/doc/guix.texi:19398
  28657. msgid "Command to be started by @command{/bin/wlgreet} on successful login."
  28658. msgstr ""
  28659. #. type: item
  28660. #: guix-git/doc/guix.texi:19399
  28661. #, fuzzy, no-wrap
  28662. msgid "@code{command-args} (default: @code{'()})"
  28663. msgstr "@code{includes}(默认值:@code{'()})"
  28664. #. type: item
  28665. #: guix-git/doc/guix.texi:19402
  28666. #, fuzzy, no-wrap
  28667. msgid "@code{output-mode} (default: @code{\"all\"})"
  28668. msgstr "@code{gnome}(默认值:@code{gnome})"
  28669. #. type: table
  28670. #: guix-git/doc/guix.texi:19404
  28671. msgid "Option to use for @code{outputMode} in the TOML configuration file."
  28672. msgstr ""
  28673. #. type: item
  28674. #: guix-git/doc/guix.texi:19405
  28675. #, fuzzy, no-wrap
  28676. msgid "@code{scale} (default: @code{1})"
  28677. msgstr "@code{challenge}(默认值:@code{#f})"
  28678. #. type: table
  28679. #: guix-git/doc/guix.texi:19407
  28680. msgid "Option to use for @code{scale} in the TOML configuration file."
  28681. msgstr ""
  28682. #. type: item
  28683. #: guix-git/doc/guix.texi:19408
  28684. #, fuzzy, no-wrap
  28685. msgid "@code{background} (default: @code{'(0 0 0 0.9)})"
  28686. msgstr "@code{gnome}(默认值:@code{gnome})"
  28687. #. type: table
  28688. #: guix-git/doc/guix.texi:19410
  28689. msgid "RGBA list to use as the background colour of the login prompt."
  28690. msgstr ""
  28691. #. type: item
  28692. #: guix-git/doc/guix.texi:19411
  28693. #, fuzzy, no-wrap
  28694. msgid "@code{headline} (default: @code{'(1 1 1 1)})"
  28695. msgstr "@code{includes}(默认值:@code{'()})"
  28696. #. type: table
  28697. #: guix-git/doc/guix.texi:19413
  28698. msgid "RGBA list to use as the headline colour of the UI popup."
  28699. msgstr ""
  28700. #. type: item
  28701. #: guix-git/doc/guix.texi:19414
  28702. #, fuzzy, no-wrap
  28703. msgid "@code{prompt} (default: @code{'(1 1 1 1)})"
  28704. msgstr "@code{port}(默认值:@code{22})"
  28705. #. type: table
  28706. #: guix-git/doc/guix.texi:19416
  28707. msgid "RGBA list to use as the prompt colour of the UI popup."
  28708. msgstr ""
  28709. #. type: item
  28710. #: guix-git/doc/guix.texi:19417
  28711. #, fuzzy, no-wrap
  28712. msgid "@code{prompt-error} (default: @code{'(1 1 1 1)})"
  28713. msgstr "@code{features} (@code{'()})"
  28714. #. type: table
  28715. #: guix-git/doc/guix.texi:19419
  28716. msgid "RGBA list to use as the error colour of the UI popup."
  28717. msgstr ""
  28718. #. type: item
  28719. #: guix-git/doc/guix.texi:19420
  28720. #, fuzzy, no-wrap
  28721. msgid "@code{border} (default: @code{'(1 1 1 1)})"
  28722. msgstr "@code{features} (@code{'()})"
  28723. #. type: table
  28724. #: guix-git/doc/guix.texi:19422
  28725. msgid "RGBA list to use as the border colour of the UI popup."
  28726. msgstr ""
  28727. #. type: deftp
  28728. #: guix-git/doc/guix.texi:19429
  28729. #, fuzzy, no-wrap
  28730. msgid "{Data Type} greetd-wlgreet-sway-session"
  28731. msgstr "{数据类型} build-machine"
  28732. #. type: deftp
  28733. #: guix-git/doc/guix.texi:19431
  28734. #, fuzzy
  28735. msgid "Sway-specific configuration record for the wlgreet greetd greeter."
  28736. msgstr "管理操作系统配置。"
  28737. #. type: item
  28738. #: guix-git/doc/guix.texi:19433
  28739. #, fuzzy, no-wrap
  28740. msgid "@code{wlgreet-session} (default: @code{(greetd-wlgreet-session)})"
  28741. msgstr "@code{mate}(默认值:@code{mate})"
  28742. #. type: table
  28743. #: guix-git/doc/guix.texi:19436
  28744. msgid "A @code{greetd-wlgreet-session} record for generic wlgreet configuration, on top of the Sway-specific @code{greetd-wlgreet-sway-session}."
  28745. msgstr ""
  28746. #. type: item
  28747. #: guix-git/doc/guix.texi:19437
  28748. #, fuzzy, no-wrap
  28749. msgid "@code{sway} (default: @code{sway})"
  28750. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  28751. #. type: table
  28752. #: guix-git/doc/guix.texi:19439
  28753. #, fuzzy
  28754. #| msgid "Package management commands."
  28755. msgid "The package providing the @command{/bin/sway} command."
  28756. msgstr "软件包管理命令。"
  28757. #. type: item
  28758. #: guix-git/doc/guix.texi:19440
  28759. #, fuzzy, no-wrap
  28760. msgid "@code{sway-configuration} (default: #f)"
  28761. msgstr "@code{journal-content}(默认值:@code{#f})"
  28762. #. type: table
  28763. #: guix-git/doc/guix.texi:19443
  28764. msgid "File-like object providing an additional Sway configuration file to be prepended to the mandatory part of the configuration."
  28765. msgstr ""
  28766. #. type: deftp
  28767. #: guix-git/doc/guix.texi:19447
  28768. msgid "Here is an example of a greetd configuration that uses wlgreet and Sway:"
  28769. msgstr ""
  28770. #. type: lisp
  28771. #: guix-git/doc/guix.texi:19461
  28772. #, no-wrap
  28773. msgid ""
  28774. " (greetd-configuration\n"
  28775. " ;; We need to give the greeter user these permissions, otherwise\n"
  28776. " ;; Sway will crash on launch.\n"
  28777. " (greeter-supplementary-groups (list \"video\" \"input\" \"seat\"))\n"
  28778. " (terminals\n"
  28779. " (list (greetd-terminal-configuration\n"
  28780. " (terminal-vt \"1\")\n"
  28781. " (terminal-switch #t)\n"
  28782. " (default-session-command\n"
  28783. " (greetd-wlgreet-sway-session\n"
  28784. " (sway-configuration\n"
  28785. " (local-file \"sway-greetd.conf\"))))))))\n"
  28786. msgstr ""
  28787. #. type: cindex
  28788. #: guix-git/doc/guix.texi:19467 guix-git/doc/guix.texi:42717
  28789. #, no-wrap
  28790. msgid "cron"
  28791. msgstr ""
  28792. #. type: cindex
  28793. #: guix-git/doc/guix.texi:19468 guix-git/doc/guix.texi:42718
  28794. #, no-wrap
  28795. msgid "mcron"
  28796. msgstr ""
  28797. #. type: cindex
  28798. #: guix-git/doc/guix.texi:19469 guix-git/doc/guix.texi:42719
  28799. #, no-wrap
  28800. msgid "scheduling jobs"
  28801. msgstr ""
  28802. #. type: Plain text
  28803. #: guix-git/doc/guix.texi:19476
  28804. 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."
  28805. msgstr ""
  28806. #. type: Plain text
  28807. #: guix-git/doc/guix.texi:19484
  28808. 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})."
  28809. msgstr ""
  28810. #. type: lisp
  28811. #: guix-git/doc/guix.texi:19488
  28812. #, no-wrap
  28813. msgid ""
  28814. "(use-modules (guix) (gnu) (gnu services mcron))\n"
  28815. "(use-package-modules base idutils)\n"
  28816. "\n"
  28817. msgstr ""
  28818. #. type: lisp
  28819. #: guix-git/doc/guix.texi:19497
  28820. #, no-wrap
  28821. msgid ""
  28822. "(define updatedb-job\n"
  28823. " ;; Run 'updatedb' at 3AM every day. Here we write the\n"
  28824. " ;; job's action as a Scheme procedure.\n"
  28825. " #~(job '(next-hour '(3))\n"
  28826. " (lambda ()\n"
  28827. " (system* (string-append #$findutils \"/bin/updatedb\")\n"
  28828. " \"--prunepaths=/tmp /var/tmp /gnu/store\"))\n"
  28829. " \"updatedb\"))\n"
  28830. "\n"
  28831. msgstr ""
  28832. #. type: lisp
  28833. #: guix-git/doc/guix.texi:19503
  28834. #, no-wrap
  28835. msgid ""
  28836. "(define garbage-collector-job\n"
  28837. " ;; Collect garbage 5 minutes after midnight every day.\n"
  28838. " ;; The job's action is a shell command.\n"
  28839. " #~(job \"5 0 * * *\" ;Vixie cron syntax\n"
  28840. " \"guix gc -F 1G\"))\n"
  28841. "\n"
  28842. msgstr ""
  28843. #. type: lisp
  28844. #: guix-git/doc/guix.texi:19510
  28845. #, no-wrap
  28846. msgid ""
  28847. "(define idutils-job\n"
  28848. " ;; Update the index database as user \"charlie\" at 12:15PM\n"
  28849. " ;; and 19:15PM. This runs from the user's home directory.\n"
  28850. " #~(job '(next-minute-from (next-hour '(12 19)) '(15))\n"
  28851. " (string-append #$idutils \"/bin/mkid src\")\n"
  28852. " #:user \"charlie\"))\n"
  28853. "\n"
  28854. msgstr ""
  28855. #. type: lisp
  28856. #: guix-git/doc/guix.texi:19523
  28857. #, no-wrap
  28858. msgid ""
  28859. " ;; %BASE-SERVICES already includes an instance of\n"
  28860. " ;; 'mcron-service-type', which we extend with additional\n"
  28861. " ;; jobs using 'simple-service'.\n"
  28862. " (services (cons (simple-service 'my-cron-jobs\n"
  28863. " mcron-service-type\n"
  28864. " (list garbage-collector-job\n"
  28865. " updatedb-job\n"
  28866. " idutils-job))\n"
  28867. " %base-services)))\n"
  28868. msgstr ""
  28869. #. type: quotation
  28870. #: guix-git/doc/guix.texi:19531
  28871. 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!"
  28872. msgstr ""
  28873. #. type: quotation
  28874. #: guix-git/doc/guix.texi:19537
  28875. msgid "Avoid calling the Guile procedures @code{execl}, @code{execle} or @code{execlp} inside a job specification, else mcron won't be able to output the completion status of the job."
  28876. msgstr ""
  28877. #. type: Plain text
  28878. #: guix-git/doc/guix.texi:19544
  28879. 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."
  28880. msgstr ""
  28881. #. type: lisp
  28882. #: guix-git/doc/guix.texi:19560
  28883. #, no-wrap
  28884. msgid ""
  28885. "(define %battery-alert-job\n"
  28886. " ;; Beep when the battery percentage falls below %MIN-LEVEL.\n"
  28887. " #~(job\n"
  28888. " '(next-minute (range 0 60 1))\n"
  28889. " #$(program-file\n"
  28890. " \"battery-alert.scm\"\n"
  28891. " (with-imported-modules (source-module-closure\n"
  28892. " '((guix build utils)))\n"
  28893. " #~(begin\n"
  28894. " (use-modules (guix build utils)\n"
  28895. " (ice-9 popen)\n"
  28896. " (ice-9 regex)\n"
  28897. " (ice-9 textual-ports)\n"
  28898. " (srfi srfi-2))\n"
  28899. "\n"
  28900. msgstr ""
  28901. #. type: lisp
  28902. #: guix-git/doc/guix.texi:19562
  28903. #, no-wrap
  28904. msgid ""
  28905. " (define %min-level 20)\n"
  28906. "\n"
  28907. msgstr ""
  28908. #. type: lisp
  28909. #: guix-git/doc/guix.texi:19573
  28910. #, no-wrap
  28911. msgid ""
  28912. " (setenv \"LC_ALL\" \"C\") ;ensure English output\n"
  28913. " (and-let* ((input-pipe (open-pipe*\n"
  28914. " OPEN_READ\n"
  28915. " #$(file-append acpi \"/bin/acpi\")))\n"
  28916. " (output (get-string-all input-pipe))\n"
  28917. " (m (string-match \"Discharging, ([0-9]+)%\" output))\n"
  28918. " (level (string->number (match:substring m 1)))\n"
  28919. " ((< level %min-level)))\n"
  28920. " (format #t \"warning: Battery level is low (~a%)~%\" level)\n"
  28921. " (invoke #$(file-append beep \"/bin/beep\") \"-r5\")))))))\n"
  28922. msgstr ""
  28923. #. type: Plain text
  28924. #: guix-git/doc/guix.texi:19578
  28925. 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."
  28926. msgstr ""
  28927. #. type: Plain text
  28928. #: guix-git/doc/guix.texi:19581
  28929. 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:"
  28930. msgstr ""
  28931. #. type: example
  28932. #: guix-git/doc/guix.texi:19584
  28933. #, no-wrap
  28934. msgid "# herd schedule mcron\n"
  28935. msgstr ""
  28936. #. type: Plain text
  28937. #: guix-git/doc/guix.texi:19589
  28938. msgid "The example above lists the next five tasks that will be executed, but you can also specify the number of tasks to display:"
  28939. msgstr ""
  28940. #. type: example
  28941. #: guix-git/doc/guix.texi:19592
  28942. #, no-wrap
  28943. msgid "# herd schedule mcron 10\n"
  28944. msgstr ""
  28945. #. type: defvar
  28946. #: guix-git/doc/guix.texi:19594
  28947. #, fuzzy, no-wrap
  28948. msgid "mcron-service-type"
  28949. msgstr "邮件服务"
  28950. #. type: defvar
  28951. #: guix-git/doc/guix.texi:19597
  28952. msgid "This is the type of the @code{mcron} service, whose value is an @code{mcron-configuration} object."
  28953. msgstr ""
  28954. #. type: defvar
  28955. #: guix-git/doc/guix.texi:19602 guix-git/doc/guix.texi:42738
  28956. 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."
  28957. msgstr ""
  28958. #. type: deftp
  28959. #: guix-git/doc/guix.texi:19607
  28960. #, no-wrap
  28961. msgid "{Data Type} mcron-configuration"
  28962. msgstr ""
  28963. #. type: deftp
  28964. #: guix-git/doc/guix.texi:19609
  28965. msgid "Available @code{mcron-configuration} fields are:"
  28966. msgstr ""
  28967. #. type: item
  28968. #: guix-git/doc/guix.texi:19611 guix-git/doc/guix.texi:42747
  28969. #, fuzzy, no-wrap
  28970. msgid "@code{mcron} (default: @code{mcron}) (type: file-like)"
  28971. msgstr "@code{xfce}(默认值:@code{xfce})"
  28972. #. type: table
  28973. #: guix-git/doc/guix.texi:19613 guix-git/doc/guix.texi:42749
  28974. msgid "The mcron package to use."
  28975. msgstr ""
  28976. #. type: item
  28977. #: guix-git/doc/guix.texi:19614 guix-git/doc/guix.texi:42750
  28978. #, fuzzy, no-wrap
  28979. msgid "@code{jobs} (default: @code{'()}) (type: list-of-gexps)"
  28980. msgstr "@code{port}(默认值:@code{22})"
  28981. #. type: table
  28982. #: guix-git/doc/guix.texi:19618 guix-git/doc/guix.texi:42754
  28983. 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})."
  28984. msgstr ""
  28985. #. type: item
  28986. #: guix-git/doc/guix.texi:19619 guix-git/doc/guix.texi:42755
  28987. #, fuzzy, no-wrap
  28988. msgid "@code{log?} (default: @code{#t}) (type: boolean)"
  28989. msgstr "@code{challenge}(默认值:@code{#f})"
  28990. #. type: table
  28991. #: guix-git/doc/guix.texi:19621 guix-git/doc/guix.texi:42757
  28992. msgid "Log messages to standard output."
  28993. msgstr ""
  28994. #. type: item
  28995. #: guix-git/doc/guix.texi:19622
  28996. #, fuzzy, no-wrap
  28997. msgid "@code{log-file} (default: @code{\"/var/log/mcron.log\"}) (type: string)"
  28998. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  28999. #. type: table
  29000. #: guix-git/doc/guix.texi:19624
  29001. #, fuzzy
  29002. #| msgid "Log Rotation"
  29003. msgid "Log file location."
  29004. msgstr "日志轮替"
  29005. #. type: item
  29006. #: guix-git/doc/guix.texi:19625 guix-git/doc/guix.texi:42758
  29007. #, fuzzy, no-wrap
  29008. msgid "@code{log-format} (default: @code{\"~1@@*~a ~a: ~a~%\"}) (type: string)"
  29009. msgstr "@code{port}(默认值:@code{22})"
  29010. #. type: table
  29011. #: guix-git/doc/guix.texi:19630
  29012. msgid "@code{(ice-9 format)} format string for log messages. The default value produces messages like @samp{@var{pid} @var{name}: @var{message}} (@pxref{Invoking mcron, Invoking,, mcron,GNU@tie{}mcron}). Each message is also prefixed by a timestamp by GNU Shepherd."
  29013. msgstr ""
  29014. #. type: item
  29015. #: guix-git/doc/guix.texi:19631
  29016. #, fuzzy, no-wrap
  29017. msgid "@code{date-format} (type: maybe-string)"
  29018. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  29019. #. type: table
  29020. #: guix-git/doc/guix.texi:19633
  29021. msgid "@code{(srfi srfi-19)} format string for date."
  29022. msgstr ""
  29023. #. type: cindex
  29024. #: guix-git/doc/guix.texi:19641
  29025. #, no-wrap
  29026. msgid "rottlog"
  29027. msgstr ""
  29028. #. type: cindex
  29029. #: guix-git/doc/guix.texi:19642
  29030. #, no-wrap
  29031. msgid "log rotation"
  29032. msgstr ""
  29033. #. type: Plain text
  29034. #: guix-git/doc/guix.texi:19649
  29035. 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})."
  29036. msgstr ""
  29037. #. type: Plain text
  29038. #: guix-git/doc/guix.texi:19655
  29039. 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):"
  29040. msgstr ""
  29041. #. type: lisp
  29042. #: guix-git/doc/guix.texi:19659
  29043. #, no-wrap
  29044. msgid ""
  29045. "(use-modules (guix) (gnu))\n"
  29046. "(use-service-modules admin)\n"
  29047. "\n"
  29048. msgstr ""
  29049. #. type: lisp
  29050. #: guix-git/doc/guix.texi:19663
  29051. #, no-wrap
  29052. msgid ""
  29053. "(define my-log-files\n"
  29054. " ;; Log files that I want to rotate.\n"
  29055. " '(\"/var/log/something.log\" \"/var/log/another.log\"))\n"
  29056. "\n"
  29057. msgstr ""
  29058. #. type: lisp
  29059. #: guix-git/doc/guix.texi:19672
  29060. #, no-wrap
  29061. msgid ""
  29062. "(operating-system\n"
  29063. " ;; @dots{}\n"
  29064. " (services (cons (simple-service 'rotate-my-stuff\n"
  29065. " rottlog-service-type\n"
  29066. " (list (log-rotation\n"
  29067. " (frequency 'daily)\n"
  29068. " (files my-log-files))))\n"
  29069. " %base-services)))\n"
  29070. msgstr ""
  29071. #. type: defvar
  29072. #: guix-git/doc/guix.texi:19674
  29073. #, fuzzy, no-wrap
  29074. msgid "rottlog-service-type"
  29075. msgstr "邮件服务"
  29076. #. type: defvar
  29077. #: guix-git/doc/guix.texi:19677
  29078. msgid "This is the type of the Rottlog service, whose value is a @code{rottlog-configuration} object."
  29079. msgstr ""
  29080. #. type: defvar
  29081. #: guix-git/doc/guix.texi:19680
  29082. msgid "Other services can extend this one with new @code{log-rotation} objects (see below), thereby augmenting the set of files to be rotated."
  29083. msgstr ""
  29084. #. type: defvar
  29085. #: guix-git/doc/guix.texi:19683
  29086. msgid "This service type can define mcron jobs (@pxref{Scheduled Job Execution}) to run the rottlog service."
  29087. msgstr ""
  29088. #. type: deftp
  29089. #: guix-git/doc/guix.texi:19685
  29090. #, no-wrap
  29091. msgid "{Data Type} rottlog-configuration"
  29092. msgstr ""
  29093. #. type: deftp
  29094. #: guix-git/doc/guix.texi:19687
  29095. msgid "Data type representing the configuration of rottlog."
  29096. msgstr ""
  29097. #. type: item
  29098. #: guix-git/doc/guix.texi:19689
  29099. #, no-wrap
  29100. msgid "@code{rottlog} (default: @code{rottlog})"
  29101. msgstr ""
  29102. #. type: table
  29103. #: guix-git/doc/guix.texi:19691
  29104. msgid "The Rottlog package to use."
  29105. msgstr ""
  29106. #. type: item
  29107. #: guix-git/doc/guix.texi:19692
  29108. #, no-wrap
  29109. msgid "@code{rc-file} (default: @code{(file-append rottlog \"/etc/rc\")})"
  29110. msgstr ""
  29111. #. type: table
  29112. #: guix-git/doc/guix.texi:19695
  29113. msgid "The Rottlog configuration file to use (@pxref{Mandatory RC Variables,,, rottlog, GNU Rot[t]log Manual})."
  29114. msgstr ""
  29115. #. type: item
  29116. #: guix-git/doc/guix.texi:19696
  29117. #, no-wrap
  29118. msgid "@code{rotations} (default: @code{%default-rotations})"
  29119. msgstr ""
  29120. #. type: table
  29121. #: guix-git/doc/guix.texi:19698
  29122. msgid "A list of @code{log-rotation} objects as defined below."
  29123. msgstr ""
  29124. #. type: code{#1}
  29125. #: guix-git/doc/guix.texi:19699
  29126. #, no-wrap
  29127. msgid "jobs"
  29128. msgstr ""
  29129. #. type: table
  29130. #: guix-git/doc/guix.texi:19702
  29131. msgid "This is a list of gexps where each gexp corresponds to an mcron job specification (@pxref{Scheduled Job Execution})."
  29132. msgstr ""
  29133. #. type: deftp
  29134. #: guix-git/doc/guix.texi:19705
  29135. #, no-wrap
  29136. msgid "{Data Type} log-rotation"
  29137. msgstr ""
  29138. #. type: deftp
  29139. #: guix-git/doc/guix.texi:19707
  29140. msgid "Data type representing the rotation of a group of log files."
  29141. msgstr ""
  29142. #. type: deftp
  29143. #: guix-git/doc/guix.texi:19711
  29144. 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:"
  29145. msgstr ""
  29146. #. type: lisp
  29147. #: guix-git/doc/guix.texi:19720
  29148. #, no-wrap
  29149. msgid ""
  29150. "(log-rotation\n"
  29151. " (frequency 'daily)\n"
  29152. " (files '(\"/var/log/apache/*\"))\n"
  29153. " (options '(\"storedir apache-archives\"\n"
  29154. " \"rotate 6\"\n"
  29155. " \"notifempty\"\n"
  29156. " \"nocompress\")))\n"
  29157. msgstr ""
  29158. #. type: deftp
  29159. #: guix-git/doc/guix.texi:19723
  29160. msgid "The list of fields is as follows:"
  29161. msgstr ""
  29162. #. type: item
  29163. #: guix-git/doc/guix.texi:19725
  29164. #, no-wrap
  29165. msgid "@code{frequency} (default: @code{'weekly})"
  29166. msgstr ""
  29167. #. type: table
  29168. #: guix-git/doc/guix.texi:19727
  29169. msgid "The log rotation frequency, a symbol."
  29170. msgstr ""
  29171. #. type: table
  29172. #: guix-git/doc/guix.texi:19730
  29173. msgid "The list of files or file glob patterns to rotate."
  29174. msgstr ""
  29175. #. type: vindex
  29176. #: guix-git/doc/guix.texi:19731
  29177. #, no-wrap
  29178. msgid "%default-log-rotation-options"
  29179. msgstr ""
  29180. #. type: item
  29181. #: guix-git/doc/guix.texi:19732
  29182. #, fuzzy, no-wrap
  29183. msgid "@code{options} (default: @code{%default-log-rotation-options})"
  29184. msgstr "@code{gnome}(默认值:@code{gnome})"
  29185. #. type: table
  29186. #: guix-git/doc/guix.texi:19735
  29187. msgid "The list of rottlog options for this rotation (@pxref{Configuration parameters,,, rottlog, GNU Rot[t]log Manual})."
  29188. msgstr ""
  29189. #. type: item
  29190. #: guix-git/doc/guix.texi:19736
  29191. #, no-wrap
  29192. msgid "@code{post-rotate} (default: @code{#f})"
  29193. msgstr ""
  29194. #. type: table
  29195. #: guix-git/doc/guix.texi:19738
  29196. msgid "Either @code{#f} or a gexp to execute once the rotation has completed."
  29197. msgstr ""
  29198. #. type: defvar
  29199. #: guix-git/doc/guix.texi:19741
  29200. #, no-wrap
  29201. msgid "%default-rotations"
  29202. msgstr ""
  29203. #. type: defvar
  29204. #: guix-git/doc/guix.texi:19744
  29205. msgid "Specifies weekly rotation of @code{%rotated-files} and of @file{/var/log/guix-daemon.log}."
  29206. msgstr ""
  29207. #. type: defvar
  29208. #: guix-git/doc/guix.texi:19746
  29209. #, no-wrap
  29210. msgid "%rotated-files"
  29211. msgstr ""
  29212. #. type: defvar
  29213. #: guix-git/doc/guix.texi:19750
  29214. 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\")}."
  29215. msgstr ""
  29216. #. type: Plain text
  29217. #: guix-git/doc/guix.texi:19758
  29218. msgid "Some log files just need to be deleted periodically once they are old, without any other criterion and without any archival step. This is the case of build logs stored by @command{guix-daemon} under @file{/var/log/guix/drvs} (@pxref{Invoking guix-daemon}). The @code{log-cleanup} service addresses this use case. For example, @code{%base-services} (@pxref{Base Services}) includes the following:"
  29219. msgstr ""
  29220. #. type: lisp
  29221. #: guix-git/doc/guix.texi:19764
  29222. #, no-wrap
  29223. msgid ""
  29224. ";; Periodically delete old build logs.\n"
  29225. "(service log-cleanup-service-type\n"
  29226. " (log-cleanup-configuration\n"
  29227. " (directory \"/var/log/guix/drvs\")))\n"
  29228. msgstr ""
  29229. #. type: Plain text
  29230. #: guix-git/doc/guix.texi:19767
  29231. msgid "That ensures build logs do not accumulate endlessly."
  29232. msgstr ""
  29233. #. type: defvar
  29234. #: guix-git/doc/guix.texi:19768
  29235. #, fuzzy, no-wrap
  29236. msgid "log-cleanup-service-type"
  29237. msgstr "邮件服务"
  29238. #. type: defvar
  29239. #: guix-git/doc/guix.texi:19771
  29240. msgid "This is the type of the service to delete old logs. Its value must be a @code{log-cleanup-configuration} record as described below."
  29241. msgstr ""
  29242. #. type: deftp
  29243. #: guix-git/doc/guix.texi:19773
  29244. #, fuzzy, no-wrap
  29245. msgid "{Data Type} log-cleanup-configuration"
  29246. msgstr "管理操作系统配置。"
  29247. #. type: deftp
  29248. #: guix-git/doc/guix.texi:19775
  29249. #, fuzzy
  29250. msgid "Data type representing the log cleanup configuration"
  29251. msgstr "管理操作系统配置。"
  29252. #. type: code{#1}
  29253. #: guix-git/doc/guix.texi:19777
  29254. #, fuzzy, no-wrap
  29255. #| msgid "state directory"
  29256. msgid "directory"
  29257. msgstr "状态文件夹"
  29258. #. type: table
  29259. #: guix-git/doc/guix.texi:19779
  29260. #, fuzzy
  29261. msgid "Name of the directory containing log files."
  29262. msgstr "仓库的纯函数式接口。"
  29263. #. type: item
  29264. #: guix-git/doc/guix.texi:19780
  29265. #, fuzzy, no-wrap
  29266. msgid "@code{expiry} (default: @code{(* 6 30 24 3600)})"
  29267. msgstr "@code{port}(默认值:@code{22})"
  29268. #. type: table
  29269. #: guix-git/doc/guix.texi:19783
  29270. msgid "Age in seconds after which a file is subject to deletion (six months by default)."
  29271. msgstr ""
  29272. #. type: item
  29273. #: guix-git/doc/guix.texi:19784
  29274. #, fuzzy, no-wrap
  29275. msgid "@code{schedule} (default: @code{\"30 12 01,08,15,22 * *\"})"
  29276. msgstr "@code{speed}(默认值:@code{1.0})"
  29277. #. type: table
  29278. #: guix-git/doc/guix.texi:19787
  29279. msgid "String or gexp denoting the corresponding mcron job schedule (@pxref{Scheduled Job Execution})."
  29280. msgstr ""
  29281. #. type: cindex
  29282. #: guix-git/doc/guix.texi:19790
  29283. #, no-wrap
  29284. msgid "logging, anonymization"
  29285. msgstr ""
  29286. #. type: subheading
  29287. #: guix-git/doc/guix.texi:19791
  29288. #, fuzzy, no-wrap
  29289. #| msgid "Sound Services"
  29290. msgid "Anonip Service"
  29291. msgstr "声音服务"
  29292. #. type: Plain text
  29293. #: guix-git/doc/guix.texi:19796
  29294. msgid "Anonip is a privacy filter that removes IP address from web server logs. This service creates a FIFO and filters any written lines with anonip before writing the filtered log to a target file."
  29295. msgstr ""
  29296. #. type: Plain text
  29297. #: guix-git/doc/guix.texi:19800
  29298. msgid "The following example sets up the FIFO @file{/var/run/anonip/https.access.log} and writes the filtered log file @file{/var/log/anonip/https.access.log}."
  29299. msgstr ""
  29300. #. type: lisp
  29301. #: guix-git/doc/guix.texi:19806
  29302. #, no-wrap
  29303. msgid ""
  29304. "(service anonip-service-type\n"
  29305. " (anonip-configuration\n"
  29306. " (input \"/var/run/anonip/https.access.log\")\n"
  29307. " (output \"/var/log/anonip/https.access.log\")))\n"
  29308. msgstr ""
  29309. #. type: Plain text
  29310. #: guix-git/doc/guix.texi:19811
  29311. msgid "Configure your web server to write its logs to the FIFO at @file{/var/run/anonip/https.access.log} and collect the anonymized log file at @file{/var/web-logs/https.access.log}."
  29312. msgstr ""
  29313. #. type: deftp
  29314. #: guix-git/doc/guix.texi:19812
  29315. #, fuzzy, no-wrap
  29316. msgid "{Data Type} anonip-configuration"
  29317. msgstr "{数据类型} build-machine"
  29318. #. type: deftp
  29319. #: guix-git/doc/guix.texi:19815
  29320. #, fuzzy
  29321. msgid "This data type represents the configuration of anonip. It has the following parameters:"
  29322. msgstr "管理操作系统配置。"
  29323. #. type: item
  29324. #: guix-git/doc/guix.texi:19817
  29325. #, fuzzy, no-wrap
  29326. msgid "@code{anonip} (default: @code{anonip})"
  29327. msgstr "@code{xfce}(默认值:@code{xfce})"
  29328. #. type: table
  29329. #: guix-git/doc/guix.texi:19819
  29330. #, fuzzy
  29331. msgid "The anonip package to use."
  29332. msgstr "软件包数据类型。"
  29333. #. type: code{#1}
  29334. #: guix-git/doc/guix.texi:19820
  29335. #, no-wrap
  29336. msgid "input"
  29337. msgstr ""
  29338. #. type: table
  29339. #: guix-git/doc/guix.texi:19823
  29340. msgid "The file name of the input log file to process. The service creates a FIFO of this name. The web server should write its logs to this FIFO."
  29341. msgstr ""
  29342. #. type: code{#1}
  29343. #: guix-git/doc/guix.texi:19824
  29344. #, no-wrap
  29345. msgid "output"
  29346. msgstr ""
  29347. #. type: table
  29348. #: guix-git/doc/guix.texi:19826
  29349. #, fuzzy
  29350. msgid "The file name of the processed log file."
  29351. msgstr "远程机器的主机名。"
  29352. #. type: deftp
  29353. #: guix-git/doc/guix.texi:19829
  29354. #, fuzzy
  29355. #| msgid "The following command-line options are supported:"
  29356. msgid "The following optional settings may be provided:"
  29357. msgstr "下面这些命令行选项受支持:"
  29358. #. type: code{#1}
  29359. #: guix-git/doc/guix.texi:19831
  29360. #, no-wrap
  29361. msgid "skip-private?"
  29362. msgstr ""
  29363. #. type: table
  29364. #: guix-git/doc/guix.texi:19833
  29365. msgid "When @code{#true} do not mask addresses in private ranges."
  29366. msgstr ""
  29367. #. type: code{#1}
  29368. #: guix-git/doc/guix.texi:19834
  29369. #, no-wrap
  29370. msgid "column"
  29371. msgstr ""
  29372. #. type: table
  29373. #: guix-git/doc/guix.texi:19837
  29374. msgid "A 1-based indexed column number. Assume IP address is in the specified column (default is 1)."
  29375. msgstr ""
  29376. #. type: code{#1}
  29377. #: guix-git/doc/guix.texi:19838
  29378. #, no-wrap
  29379. msgid "replacement"
  29380. msgstr ""
  29381. #. type: table
  29382. #: guix-git/doc/guix.texi:19840
  29383. msgid "Replacement string in case address parsing fails, e.g. @code{\"0.0.0.0\"}."
  29384. msgstr ""
  29385. #. type: code{#1}
  29386. #: guix-git/doc/guix.texi:19841
  29387. #, no-wrap
  29388. msgid "ipv4mask"
  29389. msgstr ""
  29390. #. type: table
  29391. #: guix-git/doc/guix.texi:19843
  29392. msgid "Number of bits to mask in IPv4 addresses."
  29393. msgstr ""
  29394. #. type: code{#1}
  29395. #: guix-git/doc/guix.texi:19844
  29396. #, no-wrap
  29397. msgid "ipv6mask"
  29398. msgstr ""
  29399. #. type: table
  29400. #: guix-git/doc/guix.texi:19846
  29401. msgid "Number of bits to mask in IPv6 addresses."
  29402. msgstr ""
  29403. #. type: code{#1}
  29404. #: guix-git/doc/guix.texi:19847
  29405. #, fuzzy, no-wrap
  29406. #| msgid "Requirements"
  29407. msgid "increment"
  29408. msgstr "需求"
  29409. #. type: table
  29410. #: guix-git/doc/guix.texi:19849
  29411. msgid "Increment the IP address by the given number. By default this is zero."
  29412. msgstr ""
  29413. #. type: code{#1}
  29414. #: guix-git/doc/guix.texi:19850
  29415. #, no-wrap
  29416. msgid "delimiter"
  29417. msgstr ""
  29418. #. type: table
  29419. #: guix-git/doc/guix.texi:19852
  29420. msgid "Log delimiter string."
  29421. msgstr ""
  29422. #. type: code{#1}
  29423. #: guix-git/doc/guix.texi:19853
  29424. #, no-wrap
  29425. msgid "regex"
  29426. msgstr ""
  29427. #. type: table
  29428. #: guix-git/doc/guix.texi:19855
  29429. msgid "Regular expression for detecting IP addresses. Use this instead of @code{column}."
  29430. msgstr ""
  29431. #. type: Plain text
  29432. #: guix-git/doc/guix.texi:19870
  29433. 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."
  29434. msgstr ""
  29435. #. type: Plain text
  29436. #: guix-git/doc/guix.texi:19876
  29437. 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."
  29438. msgstr ""
  29439. #. type: Plain text
  29440. #: guix-git/doc/guix.texi:19879
  29441. msgid "This section describes the various network setup services available, starting with static network configuration."
  29442. msgstr ""
  29443. #. type: defvar
  29444. #: guix-git/doc/guix.texi:19880
  29445. #, fuzzy, no-wrap
  29446. msgid "static-networking-service-type"
  29447. msgstr "邮件服务"
  29448. #. type: defvar
  29449. #: guix-git/doc/guix.texi:19885
  29450. 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 shown below."
  29451. msgstr ""
  29452. #. type: cindex
  29453. #: guix-git/doc/guix.texi:19886
  29454. #, no-wrap
  29455. msgid "network interface controller (NIC)"
  29456. msgstr ""
  29457. #. type: cindex
  29458. #: guix-git/doc/guix.texi:19887
  29459. #, no-wrap
  29460. msgid "NIC, networking interface controller"
  29461. msgstr ""
  29462. #. type: defvar
  29463. #: guix-git/doc/guix.texi:19890
  29464. msgid "Here is the simplest configuration, with only one network interface controller (NIC) and only IPv4 connectivity:"
  29465. msgstr ""
  29466. #. type: lisp
  29467. #: guix-git/doc/guix.texi:19904
  29468. #, no-wrap
  29469. msgid ""
  29470. ";; Static networking for one NIC, IPv4-only.\n"
  29471. "(service static-networking-service-type\n"
  29472. " (list (static-networking\n"
  29473. " (addresses\n"
  29474. " (list (network-address\n"
  29475. " (device \"eno1\")\n"
  29476. " (value \"10.0.2.15/24\"))))\n"
  29477. " (routes\n"
  29478. " (list (network-route\n"
  29479. " (destination \"default\")\n"
  29480. " (gateway \"10.0.2.2\"))))\n"
  29481. " (name-servers '(\"10.0.2.3\")))))\n"
  29482. msgstr ""
  29483. #. type: defvar
  29484. #: guix-git/doc/guix.texi:19913
  29485. 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."
  29486. msgstr ""
  29487. #. type: deftp
  29488. #: guix-git/doc/guix.texi:19915
  29489. #, fuzzy, no-wrap
  29490. msgid "{Data Type} static-networking"
  29491. msgstr "{数据类型} build-machine"
  29492. #. type: deftp
  29493. #: guix-git/doc/guix.texi:19917
  29494. #, fuzzy
  29495. msgid "This is the data type representing a static network configuration."
  29496. msgstr "管理操作系统配置。"
  29497. #. type: deftp
  29498. #: guix-git/doc/guix.texi:19921
  29499. 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:"
  29500. msgstr ""
  29501. #. type: lisp
  29502. #: guix-git/doc/guix.texi:19938
  29503. #, no-wrap
  29504. msgid ""
  29505. ";; Network configuration for one NIC, IPv4 + IPv6.\n"
  29506. "(static-networking\n"
  29507. " (addresses (list (network-address\n"
  29508. " (device \"eno1\")\n"
  29509. " (value \"10.0.2.15/24\"))\n"
  29510. " (network-address\n"
  29511. " (device \"eno1\")\n"
  29512. " (value \"2001:123:4567:101::1/64\"))))\n"
  29513. " (routes (list (network-route\n"
  29514. " (destination \"default\")\n"
  29515. " (gateway \"10.0.2.2\"))\n"
  29516. " (network-route\n"
  29517. " (destination \"default\")\n"
  29518. " (gateway \"2020:321:4567:42::1\"))))\n"
  29519. " (name-servers '(\"10.0.2.3\")))\n"
  29520. msgstr ""
  29521. #. type: deftp
  29522. #: guix-git/doc/guix.texi:19944
  29523. 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:"
  29524. msgstr ""
  29525. #. type: example
  29526. #: guix-git/doc/guix.texi:19950
  29527. #, no-wrap
  29528. msgid ""
  29529. "ip address add 10.0.2.15/24 dev eno1\n"
  29530. "ip address add 2001:123:4567:101::1/64 dev eno1\n"
  29531. "ip route add default via inet 10.0.2.2\n"
  29532. "ip route add default via inet6 2020:321:4567:42::1\n"
  29533. msgstr ""
  29534. #. type: deftp
  29535. #: guix-git/doc/guix.texi:19955
  29536. 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."
  29537. msgstr ""
  29538. #. type: deftp
  29539. #: guix-git/doc/guix.texi:19957
  29540. msgid "The available fields of this data type are as follows:"
  29541. msgstr ""
  29542. #. type: code{#1}
  29543. #: guix-git/doc/guix.texi:19959
  29544. #, no-wrap
  29545. msgid "addresses"
  29546. msgstr ""
  29547. #. type: itemx
  29548. #: guix-git/doc/guix.texi:19960
  29549. #, fuzzy, no-wrap
  29550. msgid "@code{links} (default: @code{'()})"
  29551. msgstr "@code{features} (@code{'()})"
  29552. #. type: itemx
  29553. #: guix-git/doc/guix.texi:19961
  29554. #, fuzzy, no-wrap
  29555. msgid "@code{routes} (default: @code{'()})"
  29556. msgstr "@code{features} (@code{'()})"
  29557. #. type: table
  29558. #: guix-git/doc/guix.texi:19964
  29559. msgid "The list of @code{network-address}, @code{network-link}, and @code{network-route} records for this network (see below)."
  29560. msgstr ""
  29561. #. type: item
  29562. #: guix-git/doc/guix.texi:19965
  29563. #, fuzzy, no-wrap
  29564. msgid "@code{name-servers} (default: @code{'()})"
  29565. msgstr "@code{features} (@code{'()})"
  29566. #. type: table
  29567. #: guix-git/doc/guix.texi:19968
  29568. msgid "The list of IP addresses (strings) of domain name servers. These IP addresses go to @file{/etc/resolv.conf}."
  29569. msgstr ""
  29570. #. type: item
  29571. #: guix-git/doc/guix.texi:19969
  29572. #, fuzzy, no-wrap
  29573. msgid "@code{provision} (default: @code{'(networking)})"
  29574. msgstr "@code{includes}(默认值:@code{'()})"
  29575. #. type: table
  29576. #: guix-git/doc/guix.texi:19972
  29577. msgid "If true, this should be a list of symbols for the Shepherd service corresponding to this network configuration."
  29578. msgstr ""
  29579. #. type: item
  29580. #: guix-git/doc/guix.texi:19973
  29581. #, fuzzy, no-wrap
  29582. msgid "@code{requirement} (default @code{'()})"
  29583. msgstr "@code{features} (@code{'()})"
  29584. #. type: table
  29585. #: guix-git/doc/guix.texi:19975
  29586. msgid "The list of Shepherd services depended on."
  29587. msgstr ""
  29588. #. type: deftp
  29589. #: guix-git/doc/guix.texi:19978
  29590. #, fuzzy, no-wrap
  29591. msgid "{Data Type} network-address"
  29592. msgstr "{数据类型} build-machine"
  29593. #. type: deftp
  29594. #: guix-git/doc/guix.texi:19981
  29595. #, fuzzy
  29596. msgid "This is the data type representing the IP address of a network interface."
  29597. msgstr "管理操作系统配置。"
  29598. #. type: table
  29599. #: guix-git/doc/guix.texi:19986
  29600. msgid "The name of the network interface for this address---e.g., @code{\"eno1\"}."
  29601. msgstr ""
  29602. #. type: item
  29603. #: guix-git/doc/guix.texi:19987
  29604. #, no-wrap
  29605. msgid "value"
  29606. msgstr ""
  29607. #. type: table
  29608. #: guix-git/doc/guix.texi:19991
  29609. 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."
  29610. msgstr ""
  29611. #. type: table
  29612. #: guix-git/doc/guix.texi:19995
  29613. 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."
  29614. msgstr ""
  29615. #. type: item
  29616. #: guix-git/doc/guix.texi:19996
  29617. #, no-wrap
  29618. msgid "ipv6?"
  29619. msgstr ""
  29620. #. type: table
  29621. #: guix-git/doc/guix.texi:19999
  29622. msgid "Whether @code{value} denotes an IPv6 address. By default this is automatically determined."
  29623. msgstr ""
  29624. #. type: deftp
  29625. #: guix-git/doc/guix.texi:20002
  29626. #, fuzzy, no-wrap
  29627. msgid "{Data Type} network-route"
  29628. msgstr "{数据类型} build-machine"
  29629. #. type: deftp
  29630. #: guix-git/doc/guix.texi:20004
  29631. #, fuzzy
  29632. msgid "This is the data type representing a network route."
  29633. msgstr "管理操作系统配置。"
  29634. #. type: code{#1}
  29635. #: guix-git/doc/guix.texi:20006
  29636. #, fuzzy, no-wrap
  29637. #| msgid "deduplication"
  29638. msgid "destination"
  29639. msgstr "去重"
  29640. #. type: table
  29641. #: guix-git/doc/guix.texi:20009
  29642. msgid "The route destination (a string), either an IP address and network mask or @code{\"default\"} to denote the default route."
  29643. msgstr ""
  29644. #. type: item
  29645. #: guix-git/doc/guix.texi:20010
  29646. #, fuzzy, no-wrap
  29647. msgid "@code{source} (default: @code{#f})"
  29648. msgstr "@code{port}(默认值:@code{22})"
  29649. #. type: table
  29650. #: guix-git/doc/guix.texi:20012
  29651. #, fuzzy
  29652. #| msgid "The rottlog service."
  29653. msgid "The route source."
  29654. msgstr "rottlog服务。"
  29655. #. type: item
  29656. #: guix-git/doc/guix.texi:20013 guix-git/doc/guix.texi:39778
  29657. #, no-wrap
  29658. msgid "@code{device} (default: @code{#f})"
  29659. msgstr ""
  29660. #. type: table
  29661. #: guix-git/doc/guix.texi:20015
  29662. msgid "The device used for this route---e.g., @code{\"eno2\"}."
  29663. msgstr ""
  29664. #. type: item
  29665. #: guix-git/doc/guix.texi:20016
  29666. #, fuzzy, no-wrap
  29667. msgid "@code{ipv6?} (default: auto)"
  29668. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  29669. #. type: table
  29670. #: guix-git/doc/guix.texi:20019
  29671. msgid "Whether this is an IPv6 route. By default this is automatically determined based on @code{destination} or @code{gateway}."
  29672. msgstr ""
  29673. #. type: item
  29674. #: guix-git/doc/guix.texi:20020
  29675. #, fuzzy, no-wrap
  29676. msgid "@code{gateway} (default: @code{#f})"
  29677. msgstr "@code{challenge}(默认值:@code{#f})"
  29678. #. type: table
  29679. #: guix-git/doc/guix.texi:20022
  29680. msgid "IP address (a string) through which traffic is routed."
  29681. msgstr ""
  29682. #. type: deftp
  29683. #: guix-git/doc/guix.texi:20025
  29684. #, fuzzy, no-wrap
  29685. msgid "{Data Type} network-link"
  29686. msgstr "{数据类型} build-machine"
  29687. #. type: deftp
  29688. #: guix-git/doc/guix.texi:20028
  29689. msgid "Data type for a network link (@pxref{Link,,, guile-netlink, Guile-Netlink Manual})."
  29690. msgstr ""
  29691. #. type: table
  29692. #: guix-git/doc/guix.texi:20032
  29693. msgid "The name of the link---e.g., @code{\"v0p0\"}."
  29694. msgstr ""
  29695. #. type: table
  29696. #: guix-git/doc/guix.texi:20035
  29697. msgid "A symbol denoting the type of the link---e.g., @code{'veth}."
  29698. msgstr ""
  29699. #. type: table
  29700. #: guix-git/doc/guix.texi:20038
  29701. msgid "List of arguments for this type of link."
  29702. msgstr ""
  29703. #. type: cindex
  29704. #: guix-git/doc/guix.texi:20041
  29705. #, no-wrap
  29706. msgid "loopback device"
  29707. msgstr ""
  29708. #. type: defvar
  29709. #: guix-git/doc/guix.texi:20042
  29710. #, fuzzy, no-wrap
  29711. msgid "%loopback-static-networking"
  29712. msgstr "{数据类型} build-machine"
  29713. #. type: defvar
  29714. #: guix-git/doc/guix.texi:20046
  29715. 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."
  29716. msgstr ""
  29717. #. type: cindex
  29718. #: guix-git/doc/guix.texi:20048
  29719. #, no-wrap
  29720. msgid "networking, with QEMU"
  29721. msgstr ""
  29722. #. type: cindex
  29723. #: guix-git/doc/guix.texi:20049
  29724. #, no-wrap
  29725. msgid "QEMU, networking"
  29726. msgstr ""
  29727. #. type: defvar
  29728. #: guix-git/doc/guix.texi:20050
  29729. #, fuzzy, no-wrap
  29730. #| msgid "Manual Installation"
  29731. msgid "%qemu-static-networking"
  29732. msgstr "手动安装"
  29733. #. type: defvar
  29734. #: guix-git/doc/guix.texi:20054
  29735. 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})."
  29736. msgstr ""
  29737. #. type: cindex
  29738. #: guix-git/doc/guix.texi:20056
  29739. #, no-wrap
  29740. msgid "DHCP, networking service"
  29741. msgstr ""
  29742. #. type: defvar
  29743. #: guix-git/doc/guix.texi:20057
  29744. #, fuzzy, no-wrap
  29745. msgid "dhcp-client-service-type"
  29746. msgstr "邮件服务"
  29747. #. type: defvar
  29748. #: guix-git/doc/guix.texi:20060
  29749. msgid "This is the type of services that run @var{dhcp}, a Dynamic Host Configuration Protocol (DHCP) client."
  29750. msgstr ""
  29751. #. type: deftp
  29752. #: guix-git/doc/guix.texi:20062
  29753. #, fuzzy, no-wrap
  29754. msgid "{Data Type} dhcp-client-configuration"
  29755. msgstr "系统配置"
  29756. #. type: deftp
  29757. #: guix-git/doc/guix.texi:20064
  29758. #, fuzzy
  29759. msgid "Data type representing the configuration of the DHCP client service."
  29760. msgstr "管理操作系统配置。"
  29761. #. type: item
  29762. #: guix-git/doc/guix.texi:20066 guix-git/doc/guix.texi:20323
  29763. #, no-wrap
  29764. msgid "@code{package} (default: @code{isc-dhcp})"
  29765. msgstr ""
  29766. #. type: table
  29767. #: guix-git/doc/guix.texi:20068
  29768. #, fuzzy
  29769. msgid "DHCP client package to use."
  29770. msgstr "软件包数据类型。"
  29771. #. type: item
  29772. #: guix-git/doc/guix.texi:20069
  29773. #, fuzzy, no-wrap
  29774. msgid "@code{interfaces} (default: @code{'all})"
  29775. msgstr "@code{features} (@code{'()})"
  29776. #. type: table
  29777. #: guix-git/doc/guix.texi:20072
  29778. msgid "Either @code{'all} or the list of interface names that the DHCP client should listen on---e.g., @code{'(\"eno1\")}."
  29779. msgstr ""
  29780. #. type: table
  29781. #: guix-git/doc/guix.texi:20076
  29782. msgid "When set to @code{'all}, the DHCP client listens on all the available non-loopback interfaces that can be activated. Otherwise the DHCP client listens only on the specified interfaces."
  29783. msgstr ""
  29784. #. type: table
  29785. #: guix-git/doc/guix.texi:20082 guix-git/doc/guix.texi:20109
  29786. #: guix-git/doc/guix.texi:20190
  29787. msgid "This option can be used to provide a list of symbols naming Shepherd services that this service will depend on, such as @code{'wpa-supplicant} or @code{'iwd} if you require authenticated access for encrypted WiFi or Ethernet networks."
  29788. msgstr ""
  29789. #. type: cindex
  29790. #: guix-git/doc/guix.texi:20085
  29791. #, no-wrap
  29792. msgid "NetworkManager"
  29793. msgstr ""
  29794. #. type: defvar
  29795. #: guix-git/doc/guix.texi:20087
  29796. #, fuzzy, no-wrap
  29797. msgid "network-manager-service-type"
  29798. msgstr "邮件服务"
  29799. #. type: defvar
  29800. #: guix-git/doc/guix.texi:20092
  29801. 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."
  29802. msgstr ""
  29803. #. type: defvar
  29804. #: guix-git/doc/guix.texi:20095 guix-git/doc/guix.texi:20246
  29805. #: guix-git/doc/guix.texi:20275
  29806. msgid "This service is part of @code{%desktop-services} (@pxref{Desktop Services})."
  29807. msgstr ""
  29808. #. type: deftp
  29809. #: guix-git/doc/guix.texi:20097
  29810. #, no-wrap
  29811. msgid "{Data Type} network-manager-configuration"
  29812. msgstr ""
  29813. #. type: deftp
  29814. #: guix-git/doc/guix.texi:20099
  29815. msgid "Data type representing the configuration of NetworkManager."
  29816. msgstr ""
  29817. #. type: item
  29818. #: guix-git/doc/guix.texi:20101
  29819. #, no-wrap
  29820. msgid "@code{network-manager} (default: @code{network-manager})"
  29821. msgstr ""
  29822. #. type: table
  29823. #: guix-git/doc/guix.texi:20103
  29824. msgid "The NetworkManager package to use."
  29825. msgstr ""
  29826. #. type: item
  29827. #: guix-git/doc/guix.texi:20104
  29828. #, fuzzy, no-wrap
  29829. msgid "@code{shepherd-requirement} (default: @code{'(wpa-supplicant)})"
  29830. msgstr "@code{features} (@code{'()})"
  29831. #. type: item
  29832. #: guix-git/doc/guix.texi:20110
  29833. #, no-wrap
  29834. msgid "@code{dns} (default: @code{\"default\"})"
  29835. msgstr ""
  29836. #. type: table
  29837. #: guix-git/doc/guix.texi:20113
  29838. msgid "Processing mode for DNS, which affects how NetworkManager uses the @code{resolv.conf} configuration file."
  29839. msgstr ""
  29840. #. type: table
  29841. #: guix-git/doc/guix.texi:20118
  29842. msgid "NetworkManager will update @code{resolv.conf} to reflect the nameservers provided by currently active connections."
  29843. msgstr ""
  29844. #. type: item
  29845. #: guix-git/doc/guix.texi:20119
  29846. #, no-wrap
  29847. msgid "dnsmasq"
  29848. msgstr ""
  29849. #. type: table
  29850. #: guix-git/doc/guix.texi:20123
  29851. 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."
  29852. msgstr ""
  29853. #. type: table
  29854. #: guix-git/doc/guix.texi:20129
  29855. 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)."
  29856. msgstr ""
  29857. #. type: table
  29858. #: guix-git/doc/guix.texi:20136
  29859. 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:"
  29860. msgstr ""
  29861. #. type: example
  29862. #: guix-git/doc/guix.texi:20143
  29863. #, no-wrap
  29864. msgid ""
  29865. "nmcli connection add type tun \\\n"
  29866. " connection.interface-name tap0 \\\n"
  29867. " tun.mode tap tun.owner $(id -u) \\\n"
  29868. " ipv4.method shared \\\n"
  29869. " ipv4.addresses 172.28.112.1/24\n"
  29870. msgstr ""
  29871. #. type: table
  29872. #: guix-git/doc/guix.texi:20148
  29873. 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-...}."
  29874. msgstr ""
  29875. #. type: table
  29876. #: guix-git/doc/guix.texi:20151
  29877. msgid "NetworkManager will not modify @code{resolv.conf}."
  29878. msgstr ""
  29879. #. type: item
  29880. #: guix-git/doc/guix.texi:20153
  29881. #, no-wrap
  29882. msgid "@code{vpn-plugins} (default: @code{'()})"
  29883. msgstr ""
  29884. #. type: table
  29885. #: guix-git/doc/guix.texi:20157
  29886. 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."
  29887. msgstr ""
  29888. #. type: cindex
  29889. #: guix-git/doc/guix.texi:20161
  29890. #, no-wrap
  29891. msgid "Connman"
  29892. msgstr ""
  29893. #. type: defvar
  29894. #: guix-git/doc/guix.texi:20162
  29895. #, fuzzy, no-wrap
  29896. msgid "connman-service-type"
  29897. msgstr "邮件服务"
  29898. #. type: defvar
  29899. #: guix-git/doc/guix.texi:20165
  29900. msgid "This is the service type to run @url{https://01.org/connman,Connman}, a network connection manager."
  29901. msgstr ""
  29902. #. type: defvar
  29903. #: guix-git/doc/guix.texi:20168
  29904. msgid "Its value must be an @code{connman-configuration} record as in this example:"
  29905. msgstr ""
  29906. #. type: lisp
  29907. #: guix-git/doc/guix.texi:20173
  29908. #, no-wrap
  29909. msgid ""
  29910. "(service connman-service-type\n"
  29911. " (connman-configuration\n"
  29912. " (disable-vpn? #t)))\n"
  29913. msgstr ""
  29914. #. type: defvar
  29915. #: guix-git/doc/guix.texi:20176
  29916. msgid "See below for details about @code{connman-configuration}."
  29917. msgstr ""
  29918. #. type: deftp
  29919. #: guix-git/doc/guix.texi:20178
  29920. #, no-wrap
  29921. msgid "{Data Type} connman-configuration"
  29922. msgstr ""
  29923. #. type: deftp
  29924. #: guix-git/doc/guix.texi:20180
  29925. msgid "Data Type representing the configuration of connman."
  29926. msgstr ""
  29927. #. type: item
  29928. #: guix-git/doc/guix.texi:20182
  29929. #, no-wrap
  29930. msgid "@code{connman} (default: @var{connman})"
  29931. msgstr ""
  29932. #. type: table
  29933. #: guix-git/doc/guix.texi:20184
  29934. msgid "The connman package to use."
  29935. msgstr ""
  29936. #. type: item
  29937. #: guix-git/doc/guix.texi:20191
  29938. #, no-wrap
  29939. msgid "@code{disable-vpn?} (default: @code{#f})"
  29940. msgstr ""
  29941. #. type: table
  29942. #: guix-git/doc/guix.texi:20193
  29943. msgid "When true, disable connman's vpn plugin."
  29944. msgstr ""
  29945. #. type: cindex
  29946. #: guix-git/doc/guix.texi:20197
  29947. #, no-wrap
  29948. msgid "WPA Supplicant"
  29949. msgstr ""
  29950. #. type: defvar
  29951. #: guix-git/doc/guix.texi:20198
  29952. #, fuzzy, no-wrap
  29953. msgid "wpa-supplicant-service-type"
  29954. msgstr "邮件服务"
  29955. #. type: defvar
  29956. #: guix-git/doc/guix.texi:20202
  29957. 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."
  29958. msgstr ""
  29959. #. type: deftp
  29960. #: guix-git/doc/guix.texi:20204
  29961. #, no-wrap
  29962. msgid "{Data Type} wpa-supplicant-configuration"
  29963. msgstr ""
  29964. #. type: deftp
  29965. #: guix-git/doc/guix.texi:20206
  29966. msgid "Data type representing the configuration of WPA Supplicant."
  29967. msgstr ""
  29968. #. type: deftp
  29969. #: guix-git/doc/guix.texi:20208 guix-git/doc/guix.texi:37408
  29970. msgid "It takes the following parameters:"
  29971. msgstr ""
  29972. #. type: item
  29973. #: guix-git/doc/guix.texi:20210
  29974. #, no-wrap
  29975. msgid "@code{wpa-supplicant} (default: @code{wpa-supplicant})"
  29976. msgstr ""
  29977. #. type: table
  29978. #: guix-git/doc/guix.texi:20212
  29979. msgid "The WPA Supplicant package to use."
  29980. msgstr ""
  29981. #. type: item
  29982. #: guix-git/doc/guix.texi:20213
  29983. #, no-wrap
  29984. msgid "@code{requirement} (default: @code{'(user-processes loopback syslogd)}"
  29985. msgstr ""
  29986. #. type: table
  29987. #: guix-git/doc/guix.texi:20215
  29988. msgid "List of services that should be started before WPA Supplicant starts."
  29989. msgstr ""
  29990. #. type: item
  29991. #: guix-git/doc/guix.texi:20216
  29992. #, no-wrap
  29993. msgid "@code{dbus?} (default: @code{#t})"
  29994. msgstr ""
  29995. #. type: table
  29996. #: guix-git/doc/guix.texi:20218
  29997. msgid "Whether to listen for requests on D-Bus."
  29998. msgstr ""
  29999. #. type: item
  30000. #: guix-git/doc/guix.texi:20219
  30001. #, no-wrap
  30002. msgid "@code{pid-file} (default: @code{\"/var/run/wpa_supplicant.pid\"})"
  30003. msgstr ""
  30004. #. type: table
  30005. #: guix-git/doc/guix.texi:20221
  30006. msgid "Where to store the PID file."
  30007. msgstr ""
  30008. #. type: item
  30009. #: guix-git/doc/guix.texi:20222 guix-git/doc/guix.texi:35670
  30010. #: guix-git/doc/guix.texi:35812
  30011. #, no-wrap
  30012. msgid "@code{interface} (default: @code{#f})"
  30013. msgstr ""
  30014. #. type: table
  30015. #: guix-git/doc/guix.texi:20225
  30016. msgid "If this is set, it must specify the name of a network interface that WPA supplicant will control."
  30017. msgstr ""
  30018. #. type: item
  30019. #: guix-git/doc/guix.texi:20226 guix-git/doc/guix.texi:20328
  30020. #: guix-git/doc/guix.texi:26469 guix-git/doc/guix.texi:32984
  30021. #, no-wrap
  30022. msgid "@code{config-file} (default: @code{#f})"
  30023. msgstr ""
  30024. #. type: table
  30025. #: guix-git/doc/guix.texi:20228
  30026. msgid "Optional configuration file to use."
  30027. msgstr ""
  30028. #. type: table
  30029. #: guix-git/doc/guix.texi:20231
  30030. msgid "List of additional command-line arguments to pass to the daemon."
  30031. msgstr ""
  30032. #. type: cindex
  30033. #: guix-git/doc/guix.texi:20234
  30034. #, no-wrap
  30035. msgid "ModemManager"
  30036. msgstr ""
  30037. #. type: Plain text
  30038. #: guix-git/doc/guix.texi:20237
  30039. msgid "Some networking devices such as modems require special care, and this is what the services below focus on."
  30040. msgstr ""
  30041. #. type: defvar
  30042. #: guix-git/doc/guix.texi:20238
  30043. #, fuzzy, no-wrap
  30044. msgid "modem-manager-service-type"
  30045. msgstr "邮件服务"
  30046. #. type: defvar
  30047. #: guix-git/doc/guix.texi:20243
  30048. 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."
  30049. msgstr ""
  30050. #. type: deftp
  30051. #: guix-git/doc/guix.texi:20248
  30052. #, no-wrap
  30053. msgid "{Data Type} modem-manager-configuration"
  30054. msgstr ""
  30055. #. type: deftp
  30056. #: guix-git/doc/guix.texi:20250
  30057. msgid "Data type representing the configuration of ModemManager."
  30058. msgstr ""
  30059. #. type: item
  30060. #: guix-git/doc/guix.texi:20252
  30061. #, no-wrap
  30062. msgid "@code{modem-manager} (default: @code{modem-manager})"
  30063. msgstr ""
  30064. #. type: table
  30065. #: guix-git/doc/guix.texi:20254
  30066. msgid "The ModemManager package to use."
  30067. msgstr ""
  30068. #. type: cindex
  30069. #: guix-git/doc/guix.texi:20258
  30070. #, no-wrap
  30071. msgid "USB_ModeSwitch"
  30072. msgstr ""
  30073. #. type: cindex
  30074. #: guix-git/doc/guix.texi:20259
  30075. #, no-wrap
  30076. msgid "Modeswitching"
  30077. msgstr ""
  30078. #. type: defvar
  30079. #: guix-git/doc/guix.texi:20261
  30080. #, fuzzy, no-wrap
  30081. msgid "usb-modeswitch-service-type"
  30082. msgstr "邮件服务"
  30083. #. type: defvar
  30084. #: guix-git/doc/guix.texi:20266
  30085. 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."
  30086. msgstr ""
  30087. #. type: defvar
  30088. #: guix-git/doc/guix.texi:20272
  30089. 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."
  30090. msgstr ""
  30091. #. type: deftp
  30092. #: guix-git/doc/guix.texi:20277
  30093. #, no-wrap
  30094. msgid "{Data Type} usb-modeswitch-configuration"
  30095. msgstr ""
  30096. #. type: deftp
  30097. #: guix-git/doc/guix.texi:20279
  30098. msgid "Data type representing the configuration of USB_ModeSwitch."
  30099. msgstr ""
  30100. #. type: item
  30101. #: guix-git/doc/guix.texi:20281
  30102. #, fuzzy, no-wrap
  30103. msgid "@code{usb-modeswitch} (default: @code{usb-modeswitch})"
  30104. msgstr "@code{mate}(默认值:@code{mate})"
  30105. #. type: table
  30106. #: guix-git/doc/guix.texi:20283
  30107. msgid "The USB_ModeSwitch package providing the binaries for modeswitching."
  30108. msgstr ""
  30109. #. type: item
  30110. #: guix-git/doc/guix.texi:20284
  30111. #, fuzzy, no-wrap
  30112. msgid "@code{usb-modeswitch-data} (default: @code{usb-modeswitch-data})"
  30113. msgstr "@code{mate}(默认值:@code{mate})"
  30114. #. type: table
  30115. #: guix-git/doc/guix.texi:20287
  30116. msgid "The package providing the device data and udev rules file used by USB_ModeSwitch."
  30117. msgstr ""
  30118. #. type: item
  30119. #: guix-git/doc/guix.texi:20288
  30120. #, no-wrap
  30121. msgid "@code{config-file} (default: @code{#~(string-append #$usb-modeswitch:dispatcher \"/etc/usb_modeswitch.conf\")})"
  30122. msgstr ""
  30123. #. type: table
  30124. #: guix-git/doc/guix.texi:20293
  30125. 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."
  30126. msgstr ""
  30127. #. type: Plain text
  30128. #: guix-git/doc/guix.texi:20307
  30129. 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."
  30130. msgstr ""
  30131. #. type: defvar
  30132. #: guix-git/doc/guix.texi:20308
  30133. #, fuzzy, no-wrap
  30134. msgid "dhcpd-service-type"
  30135. msgstr "邮件服务"
  30136. #. type: defvar
  30137. #: guix-git/doc/guix.texi:20312
  30138. 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:"
  30139. msgstr ""
  30140. #. type: lisp
  30141. #: guix-git/doc/guix.texi:20318
  30142. #, no-wrap
  30143. msgid ""
  30144. "(service dhcpd-service-type\n"
  30145. " (dhcpd-configuration\n"
  30146. " (config-file (local-file \"my-dhcpd.conf\"))\n"
  30147. " (interfaces '(\"enp0s25\"))))\n"
  30148. msgstr ""
  30149. #. type: deftp
  30150. #: guix-git/doc/guix.texi:20321
  30151. #, no-wrap
  30152. msgid "{Data Type} dhcpd-configuration"
  30153. msgstr ""
  30154. #. type: table
  30155. #: guix-git/doc/guix.texi:20328
  30156. 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/dhcp/, ISC's DHCP server}."
  30157. msgstr ""
  30158. #. type: table
  30159. #: guix-git/doc/guix.texi:20333
  30160. 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."
  30161. msgstr ""
  30162. #. type: item
  30163. #: guix-git/doc/guix.texi:20333
  30164. #, no-wrap
  30165. msgid "@code{version} (default: @code{\"4\"})"
  30166. msgstr ""
  30167. #. type: table
  30168. #: guix-git/doc/guix.texi:20338
  30169. 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."
  30170. msgstr ""
  30171. #. type: item
  30172. #: guix-git/doc/guix.texi:20338
  30173. #, no-wrap
  30174. msgid "@code{run-directory} (default: @code{\"/run/dhcpd\"})"
  30175. msgstr ""
  30176. #. type: table
  30177. #: guix-git/doc/guix.texi:20341
  30178. msgid "The run directory to use. At service activation time, this directory will be created if it does not exist."
  30179. msgstr ""
  30180. #. type: item
  30181. #: guix-git/doc/guix.texi:20341
  30182. #, no-wrap
  30183. msgid "@code{pid-file} (default: @code{\"/run/dhcpd/dhcpd.pid\"})"
  30184. msgstr ""
  30185. #. type: table
  30186. #: guix-git/doc/guix.texi:20344
  30187. msgid "The PID file to use. This corresponds to the @code{-pf} option of @code{dhcpd}. See @code{man dhcpd} for details."
  30188. msgstr ""
  30189. #. type: item
  30190. #: guix-git/doc/guix.texi:20344
  30191. #, no-wrap
  30192. msgid "@code{interfaces} (default: @code{'()})"
  30193. msgstr ""
  30194. #. type: table
  30195. #: guix-git/doc/guix.texi:20350
  30196. 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."
  30197. msgstr ""
  30198. #. type: cindex
  30199. #: guix-git/doc/guix.texi:20353
  30200. #, no-wrap
  30201. msgid "hostapd service, for Wi-Fi access points"
  30202. msgstr ""
  30203. #. type: cindex
  30204. #: guix-git/doc/guix.texi:20354
  30205. #, no-wrap
  30206. msgid "Wi-Fi access points, hostapd service"
  30207. msgstr ""
  30208. #. type: defvar
  30209. #: guix-git/doc/guix.texi:20355
  30210. #, fuzzy, no-wrap
  30211. msgid "hostapd-service-type"
  30212. msgstr "邮件服务"
  30213. #. type: defvar
  30214. #: guix-git/doc/guix.texi:20360
  30215. 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:"
  30216. msgstr ""
  30217. #. type: lisp
  30218. #: guix-git/doc/guix.texi:20368
  30219. #, no-wrap
  30220. msgid ""
  30221. ";; Use wlan1 to run the access point for \"My Network\".\n"
  30222. "(service hostapd-service-type\n"
  30223. " (hostapd-configuration\n"
  30224. " (interface \"wlan1\")\n"
  30225. " (ssid \"My Network\")\n"
  30226. " (channel 12)))\n"
  30227. msgstr ""
  30228. #. type: deftp
  30229. #: guix-git/doc/guix.texi:20371
  30230. #, no-wrap
  30231. msgid "{Data Type} hostapd-configuration"
  30232. msgstr ""
  30233. #. type: deftp
  30234. #: guix-git/doc/guix.texi:20374
  30235. msgid "This data type represents the configuration of the hostapd service, with the following fields:"
  30236. msgstr ""
  30237. #. type: item
  30238. #: guix-git/doc/guix.texi:20376
  30239. #, fuzzy, no-wrap
  30240. msgid "@code{package} (default: @code{hostapd})"
  30241. msgstr "@code{mate}(默认值:@code{mate})"
  30242. #. type: table
  30243. #: guix-git/doc/guix.texi:20378
  30244. #, fuzzy
  30245. msgid "The hostapd package to use."
  30246. msgstr "软件包数据类型。"
  30247. #. type: item
  30248. #: guix-git/doc/guix.texi:20379
  30249. #, fuzzy, no-wrap
  30250. msgid "@code{interface} (default: @code{\"wlan0\"})"
  30251. msgstr "@code{display}(默认值:@code{\":0\"})"
  30252. #. type: table
  30253. #: guix-git/doc/guix.texi:20381
  30254. msgid "The network interface to run the WiFi access point."
  30255. msgstr ""
  30256. #. type: code{#1}
  30257. #: guix-git/doc/guix.texi:20382
  30258. #, no-wrap
  30259. msgid "ssid"
  30260. msgstr ""
  30261. #. type: table
  30262. #: guix-git/doc/guix.texi:20385
  30263. msgid "The SSID (@dfn{service set identifier}), a string that identifies this network."
  30264. msgstr ""
  30265. #. type: item
  30266. #: guix-git/doc/guix.texi:20386
  30267. #, fuzzy, no-wrap
  30268. msgid "@code{broadcast-ssid?} (default: @code{#t})"
  30269. msgstr "@code{mate}(默认值:@code{mate})"
  30270. #. type: table
  30271. #: guix-git/doc/guix.texi:20388
  30272. msgid "Whether to broadcast this SSID."
  30273. msgstr ""
  30274. #. type: item
  30275. #: guix-git/doc/guix.texi:20389
  30276. #, fuzzy, no-wrap
  30277. msgid "@code{channel} (default: @code{1})"
  30278. msgstr "@code{challenge}(默认值:@code{#f})"
  30279. #. type: table
  30280. #: guix-git/doc/guix.texi:20391
  30281. msgid "The WiFi channel to use."
  30282. msgstr ""
  30283. #. type: item
  30284. #: guix-git/doc/guix.texi:20392
  30285. #, fuzzy, no-wrap
  30286. msgid "@code{driver} (default: @code{\"nl80211\"})"
  30287. msgstr "@code{display}(默认值:@code{\":0\"})"
  30288. #. type: table
  30289. #: guix-git/doc/guix.texi:20396
  30290. 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."
  30291. msgstr ""
  30292. #. type: item
  30293. #: guix-git/doc/guix.texi:20397 guix-git/doc/guix.texi:27320
  30294. #: guix-git/doc/guix.texi:30759
  30295. #, no-wrap
  30296. msgid "@code{extra-settings} (default: @code{\"\"})"
  30297. msgstr ""
  30298. #. type: table
  30299. #: guix-git/doc/guix.texi:20401
  30300. 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."
  30301. msgstr ""
  30302. #. type: defvar
  30303. #: guix-git/doc/guix.texi:20404
  30304. #, fuzzy, no-wrap
  30305. msgid "simulated-wifi-service-type"
  30306. msgstr "邮件服务"
  30307. #. type: defvar
  30308. #: guix-git/doc/guix.texi:20411
  30309. 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."
  30310. msgstr ""
  30311. #. type: defvar
  30312. #: guix-git/doc/guix.texi:20413
  30313. msgid "The service's value is a @code{hostapd-configuration} record."
  30314. msgstr ""
  30315. #. type: cindex
  30316. #: guix-git/doc/guix.texi:20416
  30317. #, no-wrap
  30318. msgid "iptables"
  30319. msgstr ""
  30320. #. type: defvar
  30321. #: guix-git/doc/guix.texi:20417
  30322. #, fuzzy, no-wrap
  30323. msgid "iptables-service-type"
  30324. msgstr "邮件服务"
  30325. #. type: defvar
  30326. #: guix-git/doc/guix.texi:20423
  30327. 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."
  30328. msgstr ""
  30329. #. type: lisp
  30330. #: guix-git/doc/guix.texi:20445
  30331. #, no-wrap
  30332. msgid ""
  30333. "(service iptables-service-type\n"
  30334. " (iptables-configuration\n"
  30335. " (ipv4-rules (plain-file \"iptables.rules\" \"*filter\n"
  30336. ":INPUT ACCEPT\n"
  30337. ":FORWARD ACCEPT\n"
  30338. ":OUTPUT ACCEPT\n"
  30339. "-A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT\n"
  30340. "-A INPUT -p tcp --dport 22 -j ACCEPT\n"
  30341. "-A INPUT -j REJECT --reject-with icmp-port-unreachable\n"
  30342. "COMMIT\n"
  30343. "\"))\n"
  30344. " (ipv6-rules (plain-file \"ip6tables.rules\" \"*filter\n"
  30345. ":INPUT ACCEPT\n"
  30346. ":FORWARD ACCEPT\n"
  30347. ":OUTPUT ACCEPT\n"
  30348. "-A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT\n"
  30349. "-A INPUT -p tcp --dport 22 -j ACCEPT\n"
  30350. "-A INPUT -j REJECT --reject-with icmp6-port-unreachable\n"
  30351. "COMMIT\n"
  30352. "\"))))\n"
  30353. msgstr ""
  30354. #. type: deftp
  30355. #: guix-git/doc/guix.texi:20448
  30356. #, no-wrap
  30357. msgid "{Data Type} iptables-configuration"
  30358. msgstr ""
  30359. #. type: deftp
  30360. #: guix-git/doc/guix.texi:20450
  30361. msgid "The data type representing the configuration of iptables."
  30362. msgstr ""
  30363. #. type: item
  30364. #: guix-git/doc/guix.texi:20452
  30365. #, no-wrap
  30366. msgid "@code{iptables} (default: @code{iptables})"
  30367. msgstr ""
  30368. #. type: table
  30369. #: guix-git/doc/guix.texi:20455
  30370. msgid "The iptables package that provides @code{iptables-restore} and @code{ip6tables-restore}."
  30371. msgstr ""
  30372. #. type: item
  30373. #: guix-git/doc/guix.texi:20455
  30374. #, no-wrap
  30375. msgid "@code{ipv4-rules} (default: @code{%iptables-accept-all-rules})"
  30376. msgstr ""
  30377. #. type: table
  30378. #: guix-git/doc/guix.texi:20459
  30379. 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})."
  30380. msgstr ""
  30381. #. type: item
  30382. #: guix-git/doc/guix.texi:20459
  30383. #, no-wrap
  30384. msgid "@code{ipv6-rules} (default: @code{%iptables-accept-all-rules})"
  30385. msgstr ""
  30386. #. type: table
  30387. #: guix-git/doc/guix.texi:20463
  30388. 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})."
  30389. msgstr ""
  30390. #. type: cindex
  30391. #: guix-git/doc/guix.texi:20466
  30392. #, no-wrap
  30393. msgid "nftables"
  30394. msgstr ""
  30395. #. type: defvar
  30396. #: guix-git/doc/guix.texi:20467
  30397. #, fuzzy, no-wrap
  30398. msgid "nftables-service-type"
  30399. msgstr "邮件服务"
  30400. #. type: defvar
  30401. #: guix-git/doc/guix.texi:20475
  30402. 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:"
  30403. msgstr ""
  30404. #. type: lisp
  30405. #: guix-git/doc/guix.texi:20478
  30406. #, no-wrap
  30407. msgid "(service nftables-service-type)\n"
  30408. msgstr ""
  30409. #. type: deftp
  30410. #: guix-git/doc/guix.texi:20481
  30411. #, fuzzy, no-wrap
  30412. msgid "{Data Type} nftables-configuration"
  30413. msgstr "{数据类型} build-machine"
  30414. #. type: deftp
  30415. #: guix-git/doc/guix.texi:20483
  30416. #, fuzzy
  30417. msgid "The data type representing the configuration of nftables."
  30418. msgstr "管理操作系统配置。"
  30419. #. type: item
  30420. #: guix-git/doc/guix.texi:20485
  30421. #, fuzzy, no-wrap
  30422. msgid "@code{package} (default: @code{nftables})"
  30423. msgstr "@code{xfce}(默认值:@code{xfce})"
  30424. #. type: table
  30425. #: guix-git/doc/guix.texi:20487
  30426. msgid "The nftables package that provides @command{nft}."
  30427. msgstr ""
  30428. #. type: item
  30429. #: guix-git/doc/guix.texi:20487
  30430. #, fuzzy, no-wrap
  30431. msgid "@code{ruleset} (default: @code{%default-nftables-ruleset})"
  30432. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  30433. #. type: table
  30434. #: guix-git/doc/guix.texi:20490
  30435. msgid "The nftables ruleset to use. This may be any ``file-like'' object (@pxref{G-Expressions, file-like objects})."
  30436. msgstr ""
  30437. #. type: cindex
  30438. #: guix-git/doc/guix.texi:20493
  30439. #, no-wrap
  30440. msgid "NTP (Network Time Protocol), service"
  30441. msgstr ""
  30442. #. type: cindex
  30443. #: guix-git/doc/guix.texi:20494
  30444. #, no-wrap
  30445. msgid "ntpd, service for the Network Time Protocol daemon"
  30446. msgstr ""
  30447. #. type: cindex
  30448. #: guix-git/doc/guix.texi:20495
  30449. #, no-wrap
  30450. msgid "real time clock"
  30451. msgstr ""
  30452. #. type: defvar
  30453. #: guix-git/doc/guix.texi:20496
  30454. #, fuzzy, no-wrap
  30455. msgid "ntp-service-type"
  30456. msgstr "邮件服务"
  30457. #. type: defvar
  30458. #: guix-git/doc/guix.texi:20500
  30459. 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."
  30460. msgstr ""
  30461. #. type: defvar
  30462. #: guix-git/doc/guix.texi:20503
  30463. msgid "The value of this service is an @code{ntpd-configuration} object, as described below."
  30464. msgstr ""
  30465. #. type: deftp
  30466. #: guix-git/doc/guix.texi:20505
  30467. #, no-wrap
  30468. msgid "{Data Type} ntp-configuration"
  30469. msgstr ""
  30470. #. type: deftp
  30471. #: guix-git/doc/guix.texi:20507
  30472. msgid "This is the data type for the NTP service configuration."
  30473. msgstr ""
  30474. #. type: item
  30475. #: guix-git/doc/guix.texi:20509
  30476. #, no-wrap
  30477. msgid "@code{servers} (default: @code{%ntp-servers})"
  30478. msgstr ""
  30479. #. type: table
  30480. #: guix-git/doc/guix.texi:20513
  30481. 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."
  30482. msgstr ""
  30483. #. type: item
  30484. #: guix-git/doc/guix.texi:20514
  30485. #, fuzzy, no-wrap
  30486. msgid "@code{allow-large-adjustment?} (default: @code{#t})"
  30487. msgstr "@code{challenge}(默认值:@code{#f})"
  30488. #. type: table
  30489. #: guix-git/doc/guix.texi:20517
  30490. msgid "This determines whether @command{ntpd} is allowed to make an initial adjustment of more than 1,000 seconds."
  30491. msgstr ""
  30492. #. type: item
  30493. #: guix-git/doc/guix.texi:20518
  30494. #, no-wrap
  30495. msgid "@code{ntp} (default: @code{ntp})"
  30496. msgstr ""
  30497. #. type: table
  30498. #: guix-git/doc/guix.texi:20520
  30499. msgid "The NTP package to use."
  30500. msgstr ""
  30501. #. type: defvar
  30502. #: guix-git/doc/guix.texi:20523
  30503. #, fuzzy, no-wrap
  30504. msgid "%ntp-servers"
  30505. msgstr "基础服务"
  30506. #. type: defvar
  30507. #: guix-git/doc/guix.texi:20526
  30508. 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}."
  30509. msgstr ""
  30510. #. type: deftp
  30511. #: guix-git/doc/guix.texi:20528
  30512. #, no-wrap
  30513. msgid "{Data Type} ntp-server"
  30514. msgstr ""
  30515. #. type: deftp
  30516. #: guix-git/doc/guix.texi:20530
  30517. msgid "The data type representing the configuration of a NTP server."
  30518. msgstr ""
  30519. #. type: item
  30520. #: guix-git/doc/guix.texi:20532
  30521. #, fuzzy, no-wrap
  30522. msgid "@code{type} (default: @code{'server})"
  30523. msgstr "@code{mate}(默认值:@code{mate})"
  30524. #. type: table
  30525. #: guix-git/doc/guix.texi:20535
  30526. msgid "The type of the NTP server, given as a symbol. One of @code{'pool}, @code{'server}, @code{'peer}, @code{'broadcast} or @code{'manycastclient}."
  30527. msgstr ""
  30528. #. type: code{#1}
  30529. #: guix-git/doc/guix.texi:20536
  30530. #, no-wrap
  30531. msgid "address"
  30532. msgstr ""
  30533. #. type: table
  30534. #: guix-git/doc/guix.texi:20538
  30535. msgid "The address of the server, as a string."
  30536. msgstr ""
  30537. #. type: code{#1}
  30538. #: guix-git/doc/guix.texi:20539 guix-git/doc/guix.texi:38465
  30539. #: guix-git/doc/guix.texi:38485
  30540. #, no-wrap
  30541. msgid "options"
  30542. msgstr ""
  30543. #. type: table
  30544. #: guix-git/doc/guix.texi:20544
  30545. 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."
  30546. msgstr ""
  30547. #. type: example
  30548. #: guix-git/doc/guix.texi:20550
  30549. #, no-wrap
  30550. msgid ""
  30551. "(ntp-server\n"
  30552. " (type 'server)\n"
  30553. " (address \"some.ntp.server.org\")\n"
  30554. " (options `(iburst (version 3) (maxpoll 16) prefer))))\n"
  30555. msgstr ""
  30556. #. type: cindex
  30557. #: guix-git/doc/guix.texi:20554
  30558. #, no-wrap
  30559. msgid "OpenNTPD"
  30560. msgstr ""
  30561. #. type: defvar
  30562. #: guix-git/doc/guix.texi:20555
  30563. #, fuzzy, no-wrap
  30564. msgid "openntpd-service-type"
  30565. msgstr "邮件服务"
  30566. #. type: defvar
  30567. #: guix-git/doc/guix.texi:20559
  30568. 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."
  30569. msgstr ""
  30570. #. type: lisp
  30571. #: guix-git/doc/guix.texi:20568
  30572. #, no-wrap
  30573. msgid ""
  30574. "(service\n"
  30575. " openntpd-service-type\n"
  30576. " (openntpd-configuration\n"
  30577. " (listen-on '(\"127.0.0.1\" \"::1\"))\n"
  30578. " (sensor '(\"udcf0 correction 70000\"))\n"
  30579. " (constraint-from '(\"www.gnu.org\"))\n"
  30580. " (constraints-from '(\"https://www.google.com/\"))))\n"
  30581. "\n"
  30582. msgstr ""
  30583. #. type: defvar
  30584. #: guix-git/doc/guix.texi:20572
  30585. #, no-wrap
  30586. msgid "%openntpd-servers"
  30587. msgstr ""
  30588. #. type: defvar
  30589. #: guix-git/doc/guix.texi:20575
  30590. msgid "This variable is a list of the server addresses defined in @code{%ntp-servers}."
  30591. msgstr ""
  30592. #. type: deftp
  30593. #: guix-git/doc/guix.texi:20577
  30594. #, no-wrap
  30595. msgid "{Data Type} openntpd-configuration"
  30596. msgstr ""
  30597. #. type: item
  30598. #: guix-git/doc/guix.texi:20579
  30599. #, fuzzy, no-wrap
  30600. msgid "@code{openntpd} (default: @code{openntpd})"
  30601. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  30602. #. type: table
  30603. #: guix-git/doc/guix.texi:20581
  30604. #, fuzzy
  30605. msgid "The openntpd package to use."
  30606. msgstr "软件包数据类型。"
  30607. #. type: item
  30608. #: guix-git/doc/guix.texi:20581
  30609. #, no-wrap
  30610. msgid "@code{listen-on} (default: @code{'(\"127.0.0.1\" \"::1\")})"
  30611. msgstr ""
  30612. #. type: table
  30613. #: guix-git/doc/guix.texi:20583
  30614. msgid "A list of local IP addresses or hostnames the ntpd daemon should listen on."
  30615. msgstr ""
  30616. #. type: item
  30617. #: guix-git/doc/guix.texi:20583
  30618. #, no-wrap
  30619. msgid "@code{query-from} (default: @code{'()})"
  30620. msgstr ""
  30621. #. type: table
  30622. #: guix-git/doc/guix.texi:20585
  30623. msgid "A list of local IP address the ntpd daemon should use for outgoing queries."
  30624. msgstr ""
  30625. #. type: item
  30626. #: guix-git/doc/guix.texi:20585
  30627. #, no-wrap
  30628. msgid "@code{sensor} (default: @code{'()})"
  30629. msgstr ""
  30630. #. type: table
  30631. #: guix-git/doc/guix.texi:20590
  30632. 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."
  30633. msgstr ""
  30634. #. type: item
  30635. #: guix-git/doc/guix.texi:20590
  30636. #, fuzzy, no-wrap
  30637. msgid "@code{server} (default: @code{'()})"
  30638. msgstr "@code{features} (@code{'()})"
  30639. #. type: table
  30640. #: guix-git/doc/guix.texi:20592
  30641. msgid "Specify a list of IP addresses or hostnames of NTP servers to synchronize to."
  30642. msgstr ""
  30643. #. type: item
  30644. #: guix-git/doc/guix.texi:20592
  30645. #, fuzzy, no-wrap
  30646. msgid "@code{servers} (default: @code{%openntp-servers})"
  30647. msgstr "@code{speed}(默认值:@code{1.0})"
  30648. #. type: table
  30649. #: guix-git/doc/guix.texi:20594
  30650. msgid "Specify a list of IP addresses or hostnames of NTP pools to synchronize to."
  30651. msgstr ""
  30652. #. type: item
  30653. #: guix-git/doc/guix.texi:20594
  30654. #, no-wrap
  30655. msgid "@code{constraint-from} (default: @code{'()})"
  30656. msgstr ""
  30657. #. type: table
  30658. #: guix-git/doc/guix.texi:20601
  30659. 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."
  30660. msgstr ""
  30661. #. type: item
  30662. #: guix-git/doc/guix.texi:20601
  30663. #, no-wrap
  30664. msgid "@code{constraints-from} (default: @code{'()})"
  30665. msgstr ""
  30666. #. type: table
  30667. #: guix-git/doc/guix.texi:20605
  30668. 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."
  30669. msgstr ""
  30670. #. type: cindex
  30671. #: guix-git/doc/guix.texi:20608
  30672. #, no-wrap
  30673. msgid "inetd"
  30674. msgstr ""
  30675. #. type: defvar
  30676. #: guix-git/doc/guix.texi:20609
  30677. #, fuzzy, no-wrap
  30678. msgid "inetd-service-type"
  30679. msgstr "邮件服务"
  30680. #. type: defvar
  30681. #: guix-git/doc/guix.texi:20614
  30682. 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."
  30683. msgstr ""
  30684. #. type: defvar
  30685. #: guix-git/doc/guix.texi:20620
  30686. 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}:"
  30687. msgstr ""
  30688. #. type: lisp
  30689. #: guix-git/doc/guix.texi:20643
  30690. #, no-wrap
  30691. msgid ""
  30692. "(service\n"
  30693. " inetd-service-type\n"
  30694. " (inetd-configuration\n"
  30695. " (entries (list\n"
  30696. " (inetd-entry\n"
  30697. " (name \"echo\")\n"
  30698. " (socket-type 'stream)\n"
  30699. " (protocol \"tcp\")\n"
  30700. " (wait? #f)\n"
  30701. " (user \"root\"))\n"
  30702. " (inetd-entry\n"
  30703. " (node \"127.0.0.1\")\n"
  30704. " (name \"smtp\")\n"
  30705. " (socket-type 'stream)\n"
  30706. " (protocol \"tcp\")\n"
  30707. " (wait? #f)\n"
  30708. " (user \"root\")\n"
  30709. " (program (file-append openssh \"/bin/ssh\"))\n"
  30710. " (arguments\n"
  30711. " '(\"ssh\" \"-qT\" \"-i\" \"/path/to/ssh_key\"\n"
  30712. " \"-W\" \"smtp-server:25\" \"user@@hostname\")))))))\n"
  30713. msgstr ""
  30714. #. type: defvar
  30715. #: guix-git/doc/guix.texi:20646
  30716. msgid "See below for more details about @code{inetd-configuration}."
  30717. msgstr ""
  30718. #. type: deftp
  30719. #: guix-git/doc/guix.texi:20648
  30720. #, no-wrap
  30721. msgid "{Data Type} inetd-configuration"
  30722. msgstr ""
  30723. #. type: deftp
  30724. #: guix-git/doc/guix.texi:20650
  30725. msgid "Data type representing the configuration of @command{inetd}."
  30726. msgstr ""
  30727. #. type: item
  30728. #: guix-git/doc/guix.texi:20652
  30729. #, no-wrap
  30730. msgid "@code{program} (default: @code{(file-append inetutils \"/libexec/inetd\")})"
  30731. msgstr ""
  30732. #. type: table
  30733. #: guix-git/doc/guix.texi:20654
  30734. msgid "The @command{inetd} executable to use."
  30735. msgstr ""
  30736. #. type: item
  30737. #: guix-git/doc/guix.texi:20655 guix-git/doc/guix.texi:31607
  30738. #, no-wrap
  30739. msgid "@code{entries} (default: @code{'()})"
  30740. msgstr ""
  30741. #. type: table
  30742. #: guix-git/doc/guix.texi:20658
  30743. msgid "A list of @command{inetd} service entries. Each entry should be created by the @code{inetd-entry} constructor."
  30744. msgstr ""
  30745. #. type: deftp
  30746. #: guix-git/doc/guix.texi:20661
  30747. #, no-wrap
  30748. msgid "{Data Type} inetd-entry"
  30749. msgstr ""
  30750. #. type: deftp
  30751. #: guix-git/doc/guix.texi:20665
  30752. msgid "Data type representing an entry in the @command{inetd} configuration. Each entry corresponds to a socket where @command{inetd} will listen for requests."
  30753. msgstr ""
  30754. #. type: item
  30755. #: guix-git/doc/guix.texi:20667
  30756. #, no-wrap
  30757. msgid "@code{node} (default: @code{#f})"
  30758. msgstr ""
  30759. #. type: table
  30760. #: guix-git/doc/guix.texi:20672
  30761. 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."
  30762. msgstr ""
  30763. #. type: table
  30764. #: guix-git/doc/guix.texi:20674
  30765. msgid "A string, the name must correspond to an entry in @code{/etc/services}."
  30766. msgstr ""
  30767. #. type: code{#1}
  30768. #: guix-git/doc/guix.texi:20674
  30769. #, no-wrap
  30770. msgid "socket-type"
  30771. msgstr ""
  30772. #. type: table
  30773. #: guix-git/doc/guix.texi:20677
  30774. msgid "One of @code{'stream}, @code{'dgram}, @code{'raw}, @code{'rdm} or @code{'seqpacket}."
  30775. msgstr ""
  30776. #. type: code{#1}
  30777. #: guix-git/doc/guix.texi:20677
  30778. #, no-wrap
  30779. msgid "protocol"
  30780. msgstr ""
  30781. #. type: table
  30782. #: guix-git/doc/guix.texi:20679
  30783. msgid "A string, must correspond to an entry in @code{/etc/protocols}."
  30784. msgstr ""
  30785. #. type: item
  30786. #: guix-git/doc/guix.texi:20679
  30787. #, no-wrap
  30788. msgid "@code{wait?} (default: @code{#t})"
  30789. msgstr ""
  30790. #. type: table
  30791. #: guix-git/doc/guix.texi:20682
  30792. msgid "Whether @command{inetd} should wait for the server to exit before listening to new service requests."
  30793. msgstr ""
  30794. #. type: table
  30795. #: guix-git/doc/guix.texi:20687
  30796. 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\"}."
  30797. msgstr ""
  30798. #. type: item
  30799. #: guix-git/doc/guix.texi:20687
  30800. #, no-wrap
  30801. msgid "@code{program} (default: @code{\"internal\"})"
  30802. msgstr ""
  30803. #. type: table
  30804. #: guix-git/doc/guix.texi:20690
  30805. msgid "The server program which will serve the requests, or @code{\"internal\"} if @command{inetd} should use a built-in service."
  30806. msgstr ""
  30807. #. type: table
  30808. #: guix-git/doc/guix.texi:20695
  30809. 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\")}."
  30810. msgstr ""
  30811. #. type: deftp
  30812. #: guix-git/doc/guix.texi:20699
  30813. msgid "@xref{Configuration file,,, inetutils, GNU Inetutils} for a more detailed discussion of each configuration field."
  30814. msgstr ""
  30815. #. type: cindex
  30816. #: guix-git/doc/guix.texi:20701
  30817. #, no-wrap
  30818. msgid "opendht, distributed hash table network service"
  30819. msgstr ""
  30820. #. type: cindex
  30821. #: guix-git/doc/guix.texi:20702
  30822. #, no-wrap
  30823. msgid "dhtproxy, for use with jami"
  30824. msgstr ""
  30825. #. type: defvar
  30826. #: guix-git/doc/guix.texi:20703
  30827. #, fuzzy, no-wrap
  30828. msgid "opendht-service-type"
  30829. msgstr "邮件服务"
  30830. #. type: defvar
  30831. #: guix-git/doc/guix.texi:20708
  30832. 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."
  30833. msgstr ""
  30834. #. type: quotation
  30835. #: guix-git/doc/guix.texi:20718
  30836. 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."
  30837. msgstr ""
  30838. #. type: defvar
  30839. #: guix-git/doc/guix.texi:20722
  30840. msgid "The value of this service is a @code{opendht-configuration} object, as described below."
  30841. msgstr ""
  30842. #. type: deftp
  30843. #: guix-git/doc/guix.texi:20727
  30844. #, fuzzy, no-wrap
  30845. msgid "{Data Type} opendht-configuration"
  30846. msgstr "系统配置"
  30847. #. type: deftp
  30848. #: guix-git/doc/guix.texi:20729
  30849. msgid "Available @code{opendht-configuration} fields are:"
  30850. msgstr ""
  30851. #. type: item
  30852. #: guix-git/doc/guix.texi:20731
  30853. #, fuzzy, no-wrap
  30854. msgid "@code{opendht} (default: @code{opendht}) (type: file-like)"
  30855. msgstr "@code{xfce}(默认值:@code{xfce})"
  30856. #. type: table
  30857. #: guix-git/doc/guix.texi:20733
  30858. #, fuzzy
  30859. msgid "The @code{opendht} package to use."
  30860. msgstr "软件包数据类型。"
  30861. #. type: item
  30862. #: guix-git/doc/guix.texi:20734
  30863. #, fuzzy, no-wrap
  30864. msgid "@code{peer-discovery?} (default: @code{#f}) (type: boolean)"
  30865. msgstr "@code{challenge}(默认值:@code{#f})"
  30866. #. type: table
  30867. #: guix-git/doc/guix.texi:20736
  30868. msgid "Whether to enable the multicast local peer discovery mechanism."
  30869. msgstr ""
  30870. #. type: item
  30871. #: guix-git/doc/guix.texi:20737
  30872. #, fuzzy, no-wrap
  30873. msgid "@code{enable-logging?} (default: @code{#f}) (type: boolean)"
  30874. msgstr "@code{speed}(默认值:@code{1.0})"
  30875. #. type: table
  30876. #: guix-git/doc/guix.texi:20740
  30877. msgid "Whether to enable logging messages to syslog. It is disabled by default as it is rather verbose."
  30878. msgstr ""
  30879. #. type: item
  30880. #: guix-git/doc/guix.texi:20741 guix-git/doc/guix.texi:22277
  30881. #: guix-git/doc/guix.texi:27518
  30882. #, fuzzy, no-wrap
  30883. msgid "@code{debug?} (default: @code{#f}) (type: boolean)"
  30884. msgstr "@code{challenge}(默认值:@code{#f})"
  30885. #. type: table
  30886. #: guix-git/doc/guix.texi:20744
  30887. msgid "Whether to enable debug-level logging messages. This has no effect if logging is disabled."
  30888. msgstr ""
  30889. #. type: item
  30890. #: guix-git/doc/guix.texi:20745
  30891. #, fuzzy, no-wrap
  30892. msgid "@code{bootstrap-host} (default: @code{\"bootstrap.jami.net:4222\"}) (type: maybe-string)"
  30893. msgstr "@code{xfce}(默认值:@code{xfce})"
  30894. #. type: table
  30895. #: guix-git/doc/guix.texi:20752
  30896. 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 bootstrapping by explicitly setting this field to the @code{%unset-value} value."
  30897. msgstr ""
  30898. #. type: item
  30899. #: guix-git/doc/guix.texi:20753
  30900. #, fuzzy, no-wrap
  30901. msgid "@code{port} (default: @code{4222}) (type: maybe-number)"
  30902. msgstr "@code{port}(默认值:@code{22})"
  30903. #. type: table
  30904. #: guix-git/doc/guix.texi:20756
  30905. msgid "The UDP port to bind to. When left unspecified, an available port is automatically selected."
  30906. msgstr ""
  30907. #. type: item
  30908. #: guix-git/doc/guix.texi:20757
  30909. #, fuzzy, no-wrap
  30910. msgid "@code{proxy-server-port} (type: maybe-number)"
  30911. msgstr "@code{gnome}(默认值:@code{gnome})"
  30912. #. type: table
  30913. #: guix-git/doc/guix.texi:20759
  30914. msgid "Spawn a proxy server listening on the specified port."
  30915. msgstr ""
  30916. #. type: item
  30917. #: guix-git/doc/guix.texi:20760
  30918. #, fuzzy, no-wrap
  30919. msgid "@code{proxy-server-port-tls} (type: maybe-number)"
  30920. msgstr "@code{gnome}(默认值:@code{gnome})"
  30921. #. type: table
  30922. #: guix-git/doc/guix.texi:20762
  30923. msgid "Spawn a proxy server listening to TLS connections on the specified port."
  30924. msgstr ""
  30925. #. type: cindex
  30926. #: guix-git/doc/guix.texi:20766
  30927. #, no-wrap
  30928. msgid "Tor"
  30929. msgstr ""
  30930. #. type: defvar
  30931. #: guix-git/doc/guix.texi:20767
  30932. #, fuzzy, no-wrap
  30933. msgid "tor-service-type"
  30934. msgstr "邮件服务"
  30935. #. type: defvar
  30936. #: guix-git/doc/guix.texi:20772
  30937. msgid "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."
  30938. msgstr ""
  30939. #. type: cindex
  30940. #: guix-git/doc/guix.texi:20773
  30941. #, fuzzy, no-wrap
  30942. #| msgid "Monitoring services."
  30943. msgid "onion services, for Tor"
  30944. msgstr "监控服务。"
  30945. #. type: defvar
  30946. #: guix-git/doc/guix.texi:20777
  30947. msgid "Services of this type can be extended by other services to specify @dfn{onion services} (in addition to those already specified in @code{tor-configuration}) as in this example:"
  30948. msgstr ""
  30949. #. type: lisp
  30950. #: guix-git/doc/guix.texi:20783
  30951. #, no-wrap
  30952. msgid ""
  30953. "(simple-service 'my-extra-onion-service tor-service-type\n"
  30954. " (list (tor-onion-service-configuration\n"
  30955. " (name \"extra-onion-service\")\n"
  30956. " (mapping '((80 . \"127.0.0.1:8080\"))))))\n"
  30957. msgstr ""
  30958. #. type: deftp
  30959. #: guix-git/doc/guix.texi:20786
  30960. #, no-wrap
  30961. msgid "{Data Type} tor-configuration"
  30962. msgstr ""
  30963. #. type: item
  30964. #: guix-git/doc/guix.texi:20788
  30965. #, no-wrap
  30966. msgid "@code{tor} (default: @code{tor})"
  30967. msgstr ""
  30968. #. type: table
  30969. #: guix-git/doc/guix.texi:20793
  30970. 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."
  30971. msgstr ""
  30972. #. type: item
  30973. #: guix-git/doc/guix.texi:20794
  30974. #, no-wrap
  30975. msgid "@code{config-file} (default: @code{(plain-file \"empty\" \"\")})"
  30976. msgstr ""
  30977. #. type: table
  30978. #: guix-git/doc/guix.texi:20800
  30979. 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."
  30980. msgstr ""
  30981. #. type: item
  30982. #: guix-git/doc/guix.texi:20801
  30983. #, no-wrap
  30984. msgid "@code{hidden-services} (default: @code{'()})"
  30985. msgstr ""
  30986. #. type: table
  30987. #: guix-git/doc/guix.texi:20806
  30988. msgid "The list of @code{<tor-onion-service-configuration>} records to use. For any onion service you include in this list, appropriate configuration to enable the onion service will be automatically added to the default configuration file."
  30989. msgstr ""
  30990. #. type: item
  30991. #: guix-git/doc/guix.texi:20807
  30992. #, no-wrap
  30993. msgid "@code{socks-socket-type} (default: @code{'tcp})"
  30994. msgstr ""
  30995. #. type: table
  30996. #: guix-git/doc/guix.texi:20814
  30997. 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."
  30998. msgstr ""
  30999. #. type: table
  31000. #: guix-git/doc/guix.texi:20819
  31001. 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."
  31002. msgstr ""
  31003. #. type: item
  31004. #: guix-git/doc/guix.texi:20820
  31005. #, fuzzy, no-wrap
  31006. msgid "@code{control-socket?} (default: @code{#f})"
  31007. msgstr "@code{journal-content}(默认值:@code{#f})"
  31008. #. type: table
  31009. #: guix-git/doc/guix.texi:20826
  31010. 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."
  31011. msgstr ""
  31012. #. type: cindex
  31013. #: guix-git/doc/guix.texi:20830
  31014. #, fuzzy, no-wrap
  31015. #| msgid "Monitoring services."
  31016. msgid "onion service, tor"
  31017. msgstr "监控服务。"
  31018. #. type: deftp
  31019. #: guix-git/doc/guix.texi:20831
  31020. #, fuzzy, no-wrap
  31021. msgid "{Data Type} tor-onion-service-configuration"
  31022. msgstr "{数据类型} build-machine"
  31023. #. type: deftp
  31024. #: guix-git/doc/guix.texi:20836
  31025. msgid "Data Type representing a Tor @dfn{Onion Service} configuration. See @url{https://community.torproject.org/onion-services/, the Tor project's documentation} for more information. Available @code{tor-onion-service-configuration} fields are:"
  31026. msgstr ""
  31027. #. type: item
  31028. #: guix-git/doc/guix.texi:20838 guix-git/doc/guix.texi:22514
  31029. #: guix-git/doc/guix.texi:34076 guix-git/doc/guix.texi:38884
  31030. #: guix-git/doc/guix.texi:38898 guix-git/doc/guix.texi:38996
  31031. #: guix-git/doc/guix.texi:43002 guix-git/doc/guix.texi:43598
  31032. #, fuzzy, no-wrap
  31033. msgid "@code{name} (type: string)"
  31034. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  31035. #. type: table
  31036. #: guix-git/doc/guix.texi:20843
  31037. msgid "Name for this Onion Service. This creates a @file{/var/lib/tor/hidden-services/@var{name}} directory, where the @file{hostname} file contains the @indicateurl{.onion} host name for this Onion Service."
  31038. msgstr ""
  31039. #. type: item
  31040. #: guix-git/doc/guix.texi:20844
  31041. #, fuzzy, no-wrap
  31042. msgid "@code{mapping} (type: alist)"
  31043. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  31044. #. type: table
  31045. #: guix-git/doc/guix.texi:20846
  31046. msgid "Association list of port to address mappings. The following example:"
  31047. msgstr ""
  31048. #. type: lisp
  31049. #: guix-git/doc/guix.texi:20849
  31050. #, no-wrap
  31051. msgid ""
  31052. "'((22 . \"127.0.0.1:22\")\n"
  31053. " (80 . \"127.0.0.1:8080\"))\n"
  31054. msgstr ""
  31055. #. type: table
  31056. #: guix-git/doc/guix.texi:20851
  31057. msgid "maps ports 22 and 80 of the Onion Service to the local ports 22 and 8080."
  31058. msgstr ""
  31059. #. type: Plain text
  31060. #: guix-git/doc/guix.texi:20856
  31061. msgid "The @code{(gnu services rsync)} module provides the following services:"
  31062. msgstr ""
  31063. #. type: Plain text
  31064. #: guix-git/doc/guix.texi:20860
  31065. 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."
  31066. msgstr ""
  31067. #. type: defvar
  31068. #: guix-git/doc/guix.texi:20861
  31069. #, fuzzy, no-wrap
  31070. msgid "rsync-service-type"
  31071. msgstr "邮件服务"
  31072. #. type: defvar
  31073. #: guix-git/doc/guix.texi:20865
  31074. 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:"
  31075. msgstr ""
  31076. #. type: lisp
  31077. #: guix-git/doc/guix.texi:20878
  31078. #, no-wrap
  31079. msgid ""
  31080. ";; Export two directories over rsync. By default rsync listens on\n"
  31081. ";; all the network interfaces.\n"
  31082. "(service rsync-service-type\n"
  31083. " (rsync-configuration\n"
  31084. " (modules (list (rsync-module\n"
  31085. " (name \"music\")\n"
  31086. " (file-name \"/srv/zik\")\n"
  31087. " (read-only? #f))\n"
  31088. " (rsync-module\n"
  31089. " (name \"movies\")\n"
  31090. " (file-name \"/home/charlie/movies\"))))))\n"
  31091. msgstr ""
  31092. #. type: defvar
  31093. #: guix-git/doc/guix.texi:20881
  31094. msgid "See below for details about @code{rsync-configuration}."
  31095. msgstr ""
  31096. #. type: deftp
  31097. #: guix-git/doc/guix.texi:20883
  31098. #, no-wrap
  31099. msgid "{Data Type} rsync-configuration"
  31100. msgstr ""
  31101. #. type: deftp
  31102. #: guix-git/doc/guix.texi:20885
  31103. msgid "Data type representing the configuration for @code{rsync-service}."
  31104. msgstr ""
  31105. #. type: item
  31106. #: guix-git/doc/guix.texi:20887
  31107. #, no-wrap
  31108. msgid "@code{package} (default: @var{rsync})"
  31109. msgstr ""
  31110. #. type: table
  31111. #: guix-git/doc/guix.texi:20889
  31112. msgid "@code{rsync} package to use."
  31113. msgstr ""
  31114. #. type: item
  31115. #: guix-git/doc/guix.texi:20890 guix-git/doc/guix.texi:35904
  31116. #, fuzzy, no-wrap
  31117. msgid "@code{address} (default: @code{#f})"
  31118. msgstr "@code{challenge}(默认值:@code{#f})"
  31119. #. type: table
  31120. #: guix-git/doc/guix.texi:20893
  31121. msgid "IP address on which @command{rsync} listens for incoming connections. If unspecified, it defaults to listening on all available addresses."
  31122. msgstr ""
  31123. #. type: item
  31124. #: guix-git/doc/guix.texi:20894
  31125. #, no-wrap
  31126. msgid "@code{port-number} (default: @code{873})"
  31127. msgstr ""
  31128. #. type: table
  31129. #: guix-git/doc/guix.texi:20898
  31130. 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."
  31131. msgstr ""
  31132. #. type: item
  31133. #: guix-git/doc/guix.texi:20899
  31134. #, no-wrap
  31135. msgid "@code{pid-file} (default: @code{\"/var/run/rsyncd/rsyncd.pid\"})"
  31136. msgstr ""
  31137. #. type: table
  31138. #: guix-git/doc/guix.texi:20901
  31139. msgid "Name of the file where @command{rsync} writes its PID."
  31140. msgstr ""
  31141. #. type: item
  31142. #: guix-git/doc/guix.texi:20902
  31143. #, no-wrap
  31144. msgid "@code{lock-file} (default: @code{\"/var/run/rsyncd/rsyncd.lock\"})"
  31145. msgstr ""
  31146. #. type: table
  31147. #: guix-git/doc/guix.texi:20904
  31148. msgid "Name of the file where @command{rsync} writes its lock file."
  31149. msgstr ""
  31150. #. type: item
  31151. #: guix-git/doc/guix.texi:20905
  31152. #, no-wrap
  31153. msgid "@code{log-file} (default: @code{\"/var/log/rsyncd.log\"})"
  31154. msgstr ""
  31155. #. type: table
  31156. #: guix-git/doc/guix.texi:20907
  31157. msgid "Name of the file where @command{rsync} writes its log file."
  31158. msgstr ""
  31159. #. type: item
  31160. #: guix-git/doc/guix.texi:20908 guix-git/doc/guix.texi:40698
  31161. #, fuzzy, no-wrap
  31162. msgid "@code{user} (default: @code{\"root\"})"
  31163. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  31164. #. type: table
  31165. #: guix-git/doc/guix.texi:20910
  31166. msgid "Owner of the @code{rsync} process."
  31167. msgstr ""
  31168. #. type: item
  31169. #: guix-git/doc/guix.texi:20911
  31170. #, fuzzy, no-wrap
  31171. msgid "@code{group} (default: @code{\"root\"})"
  31172. msgstr "@code{gnome}(默认值:@code{gnome})"
  31173. #. type: table
  31174. #: guix-git/doc/guix.texi:20913
  31175. msgid "Group of the @code{rsync} process."
  31176. msgstr ""
  31177. #. type: item
  31178. #: guix-git/doc/guix.texi:20914
  31179. #, fuzzy, no-wrap
  31180. msgid "@code{uid} (default: @code{\"rsyncd\"})"
  31181. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  31182. #. type: table
  31183. #: guix-git/doc/guix.texi:20917
  31184. 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}."
  31185. msgstr ""
  31186. #. type: item
  31187. #: guix-git/doc/guix.texi:20918
  31188. #, fuzzy, no-wrap
  31189. msgid "@code{gid} (default: @code{\"rsyncd\"})"
  31190. msgstr "@code{speed}(默认值:@code{1.0})"
  31191. #. type: table
  31192. #: guix-git/doc/guix.texi:20920 guix-git/doc/guix.texi:21444
  31193. msgid "Group name or group ID that will be used when accessing the module."
  31194. msgstr ""
  31195. #. type: item
  31196. #: guix-git/doc/guix.texi:20921 guix-git/doc/guix.texi:41502
  31197. #, no-wrap
  31198. msgid "@code{modules} (default: @code{%default-modules})"
  31199. msgstr ""
  31200. #. type: table
  31201. #: guix-git/doc/guix.texi:20924
  31202. msgid "List of ``modules''---i.e., directories exported over rsync. Each element must be a @code{rsync-module} record, as described below."
  31203. msgstr ""
  31204. #. type: deftp
  31205. #: guix-git/doc/guix.texi:20927
  31206. #, fuzzy, no-wrap
  31207. msgid "{Data Type} rsync-module"
  31208. msgstr "{数据类型} build-machine"
  31209. #. type: deftp
  31210. #: guix-git/doc/guix.texi:20930
  31211. 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:"
  31212. msgstr ""
  31213. #. type: table
  31214. #: guix-git/doc/guix.texi:20936
  31215. 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}."
  31216. msgstr ""
  31217. #. type: code{#1}
  31218. #: guix-git/doc/guix.texi:20937
  31219. #, fuzzy, no-wrap
  31220. msgid "file-name"
  31221. msgstr "通道"
  31222. #. type: table
  31223. #: guix-git/doc/guix.texi:20939
  31224. #, fuzzy
  31225. msgid "Name of the directory being exported."
  31226. msgstr "仓库的纯函数式接口。"
  31227. #. type: table
  31228. #: guix-git/doc/guix.texi:20943
  31229. msgid "Comment associated with the module. Client user interfaces may display it when they obtain the list of available modules."
  31230. msgstr ""
  31231. #. type: item
  31232. #: guix-git/doc/guix.texi:20944
  31233. #, fuzzy, no-wrap
  31234. msgid "@code{read-only?} (default: @code{#t})"
  31235. msgstr "@code{speed}(默认值:@code{1.0})"
  31236. #. type: table
  31237. #: guix-git/doc/guix.texi:20948
  31238. 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."
  31239. msgstr ""
  31240. #. type: item
  31241. #: guix-git/doc/guix.texi:20949
  31242. #, fuzzy, no-wrap
  31243. msgid "@code{chroot?} (default: @code{#t})"
  31244. msgstr "@code{port}(默认值:@code{22})"
  31245. #. type: table
  31246. #: guix-git/doc/guix.texi:20953
  31247. 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."
  31248. msgstr ""
  31249. #. type: item
  31250. #: guix-git/doc/guix.texi:20954
  31251. #, no-wrap
  31252. msgid "@code{timeout} (default: @code{300})"
  31253. msgstr ""
  31254. #. type: table
  31255. #: guix-git/doc/guix.texi:20957
  31256. msgid "Idle time in seconds after which the daemon closes a connection with the client."
  31257. msgstr ""
  31258. #. type: Plain text
  31259. #: guix-git/doc/guix.texi:20961
  31260. msgid "The @code{(gnu services syncthing)} module provides the following services:"
  31261. msgstr ""
  31262. #. type: cindex
  31263. #: guix-git/doc/guix.texi:20961
  31264. #, no-wrap
  31265. msgid "syncthing"
  31266. msgstr ""
  31267. #. type: Plain text
  31268. #: guix-git/doc/guix.texi:20966
  31269. 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."
  31270. msgstr ""
  31271. #. type: defvar
  31272. #: guix-git/doc/guix.texi:20967
  31273. #, fuzzy, no-wrap
  31274. msgid "syncthing-service-type"
  31275. msgstr "邮件服务"
  31276. #. type: defvar
  31277. #: guix-git/doc/guix.texi:20971
  31278. 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:"
  31279. msgstr ""
  31280. #. type: lisp
  31281. #: guix-git/doc/guix.texi:20975
  31282. #, no-wrap
  31283. msgid ""
  31284. "(service syncthing-service-type\n"
  31285. " (syncthing-configuration (user \"alice\")))\n"
  31286. msgstr ""
  31287. #. type: defvar
  31288. #: guix-git/doc/guix.texi:20978
  31289. msgid "See below for details about @code{syncthing-configuration}."
  31290. msgstr ""
  31291. #. type: deftp
  31292. #: guix-git/doc/guix.texi:20979
  31293. #, fuzzy, no-wrap
  31294. msgid "{Data Type} syncthing-configuration"
  31295. msgstr "{数据类型} build-machine"
  31296. #. type: deftp
  31297. #: guix-git/doc/guix.texi:20981
  31298. #, fuzzy
  31299. msgid "Data type representing the configuration for @code{syncthing-service-type}."
  31300. msgstr "管理操作系统配置。"
  31301. #. type: item
  31302. #: guix-git/doc/guix.texi:20983
  31303. #, fuzzy, no-wrap
  31304. msgid "@code{syncthing} (default: @var{syncthing})"
  31305. msgstr "@code{xfce}(默认值:@code{xfce})"
  31306. #. type: table
  31307. #: guix-git/doc/guix.texi:20985
  31308. #, fuzzy
  31309. msgid "@code{syncthing} package to use."
  31310. msgstr "软件包数据类型。"
  31311. #. type: item
  31312. #: guix-git/doc/guix.texi:20986
  31313. #, fuzzy, no-wrap
  31314. msgid "@code{arguments} (default: @var{'()})"
  31315. msgstr "@code{features} (@code{'()})"
  31316. #. type: table
  31317. #: guix-git/doc/guix.texi:20988
  31318. msgid "List of command-line arguments passing to @code{syncthing} binary."
  31319. msgstr ""
  31320. #. type: item
  31321. #: guix-git/doc/guix.texi:20989
  31322. #, fuzzy, no-wrap
  31323. msgid "@code{logflags} (default: @var{0})"
  31324. msgstr "@code{challenge}(默认值:@code{#f})"
  31325. #. type: table
  31326. #: guix-git/doc/guix.texi:20992
  31327. msgid "Sum of logging flags, see @uref{https://docs.syncthing.net/users/syncthing.html#cmdoption-logflags, Syncthing documentation logflags}."
  31328. msgstr ""
  31329. #. type: item
  31330. #: guix-git/doc/guix.texi:20993
  31331. #, fuzzy, no-wrap
  31332. msgid "@code{user} (default: @var{#f})"
  31333. msgstr "@code{challenge}(默认值:@code{#f})"
  31334. #. type: table
  31335. #: guix-git/doc/guix.texi:20996
  31336. msgid "The user as which the Syncthing service is to be run. This assumes that the specified user exists."
  31337. msgstr ""
  31338. #. type: item
  31339. #: guix-git/doc/guix.texi:20997
  31340. #, fuzzy, no-wrap
  31341. msgid "@code{group} (default: @var{\"users\"})"
  31342. msgstr "@code{gnome}(默认值:@code{gnome})"
  31343. #. type: table
  31344. #: guix-git/doc/guix.texi:21000
  31345. msgid "The group as which the Syncthing service is to be run. This assumes that the specified group exists."
  31346. msgstr ""
  31347. #. type: item
  31348. #: guix-git/doc/guix.texi:21001
  31349. #, fuzzy, no-wrap
  31350. msgid "@code{home} (default: @var{#f})"
  31351. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  31352. #. type: table
  31353. #: guix-git/doc/guix.texi:21004
  31354. msgid "Common configuration and data directory. The default configuration directory is @file{$HOME} of the specified Syncthing @code{user}."
  31355. msgstr ""
  31356. #. type: Plain text
  31357. #: guix-git/doc/guix.texi:21010
  31358. msgid "Furthermore, @code{(gnu services ssh)} provides the following services."
  31359. msgstr ""
  31360. #. type: cindex
  31361. #: guix-git/doc/guix.texi:21010 guix-git/doc/guix.texi:21079
  31362. #: guix-git/doc/guix.texi:40842
  31363. #, no-wrap
  31364. msgid "SSH"
  31365. msgstr ""
  31366. #. type: cindex
  31367. #: guix-git/doc/guix.texi:21011 guix-git/doc/guix.texi:21080
  31368. #: guix-git/doc/guix.texi:40843
  31369. #, no-wrap
  31370. msgid "SSH server"
  31371. msgstr ""
  31372. #. type: defvar
  31373. #: guix-git/doc/guix.texi:21013
  31374. #, fuzzy, no-wrap
  31375. msgid "lsh-service-type"
  31376. msgstr "邮件服务"
  31377. #. type: defvar
  31378. #: guix-git/doc/guix.texi:21017
  31379. msgid "Type of the service that runs the GNU@tie{}lsh secure shell (SSH) daemon, @command{lshd}. The value for this service is a @code{<lsh-configuration>} object."
  31380. msgstr ""
  31381. #. type: deftp
  31382. #: guix-git/doc/guix.texi:21019
  31383. #, fuzzy, no-wrap
  31384. msgid "{Data Type} lsh-configuration"
  31385. msgstr "系统配置"
  31386. #. type: deftp
  31387. #: guix-git/doc/guix.texi:21021
  31388. #, fuzzy
  31389. msgid "Data type representing the configuration of @command{lshd}."
  31390. msgstr "管理操作系统配置。"
  31391. #. type: item
  31392. #: guix-git/doc/guix.texi:21023
  31393. #, fuzzy, no-wrap
  31394. msgid "@code{lsh} (default: @code{lsh}) (type: file-like)"
  31395. msgstr "@code{xfce}(默认值:@code{xfce})"
  31396. #. type: table
  31397. #: guix-git/doc/guix.texi:21025
  31398. #, fuzzy
  31399. msgid "The package object of the GNU@tie{}lsh secure shell (SSH) daemon."
  31400. msgstr "软件包数据类型。"
  31401. #. type: item
  31402. #: guix-git/doc/guix.texi:21026
  31403. #, fuzzy, no-wrap
  31404. msgid "@code{daemonic?} (default: @code{#t}) (type: boolean)"
  31405. msgstr "@code{challenge}(默认值:@code{#f})"
  31406. #. type: table
  31407. #: guix-git/doc/guix.texi:21028
  31408. msgid "Whether to detach from the controlling terminal."
  31409. msgstr ""
  31410. #. type: item
  31411. #: guix-git/doc/guix.texi:21029
  31412. #, fuzzy, no-wrap
  31413. msgid "@code{host-key} (default: @code{\"/etc/lsh/host-key\"}) (type: string)"
  31414. msgstr "@code{xfce}(默认值:@code{xfce})"
  31415. #. type: table
  31416. #: guix-git/doc/guix.texi:21032
  31417. msgid "File containing the @dfn{host key}. This file must be readable by root only."
  31418. msgstr ""
  31419. #. type: item
  31420. #: guix-git/doc/guix.texi:21033
  31421. #, fuzzy, no-wrap
  31422. msgid "@code{interfaces} (default: @code{'()}) (type: list)"
  31423. msgstr "@code{features} (@code{'()})"
  31424. #. type: table
  31425. #: guix-git/doc/guix.texi:21037
  31426. msgid "List of host names or addresses that @command{lshd} will listen on. If empty, @command{lshd} listens for connections on all the network interfaces."
  31427. msgstr ""
  31428. #. type: item
  31429. #: guix-git/doc/guix.texi:21038
  31430. #, fuzzy, no-wrap
  31431. msgid "@code{port-number} (default: @code{22}) (type: integer)"
  31432. msgstr "@code{challenge}(默认值:@code{#f})"
  31433. #. type: table
  31434. #: guix-git/doc/guix.texi:21040
  31435. msgid "Port to listen on."
  31436. msgstr ""
  31437. #. type: item
  31438. #: guix-git/doc/guix.texi:21041 guix-git/doc/guix.texi:22274
  31439. #, fuzzy, no-wrap
  31440. msgid "@code{allow-empty-passwords?} (default: @code{#f}) (type: boolean)"
  31441. msgstr "@code{port}(默认值:@code{22})"
  31442. #. type: table
  31443. #: guix-git/doc/guix.texi:21043
  31444. msgid "Whether to accept log-ins with empty passwords."
  31445. msgstr ""
  31446. #. type: item
  31447. #: guix-git/doc/guix.texi:21044
  31448. #, fuzzy, no-wrap
  31449. msgid "@code{root-login?} (default: @code{#f}) (type: boolean)"
  31450. msgstr "@code{challenge}(默认值:@code{#f})"
  31451. #. type: table
  31452. #: guix-git/doc/guix.texi:21046
  31453. msgid "Whether to accept log-ins as root."
  31454. msgstr ""
  31455. #. type: item
  31456. #: guix-git/doc/guix.texi:21047
  31457. #, fuzzy, no-wrap
  31458. msgid "@code{syslog-output?} (default: @code{#t}) (type: boolean)"
  31459. msgstr "@code{challenge}(默认值:@code{#f})"
  31460. #. type: table
  31461. #: guix-git/doc/guix.texi:21050
  31462. msgid "Whether to log @command{lshd} standard output to syslogd. This will make the service depend on the existence of a syslogd service."
  31463. msgstr ""
  31464. #. type: item
  31465. #: guix-git/doc/guix.texi:21051
  31466. #, fuzzy, no-wrap
  31467. msgid "@code{pid-file?} (default: @code{#f}) (type: boolean)"
  31468. msgstr "@code{challenge}(默认值:@code{#f})"
  31469. #. type: table
  31470. #: guix-git/doc/guix.texi:21054
  31471. msgid "When @code{#t}, @command{lshd} writes its PID to the file specified in @var{pid-file}."
  31472. msgstr ""
  31473. #. type: item
  31474. #: guix-git/doc/guix.texi:21055
  31475. #, fuzzy, no-wrap
  31476. msgid "@code{pid-file} (default: @code{\"/var/run/lshd.pid\"}) (type: string)"
  31477. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  31478. #. type: table
  31479. #: guix-git/doc/guix.texi:21057
  31480. msgid "File that @command{lshd} will write its PID to."
  31481. msgstr ""
  31482. #. type: item
  31483. #: guix-git/doc/guix.texi:21058
  31484. #, fuzzy, no-wrap
  31485. msgid "@code{x11-forwarding?} (default: @code{#t}) (type: boolean)"
  31486. msgstr "@code{challenge}(默认值:@code{#f})"
  31487. #. type: table
  31488. #: guix-git/doc/guix.texi:21060
  31489. msgid "Whether to enable X11 forwarding."
  31490. msgstr ""
  31491. #. type: item
  31492. #: guix-git/doc/guix.texi:21061
  31493. #, fuzzy, no-wrap
  31494. msgid "@code{tcp/ip-forwarding?} (default: @code{#t}) (type: boolean)"
  31495. msgstr "@code{challenge}(默认值:@code{#f})"
  31496. #. type: table
  31497. #: guix-git/doc/guix.texi:21063
  31498. msgid "Whether to enable TCP/IP forwarding."
  31499. msgstr ""
  31500. #. type: item
  31501. #: guix-git/doc/guix.texi:21064
  31502. #, fuzzy, no-wrap
  31503. msgid "@code{password-authentication?} (default: @code{#t}) (type: boolean)"
  31504. msgstr "@code{challenge}(默认值:@code{#f})"
  31505. #. type: table
  31506. #: guix-git/doc/guix.texi:21066
  31507. msgid "Whether to accept log-ins using password authentication."
  31508. msgstr ""
  31509. #. type: item
  31510. #: guix-git/doc/guix.texi:21067
  31511. #, fuzzy, no-wrap
  31512. msgid "@code{public-key-authentication?} (default: @code{#t}) (type: boolean)"
  31513. msgstr "@code{challenge}(默认值:@code{#f})"
  31514. #. type: table
  31515. #: guix-git/doc/guix.texi:21069
  31516. msgid "Whether to accept log-ins using public key authentication."
  31517. msgstr ""
  31518. #. type: item
  31519. #: guix-git/doc/guix.texi:21070
  31520. #, fuzzy, no-wrap
  31521. msgid "@code{initialize?} (default: @code{#t}) (type: boolean)"
  31522. msgstr "@code{speed}(默认值:@code{1.0})"
  31523. #. type: table
  31524. #: guix-git/doc/guix.texi:21075
  31525. msgid "When @code{#f}, 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})."
  31526. msgstr ""
  31527. #. type: defvar
  31528. #: guix-git/doc/guix.texi:21081
  31529. #, fuzzy, no-wrap
  31530. msgid "openssh-service-type"
  31531. msgstr "邮件服务"
  31532. #. type: defvar
  31533. #: guix-git/doc/guix.texi:21085
  31534. 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:"
  31535. msgstr ""
  31536. #. type: lisp
  31537. #: guix-git/doc/guix.texi:21094
  31538. #, no-wrap
  31539. msgid ""
  31540. "(service openssh-service-type\n"
  31541. " (openssh-configuration\n"
  31542. " (x11-forwarding? #t)\n"
  31543. " (permit-root-login 'prohibit-password)\n"
  31544. " (authorized-keys\n"
  31545. " `((\"alice\" ,(local-file \"alice.pub\"))\n"
  31546. " (\"bob\" ,(local-file \"bob.pub\"))))))\n"
  31547. msgstr ""
  31548. #. type: defvar
  31549. #: guix-git/doc/guix.texi:21097
  31550. msgid "See below for details about @code{openssh-configuration}."
  31551. msgstr ""
  31552. #. type: defvar
  31553. #: guix-git/doc/guix.texi:21100
  31554. msgid "This service can be extended with extra authorized keys, as in this example:"
  31555. msgstr ""
  31556. #. type: lisp
  31557. #: guix-git/doc/guix.texi:21105
  31558. #, no-wrap
  31559. msgid ""
  31560. "(service-extension openssh-service-type\n"
  31561. " (const `((\"charlie\"\n"
  31562. " ,(local-file \"charlie.pub\")))))\n"
  31563. msgstr ""
  31564. #. type: deftp
  31565. #: guix-git/doc/guix.texi:21108
  31566. #, no-wrap
  31567. msgid "{Data Type} openssh-configuration"
  31568. msgstr ""
  31569. #. type: deftp
  31570. #: guix-git/doc/guix.texi:21110
  31571. msgid "This is the configuration record for OpenSSH's @command{sshd}."
  31572. msgstr ""
  31573. #. type: item
  31574. #: guix-git/doc/guix.texi:21112
  31575. #, fuzzy, no-wrap
  31576. msgid "@code{openssh} (default @var{openssh})"
  31577. msgstr "@code{gnome}(默认值:@code{gnome})"
  31578. #. type: table
  31579. #: guix-git/doc/guix.texi:21114 guix-git/doc/guix.texi:43111
  31580. #, fuzzy
  31581. msgid "The OpenSSH package to use."
  31582. msgstr "软件包数据类型。"
  31583. #. type: item
  31584. #: guix-git/doc/guix.texi:21115
  31585. #, no-wrap
  31586. msgid "@code{pid-file} (default: @code{\"/var/run/sshd.pid\"})"
  31587. msgstr ""
  31588. #. type: table
  31589. #: guix-git/doc/guix.texi:21117
  31590. msgid "Name of the file where @command{sshd} writes its PID."
  31591. msgstr ""
  31592. #. type: item
  31593. #: guix-git/doc/guix.texi:21118
  31594. #, no-wrap
  31595. msgid "@code{port-number} (default: @code{22})"
  31596. msgstr ""
  31597. #. type: table
  31598. #: guix-git/doc/guix.texi:21120
  31599. msgid "TCP port on which @command{sshd} listens for incoming connections."
  31600. msgstr ""
  31601. #. type: item
  31602. #: guix-git/doc/guix.texi:21121
  31603. #, fuzzy, no-wrap
  31604. msgid "@code{max-connections} (default: @code{200})"
  31605. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  31606. #. type: table
  31607. #: guix-git/doc/guix.texi:21126
  31608. msgid "Hard limit on the maximum number of simultaneous client connections, enforced by the inetd-style Shepherd service (@pxref{Service De- and Constructors, @code{make-inetd-constructor},, shepherd, The GNU Shepherd Manual})."
  31609. msgstr ""
  31610. #. type: item
  31611. #: guix-git/doc/guix.texi:21127
  31612. #, no-wrap
  31613. msgid "@code{permit-root-login} (default: @code{#f})"
  31614. msgstr ""
  31615. #. type: table
  31616. #: guix-git/doc/guix.texi:21132
  31617. 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."
  31618. msgstr ""
  31619. #. type: item
  31620. #: guix-git/doc/guix.texi:21133 guix-git/doc/guix.texi:21303
  31621. #, no-wrap
  31622. msgid "@code{allow-empty-passwords?} (default: @code{#f})"
  31623. msgstr ""
  31624. #. type: table
  31625. #: guix-git/doc/guix.texi:21136
  31626. msgid "When true, users with empty passwords may log in. When false, they may not."
  31627. msgstr ""
  31628. #. type: item
  31629. #: guix-git/doc/guix.texi:21137 guix-git/doc/guix.texi:21306
  31630. #, no-wrap
  31631. msgid "@code{password-authentication?} (default: @code{#t})"
  31632. msgstr ""
  31633. #. type: table
  31634. #: guix-git/doc/guix.texi:21140
  31635. msgid "When true, users may log in with their password. When false, they have other authentication methods."
  31636. msgstr ""
  31637. #. type: item
  31638. #: guix-git/doc/guix.texi:21141
  31639. #, no-wrap
  31640. msgid "@code{public-key-authentication?} (default: @code{#t})"
  31641. msgstr ""
  31642. #. type: table
  31643. #: guix-git/doc/guix.texi:21144
  31644. msgid "When true, users may log in using public key authentication. When false, users have to use other authentication method."
  31645. msgstr ""
  31646. #. type: table
  31647. #: guix-git/doc/guix.texi:21147
  31648. msgid "Authorized public keys are stored in @file{~/.ssh/authorized_keys}. This is used only by protocol version 2."
  31649. msgstr ""
  31650. #. type: item
  31651. #: guix-git/doc/guix.texi:21148
  31652. #, no-wrap
  31653. msgid "@code{x11-forwarding?} (default: @code{#f})"
  31654. msgstr ""
  31655. #. type: table
  31656. #: guix-git/doc/guix.texi:21152
  31657. msgid "When true, forwarding of X11 graphical client connections is enabled---in other words, @command{ssh} options @option{-X} and @option{-Y} will work."
  31658. msgstr ""
  31659. #. type: item
  31660. #: guix-git/doc/guix.texi:21153
  31661. #, no-wrap
  31662. msgid "@code{allow-agent-forwarding?} (default: @code{#t})"
  31663. msgstr ""
  31664. #. type: table
  31665. #: guix-git/doc/guix.texi:21155
  31666. msgid "Whether to allow agent forwarding."
  31667. msgstr ""
  31668. #. type: item
  31669. #: guix-git/doc/guix.texi:21156
  31670. #, no-wrap
  31671. msgid "@code{allow-tcp-forwarding?} (default: @code{#t})"
  31672. msgstr ""
  31673. #. type: table
  31674. #: guix-git/doc/guix.texi:21158
  31675. msgid "Whether to allow TCP forwarding."
  31676. msgstr ""
  31677. #. type: item
  31678. #: guix-git/doc/guix.texi:21159
  31679. #, no-wrap
  31680. msgid "@code{gateway-ports?} (default: @code{#f})"
  31681. msgstr ""
  31682. #. type: table
  31683. #: guix-git/doc/guix.texi:21161
  31684. msgid "Whether to allow gateway ports."
  31685. msgstr ""
  31686. #. type: item
  31687. #: guix-git/doc/guix.texi:21162
  31688. #, no-wrap
  31689. msgid "@code{challenge-response-authentication?} (default: @code{#f})"
  31690. msgstr ""
  31691. #. type: table
  31692. #: guix-git/doc/guix.texi:21165
  31693. msgid "Specifies whether challenge response authentication is allowed (e.g.@: via PAM)."
  31694. msgstr ""
  31695. #. type: item
  31696. #: guix-git/doc/guix.texi:21166
  31697. #, no-wrap
  31698. msgid "@code{use-pam?} (default: @code{#t})"
  31699. msgstr ""
  31700. #. type: table
  31701. #: guix-git/doc/guix.texi:21172
  31702. 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."
  31703. msgstr ""
  31704. #. type: table
  31705. #: guix-git/doc/guix.texi:21177
  31706. 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?}."
  31707. msgstr ""
  31708. #. type: item
  31709. #: guix-git/doc/guix.texi:21178
  31710. #, no-wrap
  31711. msgid "@code{print-last-log?} (default: @code{#t})"
  31712. msgstr ""
  31713. #. type: table
  31714. #: guix-git/doc/guix.texi:21181
  31715. msgid "Specifies whether @command{sshd} should print the date and time of the last user login when a user logs in interactively."
  31716. msgstr ""
  31717. #. type: item
  31718. #: guix-git/doc/guix.texi:21182
  31719. #, no-wrap
  31720. msgid "@code{subsystems} (default: @code{'((\"sftp\" \"internal-sftp\"))})"
  31721. msgstr ""
  31722. #. type: table
  31723. #: guix-git/doc/guix.texi:21184
  31724. msgid "Configures external subsystems (e.g.@: file transfer daemon)."
  31725. msgstr ""
  31726. #. type: table
  31727. #: guix-git/doc/guix.texi:21188
  31728. 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."
  31729. msgstr ""
  31730. #. type: table
  31731. #: guix-git/doc/guix.texi:21191
  31732. msgid "The command @command{internal-sftp} implements an in-process SFTP server. Alternatively, one can specify the @command{sftp-server} command:"
  31733. msgstr ""
  31734. #. type: lisp
  31735. #: guix-git/doc/guix.texi:21196
  31736. #, no-wrap
  31737. msgid ""
  31738. "(service openssh-service-type\n"
  31739. " (openssh-configuration\n"
  31740. " (subsystems\n"
  31741. " `((\"sftp\" ,(file-append openssh \"/libexec/sftp-server\"))))))\n"
  31742. msgstr ""
  31743. #. type: item
  31744. #: guix-git/doc/guix.texi:21198
  31745. #, no-wrap
  31746. msgid "@code{accepted-environment} (default: @code{'()})"
  31747. msgstr ""
  31748. #. type: table
  31749. #: guix-git/doc/guix.texi:21200
  31750. msgid "List of strings describing which environment variables may be exported."
  31751. msgstr ""
  31752. #. type: table
  31753. #: guix-git/doc/guix.texi:21203
  31754. msgid "Each string gets on its own line. See the @code{AcceptEnv} option in @code{man sshd_config}."
  31755. msgstr ""
  31756. #. type: table
  31757. #: guix-git/doc/guix.texi:21208
  31758. 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."
  31759. msgstr ""
  31760. #. type: lisp
  31761. #: guix-git/doc/guix.texi:21213
  31762. #, no-wrap
  31763. msgid ""
  31764. "(service openssh-service-type\n"
  31765. " (openssh-configuration\n"
  31766. " (accepted-environment '(\"COLORTERM\"))))\n"
  31767. msgstr ""
  31768. #. type: cindex
  31769. #: guix-git/doc/guix.texi:21216
  31770. #, no-wrap
  31771. msgid "authorized keys, SSH"
  31772. msgstr ""
  31773. #. type: cindex
  31774. #: guix-git/doc/guix.texi:21217
  31775. #, no-wrap
  31776. msgid "SSH authorized keys"
  31777. msgstr ""
  31778. #. type: table
  31779. #: guix-git/doc/guix.texi:21221
  31780. 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:"
  31781. msgstr ""
  31782. #. type: lisp
  31783. #: guix-git/doc/guix.texi:21228
  31784. #, no-wrap
  31785. msgid ""
  31786. "(openssh-configuration\n"
  31787. " (authorized-keys\n"
  31788. " `((\"rekado\" ,(local-file \"rekado.pub\"))\n"
  31789. " (\"chris\" ,(local-file \"chris.pub\"))\n"
  31790. " (\"root\" ,(local-file \"rekado.pub\") ,(local-file \"chris.pub\")))))\n"
  31791. msgstr ""
  31792. #. type: table
  31793. #: guix-git/doc/guix.texi:21233
  31794. msgid "registers the specified public keys for user accounts @code{rekado}, @code{chris}, and @code{root}."
  31795. msgstr ""
  31796. #. type: table
  31797. #: guix-git/doc/guix.texi:21236
  31798. msgid "Additional authorized keys can be specified @i{via} @code{service-extension}."
  31799. msgstr ""
  31800. #. type: table
  31801. #: guix-git/doc/guix.texi:21239
  31802. msgid "Note that this does @emph{not} interfere with the use of @file{~/.ssh/authorized_keys}."
  31803. msgstr ""
  31804. #. type: item
  31805. #: guix-git/doc/guix.texi:21240
  31806. #, fuzzy, no-wrap
  31807. msgid "@code{generate-host-keys?} (default: @code{#t})"
  31808. msgstr "@code{mate}(默认值:@code{mate})"
  31809. #. type: table
  31810. #: guix-git/doc/guix.texi:21243
  31811. msgid "Whether to generate host key pairs with @command{ssh-keygen -A} under @file{/etc/ssh} if there are none."
  31812. msgstr ""
  31813. #. type: table
  31814. #: guix-git/doc/guix.texi:21249
  31815. 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."
  31816. msgstr ""
  31817. #. type: item
  31818. #: guix-git/doc/guix.texi:21250 guix-git/doc/guix.texi:21656
  31819. #, no-wrap
  31820. msgid "@code{log-level} (default: @code{'info})"
  31821. msgstr ""
  31822. #. type: table
  31823. #: guix-git/doc/guix.texi:21254
  31824. 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."
  31825. msgstr ""
  31826. #. type: item
  31827. #: guix-git/doc/guix.texi:21255 guix-git/doc/guix.texi:24907
  31828. #: guix-git/doc/guix.texi:30417
  31829. #, no-wrap
  31830. msgid "@code{extra-content} (default: @code{\"\"})"
  31831. msgstr ""
  31832. #. type: table
  31833. #: guix-git/doc/guix.texi:21260
  31834. 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:"
  31835. msgstr ""
  31836. #. type: lisp
  31837. #: guix-git/doc/guix.texi:21266
  31838. #, no-wrap
  31839. msgid ""
  31840. "(openssh-configuration\n"
  31841. " (extra-content \"\\\n"
  31842. "Match Address 192.168.0.1\n"
  31843. " PermitRootLogin yes\"))\n"
  31844. msgstr ""
  31845. #. type: defvar
  31846. #: guix-git/doc/guix.texi:21271
  31847. #, fuzzy, no-wrap
  31848. msgid "dropbear-service-type"
  31849. msgstr "邮件服务"
  31850. #. type: defvar
  31851. #: guix-git/doc/guix.texi:21275
  31852. msgid "Type of the service that runs the @url{https://matt.ucc.asn.au/dropbear/dropbear.html, Dropbear SSH daemon}, whose value is a @code{<dropbear-configuration>} object."
  31853. msgstr ""
  31854. #. type: defvar
  31855. #: guix-git/doc/guix.texi:21277
  31856. msgid "For example, to specify a Dropbear service listening on port 1234:"
  31857. msgstr ""
  31858. #. type: lisp
  31859. #: guix-git/doc/guix.texi:21281
  31860. #, no-wrap
  31861. msgid ""
  31862. "(service dropbear-service-type (dropbear-configuration\n"
  31863. " (port-number 1234)))\n"
  31864. msgstr ""
  31865. "(service dropbear-service-type (dropbear-configuration\n"
  31866. " (port-number 1234)))\n"
  31867. #. type: deftp
  31868. #: guix-git/doc/guix.texi:21284
  31869. #, no-wrap
  31870. msgid "{Data Type} dropbear-configuration"
  31871. msgstr ""
  31872. #. type: deftp
  31873. #: guix-git/doc/guix.texi:21286
  31874. msgid "This data type represents the configuration of a Dropbear SSH daemon."
  31875. msgstr ""
  31876. #. type: item
  31877. #: guix-git/doc/guix.texi:21288
  31878. #, no-wrap
  31879. msgid "@code{dropbear} (default: @var{dropbear})"
  31880. msgstr ""
  31881. #. type: table
  31882. #: guix-git/doc/guix.texi:21290
  31883. msgid "The Dropbear package to use."
  31884. msgstr ""
  31885. #. type: item
  31886. #: guix-git/doc/guix.texi:21291
  31887. #, no-wrap
  31888. msgid "@code{port-number} (default: 22)"
  31889. msgstr ""
  31890. #. type: table
  31891. #: guix-git/doc/guix.texi:21293
  31892. msgid "The TCP port where the daemon waits for incoming connections."
  31893. msgstr ""
  31894. #. type: item
  31895. #: guix-git/doc/guix.texi:21294
  31896. #, no-wrap
  31897. msgid "@code{syslog-output?} (default: @code{#t})"
  31898. msgstr ""
  31899. #. type: table
  31900. #: guix-git/doc/guix.texi:21296
  31901. msgid "Whether to enable syslog output."
  31902. msgstr ""
  31903. #. type: item
  31904. #: guix-git/doc/guix.texi:21297
  31905. #, no-wrap
  31906. msgid "@code{pid-file} (default: @code{\"/var/run/dropbear.pid\"})"
  31907. msgstr ""
  31908. #. type: table
  31909. #: guix-git/doc/guix.texi:21299
  31910. msgid "File name of the daemon's PID file."
  31911. msgstr ""
  31912. #. type: item
  31913. #: guix-git/doc/guix.texi:21300
  31914. #, no-wrap
  31915. msgid "@code{root-login?} (default: @code{#f})"
  31916. msgstr ""
  31917. #. type: table
  31918. #: guix-git/doc/guix.texi:21302
  31919. msgid "Whether to allow @code{root} logins."
  31920. msgstr ""
  31921. #. type: table
  31922. #: guix-git/doc/guix.texi:21305 guix-git/doc/guix.texi:22522
  31923. msgid "Whether to allow empty passwords."
  31924. msgstr ""
  31925. #. type: table
  31926. #: guix-git/doc/guix.texi:21308
  31927. msgid "Whether to enable password-based authentication."
  31928. msgstr ""
  31929. #. type: cindex
  31930. #: guix-git/doc/guix.texi:21311
  31931. #, no-wrap
  31932. msgid "AutoSSH"
  31933. msgstr ""
  31934. #. type: defvar
  31935. #: guix-git/doc/guix.texi:21312
  31936. #, fuzzy, no-wrap
  31937. msgid "autossh-service-type"
  31938. msgstr "邮件服务"
  31939. #. type: defvar
  31940. #: guix-git/doc/guix.texi:21320
  31941. 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."
  31942. msgstr ""
  31943. #. type: defvar
  31944. #: guix-git/doc/guix.texi:21324
  31945. 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."
  31946. msgstr ""
  31947. #. type: defvar
  31948. #: guix-git/doc/guix.texi:21329
  31949. 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:"
  31950. msgstr ""
  31951. #. type: lisp
  31952. #: guix-git/doc/guix.texi:21335
  31953. #, no-wrap
  31954. msgid ""
  31955. "(service autossh-service-type\n"
  31956. " (autossh-configuration\n"
  31957. " (user \"pino\")\n"
  31958. " (ssh-options (list \"-T\" \"-N\" \"-L\" \"8081:localhost:8081\" \"remote.net\"))))\n"
  31959. msgstr ""
  31960. #. type: deftp
  31961. #: guix-git/doc/guix.texi:21338
  31962. #, no-wrap
  31963. msgid "{Data Type} autossh-configuration"
  31964. msgstr ""
  31965. #. type: deftp
  31966. #: guix-git/doc/guix.texi:21340
  31967. msgid "This data type represents the configuration of an AutoSSH service."
  31968. msgstr ""
  31969. #. type: item
  31970. #: guix-git/doc/guix.texi:21343
  31971. #, fuzzy, no-wrap
  31972. msgid "@code{user} (default @code{\"autossh\"})"
  31973. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  31974. #. type: table
  31975. #: guix-git/doc/guix.texi:21346
  31976. msgid "The user as which the AutoSSH service is to be run. This assumes that the specified user exists."
  31977. msgstr ""
  31978. #. type: item
  31979. #: guix-git/doc/guix.texi:21347
  31980. #, fuzzy, no-wrap
  31981. msgid "@code{poll} (default @code{600})"
  31982. msgstr "@code{port}(默认值:@code{22})"
  31983. #. type: table
  31984. #: guix-git/doc/guix.texi:21349
  31985. msgid "Specifies the connection poll time in seconds."
  31986. msgstr ""
  31987. #. type: item
  31988. #: guix-git/doc/guix.texi:21350
  31989. #, fuzzy, no-wrap
  31990. msgid "@code{first-poll} (default @code{#f})"
  31991. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  31992. #. type: table
  31993. #: guix-git/doc/guix.texi:21356
  31994. 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}."
  31995. msgstr ""
  31996. #. type: item
  31997. #: guix-git/doc/guix.texi:21357
  31998. #, fuzzy, no-wrap
  31999. msgid "@code{gate-time} (default @code{30})"
  32000. msgstr "@code{mate}(默认值:@code{mate})"
  32001. #. type: table
  32002. #: guix-git/doc/guix.texi:21360
  32003. msgid "Specifies how many seconds an SSH connection must be active before it is considered successful."
  32004. msgstr ""
  32005. #. type: item
  32006. #: guix-git/doc/guix.texi:21361
  32007. #, fuzzy, no-wrap
  32008. msgid "@code{log-level} (default @code{1})"
  32009. msgstr "@code{speed}(默认值:@code{1.0})"
  32010. #. type: table
  32011. #: guix-git/doc/guix.texi:21364
  32012. msgid "The log level, corresponding to the levels used by syslog---so @code{0} is the most silent while @code{7} is the chattiest."
  32013. msgstr ""
  32014. #. type: item
  32015. #: guix-git/doc/guix.texi:21365
  32016. #, fuzzy, no-wrap
  32017. msgid "@code{max-start} (default @code{#f})"
  32018. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  32019. #. type: table
  32020. #: guix-git/doc/guix.texi:21368
  32021. 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."
  32022. msgstr ""
  32023. #. type: item
  32024. #: guix-git/doc/guix.texi:21369
  32025. #, fuzzy, no-wrap
  32026. msgid "@code{message} (default @code{\"\"})"
  32027. msgstr "@code{display}(默认值:@code{\":0\"})"
  32028. #. type: table
  32029. #: guix-git/doc/guix.texi:21371
  32030. msgid "The message to append to the echo message sent when testing connections."
  32031. msgstr ""
  32032. #. type: item
  32033. #: guix-git/doc/guix.texi:21372
  32034. #, fuzzy, no-wrap
  32035. msgid "@code{port} (default @code{\"0\"})"
  32036. msgstr "@code{port}(默认值:@code{22})"
  32037. #. type: table
  32038. #: guix-git/doc/guix.texi:21382
  32039. 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."
  32040. msgstr ""
  32041. #. type: item
  32042. #: guix-git/doc/guix.texi:21383
  32043. #, fuzzy, no-wrap
  32044. msgid "@code{ssh-options} (default @code{'()})"
  32045. msgstr "@code{includes}(默认值:@code{'()})"
  32046. #. type: table
  32047. #: guix-git/doc/guix.texi:21387
  32048. 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."
  32049. msgstr ""
  32050. #. type: cindex
  32051. #: guix-git/doc/guix.texi:21391
  32052. #, no-wrap
  32053. msgid "WebSSH"
  32054. msgstr ""
  32055. #. type: defvar
  32056. #: guix-git/doc/guix.texi:21392
  32057. #, fuzzy, no-wrap
  32058. msgid "webssh-service-type"
  32059. msgstr "邮件服务"
  32060. #. type: defvar
  32061. #: guix-git/doc/guix.texi:21398
  32062. 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."
  32063. msgstr ""
  32064. #. type: defvar
  32065. #: guix-git/doc/guix.texi:21404
  32066. 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:"
  32067. msgstr ""
  32068. #. type: lisp
  32069. #: guix-git/doc/guix.texi:21412
  32070. #, no-wrap
  32071. msgid ""
  32072. "(service webssh-service-type\n"
  32073. " (webssh-configuration (address \"127.0.0.1\")\n"
  32074. " (port 8888)\n"
  32075. " (policy 'reject)\n"
  32076. " (known-hosts '(\"localhost ecdsa-sha2-nistp256 AAAA…\"\n"
  32077. " \"127.0.0.1 ecdsa-sha2-nistp256 AAAA…\"))))\n"
  32078. "\n"
  32079. msgstr ""
  32080. #. type: lisp
  32081. #: guix-git/doc/guix.texi:21428
  32082. #, no-wrap
  32083. msgid ""
  32084. "(service nginx-service-type\n"
  32085. " (nginx-configuration\n"
  32086. " (server-blocks\n"
  32087. " (list\n"
  32088. " (nginx-server-configuration\n"
  32089. " (inherit %webssh-configuration-nginx)\n"
  32090. " (server-name '(\"webssh.example.com\"))\n"
  32091. " (listen '(\"443 ssl\"))\n"
  32092. " (ssl-certificate (letsencrypt-certificate \"webssh.example.com\"))\n"
  32093. " (ssl-certificate-key (letsencrypt-key \"webssh.example.com\"))\n"
  32094. " (locations\n"
  32095. " (cons (nginx-location-configuration\n"
  32096. " (uri \"/.well-known\")\n"
  32097. " (body '(\"root /var/www;\")))\n"
  32098. " (nginx-server-configuration-locations %webssh-configuration-nginx))))))))\n"
  32099. msgstr ""
  32100. #. type: deftp
  32101. #: guix-git/doc/guix.texi:21431
  32102. #, no-wrap
  32103. msgid "{Data Type} webssh-configuration"
  32104. msgstr ""
  32105. #. type: deftp
  32106. #: guix-git/doc/guix.texi:21433
  32107. msgid "Data type representing the configuration for @code{webssh-service}."
  32108. msgstr ""
  32109. #. type: item
  32110. #: guix-git/doc/guix.texi:21435
  32111. #, fuzzy, no-wrap
  32112. msgid "@code{package} (default: @var{webssh})"
  32113. msgstr "@code{xfce}(默认值:@code{xfce})"
  32114. #. type: table
  32115. #: guix-git/doc/guix.texi:21437
  32116. msgid "@code{webssh} package to use."
  32117. msgstr ""
  32118. #. type: item
  32119. #: guix-git/doc/guix.texi:21438
  32120. #, fuzzy, no-wrap
  32121. msgid "@code{user-name} (default: @var{\"webssh\"})"
  32122. msgstr "@code{gnome}(默认值:@code{gnome})"
  32123. #. type: table
  32124. #: guix-git/doc/guix.texi:21441
  32125. msgid "User name or user ID that file transfers to and from that module should take place."
  32126. msgstr ""
  32127. #. type: item
  32128. #: guix-git/doc/guix.texi:21442
  32129. #, fuzzy, no-wrap
  32130. msgid "@code{group-name} (default: @var{\"webssh\"})"
  32131. msgstr "@code{gnome}(默认值:@code{gnome})"
  32132. #. type: item
  32133. #: guix-git/doc/guix.texi:21445
  32134. #, fuzzy, no-wrap
  32135. msgid "@code{address} (default: @var{#f})"
  32136. msgstr "@code{challenge}(默认值:@code{#f})"
  32137. #. type: table
  32138. #: guix-git/doc/guix.texi:21447
  32139. msgid "IP address on which @command{webssh} listens for incoming connections."
  32140. msgstr ""
  32141. #. type: item
  32142. #: guix-git/doc/guix.texi:21448
  32143. #, fuzzy, no-wrap
  32144. msgid "@code{port} (default: @var{8888})"
  32145. msgstr "@code{port}(默认值:@code{22})"
  32146. #. type: table
  32147. #: guix-git/doc/guix.texi:21450
  32148. msgid "TCP port on which @command{webssh} listens for incoming connections."
  32149. msgstr ""
  32150. #. type: item
  32151. #: guix-git/doc/guix.texi:21451
  32152. #, fuzzy, no-wrap
  32153. msgid "@code{policy} (default: @var{#f})"
  32154. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  32155. #. type: table
  32156. #: guix-git/doc/guix.texi:21453
  32157. msgid "Connection policy. @var{reject} policy requires to specify @var{known-hosts}."
  32158. msgstr ""
  32159. #. type: item
  32160. #: guix-git/doc/guix.texi:21454
  32161. #, fuzzy, no-wrap
  32162. msgid "@code{known-hosts} (default: @var{'()})"
  32163. msgstr "@code{features} (@code{'()})"
  32164. #. type: table
  32165. #: guix-git/doc/guix.texi:21456
  32166. msgid "List of hosts which allowed for SSH connection from @command{webssh}."
  32167. msgstr ""
  32168. #. type: item
  32169. #: guix-git/doc/guix.texi:21457
  32170. #, fuzzy, no-wrap
  32171. msgid "@code{log-file} (default: @file{\"/var/log/webssh.log\"})"
  32172. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  32173. #. type: table
  32174. #: guix-git/doc/guix.texi:21459
  32175. msgid "Name of the file where @command{webssh} writes its log file."
  32176. msgstr ""
  32177. #. type: item
  32178. #: guix-git/doc/guix.texi:21460
  32179. #, fuzzy, no-wrap
  32180. msgid "@code{log-level} (default: @var{#f})"
  32181. msgstr "@code{challenge}(默认值:@code{#f})"
  32182. #. type: table
  32183. #: guix-git/doc/guix.texi:21462
  32184. msgid "Logging level."
  32185. msgstr ""
  32186. #. type: defvar
  32187. #: guix-git/doc/guix.texi:21466
  32188. #, fuzzy, no-wrap
  32189. msgid "block-facebook-hosts-service-type"
  32190. msgstr "邮件服务"
  32191. #. type: defvar
  32192. #: guix-git/doc/guix.texi:21473
  32193. msgid "This service type adds a list of known Facebook hosts to the @file{/etc/hosts} file. (@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}."
  32194. msgstr ""
  32195. #. type: defvar
  32196. #: guix-git/doc/guix.texi:21476
  32197. msgid "This mechanism can prevent programs running locally, such as Web browsers, from accessing Facebook."
  32198. msgstr ""
  32199. #. type: Plain text
  32200. #: guix-git/doc/guix.texi:21479
  32201. msgid "The @code{(gnu services avahi)} provides the following definition."
  32202. msgstr ""
  32203. #. type: defvar
  32204. #: guix-git/doc/guix.texi:21480
  32205. #, fuzzy, no-wrap
  32206. msgid "avahi-service-type"
  32207. msgstr "邮件服务"
  32208. #. type: defvar
  32209. #: guix-git/doc/guix.texi:21485
  32210. 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."
  32211. msgstr ""
  32212. #. type: defvar
  32213. #: guix-git/doc/guix.texi:21490
  32214. 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."
  32215. msgstr ""
  32216. #. type: defvar
  32217. #: guix-git/doc/guix.texi:21493
  32218. msgid "Additionally, add the @var{avahi} package to the system profile so that commands such as @command{avahi-browse} are directly usable."
  32219. msgstr ""
  32220. #. type: deftp
  32221. #: guix-git/doc/guix.texi:21495
  32222. #, no-wrap
  32223. msgid "{Data Type} avahi-configuration"
  32224. msgstr ""
  32225. #. type: deftp
  32226. #: guix-git/doc/guix.texi:21497
  32227. msgid "Data type representation the configuration for Avahi."
  32228. msgstr ""
  32229. #. type: item
  32230. #: guix-git/doc/guix.texi:21500 guix-git/doc/guix.texi:33055
  32231. #, no-wrap
  32232. msgid "@code{host-name} (default: @code{#f})"
  32233. msgstr ""
  32234. #. type: table
  32235. #: guix-git/doc/guix.texi:21503
  32236. 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."
  32237. msgstr ""
  32238. #. type: item
  32239. #: guix-git/doc/guix.texi:21504 guix-git/doc/guix.texi:33250
  32240. #, no-wrap
  32241. msgid "@code{publish?} (default: @code{#t})"
  32242. msgstr ""
  32243. #. type: table
  32244. #: guix-git/doc/guix.texi:21507
  32245. msgid "When true, allow host names and services to be published (broadcast) over the network."
  32246. msgstr ""
  32247. #. type: item
  32248. #: guix-git/doc/guix.texi:21508
  32249. #, no-wrap
  32250. msgid "@code{publish-workstation?} (default: @code{#t})"
  32251. msgstr ""
  32252. #. type: table
  32253. #: guix-git/doc/guix.texi:21512
  32254. 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:"
  32255. msgstr ""
  32256. #. type: example
  32257. #: guix-git/doc/guix.texi:21515
  32258. #, no-wrap
  32259. msgid "avahi-browse _workstation._tcp\n"
  32260. msgstr ""
  32261. #. type: item
  32262. #: guix-git/doc/guix.texi:21517
  32263. #, no-wrap
  32264. msgid "@code{wide-area?} (default: @code{#f})"
  32265. msgstr ""
  32266. #. type: table
  32267. #: guix-git/doc/guix.texi:21519
  32268. msgid "When true, DNS-SD over unicast DNS is enabled."
  32269. msgstr ""
  32270. #. type: item
  32271. #: guix-git/doc/guix.texi:21520
  32272. #, no-wrap
  32273. msgid "@code{ipv4?} (default: @code{#t})"
  32274. msgstr ""
  32275. #. type: itemx
  32276. #: guix-git/doc/guix.texi:21521
  32277. #, no-wrap
  32278. msgid "@code{ipv6?} (default: @code{#t})"
  32279. msgstr ""
  32280. #. type: table
  32281. #: guix-git/doc/guix.texi:21523
  32282. msgid "These fields determine whether to use IPv4/IPv6 sockets."
  32283. msgstr ""
  32284. #. type: item
  32285. #: guix-git/doc/guix.texi:21524
  32286. #, no-wrap
  32287. msgid "@code{domains-to-browse} (default: @code{'()})"
  32288. msgstr ""
  32289. #. type: table
  32290. #: guix-git/doc/guix.texi:21526
  32291. msgid "This is a list of domains to browse."
  32292. msgstr ""
  32293. #. type: defvar
  32294. #: guix-git/doc/guix.texi:21529
  32295. #, fuzzy, no-wrap
  32296. msgid "openvswitch-service-type"
  32297. msgstr "邮件服务"
  32298. #. type: defvar
  32299. #: guix-git/doc/guix.texi:21533
  32300. msgid "This is the type of the @uref{https://www.openvswitch.org, Open vSwitch} service, whose value should be an @code{openvswitch-configuration} object."
  32301. msgstr ""
  32302. #. type: deftp
  32303. #: guix-git/doc/guix.texi:21535
  32304. #, no-wrap
  32305. msgid "{Data Type} openvswitch-configuration"
  32306. msgstr ""
  32307. #. type: deftp
  32308. #: guix-git/doc/guix.texi:21539
  32309. msgid "Data type representing the configuration of Open vSwitch, a multilayer virtual switch which is designed to enable massive network automation through programmatic extension."
  32310. msgstr ""
  32311. #. type: item
  32312. #: guix-git/doc/guix.texi:21541
  32313. #, no-wrap
  32314. msgid "@code{package} (default: @var{openvswitch})"
  32315. msgstr ""
  32316. #. type: table
  32317. #: guix-git/doc/guix.texi:21543
  32318. msgid "Package object of the Open vSwitch."
  32319. msgstr ""
  32320. #. type: defvar
  32321. #: guix-git/doc/guix.texi:21547
  32322. #, fuzzy, no-wrap
  32323. msgid "pagekite-service-type"
  32324. msgstr "邮件服务"
  32325. #. type: defvar
  32326. #: guix-git/doc/guix.texi:21552
  32327. 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."
  32328. msgstr ""
  32329. #. type: defvar
  32330. #: guix-git/doc/guix.texi:21554
  32331. msgid "Here's an example exposing the local HTTP and SSH daemons:"
  32332. msgstr ""
  32333. #. type: lisp
  32334. #: guix-git/doc/guix.texi:21561
  32335. #, no-wrap
  32336. msgid ""
  32337. "(service pagekite-service-type\n"
  32338. " (pagekite-configuration\n"
  32339. " (kites '(\"http:@@kitename:localhost:80:@@kitesecret\"\n"
  32340. " \"raw/22:@@kitename:localhost:22:@@kitesecret\"))\n"
  32341. " (extra-file \"/etc/pagekite.rc\")))\n"
  32342. msgstr ""
  32343. #. type: deftp
  32344. #: guix-git/doc/guix.texi:21564
  32345. #, fuzzy, no-wrap
  32346. msgid "{Data Type} pagekite-configuration"
  32347. msgstr "管理操作系统配置。"
  32348. #. type: deftp
  32349. #: guix-git/doc/guix.texi:21566
  32350. #, fuzzy
  32351. msgid "Data type representing the configuration of PageKite."
  32352. msgstr "管理操作系统配置。"
  32353. #. type: item
  32354. #: guix-git/doc/guix.texi:21568
  32355. #, fuzzy, no-wrap
  32356. msgid "@code{package} (default: @var{pagekite})"
  32357. msgstr "@code{mate}(默认值:@code{mate})"
  32358. #. type: table
  32359. #: guix-git/doc/guix.texi:21570
  32360. msgid "Package object of PageKite."
  32361. msgstr ""
  32362. #. type: item
  32363. #: guix-git/doc/guix.texi:21571
  32364. #, fuzzy, no-wrap
  32365. msgid "@code{kitename} (default: @code{#f})"
  32366. msgstr "@code{challenge}(默认值:@code{#f})"
  32367. #. type: table
  32368. #: guix-git/doc/guix.texi:21573
  32369. msgid "PageKite name for authenticating to the frontend server."
  32370. msgstr ""
  32371. #. type: item
  32372. #: guix-git/doc/guix.texi:21574
  32373. #, fuzzy, no-wrap
  32374. msgid "@code{kitesecret} (default: @code{#f})"
  32375. msgstr "@code{speed}(默认值:@code{1.0})"
  32376. #. type: table
  32377. #: guix-git/doc/guix.texi:21577
  32378. msgid "Shared secret for authenticating to the frontend server. You should probably put this inside @code{extra-file} instead."
  32379. msgstr ""
  32380. #. type: item
  32381. #: guix-git/doc/guix.texi:21578
  32382. #, fuzzy, no-wrap
  32383. msgid "@code{frontend} (default: @code{#f})"
  32384. msgstr "@code{journal-content}(默认值:@code{#f})"
  32385. #. type: table
  32386. #: guix-git/doc/guix.texi:21581
  32387. msgid "Connect to the named PageKite frontend server instead of the @uref{https://pagekite.net,,pagekite.net} service."
  32388. msgstr ""
  32389. #. type: item
  32390. #: guix-git/doc/guix.texi:21582
  32391. #, no-wrap
  32392. msgid "@code{kites} (default: @code{'(\"http:@@kitename:localhost:80:@@kitesecret\")})"
  32393. msgstr ""
  32394. #. type: table
  32395. #: guix-git/doc/guix.texi:21585
  32396. msgid "List of service kites to use. Exposes HTTP on port 80 by default. The format is @code{proto:kitename:host:port:secret}."
  32397. msgstr ""
  32398. #. type: item
  32399. #: guix-git/doc/guix.texi:21586
  32400. #, fuzzy, no-wrap
  32401. msgid "@code{extra-file} (default: @code{#f})"
  32402. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  32403. #. type: table
  32404. #: guix-git/doc/guix.texi:21589
  32405. 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."
  32406. msgstr ""
  32407. #. type: defvar
  32408. #: guix-git/doc/guix.texi:21593
  32409. #, fuzzy, no-wrap
  32410. msgid "yggdrasil-service-type"
  32411. msgstr "邮件服务"
  32412. #. type: defvar
  32413. #: guix-git/doc/guix.texi:21597
  32414. 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."
  32415. msgstr ""
  32416. #. type: quotation
  32417. #: guix-git/doc/guix.texi:21604
  32418. 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}"
  32419. msgstr ""
  32420. #. type: defvar
  32421. #: guix-git/doc/guix.texi:21608
  32422. msgid "Pass it a value of @code{yggdrasil-configuration} to connect it to public peers and/or local peers."
  32423. msgstr ""
  32424. #. type: defvar
  32425. #: guix-git/doc/guix.texi:21612
  32426. 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})."
  32427. msgstr ""
  32428. #. type: lisp
  32429. #: guix-git/doc/guix.texi:21624
  32430. #, no-wrap
  32431. msgid ""
  32432. ";; part of the operating-system declaration\n"
  32433. "(service yggdrasil-service-type\n"
  32434. " (yggdrasil-configuration\n"
  32435. " (autoconf? #f) ;; use only the public peers\n"
  32436. " (json-config\n"
  32437. " ;; choose one from\n"
  32438. " ;; https://github.com/yggdrasil-network/public-peers\n"
  32439. " '((peers . #(\"tcp://1.2.3.4:1337\"))))\n"
  32440. " ;; /etc/yggdrasil-private.conf is the default value for config-file\n"
  32441. " ))\n"
  32442. msgstr ""
  32443. #. type: example
  32444. #: guix-git/doc/guix.texi:21631
  32445. #, no-wrap
  32446. msgid ""
  32447. "# sample content for /etc/yggdrasil-private.conf\n"
  32448. "@{\n"
  32449. " # Your public key. Your peers may ask you for this to put\n"
  32450. " # into their AllowedPublicKeys configuration.\n"
  32451. " PublicKey: 64277...\n"
  32452. "\n"
  32453. msgstr ""
  32454. #. type: example
  32455. #: guix-git/doc/guix.texi:21635
  32456. #, no-wrap
  32457. msgid ""
  32458. " # Your private key. DO NOT share this with anyone!\n"
  32459. " PrivateKey: 5c750...\n"
  32460. "@}\n"
  32461. msgstr ""
  32462. #. type: deftp
  32463. #: guix-git/doc/guix.texi:21638
  32464. #, fuzzy, no-wrap
  32465. msgid "{Data Type} yggdrasil-configuration"
  32466. msgstr "{数据类型} build-machine"
  32467. #. type: deftp
  32468. #: guix-git/doc/guix.texi:21640
  32469. #, fuzzy
  32470. msgid "Data type representing the configuration of Yggdrasil."
  32471. msgstr "管理操作系统配置。"
  32472. #. type: item
  32473. #: guix-git/doc/guix.texi:21642
  32474. #, fuzzy, no-wrap
  32475. msgid "@code{package} (default: @code{yggdrasil})"
  32476. msgstr "@code{mate}(默认值:@code{mate})"
  32477. #. type: table
  32478. #: guix-git/doc/guix.texi:21644
  32479. msgid "Package object of Yggdrasil."
  32480. msgstr ""
  32481. #. type: item
  32482. #: guix-git/doc/guix.texi:21645
  32483. #, fuzzy, no-wrap
  32484. msgid "@code{json-config} (default: @code{'()})"
  32485. msgstr "@code{includes}(默认值:@code{'()})"
  32486. #. type: table
  32487. #: guix-git/doc/guix.texi:21651
  32488. 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."
  32489. msgstr ""
  32490. #. type: item
  32491. #: guix-git/doc/guix.texi:21652
  32492. #, fuzzy, no-wrap
  32493. msgid "@code{autoconf?} (default: @code{#f})"
  32494. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  32495. #. type: table
  32496. #: guix-git/doc/guix.texi:21655
  32497. msgid "Whether to use automatic mode. Enabling it makes Yggdrasil use adynamic IP and peer with IPv6 neighbors."
  32498. msgstr ""
  32499. #. type: table
  32500. #: guix-git/doc/guix.texi:21658
  32501. msgid "How much detail to include in logs. Use @code{'debug} for more detail."
  32502. msgstr ""
  32503. #. type: item
  32504. #: guix-git/doc/guix.texi:21659
  32505. #, fuzzy, no-wrap
  32506. msgid "@code{log-to} (default: @code{'stdout})"
  32507. msgstr "@code{port}(默认值:@code{22})"
  32508. #. type: table
  32509. #: guix-git/doc/guix.texi:21663
  32510. 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."
  32511. msgstr ""
  32512. #. type: item
  32513. #: guix-git/doc/guix.texi:21664
  32514. #, fuzzy, no-wrap
  32515. msgid "@code{config-file} (default: @code{\"/etc/yggdrasil-private.conf\"})"
  32516. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  32517. #. type: table
  32518. #: guix-git/doc/guix.texi:21671
  32519. 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:"
  32520. msgstr ""
  32521. #. type: code{#1}
  32522. #: guix-git/doc/guix.texi:21673
  32523. #, no-wrap
  32524. msgid "EncryptionPublicKey"
  32525. msgstr ""
  32526. #. type: code{#1}
  32527. #: guix-git/doc/guix.texi:21674
  32528. #, no-wrap
  32529. msgid "EncryptionPrivateKey"
  32530. msgstr ""
  32531. #. type: code{#1}
  32532. #: guix-git/doc/guix.texi:21675
  32533. #, no-wrap
  32534. msgid "SigningPublicKey"
  32535. msgstr ""
  32536. #. type: code{#1}
  32537. #: guix-git/doc/guix.texi:21676
  32538. #, no-wrap
  32539. msgid "SigningPrivateKey"
  32540. msgstr ""
  32541. #. type: cindex
  32542. #: guix-git/doc/guix.texi:21681
  32543. #, no-wrap
  32544. msgid "IPFS"
  32545. msgstr ""
  32546. #. type: defvar
  32547. #: guix-git/doc/guix.texi:21682
  32548. #, fuzzy, no-wrap
  32549. msgid "ipfs-service-type"
  32550. msgstr "邮件服务"
  32551. #. type: defvar
  32552. #: guix-git/doc/guix.texi:21686
  32553. 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."
  32554. msgstr ""
  32555. #. type: defvar
  32556. #: guix-git/doc/guix.texi:21688
  32557. msgid "Here's an example configuration, using some non-standard ports:"
  32558. msgstr ""
  32559. #. type: lisp
  32560. #: guix-git/doc/guix.texi:21694
  32561. #, no-wrap
  32562. msgid ""
  32563. "(service ipfs-service-type\n"
  32564. " (ipfs-configuration\n"
  32565. " (gateway \"/ip4/127.0.0.1/tcp/8880\")\n"
  32566. " (api \"/ip4/127.0.0.1/tcp/8881\")))\n"
  32567. msgstr ""
  32568. #. type: deftp
  32569. #: guix-git/doc/guix.texi:21697
  32570. #, fuzzy, no-wrap
  32571. msgid "{Data Type} ipfs-configuration"
  32572. msgstr "系统配置"
  32573. #. type: deftp
  32574. #: guix-git/doc/guix.texi:21699
  32575. #, fuzzy
  32576. msgid "Data type representing the configuration of IPFS."
  32577. msgstr "管理操作系统配置。"
  32578. #. type: item
  32579. #: guix-git/doc/guix.texi:21701
  32580. #, fuzzy, no-wrap
  32581. msgid "@code{package} (default: @code{go-ipfs})"
  32582. msgstr "@code{mate}(默认值:@code{mate})"
  32583. #. type: table
  32584. #: guix-git/doc/guix.texi:21703
  32585. msgid "Package object of IPFS."
  32586. msgstr ""
  32587. #. type: item
  32588. #: guix-git/doc/guix.texi:21704
  32589. #, fuzzy, no-wrap
  32590. msgid "@code{gateway} (default: @code{\"/ip4/127.0.0.1/tcp/8082\"})"
  32591. msgstr "@code{speed}(默认值:@code{1.0})"
  32592. #. type: table
  32593. #: guix-git/doc/guix.texi:21706
  32594. msgid "Address of the gateway, in ‘multiaddress’ format."
  32595. msgstr ""
  32596. #. type: item
  32597. #: guix-git/doc/guix.texi:21707
  32598. #, fuzzy, no-wrap
  32599. msgid "@code{api} (default: @code{\"/ip4/127.0.0.1/tcp/5001\"})"
  32600. msgstr "@code{speed}(默认值:@code{1.0})"
  32601. #. type: table
  32602. #: guix-git/doc/guix.texi:21709
  32603. msgid "Address of the API endpoint, in ‘multiaddress’ format."
  32604. msgstr ""
  32605. #. type: cindex
  32606. #: guix-git/doc/guix.texi:21712
  32607. #, no-wrap
  32608. msgid "keepalived"
  32609. msgstr ""
  32610. #. type: defvar
  32611. #: guix-git/doc/guix.texi:21713
  32612. #, fuzzy, no-wrap
  32613. msgid "keepalived-service-type"
  32614. msgstr "邮件服务"
  32615. #. type: defvar
  32616. #: guix-git/doc/guix.texi:21718
  32617. 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:"
  32618. msgstr ""
  32619. #. type: lisp
  32620. #: guix-git/doc/guix.texi:21723
  32621. #, no-wrap
  32622. msgid ""
  32623. "(service keepalived-service-type\n"
  32624. " (keepalived-configuration\n"
  32625. " (config-file (local-file \"keepalived-master.conf\"))))\n"
  32626. msgstr ""
  32627. "(service keepalived-service-type\n"
  32628. " (keepalived-configuration\n"
  32629. " (config-file (local-file \"keepalived-master.conf\"))))\n"
  32630. #. type: defvar
  32631. #: guix-git/doc/guix.texi:21726
  32632. msgid "where @file{keepalived-master.conf}:"
  32633. msgstr ""
  32634. #. type: example
  32635. #: guix-git/doc/guix.texi:21738
  32636. #, no-wrap
  32637. msgid ""
  32638. "vrrp_instance my-group @{\n"
  32639. " state MASTER\n"
  32640. " interface enp9s0\n"
  32641. " virtual_router_id 100\n"
  32642. " priority 100\n"
  32643. " unicast_peer @{ 10.0.0.2 @}\n"
  32644. " virtual_ipaddress @{\n"
  32645. " 10.0.0.4/24\n"
  32646. " @}\n"
  32647. "@}\n"
  32648. msgstr ""
  32649. #. type: defvar
  32650. #: guix-git/doc/guix.texi:21741
  32651. msgid "and for backup machine:"
  32652. msgstr ""
  32653. #. type: lisp
  32654. #: guix-git/doc/guix.texi:21746
  32655. #, no-wrap
  32656. msgid ""
  32657. "(service keepalived-service-type\n"
  32658. " (keepalived-configuration\n"
  32659. " (config-file (local-file \"keepalived-backup.conf\"))))\n"
  32660. msgstr ""
  32661. "(service keepalived-service-type\n"
  32662. " (keepalived-configuration\n"
  32663. " (config-file (local-file \"keepalived-backup.conf\"))))\n"
  32664. #. type: defvar
  32665. #: guix-git/doc/guix.texi:21749
  32666. msgid "where @file{keepalived-backup.conf}:"
  32667. msgstr ""
  32668. #. type: example
  32669. #: guix-git/doc/guix.texi:21761
  32670. #, no-wrap
  32671. msgid ""
  32672. "vrrp_instance my-group @{\n"
  32673. " state BACKUP\n"
  32674. " interface enp9s0\n"
  32675. " virtual_router_id 100\n"
  32676. " priority 99\n"
  32677. " unicast_peer @{ 10.0.0.3 @}\n"
  32678. " virtual_ipaddress @{\n"
  32679. " 10.0.0.4/24\n"
  32680. " @}\n"
  32681. "@}\n"
  32682. msgstr ""
  32683. #. type: cindex
  32684. #: guix-git/doc/guix.texi:21767
  32685. #, no-wrap
  32686. msgid "unattended upgrades"
  32687. msgstr ""
  32688. #. type: cindex
  32689. #: guix-git/doc/guix.texi:21768
  32690. #, no-wrap
  32691. msgid "upgrades, unattended"
  32692. msgstr ""
  32693. #. type: Plain text
  32694. #: guix-git/doc/guix.texi:21773
  32695. 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:"
  32696. msgstr ""
  32697. #. type: itemize
  32698. #: guix-git/doc/guix.texi:21778
  32699. msgid "upgrades are transactional (either the upgrade succeeds or it fails, but you cannot end up with an ``in-between'' system state);"
  32700. msgstr ""
  32701. #. type: itemize
  32702. #: guix-git/doc/guix.texi:21782
  32703. 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;"
  32704. msgstr ""
  32705. #. type: itemize
  32706. #: guix-git/doc/guix.texi:21785
  32707. msgid "channel code is authenticated so you know you can only run genuine code (@pxref{Channels});"
  32708. msgstr ""
  32709. #. type: itemize
  32710. #: guix-git/doc/guix.texi:21788
  32711. msgid "@command{guix system reconfigure} prevents downgrades, which makes it immune to @dfn{downgrade attacks}."
  32712. msgstr ""
  32713. #. type: Plain text
  32714. #: guix-git/doc/guix.texi:21793
  32715. 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:"
  32716. msgstr ""
  32717. #. type: lisp
  32718. #: guix-git/doc/guix.texi:21796
  32719. #, no-wrap
  32720. msgid "(service unattended-upgrade-service-type)\n"
  32721. msgstr ""
  32722. #. type: Plain text
  32723. #: guix-git/doc/guix.texi:21803
  32724. 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."
  32725. msgstr ""
  32726. #. type: Plain text
  32727. #: guix-git/doc/guix.texi:21809
  32728. 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."
  32729. msgstr ""
  32730. #. type: Plain text
  32731. #: guix-git/doc/guix.texi:21813
  32732. 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)."
  32733. msgstr ""
  32734. #. type: defvar
  32735. #: guix-git/doc/guix.texi:21814
  32736. #, fuzzy, no-wrap
  32737. msgid "unattended-upgrade-service-type"
  32738. msgstr "邮件服务"
  32739. #. type: defvar
  32740. #: guix-git/doc/guix.texi:21818
  32741. 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."
  32742. msgstr ""
  32743. #. type: defvar
  32744. #: guix-git/doc/guix.texi:21821
  32745. msgid "Its value must be a @code{unattended-upgrade-configuration} record (see below)."
  32746. msgstr ""
  32747. #. type: deftp
  32748. #: guix-git/doc/guix.texi:21823
  32749. #, no-wrap
  32750. msgid "{Data Type} unattended-upgrade-configuration"
  32751. msgstr ""
  32752. #. type: deftp
  32753. #: guix-git/doc/guix.texi:21826
  32754. msgid "This data type represents the configuration of the unattended upgrade service. The following fields are available:"
  32755. msgstr ""
  32756. #. type: item
  32757. #: guix-git/doc/guix.texi:21828
  32758. #, fuzzy, no-wrap
  32759. msgid "@code{schedule} (default: @code{\"30 01 * * 0\"})"
  32760. msgstr "@code{speed}(默认值:@code{1.0})"
  32761. #. type: table
  32762. #: guix-git/doc/guix.texi:21832
  32763. 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})."
  32764. msgstr ""
  32765. #. type: item
  32766. #: guix-git/doc/guix.texi:21833
  32767. #, fuzzy, no-wrap
  32768. msgid "@code{channels} (default: @code{#~%default-channels})"
  32769. msgstr "@code{challenge}(默认值:@code{#f})"
  32770. #. type: table
  32771. #: guix-git/doc/guix.texi:21837
  32772. 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."
  32773. msgstr ""
  32774. #. type: item
  32775. #: guix-git/doc/guix.texi:21838
  32776. #, no-wrap
  32777. msgid "@code{operating-system-file} (default: @code{\"/run/current-system/configuration.scm\"})"
  32778. msgstr ""
  32779. #. type: table
  32780. #: guix-git/doc/guix.texi:21841
  32781. msgid "This field specifies the operating system configuration file to use. The default is to reuse the config file of the current configuration."
  32782. msgstr ""
  32783. #. type: table
  32784. #: guix-git/doc/guix.texi:21847
  32785. 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:"
  32786. msgstr ""
  32787. #. type: lisp
  32788. #: guix-git/doc/guix.texi:21853
  32789. #, no-wrap
  32790. msgid ""
  32791. "(unattended-upgrade-configuration\n"
  32792. " (operating-system-file\n"
  32793. " (file-append (local-file \".\" \"config-dir\" #:recursive? #t)\n"
  32794. " \"/config.scm\")))\n"
  32795. msgstr ""
  32796. #. type: table
  32797. #: guix-git/doc/guix.texi:21860
  32798. 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}."
  32799. msgstr ""
  32800. #. type: item
  32801. #: guix-git/doc/guix.texi:21861
  32802. #, fuzzy, no-wrap
  32803. msgid "@code{operating-system-expression} (default: @code{#f})"
  32804. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  32805. #. type: table
  32806. #: guix-git/doc/guix.texi:21865
  32807. msgid "This field specifies an expression that evaluates to the operating system to use for the upgrade. If no value is provided the @code{operating-system-file} field value is used."
  32808. msgstr ""
  32809. #. type: lisp
  32810. #: guix-git/doc/guix.texi:21870
  32811. #, no-wrap
  32812. msgid ""
  32813. "(unattended-upgrade-configuration\n"
  32814. " (operating-system-expression\n"
  32815. " #~(@@ (guix system install) installation-os)))\n"
  32816. msgstr ""
  32817. #. type: item
  32818. #: guix-git/doc/guix.texi:21872
  32819. #, fuzzy, no-wrap
  32820. msgid "@code{services-to-restart} (default: @code{'(mcron)})"
  32821. msgstr "@code{features} (@code{'()})"
  32822. #. type: table
  32823. #: guix-git/doc/guix.texi:21875
  32824. msgid "This field specifies the Shepherd services to restart when the upgrade completes."
  32825. msgstr ""
  32826. #. type: table
  32827. #: guix-git/doc/guix.texi:21882
  32828. 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."
  32829. msgstr ""
  32830. #. type: table
  32831. #: guix-git/doc/guix.texi:21886
  32832. 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}."
  32833. msgstr ""
  32834. #. type: table
  32835. #: guix-git/doc/guix.texi:21889
  32836. 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."
  32837. msgstr ""
  32838. #. type: item
  32839. #: guix-git/doc/guix.texi:21890
  32840. #, fuzzy, no-wrap
  32841. msgid "@code{system-expiration} (default: @code{(* 3 30 24 3600)})"
  32842. msgstr "@code{port}(默认值:@code{22})"
  32843. #. type: table
  32844. #: guix-git/doc/guix.texi:21894
  32845. 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."
  32846. msgstr ""
  32847. #. type: quotation
  32848. #: guix-git/doc/guix.texi:21899
  32849. 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."
  32850. msgstr ""
  32851. #. type: item
  32852. #: guix-git/doc/guix.texi:21901
  32853. #, fuzzy, no-wrap
  32854. msgid "@code{maximum-duration} (default: @code{3600})"
  32855. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  32856. #. type: table
  32857. #: guix-git/doc/guix.texi:21904
  32858. msgid "Maximum duration in seconds for the upgrade; past that time, the upgrade aborts."
  32859. msgstr ""
  32860. #. type: table
  32861. #: guix-git/doc/guix.texi:21907
  32862. msgid "This is primarily useful to ensure the upgrade does not end up rebuilding or re-downloading ``the world''."
  32863. msgstr ""
  32864. #. type: item
  32865. #: guix-git/doc/guix.texi:21908
  32866. #, fuzzy, no-wrap
  32867. msgid "@code{log-file} (default: @code{\"/var/log/unattended-upgrade.log\"})"
  32868. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  32869. #. type: table
  32870. #: guix-git/doc/guix.texi:21910
  32871. msgid "File where unattended upgrades are logged."
  32872. msgstr ""
  32873. #. type: cindex
  32874. #: guix-git/doc/guix.texi:21916
  32875. #, no-wrap
  32876. msgid "X11"
  32877. msgstr ""
  32878. #. type: cindex
  32879. #: guix-git/doc/guix.texi:21917
  32880. #, no-wrap
  32881. msgid "X Window System"
  32882. msgstr ""
  32883. #. type: cindex
  32884. #: guix-git/doc/guix.texi:21918 guix-git/doc/guix.texi:22114
  32885. #, no-wrap
  32886. msgid "login manager"
  32887. msgstr ""
  32888. #. type: Plain text
  32889. #: guix-git/doc/guix.texi:21923
  32890. 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)."
  32891. msgstr ""
  32892. #. type: cindex
  32893. #: guix-git/doc/guix.texi:21924
  32894. #, no-wrap
  32895. msgid "GDM"
  32896. msgstr ""
  32897. #. type: cindex
  32898. #: guix-git/doc/guix.texi:21925
  32899. #, no-wrap
  32900. msgid "GNOME, login manager"
  32901. msgstr ""
  32902. #. type: anchor{#1}
  32903. #: guix-git/doc/guix.texi:21930
  32904. msgid "gdm"
  32905. msgstr ""
  32906. #. type: Plain text
  32907. #: guix-git/doc/guix.texi:21930
  32908. 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."
  32909. msgstr ""
  32910. #. type: cindex
  32911. #: guix-git/doc/guix.texi:21931
  32912. #, no-wrap
  32913. msgid "window manager"
  32914. msgstr ""
  32915. #. type: Plain text
  32916. #: guix-git/doc/guix.texi:21936
  32917. 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})."
  32918. msgstr ""
  32919. #. type: anchor{#1}
  32920. #: guix-git/doc/guix.texi:21942
  32921. msgid "wayland-gdm"
  32922. msgstr ""
  32923. #. type: Plain text
  32924. #: guix-git/doc/guix.texi:21942
  32925. 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}."
  32926. msgstr ""
  32927. #. type: defvar
  32928. #: guix-git/doc/guix.texi:21943
  32929. #, fuzzy, no-wrap
  32930. msgid "gdm-service-type"
  32931. msgstr "邮件服务"
  32932. #. type: defvar
  32933. #: guix-git/doc/guix.texi:21948
  32934. 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)."
  32935. msgstr ""
  32936. #. type: cindex
  32937. #: guix-git/doc/guix.texi:21949
  32938. #, no-wrap
  32939. msgid "session types"
  32940. msgstr ""
  32941. #. type: defvar
  32942. #: guix-git/doc/guix.texi:21957
  32943. 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."
  32944. msgstr ""
  32945. #. type: defvar
  32946. #: guix-git/doc/guix.texi:21961
  32947. 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."
  32948. msgstr ""
  32949. #. type: deftp
  32950. #: guix-git/doc/guix.texi:21963
  32951. #, no-wrap
  32952. msgid "{Data Type} gdm-configuration"
  32953. msgstr ""
  32954. #. type: item
  32955. #: guix-git/doc/guix.texi:21965 guix-git/doc/guix.texi:22059
  32956. #, no-wrap
  32957. msgid "@code{auto-login?} (default: @code{#f})"
  32958. msgstr ""
  32959. #. type: itemx
  32960. #: guix-git/doc/guix.texi:21966
  32961. #, no-wrap
  32962. msgid "@code{default-user} (default: @code{#f})"
  32963. msgstr ""
  32964. #. type: table
  32965. #: guix-git/doc/guix.texi:21968
  32966. msgid "When @code{auto-login?} is false, GDM presents a log-in screen."
  32967. msgstr ""
  32968. #. type: table
  32969. #: guix-git/doc/guix.texi:21971
  32970. msgid "When @code{auto-login?} is true, GDM logs in directly as @code{default-user}."
  32971. msgstr ""
  32972. #. type: item
  32973. #: guix-git/doc/guix.texi:21972
  32974. #, fuzzy, no-wrap
  32975. msgid "@code{auto-suspend?} (default @code{#t})"
  32976. msgstr "@code{mate}(默认值:@code{mate})"
  32977. #. type: table
  32978. #: guix-git/doc/guix.texi:21977
  32979. msgid "When true, GDM will automatically suspend to RAM when nobody is physically connected. When a machine is used via remote desktop or SSH, this should be set to false to avoid GDM interrupting remote sessions or rendering the machine unavailable."
  32980. msgstr ""
  32981. #. type: item
  32982. #: guix-git/doc/guix.texi:21978 guix-git/doc/guix.texi:28680
  32983. #: guix-git/doc/guix.texi:30738 guix-git/doc/guix.texi:35690
  32984. #: guix-git/doc/guix.texi:35719 guix-git/doc/guix.texi:35748
  32985. #: guix-git/doc/guix.texi:35775 guix-git/doc/guix.texi:35830
  32986. #: guix-git/doc/guix.texi:35855 guix-git/doc/guix.texi:35882
  32987. #: guix-git/doc/guix.texi:35908 guix-git/doc/guix.texi:35950
  32988. #, no-wrap
  32989. msgid "@code{debug?} (default: @code{#f})"
  32990. msgstr ""
  32991. #. type: table
  32992. #: guix-git/doc/guix.texi:21980
  32993. msgid "When true, GDM writes debug messages to its log."
  32994. msgstr ""
  32995. #. type: item
  32996. #: guix-git/doc/guix.texi:21981
  32997. #, no-wrap
  32998. msgid "@code{gnome-shell-assets} (default: ...)"
  32999. msgstr ""
  33000. #. type: table
  33001. #: guix-git/doc/guix.texi:21983
  33002. msgid "List of GNOME Shell assets needed by GDM: icon theme, fonts, etc."
  33003. msgstr ""
  33004. #. type: item
  33005. #: guix-git/doc/guix.texi:21984
  33006. #, no-wrap
  33007. msgid "@code{xorg-configuration} (default: @code{(xorg-configuration)})"
  33008. msgstr ""
  33009. #. type: table
  33010. #: guix-git/doc/guix.texi:21986 guix-git/doc/guix.texi:22086
  33011. #: guix-git/doc/guix.texi:22191
  33012. msgid "Configuration of the Xorg graphical server."
  33013. msgstr ""
  33014. #. type: item
  33015. #: guix-git/doc/guix.texi:21987
  33016. #, fuzzy, no-wrap
  33017. #| msgid "@code{compression-level} (default: @code{3})"
  33018. msgid "@code{x-session} (default: @code{(xinitrc)})"
  33019. msgstr "@code{compression-level}(默认值:@code{3})"
  33020. #. type: table
  33021. #: guix-git/doc/guix.texi:21989 guix-git/doc/guix.texi:22206
  33022. msgid "Script to run before starting a X session."
  33023. msgstr ""
  33024. #. type: item
  33025. #: guix-git/doc/guix.texi:21990
  33026. #, fuzzy, no-wrap
  33027. msgid "@code{xdmcp?} (default: @code{#f})"
  33028. msgstr "@code{port}(默认值:@code{22})"
  33029. #. type: table
  33030. #: guix-git/doc/guix.texi:21995
  33031. msgid "When true, enable the X Display Manager Control Protocol (XDMCP). This should only be enabled in trusted environments, as the protocol is not secure. When enabled, GDM listens for XDMCP queries on the UDP port 177."
  33032. msgstr ""
  33033. #. type: item
  33034. #: guix-git/doc/guix.texi:21996
  33035. #, no-wrap
  33036. msgid "@code{dbus-daemon} (default: @code{dbus-daemon-wrapper})"
  33037. msgstr ""
  33038. #. type: table
  33039. #: guix-git/doc/guix.texi:21998
  33040. msgid "File name of the @code{dbus-daemon} executable."
  33041. msgstr ""
  33042. #. type: item
  33043. #: guix-git/doc/guix.texi:21999
  33044. #, no-wrap
  33045. msgid "@code{gdm} (default: @code{gdm})"
  33046. msgstr ""
  33047. #. type: table
  33048. #: guix-git/doc/guix.texi:22001
  33049. msgid "The GDM package to use."
  33050. msgstr ""
  33051. #. type: item
  33052. #: guix-git/doc/guix.texi:22002
  33053. #, fuzzy, no-wrap
  33054. msgid "@code{wayland?} (default: @code{#f})"
  33055. msgstr "@code{challenge}(默认值:@code{#f})"
  33056. #. type: table
  33057. #: guix-git/doc/guix.texi:22004
  33058. msgid "When true, enables Wayland in GDM, necessary to use Wayland sessions."
  33059. msgstr ""
  33060. #. type: item
  33061. #: guix-git/doc/guix.texi:22005
  33062. #, fuzzy, no-wrap
  33063. msgid "@code{wayland-session} (default: @code{gdm-wayland-session-wrapper})"
  33064. msgstr "@code{mate}(默认值:@code{mate})"
  33065. #. type: table
  33066. #: guix-git/doc/guix.texi:22008
  33067. msgid "The Wayland session wrapper to use, needed to setup the environment."
  33068. msgstr ""
  33069. #. type: defvar
  33070. #: guix-git/doc/guix.texi:22011
  33071. #, fuzzy, no-wrap
  33072. msgid "slim-service-type"
  33073. msgstr "邮件服务"
  33074. #. type: defvar
  33075. #: guix-git/doc/guix.texi:22013
  33076. msgid "This is the type for the SLiM graphical login manager for X11."
  33077. msgstr ""
  33078. #. type: defvar
  33079. #: guix-git/doc/guix.texi:22017
  33080. 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."
  33081. msgstr ""
  33082. #. type: defvar
  33083. #: guix-git/doc/guix.texi:22024
  33084. 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."
  33085. msgstr ""
  33086. #. type: lisp
  33087. #: guix-git/doc/guix.texi:22029
  33088. #, no-wrap
  33089. msgid ""
  33090. "(use-modules (gnu services)\n"
  33091. " (gnu services desktop)\n"
  33092. " (gnu services xorg))\n"
  33093. "\n"
  33094. msgstr ""
  33095. #. type: lisp
  33096. #: guix-git/doc/guix.texi:22040
  33097. #, no-wrap
  33098. msgid ""
  33099. "(operating-system\n"
  33100. " ;; ...\n"
  33101. " (services (cons* (service slim-service-type (slim-configuration\n"
  33102. " (display \":0\")\n"
  33103. " (vt \"vt7\")))\n"
  33104. " (service slim-service-type (slim-configuration\n"
  33105. " (display \":1\")\n"
  33106. " (vt \"vt8\")))\n"
  33107. " (modify-services %desktop-services\n"
  33108. " (delete gdm-service-type)))))\n"
  33109. msgstr ""
  33110. #. type: deftp
  33111. #: guix-git/doc/guix.texi:22044
  33112. #, no-wrap
  33113. msgid "{Data Type} slim-configuration"
  33114. msgstr ""
  33115. #. type: deftp
  33116. #: guix-git/doc/guix.texi:22046
  33117. msgid "Data type representing the configuration of @code{slim-service-type}."
  33118. msgstr ""
  33119. #. type: table
  33120. #: guix-git/doc/guix.texi:22050
  33121. msgid "Whether to allow logins with empty passwords."
  33122. msgstr ""
  33123. #. type: item
  33124. #: guix-git/doc/guix.texi:22051
  33125. #, fuzzy, no-wrap
  33126. msgid "@code{gnupg?} (default: @code{#f})"
  33127. msgstr "@code{challenge}(默认值:@code{#f})"
  33128. #. type: table
  33129. #: guix-git/doc/guix.texi:22058
  33130. 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}."
  33131. msgstr ""
  33132. #. type: itemx
  33133. #: guix-git/doc/guix.texi:22060
  33134. #, no-wrap
  33135. msgid "@code{default-user} (default: @code{\"\"})"
  33136. msgstr ""
  33137. #. type: table
  33138. #: guix-git/doc/guix.texi:22062
  33139. msgid "When @code{auto-login?} is false, SLiM presents a log-in screen."
  33140. msgstr ""
  33141. #. type: table
  33142. #: guix-git/doc/guix.texi:22065
  33143. msgid "When @code{auto-login?} is true, SLiM logs in directly as @code{default-user}."
  33144. msgstr ""
  33145. #. type: item
  33146. #: guix-git/doc/guix.texi:22066
  33147. #, no-wrap
  33148. msgid "@code{theme} (default: @code{%default-slim-theme})"
  33149. msgstr ""
  33150. #. type: itemx
  33151. #: guix-git/doc/guix.texi:22067
  33152. #, no-wrap
  33153. msgid "@code{theme-name} (default: @code{%default-slim-theme-name})"
  33154. msgstr ""
  33155. #. type: table
  33156. #: guix-git/doc/guix.texi:22069
  33157. msgid "The graphical theme to use and its name."
  33158. msgstr ""
  33159. #. type: item
  33160. #: guix-git/doc/guix.texi:22070
  33161. #, no-wrap
  33162. msgid "@code{auto-login-session} (default: @code{#f})"
  33163. msgstr ""
  33164. #. type: table
  33165. #: guix-git/doc/guix.texi:22073
  33166. 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\")}."
  33167. msgstr ""
  33168. #. type: table
  33169. #: guix-git/doc/guix.texi:22077
  33170. 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."
  33171. msgstr ""
  33172. #. type: quotation
  33173. #: guix-git/doc/guix.texi:22082
  33174. 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."
  33175. msgstr ""
  33176. #. type: item
  33177. #: guix-git/doc/guix.texi:22084 guix-git/doc/guix.texi:22189
  33178. #, no-wrap
  33179. msgid "@code{xorg-configuration} (default @code{(xorg-configuration)})"
  33180. msgstr ""
  33181. #. type: item
  33182. #: guix-git/doc/guix.texi:22087
  33183. #, no-wrap
  33184. msgid "@code{display} (default @code{\":0\"})"
  33185. msgstr "@code{display}(默认值:@code{\":0\"})"
  33186. #. type: table
  33187. #: guix-git/doc/guix.texi:22089
  33188. msgid "The display on which to start the Xorg graphical server."
  33189. msgstr ""
  33190. #. type: item
  33191. #: guix-git/doc/guix.texi:22090
  33192. #, no-wrap
  33193. msgid "@code{vt} (default @code{\"vt7\"})"
  33194. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  33195. #. type: table
  33196. #: guix-git/doc/guix.texi:22092
  33197. msgid "The VT on which to start the Xorg graphical server."
  33198. msgstr ""
  33199. #. type: item
  33200. #: guix-git/doc/guix.texi:22093
  33201. #, no-wrap
  33202. msgid "@code{xauth} (default: @code{xauth})"
  33203. msgstr ""
  33204. #. type: table
  33205. #: guix-git/doc/guix.texi:22095
  33206. msgid "The XAuth package to use."
  33207. msgstr ""
  33208. #. type: item
  33209. #: guix-git/doc/guix.texi:22096
  33210. #, no-wrap
  33211. msgid "@code{shepherd} (default: @code{shepherd})"
  33212. msgstr ""
  33213. #. type: table
  33214. #: guix-git/doc/guix.texi:22099
  33215. msgid "The Shepherd package used when invoking @command{halt} and @command{reboot}."
  33216. msgstr ""
  33217. #. type: item
  33218. #: guix-git/doc/guix.texi:22100
  33219. #, no-wrap
  33220. msgid "@code{sessreg} (default: @code{sessreg})"
  33221. msgstr ""
  33222. #. type: table
  33223. #: guix-git/doc/guix.texi:22102
  33224. msgid "The sessreg package used in order to register the session."
  33225. msgstr ""
  33226. #. type: item
  33227. #: guix-git/doc/guix.texi:22103
  33228. #, no-wrap
  33229. msgid "@code{slim} (default: @code{slim})"
  33230. msgstr ""
  33231. #. type: table
  33232. #: guix-git/doc/guix.texi:22105
  33233. msgid "The SLiM package to use."
  33234. msgstr ""
  33235. #. type: defvar
  33236. #: guix-git/doc/guix.texi:22108
  33237. #, no-wrap
  33238. msgid "%default-theme"
  33239. msgstr ""
  33240. #. type: defvarx
  33241. #: guix-git/doc/guix.texi:22109
  33242. #, fuzzy, no-wrap
  33243. msgid "%default-theme-name"
  33244. msgstr "仓库monad"
  33245. #. type: defvar
  33246. #: guix-git/doc/guix.texi:22111
  33247. msgid "The default SLiM theme and its name."
  33248. msgstr ""
  33249. #. type: cindex
  33250. #: guix-git/doc/guix.texi:22115
  33251. #, no-wrap
  33252. msgid "X11 login"
  33253. msgstr ""
  33254. #. type: defvar
  33255. #: guix-git/doc/guix.texi:22116
  33256. #, fuzzy, no-wrap
  33257. msgid "sddm-service-type"
  33258. msgstr "邮件服务"
  33259. #. type: defvar
  33260. #: guix-git/doc/guix.texi:22120
  33261. 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)."
  33262. msgstr ""
  33263. #. type: defvar
  33264. #: guix-git/doc/guix.texi:22122
  33265. msgid "Here's an example use:"
  33266. msgstr ""
  33267. #. type: lisp
  33268. #: guix-git/doc/guix.texi:22128
  33269. #, no-wrap
  33270. msgid ""
  33271. "(service sddm-service-type\n"
  33272. " (sddm-configuration\n"
  33273. " (auto-login-user \"alice\")\n"
  33274. " (auto-login-session \"xfce.desktop\")))\n"
  33275. msgstr ""
  33276. #. type: deftp
  33277. #: guix-git/doc/guix.texi:22131
  33278. #, no-wrap
  33279. msgid "{Data Type} sddm-configuration"
  33280. msgstr ""
  33281. #. type: deftp
  33282. #: guix-git/doc/guix.texi:22134
  33283. #, fuzzy
  33284. msgid "This data type represents the configuration of the SDDM login manager. The available fields are:"
  33285. msgstr "这个数据类型表示后台进程可以下发构建任务的构建机器。重要的项有:"
  33286. #. type: item
  33287. #: guix-git/doc/guix.texi:22136
  33288. #, fuzzy, no-wrap
  33289. msgid "@code{sddm} (default: @code{sddm})"
  33290. msgstr "@code{speed}(默认值:@code{1.0})"
  33291. #. type: table
  33292. #: guix-git/doc/guix.texi:22138
  33293. #, fuzzy
  33294. msgid "The SDDM package to use."
  33295. msgstr "软件包数据类型。"
  33296. #. type: item
  33297. #: guix-git/doc/guix.texi:22139
  33298. #, no-wrap
  33299. msgid "@code{display-server} (default: \"x11\")"
  33300. msgstr ""
  33301. #. type: table
  33302. #: guix-git/doc/guix.texi:22142
  33303. msgid "Select display server to use for the greeter. Valid values are @samp{\"x11\"} or @samp{\"wayland\"}."
  33304. msgstr ""
  33305. #. type: item
  33306. #: guix-git/doc/guix.texi:22143
  33307. #, no-wrap
  33308. msgid "@code{numlock} (default: \"on\")"
  33309. msgstr ""
  33310. #. type: table
  33311. #: guix-git/doc/guix.texi:22145
  33312. msgid "Valid values are @samp{\"on\"}, @samp{\"off\"} or @samp{\"none\"}."
  33313. msgstr ""
  33314. #. type: item
  33315. #: guix-git/doc/guix.texi:22146
  33316. #, fuzzy, no-wrap
  33317. msgid "@code{halt-command} (default @code{#~(string-append #$shepherd \"/sbin/halt\")})"
  33318. msgstr "@code{includes}(默认值:@code{'()})"
  33319. #. type: table
  33320. #: guix-git/doc/guix.texi:22148
  33321. msgid "Command to run when halting."
  33322. msgstr ""
  33323. #. type: item
  33324. #: guix-git/doc/guix.texi:22149
  33325. #, no-wrap
  33326. msgid "@code{reboot-command} (default @code{#~(string-append #$shepherd \"/sbin/reboot\")})"
  33327. msgstr ""
  33328. #. type: table
  33329. #: guix-git/doc/guix.texi:22151
  33330. msgid "Command to run when rebooting."
  33331. msgstr ""
  33332. #. type: item
  33333. #: guix-git/doc/guix.texi:22152
  33334. #, no-wrap
  33335. msgid "@code{theme} (default \"maldives\")"
  33336. msgstr ""
  33337. #. type: table
  33338. #: guix-git/doc/guix.texi:22155
  33339. msgid "Theme to use. Default themes provided by SDDM are @samp{\"elarun\"}, @samp{\"maldives\"} or @samp{\"maya\"}."
  33340. msgstr ""
  33341. #. type: item
  33342. #: guix-git/doc/guix.texi:22156
  33343. #, no-wrap
  33344. msgid "@code{themes-directory} (default \"/run/current-system/profile/share/sddm/themes\")"
  33345. msgstr ""
  33346. #. type: table
  33347. #: guix-git/doc/guix.texi:22158
  33348. msgid "Directory to look for themes."
  33349. msgstr ""
  33350. #. type: item
  33351. #: guix-git/doc/guix.texi:22159
  33352. #, no-wrap
  33353. msgid "@code{faces-directory} (default \"/run/current-system/profile/share/sddm/faces\")"
  33354. msgstr ""
  33355. #. type: table
  33356. #: guix-git/doc/guix.texi:22161
  33357. msgid "Directory to look for faces."
  33358. msgstr ""
  33359. #. type: item
  33360. #: guix-git/doc/guix.texi:22162
  33361. #, no-wrap
  33362. msgid "@code{default-path} (default \"/run/current-system/profile/bin\")"
  33363. msgstr ""
  33364. #. type: table
  33365. #: guix-git/doc/guix.texi:22164
  33366. msgid "Default PATH to use."
  33367. msgstr ""
  33368. #. type: item
  33369. #: guix-git/doc/guix.texi:22165
  33370. #, fuzzy, no-wrap
  33371. msgid "@code{minimum-uid} (default: 1000)"
  33372. msgstr "@code{includes}(默认值:@code{'()})"
  33373. #. type: table
  33374. #: guix-git/doc/guix.texi:22167
  33375. msgid "Minimum UID displayed in SDDM and allowed for log-in."
  33376. msgstr ""
  33377. #. type: item
  33378. #: guix-git/doc/guix.texi:22168
  33379. #, fuzzy, no-wrap
  33380. msgid "@code{maximum-uid} (default: 2000)"
  33381. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  33382. #. type: table
  33383. #: guix-git/doc/guix.texi:22170
  33384. msgid "Maximum UID to display in SDDM."
  33385. msgstr ""
  33386. #. type: item
  33387. #: guix-git/doc/guix.texi:22171
  33388. #, no-wrap
  33389. msgid "@code{remember-last-user?} (default #t)"
  33390. msgstr ""
  33391. #. type: table
  33392. #: guix-git/doc/guix.texi:22173
  33393. msgid "Remember last user."
  33394. msgstr ""
  33395. #. type: item
  33396. #: guix-git/doc/guix.texi:22174
  33397. #, no-wrap
  33398. msgid "@code{remember-last-session?} (default #t)"
  33399. msgstr ""
  33400. #. type: table
  33401. #: guix-git/doc/guix.texi:22176
  33402. msgid "Remember last session."
  33403. msgstr ""
  33404. #. type: item
  33405. #: guix-git/doc/guix.texi:22177
  33406. #, no-wrap
  33407. msgid "@code{hide-users} (default \"\")"
  33408. msgstr ""
  33409. #. type: table
  33410. #: guix-git/doc/guix.texi:22179
  33411. msgid "Usernames to hide from SDDM greeter."
  33412. msgstr ""
  33413. #. type: item
  33414. #: guix-git/doc/guix.texi:22180
  33415. #, no-wrap
  33416. msgid "@code{hide-shells} (default @code{#~(string-append #$shadow \"/sbin/nologin\")})"
  33417. msgstr ""
  33418. #. type: table
  33419. #: guix-git/doc/guix.texi:22182
  33420. msgid "Users with shells listed will be hidden from the SDDM greeter."
  33421. msgstr ""
  33422. #. type: item
  33423. #: guix-git/doc/guix.texi:22183
  33424. #, no-wrap
  33425. msgid "@code{session-command} (default @code{#~(string-append #$sddm \"/share/sddm/scripts/wayland-session\")})"
  33426. msgstr ""
  33427. #. type: table
  33428. #: guix-git/doc/guix.texi:22185
  33429. msgid "Script to run before starting a wayland session."
  33430. msgstr ""
  33431. #. type: item
  33432. #: guix-git/doc/guix.texi:22186
  33433. #, no-wrap
  33434. msgid "@code{sessions-directory} (default \"/run/current-system/profile/share/wayland-sessions\")"
  33435. msgstr ""
  33436. #. type: table
  33437. #: guix-git/doc/guix.texi:22188
  33438. msgid "Directory to look for desktop files starting wayland sessions."
  33439. msgstr ""
  33440. #. type: item
  33441. #: guix-git/doc/guix.texi:22192
  33442. #, no-wrap
  33443. msgid "@code{xauth-path} (default @code{#~(string-append #$xauth \"/bin/xauth\")})"
  33444. msgstr ""
  33445. #. type: table
  33446. #: guix-git/doc/guix.texi:22194
  33447. msgid "Path to xauth."
  33448. msgstr ""
  33449. #. type: item
  33450. #: guix-git/doc/guix.texi:22195
  33451. #, no-wrap
  33452. msgid "@code{xephyr-path} (default @code{#~(string-append #$xorg-server \"/bin/Xephyr\")})"
  33453. msgstr ""
  33454. #. type: table
  33455. #: guix-git/doc/guix.texi:22197
  33456. msgid "Path to Xephyr."
  33457. msgstr ""
  33458. #. type: item
  33459. #: guix-git/doc/guix.texi:22198
  33460. #, no-wrap
  33461. msgid "@code{xdisplay-start} (default @code{#~(string-append #$sddm \"/share/sddm/scripts/Xsetup\")})"
  33462. msgstr ""
  33463. #. type: table
  33464. #: guix-git/doc/guix.texi:22200
  33465. msgid "Script to run after starting xorg-server."
  33466. msgstr ""
  33467. #. type: item
  33468. #: guix-git/doc/guix.texi:22201
  33469. #, no-wrap
  33470. msgid "@code{xdisplay-stop} (default @code{#~(string-append #$sddm \"/share/sddm/scripts/Xstop\")})"
  33471. msgstr ""
  33472. #. type: table
  33473. #: guix-git/doc/guix.texi:22203
  33474. msgid "Script to run before stopping xorg-server."
  33475. msgstr ""
  33476. #. type: item
  33477. #: guix-git/doc/guix.texi:22204
  33478. #, no-wrap
  33479. msgid "@code{xsession-command} (default: @code{xinitrc})"
  33480. msgstr ""
  33481. #. type: item
  33482. #: guix-git/doc/guix.texi:22207
  33483. #, no-wrap
  33484. msgid "@code{xsessions-directory} (default: \"/run/current-system/profile/share/xsessions\")"
  33485. msgstr ""
  33486. #. type: table
  33487. #: guix-git/doc/guix.texi:22209
  33488. msgid "Directory to look for desktop files starting X sessions."
  33489. msgstr ""
  33490. #. type: item
  33491. #: guix-git/doc/guix.texi:22210
  33492. #, no-wrap
  33493. msgid "@code{minimum-vt} (default: 7)"
  33494. msgstr ""
  33495. #. type: table
  33496. #: guix-git/doc/guix.texi:22212
  33497. msgid "Minimum VT to use."
  33498. msgstr ""
  33499. #. type: item
  33500. #: guix-git/doc/guix.texi:22213
  33501. #, no-wrap
  33502. msgid "@code{auto-login-user} (default \"\")"
  33503. msgstr ""
  33504. #. type: table
  33505. #: guix-git/doc/guix.texi:22216
  33506. msgid "User account that will be automatically logged in. Setting this to the empty string disables auto-login."
  33507. msgstr ""
  33508. #. type: item
  33509. #: guix-git/doc/guix.texi:22217
  33510. #, no-wrap
  33511. msgid "@code{auto-login-session} (default \"\")"
  33512. msgstr ""
  33513. #. type: table
  33514. #: guix-git/doc/guix.texi:22219
  33515. msgid "The @file{.desktop} file name to use as the auto-login session, or the empty string."
  33516. msgstr ""
  33517. #. type: item
  33518. #: guix-git/doc/guix.texi:22220
  33519. #, no-wrap
  33520. msgid "@code{relogin?} (default #f)"
  33521. msgstr ""
  33522. #. type: table
  33523. #: guix-git/doc/guix.texi:22222
  33524. msgid "Relogin after logout."
  33525. msgstr ""
  33526. #. type: cindex
  33527. #: guix-git/doc/guix.texi:22226
  33528. #, no-wrap
  33529. msgid "lightdm, graphical login manager"
  33530. msgstr ""
  33531. #. type: cindex
  33532. #: guix-git/doc/guix.texi:22227
  33533. #, no-wrap
  33534. msgid "display manager, lightdm"
  33535. msgstr ""
  33536. #. type: anchor{#1}
  33537. #: guix-git/doc/guix.texi:22229
  33538. msgid "lightdm"
  33539. msgstr ""
  33540. #. type: defvar
  33541. #: guix-git/doc/guix.texi:22229
  33542. #, fuzzy, no-wrap
  33543. msgid "lightdm-service-type"
  33544. msgstr "邮件服务"
  33545. #. type: defvar
  33546. #: guix-git/doc/guix.texi:22237
  33547. msgid "This is the type of the service to run the @url{https://github.com/canonical/lightdm,LightDM display manager}. Its value must be a @code{lightdm-configuration} record, which is documented below. Among its distinguishing features are TigerVNC integration for easily remoting your desktop as well as support for the XDMCP protocol, which can be used by remote clients to start a session from the login manager."
  33548. msgstr ""
  33549. #. type: defvar
  33550. #: guix-git/doc/guix.texi:22239
  33551. msgid "In its most basic form, it can be used simply as:"
  33552. msgstr ""
  33553. #. type: lisp
  33554. #: guix-git/doc/guix.texi:22242
  33555. #, no-wrap
  33556. msgid "(service lightdm-service-type)\n"
  33557. msgstr ""
  33558. #. type: defvar
  33559. #: guix-git/doc/guix.texi:22246
  33560. msgid "A more elaborate example making use of the VNC capabilities and enabling more features and verbose logs could look like:"
  33561. msgstr ""
  33562. #. type: lisp
  33563. #: guix-git/doc/guix.texi:22260
  33564. #, no-wrap
  33565. msgid ""
  33566. "(service lightdm-service-type\n"
  33567. " (lightdm-configuration\n"
  33568. " (allow-empty-passwords? #t)\n"
  33569. " (xdmcp? #t)\n"
  33570. " (vnc-server? #t)\n"
  33571. " (vnc-server-command\n"
  33572. " (file-append tigervnc-server \"/bin/Xvnc\"\n"
  33573. " \" -SecurityTypes None\"))\n"
  33574. " (seats\n"
  33575. " (list (lightdm-seat-configuration\n"
  33576. " (name \"*\")\n"
  33577. " (user-session \"ratpoison\"))))))\n"
  33578. msgstr ""
  33579. #. type: deftp
  33580. #: guix-git/doc/guix.texi:22267
  33581. #, fuzzy, no-wrap
  33582. msgid "{Data Type} lightdm-configuration"
  33583. msgstr "管理操作系统配置。"
  33584. #. type: deftp
  33585. #: guix-git/doc/guix.texi:22269
  33586. msgid "Available @code{lightdm-configuration} fields are:"
  33587. msgstr ""
  33588. #. type: item
  33589. #: guix-git/doc/guix.texi:22271
  33590. #, fuzzy, no-wrap
  33591. msgid "@code{lightdm} (default: @code{lightdm}) (type: file-like)"
  33592. msgstr "@code{xfce}(默认值:@code{xfce})"
  33593. #. type: table
  33594. #: guix-git/doc/guix.texi:22273
  33595. #, fuzzy
  33596. msgid "The lightdm package to use."
  33597. msgstr "软件包数据类型。"
  33598. #. type: table
  33599. #: guix-git/doc/guix.texi:22276
  33600. msgid "Whether users not having a password set can login."
  33601. msgstr ""
  33602. #. type: table
  33603. #: guix-git/doc/guix.texi:22279
  33604. #, fuzzy
  33605. msgid "Enable verbose output."
  33606. msgstr "怎么开启或关闭substitute。"
  33607. #. type: item
  33608. #: guix-git/doc/guix.texi:22280
  33609. #, fuzzy, no-wrap
  33610. msgid "@code{xorg-configuration} (type: xorg-configuration)"
  33611. msgstr "@code{journal-content}(默认值:@code{#f})"
  33612. #. type: table
  33613. #: guix-git/doc/guix.texi:22284
  33614. msgid "The default Xorg server configuration to use to generate the Xorg server start script. It can be refined per seat via the @code{xserver-command} of the @code{<lightdm-seat-configuration>} record, if desired."
  33615. msgstr ""
  33616. #. type: item
  33617. #: guix-git/doc/guix.texi:22285
  33618. #, fuzzy, no-wrap
  33619. msgid "@code{greeters} (type: list-of-greeter-configurations)"
  33620. msgstr "管理操作系统配置。"
  33621. #. type: table
  33622. #: guix-git/doc/guix.texi:22287
  33623. msgid "The LightDM greeter configurations specifying the greeters to use."
  33624. msgstr ""
  33625. #. type: item
  33626. #: guix-git/doc/guix.texi:22288
  33627. #, fuzzy, no-wrap
  33628. msgid "@code{seats} (type: list-of-seat-configurations)"
  33629. msgstr "{数据类型} build-machine"
  33630. #. type: table
  33631. #: guix-git/doc/guix.texi:22290
  33632. msgid "The seat configurations to use. A LightDM seat is akin to a user."
  33633. msgstr ""
  33634. #. type: item
  33635. #: guix-git/doc/guix.texi:22291 guix-git/doc/guix.texi:32329
  33636. #, fuzzy, no-wrap
  33637. msgid "@code{xdmcp?} (default: @code{#f}) (type: boolean)"
  33638. msgstr "@code{challenge}(默认值:@code{#f})"
  33639. #. type: table
  33640. #: guix-git/doc/guix.texi:22293
  33641. msgid "Whether a XDMCP server should listen on port UDP 177."
  33642. msgstr ""
  33643. #. type: item
  33644. #: guix-git/doc/guix.texi:22294
  33645. #, fuzzy, no-wrap
  33646. msgid "@code{xdmcp-listen-address} (type: maybe-string)"
  33647. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  33648. #. type: table
  33649. #: guix-git/doc/guix.texi:22297
  33650. msgid "The host or IP address the XDMCP server listens for incoming connections. When unspecified, listen on for any hosts/IP addresses."
  33651. msgstr ""
  33652. #. type: item
  33653. #: guix-git/doc/guix.texi:22298
  33654. #, fuzzy, no-wrap
  33655. msgid "@code{vnc-server?} (default: @code{#f}) (type: boolean)"
  33656. msgstr "@code{port}(默认值:@code{22})"
  33657. #. type: table
  33658. #: guix-git/doc/guix.texi:22300
  33659. msgid "Whether a VNC server is started."
  33660. msgstr ""
  33661. #. type: item
  33662. #: guix-git/doc/guix.texi:22301
  33663. #, fuzzy, no-wrap
  33664. msgid "@code{vnc-server-command} (type: file-like)"
  33665. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  33666. #. type: table
  33667. #: guix-git/doc/guix.texi:22305
  33668. msgid "The Xvnc command to use for the VNC server, it's possible to provide extra options not otherwise exposed along the command, for example to disable security:"
  33669. msgstr ""
  33670. #. type: lisp
  33671. #: guix-git/doc/guix.texi:22309
  33672. #, no-wrap
  33673. msgid ""
  33674. "(vnc-server-command (file-append tigervnc-server \"/bin/Xvnc\"\n"
  33675. " \" -SecurityTypes None\" ))\n"
  33676. msgstr ""
  33677. #. type: table
  33678. #: guix-git/doc/guix.texi:22313
  33679. msgid "Or to set a PasswordFile for the classic (unsecure) VncAuth mechanism:"
  33680. msgstr ""
  33681. #. type: lisp
  33682. #: guix-git/doc/guix.texi:22317
  33683. #, no-wrap
  33684. msgid ""
  33685. "(vnc-server-command (file-append tigervnc-server \"/bin/Xvnc\"\n"
  33686. " \" -PasswordFile /var/lib/lightdm/.vnc/passwd\"))\n"
  33687. msgstr ""
  33688. #. type: table
  33689. #: guix-git/doc/guix.texi:22323
  33690. msgid "The password file should be manually created using the @command{vncpasswd} command. Note that LightDM will create new sessions for VNC users, which means they need to authenticate in the same way as local users would."
  33691. msgstr ""
  33692. #. type: item
  33693. #: guix-git/doc/guix.texi:22324
  33694. #, fuzzy, no-wrap
  33695. msgid "@code{vnc-server-listen-address} (type: maybe-string)"
  33696. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  33697. #. type: table
  33698. #: guix-git/doc/guix.texi:22327
  33699. msgid "The host or IP address the VNC server listens for incoming connections. When unspecified, listen for any hosts/IP addresses."
  33700. msgstr ""
  33701. #. type: item
  33702. #: guix-git/doc/guix.texi:22328
  33703. #, fuzzy, no-wrap
  33704. msgid "@code{vnc-server-port} (default: @code{5900}) (type: number)"
  33705. msgstr "@code{port}(默认值:@code{22})"
  33706. #. type: table
  33707. #: guix-git/doc/guix.texi:22330
  33708. msgid "The TCP port the VNC server should listen to."
  33709. msgstr ""
  33710. #. type: item
  33711. #: guix-git/doc/guix.texi:22331 guix-git/doc/guix.texi:22380
  33712. #: guix-git/doc/guix.texi:22418
  33713. #, fuzzy, no-wrap
  33714. msgid "@code{extra-config} (default: @code{'()}) (type: list-of-strings)"
  33715. msgstr "@code{challenge}(默认值:@code{#f})"
  33716. #. type: table
  33717. #: guix-git/doc/guix.texi:22333
  33718. msgid "Extra configuration values to append to the LightDM configuration file."
  33719. msgstr ""
  33720. #. type: deftp
  33721. #: guix-git/doc/guix.texi:22341
  33722. #, fuzzy, no-wrap
  33723. msgid "{Data Type} lightdm-gtk-greeter-configuration"
  33724. msgstr "管理操作系统配置。"
  33725. #. type: deftp
  33726. #: guix-git/doc/guix.texi:22343
  33727. msgid "Available @code{lightdm-gtk-greeter-configuration} fields are:"
  33728. msgstr ""
  33729. #. type: item
  33730. #: guix-git/doc/guix.texi:22345
  33731. #, fuzzy, no-wrap
  33732. msgid "@code{lightdm-gtk-greeter} (default: @code{lightdm-gtk-greeter}) (type: file-like)"
  33733. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  33734. #. type: table
  33735. #: guix-git/doc/guix.texi:22347
  33736. #, fuzzy
  33737. msgid "The lightdm-gtk-greeter package to use."
  33738. msgstr "软件包数据类型。"
  33739. #. type: item
  33740. #: guix-git/doc/guix.texi:22348
  33741. #, no-wrap
  33742. msgid "@code{assets} (default: @code{(adwaita-icon-theme gnome-themes-extra hicolor-icon-theme)}) (type: list-of-file-likes)"
  33743. msgstr ""
  33744. #. type: table
  33745. #: guix-git/doc/guix.texi:22351
  33746. msgid "The list of packages complementing the greeter, such as package providing icon themes."
  33747. msgstr ""
  33748. #. type: item
  33749. #: guix-git/doc/guix.texi:22352
  33750. #, fuzzy, no-wrap
  33751. msgid "@code{theme-name} (default: @code{\"Adwaita\"}) (type: string)"
  33752. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  33753. #. type: table
  33754. #: guix-git/doc/guix.texi:22354
  33755. #, fuzzy
  33756. msgid "The name of the theme to use."
  33757. msgstr "远程机器的主机名。"
  33758. #. type: item
  33759. #: guix-git/doc/guix.texi:22355
  33760. #, fuzzy, no-wrap
  33761. msgid "@code{icon-theme-name} (default: @code{\"Adwaita\"}) (type: string)"
  33762. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  33763. #. type: table
  33764. #: guix-git/doc/guix.texi:22357
  33765. #, fuzzy
  33766. msgid "The name of the icon theme to use."
  33767. msgstr "远程机器的主机名。"
  33768. #. type: item
  33769. #: guix-git/doc/guix.texi:22358
  33770. #, fuzzy, no-wrap
  33771. msgid "@code{cursor-theme-name} (default: @code{\"Adwaita\"}) (type: string)"
  33772. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  33773. #. type: table
  33774. #: guix-git/doc/guix.texi:22360
  33775. #, fuzzy
  33776. msgid "The name of the cursor theme to use."
  33777. msgstr "远程机器的主机名。"
  33778. #. type: item
  33779. #: guix-git/doc/guix.texi:22361
  33780. #, fuzzy, no-wrap
  33781. msgid "@code{cursor-theme-size} (default: @code{16}) (type: number)"
  33782. msgstr "@code{port}(默认值:@code{22})"
  33783. #. type: table
  33784. #: guix-git/doc/guix.texi:22363
  33785. #, fuzzy
  33786. msgid "The size to use for the cursor theme."
  33787. msgstr "mcron服务。"
  33788. #. type: item
  33789. #: guix-git/doc/guix.texi:22364
  33790. #, fuzzy, no-wrap
  33791. msgid "@code{allow-debugging?} (type: maybe-boolean)"
  33792. msgstr "@code{port}(默认值:@code{22})"
  33793. #. type: table
  33794. #: guix-git/doc/guix.texi:22366
  33795. msgid "Set to #t to enable debug log level."
  33796. msgstr ""
  33797. #. type: item
  33798. #: guix-git/doc/guix.texi:22367
  33799. #, fuzzy, no-wrap
  33800. msgid "@code{background} (type: file-like)"
  33801. msgstr "@code{xfce}(默认值:@code{xfce})"
  33802. #. type: table
  33803. #: guix-git/doc/guix.texi:22369
  33804. #, fuzzy
  33805. msgid "The background image to use."
  33806. msgstr "软件包数据类型。"
  33807. #. type: item
  33808. #: guix-git/doc/guix.texi:22370
  33809. #, fuzzy, no-wrap
  33810. msgid "@code{at-spi-enabled?} (default: @code{#f}) (type: boolean)"
  33811. msgstr "@code{challenge}(默认值:@code{#f})"
  33812. #. type: table
  33813. #: guix-git/doc/guix.texi:22373
  33814. msgid "Enable accessibility support through the Assistive Technology Service Provider Interface (AT-SPI)."
  33815. msgstr ""
  33816. #. type: item
  33817. #: guix-git/doc/guix.texi:22374
  33818. #, fuzzy, no-wrap
  33819. msgid "@code{a11y-states} (default: @code{(contrast font keyboard reader)}) (type: list-of-a11y-states)"
  33820. msgstr "@code{port}(默认值:@code{22})"
  33821. #. type: table
  33822. #: guix-git/doc/guix.texi:22376
  33823. msgid "The accessibility features to enable, given as list of symbols."
  33824. msgstr ""
  33825. #. type: item
  33826. #: guix-git/doc/guix.texi:22377
  33827. #, fuzzy, no-wrap
  33828. msgid "@code{reader} (type: maybe-file-like)"
  33829. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  33830. #. type: table
  33831. #: guix-git/doc/guix.texi:22379
  33832. msgid "The command to use to launch a screen reader."
  33833. msgstr ""
  33834. #. type: table
  33835. #: guix-git/doc/guix.texi:22383
  33836. msgid "Extra configuration values to append to the LightDM GTK Greeter configuration file."
  33837. msgstr ""
  33838. #. type: deftp
  33839. #: guix-git/doc/guix.texi:22390
  33840. #, fuzzy, no-wrap
  33841. msgid "{Data Type} lightdm-seat-configuration"
  33842. msgstr "{数据类型} build-machine"
  33843. #. type: deftp
  33844. #: guix-git/doc/guix.texi:22392
  33845. msgid "Available @code{lightdm-seat-configuration} fields are:"
  33846. msgstr ""
  33847. #. type: item
  33848. #: guix-git/doc/guix.texi:22394
  33849. #, fuzzy, no-wrap
  33850. msgid "@code{name} (type: seat-name)"
  33851. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  33852. #. type: table
  33853. #: guix-git/doc/guix.texi:22397
  33854. msgid "The name of the seat. An asterisk (*) can be used in the name to apply the seat configuration to all the seat names it matches."
  33855. msgstr ""
  33856. #. type: item
  33857. #: guix-git/doc/guix.texi:22398
  33858. #, fuzzy, no-wrap
  33859. msgid "@code{user-session} (type: maybe-string)"
  33860. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  33861. #. type: table
  33862. #: guix-git/doc/guix.texi:22401
  33863. msgid "The session to use by default. The session name must be provided as a lowercase string, such as @code{\"gnome\"}, @code{\"ratpoison\"}, etc."
  33864. msgstr ""
  33865. #. type: item
  33866. #: guix-git/doc/guix.texi:22402
  33867. #, fuzzy, no-wrap
  33868. msgid "@code{type} (default: @code{local}) (type: seat-type)"
  33869. msgstr "@code{port}(默认值:@code{22})"
  33870. #. type: table
  33871. #: guix-git/doc/guix.texi:22404
  33872. msgid "The type of the seat, either the @code{local} or @code{xremote} symbol."
  33873. msgstr ""
  33874. #. type: item
  33875. #: guix-git/doc/guix.texi:22405
  33876. #, fuzzy, no-wrap
  33877. msgid "@code{autologin-user} (type: maybe-string)"
  33878. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  33879. #. type: table
  33880. #: guix-git/doc/guix.texi:22407
  33881. msgid "The username to automatically log in with by default."
  33882. msgstr ""
  33883. #. type: item
  33884. #: guix-git/doc/guix.texi:22408
  33885. #, fuzzy, no-wrap
  33886. msgid "@code{greeter-session} (default: @code{lightdm-gtk-greeter}) (type: greeter-session)"
  33887. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  33888. #. type: table
  33889. #: guix-git/doc/guix.texi:22411
  33890. msgid "The greeter session to use, specified as a symbol. Currently, only @code{lightdm-gtk-greeter} is supported."
  33891. msgstr ""
  33892. #. type: item
  33893. #: guix-git/doc/guix.texi:22412
  33894. #, fuzzy, no-wrap
  33895. msgid "@code{xserver-command} (type: maybe-file-like)"
  33896. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  33897. #. type: table
  33898. #: guix-git/doc/guix.texi:22414
  33899. #, fuzzy
  33900. msgid "The Xorg server command to run."
  33901. msgstr "软件包数据类型。"
  33902. #. type: item
  33903. #: guix-git/doc/guix.texi:22415
  33904. #, fuzzy, no-wrap
  33905. msgid "@code{session-wrapper} (type: file-like)"
  33906. msgstr "@code{xfce}(默认值:@code{xfce})"
  33907. #. type: table
  33908. #: guix-git/doc/guix.texi:22417
  33909. #, fuzzy
  33910. msgid "The xinitrc session wrapper to use."
  33911. msgstr "软件包数据类型。"
  33912. #. type: table
  33913. #: guix-git/doc/guix.texi:22420
  33914. msgid "Extra configuration values to append to the seat configuration section."
  33915. msgstr ""
  33916. #. type: cindex
  33917. #: guix-git/doc/guix.texi:22426
  33918. #, no-wrap
  33919. msgid "Xorg, configuration"
  33920. msgstr ""
  33921. #. type: deftp
  33922. #: guix-git/doc/guix.texi:22427
  33923. #, no-wrap
  33924. msgid "{Data Type} xorg-configuration"
  33925. msgstr ""
  33926. #. type: deftp
  33927. #: guix-git/doc/guix.texi:22433
  33928. 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, LightDM or SLiM@. Thus, the configuration of these display managers aggregates an @code{xorg-configuration} record."
  33929. msgstr ""
  33930. #. type: item
  33931. #: guix-git/doc/guix.texi:22435
  33932. #, no-wrap
  33933. msgid "@code{modules} (default: @code{%default-xorg-modules})"
  33934. msgstr ""
  33935. #. type: table
  33936. #: guix-git/doc/guix.texi:22438
  33937. 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."
  33938. msgstr ""
  33939. #. type: item
  33940. #: guix-git/doc/guix.texi:22439
  33941. #, no-wrap
  33942. msgid "@code{fonts} (default: @code{%default-xorg-fonts})"
  33943. msgstr ""
  33944. #. type: table
  33945. #: guix-git/doc/guix.texi:22441
  33946. msgid "This is a list of font directories to add to the server's @dfn{font path}."
  33947. msgstr ""
  33948. #. type: item
  33949. #: guix-git/doc/guix.texi:22442
  33950. #, no-wrap
  33951. msgid "@code{drivers} (default: @code{'()})"
  33952. msgstr ""
  33953. #. type: table
  33954. #: guix-git/doc/guix.texi:22446
  33955. 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\")}."
  33956. msgstr ""
  33957. #. type: item
  33958. #: guix-git/doc/guix.texi:22447
  33959. #, no-wrap
  33960. msgid "@code{resolutions} (default: @code{'()})"
  33961. msgstr ""
  33962. #. type: table
  33963. #: guix-git/doc/guix.texi:22451
  33964. 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))}."
  33965. msgstr ""
  33966. #. type: cindex
  33967. #: guix-git/doc/guix.texi:22452
  33968. #, no-wrap
  33969. msgid "keyboard layout, for Xorg"
  33970. msgstr ""
  33971. #. type: cindex
  33972. #: guix-git/doc/guix.texi:22453
  33973. #, no-wrap
  33974. msgid "keymap, for Xorg"
  33975. msgstr ""
  33976. #. type: table
  33977. #: guix-git/doc/guix.texi:22457
  33978. msgid "If this is @code{#f}, Xorg uses the default keyboard layout---usually US English (``qwerty'') for a 105-key PC keyboard."
  33979. msgstr ""
  33980. #. type: table
  33981. #: guix-git/doc/guix.texi:22461
  33982. 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."
  33983. msgstr ""
  33984. #. type: item
  33985. #: guix-git/doc/guix.texi:22462 guix-git/doc/guix.texi:24802
  33986. #: guix-git/doc/guix.texi:38747
  33987. #, no-wrap
  33988. msgid "@code{extra-config} (default: @code{'()})"
  33989. msgstr ""
  33990. #. type: table
  33991. #: guix-git/doc/guix.texi:22465 guix-git/doc/guix.texi:38751
  33992. 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."
  33993. msgstr ""
  33994. #. type: item
  33995. #: guix-git/doc/guix.texi:22466
  33996. #, no-wrap
  33997. msgid "@code{server} (default: @code{xorg-server})"
  33998. msgstr ""
  33999. #. type: table
  34000. #: guix-git/doc/guix.texi:22468
  34001. msgid "This is the package providing the Xorg server."
  34002. msgstr ""
  34003. #. type: item
  34004. #: guix-git/doc/guix.texi:22469
  34005. #, no-wrap
  34006. msgid "@code{server-arguments} (default: @code{%default-xorg-server-arguments})"
  34007. msgstr ""
  34008. #. type: table
  34009. #: guix-git/doc/guix.texi:22472
  34010. msgid "This is the list of command-line arguments to pass to the X server. The default is @code{-nolisten tcp}."
  34011. msgstr ""
  34012. #. type: defun
  34013. #: guix-git/doc/guix.texi:22475
  34014. #, fuzzy, no-wrap
  34015. msgid "set-xorg-configuration config [login-manager-service-type]"
  34016. msgstr "管理操作系统配置。"
  34017. #. type: defun
  34018. #: guix-git/doc/guix.texi:22478
  34019. msgid "Tell the log-in manager (of type @var{login-manager-service-type}) to use @var{config}, an @code{<xorg-configuration>} record."
  34020. msgstr ""
  34021. #. type: defun
  34022. #: guix-git/doc/guix.texi:22482
  34023. 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."
  34024. msgstr ""
  34025. #. type: defun
  34026. #: guix-git/doc/guix.texi:22484
  34027. #, no-wrap
  34028. msgid "xorg-start-command [config]"
  34029. msgstr ""
  34030. #. type: defun
  34031. #: guix-git/doc/guix.texi:22488
  34032. 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}."
  34033. msgstr ""
  34034. #. type: defun
  34035. #: guix-git/doc/guix.texi:22490
  34036. msgid "Usually the X server is started by a login manager."
  34037. msgstr ""
  34038. #. type: defvar
  34039. #: guix-git/doc/guix.texi:22493
  34040. #, fuzzy, no-wrap
  34041. msgid "screen-locker-service-type"
  34042. msgstr "邮件服务"
  34043. #. type: defvar
  34044. #: guix-git/doc/guix.texi:22497
  34045. msgid "Type for a service that adds a package for a screen locker or screen saver to the set of setuid programs and add a PAM entry for it. The value for this service is a @code{<screen-locker-configuration>} object."
  34046. msgstr ""
  34047. #. type: defvar
  34048. #: guix-git/doc/guix.texi:22499
  34049. msgid "For example, to make XlockMore usable:"
  34050. msgstr ""
  34051. #. type: lisp
  34052. #: guix-git/doc/guix.texi:22504
  34053. #, no-wrap
  34054. msgid ""
  34055. "(service screen-locker-service-type\n"
  34056. " (screen-locker-configuration\n"
  34057. " \"xlock\" (file-append xlockmore \"/bin/xlock\") #f))\n"
  34058. msgstr ""
  34059. "(service screen-locker-service-type\n"
  34060. " (screen-locker-configuration\n"
  34061. " \"xlock\" (file-append xlockmore \"/bin/xlock\") #f))\n"
  34062. #. type: defvar
  34063. #: guix-git/doc/guix.texi:22507
  34064. msgid "makes the good ol' XlockMore usable."
  34065. msgstr ""
  34066. #. type: deftp
  34067. #: guix-git/doc/guix.texi:22509
  34068. #, fuzzy, no-wrap
  34069. msgid "{Data Type} screen-locker-configuration"
  34070. msgstr "{数据类型} build-machine"
  34071. #. type: deftp
  34072. #: guix-git/doc/guix.texi:22512
  34073. #, fuzzy
  34074. msgid "Data type representing the configuration of @code{screen-locker-service-type}."
  34075. msgstr "管理操作系统配置。"
  34076. #. type: table
  34077. #: guix-git/doc/guix.texi:22516
  34078. #, fuzzy
  34079. msgid "Name of the screen locker."
  34080. msgstr "仓库的纯函数式接口。"
  34081. #. type: item
  34082. #: guix-git/doc/guix.texi:22517
  34083. #, fuzzy, no-wrap
  34084. msgid "@code{program} (type: gexp)"
  34085. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  34086. #. type: table
  34087. #: guix-git/doc/guix.texi:22519
  34088. msgid "Path to the executable for the screen locker as a G-Expression."
  34089. msgstr ""
  34090. #. type: item
  34091. #: guix-git/doc/guix.texi:22520
  34092. #, fuzzy, no-wrap
  34093. msgid "@code{allow-empty-password?} (type: boolean)"
  34094. msgstr "@code{port}(默认值:@code{22})"
  34095. #. type: cindex
  34096. #: guix-git/doc/guix.texi:22529
  34097. #, no-wrap
  34098. msgid "printer support with CUPS"
  34099. msgstr ""
  34100. #. type: Plain text
  34101. #: guix-git/doc/guix.texi:22533
  34102. 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:"
  34103. msgstr ""
  34104. #. type: defvar
  34105. #: guix-git/doc/guix.texi:22534
  34106. #, fuzzy, no-wrap
  34107. msgid "cups-service-type"
  34108. msgstr "邮件服务"
  34109. #. type: defvar
  34110. #: guix-git/doc/guix.texi:22538
  34111. 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:"
  34112. msgstr ""
  34113. #. type: lisp
  34114. #: guix-git/doc/guix.texi:22540
  34115. #, no-wrap
  34116. msgid "(service cups-service-type)\n"
  34117. msgstr ""
  34118. #. type: Plain text
  34119. #: guix-git/doc/guix.texi:22550
  34120. 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."
  34121. msgstr ""
  34122. #. type: Plain text
  34123. #: guix-git/doc/guix.texi:22556
  34124. 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):"
  34125. msgstr ""
  34126. #. type: lisp
  34127. #: guix-git/doc/guix.texi:22563
  34128. #, no-wrap
  34129. msgid ""
  34130. "(service cups-service-type\n"
  34131. " (cups-configuration\n"
  34132. " (web-interface? #t)\n"
  34133. " (extensions\n"
  34134. " (list cups-filters epson-inkjet-printer-escpr hplip-minimal))))\n"
  34135. msgstr ""
  34136. #. type: quotation
  34137. #: guix-git/doc/guix.texi:22569
  34138. msgid "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."
  34139. msgstr ""
  34140. #. type: Plain text
  34141. #: guix-git/doc/guix.texi:22577
  34142. 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."
  34143. msgstr ""
  34144. #. type: Plain text
  34145. #: guix-git/doc/guix.texi:22588
  34146. msgid "Available @code{cups-configuration} fields are:"
  34147. msgstr ""
  34148. #. type: deftypevr
  34149. #: guix-git/doc/guix.texi:22589
  34150. #, no-wrap
  34151. msgid "{@code{cups-configuration} parameter} package cups"
  34152. msgstr ""
  34153. #. type: deftypevr
  34154. #: guix-git/doc/guix.texi:22591 guix-git/doc/guix.texi:23326
  34155. msgid "The CUPS package."
  34156. msgstr ""
  34157. #. type: deftypevr
  34158. #: guix-git/doc/guix.texi:22593
  34159. #, no-wrap
  34160. msgid "{@code{cups-configuration} parameter} package-list extensions (default: @code{(list brlaser cups-filters epson-inkjet-printer-escpr foomatic-filters hplip-minimal splix)})"
  34161. msgstr ""
  34162. #. type: deftypevr
  34163. #: guix-git/doc/guix.texi:22595
  34164. msgid "Drivers and other extensions to the CUPS package."
  34165. msgstr ""
  34166. #. type: deftypevr
  34167. #: guix-git/doc/guix.texi:22597
  34168. #, no-wrap
  34169. msgid "{@code{cups-configuration} parameter} files-configuration files-configuration"
  34170. msgstr ""
  34171. #. type: deftypevr
  34172. #: guix-git/doc/guix.texi:22600
  34173. msgid "Configuration of where to write logs, what directories to use for print spools, and related privileged configuration parameters."
  34174. msgstr ""
  34175. #. type: deftypevr
  34176. #: guix-git/doc/guix.texi:22602
  34177. msgid "Available @code{files-configuration} fields are:"
  34178. msgstr ""
  34179. #. type: deftypevr
  34180. #: guix-git/doc/guix.texi:22603
  34181. #, no-wrap
  34182. msgid "{@code{files-configuration} parameter} log-location access-log"
  34183. msgstr ""
  34184. #. type: deftypevr
  34185. #: guix-git/doc/guix.texi:22611
  34186. 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}."
  34187. msgstr ""
  34188. #. type: deftypevr
  34189. #: guix-git/doc/guix.texi:22613
  34190. msgid "Defaults to @samp{\"/var/log/cups/access_log\"}."
  34191. msgstr ""
  34192. #. type: deftypevr
  34193. #: guix-git/doc/guix.texi:22615
  34194. #, no-wrap
  34195. msgid "{@code{files-configuration} parameter} file-name cache-dir"
  34196. msgstr ""
  34197. #. type: deftypevr
  34198. #: guix-git/doc/guix.texi:22617
  34199. msgid "Where CUPS should cache data."
  34200. msgstr ""
  34201. #. type: deftypevr
  34202. #: guix-git/doc/guix.texi:22619
  34203. msgid "Defaults to @samp{\"/var/cache/cups\"}."
  34204. msgstr ""
  34205. #. type: deftypevr
  34206. #: guix-git/doc/guix.texi:22621
  34207. #, no-wrap
  34208. msgid "{@code{files-configuration} parameter} string config-file-perm"
  34209. msgstr ""
  34210. #. type: deftypevr
  34211. #: guix-git/doc/guix.texi:22624
  34212. msgid "Specifies the permissions for all configuration files that the scheduler writes."
  34213. msgstr ""
  34214. #. type: deftypevr
  34215. #: guix-git/doc/guix.texi:22630
  34216. 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."
  34217. msgstr ""
  34218. #. type: deftypevr
  34219. #: guix-git/doc/guix.texi:22632
  34220. msgid "Defaults to @samp{\"0640\"}."
  34221. msgstr ""
  34222. #. type: deftypevr
  34223. #: guix-git/doc/guix.texi:22634
  34224. #, no-wrap
  34225. msgid "{@code{files-configuration} parameter} log-location error-log"
  34226. msgstr ""
  34227. #. type: deftypevr
  34228. #: guix-git/doc/guix.texi:22642
  34229. 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}."
  34230. msgstr ""
  34231. #. type: deftypevr
  34232. #: guix-git/doc/guix.texi:22644
  34233. msgid "Defaults to @samp{\"/var/log/cups/error_log\"}."
  34234. msgstr ""
  34235. #. type: deftypevr
  34236. #: guix-git/doc/guix.texi:22646
  34237. #, no-wrap
  34238. msgid "{@code{files-configuration} parameter} string fatal-errors"
  34239. msgstr ""
  34240. #. type: deftypevr
  34241. #: guix-git/doc/guix.texi:22649
  34242. msgid "Specifies which errors are fatal, causing the scheduler to exit. The kind strings are:"
  34243. msgstr ""
  34244. #. type: table
  34245. #: guix-git/doc/guix.texi:22653
  34246. msgid "No errors are fatal."
  34247. msgstr ""
  34248. #. type: table
  34249. #: guix-git/doc/guix.texi:22656
  34250. msgid "All of the errors below are fatal."
  34251. msgstr ""
  34252. #. type: item
  34253. #: guix-git/doc/guix.texi:22657
  34254. #, no-wrap
  34255. msgid "browse"
  34256. msgstr ""
  34257. #. type: table
  34258. #: guix-git/doc/guix.texi:22660
  34259. msgid "Browsing initialization errors are fatal, for example failed connections to the DNS-SD daemon."
  34260. msgstr ""
  34261. #. type: item
  34262. #: guix-git/doc/guix.texi:22661
  34263. #, no-wrap
  34264. msgid "config"
  34265. msgstr ""
  34266. #. type: table
  34267. #: guix-git/doc/guix.texi:22663
  34268. msgid "Configuration file syntax errors are fatal."
  34269. msgstr ""
  34270. #. type: item
  34271. #: guix-git/doc/guix.texi:22664
  34272. #, no-wrap
  34273. msgid "listen"
  34274. msgstr ""
  34275. #. type: table
  34276. #: guix-git/doc/guix.texi:22667
  34277. msgid "Listen or Port errors are fatal, except for IPv6 failures on the loopback or @code{any} addresses."
  34278. msgstr ""
  34279. #. type: item
  34280. #: guix-git/doc/guix.texi:22668
  34281. #, no-wrap
  34282. msgid "log"
  34283. msgstr ""
  34284. #. type: table
  34285. #: guix-git/doc/guix.texi:22670
  34286. msgid "Log file creation or write errors are fatal."
  34287. msgstr ""
  34288. #. type: item
  34289. #: guix-git/doc/guix.texi:22671
  34290. #, no-wrap
  34291. msgid "permissions"
  34292. msgstr ""
  34293. #. type: table
  34294. #: guix-git/doc/guix.texi:22674
  34295. msgid "Bad startup file permissions are fatal, for example shared TLS certificate and key files with world-read permissions."
  34296. msgstr ""
  34297. #. type: deftypevr
  34298. #: guix-git/doc/guix.texi:22677
  34299. msgid "Defaults to @samp{\"all -browse\"}."
  34300. msgstr ""
  34301. #. type: deftypevr
  34302. #: guix-git/doc/guix.texi:22679
  34303. #, no-wrap
  34304. msgid "{@code{files-configuration} parameter} boolean file-device?"
  34305. msgstr ""
  34306. #. type: deftypevr
  34307. #: guix-git/doc/guix.texi:22682
  34308. msgid "Specifies whether the file pseudo-device can be used for new printer queues. The URI @uref{file:///dev/null} is always allowed."
  34309. msgstr ""
  34310. #. type: deftypevr
  34311. #: guix-git/doc/guix.texi:22684 guix-git/doc/guix.texi:22760
  34312. #: guix-git/doc/guix.texi:22802 guix-git/doc/guix.texi:22821
  34313. #: guix-git/doc/guix.texi:22827 guix-git/doc/guix.texi:22915
  34314. #: guix-git/doc/guix.texi:22992 guix-git/doc/guix.texi:23300
  34315. #: guix-git/doc/guix.texi:23313 guix-git/doc/guix.texi:25072
  34316. #: guix-git/doc/guix.texi:26560 guix-git/doc/guix.texi:26666
  34317. #: guix-git/doc/guix.texi:26731 guix-git/doc/guix.texi:26740
  34318. #: guix-git/doc/guix.texi:27986 guix-git/doc/guix.texi:28030
  34319. #: guix-git/doc/guix.texi:28047 guix-git/doc/guix.texi:28055
  34320. #: guix-git/doc/guix.texi:28070 guix-git/doc/guix.texi:28088
  34321. #: guix-git/doc/guix.texi:28112 guix-git/doc/guix.texi:28165
  34322. #: guix-git/doc/guix.texi:28298 guix-git/doc/guix.texi:28332
  34323. #: guix-git/doc/guix.texi:28368 guix-git/doc/guix.texi:28384
  34324. #: guix-git/doc/guix.texi:28412 guix-git/doc/guix.texi:28473
  34325. #: guix-git/doc/guix.texi:28556 guix-git/doc/guix.texi:33544
  34326. #: guix-git/doc/guix.texi:33558 guix-git/doc/guix.texi:33758
  34327. #: guix-git/doc/guix.texi:33803 guix-git/doc/guix.texi:33890
  34328. #: guix-git/doc/guix.texi:34344 guix-git/doc/guix.texi:34377
  34329. #: guix-git/doc/guix.texi:34517 guix-git/doc/guix.texi:34528
  34330. #: guix-git/doc/guix.texi:34779 guix-git/doc/guix.texi:36321
  34331. #: guix-git/doc/guix.texi:36330 guix-git/doc/guix.texi:36338
  34332. #: guix-git/doc/guix.texi:36346 guix-git/doc/guix.texi:36362
  34333. #: guix-git/doc/guix.texi:36378 guix-git/doc/guix.texi:36386
  34334. #: guix-git/doc/guix.texi:36394 guix-git/doc/guix.texi:36403
  34335. #: guix-git/doc/guix.texi:36412 guix-git/doc/guix.texi:36428
  34336. #: guix-git/doc/guix.texi:36492 guix-git/doc/guix.texi:36598
  34337. #: guix-git/doc/guix.texi:36606 guix-git/doc/guix.texi:36614
  34338. #: guix-git/doc/guix.texi:36639 guix-git/doc/guix.texi:36693
  34339. #: guix-git/doc/guix.texi:36741 guix-git/doc/guix.texi:36942
  34340. #: guix-git/doc/guix.texi:36949
  34341. msgid "Defaults to @samp{#f}."
  34342. msgstr ""
  34343. #. type: deftypevr
  34344. #: guix-git/doc/guix.texi:22686
  34345. #, no-wrap
  34346. msgid "{@code{files-configuration} parameter} string group"
  34347. msgstr ""
  34348. #. type: deftypevr
  34349. #: guix-git/doc/guix.texi:22689
  34350. msgid "Specifies the group name or ID that will be used when executing external programs."
  34351. msgstr ""
  34352. #. type: deftypevr
  34353. #: guix-git/doc/guix.texi:22691 guix-git/doc/guix.texi:22777
  34354. msgid "Defaults to @samp{\"lp\"}."
  34355. msgstr ""
  34356. #. type: deftypevr
  34357. #: guix-git/doc/guix.texi:22693
  34358. #, no-wrap
  34359. msgid "{@code{files-configuration} parameter} string log-file-group"
  34360. msgstr ""
  34361. #. type: deftypevr
  34362. #: guix-git/doc/guix.texi:22695
  34363. msgid "Specifies the group name or ID that will be used for log files."
  34364. msgstr ""
  34365. #. type: deftypevr
  34366. #: guix-git/doc/guix.texi:22697
  34367. msgid "Defaults to @samp{\"lpadmin\"}."
  34368. msgstr ""
  34369. #. type: deftypevr
  34370. #: guix-git/doc/guix.texi:22699
  34371. #, no-wrap
  34372. msgid "{@code{files-configuration} parameter} string log-file-perm"
  34373. msgstr ""
  34374. #. type: deftypevr
  34375. #: guix-git/doc/guix.texi:22701
  34376. msgid "Specifies the permissions for all log files that the scheduler writes."
  34377. msgstr ""
  34378. #. type: deftypevr
  34379. #: guix-git/doc/guix.texi:22703
  34380. msgid "Defaults to @samp{\"0644\"}."
  34381. msgstr ""
  34382. #. type: deftypevr
  34383. #: guix-git/doc/guix.texi:22705
  34384. #, no-wrap
  34385. msgid "{@code{files-configuration} parameter} log-location page-log"
  34386. msgstr ""
  34387. #. type: deftypevr
  34388. #: guix-git/doc/guix.texi:22713
  34389. 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}."
  34390. msgstr ""
  34391. #. type: deftypevr
  34392. #: guix-git/doc/guix.texi:22715
  34393. msgid "Defaults to @samp{\"/var/log/cups/page_log\"}."
  34394. msgstr ""
  34395. #. type: deftypevr
  34396. #: guix-git/doc/guix.texi:22717
  34397. #, no-wrap
  34398. msgid "{@code{files-configuration} parameter} string remote-root"
  34399. msgstr ""
  34400. #. type: deftypevr
  34401. #: guix-git/doc/guix.texi:22720
  34402. msgid "Specifies the username that is associated with unauthenticated accesses by clients claiming to be the root user. The default is @code{remroot}."
  34403. msgstr ""
  34404. #. type: deftypevr
  34405. #: guix-git/doc/guix.texi:22722
  34406. msgid "Defaults to @samp{\"remroot\"}."
  34407. msgstr ""
  34408. #. type: deftypevr
  34409. #: guix-git/doc/guix.texi:22724
  34410. #, no-wrap
  34411. msgid "{@code{files-configuration} parameter} file-name request-root"
  34412. msgstr ""
  34413. #. type: deftypevr
  34414. #: guix-git/doc/guix.texi:22727
  34415. msgid "Specifies the directory that contains print jobs and other HTTP request data."
  34416. msgstr ""
  34417. #. type: deftypevr
  34418. #: guix-git/doc/guix.texi:22729
  34419. msgid "Defaults to @samp{\"/var/spool/cups\"}."
  34420. msgstr ""
  34421. #. type: deftypevr
  34422. #: guix-git/doc/guix.texi:22731
  34423. #, no-wrap
  34424. msgid "{@code{files-configuration} parameter} sandboxing sandboxing"
  34425. msgstr ""
  34426. #. type: deftypevr
  34427. #: guix-git/doc/guix.texi:22736
  34428. 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."
  34429. msgstr ""
  34430. #. type: deftypevr
  34431. #: guix-git/doc/guix.texi:22738
  34432. msgid "Defaults to @samp{strict}."
  34433. msgstr ""
  34434. #. type: deftypevr
  34435. #: guix-git/doc/guix.texi:22740
  34436. #, no-wrap
  34437. msgid "{@code{files-configuration} parameter} file-name server-keychain"
  34438. msgstr ""
  34439. #. type: deftypevr
  34440. #: guix-git/doc/guix.texi:22745
  34441. 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."
  34442. msgstr ""
  34443. #. type: deftypevr
  34444. #: guix-git/doc/guix.texi:22747
  34445. msgid "Defaults to @samp{\"/etc/cups/ssl\"}."
  34446. msgstr ""
  34447. #. type: deftypevr
  34448. #: guix-git/doc/guix.texi:22749
  34449. #, no-wrap
  34450. msgid "{@code{files-configuration} parameter} file-name server-root"
  34451. msgstr ""
  34452. #. type: deftypevr
  34453. #: guix-git/doc/guix.texi:22751
  34454. msgid "Specifies the directory containing the server configuration files."
  34455. msgstr ""
  34456. #. type: deftypevr
  34457. #: guix-git/doc/guix.texi:22753
  34458. msgid "Defaults to @samp{\"/etc/cups\"}."
  34459. msgstr ""
  34460. #. type: deftypevr
  34461. #: guix-git/doc/guix.texi:22755
  34462. #, no-wrap
  34463. msgid "{@code{files-configuration} parameter} boolean sync-on-close?"
  34464. msgstr ""
  34465. #. type: deftypevr
  34466. #: guix-git/doc/guix.texi:22758
  34467. msgid "Specifies whether the scheduler calls fsync(2) after writing configuration or state files."
  34468. msgstr ""
  34469. #. type: deftypevr
  34470. #: guix-git/doc/guix.texi:22762
  34471. #, no-wrap
  34472. msgid "{@code{files-configuration} parameter} space-separated-string-list system-group"
  34473. msgstr ""
  34474. #. type: deftypevr
  34475. #: guix-git/doc/guix.texi:22764
  34476. msgid "Specifies the group(s) to use for @code{@@SYSTEM} group authentication."
  34477. msgstr ""
  34478. #. type: deftypevr
  34479. #: guix-git/doc/guix.texi:22766
  34480. #, no-wrap
  34481. msgid "{@code{files-configuration} parameter} file-name temp-dir"
  34482. msgstr ""
  34483. #. type: deftypevr
  34484. #: guix-git/doc/guix.texi:22768
  34485. msgid "Specifies the directory where temporary files are stored."
  34486. msgstr ""
  34487. #. type: deftypevr
  34488. #: guix-git/doc/guix.texi:22770
  34489. msgid "Defaults to @samp{\"/var/spool/cups/tmp\"}."
  34490. msgstr ""
  34491. #. type: deftypevr
  34492. #: guix-git/doc/guix.texi:22772
  34493. #, no-wrap
  34494. msgid "{@code{files-configuration} parameter} string user"
  34495. msgstr ""
  34496. #. type: deftypevr
  34497. #: guix-git/doc/guix.texi:22775
  34498. msgid "Specifies the user name or ID that is used when running external programs."
  34499. msgstr ""
  34500. #. type: deftypevr
  34501. #: guix-git/doc/guix.texi:22779
  34502. #, no-wrap
  34503. msgid "{@code{files-configuration} parameter} string set-env"
  34504. msgstr ""
  34505. #. type: deftypevr
  34506. #: guix-git/doc/guix.texi:22781
  34507. msgid "Set the specified environment variable to be passed to child processes."
  34508. msgstr ""
  34509. #. type: deftypevr
  34510. #: guix-git/doc/guix.texi:22783
  34511. msgid "Defaults to @samp{\"variable value\"}."
  34512. msgstr ""
  34513. #. type: deftypevr
  34514. #: guix-git/doc/guix.texi:22786
  34515. #, no-wrap
  34516. msgid "{@code{cups-configuration} parameter} access-log-level access-log-level"
  34517. msgstr ""
  34518. #. type: deftypevr
  34519. #: guix-git/doc/guix.texi:22793
  34520. 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."
  34521. msgstr ""
  34522. #. type: deftypevr
  34523. #: guix-git/doc/guix.texi:22795
  34524. msgid "Defaults to @samp{actions}."
  34525. msgstr ""
  34526. #. type: deftypevr
  34527. #: guix-git/doc/guix.texi:22797
  34528. #, no-wrap
  34529. msgid "{@code{cups-configuration} parameter} boolean auto-purge-jobs?"
  34530. msgstr ""
  34531. #. type: deftypevr
  34532. #: guix-git/doc/guix.texi:22800
  34533. msgid "Specifies whether to purge job history data automatically when it is no longer required for quotas."
  34534. msgstr ""
  34535. #. type: deftypevr
  34536. #: guix-git/doc/guix.texi:22804
  34537. #, no-wrap
  34538. msgid "{@code{cups-configuration} parameter} comma-separated-string-list browse-dns-sd-sub-types"
  34539. msgstr ""
  34540. #. type: deftypevr
  34541. #: guix-git/doc/guix.texi:22806
  34542. msgid "Specifies a list of DNS-SD sub-types to advertise for each shared printer."
  34543. msgstr ""
  34544. #. type: deftypevr
  34545. #: guix-git/doc/guix.texi:22809
  34546. msgid "The default @samp{(list \"_cups\" \"_print\" \"_universal\")} tells clients that CUPS sharing, IPP Everywhere, AirPrint, and Mopria are supported."
  34547. msgstr ""
  34548. #. type: deftypevr
  34549. #: guix-git/doc/guix.texi:22811
  34550. #, no-wrap
  34551. msgid "{@code{cups-configuration} parameter} browse-local-protocols browse-local-protocols"
  34552. msgstr ""
  34553. #. type: deftypevr
  34554. #: guix-git/doc/guix.texi:22813
  34555. msgid "Specifies which protocols to use for local printer sharing."
  34556. msgstr ""
  34557. #. type: deftypevr
  34558. #: guix-git/doc/guix.texi:22815
  34559. msgid "Defaults to @samp{dnssd}."
  34560. msgstr ""
  34561. #. type: deftypevr
  34562. #: guix-git/doc/guix.texi:22817
  34563. #, no-wrap
  34564. msgid "{@code{cups-configuration} parameter} boolean browse-web-if?"
  34565. msgstr ""
  34566. #. type: deftypevr
  34567. #: guix-git/doc/guix.texi:22819
  34568. msgid "Specifies whether the CUPS web interface is advertised."
  34569. msgstr ""
  34570. #. type: deftypevr
  34571. #: guix-git/doc/guix.texi:22823
  34572. #, no-wrap
  34573. msgid "{@code{cups-configuration} parameter} boolean browsing?"
  34574. msgstr ""
  34575. #. type: deftypevr
  34576. #: guix-git/doc/guix.texi:22825
  34577. msgid "Specifies whether shared printers are advertised."
  34578. msgstr ""
  34579. #. type: deftypevr
  34580. #: guix-git/doc/guix.texi:22829
  34581. #, no-wrap
  34582. msgid "{@code{cups-configuration} parameter} default-auth-type default-auth-type"
  34583. msgstr ""
  34584. #. type: deftypevr
  34585. #: guix-git/doc/guix.texi:22831
  34586. msgid "Specifies the default type of authentication to use."
  34587. msgstr ""
  34588. #. type: deftypevr
  34589. #: guix-git/doc/guix.texi:22833
  34590. msgid "Defaults to @samp{Basic}."
  34591. msgstr ""
  34592. #. type: deftypevr
  34593. #: guix-git/doc/guix.texi:22835
  34594. #, no-wrap
  34595. msgid "{@code{cups-configuration} parameter} default-encryption default-encryption"
  34596. msgstr ""
  34597. #. type: deftypevr
  34598. #: guix-git/doc/guix.texi:22837
  34599. msgid "Specifies whether encryption will be used for authenticated requests."
  34600. msgstr ""
  34601. #. type: deftypevr
  34602. #: guix-git/doc/guix.texi:22839
  34603. msgid "Defaults to @samp{Required}."
  34604. msgstr ""
  34605. #. type: deftypevr
  34606. #: guix-git/doc/guix.texi:22841
  34607. #, no-wrap
  34608. msgid "{@code{cups-configuration} parameter} string default-language"
  34609. msgstr ""
  34610. #. type: deftypevr
  34611. #: guix-git/doc/guix.texi:22843
  34612. msgid "Specifies the default language to use for text and web content."
  34613. msgstr ""
  34614. #. type: deftypevr
  34615. #: guix-git/doc/guix.texi:22845
  34616. msgid "Defaults to @samp{\"en\"}."
  34617. msgstr ""
  34618. #. type: deftypevr
  34619. #: guix-git/doc/guix.texi:22847
  34620. #, no-wrap
  34621. msgid "{@code{cups-configuration} parameter} string default-paper-size"
  34622. msgstr ""
  34623. #. type: deftypevr
  34624. #: guix-git/doc/guix.texi:22852
  34625. 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\"}."
  34626. msgstr ""
  34627. #. type: deftypevr
  34628. #: guix-git/doc/guix.texi:22854
  34629. msgid "Defaults to @samp{\"Auto\"}."
  34630. msgstr ""
  34631. #. type: deftypevr
  34632. #: guix-git/doc/guix.texi:22856
  34633. #, no-wrap
  34634. msgid "{@code{cups-configuration} parameter} string default-policy"
  34635. msgstr ""
  34636. #. type: deftypevr
  34637. #: guix-git/doc/guix.texi:22858
  34638. msgid "Specifies the default access policy to use."
  34639. msgstr ""
  34640. #. type: deftypevr
  34641. #: guix-git/doc/guix.texi:22860
  34642. msgid "Defaults to @samp{\"default\"}."
  34643. msgstr ""
  34644. #. type: deftypevr
  34645. #: guix-git/doc/guix.texi:22862
  34646. #, no-wrap
  34647. msgid "{@code{cups-configuration} parameter} boolean default-shared?"
  34648. msgstr ""
  34649. #. type: deftypevr
  34650. #: guix-git/doc/guix.texi:22864
  34651. msgid "Specifies whether local printers are shared by default."
  34652. msgstr ""
  34653. #. type: deftypevr
  34654. #: guix-git/doc/guix.texi:22866 guix-git/doc/guix.texi:22946
  34655. #: guix-git/doc/guix.texi:23216 guix-git/doc/guix.texi:26657
  34656. #: guix-git/doc/guix.texi:26708 guix-git/doc/guix.texi:26715
  34657. #: guix-git/doc/guix.texi:28010 guix-git/doc/guix.texi:28198
  34658. #: guix-git/doc/guix.texi:28315 guix-git/doc/guix.texi:28351
  34659. #: guix-git/doc/guix.texi:28402 guix-git/doc/guix.texi:28421
  34660. #: guix-git/doc/guix.texi:28431 guix-git/doc/guix.texi:28441
  34661. #: guix-git/doc/guix.texi:28500 guix-git/doc/guix.texi:28522
  34662. #: guix-git/doc/guix.texi:28547 guix-git/doc/guix.texi:28573
  34663. #: guix-git/doc/guix.texi:28591 guix-git/doc/guix.texi:32148
  34664. #: guix-git/doc/guix.texi:32176 guix-git/doc/guix.texi:33411
  34665. #: guix-git/doc/guix.texi:33551 guix-git/doc/guix.texi:33765
  34666. #: guix-git/doc/guix.texi:33772 guix-git/doc/guix.texi:33794
  34667. #: guix-git/doc/guix.texi:33833 guix-git/doc/guix.texi:33853
  34668. #: guix-git/doc/guix.texi:33867 guix-git/doc/guix.texi:34332
  34669. #: guix-git/doc/guix.texi:36266 guix-git/doc/guix.texi:36354
  34670. #: guix-git/doc/guix.texi:36370 guix-git/doc/guix.texi:36420
  34671. msgid "Defaults to @samp{#t}."
  34672. msgstr ""
  34673. #. type: deftypevr
  34674. #: guix-git/doc/guix.texi:22868
  34675. #, no-wrap
  34676. msgid "{@code{cups-configuration} parameter} non-negative-integer dirty-clean-interval"
  34677. msgstr ""
  34678. #. type: deftypevr
  34679. #: guix-git/doc/guix.texi:22872
  34680. 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."
  34681. msgstr ""
  34682. #. type: deftypevr
  34683. #: guix-git/doc/guix.texi:22874 guix-git/doc/guix.texi:22922
  34684. #: guix-git/doc/guix.texi:22931 guix-git/doc/guix.texi:23234
  34685. #: guix-git/doc/guix.texi:28360 guix-git/doc/guix.texi:28393
  34686. msgid "Defaults to @samp{30}."
  34687. msgstr ""
  34688. #. type: deftypevr
  34689. #: guix-git/doc/guix.texi:22876
  34690. #, no-wrap
  34691. msgid "{@code{cups-configuration} parameter} error-policy error-policy"
  34692. msgstr ""
  34693. #. type: deftypevr
  34694. #: guix-git/doc/guix.texi:22882
  34695. 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."
  34696. msgstr ""
  34697. #. type: deftypevr
  34698. #: guix-git/doc/guix.texi:22884
  34699. msgid "Defaults to @samp{stop-printer}."
  34700. msgstr ""
  34701. #. type: deftypevr
  34702. #: guix-git/doc/guix.texi:22886
  34703. #, no-wrap
  34704. msgid "{@code{cups-configuration} parameter} non-negative-integer filter-limit"
  34705. msgstr ""
  34706. #. type: deftypevr
  34707. #: guix-git/doc/guix.texi:22894
  34708. 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."
  34709. msgstr ""
  34710. #. type: deftypevr
  34711. #: guix-git/doc/guix.texi:22896 guix-git/doc/guix.texi:22904
  34712. #: guix-git/doc/guix.texi:22953 guix-git/doc/guix.texi:23058
  34713. #: guix-git/doc/guix.texi:23072 guix-git/doc/guix.texi:23079
  34714. #: guix-git/doc/guix.texi:23100 guix-git/doc/guix.texi:23108
  34715. #: guix-git/doc/guix.texi:23116 guix-git/doc/guix.texi:23124
  34716. #: guix-git/doc/guix.texi:25202 guix-git/doc/guix.texi:25218
  34717. #: guix-git/doc/guix.texi:25875 guix-git/doc/guix.texi:25887
  34718. #: guix-git/doc/guix.texi:26676 guix-git/doc/guix.texi:26685
  34719. #: guix-git/doc/guix.texi:26693 guix-git/doc/guix.texi:26701
  34720. #: guix-git/doc/guix.texi:33427 guix-git/doc/guix.texi:33780
  34721. #: guix-git/doc/guix.texi:36259 guix-git/doc/guix.texi:36559
  34722. #: guix-git/doc/guix.texi:36733
  34723. msgid "Defaults to @samp{0}."
  34724. msgstr ""
  34725. #. type: deftypevr
  34726. #: guix-git/doc/guix.texi:22898
  34727. #, no-wrap
  34728. msgid "{@code{cups-configuration} parameter} non-negative-integer filter-nice"
  34729. msgstr ""
  34730. #. type: deftypevr
  34731. #: guix-git/doc/guix.texi:22902
  34732. 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."
  34733. msgstr ""
  34734. #. type: deftypevr
  34735. #: guix-git/doc/guix.texi:22906
  34736. #, no-wrap
  34737. msgid "{@code{cups-configuration} parameter} host-name-lookups host-name-lookups"
  34738. msgstr ""
  34739. #. type: deftypevr
  34740. #: guix-git/doc/guix.texi:22913
  34741. 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."
  34742. msgstr ""
  34743. #. type: deftypevr
  34744. #: guix-git/doc/guix.texi:22917
  34745. #, no-wrap
  34746. msgid "{@code{cups-configuration} parameter} non-negative-integer job-kill-delay"
  34747. msgstr ""
  34748. #. type: deftypevr
  34749. #: guix-git/doc/guix.texi:22920
  34750. msgid "Specifies the number of seconds to wait before killing the filters and backend associated with a canceled or held job."
  34751. msgstr ""
  34752. #. type: deftypevr
  34753. #: guix-git/doc/guix.texi:22924
  34754. #, no-wrap
  34755. msgid "{@code{cups-configuration} parameter} non-negative-integer job-retry-interval"
  34756. msgstr ""
  34757. #. type: deftypevr
  34758. #: guix-git/doc/guix.texi:22929
  34759. 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}."
  34760. msgstr ""
  34761. #. type: deftypevr
  34762. #: guix-git/doc/guix.texi:22933
  34763. #, no-wrap
  34764. msgid "{@code{cups-configuration} parameter} non-negative-integer job-retry-limit"
  34765. msgstr ""
  34766. #. type: deftypevr
  34767. #: guix-git/doc/guix.texi:22938
  34768. 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}."
  34769. msgstr ""
  34770. #. type: deftypevr
  34771. #: guix-git/doc/guix.texi:22940 guix-git/doc/guix.texi:28324
  34772. #: guix-git/doc/guix.texi:34584 guix-git/doc/guix.texi:34604
  34773. #: guix-git/doc/guix.texi:34620 guix-git/doc/guix.texi:34634
  34774. #: guix-git/doc/guix.texi:34641 guix-git/doc/guix.texi:34648
  34775. #: guix-git/doc/guix.texi:34655 guix-git/doc/guix.texi:34815
  34776. #: guix-git/doc/guix.texi:34831 guix-git/doc/guix.texi:34838
  34777. #: guix-git/doc/guix.texi:34845 guix-git/doc/guix.texi:34856
  34778. #: guix-git/doc/guix.texi:36211 guix-git/doc/guix.texi:36219
  34779. #: guix-git/doc/guix.texi:36227 guix-git/doc/guix.texi:36251
  34780. msgid "Defaults to @samp{5}."
  34781. msgstr ""
  34782. #. type: deftypevr
  34783. #: guix-git/doc/guix.texi:22942
  34784. #, no-wrap
  34785. msgid "{@code{cups-configuration} parameter} boolean keep-alive?"
  34786. msgstr ""
  34787. #. type: deftypevr
  34788. #: guix-git/doc/guix.texi:22944
  34789. msgid "Specifies whether to support HTTP keep-alive connections."
  34790. msgstr ""
  34791. #. type: deftypevr
  34792. #: guix-git/doc/guix.texi:22948
  34793. #, no-wrap
  34794. msgid "{@code{cups-configuration} parameter} non-negative-integer limit-request-body"
  34795. msgstr ""
  34796. #. type: deftypevr
  34797. #: guix-git/doc/guix.texi:22951
  34798. msgid "Specifies the maximum size of print files, IPP requests, and HTML form data. A limit of 0 disables the limit check."
  34799. msgstr ""
  34800. #. type: deftypevr
  34801. #: guix-git/doc/guix.texi:22955
  34802. #, no-wrap
  34803. msgid "{@code{cups-configuration} parameter} multiline-string-list listen"
  34804. msgstr ""
  34805. #. type: deftypevr
  34806. #: guix-git/doc/guix.texi:22962
  34807. 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."
  34808. msgstr ""
  34809. #. type: deftypevr
  34810. #: guix-git/doc/guix.texi:22964
  34811. #, no-wrap
  34812. msgid "{@code{cups-configuration} parameter} location-access-control-list location-access-controls"
  34813. msgstr ""
  34814. #. type: deftypevr
  34815. #: guix-git/doc/guix.texi:22966
  34816. msgid "Specifies a set of additional access controls."
  34817. msgstr ""
  34818. #. type: deftypevr
  34819. #: guix-git/doc/guix.texi:22968
  34820. msgid "Available @code{location-access-controls} fields are:"
  34821. msgstr ""
  34822. #. type: deftypevr
  34823. #: guix-git/doc/guix.texi:22969
  34824. #, no-wrap
  34825. msgid "{@code{location-access-controls} parameter} file-name path"
  34826. msgstr ""
  34827. #. type: deftypevr
  34828. #: guix-git/doc/guix.texi:22971
  34829. msgid "Specifies the URI path to which the access control applies."
  34830. msgstr ""
  34831. #. type: deftypevr
  34832. #: guix-git/doc/guix.texi:22973
  34833. #, no-wrap
  34834. msgid "{@code{location-access-controls} parameter} access-control-list access-controls"
  34835. msgstr ""
  34836. #. type: deftypevr
  34837. #: guix-git/doc/guix.texi:22976
  34838. msgid "Access controls for all access to this path, in the same format as the @code{access-controls} of @code{operation-access-control}."
  34839. msgstr ""
  34840. #. type: deftypevr
  34841. #: guix-git/doc/guix.texi:22978 guix-git/doc/guix.texi:22984
  34842. #: guix-git/doc/guix.texi:22998 guix-git/doc/guix.texi:23005
  34843. #: guix-git/doc/guix.texi:23138 guix-git/doc/guix.texi:23197
  34844. #: guix-git/doc/guix.texi:23279 guix-git/doc/guix.texi:23293
  34845. #: guix-git/doc/guix.texi:25082 guix-git/doc/guix.texi:25091
  34846. #: guix-git/doc/guix.texi:26361 guix-git/doc/guix.texi:26574
  34847. #: guix-git/doc/guix.texi:26602 guix-git/doc/guix.texi:26632
  34848. #: guix-git/doc/guix.texi:26747 guix-git/doc/guix.texi:26760
  34849. #: guix-git/doc/guix.texi:26767 guix-git/doc/guix.texi:28530
  34850. #: guix-git/doc/guix.texi:29605 guix-git/doc/guix.texi:29613
  34851. #: guix-git/doc/guix.texi:29858 guix-git/doc/guix.texi:32207
  34852. #: guix-git/doc/guix.texi:34475 guix-git/doc/guix.texi:34535
  34853. #: guix-git/doc/guix.texi:34543 guix-git/doc/guix.texi:36274
  34854. #: guix-git/doc/guix.texi:36281 guix-git/doc/guix.texi:36623
  34855. #: guix-git/doc/guix.texi:36701 guix-git/doc/guix.texi:36795
  34856. #: guix-git/doc/guix.texi:36803 guix-git/doc/guix.texi:36839
  34857. #: guix-git/doc/guix.texi:36989 guix-git/doc/guix.texi:37040
  34858. #: guix-git/doc/guix.texi:37049
  34859. msgid "Defaults to @samp{'()}."
  34860. msgstr ""
  34861. #. type: deftypevr
  34862. #: guix-git/doc/guix.texi:22980
  34863. #, no-wrap
  34864. msgid "{@code{location-access-controls} parameter} method-access-control-list method-access-controls"
  34865. msgstr ""
  34866. #. type: deftypevr
  34867. #: guix-git/doc/guix.texi:22982
  34868. msgid "Access controls for method-specific access to this path."
  34869. msgstr ""
  34870. #. type: deftypevr
  34871. #: guix-git/doc/guix.texi:22986
  34872. msgid "Available @code{method-access-controls} fields are:"
  34873. msgstr ""
  34874. #. type: deftypevr
  34875. #: guix-git/doc/guix.texi:22987
  34876. #, no-wrap
  34877. msgid "{@code{method-access-controls} parameter} boolean reverse?"
  34878. msgstr ""
  34879. #. type: deftypevr
  34880. #: guix-git/doc/guix.texi:22990
  34881. msgid "If @code{#t}, apply access controls to all methods except the listed methods. Otherwise apply to only the listed methods."
  34882. msgstr ""
  34883. #. type: deftypevr
  34884. #: guix-git/doc/guix.texi:22994
  34885. #, no-wrap
  34886. msgid "{@code{method-access-controls} parameter} method-list methods"
  34887. msgstr ""
  34888. #. type: deftypevr
  34889. #: guix-git/doc/guix.texi:22996
  34890. msgid "Methods to which this access control applies."
  34891. msgstr ""
  34892. #. type: deftypevr
  34893. #: guix-git/doc/guix.texi:23000
  34894. #, no-wrap
  34895. msgid "{@code{method-access-controls} parameter} access-control-list access-controls"
  34896. msgstr ""
  34897. #. type: deftypevr
  34898. #: guix-git/doc/guix.texi:23003
  34899. msgid "Access control directives, as a list of strings. Each string should be one directive, such as @samp{\"Order allow,deny\"}."
  34900. msgstr ""
  34901. #. type: deftypevr
  34902. #: guix-git/doc/guix.texi:23009
  34903. #, no-wrap
  34904. msgid "{@code{cups-configuration} parameter} non-negative-integer log-debug-history"
  34905. msgstr ""
  34906. #. type: deftypevr
  34907. #: guix-git/doc/guix.texi:23013
  34908. 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."
  34909. msgstr ""
  34910. #. type: deftypevr
  34911. #: guix-git/doc/guix.texi:23015 guix-git/doc/guix.texi:23036
  34912. #: guix-git/doc/guix.texi:23043 guix-git/doc/guix.texi:26121
  34913. #: guix-git/doc/guix.texi:28062 guix-git/doc/guix.texi:28077
  34914. msgid "Defaults to @samp{100}."
  34915. msgstr ""
  34916. #. type: deftypevr
  34917. #: guix-git/doc/guix.texi:23017
  34918. #, no-wrap
  34919. msgid "{@code{cups-configuration} parameter} log-level log-level"
  34920. msgstr ""
  34921. #. type: deftypevr
  34922. #: guix-git/doc/guix.texi:23020
  34923. msgid "Specifies the level of logging for the ErrorLog file. The value @code{none} stops all logging while @code{debug2} logs everything."
  34924. msgstr ""
  34925. #. type: deftypevr
  34926. #: guix-git/doc/guix.texi:23022 guix-git/doc/guix.texi:28539
  34927. msgid "Defaults to @samp{info}."
  34928. msgstr ""
  34929. #. type: deftypevr
  34930. #: guix-git/doc/guix.texi:23024
  34931. #, no-wrap
  34932. msgid "{@code{cups-configuration} parameter} log-time-format log-time-format"
  34933. msgstr ""
  34934. #. type: deftypevr
  34935. #: guix-git/doc/guix.texi:23027
  34936. 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."
  34937. msgstr ""
  34938. #. type: deftypevr
  34939. #: guix-git/doc/guix.texi:23029
  34940. msgid "Defaults to @samp{standard}."
  34941. msgstr ""
  34942. #. type: deftypevr
  34943. #: guix-git/doc/guix.texi:23031
  34944. #, no-wrap
  34945. msgid "{@code{cups-configuration} parameter} non-negative-integer max-clients"
  34946. msgstr ""
  34947. #. type: deftypevr
  34948. #: guix-git/doc/guix.texi:23034
  34949. msgid "Specifies the maximum number of simultaneous clients that are allowed by the scheduler."
  34950. msgstr ""
  34951. #. type: deftypevr
  34952. #: guix-git/doc/guix.texi:23038
  34953. #, no-wrap
  34954. msgid "{@code{cups-configuration} parameter} non-negative-integer max-clients-per-host"
  34955. msgstr ""
  34956. #. type: deftypevr
  34957. #: guix-git/doc/guix.texi:23041
  34958. msgid "Specifies the maximum number of simultaneous clients that are allowed from a single address."
  34959. msgstr ""
  34960. #. type: deftypevr
  34961. #: guix-git/doc/guix.texi:23045
  34962. #, no-wrap
  34963. msgid "{@code{cups-configuration} parameter} non-negative-integer max-copies"
  34964. msgstr ""
  34965. #. type: deftypevr
  34966. #: guix-git/doc/guix.texi:23048
  34967. msgid "Specifies the maximum number of copies that a user can print of each job."
  34968. msgstr ""
  34969. #. type: deftypevr
  34970. #: guix-git/doc/guix.texi:23050
  34971. msgid "Defaults to @samp{9999}."
  34972. msgstr ""
  34973. #. type: deftypevr
  34974. #: guix-git/doc/guix.texi:23052
  34975. #, no-wrap
  34976. msgid "{@code{cups-configuration} parameter} non-negative-integer max-hold-time"
  34977. msgstr ""
  34978. #. type: deftypevr
  34979. #: guix-git/doc/guix.texi:23056
  34980. 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."
  34981. msgstr ""
  34982. #. type: deftypevr
  34983. #: guix-git/doc/guix.texi:23060
  34984. #, no-wrap
  34985. msgid "{@code{cups-configuration} parameter} non-negative-integer max-jobs"
  34986. msgstr ""
  34987. #. type: deftypevr
  34988. #: guix-git/doc/guix.texi:23063
  34989. msgid "Specifies the maximum number of simultaneous jobs that are allowed. Set to 0 to allow an unlimited number of jobs."
  34990. msgstr ""
  34991. #. type: deftypevr
  34992. #: guix-git/doc/guix.texi:23065
  34993. msgid "Defaults to @samp{500}."
  34994. msgstr ""
  34995. #. type: deftypevr
  34996. #: guix-git/doc/guix.texi:23067
  34997. #, no-wrap
  34998. msgid "{@code{cups-configuration} parameter} non-negative-integer max-jobs-per-printer"
  34999. msgstr ""
  35000. #. type: deftypevr
  35001. #: guix-git/doc/guix.texi:23070
  35002. msgid "Specifies the maximum number of simultaneous jobs that are allowed per printer. A value of 0 allows up to @code{max-jobs} per printer."
  35003. msgstr ""
  35004. #. type: deftypevr
  35005. #: guix-git/doc/guix.texi:23074
  35006. #, no-wrap
  35007. msgid "{@code{cups-configuration} parameter} non-negative-integer max-jobs-per-user"
  35008. msgstr ""
  35009. #. type: deftypevr
  35010. #: guix-git/doc/guix.texi:23077
  35011. msgid "Specifies the maximum number of simultaneous jobs that are allowed per user. A value of 0 allows up to @code{max-jobs} per user."
  35012. msgstr ""
  35013. #. type: deftypevr
  35014. #: guix-git/doc/guix.texi:23081
  35015. #, no-wrap
  35016. msgid "{@code{cups-configuration} parameter} non-negative-integer max-job-time"
  35017. msgstr ""
  35018. #. type: deftypevr
  35019. #: guix-git/doc/guix.texi:23084
  35020. 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."
  35021. msgstr ""
  35022. #. type: deftypevr
  35023. #: guix-git/doc/guix.texi:23086
  35024. msgid "Defaults to @samp{10800}."
  35025. msgstr ""
  35026. #. type: deftypevr
  35027. #: guix-git/doc/guix.texi:23088
  35028. #, no-wrap
  35029. msgid "{@code{cups-configuration} parameter} non-negative-integer max-log-size"
  35030. msgstr ""
  35031. #. type: deftypevr
  35032. #: guix-git/doc/guix.texi:23091
  35033. msgid "Specifies the maximum size of the log files before they are rotated, in bytes. The value 0 disables log rotation."
  35034. msgstr ""
  35035. #. type: deftypevr
  35036. #: guix-git/doc/guix.texi:23093
  35037. msgid "Defaults to @samp{1048576}."
  35038. msgstr ""
  35039. #. type: deftypevr
  35040. #: guix-git/doc/guix.texi:23095
  35041. #, no-wrap
  35042. msgid "{@code{cups-configuration} parameter} non-negative-integer max-subscriptions"
  35043. msgstr ""
  35044. #. type: deftypevr
  35045. #: guix-git/doc/guix.texi:23098
  35046. msgid "Specifies the maximum number of simultaneous event subscriptions that are allowed. Set to @samp{0} to allow an unlimited number of subscriptions."
  35047. msgstr ""
  35048. #. type: deftypevr
  35049. #: guix-git/doc/guix.texi:23102
  35050. #, no-wrap
  35051. msgid "{@code{cups-configuration} parameter} non-negative-integer max-subscriptions-per-job"
  35052. msgstr ""
  35053. #. type: deftypevr
  35054. #: guix-git/doc/guix.texi:23106
  35055. msgid "Specifies the maximum number of simultaneous event subscriptions that are allowed per job. A value of @samp{0} allows up to @code{max-subscriptions} per job."
  35056. msgstr ""
  35057. #. type: deftypevr
  35058. #: guix-git/doc/guix.texi:23110
  35059. #, no-wrap
  35060. msgid "{@code{cups-configuration} parameter} non-negative-integer max-subscriptions-per-printer"
  35061. msgstr ""
  35062. #. type: deftypevr
  35063. #: guix-git/doc/guix.texi:23114
  35064. msgid "Specifies the maximum number of simultaneous event subscriptions that are allowed per printer. A value of @samp{0} allows up to @code{max-subscriptions} per printer."
  35065. msgstr ""
  35066. #. type: deftypevr
  35067. #: guix-git/doc/guix.texi:23118
  35068. #, no-wrap
  35069. msgid "{@code{cups-configuration} parameter} non-negative-integer max-subscriptions-per-user"
  35070. msgstr ""
  35071. #. type: deftypevr
  35072. #: guix-git/doc/guix.texi:23122
  35073. msgid "Specifies the maximum number of simultaneous event subscriptions that are allowed per user. A value of @samp{0} allows up to @code{max-subscriptions} per user."
  35074. msgstr ""
  35075. #. type: deftypevr
  35076. #: guix-git/doc/guix.texi:23126
  35077. #, no-wrap
  35078. msgid "{@code{cups-configuration} parameter} non-negative-integer multiple-operation-timeout"
  35079. msgstr ""
  35080. #. type: deftypevr
  35081. #: guix-git/doc/guix.texi:23129
  35082. msgid "Specifies the maximum amount of time to allow between files in a multiple file print job, in seconds."
  35083. msgstr ""
  35084. #. type: deftypevr
  35085. #: guix-git/doc/guix.texi:23131 guix-git/doc/guix.texi:23306
  35086. msgid "Defaults to @samp{900}."
  35087. msgstr ""
  35088. #. type: deftypevr
  35089. #: guix-git/doc/guix.texi:23133
  35090. #, no-wrap
  35091. msgid "{@code{cups-configuration} parameter} environment-variables environment-variables"
  35092. msgstr ""
  35093. #. type: deftypevr
  35094. #: guix-git/doc/guix.texi:23136
  35095. msgid "Passes the specified environment variable(s) to child processes; a list of strings."
  35096. msgstr ""
  35097. #. type: deftypevr
  35098. #: guix-git/doc/guix.texi:23140
  35099. #, no-wrap
  35100. msgid "{@code{cups-configuration} parameter} policy-configuration-list policies"
  35101. msgstr ""
  35102. #. type: deftypevr
  35103. #: guix-git/doc/guix.texi:23142
  35104. msgid "Specifies named access control policies."
  35105. msgstr ""
  35106. #. type: deftypevr
  35107. #: guix-git/doc/guix.texi:23144
  35108. msgid "Available @code{policy-configuration} fields are:"
  35109. msgstr ""
  35110. #. type: deftypevr
  35111. #: guix-git/doc/guix.texi:23145
  35112. #, no-wrap
  35113. msgid "{@code{policy-configuration} parameter} string name"
  35114. msgstr ""
  35115. #. type: deftypevr
  35116. #: guix-git/doc/guix.texi:23147
  35117. msgid "Name of the policy."
  35118. msgstr ""
  35119. #. type: deftypevr
  35120. #: guix-git/doc/guix.texi:23149
  35121. #, no-wrap
  35122. msgid "{@code{policy-configuration} parameter} string job-private-access"
  35123. msgstr ""
  35124. #. type: deftypevr
  35125. #: guix-git/doc/guix.texi:23159
  35126. 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}."
  35127. msgstr ""
  35128. #. type: deftypevr
  35129. #: guix-git/doc/guix.texi:23161 guix-git/doc/guix.texi:23183
  35130. msgid "Defaults to @samp{\"@@OWNER @@SYSTEM\"}."
  35131. msgstr ""
  35132. #. type: deftypevr
  35133. #: guix-git/doc/guix.texi:23163
  35134. #, no-wrap
  35135. msgid "{@code{policy-configuration} parameter} string job-private-values"
  35136. msgstr ""
  35137. #. type: deftypevr
  35138. #: guix-git/doc/guix.texi:23166 guix-git/doc/guix.texi:23188
  35139. msgid "Specifies the list of job values to make private, or @code{all}, @code{default}, or @code{none}."
  35140. msgstr ""
  35141. #. type: deftypevr
  35142. #: guix-git/doc/guix.texi:23169
  35143. msgid "Defaults to @samp{\"job-name job-originating-host-name job-originating-user-name phone\"}."
  35144. msgstr ""
  35145. #. type: deftypevr
  35146. #: guix-git/doc/guix.texi:23171
  35147. #, no-wrap
  35148. msgid "{@code{policy-configuration} parameter} string subscription-private-access"
  35149. msgstr ""
  35150. #. type: deftypevr
  35151. #: guix-git/doc/guix.texi:23181
  35152. 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}."
  35153. msgstr ""
  35154. #. type: deftypevr
  35155. #: guix-git/doc/guix.texi:23185
  35156. #, no-wrap
  35157. msgid "{@code{policy-configuration} parameter} string subscription-private-values"
  35158. msgstr ""
  35159. #. type: deftypevr
  35160. #: guix-git/doc/guix.texi:23191
  35161. msgid "Defaults to @samp{\"notify-events notify-pull-method notify-recipient-uri notify-subscriber-user-name notify-user-data\"}."
  35162. msgstr ""
  35163. #. type: deftypevr
  35164. #: guix-git/doc/guix.texi:23193
  35165. #, no-wrap
  35166. msgid "{@code{policy-configuration} parameter} operation-access-control-list access-controls"
  35167. msgstr ""
  35168. #. type: deftypevr
  35169. #: guix-git/doc/guix.texi:23195
  35170. msgid "Access control by IPP operation."
  35171. msgstr ""
  35172. #. type: deftypevr
  35173. #: guix-git/doc/guix.texi:23200
  35174. #, no-wrap
  35175. msgid "{@code{cups-configuration} parameter} boolean-or-non-negative-integer preserve-job-files"
  35176. msgstr ""
  35177. #. type: deftypevr
  35178. #: guix-git/doc/guix.texi:23205
  35179. 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."
  35180. msgstr ""
  35181. #. type: deftypevr
  35182. #: guix-git/doc/guix.texi:23207
  35183. msgid "Defaults to @samp{86400}."
  35184. msgstr ""
  35185. #. type: deftypevr
  35186. #: guix-git/doc/guix.texi:23209
  35187. #, no-wrap
  35188. msgid "{@code{cups-configuration} parameter} boolean-or-non-negative-integer preserve-job-history"
  35189. msgstr ""
  35190. #. type: deftypevr
  35191. #: guix-git/doc/guix.texi:23214
  35192. 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."
  35193. msgstr ""
  35194. #. type: deftypevr
  35195. #: guix-git/doc/guix.texi:23218
  35196. #, no-wrap
  35197. msgid "{@code{cups-configuration} parameter} comma-separated-string-list-or-#f ready-paper-sizes"
  35198. msgstr ""
  35199. #. type: deftypevr
  35200. #: guix-git/doc/guix.texi:23222
  35201. msgid "Specifies a list of potential paper sizes that are reported as ready, that is: loaded. The actual list will contain only the sizes that each printer supports."
  35202. msgstr ""
  35203. #. type: deftypevr
  35204. #: guix-git/doc/guix.texi:23227
  35205. msgid "The default value of @code{#f} is a special case: CUPS will use @samp{(list \\\"Letter\\\" \\\"Legal\\\" \\\"Tabloid\\\" \\\"4x6\\\" \\\"Env10\\\")} if the default paper size is \\\"Letter\\\", and @samp{(list \\\"A3\\\" \\\"A4\\\" \\\"A5\\\" \\\"A6\\\" \\\"EnvDL\\\")} otherwise."
  35206. msgstr ""
  35207. #. type: deftypevr
  35208. #: guix-git/doc/guix.texi:23229
  35209. #, no-wrap
  35210. msgid "{@code{cups-configuration} parameter} non-negative-integer reload-timeout"
  35211. msgstr ""
  35212. #. type: deftypevr
  35213. #: guix-git/doc/guix.texi:23232
  35214. msgid "Specifies the amount of time to wait for job completion before restarting the scheduler."
  35215. msgstr ""
  35216. #. type: deftypevr
  35217. #: guix-git/doc/guix.texi:23236
  35218. #, no-wrap
  35219. msgid "{@code{cups-configuration} parameter} string server-admin"
  35220. msgstr ""
  35221. #. type: deftypevr
  35222. #: guix-git/doc/guix.texi:23238
  35223. msgid "Specifies the email address of the server administrator."
  35224. msgstr ""
  35225. #. type: deftypevr
  35226. #: guix-git/doc/guix.texi:23240
  35227. msgid "Defaults to @samp{\"root@@localhost.localdomain\"}."
  35228. msgstr ""
  35229. #. type: deftypevr
  35230. #: guix-git/doc/guix.texi:23242
  35231. #, no-wrap
  35232. msgid "{@code{cups-configuration} parameter} host-name-list-or-* server-alias"
  35233. msgstr ""
  35234. #. type: deftypevr
  35235. #: guix-git/doc/guix.texi:23250
  35236. 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{*}."
  35237. msgstr ""
  35238. #. type: deftypevr
  35239. #: guix-git/doc/guix.texi:23252
  35240. msgid "Defaults to @samp{*}."
  35241. msgstr ""
  35242. #. type: deftypevr
  35243. #: guix-git/doc/guix.texi:23254
  35244. #, no-wrap
  35245. msgid "{@code{cups-configuration} parameter} string server-name"
  35246. msgstr ""
  35247. #. type: deftypevr
  35248. #: guix-git/doc/guix.texi:23256
  35249. msgid "Specifies the fully-qualified host name of the server."
  35250. msgstr ""
  35251. #. type: deftypevr
  35252. #: guix-git/doc/guix.texi:23258
  35253. msgid "Defaults to @samp{\"localhost\"}."
  35254. msgstr ""
  35255. #. type: deftypevr
  35256. #: guix-git/doc/guix.texi:23260
  35257. #, no-wrap
  35258. msgid "{@code{cups-configuration} parameter} server-tokens server-tokens"
  35259. msgstr ""
  35260. #. type: deftypevr
  35261. #: guix-git/doc/guix.texi:23268
  35262. 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}."
  35263. msgstr ""
  35264. #. type: deftypevr
  35265. #: guix-git/doc/guix.texi:23270
  35266. msgid "Defaults to @samp{Minimal}."
  35267. msgstr ""
  35268. #. type: deftypevr
  35269. #: guix-git/doc/guix.texi:23272
  35270. #, no-wrap
  35271. msgid "{@code{cups-configuration} parameter} multiline-string-list ssl-listen"
  35272. msgstr ""
  35273. #. type: deftypevr
  35274. #: guix-git/doc/guix.texi:23277
  35275. 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."
  35276. msgstr ""
  35277. #. type: deftypevr
  35278. #: guix-git/doc/guix.texi:23281
  35279. #, no-wrap
  35280. msgid "{@code{cups-configuration} parameter} ssl-options ssl-options"
  35281. msgstr ""
  35282. #. type: deftypevr
  35283. #: guix-git/doc/guix.texi:23291
  35284. 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."
  35285. msgstr ""
  35286. #. type: deftypevr
  35287. #: guix-git/doc/guix.texi:23295
  35288. #, no-wrap
  35289. msgid "{@code{cups-configuration} parameter} boolean strict-conformance?"
  35290. msgstr ""
  35291. #. type: deftypevr
  35292. #: guix-git/doc/guix.texi:23298
  35293. msgid "Specifies whether the scheduler requires clients to strictly adhere to the IPP specifications."
  35294. msgstr ""
  35295. #. type: deftypevr
  35296. #: guix-git/doc/guix.texi:23302
  35297. #, no-wrap
  35298. msgid "{@code{cups-configuration} parameter} non-negative-integer timeout"
  35299. msgstr ""
  35300. #. type: deftypevr
  35301. #: guix-git/doc/guix.texi:23304
  35302. msgid "Specifies the HTTP request timeout, in seconds."
  35303. msgstr ""
  35304. #. type: deftypevr
  35305. #: guix-git/doc/guix.texi:23309
  35306. #, no-wrap
  35307. msgid "{@code{cups-configuration} parameter} boolean web-interface?"
  35308. msgstr ""
  35309. #. type: deftypevr
  35310. #: guix-git/doc/guix.texi:23311
  35311. msgid "Specifies whether the web interface is enabled."
  35312. msgstr ""
  35313. #. type: Plain text
  35314. #: guix-git/doc/guix.texi:23321
  35315. 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}."
  35316. msgstr ""
  35317. #. type: Plain text
  35318. #: guix-git/doc/guix.texi:23323
  35319. msgid "Available @code{opaque-cups-configuration} fields are:"
  35320. msgstr ""
  35321. #. type: deftypevr
  35322. #: guix-git/doc/guix.texi:23324
  35323. #, no-wrap
  35324. msgid "{@code{opaque-cups-configuration} parameter} package cups"
  35325. msgstr ""
  35326. #. type: deftypevr
  35327. #: guix-git/doc/guix.texi:23328
  35328. #, no-wrap
  35329. msgid "{@code{opaque-cups-configuration} parameter} string cupsd.conf"
  35330. msgstr ""
  35331. #. type: deftypevr
  35332. #: guix-git/doc/guix.texi:23330
  35333. msgid "The contents of the @code{cupsd.conf}, as a string."
  35334. msgstr ""
  35335. #. type: deftypevr
  35336. #: guix-git/doc/guix.texi:23332
  35337. #, no-wrap
  35338. msgid "{@code{opaque-cups-configuration} parameter} string cups-files.conf"
  35339. msgstr ""
  35340. #. type: deftypevr
  35341. #: guix-git/doc/guix.texi:23334
  35342. msgid "The contents of the @code{cups-files.conf} file, as a string."
  35343. msgstr ""
  35344. #. type: Plain text
  35345. #: guix-git/doc/guix.texi:23339
  35346. 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:"
  35347. msgstr ""
  35348. #. type: lisp
  35349. #: guix-git/doc/guix.texi:23345
  35350. #, no-wrap
  35351. msgid ""
  35352. "(service cups-service-type\n"
  35353. " (opaque-cups-configuration\n"
  35354. " (cupsd.conf cupsd.conf)\n"
  35355. " (cups-files.conf cups-files.conf)))\n"
  35356. msgstr ""
  35357. #. type: Plain text
  35358. #: guix-git/doc/guix.texi:23356
  35359. 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."
  35360. msgstr ""
  35361. #. type: Plain text
  35362. #: guix-git/doc/guix.texi:23360
  35363. 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:"
  35364. msgstr ""
  35365. #. type: defvar
  35366. #: guix-git/doc/guix.texi:23361
  35367. #, fuzzy, no-wrap
  35368. #| msgid "Desktop Services"
  35369. msgid "%desktop-services"
  35370. msgstr "桌面服务"
  35371. #. type: defvar
  35372. #: guix-git/doc/guix.texi:23364
  35373. msgid "This is a list of services that builds upon @code{%base-services} and adds or adjusts services for a typical ``desktop'' setup."
  35374. msgstr ""
  35375. #. type: defvar
  35376. #: guix-git/doc/guix.texi:23373
  35377. 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, a NTP client (@pxref{Networking Services}) and the Avahi daemon."
  35378. msgstr ""
  35379. #. type: Plain text
  35380. #: guix-git/doc/guix.texi:23378
  35381. 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}})."
  35382. msgstr ""
  35383. #. type: Plain text
  35384. #: guix-git/doc/guix.texi:23401
  35385. 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."
  35386. msgstr ""
  35387. #. type: Plain text
  35388. #: guix-git/doc/guix.texi:23411
  35389. 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."
  35390. msgstr ""
  35391. #. type: defvar
  35392. #: guix-git/doc/guix.texi:23412
  35393. #, fuzzy, no-wrap
  35394. msgid "gnome-desktop-service-type"
  35395. msgstr "邮件服务"
  35396. #. type: defvar
  35397. #: guix-git/doc/guix.texi:23416
  35398. 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)."
  35399. msgstr ""
  35400. #. type: defvar
  35401. #: guix-git/doc/guix.texi:23419
  35402. msgid "This service adds the @code{gnome} package to the system profile, and extends polkit with the actions from @code{gnome-settings-daemon}."
  35403. msgstr ""
  35404. #. type: deftp
  35405. #: guix-git/doc/guix.texi:23421
  35406. #, no-wrap
  35407. msgid "{Data Type} gnome-desktop-configuration"
  35408. msgstr ""
  35409. #. type: deftp
  35410. #: guix-git/doc/guix.texi:23423
  35411. msgid "Configuration record for the GNOME desktop environment."
  35412. msgstr ""
  35413. #. type: item
  35414. #: guix-git/doc/guix.texi:23425
  35415. #, no-wrap
  35416. msgid "@code{gnome} (default: @code{gnome})"
  35417. msgstr "@code{gnome}(默认值:@code{gnome})"
  35418. #. type: table
  35419. #: guix-git/doc/guix.texi:23427
  35420. msgid "The GNOME package to use."
  35421. msgstr ""
  35422. #. type: defvar
  35423. #: guix-git/doc/guix.texi:23430
  35424. #, fuzzy, no-wrap
  35425. msgid "xfce-desktop-service-type"
  35426. msgstr "邮件服务"
  35427. #. type: defvar
  35428. #: guix-git/doc/guix.texi:23434
  35429. 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)."
  35430. msgstr ""
  35431. #. type: defvar
  35432. #: guix-git/doc/guix.texi:23439
  35433. 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."
  35434. msgstr ""
  35435. #. type: defvar
  35436. #: guix-git/doc/guix.texi:23445
  35437. 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}."
  35438. msgstr ""
  35439. #. type: deftp
  35440. #: guix-git/doc/guix.texi:23447
  35441. #, no-wrap
  35442. msgid "{Data Type} xfce-desktop-configuration"
  35443. msgstr ""
  35444. #. type: deftp
  35445. #: guix-git/doc/guix.texi:23449
  35446. msgid "Configuration record for the Xfce desktop environment."
  35447. msgstr ""
  35448. #. type: item
  35449. #: guix-git/doc/guix.texi:23451
  35450. #, no-wrap
  35451. msgid "@code{xfce} (default: @code{xfce})"
  35452. msgstr "@code{xfce}(默认值:@code{xfce})"
  35453. #. type: table
  35454. #: guix-git/doc/guix.texi:23453
  35455. msgid "The Xfce package to use."
  35456. msgstr ""
  35457. #. type: defvar
  35458. #: guix-git/doc/guix.texi:23456
  35459. #, fuzzy, no-wrap
  35460. msgid "mate-desktop-service-type"
  35461. msgstr "邮件服务"
  35462. #. type: defvar
  35463. #: guix-git/doc/guix.texi:23460
  35464. 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)."
  35465. msgstr ""
  35466. #. type: defvar
  35467. #: guix-git/doc/guix.texi:23464
  35468. msgid "This service adds the @code{mate} package to the system profile, and extends polkit with the actions from @code{mate-settings-daemon}."
  35469. msgstr ""
  35470. #. type: deftp
  35471. #: guix-git/doc/guix.texi:23466
  35472. #, no-wrap
  35473. msgid "{Data Type} mate-desktop-configuration"
  35474. msgstr ""
  35475. #. type: deftp
  35476. #: guix-git/doc/guix.texi:23468
  35477. msgid "Configuration record for the MATE desktop environment."
  35478. msgstr ""
  35479. #. type: item
  35480. #: guix-git/doc/guix.texi:23470
  35481. #, no-wrap
  35482. msgid "@code{mate} (default: @code{mate})"
  35483. msgstr "@code{mate}(默认值:@code{mate})"
  35484. #. type: table
  35485. #: guix-git/doc/guix.texi:23472
  35486. msgid "The MATE package to use."
  35487. msgstr ""
  35488. #. type: defvar
  35489. #: guix-git/doc/guix.texi:23475
  35490. #, fuzzy, no-wrap
  35491. msgid "lxqt-desktop-service-type"
  35492. msgstr "邮件服务"
  35493. #. type: defvar
  35494. #: guix-git/doc/guix.texi:23479
  35495. 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)."
  35496. msgstr ""
  35497. #. type: defvar
  35498. #: guix-git/doc/guix.texi:23482
  35499. msgid "This service adds the @code{lxqt} package to the system profile."
  35500. msgstr ""
  35501. #. type: deftp
  35502. #: guix-git/doc/guix.texi:23484
  35503. #, no-wrap
  35504. msgid "{Data Type} lxqt-desktop-configuration"
  35505. msgstr ""
  35506. #. type: deftp
  35507. #: guix-git/doc/guix.texi:23486
  35508. msgid "Configuration record for the LXQt desktop environment."
  35509. msgstr ""
  35510. #. type: item
  35511. #: guix-git/doc/guix.texi:23488
  35512. #, fuzzy, no-wrap
  35513. msgid "@code{lxqt} (default: @code{lxqt})"
  35514. msgstr "@code{xfce}(默认值:@code{xfce})"
  35515. #. type: table
  35516. #: guix-git/doc/guix.texi:23490
  35517. #, fuzzy
  35518. msgid "The LXQT package to use."
  35519. msgstr "软件包数据类型。"
  35520. #. type: defvar
  35521. #: guix-git/doc/guix.texi:23493
  35522. #, fuzzy, no-wrap
  35523. msgid "sugar-desktop-service-type"
  35524. msgstr "邮件服务"
  35525. #. type: defvar
  35526. #: guix-git/doc/guix.texi:23497
  35527. msgid "This is the type of the service that runs the @uref{https://www.sugarlabs.org, Sugar desktop environment}. Its value is a @code{sugar-desktop-configuration} object (see below)."
  35528. msgstr ""
  35529. #. type: defvar
  35530. #: guix-git/doc/guix.texi:23501
  35531. msgid "This service adds the @code{sugar} package to the system profile, as well as any selected Sugar activities. By default it only includes a minimal set of activities."
  35532. msgstr ""
  35533. #. type: deftp
  35534. #: guix-git/doc/guix.texi:23503
  35535. #, fuzzy, no-wrap
  35536. msgid "{Data Type} sugar-desktop-configuration"
  35537. msgstr "管理操作系统配置。"
  35538. #. type: deftp
  35539. #: guix-git/doc/guix.texi:23505
  35540. #, fuzzy
  35541. msgid "Configuration record for the Sugar desktop environment."
  35542. msgstr "管理操作系统配置。"
  35543. #. type: item
  35544. #: guix-git/doc/guix.texi:23507
  35545. #, fuzzy, no-wrap
  35546. msgid "@code{sugar} (default: @code{sugar})"
  35547. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  35548. #. type: table
  35549. #: guix-git/doc/guix.texi:23509
  35550. #, fuzzy
  35551. msgid "The Sugar package to use."
  35552. msgstr "软件包数据类型。"
  35553. #. type: item
  35554. #: guix-git/doc/guix.texi:23509
  35555. #, fuzzy, no-wrap
  35556. msgid "@code{gobject-introspection} (default: @code{gobject-introspection})"
  35557. msgstr "@code{gnome}(默认值:@code{gnome})"
  35558. #. type: table
  35559. #: guix-git/doc/guix.texi:23512
  35560. msgid "The @code{gobject-introspection} package to use. This package is used to access libraries installed as dependencies of Sugar activities."
  35561. msgstr ""
  35562. #. type: item
  35563. #: guix-git/doc/guix.texi:23512
  35564. #, fuzzy, no-wrap
  35565. msgid "@code{activities} (default: @code{(list sugar-help-activity)})"
  35566. msgstr "@code{port}(默认值:@code{22})"
  35567. #. type: table
  35568. #: guix-git/doc/guix.texi:23514
  35569. msgid "A list of Sugar activities to install."
  35570. msgstr ""
  35571. #. type: Plain text
  35572. #: guix-git/doc/guix.texi:23519
  35573. msgid "The following example configures the Sugar desktop environment with a number of useful activities:"
  35574. msgstr ""
  35575. #. type: lisp
  35576. #: guix-git/doc/guix.texi:23534
  35577. #, no-wrap
  35578. msgid ""
  35579. "(use-modules (gnu))\n"
  35580. "(use-package-modules sugar)\n"
  35581. "(use-service-modules desktop)\n"
  35582. "(operating-system\n"
  35583. " ...\n"
  35584. " (services (cons* (service sugar-desktop-service-type\n"
  35585. " (sugar-desktop-configuration\n"
  35586. " (activities (list sugar-browse-activity\n"
  35587. " sugar-help-activity\n"
  35588. " sugar-jukebox-activity\n"
  35589. " sugar-typing-turtle-activity))))\n"
  35590. " %desktop-services))\n"
  35591. " ...)\n"
  35592. msgstr ""
  35593. #. type: defvar
  35594. #: guix-git/doc/guix.texi:23536
  35595. #, fuzzy, no-wrap
  35596. msgid "enlightenment-desktop-service-type"
  35597. msgstr "邮件服务"
  35598. #. type: defvar
  35599. #: guix-git/doc/guix.texi:23539
  35600. msgid "Return a service that adds the @code{enlightenment} package to the system profile, and extends dbus with actions from @code{efl}."
  35601. msgstr ""
  35602. #. type: deftp
  35603. #: guix-git/doc/guix.texi:23541
  35604. #, no-wrap
  35605. msgid "{Data Type} enlightenment-desktop-service-configuration"
  35606. msgstr ""
  35607. #. type: item
  35608. #: guix-git/doc/guix.texi:23543
  35609. #, no-wrap
  35610. msgid "@code{enlightenment} (default: @code{enlightenment})"
  35611. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  35612. #. type: table
  35613. #: guix-git/doc/guix.texi:23545
  35614. msgid "The enlightenment package to use."
  35615. msgstr ""
  35616. #. type: Plain text
  35617. #: guix-git/doc/guix.texi:23553
  35618. 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}:"
  35619. msgstr ""
  35620. #. type: lisp
  35621. #: guix-git/doc/guix.texi:23564
  35622. #, no-wrap
  35623. msgid ""
  35624. "(use-modules (gnu))\n"
  35625. "(use-service-modules desktop)\n"
  35626. "(operating-system\n"
  35627. " ...\n"
  35628. " ;; cons* adds items to the list given as its last argument.\n"
  35629. " (services (cons* (service gnome-desktop-service-type)\n"
  35630. " (service xfce-desktop-service)\n"
  35631. " %desktop-services))\n"
  35632. " ...)\n"
  35633. msgstr ""
  35634. #. type: Plain text
  35635. #: guix-git/doc/guix.texi:23568
  35636. msgid "These desktop environments will then be available as options in the graphical login window."
  35637. msgstr ""
  35638. #. type: Plain text
  35639. #: guix-git/doc/guix.texi:23572
  35640. 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."
  35641. msgstr ""
  35642. #. type: defvar
  35643. #: guix-git/doc/guix.texi:23573
  35644. #, fuzzy, no-wrap
  35645. msgid "dbus-root-service-type"
  35646. msgstr "邮件服务"
  35647. #. type: defvar
  35648. #: guix-git/doc/guix.texi:23578
  35649. msgid "Type for a service that runs the D-Bus ``system bus''. @footnote{@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.}"
  35650. msgstr ""
  35651. #. type: defvar
  35652. #: guix-git/doc/guix.texi:23580
  35653. msgid "The value for this service type is a @code{<dbus-configuration>} record."
  35654. msgstr ""
  35655. #. type: deftp
  35656. #: guix-git/doc/guix.texi:23582
  35657. #, fuzzy, no-wrap
  35658. msgid "{Data Type} dbus-configuration"
  35659. msgstr "{数据类型} build-machine"
  35660. #. type: deftp
  35661. #: guix-git/doc/guix.texi:23584
  35662. #, fuzzy
  35663. msgid "Data type representing the configuration for @code{dbus-root-service-type}."
  35664. msgstr "管理操作系统配置。"
  35665. #. type: item
  35666. #: guix-git/doc/guix.texi:23586
  35667. #, fuzzy, no-wrap
  35668. msgid "@code{dbus} (default: @code{dbus}) (type: file-like)"
  35669. msgstr "@code{xfce}(默认值:@code{xfce})"
  35670. #. type: table
  35671. #: guix-git/doc/guix.texi:23588
  35672. #, fuzzy
  35673. #| msgid "Package Modules"
  35674. msgid "Package object for dbus."
  35675. msgstr "软件包模块"
  35676. #. type: item
  35677. #: guix-git/doc/guix.texi:23589
  35678. #, fuzzy, no-wrap
  35679. msgid "@code{services} (default: @code{'()}) (type: list)"
  35680. msgstr "@code{features} (@code{'()})"
  35681. #. type: table
  35682. #: guix-git/doc/guix.texi:23594
  35683. msgid "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)}."
  35684. msgstr ""
  35685. #. type: item
  35686. #: guix-git/doc/guix.texi:23595
  35687. #, fuzzy, no-wrap
  35688. msgid "@code{verbose?} (default: @code{#f}) (type: boolean)"
  35689. msgstr "@code{challenge}(默认值:@code{#f})"
  35690. #. type: table
  35691. #: guix-git/doc/guix.texi:23601
  35692. msgid "When @code{#t}, D-Bus is launched with environment variable @samp{DBUS_VERBOSE} set to @samp{1}. A verbose-enabled D-Bus package such as @code{dbus-verbose} should be provided to @var{dbus} in this scenario. The verbose output is logged to @file{/var/log/dbus-daemon.log}."
  35693. msgstr ""
  35694. #. type: subsubheading
  35695. #: guix-git/doc/guix.texi:23605
  35696. #, no-wrap
  35697. msgid "Elogind"
  35698. msgstr ""
  35699. #. type: Plain text
  35700. #: guix-git/doc/guix.texi:23611
  35701. msgid "@uref{https://github.com/elogind/elogind, Elogind} is a login and seat management daemon that also 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."
  35702. msgstr ""
  35703. #. type: Plain text
  35704. #: guix-git/doc/guix.texi:23615
  35705. msgid "It also provides 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."
  35706. msgstr ""
  35707. #. type: defvar
  35708. #: guix-git/doc/guix.texi:23616
  35709. #, fuzzy, no-wrap
  35710. msgid "elogind-service-type"
  35711. msgstr "邮件服务"
  35712. #. type: defvar
  35713. #: guix-git/doc/guix.texi:23620
  35714. msgid "Type of the service that runs @command{elogind}, a login and seat management daemon. The value for this service is a @code{<elogind-configuration>} object."
  35715. msgstr ""
  35716. #. type: deftp
  35717. #: guix-git/doc/guix.texi:23625
  35718. #, fuzzy, no-wrap
  35719. msgid "{Data Type} elogind-configuration"
  35720. msgstr "系统配置"
  35721. #. type: deftp
  35722. #: guix-git/doc/guix.texi:23627
  35723. #, fuzzy
  35724. msgid "Data type representing the configuration of @command{elogind}."
  35725. msgstr "管理操作系统配置。"
  35726. #. type: item
  35727. #: guix-git/doc/guix.texi:23629
  35728. #, fuzzy, no-wrap
  35729. msgid "@code{elogind} (default: @code{elogind}) (type: file-like)"
  35730. msgstr "@code{xfce}(默认值:@code{xfce})"
  35731. #. type: table
  35732. #: guix-git/doc/guix.texi:23631 guix-git/doc/guix.texi:23634
  35733. #: guix-git/doc/guix.texi:23637 guix-git/doc/guix.texi:23640
  35734. #: guix-git/doc/guix.texi:23643 guix-git/doc/guix.texi:23646
  35735. #: guix-git/doc/guix.texi:23649 guix-git/doc/guix.texi:23652
  35736. #: guix-git/doc/guix.texi:23655 guix-git/doc/guix.texi:23658
  35737. #: guix-git/doc/guix.texi:23661 guix-git/doc/guix.texi:23664
  35738. #: guix-git/doc/guix.texi:23667 guix-git/doc/guix.texi:23670
  35739. #: guix-git/doc/guix.texi:23673 guix-git/doc/guix.texi:23676
  35740. #: guix-git/doc/guix.texi:23679 guix-git/doc/guix.texi:23682
  35741. #: guix-git/doc/guix.texi:23685 guix-git/doc/guix.texi:23688
  35742. #: guix-git/doc/guix.texi:23691 guix-git/doc/guix.texi:23694
  35743. #: guix-git/doc/guix.texi:23697 guix-git/doc/guix.texi:23700
  35744. #: guix-git/doc/guix.texi:23703 guix-git/doc/guix.texi:23706
  35745. #: guix-git/doc/guix.texi:23709
  35746. msgid "..."
  35747. msgstr ""
  35748. #. type: item
  35749. #: guix-git/doc/guix.texi:23632
  35750. #, fuzzy, no-wrap
  35751. msgid "@code{kill-user-processes?} (default: @code{#f}) (type: boolean)"
  35752. msgstr "@code{port}(默认值:@code{22})"
  35753. #. type: item
  35754. #: guix-git/doc/guix.texi:23635
  35755. #, fuzzy, no-wrap
  35756. msgid "@code{kill-only-users} (default: @code{'()}) (type: list)"
  35757. msgstr "@code{features} (@code{'()})"
  35758. #. type: item
  35759. #: guix-git/doc/guix.texi:23638
  35760. #, fuzzy, no-wrap
  35761. msgid "@code{kill-exclude-users} (default: @code{'(\"root\")}) (type: list-of-string)"
  35762. msgstr "@code{port}(默认值:@code{22})"
  35763. #. type: item
  35764. #: guix-git/doc/guix.texi:23641
  35765. #, fuzzy, no-wrap
  35766. msgid "@code{inhibit-delay-max-seconds} (default: @code{5}) (type: integer)"
  35767. msgstr "@code{challenge}(默认值:@code{#f})"
  35768. #. type: item
  35769. #: guix-git/doc/guix.texi:23644
  35770. #, fuzzy, no-wrap
  35771. msgid "@code{handle-power-key} (default: @code{'poweroff}) (type: symbol)"
  35772. msgstr "@code{port}(默认值:@code{22})"
  35773. #. type: item
  35774. #: guix-git/doc/guix.texi:23647
  35775. #, fuzzy, no-wrap
  35776. msgid "@code{handle-suspend-key} (default: @code{'suspend}) (type: symbol)"
  35777. msgstr "@code{port}(默认值:@code{22})"
  35778. #. type: item
  35779. #: guix-git/doc/guix.texi:23650
  35780. #, fuzzy, no-wrap
  35781. msgid "@code{handle-hibernate-key} (default: @code{'hibernate}) (type: symbol)"
  35782. msgstr "@code{port}(默认值:@code{22})"
  35783. #. type: item
  35784. #: guix-git/doc/guix.texi:23653
  35785. #, fuzzy, no-wrap
  35786. msgid "@code{handle-lid-switch} (default: @code{'suspend}) (type: symbol)"
  35787. msgstr "@code{port}(默认值:@code{22})"
  35788. #. type: item
  35789. #: guix-git/doc/guix.texi:23656
  35790. #, fuzzy, no-wrap
  35791. msgid "@code{handle-lid-switch-docked} (default: @code{'ignore}) (type: symbol)"
  35792. msgstr "@code{port}(默认值:@code{22})"
  35793. #. type: item
  35794. #: guix-git/doc/guix.texi:23659
  35795. #, fuzzy, no-wrap
  35796. msgid "@code{handle-lid-switch-external-power} (default: @code{*unspecified*}) (type: symbol)"
  35797. msgstr "@code{port}(默认值:@code{22})"
  35798. #. type: item
  35799. #: guix-git/doc/guix.texi:23662
  35800. #, fuzzy, no-wrap
  35801. msgid "@code{power-key-ignore-inhibited?} (default: @code{#f}) (type: boolean)"
  35802. msgstr "@code{speed}(默认值:@code{1.0})"
  35803. #. type: item
  35804. #: guix-git/doc/guix.texi:23665
  35805. #, fuzzy, no-wrap
  35806. msgid "@code{suspend-key-ignore-inhibited?} (default: @code{#f}) (type: boolean)"
  35807. msgstr "@code{speed}(默认值:@code{1.0})"
  35808. #. type: item
  35809. #: guix-git/doc/guix.texi:23668
  35810. #, fuzzy, no-wrap
  35811. msgid "@code{hibernate-key-ignore-inhibited?} (default: @code{#f}) (type: boolean)"
  35812. msgstr "@code{challenge}(默认值:@code{#f})"
  35813. #. type: item
  35814. #: guix-git/doc/guix.texi:23671
  35815. #, fuzzy, no-wrap
  35816. msgid "@code{lid-switch-ignore-inhibited?} (default: @code{#t}) (type: boolean)"
  35817. msgstr "@code{challenge}(默认值:@code{#f})"
  35818. #. type: item
  35819. #: guix-git/doc/guix.texi:23674
  35820. #, fuzzy, no-wrap
  35821. msgid "@code{holdoff-timeout-seconds} (default: @code{30}) (type: integer)"
  35822. msgstr "@code{challenge}(默认值:@code{#f})"
  35823. #. type: item
  35824. #: guix-git/doc/guix.texi:23677
  35825. #, fuzzy, no-wrap
  35826. msgid "@code{idle-action} (default: @code{'ignore}) (type: symbol)"
  35827. msgstr "@code{port}(默认值:@code{22})"
  35828. #. type: item
  35829. #: guix-git/doc/guix.texi:23680
  35830. #, fuzzy, no-wrap
  35831. msgid "@code{idle-action-seconds} (default: @code{(* 30 60)}) (type: integer)"
  35832. msgstr "@code{challenge}(默认值:@code{#f})"
  35833. #. type: item
  35834. #: guix-git/doc/guix.texi:23683
  35835. #, fuzzy, no-wrap
  35836. msgid "@code{runtime-directory-size-percent} (default: @code{10}) (type: integer)"
  35837. msgstr "@code{challenge}(默认值:@code{#f})"
  35838. #. type: item
  35839. #: guix-git/doc/guix.texi:23686
  35840. #, fuzzy, no-wrap
  35841. msgid "@code{runtime-directory-size} (default: @code{#f}) (type: integer)"
  35842. msgstr "@code{challenge}(默认值:@code{#f})"
  35843. #. type: item
  35844. #: guix-git/doc/guix.texi:23689
  35845. #, fuzzy, no-wrap
  35846. msgid "@code{remove-ipc?} (default: @code{#t}) (type: boolean)"
  35847. msgstr "@code{challenge}(默认值:@code{#f})"
  35848. #. type: item
  35849. #: guix-git/doc/guix.texi:23692
  35850. #, fuzzy, no-wrap
  35851. msgid "@code{suspend-state} (default: @code{'(\"mem\" \"standby\" \"freeze\")}) (type: list)"
  35852. msgstr "@code{features} (@code{'()})"
  35853. #. type: item
  35854. #: guix-git/doc/guix.texi:23695
  35855. #, fuzzy, no-wrap
  35856. msgid "@code{suspend-mode} (default: @code{'()}) (type: list)"
  35857. msgstr "@code{features} (@code{'()})"
  35858. #. type: item
  35859. #: guix-git/doc/guix.texi:23698
  35860. #, fuzzy, no-wrap
  35861. msgid "@code{hibernate-state} (default: @code{'(\"disk\")}) (type: list)"
  35862. msgstr "@code{features} (@code{'()})"
  35863. #. type: item
  35864. #: guix-git/doc/guix.texi:23701
  35865. #, fuzzy, no-wrap
  35866. msgid "@code{hibernate-mode} (default: @code{'(\"platform\" \"shutdown\")}) (type: list)"
  35867. msgstr "@code{xfce}(默认值:@code{xfce})"
  35868. #. type: item
  35869. #: guix-git/doc/guix.texi:23704
  35870. #, fuzzy, no-wrap
  35871. msgid "@code{hybrid-sleep-state} (default: @code{'(\"disk\")}) (type: list)"
  35872. msgstr "@code{features} (@code{'()})"
  35873. #. type: item
  35874. #: guix-git/doc/guix.texi:23707
  35875. #, fuzzy, no-wrap
  35876. msgid "@code{hybrid-sleep-mode} (default: @code{'(\"suspend\" \"platform\" \"shutdown\")}) (type: list)"
  35877. msgstr "@code{xfce}(默认值:@code{xfce})"
  35878. #. type: defvar
  35879. #: guix-git/doc/guix.texi:23713
  35880. #, fuzzy, no-wrap
  35881. msgid "accountsservice-service-type"
  35882. msgstr "邮件服务"
  35883. #. type: defvar
  35884. #: guix-git/doc/guix.texi:23720
  35885. msgid "Type for the 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. See @url{https://www.freedesktop.org/wiki/Software/AccountsService/, AccountsService} for more information."
  35886. msgstr ""
  35887. #. type: defvar
  35888. #: guix-git/doc/guix.texi:23723
  35889. msgid "The value for this service is a file-like object, by default it is set to @code{accountsservice} (the package object for AccountsService)."
  35890. msgstr ""
  35891. #. type: defvar
  35892. #: guix-git/doc/guix.texi:23725
  35893. #, fuzzy, no-wrap
  35894. msgid "polkit-service-type"
  35895. msgstr "邮件服务"
  35896. #. type: defvar
  35897. #: guix-git/doc/guix.texi:23733
  35898. msgid "Type for the service that runs the @url{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."
  35899. msgstr ""
  35900. #. type: defvar
  35901. #: guix-git/doc/guix.texi:23735
  35902. msgid "The value for this service is a @code{<polkit-configuration>} object."
  35903. msgstr ""
  35904. #. type: defvar
  35905. #: guix-git/doc/guix.texi:23740
  35906. #, no-wrap
  35907. msgid "polkit-wheel-service"
  35908. msgstr ""
  35909. #. type: defvar
  35910. #: guix-git/doc/guix.texi:23745
  35911. 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}."
  35912. msgstr ""
  35913. #. type: defvar
  35914. #: guix-git/doc/guix.texi:23747
  35915. #, fuzzy, no-wrap
  35916. msgid "upower-service-type"
  35917. msgstr "邮件服务"
  35918. #. type: defvar
  35919. #: guix-git/doc/guix.texi:23751
  35920. 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."
  35921. msgstr ""
  35922. #. type: defvar
  35923. #: guix-git/doc/guix.texi:23754
  35924. msgid "It implements the @code{org.freedesktop.UPower} D-Bus interface, and is notably used by GNOME."
  35925. msgstr ""
  35926. #. type: deftp
  35927. #: guix-git/doc/guix.texi:23756
  35928. #, no-wrap
  35929. msgid "{Data Type} upower-configuration"
  35930. msgstr ""
  35931. #. type: deftp
  35932. #: guix-git/doc/guix.texi:23758
  35933. msgid "Data type representation the configuration for UPower."
  35934. msgstr ""
  35935. #. type: item
  35936. #: guix-git/doc/guix.texi:23761
  35937. #, no-wrap
  35938. msgid "@code{upower} (default: @var{upower})"
  35939. msgstr ""
  35940. #. type: table
  35941. #: guix-git/doc/guix.texi:23763
  35942. msgid "Package to use for @code{upower}."
  35943. msgstr ""
  35944. #. type: item
  35945. #: guix-git/doc/guix.texi:23764
  35946. #, no-wrap
  35947. msgid "@code{watts-up-pro?} (default: @code{#f})"
  35948. msgstr ""
  35949. #. type: table
  35950. #: guix-git/doc/guix.texi:23766
  35951. msgid "Enable the Watts Up Pro device."
  35952. msgstr ""
  35953. #. type: item
  35954. #: guix-git/doc/guix.texi:23767
  35955. #, no-wrap
  35956. msgid "@code{poll-batteries?} (default: @code{#t})"
  35957. msgstr ""
  35958. #. type: table
  35959. #: guix-git/doc/guix.texi:23769
  35960. msgid "Enable polling the kernel for battery level changes."
  35961. msgstr ""
  35962. #. type: item
  35963. #: guix-git/doc/guix.texi:23770
  35964. #, no-wrap
  35965. msgid "@code{ignore-lid?} (default: @code{#f})"
  35966. msgstr ""
  35967. #. type: table
  35968. #: guix-git/doc/guix.texi:23772
  35969. msgid "Ignore the lid state, this can be useful if it's incorrect on a device."
  35970. msgstr ""
  35971. #. type: item
  35972. #: guix-git/doc/guix.texi:23773
  35973. #, fuzzy, no-wrap
  35974. msgid "@code{use-percentage-for-policy?} (default: @code{#t})"
  35975. msgstr "@code{speed}(默认值:@code{1.0})"
  35976. #. type: table
  35977. #: guix-git/doc/guix.texi:23777
  35978. msgid "Whether to use a policy based on battery percentage rather than on estimated time left. A policy based on battery percentage is usually more reliable."
  35979. msgstr ""
  35980. #. type: item
  35981. #: guix-git/doc/guix.texi:23778
  35982. #, fuzzy, no-wrap
  35983. msgid "@code{percentage-low} (default: @code{20})"
  35984. msgstr "@code{port}(默认值:@code{22})"
  35985. #. type: table
  35986. #: guix-git/doc/guix.texi:23781
  35987. msgid "When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which the battery is considered low."
  35988. msgstr ""
  35989. #. type: item
  35990. #: guix-git/doc/guix.texi:23782
  35991. #, fuzzy, no-wrap
  35992. msgid "@code{percentage-critical} (default: @code{5})"
  35993. msgstr "@code{port}(默认值:@code{22})"
  35994. #. type: table
  35995. #: guix-git/doc/guix.texi:23785
  35996. msgid "When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which the battery is considered critical."
  35997. msgstr ""
  35998. #. type: item
  35999. #: guix-git/doc/guix.texi:23786
  36000. #, no-wrap
  36001. msgid "@code{percentage-action} (default: @code{2})"
  36002. msgstr ""
  36003. #. type: table
  36004. #: guix-git/doc/guix.texi:23789
  36005. msgid "When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which action will be taken."
  36006. msgstr ""
  36007. #. type: item
  36008. #: guix-git/doc/guix.texi:23790
  36009. #, no-wrap
  36010. msgid "@code{time-low} (default: @code{1200})"
  36011. msgstr ""
  36012. #. type: table
  36013. #: guix-git/doc/guix.texi:23793
  36014. msgid "When @code{use-time-for-policy?} is @code{#f}, this sets the time remaining in seconds at which the battery is considered low."
  36015. msgstr ""
  36016. #. type: item
  36017. #: guix-git/doc/guix.texi:23794
  36018. #, no-wrap
  36019. msgid "@code{time-critical} (default: @code{300})"
  36020. msgstr ""
  36021. #. type: table
  36022. #: guix-git/doc/guix.texi:23797
  36023. msgid "When @code{use-time-for-policy?} is @code{#f}, this sets the time remaining in seconds at which the battery is considered critical."
  36024. msgstr ""
  36025. #. type: item
  36026. #: guix-git/doc/guix.texi:23798
  36027. #, no-wrap
  36028. msgid "@code{time-action} (default: @code{120})"
  36029. msgstr ""
  36030. #. type: table
  36031. #: guix-git/doc/guix.texi:23801
  36032. msgid "When @code{use-time-for-policy?} is @code{#f}, this sets the time remaining in seconds at which action will be taken."
  36033. msgstr ""
  36034. #. type: item
  36035. #: guix-git/doc/guix.texi:23802
  36036. #, no-wrap
  36037. msgid "@code{critical-power-action} (default: @code{'hybrid-sleep})"
  36038. msgstr ""
  36039. #. type: table
  36040. #: guix-git/doc/guix.texi:23805
  36041. msgid "The action taken when @code{percentage-action} or @code{time-action} is reached (depending on the configuration of @code{use-percentage-for-policy?})."
  36042. msgstr ""
  36043. #. type: table
  36044. #: guix-git/doc/guix.texi:23807 guix-git/doc/guix.texi:23974
  36045. #: guix-git/doc/guix.texi:24006 guix-git/doc/guix.texi:24026
  36046. #: guix-git/doc/guix.texi:24247 guix-git/doc/guix.texi:24265
  36047. #: guix-git/doc/guix.texi:24296 guix-git/doc/guix.texi:24309
  36048. #: guix-git/doc/guix.texi:24359
  36049. msgid "Possible values are:"
  36050. msgstr ""
  36051. #. type: code{#1}
  36052. #: guix-git/doc/guix.texi:23811
  36053. msgid "'power-off"
  36054. msgstr ""
  36055. #. type: code{#1}
  36056. #: guix-git/doc/guix.texi:23814
  36057. msgid "'hibernate"
  36058. msgstr ""
  36059. #. type: itemize
  36060. #: guix-git/doc/guix.texi:23817
  36061. msgid "@code{'hybrid-sleep}."
  36062. msgstr ""
  36063. #. type: defvar
  36064. #: guix-git/doc/guix.texi:23822
  36065. #, fuzzy, no-wrap
  36066. msgid "udisks-service-type"
  36067. msgstr "邮件服务"
  36068. #. type: defvar
  36069. #: guix-git/doc/guix.texi:23833
  36070. msgid "Type for the service that runs @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."
  36071. msgstr ""
  36072. #. type: defvar
  36073. #: guix-git/doc/guix.texi:23835
  36074. msgid "The value for this service is a @code{<udisks-configuration>} object."
  36075. msgstr ""
  36076. #. type: deftp
  36077. #: guix-git/doc/guix.texi:23837
  36078. #, fuzzy, no-wrap
  36079. msgid "{Data Type} udisks-configuration"
  36080. msgstr "{数据类型} build-machine"
  36081. #. type: deftp
  36082. #: guix-git/doc/guix.texi:23839
  36083. #, fuzzy
  36084. msgid "Data type representing the configuration for @code{udisks-service-type}."
  36085. msgstr "管理操作系统配置。"
  36086. #. type: item
  36087. #: guix-git/doc/guix.texi:23841
  36088. #, fuzzy, no-wrap
  36089. msgid "@code{udisks} (default: @code{udisks}) (type: file-like)"
  36090. msgstr "@code{xfce}(默认值:@code{xfce})"
  36091. #. type: table
  36092. #: guix-git/doc/guix.texi:23843
  36093. msgid "Package object for UDisks."
  36094. msgstr ""
  36095. #. type: defvar
  36096. #: guix-git/doc/guix.texi:23847
  36097. #, fuzzy, no-wrap
  36098. msgid "colord-service-type"
  36099. msgstr "邮件服务"
  36100. #. type: defvar
  36101. #: guix-git/doc/guix.texi:23854
  36102. 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."
  36103. msgstr ""
  36104. #. type: cindex
  36105. #: guix-git/doc/guix.texi:23856
  36106. #, no-wrap
  36107. msgid "scanner access"
  36108. msgstr ""
  36109. #. type: defvar
  36110. #: guix-git/doc/guix.texi:23857
  36111. #, fuzzy, no-wrap
  36112. msgid "sane-service-type"
  36113. msgstr "邮件服务"
  36114. #. type: defvar
  36115. #: guix-git/doc/guix.texi:23863
  36116. 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."
  36117. msgstr ""
  36118. #. type: defvar
  36119. #: guix-git/doc/guix.texi:23865
  36120. #, no-wrap
  36121. msgid "sane-backends-minimal"
  36122. msgstr ""
  36123. #. type: defvar
  36124. #: guix-git/doc/guix.texi:23868
  36125. msgid "The default package which the @code{sane-service-type} installs. It supports many recent scanners."
  36126. msgstr ""
  36127. #. type: defvar
  36128. #: guix-git/doc/guix.texi:23870
  36129. #, no-wrap
  36130. msgid "sane-backends"
  36131. msgstr ""
  36132. #. type: defvar
  36133. #: guix-git/doc/guix.texi:23877
  36134. 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:"
  36135. msgstr ""
  36136. #. type: lisp
  36137. #: guix-git/doc/guix.texi:23886
  36138. #, no-wrap
  36139. msgid ""
  36140. "(use-modules (gnu))\n"
  36141. "(use-service-modules\n"
  36142. " @dots{}\n"
  36143. " desktop)\n"
  36144. "(use-package-modules\n"
  36145. " @dots{}\n"
  36146. " scanner)\n"
  36147. "\n"
  36148. msgstr ""
  36149. #. type: lisp
  36150. #: guix-git/doc/guix.texi:23891
  36151. #, no-wrap
  36152. msgid ""
  36153. "(define %my-desktop-services\n"
  36154. " ;; List of desktop services that supports a broader range of scanners.\n"
  36155. " (modify-services %desktop-services\n"
  36156. " (sane-service-type _ => sane-backends)))\n"
  36157. "\n"
  36158. msgstr ""
  36159. #. type: lisp
  36160. #: guix-git/doc/guix.texi:23895
  36161. #, no-wrap
  36162. msgid ""
  36163. "(operating-system\n"
  36164. " @dots{}\n"
  36165. " (services %my-desktop-services))\n"
  36166. msgstr ""
  36167. #. type: defun
  36168. #: guix-git/doc/guix.texi:23898
  36169. #, no-wrap
  36170. msgid "geoclue-application name [#:allowed? #t] [#:system? #f] [#:users '()]"
  36171. msgstr ""
  36172. #. type: defun
  36173. #: guix-git/doc/guix.texi:23907
  36174. 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."
  36175. msgstr ""
  36176. #. type: defvar
  36177. #: guix-git/doc/guix.texi:23909
  36178. #, no-wrap
  36179. msgid "%standard-geoclue-applications"
  36180. msgstr ""
  36181. #. type: defvar
  36182. #: guix-git/doc/guix.texi:23916
  36183. 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."
  36184. msgstr ""
  36185. #. type: defvar
  36186. #: guix-git/doc/guix.texi:23918
  36187. #, fuzzy, no-wrap
  36188. msgid "geoclue-service-type"
  36189. msgstr "邮件服务"
  36190. #. type: defvar
  36191. #: guix-git/doc/guix.texi:23924
  36192. msgid "Type for the service that runs the @url{https://wiki.freedesktop.org/www/Software/GeoClue/, 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."
  36193. msgstr ""
  36194. #. type: defvar
  36195. #: guix-git/doc/guix.texi:23926
  36196. msgid "The value for this service is a @code{<geoclue-configuration>} object."
  36197. msgstr ""
  36198. #. type: defvar
  36199. #: guix-git/doc/guix.texi:23931
  36200. #, fuzzy, no-wrap
  36201. msgid "bluetooth-service-type"
  36202. msgstr "邮件服务"
  36203. #. type: defvar
  36204. #: guix-git/doc/guix.texi:23936
  36205. 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:"
  36206. msgstr ""
  36207. #. type: lisp
  36208. #: guix-git/doc/guix.texi:23939
  36209. #, no-wrap
  36210. msgid "(service bluetooth-service-type)\n"
  36211. msgstr ""
  36212. #. type: defvar
  36213. #: guix-git/doc/guix.texi:23942
  36214. msgid "See below for details about @code{bluetooth-configuration}."
  36215. msgstr ""
  36216. #. type: deftp
  36217. #: guix-git/doc/guix.texi:23944
  36218. #, fuzzy, no-wrap
  36219. msgid "{Data Type} bluetooth-configuration"
  36220. msgstr "{数据类型} build-machine"
  36221. #. type: deftp
  36222. #: guix-git/doc/guix.texi:23946
  36223. #, fuzzy
  36224. msgid "Data type representing the configuration for @code{bluetooth-service}."
  36225. msgstr "管理操作系统配置。"
  36226. #. type: item
  36227. #: guix-git/doc/guix.texi:23948
  36228. #, fuzzy, no-wrap
  36229. msgid "@code{bluez} (default: @code{bluez})"
  36230. msgstr "@code{mate}(默认值:@code{mate})"
  36231. #. type: table
  36232. #: guix-git/doc/guix.texi:23950
  36233. #, fuzzy
  36234. msgid "@code{bluez} package to use."
  36235. msgstr "软件包数据类型。"
  36236. #. type: item
  36237. #: guix-git/doc/guix.texi:23951
  36238. #, fuzzy, no-wrap
  36239. msgid "@code{name} (default: @code{\"BlueZ\"})"
  36240. msgstr "@code{gnome}(默认值:@code{gnome})"
  36241. #. type: table
  36242. #: guix-git/doc/guix.texi:23953
  36243. #, fuzzy
  36244. msgid "Default adapter name."
  36245. msgstr "仓库monad"
  36246. #. type: item
  36247. #: guix-git/doc/guix.texi:23954
  36248. #, fuzzy, no-wrap
  36249. msgid "@code{class} (default: @code{#x000000})"
  36250. msgstr "@code{port}(默认值:@code{22})"
  36251. #. type: table
  36252. #: guix-git/doc/guix.texi:23956
  36253. msgid "Default device class. Only the major and minor device class bits are considered."
  36254. msgstr ""
  36255. #. type: item
  36256. #: guix-git/doc/guix.texi:23957
  36257. #, fuzzy, no-wrap
  36258. msgid "@code{discoverable-timeout} (default: @code{180})"
  36259. msgstr "@code{speed}(默认值:@code{1.0})"
  36260. #. type: table
  36261. #: guix-git/doc/guix.texi:23960
  36262. msgid "How long to stay in discoverable mode before going back to non-discoverable. The value is in seconds."
  36263. msgstr ""
  36264. #. type: item
  36265. #: guix-git/doc/guix.texi:23961
  36266. #, fuzzy, no-wrap
  36267. msgid "@code{always-pairable?} (default: @code{#f})"
  36268. msgstr "@code{challenge}(默认值:@code{#f})"
  36269. #. type: table
  36270. #: guix-git/doc/guix.texi:23963
  36271. msgid "Always allow pairing even if there are no agents registered."
  36272. msgstr ""
  36273. #. type: item
  36274. #: guix-git/doc/guix.texi:23964
  36275. #, fuzzy, no-wrap
  36276. msgid "@code{pairable-timeout} (default: @code{0})"
  36277. msgstr "@code{mate}(默认值:@code{mate})"
  36278. #. type: table
  36279. #: guix-git/doc/guix.texi:23967
  36280. msgid "How long to stay in pairable mode before going back to non-discoverable. The value is in seconds."
  36281. msgstr ""
  36282. #. type: item
  36283. #: guix-git/doc/guix.texi:23968
  36284. #, fuzzy, no-wrap
  36285. msgid "@code{device-id} (default: @code{#f})"
  36286. msgstr "@code{speed}(默认值:@code{1.0})"
  36287. #. type: table
  36288. #: guix-git/doc/guix.texi:23972
  36289. 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}."
  36290. msgstr ""
  36291. #. type: itemize
  36292. #: guix-git/doc/guix.texi:23978
  36293. msgid "@code{#f} to disable it,"
  36294. msgstr ""
  36295. #. type: itemize
  36296. #: guix-git/doc/guix.texi:23982
  36297. msgid "@code{\"assigner:1234:5678:abcd\"}, where @var{assigner} is either @code{usb} (default) or @code{bluetooth}."
  36298. msgstr ""
  36299. #. type: item
  36300. #: guix-git/doc/guix.texi:23985
  36301. #, fuzzy, no-wrap
  36302. msgid "@code{reverse-service-discovery?} (default: @code{#t})"
  36303. msgstr "@code{speed}(默认值:@code{1.0})"
  36304. #. type: table
  36305. #: guix-git/doc/guix.texi:23991
  36306. 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."
  36307. msgstr ""
  36308. #. type: item
  36309. #: guix-git/doc/guix.texi:23992
  36310. #, fuzzy, no-wrap
  36311. msgid "@code{name-resolving?} (default: @code{#t})"
  36312. msgstr "@code{challenge}(默认值:@code{#f})"
  36313. #. type: table
  36314. #: guix-git/doc/guix.texi:23995
  36315. msgid "Enable name resolving after inquiry. Set it to @code{#f} if you don't need remote devices name and want shorter discovery cycle."
  36316. msgstr ""
  36317. #. type: item
  36318. #: guix-git/doc/guix.texi:23996
  36319. #, fuzzy, no-wrap
  36320. msgid "@code{debug-keys?} (default: @code{#f})"
  36321. msgstr "@code{challenge}(默认值:@code{#f})"
  36322. #. type: table
  36323. #: guix-git/doc/guix.texi:24000
  36324. 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."
  36325. msgstr ""
  36326. #. type: item
  36327. #: guix-git/doc/guix.texi:24001
  36328. #, fuzzy, no-wrap
  36329. msgid "@code{controller-mode} (default: @code{'dual})"
  36330. msgstr "@code{journal-content}(默认值:@code{#f})"
  36331. #. type: table
  36332. #: guix-git/doc/guix.texi:24004
  36333. msgid "Restricts all controllers to the specified transport. @code{'dual} means both BR/EDR and LE are enabled (if supported by the hardware)."
  36334. msgstr ""
  36335. #. type: code{#1}
  36336. #: guix-git/doc/guix.texi:24010
  36337. msgid "'dual"
  36338. msgstr ""
  36339. #. type: code{#1}
  36340. #: guix-git/doc/guix.texi:24013
  36341. msgid "'bredr"
  36342. msgstr ""
  36343. #. type: code{#1}
  36344. #: guix-git/doc/guix.texi:24016
  36345. msgid "'le"
  36346. msgstr ""
  36347. #. type: item
  36348. #: guix-git/doc/guix.texi:24019
  36349. #, fuzzy, no-wrap
  36350. msgid "@code{multi-profile} (default: @code{'off})"
  36351. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  36352. #. type: table
  36353. #: guix-git/doc/guix.texi:24024
  36354. 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."
  36355. msgstr ""
  36356. #. type: code{#1}
  36357. #: guix-git/doc/guix.texi:24030
  36358. msgid "'off"
  36359. msgstr ""
  36360. #. type: code{#1}
  36361. #: guix-git/doc/guix.texi:24033
  36362. msgid "'single"
  36363. msgstr ""
  36364. #. type: code{#1}
  36365. #: guix-git/doc/guix.texi:24036
  36366. msgid "'multiple"
  36367. msgstr ""
  36368. #. type: item
  36369. #: guix-git/doc/guix.texi:24039
  36370. #, fuzzy, no-wrap
  36371. msgid "@code{fast-connectable?} (default: @code{#f})"
  36372. msgstr "@code{challenge}(默认值:@code{#f})"
  36373. #. type: table
  36374. #: guix-git/doc/guix.texi:24044
  36375. 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."
  36376. msgstr ""
  36377. #. type: item
  36378. #: guix-git/doc/guix.texi:24045
  36379. #, fuzzy, no-wrap
  36380. msgid "@code{privacy} (default: @code{'off})"
  36381. msgstr "@code{port}(默认值:@code{22})"
  36382. #. type: table
  36383. #: guix-git/doc/guix.texi:24047
  36384. msgid "Default privacy settings."
  36385. msgstr ""
  36386. #. type: itemize
  36387. #: guix-git/doc/guix.texi:24051
  36388. msgid "@code{'off}: Disable local privacy"
  36389. msgstr ""
  36390. #. type: itemize
  36391. #: guix-git/doc/guix.texi:24056
  36392. 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"
  36393. msgstr ""
  36394. #. type: itemize
  36395. #: guix-git/doc/guix.texi:24062
  36396. 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"
  36397. msgstr ""
  36398. #. type: table
  36399. #: guix-git/doc/guix.texi:24066
  36400. msgid "and additionally, if @var{controller-mode} is set to @code{'dual}:"
  36401. msgstr ""
  36402. #. type: itemize
  36403. #: guix-git/doc/guix.texi:24072
  36404. 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"
  36405. msgstr ""
  36406. #. type: itemize
  36407. #: guix-git/doc/guix.texi:24077
  36408. 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."
  36409. msgstr ""
  36410. #. type: item
  36411. #: guix-git/doc/guix.texi:24080
  36412. #, fuzzy, no-wrap
  36413. msgid "@code{just-works-repairing} (default: @code{'never})"
  36414. msgstr "@code{features} (@code{'()})"
  36415. #. type: table
  36416. #: guix-git/doc/guix.texi:24082
  36417. msgid "Specify the policy to the JUST-WORKS repairing initiated by peer."
  36418. msgstr ""
  36419. #. type: table
  36420. #: guix-git/doc/guix.texi:24084 guix-git/doc/guix.texi:24109
  36421. #: guix-git/doc/guix.texi:24326
  36422. msgid "Possible values:"
  36423. msgstr ""
  36424. #. type: code{#1}
  36425. #: guix-git/doc/guix.texi:24087
  36426. msgid "'never"
  36427. msgstr ""
  36428. #. type: code{#1}
  36429. #: guix-git/doc/guix.texi:24090
  36430. msgid "'confirm"
  36431. msgstr ""
  36432. #. type: code{#1}
  36433. #: guix-git/doc/guix.texi:24093
  36434. msgid "'always"
  36435. msgstr ""
  36436. #. type: item
  36437. #: guix-git/doc/guix.texi:24096
  36438. #, fuzzy, no-wrap
  36439. msgid "@code{temporary-timeout} (default: @code{30})"
  36440. msgstr "@code{port}(默认值:@code{22})"
  36441. #. type: table
  36442. #: guix-git/doc/guix.texi:24099
  36443. msgid "How long to keep temporary devices around. The value is in seconds. @code{0} disables the timer completely."
  36444. msgstr ""
  36445. #. type: item
  36446. #: guix-git/doc/guix.texi:24100
  36447. #, fuzzy, no-wrap
  36448. msgid "@code{refresh-discovery?} (default: @code{#t})"
  36449. msgstr "@code{speed}(默认值:@code{1.0})"
  36450. #. type: table
  36451. #: guix-git/doc/guix.texi:24103
  36452. msgid "Enables the device to issue an SDP request to update known services when profile is connected."
  36453. msgstr ""
  36454. #. type: item
  36455. #: guix-git/doc/guix.texi:24104
  36456. #, fuzzy, no-wrap
  36457. msgid "@code{experimental} (default: @code{#f})"
  36458. msgstr "@code{port}(默认值:@code{22})"
  36459. #. type: table
  36460. #: guix-git/doc/guix.texi:24107
  36461. msgid "Enables experimental features and interfaces, alternatively a list of UUIDs can be given."
  36462. msgstr ""
  36463. #. type: code{#1}
  36464. #: guix-git/doc/guix.texi:24113
  36465. msgid "#t"
  36466. msgstr ""
  36467. #. type: code{#1}
  36468. #: guix-git/doc/guix.texi:24116
  36469. msgid "#f"
  36470. msgstr ""
  36471. #. type: itemize
  36472. #: guix-git/doc/guix.texi:24119 guix-git/doc/guix.texi:24333
  36473. msgid "@code{(list (uuid <uuid-1>) (uuid <uuid-2>) ...)}."
  36474. msgstr ""
  36475. #. type: table
  36476. #: guix-git/doc/guix.texi:24122
  36477. msgid "List of possible UUIDs:"
  36478. msgstr ""
  36479. #. type: itemize
  36480. #: guix-git/doc/guix.texi:24125
  36481. msgid "@code{d4992530-b9ec-469f-ab01-6c481c47da1c}: BlueZ Experimental Debug,"
  36482. msgstr ""
  36483. #. type: itemize
  36484. #: guix-git/doc/guix.texi:24128
  36485. msgid "@code{671b10b5-42c0-4696-9227-eb28d1b049d6}: BlueZ Experimental Simultaneous Central and Peripheral,"
  36486. msgstr ""
  36487. #. type: itemize
  36488. #: guix-git/doc/guix.texi:24131
  36489. msgid "@code{\"15c0a148-c273-11ea-b3de-0242ac130004}: BlueZ Experimental LL privacy,"
  36490. msgstr ""
  36491. #. type: itemize
  36492. #: guix-git/doc/guix.texi:24134
  36493. msgid "@code{330859bc-7506-492d-9370-9a6f0614037f}: BlueZ Experimental Bluetooth Quality Report,"
  36494. msgstr ""
  36495. #. type: itemize
  36496. #: guix-git/doc/guix.texi:24137
  36497. msgid "@code{a6695ace-ee7f-4fb9-881a-5fac66c629af}: BlueZ Experimental Offload Codecs."
  36498. msgstr ""
  36499. #. type: item
  36500. #: guix-git/doc/guix.texi:24139
  36501. #, fuzzy, no-wrap
  36502. msgid "@code{remote-name-request-retry-delay} (default: @code{300})"
  36503. msgstr "@code{speed}(默认值:@code{1.0})"
  36504. #. type: table
  36505. #: guix-git/doc/guix.texi:24142
  36506. msgid "The duration to avoid retrying to resolve a peer's name, if the previous try failed."
  36507. msgstr ""
  36508. #. type: item
  36509. #: guix-git/doc/guix.texi:24143
  36510. #, fuzzy, no-wrap
  36511. msgid "@code{page-scan-type} (default: @code{#f})"
  36512. msgstr "@code{challenge}(默认值:@code{#f})"
  36513. #. type: table
  36514. #: guix-git/doc/guix.texi:24145
  36515. msgid "BR/EDR Page scan activity type."
  36516. msgstr ""
  36517. #. type: item
  36518. #: guix-git/doc/guix.texi:24146
  36519. #, fuzzy, no-wrap
  36520. msgid "@code{page-scan-interval} (default: @code{#f})"
  36521. msgstr "@code{challenge}(默认值:@code{#f})"
  36522. #. type: table
  36523. #: guix-git/doc/guix.texi:24148
  36524. msgid "BR/EDR Page scan activity interval."
  36525. msgstr ""
  36526. #. type: item
  36527. #: guix-git/doc/guix.texi:24149
  36528. #, fuzzy, no-wrap
  36529. msgid "@code{page-scan-window} (default: @code{#f})"
  36530. msgstr "@code{speed}(默认值:@code{1.0})"
  36531. #. type: table
  36532. #: guix-git/doc/guix.texi:24151
  36533. msgid "BR/EDR Page scan activity window."
  36534. msgstr ""
  36535. #. type: item
  36536. #: guix-git/doc/guix.texi:24152
  36537. #, fuzzy, no-wrap
  36538. msgid "@code{inquiry-scan-type} (default: @code{#f})"
  36539. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  36540. #. type: table
  36541. #: guix-git/doc/guix.texi:24154
  36542. msgid "BR/EDR Inquiry scan activity type."
  36543. msgstr ""
  36544. #. type: item
  36545. #: guix-git/doc/guix.texi:24155
  36546. #, fuzzy, no-wrap
  36547. msgid "@code{inquiry-scan-interval} (default: @code{#f})"
  36548. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  36549. #. type: table
  36550. #: guix-git/doc/guix.texi:24157
  36551. msgid "BR/EDR Inquiry scan activity interval."
  36552. msgstr ""
  36553. #. type: item
  36554. #: guix-git/doc/guix.texi:24158
  36555. #, fuzzy, no-wrap
  36556. msgid "@code{inquiry-scan-window} (default: @code{#f})"
  36557. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  36558. #. type: table
  36559. #: guix-git/doc/guix.texi:24160
  36560. msgid "BR/EDR Inquiry scan activity window."
  36561. msgstr ""
  36562. #. type: item
  36563. #: guix-git/doc/guix.texi:24161
  36564. #, fuzzy, no-wrap
  36565. msgid "@code{link-supervision-timeout} (default: @code{#f})"
  36566. msgstr "@code{port}(默认值:@code{22})"
  36567. #. type: table
  36568. #: guix-git/doc/guix.texi:24163
  36569. msgid "BR/EDR Link supervision timeout."
  36570. msgstr ""
  36571. #. type: item
  36572. #: guix-git/doc/guix.texi:24164
  36573. #, fuzzy, no-wrap
  36574. msgid "@code{page-timeout} (default: @code{#f})"
  36575. msgstr "@code{port}(默认值:@code{22})"
  36576. #. type: table
  36577. #: guix-git/doc/guix.texi:24166
  36578. msgid "BR/EDR Page timeout."
  36579. msgstr ""
  36580. #. type: item
  36581. #: guix-git/doc/guix.texi:24167
  36582. #, fuzzy, no-wrap
  36583. msgid "@code{min-sniff-interval} (default: @code{#f})"
  36584. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  36585. #. type: table
  36586. #: guix-git/doc/guix.texi:24169
  36587. msgid "BR/EDR minimum sniff interval."
  36588. msgstr ""
  36589. #. type: item
  36590. #: guix-git/doc/guix.texi:24170
  36591. #, fuzzy, no-wrap
  36592. msgid "@code{max-sniff-interval} (default: @code{#f})"
  36593. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  36594. #. type: table
  36595. #: guix-git/doc/guix.texi:24172
  36596. msgid "BR/EDR maximum sniff interval."
  36597. msgstr ""
  36598. #. type: item
  36599. #: guix-git/doc/guix.texi:24173
  36600. #, fuzzy, no-wrap
  36601. msgid "@code{min-advertisement-interval} (default: @code{#f})"
  36602. msgstr "@code{challenge}(默认值:@code{#f})"
  36603. #. type: table
  36604. #: guix-git/doc/guix.texi:24175
  36605. msgid "LE minimum advertisement interval (used for legacy advertisement only)."
  36606. msgstr ""
  36607. #. type: item
  36608. #: guix-git/doc/guix.texi:24176
  36609. #, fuzzy, no-wrap
  36610. msgid "@code{max-advertisement-interval} (default: @code{#f})"
  36611. msgstr "@code{challenge}(默认值:@code{#f})"
  36612. #. type: table
  36613. #: guix-git/doc/guix.texi:24178
  36614. msgid "LE maximum advertisement interval (used for legacy advertisement only)."
  36615. msgstr ""
  36616. #. type: item
  36617. #: guix-git/doc/guix.texi:24179
  36618. #, fuzzy, no-wrap
  36619. msgid "@code{multi-advertisement-rotation-interval} (default: @code{#f})"
  36620. msgstr "@code{port}(默认值:@code{22})"
  36621. #. type: table
  36622. #: guix-git/doc/guix.texi:24181
  36623. msgid "LE multiple advertisement rotation interval."
  36624. msgstr ""
  36625. #. type: item
  36626. #: guix-git/doc/guix.texi:24182
  36627. #, fuzzy, no-wrap
  36628. msgid "@code{scan-interval-auto-connect} (default: @code{#f})"
  36629. msgstr "@code{journal-content}(默认值:@code{#f})"
  36630. #. type: table
  36631. #: guix-git/doc/guix.texi:24184
  36632. msgid "LE scanning interval used for passive scanning supporting auto connect."
  36633. msgstr ""
  36634. #. type: item
  36635. #: guix-git/doc/guix.texi:24185
  36636. #, fuzzy, no-wrap
  36637. msgid "@code{scan-window-auto-connect} (default: @code{#f})"
  36638. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  36639. #. type: table
  36640. #: guix-git/doc/guix.texi:24187
  36641. msgid "LE scanning window used for passive scanning supporting auto connect."
  36642. msgstr ""
  36643. #. type: item
  36644. #: guix-git/doc/guix.texi:24188
  36645. #, fuzzy, no-wrap
  36646. msgid "@code{scan-interval-suspend} (default: @code{#f})"
  36647. msgstr "@code{speed}(默认值:@code{1.0})"
  36648. #. type: table
  36649. #: guix-git/doc/guix.texi:24190
  36650. msgid "LE scanning interval used for active scanning supporting wake from suspend."
  36651. msgstr ""
  36652. #. type: item
  36653. #: guix-git/doc/guix.texi:24191
  36654. #, fuzzy, no-wrap
  36655. msgid "@code{scan-window-suspend} (default: @code{#f})"
  36656. msgstr "@code{port}(默认值:@code{22})"
  36657. #. type: table
  36658. #: guix-git/doc/guix.texi:24193
  36659. msgid "LE scanning window used for active scanning supporting wake from suspend."
  36660. msgstr ""
  36661. #. type: item
  36662. #: guix-git/doc/guix.texi:24194
  36663. #, fuzzy, no-wrap
  36664. msgid "@code{scan-interval-discovery} (default: @code{#f})"
  36665. msgstr "@code{speed}(默认值:@code{1.0})"
  36666. #. type: table
  36667. #: guix-git/doc/guix.texi:24196
  36668. msgid "LE scanning interval used for active scanning supporting discovery."
  36669. msgstr ""
  36670. #. type: item
  36671. #: guix-git/doc/guix.texi:24197
  36672. #, fuzzy, no-wrap
  36673. msgid "@code{scan-window-discovery} (default: @code{#f})"
  36674. msgstr "@code{speed}(默认值:@code{1.0})"
  36675. #. type: table
  36676. #: guix-git/doc/guix.texi:24199
  36677. msgid "LE scanning window used for active scanning supporting discovery."
  36678. msgstr ""
  36679. #. type: item
  36680. #: guix-git/doc/guix.texi:24200
  36681. #, fuzzy, no-wrap
  36682. msgid "@code{scan-interval-adv-monitor} (default: @code{#f})"
  36683. msgstr "@code{speed}(默认值:@code{1.0})"
  36684. #. type: table
  36685. #: guix-git/doc/guix.texi:24202
  36686. msgid "LE scanning interval used for passive scanning supporting the advertisement monitor APIs."
  36687. msgstr ""
  36688. #. type: item
  36689. #: guix-git/doc/guix.texi:24203
  36690. #, fuzzy, no-wrap
  36691. msgid "@code{scan-window-adv-monitor} (default: @code{#f})"
  36692. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  36693. #. type: table
  36694. #: guix-git/doc/guix.texi:24205
  36695. msgid "LE scanning window used for passive scanning supporting the advertisement monitor APIs."
  36696. msgstr ""
  36697. #. type: item
  36698. #: guix-git/doc/guix.texi:24206
  36699. #, fuzzy, no-wrap
  36700. #| msgid "@code{journal-content} (default: @code{#f})"
  36701. msgid "@code{scan-interval-connect} (default: @code{#f})"
  36702. msgstr "@code{journal-content}(默认值:@code{#f})"
  36703. #. type: table
  36704. #: guix-git/doc/guix.texi:24208
  36705. msgid "LE scanning interval used for connection establishment."
  36706. msgstr ""
  36707. #. type: item
  36708. #: guix-git/doc/guix.texi:24209
  36709. #, fuzzy, no-wrap
  36710. msgid "@code{scan-window-connect} (default: @code{#f})"
  36711. msgstr "@code{port}(默认值:@code{22})"
  36712. #. type: table
  36713. #: guix-git/doc/guix.texi:24211
  36714. msgid "LE scanning window used for connection establishment."
  36715. msgstr ""
  36716. #. type: item
  36717. #: guix-git/doc/guix.texi:24212
  36718. #, fuzzy, no-wrap
  36719. #| msgid "@code{max-zone-size} (default: @code{#f})"
  36720. msgid "@code{min-connection-interval} (default: @code{#f})"
  36721. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  36722. #. type: table
  36723. #: guix-git/doc/guix.texi:24215
  36724. msgid "LE default minimum connection interval. This value is superseded by any specific value provided via the Load Connection Parameters interface."
  36725. msgstr ""
  36726. #. type: item
  36727. #: guix-git/doc/guix.texi:24216
  36728. #, fuzzy, no-wrap
  36729. #| msgid "@code{max-zone-size} (default: @code{#f})"
  36730. msgid "@code{max-connection-interval} (default: @code{#f})"
  36731. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  36732. #. type: table
  36733. #: guix-git/doc/guix.texi:24219
  36734. msgid "LE default maximum connection interval. This value is superseded by any specific value provided via the Load Connection Parameters interface."
  36735. msgstr ""
  36736. #. type: item
  36737. #: guix-git/doc/guix.texi:24220
  36738. #, fuzzy, no-wrap
  36739. msgid "@code{connection-latency} (default: @code{#f})"
  36740. msgstr "@code{journal-content}(默认值:@code{#f})"
  36741. #. type: table
  36742. #: guix-git/doc/guix.texi:24223
  36743. msgid "LE default connection latency. This value is superseded by any specific value provided via the Load Connection Parameters interface."
  36744. msgstr ""
  36745. #. type: item
  36746. #: guix-git/doc/guix.texi:24224
  36747. #, fuzzy, no-wrap
  36748. msgid "@code{connection-supervision-timeout} (default: @code{#f})"
  36749. msgstr "@code{journal-content}(默认值:@code{#f})"
  36750. #. type: table
  36751. #: guix-git/doc/guix.texi:24227
  36752. msgid "LE default connection supervision timeout. This value is superseded by any specific value provided via the Load Connection Parameters interface."
  36753. msgstr ""
  36754. #. type: item
  36755. #: guix-git/doc/guix.texi:24228
  36756. #, fuzzy, no-wrap
  36757. msgid "@code{autoconnect-timeout} (default: @code{#f})"
  36758. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  36759. #. type: table
  36760. #: guix-git/doc/guix.texi:24231
  36761. msgid "LE default autoconnect timeout. This value is superseded by any specific value provided via the Load Connection Parameters interface."
  36762. msgstr ""
  36763. #. type: item
  36764. #: guix-git/doc/guix.texi:24232
  36765. #, fuzzy, no-wrap
  36766. msgid "@code{adv-mon-allowlist-scan-duration} (default: @code{300})"
  36767. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  36768. #. type: table
  36769. #: guix-git/doc/guix.texi:24235
  36770. msgid "Allowlist scan duration during interleaving scan. Only used when scanning for ADV monitors. The units are msec."
  36771. msgstr ""
  36772. #. type: item
  36773. #: guix-git/doc/guix.texi:24236
  36774. #, fuzzy, no-wrap
  36775. msgid "@code{adv-mon-no-filter-scan-duration} (default: @code{500})"
  36776. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  36777. #. type: table
  36778. #: guix-git/doc/guix.texi:24239
  36779. msgid "No filter scan duration during interleaving scan. Only used when scanning for ADV monitors. The units are msec."
  36780. msgstr ""
  36781. #. type: item
  36782. #: guix-git/doc/guix.texi:24240
  36783. #, fuzzy, no-wrap
  36784. msgid "@code{enable-adv-mon-interleave-scan?} (default: @code{#t})"
  36785. msgstr "@code{mate}(默认值:@code{mate})"
  36786. #. type: table
  36787. #: guix-git/doc/guix.texi:24242
  36788. msgid "Enable/Disable Advertisement Monitor interleave scan for power saving."
  36789. msgstr ""
  36790. #. type: item
  36791. #: guix-git/doc/guix.texi:24243
  36792. #, fuzzy, no-wrap
  36793. msgid "@code{cache} (default: @code{'always})"
  36794. msgstr "@code{challenge}(默认值:@code{#f})"
  36795. #. type: table
  36796. #: guix-git/doc/guix.texi:24245
  36797. msgid "GATT attribute cache."
  36798. msgstr ""
  36799. #. type: itemize
  36800. #: guix-git/doc/guix.texi:24253
  36801. 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"
  36802. msgstr ""
  36803. #. type: itemize
  36804. #: guix-git/doc/guix.texi:24256
  36805. msgid "@code{'yes}: Only cache attributes of paired devices"
  36806. msgstr ""
  36807. #. type: itemize
  36808. #: guix-git/doc/guix.texi:24259
  36809. msgid "@code{'no}: Never cache attributes."
  36810. msgstr ""
  36811. #. type: item
  36812. #: guix-git/doc/guix.texi:24261
  36813. #, fuzzy, no-wrap
  36814. #| msgid "@code{max-zone-size} (default: @code{#f})"
  36815. msgid "@code{key-size} (default: @code{0})"
  36816. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  36817. #. type: table
  36818. #: guix-git/doc/guix.texi:24263
  36819. msgid "Minimum required Encryption Key Size for accessing secured characteristics."
  36820. msgstr ""
  36821. #. type: itemize
  36822. #: guix-git/doc/guix.texi:24268
  36823. msgid "@code{0}: Don't care"
  36824. msgstr ""
  36825. #. type: code{#1}
  36826. #: guix-git/doc/guix.texi:24271
  36827. msgid "7 <= N <= 16"
  36828. msgstr ""
  36829. #. type: item
  36830. #: guix-git/doc/guix.texi:24273
  36831. #, fuzzy, no-wrap
  36832. msgid "@code{exchange-mtu} (default: @code{517})"
  36833. msgstr "@code{challenge}(默认值:@code{#f})"
  36834. #. type: table
  36835. #: guix-git/doc/guix.texi:24275
  36836. msgid "Exchange MTU size. Possible values are:"
  36837. msgstr ""
  36838. #. type: code{#1}
  36839. #: guix-git/doc/guix.texi:24279
  36840. msgid "23 <= N <= 517"
  36841. msgstr ""
  36842. #. type: item
  36843. #: guix-git/doc/guix.texi:24281
  36844. #, fuzzy, no-wrap
  36845. msgid "@code{att-channels} (default: @code{3})"
  36846. msgstr "@code{challenge}(默认值:@code{#f})"
  36847. #. type: table
  36848. #: guix-git/doc/guix.texi:24283
  36849. msgid "Number of ATT channels. Possible values are:"
  36850. msgstr ""
  36851. #. type: itemize
  36852. #: guix-git/doc/guix.texi:24287
  36853. msgid "@code{1}: Disables EATT"
  36854. msgstr ""
  36855. #. type: code{#1}
  36856. #: guix-git/doc/guix.texi:24290
  36857. msgid "2 <= N <= 5"
  36858. msgstr ""
  36859. #. type: item
  36860. #: guix-git/doc/guix.texi:24292
  36861. #, fuzzy, no-wrap
  36862. #| msgid "@code{compression-level} (default: @code{3})"
  36863. msgid "@code{session-mode} (default: @code{'basic})"
  36864. msgstr "@code{compression-level}(默认值:@code{3})"
  36865. #. type: table
  36866. #: guix-git/doc/guix.texi:24294
  36867. msgid "AVDTP L2CAP signalling channel mode."
  36868. msgstr ""
  36869. #. type: itemize
  36870. #: guix-git/doc/guix.texi:24300 guix-git/doc/guix.texi:24313
  36871. msgid "@code{'basic}: Use L2CAP basic mode"
  36872. msgstr ""
  36873. #. type: itemize
  36874. #: guix-git/doc/guix.texi:24303
  36875. msgid "@code{'ertm}: Use L2CAP enhanced retransmission mode."
  36876. msgstr ""
  36877. #. type: item
  36878. #: guix-git/doc/guix.texi:24305
  36879. #, fuzzy, no-wrap
  36880. msgid "@code{stream-mode} (default: @code{'basic})"
  36881. msgstr "@code{port}(默认值:@code{22})"
  36882. #. type: table
  36883. #: guix-git/doc/guix.texi:24307
  36884. msgid "AVDTP L2CAP transport channel mode."
  36885. msgstr ""
  36886. #. type: itemize
  36887. #: guix-git/doc/guix.texi:24316
  36888. msgid "@code{'streaming}: Use L2CAP streaming mode."
  36889. msgstr ""
  36890. #. type: item
  36891. #: guix-git/doc/guix.texi:24318
  36892. #, fuzzy, no-wrap
  36893. msgid "@code{reconnect-uuids} (default: @code{'()})"
  36894. msgstr "@code{features} (@code{'()})"
  36895. #. type: table
  36896. #: guix-git/doc/guix.texi:24324
  36897. 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."
  36898. msgstr ""
  36899. #. type: code{#1}
  36900. #: guix-git/doc/guix.texi:24330
  36901. msgid "'()"
  36902. msgstr ""
  36903. #. type: item
  36904. #: guix-git/doc/guix.texi:24335
  36905. #, fuzzy, no-wrap
  36906. msgid "@code{reconnect-attempts} (default: @code{7})"
  36907. msgstr "@code{port}(默认值:@code{22})"
  36908. #. type: table
  36909. #: guix-git/doc/guix.texi:24338
  36910. msgid "Defines the number of attempts to reconnect after a link lost. Setting the value to 0 disables reconnecting feature."
  36911. msgstr ""
  36912. #. type: item
  36913. #: guix-git/doc/guix.texi:24339
  36914. #, fuzzy, no-wrap
  36915. msgid "@code{reconnect-intervals} (default: @code{'(1 2 4 8 16 32 64)})"
  36916. msgstr "@code{port}(默认值:@code{22})"
  36917. #. type: table
  36918. #: guix-git/doc/guix.texi:24343
  36919. 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."
  36920. msgstr ""
  36921. #. type: item
  36922. #: guix-git/doc/guix.texi:24344
  36923. #, fuzzy, no-wrap
  36924. msgid "@code{auto-enable?} (default: @code{#f})"
  36925. msgstr "@code{challenge}(默认值:@code{#f})"
  36926. #. type: table
  36927. #: guix-git/doc/guix.texi:24347
  36928. 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."
  36929. msgstr ""
  36930. #. type: item
  36931. #: guix-git/doc/guix.texi:24348
  36932. #, fuzzy, no-wrap
  36933. #| msgid "@code{max-zone-size} (default: @code{#f})"
  36934. msgid "@code{resume-delay} (default: @code{2})"
  36935. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  36936. #. type: table
  36937. #: guix-git/doc/guix.texi:24353
  36938. 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."
  36939. msgstr ""
  36940. #. type: item
  36941. #: guix-git/doc/guix.texi:24354
  36942. #, fuzzy, no-wrap
  36943. msgid "@code{rssi-sampling-period} (default: @code{#xFF})"
  36944. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  36945. #. type: table
  36946. #: guix-git/doc/guix.texi:24357
  36947. msgid "Default RSSI Sampling Period. This is used when a client registers an advertisement monitor and leaves the RSSISamplingPeriod unset."
  36948. msgstr ""
  36949. #. type: itemize
  36950. #: guix-git/doc/guix.texi:24362
  36951. msgid "@code{#x0}: Report all advertisements"
  36952. msgstr ""
  36953. #. type: itemize
  36954. #: guix-git/doc/guix.texi:24365
  36955. msgid "@code{N = #xXX}: Report advertisements every N x 100 msec (range: #x01 to #xFE)"
  36956. msgstr ""
  36957. #. type: itemize
  36958. #: guix-git/doc/guix.texi:24368
  36959. msgid "@code{#xFF}: Report only one advertisement per device during monitoring period."
  36960. msgstr ""
  36961. #. type: defvar
  36962. #: guix-git/doc/guix.texi:24373
  36963. #, fuzzy, no-wrap
  36964. msgid "gnome-keyring-service-type"
  36965. msgstr "邮件服务"
  36966. #. type: defvar
  36967. #: guix-git/doc/guix.texi:24377
  36968. 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)."
  36969. msgstr ""
  36970. #. type: defvar
  36971. #: guix-git/doc/guix.texi:24381
  36972. 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."
  36973. msgstr ""
  36974. #. type: deftp
  36975. #: guix-git/doc/guix.texi:24383
  36976. #, no-wrap
  36977. msgid "{Data Type} gnome-keyring-configuration"
  36978. msgstr ""
  36979. #. type: deftp
  36980. #: guix-git/doc/guix.texi:24385
  36981. msgid "Configuration record for the GNOME Keyring service."
  36982. msgstr ""
  36983. #. type: item
  36984. #: guix-git/doc/guix.texi:24387
  36985. #, fuzzy, no-wrap
  36986. msgid "@code{keyring} (default: @code{gnome-keyring})"
  36987. msgstr "@code{gnome}(默认值:@code{gnome})"
  36988. #. type: table
  36989. #: guix-git/doc/guix.texi:24389
  36990. msgid "The GNOME keyring package to use."
  36991. msgstr ""
  36992. #. type: code{#1}
  36993. #: guix-git/doc/guix.texi:24390
  36994. #, fuzzy, no-wrap
  36995. msgid "pam-services"
  36996. msgstr "基础服务"
  36997. #. type: table
  36998. #: guix-git/doc/guix.texi:24395
  36999. 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}."
  37000. msgstr ""
  37001. #. type: table
  37002. #: guix-git/doc/guix.texi:24401
  37003. 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."
  37004. msgstr ""
  37005. #. type: table
  37006. #: guix-git/doc/guix.texi:24404
  37007. msgid "By default, this field contains ``gdm-password'' with the value @code{login} and ``passwd'' is with the value @code{passwd}."
  37008. msgstr ""
  37009. #. type: defvar
  37010. #: guix-git/doc/guix.texi:24407
  37011. #, fuzzy, no-wrap
  37012. msgid "seatd-service-type"
  37013. msgstr "邮件服务"
  37014. #. type: defvar
  37015. #: guix-git/doc/guix.texi:24410
  37016. msgid "@uref{https://sr.ht/~kennylevinsen/seatd/, seatd} is a minimal seat management daemon."
  37017. msgstr ""
  37018. #. type: defvar
  37019. #: guix-git/doc/guix.texi:24413
  37020. msgid "Seat management takes care of mediating access to shared devices (graphics, input), without requiring the applications needing access to be root."
  37021. msgstr ""
  37022. #. type: lisp
  37023. #: guix-git/doc/guix.texi:24419
  37024. #, no-wrap
  37025. msgid ""
  37026. "(append\n"
  37027. " (list\n"
  37028. " ;; make sure seatd is running\n"
  37029. " (service seatd-service-type))\n"
  37030. "\n"
  37031. msgstr ""
  37032. #. type: lisp
  37033. #: guix-git/doc/guix.texi:24422
  37034. #, no-wrap
  37035. msgid ""
  37036. " ;; normally one would want %base-services\n"
  37037. " %base-services)\n"
  37038. "\n"
  37039. msgstr ""
  37040. #. type: defvar
  37041. #: guix-git/doc/guix.texi:24431
  37042. msgid "@code{seatd} operates over a UNIX domain socket, with @code{libseat} providing the client side of the protocol. Applications that acquire access to the shared resources via @code{seatd} (e.g. @code{sway}) need to be able to talk to this socket. This can be achieved by adding the user they run under to the group owning @code{seatd}'s socket (usually ``seat''), like so:"
  37043. msgstr ""
  37044. #. type: lisp
  37045. #: guix-git/doc/guix.texi:24442
  37046. #, no-wrap
  37047. msgid ""
  37048. "(user-account\n"
  37049. " (name \"alice\")\n"
  37050. " (group \"users\")\n"
  37051. " (supplementary-groups '(\"wheel\" ; allow use of sudo, etc.\n"
  37052. " \"seat\" ; seat management\n"
  37053. " \"audio\" ; sound card\n"
  37054. " \"video\" ; video devices such as webcams\n"
  37055. " \"cdrom\")) ; the good ol' CD-ROM\n"
  37056. " (comment \"Bob's sister\"))\n"
  37057. msgstr ""
  37058. #. type: defvar
  37059. #: guix-git/doc/guix.texi:24447
  37060. msgid "Depending on your setup, you will have to not only add regular users, but also system users to this group. For instance, some greetd greeters require graphics and therefore also need to negotiate with seatd."
  37061. msgstr ""
  37062. #. type: deftp
  37063. #: guix-git/doc/guix.texi:24450
  37064. #, fuzzy, no-wrap
  37065. msgid "{Data Type} seatd-configuration"
  37066. msgstr "{数据类型} build-machine"
  37067. #. type: deftp
  37068. #: guix-git/doc/guix.texi:24452
  37069. #, fuzzy
  37070. msgid "Configuration record for the seatd daemon service."
  37071. msgstr "管理操作系统配置。"
  37072. #. type: item
  37073. #: guix-git/doc/guix.texi:24454
  37074. #, fuzzy, no-wrap
  37075. msgid "@code{seatd} (default: @code{seatd})"
  37076. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  37077. #. type: table
  37078. #: guix-git/doc/guix.texi:24456
  37079. #, fuzzy
  37080. msgid "The seatd package to use."
  37081. msgstr "软件包数据类型。"
  37082. #. type: item
  37083. #: guix-git/doc/guix.texi:24457
  37084. #, fuzzy, no-wrap
  37085. msgid "@code{group} (default: @samp{\"seat\"})"
  37086. msgstr "@code{gnome}(默认值:@code{gnome})"
  37087. #. type: table
  37088. #: guix-git/doc/guix.texi:24459
  37089. msgid "Group to own the seatd socket."
  37090. msgstr ""
  37091. #. type: item
  37092. #: guix-git/doc/guix.texi:24460
  37093. #, fuzzy, no-wrap
  37094. msgid "@code{socket} (default: @samp{\"/run/seatd.sock\"})"
  37095. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  37096. #. type: table
  37097. #: guix-git/doc/guix.texi:24462
  37098. msgid "Where to create the seatd socket."
  37099. msgstr ""
  37100. #. type: item
  37101. #: guix-git/doc/guix.texi:24463
  37102. #, fuzzy, no-wrap
  37103. msgid "@code{logfile} (default: @samp{\"/var/log/seatd.log\"})"
  37104. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  37105. #. type: table
  37106. #: guix-git/doc/guix.texi:24465
  37107. msgid "Log file to write to."
  37108. msgstr ""
  37109. #. type: item
  37110. #: guix-git/doc/guix.texi:24466
  37111. #, fuzzy, no-wrap
  37112. msgid "@code{loglevel} (default: @samp{\"error\"})"
  37113. msgstr "@code{challenge}(默认值:@code{#f})"
  37114. #. type: table
  37115. #: guix-git/doc/guix.texi:24469
  37116. msgid "Log level to output logs. Possible values: @samp{\"silent\"}, @samp{\"error\"}, @samp{\"info\"} and @samp{\"debug\"}."
  37117. msgstr ""
  37118. #. type: cindex
  37119. #: guix-git/doc/guix.texi:24477
  37120. #, no-wrap
  37121. msgid "sound support"
  37122. msgstr ""
  37123. #. type: cindex
  37124. #: guix-git/doc/guix.texi:24478
  37125. #, no-wrap
  37126. msgid "ALSA"
  37127. msgstr ""
  37128. #. type: cindex
  37129. #: guix-git/doc/guix.texi:24479
  37130. #, no-wrap
  37131. msgid "PulseAudio, sound support"
  37132. msgstr ""
  37133. #. type: Plain text
  37134. #: guix-git/doc/guix.texi:24484
  37135. 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."
  37136. msgstr ""
  37137. #. type: defvar
  37138. #: guix-git/doc/guix.texi:24485
  37139. #, fuzzy, no-wrap
  37140. msgid "alsa-service-type"
  37141. msgstr "邮件服务"
  37142. #. type: defvar
  37143. #: guix-git/doc/guix.texi:24490
  37144. 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:"
  37145. msgstr ""
  37146. #. type: lisp
  37147. #: guix-git/doc/guix.texi:24493
  37148. #, no-wrap
  37149. msgid "(service alsa-service-type)\n"
  37150. msgstr ""
  37151. #. type: defvar
  37152. #: guix-git/doc/guix.texi:24496
  37153. msgid "See below for details about @code{alsa-configuration}."
  37154. msgstr ""
  37155. #. type: deftp
  37156. #: guix-git/doc/guix.texi:24498
  37157. #, no-wrap
  37158. msgid "{Data Type} alsa-configuration"
  37159. msgstr ""
  37160. #. type: deftp
  37161. #: guix-git/doc/guix.texi:24500
  37162. msgid "Data type representing the configuration for @code{alsa-service}."
  37163. msgstr ""
  37164. #. type: item
  37165. #: guix-git/doc/guix.texi:24502
  37166. #, no-wrap
  37167. msgid "@code{alsa-plugins} (default: @var{alsa-plugins})"
  37168. msgstr ""
  37169. #. type: table
  37170. #: guix-git/doc/guix.texi:24504
  37171. msgid "@code{alsa-plugins} package to use."
  37172. msgstr ""
  37173. #. type: item
  37174. #: guix-git/doc/guix.texi:24505
  37175. #, no-wrap
  37176. msgid "@code{pulseaudio?} (default: @var{#t})"
  37177. msgstr ""
  37178. #. type: table
  37179. #: guix-git/doc/guix.texi:24508
  37180. msgid "Whether ALSA applications should transparently be made to use the @uref{https://www.pulseaudio.org/, PulseAudio} sound server."
  37181. msgstr ""
  37182. #. type: table
  37183. #: guix-git/doc/guix.texi:24512
  37184. 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."
  37185. msgstr ""
  37186. #. type: item
  37187. #: guix-git/doc/guix.texi:24513
  37188. #, no-wrap
  37189. msgid "@code{extra-options} (default: @var{\"\"})"
  37190. msgstr ""
  37191. #. type: table
  37192. #: guix-git/doc/guix.texi:24515
  37193. msgid "String to append to the @file{/etc/asound.conf} file."
  37194. msgstr ""
  37195. #. type: Plain text
  37196. #: guix-git/doc/guix.texi:24521
  37197. msgid "Individual users who want to override the system configuration of ALSA can do it with the @file{~/.asoundrc} file:"
  37198. msgstr ""
  37199. #. type: example
  37200. #: guix-git/doc/guix.texi:24527
  37201. #, no-wrap
  37202. msgid ""
  37203. "# In guix, we have to specify the absolute path for plugins.\n"
  37204. "pcm_type.jack @{\n"
  37205. " lib \"/home/alice/.guix-profile/lib/alsa-lib/libasound_module_pcm_jack.so\"\n"
  37206. "@}\n"
  37207. "\n"
  37208. msgstr ""
  37209. #. type: example
  37210. #: guix-git/doc/guix.texi:24536
  37211. #, no-wrap
  37212. msgid ""
  37213. "# Routing ALSA to jack:\n"
  37214. "# <http://jackaudio.org/faq/routing_alsa.html>.\n"
  37215. "pcm.rawjack @{\n"
  37216. " type jack\n"
  37217. " playback_ports @{\n"
  37218. " 0 system:playback_1\n"
  37219. " 1 system:playback_2\n"
  37220. " @}\n"
  37221. "\n"
  37222. msgstr ""
  37223. #. type: example
  37224. #: guix-git/doc/guix.texi:24542
  37225. #, no-wrap
  37226. msgid ""
  37227. " capture_ports @{\n"
  37228. " 0 system:capture_1\n"
  37229. " 1 system:capture_2\n"
  37230. " @}\n"
  37231. "@}\n"
  37232. "\n"
  37233. msgstr ""
  37234. #. type: example
  37235. #: guix-git/doc/guix.texi:24549
  37236. #, no-wrap
  37237. msgid ""
  37238. "pcm.!default @{\n"
  37239. " type plug\n"
  37240. " slave @{\n"
  37241. " pcm \"rawjack\"\n"
  37242. " @}\n"
  37243. "@}\n"
  37244. msgstr ""
  37245. #. type: Plain text
  37246. #: guix-git/doc/guix.texi:24553
  37247. msgid "See @uref{https://www.alsa-project.org/main/index.php/Asoundrc} for the details."
  37248. msgstr ""
  37249. #. type: defvar
  37250. #: guix-git/doc/guix.texi:24554
  37251. #, fuzzy, no-wrap
  37252. msgid "pulseaudio-service-type"
  37253. msgstr "邮件服务"
  37254. #. type: defvar
  37255. #: guix-git/doc/guix.texi:24558
  37256. 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."
  37257. msgstr ""
  37258. #. type: quotation
  37259. #: guix-git/doc/guix.texi:24564
  37260. 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}."
  37261. msgstr ""
  37262. #. type: quotation
  37263. #: guix-git/doc/guix.texi:24572
  37264. 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."
  37265. msgstr ""
  37266. #. type: deftp
  37267. #: guix-git/doc/guix.texi:24575
  37268. #, fuzzy, no-wrap
  37269. msgid "{Data Type} pulseaudio-configuration"
  37270. msgstr "{数据类型} build-machine"
  37271. #. type: deftp
  37272. #: guix-git/doc/guix.texi:24577
  37273. msgid "Data type representing the configuration for @code{pulseaudio-service}."
  37274. msgstr ""
  37275. #. type: item
  37276. #: guix-git/doc/guix.texi:24579
  37277. #, fuzzy, no-wrap
  37278. msgid "@code{client-conf} (default: @code{'()})"
  37279. msgstr "@code{includes}(默认值:@code{'()})"
  37280. #. type: table
  37281. #: guix-git/doc/guix.texi:24584
  37282. 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."
  37283. msgstr ""
  37284. #. type: item
  37285. #: guix-git/doc/guix.texi:24585
  37286. #, fuzzy, no-wrap
  37287. msgid "@code{daemon-conf} (default: @code{'((flat-volumes . no))})"
  37288. msgstr "@code{mate}(默认值:@code{mate})"
  37289. #. type: table
  37290. #: guix-git/doc/guix.texi:24588
  37291. msgid "List of settings to set in @file{daemon.conf}, formatted just like @var{client-conf}."
  37292. msgstr ""
  37293. #. type: item
  37294. #: guix-git/doc/guix.texi:24589
  37295. #, no-wrap
  37296. msgid "@code{script-file} (default: @code{(file-append pulseaudio \"/etc/pulse/default.pa\")})"
  37297. msgstr ""
  37298. #. type: table
  37299. #: guix-git/doc/guix.texi:24594
  37300. 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."
  37301. msgstr ""
  37302. #. type: item
  37303. #: guix-git/doc/guix.texi:24595
  37304. #, fuzzy, no-wrap
  37305. msgid "@code{extra-script-files} (default: @code{'()})"
  37306. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  37307. #. type: table
  37308. #: guix-git/doc/guix.texi:24602
  37309. 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}."
  37310. msgstr ""
  37311. #. type: item
  37312. #: guix-git/doc/guix.texi:24603
  37313. #, no-wrap
  37314. msgid "@code{system-script-file} (default: @code{(file-append pulseaudio \"/etc/pulse/system.pa\")})"
  37315. msgstr ""
  37316. #. type: table
  37317. #: guix-git/doc/guix.texi:24605
  37318. msgid "Script file to use as @file{system.pa}."
  37319. msgstr ""
  37320. #. type: deftp
  37321. #: guix-git/doc/guix.texi:24610
  37322. 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:"
  37323. msgstr ""
  37324. #. type: lisp
  37325. #: guix-git/doc/guix.texi:24619
  37326. #, no-wrap
  37327. msgid ""
  37328. "(pulseaudio-configuration\n"
  37329. " (extra-script-files\n"
  37330. " (list (plain-file \"audigy.pa\"\n"
  37331. " (string-append \"\\\n"
  37332. "set-card-profile alsa_card.pci-0000_01_01.0 \\\n"
  37333. " output:analog-surround-40+input:analog-mono\n"
  37334. "set-default-source alsa_input.pci-0000_01_01.0.analog-mono\n"
  37335. "set-default-sink alsa_output.pci-0000_01_01.0.analog-surround-40\\n\")))))\n"
  37336. msgstr ""
  37337. #. type: deftp
  37338. #: guix-git/doc/guix.texi:24627
  37339. 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."
  37340. msgstr ""
  37341. #. type: defvar
  37342. #: guix-git/doc/guix.texi:24630
  37343. #, fuzzy, no-wrap
  37344. msgid "ladspa-service-type"
  37345. msgstr "邮件服务"
  37346. #. type: defvar
  37347. #: guix-git/doc/guix.texi:24633
  37348. msgid "This service sets the @var{LADSPA_PATH} variable, so that programs, which respect it, e.g. PulseAudio, can load LADSPA plugins."
  37349. msgstr ""
  37350. #. type: defvar
  37351. #: guix-git/doc/guix.texi:24636
  37352. msgid "The following example will setup the service to enable modules from the @code{swh-plugins} package:"
  37353. msgstr ""
  37354. #. type: lisp
  37355. #: guix-git/doc/guix.texi:24640
  37356. #, no-wrap
  37357. msgid ""
  37358. "(service ladspa-service-type\n"
  37359. " (ladspa-configuration (plugins (list swh-plugins))))\n"
  37360. msgstr ""
  37361. #. type: defvar
  37362. #: guix-git/doc/guix.texi:24644
  37363. msgid "See @uref{http://plugin.org.uk/ladspa-swh/docs/ladspa-swh.html} for the details."
  37364. msgstr ""
  37365. #. type: cindex
  37366. #: guix-git/doc/guix.texi:24651
  37367. #, no-wrap
  37368. msgid "SQL"
  37369. msgstr ""
  37370. #. type: Plain text
  37371. #: guix-git/doc/guix.texi:24653
  37372. msgid "The @code{(gnu services databases)} module provides the following services."
  37373. msgstr ""
  37374. #. type: subsubheading
  37375. #: guix-git/doc/guix.texi:24654
  37376. #, no-wrap
  37377. msgid "PostgreSQL"
  37378. msgstr ""
  37379. #. type: Plain text
  37380. #: guix-git/doc/guix.texi:24658
  37381. msgid "The following example describes a PostgreSQL service with the default configuration."
  37382. msgstr ""
  37383. #. type: lisp
  37384. #: guix-git/doc/guix.texi:24663
  37385. #, no-wrap
  37386. msgid ""
  37387. "(service postgresql-service-type\n"
  37388. " (postgresql-configuration\n"
  37389. " (postgresql postgresql-10)))\n"
  37390. msgstr ""
  37391. #. type: Plain text
  37392. #: guix-git/doc/guix.texi:24669
  37393. 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."
  37394. msgstr ""
  37395. #. type: Plain text
  37396. #: guix-git/doc/guix.texi:24676
  37397. 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."
  37398. msgstr ""
  37399. #. type: example
  37400. #: guix-git/doc/guix.texi:24681
  37401. #, no-wrap
  37402. msgid ""
  37403. "sudo -u postgres -s /bin/sh\n"
  37404. "createuser --interactive\n"
  37405. "createdb $MY_USER_LOGIN # Replace appropriately.\n"
  37406. msgstr ""
  37407. #. type: deftp
  37408. #: guix-git/doc/guix.texi:24683
  37409. #, no-wrap
  37410. msgid "{Data Type} postgresql-configuration"
  37411. msgstr ""
  37412. #. type: deftp
  37413. #: guix-git/doc/guix.texi:24686
  37414. msgid "Data type representing the configuration for the @code{postgresql-service-type}."
  37415. msgstr ""
  37416. #. type: code{#1}
  37417. #: guix-git/doc/guix.texi:24688
  37418. #, no-wrap
  37419. msgid "postgresql"
  37420. msgstr ""
  37421. #. type: table
  37422. #: guix-git/doc/guix.texi:24690
  37423. msgid "PostgreSQL package to use for the service."
  37424. msgstr ""
  37425. #. type: item
  37426. #: guix-git/doc/guix.texi:24691
  37427. #, fuzzy, no-wrap
  37428. msgid "@code{port} (default: @code{5432})"
  37429. msgstr "@code{port}(默认值:@code{22})"
  37430. #. type: table
  37431. #: guix-git/doc/guix.texi:24693
  37432. msgid "Port on which PostgreSQL should listen."
  37433. msgstr ""
  37434. #. type: table
  37435. #: guix-git/doc/guix.texi:24696
  37436. msgid "Locale to use as the default when creating the database cluster."
  37437. msgstr ""
  37438. #. type: item
  37439. #: guix-git/doc/guix.texi:24697
  37440. #, fuzzy, no-wrap
  37441. msgid "@code{config-file} (default: @code{(postgresql-config-file)})"
  37442. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  37443. #. type: table
  37444. #: guix-git/doc/guix.texi:24701
  37445. 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."
  37446. msgstr ""
  37447. #. type: item
  37448. #: guix-git/doc/guix.texi:24702
  37449. #, fuzzy, no-wrap
  37450. msgid "@code{log-directory} (default: @code{\"/var/log/postgresql\"})"
  37451. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  37452. #. type: table
  37453. #: guix-git/doc/guix.texi:24706
  37454. 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."
  37455. msgstr ""
  37456. #. type: item
  37457. #: guix-git/doc/guix.texi:24707
  37458. #, fuzzy, no-wrap
  37459. msgid "@code{data-directory} (default: @code{\"/var/lib/postgresql/data\"})"
  37460. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  37461. #. type: table
  37462. #: guix-git/doc/guix.texi:24709
  37463. msgid "Directory in which to store the data."
  37464. msgstr ""
  37465. #. type: item
  37466. #: guix-git/doc/guix.texi:24710
  37467. #, fuzzy, no-wrap
  37468. msgid "@code{extension-packages} (default: @code{'()})"
  37469. msgstr "@code{includes}(默认值:@code{'()})"
  37470. #. type: cindex
  37471. #: guix-git/doc/guix.texi:24711
  37472. #, no-wrap
  37473. msgid "postgresql extension-packages"
  37474. msgstr ""
  37475. #. type: table
  37476. #: guix-git/doc/guix.texi:24716
  37477. 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:"
  37478. msgstr ""
  37479. #. type: cindex
  37480. #: guix-git/doc/guix.texi:24717
  37481. #, no-wrap
  37482. msgid "postgis"
  37483. msgstr ""
  37484. #. type: lisp
  37485. #: guix-git/doc/guix.texi:24720
  37486. #, no-wrap
  37487. msgid ""
  37488. "(use-package-modules databases geo)\n"
  37489. "\n"
  37490. msgstr ""
  37491. #. type: lisp
  37492. #: guix-git/doc/guix.texi:24733
  37493. #, no-wrap
  37494. msgid ""
  37495. "(operating-system\n"
  37496. " ...\n"
  37497. " ;; postgresql is required to run `psql' but postgis is not required for\n"
  37498. " ;; proper operation.\n"
  37499. " (packages (cons* postgresql %base-packages))\n"
  37500. " (services\n"
  37501. " (cons*\n"
  37502. " (service postgresql-service-type\n"
  37503. " (postgresql-configuration\n"
  37504. " (postgresql postgresql-10)\n"
  37505. " (extension-packages (list postgis))))\n"
  37506. " %base-services)))\n"
  37507. msgstr ""
  37508. #. type: table
  37509. #: guix-git/doc/guix.texi:24737
  37510. msgid "Then the extension becomes visible and you can initialise an empty geographic database in this way:"
  37511. msgstr ""
  37512. #. type: example
  37513. #: guix-git/doc/guix.texi:24744
  37514. #, no-wrap
  37515. msgid ""
  37516. "psql -U postgres\n"
  37517. "> create database postgistest;\n"
  37518. "> \\connect postgistest;\n"
  37519. "> create extension postgis;\n"
  37520. "> create extension postgis_topology;\n"
  37521. msgstr ""
  37522. #. type: table
  37523. #: guix-git/doc/guix.texi:24749
  37524. 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."
  37525. msgstr ""
  37526. #. type: deftp
  37527. #: guix-git/doc/guix.texi:24753
  37528. #, no-wrap
  37529. msgid "{Data Type} postgresql-config-file"
  37530. msgstr ""
  37531. #. type: deftp
  37532. #: guix-git/doc/guix.texi:24759
  37533. 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."
  37534. msgstr ""
  37535. #. type: lisp
  37536. #: guix-git/doc/guix.texi:24779
  37537. #, no-wrap
  37538. msgid ""
  37539. "(service postgresql-service-type\n"
  37540. " (postgresql-configuration\n"
  37541. " (config-file\n"
  37542. " (postgresql-config-file\n"
  37543. " (log-destination \"stderr\")\n"
  37544. " (hba-file\n"
  37545. " (plain-file \"pg_hba.conf\"\n"
  37546. " \"\n"
  37547. "local\tall\tall\t\t\ttrust\n"
  37548. "host\tall\tall\t127.0.0.1/32 \tmd5\n"
  37549. "host\tall\tall\t::1/128 \tmd5\"))\n"
  37550. " (extra-config\n"
  37551. " '((\"session_preload_libraries\" \"auto_explain\")\n"
  37552. " (\"random_page_cost\" 2)\n"
  37553. " (\"auto_explain.log_min_duration\" \"100 ms\")\n"
  37554. " (\"work_mem\" \"500 MB\")\n"
  37555. " (\"logging_collector\" #t)\n"
  37556. " (\"log_directory\" \"/var/log/postgresql\")))))))\n"
  37557. msgstr ""
  37558. #. type: item
  37559. #: guix-git/doc/guix.texi:24782
  37560. #, fuzzy, no-wrap
  37561. msgid "@code{log-destination} (default: @code{\"syslog\"})"
  37562. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  37563. #. type: table
  37564. #: guix-git/doc/guix.texi:24785
  37565. msgid "The logging method to use for PostgreSQL@. Multiple values are accepted, separated by commas."
  37566. msgstr ""
  37567. #. type: item
  37568. #: guix-git/doc/guix.texi:24786
  37569. #, fuzzy, no-wrap
  37570. msgid "@code{hba-file} (default: @code{%default-postgres-hba})"
  37571. msgstr "@code{mate}(默认值:@code{mate})"
  37572. #. type: table
  37573. #: guix-git/doc/guix.texi:24789
  37574. msgid "Filename or G-expression for the host-based authentication configuration."
  37575. msgstr ""
  37576. #. type: item
  37577. #: guix-git/doc/guix.texi:24790
  37578. #, fuzzy, no-wrap
  37579. msgid "@code{ident-file} (default: @code{%default-postgres-ident})"
  37580. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  37581. #. type: table
  37582. #: guix-git/doc/guix.texi:24792
  37583. msgid "Filename or G-expression for the user name mapping configuration."
  37584. msgstr ""
  37585. #. type: item
  37586. #: guix-git/doc/guix.texi:24793
  37587. #, fuzzy, no-wrap
  37588. msgid "@code{socket-directory} (default: @code{\"/var/run/postgresql\"})"
  37589. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  37590. #. type: table
  37591. #: guix-git/doc/guix.texi:24798
  37592. 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."
  37593. msgstr ""
  37594. #. type: table
  37595. #: guix-git/doc/guix.texi:24801
  37596. msgid "By default, the @code{#false} value means the PostgreSQL default value will be used, which is currently @samp{/tmp}."
  37597. msgstr ""
  37598. #. type: table
  37599. #: guix-git/doc/guix.texi:24806
  37600. 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."
  37601. msgstr ""
  37602. #. type: table
  37603. #: guix-git/doc/guix.texi:24812
  37604. 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}."
  37605. msgstr ""
  37606. #. type: defvar
  37607. #: guix-git/doc/guix.texi:24816
  37608. #, fuzzy, no-wrap
  37609. msgid "postgresql-role-service-type"
  37610. msgstr "邮件服务"
  37611. #. type: defvar
  37612. #: guix-git/doc/guix.texi:24819
  37613. msgid "This service allows to create PostgreSQL roles and databases after PostgreSQL service start. Here is an example of its use."
  37614. msgstr ""
  37615. #. type: lisp
  37616. #: guix-git/doc/guix.texi:24827
  37617. #, no-wrap
  37618. msgid ""
  37619. "(service postgresql-role-service-type\n"
  37620. " (postgresql-role-configuration\n"
  37621. " (roles\n"
  37622. " (list (postgresql-role\n"
  37623. " (name \"test\")\n"
  37624. " (create-database? #t))))))\n"
  37625. msgstr ""
  37626. #. type: defvar
  37627. #: guix-git/doc/guix.texi:24831
  37628. msgid "This service can be extended with extra roles, as in this example:"
  37629. msgstr ""
  37630. #. type: lisp
  37631. #: guix-git/doc/guix.texi:24837
  37632. #, no-wrap
  37633. msgid ""
  37634. "(service-extension postgresql-role-service-type\n"
  37635. " (const (postgresql-role\n"
  37636. " (name \"alice\")\n"
  37637. " (create-database? #t))))\n"
  37638. msgstr ""
  37639. #. type: deftp
  37640. #: guix-git/doc/guix.texi:24840
  37641. #, fuzzy, no-wrap
  37642. msgid "{Data Type} postgresql-role"
  37643. msgstr "{数据类型} build-machine"
  37644. #. type: deftp
  37645. #: guix-git/doc/guix.texi:24846
  37646. 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."
  37647. msgstr ""
  37648. #. type: table
  37649. #: guix-git/doc/guix.texi:24850
  37650. #, fuzzy
  37651. msgid "The role name."
  37652. msgstr "仓库monad"
  37653. #. type: item
  37654. #: guix-git/doc/guix.texi:24851
  37655. #, fuzzy, no-wrap
  37656. msgid "@code{permissions} (default: @code{'(createdb login)})"
  37657. msgstr "@code{includes}(默认值:@code{'()})"
  37658. #. type: table
  37659. #: guix-git/doc/guix.texi:24855
  37660. msgid "The role permissions list. Supported permissions are @code{bypassrls}, @code{createdb}, @code{createrole}, @code{login}, @code{replication} and @code{superuser}."
  37661. msgstr ""
  37662. #. type: item
  37663. #: guix-git/doc/guix.texi:24856
  37664. #, fuzzy, no-wrap
  37665. msgid "@code{create-database?} (default: @code{#f})"
  37666. msgstr "@code{challenge}(默认值:@code{#f})"
  37667. #. type: table
  37668. #: guix-git/doc/guix.texi:24858
  37669. msgid "Whether to create a database with the same name as the role."
  37670. msgstr ""
  37671. #. type: deftp
  37672. #: guix-git/doc/guix.texi:24862
  37673. #, fuzzy, no-wrap
  37674. msgid "{Data Type} postgresql-role-configuration"
  37675. msgstr "管理操作系统配置。"
  37676. #. type: deftp
  37677. #: guix-git/doc/guix.texi:24865
  37678. #, fuzzy
  37679. msgid "Data type representing the configuration of @var{postgresql-role-service-type}."
  37680. msgstr "管理操作系统配置。"
  37681. #. type: item
  37682. #: guix-git/doc/guix.texi:24867
  37683. #, fuzzy, no-wrap
  37684. msgid "@code{host} (default: @code{\"/var/run/postgresql\"})"
  37685. msgstr "@code{port}(默认值:@code{22})"
  37686. #. type: table
  37687. #: guix-git/doc/guix.texi:24869
  37688. msgid "The PostgreSQL host to connect to."
  37689. msgstr ""
  37690. #. type: item
  37691. #: guix-git/doc/guix.texi:24870
  37692. #, fuzzy, no-wrap
  37693. msgid "@code{log} (default: @code{\"/var/log/postgresql_roles.log\"})"
  37694. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  37695. #. type: table
  37696. #: guix-git/doc/guix.texi:24872
  37697. #, fuzzy
  37698. msgid "File name of the log file."
  37699. msgstr "远程机器的主机名。"
  37700. #. type: item
  37701. #: guix-git/doc/guix.texi:24873
  37702. #, fuzzy, no-wrap
  37703. msgid "@code{roles} (default: @code{'()})"
  37704. msgstr "@code{features} (@code{'()})"
  37705. #. type: table
  37706. #: guix-git/doc/guix.texi:24875
  37707. msgid "The initial PostgreSQL roles to create."
  37708. msgstr ""
  37709. #. type: subsubheading
  37710. #: guix-git/doc/guix.texi:24878
  37711. #, no-wrap
  37712. msgid "MariaDB/MySQL"
  37713. msgstr ""
  37714. #. type: defvar
  37715. #: guix-git/doc/guix.texi:24880
  37716. #, fuzzy, no-wrap
  37717. msgid "mysql-service-type"
  37718. msgstr "邮件服务"
  37719. #. type: defvar
  37720. #: guix-git/doc/guix.texi:24884
  37721. 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."
  37722. msgstr ""
  37723. #. type: deftp
  37724. #: guix-git/doc/guix.texi:24886
  37725. #, no-wrap
  37726. msgid "{Data Type} mysql-configuration"
  37727. msgstr ""
  37728. #. type: deftp
  37729. #: guix-git/doc/guix.texi:24888
  37730. #, fuzzy
  37731. msgid "Data type representing the configuration of @var{mysql-service-type}."
  37732. msgstr "管理操作系统配置。"
  37733. #. type: item
  37734. #: guix-git/doc/guix.texi:24890
  37735. #, no-wrap
  37736. msgid "@code{mysql} (default: @var{mariadb})"
  37737. msgstr ""
  37738. #. type: table
  37739. #: guix-git/doc/guix.texi:24893
  37740. msgid "Package object of the MySQL database server, can be either @var{mariadb} or @var{mysql}."
  37741. msgstr ""
  37742. #. type: table
  37743. #: guix-git/doc/guix.texi:24896
  37744. msgid "For MySQL, a temporary root password will be displayed at activation time. For MariaDB, the root password is empty."
  37745. msgstr ""
  37746. #. type: item
  37747. #: guix-git/doc/guix.texi:24897 guix-git/doc/guix.texi:28741
  37748. #, no-wrap
  37749. msgid "@code{bind-address} (default: @code{\"127.0.0.1\"})"
  37750. msgstr ""
  37751. #. type: table
  37752. #: guix-git/doc/guix.texi:24900
  37753. msgid "The IP on which to listen for network connections. Use @code{\"0.0.0.0\"} to bind to all available network interfaces."
  37754. msgstr ""
  37755. #. type: item
  37756. #: guix-git/doc/guix.texi:24901
  37757. #, no-wrap
  37758. msgid "@code{port} (default: @code{3306})"
  37759. msgstr ""
  37760. #. type: table
  37761. #: guix-git/doc/guix.texi:24903
  37762. msgid "TCP port on which the database server listens for incoming connections."
  37763. msgstr ""
  37764. #. type: item
  37765. #: guix-git/doc/guix.texi:24904
  37766. #, fuzzy, no-wrap
  37767. msgid "@code{socket} (default: @code{\"/run/mysqld/mysqld.sock\"})"
  37768. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  37769. #. type: table
  37770. #: guix-git/doc/guix.texi:24906
  37771. msgid "Socket file to use for local (non-network) connections."
  37772. msgstr ""
  37773. #. type: table
  37774. #: guix-git/doc/guix.texi:24909
  37775. msgid "Additional settings for the @file{my.cnf} configuration file."
  37776. msgstr ""
  37777. #. type: item
  37778. #: guix-git/doc/guix.texi:24910
  37779. #, fuzzy, no-wrap
  37780. msgid "@code{extra-environment} (default: @code{#~'()})"
  37781. msgstr "@code{features} (@code{'()})"
  37782. #. type: table
  37783. #: guix-git/doc/guix.texi:24912
  37784. msgid "List of environment variables passed to the @command{mysqld} process."
  37785. msgstr ""
  37786. #. type: item
  37787. #: guix-git/doc/guix.texi:24913
  37788. #, fuzzy, no-wrap
  37789. msgid "@code{auto-upgrade?} (default: @code{#t})"
  37790. msgstr "@code{mate}(默认值:@code{mate})"
  37791. #. type: table
  37792. #: guix-git/doc/guix.texi:24918
  37793. 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."
  37794. msgstr ""
  37795. #. type: subsubheading
  37796. #: guix-git/doc/guix.texi:24922
  37797. #, no-wrap
  37798. msgid "Memcached"
  37799. msgstr ""
  37800. #. type: defvar
  37801. #: guix-git/doc/guix.texi:24924
  37802. #, fuzzy, no-wrap
  37803. msgid "memcached-service-type"
  37804. msgstr "邮件服务"
  37805. #. type: defvar
  37806. #: guix-git/doc/guix.texi:24928
  37807. 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."
  37808. msgstr ""
  37809. #. type: lisp
  37810. #: guix-git/doc/guix.texi:24932
  37811. #, no-wrap
  37812. msgid "(service memcached-service-type)\n"
  37813. msgstr ""
  37814. #. type: deftp
  37815. #: guix-git/doc/guix.texi:24934
  37816. #, no-wrap
  37817. msgid "{Data Type} memcached-configuration"
  37818. msgstr ""
  37819. #. type: deftp
  37820. #: guix-git/doc/guix.texi:24936
  37821. msgid "Data type representing the configuration of memcached."
  37822. msgstr ""
  37823. #. type: item
  37824. #: guix-git/doc/guix.texi:24938
  37825. #, no-wrap
  37826. msgid "@code{memcached} (default: @code{memcached})"
  37827. msgstr ""
  37828. #. type: table
  37829. #: guix-git/doc/guix.texi:24940
  37830. msgid "The Memcached package to use."
  37831. msgstr ""
  37832. #. type: item
  37833. #: guix-git/doc/guix.texi:24941
  37834. #, no-wrap
  37835. msgid "@code{interfaces} (default: @code{'(\"0.0.0.0\")})"
  37836. msgstr ""
  37837. #. type: table
  37838. #: guix-git/doc/guix.texi:24943
  37839. msgid "Network interfaces on which to listen."
  37840. msgstr ""
  37841. #. type: item
  37842. #: guix-git/doc/guix.texi:24944
  37843. #, no-wrap
  37844. msgid "@code{tcp-port} (default: @code{11211})"
  37845. msgstr ""
  37846. #. type: table
  37847. #: guix-git/doc/guix.texi:24946
  37848. msgid "Port on which to accept connections."
  37849. msgstr ""
  37850. #. type: item
  37851. #: guix-git/doc/guix.texi:24947
  37852. #, no-wrap
  37853. msgid "@code{udp-port} (default: @code{11211})"
  37854. msgstr ""
  37855. #. type: table
  37856. #: guix-git/doc/guix.texi:24950
  37857. msgid "Port on which to accept UDP connections on, a value of 0 will disable listening on a UDP socket."
  37858. msgstr ""
  37859. #. type: item
  37860. #: guix-git/doc/guix.texi:24951
  37861. #, no-wrap
  37862. msgid "@code{additional-options} (default: @code{'()})"
  37863. msgstr ""
  37864. #. type: table
  37865. #: guix-git/doc/guix.texi:24953
  37866. msgid "Additional command line options to pass to @code{memcached}."
  37867. msgstr ""
  37868. #. type: subsubheading
  37869. #: guix-git/doc/guix.texi:24956
  37870. #, no-wrap
  37871. msgid "Redis"
  37872. msgstr ""
  37873. #. type: defvar
  37874. #: guix-git/doc/guix.texi:24958
  37875. #, fuzzy, no-wrap
  37876. msgid "redis-service-type"
  37877. msgstr "邮件服务"
  37878. #. type: defvar
  37879. #: guix-git/doc/guix.texi:24961
  37880. msgid "This is the service type for the @uref{https://redis.io/, Redis} key/value store, whose value is a @code{redis-configuration} object."
  37881. msgstr ""
  37882. #. type: deftp
  37883. #: guix-git/doc/guix.texi:24963
  37884. #, no-wrap
  37885. msgid "{Data Type} redis-configuration"
  37886. msgstr ""
  37887. #. type: deftp
  37888. #: guix-git/doc/guix.texi:24965
  37889. msgid "Data type representing the configuration of redis."
  37890. msgstr ""
  37891. #. type: item
  37892. #: guix-git/doc/guix.texi:24967
  37893. #, no-wrap
  37894. msgid "@code{redis} (default: @code{redis})"
  37895. msgstr ""
  37896. #. type: table
  37897. #: guix-git/doc/guix.texi:24969
  37898. msgid "The Redis package to use."
  37899. msgstr ""
  37900. #. type: item
  37901. #: guix-git/doc/guix.texi:24970
  37902. #, no-wrap
  37903. msgid "@code{bind} (default: @code{\"127.0.0.1\"})"
  37904. msgstr ""
  37905. #. type: table
  37906. #: guix-git/doc/guix.texi:24972
  37907. msgid "Network interface on which to listen."
  37908. msgstr ""
  37909. #. type: item
  37910. #: guix-git/doc/guix.texi:24973
  37911. #, no-wrap
  37912. msgid "@code{port} (default: @code{6379})"
  37913. msgstr ""
  37914. #. type: table
  37915. #: guix-git/doc/guix.texi:24976
  37916. msgid "Port on which to accept connections on, a value of 0 will disable listening on a TCP socket."
  37917. msgstr ""
  37918. #. type: item
  37919. #: guix-git/doc/guix.texi:24977
  37920. #, no-wrap
  37921. msgid "@code{working-directory} (default: @code{\"/var/lib/redis\"})"
  37922. msgstr ""
  37923. #. type: table
  37924. #: guix-git/doc/guix.texi:24979
  37925. msgid "Directory in which to store the database and related files."
  37926. msgstr ""
  37927. #. type: cindex
  37928. #: guix-git/doc/guix.texi:24985
  37929. #, no-wrap
  37930. msgid "mail"
  37931. msgstr ""
  37932. #. type: cindex
  37933. #: guix-git/doc/guix.texi:24986
  37934. #, no-wrap
  37935. msgid "email"
  37936. msgstr ""
  37937. #. type: Plain text
  37938. #: guix-git/doc/guix.texi:24991
  37939. 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."
  37940. msgstr ""
  37941. #. type: subsubheading
  37942. #: guix-git/doc/guix.texi:24992
  37943. #, no-wrap
  37944. msgid "Dovecot Service"
  37945. msgstr ""
  37946. #. type: defvar
  37947. #: guix-git/doc/guix.texi:24994
  37948. #, fuzzy, no-wrap
  37949. msgid "dovecot-service-type"
  37950. msgstr "邮件服务"
  37951. #. type: defvar
  37952. #: guix-git/doc/guix.texi:24997
  37953. msgid "Type for the service that runs the Dovecot IMAP/POP3/LMTP mail server, whose value is a @code{<dovecot-configuration>} object."
  37954. msgstr ""
  37955. #. type: Plain text
  37956. #: guix-git/doc/guix.texi:25007
  37957. 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."
  37958. msgstr ""
  37959. #. type: Plain text
  37960. #: guix-git/doc/guix.texi:25010
  37961. msgid "For example, to specify that mail is located at @code{maildir~/.mail}, one would instantiate the Dovecot service like this:"
  37962. msgstr ""
  37963. #. type: lisp
  37964. #: guix-git/doc/guix.texi:25015
  37965. #, no-wrap
  37966. msgid ""
  37967. "(service dovecot-service-type\n"
  37968. " (dovecot-configuration\n"
  37969. " (mail-location \"maildir:~/.mail\")))\n"
  37970. msgstr ""
  37971. "(service dovecot-service-type\n"
  37972. " (dovecot-configuration\n"
  37973. " (mail-location \"maildir:~/.mail\")))\n"
  37974. #. type: Plain text
  37975. #: guix-git/doc/guix.texi:25023
  37976. 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."
  37977. msgstr ""
  37978. #. type: Plain text
  37979. #: guix-git/doc/guix.texi:25033
  37980. msgid "Available @code{dovecot-configuration} fields are:"
  37981. msgstr ""
  37982. #. type: deftypevr
  37983. #: guix-git/doc/guix.texi:25034
  37984. #, no-wrap
  37985. msgid "{@code{dovecot-configuration} parameter} package dovecot"
  37986. msgstr ""
  37987. #. type: deftypevr
  37988. #: guix-git/doc/guix.texi:25036 guix-git/doc/guix.texi:26385
  37989. msgid "The dovecot package."
  37990. msgstr ""
  37991. #. type: deftypevr
  37992. #: guix-git/doc/guix.texi:25038
  37993. #, no-wrap
  37994. msgid "{@code{dovecot-configuration} parameter} comma-separated-string-list listen"
  37995. msgstr ""
  37996. #. type: deftypevr
  37997. #: guix-git/doc/guix.texi:25044
  37998. 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."
  37999. msgstr ""
  38000. #. type: deftypevr
  38001. #: guix-git/doc/guix.texi:25046
  38002. #, no-wrap
  38003. msgid "{@code{dovecot-configuration} parameter} protocol-configuration-list protocols"
  38004. msgstr ""
  38005. #. type: deftypevr
  38006. #: guix-git/doc/guix.texi:25049
  38007. msgid "List of protocols we want to serve. Available protocols include @samp{imap}, @samp{pop3}, and @samp{lmtp}."
  38008. msgstr ""
  38009. #. type: deftypevr
  38010. #: guix-git/doc/guix.texi:25051
  38011. msgid "Available @code{protocol-configuration} fields are:"
  38012. msgstr ""
  38013. #. type: deftypevr
  38014. #: guix-git/doc/guix.texi:25052
  38015. #, no-wrap
  38016. msgid "{@code{protocol-configuration} parameter} string name"
  38017. msgstr ""
  38018. #. type: deftypevr
  38019. #: guix-git/doc/guix.texi:25054
  38020. msgid "The name of the protocol."
  38021. msgstr ""
  38022. #. type: deftypevr
  38023. #: guix-git/doc/guix.texi:25056
  38024. #, no-wrap
  38025. msgid "{@code{protocol-configuration} parameter} string auth-socket-path"
  38026. msgstr ""
  38027. #. type: deftypevr
  38028. #: guix-git/doc/guix.texi:25060
  38029. 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\"}."
  38030. msgstr ""
  38031. #. type: deftypevr
  38032. #: guix-git/doc/guix.texi:25062
  38033. #, no-wrap
  38034. msgid "{@code{protocol-configuration} parameter} boolean imap-metadata?"
  38035. msgstr ""
  38036. #. type: deftypevr
  38037. #: guix-git/doc/guix.texi:25067
  38038. 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."
  38039. msgstr ""
  38040. #. type: deftypevr
  38041. #: guix-git/doc/guix.texi:25070
  38042. msgid "If this is @samp{#t}, you must also specify a dictionary @i{via} the @code{mail-attribute-dict} setting."
  38043. msgstr ""
  38044. #. type: deftypevr
  38045. #: guix-git/doc/guix.texi:25075
  38046. #, no-wrap
  38047. msgid "{@code{protocol-configuration} parameter} space-separated-string-list managesieve-notify-capabilities"
  38048. msgstr ""
  38049. #. type: deftypevr
  38050. #: guix-git/doc/guix.texi:25080
  38051. 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."
  38052. msgstr ""
  38053. #. type: deftypevr
  38054. #: guix-git/doc/guix.texi:25084
  38055. #, no-wrap
  38056. msgid "{@code{protocol-configuration} parameter} space-separated-string-list managesieve-sieve-capability"
  38057. msgstr ""
  38058. #. type: deftypevr
  38059. #: guix-git/doc/guix.texi:25089
  38060. 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."
  38061. msgstr ""
  38062. #. type: deftypevr
  38063. #: guix-git/doc/guix.texi:25094
  38064. #, no-wrap
  38065. msgid "{@code{protocol-configuration} parameter} space-separated-string-list mail-plugins"
  38066. msgstr ""
  38067. #. type: deftypevr
  38068. #: guix-git/doc/guix.texi:25096
  38069. msgid "Space separated list of plugins to load."
  38070. msgstr ""
  38071. #. type: deftypevr
  38072. #: guix-git/doc/guix.texi:25098
  38073. #, no-wrap
  38074. msgid "{@code{protocol-configuration} parameter} non-negative-integer mail-max-userip-connections"
  38075. msgstr ""
  38076. #. type: deftypevr
  38077. #: guix-git/doc/guix.texi:25102
  38078. 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}."
  38079. msgstr ""
  38080. #. type: deftypevr
  38081. #: guix-git/doc/guix.texi:25106
  38082. #, no-wrap
  38083. msgid "{@code{dovecot-configuration} parameter} service-configuration-list services"
  38084. msgstr ""
  38085. #. type: deftypevr
  38086. #: guix-git/doc/guix.texi:25110
  38087. msgid "List of services to enable. Available services include @samp{imap}, @samp{imap-login}, @samp{pop3}, @samp{pop3-login}, @samp{auth}, and @samp{lmtp}."
  38088. msgstr ""
  38089. #. type: deftypevr
  38090. #: guix-git/doc/guix.texi:25112
  38091. msgid "Available @code{service-configuration} fields are:"
  38092. msgstr ""
  38093. #. type: deftypevr
  38094. #: guix-git/doc/guix.texi:25113
  38095. #, no-wrap
  38096. msgid "{@code{service-configuration} parameter} string kind"
  38097. msgstr ""
  38098. #. type: deftypevr
  38099. #: guix-git/doc/guix.texi:25118
  38100. 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."
  38101. msgstr ""
  38102. #. type: deftypevr
  38103. #: guix-git/doc/guix.texi:25120
  38104. #, no-wrap
  38105. msgid "{@code{service-configuration} parameter} listener-configuration-list listeners"
  38106. msgstr ""
  38107. #. type: deftypevr
  38108. #: guix-git/doc/guix.texi:25125
  38109. 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{'()}."
  38110. msgstr ""
  38111. #. type: deftypevr
  38112. #: guix-git/doc/guix.texi:25127
  38113. msgid "Available @code{unix-listener-configuration} fields are:"
  38114. msgstr ""
  38115. #. type: deftypevr
  38116. #: guix-git/doc/guix.texi:25128
  38117. #, no-wrap
  38118. msgid "{@code{unix-listener-configuration} parameter} string path"
  38119. msgstr ""
  38120. #. type: deftypevr
  38121. #: guix-git/doc/guix.texi:25131 guix-git/doc/guix.texi:25154
  38122. msgid "Path to the file, relative to @code{base-dir} field. This is also used as the section name."
  38123. msgstr ""
  38124. #. type: deftypevr
  38125. #: guix-git/doc/guix.texi:25133
  38126. #, no-wrap
  38127. msgid "{@code{unix-listener-configuration} parameter} string mode"
  38128. msgstr ""
  38129. #. type: deftypevr
  38130. #: guix-git/doc/guix.texi:25136 guix-git/doc/guix.texi:25159
  38131. msgid "The access mode for the socket. Defaults to @samp{\"0600\"}."
  38132. msgstr ""
  38133. #. type: deftypevr
  38134. #: guix-git/doc/guix.texi:25138
  38135. #, no-wrap
  38136. msgid "{@code{unix-listener-configuration} parameter} string user"
  38137. msgstr ""
  38138. #. type: deftypevr
  38139. #: guix-git/doc/guix.texi:25141 guix-git/doc/guix.texi:25164
  38140. msgid "The user to own the socket. Defaults to @samp{\"\"}."
  38141. msgstr ""
  38142. #. type: deftypevr
  38143. #: guix-git/doc/guix.texi:25143
  38144. #, no-wrap
  38145. msgid "{@code{unix-listener-configuration} parameter} string group"
  38146. msgstr ""
  38147. #. type: deftypevr
  38148. #: guix-git/doc/guix.texi:25146 guix-git/doc/guix.texi:25169
  38149. msgid "The group to own the socket. Defaults to @samp{\"\"}."
  38150. msgstr ""
  38151. #. type: deftypevr
  38152. #: guix-git/doc/guix.texi:25150
  38153. msgid "Available @code{fifo-listener-configuration} fields are:"
  38154. msgstr ""
  38155. #. type: deftypevr
  38156. #: guix-git/doc/guix.texi:25151
  38157. #, no-wrap
  38158. msgid "{@code{fifo-listener-configuration} parameter} string path"
  38159. msgstr ""
  38160. #. type: deftypevr
  38161. #: guix-git/doc/guix.texi:25156
  38162. #, no-wrap
  38163. msgid "{@code{fifo-listener-configuration} parameter} string mode"
  38164. msgstr ""
  38165. #. type: deftypevr
  38166. #: guix-git/doc/guix.texi:25161
  38167. #, no-wrap
  38168. msgid "{@code{fifo-listener-configuration} parameter} string user"
  38169. msgstr ""
  38170. #. type: deftypevr
  38171. #: guix-git/doc/guix.texi:25166
  38172. #, no-wrap
  38173. msgid "{@code{fifo-listener-configuration} parameter} string group"
  38174. msgstr ""
  38175. #. type: deftypevr
  38176. #: guix-git/doc/guix.texi:25173
  38177. msgid "Available @code{inet-listener-configuration} fields are:"
  38178. msgstr ""
  38179. #. type: deftypevr
  38180. #: guix-git/doc/guix.texi:25174
  38181. #, no-wrap
  38182. msgid "{@code{inet-listener-configuration} parameter} string protocol"
  38183. msgstr ""
  38184. #. type: deftypevr
  38185. #: guix-git/doc/guix.texi:25176
  38186. msgid "The protocol to listen for."
  38187. msgstr ""
  38188. #. type: deftypevr
  38189. #: guix-git/doc/guix.texi:25178
  38190. #, no-wrap
  38191. msgid "{@code{inet-listener-configuration} parameter} string address"
  38192. msgstr ""
  38193. #. type: deftypevr
  38194. #: guix-git/doc/guix.texi:25181
  38195. msgid "The address on which to listen, or empty for all addresses. Defaults to @samp{\"\"}."
  38196. msgstr ""
  38197. #. type: deftypevr
  38198. #: guix-git/doc/guix.texi:25183
  38199. #, no-wrap
  38200. msgid "{@code{inet-listener-configuration} parameter} non-negative-integer port"
  38201. msgstr ""
  38202. #. type: deftypevr
  38203. #: guix-git/doc/guix.texi:25185
  38204. msgid "The port on which to listen."
  38205. msgstr ""
  38206. #. type: deftypevr
  38207. #: guix-git/doc/guix.texi:25187
  38208. #, no-wrap
  38209. msgid "{@code{inet-listener-configuration} parameter} boolean ssl?"
  38210. msgstr ""
  38211. #. type: deftypevr
  38212. #: guix-git/doc/guix.texi:25191
  38213. msgid "Whether to use SSL for this service; @samp{yes}, @samp{no}, or @samp{required}. Defaults to @samp{#t}."
  38214. msgstr ""
  38215. #. type: deftypevr
  38216. #: guix-git/doc/guix.texi:25195
  38217. #, no-wrap
  38218. msgid "{@code{service-configuration} parameter} non-negative-integer client-limit"
  38219. msgstr ""
  38220. #. type: deftypevr
  38221. #: guix-git/doc/guix.texi:25200
  38222. 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."
  38223. msgstr ""
  38224. #. type: deftypevr
  38225. #: guix-git/doc/guix.texi:25205
  38226. #, no-wrap
  38227. msgid "{@code{service-configuration} parameter} non-negative-integer service-count"
  38228. msgstr ""
  38229. #. type: deftypevr
  38230. #: guix-git/doc/guix.texi:25210
  38231. 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}."
  38232. msgstr ""
  38233. #. type: deftypevr
  38234. #: guix-git/doc/guix.texi:25213
  38235. #, no-wrap
  38236. msgid "{@code{service-configuration} parameter} non-negative-integer process-limit"
  38237. msgstr ""
  38238. #. type: deftypevr
  38239. #: guix-git/doc/guix.texi:25216
  38240. msgid "Maximum number of processes that can exist for this service. If set to 0, @code{default-process-limit} is used instead."
  38241. msgstr ""
  38242. #. type: deftypevr
  38243. #: guix-git/doc/guix.texi:25221
  38244. #, no-wrap
  38245. msgid "{@code{service-configuration} parameter} non-negative-integer process-min-avail"
  38246. msgstr ""
  38247. #. type: deftypevr
  38248. #: guix-git/doc/guix.texi:25224
  38249. msgid "Number of processes to always keep waiting for more connections. Defaults to @samp{0}."
  38250. msgstr ""
  38251. #. type: deftypevr
  38252. #: guix-git/doc/guix.texi:25226
  38253. #, no-wrap
  38254. msgid "{@code{service-configuration} parameter} non-negative-integer vsz-limit"
  38255. msgstr ""
  38256. #. type: deftypevr
  38257. #: guix-git/doc/guix.texi:25230
  38258. msgid "If you set @samp{service-count 0}, you probably need to grow this. Defaults to @samp{256000000}."
  38259. msgstr ""
  38260. #. type: deftypevr
  38261. #: guix-git/doc/guix.texi:25234
  38262. #, no-wrap
  38263. msgid "{@code{dovecot-configuration} parameter} dict-configuration dict"
  38264. msgstr ""
  38265. #. type: deftypevr
  38266. #: guix-git/doc/guix.texi:25237
  38267. msgid "Dict configuration, as created by the @code{dict-configuration} constructor."
  38268. msgstr ""
  38269. #. type: deftypevr
  38270. #: guix-git/doc/guix.texi:25239
  38271. msgid "Available @code{dict-configuration} fields are:"
  38272. msgstr ""
  38273. #. type: deftypevr
  38274. #: guix-git/doc/guix.texi:25240
  38275. #, no-wrap
  38276. msgid "{@code{dict-configuration} parameter} free-form-fields entries"
  38277. msgstr ""
  38278. #. type: deftypevr
  38279. #: guix-git/doc/guix.texi:25243
  38280. msgid "A list of key-value pairs that this dict should hold. Defaults to @samp{'()}."
  38281. msgstr ""
  38282. #. type: deftypevr
  38283. #: guix-git/doc/guix.texi:25247
  38284. #, no-wrap
  38285. msgid "{@code{dovecot-configuration} parameter} passdb-configuration-list passdbs"
  38286. msgstr ""
  38287. #. type: deftypevr
  38288. #: guix-git/doc/guix.texi:25250
  38289. msgid "A list of passdb configurations, each one created by the @code{passdb-configuration} constructor."
  38290. msgstr ""
  38291. #. type: deftypevr
  38292. #: guix-git/doc/guix.texi:25252
  38293. msgid "Available @code{passdb-configuration} fields are:"
  38294. msgstr ""
  38295. #. type: deftypevr
  38296. #: guix-git/doc/guix.texi:25253
  38297. #, no-wrap
  38298. msgid "{@code{passdb-configuration} parameter} string driver"
  38299. msgstr ""
  38300. #. type: deftypevr
  38301. #: guix-git/doc/guix.texi:25258
  38302. 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\"}."
  38303. msgstr ""
  38304. #. type: deftypevr
  38305. #: guix-git/doc/guix.texi:25260
  38306. #, no-wrap
  38307. msgid "{@code{passdb-configuration} parameter} space-separated-string-list args"
  38308. msgstr ""
  38309. #. type: deftypevr
  38310. #: guix-git/doc/guix.texi:25263
  38311. msgid "Space separated list of arguments to the passdb driver. Defaults to @samp{\"\"}."
  38312. msgstr ""
  38313. #. type: deftypevr
  38314. #: guix-git/doc/guix.texi:25267
  38315. #, no-wrap
  38316. msgid "{@code{dovecot-configuration} parameter} userdb-configuration-list userdbs"
  38317. msgstr ""
  38318. #. type: deftypevr
  38319. #: guix-git/doc/guix.texi:25270
  38320. msgid "List of userdb configurations, each one created by the @code{userdb-configuration} constructor."
  38321. msgstr ""
  38322. #. type: deftypevr
  38323. #: guix-git/doc/guix.texi:25272
  38324. msgid "Available @code{userdb-configuration} fields are:"
  38325. msgstr ""
  38326. #. type: deftypevr
  38327. #: guix-git/doc/guix.texi:25273
  38328. #, no-wrap
  38329. msgid "{@code{userdb-configuration} parameter} string driver"
  38330. msgstr ""
  38331. #. type: deftypevr
  38332. #: guix-git/doc/guix.texi:25277
  38333. msgid "The driver that the userdb should use. Valid values include @samp{passwd} and @samp{static}. Defaults to @samp{\"passwd\"}."
  38334. msgstr ""
  38335. #. type: deftypevr
  38336. #: guix-git/doc/guix.texi:25279
  38337. #, no-wrap
  38338. msgid "{@code{userdb-configuration} parameter} space-separated-string-list args"
  38339. msgstr ""
  38340. #. type: deftypevr
  38341. #: guix-git/doc/guix.texi:25282
  38342. msgid "Space separated list of arguments to the userdb driver. Defaults to @samp{\"\"}."
  38343. msgstr ""
  38344. #. type: deftypevr
  38345. #: guix-git/doc/guix.texi:25284
  38346. #, no-wrap
  38347. msgid "{@code{userdb-configuration} parameter} free-form-args override-fields"
  38348. msgstr ""
  38349. #. type: deftypevr
  38350. #: guix-git/doc/guix.texi:25287
  38351. msgid "Override fields from passwd. Defaults to @samp{'()}."
  38352. msgstr ""
  38353. #. type: deftypevr
  38354. #: guix-git/doc/guix.texi:25291
  38355. #, no-wrap
  38356. msgid "{@code{dovecot-configuration} parameter} plugin-configuration plugin-configuration"
  38357. msgstr ""
  38358. #. type: deftypevr
  38359. #: guix-git/doc/guix.texi:25294
  38360. msgid "Plug-in configuration, created by the @code{plugin-configuration} constructor."
  38361. msgstr ""
  38362. #. type: deftypevr
  38363. #: guix-git/doc/guix.texi:25296
  38364. #, no-wrap
  38365. msgid "{@code{dovecot-configuration} parameter} list-of-namespace-configuration namespaces"
  38366. msgstr ""
  38367. #. type: deftypevr
  38368. #: guix-git/doc/guix.texi:25299
  38369. msgid "List of namespaces. Each item in the list is created by the @code{namespace-configuration} constructor."
  38370. msgstr ""
  38371. #. type: deftypevr
  38372. #: guix-git/doc/guix.texi:25301
  38373. msgid "Available @code{namespace-configuration} fields are:"
  38374. msgstr ""
  38375. #. type: deftypevr
  38376. #: guix-git/doc/guix.texi:25302
  38377. #, no-wrap
  38378. msgid "{@code{namespace-configuration} parameter} string name"
  38379. msgstr ""
  38380. #. type: deftypevr
  38381. #: guix-git/doc/guix.texi:25304
  38382. msgid "Name for this namespace."
  38383. msgstr ""
  38384. #. type: deftypevr
  38385. #: guix-git/doc/guix.texi:25306
  38386. #, no-wrap
  38387. msgid "{@code{namespace-configuration} parameter} string type"
  38388. msgstr ""
  38389. #. type: deftypevr
  38390. #: guix-git/doc/guix.texi:25309
  38391. msgid "Namespace type: @samp{private}, @samp{shared} or @samp{public}. Defaults to @samp{\"private\"}."
  38392. msgstr ""
  38393. #. type: deftypevr
  38394. #: guix-git/doc/guix.texi:25311
  38395. #, no-wrap
  38396. msgid "{@code{namespace-configuration} parameter} string separator"
  38397. msgstr ""
  38398. #. type: deftypevr
  38399. #: guix-git/doc/guix.texi:25317
  38400. 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{\"\"}."
  38401. msgstr ""
  38402. #. type: deftypevr
  38403. #: guix-git/doc/guix.texi:25319
  38404. #, no-wrap
  38405. msgid "{@code{namespace-configuration} parameter} string prefix"
  38406. msgstr ""
  38407. #. type: deftypevr
  38408. #: guix-git/doc/guix.texi:25323
  38409. msgid "Prefix required to access this namespace. This needs to be different for all namespaces. For example @samp{Public/}. Defaults to @samp{\"\"}."
  38410. msgstr ""
  38411. #. type: deftypevr
  38412. #: guix-git/doc/guix.texi:25325
  38413. #, no-wrap
  38414. msgid "{@code{namespace-configuration} parameter} string location"
  38415. msgstr ""
  38416. #. type: deftypevr
  38417. #: guix-git/doc/guix.texi:25329
  38418. 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{\"\"}."
  38419. msgstr ""
  38420. #. type: deftypevr
  38421. #: guix-git/doc/guix.texi:25331
  38422. #, no-wrap
  38423. msgid "{@code{namespace-configuration} parameter} boolean inbox?"
  38424. msgstr ""
  38425. #. type: deftypevr
  38426. #: guix-git/doc/guix.texi:25335
  38427. msgid "There can be only one INBOX, and this setting defines which namespace has it. Defaults to @samp{#f}."
  38428. msgstr ""
  38429. #. type: deftypevr
  38430. #: guix-git/doc/guix.texi:25337
  38431. #, no-wrap
  38432. msgid "{@code{namespace-configuration} parameter} boolean hidden?"
  38433. msgstr ""
  38434. #. type: deftypevr
  38435. #: guix-git/doc/guix.texi:25345
  38436. 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}."
  38437. msgstr ""
  38438. #. type: deftypevr
  38439. #: guix-git/doc/guix.texi:25347
  38440. #, no-wrap
  38441. msgid "{@code{namespace-configuration} parameter} boolean list?"
  38442. msgstr ""
  38443. #. type: deftypevr
  38444. #: guix-git/doc/guix.texi:25353
  38445. 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}."
  38446. msgstr ""
  38447. #. type: deftypevr
  38448. #: guix-git/doc/guix.texi:25355
  38449. #, no-wrap
  38450. msgid "{@code{namespace-configuration} parameter} boolean subscriptions?"
  38451. msgstr ""
  38452. #. type: deftypevr
  38453. #: guix-git/doc/guix.texi:25360
  38454. 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}."
  38455. msgstr ""
  38456. #. type: deftypevr
  38457. #: guix-git/doc/guix.texi:25362
  38458. #, no-wrap
  38459. msgid "{@code{namespace-configuration} parameter} mailbox-configuration-list mailboxes"
  38460. msgstr ""
  38461. #. type: deftypevr
  38462. #: guix-git/doc/guix.texi:25365
  38463. msgid "List of predefined mailboxes in this namespace. Defaults to @samp{'()}."
  38464. msgstr ""
  38465. #. type: deftypevr
  38466. #: guix-git/doc/guix.texi:25367
  38467. msgid "Available @code{mailbox-configuration} fields are:"
  38468. msgstr ""
  38469. #. type: deftypevr
  38470. #: guix-git/doc/guix.texi:25368
  38471. #, no-wrap
  38472. msgid "{@code{mailbox-configuration} parameter} string name"
  38473. msgstr ""
  38474. #. type: deftypevr
  38475. #: guix-git/doc/guix.texi:25370
  38476. msgid "Name for this mailbox."
  38477. msgstr ""
  38478. #. type: deftypevr
  38479. #: guix-git/doc/guix.texi:25372
  38480. #, no-wrap
  38481. msgid "{@code{mailbox-configuration} parameter} string auto"
  38482. msgstr ""
  38483. #. type: deftypevr
  38484. #: guix-git/doc/guix.texi:25376
  38485. msgid "@samp{create} will automatically create this mailbox. @samp{subscribe} will both create and subscribe to the mailbox. Defaults to @samp{\"no\"}."
  38486. msgstr ""
  38487. #. type: deftypevr
  38488. #: guix-git/doc/guix.texi:25378
  38489. #, no-wrap
  38490. msgid "{@code{mailbox-configuration} parameter} space-separated-string-list special-use"
  38491. msgstr ""
  38492. #. type: deftypevr
  38493. #: guix-git/doc/guix.texi:25383
  38494. 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{'()}."
  38495. msgstr ""
  38496. #. type: deftypevr
  38497. #: guix-git/doc/guix.texi:25389
  38498. #, no-wrap
  38499. msgid "{@code{dovecot-configuration} parameter} file-name base-dir"
  38500. msgstr ""
  38501. #. type: deftypevr
  38502. #: guix-git/doc/guix.texi:25392
  38503. msgid "Base directory where to store runtime data. Defaults to @samp{\"/var/run/dovecot/\"}."
  38504. msgstr ""
  38505. #. type: deftypevr
  38506. #: guix-git/doc/guix.texi:25394
  38507. #, no-wrap
  38508. msgid "{@code{dovecot-configuration} parameter} string login-greeting"
  38509. msgstr ""
  38510. #. type: deftypevr
  38511. #: guix-git/doc/guix.texi:25397
  38512. msgid "Greeting message for clients. Defaults to @samp{\"Dovecot ready.\"}."
  38513. msgstr ""
  38514. #. type: deftypevr
  38515. #: guix-git/doc/guix.texi:25399
  38516. #, no-wrap
  38517. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list login-trusted-networks"
  38518. msgstr ""
  38519. #. type: deftypevr
  38520. #: guix-git/doc/guix.texi:25406
  38521. 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{'()}."
  38522. msgstr ""
  38523. #. type: deftypevr
  38524. #: guix-git/doc/guix.texi:25408
  38525. #, no-wrap
  38526. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list login-access-sockets"
  38527. msgstr ""
  38528. #. type: deftypevr
  38529. #: guix-git/doc/guix.texi:25411
  38530. msgid "List of login access check sockets (e.g.@: tcpwrap). Defaults to @samp{'()}."
  38531. msgstr ""
  38532. #. type: deftypevr
  38533. #: guix-git/doc/guix.texi:25413
  38534. #, no-wrap
  38535. msgid "{@code{dovecot-configuration} parameter} boolean verbose-proctitle?"
  38536. msgstr ""
  38537. #. type: deftypevr
  38538. #: guix-git/doc/guix.texi:25419
  38539. 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}."
  38540. msgstr ""
  38541. #. type: deftypevr
  38542. #: guix-git/doc/guix.texi:25421
  38543. #, no-wrap
  38544. msgid "{@code{dovecot-configuration} parameter} boolean shutdown-clients?"
  38545. msgstr ""
  38546. #. type: deftypevr
  38547. #: guix-git/doc/guix.texi:25427
  38548. 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}."
  38549. msgstr ""
  38550. #. type: deftypevr
  38551. #: guix-git/doc/guix.texi:25429
  38552. #, no-wrap
  38553. msgid "{@code{dovecot-configuration} parameter} non-negative-integer doveadm-worker-count"
  38554. msgstr ""
  38555. #. type: deftypevr
  38556. #: guix-git/doc/guix.texi:25433
  38557. 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}."
  38558. msgstr ""
  38559. #. type: deftypevr
  38560. #: guix-git/doc/guix.texi:25435
  38561. #, no-wrap
  38562. msgid "{@code{dovecot-configuration} parameter} string doveadm-socket-path"
  38563. msgstr ""
  38564. #. type: deftypevr
  38565. #: guix-git/doc/guix.texi:25438
  38566. msgid "UNIX socket or host:port used for connecting to doveadm server. Defaults to @samp{\"doveadm-server\"}."
  38567. msgstr ""
  38568. #. type: deftypevr
  38569. #: guix-git/doc/guix.texi:25440
  38570. #, no-wrap
  38571. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list import-environment"
  38572. msgstr ""
  38573. #. type: deftypevr
  38574. #: guix-git/doc/guix.texi:25444
  38575. 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."
  38576. msgstr ""
  38577. #. type: deftypevr
  38578. #: guix-git/doc/guix.texi:25446
  38579. #, no-wrap
  38580. msgid "{@code{dovecot-configuration} parameter} boolean disable-plaintext-auth?"
  38581. msgstr ""
  38582. #. type: deftypevr
  38583. #: guix-git/doc/guix.texi:25453
  38584. 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}."
  38585. msgstr ""
  38586. #. type: deftypevr
  38587. #: guix-git/doc/guix.texi:25455
  38588. #, no-wrap
  38589. msgid "{@code{dovecot-configuration} parameter} non-negative-integer auth-cache-size"
  38590. msgstr ""
  38591. #. type: deftypevr
  38592. #: guix-git/doc/guix.texi:25460
  38593. 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}."
  38594. msgstr ""
  38595. #. type: deftypevr
  38596. #: guix-git/doc/guix.texi:25462
  38597. #, no-wrap
  38598. msgid "{@code{dovecot-configuration} parameter} string auth-cache-ttl"
  38599. msgstr ""
  38600. #. type: deftypevr
  38601. #: guix-git/doc/guix.texi:25470
  38602. 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\"}."
  38603. msgstr ""
  38604. #. type: deftypevr
  38605. #: guix-git/doc/guix.texi:25472
  38606. #, no-wrap
  38607. msgid "{@code{dovecot-configuration} parameter} string auth-cache-negative-ttl"
  38608. msgstr ""
  38609. #. type: deftypevr
  38610. #: guix-git/doc/guix.texi:25476
  38611. msgid "TTL for negative hits (user not found, password mismatch). 0 disables caching them completely. Defaults to @samp{\"1 hour\"}."
  38612. msgstr ""
  38613. #. type: deftypevr
  38614. #: guix-git/doc/guix.texi:25478
  38615. #, no-wrap
  38616. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list auth-realms"
  38617. msgstr ""
  38618. #. type: deftypevr
  38619. #: guix-git/doc/guix.texi:25484
  38620. 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{'()}."
  38621. msgstr ""
  38622. #. type: deftypevr
  38623. #: guix-git/doc/guix.texi:25486
  38624. #, no-wrap
  38625. msgid "{@code{dovecot-configuration} parameter} string auth-default-realm"
  38626. msgstr ""
  38627. #. type: deftypevr
  38628. #: guix-git/doc/guix.texi:25491
  38629. 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{\"\"}."
  38630. msgstr ""
  38631. #. type: deftypevr
  38632. #: guix-git/doc/guix.texi:25493
  38633. #, no-wrap
  38634. msgid "{@code{dovecot-configuration} parameter} string auth-username-chars"
  38635. msgstr ""
  38636. #. type: deftypevr
  38637. #: guix-git/doc/guix.texi:25500
  38638. 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.-_@@\"}."
  38639. msgstr ""
  38640. #. type: deftypevr
  38641. #: guix-git/doc/guix.texi:25502
  38642. #, no-wrap
  38643. msgid "{@code{dovecot-configuration} parameter} string auth-username-translation"
  38644. msgstr ""
  38645. #. type: deftypevr
  38646. #: guix-git/doc/guix.texi:25508
  38647. 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{\"\"}."
  38648. msgstr ""
  38649. #. type: deftypevr
  38650. #: guix-git/doc/guix.texi:25510
  38651. #, no-wrap
  38652. msgid "{@code{dovecot-configuration} parameter} string auth-username-format"
  38653. msgstr ""
  38654. #. type: deftypevr
  38655. #: guix-git/doc/guix.texi:25517
  38656. 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\"}."
  38657. msgstr ""
  38658. #. type: deftypevr
  38659. #: guix-git/doc/guix.texi:25519
  38660. #, no-wrap
  38661. msgid "{@code{dovecot-configuration} parameter} string auth-master-user-separator"
  38662. msgstr ""
  38663. #. type: deftypevr
  38664. #: guix-git/doc/guix.texi:25527
  38665. 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{\"\"}."
  38666. msgstr ""
  38667. #. type: deftypevr
  38668. #: guix-git/doc/guix.texi:25529
  38669. #, no-wrap
  38670. msgid "{@code{dovecot-configuration} parameter} string auth-anonymous-username"
  38671. msgstr ""
  38672. #. type: deftypevr
  38673. #: guix-git/doc/guix.texi:25533
  38674. msgid "Username to use for users logging in with ANONYMOUS SASL mechanism. Defaults to @samp{\"anonymous\"}."
  38675. msgstr ""
  38676. #. type: deftypevr
  38677. #: guix-git/doc/guix.texi:25535
  38678. #, no-wrap
  38679. msgid "{@code{dovecot-configuration} parameter} non-negative-integer auth-worker-max-count"
  38680. msgstr ""
  38681. #. type: deftypevr
  38682. #: guix-git/doc/guix.texi:25540
  38683. 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}."
  38684. msgstr ""
  38685. #. type: deftypevr
  38686. #: guix-git/doc/guix.texi:25542
  38687. #, no-wrap
  38688. msgid "{@code{dovecot-configuration} parameter} string auth-gssapi-hostname"
  38689. msgstr ""
  38690. #. type: deftypevr
  38691. #: guix-git/doc/guix.texi:25547
  38692. 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{\"\"}."
  38693. msgstr ""
  38694. #. type: deftypevr
  38695. #: guix-git/doc/guix.texi:25549
  38696. #, no-wrap
  38697. msgid "{@code{dovecot-configuration} parameter} string auth-krb5-keytab"
  38698. msgstr ""
  38699. #. type: deftypevr
  38700. #: guix-git/doc/guix.texi:25555
  38701. 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{\"\"}."
  38702. msgstr ""
  38703. #. type: deftypevr
  38704. #: guix-git/doc/guix.texi:25557
  38705. #, no-wrap
  38706. msgid "{@code{dovecot-configuration} parameter} boolean auth-use-winbind?"
  38707. msgstr ""
  38708. #. type: deftypevr
  38709. #: guix-git/doc/guix.texi:25562
  38710. 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}."
  38711. msgstr ""
  38712. #. type: deftypevr
  38713. #: guix-git/doc/guix.texi:25564
  38714. #, no-wrap
  38715. msgid "{@code{dovecot-configuration} parameter} file-name auth-winbind-helper-path"
  38716. msgstr ""
  38717. #. type: deftypevr
  38718. #: guix-git/doc/guix.texi:25567
  38719. msgid "Path for Samba's @samp{ntlm-auth} helper binary. Defaults to @samp{\"/usr/bin/ntlm_auth\"}."
  38720. msgstr ""
  38721. #. type: deftypevr
  38722. #: guix-git/doc/guix.texi:25569
  38723. #, no-wrap
  38724. msgid "{@code{dovecot-configuration} parameter} string auth-failure-delay"
  38725. msgstr ""
  38726. #. type: deftypevr
  38727. #: guix-git/doc/guix.texi:25572
  38728. msgid "Time to delay before replying to failed authentications. Defaults to @samp{\"2 secs\"}."
  38729. msgstr ""
  38730. #. type: deftypevr
  38731. #: guix-git/doc/guix.texi:25574
  38732. #, no-wrap
  38733. msgid "{@code{dovecot-configuration} parameter} boolean auth-ssl-require-client-cert?"
  38734. msgstr ""
  38735. #. type: deftypevr
  38736. #: guix-git/doc/guix.texi:25578
  38737. msgid "Require a valid SSL client certificate or the authentication fails. Defaults to @samp{#f}."
  38738. msgstr ""
  38739. #. type: deftypevr
  38740. #: guix-git/doc/guix.texi:25580
  38741. #, no-wrap
  38742. msgid "{@code{dovecot-configuration} parameter} boolean auth-ssl-username-from-cert?"
  38743. msgstr ""
  38744. #. type: deftypevr
  38745. #: guix-git/doc/guix.texi:25585
  38746. 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}."
  38747. msgstr ""
  38748. #. type: deftypevr
  38749. #: guix-git/doc/guix.texi:25587
  38750. #, no-wrap
  38751. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list auth-mechanisms"
  38752. msgstr ""
  38753. #. type: deftypevr
  38754. #: guix-git/doc/guix.texi:25593
  38755. 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."
  38756. msgstr ""
  38757. #. type: deftypevr
  38758. #: guix-git/doc/guix.texi:25595
  38759. #, no-wrap
  38760. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list director-servers"
  38761. msgstr ""
  38762. #. type: deftypevr
  38763. #: guix-git/doc/guix.texi:25600
  38764. 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{'()}."
  38765. msgstr ""
  38766. #. type: deftypevr
  38767. #: guix-git/doc/guix.texi:25602
  38768. #, no-wrap
  38769. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list director-mail-servers"
  38770. msgstr ""
  38771. #. type: deftypevr
  38772. #: guix-git/doc/guix.texi:25606
  38773. 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{'()}."
  38774. msgstr ""
  38775. #. type: deftypevr
  38776. #: guix-git/doc/guix.texi:25608
  38777. #, no-wrap
  38778. msgid "{@code{dovecot-configuration} parameter} string director-user-expire"
  38779. msgstr ""
  38780. #. type: deftypevr
  38781. #: guix-git/doc/guix.texi:25612
  38782. msgid "How long to redirect users to a specific server after it no longer has any connections. Defaults to @samp{\"15 min\"}."
  38783. msgstr ""
  38784. #. type: deftypevr
  38785. #: guix-git/doc/guix.texi:25614
  38786. #, no-wrap
  38787. msgid "{@code{dovecot-configuration} parameter} string director-username-hash"
  38788. msgstr ""
  38789. #. type: deftypevr
  38790. #: guix-git/doc/guix.texi:25619
  38791. 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\"}."
  38792. msgstr ""
  38793. #. type: deftypevr
  38794. #: guix-git/doc/guix.texi:25621
  38795. #, no-wrap
  38796. msgid "{@code{dovecot-configuration} parameter} string log-path"
  38797. msgstr ""
  38798. #. type: deftypevr
  38799. #: guix-git/doc/guix.texi:25625
  38800. msgid "Log file to use for error messages. @samp{syslog} logs to syslog, @samp{/dev/stderr} logs to stderr. Defaults to @samp{\"syslog\"}."
  38801. msgstr ""
  38802. #. type: deftypevr
  38803. #: guix-git/doc/guix.texi:25627
  38804. #, no-wrap
  38805. msgid "{@code{dovecot-configuration} parameter} string info-log-path"
  38806. msgstr ""
  38807. #. type: deftypevr
  38808. #: guix-git/doc/guix.texi:25631
  38809. msgid "Log file to use for informational messages. Defaults to @samp{log-path}. Defaults to @samp{\"\"}."
  38810. msgstr ""
  38811. #. type: deftypevr
  38812. #: guix-git/doc/guix.texi:25633
  38813. #, no-wrap
  38814. msgid "{@code{dovecot-configuration} parameter} string debug-log-path"
  38815. msgstr ""
  38816. #. type: deftypevr
  38817. #: guix-git/doc/guix.texi:25637
  38818. msgid "Log file to use for debug messages. Defaults to @samp{info-log-path}. Defaults to @samp{\"\"}."
  38819. msgstr ""
  38820. #. type: deftypevr
  38821. #: guix-git/doc/guix.texi:25639
  38822. #, no-wrap
  38823. msgid "{@code{dovecot-configuration} parameter} string syslog-facility"
  38824. msgstr ""
  38825. #. type: deftypevr
  38826. #: guix-git/doc/guix.texi:25644
  38827. 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\"}."
  38828. msgstr ""
  38829. #. type: deftypevr
  38830. #: guix-git/doc/guix.texi:25646
  38831. #, no-wrap
  38832. msgid "{@code{dovecot-configuration} parameter} boolean auth-verbose?"
  38833. msgstr ""
  38834. #. type: deftypevr
  38835. #: guix-git/doc/guix.texi:25650
  38836. msgid "Log unsuccessful authentication attempts and the reasons why they failed. Defaults to @samp{#f}."
  38837. msgstr ""
  38838. #. type: deftypevr
  38839. #: guix-git/doc/guix.texi:25652
  38840. #, no-wrap
  38841. msgid "{@code{dovecot-configuration} parameter} string auth-verbose-passwords"
  38842. msgstr ""
  38843. #. type: deftypevr
  38844. #: guix-git/doc/guix.texi:25659
  38845. 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\"}."
  38846. msgstr ""
  38847. #. type: deftypevr
  38848. #: guix-git/doc/guix.texi:25661
  38849. #, no-wrap
  38850. msgid "{@code{dovecot-configuration} parameter} boolean auth-debug?"
  38851. msgstr ""
  38852. #. type: deftypevr
  38853. #: guix-git/doc/guix.texi:25665
  38854. msgid "Even more verbose logging for debugging purposes. Shows for example SQL queries. Defaults to @samp{#f}."
  38855. msgstr ""
  38856. #. type: deftypevr
  38857. #: guix-git/doc/guix.texi:25667
  38858. #, no-wrap
  38859. msgid "{@code{dovecot-configuration} parameter} boolean auth-debug-passwords?"
  38860. msgstr ""
  38861. #. type: deftypevr
  38862. #: guix-git/doc/guix.texi:25672
  38863. 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}."
  38864. msgstr ""
  38865. #. type: deftypevr
  38866. #: guix-git/doc/guix.texi:25674
  38867. #, no-wrap
  38868. msgid "{@code{dovecot-configuration} parameter} boolean mail-debug?"
  38869. msgstr ""
  38870. #. type: deftypevr
  38871. #: guix-git/doc/guix.texi:25678
  38872. msgid "Enable mail process debugging. This can help you figure out why Dovecot isn't finding your mails. Defaults to @samp{#f}."
  38873. msgstr ""
  38874. #. type: deftypevr
  38875. #: guix-git/doc/guix.texi:25680
  38876. #, no-wrap
  38877. msgid "{@code{dovecot-configuration} parameter} boolean verbose-ssl?"
  38878. msgstr ""
  38879. #. type: deftypevr
  38880. #: guix-git/doc/guix.texi:25683
  38881. msgid "Show protocol level SSL errors. Defaults to @samp{#f}."
  38882. msgstr ""
  38883. #. type: deftypevr
  38884. #: guix-git/doc/guix.texi:25685
  38885. #, no-wrap
  38886. msgid "{@code{dovecot-configuration} parameter} string log-timestamp"
  38887. msgstr ""
  38888. #. type: deftypevr
  38889. #: guix-git/doc/guix.texi:25689
  38890. msgid "Prefix for each line written to log file. % codes are in strftime(3) format. Defaults to @samp{\"\\\"%b %d %H:%M:%S \\\"\"}."
  38891. msgstr ""
  38892. #. type: deftypevr
  38893. #: guix-git/doc/guix.texi:25691
  38894. #, no-wrap
  38895. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list login-log-format-elements"
  38896. msgstr ""
  38897. #. type: deftypevr
  38898. #: guix-git/doc/guix.texi:25695
  38899. 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."
  38900. msgstr ""
  38901. #. type: deftypevr
  38902. #: guix-git/doc/guix.texi:25697
  38903. #, no-wrap
  38904. msgid "{@code{dovecot-configuration} parameter} string login-log-format"
  38905. msgstr ""
  38906. #. type: deftypevr
  38907. #: guix-git/doc/guix.texi:25701
  38908. msgid "Login log format. %s contains @samp{login-log-format-elements} string, %$ contains the data we want to log. Defaults to @samp{\"%$: %s\"}."
  38909. msgstr ""
  38910. #. type: deftypevr
  38911. #: guix-git/doc/guix.texi:25703
  38912. #, no-wrap
  38913. msgid "{@code{dovecot-configuration} parameter} string mail-log-prefix"
  38914. msgstr ""
  38915. #. type: deftypevr
  38916. #: guix-git/doc/guix.texi:25707
  38917. 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@}>: \\\"\"}."
  38918. msgstr ""
  38919. #. type: deftypevr
  38920. #: guix-git/doc/guix.texi:25709
  38921. #, no-wrap
  38922. msgid "{@code{dovecot-configuration} parameter} string deliver-log-format"
  38923. msgstr ""
  38924. #. type: deftypevr
  38925. #: guix-git/doc/guix.texi:25711
  38926. msgid "Format to use for logging mail deliveries. You can use variables:"
  38927. msgstr ""
  38928. #. type: item
  38929. #: guix-git/doc/guix.texi:25712
  38930. #, no-wrap
  38931. msgid "%$"
  38932. msgstr ""
  38933. #. type: table
  38934. #: guix-git/doc/guix.texi:25714
  38935. msgid "Delivery status message (e.g.@: @samp{saved to INBOX})"
  38936. msgstr ""
  38937. #. type: item
  38938. #: guix-git/doc/guix.texi:25714
  38939. #, no-wrap
  38940. msgid "%m"
  38941. msgstr ""
  38942. #. type: table
  38943. #: guix-git/doc/guix.texi:25716
  38944. msgid "Message-ID"
  38945. msgstr ""
  38946. #. type: item
  38947. #: guix-git/doc/guix.texi:25716 guix-git/doc/guix.texi:26259
  38948. #, no-wrap
  38949. msgid "%s"
  38950. msgstr ""
  38951. #. type: table
  38952. #: guix-git/doc/guix.texi:25718
  38953. msgid "Subject"
  38954. msgstr ""
  38955. #. type: item
  38956. #: guix-git/doc/guix.texi:25718
  38957. #, no-wrap
  38958. msgid "%f"
  38959. msgstr ""
  38960. #. type: table
  38961. #: guix-git/doc/guix.texi:25720
  38962. msgid "From address"
  38963. msgstr ""
  38964. #. type: item
  38965. #: guix-git/doc/guix.texi:25720
  38966. #, no-wrap
  38967. msgid "%p"
  38968. msgstr ""
  38969. #. type: table
  38970. #: guix-git/doc/guix.texi:25722
  38971. msgid "Physical size"
  38972. msgstr ""
  38973. #. type: item
  38974. #: guix-git/doc/guix.texi:25722
  38975. #, no-wrap
  38976. msgid "%w"
  38977. msgstr ""
  38978. #. type: table
  38979. #: guix-git/doc/guix.texi:25724
  38980. msgid "Virtual size."
  38981. msgstr ""
  38982. #. type: deftypevr
  38983. #: guix-git/doc/guix.texi:25726
  38984. msgid "Defaults to @samp{\"msgid=%m: %$\"}."
  38985. msgstr ""
  38986. #. type: deftypevr
  38987. #: guix-git/doc/guix.texi:25728
  38988. #, no-wrap
  38989. msgid "{@code{dovecot-configuration} parameter} string mail-location"
  38990. msgstr ""
  38991. #. type: deftypevr
  38992. #: guix-git/doc/guix.texi:25733
  38993. 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."
  38994. msgstr ""
  38995. #. type: deftypevr
  38996. #: guix-git/doc/guix.texi:25739
  38997. 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."
  38998. msgstr ""
  38999. #. type: deftypevr
  39000. #: guix-git/doc/guix.texi:25741
  39001. msgid "There are a few special variables you can use, e.g.:"
  39002. msgstr ""
  39003. #. type: item
  39004. #: guix-git/doc/guix.texi:25743
  39005. #, no-wrap
  39006. msgid "%u"
  39007. msgstr ""
  39008. #. type: table
  39009. #: guix-git/doc/guix.texi:25745
  39010. msgid "username"
  39011. msgstr ""
  39012. #. type: item
  39013. #: guix-git/doc/guix.texi:25745 guix-git/doc/guix.texi:26255
  39014. #, no-wrap
  39015. msgid "%n"
  39016. msgstr ""
  39017. #. type: table
  39018. #: guix-git/doc/guix.texi:25747
  39019. msgid "user part in user@@domain, same as %u if there's no domain"
  39020. msgstr ""
  39021. #. type: item
  39022. #: guix-git/doc/guix.texi:25747
  39023. #, no-wrap
  39024. msgid "%d"
  39025. msgstr ""
  39026. #. type: table
  39027. #: guix-git/doc/guix.texi:25749
  39028. msgid "domain part in user@@domain, empty if there's no domain"
  39029. msgstr ""
  39030. #. type: item
  39031. #: guix-git/doc/guix.texi:25749
  39032. #, no-wrap
  39033. msgid "%h"
  39034. msgstr ""
  39035. #. type: table
  39036. #: guix-git/doc/guix.texi:25751
  39037. msgid "home director"
  39038. msgstr ""
  39039. #. type: deftypevr
  39040. #: guix-git/doc/guix.texi:25754
  39041. msgid "See doc/wiki/Variables.txt for full list. Some examples:"
  39042. msgstr ""
  39043. #. type: item
  39044. #: guix-git/doc/guix.texi:25755
  39045. #, no-wrap
  39046. msgid "maildir:~/Maildir"
  39047. msgstr ""
  39048. #. type: item
  39049. #: guix-git/doc/guix.texi:25756
  39050. #, no-wrap
  39051. msgid "mbox:~/mail:INBOX=/var/mail/%u"
  39052. msgstr ""
  39053. #. type: item
  39054. #: guix-git/doc/guix.texi:25757
  39055. #, no-wrap
  39056. msgid "mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%"
  39057. msgstr ""
  39058. #. type: deftypevr
  39059. #: guix-git/doc/guix.texi:25760 guix-git/doc/guix.texi:25772
  39060. #: guix-git/doc/guix.texi:25800 guix-git/doc/guix.texi:26567
  39061. #: guix-git/doc/guix.texi:26581 guix-git/doc/guix.texi:26588
  39062. #: guix-git/doc/guix.texi:26595 guix-git/doc/guix.texi:26625
  39063. #: guix-git/doc/guix.texi:26723 guix-git/doc/guix.texi:34483
  39064. #: guix-git/doc/guix.texi:34491 guix-git/doc/guix.texi:34499
  39065. #: guix-git/doc/guix.texi:34507 guix-git/doc/guix.texi:34786
  39066. #: guix-git/doc/guix.texi:36164 guix-git/doc/guix.texi:36172
  39067. #: guix-git/doc/guix.texi:36180 guix-git/doc/guix.texi:36288
  39068. #: guix-git/doc/guix.texi:36313 guix-git/doc/guix.texi:36444
  39069. #: guix-git/doc/guix.texi:36452 guix-git/doc/guix.texi:36460
  39070. #: guix-git/doc/guix.texi:36468 guix-git/doc/guix.texi:36476
  39071. #: guix-git/doc/guix.texi:36484 guix-git/doc/guix.texi:36507
  39072. #: guix-git/doc/guix.texi:36515 guix-git/doc/guix.texi:36567
  39073. #: guix-git/doc/guix.texi:36583 guix-git/doc/guix.texi:36591
  39074. #: guix-git/doc/guix.texi:36630 guix-git/doc/guix.texi:36653
  39075. #: guix-git/doc/guix.texi:36675 guix-git/doc/guix.texi:36682
  39076. #: guix-git/doc/guix.texi:36717 guix-git/doc/guix.texi:36725
  39077. #: guix-git/doc/guix.texi:36749 guix-git/doc/guix.texi:36781
  39078. #: guix-git/doc/guix.texi:36810 guix-git/doc/guix.texi:36817
  39079. #: guix-git/doc/guix.texi:36824 guix-git/doc/guix.texi:36832
  39080. #: guix-git/doc/guix.texi:36846 guix-git/doc/guix.texi:36855
  39081. #: guix-git/doc/guix.texi:36865 guix-git/doc/guix.texi:36872
  39082. #: guix-git/doc/guix.texi:36879 guix-git/doc/guix.texi:36886
  39083. #: guix-git/doc/guix.texi:36957 guix-git/doc/guix.texi:36964
  39084. #: guix-git/doc/guix.texi:36971 guix-git/doc/guix.texi:36980
  39085. #: guix-git/doc/guix.texi:36996 guix-git/doc/guix.texi:37003
  39086. #: guix-git/doc/guix.texi:37010 guix-git/doc/guix.texi:37017
  39087. #: guix-git/doc/guix.texi:37025 guix-git/doc/guix.texi:37033
  39088. msgid "Defaults to @samp{\"\"}."
  39089. msgstr ""
  39090. #. type: deftypevr
  39091. #: guix-git/doc/guix.texi:25762
  39092. #, no-wrap
  39093. msgid "{@code{dovecot-configuration} parameter} string mail-uid"
  39094. msgstr ""
  39095. #. type: deftypevr
  39096. #: guix-git/doc/guix.texi:25767
  39097. 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{\"\"}."
  39098. msgstr ""
  39099. #. type: deftypevr
  39100. #: guix-git/doc/guix.texi:25769
  39101. #, no-wrap
  39102. msgid "{@code{dovecot-configuration} parameter} string mail-gid"
  39103. msgstr ""
  39104. #. type: deftypevr
  39105. #: guix-git/doc/guix.texi:25774
  39106. #, no-wrap
  39107. msgid "{@code{dovecot-configuration} parameter} string mail-privileged-group"
  39108. msgstr ""
  39109. #. type: deftypevr
  39110. #: guix-git/doc/guix.texi:25780
  39111. 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{\"\"}."
  39112. msgstr ""
  39113. #. type: deftypevr
  39114. #: guix-git/doc/guix.texi:25782
  39115. #, no-wrap
  39116. msgid "{@code{dovecot-configuration} parameter} string mail-access-groups"
  39117. msgstr ""
  39118. #. type: deftypevr
  39119. #: guix-git/doc/guix.texi:25790
  39120. 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{\"\"}."
  39121. msgstr ""
  39122. #. type: deftypevr
  39123. #: guix-git/doc/guix.texi:25792
  39124. #, no-wrap
  39125. msgid "{@code{dovecot-configuration} parameter} string mail-attribute-dict"
  39126. msgstr ""
  39127. #. type: deftypevr
  39128. #: guix-git/doc/guix.texi:25795
  39129. 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}."
  39130. msgstr ""
  39131. #. type: deftypevr
  39132. #: guix-git/doc/guix.texi:25798
  39133. msgid "The IMAP METADATA commands are available only if the ``imap'' protocol configuration's @code{imap-metadata?} field is @samp{#t}."
  39134. msgstr ""
  39135. #. type: deftypevr
  39136. #: guix-git/doc/guix.texi:25803
  39137. #, no-wrap
  39138. msgid "{@code{dovecot-configuration} parameter} boolean mail-full-filesystem-access?"
  39139. msgstr ""
  39140. #. type: deftypevr
  39141. #: guix-git/doc/guix.texi:25809
  39142. 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}."
  39143. msgstr ""
  39144. #. type: deftypevr
  39145. #: guix-git/doc/guix.texi:25811
  39146. #, no-wrap
  39147. msgid "{@code{dovecot-configuration} parameter} boolean mmap-disable?"
  39148. msgstr ""
  39149. #. type: deftypevr
  39150. #: guix-git/doc/guix.texi:25815
  39151. 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}."
  39152. msgstr ""
  39153. #. type: deftypevr
  39154. #: guix-git/doc/guix.texi:25817
  39155. #, no-wrap
  39156. msgid "{@code{dovecot-configuration} parameter} boolean dotlock-use-excl?"
  39157. msgstr ""
  39158. #. type: deftypevr
  39159. #: guix-git/doc/guix.texi:25822
  39160. 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}."
  39161. msgstr ""
  39162. #. type: deftypevr
  39163. #: guix-git/doc/guix.texi:25824
  39164. #, no-wrap
  39165. msgid "{@code{dovecot-configuration} parameter} string mail-fsync"
  39166. msgstr ""
  39167. #. type: deftypevr
  39168. #: guix-git/doc/guix.texi:25826
  39169. msgid "When to use fsync() or fdatasync() calls:"
  39170. msgstr ""
  39171. #. type: item
  39172. #: guix-git/doc/guix.texi:25827
  39173. #, no-wrap
  39174. msgid "optimized"
  39175. msgstr ""
  39176. #. type: table
  39177. #: guix-git/doc/guix.texi:25829
  39178. msgid "Whenever necessary to avoid losing important data"
  39179. msgstr ""
  39180. #. type: table
  39181. #: guix-git/doc/guix.texi:25831
  39182. msgid "Useful with e.g.@: NFS when @code{write()}s are delayed"
  39183. msgstr ""
  39184. #. type: table
  39185. #: guix-git/doc/guix.texi:25833
  39186. msgid "Never use it (best performance, but crashes can lose data)."
  39187. msgstr ""
  39188. #. type: deftypevr
  39189. #: guix-git/doc/guix.texi:25835
  39190. msgid "Defaults to @samp{\"optimized\"}."
  39191. msgstr ""
  39192. #. type: deftypevr
  39193. #: guix-git/doc/guix.texi:25837
  39194. #, no-wrap
  39195. msgid "{@code{dovecot-configuration} parameter} boolean mail-nfs-storage?"
  39196. msgstr ""
  39197. #. type: deftypevr
  39198. #: guix-git/doc/guix.texi:25842
  39199. 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}."
  39200. msgstr ""
  39201. #. type: deftypevr
  39202. #: guix-git/doc/guix.texi:25844
  39203. #, no-wrap
  39204. msgid "{@code{dovecot-configuration} parameter} boolean mail-nfs-index?"
  39205. msgstr ""
  39206. #. type: deftypevr
  39207. #: guix-git/doc/guix.texi:25848
  39208. 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}."
  39209. msgstr ""
  39210. #. type: deftypevr
  39211. #: guix-git/doc/guix.texi:25850
  39212. #, no-wrap
  39213. msgid "{@code{dovecot-configuration} parameter} string lock-method"
  39214. msgstr ""
  39215. #. type: deftypevr
  39216. #: guix-git/doc/guix.texi:25856
  39217. 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\"}."
  39218. msgstr ""
  39219. #. type: deftypevr
  39220. #: guix-git/doc/guix.texi:25858
  39221. #, no-wrap
  39222. msgid "{@code{dovecot-configuration} parameter} file-name mail-temp-dir"
  39223. msgstr ""
  39224. #. type: deftypevr
  39225. #: guix-git/doc/guix.texi:25862
  39226. msgid "Directory in which LDA/LMTP temporarily stores incoming mails >128 kB. Defaults to @samp{\"/tmp\"}."
  39227. msgstr ""
  39228. #. type: deftypevr
  39229. #: guix-git/doc/guix.texi:25864
  39230. #, no-wrap
  39231. msgid "{@code{dovecot-configuration} parameter} non-negative-integer first-valid-uid"
  39232. msgstr ""
  39233. #. type: deftypevr
  39234. #: guix-git/doc/guix.texi:25870
  39235. 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}."
  39236. msgstr ""
  39237. #. type: deftypevr
  39238. #: guix-git/doc/guix.texi:25872
  39239. #, no-wrap
  39240. msgid "{@code{dovecot-configuration} parameter} non-negative-integer last-valid-uid"
  39241. msgstr ""
  39242. #. type: deftypevr
  39243. #: guix-git/doc/guix.texi:25877
  39244. #, no-wrap
  39245. msgid "{@code{dovecot-configuration} parameter} non-negative-integer first-valid-gid"
  39246. msgstr ""
  39247. #. type: deftypevr
  39248. #: guix-git/doc/guix.texi:25882
  39249. 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}."
  39250. msgstr ""
  39251. #. type: deftypevr
  39252. #: guix-git/doc/guix.texi:25884
  39253. #, no-wrap
  39254. msgid "{@code{dovecot-configuration} parameter} non-negative-integer last-valid-gid"
  39255. msgstr ""
  39256. #. type: deftypevr
  39257. #: guix-git/doc/guix.texi:25889
  39258. #, no-wrap
  39259. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mail-max-keyword-length"
  39260. msgstr ""
  39261. #. type: deftypevr
  39262. #: guix-git/doc/guix.texi:25893
  39263. msgid "Maximum allowed length for mail keyword name. It's only forced when trying to create new keywords. Defaults to @samp{50}."
  39264. msgstr ""
  39265. #. type: deftypevr
  39266. #: guix-git/doc/guix.texi:25895
  39267. #, no-wrap
  39268. msgid "{@code{dovecot-configuration} parameter} colon-separated-file-name-list valid-chroot-dirs"
  39269. msgstr ""
  39270. #. type: deftypevr
  39271. #: guix-git/doc/guix.texi:25905
  39272. 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{'()}."
  39273. msgstr ""
  39274. #. type: deftypevr
  39275. #: guix-git/doc/guix.texi:25907
  39276. #, no-wrap
  39277. msgid "{@code{dovecot-configuration} parameter} string mail-chroot"
  39278. msgstr ""
  39279. #. type: deftypevr
  39280. #: guix-git/doc/guix.texi:25916
  39281. 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{\"\"}."
  39282. msgstr ""
  39283. #. type: deftypevr
  39284. #: guix-git/doc/guix.texi:25918
  39285. #, no-wrap
  39286. msgid "{@code{dovecot-configuration} parameter} file-name auth-socket-path"
  39287. msgstr ""
  39288. #. type: deftypevr
  39289. #: guix-git/doc/guix.texi:25922
  39290. 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\"}."
  39291. msgstr ""
  39292. #. type: deftypevr
  39293. #: guix-git/doc/guix.texi:25924
  39294. #, no-wrap
  39295. msgid "{@code{dovecot-configuration} parameter} file-name mail-plugin-dir"
  39296. msgstr ""
  39297. #. type: deftypevr
  39298. #: guix-git/doc/guix.texi:25927
  39299. msgid "Directory where to look up mail plugins. Defaults to @samp{\"/usr/lib/dovecot\"}."
  39300. msgstr ""
  39301. #. type: deftypevr
  39302. #: guix-git/doc/guix.texi:25929
  39303. #, no-wrap
  39304. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list mail-plugins"
  39305. msgstr ""
  39306. #. type: deftypevr
  39307. #: guix-git/doc/guix.texi:25933
  39308. 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{'()}."
  39309. msgstr ""
  39310. #. type: deftypevr
  39311. #: guix-git/doc/guix.texi:25935
  39312. #, no-wrap
  39313. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mail-cache-min-mail-count"
  39314. msgstr ""
  39315. #. type: deftypevr
  39316. #: guix-git/doc/guix.texi:25940
  39317. 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}."
  39318. msgstr ""
  39319. #. type: deftypevr
  39320. #: guix-git/doc/guix.texi:25942
  39321. #, no-wrap
  39322. msgid "{@code{dovecot-configuration} parameter} string mailbox-idle-check-interval"
  39323. msgstr ""
  39324. #. type: deftypevr
  39325. #: guix-git/doc/guix.texi:25949
  39326. 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\"}."
  39327. msgstr ""
  39328. #. type: deftypevr
  39329. #: guix-git/doc/guix.texi:25951
  39330. #, no-wrap
  39331. msgid "{@code{dovecot-configuration} parameter} boolean mail-save-crlf?"
  39332. msgstr ""
  39333. #. type: deftypevr
  39334. #: guix-git/doc/guix.texi:25958
  39335. 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}."
  39336. msgstr ""
  39337. #. type: deftypevr
  39338. #: guix-git/doc/guix.texi:25960
  39339. #, no-wrap
  39340. msgid "{@code{dovecot-configuration} parameter} boolean maildir-stat-dirs?"
  39341. msgstr ""
  39342. #. type: deftypevr
  39343. #: guix-git/doc/guix.texi:25968
  39344. 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}."
  39345. msgstr ""
  39346. #. type: deftypevr
  39347. #: guix-git/doc/guix.texi:25970
  39348. #, no-wrap
  39349. msgid "{@code{dovecot-configuration} parameter} boolean maildir-copy-with-hardlinks?"
  39350. msgstr ""
  39351. #. type: deftypevr
  39352. #: guix-git/doc/guix.texi:25975
  39353. 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}."
  39354. msgstr ""
  39355. #. type: deftypevr
  39356. #: guix-git/doc/guix.texi:25977
  39357. #, no-wrap
  39358. msgid "{@code{dovecot-configuration} parameter} boolean maildir-very-dirty-syncs?"
  39359. msgstr ""
  39360. #. type: deftypevr
  39361. #: guix-git/doc/guix.texi:25982
  39362. 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}."
  39363. msgstr ""
  39364. #. type: deftypevr
  39365. #: guix-git/doc/guix.texi:25984
  39366. #, no-wrap
  39367. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list mbox-read-locks"
  39368. msgstr ""
  39369. #. type: deftypevr
  39370. #: guix-git/doc/guix.texi:25987
  39371. msgid "Which locking methods to use for locking mbox. There are four available:"
  39372. msgstr ""
  39373. #. type: item
  39374. #: guix-git/doc/guix.texi:25989
  39375. #, no-wrap
  39376. msgid "dotlock"
  39377. msgstr ""
  39378. #. type: table
  39379. #: guix-git/doc/guix.texi:25993
  39380. 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."
  39381. msgstr ""
  39382. #. type: item
  39383. #: guix-git/doc/guix.texi:25993
  39384. #, no-wrap
  39385. msgid "dotlock-try"
  39386. msgstr ""
  39387. #. type: table
  39388. #: guix-git/doc/guix.texi:25996
  39389. msgid "Same as dotlock, but if it fails because of permissions or because there isn't enough disk space, just skip it."
  39390. msgstr ""
  39391. #. type: item
  39392. #: guix-git/doc/guix.texi:25996
  39393. #, no-wrap
  39394. msgid "fcntl"
  39395. msgstr ""
  39396. #. type: table
  39397. #: guix-git/doc/guix.texi:25998
  39398. msgid "Use this if possible. Works with NFS too if lockd is used."
  39399. msgstr ""
  39400. #. type: item
  39401. #: guix-git/doc/guix.texi:25998
  39402. #, no-wrap
  39403. msgid "flock"
  39404. msgstr ""
  39405. #. type: table
  39406. #: guix-git/doc/guix.texi:26000 guix-git/doc/guix.texi:26002
  39407. msgid "May not exist in all systems. Doesn't work with NFS."
  39408. msgstr ""
  39409. #. type: item
  39410. #: guix-git/doc/guix.texi:26000
  39411. #, no-wrap
  39412. msgid "lockf"
  39413. msgstr ""
  39414. #. type: deftypevr
  39415. #: guix-git/doc/guix.texi:26008
  39416. 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."
  39417. msgstr ""
  39418. #. type: deftypevr
  39419. #: guix-git/doc/guix.texi:26010
  39420. #, no-wrap
  39421. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list mbox-write-locks"
  39422. msgstr ""
  39423. #. type: deftypevr
  39424. #: guix-git/doc/guix.texi:26014
  39425. #, no-wrap
  39426. msgid "{@code{dovecot-configuration} parameter} string mbox-lock-timeout"
  39427. msgstr ""
  39428. #. type: deftypevr
  39429. #: guix-git/doc/guix.texi:26017
  39430. msgid "Maximum time to wait for lock (all of them) before aborting. Defaults to @samp{\"5 mins\"}."
  39431. msgstr ""
  39432. #. type: deftypevr
  39433. #: guix-git/doc/guix.texi:26019
  39434. #, no-wrap
  39435. msgid "{@code{dovecot-configuration} parameter} string mbox-dotlock-change-timeout"
  39436. msgstr ""
  39437. #. type: deftypevr
  39438. #: guix-git/doc/guix.texi:26023
  39439. 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\"}."
  39440. msgstr ""
  39441. #. type: deftypevr
  39442. #: guix-git/doc/guix.texi:26025
  39443. #, no-wrap
  39444. msgid "{@code{dovecot-configuration} parameter} boolean mbox-dirty-syncs?"
  39445. msgstr ""
  39446. #. type: deftypevr
  39447. #: guix-git/doc/guix.texi:26036
  39448. 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}."
  39449. msgstr ""
  39450. #. type: deftypevr
  39451. #: guix-git/doc/guix.texi:26038
  39452. #, no-wrap
  39453. msgid "{@code{dovecot-configuration} parameter} boolean mbox-very-dirty-syncs?"
  39454. msgstr ""
  39455. #. type: deftypevr
  39456. #: guix-git/doc/guix.texi:26043
  39457. 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}."
  39458. msgstr ""
  39459. #. type: deftypevr
  39460. #: guix-git/doc/guix.texi:26045
  39461. #, no-wrap
  39462. msgid "{@code{dovecot-configuration} parameter} boolean mbox-lazy-writes?"
  39463. msgstr ""
  39464. #. type: deftypevr
  39465. #: guix-git/doc/guix.texi:26051
  39466. 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}."
  39467. msgstr ""
  39468. #. type: deftypevr
  39469. #: guix-git/doc/guix.texi:26053
  39470. #, no-wrap
  39471. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mbox-min-index-size"
  39472. msgstr ""
  39473. #. type: deftypevr
  39474. #: guix-git/doc/guix.texi:26058
  39475. 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}."
  39476. msgstr ""
  39477. #. type: deftypevr
  39478. #: guix-git/doc/guix.texi:26060
  39479. #, no-wrap
  39480. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mdbox-rotate-size"
  39481. msgstr ""
  39482. #. type: deftypevr
  39483. #: guix-git/doc/guix.texi:26063
  39484. msgid "Maximum dbox file size until it's rotated. Defaults to @samp{10000000}."
  39485. msgstr ""
  39486. #. type: deftypevr
  39487. #: guix-git/doc/guix.texi:26065
  39488. #, no-wrap
  39489. msgid "{@code{dovecot-configuration} parameter} string mdbox-rotate-interval"
  39490. msgstr ""
  39491. #. type: deftypevr
  39492. #: guix-git/doc/guix.texi:26070
  39493. 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\"}."
  39494. msgstr ""
  39495. #. type: deftypevr
  39496. #: guix-git/doc/guix.texi:26072
  39497. #, no-wrap
  39498. msgid "{@code{dovecot-configuration} parameter} boolean mdbox-preallocate-space?"
  39499. msgstr ""
  39500. #. type: deftypevr
  39501. #: guix-git/doc/guix.texi:26077
  39502. 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}."
  39503. msgstr ""
  39504. #. type: deftypevr
  39505. #: guix-git/doc/guix.texi:26079
  39506. #, no-wrap
  39507. msgid "{@code{dovecot-configuration} parameter} string mail-attachment-dir"
  39508. msgstr ""
  39509. #. type: deftypevr
  39510. #: guix-git/doc/guix.texi:26083
  39511. 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."
  39512. msgstr ""
  39513. #. type: deftypevr
  39514. #: guix-git/doc/guix.texi:26085
  39515. msgid "WARNING: This feature hasn't been tested much yet. Use at your own risk."
  39516. msgstr ""
  39517. #. type: deftypevr
  39518. #: guix-git/doc/guix.texi:26088
  39519. msgid "Directory root where to store mail attachments. Disabled, if empty. Defaults to @samp{\"\"}."
  39520. msgstr ""
  39521. #. type: deftypevr
  39522. #: guix-git/doc/guix.texi:26090
  39523. #, no-wrap
  39524. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mail-attachment-min-size"
  39525. msgstr ""
  39526. #. type: deftypevr
  39527. #: guix-git/doc/guix.texi:26095
  39528. 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}."
  39529. msgstr ""
  39530. #. type: deftypevr
  39531. #: guix-git/doc/guix.texi:26097
  39532. #, no-wrap
  39533. msgid "{@code{dovecot-configuration} parameter} string mail-attachment-fs"
  39534. msgstr ""
  39535. #. type: deftypevr
  39536. #: guix-git/doc/guix.texi:26099
  39537. msgid "File system backend to use for saving attachments:"
  39538. msgstr ""
  39539. #. type: item
  39540. #: guix-git/doc/guix.texi:26100
  39541. #, no-wrap
  39542. msgid "posix"
  39543. msgstr ""
  39544. #. type: table
  39545. #: guix-git/doc/guix.texi:26102
  39546. msgid "No SiS done by Dovecot (but this might help FS's own deduplication)"
  39547. msgstr ""
  39548. #. type: item
  39549. #: guix-git/doc/guix.texi:26102
  39550. #, no-wrap
  39551. msgid "sis posix"
  39552. msgstr ""
  39553. #. type: table
  39554. #: guix-git/doc/guix.texi:26104
  39555. msgid "SiS with immediate byte-by-byte comparison during saving"
  39556. msgstr ""
  39557. #. type: item
  39558. #: guix-git/doc/guix.texi:26104
  39559. #, no-wrap
  39560. msgid "sis-queue posix"
  39561. msgstr ""
  39562. #. type: table
  39563. #: guix-git/doc/guix.texi:26106
  39564. msgid "SiS with delayed comparison and deduplication."
  39565. msgstr ""
  39566. #. type: deftypevr
  39567. #: guix-git/doc/guix.texi:26108
  39568. msgid "Defaults to @samp{\"sis posix\"}."
  39569. msgstr ""
  39570. #. type: deftypevr
  39571. #: guix-git/doc/guix.texi:26110
  39572. #, no-wrap
  39573. msgid "{@code{dovecot-configuration} parameter} string mail-attachment-hash"
  39574. msgstr ""
  39575. #. type: deftypevr
  39576. #: guix-git/doc/guix.texi:26116
  39577. 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@}\"}."
  39578. msgstr ""
  39579. #. type: deftypevr
  39580. #: guix-git/doc/guix.texi:26118
  39581. #, no-wrap
  39582. msgid "{@code{dovecot-configuration} parameter} non-negative-integer default-process-limit"
  39583. msgstr ""
  39584. #. type: deftypevr
  39585. #: guix-git/doc/guix.texi:26123
  39586. #, no-wrap
  39587. msgid "{@code{dovecot-configuration} parameter} non-negative-integer default-client-limit"
  39588. msgstr ""
  39589. #. type: deftypevr
  39590. #: guix-git/doc/guix.texi:26126 guix-git/doc/guix.texi:34569
  39591. msgid "Defaults to @samp{1000}."
  39592. msgstr ""
  39593. #. type: deftypevr
  39594. #: guix-git/doc/guix.texi:26128
  39595. #, no-wrap
  39596. msgid "{@code{dovecot-configuration} parameter} non-negative-integer default-vsz-limit"
  39597. msgstr ""
  39598. #. type: deftypevr
  39599. #: guix-git/doc/guix.texi:26133
  39600. 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}."
  39601. msgstr ""
  39602. #. type: deftypevr
  39603. #: guix-git/doc/guix.texi:26135
  39604. #, no-wrap
  39605. msgid "{@code{dovecot-configuration} parameter} string default-login-user"
  39606. msgstr ""
  39607. #. type: deftypevr
  39608. #: guix-git/doc/guix.texi:26140
  39609. 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\"}."
  39610. msgstr ""
  39611. #. type: deftypevr
  39612. #: guix-git/doc/guix.texi:26142
  39613. #, no-wrap
  39614. msgid "{@code{dovecot-configuration} parameter} string default-internal-user"
  39615. msgstr ""
  39616. #. type: deftypevr
  39617. #: guix-git/doc/guix.texi:26147
  39618. 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\"}."
  39619. msgstr ""
  39620. #. type: deftypevr
  39621. #: guix-git/doc/guix.texi:26149
  39622. #, no-wrap
  39623. msgid "{@code{dovecot-configuration} parameter} string ssl?"
  39624. msgstr ""
  39625. #. type: deftypevr
  39626. #: guix-git/doc/guix.texi:26152
  39627. msgid "SSL/TLS support: yes, no, required. <doc/wiki/SSL.txt>. Defaults to @samp{\"required\"}."
  39628. msgstr ""
  39629. #. type: deftypevr
  39630. #: guix-git/doc/guix.texi:26154
  39631. #, no-wrap
  39632. msgid "{@code{dovecot-configuration} parameter} string ssl-cert"
  39633. msgstr ""
  39634. #. type: deftypevr
  39635. #: guix-git/doc/guix.texi:26157
  39636. msgid "PEM encoded X.509 SSL/TLS certificate (public key). Defaults to @samp{\"</etc/dovecot/default.pem\"}."
  39637. msgstr ""
  39638. #. type: deftypevr
  39639. #: guix-git/doc/guix.texi:26159
  39640. #, no-wrap
  39641. msgid "{@code{dovecot-configuration} parameter} string ssl-key"
  39642. msgstr ""
  39643. #. type: deftypevr
  39644. #: guix-git/doc/guix.texi:26164
  39645. 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\"}."
  39646. msgstr ""
  39647. #. type: deftypevr
  39648. #: guix-git/doc/guix.texi:26166
  39649. #, no-wrap
  39650. msgid "{@code{dovecot-configuration} parameter} string ssl-key-password"
  39651. msgstr ""
  39652. #. type: deftypevr
  39653. #: guix-git/doc/guix.texi:26172
  39654. 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{\"\"}."
  39655. msgstr ""
  39656. #. type: deftypevr
  39657. #: guix-git/doc/guix.texi:26174
  39658. #, no-wrap
  39659. msgid "{@code{dovecot-configuration} parameter} string ssl-ca"
  39660. msgstr ""
  39661. #. type: deftypevr
  39662. #: guix-git/doc/guix.texi:26180
  39663. 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{\"\"}."
  39664. msgstr ""
  39665. #. type: deftypevr
  39666. #: guix-git/doc/guix.texi:26182
  39667. #, no-wrap
  39668. msgid "{@code{dovecot-configuration} parameter} boolean ssl-require-crl?"
  39669. msgstr ""
  39670. #. type: deftypevr
  39671. #: guix-git/doc/guix.texi:26185
  39672. msgid "Require that CRL check succeeds for client certificates. Defaults to @samp{#t}."
  39673. msgstr ""
  39674. #. type: deftypevr
  39675. #: guix-git/doc/guix.texi:26187
  39676. #, no-wrap
  39677. msgid "{@code{dovecot-configuration} parameter} boolean ssl-verify-client-cert?"
  39678. msgstr ""
  39679. #. type: deftypevr
  39680. #: guix-git/doc/guix.texi:26191
  39681. 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}."
  39682. msgstr ""
  39683. #. type: deftypevr
  39684. #: guix-git/doc/guix.texi:26193
  39685. #, no-wrap
  39686. msgid "{@code{dovecot-configuration} parameter} string ssl-cert-username-field"
  39687. msgstr ""
  39688. #. type: deftypevr
  39689. #: guix-git/doc/guix.texi:26198
  39690. 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\"}."
  39691. msgstr ""
  39692. #. type: deftypevr
  39693. #: guix-git/doc/guix.texi:26200
  39694. #, no-wrap
  39695. msgid "{@code{dovecot-configuration} parameter} string ssl-min-protocol"
  39696. msgstr ""
  39697. #. type: deftypevr
  39698. #: guix-git/doc/guix.texi:26203
  39699. msgid "Minimum SSL protocol version to accept. Defaults to @samp{\"TLSv1\"}."
  39700. msgstr ""
  39701. #. type: deftypevr
  39702. #: guix-git/doc/guix.texi:26205
  39703. #, no-wrap
  39704. msgid "{@code{dovecot-configuration} parameter} string ssl-cipher-list"
  39705. msgstr ""
  39706. #. type: deftypevr
  39707. #: guix-git/doc/guix.texi:26208
  39708. msgid "SSL ciphers to use. Defaults to @samp{\"ALL:!kRSA:!SRP:!kDHd:!DSS:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK:!RC4:!ADH:!LOW@@STRENGTH\"}."
  39709. msgstr ""
  39710. #. type: deftypevr
  39711. #: guix-git/doc/guix.texi:26210
  39712. #, no-wrap
  39713. msgid "{@code{dovecot-configuration} parameter} string ssl-crypto-device"
  39714. msgstr ""
  39715. #. type: deftypevr
  39716. #: guix-git/doc/guix.texi:26213
  39717. msgid "SSL crypto device to use, for valid values run \"openssl engine\". Defaults to @samp{\"\"}."
  39718. msgstr ""
  39719. #. type: deftypevr
  39720. #: guix-git/doc/guix.texi:26215
  39721. #, no-wrap
  39722. msgid "{@code{dovecot-configuration} parameter} string postmaster-address"
  39723. msgstr ""
  39724. #. type: deftypevr
  39725. #: guix-git/doc/guix.texi:26219
  39726. msgid "Address to use when sending rejection mails. %d expands to recipient domain. Defaults to @samp{\"postmaster@@%d\"}."
  39727. msgstr ""
  39728. #. type: deftypevr
  39729. #: guix-git/doc/guix.texi:26221
  39730. #, no-wrap
  39731. msgid "{@code{dovecot-configuration} parameter} string hostname"
  39732. msgstr ""
  39733. #. type: deftypevr
  39734. #: guix-git/doc/guix.texi:26225
  39735. 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{\"\"}."
  39736. msgstr ""
  39737. #. type: deftypevr
  39738. #: guix-git/doc/guix.texi:26227
  39739. #, no-wrap
  39740. msgid "{@code{dovecot-configuration} parameter} boolean quota-full-tempfail?"
  39741. msgstr ""
  39742. #. type: deftypevr
  39743. #: guix-git/doc/guix.texi:26231
  39744. msgid "If user is over quota, return with temporary failure instead of bouncing the mail. Defaults to @samp{#f}."
  39745. msgstr ""
  39746. #. type: deftypevr
  39747. #: guix-git/doc/guix.texi:26233
  39748. #, no-wrap
  39749. msgid "{@code{dovecot-configuration} parameter} file-name sendmail-path"
  39750. msgstr ""
  39751. #. type: deftypevr
  39752. #: guix-git/doc/guix.texi:26236
  39753. msgid "Binary to use for sending mails. Defaults to @samp{\"/usr/sbin/sendmail\"}."
  39754. msgstr ""
  39755. #. type: deftypevr
  39756. #: guix-git/doc/guix.texi:26238
  39757. #, no-wrap
  39758. msgid "{@code{dovecot-configuration} parameter} string submission-host"
  39759. msgstr ""
  39760. #. type: deftypevr
  39761. #: guix-git/doc/guix.texi:26242
  39762. msgid "If non-empty, send mails via this SMTP host[:port] instead of sendmail. Defaults to @samp{\"\"}."
  39763. msgstr ""
  39764. #. type: deftypevr
  39765. #: guix-git/doc/guix.texi:26244
  39766. #, no-wrap
  39767. msgid "{@code{dovecot-configuration} parameter} string rejection-subject"
  39768. msgstr ""
  39769. #. type: deftypevr
  39770. #: guix-git/doc/guix.texi:26248
  39771. 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\"}."
  39772. msgstr ""
  39773. #. type: deftypevr
  39774. #: guix-git/doc/guix.texi:26250
  39775. #, no-wrap
  39776. msgid "{@code{dovecot-configuration} parameter} string rejection-reason"
  39777. msgstr ""
  39778. #. type: deftypevr
  39779. #: guix-git/doc/guix.texi:26253
  39780. msgid "Human readable error message for rejection mails. You can use variables:"
  39781. msgstr ""
  39782. #. type: table
  39783. #: guix-git/doc/guix.texi:26257
  39784. msgid "CRLF"
  39785. msgstr ""
  39786. #. type: item
  39787. #: guix-git/doc/guix.texi:26257
  39788. #, no-wrap
  39789. msgid "%r"
  39790. msgstr ""
  39791. #. type: table
  39792. #: guix-git/doc/guix.texi:26259
  39793. msgid "reason"
  39794. msgstr ""
  39795. #. type: table
  39796. #: guix-git/doc/guix.texi:26261
  39797. msgid "original subject"
  39798. msgstr ""
  39799. #. type: item
  39800. #: guix-git/doc/guix.texi:26261
  39801. #, no-wrap
  39802. msgid "%t"
  39803. msgstr ""
  39804. #. type: table
  39805. #: guix-git/doc/guix.texi:26263
  39806. msgid "recipient"
  39807. msgstr ""
  39808. #. type: deftypevr
  39809. #: guix-git/doc/guix.texi:26265
  39810. msgid "Defaults to @samp{\"Your message to <%t> was automatically rejected:%n%r\"}."
  39811. msgstr ""
  39812. #. type: deftypevr
  39813. #: guix-git/doc/guix.texi:26267
  39814. #, no-wrap
  39815. msgid "{@code{dovecot-configuration} parameter} string recipient-delimiter"
  39816. msgstr ""
  39817. #. type: deftypevr
  39818. #: guix-git/doc/guix.texi:26271
  39819. msgid "Delimiter character between local-part and detail in email address. Defaults to @samp{\"+\"}."
  39820. msgstr ""
  39821. #. type: deftypevr
  39822. #: guix-git/doc/guix.texi:26273
  39823. #, no-wrap
  39824. msgid "{@code{dovecot-configuration} parameter} string lda-original-recipient-header"
  39825. msgstr ""
  39826. #. type: deftypevr
  39827. #: guix-git/doc/guix.texi:26279
  39828. 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{\"\"}."
  39829. msgstr ""
  39830. #. type: deftypevr
  39831. #: guix-git/doc/guix.texi:26281
  39832. #, no-wrap
  39833. msgid "{@code{dovecot-configuration} parameter} boolean lda-mailbox-autocreate?"
  39834. msgstr ""
  39835. #. type: deftypevr
  39836. #: guix-git/doc/guix.texi:26285
  39837. msgid "Should saving a mail to a nonexistent mailbox automatically create it?. Defaults to @samp{#f}."
  39838. msgstr ""
  39839. #. type: deftypevr
  39840. #: guix-git/doc/guix.texi:26287
  39841. #, no-wrap
  39842. msgid "{@code{dovecot-configuration} parameter} boolean lda-mailbox-autosubscribe?"
  39843. msgstr ""
  39844. #. type: deftypevr
  39845. #: guix-git/doc/guix.texi:26291
  39846. msgid "Should automatically created mailboxes be also automatically subscribed?. Defaults to @samp{#f}."
  39847. msgstr ""
  39848. #. type: deftypevr
  39849. #: guix-git/doc/guix.texi:26293
  39850. #, no-wrap
  39851. msgid "{@code{dovecot-configuration} parameter} non-negative-integer imap-max-line-length"
  39852. msgstr ""
  39853. #. type: deftypevr
  39854. #: guix-git/doc/guix.texi:26299
  39855. 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}."
  39856. msgstr ""
  39857. #. type: deftypevr
  39858. #: guix-git/doc/guix.texi:26301
  39859. #, no-wrap
  39860. msgid "{@code{dovecot-configuration} parameter} string imap-logout-format"
  39861. msgstr ""
  39862. #. type: deftypevr
  39863. #: guix-git/doc/guix.texi:26303
  39864. msgid "IMAP logout format string:"
  39865. msgstr ""
  39866. #. type: item
  39867. #: guix-git/doc/guix.texi:26304
  39868. #, no-wrap
  39869. msgid "%i"
  39870. msgstr ""
  39871. #. type: table
  39872. #: guix-git/doc/guix.texi:26306
  39873. msgid "total number of bytes read from client"
  39874. msgstr ""
  39875. #. type: item
  39876. #: guix-git/doc/guix.texi:26306
  39877. #, no-wrap
  39878. msgid "%o"
  39879. msgstr ""
  39880. #. type: table
  39881. #: guix-git/doc/guix.texi:26308
  39882. msgid "total number of bytes sent to client."
  39883. msgstr ""
  39884. #. type: deftypevr
  39885. #: guix-git/doc/guix.texi:26311
  39886. 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@}\"}."
  39887. msgstr ""
  39888. #. type: deftypevr
  39889. #: guix-git/doc/guix.texi:26313
  39890. #, no-wrap
  39891. msgid "{@code{dovecot-configuration} parameter} string imap-capability"
  39892. msgstr ""
  39893. #. type: deftypevr
  39894. #: guix-git/doc/guix.texi:26317
  39895. 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{\"\"}."
  39896. msgstr ""
  39897. #. type: deftypevr
  39898. #: guix-git/doc/guix.texi:26319
  39899. #, no-wrap
  39900. msgid "{@code{dovecot-configuration} parameter} string imap-idle-notify-interval"
  39901. msgstr ""
  39902. #. type: deftypevr
  39903. #: guix-git/doc/guix.texi:26323
  39904. msgid "How long to wait between \"OK Still here\" notifications when client is IDLEing. Defaults to @samp{\"2 mins\"}."
  39905. msgstr ""
  39906. #. type: deftypevr
  39907. #: guix-git/doc/guix.texi:26325
  39908. #, no-wrap
  39909. msgid "{@code{dovecot-configuration} parameter} string imap-id-send"
  39910. msgstr ""
  39911. #. type: deftypevr
  39912. #: guix-git/doc/guix.texi:26331
  39913. 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{\"\"}."
  39914. msgstr ""
  39915. #. type: deftypevr
  39916. #: guix-git/doc/guix.texi:26333
  39917. #, no-wrap
  39918. msgid "{@code{dovecot-configuration} parameter} string imap-id-log"
  39919. msgstr ""
  39920. #. type: deftypevr
  39921. #: guix-git/doc/guix.texi:26336
  39922. msgid "ID fields sent by client to log. * means everything. Defaults to @samp{\"\"}."
  39923. msgstr ""
  39924. #. type: deftypevr
  39925. #: guix-git/doc/guix.texi:26338
  39926. #, no-wrap
  39927. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list imap-client-workarounds"
  39928. msgstr ""
  39929. #. type: deftypevr
  39930. #: guix-git/doc/guix.texi:26340
  39931. msgid "Workarounds for various client bugs:"
  39932. msgstr ""
  39933. #. type: item
  39934. #: guix-git/doc/guix.texi:26342
  39935. #, no-wrap
  39936. msgid "delay-newmail"
  39937. msgstr ""
  39938. #. type: table
  39939. #: guix-git/doc/guix.texi:26349
  39940. 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\"."
  39941. msgstr ""
  39942. #. type: item
  39943. #: guix-git/doc/guix.texi:26350
  39944. #, no-wrap
  39945. msgid "tb-extra-mailbox-sep"
  39946. msgstr ""
  39947. #. type: table
  39948. #: guix-git/doc/guix.texi:26354
  39949. 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."
  39950. msgstr ""
  39951. #. type: item
  39952. #: guix-git/doc/guix.texi:26355
  39953. #, no-wrap
  39954. msgid "tb-lsub-flags"
  39955. msgstr ""
  39956. #. type: table
  39957. #: guix-git/doc/guix.texi:26359
  39958. 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."
  39959. msgstr ""
  39960. #. type: deftypevr
  39961. #: guix-git/doc/guix.texi:26363
  39962. #, no-wrap
  39963. msgid "{@code{dovecot-configuration} parameter} string imap-urlauth-host"
  39964. msgstr ""
  39965. #. type: deftypevr
  39966. #: guix-git/doc/guix.texi:26366
  39967. msgid "Host allowed in URLAUTH URLs sent by client. \"*\" allows all. Defaults to @samp{\"\"}."
  39968. msgstr ""
  39969. #. type: Plain text
  39970. #: guix-git/doc/guix.texi:26374
  39971. 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."
  39972. msgstr ""
  39973. #. type: Plain text
  39974. #: guix-git/doc/guix.texi:26380
  39975. 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."
  39976. msgstr ""
  39977. #. type: Plain text
  39978. #: guix-git/doc/guix.texi:26382
  39979. msgid "Available @code{opaque-dovecot-configuration} fields are:"
  39980. msgstr ""
  39981. #. type: deftypevr
  39982. #: guix-git/doc/guix.texi:26383
  39983. #, no-wrap
  39984. msgid "{@code{opaque-dovecot-configuration} parameter} package dovecot"
  39985. msgstr ""
  39986. #. type: deftypevr
  39987. #: guix-git/doc/guix.texi:26387
  39988. #, no-wrap
  39989. msgid "{@code{opaque-dovecot-configuration} parameter} string string"
  39990. msgstr ""
  39991. #. type: deftypevr
  39992. #: guix-git/doc/guix.texi:26389
  39993. msgid "The contents of the @code{dovecot.conf}, as a string."
  39994. msgstr ""
  39995. #. type: Plain text
  39996. #: guix-git/doc/guix.texi:26393
  39997. msgid "For example, if your @code{dovecot.conf} is just the empty string, you could instantiate a dovecot service like this:"
  39998. msgstr ""
  39999. #. type: lisp
  40000. #: guix-git/doc/guix.texi:26398
  40001. #, no-wrap
  40002. msgid ""
  40003. "(dovecot-service #:config\n"
  40004. " (opaque-dovecot-configuration\n"
  40005. " (string \"\")))\n"
  40006. msgstr ""
  40007. #. type: subsubheading
  40008. #: guix-git/doc/guix.texi:26400
  40009. #, no-wrap
  40010. msgid "OpenSMTPD Service"
  40011. msgstr ""
  40012. #. type: defvar
  40013. #: guix-git/doc/guix.texi:26402
  40014. #, fuzzy, no-wrap
  40015. msgid "opensmtpd-service-type"
  40016. msgstr "邮件服务"
  40017. #. type: defvar
  40018. #: guix-git/doc/guix.texi:26406
  40019. 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:"
  40020. msgstr ""
  40021. #. type: lisp
  40022. #: guix-git/doc/guix.texi:26411
  40023. #, no-wrap
  40024. msgid ""
  40025. "(service opensmtpd-service-type\n"
  40026. " (opensmtpd-configuration\n"
  40027. " (config-file (local-file \"./my-smtpd.conf\"))))\n"
  40028. msgstr ""
  40029. #. type: deftp
  40030. #: guix-git/doc/guix.texi:26414
  40031. #, no-wrap
  40032. msgid "{Data Type} opensmtpd-configuration"
  40033. msgstr ""
  40034. #. type: deftp
  40035. #: guix-git/doc/guix.texi:26416
  40036. msgid "Data type representing the configuration of opensmtpd."
  40037. msgstr ""
  40038. #. type: item
  40039. #: guix-git/doc/guix.texi:26418
  40040. #, no-wrap
  40041. msgid "@code{package} (default: @var{opensmtpd})"
  40042. msgstr ""
  40043. #. type: table
  40044. #: guix-git/doc/guix.texi:26420
  40045. msgid "Package object of the OpenSMTPD SMTP server."
  40046. msgstr ""
  40047. #. type: table
  40048. #: guix-git/doc/guix.texi:26425
  40049. msgid "This option can be used to provide a list of symbols naming Shepherd services that this service will depend on, such as @code{'networking} if you want to configure OpenSMTPD to listen on non-loopback interfaces."
  40050. msgstr ""
  40051. #. type: item
  40052. #: guix-git/doc/guix.texi:26426
  40053. #, fuzzy, no-wrap
  40054. msgid "@code{config-file} (default: @code{%default-opensmtpd-config-file})"
  40055. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  40056. #. type: table
  40057. #: guix-git/doc/guix.texi:26431
  40058. 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."
  40059. msgstr ""
  40060. #. type: item
  40061. #: guix-git/doc/guix.texi:26432
  40062. #, fuzzy, no-wrap
  40063. msgid "@code{setgid-commands?} (default: @code{#t})"
  40064. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  40065. #. type: table
  40066. #: guix-git/doc/guix.texi:26437
  40067. msgid "Make the following commands setgid to @code{smtpq} so they can be executed: @command{smtpctl}, @command{sendmail}, @command{send-mail}, @command{makemap}, @command{mailq}, and @command{newaliases}. @xref{Setuid Programs}, for more information on setgid programs."
  40068. msgstr ""
  40069. #. type: subsubheading
  40070. #: guix-git/doc/guix.texi:26440
  40071. #, no-wrap
  40072. msgid "Exim Service"
  40073. msgstr ""
  40074. #. type: cindex
  40075. #: guix-git/doc/guix.texi:26442
  40076. #, no-wrap
  40077. msgid "mail transfer agent (MTA)"
  40078. msgstr ""
  40079. #. type: cindex
  40080. #: guix-git/doc/guix.texi:26443
  40081. #, no-wrap
  40082. msgid "MTA (mail transfer agent)"
  40083. msgstr ""
  40084. #. type: cindex
  40085. #: guix-git/doc/guix.texi:26444
  40086. #, no-wrap
  40087. msgid "SMTP"
  40088. msgstr ""
  40089. #. type: defvar
  40090. #: guix-git/doc/guix.texi:26446
  40091. #, fuzzy, no-wrap
  40092. msgid "exim-service-type"
  40093. msgstr "邮件服务"
  40094. #. type: defvar
  40095. #: guix-git/doc/guix.texi:26450
  40096. 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:"
  40097. msgstr ""
  40098. #. type: lisp
  40099. #: guix-git/doc/guix.texi:26455
  40100. #, no-wrap
  40101. msgid ""
  40102. "(service exim-service-type\n"
  40103. " (exim-configuration\n"
  40104. " (config-file (local-file \"./my-exim.conf\"))))\n"
  40105. msgstr ""
  40106. #. type: Plain text
  40107. #: guix-git/doc/guix.texi:26461
  40108. 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)."
  40109. msgstr ""
  40110. #. type: deftp
  40111. #: guix-git/doc/guix.texi:26462
  40112. #, no-wrap
  40113. msgid "{Data Type} exim-configuration"
  40114. msgstr ""
  40115. #. type: deftp
  40116. #: guix-git/doc/guix.texi:26464
  40117. msgid "Data type representing the configuration of exim."
  40118. msgstr ""
  40119. #. type: item
  40120. #: guix-git/doc/guix.texi:26466
  40121. #, no-wrap
  40122. msgid "@code{package} (default: @var{exim})"
  40123. msgstr ""
  40124. #. type: table
  40125. #: guix-git/doc/guix.texi:26468
  40126. msgid "Package object of the Exim server."
  40127. msgstr ""
  40128. #. type: table
  40129. #: guix-git/doc/guix.texi:26475
  40130. 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."
  40131. msgstr ""
  40132. #. type: subsubheading
  40133. #: guix-git/doc/guix.texi:26479
  40134. #, fuzzy, no-wrap
  40135. msgid "Getmail service"
  40136. msgstr "邮件服务"
  40137. #. type: cindex
  40138. #: guix-git/doc/guix.texi:26481
  40139. #, no-wrap
  40140. msgid "IMAP"
  40141. msgstr ""
  40142. #. type: cindex
  40143. #: guix-git/doc/guix.texi:26482
  40144. #, no-wrap
  40145. msgid "POP"
  40146. msgstr ""
  40147. #. type: defvar
  40148. #: guix-git/doc/guix.texi:26484
  40149. #, fuzzy, no-wrap
  40150. msgid "getmail-service-type"
  40151. msgstr "邮件服务"
  40152. #. type: defvar
  40153. #: guix-git/doc/guix.texi:26487
  40154. msgid "This is the type of the @uref{http://pyropus.ca/software/getmail/, Getmail} mail retriever, whose value should be a @code{getmail-configuration}."
  40155. msgstr ""
  40156. #. type: Plain text
  40157. #: guix-git/doc/guix.texi:26490
  40158. msgid "Available @code{getmail-configuration} fields are:"
  40159. msgstr ""
  40160. #. type: deftypevr
  40161. #: guix-git/doc/guix.texi:26491
  40162. #, no-wrap
  40163. msgid "{@code{getmail-configuration} parameter} symbol name"
  40164. msgstr ""
  40165. #. type: deftypevr
  40166. #: guix-git/doc/guix.texi:26493
  40167. msgid "A symbol to identify the getmail service."
  40168. msgstr ""
  40169. #. type: deftypevr
  40170. #: guix-git/doc/guix.texi:26495
  40171. msgid "Defaults to @samp{\"unset\"}."
  40172. msgstr ""
  40173. #. type: deftypevr
  40174. #: guix-git/doc/guix.texi:26498
  40175. #, no-wrap
  40176. msgid "{@code{getmail-configuration} parameter} package package"
  40177. msgstr ""
  40178. #. type: deftypevr
  40179. #: guix-git/doc/guix.texi:26500
  40180. #, fuzzy
  40181. msgid "The getmail package to use."
  40182. msgstr "软件包数据类型。"
  40183. #. type: deftypevr
  40184. #: guix-git/doc/guix.texi:26503
  40185. #, no-wrap
  40186. msgid "{@code{getmail-configuration} parameter} string user"
  40187. msgstr ""
  40188. #. type: deftypevr
  40189. #: guix-git/doc/guix.texi:26505
  40190. msgid "The user to run getmail as."
  40191. msgstr ""
  40192. #. type: deftypevr
  40193. #: guix-git/doc/guix.texi:26507 guix-git/doc/guix.texi:26514
  40194. msgid "Defaults to @samp{\"getmail\"}."
  40195. msgstr ""
  40196. #. type: deftypevr
  40197. #: guix-git/doc/guix.texi:26510
  40198. #, no-wrap
  40199. msgid "{@code{getmail-configuration} parameter} string group"
  40200. msgstr ""
  40201. #. type: deftypevr
  40202. #: guix-git/doc/guix.texi:26512
  40203. msgid "The group to run getmail as."
  40204. msgstr ""
  40205. #. type: deftypevr
  40206. #: guix-git/doc/guix.texi:26517
  40207. #, no-wrap
  40208. msgid "{@code{getmail-configuration} parameter} string directory"
  40209. msgstr ""
  40210. #. type: deftypevr
  40211. #: guix-git/doc/guix.texi:26519
  40212. msgid "The getmail directory to use."
  40213. msgstr ""
  40214. #. type: deftypevr
  40215. #: guix-git/doc/guix.texi:26521
  40216. msgid "Defaults to @samp{\"/var/lib/getmail/default\"}."
  40217. msgstr ""
  40218. #. type: deftypevr
  40219. #: guix-git/doc/guix.texi:26524
  40220. #, no-wrap
  40221. msgid "{@code{getmail-configuration} parameter} getmail-configuration-file rcfile"
  40222. msgstr ""
  40223. #. type: deftypevr
  40224. #: guix-git/doc/guix.texi:26526
  40225. msgid "The getmail configuration file to use."
  40226. msgstr ""
  40227. #. type: deftypevr
  40228. #: guix-git/doc/guix.texi:26528
  40229. msgid "Available @code{getmail-configuration-file} fields are:"
  40230. msgstr ""
  40231. #. type: deftypevr
  40232. #: guix-git/doc/guix.texi:26529
  40233. #, no-wrap
  40234. msgid "{@code{getmail-configuration-file} parameter} getmail-retriever-configuration retriever"
  40235. msgstr ""
  40236. #. type: deftypevr
  40237. #: guix-git/doc/guix.texi:26531
  40238. msgid "What mail account to retrieve mail from, and how to access that account."
  40239. msgstr ""
  40240. #. type: deftypevr
  40241. #: guix-git/doc/guix.texi:26533
  40242. msgid "Available @code{getmail-retriever-configuration} fields are:"
  40243. msgstr ""
  40244. #. type: deftypevr
  40245. #: guix-git/doc/guix.texi:26534
  40246. #, no-wrap
  40247. msgid "{@code{getmail-retriever-configuration} parameter} string type"
  40248. msgstr ""
  40249. #. type: deftypevr
  40250. #: guix-git/doc/guix.texi:26537
  40251. msgid "The type of mail retriever to use. Valid values include @samp{passwd} and @samp{static}."
  40252. msgstr ""
  40253. #. type: deftypevr
  40254. #: guix-git/doc/guix.texi:26539
  40255. msgid "Defaults to @samp{\"SimpleIMAPSSLRetriever\"}."
  40256. msgstr ""
  40257. #. type: deftypevr
  40258. #: guix-git/doc/guix.texi:26542
  40259. #, no-wrap
  40260. msgid "{@code{getmail-retriever-configuration} parameter} string server"
  40261. msgstr ""
  40262. #. type: deftypevr
  40263. #: guix-git/doc/guix.texi:26544 guix-git/doc/guix.texi:26551
  40264. msgid "Username to login to the mail server with."
  40265. msgstr ""
  40266. #. type: deftypevr
  40267. #: guix-git/doc/guix.texi:26546 guix-git/doc/guix.texi:26553
  40268. #: guix-git/doc/guix.texi:26617
  40269. msgid "Defaults to @samp{unset}."
  40270. msgstr ""
  40271. #. type: deftypevr
  40272. #: guix-git/doc/guix.texi:26549
  40273. #, no-wrap
  40274. msgid "{@code{getmail-retriever-configuration} parameter} string username"
  40275. msgstr ""
  40276. #. type: deftypevr
  40277. #: guix-git/doc/guix.texi:26556
  40278. #, no-wrap
  40279. msgid "{@code{getmail-retriever-configuration} parameter} non-negative-integer port"
  40280. msgstr ""
  40281. #. type: deftypevr
  40282. #: guix-git/doc/guix.texi:26558
  40283. msgid "Port number to connect to."
  40284. msgstr ""
  40285. #. type: deftypevr
  40286. #: guix-git/doc/guix.texi:26563
  40287. #, no-wrap
  40288. msgid "{@code{getmail-retriever-configuration} parameter} string password"
  40289. msgstr ""
  40290. #. type: deftypevr
  40291. #: guix-git/doc/guix.texi:26565 guix-git/doc/guix.texi:26572
  40292. msgid "Override fields from passwd."
  40293. msgstr ""
  40294. #. type: deftypevr
  40295. #: guix-git/doc/guix.texi:26570
  40296. #, no-wrap
  40297. msgid "{@code{getmail-retriever-configuration} parameter} list password-command"
  40298. msgstr ""
  40299. #. type: deftypevr
  40300. #: guix-git/doc/guix.texi:26577
  40301. #, no-wrap
  40302. msgid "{@code{getmail-retriever-configuration} parameter} string keyfile"
  40303. msgstr ""
  40304. #. type: deftypevr
  40305. #: guix-git/doc/guix.texi:26579
  40306. msgid "PEM-formatted key file to use for the TLS negotiation."
  40307. msgstr ""
  40308. #. type: deftypevr
  40309. #: guix-git/doc/guix.texi:26584
  40310. #, no-wrap
  40311. msgid "{@code{getmail-retriever-configuration} parameter} string certfile"
  40312. msgstr ""
  40313. #. type: deftypevr
  40314. #: guix-git/doc/guix.texi:26586
  40315. msgid "PEM-formatted certificate file to use for the TLS negotiation."
  40316. msgstr ""
  40317. #. type: deftypevr
  40318. #: guix-git/doc/guix.texi:26591
  40319. #, no-wrap
  40320. msgid "{@code{getmail-retriever-configuration} parameter} string ca-certs"
  40321. msgstr ""
  40322. #. type: deftypevr
  40323. #: guix-git/doc/guix.texi:26593
  40324. #, fuzzy
  40325. msgid "CA certificates to use."
  40326. msgstr "证书服务"
  40327. #. type: deftypevr
  40328. #: guix-git/doc/guix.texi:26598
  40329. #, no-wrap
  40330. msgid "{@code{getmail-retriever-configuration} parameter} parameter-alist extra-parameters"
  40331. msgstr ""
  40332. #. type: deftypevr
  40333. #: guix-git/doc/guix.texi:26600
  40334. msgid "Extra retriever parameters."
  40335. msgstr ""
  40336. #. type: deftypevr
  40337. #: guix-git/doc/guix.texi:26607
  40338. #, no-wrap
  40339. msgid "{@code{getmail-configuration-file} parameter} getmail-destination-configuration destination"
  40340. msgstr ""
  40341. #. type: deftypevr
  40342. #: guix-git/doc/guix.texi:26609
  40343. msgid "What to do with retrieved messages."
  40344. msgstr ""
  40345. #. type: deftypevr
  40346. #: guix-git/doc/guix.texi:26611
  40347. msgid "Available @code{getmail-destination-configuration} fields are:"
  40348. msgstr ""
  40349. #. type: deftypevr
  40350. #: guix-git/doc/guix.texi:26612
  40351. #, no-wrap
  40352. msgid "{@code{getmail-destination-configuration} parameter} string type"
  40353. msgstr ""
  40354. #. type: deftypevr
  40355. #: guix-git/doc/guix.texi:26615
  40356. msgid "The type of mail destination. Valid values include @samp{Maildir}, @samp{Mboxrd} and @samp{MDA_external}."
  40357. msgstr ""
  40358. #. type: deftypevr
  40359. #: guix-git/doc/guix.texi:26620
  40360. #, no-wrap
  40361. msgid "{@code{getmail-destination-configuration} parameter} string-or-filelike path"
  40362. msgstr ""
  40363. #. type: deftypevr
  40364. #: guix-git/doc/guix.texi:26623
  40365. msgid "The path option for the mail destination. The behaviour depends on the chosen type."
  40366. msgstr ""
  40367. #. type: deftypevr
  40368. #: guix-git/doc/guix.texi:26628
  40369. #, no-wrap
  40370. msgid "{@code{getmail-destination-configuration} parameter} parameter-alist extra-parameters"
  40371. msgstr ""
  40372. #. type: deftypevr
  40373. #: guix-git/doc/guix.texi:26630
  40374. msgid "Extra destination parameters"
  40375. msgstr ""
  40376. #. type: deftypevr
  40377. #: guix-git/doc/guix.texi:26637
  40378. #, no-wrap
  40379. msgid "{@code{getmail-configuration-file} parameter} getmail-options-configuration options"
  40380. msgstr ""
  40381. #. type: deftypevr
  40382. #: guix-git/doc/guix.texi:26639
  40383. msgid "Configure getmail."
  40384. msgstr ""
  40385. #. type: deftypevr
  40386. #: guix-git/doc/guix.texi:26641
  40387. msgid "Available @code{getmail-options-configuration} fields are:"
  40388. msgstr ""
  40389. #. type: deftypevr
  40390. #: guix-git/doc/guix.texi:26642
  40391. #, no-wrap
  40392. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer verbose"
  40393. msgstr ""
  40394. #. type: deftypevr
  40395. #: guix-git/doc/guix.texi:26647
  40396. 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."
  40397. msgstr ""
  40398. #. type: deftypevr
  40399. #: guix-git/doc/guix.texi:26649 guix-git/doc/guix.texi:33787
  40400. #: guix-git/doc/guix.texi:34627 guix-git/doc/guix.texi:34772
  40401. msgid "Defaults to @samp{1}."
  40402. msgstr ""
  40403. #. type: deftypevr
  40404. #: guix-git/doc/guix.texi:26652
  40405. #, no-wrap
  40406. msgid "{@code{getmail-options-configuration} parameter} boolean read-all"
  40407. msgstr ""
  40408. #. type: deftypevr
  40409. #: guix-git/doc/guix.texi:26655
  40410. msgid "If true, getmail will retrieve all available messages. Otherwise it will only retrieve messages it hasn't seen previously."
  40411. msgstr ""
  40412. #. type: deftypevr
  40413. #: guix-git/doc/guix.texi:26660
  40414. #, no-wrap
  40415. msgid "{@code{getmail-options-configuration} parameter} boolean delete"
  40416. msgstr ""
  40417. #. type: deftypevr
  40418. #: guix-git/doc/guix.texi:26664
  40419. 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."
  40420. msgstr ""
  40421. #. type: deftypevr
  40422. #: guix-git/doc/guix.texi:26669
  40423. #, no-wrap
  40424. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer delete-after"
  40425. msgstr ""
  40426. #. type: deftypevr
  40427. #: guix-git/doc/guix.texi:26674
  40428. 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."
  40429. msgstr ""
  40430. #. type: deftypevr
  40431. #: guix-git/doc/guix.texi:26679
  40432. #, no-wrap
  40433. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer delete-bigger-than"
  40434. msgstr ""
  40435. #. type: deftypevr
  40436. #: guix-git/doc/guix.texi:26683
  40437. 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."
  40438. msgstr ""
  40439. #. type: deftypevr
  40440. #: guix-git/doc/guix.texi:26688
  40441. #, no-wrap
  40442. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer max-bytes-per-session"
  40443. msgstr ""
  40444. #. type: deftypevr
  40445. #: guix-git/doc/guix.texi:26691
  40446. 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."
  40447. msgstr ""
  40448. #. type: deftypevr
  40449. #: guix-git/doc/guix.texi:26696
  40450. #, no-wrap
  40451. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer max-message-size"
  40452. msgstr ""
  40453. #. type: deftypevr
  40454. #: guix-git/doc/guix.texi:26699
  40455. msgid "Don't retrieve messages larger than this number of bytes. A value of @samp{0} disables this feature."
  40456. msgstr ""
  40457. #. type: deftypevr
  40458. #: guix-git/doc/guix.texi:26704
  40459. #, no-wrap
  40460. msgid "{@code{getmail-options-configuration} parameter} boolean delivered-to"
  40461. msgstr ""
  40462. #. type: deftypevr
  40463. #: guix-git/doc/guix.texi:26706
  40464. msgid "If true, getmail will add a Delivered-To header to messages."
  40465. msgstr ""
  40466. #. type: deftypevr
  40467. #: guix-git/doc/guix.texi:26711
  40468. #, no-wrap
  40469. msgid "{@code{getmail-options-configuration} parameter} boolean received"
  40470. msgstr ""
  40471. #. type: deftypevr
  40472. #: guix-git/doc/guix.texi:26713
  40473. msgid "If set, getmail adds a Received header to the messages."
  40474. msgstr ""
  40475. #. type: deftypevr
  40476. #: guix-git/doc/guix.texi:26718
  40477. #, no-wrap
  40478. msgid "{@code{getmail-options-configuration} parameter} string message-log"
  40479. msgstr ""
  40480. #. type: deftypevr
  40481. #: guix-git/doc/guix.texi:26721
  40482. msgid "Getmail will record a log of its actions to the named file. A value of @samp{\"\"} disables this feature."
  40483. msgstr ""
  40484. #. type: deftypevr
  40485. #: guix-git/doc/guix.texi:26726
  40486. #, no-wrap
  40487. msgid "{@code{getmail-options-configuration} parameter} boolean message-log-syslog"
  40488. msgstr ""
  40489. #. type: deftypevr
  40490. #: guix-git/doc/guix.texi:26729
  40491. msgid "If true, getmail will record a log of its actions using the system logger."
  40492. msgstr ""
  40493. #. type: deftypevr
  40494. #: guix-git/doc/guix.texi:26734
  40495. #, no-wrap
  40496. msgid "{@code{getmail-options-configuration} parameter} boolean message-log-verbose"
  40497. msgstr ""
  40498. #. type: deftypevr
  40499. #: guix-git/doc/guix.texi:26738
  40500. 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."
  40501. msgstr ""
  40502. #. type: deftypevr
  40503. #: guix-git/doc/guix.texi:26743
  40504. #, no-wrap
  40505. msgid "{@code{getmail-options-configuration} parameter} parameter-alist extra-parameters"
  40506. msgstr ""
  40507. #. type: deftypevr
  40508. #: guix-git/doc/guix.texi:26745
  40509. msgid "Extra options to include."
  40510. msgstr ""
  40511. #. type: deftypevr
  40512. #: guix-git/doc/guix.texi:26754
  40513. #, no-wrap
  40514. msgid "{@code{getmail-configuration} parameter} list idle"
  40515. msgstr ""
  40516. #. type: deftypevr
  40517. #: guix-git/doc/guix.texi:26758
  40518. 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."
  40519. msgstr ""
  40520. #. type: deftypevr
  40521. #: guix-git/doc/guix.texi:26763
  40522. #, no-wrap
  40523. msgid "{@code{getmail-configuration} parameter} list environment-variables"
  40524. msgstr ""
  40525. #. type: deftypevr
  40526. #: guix-git/doc/guix.texi:26765
  40527. msgid "Environment variables to set for getmail."
  40528. msgstr ""
  40529. #. type: subsubheading
  40530. #: guix-git/doc/guix.texi:26770
  40531. #, no-wrap
  40532. msgid "Mail Aliases Service"
  40533. msgstr ""
  40534. #. type: cindex
  40535. #: guix-git/doc/guix.texi:26772
  40536. #, no-wrap
  40537. msgid "email aliases"
  40538. msgstr ""
  40539. #. type: cindex
  40540. #: guix-git/doc/guix.texi:26773
  40541. #, no-wrap
  40542. msgid "aliases, for email addresses"
  40543. msgstr ""
  40544. #. type: defvar
  40545. #: guix-git/doc/guix.texi:26775
  40546. #, fuzzy, no-wrap
  40547. msgid "mail-aliases-service-type"
  40548. msgstr "邮件服务"
  40549. #. type: defvar
  40550. #: guix-git/doc/guix.texi:26778
  40551. msgid "This is the type of the service which provides @code{/etc/aliases}, specifying how to deliver mail to users on this system."
  40552. msgstr ""
  40553. #. type: lisp
  40554. #: guix-git/doc/guix.texi:26783
  40555. #, no-wrap
  40556. msgid ""
  40557. "(service mail-aliases-service-type\n"
  40558. " '((\"postmaster\" \"bob\")\n"
  40559. " (\"bob\" \"bob@@example.com\" \"bob@@example2.com\")))\n"
  40560. msgstr ""
  40561. #. type: Plain text
  40562. #: guix-git/doc/guix.texi:26791
  40563. 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."
  40564. msgstr ""
  40565. #. type: Plain text
  40566. #: guix-git/doc/guix.texi:26797
  40567. 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})."
  40568. msgstr ""
  40569. #. type: cindex
  40570. #: guix-git/doc/guix.texi:26798 guix-git/doc/guix.texi:26799
  40571. #, no-wrap
  40572. msgid "GNU Mailutils IMAP4 Daemon"
  40573. msgstr ""
  40574. #. type: defvar
  40575. #: guix-git/doc/guix.texi:26801
  40576. #, fuzzy, no-wrap
  40577. msgid "imap4d-service-type"
  40578. msgstr "邮件服务"
  40579. #. type: defvar
  40580. #: guix-git/doc/guix.texi:26805
  40581. 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:"
  40582. msgstr ""
  40583. #. type: lisp
  40584. #: guix-git/doc/guix.texi:26810
  40585. #, no-wrap
  40586. msgid ""
  40587. "(service imap4d-service-type\n"
  40588. " (imap4d-configuration\n"
  40589. " (config-file (local-file \"imap4d.conf\"))))\n"
  40590. msgstr ""
  40591. #. type: deftp
  40592. #: guix-git/doc/guix.texi:26813
  40593. #, no-wrap
  40594. msgid "{Data Type} imap4d-configuration"
  40595. msgstr ""
  40596. #. type: deftp
  40597. #: guix-git/doc/guix.texi:26815
  40598. msgid "Data type representing the configuration of @command{imap4d}."
  40599. msgstr ""
  40600. #. type: item
  40601. #: guix-git/doc/guix.texi:26817
  40602. #, no-wrap
  40603. msgid "@code{package} (default: @code{mailutils})"
  40604. msgstr ""
  40605. #. type: table
  40606. #: guix-git/doc/guix.texi:26819
  40607. msgid "The package that provides @command{imap4d}."
  40608. msgstr ""
  40609. #. type: item
  40610. #: guix-git/doc/guix.texi:26820
  40611. #, no-wrap
  40612. msgid "@code{config-file} (default: @code{%default-imap4d-config-file})"
  40613. msgstr ""
  40614. #. type: table
  40615. #: guix-git/doc/guix.texi:26824
  40616. 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."
  40617. msgstr ""
  40618. #. type: subsubheading
  40619. #: guix-git/doc/guix.texi:26828
  40620. #, fuzzy, no-wrap
  40621. msgid "Radicale Service"
  40622. msgstr "邮件服务"
  40623. #. type: cindex
  40624. #: guix-git/doc/guix.texi:26829
  40625. #, no-wrap
  40626. msgid "CalDAV"
  40627. msgstr ""
  40628. #. type: cindex
  40629. #: guix-git/doc/guix.texi:26830
  40630. #, no-wrap
  40631. msgid "CardDAV"
  40632. msgstr ""
  40633. #. type: defvar
  40634. #: guix-git/doc/guix.texi:26832
  40635. #, fuzzy, no-wrap
  40636. msgid "radicale-service-type"
  40637. msgstr "邮件服务"
  40638. #. type: defvar
  40639. #: guix-git/doc/guix.texi:26835
  40640. msgid "This is the type of the @uref{https://radicale.org, Radicale} CalDAV/CardDAV server whose value should be a @code{radicale-configuration}."
  40641. msgstr ""
  40642. #. type: deftp
  40643. #: guix-git/doc/guix.texi:26837
  40644. #, fuzzy, no-wrap
  40645. msgid "{Data Type} radicale-configuration"
  40646. msgstr "{数据类型} build-machine"
  40647. #. type: deftp
  40648. #: guix-git/doc/guix.texi:26839
  40649. #, fuzzy
  40650. msgid "Data type representing the configuration of @command{radicale}."
  40651. msgstr "管理操作系统配置。"
  40652. #. type: item
  40653. #: guix-git/doc/guix.texi:26841
  40654. #, fuzzy, no-wrap
  40655. msgid "@code{package} (default: @code{radicale})"
  40656. msgstr "@code{mate}(默认值:@code{mate})"
  40657. #. type: table
  40658. #: guix-git/doc/guix.texi:26843
  40659. msgid "The package that provides @command{radicale}."
  40660. msgstr ""
  40661. #. type: item
  40662. #: guix-git/doc/guix.texi:26844
  40663. #, fuzzy, no-wrap
  40664. msgid "@code{config-file} (default: @code{%default-radicale-config-file})"
  40665. msgstr "@code{gnome}(默认值:@code{gnome})"
  40666. #. type: table
  40667. #: guix-git/doc/guix.texi:26848
  40668. 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."
  40669. msgstr ""
  40670. #. type: cindex
  40671. #: guix-git/doc/guix.texi:26855
  40672. #, no-wrap
  40673. msgid "messaging"
  40674. msgstr ""
  40675. #. type: cindex
  40676. #: guix-git/doc/guix.texi:26856
  40677. #, no-wrap
  40678. msgid "jabber"
  40679. msgstr ""
  40680. #. type: cindex
  40681. #: guix-git/doc/guix.texi:26857
  40682. #, no-wrap
  40683. msgid "XMPP"
  40684. msgstr ""
  40685. #. type: Plain text
  40686. #: guix-git/doc/guix.texi:26861
  40687. msgid "The @code{(gnu services messaging)} module provides Guix service definitions for messaging services. Currently it provides the following services:"
  40688. msgstr ""
  40689. #. type: subsubheading
  40690. #: guix-git/doc/guix.texi:26862
  40691. #, no-wrap
  40692. msgid "Prosody Service"
  40693. msgstr ""
  40694. #. type: defvar
  40695. #: guix-git/doc/guix.texi:26864
  40696. #, fuzzy, no-wrap
  40697. msgid "prosody-service-type"
  40698. msgstr "邮件服务"
  40699. #. type: defvar
  40700. #: guix-git/doc/guix.texi:26868
  40701. 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:"
  40702. msgstr ""
  40703. #. type: lisp
  40704. #: guix-git/doc/guix.texi:26883
  40705. #, no-wrap
  40706. msgid ""
  40707. "(service prosody-service-type\n"
  40708. " (prosody-configuration\n"
  40709. " (modules-enabled (cons* \"groups\" \"mam\" %default-modules-enabled))\n"
  40710. " (int-components\n"
  40711. " (list\n"
  40712. " (int-component-configuration\n"
  40713. " (hostname \"conference.example.net\")\n"
  40714. " (plugin \"muc\")\n"
  40715. " (mod-muc (mod-muc-configuration)))))\n"
  40716. " (virtualhosts\n"
  40717. " (list\n"
  40718. " (virtualhost-configuration\n"
  40719. " (domain \"example.net\"))))))\n"
  40720. msgstr ""
  40721. #. type: defvar
  40722. #: guix-git/doc/guix.texi:26886
  40723. msgid "See below for details about @code{prosody-configuration}."
  40724. msgstr ""
  40725. #. type: Plain text
  40726. #: guix-git/doc/guix.texi:26892
  40727. 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."
  40728. msgstr ""
  40729. #. type: Plain text
  40730. #: guix-git/doc/guix.texi:26895
  40731. msgid "You can perform various sanity checks on the generated configuration with the @code{prosodyctl check} command."
  40732. msgstr ""
  40733. #. type: Plain text
  40734. #: guix-git/doc/guix.texi:26899
  40735. 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}."
  40736. msgstr ""
  40737. #. type: example
  40738. #: guix-git/doc/guix.texi:26902
  40739. #, no-wrap
  40740. msgid "prosodyctl --root cert import /etc/letsencrypt/live\n"
  40741. msgstr ""
  40742. #. type: Plain text
  40743. #: guix-git/doc/guix.texi:26909
  40744. 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 left unspecified."
  40745. msgstr ""
  40746. #. type: Plain text
  40747. #: guix-git/doc/guix.texi:26913
  40748. 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."
  40749. msgstr ""
  40750. #. type: Plain text
  40751. #: guix-git/doc/guix.texi:26916
  40752. msgid "The @code{file-object} type designates either a file-like object (@pxref{G-Expressions, file-like objects}) or a file name."
  40753. msgstr ""
  40754. #. type: Plain text
  40755. #: guix-git/doc/guix.texi:26926
  40756. msgid "Available @code{prosody-configuration} fields are:"
  40757. msgstr ""
  40758. #. type: deftypevr
  40759. #: guix-git/doc/guix.texi:26927
  40760. #, no-wrap
  40761. msgid "{@code{prosody-configuration} parameter} package prosody"
  40762. msgstr ""
  40763. #. type: deftypevr
  40764. #: guix-git/doc/guix.texi:26929
  40765. msgid "The Prosody package."
  40766. msgstr ""
  40767. #. type: deftypevr
  40768. #: guix-git/doc/guix.texi:26931
  40769. #, no-wrap
  40770. msgid "{@code{prosody-configuration} parameter} file-name data-path"
  40771. msgstr ""
  40772. #. type: deftypevr
  40773. #: guix-git/doc/guix.texi:26935
  40774. msgid "Location of the Prosody data storage directory. See @url{https://prosody.im/doc/configure}. Defaults to @samp{\"/var/lib/prosody\"}."
  40775. msgstr ""
  40776. #. type: deftypevr
  40777. #: guix-git/doc/guix.texi:26937
  40778. #, no-wrap
  40779. msgid "{@code{prosody-configuration} parameter} file-object-list plugin-paths"
  40780. msgstr ""
  40781. #. type: deftypevr
  40782. #: guix-git/doc/guix.texi:26941
  40783. 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{'()}."
  40784. msgstr ""
  40785. #. type: deftypevr
  40786. #: guix-git/doc/guix.texi:26943
  40787. #, no-wrap
  40788. msgid "{@code{prosody-configuration} parameter} file-name certificates"
  40789. msgstr ""
  40790. #. type: deftypevr
  40791. #: guix-git/doc/guix.texi:26948
  40792. 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\"}."
  40793. msgstr ""
  40794. #. type: deftypevr
  40795. #: guix-git/doc/guix.texi:26950
  40796. #, no-wrap
  40797. msgid "{@code{prosody-configuration} parameter} string-list admins"
  40798. msgstr ""
  40799. #. type: deftypevr
  40800. #: guix-git/doc/guix.texi:26956
  40801. 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{'()}."
  40802. msgstr ""
  40803. #. type: deftypevr
  40804. #: guix-git/doc/guix.texi:26958
  40805. #, no-wrap
  40806. msgid "{@code{prosody-configuration} parameter} boolean use-libevent?"
  40807. msgstr ""
  40808. #. type: deftypevr
  40809. #: guix-git/doc/guix.texi:26962
  40810. msgid "Enable use of libevent for better performance under high load. See @url{https://prosody.im/doc/libevent}. Defaults to @samp{#f}."
  40811. msgstr ""
  40812. #. type: deftypevr
  40813. #: guix-git/doc/guix.texi:26964
  40814. #, no-wrap
  40815. msgid "{@code{prosody-configuration} parameter} module-list modules-enabled"
  40816. msgstr ""
  40817. #. type: deftypevr
  40818. #: guix-git/doc/guix.texi:26970
  40819. 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\")}."
  40820. msgstr ""
  40821. #. type: deftypevr
  40822. #: guix-git/doc/guix.texi:26972
  40823. #, no-wrap
  40824. msgid "{@code{prosody-configuration} parameter} string-list modules-disabled"
  40825. msgstr ""
  40826. #. type: deftypevr
  40827. #: guix-git/doc/guix.texi:26976
  40828. 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{'()}."
  40829. msgstr ""
  40830. #. type: deftypevr
  40831. #: guix-git/doc/guix.texi:26978
  40832. #, no-wrap
  40833. msgid "{@code{prosody-configuration} parameter} file-object groups-file"
  40834. msgstr ""
  40835. #. type: deftypevr
  40836. #: guix-git/doc/guix.texi:26983
  40837. 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\"}."
  40838. msgstr ""
  40839. #. type: deftypevr
  40840. #: guix-git/doc/guix.texi:26985
  40841. #, no-wrap
  40842. msgid "{@code{prosody-configuration} parameter} boolean allow-registration?"
  40843. msgstr ""
  40844. #. type: deftypevr
  40845. #: guix-git/doc/guix.texi:26989
  40846. msgid "Disable account creation by default, for security. See @url{https://prosody.im/doc/creating_accounts}. Defaults to @samp{#f}."
  40847. msgstr ""
  40848. #. type: deftypevr
  40849. #: guix-git/doc/guix.texi:26991
  40850. #, no-wrap
  40851. msgid "{@code{prosody-configuration} parameter} maybe-ssl-configuration ssl"
  40852. msgstr ""
  40853. #. type: deftypevr
  40854. #: guix-git/doc/guix.texi:26996
  40855. 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}."
  40856. msgstr ""
  40857. #. type: deftypevr
  40858. #: guix-git/doc/guix.texi:26998
  40859. msgid "Available @code{ssl-configuration} fields are:"
  40860. msgstr ""
  40861. #. type: deftypevr
  40862. #: guix-git/doc/guix.texi:26999
  40863. #, no-wrap
  40864. msgid "{@code{ssl-configuration} parameter} maybe-string protocol"
  40865. msgstr ""
  40866. #. type: deftypevr
  40867. #: guix-git/doc/guix.texi:27001
  40868. msgid "This determines what handshake to use."
  40869. msgstr ""
  40870. #. type: deftypevr
  40871. #: guix-git/doc/guix.texi:27003
  40872. #, no-wrap
  40873. msgid "{@code{ssl-configuration} parameter} maybe-file-name key"
  40874. msgstr ""
  40875. #. type: deftypevr
  40876. #: guix-git/doc/guix.texi:27005
  40877. msgid "Path to your private key file."
  40878. msgstr ""
  40879. #. type: deftypevr
  40880. #: guix-git/doc/guix.texi:27007
  40881. #, no-wrap
  40882. msgid "{@code{ssl-configuration} parameter} maybe-file-name certificate"
  40883. msgstr ""
  40884. #. type: deftypevr
  40885. #: guix-git/doc/guix.texi:27009
  40886. msgid "Path to your certificate file."
  40887. msgstr ""
  40888. #. type: deftypevr
  40889. #: guix-git/doc/guix.texi:27011
  40890. #, no-wrap
  40891. msgid "{@code{ssl-configuration} parameter} file-object capath"
  40892. msgstr ""
  40893. #. type: deftypevr
  40894. #: guix-git/doc/guix.texi:27015
  40895. 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\"}."
  40896. msgstr ""
  40897. #. type: deftypevr
  40898. #: guix-git/doc/guix.texi:27017
  40899. #, no-wrap
  40900. msgid "{@code{ssl-configuration} parameter} maybe-file-object cafile"
  40901. msgstr ""
  40902. #. type: deftypevr
  40903. #: guix-git/doc/guix.texi:27020
  40904. msgid "Path to a file containing root certificates that you wish Prosody to trust. Similar to @code{capath} but with all certificates concatenated together."
  40905. msgstr ""
  40906. #. type: deftypevr
  40907. #: guix-git/doc/guix.texi:27022
  40908. #, no-wrap
  40909. msgid "{@code{ssl-configuration} parameter} maybe-string-list verify"
  40910. msgstr ""
  40911. #. type: deftypevr
  40912. #: guix-git/doc/guix.texi:27025
  40913. msgid "A list of verification options (these mostly map to OpenSSL's @code{set_verify()} flags)."
  40914. msgstr ""
  40915. #. type: deftypevr
  40916. #: guix-git/doc/guix.texi:27027
  40917. #, no-wrap
  40918. msgid "{@code{ssl-configuration} parameter} maybe-string-list options"
  40919. msgstr ""
  40920. #. type: deftypevr
  40921. #: guix-git/doc/guix.texi:27031
  40922. 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."
  40923. msgstr ""
  40924. #. type: deftypevr
  40925. #: guix-git/doc/guix.texi:27033
  40926. #, no-wrap
  40927. msgid "{@code{ssl-configuration} parameter} maybe-non-negative-integer depth"
  40928. msgstr ""
  40929. #. type: deftypevr
  40930. #: guix-git/doc/guix.texi:27036
  40931. msgid "How long a chain of certificate authorities to check when looking for a trusted root certificate."
  40932. msgstr ""
  40933. #. type: deftypevr
  40934. #: guix-git/doc/guix.texi:27038
  40935. #, no-wrap
  40936. msgid "{@code{ssl-configuration} parameter} maybe-string ciphers"
  40937. msgstr ""
  40938. #. type: deftypevr
  40939. #: guix-git/doc/guix.texi:27041
  40940. msgid "An OpenSSL cipher string. This selects what ciphers Prosody will offer to clients, and in what order."
  40941. msgstr ""
  40942. #. type: deftypevr
  40943. #: guix-git/doc/guix.texi:27043
  40944. #, no-wrap
  40945. msgid "{@code{ssl-configuration} parameter} maybe-file-name dhparam"
  40946. msgstr ""
  40947. #. type: deftypevr
  40948. #: guix-git/doc/guix.texi:27047
  40949. 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}"
  40950. msgstr ""
  40951. #. type: deftypevr
  40952. #: guix-git/doc/guix.texi:27049
  40953. #, no-wrap
  40954. msgid "{@code{ssl-configuration} parameter} maybe-string curve"
  40955. msgstr ""
  40956. #. type: deftypevr
  40957. #: guix-git/doc/guix.texi:27052
  40958. msgid "Curve for Elliptic curve Diffie-Hellman. Prosody's default is @samp{\"secp384r1\"}."
  40959. msgstr ""
  40960. #. type: deftypevr
  40961. #: guix-git/doc/guix.texi:27054
  40962. #, no-wrap
  40963. msgid "{@code{ssl-configuration} parameter} maybe-string-list verifyext"
  40964. msgstr ""
  40965. #. type: deftypevr
  40966. #: guix-git/doc/guix.texi:27056
  40967. msgid "A list of ``extra'' verification options."
  40968. msgstr ""
  40969. #. type: deftypevr
  40970. #: guix-git/doc/guix.texi:27058
  40971. #, no-wrap
  40972. msgid "{@code{ssl-configuration} parameter} maybe-string password"
  40973. msgstr ""
  40974. #. type: deftypevr
  40975. #: guix-git/doc/guix.texi:27060
  40976. msgid "Password for encrypted private keys."
  40977. msgstr ""
  40978. #. type: deftypevr
  40979. #: guix-git/doc/guix.texi:27064
  40980. #, no-wrap
  40981. msgid "{@code{prosody-configuration} parameter} boolean c2s-require-encryption?"
  40982. msgstr ""
  40983. #. type: deftypevr
  40984. #: guix-git/doc/guix.texi:27068
  40985. 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}."
  40986. msgstr ""
  40987. #. type: deftypevr
  40988. #: guix-git/doc/guix.texi:27070
  40989. #, no-wrap
  40990. msgid "{@code{prosody-configuration} parameter} string-list disable-sasl-mechanisms"
  40991. msgstr ""
  40992. #. type: deftypevr
  40993. #: guix-git/doc/guix.texi:27074
  40994. msgid "Set of mechanisms that will never be offered. See @url{https://prosody.im/doc/modules/mod_saslauth}. Defaults to @samp{'(\"DIGEST-MD5\")}."
  40995. msgstr ""
  40996. #. type: deftypevr
  40997. #: guix-git/doc/guix.texi:27076
  40998. #, no-wrap
  40999. msgid "{@code{prosody-configuration} parameter} boolean s2s-require-encryption?"
  41000. msgstr ""
  41001. #. type: deftypevr
  41002. #: guix-git/doc/guix.texi:27080
  41003. 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}."
  41004. msgstr ""
  41005. #. type: deftypevr
  41006. #: guix-git/doc/guix.texi:27082
  41007. #, no-wrap
  41008. msgid "{@code{prosody-configuration} parameter} boolean s2s-secure-auth?"
  41009. msgstr ""
  41010. #. type: deftypevr
  41011. #: guix-git/doc/guix.texi:27088
  41012. 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}."
  41013. msgstr ""
  41014. #. type: deftypevr
  41015. #: guix-git/doc/guix.texi:27090
  41016. #, no-wrap
  41017. msgid "{@code{prosody-configuration} parameter} string-list s2s-insecure-domains"
  41018. msgstr ""
  41019. #. type: deftypevr
  41020. #: guix-git/doc/guix.texi:27096
  41021. 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{'()}."
  41022. msgstr ""
  41023. #. type: deftypevr
  41024. #: guix-git/doc/guix.texi:27098
  41025. #, no-wrap
  41026. msgid "{@code{prosody-configuration} parameter} string-list s2s-secure-domains"
  41027. msgstr ""
  41028. #. type: deftypevr
  41029. #: guix-git/doc/guix.texi:27103
  41030. 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{'()}."
  41031. msgstr ""
  41032. #. type: deftypevr
  41033. #: guix-git/doc/guix.texi:27105
  41034. #, no-wrap
  41035. msgid "{@code{prosody-configuration} parameter} string authentication"
  41036. msgstr ""
  41037. #. type: deftypevr
  41038. #: guix-git/doc/guix.texi:27113
  41039. 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\"}."
  41040. msgstr ""
  41041. #. type: deftypevr
  41042. #: guix-git/doc/guix.texi:27115
  41043. #, no-wrap
  41044. msgid "{@code{prosody-configuration} parameter} maybe-string log"
  41045. msgstr ""
  41046. #. type: deftypevr
  41047. #: guix-git/doc/guix.texi:27119
  41048. 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\"}."
  41049. msgstr ""
  41050. #. type: deftypevr
  41051. #: guix-git/doc/guix.texi:27121
  41052. #, no-wrap
  41053. msgid "{@code{prosody-configuration} parameter} file-name pidfile"
  41054. msgstr ""
  41055. #. type: deftypevr
  41056. #: guix-git/doc/guix.texi:27124
  41057. msgid "File to write pid in. See @url{https://prosody.im/doc/modules/mod_posix}. Defaults to @samp{\"/var/run/prosody/prosody.pid\"}."
  41058. msgstr ""
  41059. #. type: deftypevr
  41060. #: guix-git/doc/guix.texi:27126
  41061. #, no-wrap
  41062. msgid "{@code{prosody-configuration} parameter} maybe-non-negative-integer http-max-content-size"
  41063. msgstr ""
  41064. #. type: deftypevr
  41065. #: guix-git/doc/guix.texi:27128
  41066. msgid "Maximum allowed size of the HTTP body (in bytes)."
  41067. msgstr ""
  41068. #. type: deftypevr
  41069. #: guix-git/doc/guix.texi:27130
  41070. #, no-wrap
  41071. msgid "{@code{prosody-configuration} parameter} maybe-string http-external-url"
  41072. msgstr ""
  41073. #. type: deftypevr
  41074. #: guix-git/doc/guix.texi:27135
  41075. 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}."
  41076. msgstr ""
  41077. #. type: deftypevr
  41078. #: guix-git/doc/guix.texi:27137
  41079. #, no-wrap
  41080. msgid "{@code{prosody-configuration} parameter} virtualhost-configuration-list virtualhosts"
  41081. msgstr ""
  41082. #. type: deftypevr
  41083. #: guix-git/doc/guix.texi:27142
  41084. 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."
  41085. msgstr ""
  41086. #. type: quotation
  41087. #: guix-git/doc/guix.texi:27149
  41088. msgid "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."
  41089. msgstr ""
  41090. #. type: quotation
  41091. #: guix-git/doc/guix.texi:27151
  41092. msgid "See @url{https://prosody.im/doc/configure#virtual_host_settings}."
  41093. msgstr ""
  41094. #. type: deftypevr
  41095. #: guix-git/doc/guix.texi:27154
  41096. msgid "Available @code{virtualhost-configuration} fields are:"
  41097. msgstr ""
  41098. #. type: deftypevr
  41099. #: guix-git/doc/guix.texi:27156 guix-git/doc/guix.texi:27178
  41100. #: guix-git/doc/guix.texi:27231
  41101. 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:"
  41102. msgstr ""
  41103. #. type: deftypevr
  41104. #: guix-git/doc/guix.texi:27156
  41105. #, no-wrap
  41106. msgid "{@code{virtualhost-configuration} parameter} string domain"
  41107. msgstr ""
  41108. #. type: deftypevr
  41109. #: guix-git/doc/guix.texi:27158
  41110. msgid "Domain you wish Prosody to serve."
  41111. msgstr ""
  41112. #. type: deftypevr
  41113. #: guix-git/doc/guix.texi:27162
  41114. #, no-wrap
  41115. msgid "{@code{prosody-configuration} parameter} int-component-configuration-list int-components"
  41116. msgstr ""
  41117. #. type: deftypevr
  41118. #: guix-git/doc/guix.texi:27167
  41119. 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."
  41120. msgstr ""
  41121. #. type: deftypevr
  41122. #: guix-git/doc/guix.texi:27171
  41123. 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."
  41124. msgstr ""
  41125. #. type: deftypevr
  41126. #: guix-git/doc/guix.texi:27174
  41127. msgid "See @url{https://prosody.im/doc/components}. Defaults to @samp{'()}."
  41128. msgstr ""
  41129. #. type: deftypevr
  41130. #: guix-git/doc/guix.texi:27176
  41131. msgid "Available @code{int-component-configuration} fields are:"
  41132. msgstr ""
  41133. #. type: deftypevr
  41134. #: guix-git/doc/guix.texi:27178
  41135. #, no-wrap
  41136. msgid "{@code{int-component-configuration} parameter} string hostname"
  41137. msgstr ""
  41138. #. type: deftypevr
  41139. #: guix-git/doc/guix.texi:27180 guix-git/doc/guix.texi:27237
  41140. msgid "Hostname of the component."
  41141. msgstr ""
  41142. #. type: deftypevr
  41143. #: guix-git/doc/guix.texi:27182
  41144. #, no-wrap
  41145. msgid "{@code{int-component-configuration} parameter} string plugin"
  41146. msgstr ""
  41147. #. type: deftypevr
  41148. #: guix-git/doc/guix.texi:27184
  41149. msgid "Plugin you wish to use for the component."
  41150. msgstr ""
  41151. #. type: deftypevr
  41152. #: guix-git/doc/guix.texi:27186
  41153. #, no-wrap
  41154. msgid "{@code{int-component-configuration} parameter} maybe-mod-muc-configuration mod-muc"
  41155. msgstr ""
  41156. #. type: deftypevr
  41157. #: guix-git/doc/guix.texi:27189
  41158. msgid "Multi-user chat (MUC) is Prosody's module for allowing you to create hosted chatrooms/conferences for XMPP users."
  41159. msgstr ""
  41160. #. type: deftypevr
  41161. #: guix-git/doc/guix.texi:27193
  41162. 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."
  41163. msgstr ""
  41164. #. type: deftypevr
  41165. #: guix-git/doc/guix.texi:27195
  41166. msgid "See also @url{https://prosody.im/doc/modules/mod_muc}."
  41167. msgstr ""
  41168. #. type: deftypevr
  41169. #: guix-git/doc/guix.texi:27197
  41170. msgid "Available @code{mod-muc-configuration} fields are:"
  41171. msgstr ""
  41172. #. type: deftypevr
  41173. #: guix-git/doc/guix.texi:27198
  41174. #, no-wrap
  41175. msgid "{@code{mod-muc-configuration} parameter} string name"
  41176. msgstr ""
  41177. #. type: deftypevr
  41178. #: guix-git/doc/guix.texi:27201
  41179. msgid "The name to return in service discovery responses. Defaults to @samp{\"Prosody Chatrooms\"}."
  41180. msgstr ""
  41181. #. type: deftypevr
  41182. #: guix-git/doc/guix.texi:27203
  41183. #, no-wrap
  41184. msgid "{@code{mod-muc-configuration} parameter} string-or-boolean restrict-room-creation"
  41185. msgstr ""
  41186. #. type: deftypevr
  41187. #: guix-git/doc/guix.texi:27210
  41188. 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}."
  41189. msgstr ""
  41190. #. type: deftypevr
  41191. #: guix-git/doc/guix.texi:27212
  41192. #, no-wrap
  41193. msgid "{@code{mod-muc-configuration} parameter} non-negative-integer max-history-messages"
  41194. msgstr ""
  41195. #. type: deftypevr
  41196. #: guix-git/doc/guix.texi:27216
  41197. msgid "Maximum number of history messages that will be sent to the member that has just joined the room. Defaults to @samp{20}."
  41198. msgstr ""
  41199. #. type: deftypevr
  41200. #: guix-git/doc/guix.texi:27222
  41201. #, no-wrap
  41202. msgid "{@code{prosody-configuration} parameter} ext-component-configuration-list ext-components"
  41203. msgstr ""
  41204. #. type: deftypevr
  41205. #: guix-git/doc/guix.texi:27227
  41206. 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{'()}."
  41207. msgstr ""
  41208. #. type: deftypevr
  41209. #: guix-git/doc/guix.texi:27229
  41210. msgid "Available @code{ext-component-configuration} fields are:"
  41211. msgstr ""
  41212. #. type: deftypevr
  41213. #: guix-git/doc/guix.texi:27231
  41214. #, no-wrap
  41215. msgid "{@code{ext-component-configuration} parameter} string component-secret"
  41216. msgstr ""
  41217. #. type: deftypevr
  41218. #: guix-git/doc/guix.texi:27233
  41219. msgid "Password which the component will use to log in."
  41220. msgstr ""
  41221. #. type: deftypevr
  41222. #: guix-git/doc/guix.texi:27235
  41223. #, no-wrap
  41224. msgid "{@code{ext-component-configuration} parameter} string hostname"
  41225. msgstr ""
  41226. #. type: deftypevr
  41227. #: guix-git/doc/guix.texi:27241
  41228. #, no-wrap
  41229. msgid "{@code{prosody-configuration} parameter} non-negative-integer-list component-ports"
  41230. msgstr ""
  41231. #. type: deftypevr
  41232. #: guix-git/doc/guix.texi:27244
  41233. msgid "Port(s) Prosody listens on for component connections. Defaults to @samp{'(5347)}."
  41234. msgstr ""
  41235. #. type: deftypevr
  41236. #: guix-git/doc/guix.texi:27246
  41237. #, no-wrap
  41238. msgid "{@code{prosody-configuration} parameter} string component-interface"
  41239. msgstr ""
  41240. #. type: deftypevr
  41241. #: guix-git/doc/guix.texi:27249
  41242. msgid "Interface Prosody listens on for component connections. Defaults to @samp{\"127.0.0.1\"}."
  41243. msgstr ""
  41244. #. type: deftypevr
  41245. #: guix-git/doc/guix.texi:27251
  41246. #, no-wrap
  41247. msgid "{@code{prosody-configuration} parameter} maybe-raw-content raw-content"
  41248. msgstr ""
  41249. #. type: deftypevr
  41250. #: guix-git/doc/guix.texi:27253
  41251. msgid "Raw content that will be added to the configuration file."
  41252. msgstr ""
  41253. #. type: Plain text
  41254. #: guix-git/doc/guix.texi:27261
  41255. 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:"
  41256. msgstr ""
  41257. #. type: deftypevr
  41258. #: guix-git/doc/guix.texi:27262
  41259. #, no-wrap
  41260. msgid "{@code{opaque-prosody-configuration} parameter} package prosody"
  41261. msgstr ""
  41262. #. type: deftypevr
  41263. #: guix-git/doc/guix.texi:27264
  41264. msgid "The prosody package."
  41265. msgstr ""
  41266. #. type: deftypevr
  41267. #: guix-git/doc/guix.texi:27266
  41268. #, no-wrap
  41269. msgid "{@code{opaque-prosody-configuration} parameter} string prosody.cfg.lua"
  41270. msgstr ""
  41271. #. type: deftypevr
  41272. #: guix-git/doc/guix.texi:27268
  41273. msgid "The contents of the @code{prosody.cfg.lua} to use."
  41274. msgstr ""
  41275. #. type: Plain text
  41276. #: guix-git/doc/guix.texi:27272
  41277. msgid "For example, if your @code{prosody.cfg.lua} is just the empty string, you could instantiate a prosody service like this:"
  41278. msgstr ""
  41279. #. type: lisp
  41280. #: guix-git/doc/guix.texi:27277
  41281. #, no-wrap
  41282. msgid ""
  41283. "(service prosody-service-type\n"
  41284. " (opaque-prosody-configuration\n"
  41285. " (prosody.cfg.lua \"\")))\n"
  41286. msgstr ""
  41287. #. type: subsubheading
  41288. #: guix-git/doc/guix.texi:27281
  41289. #, no-wrap
  41290. msgid "BitlBee Service"
  41291. msgstr ""
  41292. #. type: cindex
  41293. #: guix-git/doc/guix.texi:27283 guix-git/doc/guix.texi:27327
  41294. #, no-wrap
  41295. msgid "IRC (Internet Relay Chat)"
  41296. msgstr ""
  41297. #. type: cindex
  41298. #: guix-git/doc/guix.texi:27284
  41299. #, no-wrap
  41300. msgid "IRC gateway"
  41301. msgstr ""
  41302. #. type: Plain text
  41303. #: guix-git/doc/guix.texi:27287
  41304. msgid "@url{https://bitlbee.org,BitlBee} is a gateway that provides an IRC interface to a variety of messaging protocols such as XMPP."
  41305. msgstr ""
  41306. #. type: defvar
  41307. #: guix-git/doc/guix.texi:27288
  41308. #, fuzzy, no-wrap
  41309. msgid "bitlbee-service-type"
  41310. msgstr "邮件服务"
  41311. #. type: defvar
  41312. #: guix-git/doc/guix.texi:27292
  41313. 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)."
  41314. msgstr ""
  41315. #. type: defvar
  41316. #: guix-git/doc/guix.texi:27295
  41317. msgid "To have BitlBee listen on port 6667 on localhost, add this line to your services:"
  41318. msgstr ""
  41319. #. type: lisp
  41320. #: guix-git/doc/guix.texi:27298
  41321. #, no-wrap
  41322. msgid "(service bitlbee-service-type)\n"
  41323. msgstr ""
  41324. #. type: deftp
  41325. #: guix-git/doc/guix.texi:27301
  41326. #, no-wrap
  41327. msgid "{Data Type} bitlbee-configuration"
  41328. msgstr ""
  41329. #. type: deftp
  41330. #: guix-git/doc/guix.texi:27303
  41331. msgid "This is the configuration for BitlBee, with the following fields:"
  41332. msgstr ""
  41333. #. type: item
  41334. #: guix-git/doc/guix.texi:27305
  41335. #, no-wrap
  41336. msgid "@code{interface} (default: @code{\"127.0.0.1\"})"
  41337. msgstr ""
  41338. #. type: itemx
  41339. #: guix-git/doc/guix.texi:27306
  41340. #, no-wrap
  41341. msgid "@code{port} (default: @code{6667})"
  41342. msgstr ""
  41343. #. type: table
  41344. #: guix-git/doc/guix.texi:27309
  41345. msgid "Listen on the network interface corresponding to the IP address specified in @var{interface}, on @var{port}."
  41346. msgstr ""
  41347. #. type: table
  41348. #: guix-git/doc/guix.texi:27313
  41349. 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."
  41350. msgstr ""
  41351. #. type: item
  41352. #: guix-git/doc/guix.texi:27314
  41353. #, fuzzy, no-wrap
  41354. msgid "@code{bitlbee} (default: @code{bitlbee})"
  41355. msgstr "@code{mate}(默认值:@code{mate})"
  41356. #. type: table
  41357. #: guix-git/doc/guix.texi:27316
  41358. msgid "The BitlBee package to use."
  41359. msgstr ""
  41360. #. type: item
  41361. #: guix-git/doc/guix.texi:27317
  41362. #, no-wrap
  41363. msgid "@code{plugins} (default: @code{'()})"
  41364. msgstr ""
  41365. #. type: table
  41366. #: guix-git/doc/guix.texi:27319
  41367. msgid "List of plugin packages to use---e.g., @code{bitlbee-discord}."
  41368. msgstr ""
  41369. #. type: table
  41370. #: guix-git/doc/guix.texi:27322
  41371. msgid "Configuration snippet added as-is to the BitlBee configuration file."
  41372. msgstr ""
  41373. #. type: subsubheading
  41374. #: guix-git/doc/guix.texi:27325
  41375. #, no-wrap
  41376. msgid "Quassel Service"
  41377. msgstr ""
  41378. #. type: Plain text
  41379. #: guix-git/doc/guix.texi:27331
  41380. 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."
  41381. msgstr ""
  41382. #. type: defvar
  41383. #: guix-git/doc/guix.texi:27332
  41384. #, fuzzy, no-wrap
  41385. msgid "quassel-service-type"
  41386. msgstr "邮件服务"
  41387. #. type: defvar
  41388. #: guix-git/doc/guix.texi:27336
  41389. 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)."
  41390. msgstr ""
  41391. #. type: deftp
  41392. #: guix-git/doc/guix.texi:27338
  41393. #, no-wrap
  41394. msgid "{Data Type} quassel-configuration"
  41395. msgstr ""
  41396. #. type: deftp
  41397. #: guix-git/doc/guix.texi:27340
  41398. msgid "This is the configuration for Quassel, with the following fields:"
  41399. msgstr ""
  41400. #. type: item
  41401. #: guix-git/doc/guix.texi:27342
  41402. #, no-wrap
  41403. msgid "@code{quassel} (default: @code{quassel})"
  41404. msgstr ""
  41405. #. type: table
  41406. #: guix-git/doc/guix.texi:27344
  41407. msgid "The Quassel package to use."
  41408. msgstr ""
  41409. #. type: item
  41410. #: guix-git/doc/guix.texi:27345
  41411. #, no-wrap
  41412. msgid "@code{interface} (default: @code{\"::,0.0.0.0\"})"
  41413. msgstr ""
  41414. #. type: item
  41415. #: guix-git/doc/guix.texi:27346
  41416. #, no-wrap
  41417. msgid "@code{port} (default: @code{4242})"
  41418. msgstr ""
  41419. #. type: table
  41420. #: guix-git/doc/guix.texi:27350
  41421. msgid "Listen on the network interface(s) corresponding to the IPv4 or IPv6 interfaces specified in the comma delimited @var{interface}, on @var{port}."
  41422. msgstr ""
  41423. #. type: item
  41424. #: guix-git/doc/guix.texi:27351
  41425. #, no-wrap
  41426. msgid "@code{loglevel} (default: @code{\"Info\"})"
  41427. msgstr ""
  41428. #. type: table
  41429. #: guix-git/doc/guix.texi:27354
  41430. msgid "The level of logging desired. Accepted values are Debug, Info, Warning and Error."
  41431. msgstr ""
  41432. #. type: cindex
  41433. #: guix-git/doc/guix.texi:27360
  41434. #, fuzzy, no-wrap
  41435. #| msgid "Telephony services."
  41436. msgid "telephony, services"
  41437. msgstr "电话服务。"
  41438. #. type: Plain text
  41439. #: guix-git/doc/guix.texi:27364
  41440. msgid "The @code{(gnu services telephony)} module contains Guix service definitions for telephony services. Currently it provides the following services:"
  41441. msgstr ""
  41442. #. type: subsubheading
  41443. #: guix-git/doc/guix.texi:27365
  41444. #, no-wrap
  41445. msgid "Jami"
  41446. msgstr ""
  41447. #. type: cindex
  41448. #: guix-git/doc/guix.texi:27367
  41449. #, fuzzy, no-wrap
  41450. msgid "jami, service"
  41451. msgstr "DNS服务"
  41452. #. type: Plain text
  41453. #: guix-git/doc/guix.texi:27373
  41454. 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:"
  41455. msgstr ""
  41456. #. type: lisp
  41457. #: guix-git/doc/guix.texi:27382
  41458. #, no-wrap
  41459. msgid ""
  41460. "(service jami-service-type\n"
  41461. " (jami-configuration\n"
  41462. " (accounts\n"
  41463. " (list (jami-account\n"
  41464. " (archive \"/etc/jami/unencrypted-account-1.gz\"))\n"
  41465. " (jami-account\n"
  41466. " (archive \"/etc/jami/unencrypted-account-2.gz\"))))))\n"
  41467. msgstr ""
  41468. #. type: Plain text
  41469. #: guix-git/doc/guix.texi:27387
  41470. 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."
  41471. msgstr ""
  41472. #. type: Plain text
  41473. #: guix-git/doc/guix.texi:27392
  41474. 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}."
  41475. msgstr ""
  41476. #. type: Plain text
  41477. #: guix-git/doc/guix.texi:27395
  41478. msgid "The next example shows how to declare that only some contacts should be allowed to communicate with a given account:"
  41479. msgstr ""
  41480. #. type: lisp
  41481. #: guix-git/doc/guix.texi:27407
  41482. #, no-wrap
  41483. msgid ""
  41484. "(service jami-service-type\n"
  41485. " (jami-configuration\n"
  41486. " (accounts\n"
  41487. " (list (jami-account\n"
  41488. " (archive \"/etc/jami/unencrypted-account-1.gz\")\n"
  41489. " (peer-discovery? #t)\n"
  41490. " (rendezvous-point? #t)\n"
  41491. " (allowed-contacts\n"
  41492. " '(\"1dbcb0f5f37324228235564b79f2b9737e9a008f\"\n"
  41493. " \"2dbcb0f5f37324228235564b79f2b9737e9a008f\")))))))\n"
  41494. msgstr ""
  41495. #. type: Plain text
  41496. #: guix-git/doc/guix.texi:27413
  41497. 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."
  41498. msgstr ""
  41499. #. type: Plain text
  41500. #: guix-git/doc/guix.texi:27416
  41501. msgid "To put the system administrator in full control of the conferences hosted on their system, the Jami service supports the following actions:"
  41502. msgstr ""
  41503. #. type: example
  41504. #: guix-git/doc/guix.texi:27428
  41505. #, no-wrap
  41506. msgid ""
  41507. "# herd doc jami list-actions\n"
  41508. "(list-accounts\n"
  41509. " list-account-details\n"
  41510. " list-banned-contacts\n"
  41511. " list-contacts\n"
  41512. " list-moderators\n"
  41513. " add-moderator\n"
  41514. " ban-contact\n"
  41515. " enable-account\n"
  41516. " disable-account)\n"
  41517. msgstr ""
  41518. #. type: Plain text
  41519. #: guix-git/doc/guix.texi:27435
  41520. 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."
  41521. msgstr ""
  41522. #. type: Plain text
  41523. #: guix-git/doc/guix.texi:27441
  41524. 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:"
  41525. msgstr ""
  41526. #. type: example
  41527. #: guix-git/doc/guix.texi:27445
  41528. #, no-wrap
  41529. msgid ""
  41530. "# herd add-moderator jami 1dbcb0f5f37324228235564b79f2b9737e9a008f \\\n"
  41531. " f3345f2775ddfe07a4b0d95daea111d15fbc1199\n"
  41532. "\n"
  41533. msgstr ""
  41534. #. type: example
  41535. #: guix-git/doc/guix.texi:27449
  41536. #, no-wrap
  41537. msgid ""
  41538. "# herd list-moderators jami\n"
  41539. "Moderators for account f3345f2775ddfe07a4b0d95daea111d15fbc1199:\n"
  41540. " - 1dbcb0f5f37324228235564b79f2b9737e9a008f\n"
  41541. "\n"
  41542. msgstr ""
  41543. #. type: Plain text
  41544. #: guix-git/doc/guix.texi:27454
  41545. msgid "In the case of @code{ban-contact}, the second username argument is optional; when omitted, the account is banned from all Jami accounts:"
  41546. msgstr ""
  41547. #. type: example
  41548. #: guix-git/doc/guix.texi:27457
  41549. #, no-wrap
  41550. msgid ""
  41551. "# herd ban-contact jami 1dbcb0f5f37324228235564b79f2b9737e9a008f\n"
  41552. "\n"
  41553. msgstr ""
  41554. #. type: example
  41555. #: guix-git/doc/guix.texi:27461
  41556. #, no-wrap
  41557. msgid ""
  41558. "# herd list-banned-contacts jami\n"
  41559. "Banned contacts for account f3345f2775ddfe07a4b0d95daea111d15fbc1199:\n"
  41560. " - 1dbcb0f5f37324228235564b79f2b9737e9a008f\n"
  41561. "\n"
  41562. msgstr ""
  41563. #. type: Plain text
  41564. #: guix-git/doc/guix.texi:27465
  41565. msgid "Banned contacts are also stripped from their moderation privileges."
  41566. msgstr ""
  41567. #. type: Plain text
  41568. #: guix-git/doc/guix.texi:27470
  41569. 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:"
  41570. msgstr ""
  41571. #. type: example
  41572. #: guix-git/doc/guix.texi:27473
  41573. #, no-wrap
  41574. msgid ""
  41575. "# herd disable-account jami f3345f2775ddfe07a4b0d95daea111d15fbc1199\n"
  41576. "\n"
  41577. msgstr ""
  41578. #. type: example
  41579. #: guix-git/doc/guix.texi:27477
  41580. #, no-wrap
  41581. msgid ""
  41582. "# herd list-accounts jami\n"
  41583. "The following Jami accounts are available:\n"
  41584. " - f3345f2775ddfe07a4b0d95daea111d15fbc1199 (dummy) [disabled]\n"
  41585. "\n"
  41586. msgstr ""
  41587. #. type: Plain text
  41588. #: guix-git/doc/guix.texi:27488
  41589. 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:"
  41590. msgstr ""
  41591. #. type: example
  41592. #: guix-git/doc/guix.texi:27493
  41593. #, no-wrap
  41594. msgid ""
  41595. "# herd list-account-details jami | \\\n"
  41596. " recsel -p Account.username -e 'Account.rendezVous ~ \"true\"'\n"
  41597. "Account_username: f3345f2775ddfe07a4b0d95daea111d15fbc1199\n"
  41598. msgstr ""
  41599. #. type: Plain text
  41600. #: guix-git/doc/guix.texi:27496
  41601. msgid "The remaining actions should be self-explanatory."
  41602. msgstr ""
  41603. #. type: Plain text
  41604. #: guix-git/doc/guix.texi:27498
  41605. msgid "The complete set of available configuration options is detailed below."
  41606. msgstr ""
  41607. #. type: deftp
  41608. #: guix-git/doc/guix.texi:27502
  41609. #, fuzzy, no-wrap
  41610. msgid "{Data Type} jami-configuration"
  41611. msgstr "{数据类型} build-machine"
  41612. #. type: deftp
  41613. #: guix-git/doc/guix.texi:27504
  41614. msgid "Available @code{jami-configuration} fields are:"
  41615. msgstr ""
  41616. #. type: item
  41617. #: guix-git/doc/guix.texi:27506
  41618. #, fuzzy, no-wrap
  41619. msgid "@code{libjami} (default: @code{libjami}) (type: package)"
  41620. msgstr "@code{xfce}(默认值:@code{xfce})"
  41621. #. type: table
  41622. #: guix-git/doc/guix.texi:27508
  41623. #, fuzzy
  41624. msgid "The Jami daemon package to use."
  41625. msgstr "软件包数据类型。"
  41626. #. type: item
  41627. #: guix-git/doc/guix.texi:27509
  41628. #, fuzzy, no-wrap
  41629. msgid "@code{dbus} (default: @code{dbus-for-jami}) (type: package)"
  41630. msgstr "@code{xfce}(默认值:@code{xfce})"
  41631. #. type: table
  41632. #: guix-git/doc/guix.texi:27511
  41633. #, fuzzy
  41634. msgid "The D-Bus package to use to start the required D-Bus session."
  41635. msgstr "软件包数据类型。"
  41636. #. type: item
  41637. #: guix-git/doc/guix.texi:27512
  41638. #, fuzzy, no-wrap
  41639. msgid "@code{nss-certs} (default: @code{nss-certs}) (type: package)"
  41640. msgstr "@code{xfce}(默认值:@code{xfce})"
  41641. #. type: table
  41642. #: guix-git/doc/guix.texi:27514
  41643. #, fuzzy
  41644. msgid "The nss-certs package to use to provide TLS certificates."
  41645. msgstr "软件包数据类型。"
  41646. #. type: item
  41647. #: guix-git/doc/guix.texi:27515
  41648. #, fuzzy, no-wrap
  41649. msgid "@code{enable-logging?} (default: @code{#t}) (type: boolean)"
  41650. msgstr "@code{speed}(默认值:@code{1.0})"
  41651. #. type: table
  41652. #: guix-git/doc/guix.texi:27517
  41653. msgid "Whether to enable logging to syslog."
  41654. msgstr ""
  41655. #. type: table
  41656. #: guix-git/doc/guix.texi:27520
  41657. msgid "Whether to enable debug level messages."
  41658. msgstr ""
  41659. #. type: item
  41660. #: guix-git/doc/guix.texi:27521
  41661. #, fuzzy, no-wrap
  41662. msgid "@code{auto-answer?} (default: @code{#f}) (type: boolean)"
  41663. msgstr "@code{port}(默认值:@code{22})"
  41664. #. type: table
  41665. #: guix-git/doc/guix.texi:27523
  41666. msgid "Whether to force automatic answer to incoming calls."
  41667. msgstr ""
  41668. #. type: item
  41669. #: guix-git/doc/guix.texi:27524
  41670. #, fuzzy, no-wrap
  41671. msgid "@code{accounts} (type: maybe-jami-account-list)"
  41672. msgstr "@code{gnome}(默认值:@code{gnome})"
  41673. #. type: table
  41674. #: guix-git/doc/guix.texi:27529
  41675. 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."
  41676. msgstr ""
  41677. #. type: deftp
  41678. #: guix-git/doc/guix.texi:27535
  41679. #, fuzzy, no-wrap
  41680. msgid "{Data Type} jami-account"
  41681. msgstr "{数据类型} build-machine"
  41682. #. type: deftp
  41683. #: guix-git/doc/guix.texi:27537
  41684. msgid "Available @code{jami-account} fields are:"
  41685. msgstr ""
  41686. #. type: item
  41687. #: guix-git/doc/guix.texi:27539
  41688. #, no-wrap
  41689. msgid "@code{archive} (type: string-or-computed-file)"
  41690. msgstr ""
  41691. #. type: table
  41692. #: guix-git/doc/guix.texi:27545
  41693. 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."
  41694. msgstr ""
  41695. #. type: item
  41696. #: guix-git/doc/guix.texi:27546
  41697. #, fuzzy, no-wrap
  41698. msgid "@code{allowed-contacts} (type: maybe-account-fingerprint-list)"
  41699. msgstr "@code{gnome}(默认值:@code{gnome})"
  41700. #. type: table
  41701. #: guix-git/doc/guix.texi:27553
  41702. 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 left specified, 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."
  41703. msgstr ""
  41704. #. type: item
  41705. #: guix-git/doc/guix.texi:27554
  41706. #, fuzzy, no-wrap
  41707. msgid "@code{moderators} (type: maybe-account-fingerprint-list)"
  41708. msgstr "@code{gnome}(默认值:@code{gnome})"
  41709. #. type: table
  41710. #: guix-git/doc/guix.texi:27560
  41711. 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 left unspecified, the configuration of the account archive is used as-is with respect to moderation, which typically defaults to allow anyone to moderate."
  41712. msgstr ""
  41713. #. type: item
  41714. #: guix-git/doc/guix.texi:27561
  41715. #, fuzzy, no-wrap
  41716. msgid "@code{rendezvous-point?} (type: maybe-boolean)"
  41717. msgstr "@code{port}(默认值:@code{22})"
  41718. #. type: table
  41719. #: guix-git/doc/guix.texi:27565
  41720. 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."
  41721. msgstr ""
  41722. #. type: item
  41723. #: guix-git/doc/guix.texi:27566
  41724. #, fuzzy, no-wrap
  41725. msgid "@code{peer-discovery?} (type: maybe-boolean)"
  41726. msgstr "@code{speed}(默认值:@code{1.0})"
  41727. #. type: table
  41728. #: guix-git/doc/guix.texi:27572
  41729. 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 Internet has been lost. When left unspecified, the value from the account archive prevails."
  41730. msgstr ""
  41731. #. type: item
  41732. #: guix-git/doc/guix.texi:27573
  41733. #, fuzzy, no-wrap
  41734. msgid "@code{bootstrap-hostnames} (type: maybe-string-list)"
  41735. msgstr "@code{mate}(默认值:@code{mate})"
  41736. #. type: table
  41737. #: guix-git/doc/guix.texi:27577
  41738. 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."
  41739. msgstr ""
  41740. #. type: item
  41741. #: guix-git/doc/guix.texi:27578
  41742. #, fuzzy, no-wrap
  41743. msgid "@code{name-server-uri} (type: maybe-string)"
  41744. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  41745. #. type: table
  41746. #: guix-git/doc/guix.texi:27581
  41747. msgid "The URI of the name server to use, that can be used to retrieve the account fingerprint for a registered username."
  41748. msgstr ""
  41749. #. type: subsubheading
  41750. #: guix-git/doc/guix.texi:27586
  41751. #, fuzzy, no-wrap
  41752. #| msgid "Game servers."
  41753. msgid "Mumble server"
  41754. msgstr "游戏服务器。"
  41755. #. type: cindex
  41756. #: guix-git/doc/guix.texi:27588
  41757. #, no-wrap
  41758. msgid "Mumble"
  41759. msgstr ""
  41760. #. type: cindex
  41761. #: guix-git/doc/guix.texi:27589
  41762. #, no-wrap
  41763. msgid "Murmur"
  41764. msgstr ""
  41765. #. type: cindex
  41766. #: guix-git/doc/guix.texi:27590
  41767. #, no-wrap
  41768. msgid "VoIP server"
  41769. msgstr ""
  41770. #. type: Plain text
  41771. #: guix-git/doc/guix.texi:27593
  41772. msgid "This section describes how to set up and run a @uref{https://mumble.info, Mumble} server (formerly known as Murmur)."
  41773. msgstr ""
  41774. #. type: deftp
  41775. #: guix-git/doc/guix.texi:27594
  41776. #, fuzzy, no-wrap
  41777. msgid "{Data Type} mumble-server-configuration"
  41778. msgstr "{数据类型} build-machine"
  41779. #. type: deftp
  41780. #: guix-git/doc/guix.texi:27597
  41781. msgid "The service type for the Mumble server. An example configuration can look like this:"
  41782. msgstr ""
  41783. #. type: lisp
  41784. #: guix-git/doc/guix.texi:27606
  41785. #, no-wrap
  41786. msgid ""
  41787. "(service mumble-server-service-type\n"
  41788. " (mumble-server-configuration\n"
  41789. " (welcome-text\n"
  41790. " \"Welcome to this Mumble server running on Guix!\")\n"
  41791. " (cert-required? #t) ;disallow text password logins\n"
  41792. " (ssl-cert \"/etc/letsencrypt/live/mumble.example.com/fullchain.pem\")\n"
  41793. " (ssl-key \"/etc/letsencrypt/live/mumble.example.com/privkey.pem\")))\n"
  41794. msgstr ""
  41795. #. type: deftp
  41796. #: guix-git/doc/guix.texi:27611
  41797. msgid "After reconfiguring your system, you can manually set the mumble-server @code{SuperUser} password with the command that is printed during the activation phase."
  41798. msgstr ""
  41799. #. type: deftp
  41800. #: guix-git/doc/guix.texi:27620
  41801. 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."
  41802. msgstr ""
  41803. #. type: deftp
  41804. #: guix-git/doc/guix.texi:27622
  41805. msgid "Available @code{mumble-server-configuration} fields are:"
  41806. msgstr ""
  41807. #. type: item
  41808. #: guix-git/doc/guix.texi:27624
  41809. #, no-wrap
  41810. msgid "@code{package} (default: @code{mumble})"
  41811. msgstr ""
  41812. #. type: table
  41813. #: guix-git/doc/guix.texi:27626
  41814. msgid "Package that contains @code{bin/mumble-server}."
  41815. msgstr ""
  41816. #. type: item
  41817. #: guix-git/doc/guix.texi:27627
  41818. #, fuzzy, no-wrap
  41819. msgid "@code{user} (default: @code{\"mumble-server\"})"
  41820. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  41821. #. type: table
  41822. #: guix-git/doc/guix.texi:27629
  41823. msgid "User who will run the Mumble-Server server."
  41824. msgstr ""
  41825. #. type: item
  41826. #: guix-git/doc/guix.texi:27630
  41827. #, fuzzy, no-wrap
  41828. msgid "@code{group} (default: @code{\"mumble-server\"})"
  41829. msgstr "@code{gnome}(默认值:@code{gnome})"
  41830. #. type: table
  41831. #: guix-git/doc/guix.texi:27632
  41832. msgid "Group of the user who will run the mumble-server server."
  41833. msgstr ""
  41834. #. type: item
  41835. #: guix-git/doc/guix.texi:27633
  41836. #, no-wrap
  41837. msgid "@code{port} (default: @code{64738})"
  41838. msgstr ""
  41839. #. type: table
  41840. #: guix-git/doc/guix.texi:27635
  41841. msgid "Port on which the server will listen."
  41842. msgstr ""
  41843. #. type: item
  41844. #: guix-git/doc/guix.texi:27636
  41845. #, no-wrap
  41846. msgid "@code{welcome-text} (default: @code{\"\"})"
  41847. msgstr ""
  41848. #. type: table
  41849. #: guix-git/doc/guix.texi:27638
  41850. msgid "Welcome text sent to clients when they connect."
  41851. msgstr ""
  41852. #. type: item
  41853. #: guix-git/doc/guix.texi:27639
  41854. #, no-wrap
  41855. msgid "@code{server-password} (default: @code{\"\"})"
  41856. msgstr ""
  41857. #. type: table
  41858. #: guix-git/doc/guix.texi:27641
  41859. msgid "Password the clients have to enter in order to connect."
  41860. msgstr ""
  41861. #. type: item
  41862. #: guix-git/doc/guix.texi:27642
  41863. #, no-wrap
  41864. msgid "@code{max-users} (default: @code{100})"
  41865. msgstr ""
  41866. #. type: table
  41867. #: guix-git/doc/guix.texi:27644
  41868. msgid "Maximum of users that can be connected to the server at once."
  41869. msgstr ""
  41870. #. type: item
  41871. #: guix-git/doc/guix.texi:27645
  41872. #, no-wrap
  41873. msgid "@code{max-user-bandwidth} (default: @code{#f})"
  41874. msgstr ""
  41875. #. type: table
  41876. #: guix-git/doc/guix.texi:27647
  41877. msgid "Maximum voice traffic a user can send per second."
  41878. msgstr ""
  41879. #. type: item
  41880. #: guix-git/doc/guix.texi:27648
  41881. #, fuzzy, no-wrap
  41882. msgid "@code{database-file} (default: @code{\"/var/lib/mumble-server/db.sqlite\"})"
  41883. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  41884. #. type: table
  41885. #: guix-git/doc/guix.texi:27651
  41886. msgid "File name of the sqlite database. The service's user will become the owner of the directory."
  41887. msgstr ""
  41888. #. type: item
  41889. #: guix-git/doc/guix.texi:27652
  41890. #, fuzzy, no-wrap
  41891. msgid "@code{log-file} (default: @code{\"/var/log/mumble-server/mumble-server.log\"})"
  41892. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  41893. #. type: table
  41894. #: guix-git/doc/guix.texi:27655
  41895. msgid "File name of the log file. The service's user will become the owner of the directory."
  41896. msgstr ""
  41897. #. type: item
  41898. #: guix-git/doc/guix.texi:27656
  41899. #, no-wrap
  41900. msgid "@code{autoban-attempts} (default: @code{10})"
  41901. msgstr ""
  41902. #. type: table
  41903. #: guix-git/doc/guix.texi:27659
  41904. msgid "Maximum number of logins a user can make in @code{autoban-timeframe} without getting auto banned for @code{autoban-time}."
  41905. msgstr ""
  41906. #. type: item
  41907. #: guix-git/doc/guix.texi:27660
  41908. #, no-wrap
  41909. msgid "@code{autoban-timeframe} (default: @code{120})"
  41910. msgstr ""
  41911. #. type: table
  41912. #: guix-git/doc/guix.texi:27662
  41913. msgid "Timeframe for autoban in seconds."
  41914. msgstr ""
  41915. #. type: item
  41916. #: guix-git/doc/guix.texi:27663
  41917. #, no-wrap
  41918. msgid "@code{autoban-time} (default: @code{300})"
  41919. msgstr ""
  41920. #. type: table
  41921. #: guix-git/doc/guix.texi:27666
  41922. msgid "Amount of time in seconds for which a client gets banned when violating the autoban limits."
  41923. msgstr ""
  41924. #. type: item
  41925. #: guix-git/doc/guix.texi:27667
  41926. #, no-wrap
  41927. msgid "@code{opus-threshold} (default: @code{100})"
  41928. msgstr ""
  41929. #. type: table
  41930. #: guix-git/doc/guix.texi:27670
  41931. msgid "Percentage of clients that need to support opus before switching over to opus audio codec."
  41932. msgstr ""
  41933. #. type: item
  41934. #: guix-git/doc/guix.texi:27671
  41935. #, no-wrap
  41936. msgid "@code{channel-nesting-limit} (default: @code{10})"
  41937. msgstr ""
  41938. #. type: table
  41939. #: guix-git/doc/guix.texi:27673
  41940. msgid "How deep channels can be nested at maximum."
  41941. msgstr ""
  41942. #. type: item
  41943. #: guix-git/doc/guix.texi:27674
  41944. #, no-wrap
  41945. msgid "@code{channelname-regex} (default: @code{#f})"
  41946. msgstr ""
  41947. #. type: table
  41948. #: guix-git/doc/guix.texi:27676
  41949. msgid "A string in form of a Qt regular expression that channel names must conform to."
  41950. msgstr ""
  41951. #. type: item
  41952. #: guix-git/doc/guix.texi:27677
  41953. #, no-wrap
  41954. msgid "@code{username-regex} (default: @code{#f})"
  41955. msgstr ""
  41956. #. type: table
  41957. #: guix-git/doc/guix.texi:27679
  41958. msgid "A string in form of a Qt regular expression that user names must conform to."
  41959. msgstr ""
  41960. #. type: item
  41961. #: guix-git/doc/guix.texi:27680
  41962. #, no-wrap
  41963. msgid "@code{text-message-length} (default: @code{5000})"
  41964. msgstr ""
  41965. #. type: table
  41966. #: guix-git/doc/guix.texi:27682
  41967. msgid "Maximum size in bytes that a user can send in one text chat message."
  41968. msgstr ""
  41969. #. type: item
  41970. #: guix-git/doc/guix.texi:27683
  41971. #, no-wrap
  41972. msgid "@code{image-message-length} (default: @code{(* 128 1024)})"
  41973. msgstr ""
  41974. #. type: table
  41975. #: guix-git/doc/guix.texi:27685
  41976. msgid "Maximum size in bytes that a user can send in one image message."
  41977. msgstr ""
  41978. #. type: item
  41979. #: guix-git/doc/guix.texi:27686
  41980. #, no-wrap
  41981. msgid "@code{cert-required?} (default: @code{#f})"
  41982. msgstr ""
  41983. #. type: table
  41984. #: guix-git/doc/guix.texi:27689
  41985. 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."
  41986. msgstr ""
  41987. #. type: item
  41988. #: guix-git/doc/guix.texi:27690
  41989. #, no-wrap
  41990. msgid "@code{remember-channel?} (default: @code{#f})"
  41991. msgstr ""
  41992. #. type: table
  41993. #: guix-git/doc/guix.texi:27694
  41994. msgid "Should mumble-server remember the last channel each user was in when they disconnected and put them into the remembered channel when they rejoin."
  41995. msgstr ""
  41996. #. type: item
  41997. #: guix-git/doc/guix.texi:27695
  41998. #, no-wrap
  41999. msgid "@code{allow-html?} (default: @code{#f})"
  42000. msgstr ""
  42001. #. type: table
  42002. #: guix-git/doc/guix.texi:27697
  42003. msgid "Should html be allowed in text messages, user comments, and channel descriptions."
  42004. msgstr ""
  42005. #. type: item
  42006. #: guix-git/doc/guix.texi:27698
  42007. #, no-wrap
  42008. msgid "@code{allow-ping?} (default: @code{#f})"
  42009. msgstr ""
  42010. #. type: table
  42011. #: guix-git/doc/guix.texi:27702
  42012. 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."
  42013. msgstr ""
  42014. #. type: table
  42015. #: guix-git/doc/guix.texi:27704
  42016. msgid "Disabling this setting will prevent public listing of the server."
  42017. msgstr ""
  42018. #. type: item
  42019. #: guix-git/doc/guix.texi:27705
  42020. #, no-wrap
  42021. msgid "@code{bonjour?} (default: @code{#f})"
  42022. msgstr ""
  42023. #. type: table
  42024. #: guix-git/doc/guix.texi:27707
  42025. msgid "Should the server advertise itself in the local network through the bonjour protocol."
  42026. msgstr ""
  42027. #. type: item
  42028. #: guix-git/doc/guix.texi:27708
  42029. #, no-wrap
  42030. msgid "@code{send-version?} (default: @code{#f})"
  42031. msgstr ""
  42032. #. type: table
  42033. #: guix-git/doc/guix.texi:27710
  42034. msgid "Should the mumble-server server version be exposed in ping requests."
  42035. msgstr ""
  42036. #. type: item
  42037. #: guix-git/doc/guix.texi:27711
  42038. #, no-wrap
  42039. msgid "@code{log-days} (default: @code{31})"
  42040. msgstr ""
  42041. #. type: table
  42042. #: guix-git/doc/guix.texi:27715
  42043. msgid "Mumble 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."
  42044. msgstr ""
  42045. #. type: item
  42046. #: guix-git/doc/guix.texi:27716
  42047. #, no-wrap
  42048. msgid "@code{obfuscate-ips?} (default: @code{#t})"
  42049. msgstr ""
  42050. #. type: table
  42051. #: guix-git/doc/guix.texi:27718
  42052. msgid "Should logged ips be obfuscated to protect the privacy of users."
  42053. msgstr ""
  42054. #. type: item
  42055. #: guix-git/doc/guix.texi:27719
  42056. #, no-wrap
  42057. msgid "@code{ssl-cert} (default: @code{#f})"
  42058. msgstr ""
  42059. #. type: table
  42060. #: guix-git/doc/guix.texi:27721
  42061. msgid "File name of the SSL/TLS certificate used for encrypted connections."
  42062. msgstr ""
  42063. #. type: lisp
  42064. #: guix-git/doc/guix.texi:27724
  42065. #, no-wrap
  42066. msgid "(ssl-cert \"/etc/letsencrypt/live/example.com/fullchain.pem\")\n"
  42067. msgstr ""
  42068. #. type: item
  42069. #: guix-git/doc/guix.texi:27725
  42070. #, no-wrap
  42071. msgid "@code{ssl-key} (default: @code{#f})"
  42072. msgstr ""
  42073. #. type: table
  42074. #: guix-git/doc/guix.texi:27727
  42075. msgid "Filepath to the ssl private key used for encrypted connections."
  42076. msgstr ""
  42077. #. type: lisp
  42078. #: guix-git/doc/guix.texi:27729
  42079. #, no-wrap
  42080. msgid "(ssl-key \"/etc/letsencrypt/live/example.com/privkey.pem\")\n"
  42081. msgstr ""
  42082. #. type: item
  42083. #: guix-git/doc/guix.texi:27731
  42084. #, no-wrap
  42085. msgid "@code{ssl-dh-params} (default: @code{#f})"
  42086. msgstr ""
  42087. #. type: table
  42088. #: guix-git/doc/guix.texi:27736
  42089. 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."
  42090. msgstr ""
  42091. #. type: item
  42092. #: guix-git/doc/guix.texi:27737
  42093. #, no-wrap
  42094. msgid "@code{ssl-ciphers} (default: @code{#f})"
  42095. msgstr ""
  42096. #. type: table
  42097. #: guix-git/doc/guix.texi:27740
  42098. msgid "The @code{ssl-ciphers} option chooses the cipher suites to make available for use in SSL/TLS."
  42099. msgstr ""
  42100. #. type: table
  42101. #: guix-git/doc/guix.texi:27744
  42102. msgid "This option is specified using @uref{https://www.openssl.org/docs/apps/ciphers.html#CIPHER-LIST-FORMAT, OpenSSL cipher list notation}."
  42103. msgstr ""
  42104. #. type: table
  42105. #: guix-git/doc/guix.texi:27751
  42106. 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 Mumble server log to ensure that Mumble is using the cipher suites that you expected it to."
  42107. msgstr ""
  42108. #. type: quotation
  42109. #: guix-git/doc/guix.texi:27755
  42110. msgid "Changing this option may impact the backwards compatibility of your Mumble-Server server, and can remove the ability for older Mumble clients to be able to connect to it."
  42111. msgstr ""
  42112. #. type: item
  42113. #: guix-git/doc/guix.texi:27757
  42114. #, no-wrap
  42115. msgid "@code{public-registration} (default: @code{#f})"
  42116. msgstr ""
  42117. #. type: table
  42118. #: guix-git/doc/guix.texi:27760
  42119. msgid "Must be a @code{<mumble-server-public-registration-configuration>} record or @code{#f}."
  42120. msgstr ""
  42121. #. type: table
  42122. #: guix-git/doc/guix.texi:27765
  42123. 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}."
  42124. msgstr ""
  42125. #. type: table
  42126. #: guix-git/doc/guix.texi:27767
  42127. msgid "It might take a few hours until it shows up in the public list."
  42128. msgstr ""
  42129. #. type: item
  42130. #: guix-git/doc/guix.texi:27768 guix-git/doc/guix.texi:30355
  42131. #, no-wrap
  42132. msgid "@code{file} (default: @code{#f})"
  42133. msgstr ""
  42134. #. type: table
  42135. #: guix-git/doc/guix.texi:27770
  42136. msgid "Optional alternative override for this configuration."
  42137. msgstr ""
  42138. #. type: deftp
  42139. #: guix-git/doc/guix.texi:27773
  42140. #, fuzzy, no-wrap
  42141. msgid "{Data Type} mumble-server-public-registration-configuration"
  42142. msgstr "{数据类型} build-machine"
  42143. #. type: deftp
  42144. #: guix-git/doc/guix.texi:27775
  42145. msgid "Configuration for public registration of a mumble-server service."
  42146. msgstr ""
  42147. #. type: table
  42148. #: guix-git/doc/guix.texi:27779
  42149. msgid "This is a display name for your server. Not to be confused with the hostname."
  42150. msgstr ""
  42151. #. type: itemx
  42152. #: guix-git/doc/guix.texi:27780 guix-git/doc/guix.texi:37612
  42153. #: guix-git/doc/guix.texi:39260
  42154. #, no-wrap
  42155. msgid "password"
  42156. msgstr ""
  42157. #. type: table
  42158. #: guix-git/doc/guix.texi:27783
  42159. msgid "A password to identify your registration. Subsequent updates will need the same password. Don't lose your password."
  42160. msgstr ""
  42161. #. type: table
  42162. #: guix-git/doc/guix.texi:27787
  42163. msgid "This should be a @code{http://} or @code{https://} link to your web site."
  42164. msgstr ""
  42165. #. type: item
  42166. #: guix-git/doc/guix.texi:27788 guix-git/doc/guix.texi:31244
  42167. #, no-wrap
  42168. msgid "@code{hostname} (default: @code{#f})"
  42169. msgstr ""
  42170. #. type: table
  42171. #: guix-git/doc/guix.texi:27791
  42172. 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."
  42173. msgstr ""
  42174. #. type: quotation
  42175. #: guix-git/doc/guix.texi:27794
  42176. #, no-wrap
  42177. msgid "Deprecation notice"
  42178. msgstr ""
  42179. #. type: quotation
  42180. #: guix-git/doc/guix.texi:27799
  42181. msgid "Due to historical reasons, all of the above @code{mumble-server-} procedures are also exported with the @code{murmur-} prefix. It is recommended that you switch to using @code{mumble-server-} going forward."
  42182. msgstr ""
  42183. #. type: Plain text
  42184. #: guix-git/doc/guix.texi:27806
  42185. msgid "The @code{(gnu services file-sharing)} module provides services that assist with transferring files over peer-to-peer file-sharing networks."
  42186. msgstr ""
  42187. #. type: subsubheading
  42188. #: guix-git/doc/guix.texi:27807
  42189. #, fuzzy, no-wrap
  42190. msgid "Transmission Daemon Service"
  42191. msgstr "版本控制服务"
  42192. #. type: Plain text
  42193. #: guix-git/doc/guix.texi:27815
  42194. 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."
  42195. msgstr ""
  42196. #. type: defvar
  42197. #: guix-git/doc/guix.texi:27816
  42198. #, fuzzy, no-wrap
  42199. msgid "transmission-daemon-service-type"
  42200. msgstr "邮件服务"
  42201. #. type: defvar
  42202. #: guix-git/doc/guix.texi:27820
  42203. msgid "The service type for the Transmission Daemon BitTorrent client. Its value must be a @code{transmission-daemon-configuration} object as in this example:"
  42204. msgstr ""
  42205. #. type: lisp
  42206. #: guix-git/doc/guix.texi:27831
  42207. #, no-wrap
  42208. msgid ""
  42209. "(service transmission-daemon-service-type\n"
  42210. " (transmission-daemon-configuration\n"
  42211. " ;; Restrict access to the RPC (\"control\") interface\n"
  42212. " (rpc-authentication-required? #t)\n"
  42213. " (rpc-username \"transmission\")\n"
  42214. " (rpc-password\n"
  42215. " (transmission-password-hash\n"
  42216. " \"transmission\" ; desired password\n"
  42217. " \"uKd1uMs9\")) ; arbitrary salt value\n"
  42218. "\n"
  42219. msgstr ""
  42220. #. type: lisp
  42221. #: guix-git/doc/guix.texi:27836
  42222. #, no-wrap
  42223. msgid ""
  42224. " ;; Accept requests from this and other hosts on the\n"
  42225. " ;; local network\n"
  42226. " (rpc-whitelist-enabled? #t)\n"
  42227. " (rpc-whitelist '(\"::1\" \"127.0.0.1\" \"192.168.0.*\"))\n"
  42228. "\n"
  42229. msgstr ""
  42230. #. type: lisp
  42231. #: guix-git/doc/guix.texi:27840
  42232. #, no-wrap
  42233. msgid ""
  42234. " ;; Limit bandwidth use during work hours\n"
  42235. " (alt-speed-down (* 1024 2)) ; 2 MB/s\n"
  42236. " (alt-speed-up 512) ; 512 kB/s\n"
  42237. "\n"
  42238. msgstr ""
  42239. #. type: lisp
  42240. #: guix-git/doc/guix.texi:27847
  42241. #, no-wrap
  42242. msgid ""
  42243. " (alt-speed-time-enabled? #t)\n"
  42244. " (alt-speed-time-day 'weekdays)\n"
  42245. " (alt-speed-time-begin\n"
  42246. " (+ (* 60 8) 30)) ; 8:30 am\n"
  42247. " (alt-speed-time-end\n"
  42248. " (+ (* 60 (+ 12 5)) 30)))) ; 5:30 pm\n"
  42249. msgstr ""
  42250. #. type: Plain text
  42251. #: guix-git/doc/guix.texi:27860
  42252. 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."
  42253. msgstr ""
  42254. #. type: Plain text
  42255. #: guix-git/doc/guix.texi:27868
  42256. 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."
  42257. msgstr ""
  42258. #. type: defun
  42259. #: guix-git/doc/guix.texi:27869
  42260. #, no-wrap
  42261. msgid "transmission-password-hash password salt"
  42262. msgstr ""
  42263. #. type: defun
  42264. #: guix-git/doc/guix.texi:27873
  42265. 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."
  42266. msgstr ""
  42267. #. type: defun
  42268. #: guix-git/doc/guix.texi:27877
  42269. 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."
  42270. msgstr ""
  42271. #. type: defun
  42272. #: guix-git/doc/guix.texi:27879
  42273. #, fuzzy, no-wrap
  42274. msgid "transmission-random-salt"
  42275. msgstr "邮件服务"
  42276. #. type: defun
  42277. #: guix-git/doc/guix.texi:27883
  42278. 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."
  42279. msgstr ""
  42280. #. type: Plain text
  42281. #: guix-git/doc/guix.texi:27889
  42282. 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:"
  42283. msgstr ""
  42284. #. type: example
  42285. #: guix-git/doc/guix.texi:27895
  42286. #, no-wrap
  42287. msgid ""
  42288. "$ guix repl\n"
  42289. "scheme@@(guix-user)> ,use (gnu services file-sharing)\n"
  42290. "scheme@@(guix-user)> (transmission-random-salt)\n"
  42291. "$1 = \"uKd1uMs9\"\n"
  42292. msgstr ""
  42293. #. type: Plain text
  42294. #: guix-git/doc/guix.texi:27898
  42295. msgid "Alternatively, a complete password hash can generated in a single step:"
  42296. msgstr ""
  42297. #. type: example
  42298. #: guix-git/doc/guix.texi:27903
  42299. #, no-wrap
  42300. msgid ""
  42301. "scheme@@(guix-user)> (transmission-password-hash \"transmission\"\n"
  42302. "(transmission-random-salt))\n"
  42303. "$2 = \"@{c8bbc6d1740cd8dc819a6e25563b67812c1c19c9VtFPfdsX\"\n"
  42304. msgstr ""
  42305. #. type: Plain text
  42306. #: guix-git/doc/guix.texi:27908
  42307. 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."
  42308. msgstr ""
  42309. #. type: Plain text
  42310. #: guix-git/doc/guix.texi:27917
  42311. 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."
  42312. msgstr ""
  42313. #. type: Plain text
  42314. #: guix-git/doc/guix.texi:27924
  42315. 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.)"
  42316. msgstr ""
  42317. #. type: Plain text
  42318. #: guix-git/doc/guix.texi:27929
  42319. 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:"
  42320. msgstr ""
  42321. #. type: example
  42322. #: guix-git/doc/guix.texi:27932
  42323. #, no-wrap
  42324. msgid "# herd reload transmission-daemon\n"
  42325. msgstr ""
  42326. #. type: Plain text
  42327. #: guix-git/doc/guix.texi:27936
  42328. msgid "The full set of available configuration settings is defined by the @code{transmission-daemon-configuration} data type."
  42329. msgstr ""
  42330. #. type: deftp
  42331. #: guix-git/doc/guix.texi:27937
  42332. #, fuzzy, no-wrap
  42333. msgid "{Data Type} transmission-daemon-configuration"
  42334. msgstr "{数据类型} build-machine"
  42335. #. type: deftp
  42336. #: guix-git/doc/guix.texi:27941
  42337. 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."
  42338. msgstr ""
  42339. #. type: Plain text
  42340. #: guix-git/doc/guix.texi:27955
  42341. msgid "Available @code{transmission-daemon-configuration} fields are:"
  42342. msgstr ""
  42343. #. type: deftypevr
  42344. #: guix-git/doc/guix.texi:27956
  42345. #, no-wrap
  42346. msgid "{@code{transmission-daemon-configuration} parameter} package transmission"
  42347. msgstr ""
  42348. #. type: deftypevr
  42349. #: guix-git/doc/guix.texi:27958
  42350. #, fuzzy
  42351. msgid "The Transmission package to use."
  42352. msgstr "软件包数据类型。"
  42353. #. type: deftypevr
  42354. #: guix-git/doc/guix.texi:27961
  42355. #, no-wrap
  42356. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer stop-wait-period"
  42357. msgstr ""
  42358. #. type: deftypevr
  42359. #: guix-git/doc/guix.texi:27967
  42360. 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."
  42361. msgstr ""
  42362. #. type: deftypevr
  42363. #: guix-git/doc/guix.texi:27969 guix-git/doc/guix.texi:28341
  42364. #: guix-git/doc/guix.texi:36522 guix-git/doc/guix.texi:36757
  42365. #: guix-git/doc/guix.texi:36765 guix-git/doc/guix.texi:36773
  42366. msgid "Defaults to @samp{10}."
  42367. msgstr ""
  42368. #. type: deftypevr
  42369. #: guix-git/doc/guix.texi:27972
  42370. #, no-wrap
  42371. msgid "{@code{transmission-daemon-configuration} parameter} string download-dir"
  42372. msgstr ""
  42373. #. type: deftypevr
  42374. #: guix-git/doc/guix.texi:27974
  42375. msgid "The directory to which torrent files are downloaded."
  42376. msgstr ""
  42377. #. type: deftypevr
  42378. #: guix-git/doc/guix.texi:27976
  42379. msgid "Defaults to @samp{\"/var/lib/transmission-daemon/downloads\"}."
  42380. msgstr ""
  42381. #. type: deftypevr
  42382. #: guix-git/doc/guix.texi:27979
  42383. #, no-wrap
  42384. msgid "{@code{transmission-daemon-configuration} parameter} boolean incomplete-dir-enabled?"
  42385. msgstr ""
  42386. #. type: deftypevr
  42387. #: guix-git/doc/guix.texi:27984
  42388. 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}."
  42389. msgstr ""
  42390. #. type: deftypevr
  42391. #: guix-git/doc/guix.texi:27989
  42392. #, no-wrap
  42393. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string incomplete-dir"
  42394. msgstr ""
  42395. #. type: deftypevr
  42396. #: guix-git/doc/guix.texi:27992
  42397. msgid "The directory in which files from incompletely downloaded torrents will be held when @code{incomplete-dir-enabled?} is @code{#t}."
  42398. msgstr ""
  42399. #. type: deftypevr
  42400. #: guix-git/doc/guix.texi:27994 guix-git/doc/guix.texi:28038
  42401. #: guix-git/doc/guix.texi:28251 guix-git/doc/guix.texi:28307
  42402. #: guix-git/doc/guix.texi:28481 guix-git/doc/guix.texi:28492
  42403. #: guix-git/doc/guix.texi:28565 guix-git/doc/guix.texi:29439
  42404. #: guix-git/doc/guix.texi:29482 guix-git/doc/guix.texi:29490
  42405. #: guix-git/doc/guix.texi:29498 guix-git/doc/guix.texi:29506
  42406. #: guix-git/doc/guix.texi:29515 guix-git/doc/guix.texi:29523
  42407. #: guix-git/doc/guix.texi:29530 guix-git/doc/guix.texi:29538
  42408. #: guix-git/doc/guix.texi:29546 guix-git/doc/guix.texi:29556
  42409. #: guix-git/doc/guix.texi:29563 guix-git/doc/guix.texi:29587
  42410. #: guix-git/doc/guix.texi:29595 guix-git/doc/guix.texi:29621
  42411. #: guix-git/doc/guix.texi:29630 guix-git/doc/guix.texi:29639
  42412. #: guix-git/doc/guix.texi:29648 guix-git/doc/guix.texi:29657
  42413. #: guix-git/doc/guix.texi:29666 guix-git/doc/guix.texi:29674
  42414. #: guix-git/doc/guix.texi:29682 guix-git/doc/guix.texi:29689
  42415. #: guix-git/doc/guix.texi:29697 guix-git/doc/guix.texi:29704
  42416. #: guix-git/doc/guix.texi:29712 guix-git/doc/guix.texi:29720
  42417. #: guix-git/doc/guix.texi:29729 guix-git/doc/guix.texi:29738
  42418. #: guix-git/doc/guix.texi:29746 guix-git/doc/guix.texi:29754
  42419. #: guix-git/doc/guix.texi:29762 guix-git/doc/guix.texi:29773
  42420. #: guix-git/doc/guix.texi:29783 guix-git/doc/guix.texi:29794
  42421. #: guix-git/doc/guix.texi:29803 guix-git/doc/guix.texi:29813
  42422. #: guix-git/doc/guix.texi:29821 guix-git/doc/guix.texi:29832
  42423. #: guix-git/doc/guix.texi:29841 guix-git/doc/guix.texi:29851
  42424. #: guix-git/doc/guix.texi:33457 guix-git/doc/guix.texi:33464
  42425. #: guix-git/doc/guix.texi:33471 guix-git/doc/guix.texi:33478
  42426. #: guix-git/doc/guix.texi:33485 guix-git/doc/guix.texi:33492
  42427. #: guix-git/doc/guix.texi:33500 guix-git/doc/guix.texi:33508
  42428. #: guix-git/doc/guix.texi:33515 guix-git/doc/guix.texi:33522
  42429. #: guix-git/doc/guix.texi:33529 guix-git/doc/guix.texi:33536
  42430. #: guix-git/doc/guix.texi:33566 guix-git/doc/guix.texi:33604
  42431. #: guix-git/doc/guix.texi:33611 guix-git/doc/guix.texi:33620
  42432. #: guix-git/doc/guix.texi:33642 guix-git/doc/guix.texi:33650
  42433. #: guix-git/doc/guix.texi:33657 guix-git/doc/guix.texi:33686
  42434. #: guix-git/doc/guix.texi:33693 guix-git/doc/guix.texi:33700
  42435. #: guix-git/doc/guix.texi:33707 guix-git/doc/guix.texi:33840
  42436. #: guix-git/doc/guix.texi:33860 guix-git/doc/guix.texi:33875
  42437. #: guix-git/doc/guix.texi:33882 guix-git/doc/guix.texi:36894
  42438. #: guix-git/doc/guix.texi:36902 guix-git/doc/guix.texi:36910
  42439. #: guix-git/doc/guix.texi:36918 guix-git/doc/guix.texi:36926
  42440. #: guix-git/doc/guix.texi:36934
  42441. msgid "Defaults to @samp{disabled}."
  42442. msgstr ""
  42443. #. type: deftypevr
  42444. #: guix-git/doc/guix.texi:27997
  42445. #, no-wrap
  42446. msgid "{@code{transmission-daemon-configuration} parameter} umask umask"
  42447. msgstr ""
  42448. #. type: deftypevr
  42449. #: guix-git/doc/guix.texi:28000
  42450. msgid "The file mode creation mask used for downloaded files. (See the @command{umask} man page for more information.)"
  42451. msgstr ""
  42452. #. type: deftypevr
  42453. #: guix-git/doc/guix.texi:28002
  42454. msgid "Defaults to @samp{18}."
  42455. msgstr ""
  42456. #. type: deftypevr
  42457. #: guix-git/doc/guix.texi:28005
  42458. #, no-wrap
  42459. msgid "{@code{transmission-daemon-configuration} parameter} boolean rename-partial-files?"
  42460. msgstr ""
  42461. #. type: deftypevr
  42462. #: guix-git/doc/guix.texi:28008
  42463. msgid "When @code{#t}, ``.part'' is appended to the name of partially downloaded files."
  42464. msgstr ""
  42465. #. type: deftypevr
  42466. #: guix-git/doc/guix.texi:28013
  42467. #, no-wrap
  42468. msgid "{@code{transmission-daemon-configuration} parameter} preallocation-mode preallocation"
  42469. msgstr ""
  42470. #. type: deftypevr
  42471. #: guix-git/doc/guix.texi:28018
  42472. 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."
  42473. msgstr ""
  42474. #. type: deftypevr
  42475. #: guix-git/doc/guix.texi:28020
  42476. msgid "Defaults to @samp{fast}."
  42477. msgstr ""
  42478. #. type: deftypevr
  42479. #: guix-git/doc/guix.texi:28023
  42480. #, no-wrap
  42481. msgid "{@code{transmission-daemon-configuration} parameter} boolean watch-dir-enabled?"
  42482. msgstr ""
  42483. #. type: deftypevr
  42484. #: guix-git/doc/guix.texi:28028
  42485. 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})."
  42486. msgstr ""
  42487. #. type: deftypevr
  42488. #: guix-git/doc/guix.texi:28033
  42489. #, no-wrap
  42490. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string watch-dir"
  42491. msgstr ""
  42492. #. type: deftypevr
  42493. #: guix-git/doc/guix.texi:28036
  42494. msgid "The directory to be watched for @file{.torrent} files indicating new torrents to be added, when @code{watch-dir-enabled} is @code{#t}."
  42495. msgstr ""
  42496. #. type: deftypevr
  42497. #: guix-git/doc/guix.texi:28041
  42498. #, no-wrap
  42499. msgid "{@code{transmission-daemon-configuration} parameter} boolean trash-original-torrent-files?"
  42500. msgstr ""
  42501. #. type: deftypevr
  42502. #: guix-git/doc/guix.texi:28045
  42503. 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?})."
  42504. msgstr ""
  42505. #. type: deftypevr
  42506. #: guix-git/doc/guix.texi:28050
  42507. #, no-wrap
  42508. msgid "{@code{transmission-daemon-configuration} parameter} boolean speed-limit-down-enabled?"
  42509. msgstr ""
  42510. #. type: deftypevr
  42511. #: guix-git/doc/guix.texi:28053
  42512. msgid "When @code{#t}, the daemon's download speed will be limited to the rate specified by @code{speed-limit-down}."
  42513. msgstr ""
  42514. #. type: deftypevr
  42515. #: guix-git/doc/guix.texi:28058
  42516. #, no-wrap
  42517. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer speed-limit-down"
  42518. msgstr ""
  42519. #. type: deftypevr
  42520. #: guix-git/doc/guix.texi:28060
  42521. msgid "The default global-maximum download speed, in kilobytes per second."
  42522. msgstr ""
  42523. #. type: deftypevr
  42524. #: guix-git/doc/guix.texi:28065
  42525. #, no-wrap
  42526. msgid "{@code{transmission-daemon-configuration} parameter} boolean speed-limit-up-enabled?"
  42527. msgstr ""
  42528. #. type: deftypevr
  42529. #: guix-git/doc/guix.texi:28068
  42530. msgid "When @code{#t}, the daemon's upload speed will be limited to the rate specified by @code{speed-limit-up}."
  42531. msgstr ""
  42532. #. type: deftypevr
  42533. #: guix-git/doc/guix.texi:28073
  42534. #, no-wrap
  42535. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer speed-limit-up"
  42536. msgstr ""
  42537. #. type: deftypevr
  42538. #: guix-git/doc/guix.texi:28075
  42539. msgid "The default global-maximum upload speed, in kilobytes per second."
  42540. msgstr ""
  42541. #. type: deftypevr
  42542. #: guix-git/doc/guix.texi:28080
  42543. #, no-wrap
  42544. msgid "{@code{transmission-daemon-configuration} parameter} boolean alt-speed-enabled?"
  42545. msgstr ""
  42546. #. type: deftypevr
  42547. #: guix-git/doc/guix.texi:28086
  42548. 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?}."
  42549. msgstr ""
  42550. #. type: deftypevr
  42551. #: guix-git/doc/guix.texi:28091
  42552. #, no-wrap
  42553. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-down"
  42554. msgstr ""
  42555. #. type: deftypevr
  42556. #: guix-git/doc/guix.texi:28093
  42557. msgid "The alternate global-maximum download speed, in kilobytes per second."
  42558. msgstr ""
  42559. #. type: deftypevr
  42560. #: guix-git/doc/guix.texi:28095 guix-git/doc/guix.texi:28102
  42561. #: guix-git/doc/guix.texi:28274 guix-git/doc/guix.texi:36529
  42562. #: guix-git/doc/guix.texi:36544
  42563. msgid "Defaults to @samp{50}."
  42564. msgstr ""
  42565. #. type: deftypevr
  42566. #: guix-git/doc/guix.texi:28098
  42567. #, no-wrap
  42568. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-up"
  42569. msgstr ""
  42570. #. type: deftypevr
  42571. #: guix-git/doc/guix.texi:28100
  42572. msgid "The alternate global-maximum upload speed, in kilobytes per second."
  42573. msgstr ""
  42574. #. type: deftypevr
  42575. #: guix-git/doc/guix.texi:28105
  42576. #, no-wrap
  42577. msgid "{@code{transmission-daemon-configuration} parameter} boolean alt-speed-time-enabled?"
  42578. msgstr ""
  42579. #. type: deftypevr
  42580. #: guix-git/doc/guix.texi:28110
  42581. 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}."
  42582. msgstr ""
  42583. #. type: deftypevr
  42584. #: guix-git/doc/guix.texi:28115
  42585. #, no-wrap
  42586. msgid "{@code{transmission-daemon-configuration} parameter} day-list alt-speed-time-day"
  42587. msgstr ""
  42588. #. type: deftypevr
  42589. #: guix-git/doc/guix.texi:28120
  42590. 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}."
  42591. msgstr ""
  42592. #. type: deftypevr
  42593. #: guix-git/doc/guix.texi:28122
  42594. msgid "Defaults to @samp{all}."
  42595. msgstr ""
  42596. #. type: deftypevr
  42597. #: guix-git/doc/guix.texi:28125
  42598. #, no-wrap
  42599. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-time-begin"
  42600. msgstr ""
  42601. #. type: deftypevr
  42602. #: guix-git/doc/guix.texi:28128
  42603. msgid "The time of day at which to enable the alternate speed limits, expressed as a number of minutes since midnight."
  42604. msgstr ""
  42605. #. type: deftypevr
  42606. #: guix-git/doc/guix.texi:28130
  42607. msgid "Defaults to @samp{540}."
  42608. msgstr ""
  42609. #. type: deftypevr
  42610. #: guix-git/doc/guix.texi:28133
  42611. #, no-wrap
  42612. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-time-end"
  42613. msgstr ""
  42614. #. type: deftypevr
  42615. #: guix-git/doc/guix.texi:28136
  42616. msgid "The time of day at which to disable the alternate speed limits, expressed as a number of minutes since midnight."
  42617. msgstr ""
  42618. #. type: deftypevr
  42619. #: guix-git/doc/guix.texi:28138
  42620. msgid "Defaults to @samp{1020}."
  42621. msgstr ""
  42622. #. type: deftypevr
  42623. #: guix-git/doc/guix.texi:28141
  42624. #, no-wrap
  42625. msgid "{@code{transmission-daemon-configuration} parameter} string bind-address-ipv4"
  42626. msgstr ""
  42627. #. type: deftypevr
  42628. #: guix-git/doc/guix.texi:28144
  42629. msgid "The IP address at which to listen for peer connections, or ``0.0.0.0'' to listen at all available IP addresses."
  42630. msgstr ""
  42631. #. type: deftypevr
  42632. #: guix-git/doc/guix.texi:28146 guix-git/doc/guix.texi:28449
  42633. #: guix-git/doc/guix.texi:34367
  42634. msgid "Defaults to @samp{\"0.0.0.0\"}."
  42635. msgstr ""
  42636. #. type: deftypevr
  42637. #: guix-git/doc/guix.texi:28149
  42638. #, no-wrap
  42639. msgid "{@code{transmission-daemon-configuration} parameter} string bind-address-ipv6"
  42640. msgstr ""
  42641. #. type: deftypevr
  42642. #: guix-git/doc/guix.texi:28152
  42643. msgid "The IPv6 address at which to listen for peer connections, or ``::'' to listen at all available IPv6 addresses."
  42644. msgstr ""
  42645. #. type: deftypevr
  42646. #: guix-git/doc/guix.texi:28154
  42647. msgid "Defaults to @samp{\"::\"}."
  42648. msgstr ""
  42649. #. type: deftypevr
  42650. #: guix-git/doc/guix.texi:28157
  42651. #, no-wrap
  42652. msgid "{@code{transmission-daemon-configuration} parameter} boolean peer-port-random-on-start?"
  42653. msgstr ""
  42654. #. type: deftypevr
  42655. #: guix-git/doc/guix.texi:28163
  42656. 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}."
  42657. msgstr ""
  42658. #. type: deftypevr
  42659. #: guix-git/doc/guix.texi:28168
  42660. #, no-wrap
  42661. msgid "{@code{transmission-daemon-configuration} parameter} port-number peer-port-random-low"
  42662. msgstr ""
  42663. #. type: deftypevr
  42664. #: guix-git/doc/guix.texi:28171
  42665. msgid "The lowest selectable port number when @code{peer-port-random-on-start?} is @code{#t}."
  42666. msgstr ""
  42667. #. type: deftypevr
  42668. #: guix-git/doc/guix.texi:28173
  42669. msgid "Defaults to @samp{49152}."
  42670. msgstr ""
  42671. #. type: deftypevr
  42672. #: guix-git/doc/guix.texi:28176
  42673. #, no-wrap
  42674. msgid "{@code{transmission-daemon-configuration} parameter} port-number peer-port-random-high"
  42675. msgstr ""
  42676. #. type: deftypevr
  42677. #: guix-git/doc/guix.texi:28179
  42678. msgid "The highest selectable port number when @code{peer-port-random-on-start} is @code{#t}."
  42679. msgstr ""
  42680. #. type: deftypevr
  42681. #: guix-git/doc/guix.texi:28181
  42682. msgid "Defaults to @samp{65535}."
  42683. msgstr ""
  42684. #. type: deftypevr
  42685. #: guix-git/doc/guix.texi:28184
  42686. #, no-wrap
  42687. msgid "{@code{transmission-daemon-configuration} parameter} port-number peer-port"
  42688. msgstr ""
  42689. #. type: deftypevr
  42690. #: guix-git/doc/guix.texi:28187
  42691. msgid "The port on which to listen for peer connections when @code{peer-port-random-on-start?} is @code{#f}."
  42692. msgstr ""
  42693. #. type: deftypevr
  42694. #: guix-git/doc/guix.texi:28189
  42695. msgid "Defaults to @samp{51413}."
  42696. msgstr ""
  42697. #. type: deftypevr
  42698. #: guix-git/doc/guix.texi:28192
  42699. #, no-wrap
  42700. msgid "{@code{transmission-daemon-configuration} parameter} boolean port-forwarding-enabled?"
  42701. msgstr ""
  42702. #. type: deftypevr
  42703. #: guix-git/doc/guix.texi:28196
  42704. msgid "If @code{#t}, the daemon will attempt to configure port-forwarding on an upstream gateway automatically using @acronym{UPnP} and @acronym{NAT-PMP}."
  42705. msgstr ""
  42706. #. type: deftypevr
  42707. #: guix-git/doc/guix.texi:28201
  42708. #, no-wrap
  42709. msgid "{@code{transmission-daemon-configuration} parameter} encryption-mode encryption"
  42710. msgstr ""
  42711. #. type: deftypevr
  42712. #: guix-git/doc/guix.texi:28206
  42713. msgid "The encryption preference for peer connections, one of @code{prefer-unencrypted-connections}, @code{prefer-encrypted-connections} or @code{require-encrypted-connections}."
  42714. msgstr ""
  42715. #. type: deftypevr
  42716. #: guix-git/doc/guix.texi:28208
  42717. msgid "Defaults to @samp{prefer-encrypted-connections}."
  42718. msgstr ""
  42719. #. type: deftypevr
  42720. #: guix-git/doc/guix.texi:28211
  42721. #, no-wrap
  42722. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string peer-congestion-algorithm"
  42723. msgstr ""
  42724. #. type: deftypevr
  42725. #: guix-git/doc/guix.texi:28216
  42726. 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}. When left unspecified, the operating-system default is used."
  42727. msgstr ""
  42728. #. type: deftypevr
  42729. #: guix-git/doc/guix.texi:28225
  42730. 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."
  42731. msgstr ""
  42732. #. type: deftypevr
  42733. #: guix-git/doc/guix.texi:28233
  42734. 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:"
  42735. msgstr ""
  42736. #. type: lisp
  42737. #: guix-git/doc/guix.texi:28240
  42738. #, no-wrap
  42739. msgid ""
  42740. "(service sysctl-service-type\n"
  42741. " (sysctl-configuration\n"
  42742. " (settings\n"
  42743. " (\"net.ipv4.tcp_allowed_congestion_control\" .\n"
  42744. " \"reno cubic lp\"))))\n"
  42745. msgstr ""
  42746. #. type: deftypevr
  42747. #: guix-git/doc/guix.texi:28243
  42748. msgid "The Transmission Daemon configuration can then be updated with"
  42749. msgstr ""
  42750. #. type: lisp
  42751. #: guix-git/doc/guix.texi:28246
  42752. #, no-wrap
  42753. msgid "(peer-congestion-algorithm \"lp\")\n"
  42754. msgstr ""
  42755. #. type: deftypevr
  42756. #: guix-git/doc/guix.texi:28249
  42757. msgid "and the system reconfigured to have the changes take effect."
  42758. msgstr ""
  42759. #. type: deftypevr
  42760. #: guix-git/doc/guix.texi:28254
  42761. #, no-wrap
  42762. msgid "{@code{transmission-daemon-configuration} parameter} tcp-type-of-service peer-socket-tos"
  42763. msgstr ""
  42764. #. type: deftypevr
  42765. #: guix-git/doc/guix.texi:28258
  42766. 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}."
  42767. msgstr ""
  42768. #. type: deftypevr
  42769. #: guix-git/doc/guix.texi:28260
  42770. msgid "Defaults to @samp{default}."
  42771. msgstr ""
  42772. #. type: deftypevr
  42773. #: guix-git/doc/guix.texi:28263
  42774. #, no-wrap
  42775. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer peer-limit-global"
  42776. msgstr ""
  42777. #. type: deftypevr
  42778. #: guix-git/doc/guix.texi:28265
  42779. msgid "The global limit on the number of connected peers."
  42780. msgstr ""
  42781. #. type: deftypevr
  42782. #: guix-git/doc/guix.texi:28267
  42783. msgid "Defaults to @samp{200}."
  42784. msgstr ""
  42785. #. type: deftypevr
  42786. #: guix-git/doc/guix.texi:28270
  42787. #, no-wrap
  42788. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer peer-limit-per-torrent"
  42789. msgstr ""
  42790. #. type: deftypevr
  42791. #: guix-git/doc/guix.texi:28272
  42792. msgid "The per-torrent limit on the number of connected peers."
  42793. msgstr ""
  42794. #. type: deftypevr
  42795. #: guix-git/doc/guix.texi:28277
  42796. #, no-wrap
  42797. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer upload-slots-per-torrent"
  42798. msgstr ""
  42799. #. type: deftypevr
  42800. #: guix-git/doc/guix.texi:28280
  42801. msgid "The maximum number of peers to which the daemon will upload data simultaneously for each torrent."
  42802. msgstr ""
  42803. #. type: deftypevr
  42804. #: guix-git/doc/guix.texi:28282
  42805. msgid "Defaults to @samp{14}."
  42806. msgstr ""
  42807. #. type: deftypevr
  42808. #: guix-git/doc/guix.texi:28285
  42809. #, no-wrap
  42810. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer peer-id-ttl-hours"
  42811. msgstr ""
  42812. #. type: deftypevr
  42813. #: guix-git/doc/guix.texi:28288
  42814. msgid "The maximum lifespan, in hours, of the peer ID associated with each public torrent before it is regenerated."
  42815. msgstr ""
  42816. #. type: deftypevr
  42817. #: guix-git/doc/guix.texi:28290
  42818. msgid "Defaults to @samp{6}."
  42819. msgstr ""
  42820. #. type: deftypevr
  42821. #: guix-git/doc/guix.texi:28293
  42822. #, no-wrap
  42823. msgid "{@code{transmission-daemon-configuration} parameter} boolean blocklist-enabled?"
  42824. msgstr ""
  42825. #. type: deftypevr
  42826. #: guix-git/doc/guix.texi:28296
  42827. msgid "When @code{#t}, the daemon will ignore peers mentioned in the blocklist it has most recently downloaded from @code{blocklist-url}."
  42828. msgstr ""
  42829. #. type: deftypevr
  42830. #: guix-git/doc/guix.texi:28301
  42831. #, no-wrap
  42832. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string blocklist-url"
  42833. msgstr ""
  42834. #. type: deftypevr
  42835. #: guix-git/doc/guix.texi:28305
  42836. 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}."
  42837. msgstr ""
  42838. #. type: deftypevr
  42839. #: guix-git/doc/guix.texi:28310
  42840. #, no-wrap
  42841. msgid "{@code{transmission-daemon-configuration} parameter} boolean download-queue-enabled?"
  42842. msgstr ""
  42843. #. type: deftypevr
  42844. #: guix-git/doc/guix.texi:28313
  42845. msgid "If @code{#t}, the daemon will be limited to downloading at most @code{download-queue-size} non-stalled torrents simultaneously."
  42846. msgstr ""
  42847. #. type: deftypevr
  42848. #: guix-git/doc/guix.texi:28318
  42849. #, no-wrap
  42850. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer download-queue-size"
  42851. msgstr ""
  42852. #. type: deftypevr
  42853. #: guix-git/doc/guix.texi:28322
  42854. 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}."
  42855. msgstr ""
  42856. #. type: deftypevr
  42857. #: guix-git/doc/guix.texi:28327
  42858. #, no-wrap
  42859. msgid "{@code{transmission-daemon-configuration} parameter} boolean seed-queue-enabled?"
  42860. msgstr ""
  42861. #. type: deftypevr
  42862. #: guix-git/doc/guix.texi:28330
  42863. msgid "If @code{#t}, the daemon will be limited to seeding at most @code{seed-queue-size} non-stalled torrents simultaneously."
  42864. msgstr ""
  42865. #. type: deftypevr
  42866. #: guix-git/doc/guix.texi:28335
  42867. #, no-wrap
  42868. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer seed-queue-size"
  42869. msgstr ""
  42870. #. type: deftypevr
  42871. #: guix-git/doc/guix.texi:28339
  42872. 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}."
  42873. msgstr ""
  42874. #. type: deftypevr
  42875. #: guix-git/doc/guix.texi:28344
  42876. #, no-wrap
  42877. msgid "{@code{transmission-daemon-configuration} parameter} boolean queue-stalled-enabled?"
  42878. msgstr ""
  42879. #. type: deftypevr
  42880. #: guix-git/doc/guix.texi:28349
  42881. 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."
  42882. msgstr ""
  42883. #. type: deftypevr
  42884. #: guix-git/doc/guix.texi:28354
  42885. #, no-wrap
  42886. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer queue-stalled-minutes"
  42887. msgstr ""
  42888. #. type: deftypevr
  42889. #: guix-git/doc/guix.texi:28358
  42890. 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}."
  42891. msgstr ""
  42892. #. type: deftypevr
  42893. #: guix-git/doc/guix.texi:28363
  42894. #, no-wrap
  42895. msgid "{@code{transmission-daemon-configuration} parameter} boolean ratio-limit-enabled?"
  42896. msgstr ""
  42897. #. type: deftypevr
  42898. #: guix-git/doc/guix.texi:28366
  42899. msgid "When @code{#t}, a torrent being seeded will automatically be paused once it reaches the ratio specified by @code{ratio-limit}."
  42900. msgstr ""
  42901. #. type: deftypevr
  42902. #: guix-git/doc/guix.texi:28371
  42903. #, no-wrap
  42904. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-rational ratio-limit"
  42905. msgstr ""
  42906. #. type: deftypevr
  42907. #: guix-git/doc/guix.texi:28374
  42908. msgid "The ratio at which a torrent being seeded will be paused, when @code{ratio-limit-enabled?} is @code{#t}."
  42909. msgstr ""
  42910. #. type: deftypevr
  42911. #: guix-git/doc/guix.texi:28376
  42912. msgid "Defaults to @samp{2.0}."
  42913. msgstr ""
  42914. #. type: deftypevr
  42915. #: guix-git/doc/guix.texi:28379
  42916. #, no-wrap
  42917. msgid "{@code{transmission-daemon-configuration} parameter} boolean idle-seeding-limit-enabled?"
  42918. msgstr ""
  42919. #. type: deftypevr
  42920. #: guix-git/doc/guix.texi:28382
  42921. msgid "When @code{#t}, a torrent being seeded will automatically be paused once it has been idle for @code{idle-seeding-limit} minutes."
  42922. msgstr ""
  42923. #. type: deftypevr
  42924. #: guix-git/doc/guix.texi:28387
  42925. #, no-wrap
  42926. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer idle-seeding-limit"
  42927. msgstr ""
  42928. #. type: deftypevr
  42929. #: guix-git/doc/guix.texi:28391
  42930. 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}."
  42931. msgstr ""
  42932. #. type: deftypevr
  42933. #: guix-git/doc/guix.texi:28396
  42934. #, no-wrap
  42935. msgid "{@code{transmission-daemon-configuration} parameter} boolean dht-enabled?"
  42936. msgstr ""
  42937. #. type: deftypevr
  42938. #: guix-git/doc/guix.texi:28400
  42939. msgid "Enable @uref{http://bittorrent.org/beps/bep_0005.html,the distributed hash table (@acronym{DHT}) protocol}, which supports the use of trackerless torrents."
  42940. msgstr ""
  42941. #. type: deftypevr
  42942. #: guix-git/doc/guix.texi:28405
  42943. #, no-wrap
  42944. msgid "{@code{transmission-daemon-configuration} parameter} boolean lpd-enabled?"
  42945. msgstr ""
  42946. #. type: deftypevr
  42947. #: guix-git/doc/guix.texi:28410
  42948. 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."
  42949. msgstr ""
  42950. #. type: deftypevr
  42951. #: guix-git/doc/guix.texi:28415
  42952. #, no-wrap
  42953. msgid "{@code{transmission-daemon-configuration} parameter} boolean pex-enabled?"
  42954. msgstr ""
  42955. #. type: deftypevr
  42956. #: guix-git/doc/guix.texi:28419
  42957. 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."
  42958. msgstr ""
  42959. #. type: deftypevr
  42960. #: guix-git/doc/guix.texi:28424
  42961. #, no-wrap
  42962. msgid "{@code{transmission-daemon-configuration} parameter} boolean utp-enabled?"
  42963. msgstr ""
  42964. #. type: deftypevr
  42965. #: guix-git/doc/guix.texi:28429
  42966. 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."
  42967. msgstr ""
  42968. #. type: deftypevr
  42969. #: guix-git/doc/guix.texi:28434
  42970. #, no-wrap
  42971. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-enabled?"
  42972. msgstr ""
  42973. #. type: deftypevr
  42974. #: guix-git/doc/guix.texi:28439
  42975. 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."
  42976. msgstr ""
  42977. #. type: deftypevr
  42978. #: guix-git/doc/guix.texi:28444
  42979. #, no-wrap
  42980. msgid "{@code{transmission-daemon-configuration} parameter} string rpc-bind-address"
  42981. msgstr ""
  42982. #. type: deftypevr
  42983. #: guix-git/doc/guix.texi:28447
  42984. msgid "The IP address at which to listen for @acronym{RPC} connections, or ``0.0.0.0'' to listen at all available IP addresses."
  42985. msgstr ""
  42986. #. type: deftypevr
  42987. #: guix-git/doc/guix.texi:28452
  42988. #, no-wrap
  42989. msgid "{@code{transmission-daemon-configuration} parameter} port-number rpc-port"
  42990. msgstr ""
  42991. #. type: deftypevr
  42992. #: guix-git/doc/guix.texi:28454
  42993. msgid "The port on which to listen for @acronym{RPC} connections."
  42994. msgstr ""
  42995. #. type: deftypevr
  42996. #: guix-git/doc/guix.texi:28456
  42997. msgid "Defaults to @samp{9091}."
  42998. msgstr ""
  42999. #. type: deftypevr
  43000. #: guix-git/doc/guix.texi:28459
  43001. #, no-wrap
  43002. msgid "{@code{transmission-daemon-configuration} parameter} string rpc-url"
  43003. msgstr ""
  43004. #. type: deftypevr
  43005. #: guix-git/doc/guix.texi:28461
  43006. msgid "The path prefix to use in the @acronym{RPC}-endpoint @acronym{URL}."
  43007. msgstr ""
  43008. #. type: deftypevr
  43009. #: guix-git/doc/guix.texi:28463
  43010. msgid "Defaults to @samp{\"/transmission/\"}."
  43011. msgstr ""
  43012. #. type: deftypevr
  43013. #: guix-git/doc/guix.texi:28466
  43014. #, no-wrap
  43015. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-authentication-required?"
  43016. msgstr ""
  43017. #. type: deftypevr
  43018. #: guix-git/doc/guix.texi:28471
  43019. 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?}."
  43020. msgstr ""
  43021. #. type: deftypevr
  43022. #: guix-git/doc/guix.texi:28476
  43023. #, no-wrap
  43024. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string rpc-username"
  43025. msgstr ""
  43026. #. type: deftypevr
  43027. #: guix-git/doc/guix.texi:28479
  43028. msgid "The username required by clients to access the @acronym{RPC} interface when @code{rpc-authentication-required?} is @code{#t}."
  43029. msgstr ""
  43030. #. type: deftypevr
  43031. #: guix-git/doc/guix.texi:28484
  43032. #, no-wrap
  43033. msgid "{@code{transmission-daemon-configuration} parameter} maybe-transmission-password-hash rpc-password"
  43034. msgstr ""
  43035. #. type: deftypevr
  43036. #: guix-git/doc/guix.texi:28490
  43037. 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."
  43038. msgstr ""
  43039. #. type: deftypevr
  43040. #: guix-git/doc/guix.texi:28495
  43041. #, no-wrap
  43042. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-whitelist-enabled?"
  43043. msgstr ""
  43044. #. type: deftypevr
  43045. #: guix-git/doc/guix.texi:28498
  43046. msgid "When @code{#t}, @acronym{RPC} requests will be accepted only when they originate from an address specified in @code{rpc-whitelist}."
  43047. msgstr ""
  43048. #. type: deftypevr
  43049. #: guix-git/doc/guix.texi:28503
  43050. #, no-wrap
  43051. msgid "{@code{transmission-daemon-configuration} parameter} string-list rpc-whitelist"
  43052. msgstr ""
  43053. #. type: deftypevr
  43054. #: guix-git/doc/guix.texi:28507
  43055. 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{*}."
  43056. msgstr ""
  43057. #. type: deftypevr
  43058. #: guix-git/doc/guix.texi:28509
  43059. msgid "Defaults to @samp{'(\"127.0.0.1\" \"::1\")}."
  43060. msgstr ""
  43061. #. type: deftypevr
  43062. #: guix-git/doc/guix.texi:28512
  43063. #, no-wrap
  43064. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-host-whitelist-enabled?"
  43065. msgstr ""
  43066. #. type: deftypevr
  43067. #: guix-git/doc/guix.texi:28517
  43068. 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."
  43069. msgstr ""
  43070. #. type: deftypevr
  43071. #: guix-git/doc/guix.texi:28520
  43072. msgid "Note also this functionality is disabled when @code{rpc-authentication-required?} is @code{#t}."
  43073. msgstr ""
  43074. #. type: deftypevr
  43075. #: guix-git/doc/guix.texi:28525
  43076. #, no-wrap
  43077. msgid "{@code{transmission-daemon-configuration} parameter} string-list rpc-host-whitelist"
  43078. msgstr ""
  43079. #. type: deftypevr
  43080. #: guix-git/doc/guix.texi:28528
  43081. msgid "The list of host names recognized by the @acronym{RPC} server when @code{rpc-host-whitelist-enabled?} is @code{#t}."
  43082. msgstr ""
  43083. #. type: deftypevr
  43084. #: guix-git/doc/guix.texi:28533
  43085. #, no-wrap
  43086. msgid "{@code{transmission-daemon-configuration} parameter} message-level message-level"
  43087. msgstr ""
  43088. #. type: deftypevr
  43089. #: guix-git/doc/guix.texi:28537
  43090. 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}."
  43091. msgstr ""
  43092. #. type: deftypevr
  43093. #: guix-git/doc/guix.texi:28542
  43094. #, no-wrap
  43095. msgid "{@code{transmission-daemon-configuration} parameter} boolean start-added-torrents?"
  43096. msgstr ""
  43097. #. type: deftypevr
  43098. #: guix-git/doc/guix.texi:28545
  43099. msgid "When @code{#t}, torrents are started as soon as they are added; otherwise, they are added in ``paused'' state."
  43100. msgstr ""
  43101. #. type: deftypevr
  43102. #: guix-git/doc/guix.texi:28550
  43103. #, no-wrap
  43104. msgid "{@code{transmission-daemon-configuration} parameter} boolean script-torrent-done-enabled?"
  43105. msgstr ""
  43106. #. type: deftypevr
  43107. #: guix-git/doc/guix.texi:28554
  43108. msgid "When @code{#t}, the script specified by @code{script-torrent-done-filename} will be invoked each time a torrent completes."
  43109. msgstr ""
  43110. #. type: deftypevr
  43111. #: guix-git/doc/guix.texi:28559
  43112. #, no-wrap
  43113. msgid "{@code{transmission-daemon-configuration} parameter} maybe-file-object script-torrent-done-filename"
  43114. msgstr ""
  43115. #. type: deftypevr
  43116. #: guix-git/doc/guix.texi:28563
  43117. 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}."
  43118. msgstr ""
  43119. #. type: deftypevr
  43120. #: guix-git/doc/guix.texi:28568
  43121. #, no-wrap
  43122. msgid "{@code{transmission-daemon-configuration} parameter} boolean scrape-paused-torrents-enabled?"
  43123. msgstr ""
  43124. #. type: deftypevr
  43125. #: guix-git/doc/guix.texi:28571
  43126. msgid "When @code{#t}, the daemon will scrape trackers for a torrent even when the torrent is paused."
  43127. msgstr ""
  43128. #. type: deftypevr
  43129. #: guix-git/doc/guix.texi:28576
  43130. #, no-wrap
  43131. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer cache-size-mb"
  43132. msgstr ""
  43133. #. type: deftypevr
  43134. #: guix-git/doc/guix.texi:28580
  43135. 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."
  43136. msgstr ""
  43137. #. type: deftypevr
  43138. #: guix-git/doc/guix.texi:28582
  43139. msgid "Defaults to @samp{4}."
  43140. msgstr ""
  43141. #. type: deftypevr
  43142. #: guix-git/doc/guix.texi:28585
  43143. #, no-wrap
  43144. msgid "{@code{transmission-daemon-configuration} parameter} boolean prefetch-enabled?"
  43145. msgstr ""
  43146. #. type: deftypevr
  43147. #: guix-git/doc/guix.texi:28589
  43148. 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."
  43149. msgstr ""
  43150. #. type: subsubheading
  43151. #: guix-git/doc/guix.texi:28602
  43152. #, no-wrap
  43153. msgid "Tailon Service"
  43154. msgstr ""
  43155. #. type: Plain text
  43156. #: guix-git/doc/guix.texi:28606
  43157. msgid "@uref{https://tailon.readthedocs.io/, Tailon} is a web application for viewing and searching log files."
  43158. msgstr ""
  43159. #. type: Plain text
  43160. #: guix-git/doc/guix.texi:28609
  43161. msgid "The following example will configure the service with default values. By default, Tailon can be accessed on port 8080 (@code{http://localhost:8080})."
  43162. msgstr ""
  43163. #. type: lisp
  43164. #: guix-git/doc/guix.texi:28612
  43165. #, no-wrap
  43166. msgid "(service tailon-service-type)\n"
  43167. msgstr ""
  43168. #. type: Plain text
  43169. #: guix-git/doc/guix.texi:28616
  43170. msgid "The following example customises more of the Tailon configuration, adding @command{sed} to the list of allowed commands."
  43171. msgstr ""
  43172. #. type: lisp
  43173. #: guix-git/doc/guix.texi:28623
  43174. #, no-wrap
  43175. msgid ""
  43176. "(service tailon-service-type\n"
  43177. " (tailon-configuration\n"
  43178. " (config-file\n"
  43179. " (tailon-configuration-file\n"
  43180. " (allowed-commands '(\"tail\" \"grep\" \"awk\" \"sed\"))))))\n"
  43181. msgstr ""
  43182. #. type: deftp
  43183. #: guix-git/doc/guix.texi:28626
  43184. #, no-wrap
  43185. msgid "{Data Type} tailon-configuration"
  43186. msgstr ""
  43187. #. type: deftp
  43188. #: guix-git/doc/guix.texi:28629
  43189. msgid "Data type representing the configuration of Tailon. This type has the following parameters:"
  43190. msgstr ""
  43191. #. type: item
  43192. #: guix-git/doc/guix.texi:28631
  43193. #, no-wrap
  43194. msgid "@code{config-file} (default: @code{(tailon-configuration-file)})"
  43195. msgstr ""
  43196. #. type: table
  43197. #: guix-git/doc/guix.texi:28635
  43198. 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})."
  43199. msgstr ""
  43200. #. type: table
  43201. #: guix-git/doc/guix.texi:28638
  43202. msgid "For example, to instead use a local file, the @code{local-file} function can be used:"
  43203. msgstr ""
  43204. #. type: lisp
  43205. #: guix-git/doc/guix.texi:28643
  43206. #, no-wrap
  43207. msgid ""
  43208. "(service tailon-service-type\n"
  43209. " (tailon-configuration\n"
  43210. " (config-file (local-file \"./my-tailon.conf\"))))\n"
  43211. msgstr ""
  43212. #. type: item
  43213. #: guix-git/doc/guix.texi:28645
  43214. #, no-wrap
  43215. msgid "@code{package} (default: @code{tailon})"
  43216. msgstr ""
  43217. #. type: table
  43218. #: guix-git/doc/guix.texi:28647
  43219. msgid "The tailon package to use."
  43220. msgstr ""
  43221. #. type: deftp
  43222. #: guix-git/doc/guix.texi:28651
  43223. #, no-wrap
  43224. msgid "{Data Type} tailon-configuration-file"
  43225. msgstr ""
  43226. #. type: deftp
  43227. #: guix-git/doc/guix.texi:28654
  43228. msgid "Data type representing the configuration options for Tailon. This type has the following parameters:"
  43229. msgstr ""
  43230. #. type: item
  43231. #: guix-git/doc/guix.texi:28656
  43232. #, no-wrap
  43233. msgid "@code{files} (default: @code{(list \"/var/log\")})"
  43234. msgstr ""
  43235. #. type: table
  43236. #: guix-git/doc/guix.texi:28661
  43237. 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."
  43238. msgstr ""
  43239. #. type: item
  43240. #: guix-git/doc/guix.texi:28662
  43241. #, no-wrap
  43242. msgid "@code{bind} (default: @code{\"localhost:8080\"})"
  43243. msgstr ""
  43244. #. type: table
  43245. #: guix-git/doc/guix.texi:28664
  43246. msgid "Address and port to which Tailon should bind on."
  43247. msgstr ""
  43248. #. type: item
  43249. #: guix-git/doc/guix.texi:28665
  43250. #, no-wrap
  43251. msgid "@code{relative-root} (default: @code{#f})"
  43252. msgstr ""
  43253. #. type: table
  43254. #: guix-git/doc/guix.texi:28667
  43255. msgid "URL path to use for Tailon, set to @code{#f} to not use a path."
  43256. msgstr ""
  43257. #. type: item
  43258. #: guix-git/doc/guix.texi:28668
  43259. #, no-wrap
  43260. msgid "@code{allow-transfers?} (default: @code{#t})"
  43261. msgstr ""
  43262. #. type: table
  43263. #: guix-git/doc/guix.texi:28670
  43264. msgid "Allow downloading the log files in the web interface."
  43265. msgstr ""
  43266. #. type: item
  43267. #: guix-git/doc/guix.texi:28671
  43268. #, no-wrap
  43269. msgid "@code{follow-names?} (default: @code{#t})"
  43270. msgstr ""
  43271. #. type: table
  43272. #: guix-git/doc/guix.texi:28673
  43273. msgid "Allow tailing of not-yet existent files."
  43274. msgstr ""
  43275. #. type: item
  43276. #: guix-git/doc/guix.texi:28674
  43277. #, no-wrap
  43278. msgid "@code{tail-lines} (default: @code{200})"
  43279. msgstr ""
  43280. #. type: table
  43281. #: guix-git/doc/guix.texi:28676
  43282. msgid "Number of lines to read initially from each file."
  43283. msgstr ""
  43284. #. type: item
  43285. #: guix-git/doc/guix.texi:28677
  43286. #, no-wrap
  43287. msgid "@code{allowed-commands} (default: @code{(list \"tail\" \"grep\" \"awk\")})"
  43288. msgstr ""
  43289. #. type: table
  43290. #: guix-git/doc/guix.texi:28679
  43291. msgid "Commands to allow running. By default, @code{sed} is disabled."
  43292. msgstr ""
  43293. #. type: table
  43294. #: guix-git/doc/guix.texi:28682
  43295. msgid "Set @code{debug?} to @code{#t} to show debug messages."
  43296. msgstr ""
  43297. #. type: item
  43298. #: guix-git/doc/guix.texi:28683
  43299. #, no-wrap
  43300. msgid "@code{wrap-lines} (default: @code{#t})"
  43301. msgstr ""
  43302. #. type: table
  43303. #: guix-git/doc/guix.texi:28687
  43304. 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."
  43305. msgstr ""
  43306. #. type: item
  43307. #: guix-git/doc/guix.texi:28688
  43308. #, no-wrap
  43309. msgid "@code{http-auth} (default: @code{#f})"
  43310. msgstr ""
  43311. #. type: table
  43312. #: guix-git/doc/guix.texi:28692
  43313. msgid "HTTP authentication type to use. Set to @code{#f} to disable authentication (the default). Supported values are @code{\"digest\"} or @code{\"basic\"}."
  43314. msgstr ""
  43315. #. type: item
  43316. #: guix-git/doc/guix.texi:28693
  43317. #, no-wrap
  43318. msgid "@code{users} (default: @code{#f})"
  43319. msgstr ""
  43320. #. type: table
  43321. #: guix-git/doc/guix.texi:28698
  43322. 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."
  43323. msgstr ""
  43324. #. type: lisp
  43325. #: guix-git/doc/guix.texi:28704
  43326. #, no-wrap
  43327. msgid ""
  43328. "(tailon-configuration-file\n"
  43329. " (http-auth \"basic\")\n"
  43330. " (users '((\"user1\" . \"password1\")\n"
  43331. " (\"user2\" . \"password2\"))))\n"
  43332. msgstr ""
  43333. #. type: subsubheading
  43334. #: guix-git/doc/guix.texi:28710
  43335. #, no-wrap
  43336. msgid "Darkstat Service"
  43337. msgstr ""
  43338. #. type: cindex
  43339. #: guix-git/doc/guix.texi:28711
  43340. #, no-wrap
  43341. msgid "darkstat"
  43342. msgstr ""
  43343. #. type: Plain text
  43344. #: guix-git/doc/guix.texi:28714
  43345. msgid "Darkstat is a packet sniffer that captures network traffic, calculates statistics about usage, and serves reports over HTTP."
  43346. msgstr ""
  43347. #. type: defvar
  43348. #: guix-git/doc/guix.texi:28715
  43349. #, fuzzy, no-wrap
  43350. msgid "darkstat-service-type"
  43351. msgstr "邮件服务"
  43352. #. type: defvar
  43353. #: guix-git/doc/guix.texi:28720
  43354. 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:"
  43355. msgstr ""
  43356. #. type: lisp
  43357. #: guix-git/doc/guix.texi:28725
  43358. #, no-wrap
  43359. msgid ""
  43360. "(service darkstat-service-type\n"
  43361. " (darkstat-configuration\n"
  43362. " (interface \"eno1\")))\n"
  43363. msgstr ""
  43364. #. type: deftp
  43365. #: guix-git/doc/guix.texi:28728
  43366. #, no-wrap
  43367. msgid "{Data Type} darkstat-configuration"
  43368. msgstr ""
  43369. #. type: deftp
  43370. #: guix-git/doc/guix.texi:28730
  43371. msgid "Data type representing the configuration of @command{darkstat}."
  43372. msgstr ""
  43373. #. type: item
  43374. #: guix-git/doc/guix.texi:28732
  43375. #, no-wrap
  43376. msgid "@code{package} (default: @code{darkstat})"
  43377. msgstr ""
  43378. #. type: table
  43379. #: guix-git/doc/guix.texi:28734
  43380. msgid "The darkstat package to use."
  43381. msgstr ""
  43382. #. type: code{#1}
  43383. #: guix-git/doc/guix.texi:28735
  43384. #, no-wrap
  43385. msgid "interface"
  43386. msgstr ""
  43387. #. type: table
  43388. #: guix-git/doc/guix.texi:28737
  43389. msgid "Capture traffic on the specified network interface."
  43390. msgstr ""
  43391. #. type: item
  43392. #: guix-git/doc/guix.texi:28738
  43393. #, no-wrap
  43394. msgid "@code{port} (default: @code{\"667\"})"
  43395. msgstr ""
  43396. #. type: table
  43397. #: guix-git/doc/guix.texi:28740
  43398. msgid "Bind the web interface to the specified port."
  43399. msgstr ""
  43400. #. type: table
  43401. #: guix-git/doc/guix.texi:28743 guix-git/doc/guix.texi:28779
  43402. msgid "Bind the web interface to the specified address."
  43403. msgstr ""
  43404. #. type: item
  43405. #: guix-git/doc/guix.texi:28744
  43406. #, no-wrap
  43407. msgid "@code{base} (default: @code{\"/\"})"
  43408. msgstr ""
  43409. #. type: table
  43410. #: guix-git/doc/guix.texi:28747
  43411. msgid "Specify the path of the base URL@. This can be useful if @command{darkstat} is accessed via a reverse proxy."
  43412. msgstr ""
  43413. #. type: cindex
  43414. #: guix-git/doc/guix.texi:28752 guix-git/doc/guix.texi:28753
  43415. #, no-wrap
  43416. msgid "prometheus-node-exporter"
  43417. msgstr ""
  43418. #. type: subsubheading
  43419. #: guix-git/doc/guix.texi:28752
  43420. #, no-wrap
  43421. msgid "Prometheus Node Exporter Service"
  43422. msgstr ""
  43423. #. type: Plain text
  43424. #: guix-git/doc/guix.texi:28759
  43425. 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."
  43426. msgstr ""
  43427. #. type: defvar
  43428. #: guix-git/doc/guix.texi:28760
  43429. #, fuzzy, no-wrap
  43430. msgid "prometheus-node-exporter-service-type"
  43431. msgstr "邮件服务"
  43432. #. type: defvar
  43433. #: guix-git/doc/guix.texi:28764
  43434. 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}."
  43435. msgstr ""
  43436. #. type: lisp
  43437. #: guix-git/doc/guix.texi:28767
  43438. #, no-wrap
  43439. msgid "(service prometheus-node-exporter-service-type)\n"
  43440. msgstr ""
  43441. #. type: deftp
  43442. #: guix-git/doc/guix.texi:28770
  43443. #, no-wrap
  43444. msgid "{Data Type} prometheus-node-exporter-configuration"
  43445. msgstr ""
  43446. #. type: deftp
  43447. #: guix-git/doc/guix.texi:28772
  43448. msgid "Data type representing the configuration of @command{node_exporter}."
  43449. msgstr ""
  43450. #. type: item
  43451. #: guix-git/doc/guix.texi:28774
  43452. #, no-wrap
  43453. msgid "@code{package} (default: @code{go-github-com-prometheus-node-exporter})"
  43454. msgstr ""
  43455. #. type: table
  43456. #: guix-git/doc/guix.texi:28776
  43457. msgid "The prometheus-node-exporter package to use."
  43458. msgstr ""
  43459. #. type: item
  43460. #: guix-git/doc/guix.texi:28777
  43461. #, no-wrap
  43462. msgid "@code{web-listen-address} (default: @code{\":9100\"})"
  43463. msgstr ""
  43464. #. type: item
  43465. #: guix-git/doc/guix.texi:28780
  43466. #, fuzzy, no-wrap
  43467. msgid "@code{textfile-directory} (default: @code{\"/var/lib/prometheus/node-exporter\"})"
  43468. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  43469. #. type: table
  43470. #: guix-git/doc/guix.texi:28784
  43471. 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."
  43472. msgstr ""
  43473. #. type: table
  43474. #: guix-git/doc/guix.texi:28787
  43475. msgid "Extra options to pass to the Prometheus node exporter."
  43476. msgstr ""
  43477. #. type: cindex
  43478. #: guix-git/doc/guix.texi:28792 guix-git/doc/guix.texi:28793
  43479. #, no-wrap
  43480. msgid "vnstat"
  43481. msgstr ""
  43482. #. type: subsubheading
  43483. #: guix-git/doc/guix.texi:28792
  43484. #, no-wrap
  43485. msgid "vnStat Network Traffic Monitor"
  43486. msgstr ""
  43487. #. type: Plain text
  43488. #: guix-git/doc/guix.texi:28798
  43489. msgid "vnStat is a network traffic monitor that uses interface statistics provided by the kernel rather than traffic sniffing. This makes it a light resource monitor, regardless of network traffic rate."
  43490. msgstr ""
  43491. #. type: defvar
  43492. #: guix-git/doc/guix.texi:28799
  43493. #, fuzzy, no-wrap
  43494. msgid "vnstat-service-type"
  43495. msgstr "邮件服务"
  43496. #. type: defvar
  43497. #: guix-git/doc/guix.texi:28802
  43498. msgid "This is the service type for the @uref{https://humdi.net/vnstat/,vnStat} daemon and accepts a @code{vnstat-configuration} value."
  43499. msgstr ""
  43500. #. type: defvar
  43501. #: guix-git/doc/guix.texi:28804
  43502. msgid "The following example will configure the service with default values:"
  43503. msgstr ""
  43504. #. type: lisp
  43505. #: guix-git/doc/guix.texi:28807
  43506. #, fuzzy, no-wrap
  43507. #| msgid "(service home-znc-service-type)\n"
  43508. msgid "(service vnstat-service-type)\n"
  43509. msgstr "(service home-znc-service-type)\n"
  43510. #. type: deftp
  43511. #: guix-git/doc/guix.texi:28811
  43512. #, fuzzy, no-wrap
  43513. msgid "{Data Type} vnstat-configuration"
  43514. msgstr "{数据类型} build-machine"
  43515. #. type: deftp
  43516. #: guix-git/doc/guix.texi:28813
  43517. #, fuzzy
  43518. msgid "Available @code{vnstat-configuration} fields are:"
  43519. msgstr "{数据类型} build-machine"
  43520. #. type: item
  43521. #: guix-git/doc/guix.texi:28815
  43522. #, fuzzy, no-wrap
  43523. msgid "@code{package} (default: @code{vnstat}) (type: file-like)"
  43524. msgstr "@code{xfce}(默认值:@code{xfce})"
  43525. #. type: table
  43526. #: guix-git/doc/guix.texi:28817
  43527. #, fuzzy
  43528. msgid "The vnstat package."
  43529. msgstr "软件包数据类型。"
  43530. #. type: item
  43531. #: guix-git/doc/guix.texi:28818
  43532. #, fuzzy, no-wrap
  43533. msgid "@code{database-directory} (default: @code{\"/var/lib/vnstat\"}) (type: string)"
  43534. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  43535. #. type: table
  43536. #: guix-git/doc/guix.texi:28821
  43537. msgid "Specifies the directory where the database is to be stored. A full path must be given and a leading '/' isn't required."
  43538. msgstr ""
  43539. #. type: item
  43540. #: guix-git/doc/guix.texi:28822
  43541. #, fuzzy, no-wrap
  43542. msgid "@code{5-minute-hours} (default: @code{48}) (type: maybe-integer)"
  43543. msgstr "@code{port}(默认值:@code{22})"
  43544. #. type: table
  43545. #: guix-git/doc/guix.texi:28827
  43546. msgid "Data retention duration for the 5 minute resolution entries. The configuration defines for how many past hours entries will be stored. Set to @code{-1} for unlimited entries or to @code{0} to disable the data collection of this resolution."
  43547. msgstr ""
  43548. #. type: item
  43549. #: guix-git/doc/guix.texi:28828
  43550. #, fuzzy, no-wrap
  43551. msgid "@code{64bit-interface-counters} (default: @code{-2}) (type: maybe-integer)"
  43552. msgstr "@code{port}(默认值:@code{22})"
  43553. #. type: table
  43554. #: guix-git/doc/guix.texi:28837
  43555. msgid "Select interface counter handling. Set to @code{1} for defining that all interfaces use 64-bit counters on the kernel side and @code{0} for defining 32-bit counter. Set to @code{-1} for using the old style logic used in earlier versions where counter values within 32-bits are assumed to be 32-bit and anything larger is assumed to be a 64-bit counter. This may produce false results if a 64-bit counter is reset within the 32-bits. Set to @code{-2} for using automatic detection based on available kernel datastructures."
  43556. msgstr ""
  43557. #. type: item
  43558. #: guix-git/doc/guix.texi:28838
  43559. #, fuzzy, no-wrap
  43560. msgid "@code{always-add-new-interfaces?} (default: @code{#t}) (type: maybe-boolean)"
  43561. msgstr "@code{challenge}(默认值:@code{#f})"
  43562. #. type: table
  43563. #: guix-git/doc/guix.texi:28845
  43564. msgid "Enable or disable automatic creation of new database entries for interfaces not currently in the database even if the database file already exists when the daemon is started. New database entries will also get created for new interfaces seen while the daemon is running. Pseudo interfaces @samp{lo}, @samp{lo0} and @samp{sit0} are always excluded from getting added."
  43565. msgstr ""
  43566. #. type: item
  43567. #: guix-git/doc/guix.texi:28846
  43568. #, fuzzy, no-wrap
  43569. msgid "@code{bandwidth-detection?} (default: @code{#t}) (type: maybe-boolean)"
  43570. msgstr "@code{challenge}(默认值:@code{#f})"
  43571. #. type: table
  43572. #: guix-git/doc/guix.texi:28854
  43573. msgid "Try to automatically detect @var{max-bandwidth} value for each monitored interface. Mostly only ethernet interfaces support this feature. @var{max-bandwidth} will be used as fallback value if detection fails. Any interface specific @var{max-BW} configuration will disable the detection for the specified interface. In Linux, the detection is disabled for tun interfaces due to the Linux kernel always reporting 10 Mbit regardless of the used real interface."
  43574. msgstr ""
  43575. #. type: item
  43576. #: guix-git/doc/guix.texi:28855
  43577. #, fuzzy, no-wrap
  43578. msgid "@code{bandwidth-detection-interval} (default: @code{5}) (type: maybe-integer)"
  43579. msgstr "@code{port}(默认值:@code{22})"
  43580. #. type: table
  43581. #: guix-git/doc/guix.texi:28860
  43582. msgid "How often in minutes interface specific detection of @var{max-bandwidth} is done for detecting possible changes when @var{bandwidth-detection} is enabled. Can be disabled by setting to @code{0}. Value range: @samp{0}..@samp{30}"
  43583. msgstr ""
  43584. #. type: item
  43585. #: guix-git/doc/guix.texi:28861
  43586. #, fuzzy, no-wrap
  43587. msgid "@code{boot-variation} (default: @code{15}) (type: maybe-integer)"
  43588. msgstr "@code{port}(默认值:@code{22})"
  43589. #. type: table
  43590. #: guix-git/doc/guix.texi:28864
  43591. msgid "Time in seconds how much the boot time reported by system kernel can variate between updates. Value range: @samp{0}..@samp{300}"
  43592. msgstr ""
  43593. #. type: item
  43594. #: guix-git/doc/guix.texi:28865
  43595. #, fuzzy, no-wrap
  43596. msgid "@code{check-disk-space?} (default: @code{#t}) (type: maybe-boolean)"
  43597. msgstr "@code{challenge}(默认值:@code{#f})"
  43598. #. type: table
  43599. #: guix-git/doc/guix.texi:28868
  43600. msgid "Enable or disable the availability check of at least some free disk space before a database write."
  43601. msgstr ""
  43602. #. type: item
  43603. #: guix-git/doc/guix.texi:28869
  43604. #, fuzzy, no-wrap
  43605. msgid "@code{create-directories?} (default: @code{#t}) (type: maybe-boolean)"
  43606. msgstr "@code{challenge}(默认值:@code{#f})"
  43607. #. type: table
  43608. #: guix-git/doc/guix.texi:28872
  43609. msgid "Enable or disable the creation of directories when a configured path doesn't exist. This includes @var{database-directory}."
  43610. msgstr ""
  43611. #. type: item
  43612. #: guix-git/doc/guix.texi:28873
  43613. #, fuzzy, no-wrap
  43614. msgid "@code{daemon-group} (type: maybe-user-group)"
  43615. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  43616. #. type: table
  43617. #: guix-git/doc/guix.texi:28876
  43618. msgid "Specify the group to which the daemon process should switch during startup. Set to @code{%unset-value} to disable group switching."
  43619. msgstr ""
  43620. #. type: item
  43621. #: guix-git/doc/guix.texi:28877
  43622. #, fuzzy, no-wrap
  43623. msgid "@code{daemon-user} (type: maybe-user-account)"
  43624. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  43625. #. type: table
  43626. #: guix-git/doc/guix.texi:28880
  43627. msgid "Specify the user to which the daemon process should switch during startup. Set to @code{%unset-value} to disable user switching."
  43628. msgstr ""
  43629. #. type: item
  43630. #: guix-git/doc/guix.texi:28881
  43631. #, fuzzy, no-wrap
  43632. msgid "@code{daily-days} (default: @code{62}) (type: maybe-integer)"
  43633. msgstr "@code{port}(默认值:@code{22})"
  43634. #. type: table
  43635. #: guix-git/doc/guix.texi:28886
  43636. msgid "Data retention duration for the one day resolution entries. The configuration defines for how many past days entries will be stored. Set to @code{-1} for unlimited entries or to @code{0} to disable the data collection of this resolution."
  43637. msgstr ""
  43638. #. type: item
  43639. #: guix-git/doc/guix.texi:28887
  43640. #, fuzzy, no-wrap
  43641. msgid "@code{database-synchronous} (default: @code{-1}) (type: maybe-integer)"
  43642. msgstr "@code{port}(默认值:@code{22})"
  43643. #. type: table
  43644. #: guix-git/doc/guix.texi:28898
  43645. msgid "Change the setting of the SQLite \"synchronous\" flag which controls how much care is taken to ensure disk writes have fully completed when writing data to the database before continuing other actions. Higher values take extra steps to ensure data safety at the cost of slower performance. A value of @code{0} will result in all handling being left to the filesystem itself. Set to @code{-1} to select the default value according to database mode controlled by @var{database-write-ahead-logging} setting. See SQLite documentation for more details regarding values from @code{1} to @code{3}. Value range: @samp{-1}..@samp{3}"
  43646. msgstr ""
  43647. #. type: item
  43648. #: guix-git/doc/guix.texi:28899
  43649. #, fuzzy, no-wrap
  43650. msgid "@code{database-write-ahead-logging?} (default: @code{#f}) (type: maybe-boolean)"
  43651. msgstr "@code{speed}(默认值:@code{1.0})"
  43652. #. type: table
  43653. #: guix-git/doc/guix.texi:28903
  43654. msgid "Enable or disable SQLite Write-Ahead Logging mode for the database. See SQLite documentation for more details and note that support for read-only operations isn't available in older SQLite versions."
  43655. msgstr ""
  43656. #. type: item
  43657. #: guix-git/doc/guix.texi:28904
  43658. #, fuzzy, no-wrap
  43659. msgid "@code{hourly-days} (default: @code{4}) (type: maybe-integer)"
  43660. msgstr "@code{port}(默认值:@code{22})"
  43661. #. type: table
  43662. #: guix-git/doc/guix.texi:28909
  43663. msgid "Data retention duration for the one hour resolution entries. The configuration defines for how many past days entries will be stored. Set to @code{-1} for unlimited entries or to @code{0} to disable the data collection of this resolution."
  43664. msgstr ""
  43665. #. type: item
  43666. #: guix-git/doc/guix.texi:28910 guix-git/doc/guix.texi:43630
  43667. #, fuzzy, no-wrap
  43668. msgid "@code{log-file} (type: maybe-string)"
  43669. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  43670. #. type: table
  43671. #: guix-git/doc/guix.texi:28913
  43672. msgid "Specify log file path and name to be used if @var{use-logging} is set to @code{1}."
  43673. msgstr ""
  43674. #. type: item
  43675. #: guix-git/doc/guix.texi:28914
  43676. #, fuzzy, no-wrap
  43677. msgid "@code{max-bandwidth} (type: maybe-integer)"
  43678. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  43679. #. type: table
  43680. #: guix-git/doc/guix.texi:28919
  43681. msgid "Maximum bandwidth for all interfaces. If the interface specific traffic exceeds the given value then the data is assumed to be invalid and rejected. Set to 0 in order to disable the feature. Value range: @samp{0}..@samp{50000}"
  43682. msgstr ""
  43683. #. type: item
  43684. #: guix-git/doc/guix.texi:28920
  43685. #, fuzzy, no-wrap
  43686. msgid "@code{max-bw} (type: maybe-alist)"
  43687. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  43688. #. type: table
  43689. #: guix-git/doc/guix.texi:28924
  43690. msgid "Same as @var{max-bandwidth} but can be used for setting individual limits for selected interfaces. This is an association list of interfaces as strings to integer values. For example,"
  43691. msgstr ""
  43692. #. type: lisp
  43693. #: guix-git/doc/guix.texi:28927
  43694. #, no-wrap
  43695. msgid ""
  43696. "(max-bw `((\"eth0\" . 15000)\n"
  43697. " (\"ppp0\" . 10000)))\n"
  43698. msgstr ""
  43699. #. type: table
  43700. #: guix-git/doc/guix.texi:28930
  43701. msgid "@var{bandwidth-detection} is disabled on an interface specific level for each @var{max-bw} configuration. Value range: @samp{0}..@samp{50000}"
  43702. msgstr ""
  43703. #. type: item
  43704. #: guix-git/doc/guix.texi:28931
  43705. #, fuzzy, no-wrap
  43706. msgid "@code{monthly-months} (default: @code{25}) (type: maybe-integer)"
  43707. msgstr "@code{port}(默认值:@code{22})"
  43708. #. type: table
  43709. #: guix-git/doc/guix.texi:28936
  43710. msgid "Data retention duration for the one month resolution entries. The configuration defines for how many past months entries will be stored. Set to @code{-1} for unlimited entries or to @code{0} to disable the data collection of this resolution."
  43711. msgstr ""
  43712. #. type: item
  43713. #: guix-git/doc/guix.texi:28937
  43714. #, fuzzy, no-wrap
  43715. msgid "@code{month-rotate} (default: @code{1}) (type: maybe-integer)"
  43716. msgstr "@code{port}(默认值:@code{22})"
  43717. #. type: table
  43718. #: guix-git/doc/guix.texi:28944
  43719. msgid "Day of month that months are expected to change. Usually set to 1 but can be set to alternative values for example for tracking monthly billed traffic where the billing period doesn't start on the first day. For example, if set to 7, days of February up to and including the 6th will count for January. Changing this option will not cause existing data to be recalculated. Value range: @samp{1}..@samp{28}"
  43720. msgstr ""
  43721. #. type: item
  43722. #: guix-git/doc/guix.texi:28945
  43723. #, fuzzy, no-wrap
  43724. msgid "@code{month-rotate-affects-years?} (default: @code{#f}) (type: maybe-boolean)"
  43725. msgstr "@code{port}(默认值:@code{22})"
  43726. #. type: table
  43727. #: guix-git/doc/guix.texi:28948
  43728. msgid "Enable or disable @var{month-rotate} also affecting yearly data. Applicable only when @var{month-rotate} has a value greater than one."
  43729. msgstr ""
  43730. #. type: item
  43731. #: guix-git/doc/guix.texi:28949
  43732. #, fuzzy, no-wrap
  43733. msgid "@code{offline-save-interval} (default: @code{30}) (type: maybe-integer)"
  43734. msgstr "@code{port}(默认值:@code{22})"
  43735. #. type: table
  43736. #: guix-git/doc/guix.texi:28953
  43737. msgid "How often in minutes cached interface data is saved to file when all monitored interfaces are offline. Value range: @var{save-interval}..@samp{60}"
  43738. msgstr ""
  43739. #. type: item
  43740. #: guix-git/doc/guix.texi:28954
  43741. #, fuzzy, no-wrap
  43742. msgid "@code{pid-file} (default: @code{\"/var/run/vnstatd.pid\"}) (type: maybe-string)"
  43743. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  43744. #. type: table
  43745. #: guix-git/doc/guix.texi:28956
  43746. msgid "Specify pid file path and name to be used."
  43747. msgstr ""
  43748. #. type: item
  43749. #: guix-git/doc/guix.texi:28957
  43750. #, fuzzy, no-wrap
  43751. msgid "@code{poll-interval} (default: @code{5}) (type: maybe-integer)"
  43752. msgstr "@code{challenge}(默认值:@code{#f})"
  43753. #. type: table
  43754. #: guix-git/doc/guix.texi:28960
  43755. msgid "How often in seconds interfaces are checked for status changes. Value range: @samp{2}..@samp{60}"
  43756. msgstr ""
  43757. #. type: item
  43758. #: guix-git/doc/guix.texi:28961
  43759. #, fuzzy, no-wrap
  43760. msgid "@code{rescan-database-on-save?} (type: maybe-boolean)"
  43761. msgstr "@code{speed}(默认值:@code{1.0})"
  43762. #. type: table
  43763. #: guix-git/doc/guix.texi:28966
  43764. msgid "Automatically discover added interfaces from the database and start monitoring. The rescan is done every @var{save-interval} or @var{offline-save-interval} minutes depending on the current activity state."
  43765. msgstr ""
  43766. #. type: item
  43767. #: guix-git/doc/guix.texi:28967
  43768. #, fuzzy, no-wrap
  43769. msgid "@code{save-interval} (default: @code{5}) (type: maybe-integer)"
  43770. msgstr "@code{port}(默认值:@code{22})"
  43771. #. type: table
  43772. #: guix-git/doc/guix.texi:28970
  43773. msgid "How often in minutes cached interface data is saved to file. Value range: ( @var{update-interval} / 60 )..@samp{60}"
  43774. msgstr ""
  43775. #. type: item
  43776. #: guix-git/doc/guix.texi:28971
  43777. #, fuzzy, no-wrap
  43778. msgid "@code{save-on-status-change?} (default: @code{#t}) (type: maybe-boolean)"
  43779. msgstr "@code{challenge}(默认值:@code{#f})"
  43780. #. type: table
  43781. #: guix-git/doc/guix.texi:28975
  43782. msgid "Enable or disable the additional saving to file of cached interface data when the availability of an interface changes, i.e., when an interface goes offline or comes online."
  43783. msgstr ""
  43784. #. type: item
  43785. #: guix-git/doc/guix.texi:28976
  43786. #, fuzzy, no-wrap
  43787. msgid "@code{time-sync-wait} (default: @code{5}) (type: maybe-integer)"
  43788. msgstr "@code{port}(默认值:@code{22})"
  43789. #. type: table
  43790. #: guix-git/doc/guix.texi:28982
  43791. msgid "How many minutes to wait during daemon startup for system clock to sync if most recent database update appears to be in the future. This may be needed in systems without a real-time clock (RTC) which require some time after boot to query and set the correct time. @code{0} = wait disabled. Value range: @samp{0}..@samp{60}"
  43792. msgstr ""
  43793. #. type: item
  43794. #: guix-git/doc/guix.texi:28983
  43795. #, fuzzy, no-wrap
  43796. msgid "@code{top-day-entries} (default: @code{20}) (type: maybe-integer)"
  43797. msgstr "@code{port}(默认值:@code{22})"
  43798. #. type: table
  43799. #: guix-git/doc/guix.texi:28988
  43800. msgid "Data retention duration for the top day entries. The configuration defines how many of the past top day entries will be stored. Set to @code{-1} for unlimited entries or to @code{0} to disable the data collection of this resolution."
  43801. msgstr ""
  43802. #. type: item
  43803. #: guix-git/doc/guix.texi:28989
  43804. #, fuzzy, no-wrap
  43805. msgid "@code{trafficless-entries?} (default: @code{#t}) (type: maybe-boolean)"
  43806. msgstr "@code{challenge}(默认值:@code{#f})"
  43807. #. type: table
  43808. #: guix-git/doc/guix.texi:28992
  43809. msgid "Create database entries even when there is no traffic during the entry's time period."
  43810. msgstr ""
  43811. #. type: item
  43812. #: guix-git/doc/guix.texi:28993
  43813. #, fuzzy, no-wrap
  43814. msgid "@code{update-file-owner?} (default: @code{#t}) (type: maybe-boolean)"
  43815. msgstr "@code{challenge}(默认值:@code{#f})"
  43816. #. type: table
  43817. #: guix-git/doc/guix.texi:29002
  43818. msgid "Enable or disable the update of file ownership during daemon process startup. During daemon startup, only database, log and pid files will be modified if the user or group change feature ( @var{daemon-user} or @var{daemon-group} ) is enabled and the files don't match the requested user or group. During manual database creation, this option will cause file ownership to be inherited from the database directory if the directory already exists. This option only has effect when the process is started as root or via sudo."
  43819. msgstr ""
  43820. #. type: item
  43821. #: guix-git/doc/guix.texi:29003
  43822. #, fuzzy, no-wrap
  43823. msgid "@code{update-interval} (default: @code{20}) (type: maybe-integer)"
  43824. msgstr "@code{port}(默认值:@code{22})"
  43825. #. type: table
  43826. #: guix-git/doc/guix.texi:29006
  43827. msgid "How often in seconds the interface data is updated. Value range: @var{poll-interval}..@samp{300}"
  43828. msgstr ""
  43829. #. type: item
  43830. #: guix-git/doc/guix.texi:29007
  43831. #, fuzzy, no-wrap
  43832. msgid "@code{use-logging} (default: @code{2}) (type: maybe-integer)"
  43833. msgstr "@code{port}(默认值:@code{22})"
  43834. #. type: table
  43835. #: guix-git/doc/guix.texi:29010
  43836. msgid "Enable or disable logging. Accepted values are: @code{0} = disabled, @code{1} = logfile and @code{2} = syslog."
  43837. msgstr ""
  43838. #. type: item
  43839. #: guix-git/doc/guix.texi:29011
  43840. #, fuzzy, no-wrap
  43841. msgid "@code{use-utc?} (type: maybe-boolean)"
  43842. msgstr "@code{speed}(默认值:@code{1.0})"
  43843. #. type: table
  43844. #: guix-git/doc/guix.texi:29017
  43845. msgid "Enable or disable using UTC as timezone in the database for all entries. When enabled, all entries added to the database will use UTC regardless of the configured system timezone. When disabled, the configured system timezone will be used. Changing this setting will not result in already existing data to be modified."
  43846. msgstr ""
  43847. #. type: item
  43848. #: guix-git/doc/guix.texi:29018
  43849. #, fuzzy, no-wrap
  43850. msgid "@code{yearly-years} (default: @code{-1}) (type: maybe-integer)"
  43851. msgstr "@code{port}(默认值:@code{22})"
  43852. #. type: table
  43853. #: guix-git/doc/guix.texi:29023
  43854. msgid "Data retention duration for the one year resolution entries. The configuration defines for how many past years entries will be stored. Set to @code{-1} for unlimited entries or to @code{0} to disable the data collection of this resolution."
  43855. msgstr ""
  43856. #. type: subsubheading
  43857. #: guix-git/doc/guix.texi:29028
  43858. #, no-wrap
  43859. msgid "Zabbix server"
  43860. msgstr ""
  43861. #. type: cindex
  43862. #: guix-git/doc/guix.texi:29029
  43863. #, no-wrap
  43864. msgid "zabbix zabbix-server"
  43865. msgstr ""
  43866. #. type: Plain text
  43867. #: guix-git/doc/guix.texi:29034
  43868. 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."
  43869. msgstr ""
  43870. #. type: Plain text
  43871. #: guix-git/doc/guix.texi:29041
  43872. 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})."
  43873. msgstr ""
  43874. #. type: defvar
  43875. #: guix-git/doc/guix.texi:29042
  43876. #, fuzzy, no-wrap
  43877. msgid "zabbix-server-service-type"
  43878. msgstr "邮件服务"
  43879. #. type: defvar
  43880. #: guix-git/doc/guix.texi:29045
  43881. msgid "This is the service type for the Zabbix server service. Its value must be a @code{zabbix-server-configuration} record, shown below."
  43882. msgstr ""
  43883. #. type: deftp
  43884. #: guix-git/doc/guix.texi:29049
  43885. #, fuzzy, no-wrap
  43886. msgid "{Data Type} zabbix-server-configuration"
  43887. msgstr "{数据类型} build-machine"
  43888. #. type: deftp
  43889. #: guix-git/doc/guix.texi:29051
  43890. msgid "Available @code{zabbix-server-configuration} fields are:"
  43891. msgstr ""
  43892. #. type: item
  43893. #: guix-git/doc/guix.texi:29053 guix-git/doc/guix.texi:29216
  43894. #, fuzzy, no-wrap
  43895. msgid "@code{zabbix-server} (default: @code{zabbix-server}) (type: file-like)"
  43896. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  43897. #. type: table
  43898. #: guix-git/doc/guix.texi:29055
  43899. msgid "The zabbix-server package."
  43900. msgstr ""
  43901. #. type: item
  43902. #: guix-git/doc/guix.texi:29056 guix-git/doc/guix.texi:29142
  43903. #, fuzzy, no-wrap
  43904. msgid "@code{user} (default: @code{\"zabbix\"}) (type: string)"
  43905. msgstr "@code{xfce}(默认值:@code{xfce})"
  43906. #. type: table
  43907. #: guix-git/doc/guix.texi:29058
  43908. msgid "User who will run the Zabbix server."
  43909. msgstr ""
  43910. #. type: item
  43911. #: guix-git/doc/guix.texi:29059 guix-git/doc/guix.texi:29145
  43912. #, fuzzy, no-wrap
  43913. msgid "@code{group} (default: @code{\"zabbix\"}) (type: string)"
  43914. msgstr "@code{xfce}(默认值:@code{xfce})"
  43915. #. type: table
  43916. #: guix-git/doc/guix.texi:29061
  43917. msgid "Group who will run the Zabbix server."
  43918. msgstr ""
  43919. #. type: item
  43920. #: guix-git/doc/guix.texi:29062
  43921. #, fuzzy, no-wrap
  43922. msgid "@code{db-host} (default: @code{\"127.0.0.1\"}) (type: string)"
  43923. msgstr "@code{xfce}(默认值:@code{xfce})"
  43924. #. type: table
  43925. #: guix-git/doc/guix.texi:29064 guix-git/doc/guix.texi:29226
  43926. msgid "Database host name."
  43927. msgstr ""
  43928. #. type: item
  43929. #: guix-git/doc/guix.texi:29065 guix-git/doc/guix.texi:29230
  43930. #, fuzzy, no-wrap
  43931. msgid "@code{db-name} (default: @code{\"zabbix\"}) (type: string)"
  43932. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  43933. #. type: table
  43934. #: guix-git/doc/guix.texi:29067 guix-git/doc/guix.texi:29232
  43935. msgid "Database name."
  43936. msgstr ""
  43937. #. type: item
  43938. #: guix-git/doc/guix.texi:29068 guix-git/doc/guix.texi:29233
  43939. #, fuzzy, no-wrap
  43940. msgid "@code{db-user} (default: @code{\"zabbix\"}) (type: string)"
  43941. msgstr "@code{xfce}(默认值:@code{xfce})"
  43942. #. type: table
  43943. #: guix-git/doc/guix.texi:29070 guix-git/doc/guix.texi:29235
  43944. msgid "Database user."
  43945. msgstr ""
  43946. #. type: item
  43947. #: guix-git/doc/guix.texi:29071 guix-git/doc/guix.texi:29236
  43948. #, fuzzy, no-wrap
  43949. msgid "@code{db-password} (default: @code{\"\"}) (type: string)"
  43950. msgstr "@code{port}(默认值:@code{22})"
  43951. #. type: table
  43952. #: guix-git/doc/guix.texi:29074
  43953. msgid "Database password. Please, use @code{include-files} with @code{DBPassword=SECRET} inside a specified file instead."
  43954. msgstr ""
  43955. #. type: item
  43956. #: guix-git/doc/guix.texi:29075 guix-git/doc/guix.texi:29227
  43957. #, fuzzy, no-wrap
  43958. msgid "@code{db-port} (default: @code{5432}) (type: number)"
  43959. msgstr "@code{port}(默认值:@code{22})"
  43960. #. type: table
  43961. #: guix-git/doc/guix.texi:29077 guix-git/doc/guix.texi:29229
  43962. msgid "Database port."
  43963. msgstr ""
  43964. #. type: item
  43965. #: guix-git/doc/guix.texi:29078 guix-git/doc/guix.texi:29152
  43966. #, fuzzy, no-wrap
  43967. msgid "@code{log-type} (default: @code{\"\"}) (type: string)"
  43968. msgstr "@code{port}(默认值:@code{22})"
  43969. #. type: table
  43970. #: guix-git/doc/guix.texi:29080 guix-git/doc/guix.texi:29154
  43971. msgid "Specifies where log messages are written to:"
  43972. msgstr ""
  43973. #. type: itemize
  43974. #: guix-git/doc/guix.texi:29083 guix-git/doc/guix.texi:29158
  43975. #, no-wrap
  43976. msgid "@code{system} - syslog."
  43977. msgstr ""
  43978. #. type: item
  43979. #: guix-git/doc/guix.texi:29085
  43980. #, no-wrap
  43981. msgid "@code{file} - file specified with @code{log-file} parameter."
  43982. msgstr ""
  43983. #. type: item
  43984. #: guix-git/doc/guix.texi:29087 guix-git/doc/guix.texi:29162
  43985. #, no-wrap
  43986. msgid "@code{console} - standard output."
  43987. msgstr ""
  43988. #. type: item
  43989. #: guix-git/doc/guix.texi:29091
  43990. #, fuzzy, no-wrap
  43991. msgid "@code{log-file} (default: @code{\"/var/log/zabbix/server.log\"}) (type: string)"
  43992. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  43993. #. type: table
  43994. #: guix-git/doc/guix.texi:29093 guix-git/doc/guix.texi:29168
  43995. msgid "Log file name for @code{log-type} @code{file} parameter."
  43996. msgstr ""
  43997. #. type: item
  43998. #: guix-git/doc/guix.texi:29094
  43999. #, fuzzy, no-wrap
  44000. msgid "@code{pid-file} (default: @code{\"/var/run/zabbix/zabbix_server.pid\"}) (type: string)"
  44001. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  44002. #. type: table
  44003. #: guix-git/doc/guix.texi:29096 guix-git/doc/guix.texi:29171
  44004. msgid "Name of PID file."
  44005. msgstr ""
  44006. #. type: item
  44007. #: guix-git/doc/guix.texi:29097
  44008. #, fuzzy, no-wrap
  44009. msgid "@code{ssl-ca-location} (default: @code{\"/etc/ssl/certs/ca-certificates.crt\"}) (type: string)"
  44010. msgstr "@code{xfce}(默认值:@code{xfce})"
  44011. #. type: table
  44012. #: guix-git/doc/guix.texi:29100
  44013. msgid "The location of certificate authority (CA) files for SSL server certificate verification."
  44014. msgstr ""
  44015. #. type: item
  44016. #: guix-git/doc/guix.texi:29101
  44017. #, fuzzy, no-wrap
  44018. msgid "@code{ssl-cert-location} (default: @code{\"/etc/ssl/certs\"}) (type: string)"
  44019. msgstr "@code{xfce}(默认值:@code{xfce})"
  44020. #. type: table
  44021. #: guix-git/doc/guix.texi:29103
  44022. msgid "Location of SSL client certificates."
  44023. msgstr ""
  44024. #. type: item
  44025. #: guix-git/doc/guix.texi:29104 guix-git/doc/guix.texi:29182
  44026. #, fuzzy, no-wrap
  44027. msgid "@code{extra-options} (default: @code{\"\"}) (type: extra-options)"
  44028. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  44029. #. type: table
  44030. #: guix-git/doc/guix.texi:29106 guix-git/doc/guix.texi:29184
  44031. msgid "Extra options will be appended to Zabbix server configuration file."
  44032. msgstr ""
  44033. #. type: item
  44034. #: guix-git/doc/guix.texi:29107 guix-git/doc/guix.texi:29185
  44035. #, fuzzy, no-wrap
  44036. msgid "@code{include-files} (default: @code{'()}) (type: include-files)"
  44037. msgstr "@code{features} (@code{'()})"
  44038. #. type: table
  44039. #: guix-git/doc/guix.texi:29110 guix-git/doc/guix.texi:29188
  44040. msgid "You may include individual files or all files in a directory in the configuration file."
  44041. msgstr ""
  44042. #. type: anchor{#1}
  44043. #: guix-git/doc/guix.texi:29119
  44044. msgid "zabbix-agent"
  44045. msgstr ""
  44046. #. type: subsubheading
  44047. #: guix-git/doc/guix.texi:29119
  44048. #, no-wrap
  44049. msgid "Zabbix agent"
  44050. msgstr ""
  44051. #. type: cindex
  44052. #: guix-git/doc/guix.texi:29120
  44053. #, no-wrap
  44054. msgid "zabbix zabbix-agent"
  44055. msgstr ""
  44056. #. type: Plain text
  44057. #: guix-git/doc/guix.texi:29127
  44058. 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}}."
  44059. msgstr ""
  44060. #. type: defvar
  44061. #: guix-git/doc/guix.texi:29128
  44062. #, fuzzy, no-wrap
  44063. msgid "zabbix-agent-service-type"
  44064. msgstr "邮件服务"
  44065. #. type: defvar
  44066. #: guix-git/doc/guix.texi:29131
  44067. msgid "This is the service type for the Zabbix agent service. Its value must be a @code{zabbix-agent-configuration} record, shown below."
  44068. msgstr ""
  44069. #. type: deftp
  44070. #: guix-git/doc/guix.texi:29135
  44071. #, fuzzy, no-wrap
  44072. msgid "{Data Type} zabbix-agent-configuration"
  44073. msgstr "{数据类型} build-machine"
  44074. #. type: deftp
  44075. #: guix-git/doc/guix.texi:29137
  44076. msgid "Available @code{zabbix-agent-configuration} fields are:"
  44077. msgstr ""
  44078. #. type: item
  44079. #: guix-git/doc/guix.texi:29139
  44080. #, fuzzy, no-wrap
  44081. msgid "@code{zabbix-agent} (default: @code{zabbix-agentd}) (type: file-like)"
  44082. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  44083. #. type: table
  44084. #: guix-git/doc/guix.texi:29141
  44085. msgid "The zabbix-agent package."
  44086. msgstr ""
  44087. #. type: table
  44088. #: guix-git/doc/guix.texi:29144
  44089. msgid "User who will run the Zabbix agent."
  44090. msgstr ""
  44091. #. type: table
  44092. #: guix-git/doc/guix.texi:29147
  44093. msgid "Group who will run the Zabbix agent."
  44094. msgstr ""
  44095. #. type: item
  44096. #: guix-git/doc/guix.texi:29148
  44097. #, fuzzy, no-wrap
  44098. msgid "@code{hostname} (default: @code{\"\"}) (type: string)"
  44099. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  44100. #. type: table
  44101. #: guix-git/doc/guix.texi:29151
  44102. msgid "Unique, case sensitive hostname which is required for active checks and must match hostname as configured on the server."
  44103. msgstr ""
  44104. #. type: item
  44105. #: guix-git/doc/guix.texi:29159
  44106. #, no-wrap
  44107. msgid "@code{file} - file specified with"
  44108. msgstr ""
  44109. #. type: itemize
  44110. #: guix-git/doc/guix.texi:29161
  44111. msgid "@code{log-file} parameter."
  44112. msgstr ""
  44113. #. type: item
  44114. #: guix-git/doc/guix.texi:29166
  44115. #, fuzzy, no-wrap
  44116. msgid "@code{log-file} (default: @code{\"/var/log/zabbix/agent.log\"}) (type: string)"
  44117. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  44118. #. type: item
  44119. #: guix-git/doc/guix.texi:29169
  44120. #, fuzzy, no-wrap
  44121. msgid "@code{pid-file} (default: @code{\"/var/run/zabbix/zabbix_agent.pid\"}) (type: string)"
  44122. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  44123. #. type: item
  44124. #: guix-git/doc/guix.texi:29172
  44125. #, fuzzy, no-wrap
  44126. msgid "@code{server} (default: @code{'(\"127.0.0.1\")}) (type: list)"
  44127. msgstr "@code{features} (@code{'()})"
  44128. #. type: table
  44129. #: guix-git/doc/guix.texi:29176
  44130. 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."
  44131. msgstr ""
  44132. #. type: item
  44133. #: guix-git/doc/guix.texi:29177
  44134. #, fuzzy, no-wrap
  44135. msgid "@code{server-active} (default: @code{'(\"127.0.0.1\")}) (type: list)"
  44136. msgstr "@code{features} (@code{'()})"
  44137. #. type: table
  44138. #: guix-git/doc/guix.texi:29181
  44139. 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."
  44140. msgstr ""
  44141. #. type: anchor{#1}
  44142. #: guix-git/doc/guix.texi:29197
  44143. msgid "zabbix-front-end"
  44144. msgstr ""
  44145. #. type: subsubheading
  44146. #: guix-git/doc/guix.texi:29197
  44147. #, no-wrap
  44148. msgid "Zabbix front-end"
  44149. msgstr ""
  44150. #. type: cindex
  44151. #: guix-git/doc/guix.texi:29198
  44152. #, no-wrap
  44153. msgid "zabbix zabbix-front-end"
  44154. msgstr ""
  44155. #. type: Plain text
  44156. #: guix-git/doc/guix.texi:29204
  44157. 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."
  44158. msgstr ""
  44159. #. type: defvar
  44160. #: guix-git/doc/guix.texi:29205
  44161. #, fuzzy, no-wrap
  44162. msgid "zabbix-front-end-service-type"
  44163. msgstr "邮件服务"
  44164. #. type: defvar
  44165. #: guix-git/doc/guix.texi:29208
  44166. msgid "This is the service type for the Zabbix web frontend. Its value must be a @code{zabbix-front-end-configuration} record, shown below."
  44167. msgstr ""
  44168. #. type: deftp
  44169. #: guix-git/doc/guix.texi:29212
  44170. #, fuzzy, no-wrap
  44171. msgid "{Data Type} zabbix-front-end-configuration"
  44172. msgstr "{数据类型} build-machine"
  44173. #. type: deftp
  44174. #: guix-git/doc/guix.texi:29214
  44175. msgid "Available @code{zabbix-front-end-configuration} fields are:"
  44176. msgstr ""
  44177. #. type: table
  44178. #: guix-git/doc/guix.texi:29218
  44179. #, fuzzy
  44180. msgid "The Zabbix server package to use."
  44181. msgstr "软件包数据类型。"
  44182. #. type: item
  44183. #: guix-git/doc/guix.texi:29219
  44184. #, fuzzy, no-wrap
  44185. msgid "@code{nginx} (default: @code{'()}) (type: list)"
  44186. msgstr "@code{features} (@code{'()})"
  44187. #. type: table
  44188. #: guix-git/doc/guix.texi:29223
  44189. 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."
  44190. msgstr ""
  44191. #. type: item
  44192. #: guix-git/doc/guix.texi:29224
  44193. #, fuzzy, no-wrap
  44194. msgid "@code{db-host} (default: @code{\"localhost\"}) (type: string)"
  44195. msgstr "@code{xfce}(默认值:@code{xfce})"
  44196. #. type: table
  44197. #: guix-git/doc/guix.texi:29238
  44198. msgid "Database password. Please, use @code{db-secret-file} instead."
  44199. msgstr ""
  44200. #. type: item
  44201. #: guix-git/doc/guix.texi:29239
  44202. #, fuzzy, no-wrap
  44203. msgid "@code{db-secret-file} (default: @code{\"\"}) (type: string)"
  44204. msgstr "@code{xfce}(默认值:@code{xfce})"
  44205. #. type: table
  44206. #: guix-git/doc/guix.texi:29243
  44207. 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."
  44208. msgstr ""
  44209. #. type: item
  44210. #: guix-git/doc/guix.texi:29244
  44211. #, fuzzy, no-wrap
  44212. msgid "@code{zabbix-host} (default: @code{\"localhost\"}) (type: string)"
  44213. msgstr "@code{features} (@code{'()})"
  44214. #. type: table
  44215. #: guix-git/doc/guix.texi:29246
  44216. msgid "Zabbix server hostname."
  44217. msgstr ""
  44218. #. type: item
  44219. #: guix-git/doc/guix.texi:29247
  44220. #, fuzzy, no-wrap
  44221. msgid "@code{zabbix-port} (default: @code{10051}) (type: number)"
  44222. msgstr "@code{challenge}(默认值:@code{#f})"
  44223. #. type: table
  44224. #: guix-git/doc/guix.texi:29249
  44225. msgid "Zabbix server port."
  44226. msgstr ""
  44227. #. type: cindex
  44228. #: guix-git/doc/guix.texi:29259
  44229. #, no-wrap
  44230. msgid "Kerberos"
  44231. msgstr ""
  44232. #. type: Plain text
  44233. #: guix-git/doc/guix.texi:29263
  44234. msgid "The @code{(gnu services kerberos)} module provides services relating to the authentication protocol @dfn{Kerberos}."
  44235. msgstr ""
  44236. #. type: subsubheading
  44237. #: guix-git/doc/guix.texi:29264
  44238. #, no-wrap
  44239. msgid "Krb5 Service"
  44240. msgstr ""
  44241. #. type: Plain text
  44242. #: guix-git/doc/guix.texi:29271
  44243. 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."
  44244. msgstr ""
  44245. #. type: Plain text
  44246. #: guix-git/doc/guix.texi:29275
  44247. 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."
  44248. msgstr ""
  44249. #. type: defvar
  44250. #: guix-git/doc/guix.texi:29276
  44251. #, fuzzy, no-wrap
  44252. msgid "krb5-service-type"
  44253. msgstr "邮件服务"
  44254. #. type: defvar
  44255. #: guix-git/doc/guix.texi:29278
  44256. msgid "A service type for Kerberos 5 clients."
  44257. msgstr ""
  44258. #. type: Plain text
  44259. #: guix-git/doc/guix.texi:29282
  44260. msgid "Here is an example of its use:"
  44261. msgstr ""
  44262. #. type: lisp
  44263. #: guix-git/doc/guix.texi:29296
  44264. #, no-wrap
  44265. msgid ""
  44266. "(service krb5-service-type\n"
  44267. " (krb5-configuration\n"
  44268. " (default-realm \"EXAMPLE.COM\")\n"
  44269. " (allow-weak-crypto? #t)\n"
  44270. " (realms (list\n"
  44271. " (krb5-realm\n"
  44272. " (name \"EXAMPLE.COM\")\n"
  44273. " (admin-server \"groucho.example.com\")\n"
  44274. " (kdc \"karl.example.com\"))\n"
  44275. " (krb5-realm\n"
  44276. " (name \"ARGRX.EDU\")\n"
  44277. " (admin-server \"kerb-admin.argrx.edu\")\n"
  44278. " (kdc \"keys.argrx.edu\"))))))\n"
  44279. msgstr ""
  44280. #. type: Plain text
  44281. #: guix-git/doc/guix.texi:29300
  44282. msgid "This example provides a Kerberos@tie{}5 client configuration which:"
  44283. msgstr ""
  44284. #. type: item
  44285. #: guix-git/doc/guix.texi:29301
  44286. #, no-wrap
  44287. msgid "Recognizes two realms, @i{viz:} ``EXAMPLE.COM'' and ``ARGRX.EDU'', both"
  44288. msgstr ""
  44289. #. type: itemize
  44290. #: guix-git/doc/guix.texi:29303
  44291. msgid "of which have distinct administration servers and key distribution centers;"
  44292. msgstr ""
  44293. #. type: item
  44294. #: guix-git/doc/guix.texi:29303
  44295. #, no-wrap
  44296. msgid "Will default to the realm ``EXAMPLE.COM'' if the realm is not explicitly"
  44297. msgstr ""
  44298. #. type: itemize
  44299. #: guix-git/doc/guix.texi:29305
  44300. msgid "specified by clients;"
  44301. msgstr ""
  44302. #. type: item
  44303. #: guix-git/doc/guix.texi:29305
  44304. #, no-wrap
  44305. msgid "Accepts services which only support encryption types known to be weak."
  44306. msgstr ""
  44307. #. type: Plain text
  44308. #: guix-git/doc/guix.texi:29313
  44309. 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."
  44310. msgstr ""
  44311. #. type: deftp
  44312. #: guix-git/doc/guix.texi:29315
  44313. #, no-wrap
  44314. msgid "{Data Type} krb5-realm"
  44315. msgstr ""
  44316. #. type: cindex
  44317. #: guix-git/doc/guix.texi:29316
  44318. #, no-wrap
  44319. msgid "realm, kerberos"
  44320. msgstr ""
  44321. #. type: table
  44322. #: guix-git/doc/guix.texi:29322
  44323. 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."
  44324. msgstr ""
  44325. #. type: code{#1}
  44326. #: guix-git/doc/guix.texi:29323
  44327. #, no-wrap
  44328. msgid "admin-server"
  44329. msgstr ""
  44330. #. type: table
  44331. #: guix-git/doc/guix.texi:29326
  44332. msgid "This field is a string identifying the host where the administration server is running."
  44333. msgstr ""
  44334. #. type: code{#1}
  44335. #: guix-git/doc/guix.texi:29327
  44336. #, no-wrap
  44337. msgid "kdc"
  44338. msgstr ""
  44339. #. type: table
  44340. #: guix-git/doc/guix.texi:29330
  44341. msgid "This field is a string identifying the key distribution center for the realm."
  44342. msgstr ""
  44343. #. type: deftp
  44344. #: guix-git/doc/guix.texi:29333
  44345. #, no-wrap
  44346. msgid "{Data Type} krb5-configuration"
  44347. msgstr ""
  44348. #. type: item
  44349. #: guix-git/doc/guix.texi:29336
  44350. #, no-wrap
  44351. msgid "@code{allow-weak-crypto?} (default: @code{#f})"
  44352. msgstr ""
  44353. #. type: table
  44354. #: guix-git/doc/guix.texi:29339
  44355. msgid "If this flag is @code{#t} then services which only offer encryption algorithms known to be weak will be accepted."
  44356. msgstr ""
  44357. #. type: item
  44358. #: guix-git/doc/guix.texi:29340
  44359. #, no-wrap
  44360. msgid "@code{default-realm} (default: @code{#f})"
  44361. msgstr ""
  44362. #. type: table
  44363. #: guix-git/doc/guix.texi:29347
  44364. 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}."
  44365. msgstr ""
  44366. #. type: code{#1}
  44367. #: guix-git/doc/guix.texi:29348
  44368. #, no-wrap
  44369. msgid "realms"
  44370. msgstr ""
  44371. #. type: table
  44372. #: guix-git/doc/guix.texi:29353
  44373. 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."
  44374. msgstr ""
  44375. #. type: subsubheading
  44376. #: guix-git/doc/guix.texi:29357
  44377. #, no-wrap
  44378. msgid "PAM krb5 Service"
  44379. msgstr ""
  44380. #. type: cindex
  44381. #: guix-git/doc/guix.texi:29358
  44382. #, no-wrap
  44383. msgid "pam-krb5"
  44384. msgstr ""
  44385. #. type: Plain text
  44386. #: guix-git/doc/guix.texi:29364
  44387. 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."
  44388. msgstr ""
  44389. #. type: defvar
  44390. #: guix-git/doc/guix.texi:29365
  44391. #, fuzzy, no-wrap
  44392. msgid "pam-krb5-service-type"
  44393. msgstr "邮件服务"
  44394. #. type: defvar
  44395. #: guix-git/doc/guix.texi:29367
  44396. msgid "A service type for the Kerberos 5 PAM module."
  44397. msgstr ""
  44398. #. type: deftp
  44399. #: guix-git/doc/guix.texi:29369
  44400. #, no-wrap
  44401. msgid "{Data Type} pam-krb5-configuration"
  44402. msgstr ""
  44403. #. type: deftp
  44404. #: guix-git/doc/guix.texi:29372
  44405. msgid "Data type representing the configuration of the Kerberos 5 PAM module. This type has the following parameters:"
  44406. msgstr ""
  44407. #. type: item
  44408. #: guix-git/doc/guix.texi:29373
  44409. #, no-wrap
  44410. msgid "@code{pam-krb5} (default: @code{pam-krb5})"
  44411. msgstr ""
  44412. #. type: table
  44413. #: guix-git/doc/guix.texi:29375
  44414. msgid "The pam-krb5 package to use."
  44415. msgstr ""
  44416. #. type: item
  44417. #: guix-git/doc/guix.texi:29376
  44418. #, no-wrap
  44419. msgid "@code{minimum-uid} (default: @code{1000})"
  44420. msgstr ""
  44421. #. type: table
  44422. #: guix-git/doc/guix.texi:29379
  44423. msgid "The smallest user ID for which Kerberos authentications should be attempted. Local accounts with lower values will silently fail to authenticate."
  44424. msgstr ""
  44425. #. type: cindex
  44426. #: guix-git/doc/guix.texi:29385
  44427. #, no-wrap
  44428. msgid "LDAP"
  44429. msgstr ""
  44430. #. type: subsubheading
  44431. #: guix-git/doc/guix.texi:29387
  44432. #, no-wrap
  44433. msgid "Authentication against LDAP with nslcd"
  44434. msgstr ""
  44435. #. type: cindex
  44436. #: guix-git/doc/guix.texi:29388
  44437. #, no-wrap
  44438. msgid "nslcd, LDAP service"
  44439. msgstr ""
  44440. #. type: Plain text
  44441. #: guix-git/doc/guix.texi:29395
  44442. 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."
  44443. msgstr ""
  44444. #. type: Plain text
  44445. #: guix-git/doc/guix.texi:29399
  44446. 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:"
  44447. msgstr ""
  44448. #. type: lisp
  44449. #: guix-git/doc/guix.texi:29422
  44450. #, no-wrap
  44451. msgid ""
  44452. "(use-service-modules authentication)\n"
  44453. "(use-modules (gnu system nss))\n"
  44454. "...\n"
  44455. "(operating-system\n"
  44456. " ...\n"
  44457. " (services\n"
  44458. " (cons*\n"
  44459. " (service nslcd-service-type)\n"
  44460. " (service dhcp-client-service-type)\n"
  44461. " %base-services))\n"
  44462. " (name-service-switch\n"
  44463. " (let ((services (list (name-service (name \"db\"))\n"
  44464. " (name-service (name \"files\"))\n"
  44465. " (name-service (name \"ldap\")))))\n"
  44466. " (name-service-switch\n"
  44467. " (inherit %mdns-host-lookup-nss)\n"
  44468. " (password services)\n"
  44469. " (shadow services)\n"
  44470. " (group services)\n"
  44471. " (netgroup services)\n"
  44472. " (gshadow services)))))\n"
  44473. msgstr ""
  44474. #. type: Plain text
  44475. #: guix-git/doc/guix.texi:29427
  44476. msgid "Available @code{nslcd-configuration} fields are:"
  44477. msgstr ""
  44478. #. type: deftypevr
  44479. #: guix-git/doc/guix.texi:29428
  44480. #, no-wrap
  44481. msgid "{@code{nslcd-configuration} parameter} package nss-pam-ldapd"
  44482. msgstr ""
  44483. #. type: deftypevr
  44484. #: guix-git/doc/guix.texi:29430
  44485. msgid "The @code{nss-pam-ldapd} package to use."
  44486. msgstr ""
  44487. #. type: deftypevr
  44488. #: guix-git/doc/guix.texi:29433
  44489. #, no-wrap
  44490. msgid "{@code{nslcd-configuration} parameter} maybe-number threads"
  44491. msgstr ""
  44492. #. type: deftypevr
  44493. #: guix-git/doc/guix.texi:29437
  44494. 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."
  44495. msgstr ""
  44496. #. type: deftypevr
  44497. #: guix-git/doc/guix.texi:29442
  44498. #, no-wrap
  44499. msgid "{@code{nslcd-configuration} parameter} string uid"
  44500. msgstr ""
  44501. #. type: deftypevr
  44502. #: guix-git/doc/guix.texi:29444
  44503. msgid "This specifies the user id with which the daemon should be run."
  44504. msgstr ""
  44505. #. type: deftypevr
  44506. #: guix-git/doc/guix.texi:29446 guix-git/doc/guix.texi:29453
  44507. msgid "Defaults to @samp{\"nslcd\"}."
  44508. msgstr ""
  44509. #. type: deftypevr
  44510. #: guix-git/doc/guix.texi:29449
  44511. #, no-wrap
  44512. msgid "{@code{nslcd-configuration} parameter} string gid"
  44513. msgstr ""
  44514. #. type: deftypevr
  44515. #: guix-git/doc/guix.texi:29451
  44516. msgid "This specifies the group id with which the daemon should be run."
  44517. msgstr ""
  44518. #. type: deftypevr
  44519. #: guix-git/doc/guix.texi:29456
  44520. #, no-wrap
  44521. msgid "{@code{nslcd-configuration} parameter} log-option log"
  44522. msgstr ""
  44523. #. type: deftypevr
  44524. #: guix-git/doc/guix.texi:29464
  44525. 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."
  44526. msgstr ""
  44527. #. type: deftypevr
  44528. #: guix-git/doc/guix.texi:29466
  44529. msgid "Defaults to @samp{'(\"/var/log/nslcd\" info)}."
  44530. msgstr ""
  44531. #. type: deftypevr
  44532. #: guix-git/doc/guix.texi:29469
  44533. #, no-wrap
  44534. msgid "{@code{nslcd-configuration} parameter} list uri"
  44535. msgstr ""
  44536. #. type: deftypevr
  44537. #: guix-git/doc/guix.texi:29472
  44538. msgid "The list of LDAP server URIs. Normally, only the first server will be used with the following servers as fall-back."
  44539. msgstr ""
  44540. #. type: deftypevr
  44541. #: guix-git/doc/guix.texi:29474
  44542. msgid "Defaults to @samp{'(\"ldap://localhost:389/\")}."
  44543. msgstr ""
  44544. #. type: deftypevr
  44545. #: guix-git/doc/guix.texi:29477
  44546. #, no-wrap
  44547. msgid "{@code{nslcd-configuration} parameter} maybe-string ldap-version"
  44548. msgstr ""
  44549. #. type: deftypevr
  44550. #: guix-git/doc/guix.texi:29480
  44551. msgid "The version of the LDAP protocol to use. The default is to use the maximum version supported by the LDAP library."
  44552. msgstr ""
  44553. #. type: deftypevr
  44554. #: guix-git/doc/guix.texi:29485
  44555. #, no-wrap
  44556. msgid "{@code{nslcd-configuration} parameter} maybe-string binddn"
  44557. msgstr ""
  44558. #. type: deftypevr
  44559. #: guix-git/doc/guix.texi:29488
  44560. msgid "Specifies the distinguished name with which to bind to the directory server for lookups. The default is to bind anonymously."
  44561. msgstr ""
  44562. #. type: deftypevr
  44563. #: guix-git/doc/guix.texi:29493
  44564. #, no-wrap
  44565. msgid "{@code{nslcd-configuration} parameter} maybe-string bindpw"
  44566. msgstr ""
  44567. #. type: deftypevr
  44568. #: guix-git/doc/guix.texi:29496
  44569. msgid "Specifies the credentials with which to bind. This option is only applicable when used with binddn."
  44570. msgstr ""
  44571. #. type: deftypevr
  44572. #: guix-git/doc/guix.texi:29501
  44573. #, no-wrap
  44574. msgid "{@code{nslcd-configuration} parameter} maybe-string rootpwmoddn"
  44575. msgstr ""
  44576. #. type: deftypevr
  44577. #: guix-git/doc/guix.texi:29504
  44578. msgid "Specifies the distinguished name to use when the root user tries to modify a user's password using the PAM module."
  44579. msgstr ""
  44580. #. type: deftypevr
  44581. #: guix-git/doc/guix.texi:29509
  44582. #, no-wrap
  44583. msgid "{@code{nslcd-configuration} parameter} maybe-string rootpwmodpw"
  44584. msgstr ""
  44585. #. type: deftypevr
  44586. #: guix-git/doc/guix.texi:29513
  44587. 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"
  44588. msgstr ""
  44589. #. type: deftypevr
  44590. #: guix-git/doc/guix.texi:29518
  44591. #, no-wrap
  44592. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-mech"
  44593. msgstr ""
  44594. #. type: deftypevr
  44595. #: guix-git/doc/guix.texi:29521
  44596. msgid "Specifies the SASL mechanism to be used when performing SASL authentication."
  44597. msgstr ""
  44598. #. type: deftypevr
  44599. #: guix-git/doc/guix.texi:29526
  44600. #, no-wrap
  44601. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-realm"
  44602. msgstr ""
  44603. #. type: deftypevr
  44604. #: guix-git/doc/guix.texi:29528
  44605. msgid "Specifies the SASL realm to be used when performing SASL authentication."
  44606. msgstr ""
  44607. #. type: deftypevr
  44608. #: guix-git/doc/guix.texi:29533
  44609. #, no-wrap
  44610. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-authcid"
  44611. msgstr ""
  44612. #. type: deftypevr
  44613. #: guix-git/doc/guix.texi:29536
  44614. msgid "Specifies the authentication identity to be used when performing SASL authentication."
  44615. msgstr ""
  44616. #. type: deftypevr
  44617. #: guix-git/doc/guix.texi:29541
  44618. #, no-wrap
  44619. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-authzid"
  44620. msgstr ""
  44621. #. type: deftypevr
  44622. #: guix-git/doc/guix.texi:29544
  44623. msgid "Specifies the authorization identity to be used when performing SASL authentication."
  44624. msgstr ""
  44625. #. type: deftypevr
  44626. #: guix-git/doc/guix.texi:29549
  44627. #, no-wrap
  44628. msgid "{@code{nslcd-configuration} parameter} maybe-boolean sasl-canonicalize?"
  44629. msgstr ""
  44630. #. type: deftypevr
  44631. #: guix-git/doc/guix.texi:29554
  44632. 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."
  44633. msgstr ""
  44634. #. type: deftypevr
  44635. #: guix-git/doc/guix.texi:29559
  44636. #, no-wrap
  44637. msgid "{@code{nslcd-configuration} parameter} maybe-string krb5-ccname"
  44638. msgstr ""
  44639. #. type: deftypevr
  44640. #: guix-git/doc/guix.texi:29561
  44641. msgid "Set the name for the GSS-API Kerberos credentials cache."
  44642. msgstr ""
  44643. #. type: deftypevr
  44644. #: guix-git/doc/guix.texi:29566
  44645. #, no-wrap
  44646. msgid "{@code{nslcd-configuration} parameter} string base"
  44647. msgstr ""
  44648. #. type: deftypevr
  44649. #: guix-git/doc/guix.texi:29568
  44650. msgid "The directory search base."
  44651. msgstr ""
  44652. #. type: deftypevr
  44653. #: guix-git/doc/guix.texi:29570
  44654. msgid "Defaults to @samp{\"dc=example,dc=com\"}."
  44655. msgstr ""
  44656. #. type: deftypevr
  44657. #: guix-git/doc/guix.texi:29573
  44658. #, no-wrap
  44659. msgid "{@code{nslcd-configuration} parameter} scope-option scope"
  44660. msgstr ""
  44661. #. type: deftypevr
  44662. #: guix-git/doc/guix.texi:29577
  44663. 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."
  44664. msgstr ""
  44665. #. type: deftypevr
  44666. #: guix-git/doc/guix.texi:29579
  44667. msgid "Defaults to @samp{'(subtree)}."
  44668. msgstr ""
  44669. #. type: deftypevr
  44670. #: guix-git/doc/guix.texi:29582
  44671. #, no-wrap
  44672. msgid "{@code{nslcd-configuration} parameter} maybe-deref-option deref"
  44673. msgstr ""
  44674. #. type: deftypevr
  44675. #: guix-git/doc/guix.texi:29585
  44676. msgid "Specifies the policy for dereferencing aliases. The default policy is to never dereference aliases."
  44677. msgstr ""
  44678. #. type: deftypevr
  44679. #: guix-git/doc/guix.texi:29590
  44680. #, no-wrap
  44681. msgid "{@code{nslcd-configuration} parameter} maybe-boolean referrals"
  44682. msgstr ""
  44683. #. type: deftypevr
  44684. #: guix-git/doc/guix.texi:29593
  44685. msgid "Specifies whether automatic referral chasing should be enabled. The default behaviour is to chase referrals."
  44686. msgstr ""
  44687. #. type: deftypevr
  44688. #: guix-git/doc/guix.texi:29598
  44689. #, no-wrap
  44690. msgid "{@code{nslcd-configuration} parameter} list-of-map-entries maps"
  44691. msgstr ""
  44692. #. type: deftypevr
  44693. #: guix-git/doc/guix.texi:29603
  44694. 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."
  44695. msgstr ""
  44696. #. type: deftypevr
  44697. #: guix-git/doc/guix.texi:29608
  44698. #, no-wrap
  44699. msgid "{@code{nslcd-configuration} parameter} list-of-filter-entries filters"
  44700. msgstr ""
  44701. #. type: deftypevr
  44702. #: guix-git/doc/guix.texi:29611
  44703. msgid "A list of filters consisting of the name of a map to which the filter applies and an LDAP search filter expression."
  44704. msgstr ""
  44705. #. type: deftypevr
  44706. #: guix-git/doc/guix.texi:29616
  44707. #, no-wrap
  44708. msgid "{@code{nslcd-configuration} parameter} maybe-number bind-timelimit"
  44709. msgstr ""
  44710. #. type: deftypevr
  44711. #: guix-git/doc/guix.texi:29619
  44712. msgid "Specifies the time limit in seconds to use when connecting to the directory server. The default value is 10 seconds."
  44713. msgstr ""
  44714. #. type: deftypevr
  44715. #: guix-git/doc/guix.texi:29624
  44716. #, no-wrap
  44717. msgid "{@code{nslcd-configuration} parameter} maybe-number timelimit"
  44718. msgstr ""
  44719. #. type: deftypevr
  44720. #: guix-git/doc/guix.texi:29628
  44721. 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."
  44722. msgstr ""
  44723. #. type: deftypevr
  44724. #: guix-git/doc/guix.texi:29633
  44725. #, no-wrap
  44726. msgid "{@code{nslcd-configuration} parameter} maybe-number idle-timelimit"
  44727. msgstr ""
  44728. #. type: deftypevr
  44729. #: guix-git/doc/guix.texi:29637
  44730. 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."
  44731. msgstr ""
  44732. #. type: deftypevr
  44733. #: guix-git/doc/guix.texi:29642
  44734. #, no-wrap
  44735. msgid "{@code{nslcd-configuration} parameter} maybe-number reconnect-sleeptime"
  44736. msgstr ""
  44737. #. type: deftypevr
  44738. #: guix-git/doc/guix.texi:29646
  44739. 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."
  44740. msgstr ""
  44741. #. type: deftypevr
  44742. #: guix-git/doc/guix.texi:29651
  44743. #, no-wrap
  44744. msgid "{@code{nslcd-configuration} parameter} maybe-number reconnect-retrytime"
  44745. msgstr ""
  44746. #. type: deftypevr
  44747. #: guix-git/doc/guix.texi:29655
  44748. 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."
  44749. msgstr ""
  44750. #. type: deftypevr
  44751. #: guix-git/doc/guix.texi:29660
  44752. #, no-wrap
  44753. msgid "{@code{nslcd-configuration} parameter} maybe-ssl-option ssl"
  44754. msgstr ""
  44755. #. type: deftypevr
  44756. #: guix-git/doc/guix.texi:29664
  44757. 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."
  44758. msgstr ""
  44759. #. type: deftypevr
  44760. #: guix-git/doc/guix.texi:29669
  44761. #, no-wrap
  44762. msgid "{@code{nslcd-configuration} parameter} maybe-tls-reqcert-option tls-reqcert"
  44763. msgstr ""
  44764. #. type: deftypevr
  44765. #: guix-git/doc/guix.texi:29672
  44766. 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."
  44767. msgstr ""
  44768. #. type: deftypevr
  44769. #: guix-git/doc/guix.texi:29677
  44770. #, no-wrap
  44771. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-cacertdir"
  44772. msgstr ""
  44773. #. type: deftypevr
  44774. #: guix-git/doc/guix.texi:29680
  44775. msgid "Specifies the directory containing X.509 certificates for peer authen‐ tication. This parameter is ignored when using GnuTLS."
  44776. msgstr ""
  44777. #. type: deftypevr
  44778. #: guix-git/doc/guix.texi:29685
  44779. #, no-wrap
  44780. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-cacertfile"
  44781. msgstr ""
  44782. #. type: deftypevr
  44783. #: guix-git/doc/guix.texi:29687
  44784. msgid "Specifies the path to the X.509 certificate for peer authentication."
  44785. msgstr ""
  44786. #. type: deftypevr
  44787. #: guix-git/doc/guix.texi:29692
  44788. #, no-wrap
  44789. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-randfile"
  44790. msgstr ""
  44791. #. type: deftypevr
  44792. #: guix-git/doc/guix.texi:29695
  44793. msgid "Specifies the path to an entropy source. This parameter is ignored when using GnuTLS."
  44794. msgstr ""
  44795. #. type: deftypevr
  44796. #: guix-git/doc/guix.texi:29700
  44797. #, no-wrap
  44798. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-ciphers"
  44799. msgstr ""
  44800. #. type: deftypevr
  44801. #: guix-git/doc/guix.texi:29702
  44802. msgid "Specifies the ciphers to use for TLS as a string."
  44803. msgstr ""
  44804. #. type: deftypevr
  44805. #: guix-git/doc/guix.texi:29707
  44806. #, no-wrap
  44807. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-cert"
  44808. msgstr ""
  44809. #. type: deftypevr
  44810. #: guix-git/doc/guix.texi:29710
  44811. msgid "Specifies the path to the file containing the local certificate for client TLS authentication."
  44812. msgstr ""
  44813. #. type: deftypevr
  44814. #: guix-git/doc/guix.texi:29715
  44815. #, no-wrap
  44816. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-key"
  44817. msgstr ""
  44818. #. type: deftypevr
  44819. #: guix-git/doc/guix.texi:29718
  44820. msgid "Specifies the path to the file containing the private key for client TLS authentication."
  44821. msgstr ""
  44822. #. type: deftypevr
  44823. #: guix-git/doc/guix.texi:29723
  44824. #, no-wrap
  44825. msgid "{@code{nslcd-configuration} parameter} maybe-number pagesize"
  44826. msgstr ""
  44827. #. type: deftypevr
  44828. #: guix-git/doc/guix.texi:29727
  44829. 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."
  44830. msgstr ""
  44831. #. type: deftypevr
  44832. #: guix-git/doc/guix.texi:29732
  44833. #, no-wrap
  44834. msgid "{@code{nslcd-configuration} parameter} maybe-ignore-users-option nss-initgroups-ignoreusers"
  44835. msgstr ""
  44836. #. type: deftypevr
  44837. #: guix-git/doc/guix.texi:29736
  44838. 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."
  44839. msgstr ""
  44840. #. type: deftypevr
  44841. #: guix-git/doc/guix.texi:29741
  44842. #, no-wrap
  44843. msgid "{@code{nslcd-configuration} parameter} maybe-number nss-min-uid"
  44844. msgstr ""
  44845. #. type: deftypevr
  44846. #: guix-git/doc/guix.texi:29744
  44847. msgid "This option ensures that LDAP users with a numeric user id lower than the specified value are ignored."
  44848. msgstr ""
  44849. #. type: deftypevr
  44850. #: guix-git/doc/guix.texi:29749
  44851. #, no-wrap
  44852. msgid "{@code{nslcd-configuration} parameter} maybe-number nss-uid-offset"
  44853. msgstr ""
  44854. #. type: deftypevr
  44855. #: guix-git/doc/guix.texi:29752
  44856. 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."
  44857. msgstr ""
  44858. #. type: deftypevr
  44859. #: guix-git/doc/guix.texi:29757
  44860. #, no-wrap
  44861. msgid "{@code{nslcd-configuration} parameter} maybe-number nss-gid-offset"
  44862. msgstr ""
  44863. #. type: deftypevr
  44864. #: guix-git/doc/guix.texi:29760
  44865. 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."
  44866. msgstr ""
  44867. #. type: deftypevr
  44868. #: guix-git/doc/guix.texi:29765
  44869. #, no-wrap
  44870. msgid "{@code{nslcd-configuration} parameter} maybe-boolean nss-nested-groups"
  44871. msgstr ""
  44872. #. type: deftypevr
  44873. #: guix-git/doc/guix.texi:29771
  44874. 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."
  44875. msgstr ""
  44876. #. type: deftypevr
  44877. #: guix-git/doc/guix.texi:29776
  44878. #, no-wrap
  44879. msgid "{@code{nslcd-configuration} parameter} maybe-boolean nss-getgrent-skipmembers"
  44880. msgstr ""
  44881. #. type: deftypevr
  44882. #: guix-git/doc/guix.texi:29781
  44883. 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."
  44884. msgstr ""
  44885. #. type: deftypevr
  44886. #: guix-git/doc/guix.texi:29786
  44887. #, no-wrap
  44888. msgid "{@code{nslcd-configuration} parameter} maybe-boolean nss-disable-enumeration"
  44889. msgstr ""
  44890. #. type: deftypevr
  44891. #: guix-git/doc/guix.texi:29792
  44892. 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."
  44893. msgstr ""
  44894. #. type: deftypevr
  44895. #: guix-git/doc/guix.texi:29797
  44896. #, no-wrap
  44897. msgid "{@code{nslcd-configuration} parameter} maybe-string validnames"
  44898. msgstr ""
  44899. #. type: deftypevr
  44900. #: guix-git/doc/guix.texi:29801
  44901. 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."
  44902. msgstr ""
  44903. #. type: deftypevr
  44904. #: guix-git/doc/guix.texi:29806
  44905. #, no-wrap
  44906. msgid "{@code{nslcd-configuration} parameter} maybe-boolean ignorecase"
  44907. msgstr ""
  44908. #. type: deftypevr
  44909. #: guix-git/doc/guix.texi:29811
  44910. 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."
  44911. msgstr ""
  44912. #. type: deftypevr
  44913. #: guix-git/doc/guix.texi:29816
  44914. #, no-wrap
  44915. msgid "{@code{nslcd-configuration} parameter} maybe-boolean pam-authc-ppolicy"
  44916. msgstr ""
  44917. #. type: deftypevr
  44918. #: guix-git/doc/guix.texi:29819
  44919. msgid "This option specifies whether password policy controls are requested and handled from the LDAP server when performing user authentication."
  44920. msgstr ""
  44921. #. type: deftypevr
  44922. #: guix-git/doc/guix.texi:29824
  44923. #, no-wrap
  44924. msgid "{@code{nslcd-configuration} parameter} maybe-string pam-authc-search"
  44925. msgstr ""
  44926. #. type: deftypevr
  44927. #: guix-git/doc/guix.texi:29830
  44928. 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."
  44929. msgstr ""
  44930. #. type: deftypevr
  44931. #: guix-git/doc/guix.texi:29835
  44932. #, no-wrap
  44933. msgid "{@code{nslcd-configuration} parameter} maybe-string pam-authz-search"
  44934. msgstr ""
  44935. #. type: deftypevr
  44936. #: guix-git/doc/guix.texi:29839
  44937. 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."
  44938. msgstr ""
  44939. #. type: deftypevr
  44940. #: guix-git/doc/guix.texi:29844
  44941. #, no-wrap
  44942. msgid "{@code{nslcd-configuration} parameter} maybe-string pam-password-prohibit-message"
  44943. msgstr ""
  44944. #. type: deftypevr
  44945. #: guix-git/doc/guix.texi:29849
  44946. 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."
  44947. msgstr ""
  44948. #. type: deftypevr
  44949. #: guix-git/doc/guix.texi:29854
  44950. #, no-wrap
  44951. msgid "{@code{nslcd-configuration} parameter} list pam-services"
  44952. msgstr ""
  44953. #. type: deftypevr
  44954. #: guix-git/doc/guix.texi:29856
  44955. msgid "List of pam service names for which LDAP authentication should suffice."
  44956. msgstr ""
  44957. #. type: subsubheading
  44958. #: guix-git/doc/guix.texi:29864
  44959. #, fuzzy, no-wrap
  44960. msgid "LDAP Directory Server"
  44961. msgstr "定义服务"
  44962. #. type: cindex
  44963. #: guix-git/doc/guix.texi:29865
  44964. #, fuzzy, no-wrap
  44965. msgid "LDAP, server"
  44966. msgstr "Web服务。"
  44967. #. type: Plain text
  44968. #: guix-git/doc/guix.texi:29870
  44969. msgid "The @code{(gnu services ldap)} module provides the @code{directory-server-service-type}, which can be used to create and launch an LDAP server instance."
  44970. msgstr ""
  44971. #. type: Plain text
  44972. #: guix-git/doc/guix.texi:29873
  44973. #, fuzzy
  44974. msgid "Here is an example configuration of the @code{directory-server-service-type}:"
  44975. msgstr "管理操作系统配置。"
  44976. #. type: lisp
  44977. #: guix-git/doc/guix.texi:29876
  44978. #, no-wrap
  44979. msgid ""
  44980. "(use-service-modules ldap)\n"
  44981. "\n"
  44982. msgstr ""
  44983. #. type: lisp
  44984. #: guix-git/doc/guix.texi:29888
  44985. #, no-wrap
  44986. msgid ""
  44987. "...\n"
  44988. "(operating-system\n"
  44989. " ...\n"
  44990. " (services\n"
  44991. " (cons\n"
  44992. " (service directory-server-service-type\n"
  44993. " (directory-server-instance-configuration\n"
  44994. " (slapd\n"
  44995. " (slapd-configuration\n"
  44996. " (root-password \"@{PBKDF2_SHA256@}AAAgAG@dots{}ABSOLUTELYSECRET\")))))\n"
  44997. " %base-services)))\n"
  44998. msgstr ""
  44999. #. type: Plain text
  45000. #: guix-git/doc/guix.texi:29892
  45001. msgid "The root password should be generated with the @command{pwdhash} utility that is provided by the @code{389-ds-base} package."
  45002. msgstr ""
  45003. #. type: Plain text
  45004. #: guix-git/doc/guix.texi:29897
  45005. msgid "Note that changes to the directory server configuration will not be applied to existing instances. You will need to back up and restore server data manually. Only new directory server instances will be created upon system reconfiguration."
  45006. msgstr ""
  45007. #. type: deftp
  45008. #: guix-git/doc/guix.texi:29899
  45009. #, fuzzy, no-wrap
  45010. msgid "{Data Type} directory-server-instance-configuration"
  45011. msgstr "{数据类型} build-machine"
  45012. #. type: deftp
  45013. #: guix-git/doc/guix.texi:29901
  45014. #, fuzzy
  45015. msgid "Available @code{directory-server-instance-configuration} fields are:"
  45016. msgstr "{数据类型} build-machine"
  45017. #. type: item
  45018. #: guix-git/doc/guix.texi:29903
  45019. #, fuzzy, no-wrap
  45020. msgid "@code{package} (default: @code{389-ds-base}) (type: file-like)"
  45021. msgstr "@code{xfce}(默认值:@code{xfce})"
  45022. #. type: table
  45023. #: guix-git/doc/guix.texi:29905
  45024. #, fuzzy
  45025. msgid "The @code{389-ds-base} package."
  45026. msgstr "软件包数据类型。"
  45027. #. type: item
  45028. #: guix-git/doc/guix.texi:29906
  45029. #, fuzzy, no-wrap
  45030. msgid "@code{config-version} (default: @code{2}) (type: number)"
  45031. msgstr "@code{port}(默认值:@code{22})"
  45032. #. type: table
  45033. #: guix-git/doc/guix.texi:29909
  45034. msgid "Sets the format version of the configuration file. To use the INF file with @command{dscreate}, this parameter must be 2."
  45035. msgstr ""
  45036. #. type: item
  45037. #: guix-git/doc/guix.texi:29910
  45038. #, fuzzy, no-wrap
  45039. msgid "@code{full-machine-name} (default: @code{\"localhost\"}) (type: string)"
  45040. msgstr "@code{xfce}(默认值:@code{xfce})"
  45041. #. type: table
  45042. #: guix-git/doc/guix.texi:29912
  45043. msgid "Sets the fully qualified hostname (FQDN) of this system."
  45044. msgstr ""
  45045. #. type: item
  45046. #: guix-git/doc/guix.texi:29913
  45047. #, fuzzy, no-wrap
  45048. msgid "@code{selinux} (default: @code{#false}) (type: boolean)"
  45049. msgstr "@code{challenge}(默认值:@code{#f})"
  45050. #. type: table
  45051. #: guix-git/doc/guix.texi:29917
  45052. msgid "Enables SELinux detection and integration during the installation of this instance. If set to @code{#true}, @command{dscreate} auto-detects whether SELinux is enabled."
  45053. msgstr ""
  45054. #. type: item
  45055. #: guix-git/doc/guix.texi:29918
  45056. #, fuzzy, no-wrap
  45057. msgid "@code{strict-host-checking} (default: @code{#true}) (type: boolean)"
  45058. msgstr "@code{challenge}(默认值:@code{#f})"
  45059. #. type: table
  45060. #: guix-git/doc/guix.texi:29923
  45061. msgid "Sets whether the server verifies the forward and reverse record set in the @code{full-machine-name} parameter. When installing this instance with GSSAPI authentication behind a load balancer, set this parameter to @code{#false}."
  45062. msgstr ""
  45063. #. type: item
  45064. #: guix-git/doc/guix.texi:29924
  45065. #, fuzzy, no-wrap
  45066. msgid "@code{systemd} (default: @code{#false}) (type: boolean)"
  45067. msgstr "@code{speed}(默认值:@code{1.0})"
  45068. #. type: table
  45069. #: guix-git/doc/guix.texi:29927
  45070. msgid "Enables systemd platform features. If set to @code{#true}, @command{dscreate} auto-detects whether systemd is installed."
  45071. msgstr ""
  45072. #. type: item
  45073. #: guix-git/doc/guix.texi:29928
  45074. #, fuzzy, no-wrap
  45075. msgid "@code{slapd} (type: slapd-configuration)"
  45076. msgstr "{数据类型} build-machine"
  45077. #. type: table
  45078. #: guix-git/doc/guix.texi:29930
  45079. #, fuzzy
  45080. msgid "Configuration of slapd."
  45081. msgstr "系统配置"
  45082. #. type: deftp
  45083. #: guix-git/doc/guix.texi:29931
  45084. #, fuzzy, no-wrap
  45085. msgid "{Data Type} slapd-configuration"
  45086. msgstr "{数据类型} build-machine"
  45087. #. type: deftp
  45088. #: guix-git/doc/guix.texi:29933
  45089. #, fuzzy
  45090. msgid "Available @code{slapd-configuration} fields are:"
  45091. msgstr "{数据类型} build-machine"
  45092. #. type: item
  45093. #: guix-git/doc/guix.texi:29935
  45094. #, fuzzy, no-wrap
  45095. msgid "@code{instance-name} (default: @code{\"localhost\"}) (type: string)"
  45096. msgstr "@code{xfce}(默认值:@code{xfce})"
  45097. #. type: table
  45098. #: guix-git/doc/guix.texi:29939
  45099. msgid "Sets the name of the instance. You can refer to this value in other parameters of this INF file using the @code{@{instance_name@}} variable. Note that this name cannot be changed after the installation!"
  45100. msgstr ""
  45101. #. type: item
  45102. #: guix-git/doc/guix.texi:29940
  45103. #, fuzzy, no-wrap
  45104. msgid "@code{user} (default: @code{\"dirsrv\"}) (type: string)"
  45105. msgstr "@code{xfce}(默认值:@code{xfce})"
  45106. #. type: table
  45107. #: guix-git/doc/guix.texi:29943
  45108. msgid "Sets the user name the ns-slapd process will use after the service started."
  45109. msgstr ""
  45110. #. type: item
  45111. #: guix-git/doc/guix.texi:29944
  45112. #, fuzzy, no-wrap
  45113. msgid "@code{group} (default: @code{\"dirsrv\"}) (type: string)"
  45114. msgstr "@code{port}(默认值:@code{22})"
  45115. #. type: table
  45116. #: guix-git/doc/guix.texi:29947
  45117. msgid "Sets the group name the ns-slapd process will use after the service started."
  45118. msgstr ""
  45119. #. type: item
  45120. #: guix-git/doc/guix.texi:29948
  45121. #, fuzzy, no-wrap
  45122. msgid "@code{port} (default: @code{389}) (type: number)"
  45123. msgstr "@code{port}(默认值:@code{22})"
  45124. #. type: table
  45125. #: guix-git/doc/guix.texi:29950
  45126. msgid "Sets the TCP port the instance uses for LDAP connections."
  45127. msgstr ""
  45128. #. type: item
  45129. #: guix-git/doc/guix.texi:29951
  45130. #, fuzzy, no-wrap
  45131. msgid "@code{secure-port} (default: @code{636}) (type: number)"
  45132. msgstr "@code{port}(默认值:@code{22})"
  45133. #. type: table
  45134. #: guix-git/doc/guix.texi:29954
  45135. msgid "Sets the TCP port the instance uses for TLS-secured LDAP connections (LDAPS)."
  45136. msgstr ""
  45137. #. type: item
  45138. #: guix-git/doc/guix.texi:29955
  45139. #, fuzzy, no-wrap
  45140. msgid "@code{root-dn} (default: @code{\"cn=Directory Manager\"}) (type: string)"
  45141. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  45142. #. type: table
  45143. #: guix-git/doc/guix.texi:29958
  45144. msgid "Sets the @dfn{Distinquished Name} (DN) of the administrator account for this instance."
  45145. msgstr ""
  45146. #. type: item
  45147. #: guix-git/doc/guix.texi:29959
  45148. #, fuzzy, no-wrap
  45149. msgid "@code{root-password} (default: @code{\"@{invalid@}YOU-SHOULD-CHANGE-THIS\"}) (type: string)"
  45150. msgstr "@code{port}(默认值:@code{22})"
  45151. #. type: table
  45152. #: guix-git/doc/guix.texi:29966
  45153. msgid "Sets the password of the account specified in the @code{root-dn} parameter. You can either set this parameter to a plain text password @command{dscreate} hashes during the installation or to a \"@{algorithm@}hash\" string generated by the @command{pwdhash} utility. Note that setting a plain text password can be a security risk if unprivileged users can read this INF file!"
  45154. msgstr ""
  45155. #. type: item
  45156. #: guix-git/doc/guix.texi:29967
  45157. #, fuzzy, no-wrap
  45158. msgid "@code{self-sign-cert} (default: @code{#true}) (type: boolean)"
  45159. msgstr "@code{speed}(默认值:@code{1.0})"
  45160. #. type: table
  45161. #: guix-git/doc/guix.texi:29973
  45162. msgid "Sets whether the setup creates a self-signed certificate and enables TLS encryption during the installation. This is not suitable for production, but it enables administrators to use TLS right after the installation. You can replace the self-signed certificate with a certificate issued by a certificate authority."
  45163. msgstr ""
  45164. #. type: item
  45165. #: guix-git/doc/guix.texi:29974
  45166. #, fuzzy, no-wrap
  45167. msgid "@code{self-sign-cert-valid-months} (default: @code{24}) (type: number)"
  45168. msgstr "@code{challenge}(默认值:@code{#f})"
  45169. #. type: table
  45170. #: guix-git/doc/guix.texi:29977
  45171. msgid "Set the number of months the issued self-signed certificate will be valid."
  45172. msgstr ""
  45173. #. type: item
  45174. #: guix-git/doc/guix.texi:29978
  45175. #, fuzzy, no-wrap
  45176. msgid "@code{backup-dir} (default: @code{\"/var/lib/dirsrv/slapd-@{instance_name@}/bak\"}) (type: string)"
  45177. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  45178. #. type: table
  45179. #: guix-git/doc/guix.texi:29980
  45180. #, fuzzy
  45181. msgid "Set the backup directory of the instance."
  45182. msgstr "仓库的纯函数式接口。"
  45183. #. type: item
  45184. #: guix-git/doc/guix.texi:29981
  45185. #, fuzzy, no-wrap
  45186. msgid "@code{cert-dir} (default: @code{\"/etc/dirsrv/slapd-@{instance_name@}\"}) (type: string)"
  45187. msgstr "@code{xfce}(默认值:@code{xfce})"
  45188. #. type: table
  45189. #: guix-git/doc/guix.texi:29984
  45190. msgid "Sets the directory of the instance's Network Security Services (NSS) database."
  45191. msgstr ""
  45192. #. type: item
  45193. #: guix-git/doc/guix.texi:29985
  45194. #, fuzzy, no-wrap
  45195. msgid "@code{config-dir} (default: @code{\"/etc/dirsrv/slapd-@{instance_name@}\"}) (type: string)"
  45196. msgstr "@code{port}(默认值:@code{22})"
  45197. #. type: table
  45198. #: guix-git/doc/guix.texi:29987
  45199. #, fuzzy
  45200. msgid "Sets the configuration directory of the instance."
  45201. msgstr "管理操作系统配置。"
  45202. #. type: item
  45203. #: guix-git/doc/guix.texi:29988
  45204. #, fuzzy, no-wrap
  45205. msgid "@code{db-dir} (default: @code{\"/var/lib/dirsrv/slapd-@{instance_name@}/db\"}) (type: string)"
  45206. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  45207. #. type: table
  45208. #: guix-git/doc/guix.texi:29990
  45209. #, fuzzy
  45210. msgid "Sets the database directory of the instance."
  45211. msgstr "仓库的纯函数式接口。"
  45212. #. type: item
  45213. #: guix-git/doc/guix.texi:29991
  45214. #, fuzzy, no-wrap
  45215. msgid "@code{initconfig-dir} (default: @code{\"/etc/dirsrv/registry\"}) (type: string)"
  45216. msgstr "@code{port}(默认值:@code{22})"
  45217. #. type: table
  45218. #: guix-git/doc/guix.texi:29993
  45219. #, fuzzy
  45220. msgid "Sets the directory of the operating system's rc configuration directory."
  45221. msgstr "管理操作系统配置。"
  45222. #. type: item
  45223. #: guix-git/doc/guix.texi:29994
  45224. #, fuzzy, no-wrap
  45225. msgid "@code{ldif-dir} (default: @code{\"/var/lib/dirsrv/slapd-@{instance_name@}/ldif\"}) (type: string)"
  45226. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  45227. #. type: table
  45228. #: guix-git/doc/guix.texi:29996
  45229. msgid "Sets the LDIF export and import directory of the instance."
  45230. msgstr ""
  45231. #. type: item
  45232. #: guix-git/doc/guix.texi:29997
  45233. #, fuzzy, no-wrap
  45234. msgid "@code{lock-dir} (default: @code{\"/var/lock/dirsrv/slapd-@{instance_name@}\"}) (type: string)"
  45235. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  45236. #. type: table
  45237. #: guix-git/doc/guix.texi:29999
  45238. #, fuzzy
  45239. msgid "Sets the lock directory of the instance."
  45240. msgstr "仓库的纯函数式接口。"
  45241. #. type: item
  45242. #: guix-git/doc/guix.texi:30000
  45243. #, fuzzy, no-wrap
  45244. msgid "@code{log-dir} (default: @code{\"/var/log/dirsrv/slapd-@{instance_name@}\"}) (type: string)"
  45245. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  45246. #. type: table
  45247. #: guix-git/doc/guix.texi:30002
  45248. #, fuzzy
  45249. msgid "Sets the log directory of the instance."
  45250. msgstr "仓库的纯函数式接口。"
  45251. #. type: item
  45252. #: guix-git/doc/guix.texi:30003
  45253. #, fuzzy, no-wrap
  45254. msgid "@code{run-dir} (default: @code{\"/run/dirsrv\"}) (type: string)"
  45255. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  45256. #. type: table
  45257. #: guix-git/doc/guix.texi:30005
  45258. #, fuzzy
  45259. msgid "Sets PID directory of the instance."
  45260. msgstr "仓库的纯函数式接口。"
  45261. #. type: item
  45262. #: guix-git/doc/guix.texi:30006
  45263. #, fuzzy, no-wrap
  45264. msgid "@code{schema-dir} (default: @code{\"/etc/dirsrv/slapd-@{instance_name@}/schema\"}) (type: string)"
  45265. msgstr "@code{xfce}(默认值:@code{xfce})"
  45266. #. type: table
  45267. #: guix-git/doc/guix.texi:30008
  45268. #, fuzzy
  45269. msgid "Sets schema directory of the instance."
  45270. msgstr "仓库的纯函数式接口。"
  45271. #. type: item
  45272. #: guix-git/doc/guix.texi:30009
  45273. #, fuzzy, no-wrap
  45274. msgid "@code{tmp-dir} (default: @code{\"/tmp\"}) (type: string)"
  45275. msgstr "@code{port}(默认值:@code{22})"
  45276. #. type: table
  45277. #: guix-git/doc/guix.texi:30011
  45278. #, fuzzy
  45279. msgid "Sets the temporary directory of the instance."
  45280. msgstr "仓库的纯函数式接口。"
  45281. #. type: item
  45282. #: guix-git/doc/guix.texi:30014
  45283. #, fuzzy, no-wrap
  45284. msgid "@code{backend-userroot} (type: backend-userroot-configuration)"
  45285. msgstr "{数据类型} build-machine"
  45286. #. type: table
  45287. #: guix-git/doc/guix.texi:30016
  45288. #, fuzzy
  45289. #| msgid "Configuring the boot loader."
  45290. msgid "Configuration of the userroot backend."
  45291. msgstr "设置引导程序。"
  45292. #. type: deftp
  45293. #: guix-git/doc/guix.texi:30017
  45294. #, fuzzy, no-wrap
  45295. msgid "{Data Type} backend-userroot-configuration"
  45296. msgstr "{数据类型} build-machine"
  45297. #. type: deftp
  45298. #: guix-git/doc/guix.texi:30019
  45299. #, fuzzy
  45300. msgid "Available @code{backend-userroot-configuration} fields are:"
  45301. msgstr "{数据类型} build-machine"
  45302. #. type: item
  45303. #: guix-git/doc/guix.texi:30021
  45304. #, fuzzy, no-wrap
  45305. msgid "@code{create-suffix-entry?} (default: @code{#false}) (type: boolean)"
  45306. msgstr "@code{challenge}(默认值:@code{#f})"
  45307. #. type: table
  45308. #: guix-git/doc/guix.texi:30024
  45309. msgid "Set this parameter to @code{#true} to create a generic root node entry for the suffix in the database."
  45310. msgstr ""
  45311. #. type: item
  45312. #: guix-git/doc/guix.texi:30025
  45313. #, fuzzy, no-wrap
  45314. msgid "@code{require-index?} (default: @code{#false}) (type: boolean)"
  45315. msgstr "@code{speed}(默认值:@code{1.0})"
  45316. #. type: table
  45317. #: guix-git/doc/guix.texi:30028
  45318. msgid "Set this parameter to @code{#true} to refuse unindexed searches in this database."
  45319. msgstr ""
  45320. #. type: item
  45321. #: guix-git/doc/guix.texi:30029
  45322. #, fuzzy, no-wrap
  45323. msgid "@code{sample-entries} (default: @code{\"no\"}) (type: string)"
  45324. msgstr "@code{port}(默认值:@code{22})"
  45325. #. type: table
  45326. #: guix-git/doc/guix.texi:30034
  45327. msgid "Set this parameter to @code{\"yes\"} to add latest version of sample entries to this database. Or, use @code{\"001003006\"} to use the 1.3.6 version sample entries. Use this option, for example, to create a database for testing purposes."
  45328. msgstr ""
  45329. #. type: item
  45330. #: guix-git/doc/guix.texi:30035
  45331. #, fuzzy, no-wrap
  45332. msgid "@code{suffix} (type: maybe-string)"
  45333. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  45334. #. type: table
  45335. #: guix-git/doc/guix.texi:30040
  45336. msgid "Sets the root suffix stored in this database. If you do not set the suffix attribute the install process will not create the backend/suffix. You can also create multiple backends/suffixes by duplicating this section."
  45337. msgstr ""
  45338. #. type: cindex
  45339. #: guix-git/doc/guix.texi:30050
  45340. #, no-wrap
  45341. msgid "web"
  45342. msgstr ""
  45343. #. type: cindex
  45344. #: guix-git/doc/guix.texi:30051
  45345. #, no-wrap
  45346. msgid "www"
  45347. msgstr ""
  45348. #. type: cindex
  45349. #: guix-git/doc/guix.texi:30052
  45350. #, no-wrap
  45351. msgid "HTTP"
  45352. msgstr ""
  45353. #. type: Plain text
  45354. #: guix-git/doc/guix.texi:30055
  45355. msgid "The @code{(gnu services web)} module provides the Apache HTTP Server, the nginx web server, and also a fastcgi wrapper daemon."
  45356. msgstr ""
  45357. #. type: subsubheading
  45358. #: guix-git/doc/guix.texi:30056
  45359. #, no-wrap
  45360. msgid "Apache HTTP Server"
  45361. msgstr ""
  45362. #. type: defvar
  45363. #: guix-git/doc/guix.texi:30058
  45364. #, fuzzy, no-wrap
  45365. msgid "httpd-service-type"
  45366. msgstr "邮件服务"
  45367. #. type: defvar
  45368. #: guix-git/doc/guix.texi:30062
  45369. 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."
  45370. msgstr ""
  45371. #. type: defvar
  45372. #: guix-git/doc/guix.texi:30064 guix-git/doc/guix.texi:30246
  45373. msgid "A simple example configuration is given below."
  45374. msgstr ""
  45375. #. type: lisp
  45376. #: guix-git/doc/guix.texi:30072
  45377. #, no-wrap
  45378. msgid ""
  45379. "(service httpd-service-type\n"
  45380. " (httpd-configuration\n"
  45381. " (config\n"
  45382. " (httpd-config-file\n"
  45383. " (server-name \"www.example.com\")\n"
  45384. " (document-root \"/srv/http/www.example.com\")))))\n"
  45385. msgstr ""
  45386. #. type: defvar
  45387. #: guix-git/doc/guix.texi:30076
  45388. msgid "Other services can also extend the @code{httpd-service-type} to add to the configuration."
  45389. msgstr ""
  45390. #. type: lisp
  45391. #: guix-git/doc/guix.texi:30085 guix-git/doc/guix.texi:30225
  45392. #, no-wrap
  45393. msgid ""
  45394. "(simple-service 'www.example.com-server httpd-service-type\n"
  45395. " (list\n"
  45396. " (httpd-virtualhost\n"
  45397. " \"*:80\"\n"
  45398. " (list (string-join '(\"ServerName www.example.com\"\n"
  45399. " \"DocumentRoot /srv/http/www.example.com\")\n"
  45400. " \"\\n\")))))\n"
  45401. msgstr ""
  45402. #. type: Plain text
  45403. #: guix-git/doc/guix.texi:30091
  45404. msgid "The details for the @code{httpd-configuration}, @code{httpd-module}, @code{httpd-config-file} and @code{httpd-virtualhost} record types are given below."
  45405. msgstr ""
  45406. #. type: deftp
  45407. #: guix-git/doc/guix.texi:30092
  45408. #, no-wrap
  45409. msgid "{Data Type} httpd-configuration"
  45410. msgstr ""
  45411. #. type: deftp
  45412. #: guix-git/doc/guix.texi:30094
  45413. msgid "This data type represents the configuration for the httpd service."
  45414. msgstr ""
  45415. #. type: item
  45416. #: guix-git/doc/guix.texi:30096
  45417. #, no-wrap
  45418. msgid "@code{package} (default: @code{httpd})"
  45419. msgstr ""
  45420. #. type: table
  45421. #: guix-git/doc/guix.texi:30098
  45422. msgid "The httpd package to use."
  45423. msgstr ""
  45424. #. type: item
  45425. #: guix-git/doc/guix.texi:30099 guix-git/doc/guix.texi:30188
  45426. #, no-wrap
  45427. msgid "@code{pid-file} (default: @code{\"/var/run/httpd\"})"
  45428. msgstr ""
  45429. #. type: table
  45430. #: guix-git/doc/guix.texi:30101
  45431. msgid "The pid file used by the shepherd-service."
  45432. msgstr ""
  45433. #. type: item
  45434. #: guix-git/doc/guix.texi:30102
  45435. #, no-wrap
  45436. msgid "@code{config} (default: @code{(httpd-config-file)})"
  45437. msgstr ""
  45438. #. type: table
  45439. #: guix-git/doc/guix.texi:30107
  45440. 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."
  45441. msgstr ""
  45442. #. type: deftp
  45443. #: guix-git/doc/guix.texi:30111
  45444. #, no-wrap
  45445. msgid "{Data Type} httpd-module"
  45446. msgstr ""
  45447. #. type: deftp
  45448. #: guix-git/doc/guix.texi:30113
  45449. msgid "This data type represents a module for the httpd service."
  45450. msgstr ""
  45451. #. type: table
  45452. #: guix-git/doc/guix.texi:30117
  45453. msgid "The name of the module."
  45454. msgstr ""
  45455. #. type: table
  45456. #: guix-git/doc/guix.texi:30123
  45457. 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\")}."
  45458. msgstr ""
  45459. #. type: defvar
  45460. #: guix-git/doc/guix.texi:30127
  45461. #, no-wrap
  45462. msgid "%default-httpd-modules"
  45463. msgstr ""
  45464. #. type: defvar
  45465. #: guix-git/doc/guix.texi:30129
  45466. msgid "A default list of @code{httpd-module} objects."
  45467. msgstr ""
  45468. #. type: deftp
  45469. #: guix-git/doc/guix.texi:30131
  45470. #, no-wrap
  45471. msgid "{Data Type} httpd-config-file"
  45472. msgstr ""
  45473. #. type: deftp
  45474. #: guix-git/doc/guix.texi:30133
  45475. msgid "This data type represents a configuration file for the httpd service."
  45476. msgstr ""
  45477. #. type: item
  45478. #: guix-git/doc/guix.texi:30135
  45479. #, no-wrap
  45480. msgid "@code{modules} (default: @code{%default-httpd-modules})"
  45481. msgstr ""
  45482. #. type: table
  45483. #: guix-git/doc/guix.texi:30138
  45484. msgid "The modules to load. Additional modules can be added here, or loaded by additional configuration."
  45485. msgstr ""
  45486. #. type: table
  45487. #: guix-git/doc/guix.texi:30141
  45488. 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}:"
  45489. msgstr ""
  45490. #. type: lisp
  45491. #: guix-git/doc/guix.texi:30163
  45492. #, no-wrap
  45493. msgid ""
  45494. "(service httpd-service-type\n"
  45495. " (httpd-configuration\n"
  45496. " (config\n"
  45497. " (httpd-config-file\n"
  45498. " (modules (cons*\n"
  45499. " (httpd-module\n"
  45500. " (name \"proxy_module\")\n"
  45501. " (file \"modules/mod_proxy.so\"))\n"
  45502. " (httpd-module\n"
  45503. " (name \"proxy_fcgi_module\")\n"
  45504. " (file \"modules/mod_proxy_fcgi.so\"))\n"
  45505. " %default-httpd-modules))\n"
  45506. " (extra-config (list \"\\\n"
  45507. "<FilesMatch \\\\.php$>\n"
  45508. " SetHandler \\\"proxy:unix:/var/run/php-fpm.sock|fcgi://localhost/\\\"\n"
  45509. "</FilesMatch>\"))))))\n"
  45510. "(service php-fpm-service-type\n"
  45511. " (php-fpm-configuration\n"
  45512. " (socket \"/var/run/php-fpm.sock\")\n"
  45513. " (socket-group \"httpd\")))\n"
  45514. msgstr ""
  45515. #. type: item
  45516. #: guix-git/doc/guix.texi:30165
  45517. #, no-wrap
  45518. msgid "@code{server-root} (default: @code{httpd})"
  45519. msgstr ""
  45520. #. type: table
  45521. #: guix-git/doc/guix.texi:30169
  45522. 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."
  45523. msgstr ""
  45524. #. type: item
  45525. #: guix-git/doc/guix.texi:30170
  45526. #, no-wrap
  45527. msgid "@code{server-name} (default: @code{#f})"
  45528. msgstr ""
  45529. #. type: table
  45530. #: guix-git/doc/guix.texi:30174
  45531. msgid "The @code{ServerName} in the configuration file, used to specify the request scheme, hostname and port that the server uses to identify itself."
  45532. msgstr ""
  45533. #. type: table
  45534. #: guix-git/doc/guix.texi:30178
  45535. 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}."
  45536. msgstr ""
  45537. #. type: item
  45538. #: guix-git/doc/guix.texi:30179
  45539. #, no-wrap
  45540. msgid "@code{document-root} (default: @code{\"/srv/http\"})"
  45541. msgstr ""
  45542. #. type: table
  45543. #: guix-git/doc/guix.texi:30181
  45544. msgid "The @code{DocumentRoot} from which files will be served."
  45545. msgstr ""
  45546. #. type: item
  45547. #: guix-git/doc/guix.texi:30182
  45548. #, no-wrap
  45549. msgid "@code{listen} (default: @code{'(\"80\")})"
  45550. msgstr ""
  45551. #. type: table
  45552. #: guix-git/doc/guix.texi:30187
  45553. 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."
  45554. msgstr ""
  45555. #. type: table
  45556. #: guix-git/doc/guix.texi:30192
  45557. 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."
  45558. msgstr ""
  45559. #. type: item
  45560. #: guix-git/doc/guix.texi:30193
  45561. #, no-wrap
  45562. msgid "@code{error-log} (default: @code{\"/var/log/httpd/error_log\"})"
  45563. msgstr ""
  45564. #. type: table
  45565. #: guix-git/doc/guix.texi:30195
  45566. msgid "The @code{ErrorLog} to which the server will log errors."
  45567. msgstr ""
  45568. #. type: item
  45569. #: guix-git/doc/guix.texi:30196 guix-git/doc/guix.texi:30775
  45570. #, no-wrap
  45571. msgid "@code{user} (default: @code{\"httpd\"})"
  45572. msgstr ""
  45573. #. type: table
  45574. #: guix-git/doc/guix.texi:30198
  45575. msgid "The @code{User} which the server will answer requests as."
  45576. msgstr ""
  45577. #. type: item
  45578. #: guix-git/doc/guix.texi:30199
  45579. #, no-wrap
  45580. msgid "@code{group} (default: @code{\"httpd\"})"
  45581. msgstr ""
  45582. #. type: table
  45583. #: guix-git/doc/guix.texi:30201
  45584. msgid "The @code{Group} which the server will answer requests as."
  45585. msgstr ""
  45586. #. type: item
  45587. #: guix-git/doc/guix.texi:30202
  45588. #, no-wrap
  45589. msgid "@code{extra-config} (default: @code{(list \"TypesConfig etc/httpd/mime.types\")})"
  45590. msgstr ""
  45591. #. type: table
  45592. #: guix-git/doc/guix.texi:30205
  45593. msgid "A flat list of strings and G-expressions which will be added to the end of the configuration file."
  45594. msgstr ""
  45595. #. type: table
  45596. #: guix-git/doc/guix.texi:30208
  45597. msgid "Any values which the service is extended with will be appended to this list."
  45598. msgstr ""
  45599. #. type: deftp
  45600. #: guix-git/doc/guix.texi:30212
  45601. #, no-wrap
  45602. msgid "{Data Type} httpd-virtualhost"
  45603. msgstr ""
  45604. #. type: deftp
  45605. #: guix-git/doc/guix.texi:30214
  45606. msgid "This data type represents a virtualhost configuration block for the httpd service."
  45607. msgstr ""
  45608. #. type: deftp
  45609. #: guix-git/doc/guix.texi:30216
  45610. msgid "These should be added to the extra-config for the httpd-service."
  45611. msgstr ""
  45612. #. type: code{#1}
  45613. #: guix-git/doc/guix.texi:30228
  45614. #, no-wrap
  45615. msgid "addresses-and-ports"
  45616. msgstr ""
  45617. #. type: table
  45618. #: guix-git/doc/guix.texi:30230
  45619. msgid "The addresses and ports for the @code{VirtualHost} directive."
  45620. msgstr ""
  45621. #. type: code{#1}
  45622. #: guix-git/doc/guix.texi:30231
  45623. #, no-wrap
  45624. msgid "contents"
  45625. msgstr ""
  45626. #. type: table
  45627. #: guix-git/doc/guix.texi:30234
  45628. msgid "The contents of the @code{VirtualHost} directive, this should be a list of strings and G-expressions."
  45629. msgstr ""
  45630. #. type: subsubheading
  45631. #: guix-git/doc/guix.texi:30239
  45632. #, no-wrap
  45633. msgid "NGINX"
  45634. msgstr ""
  45635. #. type: defvar
  45636. #: guix-git/doc/guix.texi:30241
  45637. #, fuzzy, no-wrap
  45638. msgid "nginx-service-type"
  45639. msgstr "邮件服务"
  45640. #. type: defvar
  45641. #: guix-git/doc/guix.texi:30244
  45642. msgid "Service type for the @uref{https://nginx.org/,NGinx} web server. The value for this service type is a @code{<nginx-configuration>} record."
  45643. msgstr ""
  45644. #. type: lisp
  45645. #: guix-git/doc/guix.texi:30254 guix-git/doc/guix.texi:30321
  45646. #, no-wrap
  45647. msgid ""
  45648. "(service nginx-service-type\n"
  45649. " (nginx-configuration\n"
  45650. " (server-blocks\n"
  45651. " (list (nginx-server-configuration\n"
  45652. " (server-name '(\"www.example.com\"))\n"
  45653. " (root \"/srv/http/www.example.com\"))))))\n"
  45654. msgstr ""
  45655. #. type: defvar
  45656. #: guix-git/doc/guix.texi:30259
  45657. 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:"
  45658. msgstr ""
  45659. #. type: lisp
  45660. #: guix-git/doc/guix.texi:30265
  45661. #, no-wrap
  45662. msgid ""
  45663. "(simple-service 'my-extra-server nginx-service-type\n"
  45664. " (list (nginx-server-configuration\n"
  45665. " (root \"/srv/http/extra-website\")\n"
  45666. " (try-files (list \"$uri\" \"$uri/index.html\")))))\n"
  45667. msgstr ""
  45668. #. type: Plain text
  45669. #: guix-git/doc/guix.texi:30276
  45670. 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."
  45671. msgstr ""
  45672. #. type: deftp
  45673. #: guix-git/doc/guix.texi:30277
  45674. #, no-wrap
  45675. msgid "{Data Type} nginx-configuration"
  45676. msgstr ""
  45677. #. type: deftp
  45678. #: guix-git/doc/guix.texi:30281
  45679. 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."
  45680. msgstr ""
  45681. #. type: item
  45682. #: guix-git/doc/guix.texi:30283
  45683. #, no-wrap
  45684. msgid "@code{nginx} (default: @code{nginx})"
  45685. msgstr ""
  45686. #. type: table
  45687. #: guix-git/doc/guix.texi:30285
  45688. msgid "The nginx package to use."
  45689. msgstr ""
  45690. #. type: table
  45691. #: guix-git/doc/guix.texi:30289
  45692. msgid "This is a list of symbols naming Shepherd services the nginx service will depend on."
  45693. msgstr ""
  45694. #. type: table
  45695. #: guix-git/doc/guix.texi:30293
  45696. msgid "This is useful if you would like @command{nginx} to be started after a back-end web server or a logging service such as Anonip has been started."
  45697. msgstr ""
  45698. #. type: item
  45699. #: guix-git/doc/guix.texi:30294
  45700. #, no-wrap
  45701. msgid "@code{log-directory} (default: @code{\"/var/log/nginx\"})"
  45702. msgstr ""
  45703. #. type: table
  45704. #: guix-git/doc/guix.texi:30296
  45705. msgid "The directory to which NGinx will write log files."
  45706. msgstr ""
  45707. #. type: item
  45708. #: guix-git/doc/guix.texi:30297
  45709. #, fuzzy, no-wrap
  45710. msgid "@code{log-level} (default: @code{'error}) (type: symbol)"
  45711. msgstr "@code{challenge}(默认值:@code{#f})"
  45712. #. type: table
  45713. #: guix-git/doc/guix.texi:30301
  45714. msgid "Logging level, which can be any of the following values: @code{'debug}, @code{'info}, @code{'notice}, @code{'warn}, @code{'error}, @code{'crit}, @code{'alert}, or @code{'emerg}."
  45715. msgstr ""
  45716. #. type: item
  45717. #: guix-git/doc/guix.texi:30302
  45718. #, no-wrap
  45719. msgid "@code{run-directory} (default: @code{\"/var/run/nginx\"})"
  45720. msgstr ""
  45721. #. type: table
  45722. #: guix-git/doc/guix.texi:30305
  45723. msgid "The directory in which NGinx will create a pid file, and write temporary files."
  45724. msgstr ""
  45725. #. type: item
  45726. #: guix-git/doc/guix.texi:30306
  45727. #, no-wrap
  45728. msgid "@code{server-blocks} (default: @code{'()})"
  45729. msgstr ""
  45730. #. type: table
  45731. #: guix-git/doc/guix.texi:30310
  45732. msgid "A list of @dfn{server blocks} to create in the generated configuration file, the elements should be of type @code{<nginx-server-configuration>}."
  45733. msgstr ""
  45734. #. type: table
  45735. #: guix-git/doc/guix.texi:30314
  45736. 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."
  45737. msgstr ""
  45738. #. type: item
  45739. #: guix-git/doc/guix.texi:30323
  45740. #, no-wrap
  45741. msgid "@code{upstream-blocks} (default: @code{'()})"
  45742. msgstr ""
  45743. #. type: table
  45744. #: guix-git/doc/guix.texi:30327
  45745. msgid "A list of @dfn{upstream blocks} to create in the generated configuration file, the elements should be of type @code{<nginx-upstream-configuration>}."
  45746. msgstr ""
  45747. #. type: table
  45748. #: guix-git/doc/guix.texi:30334
  45749. 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."
  45750. msgstr ""
  45751. #. type: lisp
  45752. #: guix-git/doc/guix.texi:30353
  45753. #, no-wrap
  45754. msgid ""
  45755. "(service\n"
  45756. " nginx-service-type\n"
  45757. " (nginx-configuration\n"
  45758. " (server-blocks\n"
  45759. " (list (nginx-server-configuration\n"
  45760. " (server-name '(\"www.example.com\"))\n"
  45761. " (root \"/srv/http/www.example.com\")\n"
  45762. " (locations\n"
  45763. " (list\n"
  45764. " (nginx-location-configuration\n"
  45765. " (uri \"/path1\")\n"
  45766. " (body '(\"proxy_pass http://server-proxy;\"))))))))\n"
  45767. " (upstream-blocks\n"
  45768. " (list (nginx-upstream-configuration\n"
  45769. " (name \"server-proxy\")\n"
  45770. " (servers (list \"server1.example.com\"\n"
  45771. " \"server2.example.com\")))))))\n"
  45772. msgstr ""
  45773. #. type: table
  45774. #: guix-git/doc/guix.texi:30361
  45775. 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."
  45776. msgstr ""
  45777. #. type: table
  45778. #: guix-git/doc/guix.texi:30365
  45779. 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."
  45780. msgstr ""
  45781. #. type: item
  45782. #: guix-git/doc/guix.texi:30366
  45783. #, no-wrap
  45784. msgid "@code{server-names-hash-bucket-size} (default: @code{#f})"
  45785. msgstr ""
  45786. #. type: table
  45787. #: guix-git/doc/guix.texi:30369
  45788. msgid "Bucket size for the server names hash tables, defaults to @code{#f} to use the size of the processors cache line."
  45789. msgstr ""
  45790. #. type: item
  45791. #: guix-git/doc/guix.texi:30370
  45792. #, no-wrap
  45793. msgid "@code{server-names-hash-bucket-max-size} (default: @code{#f})"
  45794. msgstr ""
  45795. #. type: table
  45796. #: guix-git/doc/guix.texi:30372
  45797. msgid "Maximum bucket size for the server names hash tables."
  45798. msgstr ""
  45799. #. type: table
  45800. #: guix-git/doc/guix.texi:30376
  45801. msgid "List of nginx dynamic modules to load. This should be a list of file names of loadable modules, as in this example:"
  45802. msgstr ""
  45803. #. type: lisp
  45804. #: guix-git/doc/guix.texi:30384
  45805. #, no-wrap
  45806. msgid ""
  45807. "(modules\n"
  45808. " (list\n"
  45809. " (file-append nginx-accept-language-module \"\\\n"
  45810. "/etc/nginx/modules/ngx_http_accept_language_module.so\")\n"
  45811. " (file-append nginx-lua-module \"\\\n"
  45812. "/etc/nginx/modules/ngx_http_lua_module.so\")))\n"
  45813. msgstr ""
  45814. #. type: item
  45815. #: guix-git/doc/guix.texi:30386
  45816. #, fuzzy, no-wrap
  45817. msgid "@code{lua-package-path} (default: @code{'()})"
  45818. msgstr "@code{features} (@code{'()})"
  45819. #. type: table
  45820. #: guix-git/doc/guix.texi:30389
  45821. msgid "List of nginx lua packages to load. This should be a list of package names of loadable lua modules, as in this example:"
  45822. msgstr ""
  45823. #. type: lisp
  45824. #: guix-git/doc/guix.texi:30396
  45825. #, no-wrap
  45826. msgid ""
  45827. "(lua-package-path (list lua-resty-core\n"
  45828. " lua-resty-lrucache\n"
  45829. " lua-resty-signal\n"
  45830. " lua-tablepool\n"
  45831. " lua-resty-shell))\n"
  45832. msgstr ""
  45833. #. type: item
  45834. #: guix-git/doc/guix.texi:30398
  45835. #, fuzzy, no-wrap
  45836. msgid "@code{lua-package-cpath} (default: @code{'()})"
  45837. msgstr "@code{features} (@code{'()})"
  45838. #. type: table
  45839. #: guix-git/doc/guix.texi:30401
  45840. 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:"
  45841. msgstr ""
  45842. #. type: lisp
  45843. #: guix-git/doc/guix.texi:30404
  45844. #, no-wrap
  45845. msgid "(lua-package-cpath (list lua-resty-signal))\n"
  45846. msgstr ""
  45847. #. type: item
  45848. #: guix-git/doc/guix.texi:30406
  45849. #, fuzzy, no-wrap
  45850. msgid "@code{global-directives} (default: @code{'((events . ()))})"
  45851. msgstr "@code{features} (@code{'()})"
  45852. #. type: table
  45853. #: guix-git/doc/guix.texi:30409
  45854. msgid "Association list of global directives for the top level of the nginx configuration. Values may themselves be association lists."
  45855. msgstr ""
  45856. #. type: lisp
  45857. #: guix-git/doc/guix.texi:30415
  45858. #, no-wrap
  45859. msgid ""
  45860. "(global-directives\n"
  45861. " `((worker_processes . 16)\n"
  45862. " (pcre_jit . on)\n"
  45863. " (events . ((worker_connections . 1024)))))\n"
  45864. msgstr ""
  45865. #. type: table
  45866. #: guix-git/doc/guix.texi:30420
  45867. msgid "Extra content for the @code{http} block. Should be string or a string valued G-expression."
  45868. msgstr ""
  45869. #. type: anchor{#1}
  45870. #: guix-git/doc/guix.texi:30425
  45871. #, fuzzy
  45872. msgid "nginx-server-configuration"
  45873. msgstr "{数据类型} build-machine"
  45874. #. type: deftp
  45875. #: guix-git/doc/guix.texi:30425
  45876. #, no-wrap
  45877. msgid "{Data Type} nginx-server-configuration"
  45878. msgstr ""
  45879. #. type: deftp
  45880. #: guix-git/doc/guix.texi:30428
  45881. msgid "Data type representing the configuration of an nginx server block. This type has the following parameters:"
  45882. msgstr ""
  45883. #. type: item
  45884. #: guix-git/doc/guix.texi:30430
  45885. #, no-wrap
  45886. msgid "@code{listen} (default: @code{'(\"80\" \"443 ssl\")})"
  45887. msgstr ""
  45888. #. type: table
  45889. #: guix-git/doc/guix.texi:30435
  45890. 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:"
  45891. msgstr ""
  45892. #. type: lisp
  45893. #: guix-git/doc/guix.texi:30438
  45894. #, no-wrap
  45895. msgid "'(\"127.0.0.1:8000\" \"127.0.0.1\" \"8000\" \"*:8000\" \"localhost:8000\")\n"
  45896. msgstr ""
  45897. #. type: item
  45898. #: guix-git/doc/guix.texi:30440
  45899. #, no-wrap
  45900. msgid "@code{server-name} (default: @code{(list 'default)})"
  45901. msgstr ""
  45902. #. type: table
  45903. #: guix-git/doc/guix.texi:30443
  45904. msgid "A list of server names this server represents. @code{'default} represents the default server for connections matching no other server."
  45905. msgstr ""
  45906. #. type: item
  45907. #: guix-git/doc/guix.texi:30444
  45908. #, no-wrap
  45909. msgid "@code{root} (default: @code{\"/srv/http\"})"
  45910. msgstr ""
  45911. #. type: table
  45912. #: guix-git/doc/guix.texi:30446
  45913. msgid "Root of the website nginx will serve."
  45914. msgstr ""
  45915. #. type: item
  45916. #: guix-git/doc/guix.texi:30447
  45917. #, no-wrap
  45918. msgid "@code{locations} (default: @code{'()})"
  45919. msgstr ""
  45920. #. type: table
  45921. #: guix-git/doc/guix.texi:30451
  45922. msgid "A list of @dfn{nginx-location-configuration} or @dfn{nginx-named-location-configuration} records to use within this server block."
  45923. msgstr ""
  45924. #. type: item
  45925. #: guix-git/doc/guix.texi:30452
  45926. #, no-wrap
  45927. msgid "@code{index} (default: @code{(list \"index.html\")})"
  45928. msgstr ""
  45929. #. type: table
  45930. #: guix-git/doc/guix.texi:30455
  45931. 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."
  45932. msgstr ""
  45933. #. type: item
  45934. #: guix-git/doc/guix.texi:30456
  45935. #, no-wrap
  45936. msgid "@code{try-files} (default: @code{'()})"
  45937. msgstr ""
  45938. #. type: table
  45939. #: guix-git/doc/guix.texi:30459
  45940. 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."
  45941. msgstr ""
  45942. #. type: item
  45943. #: guix-git/doc/guix.texi:30460
  45944. #, no-wrap
  45945. msgid "@code{ssl-certificate} (default: @code{#f})"
  45946. msgstr ""
  45947. #. type: table
  45948. #: guix-git/doc/guix.texi:30463
  45949. 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."
  45950. msgstr ""
  45951. #. type: item
  45952. #: guix-git/doc/guix.texi:30464
  45953. #, no-wrap
  45954. msgid "@code{ssl-certificate-key} (default: @code{#f})"
  45955. msgstr ""
  45956. #. type: table
  45957. #: guix-git/doc/guix.texi:30467
  45958. 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."
  45959. msgstr ""
  45960. #. type: item
  45961. #: guix-git/doc/guix.texi:30468
  45962. #, no-wrap
  45963. msgid "@code{server-tokens?} (default: @code{#f})"
  45964. msgstr ""
  45965. #. type: table
  45966. #: guix-git/doc/guix.texi:30470
  45967. msgid "Whether the server should add its configuration to response."
  45968. msgstr ""
  45969. #. type: item
  45970. #: guix-git/doc/guix.texi:30471
  45971. #, no-wrap
  45972. msgid "@code{raw-content} (default: @code{'()})"
  45973. msgstr ""
  45974. #. type: table
  45975. #: guix-git/doc/guix.texi:30473
  45976. msgid "A list of raw lines added to the server block."
  45977. msgstr ""
  45978. #. type: deftp
  45979. #: guix-git/doc/guix.texi:30477
  45980. #, no-wrap
  45981. msgid "{Data Type} nginx-upstream-configuration"
  45982. msgstr ""
  45983. #. type: deftp
  45984. #: guix-git/doc/guix.texi:30480
  45985. msgid "Data type representing the configuration of an nginx @code{upstream} block. This type has the following parameters:"
  45986. msgstr ""
  45987. #. type: table
  45988. #: guix-git/doc/guix.texi:30484
  45989. msgid "Name for this group of servers."
  45990. msgstr ""
  45991. #. type: code{#1}
  45992. #: guix-git/doc/guix.texi:30485
  45993. #, no-wrap
  45994. msgid "servers"
  45995. msgstr ""
  45996. #. type: table
  45997. #: guix-git/doc/guix.texi:30492
  45998. 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."
  45999. msgstr ""
  46000. #. type: code{#1}
  46001. #: guix-git/doc/guix.texi:30493
  46002. #, no-wrap
  46003. msgid "extra-content"
  46004. msgstr ""
  46005. #. type: table
  46006. #: guix-git/doc/guix.texi:30495
  46007. msgid "A string or list of strings to add to the upstream block."
  46008. msgstr ""
  46009. #. type: deftp
  46010. #: guix-git/doc/guix.texi:30499
  46011. #, no-wrap
  46012. msgid "{Data Type} nginx-location-configuration"
  46013. msgstr ""
  46014. #. type: deftp
  46015. #: guix-git/doc/guix.texi:30502
  46016. msgid "Data type representing the configuration of an nginx @code{location} block. This type has the following parameters:"
  46017. msgstr ""
  46018. #. type: table
  46019. #: guix-git/doc/guix.texi:30506
  46020. msgid "URI which this location block matches."
  46021. msgstr ""
  46022. #. type: anchor{#1}
  46023. #: guix-git/doc/guix.texi:30508
  46024. msgid "nginx-location-configuration body"
  46025. msgstr ""
  46026. #. type: code{#1}
  46027. #: guix-git/doc/guix.texi:30508 guix-git/doc/guix.texi:30529
  46028. #, no-wrap
  46029. msgid "body"
  46030. msgstr ""
  46031. #. type: table
  46032. #: guix-git/doc/guix.texi:30515
  46033. 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;\")}."
  46034. msgstr ""
  46035. #. type: deftp
  46036. #: guix-git/doc/guix.texi:30519
  46037. #, no-wrap
  46038. msgid "{Data Type} nginx-named-location-configuration"
  46039. msgstr ""
  46040. #. type: deftp
  46041. #: guix-git/doc/guix.texi:30524
  46042. 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:"
  46043. msgstr ""
  46044. #. type: table
  46045. #: guix-git/doc/guix.texi:30528
  46046. msgid "Name to identify this location block."
  46047. msgstr ""
  46048. #. type: table
  46049. #: guix-git/doc/guix.texi:30534
  46050. 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."
  46051. msgstr ""
  46052. #. type: subsubheading
  46053. #: guix-git/doc/guix.texi:30538
  46054. #, no-wrap
  46055. msgid "Varnish Cache"
  46056. msgstr ""
  46057. #. type: cindex
  46058. #: guix-git/doc/guix.texi:30539
  46059. #, no-wrap
  46060. msgid "Varnish"
  46061. msgstr ""
  46062. #. type: Plain text
  46063. #: guix-git/doc/guix.texi:30544
  46064. 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."
  46065. msgstr ""
  46066. #. type: defvar
  46067. #: guix-git/doc/guix.texi:30545
  46068. #, fuzzy, no-wrap
  46069. msgid "varnish-service-type"
  46070. msgstr "邮件服务"
  46071. #. type: defvar
  46072. #: guix-git/doc/guix.texi:30547
  46073. msgid "Service type for the Varnish daemon."
  46074. msgstr ""
  46075. #. type: deftp
  46076. #: guix-git/doc/guix.texi:30549
  46077. #, no-wrap
  46078. msgid "{Data Type} varnish-configuration"
  46079. msgstr ""
  46080. #. type: deftp
  46081. #: guix-git/doc/guix.texi:30552
  46082. msgid "Data type representing the @code{varnish} service configuration. This type has the following parameters:"
  46083. msgstr ""
  46084. #. type: item
  46085. #: guix-git/doc/guix.texi:30554
  46086. #, no-wrap
  46087. msgid "@code{package} (default: @code{varnish})"
  46088. msgstr ""
  46089. #. type: table
  46090. #: guix-git/doc/guix.texi:30556
  46091. msgid "The Varnish package to use."
  46092. msgstr ""
  46093. #. type: item
  46094. #: guix-git/doc/guix.texi:30557
  46095. #, no-wrap
  46096. msgid "@code{name} (default: @code{\"default\"})"
  46097. msgstr ""
  46098. #. type: table
  46099. #: guix-git/doc/guix.texi:30562
  46100. 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."
  46101. msgstr ""
  46102. #. type: table
  46103. #: guix-git/doc/guix.texi:30565
  46104. msgid "Pass the @code{-n} argument to other Varnish programs to connect to the named instance, e.g.@: @command{varnishncsa -n default}."
  46105. msgstr ""
  46106. #. type: item
  46107. #: guix-git/doc/guix.texi:30566
  46108. #, no-wrap
  46109. msgid "@code{backend} (default: @code{\"localhost:8080\"})"
  46110. msgstr ""
  46111. #. type: table
  46112. #: guix-git/doc/guix.texi:30568
  46113. msgid "The backend to use. This option has no effect if @code{vcl} is set."
  46114. msgstr ""
  46115. #. type: item
  46116. #: guix-git/doc/guix.texi:30569
  46117. #, no-wrap
  46118. msgid "@code{vcl} (default: #f)"
  46119. msgstr ""
  46120. #. type: table
  46121. #: guix-git/doc/guix.texi:30574
  46122. 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."
  46123. msgstr ""
  46124. #. type: table
  46125. #: guix-git/doc/guix.texi:30578
  46126. msgid "For example, to mirror @url{https://www.gnu.org,www.gnu.org} with VCL you can do something along these lines:"
  46127. msgstr ""
  46128. #. type: lisp
  46129. #: guix-git/doc/guix.texi:30584
  46130. #, no-wrap
  46131. msgid ""
  46132. "(define %gnu-mirror\n"
  46133. " (plain-file \"gnu.vcl\"\n"
  46134. " \"vcl 4.1;\n"
  46135. "backend gnu @{ .host = \\\"www.gnu.org\\\"; @}\"))\n"
  46136. "\n"
  46137. msgstr ""
  46138. #. type: lisp
  46139. #: guix-git/doc/guix.texi:30592
  46140. #, no-wrap
  46141. msgid ""
  46142. "(operating-system\n"
  46143. " ;; @dots{}\n"
  46144. " (services (cons (service varnish-service-type\n"
  46145. " (varnish-configuration\n"
  46146. " (listen '(\":80\"))\n"
  46147. " (vcl %gnu-mirror)))\n"
  46148. " %base-services)))\n"
  46149. msgstr ""
  46150. #. type: table
  46151. #: guix-git/doc/guix.texi:30596
  46152. msgid "The configuration of an already running Varnish instance can be inspected and changed using the @command{varnishadm} program."
  46153. msgstr ""
  46154. #. type: table
  46155. #: guix-git/doc/guix.texi:30600
  46156. 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."
  46157. msgstr ""
  46158. #. type: item
  46159. #: guix-git/doc/guix.texi:30601
  46160. #, no-wrap
  46161. msgid "@code{listen} (default: @code{'(\"localhost:80\")})"
  46162. msgstr ""
  46163. #. type: table
  46164. #: guix-git/doc/guix.texi:30603
  46165. msgid "List of addresses Varnish will listen on."
  46166. msgstr ""
  46167. #. type: item
  46168. #: guix-git/doc/guix.texi:30604
  46169. #, no-wrap
  46170. msgid "@code{storage} (default: @code{'(\"malloc,128m\")})"
  46171. msgstr ""
  46172. #. type: table
  46173. #: guix-git/doc/guix.texi:30606
  46174. msgid "List of storage backends that will be available in VCL."
  46175. msgstr ""
  46176. #. type: item
  46177. #: guix-git/doc/guix.texi:30607
  46178. #, no-wrap
  46179. msgid "@code{parameters} (default: @code{'()})"
  46180. msgstr ""
  46181. #. type: table
  46182. #: guix-git/doc/guix.texi:30609
  46183. msgid "List of run-time parameters in the form @code{'((\"parameter\" . \"value\"))}."
  46184. msgstr ""
  46185. #. type: table
  46186. #: guix-git/doc/guix.texi:30612
  46187. msgid "Additional arguments to pass to the @command{varnishd} process."
  46188. msgstr ""
  46189. #. type: cindex
  46190. #: guix-git/doc/guix.texi:30616 guix-git/doc/guix.texi:30617
  46191. #, no-wrap
  46192. msgid "Patchwork"
  46193. msgstr ""
  46194. #. type: Plain text
  46195. #: guix-git/doc/guix.texi:30620
  46196. msgid "Patchwork is a patch tracking system. It can collect patches sent to a mailing list, and display them in a web interface."
  46197. msgstr ""
  46198. #. type: defvar
  46199. #: guix-git/doc/guix.texi:30621
  46200. #, fuzzy, no-wrap
  46201. msgid "patchwork-service-type"
  46202. msgstr "邮件服务"
  46203. #. type: defvar
  46204. #: guix-git/doc/guix.texi:30623
  46205. #, fuzzy
  46206. msgid "Service type for Patchwork."
  46207. msgstr "分享你的工作。"
  46208. #. type: Plain text
  46209. #: guix-git/doc/guix.texi:30627
  46210. msgid "The following example is an example of a minimal service for Patchwork, for the @code{patchwork.example.com} domain."
  46211. msgstr ""
  46212. #. type: lisp
  46213. #: guix-git/doc/guix.texi:30647
  46214. #, no-wrap
  46215. msgid ""
  46216. "(service patchwork-service-type\n"
  46217. " (patchwork-configuration\n"
  46218. " (domain \"patchwork.example.com\")\n"
  46219. " (settings-module\n"
  46220. " (patchwork-settings-module\n"
  46221. " (allowed-hosts (list domain))\n"
  46222. " (default-from-email \"patchwork@@patchwork.example.com\")))\n"
  46223. " (getmail-retriever-config\n"
  46224. " (getmail-retriever-configuration\n"
  46225. " (type \"SimpleIMAPSSLRetriever\")\n"
  46226. " (server \"imap.example.com\")\n"
  46227. " (port 993)\n"
  46228. " (username \"patchwork\")\n"
  46229. " (password-command\n"
  46230. " (list (file-append coreutils \"/bin/cat\")\n"
  46231. " \"/etc/getmail-patchwork-imap-password\"))\n"
  46232. " (extra-parameters\n"
  46233. " '((mailboxes . (\"Patches\"))))))))\n"
  46234. "\n"
  46235. msgstr ""
  46236. #. type: Plain text
  46237. #: guix-git/doc/guix.texi:30653
  46238. msgid "There are three records for configuring the Patchwork service. The @code{<patchwork-configuration>} relates to the configuration for Patchwork within the HTTPD service."
  46239. msgstr ""
  46240. #. type: Plain text
  46241. #: guix-git/doc/guix.texi:30657
  46242. 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."
  46243. msgstr ""
  46244. #. type: Plain text
  46245. #: guix-git/doc/guix.texi:30661
  46246. msgid "For the @code{database-configuration} field within the @code{<patchwork-settings-module>}, the @code{<patchwork-database-configuration>} must be used."
  46247. msgstr ""
  46248. #. type: deftp
  46249. #: guix-git/doc/guix.texi:30662
  46250. #, no-wrap
  46251. msgid "{Data Type} patchwork-configuration"
  46252. msgstr ""
  46253. #. type: deftp
  46254. #: guix-git/doc/guix.texi:30665
  46255. msgid "Data type representing the Patchwork service configuration. This type has the following parameters:"
  46256. msgstr ""
  46257. #. type: item
  46258. #: guix-git/doc/guix.texi:30667
  46259. #, fuzzy, no-wrap
  46260. msgid "@code{patchwork} (default: @code{patchwork})"
  46261. msgstr "@code{mate}(默认值:@code{mate})"
  46262. #. type: table
  46263. #: guix-git/doc/guix.texi:30669
  46264. #, fuzzy
  46265. msgid "The Patchwork package to use."
  46266. msgstr "软件包数据类型。"
  46267. #. type: code{#1}
  46268. #: guix-git/doc/guix.texi:30670
  46269. #, no-wrap
  46270. msgid "domain"
  46271. msgstr ""
  46272. #. type: table
  46273. #: guix-git/doc/guix.texi:30673
  46274. msgid "The domain to use for Patchwork, this is used in the HTTPD service virtual host."
  46275. msgstr ""
  46276. #. type: code{#1}
  46277. #: guix-git/doc/guix.texi:30674
  46278. #, no-wrap
  46279. msgid "settings-module"
  46280. msgstr ""
  46281. #. type: table
  46282. #: guix-git/doc/guix.texi:30680
  46283. 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."
  46284. msgstr ""
  46285. #. type: item
  46286. #: guix-git/doc/guix.texi:30681
  46287. #, fuzzy, no-wrap
  46288. msgid "@code{static-path} (default: @code{\"/static/\"})"
  46289. msgstr "@code{mate}(默认值:@code{mate})"
  46290. #. type: table
  46291. #: guix-git/doc/guix.texi:30683
  46292. msgid "The path under which the HTTPD service should serve the static files."
  46293. msgstr ""
  46294. #. type: code{#1}
  46295. #: guix-git/doc/guix.texi:30684
  46296. #, no-wrap
  46297. msgid "getmail-retriever-config"
  46298. msgstr ""
  46299. #. type: table
  46300. #: guix-git/doc/guix.texi:30688
  46301. 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."
  46302. msgstr ""
  46303. #. type: deftp
  46304. #: guix-git/doc/guix.texi:30692
  46305. #, no-wrap
  46306. msgid "{Data Type} patchwork-settings-module"
  46307. msgstr ""
  46308. #. type: deftp
  46309. #: guix-git/doc/guix.texi:30697
  46310. 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:"
  46311. msgstr ""
  46312. #. type: item
  46313. #: guix-git/doc/guix.texi:30699
  46314. #, no-wrap
  46315. msgid "@code{database-configuration} (default: @code{(patchwork-database-configuration)})"
  46316. msgstr ""
  46317. #. type: table
  46318. #: guix-git/doc/guix.texi:30702
  46319. msgid "The database connection settings used for Patchwork. See the @code{<patchwork-database-configuration>} record type for more information."
  46320. msgstr ""
  46321. #. type: item
  46322. #: guix-git/doc/guix.texi:30703
  46323. #, fuzzy, no-wrap
  46324. msgid "@code{secret-key-file} (default: @code{\"/etc/patchwork/django-secret-key\"})"
  46325. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  46326. #. type: table
  46327. #: guix-git/doc/guix.texi:30706
  46328. msgid "Patchwork, as a Django web application uses a secret key for cryptographically signing values. This file should contain a unique unpredictable value."
  46329. msgstr ""
  46330. #. type: table
  46331. #: guix-git/doc/guix.texi:30709
  46332. msgid "If this file does not exist, it will be created and populated with a random value by the patchwork-setup shepherd service."
  46333. msgstr ""
  46334. #. type: table
  46335. #: guix-git/doc/guix.texi:30711
  46336. msgid "This setting relates to Django."
  46337. msgstr ""
  46338. #. type: code{#1}
  46339. #: guix-git/doc/guix.texi:30712
  46340. #, no-wrap
  46341. msgid "allowed-hosts"
  46342. msgstr ""
  46343. #. type: table
  46344. #: guix-git/doc/guix.texi:30715
  46345. msgid "A list of valid hosts for this Patchwork service. This should at least include the domain specified in the @code{<patchwork-configuration>} record."
  46346. msgstr ""
  46347. #. type: table
  46348. #: guix-git/doc/guix.texi:30717 guix-git/doc/guix.texi:30731
  46349. #: guix-git/doc/guix.texi:30737 guix-git/doc/guix.texi:30743
  46350. msgid "This is a Django setting."
  46351. msgstr ""
  46352. #. type: code{#1}
  46353. #: guix-git/doc/guix.texi:30718
  46354. #, no-wrap
  46355. msgid "default-from-email"
  46356. msgstr ""
  46357. #. type: table
  46358. #: guix-git/doc/guix.texi:30720
  46359. msgid "The email address from which Patchwork should send email by default."
  46360. msgstr ""
  46361. #. type: table
  46362. #: guix-git/doc/guix.texi:30722 guix-git/doc/guix.texi:30748
  46363. #: guix-git/doc/guix.texi:30753 guix-git/doc/guix.texi:30758
  46364. msgid "This is a Patchwork setting."
  46365. msgstr ""
  46366. #. type: item
  46367. #: guix-git/doc/guix.texi:30723
  46368. #, fuzzy, no-wrap
  46369. msgid "@code{static-url} (default: @code{#f})"
  46370. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  46371. #. type: table
  46372. #: guix-git/doc/guix.texi:30726
  46373. 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{/}."
  46374. msgstr ""
  46375. #. type: table
  46376. #: guix-git/doc/guix.texi:30729
  46377. msgid "If the default value is used, the @code{static-path} value from the @code{<patchwork-configuration>} record will be used."
  46378. msgstr ""
  46379. #. type: item
  46380. #: guix-git/doc/guix.texi:30732
  46381. #, fuzzy, no-wrap
  46382. msgid "@code{admins} (default: @code{'()})"
  46383. msgstr "@code{includes}(默认值:@code{'()})"
  46384. #. type: table
  46385. #: guix-git/doc/guix.texi:30735
  46386. 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."
  46387. msgstr ""
  46388. #. type: table
  46389. #: guix-git/doc/guix.texi:30741
  46390. msgid "Whether to run Patchwork in debug mode. If set to @code{#t}, detailed error messages will be shown."
  46391. msgstr ""
  46392. #. type: item
  46393. #: guix-git/doc/guix.texi:30744
  46394. #, fuzzy, no-wrap
  46395. msgid "@code{enable-rest-api?} (default: @code{#t})"
  46396. msgstr "@code{challenge}(默认值:@code{#f})"
  46397. #. type: table
  46398. #: guix-git/doc/guix.texi:30746
  46399. msgid "Whether to enable the Patchwork REST API."
  46400. msgstr ""
  46401. #. type: item
  46402. #: guix-git/doc/guix.texi:30749
  46403. #, fuzzy, no-wrap
  46404. msgid "@code{enable-xmlrpc?} (default: @code{#t})"
  46405. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  46406. #. type: table
  46407. #: guix-git/doc/guix.texi:30751
  46408. msgid "Whether to enable the XML RPC API."
  46409. msgstr ""
  46410. #. type: item
  46411. #: guix-git/doc/guix.texi:30754
  46412. #, fuzzy, no-wrap
  46413. msgid "@code{force-https-links?} (default: @code{#t})"
  46414. msgstr "@code{challenge}(默认值:@code{#f})"
  46415. #. type: table
  46416. #: guix-git/doc/guix.texi:30756
  46417. msgid "Whether to use HTTPS links on Patchwork pages."
  46418. msgstr ""
  46419. #. type: table
  46420. #: guix-git/doc/guix.texi:30761
  46421. msgid "Extra code to place at the end of the Patchwork settings module."
  46422. msgstr ""
  46423. #. type: deftp
  46424. #: guix-git/doc/guix.texi:30765
  46425. #, no-wrap
  46426. msgid "{Data Type} patchwork-database-configuration"
  46427. msgstr ""
  46428. #. type: deftp
  46429. #: guix-git/doc/guix.texi:30767
  46430. msgid "Data type representing the database configuration for Patchwork."
  46431. msgstr ""
  46432. #. type: item
  46433. #: guix-git/doc/guix.texi:30769
  46434. #, fuzzy, no-wrap
  46435. msgid "@code{engine} (default: @code{\"django.db.backends.postgresql_psycopg2\"})"
  46436. msgstr "@code{gnome}(默认值:@code{gnome})"
  46437. #. type: table
  46438. #: guix-git/doc/guix.texi:30771
  46439. msgid "The database engine to use."
  46440. msgstr ""
  46441. #. type: item
  46442. #: guix-git/doc/guix.texi:30772
  46443. #, fuzzy, no-wrap
  46444. msgid "@code{name} (default: @code{\"patchwork\"})"
  46445. msgstr "@code{mate}(默认值:@code{mate})"
  46446. #. type: table
  46447. #: guix-git/doc/guix.texi:30774
  46448. #, fuzzy
  46449. msgid "The name of the database to use."
  46450. msgstr "远程机器的主机名。"
  46451. #. type: table
  46452. #: guix-git/doc/guix.texi:30777
  46453. msgid "The user to connect to the database as."
  46454. msgstr ""
  46455. #. type: item
  46456. #: guix-git/doc/guix.texi:30778
  46457. #, fuzzy, no-wrap
  46458. msgid "@code{password} (default: @code{\"\"})"
  46459. msgstr "@code{port}(默认值:@code{22})"
  46460. #. type: table
  46461. #: guix-git/doc/guix.texi:30780
  46462. msgid "The password to use when connecting to the database."
  46463. msgstr ""
  46464. #. type: item
  46465. #: guix-git/doc/guix.texi:30781
  46466. #, fuzzy, no-wrap
  46467. msgid "@code{host} (default: @code{\"\"})"
  46468. msgstr "@code{port}(默认值:@code{22})"
  46469. #. type: table
  46470. #: guix-git/doc/guix.texi:30783
  46471. msgid "The host to make the database connection to."
  46472. msgstr ""
  46473. #. type: item
  46474. #: guix-git/doc/guix.texi:30784
  46475. #, fuzzy, no-wrap
  46476. msgid "@code{port} (default: @code{\"\"})"
  46477. msgstr "@code{port}(默认值:@code{22})"
  46478. #. type: table
  46479. #: guix-git/doc/guix.texi:30786
  46480. msgid "The port on which to connect to the database."
  46481. msgstr ""
  46482. #. type: subsubheading
  46483. #: guix-git/doc/guix.texi:30790
  46484. #, no-wrap
  46485. msgid "Mumi"
  46486. msgstr ""
  46487. #. type: cindex
  46488. #: guix-git/doc/guix.texi:30792
  46489. #, fuzzy, no-wrap
  46490. msgid "Mumi, Debbugs Web interface"
  46491. msgstr "用户界面"
  46492. #. type: cindex
  46493. #: guix-git/doc/guix.texi:30793
  46494. #, fuzzy, no-wrap
  46495. msgid "Debbugs, Mumi Web interface"
  46496. msgstr "用户界面"
  46497. #. type: Plain text
  46498. #: guix-git/doc/guix.texi:30798
  46499. 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."
  46500. msgstr ""
  46501. #. type: defvar
  46502. #: guix-git/doc/guix.texi:30799
  46503. #, fuzzy, no-wrap
  46504. msgid "mumi-service-type"
  46505. msgstr "邮件服务"
  46506. #. type: defvar
  46507. #: guix-git/doc/guix.texi:30801
  46508. msgid "This is the service type for Mumi."
  46509. msgstr ""
  46510. #. type: deftp
  46511. #: guix-git/doc/guix.texi:30803
  46512. #, fuzzy, no-wrap
  46513. msgid "{Data Type} mumi-configuration"
  46514. msgstr "{数据类型} build-machine"
  46515. #. type: deftp
  46516. #: guix-git/doc/guix.texi:30806
  46517. msgid "Data type representing the Mumi service configuration. This type has the following fields:"
  46518. msgstr ""
  46519. #. type: item
  46520. #: guix-git/doc/guix.texi:30808
  46521. #, fuzzy, no-wrap
  46522. msgid "@code{mumi} (default: @code{mumi})"
  46523. msgstr "@code{mate}(默认值:@code{mate})"
  46524. #. type: table
  46525. #: guix-git/doc/guix.texi:30810
  46526. #, fuzzy
  46527. msgid "The Mumi package to use."
  46528. msgstr "软件包数据类型。"
  46529. #. type: item
  46530. #: guix-git/doc/guix.texi:30811
  46531. #, fuzzy, no-wrap
  46532. msgid "@code{mailer?} (default: @code{#true})"
  46533. msgstr "@code{mate}(默认值:@code{mate})"
  46534. #. type: table
  46535. #: guix-git/doc/guix.texi:30813
  46536. msgid "Whether to enable or disable the mailer component."
  46537. msgstr ""
  46538. #. type: code{#1}
  46539. #: guix-git/doc/guix.texi:30814
  46540. #, no-wrap
  46541. msgid "mumi-configuration-sender"
  46542. msgstr ""
  46543. #. type: table
  46544. #: guix-git/doc/guix.texi:30816
  46545. msgid "The email address used as the sender for comments."
  46546. msgstr ""
  46547. #. type: code{#1}
  46548. #: guix-git/doc/guix.texi:30817
  46549. #, fuzzy, no-wrap
  46550. msgid "mumi-configuration-smtp"
  46551. msgstr "系统配置"
  46552. #. type: table
  46553. #: guix-git/doc/guix.texi:30822
  46554. 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}."
  46555. msgstr ""
  46556. #. type: subsubheading
  46557. #: guix-git/doc/guix.texi:30827
  46558. #, no-wrap
  46559. msgid "FastCGI"
  46560. msgstr ""
  46561. #. type: cindex
  46562. #: guix-git/doc/guix.texi:30828
  46563. #, no-wrap
  46564. msgid "fastcgi"
  46565. msgstr ""
  46566. #. type: cindex
  46567. #: guix-git/doc/guix.texi:30829
  46568. #, no-wrap
  46569. msgid "fcgiwrap"
  46570. msgstr ""
  46571. #. type: Plain text
  46572. #: guix-git/doc/guix.texi:30836
  46573. 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."
  46574. msgstr ""
  46575. #. type: Plain text
  46576. #: guix-git/doc/guix.texi:30843
  46577. 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."
  46578. msgstr ""
  46579. #. type: defvar
  46580. #: guix-git/doc/guix.texi:30844
  46581. #, fuzzy, no-wrap
  46582. msgid "fcgiwrap-service-type"
  46583. msgstr "邮件服务"
  46584. #. type: defvar
  46585. #: guix-git/doc/guix.texi:30846
  46586. msgid "A service type for the @code{fcgiwrap} FastCGI proxy."
  46587. msgstr ""
  46588. #. type: deftp
  46589. #: guix-git/doc/guix.texi:30848
  46590. #, no-wrap
  46591. msgid "{Data Type} fcgiwrap-configuration"
  46592. msgstr ""
  46593. #. type: deftp
  46594. #: guix-git/doc/guix.texi:30851
  46595. msgid "Data type representing the configuration of the @code{fcgiwrap} service. This type has the following parameters:"
  46596. msgstr ""
  46597. #. type: item
  46598. #: guix-git/doc/guix.texi:30852
  46599. #, no-wrap
  46600. msgid "@code{package} (default: @code{fcgiwrap})"
  46601. msgstr ""
  46602. #. type: table
  46603. #: guix-git/doc/guix.texi:30854
  46604. msgid "The fcgiwrap package to use."
  46605. msgstr ""
  46606. #. type: item
  46607. #: guix-git/doc/guix.texi:30855
  46608. #, no-wrap
  46609. msgid "@code{socket} (default: @code{tcp:127.0.0.1:9000})"
  46610. msgstr ""
  46611. #. type: table
  46612. #: guix-git/doc/guix.texi:30861
  46613. 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}."
  46614. msgstr ""
  46615. #. type: item
  46616. #: guix-git/doc/guix.texi:30862
  46617. #, no-wrap
  46618. msgid "@code{user} (default: @code{fcgiwrap})"
  46619. msgstr ""
  46620. #. type: itemx
  46621. #: guix-git/doc/guix.texi:30863
  46622. #, no-wrap
  46623. msgid "@code{group} (default: @code{fcgiwrap})"
  46624. msgstr ""
  46625. #. type: table
  46626. #: guix-git/doc/guix.texi:30868
  46627. 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."
  46628. msgstr ""
  46629. #. type: table
  46630. #: guix-git/doc/guix.texi:30875
  46631. 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."
  46632. msgstr ""
  46633. #. type: subsubheading
  46634. #: guix-git/doc/guix.texi:30879
  46635. #, no-wrap
  46636. msgid "PHP-FPM"
  46637. msgstr ""
  46638. #. type: cindex
  46639. #: guix-git/doc/guix.texi:30880
  46640. #, no-wrap
  46641. msgid "php-fpm"
  46642. msgstr ""
  46643. #. type: Plain text
  46644. #: guix-git/doc/guix.texi:30883
  46645. msgid "PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size."
  46646. msgstr ""
  46647. #. type: Plain text
  46648. #: guix-git/doc/guix.texi:30885
  46649. msgid "These features include:"
  46650. msgstr ""
  46651. #. type: item
  46652. #: guix-git/doc/guix.texi:30886
  46653. #, no-wrap
  46654. msgid "Adaptive process spawning"
  46655. msgstr ""
  46656. #. type: item
  46657. #: guix-git/doc/guix.texi:30887
  46658. #, no-wrap
  46659. msgid "Basic statistics (similar to Apache's mod_status)"
  46660. msgstr ""
  46661. #. type: item
  46662. #: guix-git/doc/guix.texi:30888
  46663. #, no-wrap
  46664. msgid "Advanced process management with graceful stop/start"
  46665. msgstr ""
  46666. #. type: item
  46667. #: guix-git/doc/guix.texi:30889
  46668. #, no-wrap
  46669. msgid "Ability to start workers with different uid/gid/chroot/environment"
  46670. msgstr ""
  46671. #. type: itemize
  46672. #: guix-git/doc/guix.texi:30891
  46673. msgid "and different php.ini (replaces safe_mode)"
  46674. msgstr ""
  46675. #. type: item
  46676. #: guix-git/doc/guix.texi:30891
  46677. #, no-wrap
  46678. msgid "Stdout & stderr logging"
  46679. msgstr ""
  46680. #. type: item
  46681. #: guix-git/doc/guix.texi:30892
  46682. #, no-wrap
  46683. msgid "Emergency restart in case of accidental opcode cache destruction"
  46684. msgstr ""
  46685. #. type: item
  46686. #: guix-git/doc/guix.texi:30893
  46687. #, no-wrap
  46688. msgid "Accelerated upload support"
  46689. msgstr ""
  46690. #. type: item
  46691. #: guix-git/doc/guix.texi:30894
  46692. #, no-wrap
  46693. msgid "Support for a \"slowlog\""
  46694. msgstr ""
  46695. #. type: item
  46696. #: guix-git/doc/guix.texi:30895
  46697. #, no-wrap
  46698. msgid "Enhancements to FastCGI, such as fastcgi_finish_request() -"
  46699. msgstr ""
  46700. #. type: itemize
  46701. #: guix-git/doc/guix.texi:30898
  46702. msgid "a special function to finish request & flush all data while continuing to do something time-consuming (video converting, stats processing, etc.)"
  46703. msgstr ""
  46704. #. type: Plain text
  46705. #: guix-git/doc/guix.texi:30900
  46706. msgid "...@: and much more."
  46707. msgstr ""
  46708. #. type: defvar
  46709. #: guix-git/doc/guix.texi:30901
  46710. #, fuzzy, no-wrap
  46711. msgid "php-fpm-service-type"
  46712. msgstr "邮件服务"
  46713. #. type: defvar
  46714. #: guix-git/doc/guix.texi:30903
  46715. msgid "A Service type for @code{php-fpm}."
  46716. msgstr ""
  46717. #. type: deftp
  46718. #: guix-git/doc/guix.texi:30905
  46719. #, no-wrap
  46720. msgid "{Data Type} php-fpm-configuration"
  46721. msgstr ""
  46722. #. type: deftp
  46723. #: guix-git/doc/guix.texi:30907
  46724. msgid "Data Type for php-fpm service configuration."
  46725. msgstr ""
  46726. #. type: item
  46727. #: guix-git/doc/guix.texi:30908
  46728. #, no-wrap
  46729. msgid "@code{php} (default: @code{php})"
  46730. msgstr ""
  46731. #. type: table
  46732. #: guix-git/doc/guix.texi:30910
  46733. msgid "The php package to use."
  46734. msgstr ""
  46735. #. type: item
  46736. #: guix-git/doc/guix.texi:30910
  46737. #, no-wrap
  46738. msgid "@code{socket} (default: @code{(string-append \"/var/run/php\" (version-major (package-version php)) \"-fpm.sock\")})"
  46739. msgstr ""
  46740. #. type: table
  46741. #: guix-git/doc/guix.texi:30912
  46742. msgid "The address on which to accept FastCGI requests. Valid syntaxes are:"
  46743. msgstr ""
  46744. #. type: code{#1}
  46745. #: guix-git/doc/guix.texi:30913
  46746. #, no-wrap
  46747. msgid "\"ip.add.re.ss:port\""
  46748. msgstr ""
  46749. #. type: table
  46750. #: guix-git/doc/guix.texi:30915
  46751. msgid "Listen on a TCP socket to a specific address on a specific port."
  46752. msgstr ""
  46753. #. type: code{#1}
  46754. #: guix-git/doc/guix.texi:30915
  46755. #, no-wrap
  46756. msgid "\"port\""
  46757. msgstr ""
  46758. #. type: table
  46759. #: guix-git/doc/guix.texi:30917
  46760. msgid "Listen on a TCP socket to all addresses on a specific port."
  46761. msgstr ""
  46762. #. type: code{#1}
  46763. #: guix-git/doc/guix.texi:30917
  46764. #, no-wrap
  46765. msgid "\"/path/to/unix/socket\""
  46766. msgstr ""
  46767. #. type: table
  46768. #: guix-git/doc/guix.texi:30919
  46769. msgid "Listen on a unix socket."
  46770. msgstr ""
  46771. #. type: item
  46772. #: guix-git/doc/guix.texi:30921
  46773. #, no-wrap
  46774. msgid "@code{user} (default: @code{php-fpm})"
  46775. msgstr ""
  46776. #. type: table
  46777. #: guix-git/doc/guix.texi:30923
  46778. msgid "User who will own the php worker processes."
  46779. msgstr ""
  46780. #. type: item
  46781. #: guix-git/doc/guix.texi:30923
  46782. #, no-wrap
  46783. msgid "@code{group} (default: @code{php-fpm})"
  46784. msgstr ""
  46785. #. type: table
  46786. #: guix-git/doc/guix.texi:30925
  46787. msgid "Group of the worker processes."
  46788. msgstr ""
  46789. #. type: item
  46790. #: guix-git/doc/guix.texi:30925
  46791. #, no-wrap
  46792. msgid "@code{socket-user} (default: @code{php-fpm})"
  46793. msgstr ""
  46794. #. type: table
  46795. #: guix-git/doc/guix.texi:30927
  46796. msgid "User who can speak to the php-fpm socket."
  46797. msgstr ""
  46798. #. type: item
  46799. #: guix-git/doc/guix.texi:30927
  46800. #, fuzzy, no-wrap
  46801. msgid "@code{socket-group} (default: @code{nginx})"
  46802. msgstr "@code{gnome}(默认值:@code{gnome})"
  46803. #. type: table
  46804. #: guix-git/doc/guix.texi:30929
  46805. msgid "Group that can speak to the php-fpm socket."
  46806. msgstr ""
  46807. #. type: item
  46808. #: guix-git/doc/guix.texi:30929
  46809. #, no-wrap
  46810. msgid "@code{pid-file} (default: @code{(string-append \"/var/run/php\" (version-major (package-version php)) \"-fpm.pid\")})"
  46811. msgstr ""
  46812. #. type: table
  46813. #: guix-git/doc/guix.texi:30932
  46814. msgid "The process id of the php-fpm process is written to this file once the service has started."
  46815. msgstr ""
  46816. #. type: item
  46817. #: guix-git/doc/guix.texi:30932
  46818. #, no-wrap
  46819. msgid "@code{log-file} (default: @code{(string-append \"/var/log/php\" (version-major (package-version php)) \"-fpm.log\")})"
  46820. msgstr ""
  46821. #. type: table
  46822. #: guix-git/doc/guix.texi:30934
  46823. msgid "Log for the php-fpm master process."
  46824. msgstr ""
  46825. #. type: item
  46826. #: guix-git/doc/guix.texi:30934
  46827. #, no-wrap
  46828. msgid "@code{process-manager} (default: @code{(php-fpm-dynamic-process-manager-configuration)})"
  46829. msgstr ""
  46830. #. type: table
  46831. #: guix-git/doc/guix.texi:30937
  46832. msgid "Detailed settings for the php-fpm process manager. Must be one of:"
  46833. msgstr ""
  46834. #. type: code{#1}
  46835. #: guix-git/doc/guix.texi:30938
  46836. #, no-wrap
  46837. msgid "<php-fpm-dynamic-process-manager-configuration>"
  46838. msgstr ""
  46839. #. type: code{#1}
  46840. #: guix-git/doc/guix.texi:30939
  46841. #, no-wrap
  46842. msgid "<php-fpm-static-process-manager-configuration>"
  46843. msgstr ""
  46844. #. type: code{#1}
  46845. #: guix-git/doc/guix.texi:30940
  46846. #, no-wrap
  46847. msgid "<php-fpm-on-demand-process-manager-configuration>"
  46848. msgstr ""
  46849. #. type: item
  46850. #: guix-git/doc/guix.texi:30942
  46851. #, no-wrap
  46852. msgid "@code{display-errors} (default @code{#f})"
  46853. msgstr ""
  46854. #. type: table
  46855. #: guix-git/doc/guix.texi:30947
  46856. 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."
  46857. msgstr ""
  46858. #. type: item
  46859. #: guix-git/doc/guix.texi:30947
  46860. #, no-wrap
  46861. msgid "@code{timezone} (default @code{#f})"
  46862. msgstr ""
  46863. #. type: table
  46864. #: guix-git/doc/guix.texi:30949
  46865. msgid "Specifies @code{php_admin_value[date.timezone]} parameter."
  46866. msgstr ""
  46867. #. type: item
  46868. #: guix-git/doc/guix.texi:30949
  46869. #, no-wrap
  46870. msgid "@code{workers-logfile} (default @code{(string-append \"/var/log/php\" (version-major (package-version php)) \"-fpm.www.log\")})"
  46871. msgstr ""
  46872. #. type: table
  46873. #: guix-git/doc/guix.texi:30952
  46874. msgid "This file will log the @code{stderr} outputs of php worker processes. Can be set to @code{#f} to disable logging."
  46875. msgstr ""
  46876. #. type: item
  46877. #: guix-git/doc/guix.texi:30952
  46878. #, no-wrap
  46879. msgid "@code{file} (default @code{#f})"
  46880. msgstr ""
  46881. #. type: table
  46882. #: guix-git/doc/guix.texi:30955
  46883. msgid "An optional override of the whole configuration. You can use the @code{mixed-text-file} function or an absolute filepath for it."
  46884. msgstr ""
  46885. #. type: item
  46886. #: guix-git/doc/guix.texi:30955
  46887. #, fuzzy, no-wrap
  46888. msgid "@code{php-ini-file} (default @code{#f})"
  46889. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  46890. #. type: table
  46891. #: guix-git/doc/guix.texi:30959
  46892. 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."
  46893. msgstr ""
  46894. #. type: table
  46895. #: guix-git/doc/guix.texi:30963
  46896. 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:"
  46897. msgstr ""
  46898. #. type: lisp
  46899. #: guix-git/doc/guix.texi:30968
  46900. #, no-wrap
  46901. msgid ""
  46902. "(define %local-php-ini\n"
  46903. " (plain-file \"php.ini\"\n"
  46904. " \"memory_limit = 2G\n"
  46905. "max_execution_time = 1800\"))\n"
  46906. "\n"
  46907. msgstr ""
  46908. #. type: lisp
  46909. #: guix-git/doc/guix.texi:30975
  46910. #, no-wrap
  46911. msgid ""
  46912. "(operating-system\n"
  46913. " ;; @dots{}\n"
  46914. " (services (cons (service php-fpm-service-type\n"
  46915. " (php-fpm-configuration\n"
  46916. " (php-ini-file %local-php-ini)))\n"
  46917. " %base-services)))\n"
  46918. msgstr ""
  46919. #. type: table
  46920. #: guix-git/doc/guix.texi:30980
  46921. 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."
  46922. msgstr ""
  46923. #. type: deftp
  46924. #: guix-git/doc/guix.texi:30983
  46925. #, no-wrap
  46926. msgid "{Data type} php-fpm-dynamic-process-manager-configuration"
  46927. msgstr ""
  46928. #. type: deftp
  46929. #: guix-git/doc/guix.texi:30987
  46930. 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."
  46931. msgstr ""
  46932. #. type: item
  46933. #: guix-git/doc/guix.texi:30988 guix-git/doc/guix.texi:31004
  46934. #: guix-git/doc/guix.texi:31014
  46935. #, no-wrap
  46936. msgid "@code{max-children} (default: @code{5})"
  46937. msgstr ""
  46938. #. type: table
  46939. #: guix-git/doc/guix.texi:30990 guix-git/doc/guix.texi:31006
  46940. #: guix-git/doc/guix.texi:31016
  46941. msgid "Maximum of worker processes."
  46942. msgstr ""
  46943. #. type: item
  46944. #: guix-git/doc/guix.texi:30990
  46945. #, no-wrap
  46946. msgid "@code{start-servers} (default: @code{2})"
  46947. msgstr ""
  46948. #. type: table
  46949. #: guix-git/doc/guix.texi:30992
  46950. msgid "How many worker processes should be started on start-up."
  46951. msgstr ""
  46952. #. type: item
  46953. #: guix-git/doc/guix.texi:30992
  46954. #, no-wrap
  46955. msgid "@code{min-spare-servers} (default: @code{1})"
  46956. msgstr ""
  46957. #. type: table
  46958. #: guix-git/doc/guix.texi:30994
  46959. msgid "How many spare worker processes should be kept around at minimum."
  46960. msgstr ""
  46961. #. type: item
  46962. #: guix-git/doc/guix.texi:30994
  46963. #, no-wrap
  46964. msgid "@code{max-spare-servers} (default: @code{3})"
  46965. msgstr ""
  46966. #. type: table
  46967. #: guix-git/doc/guix.texi:30996
  46968. msgid "How many spare worker processes should be kept around at maximum."
  46969. msgstr ""
  46970. #. type: deftp
  46971. #: guix-git/doc/guix.texi:30999
  46972. #, no-wrap
  46973. msgid "{Data type} php-fpm-static-process-manager-configuration"
  46974. msgstr ""
  46975. #. type: deftp
  46976. #: guix-git/doc/guix.texi:31003
  46977. 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."
  46978. msgstr ""
  46979. #. type: deftp
  46980. #: guix-git/doc/guix.texi:31009
  46981. #, no-wrap
  46982. msgid "{Data type} php-fpm-on-demand-process-manager-configuration"
  46983. msgstr ""
  46984. #. type: deftp
  46985. #: guix-git/doc/guix.texi:31013
  46986. 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."
  46987. msgstr ""
  46988. #. type: item
  46989. #: guix-git/doc/guix.texi:31016
  46990. #, no-wrap
  46991. msgid "@code{process-idle-timeout} (default: @code{10})"
  46992. msgstr ""
  46993. #. type: table
  46994. #: guix-git/doc/guix.texi:31018
  46995. msgid "The time in seconds after which a process with no requests is killed."
  46996. msgstr ""
  46997. #. type: defun
  46998. #: guix-git/doc/guix.texi:31022
  46999. #, no-wrap
  47000. msgid "nginx-php-location [#:nginx-package nginx] @"
  47001. msgstr ""
  47002. #. type: defun
  47003. #: guix-git/doc/guix.texi:31026
  47004. msgid "[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}."
  47005. msgstr ""
  47006. #. type: Plain text
  47007. #: guix-git/doc/guix.texi:31029
  47008. msgid "A simple services setup for nginx with php can look like this:"
  47009. msgstr ""
  47010. #. type: lisp
  47011. #: guix-git/doc/guix.texi:31042
  47012. #, no-wrap
  47013. msgid ""
  47014. "(services (cons* (service dhcp-client-service-type)\n"
  47015. " (service php-fpm-service-type)\n"
  47016. " (service nginx-service-type\n"
  47017. " (nginx-server-configuration\n"
  47018. " (server-name '(\"example.com\"))\n"
  47019. " (root \"/srv/http/\")\n"
  47020. " (locations\n"
  47021. " (list (nginx-php-location)))\n"
  47022. " (listen '(\"80\"))\n"
  47023. " (ssl-certificate #f)\n"
  47024. " (ssl-certificate-key #f)))\n"
  47025. " %base-services))\n"
  47026. msgstr ""
  47027. #. type: cindex
  47028. #: guix-git/doc/guix.texi:31044
  47029. #, no-wrap
  47030. msgid "cat-avatar-generator"
  47031. msgstr ""
  47032. #. type: Plain text
  47033. #: guix-git/doc/guix.texi:31048
  47034. 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."
  47035. msgstr ""
  47036. #. type: defun
  47037. #: guix-git/doc/guix.texi:31049
  47038. #, no-wrap
  47039. msgid "cat-avatar-generator-service @"
  47040. msgstr ""
  47041. #. type: defun
  47042. #: guix-git/doc/guix.texi:31057
  47043. 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."
  47044. msgstr ""
  47045. #. type: Plain text
  47046. #: guix-git/doc/guix.texi:31060
  47047. msgid "A simple setup for cat-avatar-generator can look like this:"
  47048. msgstr ""
  47049. #. type: lisp
  47050. #: guix-git/doc/guix.texi:31067
  47051. #, no-wrap
  47052. msgid ""
  47053. "(services (cons* (cat-avatar-generator-service\n"
  47054. " #:configuration\n"
  47055. " (nginx-server-configuration\n"
  47056. " (server-name '(\"example.com\"))))\n"
  47057. " ...\n"
  47058. " %base-services))\n"
  47059. msgstr ""
  47060. #. type: subsubheading
  47061. #: guix-git/doc/guix.texi:31069
  47062. #, no-wrap
  47063. msgid "Hpcguix-web"
  47064. msgstr ""
  47065. #. type: cindex
  47066. #: guix-git/doc/guix.texi:31071
  47067. #, no-wrap
  47068. msgid "hpcguix-web"
  47069. msgstr ""
  47070. #. type: Plain text
  47071. #: guix-git/doc/guix.texi:31076
  47072. 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."
  47073. msgstr ""
  47074. #. type: defvar
  47075. #: guix-git/doc/guix.texi:31077
  47076. #, fuzzy, no-wrap
  47077. msgid "hpcguix-web-service-type"
  47078. msgstr "邮件服务"
  47079. #. type: defvar
  47080. #: guix-git/doc/guix.texi:31079
  47081. msgid "The service type for @code{hpcguix-web}."
  47082. msgstr ""
  47083. #. type: deftp
  47084. #: guix-git/doc/guix.texi:31081
  47085. #, no-wrap
  47086. msgid "{Data Type} hpcguix-web-configuration"
  47087. msgstr ""
  47088. #. type: deftp
  47089. #: guix-git/doc/guix.texi:31083
  47090. msgid "Data type for the hpcguix-web service configuration."
  47091. msgstr ""
  47092. #. type: item
  47093. #: guix-git/doc/guix.texi:31085
  47094. #, fuzzy, no-wrap
  47095. msgid "@code{specs} (default: @code{#f})"
  47096. msgstr "@code{port}(默认值:@code{22})"
  47097. #. type: table
  47098. #: guix-git/doc/guix.texi:31089
  47099. msgid "Either @code{#f} or a gexp (@pxref{G-Expressions}) specifying the hpcguix-web service configuration as an @code{hpcguix-web-configuration} record. The main fields of that record type are:"
  47100. msgstr ""
  47101. #. type: item
  47102. #: guix-git/doc/guix.texi:31091
  47103. #, no-wrap
  47104. msgid "@code{title-prefix} (default: @code{\"hpcguix | \"})"
  47105. msgstr ""
  47106. #. type: table
  47107. #: guix-git/doc/guix.texi:31093
  47108. msgid "The page title prefix."
  47109. msgstr ""
  47110. #. type: item
  47111. #: guix-git/doc/guix.texi:31094
  47112. #, no-wrap
  47113. msgid "@code{guix-command} (default: @code{\"guix\"})"
  47114. msgstr ""
  47115. #. type: table
  47116. #: guix-git/doc/guix.texi:31096
  47117. msgid "The @command{guix} command to use in examples that appear on HTML pages."
  47118. msgstr ""
  47119. #. type: item
  47120. #: guix-git/doc/guix.texi:31097
  47121. #, no-wrap
  47122. msgid "@code{package-filter-proc} (default: @code{(const #t)})"
  47123. msgstr ""
  47124. #. type: table
  47125. #: guix-git/doc/guix.texi:31099
  47126. msgid "A procedure specifying how to filter packages that are displayed."
  47127. msgstr ""
  47128. #. type: item
  47129. #: guix-git/doc/guix.texi:31100
  47130. #, no-wrap
  47131. msgid "@code{package-page-extension-proc} (default: @code{(const '())})"
  47132. msgstr ""
  47133. #. type: table
  47134. #: guix-git/doc/guix.texi:31102
  47135. msgid "Extension package for @code{hpcguix-web}."
  47136. msgstr ""
  47137. #. type: item
  47138. #: guix-git/doc/guix.texi:31103
  47139. #, no-wrap
  47140. msgid "@code{menu} (default: @code{'()})"
  47141. msgstr ""
  47142. #. type: table
  47143. #: guix-git/doc/guix.texi:31105
  47144. msgid "Additional entry in page @code{menu}."
  47145. msgstr ""
  47146. #. type: item
  47147. #: guix-git/doc/guix.texi:31106
  47148. #, no-wrap
  47149. msgid "@code{channels} (default: @code{%default-channels})"
  47150. msgstr ""
  47151. #. type: table
  47152. #: guix-git/doc/guix.texi:31108
  47153. msgid "List of channels from which the package list is built (@pxref{Channels})."
  47154. msgstr ""
  47155. #. type: item
  47156. #: guix-git/doc/guix.texi:31109
  47157. #, no-wrap
  47158. msgid "@code{package-list-expiration} (default: @code{(* 12 3600)})"
  47159. msgstr ""
  47160. #. type: table
  47161. #: guix-git/doc/guix.texi:31112
  47162. msgid "The expiration time, in seconds, after which the package list is rebuilt from the latest instances of the given channels."
  47163. msgstr ""
  47164. #. type: table
  47165. #: guix-git/doc/guix.texi:31117
  47166. msgid "See the hpcguix-web repository for a @uref{https://github.com/UMCUGenetics/hpcguix-web/blob/master/hpcweb-configuration.scm, complete example}."
  47167. msgstr ""
  47168. #. type: item
  47169. #: guix-git/doc/guix.texi:31118
  47170. #, no-wrap
  47171. msgid "@code{package} (default: @code{hpcguix-web})"
  47172. msgstr ""
  47173. #. type: table
  47174. #: guix-git/doc/guix.texi:31120
  47175. msgid "The hpcguix-web package to use."
  47176. msgstr ""
  47177. #. type: item
  47178. #: guix-git/doc/guix.texi:31121
  47179. #, fuzzy, no-wrap
  47180. msgid "@code{address} (default: @code{\"127.0.0.1\"})"
  47181. msgstr "@code{display}(默认值:@code{\":0\"})"
  47182. #. type: table
  47183. #: guix-git/doc/guix.texi:31123
  47184. msgid "The IP address to listen to."
  47185. msgstr ""
  47186. #. type: item
  47187. #: guix-git/doc/guix.texi:31124
  47188. #, fuzzy, no-wrap
  47189. msgid "@code{port} (default: @code{5000})"
  47190. msgstr "@code{port}(默认值:@code{22})"
  47191. #. type: table
  47192. #: guix-git/doc/guix.texi:31126
  47193. msgid "The port number to listen to."
  47194. msgstr ""
  47195. #. type: Plain text
  47196. #: guix-git/doc/guix.texi:31130
  47197. msgid "A typical hpcguix-web service declaration looks like this:"
  47198. msgstr ""
  47199. #. type: lisp
  47200. #: guix-git/doc/guix.texi:31138
  47201. #, no-wrap
  47202. msgid ""
  47203. "(service hpcguix-web-service-type\n"
  47204. " (hpcguix-web-configuration\n"
  47205. " (specs\n"
  47206. " #~(hpcweb-configuration\n"
  47207. " (title-prefix \"Guix-HPC - \")\n"
  47208. " (menu '((\"/about\" \"ABOUT\")))))))\n"
  47209. msgstr ""
  47210. #. type: quotation
  47211. #: guix-git/doc/guix.texi:31145
  47212. 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."
  47213. msgstr ""
  47214. #. type: quotation
  47215. #: guix-git/doc/guix.texi:31149
  47216. 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."
  47217. msgstr ""
  47218. #. type: cindex
  47219. #: guix-git/doc/guix.texi:31151 guix-git/doc/guix.texi:31153
  47220. #, no-wrap
  47221. msgid "gmnisrv"
  47222. msgstr ""
  47223. #. type: Plain text
  47224. #: guix-git/doc/guix.texi:31156
  47225. msgid "The @uref{https://git.sr.ht/~sircmpwn/gmnisrv, gmnisrv} program is a simple @uref{https://gemini.circumlunar.space/, Gemini} protocol server."
  47226. msgstr ""
  47227. #. type: defvar
  47228. #: guix-git/doc/guix.texi:31157
  47229. #, fuzzy, no-wrap
  47230. msgid "gmnisrv-service-type"
  47231. msgstr "邮件服务"
  47232. #. type: defvar
  47233. #: guix-git/doc/guix.texi:31160
  47234. msgid "This is the type of the gmnisrv service, whose value should be a @code{gmnisrv-configuration} object, as in this example:"
  47235. msgstr ""
  47236. #. type: lisp
  47237. #: guix-git/doc/guix.texi:31165
  47238. #, no-wrap
  47239. msgid ""
  47240. "(service gmnisrv-service-type\n"
  47241. " (gmnisrv-configuration\n"
  47242. " (config-file (local-file \"./my-gmnisrv.ini\"))))\n"
  47243. msgstr ""
  47244. #. type: deftp
  47245. #: guix-git/doc/guix.texi:31168
  47246. #, no-wrap
  47247. msgid "{Data Type} gmnisrv-configuration"
  47248. msgstr ""
  47249. #. type: deftp
  47250. #: guix-git/doc/guix.texi:31170
  47251. #, fuzzy
  47252. msgid "Data type representing the configuration of gmnisrv."
  47253. msgstr "管理操作系统配置。"
  47254. #. type: item
  47255. #: guix-git/doc/guix.texi:31172
  47256. #, fuzzy, no-wrap
  47257. msgid "@code{package} (default: @var{gmnisrv})"
  47258. msgstr "@code{gnome}(默认值:@code{gnome})"
  47259. #. type: table
  47260. #: guix-git/doc/guix.texi:31174
  47261. msgid "Package object of the gmnisrv server."
  47262. msgstr ""
  47263. #. type: item
  47264. #: guix-git/doc/guix.texi:31175
  47265. #, fuzzy, no-wrap
  47266. msgid "@code{config-file} (default: @code{%default-gmnisrv-config-file})"
  47267. msgstr "@code{gnome}(默认值:@code{gnome})"
  47268. #. type: table
  47269. #: guix-git/doc/guix.texi:31181
  47270. 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}."
  47271. msgstr ""
  47272. #. type: subsubheading
  47273. #: guix-git/doc/guix.texi:31185
  47274. #, no-wrap
  47275. msgid "Agate"
  47276. msgstr ""
  47277. #. type: cindex
  47278. #: guix-git/doc/guix.texi:31187
  47279. #, no-wrap
  47280. msgid "agate"
  47281. msgstr ""
  47282. #. type: Plain text
  47283. #: guix-git/doc/guix.texi:31192
  47284. 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."
  47285. msgstr ""
  47286. #. type: defvar
  47287. #: guix-git/doc/guix.texi:31193
  47288. #, fuzzy, no-wrap
  47289. msgid "agate-service-type"
  47290. msgstr "邮件服务"
  47291. #. type: defvar
  47292. #: guix-git/doc/guix.texi:31196
  47293. msgid "This is the type of the agate service, whose value should be an @code{agate-service-type} object, as in this example:"
  47294. msgstr ""
  47295. #. type: lisp
  47296. #: guix-git/doc/guix.texi:31203
  47297. #, no-wrap
  47298. msgid ""
  47299. "(service agate-service-type\n"
  47300. "\t (agate-configuration\n"
  47301. "\t (content \"/srv/gemini\")\n"
  47302. "\t (cert \"/srv/cert.pem\")\n"
  47303. "\t (key \"/srv/key.rsa\")))\n"
  47304. msgstr ""
  47305. #. type: defvar
  47306. #: guix-git/doc/guix.texi:31208
  47307. 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."
  47308. msgstr ""
  47309. #. type: defvar
  47310. #: guix-git/doc/guix.texi:31211
  47311. msgid "To obtain a certificate and a key, you could, for example, use OpenSSL, running a command similar to the following example:"
  47312. msgstr ""
  47313. #. type: example
  47314. #: guix-git/doc/guix.texi:31215
  47315. #, no-wrap
  47316. msgid ""
  47317. "openssl req -x509 -newkey rsa:4096 -keyout key.rsa -out cert.pem \\\n"
  47318. " -days 3650 -nodes -subj \"/CN=example.com\"\n"
  47319. msgstr ""
  47320. #. type: defvar
  47321. #: guix-git/doc/guix.texi:31220
  47322. 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."
  47323. msgstr ""
  47324. #. type: deftp
  47325. #: guix-git/doc/guix.texi:31223
  47326. #, fuzzy, no-wrap
  47327. msgid "{Data Type} agate-configuration"
  47328. msgstr "管理操作系统配置。"
  47329. #. type: deftp
  47330. #: guix-git/doc/guix.texi:31225
  47331. #, fuzzy
  47332. msgid "Data type representing the configuration of Agate."
  47333. msgstr "管理操作系统配置。"
  47334. #. type: item
  47335. #: guix-git/doc/guix.texi:31227
  47336. #, fuzzy, no-wrap
  47337. msgid "@code{package} (default: @code{agate})"
  47338. msgstr "@code{mate}(默认值:@code{mate})"
  47339. #. type: table
  47340. #: guix-git/doc/guix.texi:31229
  47341. #, fuzzy
  47342. msgid "The package object of the Agate server."
  47343. msgstr "软件包数据类型。"
  47344. #. type: item
  47345. #: guix-git/doc/guix.texi:31230
  47346. #, fuzzy, no-wrap
  47347. msgid "@code{content} (default: @file{\"/srv/gemini\"})"
  47348. msgstr "@code{mate}(默认值:@code{mate})"
  47349. #. type: table
  47350. #: guix-git/doc/guix.texi:31232
  47351. msgid "The directory from which Agate will serve files."
  47352. msgstr ""
  47353. #. type: item
  47354. #: guix-git/doc/guix.texi:31233
  47355. #, fuzzy, no-wrap
  47356. msgid "@code{cert} (default: @code{#f})"
  47357. msgstr "@code{port}(默认值:@code{22})"
  47358. #. type: table
  47359. #: guix-git/doc/guix.texi:31236
  47360. 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."
  47361. msgstr ""
  47362. #. type: item
  47363. #: guix-git/doc/guix.texi:31237 guix-git/doc/guix.texi:31673
  47364. #, no-wrap
  47365. msgid "@code{key} (default: @code{#f})"
  47366. msgstr ""
  47367. #. type: table
  47368. #: guix-git/doc/guix.texi:31240
  47369. 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."
  47370. msgstr ""
  47371. #. type: item
  47372. #: guix-git/doc/guix.texi:31241
  47373. #, fuzzy, no-wrap
  47374. msgid "@code{addr} (default: @code{'(\"0.0.0.0:1965\" \"[::]:1965\")})"
  47375. msgstr "@code{display}(默认值:@code{\":0\"})"
  47376. #. type: table
  47377. #: guix-git/doc/guix.texi:31243
  47378. msgid "A list of the addresses to listen on."
  47379. msgstr ""
  47380. #. type: table
  47381. #: guix-git/doc/guix.texi:31246
  47382. msgid "The domain name of this Gemini server. Optional."
  47383. msgstr ""
  47384. #. type: item
  47385. #: guix-git/doc/guix.texi:31247
  47386. #, fuzzy, no-wrap
  47387. msgid "@code{lang} (default: @code{#f})"
  47388. msgstr "@code{challenge}(默认值:@code{#f})"
  47389. #. type: table
  47390. #: guix-git/doc/guix.texi:31249
  47391. msgid "RFC 4646 language code(s) for text/gemini documents. Optional."
  47392. msgstr ""
  47393. #. type: item
  47394. #: guix-git/doc/guix.texi:31250
  47395. #, fuzzy, no-wrap
  47396. msgid "@code{silent?} (default: @code{#f})"
  47397. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  47398. #. type: table
  47399. #: guix-git/doc/guix.texi:31252
  47400. msgid "Set to @code{#t} to disable logging output."
  47401. msgstr ""
  47402. #. type: item
  47403. #: guix-git/doc/guix.texi:31253
  47404. #, fuzzy, no-wrap
  47405. msgid "@code{serve-secret?} (default: @code{#f})"
  47406. msgstr "@code{speed}(默认值:@code{1.0})"
  47407. #. type: table
  47408. #: guix-git/doc/guix.texi:31256
  47409. msgid "Set to @code{#t} to serve secret files (files/directories starting with a dot)."
  47410. msgstr ""
  47411. #. type: item
  47412. #: guix-git/doc/guix.texi:31257
  47413. #, fuzzy, no-wrap
  47414. msgid "@code{log-ip?} (default: @code{#t})"
  47415. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  47416. #. type: table
  47417. #: guix-git/doc/guix.texi:31259
  47418. msgid "Whether or not to output IP addresses when logging."
  47419. msgstr ""
  47420. #. type: item
  47421. #: guix-git/doc/guix.texi:31260
  47422. #, fuzzy, no-wrap
  47423. msgid "@code{user} (default: @code{\"agate\"})"
  47424. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  47425. #. type: table
  47426. #: guix-git/doc/guix.texi:31262
  47427. msgid "Owner of the @code{agate} process."
  47428. msgstr ""
  47429. #. type: item
  47430. #: guix-git/doc/guix.texi:31263
  47431. #, fuzzy, no-wrap
  47432. msgid "@code{group} (default: @code{\"agate\"})"
  47433. msgstr "@code{gnome}(默认值:@code{gnome})"
  47434. #. type: table
  47435. #: guix-git/doc/guix.texi:31265
  47436. msgid "Owner's group of the @code{agate} process."
  47437. msgstr ""
  47438. #. type: item
  47439. #: guix-git/doc/guix.texi:31266
  47440. #, fuzzy, no-wrap
  47441. msgid "@code{log-file} (default: @file{\"/var/log/agate.log\"})"
  47442. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  47443. #. type: table
  47444. #: guix-git/doc/guix.texi:31268
  47445. msgid "The file which should store the logging output of Agate."
  47446. msgstr ""
  47447. #. type: cindex
  47448. #: guix-git/doc/guix.texi:31275
  47449. #, no-wrap
  47450. msgid "Web"
  47451. msgstr ""
  47452. #. type: cindex
  47453. #: guix-git/doc/guix.texi:31276
  47454. #, no-wrap
  47455. msgid "HTTP, HTTPS"
  47456. msgstr ""
  47457. #. type: cindex
  47458. #: guix-git/doc/guix.texi:31277
  47459. #, no-wrap
  47460. msgid "Let's Encrypt"
  47461. msgstr ""
  47462. #. type: cindex
  47463. #: guix-git/doc/guix.texi:31278
  47464. #, no-wrap
  47465. msgid "TLS certificates"
  47466. msgstr ""
  47467. #. type: Plain text
  47468. #: guix-git/doc/guix.texi:31285
  47469. 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."
  47470. msgstr ""
  47471. #. type: Plain text
  47472. #: guix-git/doc/guix.texi:31297
  47473. 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."
  47474. msgstr ""
  47475. #. type: Plain text
  47476. #: guix-git/doc/guix.texi:31304
  47477. 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)."
  47478. msgstr ""
  47479. #. type: Plain text
  47480. #: guix-git/doc/guix.texi:31310
  47481. 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."
  47482. msgstr ""
  47483. #. type: Plain text
  47484. #: guix-git/doc/guix.texi:31314
  47485. 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}."
  47486. msgstr ""
  47487. #. type: defvar
  47488. #: guix-git/doc/guix.texi:31315
  47489. #, fuzzy, no-wrap
  47490. msgid "certbot-service-type"
  47491. msgstr "邮件服务"
  47492. #. type: defvar
  47493. #: guix-git/doc/guix.texi:31318
  47494. 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:"
  47495. msgstr ""
  47496. #. type: lisp
  47497. #: guix-git/doc/guix.texi:31325
  47498. #, no-wrap
  47499. msgid ""
  47500. "(define %nginx-deploy-hook\n"
  47501. " (program-file\n"
  47502. " \"nginx-deploy-hook\"\n"
  47503. " #~(let ((pid (call-with-input-file \"/var/run/nginx/pid\" read)))\n"
  47504. " (kill pid SIGHUP))))\n"
  47505. "\n"
  47506. msgstr ""
  47507. #. type: lisp
  47508. #: guix-git/doc/guix.texi:31336
  47509. #, no-wrap
  47510. msgid ""
  47511. "(service certbot-service-type\n"
  47512. " (certbot-configuration\n"
  47513. " (email \"foo@@example.net\")\n"
  47514. " (certificates\n"
  47515. " (list\n"
  47516. " (certificate-configuration\n"
  47517. " (domains '(\"example.net\" \"www.example.net\"))\n"
  47518. " (deploy-hook %nginx-deploy-hook))\n"
  47519. " (certificate-configuration\n"
  47520. " (domains '(\"bar.example.net\")))))))\n"
  47521. msgstr ""
  47522. #. type: defvar
  47523. #: guix-git/doc/guix.texi:31339
  47524. msgid "See below for details about @code{certbot-configuration}."
  47525. msgstr ""
  47526. #. type: deftp
  47527. #: guix-git/doc/guix.texi:31341
  47528. #, no-wrap
  47529. msgid "{Data Type} certbot-configuration"
  47530. msgstr ""
  47531. #. type: deftp
  47532. #: guix-git/doc/guix.texi:31344
  47533. msgid "Data type representing the configuration of the @code{certbot} service. This type has the following parameters:"
  47534. msgstr ""
  47535. #. type: item
  47536. #: guix-git/doc/guix.texi:31346
  47537. #, no-wrap
  47538. msgid "@code{package} (default: @code{certbot})"
  47539. msgstr ""
  47540. #. type: table
  47541. #: guix-git/doc/guix.texi:31348
  47542. msgid "The certbot package to use."
  47543. msgstr ""
  47544. #. type: item
  47545. #: guix-git/doc/guix.texi:31349
  47546. #, no-wrap
  47547. msgid "@code{webroot} (default: @code{/var/www})"
  47548. msgstr ""
  47549. #. type: table
  47550. #: guix-git/doc/guix.texi:31352
  47551. msgid "The directory from which to serve the Let's Encrypt challenge/response files."
  47552. msgstr ""
  47553. #. type: item
  47554. #: guix-git/doc/guix.texi:31353
  47555. #, fuzzy, no-wrap
  47556. msgid "@code{certificates} (default: @code{'()})"
  47557. msgstr "@code{features} (@code{'()})"
  47558. #. type: table
  47559. #: guix-git/doc/guix.texi:31357
  47560. 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}."
  47561. msgstr ""
  47562. #. type: item
  47563. #: guix-git/doc/guix.texi:31358
  47564. #, fuzzy, no-wrap
  47565. msgid "@code{email} (default: @code{#f})"
  47566. msgstr "@code{challenge}(默认值:@code{#f})"
  47567. #. type: table
  47568. #: guix-git/doc/guix.texi:31362
  47569. 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."
  47570. msgstr ""
  47571. #. type: item
  47572. #: guix-git/doc/guix.texi:31363 guix-git/doc/guix.texi:33276
  47573. #, fuzzy, no-wrap
  47574. msgid "@code{server} (default: @code{#f})"
  47575. msgstr "@code{speed}(默认值:@code{1.0})"
  47576. #. type: table
  47577. #: guix-git/doc/guix.texi:31366
  47578. msgid "Optional URL of ACME server. Setting this overrides certbot's default, which is the Let's Encrypt server."
  47579. msgstr ""
  47580. #. type: item
  47581. #: guix-git/doc/guix.texi:31367
  47582. #, no-wrap
  47583. msgid "@code{rsa-key-size} (default: @code{2048})"
  47584. msgstr ""
  47585. #. type: table
  47586. #: guix-git/doc/guix.texi:31369
  47587. msgid "Size of the RSA key."
  47588. msgstr ""
  47589. #. type: item
  47590. #: guix-git/doc/guix.texi:31370
  47591. #, no-wrap
  47592. msgid "@code{default-location} (default: @i{see below})"
  47593. msgstr ""
  47594. #. type: table
  47595. #: guix-git/doc/guix.texi:31379
  47596. 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."
  47597. msgstr ""
  47598. #. type: table
  47599. #: guix-git/doc/guix.texi:31383
  47600. 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."
  47601. msgstr ""
  47602. #. type: table
  47603. #: guix-git/doc/guix.texi:31387
  47604. 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}."
  47605. msgstr ""
  47606. #. type: table
  47607. #: guix-git/doc/guix.texi:31389
  47608. msgid "Pass @code{#f} to not issue a default location."
  47609. msgstr ""
  47610. #. type: deftp
  47611. #: guix-git/doc/guix.texi:31392
  47612. #, no-wrap
  47613. msgid "{Data Type} certificate-configuration"
  47614. msgstr ""
  47615. #. type: deftp
  47616. #: guix-git/doc/guix.texi:31395
  47617. msgid "Data type representing the configuration of a certificate. This type has the following parameters:"
  47618. msgstr ""
  47619. #. type: item
  47620. #: guix-git/doc/guix.texi:31397
  47621. #, no-wrap
  47622. msgid "@code{name} (default: @i{see below})"
  47623. msgstr ""
  47624. #. type: table
  47625. #: guix-git/doc/guix.texi:31401
  47626. 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}."
  47627. msgstr ""
  47628. #. type: table
  47629. #: guix-git/doc/guix.texi:31403
  47630. msgid "Its default is the first provided domain."
  47631. msgstr ""
  47632. #. type: item
  47633. #: guix-git/doc/guix.texi:31404
  47634. #, fuzzy, no-wrap
  47635. msgid "@code{domains} (default: @code{'()})"
  47636. msgstr "@code{includes}(默认值:@code{'()})"
  47637. #. type: table
  47638. #: guix-git/doc/guix.texi:31407
  47639. msgid "The first domain provided will be the subject CN of the certificate, and all domains will be Subject Alternative Names on the certificate."
  47640. msgstr ""
  47641. #. type: item
  47642. #: guix-git/doc/guix.texi:31408
  47643. #, no-wrap
  47644. msgid "@code{challenge} (default: @code{#f})"
  47645. msgstr "@code{challenge}(默认值:@code{#f})"
  47646. #. type: table
  47647. #: guix-git/doc/guix.texi:31415
  47648. 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."
  47649. msgstr ""
  47650. #. type: item
  47651. #: guix-git/doc/guix.texi:31416
  47652. #, fuzzy, no-wrap
  47653. msgid "@code{csr} (default: @code{#f})"
  47654. msgstr "@code{port}(默认值:@code{22})"
  47655. #. type: table
  47656. #: guix-git/doc/guix.texi:31423
  47657. 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."
  47658. msgstr ""
  47659. #. type: item
  47660. #: guix-git/doc/guix.texi:31424
  47661. #, no-wrap
  47662. msgid "@code{authentication-hook} (default: @code{#f})"
  47663. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  47664. #. type: table
  47665. #: guix-git/doc/guix.texi:31430
  47666. 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."
  47667. msgstr ""
  47668. #. type: item
  47669. #: guix-git/doc/guix.texi:31431
  47670. #, no-wrap
  47671. msgid "@code{cleanup-hook} (default: @code{#f})"
  47672. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  47673. #. type: table
  47674. #: guix-git/doc/guix.texi:31437
  47675. 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."
  47676. msgstr ""
  47677. #. type: item
  47678. #: guix-git/doc/guix.texi:31438
  47679. #, no-wrap
  47680. msgid "@code{deploy-hook} (default: @code{#f})"
  47681. msgstr ""
  47682. #. type: table
  47683. #: guix-git/doc/guix.texi:31446
  47684. 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\"}."
  47685. msgstr ""
  47686. #. type: Plain text
  47687. #: guix-git/doc/guix.texi:31453
  47688. 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}."
  47689. msgstr ""
  47690. #. type: cindex
  47691. #: guix-git/doc/guix.texi:31455
  47692. #, no-wrap
  47693. msgid "DNS (domain name system)"
  47694. msgstr ""
  47695. #. type: cindex
  47696. #: guix-git/doc/guix.texi:31456
  47697. #, no-wrap
  47698. msgid "domain name system (DNS)"
  47699. msgstr ""
  47700. #. type: Plain text
  47701. #: guix-git/doc/guix.texi:31464
  47702. 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}."
  47703. msgstr ""
  47704. #. type: subsubheading
  47705. #: guix-git/doc/guix.texi:31465
  47706. #, no-wrap
  47707. msgid "Knot Service"
  47708. msgstr ""
  47709. #. type: Plain text
  47710. #: guix-git/doc/guix.texi:31469
  47711. msgid "An example configuration of an authoritative server for two zones, one master and one slave, is:"
  47712. msgstr ""
  47713. #. type: lisp
  47714. #: guix-git/doc/guix.texi:31476
  47715. #, no-wrap
  47716. msgid ""
  47717. "(define-zone-entries example.org.zone\n"
  47718. ";; Name TTL Class Type Data\n"
  47719. " (\"@@\" \"\" \"IN\" \"A\" \"127.0.0.1\")\n"
  47720. " (\"@@\" \"\" \"IN\" \"NS\" \"ns\")\n"
  47721. " (\"ns\" \"\" \"IN\" \"A\" \"127.0.0.1\"))\n"
  47722. "\n"
  47723. msgstr ""
  47724. #. type: lisp
  47725. #: guix-git/doc/guix.texi:31483
  47726. #, no-wrap
  47727. msgid ""
  47728. "(define master-zone\n"
  47729. " (knot-zone-configuration\n"
  47730. " (domain \"example.org\")\n"
  47731. " (zone (zone-file\n"
  47732. " (origin \"example.org\")\n"
  47733. " (entries example.org.zone)))))\n"
  47734. "\n"
  47735. msgstr ""
  47736. #. type: lisp
  47737. #: guix-git/doc/guix.texi:31489
  47738. #, no-wrap
  47739. msgid ""
  47740. "(define slave-zone\n"
  47741. " (knot-zone-configuration\n"
  47742. " (domain \"plop.org\")\n"
  47743. " (dnssec-policy \"default\")\n"
  47744. " (master (list \"plop-master\"))))\n"
  47745. "\n"
  47746. msgstr ""
  47747. #. type: lisp
  47748. #: guix-git/doc/guix.texi:31494
  47749. #, no-wrap
  47750. msgid ""
  47751. "(define plop-master\n"
  47752. " (knot-remote-configuration\n"
  47753. " (id \"plop-master\")\n"
  47754. " (address (list \"208.76.58.171\"))))\n"
  47755. "\n"
  47756. msgstr ""
  47757. #. type: lisp
  47758. #: guix-git/doc/guix.texi:31503
  47759. #, no-wrap
  47760. msgid ""
  47761. "(operating-system\n"
  47762. " ;; ...\n"
  47763. " (services (cons* (service knot-service-type\n"
  47764. " (knot-configuration\n"
  47765. " (remotes (list plop-master))\n"
  47766. " (zones (list master-zone slave-zone))))\n"
  47767. " ;; ...\n"
  47768. " %base-services)))\n"
  47769. msgstr ""
  47770. #. type: defvar
  47771. #: guix-git/doc/guix.texi:31505
  47772. #, fuzzy, no-wrap
  47773. msgid "knot-service-type"
  47774. msgstr "邮件服务"
  47775. #. type: defvar
  47776. #: guix-git/doc/guix.texi:31507
  47777. msgid "This is the type for the Knot DNS server."
  47778. msgstr ""
  47779. #. type: defvar
  47780. #: guix-git/doc/guix.texi:31515
  47781. 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."
  47782. msgstr ""
  47783. #. type: defvar
  47784. #: guix-git/doc/guix.texi:31517
  47785. msgid "The following data types are used to configure the Knot DNS server:"
  47786. msgstr ""
  47787. #. type: deftp
  47788. #: guix-git/doc/guix.texi:31519
  47789. #, no-wrap
  47790. msgid "{Data Type} knot-key-configuration"
  47791. msgstr ""
  47792. #. type: deftp
  47793. #: guix-git/doc/guix.texi:31522
  47794. msgid "Data type representing a key. This type has the following parameters:"
  47795. msgstr ""
  47796. #. type: item
  47797. #: guix-git/doc/guix.texi:31524 guix-git/doc/guix.texi:31544
  47798. #: guix-git/doc/guix.texi:31659 guix-git/doc/guix.texi:31685
  47799. #: guix-git/doc/guix.texi:31720
  47800. #, no-wrap
  47801. msgid "@code{id} (default: @code{\"\"})"
  47802. msgstr ""
  47803. #. type: table
  47804. #: guix-git/doc/guix.texi:31527 guix-git/doc/guix.texi:31547
  47805. msgid "An identifier for other configuration fields to refer to this key. IDs must be unique and must not be empty."
  47806. msgstr ""
  47807. #. type: item
  47808. #: guix-git/doc/guix.texi:31528
  47809. #, no-wrap
  47810. msgid "@code{algorithm} (default: @code{#f})"
  47811. msgstr ""
  47812. #. type: table
  47813. #: guix-git/doc/guix.texi:31532
  47814. 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}."
  47815. msgstr ""
  47816. #. type: item
  47817. #: guix-git/doc/guix.texi:31533
  47818. #, no-wrap
  47819. msgid "@code{secret} (default: @code{\"\"})"
  47820. msgstr ""
  47821. #. type: table
  47822. #: guix-git/doc/guix.texi:31535
  47823. msgid "The secret key itself."
  47824. msgstr ""
  47825. #. type: deftp
  47826. #: guix-git/doc/guix.texi:31539
  47827. #, no-wrap
  47828. msgid "{Data Type} knot-acl-configuration"
  47829. msgstr ""
  47830. #. type: deftp
  47831. #: guix-git/doc/guix.texi:31542
  47832. msgid "Data type representing an Access Control List (ACL) configuration. This type has the following parameters:"
  47833. msgstr ""
  47834. #. type: item
  47835. #: guix-git/doc/guix.texi:31548 guix-git/doc/guix.texi:31663
  47836. #, no-wrap
  47837. msgid "@code{address} (default: @code{'()})"
  47838. msgstr ""
  47839. #. type: table
  47840. #: guix-git/doc/guix.texi:31552
  47841. 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."
  47842. msgstr ""
  47843. #. type: item
  47844. #: guix-git/doc/guix.texi:31553
  47845. #, no-wrap
  47846. msgid "@code{key} (default: @code{'()})"
  47847. msgstr ""
  47848. #. type: table
  47849. #: guix-git/doc/guix.texi:31557
  47850. 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."
  47851. msgstr ""
  47852. #. type: item
  47853. #: guix-git/doc/guix.texi:31558
  47854. #, no-wrap
  47855. msgid "@code{action} (default: @code{'()})"
  47856. msgstr ""
  47857. #. type: table
  47858. #: guix-git/doc/guix.texi:31562
  47859. 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}."
  47860. msgstr ""
  47861. #. type: item
  47862. #: guix-git/doc/guix.texi:31563
  47863. #, no-wrap
  47864. msgid "@code{deny?} (default: @code{#f})"
  47865. msgstr ""
  47866. #. type: table
  47867. #: guix-git/doc/guix.texi:31566
  47868. msgid "When true, the ACL defines restrictions. Listed actions are forbidden. When false, listed actions are allowed."
  47869. msgstr ""
  47870. #. type: deftp
  47871. #: guix-git/doc/guix.texi:31570
  47872. #, no-wrap
  47873. msgid "{Data Type} zone-entry"
  47874. msgstr ""
  47875. #. type: deftp
  47876. #: guix-git/doc/guix.texi:31573
  47877. msgid "Data type representing a record entry in a zone file. This type has the following parameters:"
  47878. msgstr ""
  47879. #. type: item
  47880. #: guix-git/doc/guix.texi:31575
  47881. #, no-wrap
  47882. msgid "@code{name} (default: @code{\"@@\"})"
  47883. msgstr ""
  47884. #. type: table
  47885. #: guix-git/doc/guix.texi:31581
  47886. 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}."
  47887. msgstr ""
  47888. #. type: item
  47889. #: guix-git/doc/guix.texi:31582
  47890. #, no-wrap
  47891. msgid "@code{ttl} (default: @code{\"\"})"
  47892. msgstr ""
  47893. #. type: table
  47894. #: guix-git/doc/guix.texi:31584
  47895. msgid "The Time-To-Live (TTL) of this record. If not set, the default TTL is used."
  47896. msgstr ""
  47897. #. type: item
  47898. #: guix-git/doc/guix.texi:31585
  47899. #, no-wrap
  47900. msgid "@code{class} (default: @code{\"IN\"})"
  47901. msgstr ""
  47902. #. type: table
  47903. #: guix-git/doc/guix.texi:31588
  47904. msgid "The class of the record. Knot currently supports only @code{\"IN\"} and partially @code{\"CH\"}."
  47905. msgstr ""
  47906. #. type: item
  47907. #: guix-git/doc/guix.texi:31589
  47908. #, no-wrap
  47909. msgid "@code{type} (default: @code{\"A\"})"
  47910. msgstr ""
  47911. #. type: table
  47912. #: guix-git/doc/guix.texi:31593
  47913. 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."
  47914. msgstr ""
  47915. #. type: item
  47916. #: guix-git/doc/guix.texi:31594
  47917. #, no-wrap
  47918. msgid "@code{data} (default: @code{\"\"})"
  47919. msgstr ""
  47920. #. type: table
  47921. #: guix-git/doc/guix.texi:31598
  47922. 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."
  47923. msgstr ""
  47924. #. type: deftp
  47925. #: guix-git/doc/guix.texi:31602
  47926. #, no-wrap
  47927. msgid "{Data Type} zone-file"
  47928. msgstr ""
  47929. #. type: deftp
  47930. #: guix-git/doc/guix.texi:31605
  47931. msgid "Data type representing the content of a zone file. This type has the following parameters:"
  47932. msgstr ""
  47933. #. type: table
  47934. #: guix-git/doc/guix.texi:31614
  47935. 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}."
  47936. msgstr ""
  47937. #. type: item
  47938. #: guix-git/doc/guix.texi:31615
  47939. #, no-wrap
  47940. msgid "@code{origin} (default: @code{\"\"})"
  47941. msgstr ""
  47942. #. type: table
  47943. #: guix-git/doc/guix.texi:31617
  47944. msgid "The name of your zone. This parameter cannot be empty."
  47945. msgstr ""
  47946. #. type: item
  47947. #: guix-git/doc/guix.texi:31618
  47948. #, no-wrap
  47949. msgid "@code{ns} (default: @code{\"ns\"})"
  47950. msgstr ""
  47951. #. type: table
  47952. #: guix-git/doc/guix.texi:31623
  47953. 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."
  47954. msgstr ""
  47955. #. type: item
  47956. #: guix-git/doc/guix.texi:31624
  47957. #, no-wrap
  47958. msgid "@code{mail} (default: @code{\"hostmaster\"})"
  47959. msgstr ""
  47960. #. type: table
  47961. #: guix-git/doc/guix.texi:31627
  47962. msgid "An email address people can contact you at, as the owner of the zone. This is translated as @code{<mail>@@<origin>}."
  47963. msgstr ""
  47964. #. type: item
  47965. #: guix-git/doc/guix.texi:31628
  47966. #, no-wrap
  47967. msgid "@code{serial} (default: @code{1})"
  47968. msgstr ""
  47969. #. type: table
  47970. #: guix-git/doc/guix.texi:31632
  47971. 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."
  47972. msgstr ""
  47973. #. type: item
  47974. #: guix-git/doc/guix.texi:31633
  47975. #, no-wrap
  47976. msgid "@code{refresh} (default: @code{(* 2 24 3600)})"
  47977. msgstr ""
  47978. #. type: table
  47979. #: guix-git/doc/guix.texi:31637
  47980. 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)}."
  47981. msgstr ""
  47982. #. type: item
  47983. #: guix-git/doc/guix.texi:31638
  47984. #, no-wrap
  47985. msgid "@code{retry} (default: @code{(* 15 60)})"
  47986. msgstr ""
  47987. #. type: table
  47988. #: guix-git/doc/guix.texi:31641
  47989. msgid "The period after which a slave will retry to contact its master when it fails to do so a first time."
  47990. msgstr ""
  47991. #. type: item
  47992. #: guix-git/doc/guix.texi:31642
  47993. #, no-wrap
  47994. msgid "@code{expiry} (default: @code{(* 14 24 3600)})"
  47995. msgstr ""
  47996. #. type: table
  47997. #: guix-git/doc/guix.texi:31646
  47998. 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."
  47999. msgstr ""
  48000. #. type: item
  48001. #: guix-git/doc/guix.texi:31647
  48002. #, no-wrap
  48003. msgid "@code{nx} (default: @code{3600})"
  48004. msgstr ""
  48005. #. type: table
  48006. #: guix-git/doc/guix.texi:31650
  48007. msgid "Default TTL of inexistent records. This delay is usually short because you want your new domains to reach everyone quickly."
  48008. msgstr ""
  48009. #. type: deftp
  48010. #: guix-git/doc/guix.texi:31654
  48011. #, no-wrap
  48012. msgid "{Data Type} knot-remote-configuration"
  48013. msgstr ""
  48014. #. type: deftp
  48015. #: guix-git/doc/guix.texi:31657
  48016. msgid "Data type representing a remote configuration. This type has the following parameters:"
  48017. msgstr ""
  48018. #. type: table
  48019. #: guix-git/doc/guix.texi:31662
  48020. msgid "An identifier for other configuration fields to refer to this remote. IDs must be unique and must not be empty."
  48021. msgstr ""
  48022. #. type: table
  48023. #: guix-git/doc/guix.texi:31667
  48024. 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."
  48025. msgstr ""
  48026. #. type: item
  48027. #: guix-git/doc/guix.texi:31668
  48028. #, no-wrap
  48029. msgid "@code{via} (default: @code{'()})"
  48030. msgstr ""
  48031. #. type: table
  48032. #: guix-git/doc/guix.texi:31672
  48033. 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."
  48034. msgstr ""
  48035. #. type: table
  48036. #: guix-git/doc/guix.texi:31676
  48037. msgid "A reference to a key, that is a string containing the identifier of a key defined in a @code{knot-key-configuration} field."
  48038. msgstr ""
  48039. #. type: deftp
  48040. #: guix-git/doc/guix.texi:31680
  48041. #, no-wrap
  48042. msgid "{Data Type} knot-keystore-configuration"
  48043. msgstr ""
  48044. #. type: deftp
  48045. #: guix-git/doc/guix.texi:31683
  48046. msgid "Data type representing a keystore to hold dnssec keys. This type has the following parameters:"
  48047. msgstr ""
  48048. #. type: table
  48049. #: guix-git/doc/guix.texi:31687
  48050. msgid "The id of the keystore. It must not be empty."
  48051. msgstr ""
  48052. #. type: item
  48053. #: guix-git/doc/guix.texi:31688
  48054. #, no-wrap
  48055. msgid "@code{backend} (default: @code{'pem})"
  48056. msgstr ""
  48057. #. type: table
  48058. #: guix-git/doc/guix.texi:31690
  48059. msgid "The backend to store the keys in. Can be @code{'pem} or @code{'pkcs11}."
  48060. msgstr ""
  48061. #. type: item
  48062. #: guix-git/doc/guix.texi:31691
  48063. #, no-wrap
  48064. msgid "@code{config} (default: @code{\"/var/lib/knot/keys/keys\"})"
  48065. msgstr ""
  48066. #. type: table
  48067. #: guix-git/doc/guix.texi:31695
  48068. 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."
  48069. msgstr ""
  48070. #. type: deftp
  48071. #: guix-git/doc/guix.texi:31699
  48072. #, no-wrap
  48073. msgid "{Data Type} knot-policy-configuration"
  48074. msgstr ""
  48075. #. type: deftp
  48076. #: guix-git/doc/guix.texi:31703
  48077. 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."
  48078. msgstr ""
  48079. #. type: deftp
  48080. #: guix-git/doc/guix.texi:31710
  48081. 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."
  48082. msgstr ""
  48083. #. type: deftp
  48084. #: guix-git/doc/guix.texi:31716
  48085. 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."
  48086. msgstr ""
  48087. #. type: deftp
  48088. #: guix-git/doc/guix.texi:31718
  48089. msgid "This type has the following parameters:"
  48090. msgstr ""
  48091. #. type: table
  48092. #: guix-git/doc/guix.texi:31722
  48093. msgid "The id of the policy. It must not be empty."
  48094. msgstr ""
  48095. #. type: item
  48096. #: guix-git/doc/guix.texi:31723
  48097. #, no-wrap
  48098. msgid "@code{keystore} (default: @code{\"default\"})"
  48099. msgstr ""
  48100. #. type: table
  48101. #: guix-git/doc/guix.texi:31728
  48102. 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)."
  48103. msgstr ""
  48104. #. type: item
  48105. #: guix-git/doc/guix.texi:31729
  48106. #, no-wrap
  48107. msgid "@code{manual?} (default: @code{#f})"
  48108. msgstr ""
  48109. #. type: table
  48110. #: guix-git/doc/guix.texi:31731
  48111. msgid "Whether the key management is manual or automatic."
  48112. msgstr ""
  48113. #. type: item
  48114. #: guix-git/doc/guix.texi:31732
  48115. #, no-wrap
  48116. msgid "@code{single-type-signing?} (default: @code{#f})"
  48117. msgstr ""
  48118. #. type: table
  48119. #: guix-git/doc/guix.texi:31734
  48120. msgid "When @code{#t}, use the Single-Type Signing Scheme."
  48121. msgstr ""
  48122. #. type: item
  48123. #: guix-git/doc/guix.texi:31735
  48124. #, no-wrap
  48125. msgid "@code{algorithm} (default: @code{\"ecdsap256sha256\"})"
  48126. msgstr ""
  48127. #. type: table
  48128. #: guix-git/doc/guix.texi:31737
  48129. msgid "An algorithm of signing keys and issued signatures."
  48130. msgstr ""
  48131. #. type: item
  48132. #: guix-git/doc/guix.texi:31738
  48133. #, no-wrap
  48134. msgid "@code{ksk-size} (default: @code{256})"
  48135. msgstr ""
  48136. #. type: table
  48137. #: guix-git/doc/guix.texi:31741
  48138. msgid "The length of the KSK@. Note that this value is correct for the default algorithm, but would be unsecure for other algorithms."
  48139. msgstr ""
  48140. #. type: item
  48141. #: guix-git/doc/guix.texi:31742
  48142. #, no-wrap
  48143. msgid "@code{zsk-size} (default: @code{256})"
  48144. msgstr ""
  48145. #. type: table
  48146. #: guix-git/doc/guix.texi:31745
  48147. msgid "The length of the ZSK@. Note that this value is correct for the default algorithm, but would be unsecure for other algorithms."
  48148. msgstr ""
  48149. #. type: item
  48150. #: guix-git/doc/guix.texi:31746
  48151. #, no-wrap
  48152. msgid "@code{dnskey-ttl} (default: @code{'default})"
  48153. msgstr ""
  48154. #. type: table
  48155. #: guix-git/doc/guix.texi:31749
  48156. msgid "The TTL value for DNSKEY records added into zone apex. The special @code{'default} value means same as the zone SOA TTL."
  48157. msgstr ""
  48158. #. type: item
  48159. #: guix-git/doc/guix.texi:31750
  48160. #, no-wrap
  48161. msgid "@code{zsk-lifetime} (default: @code{(* 30 24 3600)})"
  48162. msgstr ""
  48163. #. type: table
  48164. #: guix-git/doc/guix.texi:31752
  48165. msgid "The period between ZSK publication and the next rollover initiation."
  48166. msgstr ""
  48167. #. type: item
  48168. #: guix-git/doc/guix.texi:31753
  48169. #, no-wrap
  48170. msgid "@code{propagation-delay} (default: @code{(* 24 3600)})"
  48171. msgstr ""
  48172. #. type: table
  48173. #: guix-git/doc/guix.texi:31756
  48174. 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."
  48175. msgstr ""
  48176. #. type: item
  48177. #: guix-git/doc/guix.texi:31757
  48178. #, no-wrap
  48179. msgid "@code{rrsig-lifetime} (default: @code{(* 14 24 3600)})"
  48180. msgstr ""
  48181. #. type: table
  48182. #: guix-git/doc/guix.texi:31759
  48183. msgid "A validity period of newly issued signatures."
  48184. msgstr ""
  48185. #. type: item
  48186. #: guix-git/doc/guix.texi:31760
  48187. #, no-wrap
  48188. msgid "@code{rrsig-refresh} (default: @code{(* 7 24 3600)})"
  48189. msgstr ""
  48190. #. type: table
  48191. #: guix-git/doc/guix.texi:31762
  48192. msgid "A period how long before a signature expiration the signature will be refreshed."
  48193. msgstr ""
  48194. #. type: item
  48195. #: guix-git/doc/guix.texi:31763
  48196. #, no-wrap
  48197. msgid "@code{nsec3?} (default: @code{#f})"
  48198. msgstr ""
  48199. #. type: table
  48200. #: guix-git/doc/guix.texi:31765
  48201. msgid "When @code{#t}, NSEC3 will be used instead of NSEC."
  48202. msgstr ""
  48203. #. type: item
  48204. #: guix-git/doc/guix.texi:31766
  48205. #, no-wrap
  48206. msgid "@code{nsec3-iterations} (default: @code{5})"
  48207. msgstr ""
  48208. #. type: table
  48209. #: guix-git/doc/guix.texi:31768
  48210. msgid "The number of additional times the hashing is performed."
  48211. msgstr ""
  48212. #. type: item
  48213. #: guix-git/doc/guix.texi:31769
  48214. #, no-wrap
  48215. msgid "@code{nsec3-salt-length} (default: @code{8})"
  48216. msgstr ""
  48217. #. type: table
  48218. #: guix-git/doc/guix.texi:31772
  48219. msgid "The length of a salt field in octets, which is appended to the original owner name before hashing."
  48220. msgstr ""
  48221. #. type: item
  48222. #: guix-git/doc/guix.texi:31773
  48223. #, no-wrap
  48224. msgid "@code{nsec3-salt-lifetime} (default: @code{(* 30 24 3600)})"
  48225. msgstr ""
  48226. #. type: table
  48227. #: guix-git/doc/guix.texi:31775
  48228. msgid "The validity period of newly issued salt field."
  48229. msgstr ""
  48230. #. type: deftp
  48231. #: guix-git/doc/guix.texi:31779
  48232. #, no-wrap
  48233. msgid "{Data Type} knot-zone-configuration"
  48234. msgstr ""
  48235. #. type: deftp
  48236. #: guix-git/doc/guix.texi:31782
  48237. msgid "Data type representing a zone served by Knot. This type has the following parameters:"
  48238. msgstr ""
  48239. #. type: item
  48240. #: guix-git/doc/guix.texi:31784
  48241. #, no-wrap
  48242. msgid "@code{domain} (default: @code{\"\"})"
  48243. msgstr ""
  48244. #. type: table
  48245. #: guix-git/doc/guix.texi:31786
  48246. msgid "The domain served by this configuration. It must not be empty."
  48247. msgstr ""
  48248. #. type: item
  48249. #: guix-git/doc/guix.texi:31787
  48250. #, no-wrap
  48251. msgid "@code{file} (default: @code{\"\"})"
  48252. msgstr ""
  48253. #. type: table
  48254. #: guix-git/doc/guix.texi:31790
  48255. 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."
  48256. msgstr ""
  48257. #. type: item
  48258. #: guix-git/doc/guix.texi:31791
  48259. #, no-wrap
  48260. msgid "@code{zone} (default: @code{(zone-file)})"
  48261. msgstr ""
  48262. #. type: table
  48263. #: guix-git/doc/guix.texi:31794
  48264. msgid "The content of the zone file. This parameter is ignored by slave zones. It must contain a zone-file record."
  48265. msgstr ""
  48266. #. type: item
  48267. #: guix-git/doc/guix.texi:31795
  48268. #, no-wrap
  48269. msgid "@code{master} (default: @code{'()})"
  48270. msgstr ""
  48271. #. type: table
  48272. #: guix-git/doc/guix.texi:31798
  48273. 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."
  48274. msgstr ""
  48275. #. type: item
  48276. #: guix-git/doc/guix.texi:31799
  48277. #, no-wrap
  48278. msgid "@code{ddns-master} (default: @code{#f})"
  48279. msgstr ""
  48280. #. type: table
  48281. #: guix-git/doc/guix.texi:31802
  48282. msgid "The main master. When empty, it defaults to the first master in the list of masters."
  48283. msgstr ""
  48284. #. type: item
  48285. #: guix-git/doc/guix.texi:31803
  48286. #, no-wrap
  48287. msgid "@code{notify} (default: @code{'()})"
  48288. msgstr ""
  48289. #. type: table
  48290. #: guix-git/doc/guix.texi:31805
  48291. msgid "A list of slave remote identifiers."
  48292. msgstr ""
  48293. #. type: item
  48294. #: guix-git/doc/guix.texi:31806
  48295. #, no-wrap
  48296. msgid "@code{acl} (default: @code{'()})"
  48297. msgstr ""
  48298. #. type: table
  48299. #: guix-git/doc/guix.texi:31808
  48300. msgid "A list of acl identifiers."
  48301. msgstr ""
  48302. #. type: item
  48303. #: guix-git/doc/guix.texi:31809
  48304. #, no-wrap
  48305. msgid "@code{semantic-checks?} (default: @code{#f})"
  48306. msgstr ""
  48307. #. type: table
  48308. #: guix-git/doc/guix.texi:31811
  48309. msgid "When set, this adds more semantic checks to the zone."
  48310. msgstr ""
  48311. #. type: item
  48312. #: guix-git/doc/guix.texi:31812
  48313. #, no-wrap
  48314. msgid "@code{zonefile-sync} (default: @code{0})"
  48315. msgstr ""
  48316. #. type: table
  48317. #: guix-git/doc/guix.texi:31815
  48318. msgid "The delay between a modification in memory and on disk. 0 means immediate synchronization."
  48319. msgstr ""
  48320. #. type: item
  48321. #: guix-git/doc/guix.texi:31816
  48322. #, no-wrap
  48323. msgid "@code{zonefile-load} (default: @code{#f})"
  48324. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  48325. #. type: table
  48326. #: guix-git/doc/guix.texi:31819
  48327. msgid "The way the zone file contents are applied during zone load. Possible values are:"
  48328. msgstr ""
  48329. #. type: item
  48330. #: guix-git/doc/guix.texi:31821
  48331. #, no-wrap
  48332. msgid "@code{#f} for using the default value from Knot,"
  48333. msgstr ""
  48334. #. type: item
  48335. #: guix-git/doc/guix.texi:31822
  48336. #, no-wrap
  48337. msgid "@code{'none} for not using the zone file at all,"
  48338. msgstr ""
  48339. #. type: item
  48340. #: guix-git/doc/guix.texi:31823
  48341. #, no-wrap
  48342. msgid "@code{'difference} for computing the difference between already available"
  48343. msgstr ""
  48344. #. type: itemize
  48345. #: guix-git/doc/guix.texi:31825
  48346. msgid "contents and zone contents and applying it to the current zone contents,"
  48347. msgstr ""
  48348. #. type: item
  48349. #: guix-git/doc/guix.texi:31825
  48350. #, no-wrap
  48351. msgid "@code{'difference-no-serial} for the same as @code{'difference}, but"
  48352. msgstr ""
  48353. #. type: itemize
  48354. #: guix-git/doc/guix.texi:31828
  48355. msgid "ignoring the SOA serial in the zone file, while the server takes care of it automatically."
  48356. msgstr ""
  48357. #. type: item
  48358. #: guix-git/doc/guix.texi:31828
  48359. #, no-wrap
  48360. msgid "@code{'whole} for loading zone contents from the zone file."
  48361. msgstr ""
  48362. #. type: item
  48363. #: guix-git/doc/guix.texi:31831
  48364. #, no-wrap
  48365. msgid "@code{journal-content} (default: @code{#f})"
  48366. msgstr "@code{journal-content}(默认值:@code{#f})"
  48367. #. type: table
  48368. #: guix-git/doc/guix.texi:31836
  48369. 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."
  48370. msgstr ""
  48371. #. type: item
  48372. #: guix-git/doc/guix.texi:31837
  48373. #, no-wrap
  48374. msgid "@code{max-journal-usage} (default: @code{#f})"
  48375. msgstr "@code{max-journal-usage}(默认值:@code{#f})"
  48376. #. type: table
  48377. #: guix-git/doc/guix.texi:31840
  48378. msgid "The maximum size for the journal on disk. @code{#f} does not set this option, so the default value from Knot is used."
  48379. msgstr ""
  48380. #. type: item
  48381. #: guix-git/doc/guix.texi:31841
  48382. #, no-wrap
  48383. msgid "@code{max-journal-depth} (default: @code{#f})"
  48384. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  48385. #. type: table
  48386. #: guix-git/doc/guix.texi:31844
  48387. msgid "The maximum size of the history. @code{#f} does not set this option, so the default value from Knot is used."
  48388. msgstr ""
  48389. #. type: item
  48390. #: guix-git/doc/guix.texi:31845
  48391. #, no-wrap
  48392. msgid "@code{max-zone-size} (default: @code{#f})"
  48393. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  48394. #. type: table
  48395. #: guix-git/doc/guix.texi:31849
  48396. 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."
  48397. msgstr ""
  48398. #. type: item
  48399. #: guix-git/doc/guix.texi:31850
  48400. #, no-wrap
  48401. msgid "@code{dnssec-policy} (default: @code{#f})"
  48402. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  48403. #. type: table
  48404. #: guix-git/doc/guix.texi:31854
  48405. 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."
  48406. msgstr ""
  48407. #. type: item
  48408. #: guix-git/doc/guix.texi:31855
  48409. #, no-wrap
  48410. msgid "@code{serial-policy} (default: @code{'increment})"
  48411. msgstr ""
  48412. #. type: table
  48413. #: guix-git/doc/guix.texi:31857
  48414. msgid "A policy between @code{'increment} and @code{'unixtime}."
  48415. msgstr ""
  48416. #. type: deftp
  48417. #: guix-git/doc/guix.texi:31861
  48418. #, no-wrap
  48419. msgid "{Data Type} knot-configuration"
  48420. msgstr ""
  48421. #. type: deftp
  48422. #: guix-git/doc/guix.texi:31864
  48423. msgid "Data type representing the Knot configuration. This type has the following parameters:"
  48424. msgstr ""
  48425. #. type: item
  48426. #: guix-git/doc/guix.texi:31866
  48427. #, no-wrap
  48428. msgid "@code{knot} (default: @code{knot})"
  48429. msgstr ""
  48430. #. type: table
  48431. #: guix-git/doc/guix.texi:31868
  48432. msgid "The Knot package."
  48433. msgstr ""
  48434. #. type: item
  48435. #: guix-git/doc/guix.texi:31869
  48436. #, no-wrap
  48437. msgid "@code{run-directory} (default: @code{\"/var/run/knot\"})"
  48438. msgstr ""
  48439. #. type: table
  48440. #: guix-git/doc/guix.texi:31871
  48441. msgid "The run directory. This directory will be used for pid file and sockets."
  48442. msgstr ""
  48443. #. type: item
  48444. #: guix-git/doc/guix.texi:31872
  48445. #, no-wrap
  48446. msgid "@code{includes} (default: @code{'()})"
  48447. msgstr "@code{includes}(默认值:@code{'()})"
  48448. #. type: table
  48449. #: guix-git/doc/guix.texi:31875
  48450. msgid "A list of strings or file-like objects denoting other files that must be included at the top of the configuration file."
  48451. msgstr ""
  48452. #. type: cindex
  48453. #: guix-git/doc/guix.texi:31876
  48454. #, no-wrap
  48455. msgid "secrets, Knot service"
  48456. msgstr "秘密,Knot服务。"
  48457. #. type: table
  48458. #: guix-git/doc/guix.texi:31882
  48459. 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."
  48460. msgstr ""
  48461. #. type: table
  48462. #: guix-git/doc/guix.texi:31887
  48463. 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:"
  48464. msgstr ""
  48465. #. type: example
  48466. #: guix-git/doc/guix.texi:31891
  48467. #, no-wrap
  48468. msgid ""
  48469. "keymgr -t mysecret > /etc/knot/secrets.conf\n"
  48470. "chmod 600 /etc/knot/secrets.conf\n"
  48471. msgstr ""
  48472. #. type: table
  48473. #: guix-git/doc/guix.texi:31897
  48474. 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."
  48475. msgstr ""
  48476. #. type: table
  48477. #: guix-git/doc/guix.texi:31899
  48478. msgid "It can also be used to add configuration not supported by this interface."
  48479. msgstr ""
  48480. #. type: item
  48481. #: guix-git/doc/guix.texi:31900
  48482. #, no-wrap
  48483. msgid "@code{listen-v4} (default: @code{\"0.0.0.0\"})"
  48484. msgstr ""
  48485. #. type: table
  48486. #: guix-git/doc/guix.texi:31902 guix-git/doc/guix.texi:31905
  48487. msgid "An ip address on which to listen."
  48488. msgstr ""
  48489. #. type: item
  48490. #: guix-git/doc/guix.texi:31903
  48491. #, no-wrap
  48492. msgid "@code{listen-v6} (default: @code{\"::\"})"
  48493. msgstr ""
  48494. #. type: item
  48495. #: guix-git/doc/guix.texi:31906
  48496. #, no-wrap
  48497. msgid "@code{listen-port} (default: @code{53})"
  48498. msgstr ""
  48499. #. type: table
  48500. #: guix-git/doc/guix.texi:31908
  48501. msgid "A port on which to listen."
  48502. msgstr ""
  48503. #. type: item
  48504. #: guix-git/doc/guix.texi:31909
  48505. #, no-wrap
  48506. msgid "@code{keys} (default: @code{'()})"
  48507. msgstr ""
  48508. #. type: table
  48509. #: guix-git/doc/guix.texi:31911
  48510. msgid "The list of knot-key-configuration used by this configuration."
  48511. msgstr ""
  48512. #. type: item
  48513. #: guix-git/doc/guix.texi:31912
  48514. #, no-wrap
  48515. msgid "@code{acls} (default: @code{'()})"
  48516. msgstr ""
  48517. #. type: table
  48518. #: guix-git/doc/guix.texi:31914
  48519. msgid "The list of knot-acl-configuration used by this configuration."
  48520. msgstr ""
  48521. #. type: item
  48522. #: guix-git/doc/guix.texi:31915
  48523. #, no-wrap
  48524. msgid "@code{remotes} (default: @code{'()})"
  48525. msgstr ""
  48526. #. type: table
  48527. #: guix-git/doc/guix.texi:31917
  48528. msgid "The list of knot-remote-configuration used by this configuration."
  48529. msgstr ""
  48530. #. type: item
  48531. #: guix-git/doc/guix.texi:31918
  48532. #, no-wrap
  48533. msgid "@code{zones} (default: @code{'()})"
  48534. msgstr ""
  48535. #. type: table
  48536. #: guix-git/doc/guix.texi:31920
  48537. msgid "The list of knot-zone-configuration used by this configuration."
  48538. msgstr ""
  48539. #. type: subsubheading
  48540. #: guix-git/doc/guix.texi:31924
  48541. #, fuzzy, no-wrap
  48542. msgid "Knot Resolver Service"
  48543. msgstr "Kerberos服务"
  48544. #. type: defvar
  48545. #: guix-git/doc/guix.texi:31926
  48546. #, fuzzy, no-wrap
  48547. msgid "knot-resolver-service-type"
  48548. msgstr "邮件服务"
  48549. #. type: defvar
  48550. #: guix-git/doc/guix.texi:31929
  48551. msgid "This is the type of the knot resolver service, whose value should be a @code{knot-resolver-configuration} object as in this example:"
  48552. msgstr ""
  48553. #. type: lisp
  48554. #: guix-git/doc/guix.texi:31939
  48555. #, no-wrap
  48556. msgid ""
  48557. "(service knot-resolver-service-type\n"
  48558. " (knot-resolver-configuration\n"
  48559. " (kresd-config-file (plain-file \"kresd.conf\" \"\n"
  48560. "net.listen('192.168.0.1', 5353)\n"
  48561. "user('knot-resolver', 'knot-resolver')\n"
  48562. "modules = @{ 'hints > iterate', 'stats', 'predict' @}\n"
  48563. "cache.size = 100 * MB\n"
  48564. "\"))))\n"
  48565. msgstr ""
  48566. #. type: defvar
  48567. #: guix-git/doc/guix.texi:31942
  48568. msgid "For more information, refer its @url{https://knot-resolver.readthedocs.io/en/stable/config-overview.html, manual}."
  48569. msgstr ""
  48570. #. type: deftp
  48571. #: guix-git/doc/guix.texi:31944
  48572. #, no-wrap
  48573. msgid "{Data Type} knot-resolver-configuration"
  48574. msgstr ""
  48575. #. type: deftp
  48576. #: guix-git/doc/guix.texi:31946
  48577. #, fuzzy
  48578. msgid "Data type representing the configuration of knot-resolver."
  48579. msgstr "管理操作系统配置。"
  48580. #. type: item
  48581. #: guix-git/doc/guix.texi:31948
  48582. #, fuzzy, no-wrap
  48583. msgid "@code{package} (default: @var{knot-resolver})"
  48584. msgstr "@code{gnome}(默认值:@code{gnome})"
  48585. #. type: table
  48586. #: guix-git/doc/guix.texi:31950
  48587. msgid "Package object of the knot DNS resolver."
  48588. msgstr ""
  48589. #. type: item
  48590. #: guix-git/doc/guix.texi:31951
  48591. #, fuzzy, no-wrap
  48592. msgid "@code{kresd-config-file} (default: %kresd.conf)"
  48593. msgstr "@code{compression-level}(默认值:@code{3})"
  48594. #. type: table
  48595. #: guix-git/doc/guix.texi:31954
  48596. 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}."
  48597. msgstr ""
  48598. #. type: item
  48599. #: guix-git/doc/guix.texi:31955
  48600. #, fuzzy, no-wrap
  48601. msgid "@code{garbage-collection-interval} (default: 1000)"
  48602. msgstr "@code{parallel-builds}(默认值:@code{1})"
  48603. #. type: table
  48604. #: guix-git/doc/guix.texi:31957
  48605. msgid "Number of milliseconds for @code{kres-cache-gc} to periodically trim the cache."
  48606. msgstr ""
  48607. #. type: subsubheading
  48608. #: guix-git/doc/guix.texi:31962
  48609. #, no-wrap
  48610. msgid "Dnsmasq Service"
  48611. msgstr ""
  48612. #. type: defvar
  48613. #: guix-git/doc/guix.texi:31964
  48614. #, fuzzy, no-wrap
  48615. msgid "dnsmasq-service-type"
  48616. msgstr "邮件服务"
  48617. #. type: defvar
  48618. #: guix-git/doc/guix.texi:31967
  48619. msgid "This is the type of the dnsmasq service, whose value should be a @code{dnsmasq-configuration} object as in this example:"
  48620. msgstr ""
  48621. #. type: lisp
  48622. #: guix-git/doc/guix.texi:31973
  48623. #, no-wrap
  48624. msgid ""
  48625. "(service dnsmasq-service-type\n"
  48626. " (dnsmasq-configuration\n"
  48627. " (no-resolv? #t)\n"
  48628. " (servers '(\"192.168.1.1\"))))\n"
  48629. msgstr ""
  48630. #. type: deftp
  48631. #: guix-git/doc/guix.texi:31976
  48632. #, no-wrap
  48633. msgid "{Data Type} dnsmasq-configuration"
  48634. msgstr ""
  48635. #. type: deftp
  48636. #: guix-git/doc/guix.texi:31978
  48637. msgid "Data type representing the configuration of dnsmasq."
  48638. msgstr ""
  48639. #. type: item
  48640. #: guix-git/doc/guix.texi:31980
  48641. #, no-wrap
  48642. msgid "@code{package} (default: @var{dnsmasq})"
  48643. msgstr ""
  48644. #. type: table
  48645. #: guix-git/doc/guix.texi:31982
  48646. msgid "Package object of the dnsmasq server."
  48647. msgstr ""
  48648. #. type: item
  48649. #: guix-git/doc/guix.texi:31983
  48650. #, no-wrap
  48651. msgid "@code{no-hosts?} (default: @code{#f})"
  48652. msgstr ""
  48653. #. type: table
  48654. #: guix-git/doc/guix.texi:31985
  48655. msgid "When true, don't read the hostnames in /etc/hosts."
  48656. msgstr ""
  48657. #. type: item
  48658. #: guix-git/doc/guix.texi:31986
  48659. #, no-wrap
  48660. msgid "@code{port} (default: @code{53})"
  48661. msgstr ""
  48662. #. type: table
  48663. #: guix-git/doc/guix.texi:31989
  48664. msgid "The port to listen on. Setting this to zero completely disables DNS responses, leaving only DHCP and/or TFTP functions."
  48665. msgstr ""
  48666. #. type: item
  48667. #: guix-git/doc/guix.texi:31990
  48668. #, no-wrap
  48669. msgid "@code{local-service?} (default: @code{#t})"
  48670. msgstr ""
  48671. #. type: table
  48672. #: guix-git/doc/guix.texi:31993
  48673. 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."
  48674. msgstr ""
  48675. #. type: item
  48676. #: guix-git/doc/guix.texi:31994
  48677. #, no-wrap
  48678. msgid "@code{listen-addresses} (default: @code{'()})"
  48679. msgstr ""
  48680. #. type: table
  48681. #: guix-git/doc/guix.texi:31996
  48682. msgid "Listen on the given IP addresses."
  48683. msgstr ""
  48684. #. type: item
  48685. #: guix-git/doc/guix.texi:31997
  48686. #, no-wrap
  48687. msgid "@code{resolv-file} (default: @code{\"/etc/resolv.conf\"})"
  48688. msgstr ""
  48689. #. type: table
  48690. #: guix-git/doc/guix.texi:31999
  48691. msgid "The file to read the IP address of the upstream nameservers from."
  48692. msgstr ""
  48693. #. type: item
  48694. #: guix-git/doc/guix.texi:32000
  48695. #, no-wrap
  48696. msgid "@code{no-resolv?} (default: @code{#f})"
  48697. msgstr ""
  48698. #. type: table
  48699. #: guix-git/doc/guix.texi:32002
  48700. msgid "When true, don't read @var{resolv-file}."
  48701. msgstr ""
  48702. #. type: item
  48703. #: guix-git/doc/guix.texi:32003
  48704. #, fuzzy, no-wrap
  48705. msgid "@code{forward-private-reverse-lookup?} (default: @code{#t})"
  48706. msgstr "@code{challenge}(默认值:@code{#f})"
  48707. #. type: table
  48708. #: guix-git/doc/guix.texi:32006
  48709. msgid "When false, all reverse lookups for private IP ranges are answered with \"no such domain\" rather than being forwarded upstream."
  48710. msgstr ""
  48711. #. type: item
  48712. #: guix-git/doc/guix.texi:32007
  48713. #, fuzzy, no-wrap
  48714. msgid "@code{query-servers-in-order?} (default: @code{#f})"
  48715. msgstr "@code{speed}(默认值:@code{1.0})"
  48716. #. type: table
  48717. #: guix-git/doc/guix.texi:32010
  48718. msgid "When true, dnsmasq queries the servers in the same order as they appear in @var{servers}."
  48719. msgstr ""
  48720. #. type: item
  48721. #: guix-git/doc/guix.texi:32011
  48722. #, no-wrap
  48723. msgid "@code{servers} (default: @code{'()})"
  48724. msgstr ""
  48725. #. type: table
  48726. #: guix-git/doc/guix.texi:32013
  48727. msgid "Specify IP address of upstream servers directly."
  48728. msgstr ""
  48729. #. type: item
  48730. #: guix-git/doc/guix.texi:32014
  48731. #, fuzzy, no-wrap
  48732. msgid "@code{servers-file} (default: @code{#f})"
  48733. msgstr "@code{speed}(默认值:@code{1.0})"
  48734. #. type: table
  48735. #: guix-git/doc/guix.texi:32017
  48736. msgid "Specify file containing upstream servers. This file is re-read when dnsmasq receives SIGHUP. Could be either a string or a file-like object."
  48737. msgstr ""
  48738. #. type: item
  48739. #: guix-git/doc/guix.texi:32018
  48740. #, fuzzy, no-wrap
  48741. msgid "@code{addresses} (default: @code{'()})"
  48742. msgstr "@code{features} (@code{'()})"
  48743. #. type: table
  48744. #: guix-git/doc/guix.texi:32022
  48745. 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."
  48746. msgstr ""
  48747. #. type: table
  48748. #: guix-git/doc/guix.texi:32024
  48749. msgid "This is useful for redirecting hosts locally, for example:"
  48750. msgstr ""
  48751. #. type: lisp
  48752. #: guix-git/doc/guix.texi:32033
  48753. #, no-wrap
  48754. msgid ""
  48755. "(service dnsmasq-service-type\n"
  48756. " (dnsmasq-configuration\n"
  48757. " (addresses\n"
  48758. " '(; Redirect to a local web-server.\n"
  48759. " \"/example.org/127.0.0.1\"\n"
  48760. " ; Redirect subdomain to a specific IP.\n"
  48761. " \"/subdomain.example.org/192.168.1.42\"))))\n"
  48762. msgstr ""
  48763. #. type: table
  48764. #: guix-git/doc/guix.texi:32036
  48765. msgid "Note that rules in @file{/etc/hosts} take precedence over this."
  48766. msgstr ""
  48767. #. type: item
  48768. #: guix-git/doc/guix.texi:32037
  48769. #, no-wrap
  48770. msgid "@code{cache-size} (default: @code{150})"
  48771. msgstr ""
  48772. #. type: table
  48773. #: guix-git/doc/guix.texi:32040
  48774. msgid "Set the size of dnsmasq's cache. Setting the cache size to zero disables caching."
  48775. msgstr ""
  48776. #. type: item
  48777. #: guix-git/doc/guix.texi:32041
  48778. #, no-wrap
  48779. msgid "@code{negative-cache?} (default: @code{#t})"
  48780. msgstr ""
  48781. #. type: table
  48782. #: guix-git/doc/guix.texi:32043
  48783. msgid "When false, disable negative caching."
  48784. msgstr ""
  48785. #. type: item
  48786. #: guix-git/doc/guix.texi:32044
  48787. #, fuzzy, no-wrap
  48788. msgid "@code{cpe-id} (default: @code{#f})"
  48789. msgstr "@code{speed}(默认值:@code{1.0})"
  48790. #. type: table
  48791. #: guix-git/doc/guix.texi:32047
  48792. msgid "If set, add a CPE (Customer-Premises Equipment) identifier to DNS queries which are forwarded upstream."
  48793. msgstr ""
  48794. #. type: item
  48795. #: guix-git/doc/guix.texi:32048
  48796. #, fuzzy, no-wrap
  48797. msgid "@code{tftp-enable?} (default: @code{#f})"
  48798. msgstr "@code{challenge}(默认值:@code{#f})"
  48799. #. type: table
  48800. #: guix-git/doc/guix.texi:32050
  48801. msgid "Whether to enable the built-in TFTP server."
  48802. msgstr ""
  48803. #. type: item
  48804. #: guix-git/doc/guix.texi:32051
  48805. #, fuzzy, no-wrap
  48806. msgid "@code{tftp-no-fail?} (default: @code{#f})"
  48807. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  48808. #. type: table
  48809. #: guix-git/doc/guix.texi:32053
  48810. msgid "If true, does not fail dnsmasq if the TFTP server could not start up."
  48811. msgstr ""
  48812. #. type: item
  48813. #: guix-git/doc/guix.texi:32054
  48814. #, fuzzy, no-wrap
  48815. msgid "@code{tftp-single-port?} (default: @code{#f})"
  48816. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  48817. #. type: table
  48818. #: guix-git/doc/guix.texi:32056
  48819. msgid "Whether to use only one single port for TFTP."
  48820. msgstr ""
  48821. #. type: item
  48822. #: guix-git/doc/guix.texi:32057
  48823. #, fuzzy, no-wrap
  48824. msgid "@code{tftp-secure?} (default: @code{#f})"
  48825. msgstr "@code{xfce}(默认值:@code{xfce})"
  48826. #. type: table
  48827. #: guix-git/doc/guix.texi:32059
  48828. msgid "If true, only files owned by the user running the dnsmasq process are accessible."
  48829. msgstr ""
  48830. #. type: table
  48831. #: guix-git/doc/guix.texi:32063
  48832. 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."
  48833. msgstr ""
  48834. #. type: item
  48835. #: guix-git/doc/guix.texi:32064
  48836. #, fuzzy, no-wrap
  48837. msgid "@code{tftp-max} (default: @code{#f})"
  48838. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  48839. #. type: table
  48840. #: guix-git/doc/guix.texi:32066
  48841. msgid "If set, sets the maximal number of concurrent connections allowed."
  48842. msgstr ""
  48843. #. type: item
  48844. #: guix-git/doc/guix.texi:32067
  48845. #, fuzzy, no-wrap
  48846. msgid "@code{tftp-mtu} (default: @code{#f})"
  48847. msgstr "@code{port}(默认值:@code{22})"
  48848. #. type: table
  48849. #: guix-git/doc/guix.texi:32069
  48850. msgid "If set, sets the MTU for TFTP packets to that value."
  48851. msgstr ""
  48852. #. type: item
  48853. #: guix-git/doc/guix.texi:32070
  48854. #, fuzzy, no-wrap
  48855. msgid "@code{tftp-no-blocksize?} (default: @code{#f})"
  48856. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  48857. #. type: table
  48858. #: guix-git/doc/guix.texi:32072
  48859. msgid "If true, stops the TFTP server from negotiating the blocksize with a client."
  48860. msgstr ""
  48861. #. type: item
  48862. #: guix-git/doc/guix.texi:32073
  48863. #, fuzzy, no-wrap
  48864. msgid "@code{tftp-lowercase?} (default: @code{#f})"
  48865. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  48866. #. type: table
  48867. #: guix-git/doc/guix.texi:32075
  48868. msgid "Whether to convert all filenames in TFTP requests to lowercase."
  48869. msgstr ""
  48870. #. type: item
  48871. #: guix-git/doc/guix.texi:32076
  48872. #, fuzzy, no-wrap
  48873. msgid "@code{tftp-port-range} (default: @code{#f})"
  48874. msgstr "@code{challenge}(默认值:@code{#f})"
  48875. #. type: table
  48876. #: guix-git/doc/guix.texi:32079
  48877. msgid "If set, fixes the dynamical ports (one per client) to the given range (@code{\"<start>,<end>\"})."
  48878. msgstr ""
  48879. #. type: item
  48880. #: guix-git/doc/guix.texi:32080
  48881. #, fuzzy, no-wrap
  48882. msgid "@code{tftp-root} (default: @code{/var/empty,lo})"
  48883. msgstr "@code{port}(默认值:@code{22})"
  48884. #. type: table
  48885. #: guix-git/doc/guix.texi:32087
  48886. 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."
  48887. msgstr ""
  48888. #. type: item
  48889. #: guix-git/doc/guix.texi:32088
  48890. #, fuzzy, no-wrap
  48891. msgid "@code{tftp-unique-root} (default: @code{#f})"
  48892. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  48893. #. type: table
  48894. #: guix-git/doc/guix.texi:32093
  48895. 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)."
  48896. msgstr ""
  48897. #. type: table
  48898. #: guix-git/doc/guix.texi:32102
  48899. 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."
  48900. msgstr ""
  48901. #. type: subsubheading
  48902. #: guix-git/doc/guix.texi:32106
  48903. #, no-wrap
  48904. msgid "ddclient Service"
  48905. msgstr ""
  48906. #. type: cindex
  48907. #: guix-git/doc/guix.texi:32108
  48908. #, no-wrap
  48909. msgid "ddclient"
  48910. msgstr ""
  48911. #. type: Plain text
  48912. #: guix-git/doc/guix.texi:32112
  48913. 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}."
  48914. msgstr ""
  48915. #. type: Plain text
  48916. #: guix-git/doc/guix.texi:32115
  48917. msgid "The following example show instantiates the service with its default configuration:"
  48918. msgstr ""
  48919. #. type: lisp
  48920. #: guix-git/doc/guix.texi:32118
  48921. #, no-wrap
  48922. msgid "(service ddclient-service-type)\n"
  48923. msgstr ""
  48924. #. type: Plain text
  48925. #: guix-git/doc/guix.texi:32127
  48926. 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."
  48927. msgstr ""
  48928. #. type: Plain text
  48929. #: guix-git/doc/guix.texi:32131
  48930. msgid "Available @code{ddclient-configuration} fields are:"
  48931. msgstr ""
  48932. #. type: deftypevr
  48933. #: guix-git/doc/guix.texi:32132
  48934. #, no-wrap
  48935. msgid "{@code{ddclient-configuration} parameter} package ddclient"
  48936. msgstr ""
  48937. #. type: deftypevr
  48938. #: guix-git/doc/guix.texi:32134
  48939. msgid "The ddclient package."
  48940. msgstr ""
  48941. #. type: deftypevr
  48942. #: guix-git/doc/guix.texi:32137
  48943. #, no-wrap
  48944. msgid "{@code{ddclient-configuration} parameter} integer daemon"
  48945. msgstr ""
  48946. #. type: deftypevr
  48947. #: guix-git/doc/guix.texi:32139
  48948. msgid "The period after which ddclient will retry to check IP and domain name."
  48949. msgstr ""
  48950. #. type: deftypevr
  48951. #: guix-git/doc/guix.texi:32141
  48952. msgid "Defaults to @samp{300}."
  48953. msgstr ""
  48954. #. type: deftypevr
  48955. #: guix-git/doc/guix.texi:32144
  48956. #, no-wrap
  48957. msgid "{@code{ddclient-configuration} parameter} boolean syslog"
  48958. msgstr ""
  48959. #. type: deftypevr
  48960. #: guix-git/doc/guix.texi:32146
  48961. msgid "Use syslog for the output."
  48962. msgstr ""
  48963. #. type: deftypevr
  48964. #: guix-git/doc/guix.texi:32151
  48965. #, no-wrap
  48966. msgid "{@code{ddclient-configuration} parameter} string mail"
  48967. msgstr ""
  48968. #. type: deftypevr
  48969. #: guix-git/doc/guix.texi:32153
  48970. msgid "Mail to user."
  48971. msgstr ""
  48972. #. type: deftypevr
  48973. #: guix-git/doc/guix.texi:32155 guix-git/doc/guix.texi:32162
  48974. #: guix-git/doc/guix.texi:34394
  48975. msgid "Defaults to @samp{\"root\"}."
  48976. msgstr ""
  48977. #. type: deftypevr
  48978. #: guix-git/doc/guix.texi:32158
  48979. #, no-wrap
  48980. msgid "{@code{ddclient-configuration} parameter} string mail-failure"
  48981. msgstr ""
  48982. #. type: deftypevr
  48983. #: guix-git/doc/guix.texi:32160
  48984. msgid "Mail failed update to user."
  48985. msgstr ""
  48986. #. type: deftypevr
  48987. #: guix-git/doc/guix.texi:32165
  48988. #, no-wrap
  48989. msgid "{@code{ddclient-configuration} parameter} string pid"
  48990. msgstr ""
  48991. #. type: deftypevr
  48992. #: guix-git/doc/guix.texi:32167
  48993. msgid "The ddclient PID file."
  48994. msgstr ""
  48995. #. type: deftypevr
  48996. #: guix-git/doc/guix.texi:32169
  48997. msgid "Defaults to @samp{\"/var/run/ddclient/ddclient.pid\"}."
  48998. msgstr ""
  48999. #. type: deftypevr
  49000. #: guix-git/doc/guix.texi:32172
  49001. #, no-wrap
  49002. msgid "{@code{ddclient-configuration} parameter} boolean ssl"
  49003. msgstr ""
  49004. #. type: deftypevr
  49005. #: guix-git/doc/guix.texi:32174
  49006. msgid "Enable SSL support."
  49007. msgstr ""
  49008. #. type: deftypevr
  49009. #: guix-git/doc/guix.texi:32179
  49010. #, no-wrap
  49011. msgid "{@code{ddclient-configuration} parameter} string user"
  49012. msgstr ""
  49013. #. type: deftypevr
  49014. #: guix-git/doc/guix.texi:32182
  49015. msgid "Specifies the user name or ID that is used when running ddclient program."
  49016. msgstr ""
  49017. #. type: deftypevr
  49018. #: guix-git/doc/guix.texi:32184 guix-git/doc/guix.texi:32191
  49019. msgid "Defaults to @samp{\"ddclient\"}."
  49020. msgstr ""
  49021. #. type: deftypevr
  49022. #: guix-git/doc/guix.texi:32187
  49023. #, no-wrap
  49024. msgid "{@code{ddclient-configuration} parameter} string group"
  49025. msgstr ""
  49026. #. type: deftypevr
  49027. #: guix-git/doc/guix.texi:32189
  49028. msgid "Group of the user who will run the ddclient program."
  49029. msgstr ""
  49030. #. type: deftypevr
  49031. #: guix-git/doc/guix.texi:32194
  49032. #, no-wrap
  49033. msgid "{@code{ddclient-configuration} parameter} string secret-file"
  49034. msgstr ""
  49035. #. type: deftypevr
  49036. #: guix-git/doc/guix.texi:32198
  49037. 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."
  49038. msgstr ""
  49039. #. type: deftypevr
  49040. #: guix-git/doc/guix.texi:32200
  49041. msgid "Defaults to @samp{\"/etc/ddclient/secrets.conf\"}."
  49042. msgstr ""
  49043. #. type: deftypevr
  49044. #: guix-git/doc/guix.texi:32203
  49045. #, no-wrap
  49046. msgid "{@code{ddclient-configuration} parameter} list extra-options"
  49047. msgstr ""
  49048. #. type: deftypevr
  49049. #: guix-git/doc/guix.texi:32205
  49050. msgid "Extra options will be appended to @file{ddclient.conf} file."
  49051. msgstr ""
  49052. #. type: cindex
  49053. #: guix-git/doc/guix.texi:32215
  49054. #, no-wrap
  49055. msgid "VNC (virtual network computing)"
  49056. msgstr ""
  49057. #. type: cindex
  49058. #: guix-git/doc/guix.texi:32216
  49059. #, no-wrap
  49060. msgid "XDMCP (x display manager control protocol)"
  49061. msgstr ""
  49062. #. type: Plain text
  49063. #: guix-git/doc/guix.texi:32225
  49064. msgid "The @code{(gnu services vnc)} module provides services related to @dfn{Virtual Network Computing} (VNC), which makes it possible to locally use graphical Xorg applications running on a remote machine. Combined with a graphical manager that supports the @dfn{X Display Manager Control Protocol}, such as GDM (@pxref{gdm}) or LightDM (@pxref{lightdm}), it is possible to remote an entire desktop for a multi-user environment."
  49065. msgstr ""
  49066. #. type: subsubheading
  49067. #: guix-git/doc/guix.texi:32226
  49068. #, no-wrap
  49069. msgid "Xvnc"
  49070. msgstr ""
  49071. #. type: Plain text
  49072. #: guix-git/doc/guix.texi:32231
  49073. msgid "Xvnc is a VNC server that spawns its own X window server; which means it can run on headless servers. The Xvnc implementations provided by the @code{tigervnc-server} and @code{turbovnc} aim to be fast and efficient."
  49074. msgstr ""
  49075. #. type: defvar
  49076. #: guix-git/doc/guix.texi:32232
  49077. #, fuzzy, no-wrap
  49078. msgid "xvnc-service-type"
  49079. msgstr "邮件服务"
  49080. #. type: defvar
  49081. #: guix-git/doc/guix.texi:32238
  49082. msgid "The @code{xvnc-server-type} service can be configured via the @code{xvnc-configuration} record, documented below. A second virtual display could be made available on a remote machine via the following configuration:"
  49083. msgstr ""
  49084. #. type: lisp
  49085. #: guix-git/doc/guix.texi:32243
  49086. #, no-wrap
  49087. msgid ""
  49088. "(service xvnc-service-type\n"
  49089. " (xvnc-configuration (display-number 10)))\n"
  49090. msgstr ""
  49091. "(service xvnc-service-type\n"
  49092. " (xvnc-configuration (display-number 10)))\n"
  49093. #. type: Plain text
  49094. #: guix-git/doc/guix.texi:32248
  49095. msgid "As a demonstration, the @command{xclock} command could then be started on the remote machine on display number 10, and it could be displayed locally via the @command{vncviewer} command:"
  49096. msgstr ""
  49097. #. type: example
  49098. #: guix-git/doc/guix.texi:32254
  49099. #, no-wrap
  49100. msgid ""
  49101. "# Start xclock on the remote machine.\n"
  49102. "ssh -L5910:localhost:5910 @var{your-host} -- guix shell xclock \\\n"
  49103. " -- env DISPLAY=:10 xclock\n"
  49104. "# Access it via VNC.\n"
  49105. "guix shell tigervnc-client -- vncviewer localhost:5910\n"
  49106. msgstr ""
  49107. #. type: Plain text
  49108. #: guix-git/doc/guix.texi:32259
  49109. msgid "The following configuration combines XDMCP and Inetd to allow multiple users to concurrently use the remote system and login graphically via the GDM display manager:"
  49110. msgstr ""
  49111. #. type: lisp
  49112. #: guix-git/doc/guix.texi:32275
  49113. #, no-wrap
  49114. msgid ""
  49115. "(operating-system\n"
  49116. " [...]\n"
  49117. " (services (cons*\n"
  49118. " [...]\n"
  49119. " (service xvnc-service-type (xvnc-configuration\n"
  49120. " (display-number 5)\n"
  49121. " (localhost? #f)\n"
  49122. " (xdmcp? #t)\n"
  49123. " (inetd? #t)))\n"
  49124. " (modify-services %desktop-services\n"
  49125. " (gdm-service-type config => (gdm-configuration\n"
  49126. " (inherit config)\n"
  49127. " (auto-suspend? #f)\n"
  49128. " (xdmcp? #t)))))))\n"
  49129. msgstr ""
  49130. #. type: Plain text
  49131. #: guix-git/doc/guix.texi:32280
  49132. msgid "A remote user could then connect to it by using the @command{vncviewer} command or a compatible VNC client and start a desktop session of their choosing:"
  49133. msgstr ""
  49134. #. type: example
  49135. #: guix-git/doc/guix.texi:32282
  49136. #, no-wrap
  49137. msgid "vncviewer remote-host:5905\n"
  49138. msgstr ""
  49139. #. type: quotation
  49140. #: guix-git/doc/guix.texi:32292
  49141. msgid "Unless your machine is in a controlled environment, for security reasons, the @code{localhost?} configuration of the @code{xvnc-configuration} record should be left to its default @code{#t} value and exposed via a secure means such as an SSH port forward. The XDMCP port, UDP 177 should also be blocked from the outside by a firewall, as it is not a secure protocol and can expose login credentials in clear."
  49142. msgstr ""
  49143. #. type: deftp
  49144. #: guix-git/doc/guix.texi:32297
  49145. #, fuzzy, no-wrap
  49146. msgid "{Data Type} xvnc-configuration"
  49147. msgstr "系统配置"
  49148. #. type: deftp
  49149. #: guix-git/doc/guix.texi:32299
  49150. msgid "Available @code{xvnc-configuration} fields are:"
  49151. msgstr ""
  49152. #. type: item
  49153. #: guix-git/doc/guix.texi:32301
  49154. #, fuzzy, no-wrap
  49155. msgid "@code{xvnc} (default: @code{tigervnc-server}) (type: file-like)"
  49156. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  49157. #. type: table
  49158. #: guix-git/doc/guix.texi:32303
  49159. msgid "The package that provides the Xvnc binary."
  49160. msgstr ""
  49161. #. type: item
  49162. #: guix-git/doc/guix.texi:32304
  49163. #, fuzzy, no-wrap
  49164. msgid "@code{display-number} (default: @code{0}) (type: number)"
  49165. msgstr "@code{port}(默认值:@code{22})"
  49166. #. type: table
  49167. #: guix-git/doc/guix.texi:32307
  49168. msgid "The display number used by Xvnc. You should set this to a number not already used a Xorg server."
  49169. msgstr ""
  49170. #. type: item
  49171. #: guix-git/doc/guix.texi:32308
  49172. #, fuzzy, no-wrap
  49173. msgid "@code{geometry} (default: @code{\"1024x768\"}) (type: string)"
  49174. msgstr "@code{port}(默认值:@code{22})"
  49175. #. type: table
  49176. #: guix-git/doc/guix.texi:32310
  49177. #, fuzzy
  49178. msgid "The size of the desktop to be created."
  49179. msgstr "这个用户手册的许可证。"
  49180. #. type: item
  49181. #: guix-git/doc/guix.texi:32311
  49182. #, fuzzy, no-wrap
  49183. msgid "@code{depth} (default: @code{24}) (type: color-depth)"
  49184. msgstr "@code{challenge}(默认值:@code{#f})"
  49185. #. type: table
  49186. #: guix-git/doc/guix.texi:32314
  49187. msgid "The pixel depth in bits of the desktop to be created. Accepted values are 16, 24 or 32."
  49188. msgstr ""
  49189. #. type: item
  49190. #: guix-git/doc/guix.texi:32315
  49191. #, fuzzy, no-wrap
  49192. msgid "@code{port} (type: maybe-port)"
  49193. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  49194. #. type: table
  49195. #: guix-git/doc/guix.texi:32318
  49196. msgid "The port on which to listen for connections from viewers. When left unspecified, it defaults to 5900 plus the display number."
  49197. msgstr ""
  49198. #. type: item
  49199. #: guix-git/doc/guix.texi:32319
  49200. #, fuzzy, no-wrap
  49201. msgid "@code{ipv4?} (default: @code{#t}) (type: boolean)"
  49202. msgstr "@code{challenge}(默认值:@code{#f})"
  49203. #. type: table
  49204. #: guix-git/doc/guix.texi:32321
  49205. msgid "Use IPv4 for incoming and outgoing connections."
  49206. msgstr ""
  49207. #. type: item
  49208. #: guix-git/doc/guix.texi:32322
  49209. #, fuzzy, no-wrap
  49210. msgid "@code{ipv6?} (default: @code{#t}) (type: boolean)"
  49211. msgstr "@code{challenge}(默认值:@code{#f})"
  49212. #. type: table
  49213. #: guix-git/doc/guix.texi:32324
  49214. msgid "Use IPv6 for incoming and outgoing connections."
  49215. msgstr ""
  49216. #. type: item
  49217. #: guix-git/doc/guix.texi:32325
  49218. #, fuzzy, no-wrap
  49219. msgid "@code{password-file} (type: maybe-string)"
  49220. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  49221. #. type: table
  49222. #: guix-git/doc/guix.texi:32328
  49223. msgid "The password file to use, if any. Refer to vncpasswd(1) to learn how to generate such a file."
  49224. msgstr ""
  49225. #. type: table
  49226. #: guix-git/doc/guix.texi:32335
  49227. msgid "Query the XDMCP server for a session. This enables users to log in a desktop session from the login manager screen. For a multiple users scenario, you'll want to enable the @code{inetd?} option as well, so that each connection to the VNC server is handled separately rather than shared."
  49228. msgstr ""
  49229. #. type: item
  49230. #: guix-git/doc/guix.texi:32336
  49231. #, fuzzy, no-wrap
  49232. msgid "@code{inetd?} (default: @code{#f}) (type: boolean)"
  49233. msgstr "@code{speed}(默认值:@code{1.0})"
  49234. #. type: table
  49235. #: guix-git/doc/guix.texi:32338
  49236. msgid "Use an Inetd-style service, which runs the Xvnc server on demand."
  49237. msgstr ""
  49238. #. type: item
  49239. #: guix-git/doc/guix.texi:32339
  49240. #, fuzzy, no-wrap
  49241. msgid "@code{frame-rate} (default: @code{60}) (type: number)"
  49242. msgstr "@code{port}(默认值:@code{22})"
  49243. #. type: table
  49244. #: guix-git/doc/guix.texi:32341
  49245. msgid "The maximum number of updates per second sent to each client."
  49246. msgstr ""
  49247. #. type: item
  49248. #: guix-git/doc/guix.texi:32342
  49249. #, fuzzy, no-wrap
  49250. msgid "@code{security-types} (default: @code{'(\"None\")}) (type: security-types)"
  49251. msgstr "@code{port}(默认值:@code{22})"
  49252. #. type: table
  49253. #: guix-git/doc/guix.texi:32348
  49254. msgid "The allowed security schemes to use for incoming connections. The default is \"None\", which is safe given that Xvnc is configured to authenticate the user via the display manager, and only for local connections. Accepted values are any of the following: (\"None\" \"VncAuth\" \"Plain\" \"TLSNone\" \"TLSVnc\" \"TLSPlain\" \"X509None\" \"X509Vnc\")"
  49255. msgstr ""
  49256. #. type: item
  49257. #: guix-git/doc/guix.texi:32349
  49258. #, fuzzy, no-wrap
  49259. msgid "@code{localhost?} (default: @code{#t}) (type: boolean)"
  49260. msgstr "@code{challenge}(默认值:@code{#f})"
  49261. #. type: table
  49262. #: guix-git/doc/guix.texi:32353
  49263. msgid "Only allow connections from the same machine. It is set to #true by default for security, which means SSH or another secure means should be used to expose the remote port."
  49264. msgstr ""
  49265. #. type: item
  49266. #: guix-git/doc/guix.texi:32354
  49267. #, fuzzy, no-wrap
  49268. msgid "@code{log-level} (default: @code{30}) (type: log-level)"
  49269. msgstr "@code{challenge}(默认值:@code{#f})"
  49270. #. type: table
  49271. #: guix-git/doc/guix.texi:32357
  49272. msgid "The log level, a number between 0 and 100, 100 meaning most verbose output. The log messages are output to syslog."
  49273. msgstr ""
  49274. #. type: item
  49275. #: guix-git/doc/guix.texi:32358
  49276. #, fuzzy, no-wrap
  49277. msgid "@code{extra-options} (default: @code{'()}) (type: strings)"
  49278. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  49279. #. type: table
  49280. #: guix-git/doc/guix.texi:32361
  49281. msgid "This can be used to provide extra Xvnc options not exposed via this <xvnc-configuration> record."
  49282. msgstr ""
  49283. #. type: cindex
  49284. #: guix-git/doc/guix.texi:32369
  49285. #, no-wrap
  49286. msgid "VPN (virtual private network)"
  49287. msgstr ""
  49288. #. type: cindex
  49289. #: guix-git/doc/guix.texi:32370
  49290. #, no-wrap
  49291. msgid "virtual private network (VPN)"
  49292. msgstr ""
  49293. #. type: Plain text
  49294. #: guix-git/doc/guix.texi:32374
  49295. msgid "The @code{(gnu services vpn)} module provides services related to @dfn{virtual private networks} (VPNs)."
  49296. msgstr ""
  49297. #. type: subsubheading
  49298. #: guix-git/doc/guix.texi:32375
  49299. #, no-wrap
  49300. msgid "Bitmask"
  49301. msgstr ""
  49302. #. type: defvar
  49303. #: guix-git/doc/guix.texi:32377
  49304. #, fuzzy, no-wrap
  49305. msgid "bitmask-service-type"
  49306. msgstr "邮件服务"
  49307. #. type: defvar
  49308. #: guix-git/doc/guix.texi:32382
  49309. 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."
  49310. msgstr ""
  49311. #. type: subsubheading
  49312. #: guix-git/doc/guix.texi:32384
  49313. #, no-wrap
  49314. msgid "OpenVPN"
  49315. msgstr ""
  49316. #. type: Plain text
  49317. #: guix-git/doc/guix.texi:32390
  49318. 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@. Both @code{openvpn-client-service-type} and @code{openvpn-server-service-type} can be run simultaneously."
  49319. msgstr ""
  49320. #. type: defvar
  49321. #: guix-git/doc/guix.texi:32391
  49322. #, fuzzy, no-wrap
  49323. msgid "openvpn-client-service-type"
  49324. msgstr "邮件服务"
  49325. #. type: defvar
  49326. #: guix-git/doc/guix.texi:32393
  49327. msgid "Type of the service that runs @command{openvpn}, a VPN daemon, as a client."
  49328. msgstr ""
  49329. #. type: defvar
  49330. #: guix-git/doc/guix.texi:32396
  49331. msgid "The value for this service is a @code{<openvpn-client-configuration>} object."
  49332. msgstr ""
  49333. #. type: defvar
  49334. #: guix-git/doc/guix.texi:32398
  49335. #, fuzzy, no-wrap
  49336. msgid "openvpn-server-service-type"
  49337. msgstr "邮件服务"
  49338. #. type: defvar
  49339. #: guix-git/doc/guix.texi:32400
  49340. msgid "Type of the service that runs @command{openvpn}, a VPN daemon, as a server."
  49341. msgstr ""
  49342. #. type: defvar
  49343. #: guix-git/doc/guix.texi:32403
  49344. msgid "The value for this service is a @code{<openvpn-server-configuration>} object."
  49345. msgstr ""
  49346. #. type: deftp
  49347. #: guix-git/doc/guix.texi:32407
  49348. #, fuzzy, no-wrap
  49349. msgid "{Data Type} openvpn-client-configuration"
  49350. msgstr "系统配置"
  49351. #. type: deftp
  49352. #: guix-git/doc/guix.texi:32409
  49353. msgid "Available @code{openvpn-client-configuration} fields are:"
  49354. msgstr ""
  49355. #. type: item
  49356. #: guix-git/doc/guix.texi:32411 guix-git/doc/guix.texi:32499
  49357. #, fuzzy, no-wrap
  49358. msgid "@code{openvpn} (default: @code{openvpn}) (type: file-like)"
  49359. msgstr "@code{xfce}(默认值:@code{xfce})"
  49360. #. type: table
  49361. #: guix-git/doc/guix.texi:32413 guix-git/doc/guix.texi:32501
  49362. msgid "The OpenVPN package."
  49363. msgstr ""
  49364. #. type: item
  49365. #: guix-git/doc/guix.texi:32414 guix-git/doc/guix.texi:32502
  49366. #, fuzzy, no-wrap
  49367. msgid "@code{pid-file} (default: @code{\"/var/run/openvpn/openvpn.pid\"}) (type: string)"
  49368. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  49369. #. type: table
  49370. #: guix-git/doc/guix.texi:32416 guix-git/doc/guix.texi:32504
  49371. msgid "The OpenVPN pid file."
  49372. msgstr ""
  49373. #. type: item
  49374. #: guix-git/doc/guix.texi:32417 guix-git/doc/guix.texi:32505
  49375. #, fuzzy, no-wrap
  49376. msgid "@code{proto} (default: @code{udp}) (type: proto)"
  49377. msgstr "@code{port}(默认值:@code{22})"
  49378. #. type: table
  49379. #: guix-git/doc/guix.texi:32420 guix-git/doc/guix.texi:32508
  49380. msgid "The protocol (UDP or TCP) used to open a channel between clients and servers."
  49381. msgstr ""
  49382. #. type: item
  49383. #: guix-git/doc/guix.texi:32421 guix-git/doc/guix.texi:32509
  49384. #, fuzzy, no-wrap
  49385. msgid "@code{dev} (default: @code{tun}) (type: dev)"
  49386. msgstr "@code{challenge}(默认值:@code{#f})"
  49387. #. type: table
  49388. #: guix-git/doc/guix.texi:32423 guix-git/doc/guix.texi:32511
  49389. msgid "The device type used to represent the VPN connection."
  49390. msgstr ""
  49391. #. type: item
  49392. #: guix-git/doc/guix.texi:32424 guix-git/doc/guix.texi:32512
  49393. #, fuzzy, no-wrap
  49394. msgid "@code{ca} (default: @code{\"/etc/openvpn/ca.crt\"}) (type: maybe-string)"
  49395. msgstr "@code{xfce}(默认值:@code{xfce})"
  49396. #. type: table
  49397. #: guix-git/doc/guix.texi:32426 guix-git/doc/guix.texi:32514
  49398. msgid "The certificate authority to check connections against."
  49399. msgstr ""
  49400. #. type: item
  49401. #: guix-git/doc/guix.texi:32427 guix-git/doc/guix.texi:32515
  49402. #, fuzzy, no-wrap
  49403. msgid "@code{cert} (default: @code{\"/etc/openvpn/client.crt\"}) (type: maybe-string)"
  49404. msgstr "@code{xfce}(默认值:@code{xfce})"
  49405. #. type: table
  49406. #: guix-git/doc/guix.texi:32430 guix-git/doc/guix.texi:32518
  49407. msgid "The certificate of the machine the daemon is running on. It should be signed by the authority given in @code{ca}."
  49408. msgstr ""
  49409. #. type: item
  49410. #: guix-git/doc/guix.texi:32431 guix-git/doc/guix.texi:32519
  49411. #, fuzzy, no-wrap
  49412. msgid "@code{key} (default: @code{\"/etc/openvpn/client.key\"}) (type: maybe-string)"
  49413. msgstr "@code{xfce}(默认值:@code{xfce})"
  49414. #. type: table
  49415. #: guix-git/doc/guix.texi:32434 guix-git/doc/guix.texi:32522
  49416. msgid "The key of the machine the daemon is running on. It must be the key whose certificate is @code{cert}."
  49417. msgstr ""
  49418. #. type: item
  49419. #: guix-git/doc/guix.texi:32435 guix-git/doc/guix.texi:32523
  49420. #, fuzzy, no-wrap
  49421. msgid "@code{comp-lzo?} (default: @code{#t}) (type: boolean)"
  49422. msgstr "@code{challenge}(默认值:@code{#f})"
  49423. #. type: table
  49424. #: guix-git/doc/guix.texi:32437 guix-git/doc/guix.texi:32525
  49425. msgid "Whether to use the lzo compression algorithm."
  49426. msgstr ""
  49427. #. type: item
  49428. #: guix-git/doc/guix.texi:32438 guix-git/doc/guix.texi:32526
  49429. #, fuzzy, no-wrap
  49430. msgid "@code{persist-key?} (default: @code{#t}) (type: boolean)"
  49431. msgstr "@code{challenge}(默认值:@code{#f})"
  49432. #. type: table
  49433. #: guix-git/doc/guix.texi:32440 guix-git/doc/guix.texi:32528
  49434. msgid "Don't re-read key files across SIGUSR1 or --ping-restart."
  49435. msgstr ""
  49436. #. type: item
  49437. #: guix-git/doc/guix.texi:32441 guix-git/doc/guix.texi:32529
  49438. #, fuzzy, no-wrap
  49439. msgid "@code{persist-tun?} (default: @code{#t}) (type: boolean)"
  49440. msgstr "@code{challenge}(默认值:@code{#f})"
  49441. #. type: table
  49442. #: guix-git/doc/guix.texi:32444 guix-git/doc/guix.texi:32532
  49443. msgid "Don't close and reopen TUN/TAP device or run up/down scripts across SIGUSR1 or --ping-restart restarts."
  49444. msgstr ""
  49445. #. type: item
  49446. #: guix-git/doc/guix.texi:32445 guix-git/doc/guix.texi:32533
  49447. #, fuzzy, no-wrap
  49448. msgid "@code{fast-io?} (default: @code{#f}) (type: boolean)"
  49449. msgstr "@code{challenge}(默认值:@code{#f})"
  49450. #. type: table
  49451. #: guix-git/doc/guix.texi:32448 guix-git/doc/guix.texi:32536
  49452. msgid "(Experimental) Optimize TUN/TAP/UDP I/O writes by avoiding a call to poll/epoll/select prior to the write operation."
  49453. msgstr ""
  49454. #. type: item
  49455. #: guix-git/doc/guix.texi:32449 guix-git/doc/guix.texi:32537
  49456. #, fuzzy, no-wrap
  49457. msgid "@code{verbosity} (default: @code{3}) (type: number)"
  49458. msgstr "@code{port}(默认值:@code{22})"
  49459. #. type: table
  49460. #: guix-git/doc/guix.texi:32451 guix-git/doc/guix.texi:32539
  49461. msgid "Verbosity level."
  49462. msgstr ""
  49463. #. type: item
  49464. #: guix-git/doc/guix.texi:32452
  49465. #, fuzzy, no-wrap
  49466. msgid "@code{tls-auth} (default: @code{#f}) (type: tls-auth-client)"
  49467. msgstr "@code{port}(默认值:@code{22})"
  49468. #. type: table
  49469. #: guix-git/doc/guix.texi:32455 guix-git/doc/guix.texi:32543
  49470. msgid "Add an additional layer of HMAC authentication on top of the TLS control channel to protect against DoS attacks."
  49471. msgstr ""
  49472. #. type: item
  49473. #: guix-git/doc/guix.texi:32456
  49474. #, fuzzy, no-wrap
  49475. msgid "@code{auth-user-pass} (type: maybe-string)"
  49476. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  49477. #. type: table
  49478. #: guix-git/doc/guix.texi:32460
  49479. 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."
  49480. msgstr ""
  49481. #. type: item
  49482. #: guix-git/doc/guix.texi:32461
  49483. #, fuzzy, no-wrap
  49484. msgid "@code{verify-key-usage?} (default: @code{#t}) (type: key-usage)"
  49485. msgstr "@code{xfce}(默认值:@code{xfce})"
  49486. #. type: table
  49487. #: guix-git/doc/guix.texi:32463
  49488. msgid "Whether to check the server certificate has server usage extension."
  49489. msgstr ""
  49490. #. type: item
  49491. #: guix-git/doc/guix.texi:32464
  49492. #, fuzzy, no-wrap
  49493. msgid "@code{bind?} (default: @code{#f}) (type: bind)"
  49494. msgstr "@code{challenge}(默认值:@code{#f})"
  49495. #. type: table
  49496. #: guix-git/doc/guix.texi:32466
  49497. msgid "Bind to a specific local port number."
  49498. msgstr ""
  49499. #. type: item
  49500. #: guix-git/doc/guix.texi:32467
  49501. #, fuzzy, no-wrap
  49502. msgid "@code{resolv-retry?} (default: @code{#t}) (type: resolv-retry)"
  49503. msgstr "@code{challenge}(默认值:@code{#f})"
  49504. #. type: table
  49505. #: guix-git/doc/guix.texi:32469
  49506. msgid "Retry resolving server address."
  49507. msgstr ""
  49508. #. type: item
  49509. #: guix-git/doc/guix.texi:32470
  49510. #, fuzzy, no-wrap
  49511. msgid "@code{remote} (default: @code{'()}) (type: openvpn-remote-list)"
  49512. msgstr "@code{features} (@code{'()})"
  49513. #. type: table
  49514. #: guix-git/doc/guix.texi:32472
  49515. msgid "A list of remote servers to connect to."
  49516. msgstr ""
  49517. #. type: deftp
  49518. #: guix-git/doc/guix.texi:32473
  49519. #, fuzzy, no-wrap
  49520. msgid "{Data Type} openvpn-remote-configuration"
  49521. msgstr "系统配置"
  49522. #. type: deftp
  49523. #: guix-git/doc/guix.texi:32475
  49524. msgid "Available @code{openvpn-remote-configuration} fields are:"
  49525. msgstr ""
  49526. #. type: item
  49527. #: guix-git/doc/guix.texi:32477
  49528. #, fuzzy, no-wrap
  49529. msgid "@code{name} (default: @code{\"my-server\"}) (type: string)"
  49530. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  49531. #. type: table
  49532. #: guix-git/doc/guix.texi:32479
  49533. msgid "Server name."
  49534. msgstr ""
  49535. #. type: item
  49536. #: guix-git/doc/guix.texi:32480 guix-git/doc/guix.texi:32544
  49537. #, fuzzy, no-wrap
  49538. msgid "@code{port} (default: @code{1194}) (type: number)"
  49539. msgstr "@code{port}(默认值:@code{22})"
  49540. #. type: table
  49541. #: guix-git/doc/guix.texi:32482
  49542. msgid "Port number the server listens to."
  49543. msgstr ""
  49544. #. type: deftp
  49545. #: guix-git/doc/guix.texi:32495
  49546. #, fuzzy, no-wrap
  49547. msgid "{Data Type} openvpn-server-configuration"
  49548. msgstr "{数据类型} build-machine"
  49549. #. type: deftp
  49550. #: guix-git/doc/guix.texi:32497
  49551. msgid "Available @code{openvpn-server-configuration} fields are:"
  49552. msgstr ""
  49553. #. type: item
  49554. #: guix-git/doc/guix.texi:32540
  49555. #, fuzzy, no-wrap
  49556. msgid "@code{tls-auth} (default: @code{#f}) (type: tls-auth-server)"
  49557. msgstr "@code{port}(默认值:@code{22})"
  49558. #. type: table
  49559. #: guix-git/doc/guix.texi:32546
  49560. msgid "Specifies the port number on which the server listens."
  49561. msgstr ""
  49562. #. type: item
  49563. #: guix-git/doc/guix.texi:32547
  49564. #, fuzzy, no-wrap
  49565. msgid "@code{server} (default: @code{\"10.8.0.0 255.255.255.0\"}) (type: ip-mask)"
  49566. msgstr "@code{features} (@code{'()})"
  49567. #. type: table
  49568. #: guix-git/doc/guix.texi:32549
  49569. msgid "An ip and mask specifying the subnet inside the virtual network."
  49570. msgstr ""
  49571. #. type: item
  49572. #: guix-git/doc/guix.texi:32550
  49573. #, fuzzy, no-wrap
  49574. msgid "@code{server-ipv6} (default: @code{#f}) (type: cidr6)"
  49575. msgstr "@code{speed}(默认值:@code{1.0})"
  49576. #. type: table
  49577. #: guix-git/doc/guix.texi:32552
  49578. msgid "A CIDR notation specifying the IPv6 subnet inside the virtual network."
  49579. msgstr ""
  49580. #. type: item
  49581. #: guix-git/doc/guix.texi:32553
  49582. #, fuzzy, no-wrap
  49583. msgid "@code{dh} (default: @code{\"/etc/openvpn/dh2048.pem\"}) (type: string)"
  49584. msgstr "@code{xfce}(默认值:@code{xfce})"
  49585. #. type: table
  49586. #: guix-git/doc/guix.texi:32555
  49587. msgid "The Diffie-Hellman parameters file."
  49588. msgstr ""
  49589. #. type: item
  49590. #: guix-git/doc/guix.texi:32556
  49591. #, fuzzy, no-wrap
  49592. msgid "@code{ifconfig-pool-persist} (default: @code{\"/etc/openvpn/ipp.txt\"}) (type: string)"
  49593. msgstr "@code{port}(默认值:@code{22})"
  49594. #. type: table
  49595. #: guix-git/doc/guix.texi:32558
  49596. msgid "The file that records client IPs."
  49597. msgstr ""
  49598. #. type: item
  49599. #: guix-git/doc/guix.texi:32559
  49600. #, fuzzy, no-wrap
  49601. msgid "@code{redirect-gateway?} (default: @code{#f}) (type: gateway)"
  49602. msgstr "@code{challenge}(默认值:@code{#f})"
  49603. #. type: table
  49604. #: guix-git/doc/guix.texi:32561
  49605. msgid "When true, the server will act as a gateway for its clients."
  49606. msgstr ""
  49607. #. type: item
  49608. #: guix-git/doc/guix.texi:32562
  49609. #, fuzzy, no-wrap
  49610. msgid "@code{client-to-client?} (default: @code{#f}) (type: boolean)"
  49611. msgstr "@code{challenge}(默认值:@code{#f})"
  49612. #. type: table
  49613. #: guix-git/doc/guix.texi:32564
  49614. msgid "When true, clients are allowed to talk to each other inside the VPN."
  49615. msgstr ""
  49616. #. type: item
  49617. #: guix-git/doc/guix.texi:32565
  49618. #, fuzzy, no-wrap
  49619. msgid "@code{keepalive} (default: @code{(10 120)}) (type: keepalive)"
  49620. msgstr "@code{features} (@code{'()})"
  49621. #. type: table
  49622. #: guix-git/doc/guix.texi:32571
  49623. 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."
  49624. msgstr ""
  49625. #. type: item
  49626. #: guix-git/doc/guix.texi:32572
  49627. #, fuzzy, no-wrap
  49628. msgid "@code{max-clients} (default: @code{100}) (type: number)"
  49629. msgstr "@code{challenge}(默认值:@code{#f})"
  49630. #. type: table
  49631. #: guix-git/doc/guix.texi:32574
  49632. msgid "The maximum number of clients."
  49633. msgstr ""
  49634. #. type: item
  49635. #: guix-git/doc/guix.texi:32575
  49636. #, fuzzy, no-wrap
  49637. msgid "@code{status} (default: @code{\"/var/run/openvpn/status\"}) (type: string)"
  49638. msgstr "@code{xfce}(默认值:@code{xfce})"
  49639. #. type: table
  49640. #: guix-git/doc/guix.texi:32578
  49641. msgid "The status file. This file shows a small report on current connection. It is truncated and rewritten every minute."
  49642. msgstr ""
  49643. #. type: item
  49644. #: guix-git/doc/guix.texi:32579
  49645. #, fuzzy, no-wrap
  49646. msgid "@code{client-config-dir} (default: @code{'()}) (type: openvpn-ccd-list)"
  49647. msgstr "@code{features} (@code{'()})"
  49648. #. type: table
  49649. #: guix-git/doc/guix.texi:32581
  49650. msgid "The list of configuration for some clients."
  49651. msgstr ""
  49652. #. type: subheading
  49653. #: guix-git/doc/guix.texi:32588
  49654. #, no-wrap
  49655. msgid "strongSwan"
  49656. msgstr ""
  49657. #. type: Plain text
  49658. #: guix-git/doc/guix.texi:32592
  49659. msgid "Currently, the strongSwan service only provides legacy-style configuration with @file{ipsec.conf} and @file{ipsec.secrets} files."
  49660. msgstr ""
  49661. #. type: defvar
  49662. #: guix-git/doc/guix.texi:32593
  49663. #, fuzzy, no-wrap
  49664. msgid "strongswan-service-type"
  49665. msgstr "邮件服务"
  49666. #. type: defvar
  49667. #: guix-git/doc/guix.texi:32597
  49668. 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:"
  49669. msgstr ""
  49670. #. type: lisp
  49671. #: guix-git/doc/guix.texi:32603
  49672. #, no-wrap
  49673. msgid ""
  49674. "(service strongswan-service-type\n"
  49675. " (strongswan-configuration\n"
  49676. " (ipsec-conf \"/etc/ipsec.conf\")\n"
  49677. " (ipsec-secrets \"/etc/ipsec.secrets\")))\n"
  49678. msgstr ""
  49679. #. type: deftp
  49680. #: guix-git/doc/guix.texi:32607
  49681. #, fuzzy, no-wrap
  49682. msgid "{Data Type} strongswan-configuration"
  49683. msgstr "系统配置"
  49684. #. type: deftp
  49685. #: guix-git/doc/guix.texi:32609
  49686. #, fuzzy
  49687. msgid "Data type representing the configuration of the StrongSwan service."
  49688. msgstr "管理操作系统配置。"
  49689. #. type: code{#1}
  49690. #: guix-git/doc/guix.texi:32611
  49691. #, no-wrap
  49692. msgid "strongswan"
  49693. msgstr ""
  49694. #. type: table
  49695. #: guix-git/doc/guix.texi:32613
  49696. #, fuzzy
  49697. msgid "The strongSwan package to use for this service."
  49698. msgstr "软件包数据类型。"
  49699. #. type: item
  49700. #: guix-git/doc/guix.texi:32614
  49701. #, fuzzy, no-wrap
  49702. msgid "@code{ipsec-conf} (default: @code{#f})"
  49703. msgstr "@code{port}(默认值:@code{22})"
  49704. #. type: table
  49705. #: guix-git/doc/guix.texi:32617
  49706. msgid "The file name of your @file{ipsec.conf}. If not @code{#f}, then this and @code{ipsec-secrets} must both be strings."
  49707. msgstr ""
  49708. #. type: item
  49709. #: guix-git/doc/guix.texi:32618
  49710. #, fuzzy, no-wrap
  49711. msgid "@code{ipsec-secrets} (default @code{#f})"
  49712. msgstr "@code{speed}(默认值:@code{1.0})"
  49713. #. type: table
  49714. #: guix-git/doc/guix.texi:32621
  49715. msgid "The file name of your @file{ipsec.secrets}. If not @code{#f}, then this and @code{ipsec-conf} must both be strings."
  49716. msgstr ""
  49717. #. type: subsubheading
  49718. #: guix-git/doc/guix.texi:32625
  49719. #, no-wrap
  49720. msgid "Wireguard"
  49721. msgstr ""
  49722. #. type: defvar
  49723. #: guix-git/doc/guix.texi:32627
  49724. #, fuzzy, no-wrap
  49725. msgid "wireguard-service-type"
  49726. msgstr "邮件服务"
  49727. #. type: defvar
  49728. #: guix-git/doc/guix.texi:32630
  49729. msgid "A service type for a Wireguard tunnel interface. Its value must be a @code{wireguard-configuration} record as in this example:"
  49730. msgstr ""
  49731. #. type: lisp
  49732. #: guix-git/doc/guix.texi:32641
  49733. #, no-wrap
  49734. msgid ""
  49735. "(service wireguard-service-type\n"
  49736. " (wireguard-configuration\n"
  49737. " (peers\n"
  49738. " (list\n"
  49739. " (wireguard-peer\n"
  49740. " (name \"my-peer\")\n"
  49741. " (endpoint \"my.wireguard.com:51820\")\n"
  49742. " (public-key \"hzpKg9X1yqu1axN6iJp0mWf6BZGo8m1wteKwtTmDGF4=\")\n"
  49743. " (allowed-ips '(\"10.0.0.2/32\")))))))\n"
  49744. msgstr ""
  49745. #. type: deftp
  49746. #: guix-git/doc/guix.texi:32645
  49747. #, fuzzy, no-wrap
  49748. msgid "{Data Type} wireguard-configuration"
  49749. msgstr "{数据类型} build-machine"
  49750. #. type: deftp
  49751. #: guix-git/doc/guix.texi:32647
  49752. #, fuzzy
  49753. msgid "Data type representing the configuration of the Wireguard service."
  49754. msgstr "管理操作系统配置。"
  49755. #. type: code{#1}
  49756. #: guix-git/doc/guix.texi:32649
  49757. #, no-wrap
  49758. msgid "wireguard"
  49759. msgstr ""
  49760. #. type: table
  49761. #: guix-git/doc/guix.texi:32651
  49762. #, fuzzy
  49763. msgid "The wireguard package to use for this service."
  49764. msgstr "软件包数据类型。"
  49765. #. type: item
  49766. #: guix-git/doc/guix.texi:32652
  49767. #, fuzzy, no-wrap
  49768. msgid "@code{interface} (default: @code{\"wg0\"})"
  49769. msgstr "@code{display}(默认值:@code{\":0\"})"
  49770. #. type: table
  49771. #: guix-git/doc/guix.texi:32654
  49772. msgid "The interface name for the VPN."
  49773. msgstr ""
  49774. #. type: item
  49775. #: guix-git/doc/guix.texi:32655
  49776. #, fuzzy, no-wrap
  49777. msgid "@code{addresses} (default: @code{'(\"10.0.0.1/32\")})"
  49778. msgstr "@code{display}(默认值:@code{\":0\"})"
  49779. #. type: table
  49780. #: guix-git/doc/guix.texi:32657
  49781. msgid "The IP addresses to be assigned to the above interface."
  49782. msgstr ""
  49783. #. type: item
  49784. #: guix-git/doc/guix.texi:32658
  49785. #, fuzzy, no-wrap
  49786. msgid "@code{port} (default: @code{51820})"
  49787. msgstr "@code{port}(默认值:@code{22})"
  49788. #. type: table
  49789. #: guix-git/doc/guix.texi:32660
  49790. msgid "The port on which to listen for incoming connections."
  49791. msgstr ""
  49792. #. type: item
  49793. #: guix-git/doc/guix.texi:32661
  49794. #, fuzzy, no-wrap
  49795. msgid "@code{dns} (default: @code{#f})"
  49796. msgstr "@code{port}(默认值:@code{22})"
  49797. #. type: table
  49798. #: guix-git/doc/guix.texi:32663
  49799. msgid "The DNS server(s) to announce to VPN clients via DHCP."
  49800. msgstr ""
  49801. #. type: item
  49802. #: guix-git/doc/guix.texi:32664
  49803. #, fuzzy, no-wrap
  49804. msgid "@code{private-key} (default: @code{\"/etc/wireguard/private.key\"})"
  49805. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  49806. #. type: table
  49807. #: guix-git/doc/guix.texi:32667
  49808. msgid "The private key file for the interface. It is automatically generated if the file does not exist."
  49809. msgstr ""
  49810. #. type: item
  49811. #: guix-git/doc/guix.texi:32668
  49812. #, fuzzy, no-wrap
  49813. msgid "@code{peers} (default: @code{'()})"
  49814. msgstr "@code{features} (@code{'()})"
  49815. #. type: table
  49816. #: guix-git/doc/guix.texi:32671
  49817. msgid "The authorized peers on this interface. This is a list of @var{wireguard-peer} records."
  49818. msgstr ""
  49819. #. type: item
  49820. #: guix-git/doc/guix.texi:32672
  49821. #, fuzzy, no-wrap
  49822. msgid "@code{pre-up} (default: @code{'()})"
  49823. msgstr "@code{features} (@code{'()})"
  49824. #. type: table
  49825. #: guix-git/doc/guix.texi:32674
  49826. msgid "The script commands to be run before setting up the interface."
  49827. msgstr ""
  49828. #. type: item
  49829. #: guix-git/doc/guix.texi:32675
  49830. #, fuzzy, no-wrap
  49831. msgid "@code{post-up} (default: @code{'()})"
  49832. msgstr "@code{features} (@code{'()})"
  49833. #. type: table
  49834. #: guix-git/doc/guix.texi:32677
  49835. msgid "The script commands to be run after setting up the interface."
  49836. msgstr ""
  49837. #. type: item
  49838. #: guix-git/doc/guix.texi:32678
  49839. #, fuzzy, no-wrap
  49840. msgid "@code{pre-down} (default: @code{'()})"
  49841. msgstr "@code{features} (@code{'()})"
  49842. #. type: table
  49843. #: guix-git/doc/guix.texi:32680
  49844. msgid "The script commands to be run before tearing down the interface."
  49845. msgstr ""
  49846. #. type: item
  49847. #: guix-git/doc/guix.texi:32681
  49848. #, fuzzy, no-wrap
  49849. msgid "@code{post-down} (default: @code{'()})"
  49850. msgstr "@code{features} (@code{'()})"
  49851. #. type: table
  49852. #: guix-git/doc/guix.texi:32683
  49853. msgid "The script commands to be run after tearing down the interface."
  49854. msgstr ""
  49855. #. type: item
  49856. #: guix-git/doc/guix.texi:32684
  49857. #, fuzzy, no-wrap
  49858. msgid "@code{table} (default: @code{\"auto\"})"
  49859. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  49860. #. type: table
  49861. #: guix-git/doc/guix.texi:32689
  49862. msgid "The routing table to which routes are added, as a string. There are two special values: @code{\"off\"} that disables the creation of routes altogether, and @code{\"auto\"} (the default) that adds routes to the default table and enables special handling of default routes."
  49863. msgstr ""
  49864. #. type: deftp
  49865. #: guix-git/doc/guix.texi:32693
  49866. #, fuzzy, no-wrap
  49867. msgid "{Data Type} wireguard-peer"
  49868. msgstr "{数据类型} build-machine"
  49869. #. type: deftp
  49870. #: guix-git/doc/guix.texi:32695
  49871. #, fuzzy
  49872. msgid "Data type representing a Wireguard peer attached to a given interface."
  49873. msgstr "管理操作系统配置。"
  49874. #. type: table
  49875. #: guix-git/doc/guix.texi:32699
  49876. #, fuzzy
  49877. msgid "The peer name."
  49878. msgstr "仓库monad"
  49879. #. type: item
  49880. #: guix-git/doc/guix.texi:32700
  49881. #, fuzzy, no-wrap
  49882. msgid "@code{endpoint} (default: @code{#f})"
  49883. msgstr "@code{port}(默认值:@code{22})"
  49884. #. type: table
  49885. #: guix-git/doc/guix.texi:32703
  49886. msgid "The optional endpoint for the peer, such as @code{\"demo.wireguard.com:51820\"}."
  49887. msgstr ""
  49888. #. type: itemx
  49889. #: guix-git/doc/guix.texi:32704 guix-git/doc/guix.texi:33255
  49890. #: guix-git/doc/guix.texi:33292 guix-git/doc/guix.texi:39261
  49891. #, no-wrap
  49892. msgid "public-key"
  49893. msgstr ""
  49894. #. type: table
  49895. #: guix-git/doc/guix.texi:32706
  49896. msgid "The peer public-key represented as a base64 string."
  49897. msgstr ""
  49898. #. type: item
  49899. #: guix-git/doc/guix.texi:32707
  49900. #, fuzzy, no-wrap
  49901. msgid "@code{preshared-key} (default: @code{#f})"
  49902. msgstr "@code{speed}(默认值:@code{1.0})"
  49903. #. type: table
  49904. #: guix-git/doc/guix.texi:32710
  49905. msgid "An optional pre-shared key file for this peer. The given file will not be autogenerated."
  49906. msgstr ""
  49907. #. type: code{#1}
  49908. #: guix-git/doc/guix.texi:32711
  49909. #, no-wrap
  49910. msgid "allowed-ips"
  49911. msgstr ""
  49912. #. type: table
  49913. #: guix-git/doc/guix.texi:32714
  49914. 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."
  49915. msgstr ""
  49916. #. type: item
  49917. #: guix-git/doc/guix.texi:32715
  49918. #, fuzzy, no-wrap
  49919. msgid "@code{keep-alive} (default: @code{#f})"
  49920. msgstr "@code{challenge}(默认值:@code{#f})"
  49921. #. type: table
  49922. #: guix-git/doc/guix.texi:32720
  49923. 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."
  49924. msgstr ""
  49925. #. type: cindex
  49926. #: guix-git/doc/guix.texi:32726
  49927. #, no-wrap
  49928. msgid "NFS"
  49929. msgstr ""
  49930. #. type: Plain text
  49931. #: guix-git/doc/guix.texi:32731
  49932. 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)."
  49933. msgstr ""
  49934. #. type: Plain text
  49935. #: guix-git/doc/guix.texi:32735
  49936. 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}."
  49937. msgstr ""
  49938. #. type: subsubheading
  49939. #: guix-git/doc/guix.texi:32736
  49940. #, fuzzy, no-wrap
  49941. msgid "NFS Service"
  49942. msgstr "DNS服务"
  49943. #. type: cindex
  49944. #: guix-git/doc/guix.texi:32737
  49945. #, fuzzy, no-wrap
  49946. msgid "NFS, server"
  49947. msgstr "Web服务。"
  49948. #. type: Plain text
  49949. #: guix-git/doc/guix.texi:32742
  49950. 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."
  49951. msgstr ""
  49952. #. type: defvar
  49953. #: guix-git/doc/guix.texi:32743
  49954. #, fuzzy, no-wrap
  49955. msgid "nfs-service-type"
  49956. msgstr "邮件服务"
  49957. #. type: defvar
  49958. #: guix-git/doc/guix.texi:32745
  49959. msgid "A service type for a complete NFS server."
  49960. msgstr ""
  49961. #. type: deftp
  49962. #: guix-git/doc/guix.texi:32747
  49963. #, fuzzy, no-wrap
  49964. msgid "{Data Type} nfs-configuration"
  49965. msgstr "系统配置"
  49966. #. type: deftp
  49967. #: guix-git/doc/guix.texi:32750
  49968. msgid "This data type represents the configuration of the NFS service and all of its subsystems."
  49969. msgstr ""
  49970. #. type: deftp
  49971. #: guix-git/doc/guix.texi:32752
  49972. #, fuzzy
  49973. msgid "It has the following parameters:"
  49974. msgstr "GNU Guix依赖这些软件包:"
  49975. #. type: item
  49976. #: guix-git/doc/guix.texi:32753 guix-git/doc/guix.texi:32878
  49977. #: guix-git/doc/guix.texi:32903
  49978. #, no-wrap
  49979. msgid "@code{nfs-utils} (default: @code{nfs-utils})"
  49980. msgstr ""
  49981. #. type: table
  49982. #: guix-git/doc/guix.texi:32755
  49983. #, fuzzy
  49984. msgid "The nfs-utils package to use."
  49985. msgstr "软件包数据类型。"
  49986. #. type: item
  49987. #: guix-git/doc/guix.texi:32756
  49988. #, fuzzy, no-wrap
  49989. msgid "@code{nfs-versions} (default: @code{'(\"4.2\" \"4.1\" \"4.0\")})"
  49990. msgstr "@code{features} (@code{'()})"
  49991. #. type: table
  49992. #: guix-git/doc/guix.texi:32759
  49993. 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."
  49994. msgstr ""
  49995. #. type: item
  49996. #: guix-git/doc/guix.texi:32760
  49997. #, fuzzy, no-wrap
  49998. msgid "@code{exports} (default: @code{'()})"
  49999. msgstr "@code{port}(默认值:@code{22})"
  50000. #. type: table
  50001. #: guix-git/doc/guix.texi:32765
  50002. 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:"
  50003. msgstr ""
  50004. #. type: lisp
  50005. #: guix-git/doc/guix.texi:32771
  50006. #, no-wrap
  50007. msgid ""
  50008. "(nfs-configuration\n"
  50009. " (exports\n"
  50010. " '((\"/export\"\n"
  50011. " \"*(ro,insecure,no_subtree_check,crossmnt,fsid=0)\"))))\n"
  50012. msgstr ""
  50013. #. type: item
  50014. #: guix-git/doc/guix.texi:32773
  50015. #, fuzzy, no-wrap
  50016. msgid "@code{rpcmountd-port} (default: @code{#f})"
  50017. msgstr "@code{port}(默认值:@code{22})"
  50018. #. type: table
  50019. #: guix-git/doc/guix.texi:32775
  50020. msgid "The network port that the @command{rpc.mountd} daemon should use."
  50021. msgstr ""
  50022. #. type: item
  50023. #: guix-git/doc/guix.texi:32776
  50024. #, fuzzy, no-wrap
  50025. msgid "@code{rpcstatd-port} (default: @code{#f})"
  50026. msgstr "@code{port}(默认值:@code{22})"
  50027. #. type: table
  50028. #: guix-git/doc/guix.texi:32778
  50029. msgid "The network port that the @command{rpc.statd} daemon should use."
  50030. msgstr ""
  50031. #. type: item
  50032. #: guix-git/doc/guix.texi:32779 guix-git/doc/guix.texi:32827
  50033. #, no-wrap
  50034. msgid "@code{rpcbind} (default: @code{rpcbind})"
  50035. msgstr ""
  50036. #. type: table
  50037. #: guix-git/doc/guix.texi:32781 guix-git/doc/guix.texi:32829
  50038. msgid "The rpcbind package to use."
  50039. msgstr ""
  50040. #. type: item
  50041. #: guix-git/doc/guix.texi:32782
  50042. #, fuzzy, no-wrap
  50043. msgid "@code{idmap-domain} (default: @code{\"localdomain\"})"
  50044. msgstr "@code{mate}(默认值:@code{mate})"
  50045. #. type: table
  50046. #: guix-git/doc/guix.texi:32784
  50047. msgid "The local NFSv4 domain name."
  50048. msgstr ""
  50049. #. type: item
  50050. #: guix-git/doc/guix.texi:32785
  50051. #, fuzzy, no-wrap
  50052. msgid "@code{nfsd-port} (default: @code{2049})"
  50053. msgstr "@code{port}(默认值:@code{22})"
  50054. #. type: table
  50055. #: guix-git/doc/guix.texi:32787
  50056. msgid "The network port that the @command{nfsd} daemon should use."
  50057. msgstr ""
  50058. #. type: item
  50059. #: guix-git/doc/guix.texi:32788
  50060. #, fuzzy, no-wrap
  50061. msgid "@code{nfsd-threads} (default: @code{8})"
  50062. msgstr "@code{features} (@code{'()})"
  50063. #. type: table
  50064. #: guix-git/doc/guix.texi:32790
  50065. msgid "The number of threads used by the @command{nfsd} daemon."
  50066. msgstr ""
  50067. #. type: item
  50068. #: guix-git/doc/guix.texi:32791
  50069. #, fuzzy, no-wrap
  50070. msgid "@code{nfsd-tcp?} (default: @code{#t})"
  50071. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  50072. #. type: table
  50073. #: guix-git/doc/guix.texi:32793
  50074. msgid "Whether the @command{nfsd} daemon should listen on a TCP socket."
  50075. msgstr ""
  50076. #. type: item
  50077. #: guix-git/doc/guix.texi:32794
  50078. #, fuzzy, no-wrap
  50079. msgid "@code{nfsd-udp?} (default: @code{#f})"
  50080. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  50081. #. type: table
  50082. #: guix-git/doc/guix.texi:32796
  50083. msgid "Whether the @command{nfsd} daemon should listen on a UDP socket."
  50084. msgstr ""
  50085. #. type: item
  50086. #: guix-git/doc/guix.texi:32797 guix-git/doc/guix.texi:32881
  50087. #: guix-git/doc/guix.texi:32906
  50088. #, no-wrap
  50089. msgid "@code{pipefs-directory} (default: @code{\"/var/lib/nfs/rpc_pipefs\"})"
  50090. msgstr ""
  50091. #. type: table
  50092. #: guix-git/doc/guix.texi:32799 guix-git/doc/guix.texi:32883
  50093. #: guix-git/doc/guix.texi:32908
  50094. msgid "The directory where the pipefs file system is mounted."
  50095. msgstr ""
  50096. #. type: item
  50097. #: guix-git/doc/guix.texi:32800
  50098. #, fuzzy, no-wrap
  50099. msgid "@code{debug} (default: @code{'()\"})"
  50100. msgstr "@code{features} (@code{'()})"
  50101. #. type: table
  50102. #: guix-git/doc/guix.texi:32804
  50103. 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}."
  50104. msgstr ""
  50105. #. type: Plain text
  50106. #: guix-git/doc/guix.texi:32809
  50107. 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."
  50108. msgstr ""
  50109. #. type: subsubheading
  50110. #: guix-git/doc/guix.texi:32810
  50111. #, no-wrap
  50112. msgid "RPC Bind Service"
  50113. msgstr ""
  50114. #. type: cindex
  50115. #: guix-git/doc/guix.texi:32811
  50116. #, no-wrap
  50117. msgid "rpcbind"
  50118. msgstr ""
  50119. #. type: Plain text
  50120. #: guix-git/doc/guix.texi:32817
  50121. 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."
  50122. msgstr ""
  50123. #. type: defvar
  50124. #: guix-git/doc/guix.texi:32818
  50125. #, fuzzy, no-wrap
  50126. msgid "rpcbind-service-type"
  50127. msgstr "邮件服务"
  50128. #. type: defvar
  50129. #: guix-git/doc/guix.texi:32820
  50130. msgid "A service type for the RPC portmapper daemon."
  50131. msgstr ""
  50132. #. type: deftp
  50133. #: guix-git/doc/guix.texi:32823
  50134. #, no-wrap
  50135. msgid "{Data Type} rpcbind-configuration"
  50136. msgstr ""
  50137. #. type: deftp
  50138. #: guix-git/doc/guix.texi:32826
  50139. msgid "Data type representing the configuration of the RPC Bind Service. This type has the following parameters:"
  50140. msgstr ""
  50141. #. type: item
  50142. #: guix-git/doc/guix.texi:32830
  50143. #, no-wrap
  50144. msgid "@code{warm-start?} (default: @code{#t})"
  50145. msgstr ""
  50146. #. type: table
  50147. #: guix-git/doc/guix.texi:32834
  50148. 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."
  50149. msgstr ""
  50150. #. type: subsubheading
  50151. #: guix-git/doc/guix.texi:32838
  50152. #, no-wrap
  50153. msgid "Pipefs Pseudo File System"
  50154. msgstr ""
  50155. #. type: cindex
  50156. #: guix-git/doc/guix.texi:32839
  50157. #, no-wrap
  50158. msgid "pipefs"
  50159. msgstr ""
  50160. #. type: cindex
  50161. #: guix-git/doc/guix.texi:32840
  50162. #, no-wrap
  50163. msgid "rpc_pipefs"
  50164. msgstr ""
  50165. #. type: Plain text
  50166. #: guix-git/doc/guix.texi:32844
  50167. msgid "The pipefs file system is used to transfer NFS related data between the kernel and user space programs."
  50168. msgstr ""
  50169. #. type: defvar
  50170. #: guix-git/doc/guix.texi:32845
  50171. #, fuzzy, no-wrap
  50172. msgid "pipefs-service-type"
  50173. msgstr "邮件服务"
  50174. #. type: defvar
  50175. #: guix-git/doc/guix.texi:32847
  50176. msgid "A service type for the pipefs pseudo file system."
  50177. msgstr ""
  50178. #. type: deftp
  50179. #: guix-git/doc/guix.texi:32849
  50180. #, no-wrap
  50181. msgid "{Data Type} pipefs-configuration"
  50182. msgstr ""
  50183. #. type: deftp
  50184. #: guix-git/doc/guix.texi:32852
  50185. msgid "Data type representing the configuration of the pipefs pseudo file system service. This type has the following parameters:"
  50186. msgstr ""
  50187. #. type: item
  50188. #: guix-git/doc/guix.texi:32853
  50189. #, no-wrap
  50190. msgid "@code{mount-point} (default: @code{\"/var/lib/nfs/rpc_pipefs\"})"
  50191. msgstr ""
  50192. #. type: table
  50193. #: guix-git/doc/guix.texi:32855
  50194. msgid "The directory to which the file system is to be attached."
  50195. msgstr ""
  50196. #. type: subsubheading
  50197. #: guix-git/doc/guix.texi:32859
  50198. #, no-wrap
  50199. msgid "GSS Daemon Service"
  50200. msgstr ""
  50201. #. type: cindex
  50202. #: guix-git/doc/guix.texi:32860
  50203. #, no-wrap
  50204. msgid "GSSD"
  50205. msgstr ""
  50206. #. type: cindex
  50207. #: guix-git/doc/guix.texi:32861
  50208. #, no-wrap
  50209. msgid "GSS"
  50210. msgstr ""
  50211. #. type: cindex
  50212. #: guix-git/doc/guix.texi:32862
  50213. #, no-wrap
  50214. msgid "global security system"
  50215. msgstr ""
  50216. #. type: Plain text
  50217. #: guix-git/doc/guix.texi:32869
  50218. 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})."
  50219. msgstr ""
  50220. #. type: defvar
  50221. #: guix-git/doc/guix.texi:32870
  50222. #, fuzzy, no-wrap
  50223. msgid "gss-service-type"
  50224. msgstr "邮件服务"
  50225. #. type: defvar
  50226. #: guix-git/doc/guix.texi:32872
  50227. msgid "A service type for the Global Security System (GSS) daemon."
  50228. msgstr ""
  50229. #. type: deftp
  50230. #: guix-git/doc/guix.texi:32874
  50231. #, no-wrap
  50232. msgid "{Data Type} gss-configuration"
  50233. msgstr ""
  50234. #. type: deftp
  50235. #: guix-git/doc/guix.texi:32877
  50236. msgid "Data type representing the configuration of the GSS daemon service. This type has the following parameters:"
  50237. msgstr ""
  50238. #. type: table
  50239. #: guix-git/doc/guix.texi:32880
  50240. msgid "The package in which the @command{rpc.gssd} command is to be found."
  50241. msgstr ""
  50242. #. type: subsubheading
  50243. #: guix-git/doc/guix.texi:32888
  50244. #, no-wrap
  50245. msgid "IDMAP Daemon Service"
  50246. msgstr ""
  50247. #. type: cindex
  50248. #: guix-git/doc/guix.texi:32889
  50249. #, no-wrap
  50250. msgid "idmapd"
  50251. msgstr ""
  50252. #. type: cindex
  50253. #: guix-git/doc/guix.texi:32890
  50254. #, no-wrap
  50255. msgid "name mapper"
  50256. msgstr ""
  50257. #. type: Plain text
  50258. #: guix-git/doc/guix.texi:32894
  50259. 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."
  50260. msgstr ""
  50261. #. type: defvar
  50262. #: guix-git/doc/guix.texi:32895
  50263. #, fuzzy, no-wrap
  50264. msgid "idmap-service-type"
  50265. msgstr "邮件服务"
  50266. #. type: defvar
  50267. #: guix-git/doc/guix.texi:32897
  50268. msgid "A service type for the Identity Mapper (IDMAP) daemon."
  50269. msgstr ""
  50270. #. type: deftp
  50271. #: guix-git/doc/guix.texi:32899
  50272. #, no-wrap
  50273. msgid "{Data Type} idmap-configuration"
  50274. msgstr ""
  50275. #. type: deftp
  50276. #: guix-git/doc/guix.texi:32902
  50277. msgid "Data type representing the configuration of the IDMAP daemon service. This type has the following parameters:"
  50278. msgstr ""
  50279. #. type: table
  50280. #: guix-git/doc/guix.texi:32905
  50281. msgid "The package in which the @command{rpc.idmapd} command is to be found."
  50282. msgstr ""
  50283. #. type: item
  50284. #: guix-git/doc/guix.texi:32909 guix-git/doc/guix.texi:33052
  50285. #, no-wrap
  50286. msgid "@code{domain} (default: @code{#f})"
  50287. msgstr ""
  50288. #. type: table
  50289. #: guix-git/doc/guix.texi:32913
  50290. 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."
  50291. msgstr ""
  50292. #. type: item
  50293. #: guix-git/doc/guix.texi:32914
  50294. #, fuzzy, no-wrap
  50295. msgid "@code{verbosity} (default: @code{0})"
  50296. msgstr "@code{port}(默认值:@code{22})"
  50297. #. type: table
  50298. #: guix-git/doc/guix.texi:32916
  50299. #, fuzzy
  50300. msgid "The verbosity level of the daemon."
  50301. msgstr "远程机器的主机名。"
  50302. #. type: subsubheading
  50303. #: guix-git/doc/guix.texi:32923 guix-git/doc/guix.texi:32929
  50304. #, no-wrap
  50305. msgid "Samba"
  50306. msgstr ""
  50307. #. type: cindex
  50308. #: guix-git/doc/guix.texi:32924
  50309. #, no-wrap
  50310. msgid "SMB"
  50311. msgstr ""
  50312. #. type: Plain text
  50313. #: guix-git/doc/guix.texi:32928
  50314. msgid "The @code{(gnu services samba)} module provides service definitions for Samba as well as additional helper services. Currently it provides the following services."
  50315. msgstr ""
  50316. #. type: Plain text
  50317. #: guix-git/doc/guix.texi:32936
  50318. msgid "@uref{https://www.samba.org, Samba} provides network shares for folders and printers using the SMB/CIFS protocol commonly used on Windows. It can also act as an Active Directory Domain Controller (AD DC) for other hosts in an heterougenious network with different types of Computer systems."
  50319. msgstr ""
  50320. #. type: defvar
  50321. #: guix-git/doc/guix.texi:32937
  50322. #, fuzzy, no-wrap
  50323. msgid "samba-service-type"
  50324. msgstr "邮件服务"
  50325. #. type: defvar
  50326. #: guix-git/doc/guix.texi:32942
  50327. msgid "The service type to enable the samba services @code{samba}, @code{nmbd}, @code{smbd} and @code{winbindd}. By default this service type does not run any of the Samba daemons; they must be enabled individually."
  50328. msgstr ""
  50329. #. type: defvar
  50330. #: guix-git/doc/guix.texi:32946
  50331. msgid "Below is a basic example that configures a simple, anonymous (unauthenticated) Samba file share exposing the @file{/public} directory."
  50332. msgstr ""
  50333. #. type: quotation
  50334. #: guix-git/doc/guix.texi:32951
  50335. msgid "The @file{/public} directory and its contents must be world readable/writable, so you'll want to run @samp{chmod -R 777 /public} on it."
  50336. msgstr ""
  50337. #. type: quotation
  50338. #: guix-git/doc/guix.texi:32953
  50339. #, fuzzy, no-wrap
  50340. #| msgid "isolation"
  50341. msgid "Caution"
  50342. msgstr "隔离"
  50343. #. type: quotation
  50344. #: guix-git/doc/guix.texi:32957
  50345. msgid "Such a Samba configuration should only be used in controlled environments, and you should not share any private files using it, as anyone connecting to your network would be able to access them."
  50346. msgstr ""
  50347. #. type: lisp
  50348. #: guix-git/doc/guix.texi:32966
  50349. #, no-wrap
  50350. msgid ""
  50351. "(service samba-service-type (samba-configuration\n"
  50352. " (enable-smbd? #t)\n"
  50353. " (config-file (plain-file \"smb.conf\" \"\\\n"
  50354. "[global]\n"
  50355. "map to guest = Bad User\n"
  50356. "logging = syslog@@1\n"
  50357. "\n"
  50358. msgstr ""
  50359. #. type: lisp
  50360. #: guix-git/doc/guix.texi:32973
  50361. #, no-wrap
  50362. msgid ""
  50363. "[public]\n"
  50364. "browsable = yes\n"
  50365. "path = /public\n"
  50366. "read only = no\n"
  50367. "guest ok = yes\n"
  50368. "guest only = yes\\n\"))))\n"
  50369. msgstr ""
  50370. #. type: deftp
  50371. #: guix-git/doc/guix.texi:32977
  50372. #, fuzzy, no-wrap
  50373. msgid "{Data Type} samba-service-configuration"
  50374. msgstr "{数据类型} build-machine"
  50375. #. type: deftp
  50376. #: guix-git/doc/guix.texi:32979
  50377. #, fuzzy
  50378. msgid "Configuration record for the Samba suite."
  50379. msgstr "管理操作系统配置。"
  50380. #. type: item
  50381. #: guix-git/doc/guix.texi:32981
  50382. #, fuzzy, no-wrap
  50383. msgid "@code{package} (default: @code{samba})"
  50384. msgstr "@code{mate}(默认值:@code{mate})"
  50385. #. type: table
  50386. #: guix-git/doc/guix.texi:32983
  50387. #, fuzzy
  50388. msgid "The samba package to use."
  50389. msgstr "软件包数据类型。"
  50390. #. type: table
  50391. #: guix-git/doc/guix.texi:32987
  50392. msgid "The config file to use. To learn about its syntax, run @samp{man smb.conf}."
  50393. msgstr ""
  50394. #. type: item
  50395. #: guix-git/doc/guix.texi:32988
  50396. #, fuzzy, no-wrap
  50397. msgid "@code{enable-samba?} (default: @code{#f})"
  50398. msgstr "@code{speed}(默认值:@code{1.0})"
  50399. #. type: table
  50400. #: guix-git/doc/guix.texi:32990
  50401. msgid "Enable the @code{samba} daemon."
  50402. msgstr ""
  50403. #. type: item
  50404. #: guix-git/doc/guix.texi:32991
  50405. #, fuzzy, no-wrap
  50406. msgid "@code{enable-smbd?} (default: @code{#f})"
  50407. msgstr "@code{speed}(默认值:@code{1.0})"
  50408. #. type: table
  50409. #: guix-git/doc/guix.texi:32993
  50410. msgid "Enable the @code{smbd} daemon."
  50411. msgstr ""
  50412. #. type: item
  50413. #: guix-git/doc/guix.texi:32994
  50414. #, fuzzy, no-wrap
  50415. msgid "@code{enable-nmbd?} (default: @code{#f})"
  50416. msgstr "@code{speed}(默认值:@code{1.0})"
  50417. #. type: table
  50418. #: guix-git/doc/guix.texi:32996
  50419. msgid "Enable the @code{nmbd} daemon."
  50420. msgstr ""
  50421. #. type: item
  50422. #: guix-git/doc/guix.texi:32997
  50423. #, fuzzy, no-wrap
  50424. msgid "@code{enable-winbindd?} (default: @code{#f})"
  50425. msgstr "@code{speed}(默认值:@code{1.0})"
  50426. #. type: table
  50427. #: guix-git/doc/guix.texi:32999
  50428. msgid "Enable the @code{winbindd} daemon."
  50429. msgstr ""
  50430. #. type: cindex
  50431. #: guix-git/doc/guix.texi:33003
  50432. #, fuzzy, no-wrap
  50433. #| msgid "Web Services"
  50434. msgid "wsdd, Web service discovery daemon"
  50435. msgstr "Web服务"
  50436. #. type: subsubheading
  50437. #: guix-git/doc/guix.texi:33004
  50438. #, fuzzy, no-wrap
  50439. #| msgid "Web Services"
  50440. msgid "Web Service Discovery Daemon"
  50441. msgstr "Web服务"
  50442. #. type: Plain text
  50443. #: guix-git/doc/guix.texi:33012
  50444. msgid "The @acronym{WSDD, Web Service Discovery daemon} implements the @uref{http://docs.oasis-open.org/ws-dd/discovery/1.1/os/wsdd-discovery-1.1-spec-os.html, Web Services Dynamic Discovery} protocol that enables host discovery over Multicast DNS, similar to what Avahi does. It is a drop-in replacement for SMB hosts that have had SMBv1 disabled for security reasons."
  50445. msgstr ""
  50446. #. type: defvar
  50447. #: guix-git/doc/guix.texi:33013
  50448. #, fuzzy, no-wrap
  50449. msgid "wsdd-service-type"
  50450. msgstr "邮件服务"
  50451. #. type: defvar
  50452. #: guix-git/doc/guix.texi:33017
  50453. msgid "Service type for the WSD host daemon. The value for this service type is a @code{wsdd-configuration} record. The details for the @code{wsdd-configuration} record type are given below."
  50454. msgstr ""
  50455. #. type: deftp
  50456. #: guix-git/doc/guix.texi:33019
  50457. #, fuzzy, no-wrap
  50458. msgid "{Data Type} wsdd-configuration"
  50459. msgstr "{数据类型} build-machine"
  50460. #. type: deftp
  50461. #: guix-git/doc/guix.texi:33021
  50462. #, fuzzy
  50463. msgid "This data type represents the configuration for the wsdd service."
  50464. msgstr "管理操作系统配置。"
  50465. #. type: item
  50466. #: guix-git/doc/guix.texi:33024
  50467. #, fuzzy, no-wrap
  50468. msgid "@code{package} (default: @code{wsdd})"
  50469. msgstr "@code{mate}(默认值:@code{mate})"
  50470. #. type: table
  50471. #: guix-git/doc/guix.texi:33026
  50472. #, fuzzy
  50473. msgid "The wsdd package to use."
  50474. msgstr "软件包数据类型。"
  50475. #. type: item
  50476. #: guix-git/doc/guix.texi:33027
  50477. #, fuzzy, no-wrap
  50478. msgid "@code{ipv4only?} (default: @code{#f})"
  50479. msgstr "@code{port}(默认值:@code{22})"
  50480. #. type: table
  50481. #: guix-git/doc/guix.texi:33029
  50482. msgid "Only listen to IPv4 addresses."
  50483. msgstr ""
  50484. #. type: item
  50485. #: guix-git/doc/guix.texi:33030
  50486. #, fuzzy, no-wrap
  50487. msgid "@code{ipv6only} (default: @code{#f})"
  50488. msgstr "@code{port}(默认值:@code{22})"
  50489. #. type: table
  50490. #: guix-git/doc/guix.texi:33033
  50491. msgid "Only listen to IPv6 addresses. Please note: Activating both options is not possible, since there would be no IP versions to listen to."
  50492. msgstr ""
  50493. #. type: table
  50494. #: guix-git/doc/guix.texi:33038
  50495. msgid "Chroot into a separate directory to prevent access to other directories. This is to increase security in case there is a vulnerability in @command{wsdd}."
  50496. msgstr ""
  50497. #. type: item
  50498. #: guix-git/doc/guix.texi:33039
  50499. #, fuzzy, no-wrap
  50500. msgid "@code{hop-limit} (default: @code{1})"
  50501. msgstr "@code{port}(默认值:@code{22})"
  50502. #. type: table
  50503. #: guix-git/doc/guix.texi:33042
  50504. msgid "Limit to the level of hops for multicast packets. The default is @var{1} which should prevent packets from leaving the local network."
  50505. msgstr ""
  50506. #. type: item
  50507. #: guix-git/doc/guix.texi:33043
  50508. #, fuzzy, no-wrap
  50509. msgid "@code{interface} (default: @code{'()})"
  50510. msgstr "@code{features} (@code{'()})"
  50511. #. type: table
  50512. #: guix-git/doc/guix.texi:33047
  50513. msgid "Limit to the given list of interfaces to listen to. By default wsdd will listen to all interfaces. Except the loopback interface is never used."
  50514. msgstr ""
  50515. #. type: item
  50516. #: guix-git/doc/guix.texi:33048
  50517. #, fuzzy, no-wrap
  50518. msgid "@code{uuid-device} (default: @code{#f})"
  50519. msgstr "@code{speed}(默认值:@code{1.0})"
  50520. #. type: table
  50521. #: guix-git/doc/guix.texi:33051
  50522. msgid "The WSD protocol requires a device to have a UUID. Set this to manually assign the service a UUID."
  50523. msgstr ""
  50524. #. type: table
  50525. #: guix-git/doc/guix.texi:33054
  50526. msgid "Notify this host is a member of an Active Directory."
  50527. msgstr ""
  50528. #. type: table
  50529. #: guix-git/doc/guix.texi:33059
  50530. msgid "Manually set the hostname rather than letting @command{wsdd} inherit this host's hostname. Only the host name part of a possible FQDN will be used in the default case."
  50531. msgstr ""
  50532. #. type: item
  50533. #: guix-git/doc/guix.texi:33060
  50534. #, fuzzy, no-wrap
  50535. msgid "@code{preserve-case?} (default: @code{#f})"
  50536. msgstr "@code{speed}(默认值:@code{1.0})"
  50537. #. type: table
  50538. #: guix-git/doc/guix.texi:33064
  50539. msgid "By default @command{wsdd} will convert the hostname in workgroup to all uppercase. The opposite is true for hostnames in domains. Setting this parameter will preserve case."
  50540. msgstr ""
  50541. #. type: item
  50542. #: guix-git/doc/guix.texi:33065
  50543. #, fuzzy, no-wrap
  50544. msgid "@code{workgroup} (default: @var{\"WORKGROUP\"})"
  50545. msgstr "@code{gnome}(默认值:@code{gnome})"
  50546. #. type: table
  50547. #: guix-git/doc/guix.texi:33068
  50548. msgid "Change the name of the workgroup. By default @command{wsdd} reports this host being member of a workgroup."
  50549. msgstr ""
  50550. #. type: Plain text
  50551. #: guix-git/doc/guix.texi:33079
  50552. 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})."
  50553. msgstr ""
  50554. #. type: Plain text
  50555. #: guix-git/doc/guix.texi:33081
  50556. msgid "The @code{(gnu services cuirass)} module provides the following service."
  50557. msgstr ""
  50558. #. type: defvr
  50559. #: guix-git/doc/guix.texi:33082
  50560. #, no-wrap
  50561. msgid "{Scheme Procedure} cuirass-service-type"
  50562. msgstr ""
  50563. #. type: defvr
  50564. #: guix-git/doc/guix.texi:33085
  50565. msgid "The type of the Cuirass service. Its value must be a @code{cuirass-configuration} object, as described below."
  50566. msgstr ""
  50567. #. type: Plain text
  50568. #: guix-git/doc/guix.texi:33090
  50569. 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."
  50570. msgstr ""
  50571. #. type: lisp
  50572. #: guix-git/doc/guix.texi:33101
  50573. #, no-wrap
  50574. msgid ""
  50575. "(define %cuirass-specs\n"
  50576. " #~(list (specification\n"
  50577. " (name \"my-channel\")\n"
  50578. " (build '(channels my-channel))\n"
  50579. " (channels\n"
  50580. " (cons (channel\n"
  50581. " (name 'my-channel)\n"
  50582. " (url \"https://my-channel.git\"))\n"
  50583. " %default-channels)))))\n"
  50584. "\n"
  50585. msgstr ""
  50586. #. type: lisp
  50587. #: guix-git/doc/guix.texi:33105 guix-git/doc/guix.texi:33119
  50588. #, no-wrap
  50589. msgid ""
  50590. "(service cuirass-service-type\n"
  50591. " (cuirass-configuration\n"
  50592. " (specifications %cuirass-specs)))\n"
  50593. msgstr ""
  50594. #. type: Plain text
  50595. #: guix-git/doc/guix.texi:33109
  50596. msgid "To build the @code{linux-libre} package defined by the default Guix channel, one can use the following configuration."
  50597. msgstr ""
  50598. #. type: lisp
  50599. #: guix-git/doc/guix.texi:33115
  50600. #, no-wrap
  50601. msgid ""
  50602. "(define %cuirass-specs\n"
  50603. " #~(list (specification\n"
  50604. " (name \"my-linux\")\n"
  50605. " (build '(packages \"linux-libre\")))))\n"
  50606. "\n"
  50607. msgstr ""
  50608. #. type: Plain text
  50609. #: guix-git/doc/guix.texi:33124
  50610. msgid "The other configuration possibilities, as well as the specification record itself are described in the Cuirass manual (@pxref{Specifications,,, cuirass, Cuirass})."
  50611. msgstr ""
  50612. #. type: Plain text
  50613. #: guix-git/doc/guix.texi:33128
  50614. 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."
  50615. msgstr ""
  50616. #. type: deftp
  50617. #: guix-git/doc/guix.texi:33129
  50618. #, no-wrap
  50619. msgid "{Data Type} cuirass-configuration"
  50620. msgstr ""
  50621. #. type: deftp
  50622. #: guix-git/doc/guix.texi:33131
  50623. msgid "Data type representing the configuration of Cuirass."
  50624. msgstr ""
  50625. #. type: item
  50626. #: guix-git/doc/guix.texi:33133 guix-git/doc/guix.texi:33270
  50627. #, no-wrap
  50628. msgid "@code{cuirass} (default: @code{cuirass})"
  50629. msgstr ""
  50630. #. type: table
  50631. #: guix-git/doc/guix.texi:33135 guix-git/doc/guix.texi:33272
  50632. msgid "The Cuirass package to use."
  50633. msgstr ""
  50634. #. type: item
  50635. #: guix-git/doc/guix.texi:33136
  50636. #, no-wrap
  50637. msgid "@code{log-file} (default: @code{\"/var/log/cuirass.log\"})"
  50638. msgstr ""
  50639. #. type: table
  50640. #: guix-git/doc/guix.texi:33138 guix-git/doc/guix.texi:33242
  50641. #: guix-git/doc/guix.texi:33285
  50642. msgid "Location of the log file."
  50643. msgstr ""
  50644. #. type: item
  50645. #: guix-git/doc/guix.texi:33139
  50646. #, fuzzy, no-wrap
  50647. msgid "@code{web-log-file} (default: @code{\"/var/log/cuirass-web.log\"})"
  50648. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  50649. #. type: table
  50650. #: guix-git/doc/guix.texi:33141
  50651. msgid "Location of the log file used by the web interface."
  50652. msgstr ""
  50653. #. type: item
  50654. #: guix-git/doc/guix.texi:33142
  50655. #, no-wrap
  50656. msgid "@code{cache-directory} (default: @code{\"/var/cache/cuirass\"})"
  50657. msgstr ""
  50658. #. type: table
  50659. #: guix-git/doc/guix.texi:33144
  50660. msgid "Location of the repository cache."
  50661. msgstr ""
  50662. #. type: item
  50663. #: guix-git/doc/guix.texi:33145
  50664. #, no-wrap
  50665. msgid "@code{user} (default: @code{\"cuirass\"})"
  50666. msgstr ""
  50667. #. type: table
  50668. #: guix-git/doc/guix.texi:33147
  50669. msgid "Owner of the @code{cuirass} process."
  50670. msgstr ""
  50671. #. type: item
  50672. #: guix-git/doc/guix.texi:33148
  50673. #, no-wrap
  50674. msgid "@code{group} (default: @code{\"cuirass\"})"
  50675. msgstr ""
  50676. #. type: table
  50677. #: guix-git/doc/guix.texi:33150
  50678. msgid "Owner's group of the @code{cuirass} process."
  50679. msgstr ""
  50680. #. type: item
  50681. #: guix-git/doc/guix.texi:33151
  50682. #, no-wrap
  50683. msgid "@code{interval} (default: @code{60})"
  50684. msgstr ""
  50685. #. type: table
  50686. #: guix-git/doc/guix.texi:33154
  50687. msgid "Number of seconds between the poll of the repositories followed by the Cuirass jobs."
  50688. msgstr ""
  50689. #. type: item
  50690. #: guix-git/doc/guix.texi:33155
  50691. #, fuzzy, no-wrap
  50692. msgid "@code{parameters} (default: @code{#f})"
  50693. msgstr "@code{port}(默认值:@code{22})"
  50694. #. type: table
  50695. #: guix-git/doc/guix.texi:33158
  50696. msgid "Read parameters from the given @var{parameters} file. The supported parameters are described here (@pxref{Parameters,,, cuirass, Cuirass})."
  50697. msgstr ""
  50698. #. type: item
  50699. #: guix-git/doc/guix.texi:33159
  50700. #, fuzzy, no-wrap
  50701. msgid "@code{remote-server} (default: @code{#f})"
  50702. msgstr "@code{speed}(默认值:@code{1.0})"
  50703. #. type: table
  50704. #: guix-git/doc/guix.texi:33162
  50705. msgid "A @code{cuirass-remote-server-configuration} record to use the build remote mechanism or @code{#f} to use the default build mechanism."
  50706. msgstr ""
  50707. #. type: item
  50708. #: guix-git/doc/guix.texi:33163
  50709. #, fuzzy, no-wrap
  50710. msgid "@code{database} (default: @code{\"dbname=cuirass host=/var/run/postgresql\"})"
  50711. msgstr "@code{port}(默认值:@code{22})"
  50712. #. type: table
  50713. #: guix-git/doc/guix.texi:33168
  50714. 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\"}."
  50715. msgstr ""
  50716. #. type: item
  50717. #: guix-git/doc/guix.texi:33169
  50718. #, no-wrap
  50719. msgid "@code{port} (default: @code{8081})"
  50720. msgstr ""
  50721. #. type: table
  50722. #: guix-git/doc/guix.texi:33171
  50723. msgid "Port number used by the HTTP server."
  50724. msgstr ""
  50725. #. type: table
  50726. #: guix-git/doc/guix.texi:33175
  50727. msgid "Listen on the network interface for @var{host}. The default is to accept connections from localhost."
  50728. msgstr ""
  50729. #. type: item
  50730. #: guix-git/doc/guix.texi:33176
  50731. #, no-wrap
  50732. msgid "@code{specifications} (default: @code{#~'()})"
  50733. msgstr ""
  50734. #. type: table
  50735. #: guix-git/doc/guix.texi:33180
  50736. 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})."
  50737. msgstr ""
  50738. #. type: item
  50739. #: guix-git/doc/guix.texi:33181
  50740. #, no-wrap
  50741. msgid "@code{use-substitutes?} (default: @code{#f})"
  50742. msgstr ""
  50743. #. type: table
  50744. #: guix-git/doc/guix.texi:33184
  50745. msgid "This allows using substitutes to avoid building every dependencies of a job from source."
  50746. msgstr ""
  50747. #. type: item
  50748. #: guix-git/doc/guix.texi:33185 guix-git/doc/guix.texi:41460
  50749. #, no-wrap
  50750. msgid "@code{one-shot?} (default: @code{#f})"
  50751. msgstr ""
  50752. #. type: table
  50753. #: guix-git/doc/guix.texi:33187
  50754. msgid "Only evaluate specifications and build derivations once."
  50755. msgstr ""
  50756. #. type: item
  50757. #: guix-git/doc/guix.texi:33188
  50758. #, no-wrap
  50759. msgid "@code{fallback?} (default: @code{#f})"
  50760. msgstr ""
  50761. #. type: table
  50762. #: guix-git/doc/guix.texi:33191
  50763. msgid "When substituting a pre-built binary fails, fall back to building packages locally."
  50764. msgstr ""
  50765. #. type: table
  50766. #: guix-git/doc/guix.texi:33194
  50767. msgid "Extra options to pass when running the Cuirass processes."
  50768. msgstr ""
  50769. #. type: cindex
  50770. #: guix-git/doc/guix.texi:33198
  50771. #, fuzzy, no-wrap
  50772. msgid "remote build"
  50773. msgstr "可复现的构建"
  50774. #. type: subsubheading
  50775. #: guix-git/doc/guix.texi:33199
  50776. #, no-wrap
  50777. msgid "Cuirass remote building"
  50778. msgstr ""
  50779. #. type: Plain text
  50780. #: guix-git/doc/guix.texi:33202
  50781. msgid "Cuirass supports two mechanisms to build derivations."
  50782. msgstr ""
  50783. #. type: item
  50784. #: guix-git/doc/guix.texi:33204
  50785. #, fuzzy, no-wrap
  50786. msgid "Using the local Guix daemon."
  50787. msgstr "运行“构建后台进程”"
  50788. #. type: itemize
  50789. #: guix-git/doc/guix.texi:33208
  50790. 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."
  50791. msgstr ""
  50792. #. type: item
  50793. #: guix-git/doc/guix.texi:33209
  50794. #, fuzzy, no-wrap
  50795. msgid "Using the remote build mechanism."
  50796. msgstr "准备隔离的构建环境。"
  50797. #. type: itemize
  50798. #: guix-git/doc/guix.texi:33213
  50799. 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."
  50800. msgstr ""
  50801. #. type: Plain text
  50802. #: guix-git/doc/guix.texi:33220
  50803. 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."
  50804. msgstr ""
  50805. #. type: Plain text
  50806. #: guix-git/doc/guix.texi:33225
  50807. 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."
  50808. msgstr ""
  50809. #. type: deftp
  50810. #: guix-git/doc/guix.texi:33226
  50811. #, fuzzy, no-wrap
  50812. msgid "{Data Type} cuirass-remote-server-configuration"
  50813. msgstr "{数据类型} build-machine"
  50814. #. type: deftp
  50815. #: guix-git/doc/guix.texi:33228
  50816. #, fuzzy
  50817. msgid "Data type representing the configuration of the Cuirass remote-server."
  50818. msgstr "管理操作系统配置。"
  50819. #. type: item
  50820. #: guix-git/doc/guix.texi:33230
  50821. #, fuzzy, no-wrap
  50822. msgid "@code{backend-port} (default: @code{5555})"
  50823. msgstr "@code{port}(默认值:@code{22})"
  50824. #. type: table
  50825. #: guix-git/doc/guix.texi:33233
  50826. msgid "The TCP port for communicating with @code{remote-worker} processes using ZMQ. It defaults to @code{5555}."
  50827. msgstr ""
  50828. #. type: item
  50829. #: guix-git/doc/guix.texi:33234
  50830. #, fuzzy, no-wrap
  50831. msgid "@code{log-port} (default: @code{5556})"
  50832. msgstr "@code{port}(默认值:@code{22})"
  50833. #. type: table
  50834. #: guix-git/doc/guix.texi:33236
  50835. msgid "The TCP port of the log server. It defaults to @code{5556}."
  50836. msgstr ""
  50837. #. type: item
  50838. #: guix-git/doc/guix.texi:33237
  50839. #, fuzzy, no-wrap
  50840. msgid "@code{publish-port} (default: @code{5557})"
  50841. msgstr "@code{port}(默认值:@code{22})"
  50842. #. type: table
  50843. #: guix-git/doc/guix.texi:33239
  50844. msgid "The TCP port of the publish server. It defaults to @code{5557}."
  50845. msgstr ""
  50846. #. type: item
  50847. #: guix-git/doc/guix.texi:33240
  50848. #, fuzzy, no-wrap
  50849. msgid "@code{log-file} (default: @code{\"/var/log/cuirass-remote-server.log\"})"
  50850. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  50851. #. type: item
  50852. #: guix-git/doc/guix.texi:33243
  50853. #, fuzzy, no-wrap
  50854. msgid "@code{cache} (default: @code{\"/var/cache/cuirass/remote\"})"
  50855. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  50856. #. type: table
  50857. #: guix-git/doc/guix.texi:33245
  50858. msgid "Use @var{cache} directory to cache build log files."
  50859. msgstr ""
  50860. #. type: item
  50861. #: guix-git/doc/guix.texi:33246
  50862. #, fuzzy, no-wrap
  50863. msgid "@code{trigger-url} (default: @code{#f})"
  50864. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  50865. #. type: table
  50866. #: guix-git/doc/guix.texi:33249
  50867. msgid "Once a substitute is successfully fetched, trigger substitute baking at @var{trigger-url}."
  50868. msgstr ""
  50869. #. type: table
  50870. #: guix-git/doc/guix.texi:33254
  50871. 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."
  50872. msgstr ""
  50873. #. type: code{#1}
  50874. #: guix-git/doc/guix.texi:33256 guix-git/doc/guix.texi:33293
  50875. #, no-wrap
  50876. msgid "private-key"
  50877. msgstr ""
  50878. #. type: Plain text
  50879. #: guix-git/doc/guix.texi:33265
  50880. 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."
  50881. msgstr ""
  50882. #. type: deftp
  50883. #: guix-git/doc/guix.texi:33266
  50884. #, fuzzy, no-wrap
  50885. msgid "{Data Type} cuirass-remote-worker-configuration"
  50886. msgstr "{数据类型} build-machine"
  50887. #. type: deftp
  50888. #: guix-git/doc/guix.texi:33268
  50889. #, fuzzy
  50890. msgid "Data type representing the configuration of the Cuirass remote-worker."
  50891. msgstr "管理操作系统配置。"
  50892. #. type: item
  50893. #: guix-git/doc/guix.texi:33273
  50894. #, fuzzy, no-wrap
  50895. msgid "@code{workers} (default: @code{1})"
  50896. msgstr "@code{features} (@code{'()})"
  50897. #. type: table
  50898. #: guix-git/doc/guix.texi:33275
  50899. msgid "Start @var{workers} parallel workers."
  50900. msgstr ""
  50901. #. type: table
  50902. #: guix-git/doc/guix.texi:33279
  50903. msgid "Do not use Avahi discovery and connect to the given @code{server} IP address instead."
  50904. msgstr ""
  50905. #. type: item
  50906. #: guix-git/doc/guix.texi:33280
  50907. #, fuzzy, no-wrap
  50908. msgid "@code{systems} (default: @code{(list (%current-system))})"
  50909. msgstr "@code{port}(默认值:@code{22})"
  50910. #. type: table
  50911. #: guix-git/doc/guix.texi:33282
  50912. msgid "Only request builds for the given @var{systems}."
  50913. msgstr ""
  50914. #. type: item
  50915. #: guix-git/doc/guix.texi:33283
  50916. #, fuzzy, no-wrap
  50917. msgid "@code{log-file} (default: @code{\"/var/log/cuirass-remote-worker.log\"})"
  50918. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  50919. #. type: item
  50920. #: guix-git/doc/guix.texi:33286
  50921. #, fuzzy, no-wrap
  50922. msgid "@code{publish-port} (default: @code{5558})"
  50923. msgstr "@code{port}(默认值:@code{22})"
  50924. #. type: table
  50925. #: guix-git/doc/guix.texi:33288
  50926. msgid "The TCP port of the publish server. It defaults to @code{5558}."
  50927. msgstr ""
  50928. #. type: subsubheading
  50929. #: guix-git/doc/guix.texi:33300
  50930. #, no-wrap
  50931. msgid "Laminar"
  50932. msgstr ""
  50933. #. type: Plain text
  50934. #: guix-git/doc/guix.texi:33305
  50935. 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."
  50936. msgstr ""
  50937. #. type: Plain text
  50938. #: guix-git/doc/guix.texi:33308
  50939. msgid "Laminar encourages the use of existing tools such as bash and cron instead of reinventing them."
  50940. msgstr ""
  50941. #. type: defvr
  50942. #: guix-git/doc/guix.texi:33309
  50943. #, no-wrap
  50944. msgid "{Scheme Procedure} laminar-service-type"
  50945. msgstr ""
  50946. #. type: defvr
  50947. #: guix-git/doc/guix.texi:33312
  50948. msgid "The type of the Laminar service. Its value must be a @code{laminar-configuration} object, as described below."
  50949. msgstr ""
  50950. #. type: defvr
  50951. #: guix-git/doc/guix.texi:33316
  50952. 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."
  50953. msgstr ""
  50954. #. type: lisp
  50955. #: guix-git/doc/guix.texi:33319
  50956. #, no-wrap
  50957. msgid "(service laminar-service-type)\n"
  50958. msgstr ""
  50959. #. type: deftp
  50960. #: guix-git/doc/guix.texi:33322
  50961. #, fuzzy, no-wrap
  50962. msgid "{Data Type} laminar-configuration"
  50963. msgstr "{数据类型} build-machine"
  50964. #. type: deftp
  50965. #: guix-git/doc/guix.texi:33324
  50966. #, fuzzy
  50967. msgid "Data type representing the configuration of Laminar."
  50968. msgstr "管理操作系统配置。"
  50969. #. type: item
  50970. #: guix-git/doc/guix.texi:33326
  50971. #, fuzzy, no-wrap
  50972. msgid "@code{laminar} (default: @code{laminar})"
  50973. msgstr "@code{mate}(默认值:@code{mate})"
  50974. #. type: table
  50975. #: guix-git/doc/guix.texi:33328
  50976. #, fuzzy
  50977. msgid "The Laminar package to use."
  50978. msgstr "软件包数据类型。"
  50979. #. type: item
  50980. #: guix-git/doc/guix.texi:33329
  50981. #, fuzzy, no-wrap
  50982. msgid "@code{home-directory} (default: @code{\"/var/lib/laminar\"})"
  50983. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  50984. #. type: table
  50985. #: guix-git/doc/guix.texi:33331
  50986. msgid "The directory for job configurations and run directories."
  50987. msgstr ""
  50988. #. type: item
  50989. #: guix-git/doc/guix.texi:33332
  50990. #, fuzzy, no-wrap
  50991. msgid "@code{bind-http} (default: @code{\"*:8080\"})"
  50992. msgstr "@code{port}(默认值:@code{22})"
  50993. #. type: table
  50994. #: guix-git/doc/guix.texi:33335
  50995. msgid "The interface/port or unix socket on which laminard should listen for incoming connections to the web frontend."
  50996. msgstr ""
  50997. #. type: item
  50998. #: guix-git/doc/guix.texi:33336
  50999. #, fuzzy, no-wrap
  51000. msgid "@code{bind-rpc} (default: @code{\"unix-abstract:laminar\"})"
  51001. msgstr "@code{gnome}(默认值:@code{gnome})"
  51002. #. type: table
  51003. #: guix-git/doc/guix.texi:33339
  51004. msgid "The interface/port or unix socket on which laminard should listen for incoming commands such as build triggers."
  51005. msgstr ""
  51006. #. type: item
  51007. #: guix-git/doc/guix.texi:33340
  51008. #, fuzzy, no-wrap
  51009. msgid "@code{title} (default: @code{\"Laminar\"})"
  51010. msgstr "@code{mate}(默认值:@code{mate})"
  51011. #. type: table
  51012. #: guix-git/doc/guix.texi:33342
  51013. #, fuzzy
  51014. msgid "The page title to show in the web frontend."
  51015. msgstr "rottlog服务。"
  51016. #. type: item
  51017. #: guix-git/doc/guix.texi:33343
  51018. #, fuzzy, no-wrap
  51019. msgid "@code{keep-rundirs} (default: @code{0})"
  51020. msgstr "@code{features} (@code{'()})"
  51021. #. type: table
  51022. #: guix-git/doc/guix.texi:33347
  51023. 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."
  51024. msgstr ""
  51025. #. type: item
  51026. #: guix-git/doc/guix.texi:33348
  51027. #, fuzzy, no-wrap
  51028. msgid "@code{archive-url} (default: @code{#f})"
  51029. msgstr "@code{challenge}(默认值:@code{#f})"
  51030. #. type: table
  51031. #: guix-git/doc/guix.texi:33351
  51032. msgid "The web frontend served by laminard will use this URL to form links to artefacts archived jobs."
  51033. msgstr ""
  51034. #. type: item
  51035. #: guix-git/doc/guix.texi:33352
  51036. #, fuzzy, no-wrap
  51037. msgid "@code{base-url} (default: @code{#f})"
  51038. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  51039. #. type: table
  51040. #: guix-git/doc/guix.texi:33354
  51041. msgid "Base URL to use for links to laminar itself."
  51042. msgstr ""
  51043. #. type: cindex
  51044. #: guix-git/doc/guix.texi:33361
  51045. #, no-wrap
  51046. msgid "tlp"
  51047. msgstr ""
  51048. #. type: cindex
  51049. #: guix-git/doc/guix.texi:33362
  51050. #, no-wrap
  51051. msgid "power management with TLP"
  51052. msgstr ""
  51053. #. type: subsubheading
  51054. #: guix-git/doc/guix.texi:33363
  51055. #, no-wrap
  51056. msgid "TLP daemon"
  51057. msgstr ""
  51058. #. type: Plain text
  51059. #: guix-git/doc/guix.texi:33367
  51060. msgid "The @code{(gnu services pm)} module provides a Guix service definition for the Linux power management tool TLP."
  51061. msgstr ""
  51062. #. type: Plain text
  51063. #: guix-git/doc/guix.texi:33373
  51064. 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}."
  51065. msgstr ""
  51066. #. type: defvar
  51067. #: guix-git/doc/guix.texi:33374
  51068. #, fuzzy, no-wrap
  51069. msgid "tlp-service-type"
  51070. msgstr "邮件服务"
  51071. #. type: defvar
  51072. #: guix-git/doc/guix.texi:33378
  51073. 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}:"
  51074. msgstr ""
  51075. #. type: lisp
  51076. #: guix-git/doc/guix.texi:33383
  51077. #, no-wrap
  51078. msgid ""
  51079. "(service tlp-service-type\n"
  51080. " (tlp-configuration\n"
  51081. " (cpu-scaling-governor-on-ac (list \"performance\"))\n"
  51082. " (sched-powersave-on-bat? #t)))\n"
  51083. msgstr ""
  51084. #. type: Plain text
  51085. #: guix-git/doc/guix.texi:33391
  51086. 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 left unset, or is explicitly set to the @code{%unset-value} value."
  51087. msgstr ""
  51088. #. type: Plain text
  51089. #: guix-git/doc/guix.texi:33401
  51090. msgid "Available @code{tlp-configuration} fields are:"
  51091. msgstr ""
  51092. #. type: deftypevr
  51093. #: guix-git/doc/guix.texi:33402
  51094. #, no-wrap
  51095. msgid "{@code{tlp-configuration} parameter} package tlp"
  51096. msgstr ""
  51097. #. type: deftypevr
  51098. #: guix-git/doc/guix.texi:33404
  51099. msgid "The TLP package."
  51100. msgstr ""
  51101. #. type: deftypevr
  51102. #: guix-git/doc/guix.texi:33407
  51103. #, no-wrap
  51104. msgid "{@code{tlp-configuration} parameter} boolean tlp-enable?"
  51105. msgstr ""
  51106. #. type: deftypevr
  51107. #: guix-git/doc/guix.texi:33409
  51108. msgid "Set to true if you wish to enable TLP."
  51109. msgstr ""
  51110. #. type: deftypevr
  51111. #: guix-git/doc/guix.texi:33414
  51112. #, no-wrap
  51113. msgid "{@code{tlp-configuration} parameter} string tlp-default-mode"
  51114. msgstr ""
  51115. #. type: deftypevr
  51116. #: guix-git/doc/guix.texi:33417
  51117. msgid "Default mode when no power supply can be detected. Alternatives are AC and BAT."
  51118. msgstr ""
  51119. #. type: deftypevr
  51120. #: guix-git/doc/guix.texi:33419
  51121. msgid "Defaults to @samp{\"AC\"}."
  51122. msgstr ""
  51123. #. type: deftypevr
  51124. #: guix-git/doc/guix.texi:33422
  51125. #, no-wrap
  51126. msgid "{@code{tlp-configuration} parameter} non-negative-integer disk-idle-secs-on-ac"
  51127. msgstr ""
  51128. #. type: deftypevr
  51129. #: guix-git/doc/guix.texi:33425
  51130. msgid "Number of seconds Linux kernel has to wait after the disk goes idle, before syncing on AC."
  51131. msgstr ""
  51132. #. type: deftypevr
  51133. #: guix-git/doc/guix.texi:33430
  51134. #, no-wrap
  51135. msgid "{@code{tlp-configuration} parameter} non-negative-integer disk-idle-secs-on-bat"
  51136. msgstr ""
  51137. #. type: deftypevr
  51138. #: guix-git/doc/guix.texi:33432
  51139. msgid "Same as @code{disk-idle-ac} but on BAT mode."
  51140. msgstr ""
  51141. #. type: deftypevr
  51142. #: guix-git/doc/guix.texi:33434
  51143. msgid "Defaults to @samp{2}."
  51144. msgstr ""
  51145. #. type: deftypevr
  51146. #: guix-git/doc/guix.texi:33437
  51147. #, no-wrap
  51148. msgid "{@code{tlp-configuration} parameter} non-negative-integer max-lost-work-secs-on-ac"
  51149. msgstr ""
  51150. #. type: deftypevr
  51151. #: guix-git/doc/guix.texi:33439
  51152. msgid "Dirty pages flushing periodicity, expressed in seconds."
  51153. msgstr ""
  51154. #. type: deftypevr
  51155. #: guix-git/doc/guix.texi:33441 guix-git/doc/guix.texi:33664
  51156. #: guix-git/doc/guix.texi:36235 guix-git/doc/guix.texi:36243
  51157. msgid "Defaults to @samp{15}."
  51158. msgstr ""
  51159. #. type: deftypevr
  51160. #: guix-git/doc/guix.texi:33444
  51161. #, no-wrap
  51162. msgid "{@code{tlp-configuration} parameter} non-negative-integer max-lost-work-secs-on-bat"
  51163. msgstr ""
  51164. #. type: deftypevr
  51165. #: guix-git/doc/guix.texi:33446
  51166. msgid "Same as @code{max-lost-work-secs-on-ac} but on BAT mode."
  51167. msgstr ""
  51168. #. type: deftypevr
  51169. #: guix-git/doc/guix.texi:33448
  51170. msgid "Defaults to @samp{60}."
  51171. msgstr ""
  51172. #. type: deftypevr
  51173. #: guix-git/doc/guix.texi:33451
  51174. #, no-wrap
  51175. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list cpu-scaling-governor-on-ac"
  51176. msgstr ""
  51177. #. type: deftypevr
  51178. #: guix-git/doc/guix.texi:33455
  51179. 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."
  51180. msgstr ""
  51181. #. type: deftypevr
  51182. #: guix-git/doc/guix.texi:33460
  51183. #, no-wrap
  51184. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list cpu-scaling-governor-on-bat"
  51185. msgstr ""
  51186. #. type: deftypevr
  51187. #: guix-git/doc/guix.texi:33462
  51188. msgid "Same as @code{cpu-scaling-governor-on-ac} but on BAT mode."
  51189. msgstr ""
  51190. #. type: deftypevr
  51191. #: guix-git/doc/guix.texi:33467
  51192. #, no-wrap
  51193. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-min-freq-on-ac"
  51194. msgstr ""
  51195. #. type: deftypevr
  51196. #: guix-git/doc/guix.texi:33469
  51197. msgid "Set the min available frequency for the scaling governor on AC."
  51198. msgstr ""
  51199. #. type: deftypevr
  51200. #: guix-git/doc/guix.texi:33474
  51201. #, no-wrap
  51202. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-max-freq-on-ac"
  51203. msgstr ""
  51204. #. type: deftypevr
  51205. #: guix-git/doc/guix.texi:33476
  51206. msgid "Set the max available frequency for the scaling governor on AC."
  51207. msgstr ""
  51208. #. type: deftypevr
  51209. #: guix-git/doc/guix.texi:33481
  51210. #, no-wrap
  51211. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-min-freq-on-bat"
  51212. msgstr ""
  51213. #. type: deftypevr
  51214. #: guix-git/doc/guix.texi:33483
  51215. msgid "Set the min available frequency for the scaling governor on BAT."
  51216. msgstr ""
  51217. #. type: deftypevr
  51218. #: guix-git/doc/guix.texi:33488
  51219. #, no-wrap
  51220. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-max-freq-on-bat"
  51221. msgstr ""
  51222. #. type: deftypevr
  51223. #: guix-git/doc/guix.texi:33490
  51224. msgid "Set the max available frequency for the scaling governor on BAT."
  51225. msgstr ""
  51226. #. type: deftypevr
  51227. #: guix-git/doc/guix.texi:33495
  51228. #, no-wrap
  51229. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-min-perf-on-ac"
  51230. msgstr ""
  51231. #. type: deftypevr
  51232. #: guix-git/doc/guix.texi:33498
  51233. 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."
  51234. msgstr ""
  51235. #. type: deftypevr
  51236. #: guix-git/doc/guix.texi:33503
  51237. #, no-wrap
  51238. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-max-perf-on-ac"
  51239. msgstr ""
  51240. #. type: deftypevr
  51241. #: guix-git/doc/guix.texi:33506
  51242. 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."
  51243. msgstr ""
  51244. #. type: deftypevr
  51245. #: guix-git/doc/guix.texi:33511
  51246. #, no-wrap
  51247. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-min-perf-on-bat"
  51248. msgstr ""
  51249. #. type: deftypevr
  51250. #: guix-git/doc/guix.texi:33513
  51251. msgid "Same as @code{cpu-min-perf-on-ac} on BAT mode."
  51252. msgstr ""
  51253. #. type: deftypevr
  51254. #: guix-git/doc/guix.texi:33518
  51255. #, no-wrap
  51256. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-max-perf-on-bat"
  51257. msgstr ""
  51258. #. type: deftypevr
  51259. #: guix-git/doc/guix.texi:33520
  51260. msgid "Same as @code{cpu-max-perf-on-ac} on BAT mode."
  51261. msgstr ""
  51262. #. type: deftypevr
  51263. #: guix-git/doc/guix.texi:33525
  51264. #, no-wrap
  51265. msgid "{@code{tlp-configuration} parameter} maybe-boolean cpu-boost-on-ac?"
  51266. msgstr ""
  51267. #. type: deftypevr
  51268. #: guix-git/doc/guix.texi:33527
  51269. msgid "Enable CPU turbo boost feature on AC mode."
  51270. msgstr ""
  51271. #. type: deftypevr
  51272. #: guix-git/doc/guix.texi:33532
  51273. #, no-wrap
  51274. msgid "{@code{tlp-configuration} parameter} maybe-boolean cpu-boost-on-bat?"
  51275. msgstr ""
  51276. #. type: deftypevr
  51277. #: guix-git/doc/guix.texi:33534
  51278. msgid "Same as @code{cpu-boost-on-ac?} on BAT mode."
  51279. msgstr ""
  51280. #. type: deftypevr
  51281. #: guix-git/doc/guix.texi:33539
  51282. #, no-wrap
  51283. msgid "{@code{tlp-configuration} parameter} boolean sched-powersave-on-ac?"
  51284. msgstr ""
  51285. #. type: deftypevr
  51286. #: guix-git/doc/guix.texi:33542
  51287. msgid "Allow Linux kernel to minimize the number of CPU cores/hyper-threads used under light load conditions."
  51288. msgstr ""
  51289. #. type: deftypevr
  51290. #: guix-git/doc/guix.texi:33547
  51291. #, no-wrap
  51292. msgid "{@code{tlp-configuration} parameter} boolean sched-powersave-on-bat?"
  51293. msgstr ""
  51294. #. type: deftypevr
  51295. #: guix-git/doc/guix.texi:33549
  51296. msgid "Same as @code{sched-powersave-on-ac?} but on BAT mode."
  51297. msgstr ""
  51298. #. type: deftypevr
  51299. #: guix-git/doc/guix.texi:33554
  51300. #, no-wrap
  51301. msgid "{@code{tlp-configuration} parameter} boolean nmi-watchdog?"
  51302. msgstr ""
  51303. #. type: deftypevr
  51304. #: guix-git/doc/guix.texi:33556
  51305. msgid "Enable Linux kernel NMI watchdog."
  51306. msgstr ""
  51307. #. type: deftypevr
  51308. #: guix-git/doc/guix.texi:33561
  51309. #, no-wrap
  51310. msgid "{@code{tlp-configuration} parameter} maybe-string phc-controls"
  51311. msgstr ""
  51312. #. type: deftypevr
  51313. #: guix-git/doc/guix.texi:33564
  51314. 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\"}."
  51315. msgstr ""
  51316. #. type: deftypevr
  51317. #: guix-git/doc/guix.texi:33569
  51318. #, no-wrap
  51319. msgid "{@code{tlp-configuration} parameter} string energy-perf-policy-on-ac"
  51320. msgstr ""
  51321. #. type: deftypevr
  51322. #: guix-git/doc/guix.texi:33572
  51323. msgid "Set CPU performance versus energy saving policy on AC@. Alternatives are performance, normal, powersave."
  51324. msgstr ""
  51325. #. type: deftypevr
  51326. #: guix-git/doc/guix.texi:33574 guix-git/doc/guix.texi:33672
  51327. #: guix-git/doc/guix.texi:33730
  51328. msgid "Defaults to @samp{\"performance\"}."
  51329. msgstr ""
  51330. #. type: deftypevr
  51331. #: guix-git/doc/guix.texi:33577
  51332. #, no-wrap
  51333. msgid "{@code{tlp-configuration} parameter} string energy-perf-policy-on-bat"
  51334. msgstr ""
  51335. #. type: deftypevr
  51336. #: guix-git/doc/guix.texi:33579
  51337. msgid "Same as @code{energy-perf-policy-ac} but on BAT mode."
  51338. msgstr ""
  51339. #. type: deftypevr
  51340. #: guix-git/doc/guix.texi:33581 guix-git/doc/guix.texi:33679
  51341. msgid "Defaults to @samp{\"powersave\"}."
  51342. msgstr ""
  51343. #. type: deftypevr
  51344. #: guix-git/doc/guix.texi:33584
  51345. #, no-wrap
  51346. msgid "{@code{tlp-configuration} parameter} space-separated-string-list disks-devices"
  51347. msgstr ""
  51348. #. type: deftypevr
  51349. #: guix-git/doc/guix.texi:33586
  51350. msgid "Hard disk devices."
  51351. msgstr ""
  51352. #. type: deftypevr
  51353. #: guix-git/doc/guix.texi:33589
  51354. #, no-wrap
  51355. msgid "{@code{tlp-configuration} parameter} space-separated-string-list disk-apm-level-on-ac"
  51356. msgstr ""
  51357. #. type: deftypevr
  51358. #: guix-git/doc/guix.texi:33591
  51359. msgid "Hard disk advanced power management level."
  51360. msgstr ""
  51361. #. type: deftypevr
  51362. #: guix-git/doc/guix.texi:33594
  51363. #, no-wrap
  51364. msgid "{@code{tlp-configuration} parameter} space-separated-string-list disk-apm-level-on-bat"
  51365. msgstr ""
  51366. #. type: deftypevr
  51367. #: guix-git/doc/guix.texi:33596
  51368. msgid "Same as @code{disk-apm-bat} but on BAT mode."
  51369. msgstr ""
  51370. #. type: deftypevr
  51371. #: guix-git/doc/guix.texi:33599
  51372. #, no-wrap
  51373. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list disk-spindown-timeout-on-ac"
  51374. msgstr ""
  51375. #. type: deftypevr
  51376. #: guix-git/doc/guix.texi:33602
  51377. msgid "Hard disk spin down timeout. One value has to be specified for each declared hard disk."
  51378. msgstr ""
  51379. #. type: deftypevr
  51380. #: guix-git/doc/guix.texi:33607
  51381. #, no-wrap
  51382. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list disk-spindown-timeout-on-bat"
  51383. msgstr ""
  51384. #. type: deftypevr
  51385. #: guix-git/doc/guix.texi:33609
  51386. msgid "Same as @code{disk-spindown-timeout-on-ac} but on BAT mode."
  51387. msgstr ""
  51388. #. type: deftypevr
  51389. #: guix-git/doc/guix.texi:33614
  51390. #, no-wrap
  51391. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list disk-iosched"
  51392. msgstr ""
  51393. #. type: deftypevr
  51394. #: guix-git/doc/guix.texi:33618
  51395. 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."
  51396. msgstr ""
  51397. #. type: deftypevr
  51398. #: guix-git/doc/guix.texi:33623
  51399. #, no-wrap
  51400. msgid "{@code{tlp-configuration} parameter} string sata-linkpwr-on-ac"
  51401. msgstr ""
  51402. #. type: deftypevr
  51403. #: guix-git/doc/guix.texi:33626
  51404. msgid "SATA aggressive link power management (ALPM) level. Alternatives are min_power, medium_power, max_performance."
  51405. msgstr ""
  51406. #. type: deftypevr
  51407. #: guix-git/doc/guix.texi:33628
  51408. msgid "Defaults to @samp{\"max_performance\"}."
  51409. msgstr ""
  51410. #. type: deftypevr
  51411. #: guix-git/doc/guix.texi:33631
  51412. #, no-wrap
  51413. msgid "{@code{tlp-configuration} parameter} string sata-linkpwr-on-bat"
  51414. msgstr ""
  51415. #. type: deftypevr
  51416. #: guix-git/doc/guix.texi:33633
  51417. msgid "Same as @code{sata-linkpwr-ac} but on BAT mode."
  51418. msgstr ""
  51419. #. type: deftypevr
  51420. #: guix-git/doc/guix.texi:33635
  51421. msgid "Defaults to @samp{\"min_power\"}."
  51422. msgstr ""
  51423. #. type: deftypevr
  51424. #: guix-git/doc/guix.texi:33638
  51425. #, no-wrap
  51426. msgid "{@code{tlp-configuration} parameter} maybe-string sata-linkpwr-blacklist"
  51427. msgstr ""
  51428. #. type: deftypevr
  51429. #: guix-git/doc/guix.texi:33640
  51430. msgid "Exclude specified SATA host devices for link power management."
  51431. msgstr ""
  51432. #. type: deftypevr
  51433. #: guix-git/doc/guix.texi:33645
  51434. #, no-wrap
  51435. msgid "{@code{tlp-configuration} parameter} maybe-on-off-boolean ahci-runtime-pm-on-ac?"
  51436. msgstr ""
  51437. #. type: deftypevr
  51438. #: guix-git/doc/guix.texi:33648
  51439. msgid "Enable Runtime Power Management for AHCI controller and disks on AC mode."
  51440. msgstr ""
  51441. #. type: deftypevr
  51442. #: guix-git/doc/guix.texi:33653
  51443. #, no-wrap
  51444. msgid "{@code{tlp-configuration} parameter} maybe-on-off-boolean ahci-runtime-pm-on-bat?"
  51445. msgstr ""
  51446. #. type: deftypevr
  51447. #: guix-git/doc/guix.texi:33655
  51448. msgid "Same as @code{ahci-runtime-pm-on-ac} on BAT mode."
  51449. msgstr ""
  51450. #. type: deftypevr
  51451. #: guix-git/doc/guix.texi:33660
  51452. #, no-wrap
  51453. msgid "{@code{tlp-configuration} parameter} non-negative-integer ahci-runtime-pm-timeout"
  51454. msgstr ""
  51455. #. type: deftypevr
  51456. #: guix-git/doc/guix.texi:33662
  51457. msgid "Seconds of inactivity before disk is suspended."
  51458. msgstr ""
  51459. #. type: deftypevr
  51460. #: guix-git/doc/guix.texi:33667
  51461. #, no-wrap
  51462. msgid "{@code{tlp-configuration} parameter} string pcie-aspm-on-ac"
  51463. msgstr ""
  51464. #. type: deftypevr
  51465. #: guix-git/doc/guix.texi:33670
  51466. msgid "PCI Express Active State Power Management level. Alternatives are default, performance, powersave."
  51467. msgstr ""
  51468. #. type: deftypevr
  51469. #: guix-git/doc/guix.texi:33675
  51470. #, no-wrap
  51471. msgid "{@code{tlp-configuration} parameter} string pcie-aspm-on-bat"
  51472. msgstr ""
  51473. #. type: deftypevr
  51474. #: guix-git/doc/guix.texi:33677
  51475. msgid "Same as @code{pcie-aspm-ac} but on BAT mode."
  51476. msgstr ""
  51477. #. type: deftypevr
  51478. #: guix-git/doc/guix.texi:33682
  51479. #, no-wrap
  51480. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer start-charge-thresh-bat0"
  51481. msgstr ""
  51482. #. type: deftypevr
  51483. #: guix-git/doc/guix.texi:33684
  51484. msgid "Percentage when battery 0 should begin charging. Only supported on some laptops."
  51485. msgstr ""
  51486. #. type: deftypevr
  51487. #: guix-git/doc/guix.texi:33689
  51488. #, no-wrap
  51489. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer stop-charge-thresh-bat0"
  51490. msgstr ""
  51491. #. type: deftypevr
  51492. #: guix-git/doc/guix.texi:33691
  51493. msgid "Percentage when battery 0 should stop charging. Only supported on some laptops."
  51494. msgstr ""
  51495. #. type: deftypevr
  51496. #: guix-git/doc/guix.texi:33696
  51497. #, no-wrap
  51498. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer start-charge-thresh-bat1"
  51499. msgstr ""
  51500. #. type: deftypevr
  51501. #: guix-git/doc/guix.texi:33698
  51502. msgid "Percentage when battery 1 should begin charging. Only supported on some laptops."
  51503. msgstr ""
  51504. #. type: deftypevr
  51505. #: guix-git/doc/guix.texi:33703
  51506. #, no-wrap
  51507. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer stop-charge-thresh-bat1"
  51508. msgstr ""
  51509. #. type: deftypevr
  51510. #: guix-git/doc/guix.texi:33705
  51511. msgid "Percentage when battery 1 should stop charging. Only supported on some laptops."
  51512. msgstr ""
  51513. #. type: deftypevr
  51514. #: guix-git/doc/guix.texi:33710
  51515. #, no-wrap
  51516. msgid "{@code{tlp-configuration} parameter} string radeon-power-profile-on-ac"
  51517. msgstr ""
  51518. #. type: deftypevr
  51519. #: guix-git/doc/guix.texi:33713
  51520. msgid "Radeon graphics clock speed level. Alternatives are low, mid, high, auto, default."
  51521. msgstr ""
  51522. #. type: deftypevr
  51523. #: guix-git/doc/guix.texi:33715
  51524. msgid "Defaults to @samp{\"high\"}."
  51525. msgstr ""
  51526. #. type: deftypevr
  51527. #: guix-git/doc/guix.texi:33718
  51528. #, no-wrap
  51529. msgid "{@code{tlp-configuration} parameter} string radeon-power-profile-on-bat"
  51530. msgstr ""
  51531. #. type: deftypevr
  51532. #: guix-git/doc/guix.texi:33720
  51533. msgid "Same as @code{radeon-power-ac} but on BAT mode."
  51534. msgstr ""
  51535. #. type: deftypevr
  51536. #: guix-git/doc/guix.texi:33722
  51537. msgid "Defaults to @samp{\"low\"}."
  51538. msgstr ""
  51539. #. type: deftypevr
  51540. #: guix-git/doc/guix.texi:33725
  51541. #, no-wrap
  51542. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-state-on-ac"
  51543. msgstr ""
  51544. #. type: deftypevr
  51545. #: guix-git/doc/guix.texi:33728
  51546. msgid "Radeon dynamic power management method (DPM). Alternatives are battery, performance."
  51547. msgstr ""
  51548. #. type: deftypevr
  51549. #: guix-git/doc/guix.texi:33733
  51550. #, no-wrap
  51551. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-state-on-bat"
  51552. msgstr ""
  51553. #. type: deftypevr
  51554. #: guix-git/doc/guix.texi:33735
  51555. msgid "Same as @code{radeon-dpm-state-ac} but on BAT mode."
  51556. msgstr ""
  51557. #. type: deftypevr
  51558. #: guix-git/doc/guix.texi:33737
  51559. msgid "Defaults to @samp{\"battery\"}."
  51560. msgstr ""
  51561. #. type: deftypevr
  51562. #: guix-git/doc/guix.texi:33740
  51563. #, no-wrap
  51564. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-perf-level-on-ac"
  51565. msgstr ""
  51566. #. type: deftypevr
  51567. #: guix-git/doc/guix.texi:33742
  51568. msgid "Radeon DPM performance level. Alternatives are auto, low, high."
  51569. msgstr ""
  51570. #. type: deftypevr
  51571. #: guix-git/doc/guix.texi:33744 guix-git/doc/guix.texi:33751
  51572. #: guix-git/doc/guix.texi:33825
  51573. msgid "Defaults to @samp{\"auto\"}."
  51574. msgstr ""
  51575. #. type: deftypevr
  51576. #: guix-git/doc/guix.texi:33747
  51577. #, no-wrap
  51578. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-perf-level-on-bat"
  51579. msgstr ""
  51580. #. type: deftypevr
  51581. #: guix-git/doc/guix.texi:33749
  51582. msgid "Same as @code{radeon-dpm-perf-ac} but on BAT mode."
  51583. msgstr ""
  51584. #. type: deftypevr
  51585. #: guix-git/doc/guix.texi:33754
  51586. #, no-wrap
  51587. msgid "{@code{tlp-configuration} parameter} on-off-boolean wifi-pwr-on-ac?"
  51588. msgstr ""
  51589. #. type: deftypevr
  51590. #: guix-git/doc/guix.texi:33756
  51591. msgid "Wifi power saving mode."
  51592. msgstr ""
  51593. #. type: deftypevr
  51594. #: guix-git/doc/guix.texi:33761
  51595. #, no-wrap
  51596. msgid "{@code{tlp-configuration} parameter} on-off-boolean wifi-pwr-on-bat?"
  51597. msgstr ""
  51598. #. type: deftypevr
  51599. #: guix-git/doc/guix.texi:33763
  51600. msgid "Same as @code{wifi-power-ac?} but on BAT mode."
  51601. msgstr ""
  51602. #. type: deftypevr
  51603. #: guix-git/doc/guix.texi:33768
  51604. #, no-wrap
  51605. msgid "{@code{tlp-configuration} parameter} y-n-boolean wol-disable?"
  51606. msgstr ""
  51607. #. type: deftypevr
  51608. #: guix-git/doc/guix.texi:33770
  51609. msgid "Disable wake on LAN."
  51610. msgstr ""
  51611. #. type: deftypevr
  51612. #: guix-git/doc/guix.texi:33775
  51613. #, no-wrap
  51614. msgid "{@code{tlp-configuration} parameter} non-negative-integer sound-power-save-on-ac"
  51615. msgstr ""
  51616. #. type: deftypevr
  51617. #: guix-git/doc/guix.texi:33778
  51618. msgid "Timeout duration in seconds before activating audio power saving on Intel HDA and AC97 devices. A value of 0 disables power saving."
  51619. msgstr ""
  51620. #. type: deftypevr
  51621. #: guix-git/doc/guix.texi:33783
  51622. #, no-wrap
  51623. msgid "{@code{tlp-configuration} parameter} non-negative-integer sound-power-save-on-bat"
  51624. msgstr ""
  51625. #. type: deftypevr
  51626. #: guix-git/doc/guix.texi:33785
  51627. msgid "Same as @code{sound-powersave-ac} but on BAT mode."
  51628. msgstr ""
  51629. #. type: deftypevr
  51630. #: guix-git/doc/guix.texi:33790
  51631. #, no-wrap
  51632. msgid "{@code{tlp-configuration} parameter} y-n-boolean sound-power-save-controller?"
  51633. msgstr ""
  51634. #. type: deftypevr
  51635. #: guix-git/doc/guix.texi:33792
  51636. msgid "Disable controller in powersaving mode on Intel HDA devices."
  51637. msgstr ""
  51638. #. type: deftypevr
  51639. #: guix-git/doc/guix.texi:33797
  51640. #, no-wrap
  51641. msgid "{@code{tlp-configuration} parameter} boolean bay-poweroff-on-bat?"
  51642. msgstr ""
  51643. #. type: deftypevr
  51644. #: guix-git/doc/guix.texi:33801
  51645. 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."
  51646. msgstr ""
  51647. #. type: deftypevr
  51648. #: guix-git/doc/guix.texi:33806
  51649. #, no-wrap
  51650. msgid "{@code{tlp-configuration} parameter} string bay-device"
  51651. msgstr ""
  51652. #. type: deftypevr
  51653. #: guix-git/doc/guix.texi:33808
  51654. msgid "Name of the optical drive device to power off."
  51655. msgstr ""
  51656. #. type: deftypevr
  51657. #: guix-git/doc/guix.texi:33810
  51658. msgid "Defaults to @samp{\"sr0\"}."
  51659. msgstr ""
  51660. #. type: deftypevr
  51661. #: guix-git/doc/guix.texi:33813
  51662. #, no-wrap
  51663. msgid "{@code{tlp-configuration} parameter} string runtime-pm-on-ac"
  51664. msgstr ""
  51665. #. type: deftypevr
  51666. #: guix-git/doc/guix.texi:33816
  51667. msgid "Runtime Power Management for PCI(e) bus devices. Alternatives are on and auto."
  51668. msgstr ""
  51669. #. type: deftypevr
  51670. #: guix-git/doc/guix.texi:33818
  51671. msgid "Defaults to @samp{\"on\"}."
  51672. msgstr ""
  51673. #. type: deftypevr
  51674. #: guix-git/doc/guix.texi:33821
  51675. #, no-wrap
  51676. msgid "{@code{tlp-configuration} parameter} string runtime-pm-on-bat"
  51677. msgstr ""
  51678. #. type: deftypevr
  51679. #: guix-git/doc/guix.texi:33823
  51680. msgid "Same as @code{runtime-pm-ac} but on BAT mode."
  51681. msgstr ""
  51682. #. type: deftypevr
  51683. #: guix-git/doc/guix.texi:33828
  51684. #, no-wrap
  51685. msgid "{@code{tlp-configuration} parameter} boolean runtime-pm-all?"
  51686. msgstr ""
  51687. #. type: deftypevr
  51688. #: guix-git/doc/guix.texi:33831
  51689. msgid "Runtime Power Management for all PCI(e) bus devices, except blacklisted ones."
  51690. msgstr ""
  51691. #. type: deftypevr
  51692. #: guix-git/doc/guix.texi:33836
  51693. #, no-wrap
  51694. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list runtime-pm-blacklist"
  51695. msgstr ""
  51696. #. type: deftypevr
  51697. #: guix-git/doc/guix.texi:33838
  51698. msgid "Exclude specified PCI(e) device addresses from Runtime Power Management."
  51699. msgstr ""
  51700. #. type: deftypevr
  51701. #: guix-git/doc/guix.texi:33843
  51702. #, no-wrap
  51703. msgid "{@code{tlp-configuration} parameter} space-separated-string-list runtime-pm-driver-blacklist"
  51704. msgstr ""
  51705. #. type: deftypevr
  51706. #: guix-git/doc/guix.texi:33846
  51707. msgid "Exclude PCI(e) devices assigned to the specified drivers from Runtime Power Management."
  51708. msgstr ""
  51709. #. type: deftypevr
  51710. #: guix-git/doc/guix.texi:33849
  51711. #, no-wrap
  51712. msgid "{@code{tlp-configuration} parameter} boolean usb-autosuspend?"
  51713. msgstr ""
  51714. #. type: deftypevr
  51715. #: guix-git/doc/guix.texi:33851
  51716. msgid "Enable USB autosuspend feature."
  51717. msgstr ""
  51718. #. type: deftypevr
  51719. #: guix-git/doc/guix.texi:33856
  51720. #, no-wrap
  51721. msgid "{@code{tlp-configuration} parameter} maybe-string usb-blacklist"
  51722. msgstr ""
  51723. #. type: deftypevr
  51724. #: guix-git/doc/guix.texi:33858
  51725. msgid "Exclude specified devices from USB autosuspend."
  51726. msgstr ""
  51727. #. type: deftypevr
  51728. #: guix-git/doc/guix.texi:33863
  51729. #, no-wrap
  51730. msgid "{@code{tlp-configuration} parameter} boolean usb-blacklist-wwan?"
  51731. msgstr ""
  51732. #. type: deftypevr
  51733. #: guix-git/doc/guix.texi:33865
  51734. msgid "Exclude WWAN devices from USB autosuspend."
  51735. msgstr ""
  51736. #. type: deftypevr
  51737. #: guix-git/doc/guix.texi:33870
  51738. #, no-wrap
  51739. msgid "{@code{tlp-configuration} parameter} maybe-string usb-whitelist"
  51740. msgstr ""
  51741. #. type: deftypevr
  51742. #: guix-git/doc/guix.texi:33873
  51743. msgid "Include specified devices into USB autosuspend, even if they are already excluded by the driver or via @code{usb-blacklist-wwan?}."
  51744. msgstr ""
  51745. #. type: deftypevr
  51746. #: guix-git/doc/guix.texi:33878
  51747. #, no-wrap
  51748. msgid "{@code{tlp-configuration} parameter} maybe-boolean usb-autosuspend-disable-on-shutdown?"
  51749. msgstr ""
  51750. #. type: deftypevr
  51751. #: guix-git/doc/guix.texi:33880
  51752. msgid "Enable USB autosuspend before shutdown."
  51753. msgstr ""
  51754. #. type: deftypevr
  51755. #: guix-git/doc/guix.texi:33885
  51756. #, no-wrap
  51757. msgid "{@code{tlp-configuration} parameter} boolean restore-device-state-on-startup?"
  51758. msgstr ""
  51759. #. type: deftypevr
  51760. #: guix-git/doc/guix.texi:33888
  51761. msgid "Restore radio device state (bluetooth, wifi, wwan) from previous shutdown on system startup."
  51762. msgstr ""
  51763. #. type: cindex
  51764. #: guix-git/doc/guix.texi:33893
  51765. #, no-wrap
  51766. msgid "thermald"
  51767. msgstr ""
  51768. #. type: cindex
  51769. #: guix-git/doc/guix.texi:33894
  51770. #, no-wrap
  51771. msgid "CPU frequency scaling with thermald"
  51772. msgstr ""
  51773. #. type: subsubheading
  51774. #: guix-git/doc/guix.texi:33895
  51775. #, no-wrap
  51776. msgid "Thermald daemon"
  51777. msgstr ""
  51778. #. type: Plain text
  51779. #: guix-git/doc/guix.texi:33899
  51780. msgid "The @code{(gnu services pm)} module provides an interface to thermald, a CPU frequency scaling service which helps prevent overheating."
  51781. msgstr ""
  51782. #. type: defvar
  51783. #: guix-git/doc/guix.texi:33900
  51784. #, fuzzy, no-wrap
  51785. msgid "thermald-service-type"
  51786. msgstr "邮件服务"
  51787. #. type: defvar
  51788. #: guix-git/doc/guix.texi:33905
  51789. 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."
  51790. msgstr ""
  51791. #. type: deftp
  51792. #: guix-git/doc/guix.texi:33907
  51793. #, no-wrap
  51794. msgid "{Data Type} thermald-configuration"
  51795. msgstr ""
  51796. #. type: deftp
  51797. #: guix-git/doc/guix.texi:33909
  51798. msgid "Data type representing the configuration of @code{thermald-service-type}."
  51799. msgstr ""
  51800. #. type: item
  51801. #: guix-git/doc/guix.texi:33911
  51802. #, fuzzy, no-wrap
  51803. msgid "@code{adaptive?} (default: @code{#f})"
  51804. msgstr "@code{challenge}(默认值:@code{#f})"
  51805. #. type: table
  51806. #: guix-git/doc/guix.texi:33914
  51807. msgid "Use @acronym{DPTF, Dynamic Power and Thermal Framework} adaptive tables when present."
  51808. msgstr ""
  51809. #. type: item
  51810. #: guix-git/doc/guix.texi:33915
  51811. #, no-wrap
  51812. msgid "@code{ignore-cpuid-check?} (default: @code{#f})"
  51813. msgstr ""
  51814. #. type: table
  51815. #: guix-git/doc/guix.texi:33917
  51816. msgid "Ignore cpuid check for supported CPU models."
  51817. msgstr ""
  51818. #. type: item
  51819. #: guix-git/doc/guix.texi:33918
  51820. #, no-wrap
  51821. msgid "@code{thermald} (default: @var{thermald})"
  51822. msgstr ""
  51823. #. type: table
  51824. #: guix-git/doc/guix.texi:33920
  51825. msgid "Package object of thermald."
  51826. msgstr ""
  51827. #. type: Plain text
  51828. #: guix-git/doc/guix.texi:33929
  51829. msgid "The @code{(gnu services audio)} module provides a service to start MPD (the Music Player Daemon)."
  51830. msgstr ""
  51831. #. type: cindex
  51832. #: guix-git/doc/guix.texi:33930
  51833. #, no-wrap
  51834. msgid "mpd"
  51835. msgstr ""
  51836. #. type: subsubheading
  51837. #: guix-git/doc/guix.texi:33931
  51838. #, no-wrap
  51839. msgid "Music Player Daemon"
  51840. msgstr ""
  51841. #. type: Plain text
  51842. #: guix-git/doc/guix.texi:33936
  51843. 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."
  51844. msgstr ""
  51845. #. type: Plain text
  51846. #: guix-git/doc/guix.texi:33939
  51847. msgid "The following example shows how one might run @code{mpd} as user @code{\"bob\"} on port @code{6666}. It uses pulseaudio for output."
  51848. msgstr ""
  51849. #. type: lisp
  51850. #: guix-git/doc/guix.texi:33945
  51851. #, no-wrap
  51852. msgid ""
  51853. "(service mpd-service-type\n"
  51854. " (mpd-configuration\n"
  51855. " (user \"bob\")\n"
  51856. " (port \"6666\")))\n"
  51857. msgstr ""
  51858. #. type: defvar
  51859. #: guix-git/doc/guix.texi:33947
  51860. #, fuzzy, no-wrap
  51861. msgid "mpd-service-type"
  51862. msgstr "邮件服务"
  51863. #. type: defvar
  51864. #: guix-git/doc/guix.texi:33949
  51865. msgid "The service type for @command{mpd}"
  51866. msgstr ""
  51867. #. type: deftp
  51868. #: guix-git/doc/guix.texi:33951
  51869. #, no-wrap
  51870. msgid "{Data Type} mpd-configuration"
  51871. msgstr ""
  51872. #. type: deftp
  51873. #: guix-git/doc/guix.texi:33953
  51874. msgid "Data type representing the configuration of @command{mpd}."
  51875. msgstr ""
  51876. #. type: item
  51877. #: guix-git/doc/guix.texi:33955
  51878. #, fuzzy, no-wrap
  51879. msgid "@code{package} (default: @code{mpd}) (type: file-like)"
  51880. msgstr "@code{xfce}(默认值:@code{xfce})"
  51881. #. type: table
  51882. #: guix-git/doc/guix.texi:33957
  51883. #, fuzzy
  51884. msgid "The MPD package."
  51885. msgstr "软件包数据类型。"
  51886. #. type: item
  51887. #: guix-git/doc/guix.texi:33958
  51888. #, fuzzy, no-wrap
  51889. msgid "@code{user} (default: @code{%mpd-user}) (type: user-account)"
  51890. msgstr "@code{xfce}(默认值:@code{xfce})"
  51891. #. type: table
  51892. #: guix-git/doc/guix.texi:33960
  51893. msgid "The user to run mpd as."
  51894. msgstr ""
  51895. #. type: table
  51896. #: guix-git/doc/guix.texi:33963
  51897. msgid "The default @code{%mpd-user} is a system user with the name ``mpd'', who is a part of the group @var{group} (see below)."
  51898. msgstr ""
  51899. #. type: item
  51900. #: guix-git/doc/guix.texi:33963
  51901. #, fuzzy, no-wrap
  51902. msgid "@code{group} (default: @code{%mpd-group}) (type: user-group)"
  51903. msgstr "@code{port}(默认值:@code{22})"
  51904. #. type: table
  51905. #: guix-git/doc/guix.texi:33965
  51906. msgid "The group to run mpd as."
  51907. msgstr ""
  51908. #. type: table
  51909. #: guix-git/doc/guix.texi:33967
  51910. msgid "The default @code{%mpd-group} is a system group with name ``mpd''."
  51911. msgstr ""
  51912. #. type: item
  51913. #: guix-git/doc/guix.texi:33967 guix-git/doc/guix.texi:34198
  51914. #, fuzzy, no-wrap
  51915. msgid "@code{shepherd-requirement} (default: @code{'()}) (type: list-of-symbol)"
  51916. msgstr "@code{features} (@code{'()})"
  51917. #. type: table
  51918. #: guix-git/doc/guix.texi:33970
  51919. msgid "A list of symbols naming Shepherd services that this service will depend on."
  51920. msgstr ""
  51921. #. type: item
  51922. #: guix-git/doc/guix.texi:33971
  51923. #, fuzzy, no-wrap
  51924. msgid "@code{environment-variables} (default: @code{'(\"PULSE_CLIENTCONFIG=/etc/pulse/client.conf\" \"PULSE_CONFIG=/etc/pulse/daemon.conf\")}) (type: list-of-strings)"
  51925. msgstr "@code{features} (@code{'()})"
  51926. #. type: table
  51927. #: guix-git/doc/guix.texi:33973
  51928. #, fuzzy
  51929. #| msgid "Preparing the isolated build environment."
  51930. msgid "A list of strings specifying environment variables."
  51931. msgstr "准备隔离的构建环境。"
  51932. #. type: item
  51933. #: guix-git/doc/guix.texi:33974
  51934. #, fuzzy, no-wrap
  51935. msgid "@code{log-file} (default: @code{\"/var/log/mpd/log\"}) (type: maybe-string)"
  51936. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  51937. #. type: table
  51938. #: guix-git/doc/guix.texi:33978
  51939. msgid "The location of the log file. Set to @code{syslog} to use the local syslog daemon or @code{%unset-value} to omit this directive from the configuration file."
  51940. msgstr ""
  51941. #. type: item
  51942. #: guix-git/doc/guix.texi:33979
  51943. #, fuzzy, no-wrap
  51944. msgid "@code{log-level} (type: maybe-string)"
  51945. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  51946. #. type: table
  51947. #: guix-git/doc/guix.texi:33983
  51948. msgid "Supress any messages below this threshold. Available values: @code{notice}, @code{info}, @code{verbose}, @code{warning} and @code{error}."
  51949. msgstr ""
  51950. #. type: item
  51951. #: guix-git/doc/guix.texi:33984
  51952. #, fuzzy, no-wrap
  51953. msgid "@code{music-directory} (type: maybe-string)"
  51954. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  51955. #. type: table
  51956. #: guix-git/doc/guix.texi:33986
  51957. msgid "The directory to scan for music files."
  51958. msgstr ""
  51959. #. type: item
  51960. #: guix-git/doc/guix.texi:33987
  51961. #, fuzzy, no-wrap
  51962. msgid "@code{playlist-directory} (type: maybe-string)"
  51963. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  51964. #. type: table
  51965. #: guix-git/doc/guix.texi:33989
  51966. msgid "The directory to store playlists."
  51967. msgstr ""
  51968. #. type: item
  51969. #: guix-git/doc/guix.texi:33990
  51970. #, fuzzy, no-wrap
  51971. msgid "@code{db-file} (type: maybe-string)"
  51972. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  51973. #. type: table
  51974. #: guix-git/doc/guix.texi:33992
  51975. msgid "The location of the music database."
  51976. msgstr ""
  51977. #. type: item
  51978. #: guix-git/doc/guix.texi:33993
  51979. #, fuzzy, no-wrap
  51980. msgid "@code{state-file} (type: maybe-string)"
  51981. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  51982. #. type: table
  51983. #: guix-git/doc/guix.texi:33995
  51984. msgid "The location of the file that stores current MPD's state."
  51985. msgstr ""
  51986. #. type: item
  51987. #: guix-git/doc/guix.texi:33996
  51988. #, fuzzy, no-wrap
  51989. msgid "@code{sticker-file} (type: maybe-string)"
  51990. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  51991. #. type: table
  51992. #: guix-git/doc/guix.texi:33998
  51993. msgid "The location of the sticker database."
  51994. msgstr ""
  51995. #. type: item
  51996. #: guix-git/doc/guix.texi:33999
  51997. #, fuzzy, no-wrap
  51998. msgid "@code{default-port} (default: @code{6600}) (type: maybe-integer)"
  51999. msgstr "@code{port}(默认值:@code{22})"
  52000. #. type: table
  52001. #: guix-git/doc/guix.texi:34001
  52002. msgid "The default port to run mpd on."
  52003. msgstr ""
  52004. #. type: item
  52005. #: guix-git/doc/guix.texi:34002
  52006. #, fuzzy, no-wrap
  52007. msgid "@code{endpoints} (type: maybe-list-of-strings)"
  52008. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  52009. #. type: table
  52010. #: guix-git/doc/guix.texi:34008
  52011. msgid "The addresses that mpd will bind to. A port different from @var{default-port} may be specified, e.g. @code{localhost:6602} and IPv6 addresses must be enclosed in square brackets when a different port is used. To use a Unix domain socket, an absolute path or a path starting with @code{~} can be specified here."
  52012. msgstr ""
  52013. #. type: item
  52014. #: guix-git/doc/guix.texi:34009
  52015. #, fuzzy, no-wrap
  52016. msgid "@code{database} (type: maybe-mpd-plugin)"
  52017. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  52018. #. type: table
  52019. #: guix-git/doc/guix.texi:34011
  52020. #, fuzzy
  52021. msgid "MPD database plugin configuration."
  52022. msgstr "{数据类型} build-machine"
  52023. #. type: item
  52024. #: guix-git/doc/guix.texi:34012
  52025. #, fuzzy, no-wrap
  52026. msgid "@code{partitions} (default: @code{'()}) (type: list-of-mpd-partition)"
  52027. msgstr "@code{features} (@code{'()})"
  52028. #. type: table
  52029. #: guix-git/doc/guix.texi:34014
  52030. msgid "List of MPD \"partitions\"."
  52031. msgstr ""
  52032. #. type: item
  52033. #: guix-git/doc/guix.texi:34015
  52034. #, fuzzy, no-wrap
  52035. msgid "@code{neighbors} (default: @code{'()}) (type: list-of-mpd-plugin)"
  52036. msgstr "@code{features} (@code{'()})"
  52037. #. type: table
  52038. #: guix-git/doc/guix.texi:34017
  52039. msgid "List of MPD neighbor plugin configurations."
  52040. msgstr ""
  52041. #. type: item
  52042. #: guix-git/doc/guix.texi:34018
  52043. #, fuzzy, no-wrap
  52044. msgid "@code{inputs} (default: @code{'()}) (type: list-of-mpd-plugin)"
  52045. msgstr "@code{features} (@code{'()})"
  52046. #. type: table
  52047. #: guix-git/doc/guix.texi:34020
  52048. msgid "List of MPD input plugin configurations."
  52049. msgstr ""
  52050. #. type: item
  52051. #: guix-git/doc/guix.texi:34021
  52052. #, fuzzy, no-wrap
  52053. msgid "@code{archive-plugins} (default: @code{'()}) (type: list-of-mpd-plugin)"
  52054. msgstr "@code{features} (@code{'()})"
  52055. #. type: table
  52056. #: guix-git/doc/guix.texi:34023
  52057. msgid "List of MPD archive plugin configurations."
  52058. msgstr ""
  52059. #. type: item
  52060. #: guix-git/doc/guix.texi:34024
  52061. #, fuzzy, no-wrap
  52062. msgid "@code{input-cache-size} (type: maybe-string)"
  52063. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  52064. #. type: table
  52065. #: guix-git/doc/guix.texi:34026
  52066. msgid "MPD input cache size."
  52067. msgstr ""
  52068. #. type: item
  52069. #: guix-git/doc/guix.texi:34027
  52070. #, fuzzy, no-wrap
  52071. msgid "@code{decoders} (default: @code{'()}) (type: list-of-mpd-plugin)"
  52072. msgstr "@code{port}(默认值:@code{22})"
  52073. #. type: table
  52074. #: guix-git/doc/guix.texi:34029
  52075. msgid "List of MPD decoder plugin configurations."
  52076. msgstr ""
  52077. #. type: item
  52078. #: guix-git/doc/guix.texi:34030
  52079. #, fuzzy, no-wrap
  52080. msgid "@code{resampler} (type: maybe-mpd-plugin)"
  52081. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  52082. #. type: table
  52083. #: guix-git/doc/guix.texi:34032
  52084. #, fuzzy
  52085. msgid "MPD resampler plugin configuration."
  52086. msgstr "系统配置"
  52087. #. type: item
  52088. #: guix-git/doc/guix.texi:34033
  52089. #, fuzzy, no-wrap
  52090. msgid "@code{filters} (default: @code{'()}) (type: list-of-mpd-plugin)"
  52091. msgstr "@code{port}(默认值:@code{22})"
  52092. #. type: table
  52093. #: guix-git/doc/guix.texi:34035
  52094. msgid "List of MPD filter plugin configurations."
  52095. msgstr ""
  52096. #. type: item
  52097. #: guix-git/doc/guix.texi:34036
  52098. #, fuzzy, no-wrap
  52099. msgid "@code{outputs} (type: list-of-mpd-plugin-or-output)"
  52100. msgstr "@code{features} (@code{'()})"
  52101. #. type: table
  52102. #: guix-git/doc/guix.texi:34039
  52103. msgid "The audio outputs that MPD can use. By default this is a single output using pulseaudio."
  52104. msgstr ""
  52105. #. type: item
  52106. #: guix-git/doc/guix.texi:34040
  52107. #, fuzzy, no-wrap
  52108. msgid "@code{playlist-plugins} (default: @code{'()}) (type: list-of-mpd-plugin)"
  52109. msgstr "@code{features} (@code{'()})"
  52110. #. type: table
  52111. #: guix-git/doc/guix.texi:34042
  52112. msgid "List of MPD playlist plugin configurations."
  52113. msgstr ""
  52114. #. type: item
  52115. #: guix-git/doc/guix.texi:34043 guix-git/doc/guix.texi:34063
  52116. #: guix-git/doc/guix.texi:34079 guix-git/doc/guix.texi:34133
  52117. #, fuzzy, no-wrap
  52118. msgid "@code{extra-options} (default: @code{'()}) (type: alist)"
  52119. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  52120. #. type: table
  52121. #: guix-git/doc/guix.texi:34046
  52122. msgid "An association list of option symbols/strings to string values to be appended to the configuration."
  52123. msgstr ""
  52124. #. type: deftp
  52125. #: guix-git/doc/guix.texi:34050
  52126. #, fuzzy, no-wrap
  52127. msgid "{Data Type} mpd-plugin"
  52128. msgstr "{数据类型} build-machine"
  52129. #. type: deftp
  52130. #: guix-git/doc/guix.texi:34052
  52131. #, fuzzy
  52132. msgid "Data type representing a @command{mpd} plugin."
  52133. msgstr "管理操作系统配置。"
  52134. #. type: item
  52135. #: guix-git/doc/guix.texi:34054
  52136. #, fuzzy, no-wrap
  52137. msgid "@code{plugin} (type: maybe-string)"
  52138. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  52139. #. type: table
  52140. #: guix-git/doc/guix.texi:34056
  52141. msgid "Plugin name."
  52142. msgstr ""
  52143. #. type: item
  52144. #: guix-git/doc/guix.texi:34057
  52145. #, fuzzy, no-wrap
  52146. msgid "@code{name} (type: maybe-string)"
  52147. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  52148. #. type: table
  52149. #: guix-git/doc/guix.texi:34059
  52150. msgid "Name."
  52151. msgstr ""
  52152. #. type: item
  52153. #: guix-git/doc/guix.texi:34060
  52154. #, fuzzy, no-wrap
  52155. msgid "@code{enabled?} (type: maybe-boolean)"
  52156. msgstr "@code{speed}(默认值:@code{1.0})"
  52157. #. type: table
  52158. #: guix-git/doc/guix.texi:34062
  52159. msgid "Whether the plugin is enabled/disabled."
  52160. msgstr ""
  52161. #. type: table
  52162. #: guix-git/doc/guix.texi:34068
  52163. msgid "An association list of option symbols/strings to string values to be appended to the plugin configuration. See @uref{https://mpd.readthedocs.io/en/latest/plugins.html,MPD plugin reference} for available options."
  52164. msgstr ""
  52165. #. type: deftp
  52166. #: guix-git/doc/guix.texi:34072
  52167. #, fuzzy, no-wrap
  52168. msgid "{Data Type} mpd-partition"
  52169. msgstr "{数据类型} build-machine"
  52170. #. type: deftp
  52171. #: guix-git/doc/guix.texi:34074
  52172. #, fuzzy
  52173. msgid "Data type representing a @command{mpd} partition."
  52174. msgstr "管理操作系统配置。"
  52175. #. type: table
  52176. #: guix-git/doc/guix.texi:34078
  52177. #, fuzzy
  52178. #| msgid "origin Reference"
  52179. msgid "Partition name."
  52180. msgstr "origin参考手册"
  52181. #. type: table
  52182. #: guix-git/doc/guix.texi:34084
  52183. msgid "An association list of option symbols/strings to string values to be appended to the partition configuration. See @uref{https://mpd.readthedocs.io/en/latest/user.html#configuring-partitions,Configuring Partitions} for available options."
  52184. msgstr ""
  52185. #. type: deftp
  52186. #: guix-git/doc/guix.texi:34088
  52187. #, no-wrap
  52188. msgid "{Data Type} mpd-output"
  52189. msgstr ""
  52190. #. type: deftp
  52191. #: guix-git/doc/guix.texi:34090
  52192. #, fuzzy
  52193. msgid "Data type representing a @command{mpd} audio output."
  52194. msgstr "管理操作系统配置。"
  52195. #. type: item
  52196. #: guix-git/doc/guix.texi:34092
  52197. #, fuzzy, no-wrap
  52198. msgid "@code{name} (default: @code{\"MPD\"}) (type: string)"
  52199. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  52200. #. type: table
  52201. #: guix-git/doc/guix.texi:34094
  52202. msgid "The name of the audio output."
  52203. msgstr ""
  52204. #. type: item
  52205. #: guix-git/doc/guix.texi:34095
  52206. #, fuzzy, no-wrap
  52207. msgid "@code{type} (default: @code{\"pulse\"}) (type: string)"
  52208. msgstr "@code{port}(默认值:@code{22})"
  52209. #. type: table
  52210. #: guix-git/doc/guix.texi:34097
  52211. msgid "The type of audio output."
  52212. msgstr ""
  52213. #. type: item
  52214. #: guix-git/doc/guix.texi:34098 guix-git/doc/guix.texi:38901
  52215. #, fuzzy, no-wrap
  52216. msgid "@code{enabled?} (default: @code{#t}) (type: boolean)"
  52217. msgstr "@code{speed}(默认值:@code{1.0})"
  52218. #. type: table
  52219. #: guix-git/doc/guix.texi:34103
  52220. 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."
  52221. msgstr ""
  52222. #. type: item
  52223. #: guix-git/doc/guix.texi:34104
  52224. #, fuzzy, no-wrap
  52225. msgid "@code{format} (type: maybe-string)"
  52226. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  52227. #. type: table
  52228. #: guix-git/doc/guix.texi:34108
  52229. msgid "Force a specific audio format on output. See @uref{https://mpd.readthedocs.io/en/latest/user.html#audio-output-format,Global Audio Format} for a more detailed description."
  52230. msgstr ""
  52231. #. type: item
  52232. #: guix-git/doc/guix.texi:34109
  52233. #, fuzzy, no-wrap
  52234. msgid "@code{tags?} (default: @code{#t}) (type: boolean)"
  52235. msgstr "@code{challenge}(默认值:@code{#f})"
  52236. #. type: table
  52237. #: guix-git/doc/guix.texi:34113
  52238. 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."
  52239. msgstr ""
  52240. #. type: item
  52241. #: guix-git/doc/guix.texi:34114
  52242. #, fuzzy, no-wrap
  52243. msgid "@code{always-on?} (default: @code{#f}) (type: boolean)"
  52244. msgstr "@code{challenge}(默认值:@code{#f})"
  52245. #. type: table
  52246. #: guix-git/doc/guix.texi:34118
  52247. 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."
  52248. msgstr ""
  52249. #. type: item
  52250. #: guix-git/doc/guix.texi:34119
  52251. #, fuzzy, no-wrap
  52252. msgid "@code{mixer-type} (default: @code{\"none\"}) (type: string)"
  52253. msgstr "@code{port}(默认值:@code{22})"
  52254. #. type: table
  52255. #: guix-git/doc/guix.texi:34125
  52256. msgid "This field accepts a string 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})."
  52257. msgstr ""
  52258. #. type: item
  52259. #: guix-git/doc/guix.texi:34126
  52260. #, fuzzy, no-wrap
  52261. msgid "@code{replay-gain-handler} (type: maybe-string)"
  52262. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  52263. #. type: table
  52264. #: guix-git/doc/guix.texi:34132
  52265. msgid "This field accepts a string that specifies how @uref{https://mpd.readthedocs.io/en/latest/user.html#replay-gain,Replay Gain} is to be applied. @code{software} uses an internal software volume control, @code{mixer} uses the configured (hardware) mixer control and @code{none} disables replay gain on this audio output."
  52266. msgstr ""
  52267. #. type: table
  52268. #: guix-git/doc/guix.texi:34136
  52269. msgid "An association list of option symbols/strings to string values to be appended to the audio output configuration."
  52270. msgstr ""
  52271. #. type: Plain text
  52272. #: guix-git/doc/guix.texi:34142
  52273. msgid "The following example shows a configuration of @command{mpd} that configures some of its plugins and provides a HTTP audio streaming output."
  52274. msgstr ""
  52275. #. type: lisp
  52276. #: guix-git/doc/guix.texi:34166
  52277. #, no-wrap
  52278. msgid ""
  52279. "(service mpd-service-type\n"
  52280. " (mpd-configuration\n"
  52281. " (outputs\n"
  52282. " (list (mpd-output\n"
  52283. " (name \"streaming\")\n"
  52284. " (type \"httpd\")\n"
  52285. " (mixer-type 'null)\n"
  52286. " (extra-options\n"
  52287. " `((encoder . \"vorbis\")\n"
  52288. " (port . \"8080\"))))))\n"
  52289. " (decoders\n"
  52290. " (list (mpd-plugin\n"
  52291. " (plugin \"mikmod\")\n"
  52292. " (enabled? #f))\n"
  52293. " (mpd-plugin\n"
  52294. " (plugin \"openmpt\")\n"
  52295. " (enabled? #t)\n"
  52296. " (extra-options `((repeat-count . -1)\n"
  52297. " (interpolation-filter . 1))))))\n"
  52298. " (resampler (mpd-plugin\n"
  52299. " (plugin \"libsamplerate\")\n"
  52300. " (extra-options `((type . 0)))))))\n"
  52301. msgstr ""
  52302. #. type: subsubheading
  52303. #: guix-git/doc/guix.texi:34168
  52304. #, no-wrap
  52305. msgid "myMPD"
  52306. msgstr ""
  52307. #. type: cindex
  52308. #: guix-git/doc/guix.texi:34170
  52309. #, fuzzy, no-wrap
  52310. msgid "MPD, web interface"
  52311. msgstr "用户界面"
  52312. #. type: cindex
  52313. #: guix-git/doc/guix.texi:34171
  52314. #, fuzzy, no-wrap
  52315. msgid "myMPD service"
  52316. msgstr "DNS服务"
  52317. #. type: Plain text
  52318. #: guix-git/doc/guix.texi:34175
  52319. msgid "@uref{https://jcorporation.github.io/myMPD/, myMPD} is a web server frontend for MPD that provides a mobile friendly web client for MPD."
  52320. msgstr ""
  52321. #. type: Plain text
  52322. #: guix-git/doc/guix.texi:34178
  52323. msgid "The following example shows a myMPD instance listening on port 80, with album cover caching disabled."
  52324. msgstr ""
  52325. #. type: lisp
  52326. #: guix-git/doc/guix.texi:34184
  52327. #, fuzzy, no-wrap
  52328. msgid ""
  52329. "(service mympd-service-type\n"
  52330. " (mympd-configuration\n"
  52331. " (port 80)\n"
  52332. " (covercache-ttl 0)))\n"
  52333. msgstr ""
  52334. "(service qemu-binfmt-service-type\n"
  52335. " (qemu-binfmt-configuration\n"
  52336. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  52337. " (guix-support? #t)))\n"
  52338. #. type: defvar
  52339. #: guix-git/doc/guix.texi:34186
  52340. #, fuzzy, no-wrap
  52341. msgid "mympd-service-type"
  52342. msgstr "邮件服务"
  52343. #. type: defvar
  52344. #: guix-git/doc/guix.texi:34188
  52345. msgid "The service type for @command{mympd}."
  52346. msgstr ""
  52347. #. type: deftp
  52348. #: guix-git/doc/guix.texi:34191
  52349. #, fuzzy, no-wrap
  52350. msgid "{Data Type} mympd-configuration"
  52351. msgstr "{数据类型} build-machine"
  52352. #. type: deftp
  52353. #: guix-git/doc/guix.texi:34193
  52354. #, fuzzy
  52355. msgid "Available @code{mympd-configuration} fields are:"
  52356. msgstr "{数据类型} build-machine"
  52357. #. type: item
  52358. #: guix-git/doc/guix.texi:34195
  52359. #, fuzzy, no-wrap
  52360. msgid "@code{package} (default: @code{mympd}) (type: file-like)"
  52361. msgstr "@code{xfce}(默认值:@code{xfce})"
  52362. #. type: table
  52363. #: guix-git/doc/guix.texi:34197
  52364. #, fuzzy
  52365. msgid "The package object of the myMPD server."
  52366. msgstr "软件包数据类型。"
  52367. #. type: table
  52368. #: guix-git/doc/guix.texi:34201
  52369. msgid "This is a list of symbols naming Shepherd services that this service will depend on."
  52370. msgstr ""
  52371. #. type: item
  52372. #: guix-git/doc/guix.texi:34202
  52373. #, fuzzy, no-wrap
  52374. msgid "@code{user} (default: @code{%mympd-user}) (type: user-account)"
  52375. msgstr "@code{xfce}(默认值:@code{xfce})"
  52376. #. type: table
  52377. #: guix-git/doc/guix.texi:34204
  52378. msgid "Owner of the @command{mympd} process."
  52379. msgstr ""
  52380. #. type: table
  52381. #: guix-git/doc/guix.texi:34207
  52382. msgid "The default @code{%mympd-user} is a system user with the name ``mympd'', who is a part of the group @var{group} (see below)."
  52383. msgstr ""
  52384. #. type: item
  52385. #: guix-git/doc/guix.texi:34207
  52386. #, fuzzy, no-wrap
  52387. msgid "@code{group} (default: @code{%mympd-group}) (type: user-group)"
  52388. msgstr "@code{port}(默认值:@code{22})"
  52389. #. type: table
  52390. #: guix-git/doc/guix.texi:34209
  52391. msgid "Owner group of the @command{mympd} process."
  52392. msgstr ""
  52393. #. type: table
  52394. #: guix-git/doc/guix.texi:34211
  52395. msgid "The default @code{%mympd-group} is a system group with name ``mympd''."
  52396. msgstr ""
  52397. #. type: item
  52398. #: guix-git/doc/guix.texi:34211
  52399. #, fuzzy, no-wrap
  52400. msgid "@code{work-directory} (default: @code{\"/var/lib/mympd\"}) (type: string)"
  52401. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  52402. #. type: table
  52403. #: guix-git/doc/guix.texi:34213
  52404. msgid "Where myMPD will store its data."
  52405. msgstr ""
  52406. #. type: item
  52407. #: guix-git/doc/guix.texi:34214
  52408. #, fuzzy, no-wrap
  52409. msgid "@code{cache-directory} (default: @code{\"/var/cache/mympd\"}) (type: string)"
  52410. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  52411. #. type: table
  52412. #: guix-git/doc/guix.texi:34216
  52413. msgid "Where myMPD will store its cache."
  52414. msgstr ""
  52415. #. type: item
  52416. #: guix-git/doc/guix.texi:34217
  52417. #, fuzzy, no-wrap
  52418. msgid "@code{acl} (type: maybe-mympd-ip-acl)"
  52419. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  52420. #. type: table
  52421. #: guix-git/doc/guix.texi:34219
  52422. msgid "ACL to access the myMPD webserver."
  52423. msgstr ""
  52424. #. type: item
  52425. #: guix-git/doc/guix.texi:34220
  52426. #, fuzzy, no-wrap
  52427. msgid "@code{covercache-ttl} (default: @code{31}) (type: maybe-integer)"
  52428. msgstr "@code{port}(默认值:@code{22})"
  52429. #. type: table
  52430. #: guix-git/doc/guix.texi:34222
  52431. msgid "How long to keep cached covers, @code{0} disables cover caching."
  52432. msgstr ""
  52433. #. type: item
  52434. #: guix-git/doc/guix.texi:34223
  52435. #, fuzzy, no-wrap
  52436. msgid "@code{http?} (default: @code{#t}) (type: boolean)"
  52437. msgstr "@code{challenge}(默认值:@code{#f})"
  52438. #. type: table
  52439. #: guix-git/doc/guix.texi:34225
  52440. msgid "HTTP support."
  52441. msgstr ""
  52442. #. type: item
  52443. #: guix-git/doc/guix.texi:34226
  52444. #, fuzzy, no-wrap
  52445. msgid "@code{host} (default: @code{\"[::]\"}) (type: string)"
  52446. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  52447. #. type: table
  52448. #: guix-git/doc/guix.texi:34228
  52449. msgid "Host name to listen on."
  52450. msgstr ""
  52451. #. type: item
  52452. #: guix-git/doc/guix.texi:34229
  52453. #, fuzzy, no-wrap
  52454. msgid "@code{port} (default: @code{80}) (type: maybe-port)"
  52455. msgstr "@code{port}(默认值:@code{22})"
  52456. #. type: table
  52457. #: guix-git/doc/guix.texi:34231
  52458. msgid "HTTP port to listen on."
  52459. msgstr ""
  52460. #. type: item
  52461. #: guix-git/doc/guix.texi:34232
  52462. #, fuzzy, no-wrap
  52463. msgid "@code{log-level} (default: @code{5}) (type: integer)"
  52464. msgstr "@code{challenge}(默认值:@code{#f})"
  52465. #. type: table
  52466. #: guix-git/doc/guix.texi:34235
  52467. msgid "How much detail to include in logs, possible values: @code{0} to @code{7}."
  52468. msgstr ""
  52469. #. type: item
  52470. #: guix-git/doc/guix.texi:34236
  52471. #, fuzzy, no-wrap
  52472. msgid "@code{log-to} (default: @code{\"/var/log/mympd/log\"}) (type: string-or-symbol)"
  52473. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  52474. #. type: table
  52475. #: guix-git/doc/guix.texi:34241
  52476. msgid "Where to send logs. By default, the service logs to @file{/var/log/mympd.log}. The alternative is @code{'syslog}, which sends output to the running syslog service under the @samp{daemon} facility."
  52477. msgstr ""
  52478. #. type: item
  52479. #: guix-git/doc/guix.texi:34242
  52480. #, fuzzy, no-wrap
  52481. msgid "@code{lualibs} (default: @code{\"all\"}) (type: maybe-string)"
  52482. msgstr "@code{xfce}(默认值:@code{xfce})"
  52483. #. type: table
  52484. #: guix-git/doc/guix.texi:34245
  52485. msgid "See @uref{https://jcorporation.github.io/myMPD/scripting/#lua-standard-libraries}."
  52486. msgstr ""
  52487. #. type: item
  52488. #: guix-git/doc/guix.texi:34246
  52489. #, fuzzy, no-wrap
  52490. msgid "@code{uri} (type: maybe-string)"
  52491. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  52492. #. type: table
  52493. #: guix-git/doc/guix.texi:34249
  52494. msgid "Override URI to myMPD. See @uref{https://github.com/jcorporation/myMPD/issues/950}."
  52495. msgstr ""
  52496. #. type: item
  52497. #: guix-git/doc/guix.texi:34250
  52498. #, fuzzy, no-wrap
  52499. msgid "@code{script-acl} (default: @code{(mympd-ip-acl (allow '(\"127.0.0.1\")))}) (type: maybe-mympd-ip-acl)"
  52500. msgstr "@code{features} (@code{'()})"
  52501. #. type: table
  52502. #: guix-git/doc/guix.texi:34252
  52503. msgid "ACL to access the myMPD script backend."
  52504. msgstr ""
  52505. #. type: item
  52506. #: guix-git/doc/guix.texi:34253
  52507. #, fuzzy, no-wrap
  52508. msgid "@code{ssl?} (default: @code{#f}) (type: boolean)"
  52509. msgstr "@code{challenge}(默认值:@code{#f})"
  52510. #. type: table
  52511. #: guix-git/doc/guix.texi:34255
  52512. msgid "SSL/TLS support."
  52513. msgstr ""
  52514. #. type: item
  52515. #: guix-git/doc/guix.texi:34256
  52516. #, fuzzy, no-wrap
  52517. msgid "@code{ssl-port} (default: @code{443}) (type: maybe-port)"
  52518. msgstr "@code{port}(默认值:@code{22})"
  52519. #. type: table
  52520. #: guix-git/doc/guix.texi:34258
  52521. msgid "Port to listen for HTTPS."
  52522. msgstr ""
  52523. #. type: item
  52524. #: guix-git/doc/guix.texi:34259
  52525. #, fuzzy, no-wrap
  52526. msgid "@code{ssl-cert} (type: maybe-string)"
  52527. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  52528. #. type: table
  52529. #: guix-git/doc/guix.texi:34261
  52530. msgid "Path to PEM encoded X.509 SSL/TLS certificate (public key)."
  52531. msgstr ""
  52532. #. type: item
  52533. #: guix-git/doc/guix.texi:34262
  52534. #, fuzzy, no-wrap
  52535. msgid "@code{ssl-key} (type: maybe-string)"
  52536. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  52537. #. type: table
  52538. #: guix-git/doc/guix.texi:34264
  52539. msgid "Path to PEM encoded SSL/TLS private key."
  52540. msgstr ""
  52541. #. type: item
  52542. #: guix-git/doc/guix.texi:34265
  52543. #, fuzzy, no-wrap
  52544. msgid "@code{pin-hash} (type: maybe-string)"
  52545. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  52546. #. type: table
  52547. #: guix-git/doc/guix.texi:34268
  52548. msgid "SHA-256 hashed pin used by myMPD to control settings access by prompting a pin from the user."
  52549. msgstr ""
  52550. #. type: item
  52551. #: guix-git/doc/guix.texi:34269
  52552. #, fuzzy, no-wrap
  52553. msgid "@code{save-caches?} (type: maybe-boolean)"
  52554. msgstr "@code{speed}(默认值:@code{1.0})"
  52555. #. type: table
  52556. #: guix-git/doc/guix.texi:34271
  52557. msgid "Whether to preserve caches between service restarts."
  52558. msgstr ""
  52559. #. type: deftp
  52560. #: guix-git/doc/guix.texi:34277
  52561. #, fuzzy, no-wrap
  52562. msgid "{Data Type} mympd-ip-acl"
  52563. msgstr "{数据类型} build-machine"
  52564. #. type: deftp
  52565. #: guix-git/doc/guix.texi:34279
  52566. #, fuzzy
  52567. msgid "Available @code{mympd-ip-acl} fields are:"
  52568. msgstr "{数据类型} build-machine"
  52569. #. type: item
  52570. #: guix-git/doc/guix.texi:34281
  52571. #, fuzzy, no-wrap
  52572. msgid "@code{allow} (default: @code{'()}) (type: list-of-strings)"
  52573. msgstr "@code{port}(默认值:@code{22})"
  52574. #. type: table
  52575. #: guix-git/doc/guix.texi:34283
  52576. msgid "Allowed IP addresses."
  52577. msgstr ""
  52578. #. type: item
  52579. #: guix-git/doc/guix.texi:34284
  52580. #, fuzzy, no-wrap
  52581. msgid "@code{deny} (default: @code{'()}) (type: list-of-strings)"
  52582. msgstr "@code{features} (@code{'()})"
  52583. #. type: table
  52584. #: guix-git/doc/guix.texi:34286
  52585. msgid "Disallowed IP addresses."
  52586. msgstr ""
  52587. #. type: Plain text
  52588. #: guix-git/doc/guix.texi:34297
  52589. msgid "The @code{(gnu services virtualization)} module provides services for the libvirt and virtlog daemons, as well as other virtualization-related services."
  52590. msgstr ""
  52591. #. type: subsubheading
  52592. #: guix-git/doc/guix.texi:34298
  52593. #, no-wrap
  52594. msgid "Libvirt daemon"
  52595. msgstr ""
  52596. #. type: Plain text
  52597. #: guix-git/doc/guix.texi:34303
  52598. 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."
  52599. msgstr ""
  52600. #. type: defvar
  52601. #: guix-git/doc/guix.texi:34304
  52602. #, fuzzy, no-wrap
  52603. msgid "libvirt-service-type"
  52604. msgstr "邮件服务"
  52605. #. type: defvar
  52606. #: guix-git/doc/guix.texi:34307
  52607. msgid "This is the type of the @uref{https://libvirt.org, libvirt daemon}. Its value must be a @code{libvirt-configuration}."
  52608. msgstr ""
  52609. #. type: lisp
  52610. #: guix-git/doc/guix.texi:34313
  52611. #, no-wrap
  52612. msgid ""
  52613. "(service libvirt-service-type\n"
  52614. " (libvirt-configuration\n"
  52615. " (unix-sock-group \"libvirt\")\n"
  52616. " (tls-port \"16555\")))\n"
  52617. msgstr ""
  52618. #. type: Plain text
  52619. #: guix-git/doc/guix.texi:34318
  52620. msgid "Available @code{libvirt-configuration} fields are:"
  52621. msgstr ""
  52622. #. type: deftypevr
  52623. #: guix-git/doc/guix.texi:34319
  52624. #, no-wrap
  52625. msgid "{@code{libvirt-configuration} parameter} package libvirt"
  52626. msgstr ""
  52627. #. type: deftypevar
  52628. #: guix-git/doc/guix.texi:34321 guix-git/doc/guix.texi:34884
  52629. msgid "Libvirt package."
  52630. msgstr ""
  52631. #. type: deftypevr
  52632. #: guix-git/doc/guix.texi:34324
  52633. #, no-wrap
  52634. msgid "{@code{libvirt-configuration} parameter} boolean listen-tls?"
  52635. msgstr ""
  52636. #. type: deftypevr
  52637. #: guix-git/doc/guix.texi:34327
  52638. msgid "Flag listening for secure TLS connections on the public TCP/IP port. You must set @code{listen} for this to have any effect."
  52639. msgstr ""
  52640. #. type: deftypevr
  52641. #: guix-git/doc/guix.texi:34330
  52642. msgid "It is necessary to setup a CA and issue server certificates before using this capability."
  52643. msgstr ""
  52644. #. type: deftypevr
  52645. #: guix-git/doc/guix.texi:34335
  52646. #, no-wrap
  52647. msgid "{@code{libvirt-configuration} parameter} boolean listen-tcp?"
  52648. msgstr ""
  52649. #. type: deftypevr
  52650. #: guix-git/doc/guix.texi:34338
  52651. msgid "Listen for unencrypted TCP connections on the public TCP/IP port. You must set @code{listen} for this to have any effect."
  52652. msgstr ""
  52653. #. type: deftypevr
  52654. #: guix-git/doc/guix.texi:34342
  52655. 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)."
  52656. msgstr ""
  52657. #. type: deftypevr
  52658. #: guix-git/doc/guix.texi:34347
  52659. #, no-wrap
  52660. msgid "{@code{libvirt-configuration} parameter} string tls-port"
  52661. msgstr ""
  52662. #. type: deftypevr
  52663. #: guix-git/doc/guix.texi:34350
  52664. msgid "Port for accepting secure TLS connections. This can be a port number, or service name."
  52665. msgstr ""
  52666. #. type: deftypevr
  52667. #: guix-git/doc/guix.texi:34352
  52668. msgid "Defaults to @samp{\"16514\"}."
  52669. msgstr ""
  52670. #. type: deftypevr
  52671. #: guix-git/doc/guix.texi:34355
  52672. #, no-wrap
  52673. msgid "{@code{libvirt-configuration} parameter} string tcp-port"
  52674. msgstr ""
  52675. #. type: deftypevr
  52676. #: guix-git/doc/guix.texi:34358
  52677. msgid "Port for accepting insecure TCP connections. This can be a port number, or service name."
  52678. msgstr ""
  52679. #. type: deftypevr
  52680. #: guix-git/doc/guix.texi:34360
  52681. msgid "Defaults to @samp{\"16509\"}."
  52682. msgstr ""
  52683. #. type: deftypevr
  52684. #: guix-git/doc/guix.texi:34363
  52685. #, no-wrap
  52686. msgid "{@code{libvirt-configuration} parameter} string listen-addr"
  52687. msgstr ""
  52688. #. type: deftypevr
  52689. #: guix-git/doc/guix.texi:34365
  52690. msgid "IP address or hostname used for client connections."
  52691. msgstr ""
  52692. #. type: deftypevr
  52693. #: guix-git/doc/guix.texi:34370
  52694. #, no-wrap
  52695. msgid "{@code{libvirt-configuration} parameter} boolean mdns-adv?"
  52696. msgstr ""
  52697. #. type: deftypevr
  52698. #: guix-git/doc/guix.texi:34372
  52699. msgid "Flag toggling mDNS advertisement of the libvirt service."
  52700. msgstr ""
  52701. #. type: deftypevr
  52702. #: guix-git/doc/guix.texi:34375
  52703. msgid "Alternatively can disable for all services on a host by stopping the Avahi daemon."
  52704. msgstr ""
  52705. #. type: deftypevr
  52706. #: guix-git/doc/guix.texi:34380
  52707. #, no-wrap
  52708. msgid "{@code{libvirt-configuration} parameter} string mdns-name"
  52709. msgstr ""
  52710. #. type: deftypevr
  52711. #: guix-git/doc/guix.texi:34383
  52712. msgid "Default mDNS advertisement name. This must be unique on the immediate broadcast network."
  52713. msgstr ""
  52714. #. type: deftypevr
  52715. #: guix-git/doc/guix.texi:34385
  52716. msgid "Defaults to @samp{\"Virtualization Host <hostname>\"}."
  52717. msgstr ""
  52718. #. type: deftypevr
  52719. #: guix-git/doc/guix.texi:34388
  52720. #, no-wrap
  52721. msgid "{@code{libvirt-configuration} parameter} string unix-sock-group"
  52722. msgstr ""
  52723. #. type: deftypevr
  52724. #: guix-git/doc/guix.texi:34392
  52725. msgid "UNIX domain socket group ownership. This can be used to allow a 'trusted' set of users access to management capabilities without becoming root."
  52726. msgstr ""
  52727. #. type: deftypevr
  52728. #: guix-git/doc/guix.texi:34397
  52729. #, no-wrap
  52730. msgid "{@code{libvirt-configuration} parameter} string unix-sock-ro-perms"
  52731. msgstr ""
  52732. #. type: deftypevr
  52733. #: guix-git/doc/guix.texi:34400
  52734. msgid "UNIX socket permissions for the R/O socket. This is used for monitoring VM status only."
  52735. msgstr ""
  52736. #. type: deftypevr
  52737. #: guix-git/doc/guix.texi:34402 guix-git/doc/guix.texi:34420
  52738. msgid "Defaults to @samp{\"0777\"}."
  52739. msgstr ""
  52740. #. type: deftypevr
  52741. #: guix-git/doc/guix.texi:34405
  52742. #, no-wrap
  52743. msgid "{@code{libvirt-configuration} parameter} string unix-sock-rw-perms"
  52744. msgstr ""
  52745. #. type: deftypevr
  52746. #: guix-git/doc/guix.texi:34409
  52747. 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)"
  52748. msgstr ""
  52749. #. type: deftypevr
  52750. #: guix-git/doc/guix.texi:34411
  52751. msgid "Defaults to @samp{\"0770\"}."
  52752. msgstr ""
  52753. #. type: deftypevr
  52754. #: guix-git/doc/guix.texi:34414
  52755. #, no-wrap
  52756. msgid "{@code{libvirt-configuration} parameter} string unix-sock-admin-perms"
  52757. msgstr ""
  52758. #. type: deftypevr
  52759. #: guix-git/doc/guix.texi:34418
  52760. 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."
  52761. msgstr ""
  52762. #. type: deftypevr
  52763. #: guix-git/doc/guix.texi:34423
  52764. #, no-wrap
  52765. msgid "{@code{libvirt-configuration} parameter} string unix-sock-dir"
  52766. msgstr ""
  52767. #. type: deftypevr
  52768. #: guix-git/doc/guix.texi:34425
  52769. msgid "The directory in which sockets will be found/created."
  52770. msgstr ""
  52771. #. type: deftypevr
  52772. #: guix-git/doc/guix.texi:34427
  52773. msgid "Defaults to @samp{\"/var/run/libvirt\"}."
  52774. msgstr ""
  52775. #. type: deftypevr
  52776. #: guix-git/doc/guix.texi:34430
  52777. #, no-wrap
  52778. msgid "{@code{libvirt-configuration} parameter} string auth-unix-ro"
  52779. msgstr ""
  52780. #. type: deftypevr
  52781. #: guix-git/doc/guix.texi:34433
  52782. msgid "Authentication scheme for UNIX read-only sockets. By default socket permissions allow anyone to connect"
  52783. msgstr ""
  52784. #. type: deftypevr
  52785. #: guix-git/doc/guix.texi:34435 guix-git/doc/guix.texi:34444
  52786. msgid "Defaults to @samp{\"polkit\"}."
  52787. msgstr ""
  52788. #. type: deftypevr
  52789. #: guix-git/doc/guix.texi:34438
  52790. #, no-wrap
  52791. msgid "{@code{libvirt-configuration} parameter} string auth-unix-rw"
  52792. msgstr ""
  52793. #. type: deftypevr
  52794. #: guix-git/doc/guix.texi:34442
  52795. 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."
  52796. msgstr ""
  52797. #. type: deftypevr
  52798. #: guix-git/doc/guix.texi:34447
  52799. #, no-wrap
  52800. msgid "{@code{libvirt-configuration} parameter} string auth-tcp"
  52801. msgstr ""
  52802. #. type: deftypevr
  52803. #: guix-git/doc/guix.texi:34451
  52804. 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."
  52805. msgstr ""
  52806. #. type: deftypevr
  52807. #: guix-git/doc/guix.texi:34453
  52808. msgid "Defaults to @samp{\"sasl\"}."
  52809. msgstr ""
  52810. #. type: deftypevr
  52811. #: guix-git/doc/guix.texi:34456
  52812. #, no-wrap
  52813. msgid "{@code{libvirt-configuration} parameter} string auth-tls"
  52814. msgstr ""
  52815. #. type: deftypevr
  52816. #: guix-git/doc/guix.texi:34460
  52817. msgid "Authentication scheme for TLS sockets. TLS sockets already have encryption provided by the TLS layer, and limited authentication is done by certificates."
  52818. msgstr ""
  52819. #. type: deftypevr
  52820. #: guix-git/doc/guix.texi:34463
  52821. msgid "It is possible to make use of any SASL authentication mechanism as well, by using 'sasl' for this option"
  52822. msgstr ""
  52823. #. type: deftypevr
  52824. #: guix-git/doc/guix.texi:34465
  52825. msgid "Defaults to @samp{\"none\"}."
  52826. msgstr ""
  52827. #. type: deftypevr
  52828. #: guix-git/doc/guix.texi:34468
  52829. #, no-wrap
  52830. msgid "{@code{libvirt-configuration} parameter} optional-list access-drivers"
  52831. msgstr ""
  52832. #. type: deftypevr
  52833. #: guix-git/doc/guix.texi:34470
  52834. msgid "API access control scheme."
  52835. msgstr ""
  52836. #. type: deftypevr
  52837. #: guix-git/doc/guix.texi:34473
  52838. msgid "By default an authenticated user is allowed access to all APIs. Access drivers can place restrictions on this."
  52839. msgstr ""
  52840. #. type: deftypevr
  52841. #: guix-git/doc/guix.texi:34478
  52842. #, no-wrap
  52843. msgid "{@code{libvirt-configuration} parameter} string key-file"
  52844. msgstr ""
  52845. #. type: deftypevr
  52846. #: guix-git/doc/guix.texi:34481
  52847. msgid "Server key file path. If set to an empty string, then no private key is loaded."
  52848. msgstr ""
  52849. #. type: deftypevr
  52850. #: guix-git/doc/guix.texi:34486
  52851. #, no-wrap
  52852. msgid "{@code{libvirt-configuration} parameter} string cert-file"
  52853. msgstr ""
  52854. #. type: deftypevr
  52855. #: guix-git/doc/guix.texi:34489
  52856. msgid "Server key file path. If set to an empty string, then no certificate is loaded."
  52857. msgstr ""
  52858. #. type: deftypevr
  52859. #: guix-git/doc/guix.texi:34494
  52860. #, no-wrap
  52861. msgid "{@code{libvirt-configuration} parameter} string ca-file"
  52862. msgstr ""
  52863. #. type: deftypevr
  52864. #: guix-git/doc/guix.texi:34497
  52865. msgid "Server key file path. If set to an empty string, then no CA certificate is loaded."
  52866. msgstr ""
  52867. #. type: deftypevr
  52868. #: guix-git/doc/guix.texi:34502
  52869. #, no-wrap
  52870. msgid "{@code{libvirt-configuration} parameter} string crl-file"
  52871. msgstr ""
  52872. #. type: deftypevr
  52873. #: guix-git/doc/guix.texi:34505
  52874. msgid "Certificate revocation list path. If set to an empty string, then no CRL is loaded."
  52875. msgstr ""
  52876. #. type: deftypevr
  52877. #: guix-git/doc/guix.texi:34510
  52878. #, no-wrap
  52879. msgid "{@code{libvirt-configuration} parameter} boolean tls-no-sanity-cert"
  52880. msgstr ""
  52881. #. type: deftypevr
  52882. #: guix-git/doc/guix.texi:34512
  52883. msgid "Disable verification of our own server certificates."
  52884. msgstr ""
  52885. #. type: deftypevr
  52886. #: guix-git/doc/guix.texi:34515
  52887. msgid "When libvirtd starts it performs some sanity checks against its own certificates."
  52888. msgstr ""
  52889. #. type: deftypevr
  52890. #: guix-git/doc/guix.texi:34520
  52891. #, no-wrap
  52892. msgid "{@code{libvirt-configuration} parameter} boolean tls-no-verify-cert"
  52893. msgstr ""
  52894. #. type: deftypevr
  52895. #: guix-git/doc/guix.texi:34522
  52896. msgid "Disable verification of client certificates."
  52897. msgstr ""
  52898. #. type: deftypevr
  52899. #: guix-git/doc/guix.texi:34526
  52900. msgid "Client certificate verification is the primary authentication mechanism. Any client which does not present a certificate signed by the CA will be rejected."
  52901. msgstr ""
  52902. #. type: deftypevr
  52903. #: guix-git/doc/guix.texi:34531
  52904. #, no-wrap
  52905. msgid "{@code{libvirt-configuration} parameter} optional-list tls-allowed-dn-list"
  52906. msgstr ""
  52907. #. type: deftypevr
  52908. #: guix-git/doc/guix.texi:34533
  52909. msgid "Whitelist of allowed x509 Distinguished Name."
  52910. msgstr ""
  52911. #. type: deftypevr
  52912. #: guix-git/doc/guix.texi:34538
  52913. #, no-wrap
  52914. msgid "{@code{libvirt-configuration} parameter} optional-list sasl-allowed-usernames"
  52915. msgstr ""
  52916. #. type: deftypevr
  52917. #: guix-git/doc/guix.texi:34541
  52918. msgid "Whitelist of allowed SASL usernames. The format for username depends on the SASL authentication mechanism."
  52919. msgstr ""
  52920. #. type: deftypevr
  52921. #: guix-git/doc/guix.texi:34546
  52922. #, no-wrap
  52923. msgid "{@code{libvirt-configuration} parameter} string tls-priority"
  52924. msgstr ""
  52925. #. type: deftypevr
  52926. #: guix-git/doc/guix.texi:34550
  52927. 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."
  52928. msgstr ""
  52929. #. type: deftypevr
  52930. #: guix-git/doc/guix.texi:34552
  52931. msgid "Defaults to @samp{\"NORMAL\"}."
  52932. msgstr ""
  52933. #. type: deftypevr
  52934. #: guix-git/doc/guix.texi:34555
  52935. #, no-wrap
  52936. msgid "{@code{libvirt-configuration} parameter} integer max-clients"
  52937. msgstr ""
  52938. #. type: deftypevr
  52939. #: guix-git/doc/guix.texi:34558 guix-git/doc/guix.texi:34986
  52940. msgid "Maximum number of concurrent client connections to allow over all sockets combined."
  52941. msgstr ""
  52942. #. type: deftypevr
  52943. #: guix-git/doc/guix.texi:34560
  52944. msgid "Defaults to @samp{5000}."
  52945. msgstr ""
  52946. #. type: deftypevr
  52947. #: guix-git/doc/guix.texi:34563
  52948. #, no-wrap
  52949. msgid "{@code{libvirt-configuration} parameter} integer max-queued-clients"
  52950. msgstr ""
  52951. #. type: deftypevr
  52952. #: guix-git/doc/guix.texi:34567
  52953. 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."
  52954. msgstr ""
  52955. #. type: deftypevr
  52956. #: guix-git/doc/guix.texi:34572
  52957. #, no-wrap
  52958. msgid "{@code{libvirt-configuration} parameter} integer max-anonymous-clients"
  52959. msgstr ""
  52960. #. type: deftypevr
  52961. #: guix-git/doc/guix.texi:34575
  52962. msgid "Maximum length of queue of accepted but not yet authenticated clients. Set this to zero to turn this feature off"
  52963. msgstr ""
  52964. #. type: deftypevr
  52965. #: guix-git/doc/guix.texi:34577 guix-git/doc/guix.texi:34595
  52966. #: guix-git/doc/guix.texi:34611
  52967. msgid "Defaults to @samp{20}."
  52968. msgstr ""
  52969. #. type: deftypevr
  52970. #: guix-git/doc/guix.texi:34580
  52971. #, no-wrap
  52972. msgid "{@code{libvirt-configuration} parameter} integer min-workers"
  52973. msgstr ""
  52974. #. type: deftypevr
  52975. #: guix-git/doc/guix.texi:34582
  52976. msgid "Number of workers to start up initially."
  52977. msgstr ""
  52978. #. type: deftypevr
  52979. #: guix-git/doc/guix.texi:34587
  52980. #, no-wrap
  52981. msgid "{@code{libvirt-configuration} parameter} integer max-workers"
  52982. msgstr ""
  52983. #. type: deftypevr
  52984. #: guix-git/doc/guix.texi:34589
  52985. msgid "Maximum number of worker threads."
  52986. msgstr ""
  52987. #. type: deftypevr
  52988. #: guix-git/doc/guix.texi:34593
  52989. 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."
  52990. msgstr ""
  52991. #. type: deftypevr
  52992. #: guix-git/doc/guix.texi:34598
  52993. #, no-wrap
  52994. msgid "{@code{libvirt-configuration} parameter} integer prio-workers"
  52995. msgstr ""
  52996. #. type: deftypevr
  52997. #: guix-git/doc/guix.texi:34602
  52998. 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."
  52999. msgstr ""
  53000. #. type: deftypevr
  53001. #: guix-git/doc/guix.texi:34607
  53002. #, no-wrap
  53003. msgid "{@code{libvirt-configuration} parameter} integer max-requests"
  53004. msgstr ""
  53005. #. type: deftypevr
  53006. #: guix-git/doc/guix.texi:34609
  53007. msgid "Total global limit on concurrent RPC calls."
  53008. msgstr ""
  53009. #. type: deftypevr
  53010. #: guix-git/doc/guix.texi:34614
  53011. #, no-wrap
  53012. msgid "{@code{libvirt-configuration} parameter} integer max-client-requests"
  53013. msgstr ""
  53014. #. type: deftypevr
  53015. #: guix-git/doc/guix.texi:34618
  53016. 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."
  53017. msgstr ""
  53018. #. type: deftypevr
  53019. #: guix-git/doc/guix.texi:34623
  53020. #, no-wrap
  53021. msgid "{@code{libvirt-configuration} parameter} integer admin-min-workers"
  53022. msgstr ""
  53023. #. type: deftypevr
  53024. #: guix-git/doc/guix.texi:34625
  53025. msgid "Same as @code{min-workers} but for the admin interface."
  53026. msgstr ""
  53027. #. type: deftypevr
  53028. #: guix-git/doc/guix.texi:34630
  53029. #, no-wrap
  53030. msgid "{@code{libvirt-configuration} parameter} integer admin-max-workers"
  53031. msgstr ""
  53032. #. type: deftypevr
  53033. #: guix-git/doc/guix.texi:34632
  53034. msgid "Same as @code{max-workers} but for the admin interface."
  53035. msgstr ""
  53036. #. type: deftypevr
  53037. #: guix-git/doc/guix.texi:34637
  53038. #, no-wrap
  53039. msgid "{@code{libvirt-configuration} parameter} integer admin-max-clients"
  53040. msgstr ""
  53041. #. type: deftypevr
  53042. #: guix-git/doc/guix.texi:34639
  53043. msgid "Same as @code{max-clients} but for the admin interface."
  53044. msgstr ""
  53045. #. type: deftypevr
  53046. #: guix-git/doc/guix.texi:34644
  53047. #, no-wrap
  53048. msgid "{@code{libvirt-configuration} parameter} integer admin-max-queued-clients"
  53049. msgstr ""
  53050. #. type: deftypevr
  53051. #: guix-git/doc/guix.texi:34646
  53052. msgid "Same as @code{max-queued-clients} but for the admin interface."
  53053. msgstr ""
  53054. #. type: deftypevr
  53055. #: guix-git/doc/guix.texi:34651
  53056. #, no-wrap
  53057. msgid "{@code{libvirt-configuration} parameter} integer admin-max-client-requests"
  53058. msgstr ""
  53059. #. type: deftypevr
  53060. #: guix-git/doc/guix.texi:34653
  53061. msgid "Same as @code{max-client-requests} but for the admin interface."
  53062. msgstr ""
  53063. #. type: deftypevr
  53064. #: guix-git/doc/guix.texi:34658
  53065. #, no-wrap
  53066. msgid "{@code{libvirt-configuration} parameter} integer log-level"
  53067. msgstr ""
  53068. #. type: deftypevr
  53069. #: guix-git/doc/guix.texi:34660 guix-git/doc/guix.texi:34888
  53070. msgid "Logging level. 4 errors, 3 warnings, 2 information, 1 debug."
  53071. msgstr ""
  53072. #. type: deftypevr
  53073. #: guix-git/doc/guix.texi:34662 guix-git/doc/guix.texi:34890
  53074. msgid "Defaults to @samp{3}."
  53075. msgstr ""
  53076. #. type: deftypevr
  53077. #: guix-git/doc/guix.texi:34665
  53078. #, no-wrap
  53079. msgid "{@code{libvirt-configuration} parameter} string log-filters"
  53080. msgstr ""
  53081. #. type: deftypevr
  53082. #: guix-git/doc/guix.texi:34667 guix-git/doc/guix.texi:34895
  53083. msgid "Logging filters."
  53084. msgstr ""
  53085. #. type: deftypevr
  53086. #: guix-git/doc/guix.texi:34670
  53087. msgid "A filter allows to select a different logging level for a given category of logs. The format for a filter is one of:"
  53088. msgstr ""
  53089. #. type: itemize
  53090. #: guix-git/doc/guix.texi:34674 guix-git/doc/guix.texi:34902
  53091. msgid "x:name"
  53092. msgstr ""
  53093. #. type: itemize
  53094. #: guix-git/doc/guix.texi:34677 guix-git/doc/guix.texi:34905
  53095. msgid "x:+name"
  53096. msgstr ""
  53097. #. type: deftypevr
  53098. #: guix-git/doc/guix.texi:34688
  53099. 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:"
  53100. msgstr ""
  53101. #. type: itemize
  53102. #: guix-git/doc/guix.texi:34692 guix-git/doc/guix.texi:34737
  53103. #: guix-git/doc/guix.texi:34919 guix-git/doc/guix.texi:34964
  53104. msgid "1: DEBUG"
  53105. msgstr ""
  53106. #. type: itemize
  53107. #: guix-git/doc/guix.texi:34695 guix-git/doc/guix.texi:34740
  53108. #: guix-git/doc/guix.texi:34922 guix-git/doc/guix.texi:34967
  53109. msgid "2: INFO"
  53110. msgstr ""
  53111. #. type: itemize
  53112. #: guix-git/doc/guix.texi:34698 guix-git/doc/guix.texi:34743
  53113. #: guix-git/doc/guix.texi:34925 guix-git/doc/guix.texi:34970
  53114. msgid "3: WARNING"
  53115. msgstr ""
  53116. #. type: itemize
  53117. #: guix-git/doc/guix.texi:34701 guix-git/doc/guix.texi:34746
  53118. #: guix-git/doc/guix.texi:34928 guix-git/doc/guix.texi:34973
  53119. msgid "4: ERROR"
  53120. msgstr ""
  53121. #. type: deftypevr
  53122. #: guix-git/doc/guix.texi:34706 guix-git/doc/guix.texi:34933
  53123. msgid "Multiple filters can be defined in a single filters statement, they just need to be separated by spaces."
  53124. msgstr ""
  53125. #. type: deftypevr
  53126. #: guix-git/doc/guix.texi:34708 guix-git/doc/guix.texi:34935
  53127. msgid "Defaults to @samp{\"3:remote 4:event\"}."
  53128. msgstr ""
  53129. #. type: deftypevr
  53130. #: guix-git/doc/guix.texi:34711
  53131. #, no-wrap
  53132. msgid "{@code{libvirt-configuration} parameter} string log-outputs"
  53133. msgstr ""
  53134. #. type: deftypevr
  53135. #: guix-git/doc/guix.texi:34713 guix-git/doc/guix.texi:34940
  53136. msgid "Logging outputs."
  53137. msgstr ""
  53138. #. type: deftypevr
  53139. #: guix-git/doc/guix.texi:34716
  53140. msgid "An output is one of the places to save logging information. The format for an output can be:"
  53141. msgstr ""
  53142. #. type: item
  53143. #: guix-git/doc/guix.texi:34718 guix-git/doc/guix.texi:34945
  53144. #, no-wrap
  53145. msgid "x:stderr"
  53146. msgstr ""
  53147. #. type: table
  53148. #: guix-git/doc/guix.texi:34720 guix-git/doc/guix.texi:34947
  53149. msgid "output goes to stderr"
  53150. msgstr ""
  53151. #. type: item
  53152. #: guix-git/doc/guix.texi:34721 guix-git/doc/guix.texi:34948
  53153. #, no-wrap
  53154. msgid "x:syslog:name"
  53155. msgstr ""
  53156. #. type: table
  53157. #: guix-git/doc/guix.texi:34723 guix-git/doc/guix.texi:34950
  53158. msgid "use syslog for the output and use the given name as the ident"
  53159. msgstr ""
  53160. #. type: item
  53161. #: guix-git/doc/guix.texi:34724 guix-git/doc/guix.texi:34951
  53162. #, no-wrap
  53163. msgid "x:file:file_path"
  53164. msgstr ""
  53165. #. type: table
  53166. #: guix-git/doc/guix.texi:34726 guix-git/doc/guix.texi:34953
  53167. msgid "output to a file, with the given filepath"
  53168. msgstr ""
  53169. #. type: item
  53170. #: guix-git/doc/guix.texi:34727 guix-git/doc/guix.texi:34954
  53171. #, no-wrap
  53172. msgid "x:journald"
  53173. msgstr ""
  53174. #. type: table
  53175. #: guix-git/doc/guix.texi:34729 guix-git/doc/guix.texi:34956
  53176. msgid "output to journald logging system"
  53177. msgstr ""
  53178. #. type: deftypevr
  53179. #: guix-git/doc/guix.texi:34733 guix-git/doc/guix.texi:34960
  53180. msgid "In all case the x prefix is the minimal level, acting as a filter"
  53181. msgstr ""
  53182. #. type: deftypevr
  53183. #: guix-git/doc/guix.texi:34751 guix-git/doc/guix.texi:34978
  53184. msgid "Multiple outputs can be defined, they just need to be separated by spaces."
  53185. msgstr ""
  53186. #. type: deftypevr
  53187. #: guix-git/doc/guix.texi:34753 guix-git/doc/guix.texi:34980
  53188. msgid "Defaults to @samp{\"3:stderr\"}."
  53189. msgstr ""
  53190. #. type: deftypevr
  53191. #: guix-git/doc/guix.texi:34756
  53192. #, no-wrap
  53193. msgid "{@code{libvirt-configuration} parameter} integer audit-level"
  53194. msgstr ""
  53195. #. type: deftypevr
  53196. #: guix-git/doc/guix.texi:34758
  53197. msgid "Allows usage of the auditing subsystem to be altered"
  53198. msgstr ""
  53199. #. type: itemize
  53200. #: guix-git/doc/guix.texi:34762
  53201. msgid "0: disable all auditing"
  53202. msgstr ""
  53203. #. type: itemize
  53204. #: guix-git/doc/guix.texi:34765
  53205. msgid "1: enable auditing, only if enabled on host"
  53206. msgstr ""
  53207. #. type: itemize
  53208. #: guix-git/doc/guix.texi:34768
  53209. msgid "2: enable auditing, and exit if disabled on host."
  53210. msgstr ""
  53211. #. type: deftypevr
  53212. #: guix-git/doc/guix.texi:34775
  53213. #, no-wrap
  53214. msgid "{@code{libvirt-configuration} parameter} boolean audit-logging"
  53215. msgstr ""
  53216. #. type: deftypevr
  53217. #: guix-git/doc/guix.texi:34777
  53218. msgid "Send audit messages via libvirt logging infrastructure."
  53219. msgstr ""
  53220. #. type: deftypevr
  53221. #: guix-git/doc/guix.texi:34782
  53222. #, no-wrap
  53223. msgid "{@code{libvirt-configuration} parameter} optional-string host-uuid"
  53224. msgstr ""
  53225. #. type: deftypevr
  53226. #: guix-git/doc/guix.texi:34784
  53227. msgid "Host UUID@. UUID must not have all digits be the same."
  53228. msgstr ""
  53229. #. type: deftypevr
  53230. #: guix-git/doc/guix.texi:34789
  53231. #, no-wrap
  53232. msgid "{@code{libvirt-configuration} parameter} string host-uuid-source"
  53233. msgstr ""
  53234. #. type: deftypevr
  53235. #: guix-git/doc/guix.texi:34791
  53236. msgid "Source to read host UUID."
  53237. msgstr ""
  53238. #. type: itemize
  53239. #: guix-git/doc/guix.texi:34795
  53240. msgid "@code{smbios}: fetch the UUID from @code{dmidecode -s system-uuid}"
  53241. msgstr ""
  53242. #. type: itemize
  53243. #: guix-git/doc/guix.texi:34798
  53244. msgid "@code{machine-id}: fetch the UUID from @code{/etc/machine-id}"
  53245. msgstr ""
  53246. #. type: deftypevr
  53247. #: guix-git/doc/guix.texi:34803
  53248. msgid "If @code{dmidecode} does not provide a valid UUID a temporary UUID will be generated."
  53249. msgstr ""
  53250. #. type: deftypevr
  53251. #: guix-git/doc/guix.texi:34805
  53252. msgid "Defaults to @samp{\"smbios\"}."
  53253. msgstr ""
  53254. #. type: deftypevr
  53255. #: guix-git/doc/guix.texi:34808
  53256. #, no-wrap
  53257. msgid "{@code{libvirt-configuration} parameter} integer keepalive-interval"
  53258. msgstr ""
  53259. #. type: deftypevr
  53260. #: guix-git/doc/guix.texi:34813
  53261. 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."
  53262. msgstr ""
  53263. #. type: deftypevr
  53264. #: guix-git/doc/guix.texi:34818
  53265. #, no-wrap
  53266. msgid "{@code{libvirt-configuration} parameter} integer keepalive-count"
  53267. msgstr ""
  53268. #. type: deftypevr
  53269. #: guix-git/doc/guix.texi:34822
  53270. 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."
  53271. msgstr ""
  53272. #. type: deftypevr
  53273. #: guix-git/doc/guix.texi:34829
  53274. 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."
  53275. msgstr ""
  53276. #. type: deftypevr
  53277. #: guix-git/doc/guix.texi:34834
  53278. #, no-wrap
  53279. msgid "{@code{libvirt-configuration} parameter} integer admin-keepalive-interval"
  53280. msgstr ""
  53281. #. type: deftypevr
  53282. #: guix-git/doc/guix.texi:34836 guix-git/doc/guix.texi:34843
  53283. msgid "Same as above but for admin interface."
  53284. msgstr ""
  53285. #. type: deftypevr
  53286. #: guix-git/doc/guix.texi:34841
  53287. #, no-wrap
  53288. msgid "{@code{libvirt-configuration} parameter} integer admin-keepalive-count"
  53289. msgstr ""
  53290. #. type: deftypevr
  53291. #: guix-git/doc/guix.texi:34848
  53292. #, no-wrap
  53293. msgid "{@code{libvirt-configuration} parameter} integer ovs-timeout"
  53294. msgstr ""
  53295. #. type: deftypevr
  53296. #: guix-git/doc/guix.texi:34850
  53297. msgid "Timeout for Open vSwitch calls."
  53298. msgstr ""
  53299. #. type: deftypevr
  53300. #: guix-git/doc/guix.texi:34854
  53301. 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."
  53302. msgstr ""
  53303. #. type: subsubheading
  53304. #: guix-git/doc/guix.texi:34861
  53305. #, no-wrap
  53306. msgid "Virtlog daemon"
  53307. msgstr ""
  53308. #. type: Plain text
  53309. #: guix-git/doc/guix.texi:34864
  53310. msgid "The virtlogd service is a server side daemon component of libvirt that is used to manage logs from virtual machine consoles."
  53311. msgstr ""
  53312. #. type: Plain text
  53313. #: guix-git/doc/guix.texi:34870
  53314. 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."
  53315. msgstr ""
  53316. #. type: defvar
  53317. #: guix-git/doc/guix.texi:34871
  53318. #, fuzzy, no-wrap
  53319. msgid "virtlog-service-type"
  53320. msgstr "邮件服务"
  53321. #. type: defvar
  53322. #: guix-git/doc/guix.texi:34874
  53323. msgid "This is the type of the virtlog daemon. Its value must be a @code{virtlog-configuration}."
  53324. msgstr ""
  53325. #. type: lisp
  53326. #: guix-git/doc/guix.texi:34879
  53327. #, no-wrap
  53328. msgid ""
  53329. "(service virtlog-service-type\n"
  53330. " (virtlog-configuration\n"
  53331. " (max-clients 1000)))\n"
  53332. msgstr ""
  53333. #. type: deftypevar
  53334. #: guix-git/doc/guix.texi:34882
  53335. #, no-wrap
  53336. msgid "{@code{libvirt} parameter} package libvirt"
  53337. msgstr ""
  53338. #. type: deftypevr
  53339. #: guix-git/doc/guix.texi:34886
  53340. #, no-wrap
  53341. msgid "{@code{virtlog-configuration} parameter} integer log-level"
  53342. msgstr ""
  53343. #. type: deftypevr
  53344. #: guix-git/doc/guix.texi:34893
  53345. #, no-wrap
  53346. msgid "{@code{virtlog-configuration} parameter} string log-filters"
  53347. msgstr ""
  53348. #. type: deftypevr
  53349. #: guix-git/doc/guix.texi:34898
  53350. msgid "A filter allows to select a different logging level for a given category of logs The format for a filter is one of:"
  53351. msgstr ""
  53352. #. type: deftypevr
  53353. #: guix-git/doc/guix.texi:34915
  53354. 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:"
  53355. msgstr ""
  53356. #. type: deftypevr
  53357. #: guix-git/doc/guix.texi:34938
  53358. #, no-wrap
  53359. msgid "{@code{virtlog-configuration} parameter} string log-outputs"
  53360. msgstr ""
  53361. #. type: deftypevr
  53362. #: guix-git/doc/guix.texi:34943
  53363. msgid "An output is one of the places to save logging information The format for an output can be:"
  53364. msgstr ""
  53365. #. type: deftypevr
  53366. #: guix-git/doc/guix.texi:34983
  53367. #, no-wrap
  53368. msgid "{@code{virtlog-configuration} parameter} integer max-clients"
  53369. msgstr ""
  53370. #. type: deftypevr
  53371. #: guix-git/doc/guix.texi:34988
  53372. msgid "Defaults to @samp{1024}."
  53373. msgstr ""
  53374. #. type: deftypevr
  53375. #: guix-git/doc/guix.texi:34991
  53376. #, no-wrap
  53377. msgid "{@code{virtlog-configuration} parameter} integer max-size"
  53378. msgstr ""
  53379. #. type: deftypevr
  53380. #: guix-git/doc/guix.texi:34993
  53381. msgid "Maximum file size before rolling over."
  53382. msgstr ""
  53383. #. type: deftypevr
  53384. #: guix-git/doc/guix.texi:34995
  53385. msgid "Defaults to @samp{2MB}"
  53386. msgstr ""
  53387. #. type: deftypevr
  53388. #: guix-git/doc/guix.texi:34998
  53389. #, no-wrap
  53390. msgid "{@code{virtlog-configuration} parameter} integer max-backups"
  53391. msgstr ""
  53392. #. type: deftypevr
  53393. #: guix-git/doc/guix.texi:35000
  53394. msgid "Maximum number of backup files to keep."
  53395. msgstr ""
  53396. #. type: deftypevr
  53397. #: guix-git/doc/guix.texi:35002
  53398. msgid "Defaults to @samp{3}"
  53399. msgstr ""
  53400. #. type: anchor{#1}
  53401. #: guix-git/doc/guix.texi:35006
  53402. msgid "transparent-emulation-qemu"
  53403. msgstr ""
  53404. #. type: subsubheading
  53405. #: guix-git/doc/guix.texi:35006
  53406. #, no-wrap
  53407. msgid "Transparent Emulation with QEMU"
  53408. msgstr ""
  53409. #. type: cindex
  53410. #: guix-git/doc/guix.texi:35008 guix-git/doc/guix.texi:35088
  53411. #, no-wrap
  53412. msgid "emulation"
  53413. msgstr ""
  53414. #. type: code{#1}
  53415. #: guix-git/doc/guix.texi:35009
  53416. #, no-wrap
  53417. msgid "binfmt_misc"
  53418. msgstr ""
  53419. #. type: Plain text
  53420. #: guix-git/doc/guix.texi:35017
  53421. 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."
  53422. msgstr ""
  53423. #. type: defvar
  53424. #: guix-git/doc/guix.texi:35018
  53425. #, fuzzy, no-wrap
  53426. msgid "qemu-binfmt-service-type"
  53427. msgstr "邮件服务"
  53428. #. type: defvar
  53429. #: guix-git/doc/guix.texi:35023
  53430. 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:"
  53431. msgstr ""
  53432. #. type: lisp
  53433. #: guix-git/doc/guix.texi:35028
  53434. #, no-wrap
  53435. msgid ""
  53436. "(service qemu-binfmt-service-type\n"
  53437. " (qemu-binfmt-configuration\n"
  53438. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))))\n"
  53439. msgstr ""
  53440. "(service qemu-binfmt-service-type\n"
  53441. " (qemu-binfmt-configuration\n"
  53442. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))))\n"
  53443. #. type: defvar
  53444. #: guix-git/doc/guix.texi:35034
  53445. 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})."
  53446. msgstr ""
  53447. #. type: deftp
  53448. #: guix-git/doc/guix.texi:35036
  53449. #, no-wrap
  53450. msgid "{Data Type} qemu-binfmt-configuration"
  53451. msgstr ""
  53452. #. type: deftp
  53453. #: guix-git/doc/guix.texi:35038
  53454. msgid "This is the configuration for the @code{qemu-binfmt} service."
  53455. msgstr ""
  53456. #. type: item
  53457. #: guix-git/doc/guix.texi:35040
  53458. #, no-wrap
  53459. msgid "@code{platforms} (default: @code{'()})"
  53460. msgstr ""
  53461. #. type: table
  53462. #: guix-git/doc/guix.texi:35043
  53463. msgid "The list of emulated QEMU platforms. Each item must be a @dfn{platform object} as returned by @code{lookup-qemu-platforms} (see below)."
  53464. msgstr ""
  53465. #. type: table
  53466. #: guix-git/doc/guix.texi:35046
  53467. msgid "For example, let's suppose you're on an x86_64 machine and you have this service:"
  53468. msgstr ""
  53469. #. type: lisp
  53470. #: guix-git/doc/guix.texi:35051
  53471. #, no-wrap
  53472. msgid ""
  53473. "(service qemu-binfmt-service-type\n"
  53474. " (qemu-binfmt-configuration\n"
  53475. " (platforms (lookup-qemu-platforms \"arm\"))))\n"
  53476. msgstr ""
  53477. "(service qemu-binfmt-service-type\n"
  53478. " (qemu-binfmt-configuration\n"
  53479. " (platforms (lookup-qemu-platforms \"arm\"))))\n"
  53480. #. type: table
  53481. #: guix-git/doc/guix.texi:35054
  53482. msgid "You can run:"
  53483. msgstr ""
  53484. #. type: example
  53485. #: guix-git/doc/guix.texi:35057
  53486. #, no-wrap
  53487. msgid "guix build -s armhf-linux inkscape\n"
  53488. msgstr ""
  53489. #. type: table
  53490. #: guix-git/doc/guix.texi:35064
  53491. 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!"
  53492. msgstr ""
  53493. #. type: item
  53494. #: guix-git/doc/guix.texi:35065
  53495. #, no-wrap
  53496. msgid "@code{qemu} (default: @code{qemu})"
  53497. msgstr ""
  53498. #. type: table
  53499. #: guix-git/doc/guix.texi:35067 guix-git/doc/guix.texi:35125
  53500. #: guix-git/doc/guix.texi:35207
  53501. msgid "The QEMU package to use."
  53502. msgstr ""
  53503. #. type: defun
  53504. #: guix-git/doc/guix.texi:35070
  53505. #, no-wrap
  53506. msgid "lookup-qemu-platforms platforms@dots{}"
  53507. msgstr ""
  53508. #. type: defun
  53509. #: guix-git/doc/guix.texi:35075
  53510. 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."
  53511. msgstr ""
  53512. #. type: defun
  53513. #: guix-git/doc/guix.texi:35077
  53514. #, no-wrap
  53515. msgid "qemu-platform? obj"
  53516. msgstr ""
  53517. #. type: defun
  53518. #: guix-git/doc/guix.texi:35079
  53519. msgid "Return true if @var{obj} is a platform object."
  53520. msgstr ""
  53521. #. type: defun
  53522. #: guix-git/doc/guix.texi:35081
  53523. #, no-wrap
  53524. msgid "qemu-platform-name platform"
  53525. msgstr ""
  53526. #. type: defun
  53527. #: guix-git/doc/guix.texi:35083
  53528. msgid "Return the name of @var{platform}---a string such as @code{\"arm\"}."
  53529. msgstr ""
  53530. #. type: subsubheading
  53531. #: guix-git/doc/guix.texi:35086
  53532. #, no-wrap
  53533. msgid "QEMU Guest Agent"
  53534. msgstr ""
  53535. #. type: Plain text
  53536. #: guix-git/doc/guix.texi:35094
  53537. 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:"
  53538. msgstr ""
  53539. #. type: example
  53540. #: guix-git/doc/guix.texi:35101
  53541. #, no-wrap
  53542. msgid ""
  53543. "qemu-system-x86_64 \\\n"
  53544. "\t-chardev socket,path=/tmp/qga.sock,server=on,wait=off,id=qga0 \\\n"
  53545. "\t-device virtio-serial \\\n"
  53546. "\t-device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 \\\n"
  53547. "\t...\n"
  53548. msgstr ""
  53549. #. type: Plain text
  53550. #: guix-git/doc/guix.texi:35105
  53551. 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}:"
  53552. msgstr ""
  53553. #. type: example
  53554. #: guix-git/doc/guix.texi:35110
  53555. #, no-wrap
  53556. msgid ""
  53557. "$ guix shell socat -- socat unix-connect:/tmp/qga.sock stdio\n"
  53558. "@{\"execute\": \"guest-get-host-name\"@}\n"
  53559. "@{\"return\": @{\"host-name\": \"guix\"@}@}\n"
  53560. msgstr ""
  53561. #. type: Plain text
  53562. #: guix-git/doc/guix.texi:35114
  53563. msgid "See @url{https://wiki.qemu.org/Features/GuestAgent,QEMU guest agent documentation} for more options and commands."
  53564. msgstr ""
  53565. #. type: defvar
  53566. #: guix-git/doc/guix.texi:35115
  53567. #, fuzzy, no-wrap
  53568. msgid "qemu-guest-agent-service-type"
  53569. msgstr "邮件服务"
  53570. #. type: defvar
  53571. #: guix-git/doc/guix.texi:35117
  53572. #, fuzzy
  53573. #| msgid "Service Types and Services"
  53574. msgid "Service type for the QEMU guest agent service."
  53575. msgstr "服务类型和服务"
  53576. #. type: deftp
  53577. #: guix-git/doc/guix.texi:35119
  53578. #, fuzzy, no-wrap
  53579. msgid "{Data Type} qemu-guest-agent-configuration"
  53580. msgstr "{数据类型} build-machine"
  53581. #. type: deftp
  53582. #: guix-git/doc/guix.texi:35121
  53583. #, fuzzy
  53584. msgid "Configuration for the @code{qemu-guest-agent} service."
  53585. msgstr "管理操作系统配置。"
  53586. #. type: item
  53587. #: guix-git/doc/guix.texi:35123 guix-git/doc/guix.texi:35205
  53588. #, fuzzy, no-wrap
  53589. msgid "@code{qemu} (default: @code{qemu-minimal})"
  53590. msgstr "@code{mate}(默认值:@code{mate})"
  53591. #. type: item
  53592. #: guix-git/doc/guix.texi:35126
  53593. #, fuzzy, no-wrap
  53594. msgid "@code{device} (default: @code{\"\"})"
  53595. msgstr "@code{speed}(默认值:@code{1.0})"
  53596. #. type: table
  53597. #: guix-git/doc/guix.texi:35129
  53598. msgid "File name of the device or socket the agent uses to communicate with the host. If empty, QEMU uses a default file name."
  53599. msgstr ""
  53600. #. type: subsubheading
  53601. #: guix-git/doc/guix.texi:35133
  53602. #, no-wrap
  53603. msgid "The Hurd in a Virtual Machine"
  53604. msgstr ""
  53605. #. type: cindex
  53606. #: guix-git/doc/guix.texi:35136
  53607. #, no-wrap
  53608. msgid "the Hurd"
  53609. msgstr ""
  53610. #. type: cindex
  53611. #: guix-git/doc/guix.texi:35137
  53612. #, no-wrap
  53613. msgid "childhurd"
  53614. msgstr ""
  53615. #. type: Plain text
  53616. #: guix-git/doc/guix.texi:35145
  53617. 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:"
  53618. msgstr ""
  53619. #. type: example
  53620. #: guix-git/doc/guix.texi:35149
  53621. #, no-wrap
  53622. msgid ""
  53623. "herd start hurd-vm\n"
  53624. "herd stop childhurd\n"
  53625. msgstr ""
  53626. #. type: Plain text
  53627. #: guix-git/doc/guix.texi:35153
  53628. msgid "When the service is running, you can view its console by connecting to it with a VNC client, for example with:"
  53629. msgstr ""
  53630. #. type: example
  53631. #: guix-git/doc/guix.texi:35156
  53632. #, no-wrap
  53633. msgid "guix shell tigervnc-client -- vncviewer localhost:5900\n"
  53634. msgstr ""
  53635. #. type: Plain text
  53636. #: guix-git/doc/guix.texi:35162
  53637. 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:"
  53638. msgstr ""
  53639. #. type: example
  53640. #: guix-git/doc/guix.texi:35165
  53641. #, no-wrap
  53642. msgid "ssh root@@localhost -p 10022\n"
  53643. msgstr ""
  53644. #. type: Plain text
  53645. #: guix-git/doc/guix.texi:35174
  53646. 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."
  53647. msgstr ""
  53648. #. type: defvar
  53649. #: guix-git/doc/guix.texi:35175
  53650. #, fuzzy, no-wrap
  53651. msgid "hurd-vm-service-type"
  53652. msgstr "邮件服务"
  53653. #. type: defvar
  53654. #: guix-git/doc/guix.texi:35181
  53655. 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."
  53656. msgstr ""
  53657. #. type: lisp
  53658. #: guix-git/doc/guix.texi:35189
  53659. #, no-wrap
  53660. msgid ""
  53661. "(service hurd-vm-service-type\n"
  53662. " (hurd-vm-configuration\n"
  53663. " (disk-size (* 5000 (expt 2 20))) ;5G\n"
  53664. " (memory-size 1024))) ;1024MiB\n"
  53665. msgstr ""
  53666. #. type: defvar
  53667. #: guix-git/doc/guix.texi:35193
  53668. msgid "would create a disk image big enough to build GNU@tie{}Hello, with some extra memory."
  53669. msgstr ""
  53670. #. type: deftp
  53671. #: guix-git/doc/guix.texi:35195
  53672. #, fuzzy, no-wrap
  53673. msgid "{Data Type} hurd-vm-configuration"
  53674. msgstr "{数据类型} build-machine"
  53675. #. type: deftp
  53676. #: guix-git/doc/guix.texi:35198
  53677. msgid "The data type representing the configuration for @code{hurd-vm-service-type}."
  53678. msgstr ""
  53679. #. type: item
  53680. #: guix-git/doc/guix.texi:35200
  53681. #, fuzzy, no-wrap
  53682. msgid "@code{os} (default: @var{%hurd-vm-operating-system})"
  53683. msgstr "@code{mate}(默认值:@code{mate})"
  53684. #. type: table
  53685. #: guix-git/doc/guix.texi:35204
  53686. 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}})."
  53687. msgstr ""
  53688. #. type: item
  53689. #: guix-git/doc/guix.texi:35208
  53690. #, fuzzy, no-wrap
  53691. msgid "@code{image} (default: @var{hurd-vm-disk-image})"
  53692. msgstr "@code{mate}(默认值:@code{mate})"
  53693. #. type: table
  53694. #: guix-git/doc/guix.texi:35211
  53695. msgid "The procedure used to build the disk-image built from this configuration."
  53696. msgstr ""
  53697. #. type: item
  53698. #: guix-git/doc/guix.texi:35212
  53699. #, fuzzy, no-wrap
  53700. msgid "@code{disk-size} (default: @code{'guess})"
  53701. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  53702. #. type: table
  53703. #: guix-git/doc/guix.texi:35214
  53704. #, fuzzy
  53705. msgid "The size of the disk image."
  53706. msgstr "这个用户手册的许可证。"
  53707. #. type: item
  53708. #: guix-git/doc/guix.texi:35215
  53709. #, fuzzy, no-wrap
  53710. msgid "@code{memory-size} (default: @code{512})"
  53711. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  53712. #. type: table
  53713. #: guix-git/doc/guix.texi:35217
  53714. msgid "The memory size of the Virtual Machine in mebibytes."
  53715. msgstr ""
  53716. #. type: item
  53717. #: guix-git/doc/guix.texi:35218
  53718. #, fuzzy, no-wrap
  53719. msgid "@code{options} (default: @code{'(\"--snapshot\")})"
  53720. msgstr "@code{includes}(默认值:@code{'()})"
  53721. #. type: table
  53722. #: guix-git/doc/guix.texi:35220
  53723. msgid "The extra options for running QEMU."
  53724. msgstr ""
  53725. #. type: table
  53726. #: guix-git/doc/guix.texi:35225
  53727. 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}."
  53728. msgstr ""
  53729. #. type: item
  53730. #: guix-git/doc/guix.texi:35226
  53731. #, no-wrap
  53732. msgid "@code{net-options} (default: @var{hurd-vm-net-options})"
  53733. msgstr ""
  53734. #. type: table
  53735. #: guix-git/doc/guix.texi:35228
  53736. msgid "The procedure used to produce the list of QEMU networking options."
  53737. msgstr ""
  53738. #. type: table
  53739. #: guix-git/doc/guix.texi:35230
  53740. msgid "By default, it produces"
  53741. msgstr ""
  53742. #. type: lisp
  53743. #: guix-git/doc/guix.texi:35238
  53744. #, no-wrap
  53745. msgid ""
  53746. "'(\"--device\" \"rtl8139,netdev=net0\"\n"
  53747. " \"--netdev\" (string-append\n"
  53748. " \"user,id=net0,\"\n"
  53749. " \"hostfwd=tcp:127.0.0.1:@var{secrets-port}-:1004,\"\n"
  53750. " \"hostfwd=tcp:127.0.0.1:@var{ssh-port}-:2222,\"\n"
  53751. " \"hostfwd=tcp:127.0.0.1:@var{vnc-port}-:5900\"))\n"
  53752. msgstr ""
  53753. #. type: table
  53754. #: guix-git/doc/guix.texi:35241
  53755. msgid "with forwarded ports:"
  53756. msgstr ""
  53757. #. type: example
  53758. #: guix-git/doc/guix.texi:35246
  53759. #, no-wrap
  53760. msgid ""
  53761. "@var{secrets-port}: @code{(+ 11004 (* 1000 @var{ID}))}\n"
  53762. "@var{ssh-port}: @code{(+ 10022 (* 1000 @var{ID}))}\n"
  53763. "@var{vnc-port}: @code{(+ 15900 (* 1000 @var{ID}))}\n"
  53764. msgstr ""
  53765. #. type: item
  53766. #: guix-git/doc/guix.texi:35248
  53767. #, fuzzy, no-wrap
  53768. msgid "@code{secret-root} (default: @file{/etc/childhurd})"
  53769. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  53770. #. type: table
  53771. #: guix-git/doc/guix.texi:35253
  53772. 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."
  53773. msgstr ""
  53774. #. type: table
  53775. #: guix-git/doc/guix.texi:35257
  53776. 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."
  53777. msgstr ""
  53778. #. type: table
  53779. #: guix-git/doc/guix.texi:35260
  53780. msgid "By default, the service automatically populates @file{/etc/childhurd} with the following non-volatile secrets, unless they already exist:"
  53781. msgstr ""
  53782. #. type: example
  53783. #: guix-git/doc/guix.texi:35269
  53784. #, no-wrap
  53785. msgid ""
  53786. "/etc/childhurd/etc/guix/acl\n"
  53787. "/etc/childhurd/etc/guix/signing-key.pub\n"
  53788. "/etc/childhurd/etc/guix/signing-key.sec\n"
  53789. "/etc/childhurd/etc/ssh/ssh_host_ed25519_key\n"
  53790. "/etc/childhurd/etc/ssh/ssh_host_ecdsa_key\n"
  53791. "/etc/childhurd/etc/ssh/ssh_host_ed25519_key.pub\n"
  53792. "/etc/childhurd/etc/ssh/ssh_host_ecdsa_key.pub\n"
  53793. msgstr ""
  53794. #. type: table
  53795. #: guix-git/doc/guix.texi:35273
  53796. msgid "These files are automatically sent to the guest Hurd VM when it boots, including permissions."
  53797. msgstr ""
  53798. #. type: cindex
  53799. #: guix-git/doc/guix.texi:35274
  53800. #, fuzzy, no-wrap
  53801. msgid "childhurd, offloading"
  53802. msgstr "下发"
  53803. #. type: cindex
  53804. #: guix-git/doc/guix.texi:35275
  53805. #, fuzzy, no-wrap
  53806. msgid "Hurd, offloading"
  53807. msgstr "下发"
  53808. #. type: table
  53809. #: guix-git/doc/guix.texi:35279
  53810. 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:"
  53811. msgstr ""
  53812. #. type: enumerate
  53813. #: guix-git/doc/guix.texi:35284
  53814. 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:"
  53815. msgstr ""
  53816. #. type: example
  53817. #: guix-git/doc/guix.texi:35288
  53818. #, no-wrap
  53819. msgid ""
  53820. "guix archive --authorize < \\\n"
  53821. " /etc/childhurd/etc/guix/signing-key.pub\n"
  53822. msgstr ""
  53823. "guix archive --authorize < \\\n"
  53824. " /etc/childhurd/etc/guix/signing-key.pub\n"
  53825. #. type: enumerate
  53826. #: guix-git/doc/guix.texi:35293
  53827. msgid "Adding the childhurd to @file{/etc/guix/machines.scm} (@pxref{Daemon Offload Setup})."
  53828. msgstr ""
  53829. #. type: table
  53830. #: guix-git/doc/guix.texi:35297
  53831. msgid "We're working towards making that happen automatically---get in touch with us at @email{guix-devel@@gnu.org} to discuss it!"
  53832. msgstr ""
  53833. #. type: Plain text
  53834. #: guix-git/doc/guix.texi:35304
  53835. 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:"
  53836. msgstr ""
  53837. #. type: lisp
  53838. #: guix-git/doc/guix.texi:35310
  53839. #, no-wrap
  53840. msgid ""
  53841. "(service hurd-vm-service-type\n"
  53842. " (hurd-vm-configuration\n"
  53843. " (image (const \"/out/of/store/writable/hurd.img\"))\n"
  53844. " (options '())))\n"
  53845. msgstr ""
  53846. #. type: subsubheading
  53847. #: guix-git/doc/guix.texi:35312
  53848. #, no-wrap
  53849. msgid "Ganeti"
  53850. msgstr ""
  53851. #. type: cindex
  53852. #: guix-git/doc/guix.texi:35314
  53853. #, no-wrap
  53854. msgid "ganeti"
  53855. msgstr ""
  53856. #. type: quotation
  53857. #: guix-git/doc/guix.texi:35321
  53858. 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}."
  53859. msgstr ""
  53860. #. type: Plain text
  53861. #: guix-git/doc/guix.texi:35331
  53862. 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{Service Reference, @code{hosts-service-type}}) with the cluster name and address (or use a DNS server)."
  53863. msgstr ""
  53864. #. type: Plain text
  53865. #: guix-git/doc/guix.texi:35336
  53866. 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}:"
  53867. msgstr ""
  53868. #. type: lisp
  53869. #: guix-git/doc/guix.texi:35343
  53870. #, no-wrap
  53871. msgid ""
  53872. "(use-package-modules virtualization)\n"
  53873. "(use-service-modules base ganeti networking ssh)\n"
  53874. "(operating-system\n"
  53875. " ;; @dots{}\n"
  53876. " (host-name \"node1\")\n"
  53877. "\n"
  53878. msgstr ""
  53879. #. type: lisp
  53880. #: guix-git/doc/guix.texi:35364
  53881. #, no-wrap
  53882. msgid ""
  53883. " ;; Install QEMU so we can use KVM-based instances, and LVM, DRBD and Ceph\n"
  53884. " ;; in order to use the \"plain\", \"drbd\" and \"rbd\" storage backends.\n"
  53885. " (packages (append (map specification->package\n"
  53886. " '(\"qemu\" \"lvm2\" \"drbd-utils\" \"ceph\"\n"
  53887. " ;; Add the debootstrap and guix OS providers.\n"
  53888. " \"ganeti-instance-guix\" \"ganeti-instance-debootstrap\"))\n"
  53889. " %base-packages))\n"
  53890. " (services\n"
  53891. " (append (list (service static-networking-service-type\n"
  53892. " (list (static-networking\n"
  53893. " (addresses\n"
  53894. " (list (network-address\n"
  53895. " (device \"eth0\")\n"
  53896. " (value \"192.168.1.201/24\"))))\n"
  53897. " (routes\n"
  53898. " (list (network-route\n"
  53899. " (destination \"default\")\n"
  53900. " (gateway \"192.168.1.254\"))))\n"
  53901. " (name-servers '(\"192.168.1.252\"\n"
  53902. " \"192.168.1.253\")))))\n"
  53903. "\n"
  53904. msgstr ""
  53905. #. type: lisp
  53906. #: guix-git/doc/guix.texi:35369
  53907. #, no-wrap
  53908. msgid ""
  53909. " ;; Ganeti uses SSH to communicate between nodes.\n"
  53910. " (service openssh-service-type\n"
  53911. " (openssh-configuration\n"
  53912. " (permit-root-login 'prohibit-password)))\n"
  53913. "\n"
  53914. msgstr ""
  53915. #. type: lisp
  53916. #: guix-git/doc/guix.texi:35377
  53917. #, no-wrap
  53918. msgid ""
  53919. " (simple-service 'ganeti-hosts-entries hosts-service-type\n"
  53920. " (list\n"
  53921. " (host \"192.168.1.200\" \"ganeti.example.com\")\n"
  53922. " (host \"192.168.1.201\" \"node1.example.com\"\n"
  53923. " '(\"node1\"))\n"
  53924. " (host \"192.168.1.202\" \"node2.example.com\"\n"
  53925. " '(\"node2\"))))\n"
  53926. "\n"
  53927. msgstr ""
  53928. #. type: lisp
  53929. #: guix-git/doc/guix.texi:35387
  53930. #, no-wrap
  53931. msgid ""
  53932. " (service ganeti-service-type\n"
  53933. " (ganeti-configuration\n"
  53934. " ;; This list specifies allowed file system paths\n"
  53935. " ;; for storing virtual machine images.\n"
  53936. " (file-storage-paths '(\"/srv/ganeti/file-storage\"))\n"
  53937. " ;; This variable configures a single \"variant\" for\n"
  53938. " ;; both Debootstrap and Guix that works with KVM.\n"
  53939. " (os %default-ganeti-os))))\n"
  53940. " %base-services)))\n"
  53941. msgstr ""
  53942. #. type: Plain text
  53943. #: guix-git/doc/guix.texi:35395
  53944. msgid "Users are advised to read the @url{https://docs.ganeti.org/docs/ganeti/3.0/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."
  53945. msgstr ""
  53946. #. type: defvar
  53947. #: guix-git/doc/guix.texi:35396
  53948. #, fuzzy, no-wrap
  53949. msgid "ganeti-service-type"
  53950. msgstr "邮件服务"
  53951. #. type: defvar
  53952. #: guix-git/doc/guix.texi:35399
  53953. msgid "This is a service type that includes all the various services that Ganeti nodes should run."
  53954. msgstr ""
  53955. #. type: defvar
  53956. #: guix-git/doc/guix.texi:35404
  53957. 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."
  53958. msgstr ""
  53959. #. type: deftp
  53960. #: guix-git/doc/guix.texi:35406
  53961. #, no-wrap
  53962. msgid "{Data Type} ganeti-configuration"
  53963. msgstr ""
  53964. #. type: deftp
  53965. #: guix-git/doc/guix.texi:35408
  53966. msgid "The @code{ganeti} service takes the following configuration options:"
  53967. msgstr ""
  53968. #. type: item
  53969. #: guix-git/doc/guix.texi:35410 guix-git/doc/guix.texi:35660
  53970. #: guix-git/doc/guix.texi:35710 guix-git/doc/guix.texi:35740
  53971. #: guix-git/doc/guix.texi:35767 guix-git/doc/guix.texi:35799
  53972. #: guix-git/doc/guix.texi:35852 guix-git/doc/guix.texi:35872
  53973. #: guix-git/doc/guix.texi:35898 guix-git/doc/guix.texi:35931
  53974. #: guix-git/doc/guix.texi:35971
  53975. #, fuzzy, no-wrap
  53976. msgid "@code{ganeti} (default: @code{ganeti})"
  53977. msgstr "@code{gnome}(默认值:@code{gnome})"
  53978. #. type: table
  53979. #: guix-git/doc/guix.texi:35415
  53980. 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)."
  53981. msgstr ""
  53982. #. type: item
  53983. #: guix-git/doc/guix.texi:35416
  53984. #, fuzzy, no-wrap
  53985. msgid "@code{noded-configuration} (default: @code{(ganeti-noded-configuration)})"
  53986. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  53987. #. type: itemx
  53988. #: guix-git/doc/guix.texi:35417
  53989. #, fuzzy, no-wrap
  53990. msgid "@code{confd-configuration} (default: @code{(ganeti-confd-configuration)})"
  53991. msgstr "@code{journal-content}(默认值:@code{#f})"
  53992. #. type: itemx
  53993. #: guix-git/doc/guix.texi:35418
  53994. #, no-wrap
  53995. msgid "@code{wconfd-configuration} (default: @code{(ganeti-wconfd-configuration)})"
  53996. msgstr ""
  53997. #. type: itemx
  53998. #: guix-git/doc/guix.texi:35419
  53999. #, no-wrap
  54000. msgid "@code{luxid-configuration} (default: @code{(ganeti-luxid-configuration)})"
  54001. msgstr ""
  54002. #. type: itemx
  54003. #: guix-git/doc/guix.texi:35420
  54004. #, fuzzy, no-wrap
  54005. msgid "@code{rapi-configuration} (default: @code{(ganeti-rapi-configuration)})"
  54006. msgstr "@code{journal-content}(默认值:@code{#f})"
  54007. #. type: itemx
  54008. #: guix-git/doc/guix.texi:35421
  54009. #, fuzzy, no-wrap
  54010. msgid "@code{kvmd-configuration} (default: @code{(ganeti-kvmd-configuration)})"
  54011. msgstr "@code{mate}(默认值:@code{mate})"
  54012. #. type: itemx
  54013. #: guix-git/doc/guix.texi:35422
  54014. #, fuzzy, no-wrap
  54015. msgid "@code{mond-configuration} (default: @code{(ganeti-mond-configuration)})"
  54016. msgstr "@code{journal-content}(默认值:@code{#f})"
  54017. #. type: itemx
  54018. #: guix-git/doc/guix.texi:35423
  54019. #, fuzzy, no-wrap
  54020. msgid "@code{metad-configuration} (default: @code{(ganeti-metad-configuration)})"
  54021. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  54022. #. type: itemx
  54023. #: guix-git/doc/guix.texi:35424
  54024. #, fuzzy, no-wrap
  54025. msgid "@code{watcher-configuration} (default: @code{(ganeti-watcher-configuration)})"
  54026. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  54027. #. type: itemx
  54028. #: guix-git/doc/guix.texi:35425
  54029. #, fuzzy, no-wrap
  54030. msgid "@code{cleaner-configuration} (default: @code{(ganeti-cleaner-configuration)})"
  54031. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  54032. #. type: table
  54033. #: guix-git/doc/guix.texi:35430
  54034. 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:"
  54035. msgstr ""
  54036. #. type: lisp
  54037. #: guix-git/doc/guix.texi:35440
  54038. #, no-wrap
  54039. msgid ""
  54040. "(service ganeti-service-type\n"
  54041. " (ganeti-configuration\n"
  54042. " (rapi-configuration\n"
  54043. " (ganeti-rapi-configuration\n"
  54044. " (interface \"eth1\"))))\n"
  54045. " (watcher-configuration\n"
  54046. " (ganeti-watcher-configuration\n"
  54047. " (rapi-ip \"10.0.0.1\"))))\n"
  54048. msgstr ""
  54049. #. type: item
  54050. #: guix-git/doc/guix.texi:35442
  54051. #, fuzzy, no-wrap
  54052. msgid "@code{file-storage-paths} (default: @code{'()})"
  54053. msgstr "@code{features} (@code{'()})"
  54054. #. type: table
  54055. #: guix-git/doc/guix.texi:35444
  54056. msgid "List of allowed directories for file storage backend."
  54057. msgstr ""
  54058. #. type: item
  54059. #: guix-git/doc/guix.texi:35445
  54060. #, fuzzy, no-wrap
  54061. msgid "@code{hooks} (default: @code{#f})"
  54062. msgstr "@code{port}(默认值:@code{22})"
  54063. #. type: table
  54064. #: guix-git/doc/guix.texi:35448
  54065. msgid "When set, this should be a file-like object containing a directory with @url{https://docs.ganeti.org/docs/ganeti/3.0/html/hooks.html,cluster execution hooks}."
  54066. msgstr ""
  54067. #. type: item
  54068. #: guix-git/doc/guix.texi:35449
  54069. #, fuzzy, no-wrap
  54070. msgid "@code{os} (default: @code{%default-ganeti-os})"
  54071. msgstr "@code{gnome}(默认值:@code{gnome})"
  54072. #. type: table
  54073. #: guix-git/doc/guix.texi:35451
  54074. msgid "List of @code{<ganeti-os>} records."
  54075. msgstr ""
  54076. #. type: deftp
  54077. #: guix-git/doc/guix.texi:35455
  54078. msgid "In essence @code{ganeti-service-type} is shorthand for declaring each service individually:"
  54079. msgstr ""
  54080. #. type: lisp
  54081. #: guix-git/doc/guix.texi:35466
  54082. #, no-wrap
  54083. msgid ""
  54084. "(service ganeti-noded-service-type)\n"
  54085. "(service ganeti-confd-service-type)\n"
  54086. "(service ganeti-wconfd-service-type)\n"
  54087. "(service ganeti-luxid-service-type)\n"
  54088. "(service ganeti-kvmd-service-type)\n"
  54089. "(service ganeti-mond-service-type)\n"
  54090. "(service ganeti-metad-service-type)\n"
  54091. "(service ganeti-watcher-service-type)\n"
  54092. "(service ganeti-cleaner-service-type)\n"
  54093. msgstr ""
  54094. #. type: deftp
  54095. #: guix-git/doc/guix.texi:35470
  54096. msgid "Plus a service extension for @code{etc-service-type} that configures the file storage backend and OS variants."
  54097. msgstr ""
  54098. #. type: deftp
  54099. #: guix-git/doc/guix.texi:35473
  54100. #, fuzzy, no-wrap
  54101. msgid "{Data Type} ganeti-os"
  54102. msgstr "{数据类型} build-machine"
  54103. #. type: deftp
  54104. #: guix-git/doc/guix.texi:35476
  54105. msgid "This data type is suitable for passing to the @code{os} parameter of @code{ganeti-configuration}. It takes the following parameters:"
  54106. msgstr ""
  54107. #. type: table
  54108. #: guix-git/doc/guix.texi:35482
  54109. 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}."
  54110. msgstr ""
  54111. #. type: item
  54112. #: guix-git/doc/guix.texi:35483
  54113. #, fuzzy, no-wrap
  54114. msgid "@code{extension} (default: @code{#f})"
  54115. msgstr "@code{challenge}(默认值:@code{#f})"
  54116. #. type: table
  54117. #: guix-git/doc/guix.texi:35486
  54118. msgid "The file extension for variants of this OS type. For example @file{.conf} or @file{.scm}. It will be appended to the variant file name if set."
  54119. msgstr ""
  54120. #. type: item
  54121. #: guix-git/doc/guix.texi:35487
  54122. #, fuzzy, no-wrap
  54123. msgid "@code{variants} (default: @code{'()})"
  54124. msgstr "@code{features} (@code{'()})"
  54125. #. type: table
  54126. #: guix-git/doc/guix.texi:35491
  54127. msgid "This must be either a list of @code{ganeti-os-variant} objects for this OS, or a ``file-like'' object (@pxref{G-Expressions, file-like objects}) representing the variants directory."
  54128. msgstr ""
  54129. #. type: table
  54130. #: guix-git/doc/guix.texi:35495
  54131. msgid "To use the Guix OS provider with variant definitions residing in a local directory instead of declaring individual variants (see @var{guix-variants} below), you can do:"
  54132. msgstr ""
  54133. #. type: lisp
  54134. #: guix-git/doc/guix.texi:35501
  54135. #, no-wrap
  54136. msgid ""
  54137. "(ganeti-os\n"
  54138. " (name \"guix\")\n"
  54139. " (variants (local-file \"ganeti-guix-variants\"\n"
  54140. " #:recursive? #true)))\n"
  54141. msgstr ""
  54142. #. type: table
  54143. #: guix-git/doc/guix.texi:35507
  54144. msgid "Note that you will need to maintain the @file{variants.list} file (see @code{@url{https://docs.ganeti.org/docs/ganeti/3.0/man/ganeti-os-interface.html, ganeti-os-interface(7)}}) manually in this case."
  54145. msgstr ""
  54146. #. type: deftp
  54147. #: guix-git/doc/guix.texi:35511
  54148. #, fuzzy, no-wrap
  54149. msgid "{Data Type} ganeti-os-variant"
  54150. msgstr "{数据类型} build-machine"
  54151. #. type: deftp
  54152. #: guix-git/doc/guix.texi:35514
  54153. msgid "This is the data type for a Ganeti OS variant. It takes the following parameters:"
  54154. msgstr ""
  54155. #. type: table
  54156. #: guix-git/doc/guix.texi:35518
  54157. #, fuzzy
  54158. msgid "The name of this variant."
  54159. msgstr "这个用户手册的许可证。"
  54160. #. type: code{#1}
  54161. #: guix-git/doc/guix.texi:35519
  54162. #, fuzzy, no-wrap
  54163. msgid "configuration"
  54164. msgstr "系统配置"
  54165. #. type: table
  54166. #: guix-git/doc/guix.texi:35521
  54167. msgid "A configuration file for this variant."
  54168. msgstr ""
  54169. #. type: defvar
  54170. #: guix-git/doc/guix.texi:35524
  54171. #, fuzzy, no-wrap
  54172. msgid "%default-debootstrap-hooks"
  54173. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  54174. #. type: defvar
  54175. #: guix-git/doc/guix.texi:35526
  54176. msgid "This variable contains hooks to configure networking and the GRUB bootloader."
  54177. msgstr ""
  54178. #. type: defvar
  54179. #: guix-git/doc/guix.texi:35528
  54180. #, no-wrap
  54181. msgid "%default-debootstrap-extra-pkgs"
  54182. msgstr ""
  54183. #. type: defvar
  54184. #: guix-git/doc/guix.texi:35530
  54185. msgid "This variable contains a list of packages suitable for a fully-virtualized guest."
  54186. msgstr ""
  54187. #. type: deftp
  54188. #: guix-git/doc/guix.texi:35532
  54189. #, no-wrap
  54190. msgid "{Data Type} debootstrap-configuration"
  54191. msgstr ""
  54192. #. type: deftp
  54193. #: guix-git/doc/guix.texi:35535
  54194. msgid "This data type creates configuration files suitable for the debootstrap OS provider."
  54195. msgstr ""
  54196. #. type: item
  54197. #: guix-git/doc/guix.texi:35537
  54198. #, fuzzy, no-wrap
  54199. msgid "@code{hooks} (default: @code{%default-debootstrap-hooks})"
  54200. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  54201. #. type: table
  54202. #: guix-git/doc/guix.texi:35541
  54203. 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:"
  54204. msgstr ""
  54205. #. type: lisp
  54206. #: guix-git/doc/guix.texi:35544
  54207. #, no-wrap
  54208. msgid "`((99-hello-world . ,(plain-file \"#!/bin/sh\\necho Hello, World\")))\n"
  54209. msgstr ""
  54210. #. type: table
  54211. #: guix-git/doc/guix.texi:35549
  54212. 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."
  54213. msgstr ""
  54214. #. type: item
  54215. #: guix-git/doc/guix.texi:35549
  54216. #, fuzzy, no-wrap
  54217. msgid "@code{proxy} (default: @code{#f})"
  54218. msgstr "@code{port}(默认值:@code{22})"
  54219. #. type: table
  54220. #: guix-git/doc/guix.texi:35551
  54221. msgid "Optional HTTP proxy to use."
  54222. msgstr ""
  54223. #. type: item
  54224. #: guix-git/doc/guix.texi:35551 guix-git/doc/guix.texi:37803
  54225. #, fuzzy, no-wrap
  54226. msgid "@code{mirror} (default: @code{#f})"
  54227. msgstr "@code{port}(默认值:@code{22})"
  54228. #. type: table
  54229. #: guix-git/doc/guix.texi:35554
  54230. msgid "The Debian mirror. Typically something like @code{http://ftp.no.debian.org/debian}. The default varies depending on the distribution."
  54231. msgstr ""
  54232. #. type: item
  54233. #: guix-git/doc/guix.texi:35554
  54234. #, fuzzy, no-wrap
  54235. msgid "@code{arch} (default: @code{#f})"
  54236. msgstr "@code{challenge}(默认值:@code{#f})"
  54237. #. type: table
  54238. #: guix-git/doc/guix.texi:35557
  54239. 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."
  54240. msgstr ""
  54241. #. type: item
  54242. #: guix-git/doc/guix.texi:35557
  54243. #, fuzzy, no-wrap
  54244. msgid "@code{suite} (default: @code{\"stable\"})"
  54245. msgstr "@code{mate}(默认值:@code{mate})"
  54246. #. type: table
  54247. #: guix-git/doc/guix.texi:35560
  54248. 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."
  54249. msgstr ""
  54250. #. type: item
  54251. #: guix-git/doc/guix.texi:35560
  54252. #, no-wrap
  54253. msgid "@code{extra-pkgs} (default: @code{%default-debootstrap-extra-pkgs})"
  54254. msgstr ""
  54255. #. type: table
  54256. #: guix-git/doc/guix.texi:35563
  54257. msgid "List of extra packages that will get installed by dpkg in addition to the minimal system."
  54258. msgstr ""
  54259. #. type: item
  54260. #: guix-git/doc/guix.texi:35563
  54261. #, fuzzy, no-wrap
  54262. msgid "@code{components} (default: @code{#f})"
  54263. msgstr "@code{journal-content}(默认值:@code{#f})"
  54264. #. type: table
  54265. #: guix-git/doc/guix.texi:35566
  54266. msgid "When set, must be a list of Debian repository ``components''. For example @code{'(\"main\" \"contrib\")}."
  54267. msgstr ""
  54268. #. type: item
  54269. #: guix-git/doc/guix.texi:35566
  54270. #, fuzzy, no-wrap
  54271. msgid "@code{generate-cache?} (default: @code{#t})"
  54272. msgstr "@code{mate}(默认值:@code{mate})"
  54273. #. type: table
  54274. #: guix-git/doc/guix.texi:35568
  54275. msgid "Whether to automatically cache the generated debootstrap archive."
  54276. msgstr ""
  54277. #. type: item
  54278. #: guix-git/doc/guix.texi:35568
  54279. #, fuzzy, no-wrap
  54280. msgid "@code{clean-cache} (default: @code{14})"
  54281. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  54282. #. type: table
  54283. #: guix-git/doc/guix.texi:35571
  54284. msgid "Discard the cache after this amount of days. Use @code{#f} to never clear the cache."
  54285. msgstr ""
  54286. #. type: item
  54287. #: guix-git/doc/guix.texi:35571
  54288. #, fuzzy, no-wrap
  54289. msgid "@code{partition-style} (default: @code{'msdos})"
  54290. msgstr "@code{compression-level}(默认值:@code{3})"
  54291. #. type: table
  54292. #: guix-git/doc/guix.texi:35574
  54293. msgid "The type of partition to create. When set, it must be one of @code{'msdos}, @code{'none} or a string."
  54294. msgstr ""
  54295. #. type: item
  54296. #: guix-git/doc/guix.texi:35574
  54297. #, fuzzy, no-wrap
  54298. msgid "@code{partition-alignment} (default: @code{2048})"
  54299. msgstr "@code{port}(默认值:@code{22})"
  54300. #. type: table
  54301. #: guix-git/doc/guix.texi:35576
  54302. msgid "Alignment of the partition in sectors."
  54303. msgstr ""
  54304. #. type: defun
  54305. #: guix-git/doc/guix.texi:35579
  54306. #, fuzzy, no-wrap
  54307. #| msgid "Instantiating a system configuration."
  54308. msgid "debootstrap-variant name configuration"
  54309. msgstr "实例化一个系统配置。"
  54310. #. type: defun
  54311. #: guix-git/doc/guix.texi:35582
  54312. 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."
  54313. msgstr ""
  54314. #. type: defun
  54315. #: guix-git/doc/guix.texi:35584
  54316. #, no-wrap
  54317. msgid "debootstrap-os variants@dots{}"
  54318. msgstr ""
  54319. #. type: defun
  54320. #: guix-git/doc/guix.texi:35587
  54321. msgid "This is a helper procedure that creates a @code{ganeti-os} record. It takes a list of variants created with @code{debootstrap-variant}."
  54322. msgstr ""
  54323. #. type: defun
  54324. #: guix-git/doc/guix.texi:35589
  54325. #, fuzzy, no-wrap
  54326. msgid "guix-variant name configuration"
  54327. msgstr "系统配置"
  54328. #. type: defun
  54329. #: guix-git/doc/guix.texi:35594
  54330. 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."
  54331. msgstr ""
  54332. #. type: defun
  54333. #: guix-git/doc/guix.texi:35596
  54334. #, no-wrap
  54335. msgid "guix-os variants@dots{}"
  54336. msgstr ""
  54337. #. type: defun
  54338. #: guix-git/doc/guix.texi:35599
  54339. msgid "This is a helper procedure that creates a @code{ganeti-os} record. It takes a list of variants produced by @code{guix-variant}."
  54340. msgstr ""
  54341. #. type: defvar
  54342. #: guix-git/doc/guix.texi:35601
  54343. #, no-wrap
  54344. msgid "%default-debootstrap-variants"
  54345. msgstr ""
  54346. #. type: defvar
  54347. #: guix-git/doc/guix.texi:35605
  54348. 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:"
  54349. msgstr ""
  54350. #. type: lisp
  54351. #: guix-git/doc/guix.texi:35610
  54352. #, no-wrap
  54353. msgid ""
  54354. "(list (debootstrap-variant\n"
  54355. " \"default\"\n"
  54356. " (debootstrap-configuration)))\n"
  54357. msgstr ""
  54358. #. type: defvar
  54359. #: guix-git/doc/guix.texi:35613
  54360. #, no-wrap
  54361. msgid "%default-guix-variants"
  54362. msgstr ""
  54363. #. type: defvar
  54364. #: guix-git/doc/guix.texi:35617
  54365. 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."
  54366. msgstr ""
  54367. #. type: lisp
  54368. #: guix-git/doc/guix.texi:35623
  54369. #, no-wrap
  54370. msgid ""
  54371. "(list (guix-variant\n"
  54372. " \"default\"\n"
  54373. " (file-append ganeti-instance-guix\n"
  54374. " \"/share/doc/ganeti-instance-guix/examples/dynamic.scm\")))\n"
  54375. msgstr ""
  54376. #. type: Plain text
  54377. #: guix-git/doc/guix.texi:35629
  54378. 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:"
  54379. msgstr ""
  54380. #. type: lisp
  54381. #: guix-git/doc/guix.texi:35638
  54382. #, no-wrap
  54383. msgid ""
  54384. "(ganeti-os\n"
  54385. " (name \"custom\")\n"
  54386. " (extension \".conf\")\n"
  54387. " (variants\n"
  54388. " (list (ganeti-os-variant\n"
  54389. " (name \"foo\")\n"
  54390. " (configuration (plain-file \"bar\" \"this is fine\"))))))\n"
  54391. msgstr ""
  54392. #. type: Plain text
  54393. #: guix-git/doc/guix.texi:35643
  54394. 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}."
  54395. msgstr ""
  54396. #. type: Plain text
  54397. #: guix-git/doc/guix.texi:35646
  54398. 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}."
  54399. msgstr ""
  54400. #. type: Plain text
  54401. #: guix-git/doc/guix.texi:35649
  54402. msgid "The rest of this section documents the various services that are included by @code{ganeti-service-type}."
  54403. msgstr ""
  54404. #. type: defvar
  54405. #: guix-git/doc/guix.texi:35650
  54406. #, fuzzy, no-wrap
  54407. msgid "ganeti-noded-service-type"
  54408. msgstr "邮件服务"
  54409. #. type: defvar
  54410. #: guix-git/doc/guix.texi:35654
  54411. 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."
  54412. msgstr ""
  54413. #. type: deftp
  54414. #: guix-git/doc/guix.texi:35656
  54415. #, no-wrap
  54416. msgid "{Data Type} ganeti-noded-configuration"
  54417. msgstr ""
  54418. #. type: deftp
  54419. #: guix-git/doc/guix.texi:35658
  54420. msgid "This is the configuration for the @code{ganeti-noded} service."
  54421. msgstr ""
  54422. #. type: table
  54423. #: guix-git/doc/guix.texi:35662 guix-git/doc/guix.texi:35712
  54424. #: guix-git/doc/guix.texi:35742 guix-git/doc/guix.texi:35769
  54425. #: guix-git/doc/guix.texi:35801 guix-git/doc/guix.texi:35854
  54426. #: guix-git/doc/guix.texi:35874 guix-git/doc/guix.texi:35900
  54427. #: guix-git/doc/guix.texi:35933
  54428. msgid "The @code{ganeti} package to use for this service."
  54429. msgstr ""
  54430. #. type: item
  54431. #: guix-git/doc/guix.texi:35663
  54432. #, fuzzy, no-wrap
  54433. msgid "@code{port} (default: @code{1811})"
  54434. msgstr "@code{port}(默认值:@code{22})"
  54435. #. type: table
  54436. #: guix-git/doc/guix.texi:35665
  54437. msgid "The TCP port on which the node daemon listens for network requests."
  54438. msgstr ""
  54439. #. type: item
  54440. #: guix-git/doc/guix.texi:35666 guix-git/doc/guix.texi:35716
  54441. #: guix-git/doc/guix.texi:35808 guix-git/doc/guix.texi:35878
  54442. #, fuzzy, no-wrap
  54443. msgid "@code{address} (default: @code{\"0.0.0.0\"})"
  54444. msgstr "@code{display}(默认值:@code{\":0\"})"
  54445. #. type: table
  54446. #: guix-git/doc/guix.texi:35669
  54447. msgid "The network address that the daemon will bind to. The default address means bind to all available addresses."
  54448. msgstr ""
  54449. #. type: table
  54450. #: guix-git/doc/guix.texi:35673
  54451. msgid "When this is set, it must be a specific network interface (e.g.@: @code{eth0}) that the daemon will bind to."
  54452. msgstr ""
  54453. #. type: item
  54454. #: guix-git/doc/guix.texi:35674 guix-git/doc/guix.texi:35816
  54455. #, fuzzy, no-wrap
  54456. msgid "@code{max-clients} (default: @code{20})"
  54457. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  54458. #. type: table
  54459. #: guix-git/doc/guix.texi:35678
  54460. 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."
  54461. msgstr ""
  54462. #. type: item
  54463. #: guix-git/doc/guix.texi:35679 guix-git/doc/guix.texi:35821
  54464. #, fuzzy, no-wrap
  54465. msgid "@code{ssl?} (default: @code{#t})"
  54466. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  54467. #. type: table
  54468. #: guix-git/doc/guix.texi:35683
  54469. 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}."
  54470. msgstr ""
  54471. #. type: item
  54472. #: guix-git/doc/guix.texi:35684 guix-git/doc/guix.texi:35824
  54473. #, fuzzy, no-wrap
  54474. msgid "@code{ssl-key} (default: @file{\"/var/lib/ganeti/server.pem\"})"
  54475. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  54476. #. type: table
  54477. #: guix-git/doc/guix.texi:35686 guix-git/doc/guix.texi:35826
  54478. msgid "This can be used to provide a specific encryption key for TLS communications."
  54479. msgstr ""
  54480. #. type: item
  54481. #: guix-git/doc/guix.texi:35687 guix-git/doc/guix.texi:35827
  54482. #, fuzzy, no-wrap
  54483. msgid "@code{ssl-cert} (default: @file{\"/var/lib/ganeti/server.pem\"})"
  54484. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  54485. #. type: table
  54486. #: guix-git/doc/guix.texi:35689 guix-git/doc/guix.texi:35829
  54487. msgid "This can be used to provide a specific certificate for TLS communications."
  54488. msgstr ""
  54489. #. type: table
  54490. #: guix-git/doc/guix.texi:35693 guix-git/doc/guix.texi:35833
  54491. 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."
  54492. msgstr ""
  54493. #. type: defvar
  54494. #: guix-git/doc/guix.texi:35697
  54495. #, fuzzy, no-wrap
  54496. msgid "ganeti-confd-service-type"
  54497. msgstr "邮件服务"
  54498. #. type: defvar
  54499. #: guix-git/doc/guix.texi:35703
  54500. 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."
  54501. msgstr ""
  54502. #. type: deftp
  54503. #: guix-git/doc/guix.texi:35706
  54504. #, no-wrap
  54505. msgid "{Data Type} ganeti-confd-configuration"
  54506. msgstr ""
  54507. #. type: deftp
  54508. #: guix-git/doc/guix.texi:35708
  54509. msgid "This is the configuration for the @code{ganeti-confd} service."
  54510. msgstr ""
  54511. #. type: item
  54512. #: guix-git/doc/guix.texi:35713
  54513. #, fuzzy, no-wrap
  54514. msgid "@code{port} (default: @code{1814})"
  54515. msgstr "@code{port}(默认值:@code{22})"
  54516. #. type: table
  54517. #: guix-git/doc/guix.texi:35715
  54518. msgid "The UDP port on which to listen for network requests."
  54519. msgstr ""
  54520. #. type: table
  54521. #: guix-git/doc/guix.texi:35718
  54522. msgid "Network address that the daemon will bind to."
  54523. msgstr ""
  54524. #. type: table
  54525. #: guix-git/doc/guix.texi:35721 guix-git/doc/guix.texi:35750
  54526. #: guix-git/doc/guix.texi:35777 guix-git/doc/guix.texi:35857
  54527. #: guix-git/doc/guix.texi:35884 guix-git/doc/guix.texi:35910
  54528. msgid "When true, the daemon performs additional logging for debugging purposes."
  54529. msgstr ""
  54530. #. type: defvar
  54531. #: guix-git/doc/guix.texi:35725
  54532. #, fuzzy, no-wrap
  54533. msgid "ganeti-wconfd-service-type"
  54534. msgstr "邮件服务"
  54535. #. type: defvar
  54536. #: guix-git/doc/guix.texi:35731
  54537. 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."
  54538. msgstr ""
  54539. #. type: defvar
  54540. #: guix-git/doc/guix.texi:35734
  54541. msgid "The value of this service must be a @code{ganeti-wconfd-configuration} object."
  54542. msgstr ""
  54543. #. type: deftp
  54544. #: guix-git/doc/guix.texi:35736
  54545. #, no-wrap
  54546. msgid "{Data Type} ganeti-wconfd-configuration"
  54547. msgstr ""
  54548. #. type: deftp
  54549. #: guix-git/doc/guix.texi:35738
  54550. msgid "This is the configuration for the @code{ganeti-wconfd} service."
  54551. msgstr ""
  54552. #. type: item
  54553. #: guix-git/doc/guix.texi:35743 guix-git/doc/guix.texi:35770
  54554. #, fuzzy, no-wrap
  54555. msgid "@code{no-voting?} (default: @code{#f})"
  54556. msgstr "@code{journal-content}(默认值:@code{#f})"
  54557. #. type: table
  54558. #: guix-git/doc/guix.texi:35747
  54559. 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)."
  54560. msgstr ""
  54561. #. type: defvar
  54562. #: guix-git/doc/guix.texi:35754
  54563. #, fuzzy, no-wrap
  54564. msgid "ganeti-luxid-service-type"
  54565. msgstr "邮件服务"
  54566. #. type: defvar
  54567. #: guix-git/doc/guix.texi:35759
  54568. 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."
  54569. msgstr ""
  54570. #. type: defvar
  54571. #: guix-git/doc/guix.texi:35761
  54572. msgid "It takes a @code{ganeti-luxid-configuration} object."
  54573. msgstr ""
  54574. #. type: deftp
  54575. #: guix-git/doc/guix.texi:35763
  54576. #, fuzzy, no-wrap
  54577. msgid "{Data Type} ganeti-luxid-configuration"
  54578. msgstr "{数据类型} build-machine"
  54579. #. type: deftp
  54580. #: guix-git/doc/guix.texi:35765
  54581. #, fuzzy
  54582. msgid "This is the configuration for the @code{ganeti-luxid} service."
  54583. msgstr "管理操作系统配置。"
  54584. #. type: table
  54585. #: guix-git/doc/guix.texi:35774
  54586. 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)."
  54587. msgstr ""
  54588. #. type: defvar
  54589. #: guix-git/doc/guix.texi:35781
  54590. #, fuzzy, no-wrap
  54591. msgid "ganeti-rapi-service-type"
  54592. msgstr "邮件服务"
  54593. #. type: defvar
  54594. #: guix-git/doc/guix.texi:35785
  54595. 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."
  54596. msgstr ""
  54597. #. type: defvar
  54598. #: guix-git/doc/guix.texi:35791
  54599. 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{https://docs.ganeti.org/docs/ganeti/3.0/html/rapi.html, Ganeti Remote API documentation} for more information."
  54600. msgstr ""
  54601. #. type: defvar
  54602. #: guix-git/doc/guix.texi:35793
  54603. msgid "The value of this service must be a @code{ganeti-rapi-configuration} object."
  54604. msgstr ""
  54605. #. type: deftp
  54606. #: guix-git/doc/guix.texi:35795
  54607. #, no-wrap
  54608. msgid "{Data Type} ganeti-rapi-configuration"
  54609. msgstr ""
  54610. #. type: deftp
  54611. #: guix-git/doc/guix.texi:35797
  54612. msgid "This is the configuration for the @code{ganeti-rapi} service."
  54613. msgstr ""
  54614. #. type: item
  54615. #: guix-git/doc/guix.texi:35802
  54616. #, fuzzy, no-wrap
  54617. msgid "@code{require-authentication?} (default: @code{#f})"
  54618. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  54619. #. type: table
  54620. #: guix-git/doc/guix.texi:35804
  54621. msgid "Whether to require authentication even for read-only operations."
  54622. msgstr ""
  54623. #. type: item
  54624. #: guix-git/doc/guix.texi:35805
  54625. #, fuzzy, no-wrap
  54626. msgid "@code{port} (default: @code{5080})"
  54627. msgstr "@code{port}(默认值:@code{22})"
  54628. #. type: table
  54629. #: guix-git/doc/guix.texi:35807
  54630. msgid "The TCP port on which to listen to API requests."
  54631. msgstr ""
  54632. #. type: table
  54633. #: guix-git/doc/guix.texi:35811
  54634. msgid "The network address that the service will bind to. By default it listens on all configured addresses."
  54635. msgstr ""
  54636. #. type: table
  54637. #: guix-git/doc/guix.texi:35815
  54638. msgid "When set, it must specify a specific network interface such as @code{eth0} that the daemon will bind to."
  54639. msgstr ""
  54640. #. type: table
  54641. #: guix-git/doc/guix.texi:35820
  54642. msgid "The maximum number of simultaneous client requests to handle. Further connections are allowed, but no responses are sent until enough connections have closed."
  54643. msgstr ""
  54644. #. type: table
  54645. #: guix-git/doc/guix.texi:35823
  54646. msgid "Whether to use SSL/TLS encryption on the RAPI port."
  54647. msgstr ""
  54648. #. type: defvar
  54649. #: guix-git/doc/guix.texi:35837
  54650. #, fuzzy, no-wrap
  54651. msgid "ganeti-kvmd-service-type"
  54652. msgstr "邮件服务"
  54653. #. type: defvar
  54654. #: guix-git/doc/guix.texi:35845
  54655. 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."
  54656. msgstr ""
  54657. #. type: defvar
  54658. #: guix-git/doc/guix.texi:35847
  54659. msgid "It takes a @code{ganeti-kvmd-configuration} object."
  54660. msgstr ""
  54661. #. type: deftp
  54662. #: guix-git/doc/guix.texi:35849
  54663. #, no-wrap
  54664. msgid "{Data Type} ganeti-kvmd-configuration"
  54665. msgstr ""
  54666. #. type: defvar
  54667. #: guix-git/doc/guix.texi:35861
  54668. #, fuzzy, no-wrap
  54669. msgid "ganeti-mond-service-type"
  54670. msgstr "邮件服务"
  54671. #. type: defvar
  54672. #: guix-git/doc/guix.texi:35865
  54673. 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."
  54674. msgstr ""
  54675. #. type: defvar
  54676. #: guix-git/doc/guix.texi:35867
  54677. msgid "It takes a @code{ganeti-mond-configuration} object."
  54678. msgstr ""
  54679. #. type: deftp
  54680. #: guix-git/doc/guix.texi:35869
  54681. #, no-wrap
  54682. msgid "{Data Type} ganeti-mond-configuration"
  54683. msgstr ""
  54684. #. type: item
  54685. #: guix-git/doc/guix.texi:35875
  54686. #, fuzzy, no-wrap
  54687. msgid "@code{port} (default: @code{1815})"
  54688. msgstr "@code{port}(默认值:@code{22})"
  54689. #. type: table
  54690. #: guix-git/doc/guix.texi:35877 guix-git/doc/guix.texi:35903
  54691. msgid "The port on which the daemon will listen."
  54692. msgstr ""
  54693. #. type: table
  54694. #: guix-git/doc/guix.texi:35881
  54695. msgid "The network address that the daemon will bind to. By default it binds to all available interfaces."
  54696. msgstr ""
  54697. #. type: defvar
  54698. #: guix-git/doc/guix.texi:35888
  54699. #, fuzzy, no-wrap
  54700. msgid "ganeti-metad-service-type"
  54701. msgstr "邮件服务"
  54702. #. type: defvar
  54703. #: guix-git/doc/guix.texi:35891
  54704. msgid "@command{ganeti-metad} is an optional daemon that can be used to provide information about the cluster to instances or OS install scripts."
  54705. msgstr ""
  54706. #. type: defvar
  54707. #: guix-git/doc/guix.texi:35893
  54708. msgid "It takes a @code{ganeti-metad-configuration} object."
  54709. msgstr ""
  54710. #. type: deftp
  54711. #: guix-git/doc/guix.texi:35895
  54712. #, fuzzy, no-wrap
  54713. msgid "{Data Type} ganeti-metad-configuration"
  54714. msgstr "{数据类型} build-machine"
  54715. #. type: table
  54716. #: guix-git/doc/guix.texi:35907
  54717. msgid "If set, the daemon will bind to this address only. If left unset, the behavior depends on the cluster configuration."
  54718. msgstr ""
  54719. #. type: defvar
  54720. #: guix-git/doc/guix.texi:35914
  54721. #, fuzzy, no-wrap
  54722. msgid "ganeti-watcher-service-type"
  54723. msgstr "邮件服务"
  54724. #. type: defvar
  54725. #: guix-git/doc/guix.texi:35922
  54726. 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."
  54727. msgstr ""
  54728. #. type: defvar
  54729. #: guix-git/doc/guix.texi:35924
  54730. msgid "It can be paused on all nodes with @command{gnt-cluster watcher pause}."
  54731. msgstr ""
  54732. #. type: defvar
  54733. #: guix-git/doc/guix.texi:35926
  54734. msgid "The service takes a @code{ganeti-watcher-configuration} object."
  54735. msgstr ""
  54736. #. type: deftp
  54737. #: guix-git/doc/guix.texi:35928
  54738. #, no-wrap
  54739. msgid "{Data Type} ganeti-watcher-configuration"
  54740. msgstr ""
  54741. #. type: item
  54742. #: guix-git/doc/guix.texi:35934
  54743. #, no-wrap
  54744. msgid "@code{schedule} (default: @code{'(next-second-from (next-minute (range 0 60 5)))})"
  54745. msgstr ""
  54746. #. type: table
  54747. #: guix-git/doc/guix.texi:35936
  54748. msgid "How often to run the script. The default is every five minutes."
  54749. msgstr ""
  54750. #. type: item
  54751. #: guix-git/doc/guix.texi:35937
  54752. #, fuzzy, no-wrap
  54753. msgid "@code{rapi-ip} (default: @code{#f})"
  54754. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  54755. #. type: table
  54756. #: guix-git/doc/guix.texi:35940
  54757. 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."
  54758. msgstr ""
  54759. #. type: item
  54760. #: guix-git/doc/guix.texi:35941
  54761. #, fuzzy, no-wrap
  54762. msgid "@code{job-age} (default: @code{(* 6 3600)})"
  54763. msgstr "@code{features} (@code{'()})"
  54764. #. type: table
  54765. #: guix-git/doc/guix.texi:35944
  54766. msgid "Archive cluster jobs older than this age, specified in seconds. The default is 6 hours. This keeps @command{gnt-job list} manageable."
  54767. msgstr ""
  54768. #. type: item
  54769. #: guix-git/doc/guix.texi:35945
  54770. #, fuzzy, no-wrap
  54771. msgid "@code{verify-disks?} (default: @code{#t})"
  54772. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  54773. #. type: table
  54774. #: guix-git/doc/guix.texi:35949
  54775. 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."
  54776. msgstr ""
  54777. #. type: table
  54778. #: guix-git/doc/guix.texi:35952
  54779. msgid "When @code{#t}, the script performs additional logging for debugging purposes."
  54780. msgstr ""
  54781. #. type: defvar
  54782. #: guix-git/doc/guix.texi:35956
  54783. #, fuzzy, no-wrap
  54784. msgid "ganeti-cleaner-service-type"
  54785. msgstr "邮件服务"
  54786. #. type: defvar
  54787. #: guix-git/doc/guix.texi:35964
  54788. 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."
  54789. msgstr ""
  54790. #. type: defvar
  54791. #: guix-git/doc/guix.texi:35966
  54792. msgid "It takes a @code{ganeti-cleaner-configuration} object."
  54793. msgstr ""
  54794. #. type: deftp
  54795. #: guix-git/doc/guix.texi:35968
  54796. #, no-wrap
  54797. msgid "{Data Type} ganeti-cleaner-configuration"
  54798. msgstr ""
  54799. #. type: table
  54800. #: guix-git/doc/guix.texi:35973
  54801. msgid "The @code{ganeti} package to use for the @command{gnt-cleaner} command."
  54802. msgstr ""
  54803. #. type: item
  54804. #: guix-git/doc/guix.texi:35974
  54805. #, fuzzy, no-wrap
  54806. msgid "@code{master-schedule} (default: @code{\"45 1 * * *\"})"
  54807. msgstr "@code{speed}(默认值:@code{1.0})"
  54808. #. type: table
  54809. #: guix-git/doc/guix.texi:35977
  54810. msgid "How often to run the master cleaning job. The default is once per day, at 01:45:00."
  54811. msgstr ""
  54812. #. type: item
  54813. #: guix-git/doc/guix.texi:35978
  54814. #, fuzzy, no-wrap
  54815. msgid "@code{node-schedule} (default: @code{\"45 2 * * *\"})"
  54816. msgstr "@code{display}(默认值:@code{\":0\"})"
  54817. #. type: table
  54818. #: guix-git/doc/guix.texi:35981
  54819. msgid "How often to run the node cleaning job. The default is once per day, at 02:45:00."
  54820. msgstr ""
  54821. #. type: Plain text
  54822. #: guix-git/doc/guix.texi:35995
  54823. 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-type}, 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}."
  54824. msgstr ""
  54825. #. type: defvar
  54826. #: guix-git/doc/guix.texi:35996
  54827. #, fuzzy, no-wrap
  54828. msgid "git-daemon-service-type"
  54829. msgstr "邮件服务"
  54830. #. type: defvar
  54831. #: guix-git/doc/guix.texi:35999
  54832. msgid "Type for a service that runs @command{git daemon}, a simple TCP server to expose repositories over the Git protocol for anonymous access."
  54833. msgstr ""
  54834. #. type: defvar
  54835. #: guix-git/doc/guix.texi:36004
  54836. msgid "The value for this service type is a @code{<git-daemon-configuration>} record, 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}."
  54837. msgstr ""
  54838. #. type: deftp
  54839. #: guix-git/doc/guix.texi:36006
  54840. #, no-wrap
  54841. msgid "{Data Type} git-daemon-configuration"
  54842. msgstr ""
  54843. #. type: deftp
  54844. #: guix-git/doc/guix.texi:36008
  54845. #, fuzzy
  54846. msgid "Data type representing the configuration for @code{git-daemon-service-type}."
  54847. msgstr "管理操作系统配置。"
  54848. #. type: item
  54849. #: guix-git/doc/guix.texi:36010
  54850. #, fuzzy, no-wrap
  54851. msgid "@code{package} (default: @code{git})"
  54852. msgstr "@code{mate}(默认值:@code{mate})"
  54853. #. type: table
  54854. #: guix-git/doc/guix.texi:36012 guix-git/doc/guix.texi:36072
  54855. msgid "Package object of the Git distributed version control system."
  54856. msgstr ""
  54857. #. type: item
  54858. #: guix-git/doc/guix.texi:36013 guix-git/doc/guix.texi:36076
  54859. #, fuzzy, no-wrap
  54860. msgid "@code{export-all?} (default: @code{#f})"
  54861. msgstr "@code{port}(默认值:@code{22})"
  54862. #. type: table
  54863. #: guix-git/doc/guix.texi:36016
  54864. msgid "Whether to allow access for all Git repositories, even if they do not have the @file{git-daemon-export-ok} file."
  54865. msgstr ""
  54866. #. type: item
  54867. #: guix-git/doc/guix.texi:36017
  54868. #, no-wrap
  54869. msgid "@code{base-path} (default: @file{/srv/git})"
  54870. msgstr ""
  54871. #. type: table
  54872. #: guix-git/doc/guix.texi:36023
  54873. 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}."
  54874. msgstr ""
  54875. #. type: item
  54876. #: guix-git/doc/guix.texi:36024
  54877. #, fuzzy, no-wrap
  54878. msgid "@code{user-path} (default: @code{#f})"
  54879. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  54880. #. type: table
  54881. #: guix-git/doc/guix.texi:36032
  54882. 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}."
  54883. msgstr ""
  54884. #. type: item
  54885. #: guix-git/doc/guix.texi:36033
  54886. #, fuzzy, no-wrap
  54887. msgid "@code{listen} (default: @code{'()})"
  54888. msgstr "@code{features} (@code{'()})"
  54889. #. type: table
  54890. #: guix-git/doc/guix.texi:36036
  54891. msgid "Whether to listen on specific IP addresses or hostnames, defaults to all."
  54892. msgstr ""
  54893. #. type: item
  54894. #: guix-git/doc/guix.texi:36037
  54895. #, fuzzy, no-wrap
  54896. msgid "@code{port} (default: @code{#f})"
  54897. msgstr "@code{port}(默认值:@code{22})"
  54898. #. type: table
  54899. #: guix-git/doc/guix.texi:36039
  54900. msgid "Whether to listen on an alternative port, which defaults to 9418."
  54901. msgstr ""
  54902. #. type: item
  54903. #: guix-git/doc/guix.texi:36040
  54904. #, fuzzy, no-wrap
  54905. msgid "@code{whitelist} (default: @code{'()})"
  54906. msgstr "@code{features} (@code{'()})"
  54907. #. type: table
  54908. #: guix-git/doc/guix.texi:36042
  54909. msgid "If not empty, only allow access to this list of directories."
  54910. msgstr ""
  54911. #. type: table
  54912. #: guix-git/doc/guix.texi:36046
  54913. msgid "Extra options that will be passed to @command{git daemon}.@footnote{Run @command{man git-daemon} for more information.}"
  54914. msgstr ""
  54915. #. type: Plain text
  54916. #: guix-git/doc/guix.texi:36060
  54917. 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."
  54918. msgstr ""
  54919. #. type: Plain text
  54920. #: guix-git/doc/guix.texi:36063
  54921. msgid "Guix has a separate configuration data type for serving Git repositories over HTTP."
  54922. msgstr ""
  54923. #. type: deftp
  54924. #: guix-git/doc/guix.texi:36064
  54925. #, no-wrap
  54926. msgid "{Data Type} git-http-configuration"
  54927. msgstr ""
  54928. #. type: deftp
  54929. #: guix-git/doc/guix.texi:36068
  54930. 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}."
  54931. msgstr ""
  54932. #. type: item
  54933. #: guix-git/doc/guix.texi:36070
  54934. #, no-wrap
  54935. msgid "@code{package} (default: @var{git})"
  54936. msgstr ""
  54937. #. type: item
  54938. #: guix-git/doc/guix.texi:36073
  54939. #, no-wrap
  54940. msgid "@code{git-root} (default: @file{/srv/git})"
  54941. msgstr ""
  54942. #. type: table
  54943. #: guix-git/doc/guix.texi:36075
  54944. msgid "Directory containing the Git repositories to expose to the world."
  54945. msgstr ""
  54946. #. type: table
  54947. #: guix-git/doc/guix.texi:36079
  54948. 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."
  54949. msgstr ""
  54950. #. type: item
  54951. #: guix-git/doc/guix.texi:36080
  54952. #, fuzzy, no-wrap
  54953. msgid "@code{uri-path} (default: @samp{/git/})"
  54954. msgstr "@code{mate}(默认值:@code{mate})"
  54955. #. type: table
  54956. #: guix-git/doc/guix.texi:36085
  54957. 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."
  54958. msgstr ""
  54959. #. type: item
  54960. #: guix-git/doc/guix.texi:36086
  54961. #, no-wrap
  54962. msgid "@code{fcgiwrap-socket} (default: @code{127.0.0.1:9000})"
  54963. msgstr ""
  54964. #. type: table
  54965. #: guix-git/doc/guix.texi:36089
  54966. msgid "The socket on which the @code{fcgiwrap} daemon is listening. @xref{Web Services}."
  54967. msgstr ""
  54968. #. type: Plain text
  54969. #: guix-git/doc/guix.texi:36096
  54970. 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."
  54971. msgstr ""
  54972. #. type: defun
  54973. #: guix-git/doc/guix.texi:36097
  54974. #, fuzzy, no-wrap
  54975. msgid "git-http-nginx-location-configuration @"
  54976. msgstr "{数据类型} build-machine"
  54977. #. type: defun
  54978. #: guix-git/doc/guix.texi:36102
  54979. 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:"
  54980. msgstr ""
  54981. #. type: lisp
  54982. #: guix-git/doc/guix.texi:36119
  54983. #, no-wrap
  54984. msgid ""
  54985. "(service nginx-service-type\n"
  54986. " (nginx-configuration\n"
  54987. " (server-blocks\n"
  54988. " (list\n"
  54989. " (nginx-server-configuration\n"
  54990. " (listen '(\"443 ssl\"))\n"
  54991. " (server-name \"git.my-host.org\")\n"
  54992. " (ssl-certificate\n"
  54993. " \"/etc/letsencrypt/live/git.my-host.org/fullchain.pem\")\n"
  54994. " (ssl-certificate-key\n"
  54995. " \"/etc/letsencrypt/live/git.my-host.org/privkey.pem\")\n"
  54996. " (locations\n"
  54997. " (list\n"
  54998. " (git-http-nginx-location-configuration\n"
  54999. " (git-http-configuration (uri-path \"/\"))))))))))\n"
  55000. msgstr ""
  55001. #. type: defun
  55002. #: guix-git/doc/guix.texi:36126
  55003. 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}."
  55004. msgstr ""
  55005. #. type: subsubheading
  55006. #: guix-git/doc/guix.texi:36128
  55007. #, no-wrap
  55008. msgid "Cgit Service"
  55009. msgstr ""
  55010. #. type: cindex
  55011. #: guix-git/doc/guix.texi:36130
  55012. #, no-wrap
  55013. msgid "Cgit service"
  55014. msgstr ""
  55015. #. type: cindex
  55016. #: guix-git/doc/guix.texi:36131
  55017. #, no-wrap
  55018. msgid "Git, web interface"
  55019. msgstr ""
  55020. #. type: Plain text
  55021. #: guix-git/doc/guix.texi:36134
  55022. msgid "@uref{https://git.zx2c4.com/cgit/, Cgit} is a web frontend for Git repositories written in C."
  55023. msgstr ""
  55024. #. type: Plain text
  55025. #: guix-git/doc/guix.texi:36137
  55026. msgid "The following example will configure the service with default values. By default, Cgit can be accessed on port 80 (@code{http://localhost:80})."
  55027. msgstr ""
  55028. #. type: lisp
  55029. #: guix-git/doc/guix.texi:36140
  55030. #, no-wrap
  55031. msgid "(service cgit-service-type)\n"
  55032. msgstr ""
  55033. #. type: Plain text
  55034. #: guix-git/doc/guix.texi:36144
  55035. msgid "The @code{file-object} type designates either a file-like object (@pxref{G-Expressions, file-like objects}) or a string."
  55036. msgstr ""
  55037. #. type: Plain text
  55038. #: guix-git/doc/guix.texi:36148
  55039. msgid "Available @code{cgit-configuration} fields are:"
  55040. msgstr ""
  55041. #. type: deftypevr
  55042. #: guix-git/doc/guix.texi:36149
  55043. #, no-wrap
  55044. msgid "{@code{cgit-configuration} parameter} package package"
  55045. msgstr ""
  55046. #. type: deftypevr
  55047. #: guix-git/doc/guix.texi:36151
  55048. msgid "The CGIT package."
  55049. msgstr ""
  55050. #. type: deftypevr
  55051. #: guix-git/doc/guix.texi:36154
  55052. #, no-wrap
  55053. msgid "{@code{cgit-configuration} parameter} nginx-server-configuration-list nginx"
  55054. msgstr ""
  55055. #. type: deftypevr
  55056. #: guix-git/doc/guix.texi:36156
  55057. msgid "NGINX configuration."
  55058. msgstr ""
  55059. #. type: deftypevr
  55060. #: guix-git/doc/guix.texi:36159
  55061. #, no-wrap
  55062. msgid "{@code{cgit-configuration} parameter} file-object about-filter"
  55063. msgstr ""
  55064. #. type: deftypevr
  55065. #: guix-git/doc/guix.texi:36162
  55066. msgid "Specifies a command which will be invoked to format the content of about pages (both top-level and for each repository)."
  55067. msgstr ""
  55068. #. type: deftypevr
  55069. #: guix-git/doc/guix.texi:36167
  55070. #, no-wrap
  55071. msgid "{@code{cgit-configuration} parameter} string agefile"
  55072. msgstr ""
  55073. #. type: deftypevr
  55074. #: guix-git/doc/guix.texi:36170
  55075. 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."
  55076. msgstr ""
  55077. #. type: deftypevr
  55078. #: guix-git/doc/guix.texi:36175
  55079. #, no-wrap
  55080. msgid "{@code{cgit-configuration} parameter} file-object auth-filter"
  55081. msgstr ""
  55082. #. type: deftypevr
  55083. #: guix-git/doc/guix.texi:36178
  55084. msgid "Specifies a command that will be invoked for authenticating repository access."
  55085. msgstr ""
  55086. #. type: deftypevr
  55087. #: guix-git/doc/guix.texi:36183
  55088. #, no-wrap
  55089. msgid "{@code{cgit-configuration} parameter} string branch-sort"
  55090. msgstr ""
  55091. #. type: deftypevr
  55092. #: guix-git/doc/guix.texi:36186
  55093. 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."
  55094. msgstr ""
  55095. #. type: deftypevr
  55096. #: guix-git/doc/guix.texi:36188
  55097. msgid "Defaults to @samp{\"name\"}."
  55098. msgstr ""
  55099. #. type: deftypevr
  55100. #: guix-git/doc/guix.texi:36191
  55101. #, no-wrap
  55102. msgid "{@code{cgit-configuration} parameter} string cache-root"
  55103. msgstr ""
  55104. #. type: deftypevr
  55105. #: guix-git/doc/guix.texi:36193
  55106. msgid "Path used to store the cgit cache entries."
  55107. msgstr ""
  55108. #. type: deftypevr
  55109. #: guix-git/doc/guix.texi:36195
  55110. msgid "Defaults to @samp{\"/var/cache/cgit\"}."
  55111. msgstr ""
  55112. #. type: deftypevr
  55113. #: guix-git/doc/guix.texi:36198
  55114. #, no-wrap
  55115. msgid "{@code{cgit-configuration} parameter} integer cache-static-ttl"
  55116. msgstr ""
  55117. #. type: deftypevr
  55118. #: guix-git/doc/guix.texi:36201
  55119. msgid "Number which specifies the time-to-live, in minutes, for the cached version of repository pages accessed with a fixed SHA1."
  55120. msgstr ""
  55121. #. type: deftypevr
  55122. #: guix-git/doc/guix.texi:36203 guix-git/doc/guix.texi:36646
  55123. msgid "Defaults to @samp{-1}."
  55124. msgstr ""
  55125. #. type: deftypevr
  55126. #: guix-git/doc/guix.texi:36206
  55127. #, no-wrap
  55128. msgid "{@code{cgit-configuration} parameter} integer cache-dynamic-ttl"
  55129. msgstr ""
  55130. #. type: deftypevr
  55131. #: guix-git/doc/guix.texi:36209
  55132. msgid "Number which specifies the time-to-live, in minutes, for the cached version of repository pages accessed without a fixed SHA1."
  55133. msgstr ""
  55134. #. type: deftypevr
  55135. #: guix-git/doc/guix.texi:36214
  55136. #, no-wrap
  55137. msgid "{@code{cgit-configuration} parameter} integer cache-repo-ttl"
  55138. msgstr ""
  55139. #. type: deftypevr
  55140. #: guix-git/doc/guix.texi:36217
  55141. msgid "Number which specifies the time-to-live, in minutes, for the cached version of the repository summary page."
  55142. msgstr ""
  55143. #. type: deftypevr
  55144. #: guix-git/doc/guix.texi:36222
  55145. #, no-wrap
  55146. msgid "{@code{cgit-configuration} parameter} integer cache-root-ttl"
  55147. msgstr ""
  55148. #. type: deftypevr
  55149. #: guix-git/doc/guix.texi:36225
  55150. msgid "Number which specifies the time-to-live, in minutes, for the cached version of the repository index page."
  55151. msgstr ""
  55152. #. type: deftypevr
  55153. #: guix-git/doc/guix.texi:36230
  55154. #, no-wrap
  55155. msgid "{@code{cgit-configuration} parameter} integer cache-scanrc-ttl"
  55156. msgstr ""
  55157. #. type: deftypevr
  55158. #: guix-git/doc/guix.texi:36233
  55159. msgid "Number which specifies the time-to-live, in minutes, for the result of scanning a path for Git repositories."
  55160. msgstr ""
  55161. #. type: deftypevr
  55162. #: guix-git/doc/guix.texi:36238
  55163. #, no-wrap
  55164. msgid "{@code{cgit-configuration} parameter} integer cache-about-ttl"
  55165. msgstr ""
  55166. #. type: deftypevr
  55167. #: guix-git/doc/guix.texi:36241
  55168. msgid "Number which specifies the time-to-live, in minutes, for the cached version of the repository about page."
  55169. msgstr ""
  55170. #. type: deftypevr
  55171. #: guix-git/doc/guix.texi:36246
  55172. #, no-wrap
  55173. msgid "{@code{cgit-configuration} parameter} integer cache-snapshot-ttl"
  55174. msgstr ""
  55175. #. type: deftypevr
  55176. #: guix-git/doc/guix.texi:36249
  55177. msgid "Number which specifies the time-to-live, in minutes, for the cached version of snapshots."
  55178. msgstr ""
  55179. #. type: deftypevr
  55180. #: guix-git/doc/guix.texi:36254
  55181. #, no-wrap
  55182. msgid "{@code{cgit-configuration} parameter} integer cache-size"
  55183. msgstr ""
  55184. #. type: deftypevr
  55185. #: guix-git/doc/guix.texi:36257
  55186. msgid "The maximum number of entries in the cgit cache. When set to @samp{0}, caching is disabled."
  55187. msgstr ""
  55188. #. type: deftypevr
  55189. #: guix-git/doc/guix.texi:36262
  55190. #, no-wrap
  55191. msgid "{@code{cgit-configuration} parameter} boolean case-sensitive-sort?"
  55192. msgstr ""
  55193. #. type: deftypevr
  55194. #: guix-git/doc/guix.texi:36264
  55195. msgid "Sort items in the repo list case sensitively."
  55196. msgstr ""
  55197. #. type: deftypevr
  55198. #: guix-git/doc/guix.texi:36269
  55199. #, no-wrap
  55200. msgid "{@code{cgit-configuration} parameter} list clone-prefix"
  55201. msgstr ""
  55202. #. type: deftypevr
  55203. #: guix-git/doc/guix.texi:36272
  55204. msgid "List of common prefixes which, when combined with a repository URL, generates valid clone URLs for the repository."
  55205. msgstr ""
  55206. #. type: deftypevr
  55207. #: guix-git/doc/guix.texi:36277
  55208. #, no-wrap
  55209. msgid "{@code{cgit-configuration} parameter} list clone-url"
  55210. msgstr ""
  55211. #. type: deftypevr
  55212. #: guix-git/doc/guix.texi:36279
  55213. msgid "List of @code{clone-url} templates."
  55214. msgstr ""
  55215. #. type: deftypevr
  55216. #: guix-git/doc/guix.texi:36284
  55217. #, no-wrap
  55218. msgid "{@code{cgit-configuration} parameter} file-object commit-filter"
  55219. msgstr ""
  55220. #. type: deftypevr
  55221. #: guix-git/doc/guix.texi:36286
  55222. msgid "Command which will be invoked to format commit messages."
  55223. msgstr ""
  55224. #. type: deftypevr
  55225. #: guix-git/doc/guix.texi:36291
  55226. #, no-wrap
  55227. msgid "{@code{cgit-configuration} parameter} string commit-sort"
  55228. msgstr ""
  55229. #. type: deftypevr
  55230. #: guix-git/doc/guix.texi:36295 guix-git/doc/guix.texi:36853
  55231. 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."
  55232. msgstr ""
  55233. #. type: deftypevr
  55234. #: guix-git/doc/guix.texi:36297
  55235. msgid "Defaults to @samp{\"git log\"}."
  55236. msgstr ""
  55237. #. type: deftypevr
  55238. #: guix-git/doc/guix.texi:36300
  55239. #, no-wrap
  55240. msgid "{@code{cgit-configuration} parameter} file-object css"
  55241. msgstr ""
  55242. #. type: deftypevr
  55243. #: guix-git/doc/guix.texi:36302
  55244. msgid "URL which specifies the css document to include in all cgit pages."
  55245. msgstr ""
  55246. #. type: deftypevr
  55247. #: guix-git/doc/guix.texi:36304
  55248. msgid "Defaults to @samp{\"/share/cgit/cgit.css\"}."
  55249. msgstr ""
  55250. #. type: deftypevr
  55251. #: guix-git/doc/guix.texi:36307
  55252. #, no-wrap
  55253. msgid "{@code{cgit-configuration} parameter} file-object email-filter"
  55254. msgstr ""
  55255. #. type: deftypevr
  55256. #: guix-git/doc/guix.texi:36311
  55257. 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."
  55258. msgstr ""
  55259. #. type: deftypevr
  55260. #: guix-git/doc/guix.texi:36316
  55261. #, no-wrap
  55262. msgid "{@code{cgit-configuration} parameter} boolean embedded?"
  55263. msgstr ""
  55264. #. type: deftypevr
  55265. #: guix-git/doc/guix.texi:36319
  55266. msgid "Flag which, when set to @samp{#t}, will make cgit generate a HTML fragment suitable for embedding in other HTML pages."
  55267. msgstr ""
  55268. #. type: deftypevr
  55269. #: guix-git/doc/guix.texi:36324
  55270. #, no-wrap
  55271. msgid "{@code{cgit-configuration} parameter} boolean enable-commit-graph?"
  55272. msgstr ""
  55273. #. type: deftypevr
  55274. #: guix-git/doc/guix.texi:36328
  55275. 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."
  55276. msgstr ""
  55277. #. type: deftypevr
  55278. #: guix-git/doc/guix.texi:36333
  55279. #, no-wrap
  55280. msgid "{@code{cgit-configuration} parameter} boolean enable-filter-overrides?"
  55281. msgstr ""
  55282. #. type: deftypevr
  55283. #: guix-git/doc/guix.texi:36336
  55284. msgid "Flag which, when set to @samp{#t}, allows all filter settings to be overridden in repository-specific cgitrc files."
  55285. msgstr ""
  55286. #. type: deftypevr
  55287. #: guix-git/doc/guix.texi:36341
  55288. #, no-wrap
  55289. msgid "{@code{cgit-configuration} parameter} boolean enable-follow-links?"
  55290. msgstr ""
  55291. #. type: deftypevr
  55292. #: guix-git/doc/guix.texi:36344
  55293. msgid "Flag which, when set to @samp{#t}, allows users to follow a file in the log view."
  55294. msgstr ""
  55295. #. type: deftypevr
  55296. #: guix-git/doc/guix.texi:36349
  55297. #, no-wrap
  55298. msgid "{@code{cgit-configuration} parameter} boolean enable-http-clone?"
  55299. msgstr ""
  55300. #. type: deftypevr
  55301. #: guix-git/doc/guix.texi:36352
  55302. msgid "If set to @samp{#t}, cgit will act as an dumb HTTP endpoint for Git clones."
  55303. msgstr ""
  55304. #. type: deftypevr
  55305. #: guix-git/doc/guix.texi:36357
  55306. #, no-wrap
  55307. msgid "{@code{cgit-configuration} parameter} boolean enable-index-links?"
  55308. msgstr ""
  55309. #. type: deftypevr
  55310. #: guix-git/doc/guix.texi:36360
  55311. msgid "Flag which, when set to @samp{#t}, will make cgit generate extra links \"summary\", \"commit\", \"tree\" for each repo in the repository index."
  55312. msgstr ""
  55313. #. type: deftypevr
  55314. #: guix-git/doc/guix.texi:36365
  55315. #, no-wrap
  55316. msgid "{@code{cgit-configuration} parameter} boolean enable-index-owner?"
  55317. msgstr ""
  55318. #. type: deftypevr
  55319. #: guix-git/doc/guix.texi:36368
  55320. msgid "Flag which, when set to @samp{#t}, will make cgit display the owner of each repo in the repository index."
  55321. msgstr ""
  55322. #. type: deftypevr
  55323. #: guix-git/doc/guix.texi:36373
  55324. #, no-wrap
  55325. msgid "{@code{cgit-configuration} parameter} boolean enable-log-filecount?"
  55326. msgstr ""
  55327. #. type: deftypevr
  55328. #: guix-git/doc/guix.texi:36376
  55329. 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."
  55330. msgstr ""
  55331. #. type: deftypevr
  55332. #: guix-git/doc/guix.texi:36381
  55333. #, no-wrap
  55334. msgid "{@code{cgit-configuration} parameter} boolean enable-log-linecount?"
  55335. msgstr ""
  55336. #. type: deftypevr
  55337. #: guix-git/doc/guix.texi:36384
  55338. 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."
  55339. msgstr ""
  55340. #. type: deftypevr
  55341. #: guix-git/doc/guix.texi:36389
  55342. #, no-wrap
  55343. msgid "{@code{cgit-configuration} parameter} boolean enable-remote-branches?"
  55344. msgstr ""
  55345. #. type: deftypevr
  55346. #: guix-git/doc/guix.texi:36392 guix-git/doc/guix.texi:36916
  55347. msgid "Flag which, when set to @code{#t}, will make cgit display remote branches in the summary and refs views."
  55348. msgstr ""
  55349. #. type: deftypevr
  55350. #: guix-git/doc/guix.texi:36397
  55351. #, no-wrap
  55352. msgid "{@code{cgit-configuration} parameter} boolean enable-subject-links?"
  55353. msgstr ""
  55354. #. type: deftypevr
  55355. #: guix-git/doc/guix.texi:36401
  55356. 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."
  55357. msgstr ""
  55358. #. type: deftypevr
  55359. #: guix-git/doc/guix.texi:36406
  55360. #, no-wrap
  55361. msgid "{@code{cgit-configuration} parameter} boolean enable-html-serving?"
  55362. msgstr ""
  55363. #. type: deftypevr
  55364. #: guix-git/doc/guix.texi:36410
  55365. 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."
  55366. msgstr ""
  55367. #. type: deftypevr
  55368. #: guix-git/doc/guix.texi:36415
  55369. #, no-wrap
  55370. msgid "{@code{cgit-configuration} parameter} boolean enable-tree-linenumbers?"
  55371. msgstr ""
  55372. #. type: deftypevr
  55373. #: guix-git/doc/guix.texi:36418
  55374. msgid "Flag which, when set to @samp{#t}, will make cgit generate linenumber links for plaintext blobs printed in the tree view."
  55375. msgstr ""
  55376. #. type: deftypevr
  55377. #: guix-git/doc/guix.texi:36423
  55378. #, no-wrap
  55379. msgid "{@code{cgit-configuration} parameter} boolean enable-git-config?"
  55380. msgstr ""
  55381. #. type: deftypevr
  55382. #: guix-git/doc/guix.texi:36426
  55383. msgid "Flag which, when set to @samp{#f}, will allow cgit to use Git config to set any repo specific settings."
  55384. msgstr ""
  55385. #. type: deftypevr
  55386. #: guix-git/doc/guix.texi:36431
  55387. #, no-wrap
  55388. msgid "{@code{cgit-configuration} parameter} file-object favicon"
  55389. msgstr ""
  55390. #. type: deftypevr
  55391. #: guix-git/doc/guix.texi:36433
  55392. msgid "URL used as link to a shortcut icon for cgit."
  55393. msgstr ""
  55394. #. type: deftypevr
  55395. #: guix-git/doc/guix.texi:36435
  55396. msgid "Defaults to @samp{\"/favicon.ico\"}."
  55397. msgstr ""
  55398. #. type: deftypevr
  55399. #: guix-git/doc/guix.texi:36438
  55400. #, no-wrap
  55401. msgid "{@code{cgit-configuration} parameter} string footer"
  55402. msgstr ""
  55403. #. type: deftypevr
  55404. #: guix-git/doc/guix.texi:36442
  55405. 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)."
  55406. msgstr ""
  55407. #. type: deftypevr
  55408. #: guix-git/doc/guix.texi:36447
  55409. #, no-wrap
  55410. msgid "{@code{cgit-configuration} parameter} string head-include"
  55411. msgstr ""
  55412. #. type: deftypevr
  55413. #: guix-git/doc/guix.texi:36450
  55414. msgid "The content of the file specified with this option will be included verbatim in the HTML HEAD section on all pages."
  55415. msgstr ""
  55416. #. type: deftypevr
  55417. #: guix-git/doc/guix.texi:36455
  55418. #, no-wrap
  55419. msgid "{@code{cgit-configuration} parameter} string header"
  55420. msgstr ""
  55421. #. type: deftypevr
  55422. #: guix-git/doc/guix.texi:36458
  55423. msgid "The content of the file specified with this option will be included verbatim at the top of all pages."
  55424. msgstr ""
  55425. #. type: deftypevr
  55426. #: guix-git/doc/guix.texi:36463
  55427. #, no-wrap
  55428. msgid "{@code{cgit-configuration} parameter} file-object include"
  55429. msgstr ""
  55430. #. type: deftypevr
  55431. #: guix-git/doc/guix.texi:36466
  55432. msgid "Name of a configfile to include before the rest of the current config- file is parsed."
  55433. msgstr ""
  55434. #. type: deftypevr
  55435. #: guix-git/doc/guix.texi:36471
  55436. #, no-wrap
  55437. msgid "{@code{cgit-configuration} parameter} string index-header"
  55438. msgstr ""
  55439. #. type: deftypevr
  55440. #: guix-git/doc/guix.texi:36474
  55441. msgid "The content of the file specified with this option will be included verbatim above the repository index."
  55442. msgstr ""
  55443. #. type: deftypevr
  55444. #: guix-git/doc/guix.texi:36479
  55445. #, no-wrap
  55446. msgid "{@code{cgit-configuration} parameter} string index-info"
  55447. msgstr ""
  55448. #. type: deftypevr
  55449. #: guix-git/doc/guix.texi:36482
  55450. msgid "The content of the file specified with this option will be included verbatim below the heading on the repository index page."
  55451. msgstr ""
  55452. #. type: deftypevr
  55453. #: guix-git/doc/guix.texi:36487
  55454. #, no-wrap
  55455. msgid "{@code{cgit-configuration} parameter} boolean local-time?"
  55456. msgstr ""
  55457. #. type: deftypevr
  55458. #: guix-git/doc/guix.texi:36490
  55459. msgid "Flag which, if set to @samp{#t}, makes cgit print commit and tag times in the servers timezone."
  55460. msgstr ""
  55461. #. type: deftypevr
  55462. #: guix-git/doc/guix.texi:36495
  55463. #, no-wrap
  55464. msgid "{@code{cgit-configuration} parameter} file-object logo"
  55465. msgstr ""
  55466. #. type: deftypevr
  55467. #: guix-git/doc/guix.texi:36498
  55468. msgid "URL which specifies the source of an image which will be used as a logo on all cgit pages."
  55469. msgstr ""
  55470. #. type: deftypevr
  55471. #: guix-git/doc/guix.texi:36500
  55472. msgid "Defaults to @samp{\"/share/cgit/cgit.png\"}."
  55473. msgstr ""
  55474. #. type: deftypevr
  55475. #: guix-git/doc/guix.texi:36503
  55476. #, no-wrap
  55477. msgid "{@code{cgit-configuration} parameter} string logo-link"
  55478. msgstr ""
  55479. #. type: deftypevr
  55480. #: guix-git/doc/guix.texi:36505 guix-git/doc/guix.texi:36962
  55481. msgid "URL loaded when clicking on the cgit logo image."
  55482. msgstr ""
  55483. #. type: deftypevr
  55484. #: guix-git/doc/guix.texi:36510
  55485. #, no-wrap
  55486. msgid "{@code{cgit-configuration} parameter} file-object owner-filter"
  55487. msgstr ""
  55488. #. type: deftypevr
  55489. #: guix-git/doc/guix.texi:36513
  55490. msgid "Command which will be invoked to format the Owner column of the main page."
  55491. msgstr ""
  55492. #. type: deftypevr
  55493. #: guix-git/doc/guix.texi:36518
  55494. #, no-wrap
  55495. msgid "{@code{cgit-configuration} parameter} integer max-atom-items"
  55496. msgstr ""
  55497. #. type: deftypevr
  55498. #: guix-git/doc/guix.texi:36520
  55499. msgid "Number of items to display in atom feeds view."
  55500. msgstr ""
  55501. #. type: deftypevr
  55502. #: guix-git/doc/guix.texi:36525
  55503. #, no-wrap
  55504. msgid "{@code{cgit-configuration} parameter} integer max-commit-count"
  55505. msgstr ""
  55506. #. type: deftypevr
  55507. #: guix-git/doc/guix.texi:36527
  55508. msgid "Number of entries to list per page in \"log\" view."
  55509. msgstr ""
  55510. #. type: deftypevr
  55511. #: guix-git/doc/guix.texi:36532
  55512. #, no-wrap
  55513. msgid "{@code{cgit-configuration} parameter} integer max-message-length"
  55514. msgstr ""
  55515. #. type: deftypevr
  55516. #: guix-git/doc/guix.texi:36534
  55517. msgid "Number of commit message characters to display in \"log\" view."
  55518. msgstr ""
  55519. #. type: deftypevr
  55520. #: guix-git/doc/guix.texi:36536 guix-git/doc/guix.texi:36552
  55521. msgid "Defaults to @samp{80}."
  55522. msgstr ""
  55523. #. type: deftypevr
  55524. #: guix-git/doc/guix.texi:36539
  55525. #, no-wrap
  55526. msgid "{@code{cgit-configuration} parameter} integer max-repo-count"
  55527. msgstr ""
  55528. #. type: deftypevr
  55529. #: guix-git/doc/guix.texi:36542
  55530. msgid "Specifies the number of entries to list per page on the repository index page."
  55531. msgstr ""
  55532. #. type: deftypevr
  55533. #: guix-git/doc/guix.texi:36547
  55534. #, no-wrap
  55535. msgid "{@code{cgit-configuration} parameter} integer max-repodesc-length"
  55536. msgstr ""
  55537. #. type: deftypevr
  55538. #: guix-git/doc/guix.texi:36550
  55539. msgid "Specifies the maximum number of repo description characters to display on the repository index page."
  55540. msgstr ""
  55541. #. type: deftypevr
  55542. #: guix-git/doc/guix.texi:36555
  55543. #, no-wrap
  55544. msgid "{@code{cgit-configuration} parameter} integer max-blob-size"
  55545. msgstr ""
  55546. #. type: deftypevr
  55547. #: guix-git/doc/guix.texi:36557
  55548. msgid "Specifies the maximum size of a blob to display HTML for in KBytes."
  55549. msgstr ""
  55550. #. type: deftypevr
  55551. #: guix-git/doc/guix.texi:36562
  55552. #, no-wrap
  55553. msgid "{@code{cgit-configuration} parameter} string max-stats"
  55554. msgstr ""
  55555. #. type: deftypevr
  55556. #: guix-git/doc/guix.texi:36565
  55557. msgid "Maximum statistics period. Valid values are @samp{week},@samp{month}, @samp{quarter} and @samp{year}."
  55558. msgstr ""
  55559. #. type: deftypevr
  55560. #: guix-git/doc/guix.texi:36570
  55561. #, no-wrap
  55562. msgid "{@code{cgit-configuration} parameter} mimetype-alist mimetype"
  55563. msgstr ""
  55564. #. type: deftypevr
  55565. #: guix-git/doc/guix.texi:36572
  55566. msgid "Mimetype for the specified filename extension."
  55567. msgstr ""
  55568. #. type: deftypevr
  55569. #: guix-git/doc/guix.texi:36576
  55570. 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\"))}."
  55571. msgstr ""
  55572. #. type: deftypevr
  55573. #: guix-git/doc/guix.texi:36579
  55574. #, no-wrap
  55575. msgid "{@code{cgit-configuration} parameter} file-object mimetype-file"
  55576. msgstr ""
  55577. #. type: deftypevr
  55578. #: guix-git/doc/guix.texi:36581
  55579. msgid "Specifies the file to use for automatic mimetype lookup."
  55580. msgstr ""
  55581. #. type: deftypevr
  55582. #: guix-git/doc/guix.texi:36586
  55583. #, no-wrap
  55584. msgid "{@code{cgit-configuration} parameter} string module-link"
  55585. msgstr ""
  55586. #. type: deftypevr
  55587. #: guix-git/doc/guix.texi:36589
  55588. msgid "Text which will be used as the formatstring for a hyperlink when a submodule is printed in a directory listing."
  55589. msgstr ""
  55590. #. type: deftypevr
  55591. #: guix-git/doc/guix.texi:36594
  55592. #, no-wrap
  55593. msgid "{@code{cgit-configuration} parameter} boolean nocache?"
  55594. msgstr ""
  55595. #. type: deftypevr
  55596. #: guix-git/doc/guix.texi:36596
  55597. msgid "If set to the value @samp{#t} caching will be disabled."
  55598. msgstr ""
  55599. #. type: deftypevr
  55600. #: guix-git/doc/guix.texi:36601
  55601. #, no-wrap
  55602. msgid "{@code{cgit-configuration} parameter} boolean noplainemail?"
  55603. msgstr ""
  55604. #. type: deftypevr
  55605. #: guix-git/doc/guix.texi:36604
  55606. msgid "If set to @samp{#t} showing full author email addresses will be disabled."
  55607. msgstr ""
  55608. #. type: deftypevr
  55609. #: guix-git/doc/guix.texi:36609
  55610. #, no-wrap
  55611. msgid "{@code{cgit-configuration} parameter} boolean noheader?"
  55612. msgstr ""
  55613. #. type: deftypevr
  55614. #: guix-git/doc/guix.texi:36612
  55615. msgid "Flag which, when set to @samp{#t}, will make cgit omit the standard header on all pages."
  55616. msgstr ""
  55617. #. type: deftypevr
  55618. #: guix-git/doc/guix.texi:36617
  55619. #, no-wrap
  55620. msgid "{@code{cgit-configuration} parameter} project-list project-list"
  55621. msgstr ""
  55622. #. type: deftypevr
  55623. #: guix-git/doc/guix.texi:36621
  55624. 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."
  55625. msgstr ""
  55626. #. type: deftypevr
  55627. #: guix-git/doc/guix.texi:36626
  55628. #, no-wrap
  55629. msgid "{@code{cgit-configuration} parameter} file-object readme"
  55630. msgstr ""
  55631. #. type: deftypevr
  55632. #: guix-git/doc/guix.texi:36628
  55633. msgid "Text which will be used as default value for @code{cgit-repo-readme}."
  55634. msgstr ""
  55635. #. type: deftypevr
  55636. #: guix-git/doc/guix.texi:36633
  55637. #, no-wrap
  55638. msgid "{@code{cgit-configuration} parameter} boolean remove-suffix?"
  55639. msgstr ""
  55640. #. type: deftypevr
  55641. #: guix-git/doc/guix.texi:36637
  55642. 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."
  55643. msgstr ""
  55644. #. type: deftypevr
  55645. #: guix-git/doc/guix.texi:36642
  55646. #, no-wrap
  55647. msgid "{@code{cgit-configuration} parameter} integer renamelimit"
  55648. msgstr ""
  55649. #. type: deftypevr
  55650. #: guix-git/doc/guix.texi:36644
  55651. msgid "Maximum number of files to consider when detecting renames."
  55652. msgstr ""
  55653. #. type: deftypevr
  55654. #: guix-git/doc/guix.texi:36649
  55655. #, no-wrap
  55656. msgid "{@code{cgit-configuration} parameter} string repository-sort"
  55657. msgstr ""
  55658. #. type: deftypevr
  55659. #: guix-git/doc/guix.texi:36651
  55660. msgid "The way in which repositories in each section are sorted."
  55661. msgstr ""
  55662. #. type: deftypevr
  55663. #: guix-git/doc/guix.texi:36656
  55664. #, no-wrap
  55665. msgid "{@code{cgit-configuration} parameter} robots-list robots"
  55666. msgstr ""
  55667. #. type: deftypevr
  55668. #: guix-git/doc/guix.texi:36658
  55669. msgid "Text used as content for the @code{robots} meta-tag."
  55670. msgstr ""
  55671. #. type: deftypevr
  55672. #: guix-git/doc/guix.texi:36660
  55673. msgid "Defaults to @samp{'(\"noindex\" \"nofollow\")}."
  55674. msgstr ""
  55675. #. type: deftypevr
  55676. #: guix-git/doc/guix.texi:36663
  55677. #, no-wrap
  55678. msgid "{@code{cgit-configuration} parameter} string root-desc"
  55679. msgstr ""
  55680. #. type: deftypevr
  55681. #: guix-git/doc/guix.texi:36665
  55682. msgid "Text printed below the heading on the repository index page."
  55683. msgstr ""
  55684. #. type: deftypevr
  55685. #: guix-git/doc/guix.texi:36667
  55686. msgid "Defaults to @samp{\"a fast webinterface for the git dscm\"}."
  55687. msgstr ""
  55688. #. type: deftypevr
  55689. #: guix-git/doc/guix.texi:36670
  55690. #, no-wrap
  55691. msgid "{@code{cgit-configuration} parameter} string root-readme"
  55692. msgstr ""
  55693. #. type: deftypevr
  55694. #: guix-git/doc/guix.texi:36673
  55695. msgid "The content of the file specified with this option will be included verbatim below the ``about'' link on the repository index page."
  55696. msgstr ""
  55697. #. type: deftypevr
  55698. #: guix-git/doc/guix.texi:36678
  55699. #, no-wrap
  55700. msgid "{@code{cgit-configuration} parameter} string root-title"
  55701. msgstr ""
  55702. #. type: deftypevr
  55703. #: guix-git/doc/guix.texi:36680
  55704. msgid "Text printed as heading on the repository index page."
  55705. msgstr ""
  55706. #. type: deftypevr
  55707. #: guix-git/doc/guix.texi:36685
  55708. #, no-wrap
  55709. msgid "{@code{cgit-configuration} parameter} boolean scan-hidden-path"
  55710. msgstr ""
  55711. #. type: deftypevr
  55712. #: guix-git/doc/guix.texi:36691
  55713. 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."
  55714. msgstr ""
  55715. #. type: deftypevr
  55716. #: guix-git/doc/guix.texi:36696
  55717. #, no-wrap
  55718. msgid "{@code{cgit-configuration} parameter} list snapshots"
  55719. msgstr ""
  55720. #. type: deftypevr
  55721. #: guix-git/doc/guix.texi:36699
  55722. msgid "Text which specifies the default set of snapshot formats that cgit generates links for."
  55723. msgstr ""
  55724. #. type: deftypevr
  55725. #: guix-git/doc/guix.texi:36704
  55726. #, no-wrap
  55727. msgid "{@code{cgit-configuration} parameter} repository-directory repository-directory"
  55728. msgstr ""
  55729. #. type: deftypevr
  55730. #: guix-git/doc/guix.texi:36707
  55731. msgid "Name of the directory to scan for repositories (represents @code{scan-path})."
  55732. msgstr ""
  55733. #. type: deftypevr
  55734. #: guix-git/doc/guix.texi:36709
  55735. msgid "Defaults to @samp{\"/srv/git\"}."
  55736. msgstr ""
  55737. #. type: deftypevr
  55738. #: guix-git/doc/guix.texi:36712
  55739. #, no-wrap
  55740. msgid "{@code{cgit-configuration} parameter} string section"
  55741. msgstr ""
  55742. #. type: deftypevr
  55743. #: guix-git/doc/guix.texi:36715 guix-git/doc/guix.texi:37031
  55744. msgid "The name of the current repository section - all repositories defined after this option will inherit the current section name."
  55745. msgstr ""
  55746. #. type: deftypevr
  55747. #: guix-git/doc/guix.texi:36720
  55748. #, no-wrap
  55749. msgid "{@code{cgit-configuration} parameter} string section-sort"
  55750. msgstr ""
  55751. #. type: deftypevr
  55752. #: guix-git/doc/guix.texi:36723
  55753. msgid "Flag which, when set to @samp{1}, will sort the sections on the repository listing by name."
  55754. msgstr ""
  55755. #. type: deftypevr
  55756. #: guix-git/doc/guix.texi:36728
  55757. #, no-wrap
  55758. msgid "{@code{cgit-configuration} parameter} integer section-from-path"
  55759. msgstr ""
  55760. #. type: deftypevr
  55761. #: guix-git/doc/guix.texi:36731
  55762. 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."
  55763. msgstr ""
  55764. #. type: deftypevr
  55765. #: guix-git/doc/guix.texi:36736
  55766. #, no-wrap
  55767. msgid "{@code{cgit-configuration} parameter} boolean side-by-side-diffs?"
  55768. msgstr ""
  55769. #. type: deftypevr
  55770. #: guix-git/doc/guix.texi:36739
  55771. msgid "If set to @samp{#t} shows side-by-side diffs instead of unidiffs per default."
  55772. msgstr ""
  55773. #. type: deftypevr
  55774. #: guix-git/doc/guix.texi:36744
  55775. #, no-wrap
  55776. msgid "{@code{cgit-configuration} parameter} file-object source-filter"
  55777. msgstr ""
  55778. #. type: deftypevr
  55779. #: guix-git/doc/guix.texi:36747
  55780. msgid "Specifies a command which will be invoked to format plaintext blobs in the tree view."
  55781. msgstr ""
  55782. #. type: deftypevr
  55783. #: guix-git/doc/guix.texi:36752
  55784. #, no-wrap
  55785. msgid "{@code{cgit-configuration} parameter} integer summary-branches"
  55786. msgstr ""
  55787. #. type: deftypevr
  55788. #: guix-git/doc/guix.texi:36755
  55789. msgid "Specifies the number of branches to display in the repository ``summary'' view."
  55790. msgstr ""
  55791. #. type: deftypevr
  55792. #: guix-git/doc/guix.texi:36760
  55793. #, no-wrap
  55794. msgid "{@code{cgit-configuration} parameter} integer summary-log"
  55795. msgstr ""
  55796. #. type: deftypevr
  55797. #: guix-git/doc/guix.texi:36763
  55798. msgid "Specifies the number of log entries to display in the repository ``summary'' view."
  55799. msgstr ""
  55800. #. type: deftypevr
  55801. #: guix-git/doc/guix.texi:36768
  55802. #, no-wrap
  55803. msgid "{@code{cgit-configuration} parameter} integer summary-tags"
  55804. msgstr ""
  55805. #. type: deftypevr
  55806. #: guix-git/doc/guix.texi:36771
  55807. msgid "Specifies the number of tags to display in the repository ``summary'' view."
  55808. msgstr ""
  55809. #. type: deftypevr
  55810. #: guix-git/doc/guix.texi:36776
  55811. #, no-wrap
  55812. msgid "{@code{cgit-configuration} parameter} string strict-export"
  55813. msgstr ""
  55814. #. type: deftypevr
  55815. #: guix-git/doc/guix.texi:36779
  55816. msgid "Filename which, if specified, needs to be present within the repository for cgit to allow access to that repository."
  55817. msgstr ""
  55818. #. type: deftypevr
  55819. #: guix-git/doc/guix.texi:36784
  55820. #, no-wrap
  55821. msgid "{@code{cgit-configuration} parameter} string virtual-root"
  55822. msgstr ""
  55823. #. type: deftypevr
  55824. #: guix-git/doc/guix.texi:36786
  55825. msgid "URL which, if specified, will be used as root for all cgit links."
  55826. msgstr ""
  55827. #. type: deftypevr
  55828. #: guix-git/doc/guix.texi:36788
  55829. msgid "Defaults to @samp{\"/\"}."
  55830. msgstr ""
  55831. #. type: deftypevr
  55832. #: guix-git/doc/guix.texi:36791
  55833. #, no-wrap
  55834. msgid "{@code{cgit-configuration} parameter} repository-cgit-configuration-list repositories"
  55835. msgstr ""
  55836. #. type: deftypevr
  55837. #: guix-git/doc/guix.texi:36793
  55838. msgid "A list of @dfn{cgit-repo} records to use with config."
  55839. msgstr ""
  55840. #. type: deftypevr
  55841. #: guix-git/doc/guix.texi:36797
  55842. msgid "Available @code{repository-cgit-configuration} fields are:"
  55843. msgstr ""
  55844. #. type: deftypevr
  55845. #: guix-git/doc/guix.texi:36798
  55846. #, no-wrap
  55847. msgid "{@code{repository-cgit-configuration} parameter} repo-list snapshots"
  55848. msgstr ""
  55849. #. type: deftypevr
  55850. #: guix-git/doc/guix.texi:36801
  55851. msgid "A mask of snapshot formats for this repo that cgit generates links for, restricted by the global @code{snapshots} setting."
  55852. msgstr ""
  55853. #. type: deftypevr
  55854. #: guix-git/doc/guix.texi:36806
  55855. #, no-wrap
  55856. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object source-filter"
  55857. msgstr ""
  55858. #. type: deftypevr
  55859. #: guix-git/doc/guix.texi:36808
  55860. msgid "Override the default @code{source-filter}."
  55861. msgstr ""
  55862. #. type: deftypevr
  55863. #: guix-git/doc/guix.texi:36813
  55864. #, no-wrap
  55865. msgid "{@code{repository-cgit-configuration} parameter} repo-string url"
  55866. msgstr ""
  55867. #. type: deftypevr
  55868. #: guix-git/doc/guix.texi:36815
  55869. msgid "The relative URL used to access the repository."
  55870. msgstr ""
  55871. #. type: deftypevr
  55872. #: guix-git/doc/guix.texi:36820
  55873. #, no-wrap
  55874. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object about-filter"
  55875. msgstr ""
  55876. #. type: deftypevr
  55877. #: guix-git/doc/guix.texi:36822
  55878. msgid "Override the default @code{about-filter}."
  55879. msgstr ""
  55880. #. type: deftypevr
  55881. #: guix-git/doc/guix.texi:36827
  55882. #, no-wrap
  55883. msgid "{@code{repository-cgit-configuration} parameter} repo-string branch-sort"
  55884. msgstr ""
  55885. #. type: deftypevr
  55886. #: guix-git/doc/guix.texi:36830
  55887. 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."
  55888. msgstr ""
  55889. #. type: deftypevr
  55890. #: guix-git/doc/guix.texi:36835
  55891. #, no-wrap
  55892. msgid "{@code{repository-cgit-configuration} parameter} repo-list clone-url"
  55893. msgstr ""
  55894. #. type: deftypevr
  55895. #: guix-git/doc/guix.texi:36837
  55896. msgid "A list of URLs which can be used to clone repo."
  55897. msgstr ""
  55898. #. type: deftypevr
  55899. #: guix-git/doc/guix.texi:36842
  55900. #, no-wrap
  55901. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object commit-filter"
  55902. msgstr ""
  55903. #. type: deftypevr
  55904. #: guix-git/doc/guix.texi:36844
  55905. msgid "Override the default @code{commit-filter}."
  55906. msgstr ""
  55907. #. type: deftypevr
  55908. #: guix-git/doc/guix.texi:36849
  55909. #, no-wrap
  55910. msgid "{@code{repository-cgit-configuration} parameter} repo-string commit-sort"
  55911. msgstr ""
  55912. #. type: deftypevr
  55913. #: guix-git/doc/guix.texi:36858
  55914. #, no-wrap
  55915. msgid "{@code{repository-cgit-configuration} parameter} repo-string defbranch"
  55916. msgstr ""
  55917. #. type: deftypevr
  55918. #: guix-git/doc/guix.texi:36863
  55919. 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."
  55920. msgstr ""
  55921. #. type: deftypevr
  55922. #: guix-git/doc/guix.texi:36868
  55923. #, no-wrap
  55924. msgid "{@code{repository-cgit-configuration} parameter} repo-string desc"
  55925. msgstr ""
  55926. #. type: deftypevr
  55927. #: guix-git/doc/guix.texi:36870
  55928. msgid "The value to show as repository description."
  55929. msgstr ""
  55930. #. type: deftypevr
  55931. #: guix-git/doc/guix.texi:36875
  55932. #, no-wrap
  55933. msgid "{@code{repository-cgit-configuration} parameter} repo-string homepage"
  55934. msgstr ""
  55935. #. type: deftypevr
  55936. #: guix-git/doc/guix.texi:36877
  55937. msgid "The value to show as repository homepage."
  55938. msgstr ""
  55939. #. type: deftypevr
  55940. #: guix-git/doc/guix.texi:36882
  55941. #, no-wrap
  55942. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object email-filter"
  55943. msgstr ""
  55944. #. type: deftypevr
  55945. #: guix-git/doc/guix.texi:36884
  55946. msgid "Override the default @code{email-filter}."
  55947. msgstr ""
  55948. #. type: deftypevr
  55949. #: guix-git/doc/guix.texi:36889
  55950. #, no-wrap
  55951. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-commit-graph?"
  55952. msgstr ""
  55953. #. type: deftypevr
  55954. #: guix-git/doc/guix.texi:36892
  55955. msgid "A flag which can be used to disable the global setting @code{enable-commit-graph?}."
  55956. msgstr ""
  55957. #. type: deftypevr
  55958. #: guix-git/doc/guix.texi:36897
  55959. #, no-wrap
  55960. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-log-filecount?"
  55961. msgstr ""
  55962. #. type: deftypevr
  55963. #: guix-git/doc/guix.texi:36900
  55964. msgid "A flag which can be used to disable the global setting @code{enable-log-filecount?}."
  55965. msgstr ""
  55966. #. type: deftypevr
  55967. #: guix-git/doc/guix.texi:36905
  55968. #, no-wrap
  55969. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-log-linecount?"
  55970. msgstr ""
  55971. #. type: deftypevr
  55972. #: guix-git/doc/guix.texi:36908
  55973. msgid "A flag which can be used to disable the global setting @code{enable-log-linecount?}."
  55974. msgstr ""
  55975. #. type: deftypevr
  55976. #: guix-git/doc/guix.texi:36913
  55977. #, no-wrap
  55978. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-remote-branches?"
  55979. msgstr ""
  55980. #. type: deftypevr
  55981. #: guix-git/doc/guix.texi:36921
  55982. #, no-wrap
  55983. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-subject-links?"
  55984. msgstr ""
  55985. #. type: deftypevr
  55986. #: guix-git/doc/guix.texi:36924
  55987. msgid "A flag which can be used to override the global setting @code{enable-subject-links?}."
  55988. msgstr ""
  55989. #. type: deftypevr
  55990. #: guix-git/doc/guix.texi:36929
  55991. #, no-wrap
  55992. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-html-serving?"
  55993. msgstr ""
  55994. #. type: deftypevr
  55995. #: guix-git/doc/guix.texi:36932
  55996. msgid "A flag which can be used to override the global setting @code{enable-html-serving?}."
  55997. msgstr ""
  55998. #. type: deftypevr
  55999. #: guix-git/doc/guix.texi:36937
  56000. #, no-wrap
  56001. msgid "{@code{repository-cgit-configuration} parameter} repo-boolean hide?"
  56002. msgstr ""
  56003. #. type: deftypevr
  56004. #: guix-git/doc/guix.texi:36940
  56005. msgid "Flag which, when set to @code{#t}, hides the repository from the repository index."
  56006. msgstr ""
  56007. #. type: deftypevr
  56008. #: guix-git/doc/guix.texi:36945
  56009. #, no-wrap
  56010. msgid "{@code{repository-cgit-configuration} parameter} repo-boolean ignore?"
  56011. msgstr ""
  56012. #. type: deftypevr
  56013. #: guix-git/doc/guix.texi:36947
  56014. msgid "Flag which, when set to @samp{#t}, ignores the repository."
  56015. msgstr ""
  56016. #. type: deftypevr
  56017. #: guix-git/doc/guix.texi:36952
  56018. #, no-wrap
  56019. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object logo"
  56020. msgstr ""
  56021. #. type: deftypevr
  56022. #: guix-git/doc/guix.texi:36955
  56023. msgid "URL which specifies the source of an image which will be used as a logo on this repo’s pages."
  56024. msgstr ""
  56025. #. type: deftypevr
  56026. #: guix-git/doc/guix.texi:36960
  56027. #, no-wrap
  56028. msgid "{@code{repository-cgit-configuration} parameter} repo-string logo-link"
  56029. msgstr ""
  56030. #. type: deftypevr
  56031. #: guix-git/doc/guix.texi:36967
  56032. #, no-wrap
  56033. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object owner-filter"
  56034. msgstr ""
  56035. #. type: deftypevr
  56036. #: guix-git/doc/guix.texi:36969
  56037. msgid "Override the default @code{owner-filter}."
  56038. msgstr ""
  56039. #. type: deftypevr
  56040. #: guix-git/doc/guix.texi:36974
  56041. #, no-wrap
  56042. msgid "{@code{repository-cgit-configuration} parameter} repo-string module-link"
  56043. msgstr ""
  56044. #. type: deftypevr
  56045. #: guix-git/doc/guix.texi:36978
  56046. 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."
  56047. msgstr ""
  56048. #. type: deftypevr
  56049. #: guix-git/doc/guix.texi:36983
  56050. #, no-wrap
  56051. msgid "{@code{repository-cgit-configuration} parameter} module-link-path module-link-path"
  56052. msgstr ""
  56053. #. type: deftypevr
  56054. #: guix-git/doc/guix.texi:36987
  56055. 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."
  56056. msgstr ""
  56057. #. type: deftypevr
  56058. #: guix-git/doc/guix.texi:36992
  56059. #, no-wrap
  56060. msgid "{@code{repository-cgit-configuration} parameter} repo-string max-stats"
  56061. msgstr ""
  56062. #. type: deftypevr
  56063. #: guix-git/doc/guix.texi:36994
  56064. msgid "Override the default maximum statistics period."
  56065. msgstr ""
  56066. #. type: deftypevr
  56067. #: guix-git/doc/guix.texi:36999
  56068. #, no-wrap
  56069. msgid "{@code{repository-cgit-configuration} parameter} repo-string name"
  56070. msgstr ""
  56071. #. type: deftypevr
  56072. #: guix-git/doc/guix.texi:37001
  56073. msgid "The value to show as repository name."
  56074. msgstr ""
  56075. #. type: deftypevr
  56076. #: guix-git/doc/guix.texi:37006
  56077. #, no-wrap
  56078. msgid "{@code{repository-cgit-configuration} parameter} repo-string owner"
  56079. msgstr ""
  56080. #. type: deftypevr
  56081. #: guix-git/doc/guix.texi:37008
  56082. msgid "A value used to identify the owner of the repository."
  56083. msgstr ""
  56084. #. type: deftypevr
  56085. #: guix-git/doc/guix.texi:37013
  56086. #, no-wrap
  56087. msgid "{@code{repository-cgit-configuration} parameter} repo-string path"
  56088. msgstr ""
  56089. #. type: deftypevr
  56090. #: guix-git/doc/guix.texi:37015
  56091. msgid "An absolute path to the repository directory."
  56092. msgstr ""
  56093. #. type: deftypevr
  56094. #: guix-git/doc/guix.texi:37020
  56095. #, no-wrap
  56096. msgid "{@code{repository-cgit-configuration} parameter} repo-string readme"
  56097. msgstr ""
  56098. #. type: deftypevr
  56099. #: guix-git/doc/guix.texi:37023
  56100. msgid "A path (relative to repo) which specifies a file to include verbatim as the ``About'' page for this repo."
  56101. msgstr ""
  56102. #. type: deftypevr
  56103. #: guix-git/doc/guix.texi:37028
  56104. #, no-wrap
  56105. msgid "{@code{repository-cgit-configuration} parameter} repo-string section"
  56106. msgstr ""
  56107. #. type: deftypevr
  56108. #: guix-git/doc/guix.texi:37036
  56109. #, no-wrap
  56110. msgid "{@code{repository-cgit-configuration} parameter} repo-list extra-options"
  56111. msgstr ""
  56112. #. type: deftypevr
  56113. #: guix-git/doc/guix.texi:37038 guix-git/doc/guix.texi:37047
  56114. msgid "Extra options will be appended to cgitrc file."
  56115. msgstr ""
  56116. #. type: deftypevr
  56117. #: guix-git/doc/guix.texi:37045
  56118. #, no-wrap
  56119. msgid "{@code{cgit-configuration} parameter} list extra-options"
  56120. msgstr ""
  56121. #. type: Plain text
  56122. #: guix-git/doc/guix.texi:37059
  56123. 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."
  56124. msgstr ""
  56125. #. type: Plain text
  56126. #: guix-git/doc/guix.texi:37061
  56127. msgid "Available @code{opaque-cgit-configuration} fields are:"
  56128. msgstr ""
  56129. #. type: deftypevr
  56130. #: guix-git/doc/guix.texi:37062
  56131. #, no-wrap
  56132. msgid "{@code{opaque-cgit-configuration} parameter} package cgit"
  56133. msgstr ""
  56134. #. type: deftypevr
  56135. #: guix-git/doc/guix.texi:37064
  56136. msgid "The cgit package."
  56137. msgstr ""
  56138. #. type: deftypevr
  56139. #: guix-git/doc/guix.texi:37066
  56140. #, no-wrap
  56141. msgid "{@code{opaque-cgit-configuration} parameter} string string"
  56142. msgstr ""
  56143. #. type: deftypevr
  56144. #: guix-git/doc/guix.texi:37068
  56145. msgid "The contents of the @code{cgitrc}, as a string."
  56146. msgstr ""
  56147. #. type: Plain text
  56148. #: guix-git/doc/guix.texi:37072
  56149. msgid "For example, if your @code{cgitrc} is just the empty string, you could instantiate a cgit service like this:"
  56150. msgstr ""
  56151. #. type: lisp
  56152. #: guix-git/doc/guix.texi:37077
  56153. #, no-wrap
  56154. msgid ""
  56155. "(service cgit-service-type\n"
  56156. " (opaque-cgit-configuration\n"
  56157. " (cgitrc \"\")))\n"
  56158. msgstr ""
  56159. #. type: subsubheading
  56160. #: guix-git/doc/guix.texi:37079
  56161. #, no-wrap
  56162. msgid "Gitolite Service"
  56163. msgstr ""
  56164. #. type: cindex
  56165. #: guix-git/doc/guix.texi:37081
  56166. #, no-wrap
  56167. msgid "Gitolite service"
  56168. msgstr ""
  56169. #. type: cindex
  56170. #: guix-git/doc/guix.texi:37082
  56171. #, no-wrap
  56172. msgid "Git, hosting"
  56173. msgstr ""
  56174. #. type: Plain text
  56175. #: guix-git/doc/guix.texi:37085
  56176. msgid "@uref{https://gitolite.com/gitolite/, Gitolite} is a tool for hosting Git repositories on a central server."
  56177. msgstr ""
  56178. #. type: Plain text
  56179. #: guix-git/doc/guix.texi:37088
  56180. msgid "Gitolite can handle multiple repositories and users, and supports flexible configuration of the permissions for the users on the repositories."
  56181. msgstr ""
  56182. #. type: Plain text
  56183. #: guix-git/doc/guix.texi:37091
  56184. msgid "The following example will configure Gitolite using the default @code{git} user, and the provided SSH public key."
  56185. msgstr ""
  56186. #. type: lisp
  56187. #: guix-git/doc/guix.texi:37098
  56188. #, no-wrap
  56189. msgid ""
  56190. "(service gitolite-service-type\n"
  56191. " (gitolite-configuration\n"
  56192. " (admin-pubkey (plain-file\n"
  56193. " \"yourname.pub\"\n"
  56194. " \"ssh-rsa AAAA... guix@@example.com\"))))\n"
  56195. msgstr ""
  56196. #. type: Plain text
  56197. #: guix-git/doc/guix.texi:37103
  56198. 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."
  56199. msgstr ""
  56200. #. type: example
  56201. #: guix-git/doc/guix.texi:37106
  56202. #, no-wrap
  56203. msgid "git clone git@@example.com:gitolite-admin\n"
  56204. msgstr ""
  56205. #. type: Plain text
  56206. #: guix-git/doc/guix.texi:37112
  56207. 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''."
  56208. msgstr ""
  56209. #. type: deftp
  56210. #: guix-git/doc/guix.texi:37113
  56211. #, no-wrap
  56212. msgid "{Data Type} gitolite-configuration"
  56213. msgstr ""
  56214. #. type: deftp
  56215. #: guix-git/doc/guix.texi:37115
  56216. msgid "Data type representing the configuration for @code{gitolite-service-type}."
  56217. msgstr ""
  56218. #. type: item
  56219. #: guix-git/doc/guix.texi:37117
  56220. #, no-wrap
  56221. msgid "@code{package} (default: @var{gitolite})"
  56222. msgstr ""
  56223. #. type: table
  56224. #: guix-git/doc/guix.texi:37123
  56225. msgid "Gitolite package to use. There are optional Gitolite dependencies that are not included in the default package, such as Redis and git-annex. These features can be made available by using the @code{make-gitolite} procedure in the @code{(gnu packages version-control}) module to produce a variant of Gitolite with the desired additional dependencies."
  56226. msgstr ""
  56227. #. type: table
  56228. #: guix-git/doc/guix.texi:37126
  56229. msgid "The following code returns a package in which the Redis and git-annex programs can be invoked by Gitolite's scripts:"
  56230. msgstr ""
  56231. #. type: example
  56232. #: guix-git/doc/guix.texi:37132
  56233. #, no-wrap
  56234. msgid ""
  56235. "(use-modules (gnu packages databases)\n"
  56236. " (gnu packages haskell-apps)\n"
  56237. " (gnu packages version-control))\n"
  56238. "(make-gitolite (list redis git-annex))\n"
  56239. msgstr ""
  56240. #. type: item
  56241. #: guix-git/doc/guix.texi:37134
  56242. #, no-wrap
  56243. msgid "@code{user} (default: @var{git})"
  56244. msgstr ""
  56245. #. type: table
  56246. #: guix-git/doc/guix.texi:37137
  56247. msgid "User to use for Gitolite. This will be user that you use when accessing Gitolite over SSH."
  56248. msgstr ""
  56249. #. type: item
  56250. #: guix-git/doc/guix.texi:37138
  56251. #, no-wrap
  56252. msgid "@code{group} (default: @var{git})"
  56253. msgstr ""
  56254. #. type: table
  56255. #: guix-git/doc/guix.texi:37140
  56256. msgid "Group to use for Gitolite."
  56257. msgstr ""
  56258. #. type: item
  56259. #: guix-git/doc/guix.texi:37141
  56260. #, no-wrap
  56261. msgid "@code{home-directory} (default: @var{\"/var/lib/gitolite\"})"
  56262. msgstr ""
  56263. #. type: table
  56264. #: guix-git/doc/guix.texi:37143
  56265. msgid "Directory in which to store the Gitolite configuration and repositories."
  56266. msgstr ""
  56267. #. type: item
  56268. #: guix-git/doc/guix.texi:37144
  56269. #, no-wrap
  56270. msgid "@code{rc-file} (default: @var{(gitolite-rc-file)})"
  56271. msgstr ""
  56272. #. type: table
  56273. #: guix-git/doc/guix.texi:37147
  56274. msgid "A ``file-like'' object (@pxref{G-Expressions, file-like objects}), representing the configuration for Gitolite."
  56275. msgstr ""
  56276. #. type: item
  56277. #: guix-git/doc/guix.texi:37148
  56278. #, no-wrap
  56279. msgid "@code{admin-pubkey} (default: @var{#f})"
  56280. msgstr ""
  56281. #. type: table
  56282. #: guix-git/doc/guix.texi:37152
  56283. 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."
  56284. msgstr ""
  56285. #. type: table
  56286. #: guix-git/doc/guix.texi:37154
  56287. msgid "To specify the SSH key as a string, use the @code{plain-file} function."
  56288. msgstr ""
  56289. #. type: lisp
  56290. #: guix-git/doc/guix.texi:37157
  56291. #, no-wrap
  56292. msgid "(plain-file \"yourname.pub\" \"ssh-rsa AAAA... guix@@example.com\")\n"
  56293. msgstr ""
  56294. #. type: deftp
  56295. #: guix-git/doc/guix.texi:37162
  56296. #, no-wrap
  56297. msgid "{Data Type} gitolite-rc-file"
  56298. msgstr ""
  56299. #. type: deftp
  56300. #: guix-git/doc/guix.texi:37164
  56301. msgid "Data type representing the Gitolite RC file."
  56302. msgstr ""
  56303. #. type: item
  56304. #: guix-git/doc/guix.texi:37166
  56305. #, no-wrap
  56306. msgid "@code{umask} (default: @code{#o0077})"
  56307. msgstr ""
  56308. #. type: table
  56309. #: guix-git/doc/guix.texi:37169
  56310. msgid "This controls the permissions Gitolite sets on the repositories and their contents."
  56311. msgstr ""
  56312. #. type: table
  56313. #: guix-git/doc/guix.texi:37173
  56314. 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."
  56315. msgstr ""
  56316. #. type: item
  56317. #: guix-git/doc/guix.texi:37174
  56318. #, fuzzy, no-wrap
  56319. msgid "@code{local-code} (default: @code{\"$rc@{GL_ADMIN_BASE@}/local\"})"
  56320. msgstr "@code{gnome}(默认值:@code{gnome})"
  56321. #. type: table
  56322. #: guix-git/doc/guix.texi:37177
  56323. msgid "Allows you to add your own non-core programs, or even override the shipped ones with your own."
  56324. msgstr ""
  56325. #. type: table
  56326. #: guix-git/doc/guix.texi:37182
  56327. msgid "Please supply the FULL path to this variable. By default, directory called \"local\" in your gitolite clone is used, providing the benefits of versioning them as well as making changes to them without having to log on to the server."
  56328. msgstr ""
  56329. #. type: item
  56330. #: guix-git/doc/guix.texi:37183
  56331. #, fuzzy, no-wrap
  56332. msgid "@code{unsafe-pattern} (default: @code{#f})"
  56333. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  56334. #. type: table
  56335. #: guix-git/doc/guix.texi:37188
  56336. 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."
  56337. msgstr ""
  56338. #. type: table
  56339. #: guix-git/doc/guix.texi:37195
  56340. 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."
  56341. msgstr ""
  56342. #. type: item
  56343. #: guix-git/doc/guix.texi:37196
  56344. #, no-wrap
  56345. msgid "@code{git-config-keys} (default: @code{\"\"})"
  56346. msgstr ""
  56347. #. type: table
  56348. #: guix-git/doc/guix.texi:37199
  56349. msgid "Gitolite allows you to set git config values using the @samp{config} keyword. This setting allows control over the config keys to accept."
  56350. msgstr ""
  56351. #. type: item
  56352. #: guix-git/doc/guix.texi:37200
  56353. #, no-wrap
  56354. msgid "@code{roles} (default: @code{'((\"READERS\" . 1) (\"WRITERS\" . ))})"
  56355. msgstr ""
  56356. #. type: table
  56357. #: guix-git/doc/guix.texi:37202
  56358. msgid "Set the role names allowed to be used by users running the perms command."
  56359. msgstr ""
  56360. #. type: item
  56361. #: guix-git/doc/guix.texi:37203
  56362. #, no-wrap
  56363. msgid "@code{enable} (default: @code{'(\"help\" \"desc\" \"info\" \"perms\" \"writable\" \"ssh-authkeys\" \"git-config\" \"daemon\" \"gitweb\")})"
  56364. msgstr ""
  56365. #. type: table
  56366. #: guix-git/doc/guix.texi:37205
  56367. msgid "This setting controls the commands and features to enable within Gitolite."
  56368. msgstr ""
  56369. #. type: subsubheading
  56370. #: guix-git/doc/guix.texi:37210
  56371. #, fuzzy, no-wrap
  56372. msgid "Gitile Service"
  56373. msgstr "邮件服务"
  56374. #. type: cindex
  56375. #: guix-git/doc/guix.texi:37212
  56376. #, fuzzy, no-wrap
  56377. msgid "Gitile service"
  56378. msgstr "邮件服务"
  56379. #. type: cindex
  56380. #: guix-git/doc/guix.texi:37213
  56381. #, no-wrap
  56382. msgid "Git, forge"
  56383. msgstr ""
  56384. #. type: Plain text
  56385. #: guix-git/doc/guix.texi:37216
  56386. msgid "@uref{https://git.lepiller.eu/gitile, Gitile} is a Git forge for viewing public git repository contents from a web browser."
  56387. msgstr ""
  56388. #. type: Plain text
  56389. #: guix-git/doc/guix.texi:37222
  56390. 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})."
  56391. msgstr ""
  56392. #. type: Plain text
  56393. #: guix-git/doc/guix.texi:37226
  56394. 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."
  56395. msgstr ""
  56396. #. type: lisp
  56397. #: guix-git/doc/guix.texi:37249
  56398. #, no-wrap
  56399. msgid ""
  56400. "(service gitile-service-type\n"
  56401. " (gitile-configuration\n"
  56402. " (repositories \"/srv/git\")\n"
  56403. " (base-git-url \"https://myweb.site/git\")\n"
  56404. " (index-title \"My git repositories\")\n"
  56405. " (intro '((p \"This is all my public work!\")))\n"
  56406. " (footer '((p \"This is the end\")))\n"
  56407. " (nginx-server-block\n"
  56408. " (nginx-server-configuration\n"
  56409. " (ssl-certificate\n"
  56410. " \"/etc/letsencrypt/live/myweb.site/fullchain.pem\")\n"
  56411. " (ssl-certificate-key\n"
  56412. " \"/etc/letsencrypt/live/myweb.site/privkey.pem\")\n"
  56413. " (listen '(\"443 ssl http2\" \"[::]:443 ssl http2\"))\n"
  56414. " (locations\n"
  56415. " (list\n"
  56416. " ;; Allow for https anonymous fetch on /git/ urls.\n"
  56417. " (git-http-nginx-location-configuration\n"
  56418. " (git-http-configuration\n"
  56419. " (uri-path \"/git/\")\n"
  56420. " (git-root \"/var/lib/gitolite/repositories\")))))))))\n"
  56421. msgstr ""
  56422. #. type: Plain text
  56423. #: guix-git/doc/guix.texi:37258
  56424. 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:"
  56425. msgstr ""
  56426. #. type: example
  56427. #: guix-git/doc/guix.texi:37262
  56428. #, no-wrap
  56429. msgid ""
  56430. "repo foo\n"
  56431. " R = daemon\n"
  56432. msgstr ""
  56433. #. type: Plain text
  56434. #: guix-git/doc/guix.texi:37268
  56435. 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}:"
  56436. msgstr ""
  56437. #. type: example
  56438. #: guix-git/doc/guix.texi:37275
  56439. #, no-wrap
  56440. msgid ""
  56441. "repo foo\n"
  56442. " R = daemon\n"
  56443. " desc = A long description, optionally with <i>HTML</i>, shown on the index page\n"
  56444. " config gitweb.name = The Foo Project\n"
  56445. " config gitweb.synopsis = A short description, shown on the main page of the project\n"
  56446. msgstr ""
  56447. #. type: Plain text
  56448. #: guix-git/doc/guix.texi:37281
  56449. 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:"
  56450. msgstr ""
  56451. #. type: lisp
  56452. #: guix-git/doc/guix.texi:37293
  56453. #, no-wrap
  56454. msgid ""
  56455. "(service gitolite-service-type\n"
  56456. " (gitolite-configuration\n"
  56457. " (admin-pubkey (local-file \"key.pub\"))\n"
  56458. " (rc-file\n"
  56459. " (gitolite-rc-file\n"
  56460. " (umask #o0027)\n"
  56461. " ;; Allow to set any configuration key\n"
  56462. " (git-config-keys \".*\")\n"
  56463. " ;; Allow any text as a valid configuration value\n"
  56464. " (unsafe-patt \"^$\")))))\n"
  56465. msgstr ""
  56466. #. type: deftp
  56467. #: guix-git/doc/guix.texi:37295
  56468. #, fuzzy, no-wrap
  56469. msgid "{Data Type} gitile-configuration"
  56470. msgstr "管理操作系统配置。"
  56471. #. type: deftp
  56472. #: guix-git/doc/guix.texi:37297
  56473. #, fuzzy
  56474. msgid "Data type representing the configuration for @code{gitile-service-type}."
  56475. msgstr "管理操作系统配置。"
  56476. #. type: item
  56477. #: guix-git/doc/guix.texi:37299
  56478. #, fuzzy, no-wrap
  56479. msgid "@code{package} (default: @var{gitile})"
  56480. msgstr "@code{mate}(默认值:@code{mate})"
  56481. #. type: table
  56482. #: guix-git/doc/guix.texi:37301
  56483. #, fuzzy
  56484. msgid "Gitile package to use."
  56485. msgstr "软件包数据类型。"
  56486. #. type: table
  56487. #: guix-git/doc/guix.texi:37304
  56488. msgid "The host on which gitile is listening."
  56489. msgstr ""
  56490. #. type: item
  56491. #: guix-git/doc/guix.texi:37305
  56492. #, fuzzy, no-wrap
  56493. msgid "@code{port} (default: @code{8080})"
  56494. msgstr "@code{port}(默认值:@code{22})"
  56495. #. type: table
  56496. #: guix-git/doc/guix.texi:37307
  56497. msgid "The port on which gitile is listening."
  56498. msgstr ""
  56499. #. type: item
  56500. #: guix-git/doc/guix.texi:37308
  56501. #, fuzzy, no-wrap
  56502. msgid "@code{database} (default: @code{\"/var/lib/gitile/gitile-db.sql\"})"
  56503. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  56504. #. type: table
  56505. #: guix-git/doc/guix.texi:37310
  56506. #, fuzzy
  56507. msgid "The location of the database."
  56508. msgstr "远程机器的主机名。"
  56509. #. type: item
  56510. #: guix-git/doc/guix.texi:37311
  56511. #, fuzzy, no-wrap
  56512. msgid "@code{repositories} (default: @code{\"/var/lib/gitolite/repositories\"})"
  56513. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  56514. #. type: table
  56515. #: guix-git/doc/guix.texi:37315
  56516. 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."
  56517. msgstr ""
  56518. #. type: code{#1}
  56519. #: guix-git/doc/guix.texi:37316
  56520. #, no-wrap
  56521. msgid "base-git-url"
  56522. msgstr ""
  56523. #. type: table
  56524. #: guix-git/doc/guix.texi:37318
  56525. msgid "The base git url that will be used to show clone commands."
  56526. msgstr ""
  56527. #. type: item
  56528. #: guix-git/doc/guix.texi:37319
  56529. #, fuzzy, no-wrap
  56530. msgid "@code{index-title} (default: @code{\"Index\"})"
  56531. msgstr "@code{mate}(默认值:@code{mate})"
  56532. #. type: table
  56533. #: guix-git/doc/guix.texi:37321
  56534. msgid "The page title for the index page that lists all the available repositories."
  56535. msgstr ""
  56536. #. type: item
  56537. #: guix-git/doc/guix.texi:37322
  56538. #, fuzzy, no-wrap
  56539. msgid "@code{intro} (default: @code{'()})"
  56540. msgstr "@code{features} (@code{'()})"
  56541. #. type: table
  56542. #: guix-git/doc/guix.texi:37325
  56543. msgid "The intro content, as a list of sxml expressions. This is shown above the list of repositories, on the index page."
  56544. msgstr ""
  56545. #. type: item
  56546. #: guix-git/doc/guix.texi:37326
  56547. #, fuzzy, no-wrap
  56548. msgid "@code{footer} (default: @code{'()})"
  56549. msgstr "@code{features} (@code{'()})"
  56550. #. type: table
  56551. #: guix-git/doc/guix.texi:37329
  56552. msgid "The footer content, as a list of sxml expressions. This is shown on every page served by Gitile."
  56553. msgstr ""
  56554. #. type: code{#1}
  56555. #: guix-git/doc/guix.texi:37330
  56556. #, no-wrap
  56557. msgid "nginx-server-block"
  56558. msgstr ""
  56559. #. type: table
  56560. #: guix-git/doc/guix.texi:37333
  56561. 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."
  56562. msgstr ""
  56563. #. type: table
  56564. #: guix-git/doc/guix.texi:37337
  56565. 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."
  56566. msgstr ""
  56567. #. type: subsubheading
  56568. #: guix-git/doc/guix.texi:37344
  56569. #, fuzzy, no-wrap
  56570. #| msgid "Sound Services"
  56571. msgid "Joycond service"
  56572. msgstr "声音服务"
  56573. #. type: cindex
  56574. #: guix-git/doc/guix.texi:37345
  56575. #, no-wrap
  56576. msgid "joycond"
  56577. msgstr ""
  56578. #. type: Plain text
  56579. #: guix-git/doc/guix.texi:37349
  56580. msgid "The joycond service allows the pairing of Nintendo joycon game controllers over Bluetooth. (@pxref{Desktop Services} for setting up Bluetooth.)"
  56581. msgstr ""
  56582. #. type: deftp
  56583. #: guix-git/doc/guix.texi:37350
  56584. #, fuzzy, no-wrap
  56585. msgid "{Data Type} joycond-configuration"
  56586. msgstr "系统配置"
  56587. #. type: deftp
  56588. #: guix-git/doc/guix.texi:37352
  56589. #, fuzzy
  56590. msgid "Data type representing the configuration of @command{joycond}."
  56591. msgstr "管理操作系统配置。"
  56592. #. type: item
  56593. #: guix-git/doc/guix.texi:37354
  56594. #, fuzzy, no-wrap
  56595. msgid "@code{package} (default: @code{joycond})"
  56596. msgstr "@code{mate}(默认值:@code{mate})"
  56597. #. type: table
  56598. #: guix-git/doc/guix.texi:37356
  56599. #, fuzzy
  56600. msgid "The joycond package to use."
  56601. msgstr "软件包数据类型。"
  56602. #. type: defvar
  56603. #: guix-git/doc/guix.texi:37359
  56604. #, fuzzy, no-wrap
  56605. msgid "joycond-service-type"
  56606. msgstr "邮件服务"
  56607. #. type: defvar
  56608. #: guix-git/doc/guix.texi:37361
  56609. #, fuzzy
  56610. #| msgid "Service Types and Services"
  56611. msgid "Service type for the joycond service."
  56612. msgstr "服务类型和服务"
  56613. #. type: subsubheading
  56614. #: guix-git/doc/guix.texi:37363
  56615. #, no-wrap
  56616. msgid "The Battle for Wesnoth Service"
  56617. msgstr ""
  56618. #. type: cindex
  56619. #: guix-git/doc/guix.texi:37364
  56620. #, no-wrap
  56621. msgid "wesnothd"
  56622. msgstr ""
  56623. #. type: Plain text
  56624. #: guix-git/doc/guix.texi:37368
  56625. 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)."
  56626. msgstr ""
  56627. #. type: defvar
  56628. #: guix-git/doc/guix.texi:37369
  56629. #, fuzzy, no-wrap
  56630. msgid "wesnothd-service-type"
  56631. msgstr "邮件服务"
  56632. #. type: defvar
  56633. #: guix-git/doc/guix.texi:37373
  56634. 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:"
  56635. msgstr ""
  56636. #. type: lisp
  56637. #: guix-git/doc/guix.texi:37376
  56638. #, no-wrap
  56639. msgid "(service wesnothd-service-type)\n"
  56640. msgstr ""
  56641. #. type: deftp
  56642. #: guix-git/doc/guix.texi:37379
  56643. #, no-wrap
  56644. msgid "{Data Type} wesnothd-configuration"
  56645. msgstr ""
  56646. #. type: deftp
  56647. #: guix-git/doc/guix.texi:37381
  56648. msgid "Data type representing the configuration of @command{wesnothd}."
  56649. msgstr ""
  56650. #. type: item
  56651. #: guix-git/doc/guix.texi:37383
  56652. #, no-wrap
  56653. msgid "@code{package} (default: @code{wesnoth-server})"
  56654. msgstr ""
  56655. #. type: table
  56656. #: guix-git/doc/guix.texi:37385
  56657. msgid "The wesnoth server package to use."
  56658. msgstr ""
  56659. #. type: item
  56660. #: guix-git/doc/guix.texi:37386
  56661. #, no-wrap
  56662. msgid "@code{port} (default: @code{15000})"
  56663. msgstr ""
  56664. #. type: table
  56665. #: guix-git/doc/guix.texi:37388 guix-git/doc/guix.texi:37799
  56666. msgid "The port to bind the server to."
  56667. msgstr ""
  56668. #. type: cindex
  56669. #: guix-git/doc/guix.texi:37394
  56670. #, no-wrap
  56671. msgid "pam-mount"
  56672. msgstr ""
  56673. #. type: Plain text
  56674. #: guix-git/doc/guix.texi:37399
  56675. 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."
  56676. msgstr ""
  56677. #. type: defvar
  56678. #: guix-git/doc/guix.texi:37400
  56679. #, fuzzy, no-wrap
  56680. msgid "pam-mount-service-type"
  56681. msgstr "邮件服务"
  56682. #. type: defvar
  56683. #: guix-git/doc/guix.texi:37402
  56684. msgid "Service type for PAM Mount support."
  56685. msgstr ""
  56686. #. type: deftp
  56687. #: guix-git/doc/guix.texi:37404
  56688. #, no-wrap
  56689. msgid "{Data Type} pam-mount-configuration"
  56690. msgstr ""
  56691. #. type: deftp
  56692. #: guix-git/doc/guix.texi:37406
  56693. #, fuzzy
  56694. msgid "Data type representing the configuration of PAM Mount."
  56695. msgstr "管理操作系统配置。"
  56696. #. type: code{#1}
  56697. #: guix-git/doc/guix.texi:37410
  56698. #, fuzzy, no-wrap
  56699. msgid "rules"
  56700. msgstr "模块"
  56701. #. type: table
  56702. #: guix-git/doc/guix.texi:37413
  56703. msgid "The configuration rules that will be used to generate @file{/etc/security/pam_mount.conf.xml}."
  56704. msgstr ""
  56705. #. type: table
  56706. #: guix-git/doc/guix.texi:37417
  56707. 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:"
  56708. msgstr ""
  56709. #. type: lisp
  56710. #: guix-git/doc/guix.texi:37432
  56711. #, no-wrap
  56712. msgid ""
  56713. "`((debug (@@ (enable \"0\")))\n"
  56714. " (mntoptions (@@ (allow ,(string-join\n"
  56715. " '(\"nosuid\" \"nodev\" \"loop\"\n"
  56716. " \"encryption\" \"fsck\" \"nonempty\"\n"
  56717. " \"allow_root\" \"allow_other\")\n"
  56718. " \",\"))))\n"
  56719. " (mntoptions (@@ (require \"nosuid,nodev\")))\n"
  56720. " (logout (@@ (wait \"0\")\n"
  56721. " (hup \"0\")\n"
  56722. " (term \"no\")\n"
  56723. " (kill \"no\")))\n"
  56724. " (mkmountpoint (@@ (enable \"1\")\n"
  56725. " (remove \"true\"))))\n"
  56726. msgstr ""
  56727. #. type: table
  56728. #: guix-git/doc/guix.texi:37438
  56729. 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:"
  56730. msgstr ""
  56731. #. type: lisp
  56732. #: guix-git/doc/guix.texi:37463
  56733. #, no-wrap
  56734. msgid ""
  56735. "(define pam-mount-rules\n"
  56736. "`((debug (@@ (enable \"0\")))\n"
  56737. " (volume (@@ (user \"alice\")\n"
  56738. " (fstype \"crypt\")\n"
  56739. " (path \"/dev/sda2\")\n"
  56740. " (mountpoint \"/home/alice\")))\n"
  56741. " (volume (@@ (user \"bob\")\n"
  56742. " (fstype \"auto\")\n"
  56743. " (path \"/dev/sdb3\")\n"
  56744. " (mountpoint \"/home/bob/data\")\n"
  56745. " (options \"defaults,autodefrag,compress\")))\n"
  56746. " (mntoptions (@@ (allow ,(string-join\n"
  56747. " '(\"nosuid\" \"nodev\" \"loop\"\n"
  56748. " \"encryption\" \"fsck\" \"nonempty\"\n"
  56749. " \"allow_root\" \"allow_other\")\n"
  56750. " \",\"))))\n"
  56751. " (mntoptions (@@ (require \"nosuid,nodev\")))\n"
  56752. " (logout (@@ (wait \"0\")\n"
  56753. " (hup \"0\")\n"
  56754. " (term \"no\")\n"
  56755. " (kill \"no\")))\n"
  56756. " (mkmountpoint (@@ (enable \"1\")\n"
  56757. " (remove \"true\")))))\n"
  56758. "\n"
  56759. msgstr ""
  56760. #. type: lisp
  56761. #: guix-git/doc/guix.texi:37467
  56762. #, no-wrap
  56763. msgid ""
  56764. "(service pam-mount-service-type\n"
  56765. " (pam-mount-configuration\n"
  56766. " (rules pam-mount-rules)))\n"
  56767. msgstr ""
  56768. #. type: table
  56769. #: guix-git/doc/guix.texi:37471
  56770. 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}."
  56771. msgstr ""
  56772. #. type: subsubheading
  56773. #: guix-git/doc/guix.texi:37478
  56774. #, no-wrap
  56775. msgid "Guix Build Coordinator"
  56776. msgstr ""
  56777. #. type: Plain text
  56778. #: guix-git/doc/guix.texi:37484
  56779. 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."
  56780. msgstr ""
  56781. #. type: Plain text
  56782. #: guix-git/doc/guix.texi:37490
  56783. 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."
  56784. msgstr ""
  56785. #. type: Plain text
  56786. #: guix-git/doc/guix.texi:37494
  56787. 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."
  56788. msgstr ""
  56789. #. type: defvar
  56790. #: guix-git/doc/guix.texi:37495
  56791. #, fuzzy, no-wrap
  56792. msgid "guix-build-coordinator-service-type"
  56793. msgstr "邮件服务"
  56794. #. type: defvar
  56795. #: guix-git/doc/guix.texi:37498
  56796. msgid "Service type for the Guix Build Coordinator. Its value must be a @code{guix-build-coordinator-configuration} object."
  56797. msgstr ""
  56798. #. type: deftp
  56799. #: guix-git/doc/guix.texi:37500
  56800. #, fuzzy, no-wrap
  56801. msgid "{Data Type} guix-build-coordinator-configuration"
  56802. msgstr "{数据类型} build-machine"
  56803. #. type: deftp
  56804. #: guix-git/doc/guix.texi:37502
  56805. msgid "Data type representing the configuration of the Guix Build Coordinator."
  56806. msgstr ""
  56807. #. type: item
  56808. #: guix-git/doc/guix.texi:37504 guix-git/doc/guix.texi:37688
  56809. #, fuzzy, no-wrap
  56810. msgid "@code{package} (default: @code{guix-build-coordinator})"
  56811. msgstr "@code{gnome}(默认值:@code{gnome})"
  56812. #. type: table
  56813. #: guix-git/doc/guix.texi:37506 guix-git/doc/guix.texi:37558
  56814. #: guix-git/doc/guix.texi:37690
  56815. msgid "The Guix Build Coordinator package to use."
  56816. msgstr ""
  56817. #. type: item
  56818. #: guix-git/doc/guix.texi:37507
  56819. #, fuzzy, no-wrap
  56820. msgid "@code{user} (default: @code{\"guix-build-coordinator\"})"
  56821. msgstr "@code{gnome}(默认值:@code{gnome})"
  56822. #. type: table
  56823. #: guix-git/doc/guix.texi:37509 guix-git/doc/guix.texi:37561
  56824. #: guix-git/doc/guix.texi:37693 guix-git/doc/guix.texi:37745
  56825. #: guix-git/doc/guix.texi:37793
  56826. #, fuzzy
  56827. msgid "The system user to run the service as."
  56828. msgstr "mcron服务。"
  56829. #. type: item
  56830. #: guix-git/doc/guix.texi:37510
  56831. #, fuzzy, no-wrap
  56832. msgid "@code{group} (default: @code{\"guix-build-coordinator\"})"
  56833. msgstr "@code{gnome}(默认值:@code{gnome})"
  56834. #. type: table
  56835. #: guix-git/doc/guix.texi:37512 guix-git/doc/guix.texi:37748
  56836. #: guix-git/doc/guix.texi:37796
  56837. msgid "The system group to run the service as."
  56838. msgstr ""
  56839. #. type: item
  56840. #: guix-git/doc/guix.texi:37513
  56841. #, no-wrap
  56842. msgid "@code{database-uri-string} (default: @code{\"sqlite:///var/lib/guix-build-coordinator/guix_build_coordinator.db\"})"
  56843. msgstr ""
  56844. #. type: table
  56845. #: guix-git/doc/guix.texi:37515
  56846. msgid "The URI to use for the database."
  56847. msgstr ""
  56848. #. type: item
  56849. #: guix-git/doc/guix.texi:37516
  56850. #, fuzzy, no-wrap
  56851. msgid "@code{agent-communication-uri} (default: @code{\"http://0.0.0.0:8745\"})"
  56852. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  56853. #. type: table
  56854. #: guix-git/doc/guix.texi:37518
  56855. msgid "The URI describing how to listen to requests from agent processes."
  56856. msgstr ""
  56857. #. type: item
  56858. #: guix-git/doc/guix.texi:37519
  56859. #, fuzzy, no-wrap
  56860. msgid "@code{client-communication-uri} (default: @code{\"http://127.0.0.1:8746\"})"
  56861. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  56862. #. type: table
  56863. #: guix-git/doc/guix.texi:37523
  56864. 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."
  56865. msgstr ""
  56866. #. type: item
  56867. #: guix-git/doc/guix.texi:37524
  56868. #, no-wrap
  56869. msgid "@code{allocation-strategy} (default: @code{#~basic-build-allocation-strategy})"
  56870. msgstr ""
  56871. #. type: table
  56872. #: guix-git/doc/guix.texi:37528
  56873. 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."
  56874. msgstr ""
  56875. #. type: item
  56876. #: guix-git/doc/guix.texi:37529
  56877. #, fuzzy, no-wrap
  56878. msgid "@code{hooks} (default: @var{'()})"
  56879. msgstr "@code{features} (@code{'()})"
  56880. #. type: table
  56881. #: guix-git/doc/guix.texi:37532
  56882. msgid "An association list of hooks. These provide a way to execute arbitrary code upon certain events, like a build result being processed."
  56883. msgstr ""
  56884. #. type: item
  56885. #: guix-git/doc/guix.texi:37533
  56886. #, fuzzy, no-wrap
  56887. msgid "@code{parallel-hooks} (default: @var{'()})"
  56888. msgstr "@code{features} (@code{'()})"
  56889. #. type: table
  56890. #: guix-git/doc/guix.texi:37537
  56891. msgid "Hooks can be configured to run in parallel. This parameter is an association list of hooks to do in parallel, where the key is the symbol for the hook and the value is the number of threads to run."
  56892. msgstr ""
  56893. #. type: item
  56894. #: guix-git/doc/guix.texi:37538
  56895. #, fuzzy, no-wrap
  56896. msgid "@code{guile} (default: @code{guile-3.0-latest})"
  56897. msgstr "@code{mate}(默认值:@code{mate})"
  56898. #. type: table
  56899. #: guix-git/doc/guix.texi:37540
  56900. msgid "The Guile package with which to run the Guix Build Coordinator."
  56901. msgstr ""
  56902. #. type: item
  56903. #: guix-git/doc/guix.texi:37541
  56904. #, fuzzy, no-wrap
  56905. msgid "@code{extra-environment-variables} (default: @var{'()})"
  56906. msgstr "@code{features} (@code{'()})"
  56907. #. type: table
  56908. #: guix-git/doc/guix.texi:37543 guix-git/doc/guix.texi:37878
  56909. #, fuzzy
  56910. msgid "Extra environment variables to set via the shepherd service."
  56911. msgstr "构建环境"
  56912. #. type: defvar
  56913. #: guix-git/doc/guix.texi:37547
  56914. #, fuzzy, no-wrap
  56915. msgid "guix-build-coordinator-agent-service-type"
  56916. msgstr "{数据类型} build-machine"
  56917. #. type: defvar
  56918. #: guix-git/doc/guix.texi:37550
  56919. msgid "Service type for a Guix Build Coordinator agent. Its value must be a @code{guix-build-coordinator-agent-configuration} object."
  56920. msgstr ""
  56921. #. type: deftp
  56922. #: guix-git/doc/guix.texi:37552
  56923. #, no-wrap
  56924. msgid "{Data Type} guix-build-coordinator-agent-configuration"
  56925. msgstr ""
  56926. #. type: deftp
  56927. #: guix-git/doc/guix.texi:37554
  56928. msgid "Data type representing the configuration a Guix Build Coordinator agent."
  56929. msgstr ""
  56930. #. type: item
  56931. #: guix-git/doc/guix.texi:37556
  56932. #, fuzzy, no-wrap
  56933. msgid "@code{package} (default: @code{guix-build-coordinator/agent-only})"
  56934. msgstr "@code{gnome}(默认值:@code{gnome})"
  56935. #. type: item
  56936. #: guix-git/doc/guix.texi:37559
  56937. #, fuzzy, no-wrap
  56938. msgid "@code{user} (default: @code{\"guix-build-coordinator-agent\"})"
  56939. msgstr "@code{gnome}(默认值:@code{gnome})"
  56940. #. type: item
  56941. #: guix-git/doc/guix.texi:37562
  56942. #, fuzzy, no-wrap
  56943. msgid "@code{coordinator} (default: @code{\"http://localhost:8745\"})"
  56944. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  56945. #. type: table
  56946. #: guix-git/doc/guix.texi:37564 guix-git/doc/guix.texi:37696
  56947. msgid "The URI to use when connecting to the coordinator."
  56948. msgstr ""
  56949. #. type: code{#1}
  56950. #: guix-git/doc/guix.texi:37565
  56951. #, fuzzy, no-wrap
  56952. msgid "authentication"
  56953. msgstr "验证substitute"
  56954. #. type: table
  56955. #: guix-git/doc/guix.texi:37568
  56956. msgid "Record describing how this agent should authenticate with the coordinator. Possible record types are described below."
  56957. msgstr ""
  56958. #. type: item
  56959. #: guix-git/doc/guix.texi:37569 guix-git/doc/guix.texi:37697
  56960. #, fuzzy, no-wrap
  56961. msgid "@code{systems} (default: @code{#f})"
  56962. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  56963. #. type: table
  56964. #: guix-git/doc/guix.texi:37572
  56965. 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."
  56966. msgstr ""
  56967. #. type: item
  56968. #: guix-git/doc/guix.texi:37573
  56969. #, fuzzy, no-wrap
  56970. msgid "@code{max-parallel-builds} (default: @code{1})"
  56971. msgstr "@code{parallel-builds}(默认值:@code{1})"
  56972. #. type: table
  56973. #: guix-git/doc/guix.texi:37575
  56974. #, fuzzy
  56975. msgid "The number of builds to perform in parallel."
  56976. msgstr "那台机器上可以并行运行的构建任务数量。"
  56977. #. type: item
  56978. #: guix-git/doc/guix.texi:37576
  56979. #, fuzzy, no-wrap
  56980. msgid "@code{max-parallel-uploads} (default: @code{1})"
  56981. msgstr "@code{parallel-builds}(默认值:@code{1})"
  56982. #. type: table
  56983. #: guix-git/doc/guix.texi:37578
  56984. #, fuzzy
  56985. msgid "The number of uploads to perform in parallel."
  56986. msgstr "那台机器上可以并行运行的构建任务数量。"
  56987. #. type: item
  56988. #: guix-git/doc/guix.texi:37579
  56989. #, fuzzy, no-wrap
  56990. msgid "@code{max-allocated-builds} (default: @code{#f})"
  56991. msgstr "@code{parallel-builds}(默认值:@code{1})"
  56992. #. type: table
  56993. #: guix-git/doc/guix.texi:37581
  56994. #, fuzzy
  56995. msgid "The maximum number of builds this agent can be allocated."
  56996. msgstr "那台机器上可以并行运行的构建任务数量。"
  56997. #. type: item
  56998. #: guix-git/doc/guix.texi:37582
  56999. #, fuzzy, no-wrap
  57000. #| msgid "@code{max-journal-usage} (default: @code{#f})"
  57001. msgid "@code{max-1min-load-average} (default: @code{#f})"
  57002. msgstr "@code{max-journal-usage}(默认值:@code{#f})"
  57003. #. type: table
  57004. #: guix-git/doc/guix.texi:37586
  57005. 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."
  57006. msgstr ""
  57007. #. type: table
  57008. #: guix-git/doc/guix.texi:37590
  57009. 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."
  57010. msgstr ""
  57011. #. type: item
  57012. #: guix-git/doc/guix.texi:37591
  57013. #, fuzzy, no-wrap
  57014. msgid "@code{derivation-substitute-urls} (default: @code{#f})"
  57015. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  57016. #. type: table
  57017. #: guix-git/doc/guix.texi:37594
  57018. msgid "URLs from which to attempt to fetch substitutes for derivations, if the derivations aren't already available."
  57019. msgstr ""
  57020. #. type: item
  57021. #: guix-git/doc/guix.texi:37595
  57022. #, fuzzy, no-wrap
  57023. msgid "@code{non-derivation-substitute-urls} (default: @code{#f})"
  57024. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  57025. #. type: table
  57026. #: guix-git/doc/guix.texi:37598
  57027. msgid "URLs from which to attempt to fetch substitutes for build inputs, if the input store items aren't already available."
  57028. msgstr ""
  57029. #. type: deftp
  57030. #: guix-git/doc/guix.texi:37602
  57031. #, fuzzy, no-wrap
  57032. msgid "{Data Type} guix-build-coordinator-agent-password-auth"
  57033. msgstr "{数据类型} build-machine"
  57034. #. type: deftp
  57035. #: guix-git/doc/guix.texi:37605
  57036. msgid "Data type representing an agent authenticating with a coordinator via a UUID and password."
  57037. msgstr ""
  57038. #. type: table
  57039. #: guix-git/doc/guix.texi:37611 guix-git/doc/guix.texi:37627
  57040. 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."
  57041. msgstr ""
  57042. #. type: table
  57043. #: guix-git/doc/guix.texi:37614
  57044. msgid "The password to use when connecting to the coordinator."
  57045. msgstr ""
  57046. #. type: deftp
  57047. #: guix-git/doc/guix.texi:37618
  57048. #, fuzzy, no-wrap
  57049. msgid "{Data Type} guix-build-coordinator-agent-password-file-auth"
  57050. msgstr "{数据类型} build-machine"
  57051. #. type: deftp
  57052. #: guix-git/doc/guix.texi:37621
  57053. msgid "Data type representing an agent authenticating with a coordinator via a UUID and password read from a file."
  57054. msgstr ""
  57055. #. type: code{#1}
  57056. #: guix-git/doc/guix.texi:37628
  57057. #, no-wrap
  57058. msgid "password-file"
  57059. msgstr ""
  57060. #. type: table
  57061. #: guix-git/doc/guix.texi:37631
  57062. msgid "A file containing the password to use when connecting to the coordinator."
  57063. msgstr ""
  57064. #. type: deftp
  57065. #: guix-git/doc/guix.texi:37635
  57066. #, fuzzy, no-wrap
  57067. msgid "{Data Type} guix-build-coordinator-agent-dynamic-auth"
  57068. msgstr "{数据类型} build-machine"
  57069. #. type: deftp
  57070. #: guix-git/doc/guix.texi:37638
  57071. msgid "Data type representing an agent authenticating with a coordinator via a dynamic auth token and agent name."
  57072. msgstr ""
  57073. #. type: code{#1}
  57074. #: guix-git/doc/guix.texi:37640 guix-git/doc/guix.texi:37657
  57075. #, fuzzy, no-wrap
  57076. msgid "agent-name"
  57077. msgstr "通道"
  57078. #. type: table
  57079. #: guix-git/doc/guix.texi:37644 guix-git/doc/guix.texi:37661
  57080. 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."
  57081. msgstr ""
  57082. #. type: code{#1}
  57083. #: guix-git/doc/guix.texi:37645
  57084. #, no-wrap
  57085. msgid "token"
  57086. msgstr ""
  57087. #. type: table
  57088. #: guix-git/doc/guix.texi:37648
  57089. msgid "Dynamic auth token, this is created and stored in the coordinator database, and is used by the agent to authenticate."
  57090. msgstr ""
  57091. #. type: deftp
  57092. #: guix-git/doc/guix.texi:37652
  57093. #, fuzzy, no-wrap
  57094. msgid "{Data Type} guix-build-coordinator-agent-dynamic-auth-with-file"
  57095. msgstr "{数据类型} build-machine"
  57096. #. type: deftp
  57097. #: guix-git/doc/guix.texi:37655
  57098. msgid "Data type representing an agent authenticating with a coordinator via a dynamic auth token read from a file and agent name."
  57099. msgstr ""
  57100. #. type: code{#1}
  57101. #: guix-git/doc/guix.texi:37662
  57102. #, no-wrap
  57103. msgid "token-file"
  57104. msgstr ""
  57105. #. type: table
  57106. #: guix-git/doc/guix.texi:37665
  57107. msgid "File containing the dynamic auth token, this is created and stored in the coordinator database, and is used by the agent to authenticate."
  57108. msgstr ""
  57109. #. type: Plain text
  57110. #: guix-git/doc/guix.texi:37675
  57111. 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."
  57112. msgstr ""
  57113. #. type: defvar
  57114. #: guix-git/doc/guix.texi:37676
  57115. #, fuzzy, no-wrap
  57116. msgid "guix-build-coordinator-queue-builds-service-type"
  57117. msgstr "@code{gnome}(默认值:@code{gnome})"
  57118. #. type: defvar
  57119. #: guix-git/doc/guix.texi:37681
  57120. 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."
  57121. msgstr ""
  57122. #. type: deftp
  57123. #: guix-git/doc/guix.texi:37683
  57124. #, no-wrap
  57125. msgid "{Data Type} guix-build-coordinator-queue-builds-configuration"
  57126. msgstr ""
  57127. #. type: deftp
  57128. #: guix-git/doc/guix.texi:37686
  57129. msgid "Data type representing the options to the queue builds from guix data service script."
  57130. msgstr ""
  57131. #. type: item
  57132. #: guix-git/doc/guix.texi:37691
  57133. #, fuzzy, no-wrap
  57134. msgid "@code{user} (default: @code{\"guix-build-coordinator-queue-builds\"})"
  57135. msgstr "@code{gnome}(默认值:@code{gnome})"
  57136. #. type: item
  57137. #: guix-git/doc/guix.texi:37694
  57138. #, fuzzy, no-wrap
  57139. msgid "@code{coordinator} (default: @code{\"http://localhost:8746\"})"
  57140. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  57141. #. type: table
  57142. #: guix-git/doc/guix.texi:37699
  57143. msgid "The systems for which to fetch derivations to build."
  57144. msgstr ""
  57145. #. type: item
  57146. #: guix-git/doc/guix.texi:37700
  57147. #, fuzzy, no-wrap
  57148. msgid "@code{systems-and-targets} (default: @code{#f})"
  57149. msgstr "@code{challenge}(默认值:@code{#f})"
  57150. #. type: table
  57151. #: guix-git/doc/guix.texi:37703
  57152. msgid "An association list of system and target pairs for which to fetch derivations to build."
  57153. msgstr ""
  57154. #. type: item
  57155. #: guix-git/doc/guix.texi:37704
  57156. #, no-wrap
  57157. msgid "@code{guix-data-service} (default: @code{\"https://data.guix.gnu.org\"})"
  57158. msgstr ""
  57159. #. type: table
  57160. #: guix-git/doc/guix.texi:37707
  57161. msgid "The Guix Data Service instance from which to query to find out about derivations to build."
  57162. msgstr ""
  57163. #. type: item
  57164. #: guix-git/doc/guix.texi:37708
  57165. #, fuzzy, no-wrap
  57166. msgid "@code{guix-data-service-build-server-id} (default: @code{#f})"
  57167. msgstr "@code{speed}(默认值:@code{1.0})"
  57168. #. type: table
  57169. #: guix-git/doc/guix.texi:37713
  57170. msgid "The Guix Data Service build server ID corresponding to the builds being submitted. Providing this speeds up the submitting of builds as derivations that have already been submitted can be skipped before asking the coordinator to build them."
  57171. msgstr ""
  57172. #. type: item
  57173. #: guix-git/doc/guix.texi:37714
  57174. #, no-wrap
  57175. msgid "@code{processed-commits-file} (default: @code{\"/var/cache/guix-build-coordinator-queue-builds/processed-commits\"})"
  57176. msgstr ""
  57177. #. type: table
  57178. #: guix-git/doc/guix.texi:37717
  57179. msgid "A file to record which commits have been processed, to avoid needlessly processing them again if the service is restarted."
  57180. msgstr ""
  57181. #. type: subsubheading
  57182. #: guix-git/doc/guix.texi:37721
  57183. #, fuzzy, no-wrap
  57184. msgid "Guix Data Service"
  57185. msgstr "数据库服务"
  57186. #. type: Plain text
  57187. #: guix-git/doc/guix.texi:37725
  57188. 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."
  57189. msgstr ""
  57190. #. type: Plain text
  57191. #: guix-git/doc/guix.texi:37728
  57192. msgid "The data is stored in a PostgreSQL database, and available through a web interface."
  57193. msgstr ""
  57194. #. type: defvar
  57195. #: guix-git/doc/guix.texi:37729
  57196. #, fuzzy, no-wrap
  57197. msgid "guix-data-service-type"
  57198. msgstr "邮件服务"
  57199. #. type: defvar
  57200. #: guix-git/doc/guix.texi:37734
  57201. 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."
  57202. msgstr ""
  57203. #. type: deftp
  57204. #: guix-git/doc/guix.texi:37736
  57205. #, no-wrap
  57206. msgid "{Data Type} guix-data-service-configuration"
  57207. msgstr ""
  57208. #. type: deftp
  57209. #: guix-git/doc/guix.texi:37738 guix-git/doc/guix.texi:37786
  57210. msgid "Data type representing the configuration of the Guix Data Service."
  57211. msgstr ""
  57212. #. type: item
  57213. #: guix-git/doc/guix.texi:37740
  57214. #, fuzzy, no-wrap
  57215. msgid "@code{package} (default: @code{guix-data-service})"
  57216. msgstr "@code{xfce}(默认值:@code{xfce})"
  57217. #. type: table
  57218. #: guix-git/doc/guix.texi:37742
  57219. msgid "The Guix Data Service package to use."
  57220. msgstr ""
  57221. #. type: item
  57222. #: guix-git/doc/guix.texi:37743
  57223. #, fuzzy, no-wrap
  57224. msgid "@code{user} (default: @code{\"guix-data-service\"})"
  57225. msgstr "@code{xfce}(默认值:@code{xfce})"
  57226. #. type: item
  57227. #: guix-git/doc/guix.texi:37746
  57228. #, fuzzy, no-wrap
  57229. msgid "@code{group} (default: @code{\"guix-data-service\"})"
  57230. msgstr "@code{gnome}(默认值:@code{gnome})"
  57231. #. type: item
  57232. #: guix-git/doc/guix.texi:37749
  57233. #, fuzzy, no-wrap
  57234. msgid "@code{port} (default: @code{8765})"
  57235. msgstr "@code{port}(默认值:@code{22})"
  57236. #. type: table
  57237. #: guix-git/doc/guix.texi:37751
  57238. #, fuzzy
  57239. msgid "The port to bind the web service to."
  57240. msgstr "rottlog服务。"
  57241. #. type: item
  57242. #: guix-git/doc/guix.texi:37752 guix-git/doc/guix.texi:37800
  57243. #, fuzzy, no-wrap
  57244. msgid "@code{host} (default: @code{\"127.0.0.1\"})"
  57245. msgstr "@code{speed}(默认值:@code{1.0})"
  57246. #. type: table
  57247. #: guix-git/doc/guix.texi:37754
  57248. #, fuzzy
  57249. msgid "The host to bind the web service to."
  57250. msgstr "rottlog服务。"
  57251. #. type: item
  57252. #: guix-git/doc/guix.texi:37755
  57253. #, fuzzy, no-wrap
  57254. msgid "@code{getmail-idle-mailboxes} (default: @code{#f})"
  57255. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  57256. #. type: table
  57257. #: guix-git/doc/guix.texi:37758
  57258. msgid "If set, this is the list of mailboxes that the getmail service will be configured to listen to."
  57259. msgstr ""
  57260. #. type: item
  57261. #: guix-git/doc/guix.texi:37759
  57262. #, fuzzy, no-wrap
  57263. msgid "@code{commits-getmail-retriever-configuration} (default: @code{#f})"
  57264. msgstr "@code{journal-content}(默认值:@code{#f})"
  57265. #. type: table
  57266. #: guix-git/doc/guix.texi:37763
  57267. 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."
  57268. msgstr ""
  57269. #. type: item
  57270. #: guix-git/doc/guix.texi:37764
  57271. #, no-wrap
  57272. msgid "@code{extra-options} (default: @var{'()})"
  57273. msgstr ""
  57274. #. type: table
  57275. #: guix-git/doc/guix.texi:37766
  57276. msgid "Extra command line options for @code{guix-data-service}."
  57277. msgstr ""
  57278. #. type: item
  57279. #: guix-git/doc/guix.texi:37767
  57280. #, fuzzy, no-wrap
  57281. msgid "@code{extra-process-jobs-options} (default: @var{'()})"
  57282. msgstr "@code{features} (@code{'()})"
  57283. #. type: table
  57284. #: guix-git/doc/guix.texi:37769
  57285. msgid "Extra command line options for @code{guix-data-service-process-jobs}."
  57286. msgstr ""
  57287. #. type: subsubheading
  57288. #: guix-git/doc/guix.texi:37773
  57289. #, no-wrap
  57290. msgid "Nar Herder"
  57291. msgstr ""
  57292. #. type: Plain text
  57293. #: guix-git/doc/guix.texi:37776
  57294. msgid "The @uref{https://git.cbaines.net/guix/nar-herder/about/,Nar Herder} is a utility for managing a collection of nars."
  57295. msgstr ""
  57296. #. type: defvar
  57297. #: guix-git/doc/guix.texi:37777
  57298. #, no-wrap
  57299. msgid "nar-herder-type"
  57300. msgstr ""
  57301. #. type: defvar
  57302. #: guix-git/doc/guix.texi:37782
  57303. 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."
  57304. msgstr ""
  57305. #. type: deftp
  57306. #: guix-git/doc/guix.texi:37784
  57307. #, fuzzy, no-wrap
  57308. msgid "{Data Type} nar-herder-configuration"
  57309. msgstr "{数据类型} build-machine"
  57310. #. type: item
  57311. #: guix-git/doc/guix.texi:37788
  57312. #, fuzzy, no-wrap
  57313. msgid "@code{package} (default: @code{nar-herder})"
  57314. msgstr "@code{challenge}(默认值:@code{#f})"
  57315. #. type: table
  57316. #: guix-git/doc/guix.texi:37790
  57317. #, fuzzy
  57318. msgid "The Nar Herder package to use."
  57319. msgstr "软件包数据类型。"
  57320. #. type: item
  57321. #: guix-git/doc/guix.texi:37791
  57322. #, fuzzy, no-wrap
  57323. msgid "@code{user} (default: @code{\"nar-herder\"})"
  57324. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  57325. #. type: item
  57326. #: guix-git/doc/guix.texi:37794
  57327. #, fuzzy, no-wrap
  57328. msgid "@code{group} (default: @code{\"nar-herder\"})"
  57329. msgstr "@code{gnome}(默认值:@code{gnome})"
  57330. #. type: item
  57331. #: guix-git/doc/guix.texi:37797
  57332. #, fuzzy, no-wrap
  57333. msgid "@code{port} (default: @code{8734})"
  57334. msgstr "@code{port}(默认值:@code{22})"
  57335. #. type: table
  57336. #: guix-git/doc/guix.texi:37802
  57337. #, fuzzy
  57338. msgid "The host to bind the server to."
  57339. msgstr "rottlog服务。"
  57340. #. type: table
  57341. #: guix-git/doc/guix.texi:37807
  57342. 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."
  57343. msgstr ""
  57344. #. type: item
  57345. #: guix-git/doc/guix.texi:37808
  57346. #, fuzzy, no-wrap
  57347. msgid "@code{database} (default: @code{\"/var/lib/nar-herder/nar_herder.db\"})"
  57348. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  57349. #. type: table
  57350. #: guix-git/doc/guix.texi:37813
  57351. 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."
  57352. msgstr ""
  57353. #. type: item
  57354. #: guix-git/doc/guix.texi:37814
  57355. #, fuzzy, no-wrap
  57356. msgid "@code{database-dump} (default: @code{\"/var/lib/nar-herder/nar_herder_dump.db\"})"
  57357. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  57358. #. type: table
  57359. #: guix-git/doc/guix.texi:37818
  57360. 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."
  57361. msgstr ""
  57362. #. type: item
  57363. #: guix-git/doc/guix.texi:37819
  57364. #, fuzzy, no-wrap
  57365. msgid "@code{storage} (default: @code{#f})"
  57366. msgstr "@code{port}(默认值:@code{22})"
  57367. #. type: table
  57368. #: guix-git/doc/guix.texi:37821
  57369. msgid "Optional location in which to store nars."
  57370. msgstr ""
  57371. #. type: item
  57372. #: guix-git/doc/guix.texi:37822
  57373. #, fuzzy, no-wrap
  57374. msgid "@code{storage-limit} (default: @code{\"none\"})"
  57375. msgstr "@code{port}(默认值:@code{22})"
  57376. #. type: table
  57377. #: guix-git/doc/guix.texi:37825
  57378. 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."
  57379. msgstr ""
  57380. #. type: table
  57381. #: guix-git/doc/guix.texi:37828
  57382. msgid "When the storage location exceeds this size, nars are removed according to the nar removal criteria."
  57383. msgstr ""
  57384. #. type: item
  57385. #: guix-git/doc/guix.texi:37829
  57386. #, fuzzy, no-wrap
  57387. msgid "@code{storage-nar-removal-criteria} (default: @code{'()})"
  57388. msgstr "@code{features} (@code{'()})"
  57389. #. type: table
  57390. #: guix-git/doc/guix.texi:37832
  57391. msgid "Criteria used to remove nars from the storage location. These are used in conjunction with the storage limit."
  57392. msgstr ""
  57393. #. type: table
  57394. #: guix-git/doc/guix.texi:37837
  57395. 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."
  57396. msgstr ""
  57397. #. type: table
  57398. #: guix-git/doc/guix.texi:37841
  57399. 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."
  57400. msgstr ""
  57401. #. type: table
  57402. #: guix-git/doc/guix.texi:37849
  57403. msgid "This allows the user's Guix to keep substitute information in cache for @var{ttl}."
  57404. msgstr ""
  57405. #. type: item
  57406. #: guix-git/doc/guix.texi:37856
  57407. #, fuzzy, no-wrap
  57408. msgid "@code{log-level} (default: @code{'DEBUG})"
  57409. msgstr "@code{speed}(默认值:@code{1.0})"
  57410. #. type: table
  57411. #: guix-git/doc/guix.texi:37859
  57412. msgid "Log level to use, specify a log level like @code{'INFO} to stop logging individual requests."
  57413. msgstr ""
  57414. #. type: item
  57415. #: guix-git/doc/guix.texi:37860
  57416. #, fuzzy, no-wrap
  57417. msgid "@code{cached-compressions} (default: @code{'()})"
  57418. msgstr "@code{includes}(默认值:@code{'()})"
  57419. #. type: table
  57420. #: guix-git/doc/guix.texi:37864
  57421. msgid "Activate generating cached nars with different compression details from the stored nars. This is a list of nar-herder-cached-compression-configuration records."
  57422. msgstr ""
  57423. #. type: item
  57424. #: guix-git/doc/guix.texi:37865
  57425. #, fuzzy, no-wrap
  57426. msgid "@code{min-uses} (default: @code{3})"
  57427. msgstr "@code{port}(默认值:@code{22})"
  57428. #. type: table
  57429. #: guix-git/doc/guix.texi:37868
  57430. msgid "When cached-compressions are enabled, generate cached nars when at least this number of requests are made for a nar."
  57431. msgstr ""
  57432. #. type: item
  57433. #: guix-git/doc/guix.texi:37869
  57434. #, fuzzy, no-wrap
  57435. msgid "@code{workers} (default: @code{2})"
  57436. msgstr "@code{features} (@code{'()})"
  57437. #. type: table
  57438. #: guix-git/doc/guix.texi:37871
  57439. msgid "Number of cached nars to generate at a time."
  57440. msgstr ""
  57441. #. type: item
  57442. #: guix-git/doc/guix.texi:37872
  57443. #, fuzzy, no-wrap
  57444. msgid "@code{nar-source} (default: @code{#f})"
  57445. msgstr "@code{port}(默认值:@code{22})"
  57446. #. type: table
  57447. #: guix-git/doc/guix.texi:37875
  57448. msgid "Location to fetch nars from when computing cached compressions. By default, the storage location will be used."
  57449. msgstr ""
  57450. #. type: item
  57451. #: guix-git/doc/guix.texi:37876
  57452. #, fuzzy, no-wrap
  57453. msgid "@code{extra-environment-variables} (default: @code{'()})"
  57454. msgstr "@code{features} (@code{'()})"
  57455. #. type: deftp
  57456. #: guix-git/doc/guix.texi:37882
  57457. #, fuzzy, no-wrap
  57458. msgid "{Data Type} nar-herder-cached-compression-configuration"
  57459. msgstr "{数据类型} build-machine"
  57460. #. type: deftp
  57461. #: guix-git/doc/guix.texi:37884
  57462. #, fuzzy
  57463. msgid "Data type representing the cached compression configuration."
  57464. msgstr "管理操作系统配置。"
  57465. #. type: table
  57466. #: guix-git/doc/guix.texi:37888
  57467. msgid "Type of compression to use, e.g. @code{'zstd}."
  57468. msgstr ""
  57469. #. type: table
  57470. #: guix-git/doc/guix.texi:37891
  57471. #, fuzzy
  57472. msgid "Level of the compression to use."
  57473. msgstr "远程机器的主机名。"
  57474. #. type: item
  57475. #: guix-git/doc/guix.texi:37892
  57476. #, fuzzy, no-wrap
  57477. msgid "@code{directory} (default: @code{#f})"
  57478. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  57479. #. type: table
  57480. #: guix-git/doc/guix.texi:37895
  57481. msgid "Location to store the cached nars. If unspecified, they will be stored in /var/cache/nar-herder/nar/TYPE."
  57482. msgstr ""
  57483. #. type: item
  57484. #: guix-git/doc/guix.texi:37896
  57485. #, fuzzy, no-wrap
  57486. msgid "@code{directory-max-size} (default: @code{#f})"
  57487. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  57488. #. type: table
  57489. #: guix-git/doc/guix.texi:37898
  57490. msgid "Maximum size in bytes of the directory."
  57491. msgstr ""
  57492. #. type: cindex
  57493. #: guix-git/doc/guix.texi:37905
  57494. #, no-wrap
  57495. msgid "oom"
  57496. msgstr ""
  57497. #. type: cindex
  57498. #: guix-git/doc/guix.texi:37906
  57499. #, no-wrap
  57500. msgid "out of memory killer"
  57501. msgstr ""
  57502. #. type: cindex
  57503. #: guix-git/doc/guix.texi:37907
  57504. #, no-wrap
  57505. msgid "earlyoom"
  57506. msgstr ""
  57507. #. type: cindex
  57508. #: guix-git/doc/guix.texi:37908
  57509. #, no-wrap
  57510. msgid "early out of memory daemon"
  57511. msgstr ""
  57512. #. type: subsubheading
  57513. #: guix-git/doc/guix.texi:37909
  57514. #, fuzzy, no-wrap
  57515. msgid "Early OOM Service"
  57516. msgstr "邮件服务"
  57517. #. type: Plain text
  57518. #: guix-git/doc/guix.texi:37916
  57519. 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."
  57520. msgstr ""
  57521. #. type: defvar
  57522. #: guix-git/doc/guix.texi:37917
  57523. #, fuzzy, no-wrap
  57524. msgid "earlyoom-service-type"
  57525. msgstr "邮件服务"
  57526. #. type: defvar
  57527. #: guix-git/doc/guix.texi:37922
  57528. 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:"
  57529. msgstr ""
  57530. #. type: lisp
  57531. #: guix-git/doc/guix.texi:37925
  57532. #, no-wrap
  57533. msgid "(service earlyoom-service-type)\n"
  57534. msgstr ""
  57535. #. type: deftp
  57536. #: guix-git/doc/guix.texi:37928
  57537. #, no-wrap
  57538. msgid "{Data Type} earlyoom-configuration"
  57539. msgstr ""
  57540. #. type: deftp
  57541. #: guix-git/doc/guix.texi:37930
  57542. msgid "This is the configuration record for the @code{earlyoom-service-type}."
  57543. msgstr ""
  57544. #. type: item
  57545. #: guix-git/doc/guix.texi:37932
  57546. #, fuzzy, no-wrap
  57547. msgid "@code{earlyoom} (default: @var{earlyoom})"
  57548. msgstr "@code{gnome}(默认值:@code{gnome})"
  57549. #. type: table
  57550. #: guix-git/doc/guix.texi:37934
  57551. #, fuzzy
  57552. msgid "The Earlyoom package to use."
  57553. msgstr "软件包数据类型。"
  57554. #. type: item
  57555. #: guix-git/doc/guix.texi:37935
  57556. #, fuzzy, no-wrap
  57557. msgid "@code{minimum-available-memory} (default: @code{10})"
  57558. msgstr "@code{parallel-builds}(默认值:@code{1})"
  57559. #. type: table
  57560. #: guix-git/doc/guix.texi:37937
  57561. msgid "The threshold for the minimum @emph{available} memory, in percentages."
  57562. msgstr ""
  57563. #. type: item
  57564. #: guix-git/doc/guix.texi:37938
  57565. #, fuzzy, no-wrap
  57566. msgid "@code{minimum-free-swap} (default: @code{10})"
  57567. msgstr "@code{speed}(默认值:@code{1.0})"
  57568. #. type: table
  57569. #: guix-git/doc/guix.texi:37940
  57570. msgid "The threshold for the minimum free swap memory, in percentages."
  57571. msgstr ""
  57572. #. type: item
  57573. #: guix-git/doc/guix.texi:37941
  57574. #, fuzzy, no-wrap
  57575. msgid "@code{prefer-regexp} (default: @code{#f})"
  57576. msgstr "@code{challenge}(默认值:@code{#f})"
  57577. #. type: table
  57578. #: guix-git/doc/guix.texi:37944
  57579. msgid "A regular expression (as a string) to match the names of the processes that should be preferably killed."
  57580. msgstr ""
  57581. #. type: item
  57582. #: guix-git/doc/guix.texi:37945
  57583. #, fuzzy, no-wrap
  57584. msgid "@code{avoid-regexp} (default: @code{#f})"
  57585. msgstr "@code{challenge}(默认值:@code{#f})"
  57586. #. type: table
  57587. #: guix-git/doc/guix.texi:37948
  57588. msgid "A regular expression (as a string) to match the names of the processes that should @emph{not} be killed."
  57589. msgstr ""
  57590. #. type: item
  57591. #: guix-git/doc/guix.texi:37949
  57592. #, fuzzy, no-wrap
  57593. msgid "@code{memory-report-interval} (default: @code{0})"
  57594. msgstr "@code{port}(默认值:@code{22})"
  57595. #. type: table
  57596. #: guix-git/doc/guix.texi:37952
  57597. msgid "The interval in seconds at which a memory report is printed. It is disabled by default."
  57598. msgstr ""
  57599. #. type: item
  57600. #: guix-git/doc/guix.texi:37953
  57601. #, fuzzy, no-wrap
  57602. msgid "@code{ignore-positive-oom-score-adj?} (default: @code{#f})"
  57603. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  57604. #. type: table
  57605. #: guix-git/doc/guix.texi:37956
  57606. msgid "A boolean indicating whether the positive adjustments set in @file{/proc/*/oom_score_adj} should be ignored."
  57607. msgstr ""
  57608. #. type: item
  57609. #: guix-git/doc/guix.texi:37957
  57610. #, fuzzy, no-wrap
  57611. msgid "@code{show-debug-messages?} (default: @code{#f})"
  57612. msgstr "@code{challenge}(默认值:@code{#f})"
  57613. #. type: table
  57614. #: guix-git/doc/guix.texi:37960
  57615. msgid "A boolean indicating whether debug messages should be printed. The logs are saved at @file{/var/log/earlyoom.log}."
  57616. msgstr ""
  57617. #. type: item
  57618. #: guix-git/doc/guix.texi:37961
  57619. #, fuzzy, no-wrap
  57620. msgid "@code{send-notification-command} (default: @code{#f})"
  57621. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  57622. #. type: table
  57623. #: guix-git/doc/guix.texi:37964
  57624. msgid "This can be used to provide a custom command used for sending notifications."
  57625. msgstr ""
  57626. #. type: subsubheading
  57627. #: guix-git/doc/guix.texi:37967
  57628. #, fuzzy, no-wrap
  57629. msgid "fstrim Service"
  57630. msgstr "邮件服务"
  57631. #. type: cindex
  57632. #: guix-git/doc/guix.texi:37968
  57633. #, fuzzy, no-wrap
  57634. msgid "fstrim service"
  57635. msgstr "DNS服务"
  57636. #. type: cindex
  57637. #: guix-git/doc/guix.texi:37969
  57638. #, no-wrap
  57639. msgid "solid state drives, periodic trim"
  57640. msgstr ""
  57641. #. type: cindex
  57642. #: guix-git/doc/guix.texi:37970
  57643. #, no-wrap
  57644. msgid "solid state drives, trim"
  57645. msgstr ""
  57646. #. type: Plain text
  57647. #: guix-git/doc/guix.texi:37974
  57648. msgid "The command @command{fstrim} can be used to discard (or @dfn{trim}) unused blocks on a mounted file system."
  57649. msgstr ""
  57650. #. type: quotation
  57651. #: guix-git/doc/guix.texi:37983
  57652. msgid "Running @command{fstrim} frequently, or even using @command{mount -o discard}, might negatively affect the lifetime of poor-quality SSD devices. For most desktop and server systems a sufficient trimming frequency is once a week. Note that not all devices support a queued trim, so each trim command incurs a performance penalty on whatever else might be trying to use the disk at the time."
  57653. msgstr ""
  57654. #. type: defvar
  57655. #: guix-git/doc/guix.texi:37985
  57656. #, fuzzy, no-wrap
  57657. msgid "fstrim-service-type"
  57658. msgstr "邮件服务"
  57659. #. type: defvar
  57660. #: guix-git/doc/guix.texi:37989
  57661. msgid "Type for a service that periodically runs @command{fstrim}, whose value must be an @code{<fstrim-configuration>} object. The service can be instantiated in its default configuration with:"
  57662. msgstr ""
  57663. #. type: lisp
  57664. #: guix-git/doc/guix.texi:37992
  57665. #, fuzzy, no-wrap
  57666. #| msgid "(service home-znc-service-type)\n"
  57667. msgid "(service fstrim-service-type)\n"
  57668. msgstr "(service home-znc-service-type)\n"
  57669. #. type: deftp
  57670. #: guix-git/doc/guix.texi:37996
  57671. #, fuzzy, no-wrap
  57672. msgid "{Data Type} fstrim-configuration"
  57673. msgstr "系统配置"
  57674. #. type: deftp
  57675. #: guix-git/doc/guix.texi:37998
  57676. #, fuzzy
  57677. msgid "Available @code{fstrim-configuration} fields are:"
  57678. msgstr "{数据类型} build-machine"
  57679. #. type: item
  57680. #: guix-git/doc/guix.texi:38000
  57681. #, fuzzy, no-wrap
  57682. msgid "@code{package} (default: @code{util-linux}) (type: file-like)"
  57683. msgstr "@code{xfce}(默认值:@code{xfce})"
  57684. #. type: table
  57685. #: guix-git/doc/guix.texi:38002
  57686. #, fuzzy
  57687. #| msgid "Package management commands."
  57688. msgid "The package providing the @command{fstrim} command."
  57689. msgstr "软件包管理命令。"
  57690. #. type: item
  57691. #: guix-git/doc/guix.texi:38003
  57692. #, fuzzy, no-wrap
  57693. msgid "@code{schedule} (default: @code{\"0 0 * * 0\"}) (type: mcron-time)"
  57694. msgstr "@code{speed}(默认值:@code{1.0})"
  57695. #. type: table
  57696. #: guix-git/doc/guix.texi:38008
  57697. msgid "Schedule for launching @command{fstrim}. This can be a procedure, a list or a string. For additional information, see @ref{Guile Syntax,,Job specification,mcron,the mcron manual}. By default this is set to run weekly on Sunday at 00:00."
  57698. msgstr ""
  57699. #. type: item
  57700. #: guix-git/doc/guix.texi:38009
  57701. #, fuzzy, no-wrap
  57702. msgid "@code{listed-in} (default: @code{'(\"/etc/fstab\" \"/proc/self/mountinfo\")}) (type: maybe-list-of-strings)"
  57703. msgstr "@code{features} (@code{'()})"
  57704. #. type: table
  57705. #: guix-git/doc/guix.texi:38014
  57706. msgid "List of files in fstab or kernel mountinfo format. All missing or empty files are silently ignored. The evaluation of the list @emph{stops} after the first non-empty file. File systems with @code{X-fstrim.notrim} mount option in fstab are skipped."
  57707. msgstr ""
  57708. #. type: item
  57709. #: guix-git/doc/guix.texi:38015
  57710. #, fuzzy, no-wrap
  57711. msgid "@code{verbose?} (default: @code{#t}) (type: boolean)"
  57712. msgstr "@code{challenge}(默认值:@code{#f})"
  57713. #. type: table
  57714. #: guix-git/doc/guix.texi:38017
  57715. msgid "Verbose execution."
  57716. msgstr ""
  57717. #. type: item
  57718. #: guix-git/doc/guix.texi:38018
  57719. #, fuzzy, no-wrap
  57720. msgid "@code{quiet-unsupported?} (default: @code{#t}) (type: boolean)"
  57721. msgstr "@code{speed}(默认值:@code{1.0})"
  57722. #. type: table
  57723. #: guix-git/doc/guix.texi:38020
  57724. msgid "Suppress error messages if trim operation (ioctl) is unsupported."
  57725. msgstr ""
  57726. #. type: item
  57727. #: guix-git/doc/guix.texi:38021
  57728. #, fuzzy, no-wrap
  57729. msgid "@code{extra-arguments} (type: maybe-list-of-strings)"
  57730. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  57731. #. type: table
  57732. #: guix-git/doc/guix.texi:38024
  57733. msgid "Extra options to append to @command{fstrim} (run @samp{man fstrim} for more information)."
  57734. msgstr ""
  57735. #. type: cindex
  57736. #: guix-git/doc/guix.texi:38029
  57737. #, no-wrap
  57738. msgid "modprobe"
  57739. msgstr ""
  57740. #. type: cindex
  57741. #: guix-git/doc/guix.texi:38030
  57742. #, no-wrap
  57743. msgid "kernel module loader"
  57744. msgstr ""
  57745. #. type: subsubheading
  57746. #: guix-git/doc/guix.texi:38031
  57747. #, no-wrap
  57748. msgid "Kernel Module Loader Service"
  57749. msgstr ""
  57750. #. type: Plain text
  57751. #: guix-git/doc/guix.texi:38037
  57752. 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}."
  57753. msgstr ""
  57754. #. type: defvar
  57755. #: guix-git/doc/guix.texi:38038
  57756. #, fuzzy, no-wrap
  57757. msgid "kernel-module-loader-service-type"
  57758. msgstr "邮件服务"
  57759. #. type: defvar
  57760. #: guix-git/doc/guix.texi:38044
  57761. 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:"
  57762. msgstr ""
  57763. #. type: lisp
  57764. #: guix-git/doc/guix.texi:38049
  57765. #, no-wrap
  57766. msgid ""
  57767. "(use-modules (gnu) (gnu services))\n"
  57768. "(use-package-modules linux)\n"
  57769. "(use-service-modules linux)\n"
  57770. "\n"
  57771. msgstr ""
  57772. #. type: lisp
  57773. #: guix-git/doc/guix.texi:38053
  57774. #, no-wrap
  57775. msgid ""
  57776. "(define ddcci-config\n"
  57777. " (plain-file \"ddcci.conf\"\n"
  57778. " \"options ddcci dyndbg delay=120\"))\n"
  57779. "\n"
  57780. msgstr ""
  57781. #. type: lisp
  57782. #: guix-git/doc/guix.texi:38063
  57783. #, no-wrap
  57784. msgid ""
  57785. "(operating-system\n"
  57786. " ...\n"
  57787. " (services (cons* (service kernel-module-loader-service-type\n"
  57788. " '(\"ddcci\" \"ddcci_backlight\"))\n"
  57789. " (simple-service 'ddcci-config etc-service-type\n"
  57790. " (list `(\"modprobe.d/ddcci.conf\"\n"
  57791. " ,ddcci-config)))\n"
  57792. " %base-services))\n"
  57793. " (kernel-loadable-modules (list ddcci-driver-linux)))\n"
  57794. msgstr ""
  57795. #. type: cindex
  57796. #: guix-git/doc/guix.texi:38066
  57797. #, fuzzy, no-wrap
  57798. #| msgid "daemon"
  57799. msgid "rasdaemon"
  57800. msgstr "后台进程"
  57801. #. type: cindex
  57802. #: guix-git/doc/guix.texi:38067
  57803. #, no-wrap
  57804. msgid "Platform Reliability, Availability and Serviceability daemon"
  57805. msgstr ""
  57806. #. type: subsubheading
  57807. #: guix-git/doc/guix.texi:38068
  57808. #, fuzzy, no-wrap
  57809. msgid "Rasdaemon Service"
  57810. msgstr "邮件服务"
  57811. #. type: Plain text
  57812. #: guix-git/doc/guix.texi:38073
  57813. 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."
  57814. msgstr ""
  57815. #. type: Plain text
  57816. #: guix-git/doc/guix.texi:38076
  57817. msgid "Reliability, Availability and Serviceability is a concept used on servers meant to measure their robustness."
  57818. msgstr ""
  57819. #. type: Plain text
  57820. #: guix-git/doc/guix.texi:38079
  57821. msgid "@strong{Relability} is the probability that a system will produce correct outputs:"
  57822. msgstr ""
  57823. #. type: item
  57824. #: guix-git/doc/guix.texi:38081
  57825. #, no-wrap
  57826. msgid "Generally measured as Mean Time Between Failures (MTBF), and"
  57827. msgstr ""
  57828. #. type: item
  57829. #: guix-git/doc/guix.texi:38082
  57830. #, no-wrap
  57831. msgid "Enhanced by features that help to avoid, detect and repair hardware"
  57832. msgstr ""
  57833. #. type: itemize
  57834. #: guix-git/doc/guix.texi:38084
  57835. msgid "faults"
  57836. msgstr ""
  57837. #. type: Plain text
  57838. #: guix-git/doc/guix.texi:38088
  57839. msgid "@strong{Availability} is the probability that a system is operational at a given time:"
  57840. msgstr ""
  57841. #. type: item
  57842. #: guix-git/doc/guix.texi:38090
  57843. #, no-wrap
  57844. msgid "Generally measured as a percentage of downtime per a period of time, and"
  57845. msgstr ""
  57846. #. type: item
  57847. #: guix-git/doc/guix.texi:38091
  57848. #, no-wrap
  57849. msgid "Often uses mechanisms to detect and correct hardware faults in runtime."
  57850. msgstr ""
  57851. #. type: Plain text
  57852. #: guix-git/doc/guix.texi:38096
  57853. msgid "@strong{Serviceability} is the simplicity and speed with which a system can be repaired or maintained:"
  57854. msgstr ""
  57855. #. type: item
  57856. #: guix-git/doc/guix.texi:38098
  57857. #, no-wrap
  57858. msgid "Generally measured on Mean Time Between Repair (MTBR)."
  57859. msgstr ""
  57860. #. type: Plain text
  57861. #: guix-git/doc/guix.texi:38103
  57862. msgid "Among the monitoring measures, the most usual ones include:"
  57863. msgstr ""
  57864. #. type: item
  57865. #: guix-git/doc/guix.texi:38105
  57866. #, no-wrap
  57867. msgid "CPU – detect errors at instruction execution and at L1/L2/L3 caches;"
  57868. msgstr ""
  57869. #. type: item
  57870. #: guix-git/doc/guix.texi:38106
  57871. #, no-wrap
  57872. msgid "Memory – add error correction logic (ECC) to detect and correct errors;"
  57873. msgstr ""
  57874. #. type: item
  57875. #: guix-git/doc/guix.texi:38107
  57876. #, no-wrap
  57877. msgid "I/O – add CRC checksums for transferred data;"
  57878. msgstr ""
  57879. #. type: item
  57880. #: guix-git/doc/guix.texi:38108
  57881. #, no-wrap
  57882. msgid "Storage – RAID, journal file systems, checksums, Self-Monitoring,"
  57883. msgstr ""
  57884. #. type: itemize
  57885. #: guix-git/doc/guix.texi:38110
  57886. msgid "Analysis and Reporting Technology (SMART)."
  57887. msgstr ""
  57888. #. type: Plain text
  57889. #: guix-git/doc/guix.texi:38116
  57890. 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."
  57891. msgstr ""
  57892. #. type: Plain text
  57893. #: guix-git/doc/guix.texi:38120
  57894. 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}."
  57895. msgstr ""
  57896. #. type: defvar
  57897. #: guix-git/doc/guix.texi:38121
  57898. #, fuzzy, no-wrap
  57899. msgid "rasdaemon-service-type"
  57900. msgstr "邮件服务"
  57901. #. type: defvar
  57902. #: guix-git/doc/guix.texi:38124
  57903. msgid "Service type for the @command{rasdaemon} service. It accepts a @code{rasdaemon-configuration} object. Instantiating like"
  57904. msgstr ""
  57905. #. type: lisp
  57906. #: guix-git/doc/guix.texi:38127
  57907. #, no-wrap
  57908. msgid "(service rasdaemon-service-type)\n"
  57909. msgstr ""
  57910. #. type: defvar
  57911. #: guix-git/doc/guix.texi:38131
  57912. msgid "will load with a default configuration, which monitors all events and logs to syslogd."
  57913. msgstr ""
  57914. #. type: deftp
  57915. #: guix-git/doc/guix.texi:38133
  57916. #, fuzzy, no-wrap
  57917. msgid "{Data Type} rasdaemon-configuration"
  57918. msgstr "{数据类型} build-machine"
  57919. #. type: deftp
  57920. #: guix-git/doc/guix.texi:38135
  57921. #, fuzzy
  57922. msgid "The data type representing the configuration of @command{rasdaemon}."
  57923. msgstr "管理操作系统配置。"
  57924. #. type: item
  57925. #: guix-git/doc/guix.texi:38137
  57926. #, fuzzy, no-wrap
  57927. msgid "@code{record?} (default: @code{#f})"
  57928. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  57929. #. type: table
  57930. #: guix-git/doc/guix.texi:38142
  57931. 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}."
  57932. msgstr ""
  57933. #. type: cindex
  57934. #: guix-git/doc/guix.texi:38146
  57935. #, no-wrap
  57936. msgid "zram"
  57937. msgstr ""
  57938. #. type: cindex
  57939. #: guix-git/doc/guix.texi:38147
  57940. #, no-wrap
  57941. msgid "compressed swap"
  57942. msgstr ""
  57943. #. type: cindex
  57944. #: guix-git/doc/guix.texi:38148
  57945. #, no-wrap
  57946. msgid "Compressed RAM-based block devices"
  57947. msgstr ""
  57948. #. type: subsubheading
  57949. #: guix-git/doc/guix.texi:38149
  57950. #, fuzzy, no-wrap
  57951. msgid "Zram Device Service"
  57952. msgstr "游戏服务"
  57953. #. type: Plain text
  57954. #: guix-git/doc/guix.texi:38155
  57955. 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."
  57956. msgstr ""
  57957. #. type: defvar
  57958. #: guix-git/doc/guix.texi:38156
  57959. #, fuzzy, no-wrap
  57960. msgid "zram-device-service-type"
  57961. msgstr "邮件服务"
  57962. #. type: defvar
  57963. #: guix-git/doc/guix.texi:38160
  57964. 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."
  57965. msgstr ""
  57966. #. type: deftp
  57967. #: guix-git/doc/guix.texi:38161
  57968. #, no-wrap
  57969. msgid "{Data Type} zram-device-configuration"
  57970. msgstr ""
  57971. #. type: deftp
  57972. #: guix-git/doc/guix.texi:38164
  57973. msgid "This is the data type representing the configuration for the zram-device service."
  57974. msgstr ""
  57975. #. type: item
  57976. #: guix-git/doc/guix.texi:38166
  57977. #, fuzzy, no-wrap
  57978. msgid "@code{size} (default @code{\"1G\"})"
  57979. msgstr "@code{speed}(默认值:@code{1.0})"
  57980. #. type: table
  57981. #: guix-git/doc/guix.texi:38170
  57982. 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}."
  57983. msgstr ""
  57984. #. type: item
  57985. #: guix-git/doc/guix.texi:38170
  57986. #, fuzzy, no-wrap
  57987. msgid "@code{compression-algorithm} (default @code{'lzo})"
  57988. msgstr "@code{compression-level}(默认值:@code{3})"
  57989. #. type: table
  57990. #: guix-git/doc/guix.texi:38174
  57991. 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}."
  57992. msgstr ""
  57993. #. type: item
  57994. #: guix-git/doc/guix.texi:38174
  57995. #, fuzzy, no-wrap
  57996. msgid "@code{memory-limit} (default @code{0})"
  57997. msgstr "@code{port}(默认值:@code{22})"
  57998. #. type: table
  57999. #: guix-git/doc/guix.texi:38181
  58000. 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\"}."
  58001. msgstr ""
  58002. #. type: item
  58003. #: guix-git/doc/guix.texi:38181
  58004. #, fuzzy, no-wrap
  58005. msgid "@code{priority} (default @code{#f})"
  58006. msgstr "@code{port}(默认值:@code{22})"
  58007. #. type: table
  58008. #: guix-git/doc/guix.texi:38186
  58009. msgid "This is the priority of the swap device created from the zram device. @xref{Swap Space} for a description of swap priorities. You might want to set a specific priority for the zram device, otherwise it could end up not being used much for the reasons described there."
  58010. msgstr ""
  58011. #. type: defvar
  58012. #: guix-git/doc/guix.texi:38194
  58013. #, fuzzy, no-wrap
  58014. msgid "hurd-console-service-type"
  58015. msgstr "邮件服务"
  58016. #. type: defvar
  58017. #: guix-git/doc/guix.texi:38196
  58018. msgid "This service starts the fancy @code{VGA} console client on the Hurd."
  58019. msgstr ""
  58020. #. type: defvar
  58021. #: guix-git/doc/guix.texi:38198
  58022. msgid "The service's value is a @code{hurd-console-configuration} record."
  58023. msgstr ""
  58024. #. type: deftp
  58025. #: guix-git/doc/guix.texi:38200
  58026. #, no-wrap
  58027. msgid "{Data Type} hurd-console-configuration"
  58028. msgstr ""
  58029. #. type: deftp
  58030. #: guix-git/doc/guix.texi:38203
  58031. msgid "This is the data type representing the configuration for the hurd-console-service."
  58032. msgstr ""
  58033. #. type: item
  58034. #: guix-git/doc/guix.texi:38205 guix-git/doc/guix.texi:38221
  58035. #, fuzzy, no-wrap
  58036. msgid "@code{hurd} (default: @var{hurd})"
  58037. msgstr "@code{port}(默认值:@code{22})"
  58038. #. type: table
  58039. #: guix-git/doc/guix.texi:38207 guix-git/doc/guix.texi:38223
  58040. #, fuzzy
  58041. msgid "The Hurd package to use."
  58042. msgstr "软件包数据类型。"
  58043. #. type: defvar
  58044. #: guix-git/doc/guix.texi:38210
  58045. #, fuzzy, no-wrap
  58046. msgid "hurd-getty-service-type"
  58047. msgstr "邮件服务"
  58048. #. type: defvar
  58049. #: guix-git/doc/guix.texi:38212
  58050. msgid "This service starts a tty using the Hurd @code{getty} program."
  58051. msgstr ""
  58052. #. type: defvar
  58053. #: guix-git/doc/guix.texi:38214
  58054. msgid "The service's value is a @code{hurd-getty-configuration} record."
  58055. msgstr ""
  58056. #. type: deftp
  58057. #: guix-git/doc/guix.texi:38216
  58058. #, no-wrap
  58059. msgid "{Data Type} hurd-getty-configuration"
  58060. msgstr ""
  58061. #. type: deftp
  58062. #: guix-git/doc/guix.texi:38219
  58063. msgid "This is the data type representing the configuration for the hurd-getty-service."
  58064. msgstr ""
  58065. #. type: table
  58066. #: guix-git/doc/guix.texi:38226
  58067. msgid "The name of the console this Getty runs on---e.g., @code{\"tty1\"}."
  58068. msgstr ""
  58069. #. type: item
  58070. #: guix-git/doc/guix.texi:38227
  58071. #, fuzzy, no-wrap
  58072. msgid "@code{baud-rate} (default: @code{38400})"
  58073. msgstr "@code{mate}(默认值:@code{mate})"
  58074. #. type: table
  58075. #: guix-git/doc/guix.texi:38229
  58076. msgid "An integer specifying the baud rate of the tty."
  58077. msgstr ""
  58078. #. type: cindex
  58079. #: guix-git/doc/guix.texi:38236
  58080. #, no-wrap
  58081. msgid "fingerprint"
  58082. msgstr ""
  58083. #. type: subsubheading
  58084. #: guix-git/doc/guix.texi:38237
  58085. #, no-wrap
  58086. msgid "Fingerprint Service"
  58087. msgstr ""
  58088. #. type: Plain text
  58089. #: guix-git/doc/guix.texi:38241
  58090. msgid "The @code{(gnu services authentication)} module provides a DBus service to read and identify fingerprints via a fingerprint sensor."
  58091. msgstr ""
  58092. #. type: defvar
  58093. #: guix-git/doc/guix.texi:38242
  58094. #, fuzzy, no-wrap
  58095. msgid "fprintd-service-type"
  58096. msgstr "邮件服务"
  58097. #. type: defvar
  58098. #: guix-git/doc/guix.texi:38245
  58099. msgid "The service type for @command{fprintd}, which provides the fingerprint reading capability."
  58100. msgstr ""
  58101. #. type: lisp
  58102. #: guix-git/doc/guix.texi:38248
  58103. #, no-wrap
  58104. msgid "(service fprintd-service-type)\n"
  58105. msgstr ""
  58106. #. type: cindex
  58107. #: guix-git/doc/guix.texi:38251
  58108. #, no-wrap
  58109. msgid "sysctl"
  58110. msgstr ""
  58111. #. type: subsubheading
  58112. #: guix-git/doc/guix.texi:38252
  58113. #, no-wrap
  58114. msgid "System Control Service"
  58115. msgstr ""
  58116. #. type: Plain text
  58117. #: guix-git/doc/guix.texi:38256
  58118. msgid "The @code{(gnu services sysctl)} provides a service to configure kernel parameters at boot."
  58119. msgstr ""
  58120. #. type: defvar
  58121. #: guix-git/doc/guix.texi:38257
  58122. #, fuzzy, no-wrap
  58123. msgid "sysctl-service-type"
  58124. msgstr "邮件服务"
  58125. #. type: defvar
  58126. #: guix-git/doc/guix.texi:38261
  58127. msgid "The service type for @command{sysctl}, which modifies kernel parameters under @file{/proc/sys/}. To enable IPv4 forwarding, it can be instantiated as:"
  58128. msgstr ""
  58129. #. type: lisp
  58130. #: guix-git/doc/guix.texi:38266
  58131. #, no-wrap
  58132. msgid ""
  58133. "(service sysctl-service-type\n"
  58134. " (sysctl-configuration\n"
  58135. " (settings '((\"net.ipv4.ip_forward\" . \"1\")))))\n"
  58136. msgstr ""
  58137. #. type: defvar
  58138. #: guix-git/doc/guix.texi:38273
  58139. 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}})."
  58140. msgstr ""
  58141. #. type: lisp
  58142. #: guix-git/doc/guix.texi:38280
  58143. #, no-wrap
  58144. msgid ""
  58145. "(modify-services %base-services\n"
  58146. " (sysctl-service-type config =>\n"
  58147. " (sysctl-configuration\n"
  58148. " (settings (append '((\"net.ipv4.ip_forward\" . \"1\"))\n"
  58149. " %default-sysctl-settings)))))\n"
  58150. msgstr ""
  58151. #. type: deftp
  58152. #: guix-git/doc/guix.texi:38284
  58153. #, no-wrap
  58154. msgid "{Data Type} sysctl-configuration"
  58155. msgstr ""
  58156. #. type: deftp
  58157. #: guix-git/doc/guix.texi:38286
  58158. msgid "The data type representing the configuration of @command{sysctl}."
  58159. msgstr ""
  58160. #. type: item
  58161. #: guix-git/doc/guix.texi:38288
  58162. #, no-wrap
  58163. msgid "@code{sysctl} (default: @code{(file-append procps \"/sbin/sysctl\"})"
  58164. msgstr ""
  58165. #. type: table
  58166. #: guix-git/doc/guix.texi:38290
  58167. msgid "The @command{sysctl} executable to use."
  58168. msgstr ""
  58169. #. type: item
  58170. #: guix-git/doc/guix.texi:38291
  58171. #, fuzzy, no-wrap
  58172. msgid "@code{settings} (default: @code{%default-sysctl-settings})"
  58173. msgstr "@code{mate}(默认值:@code{mate})"
  58174. #. type: table
  58175. #: guix-git/doc/guix.texi:38293
  58176. msgid "An association list specifies kernel parameters and their values."
  58177. msgstr ""
  58178. #. type: defvar
  58179. #: guix-git/doc/guix.texi:38296
  58180. #, no-wrap
  58181. msgid "%default-sysctl-settings"
  58182. msgstr ""
  58183. #. type: defvar
  58184. #: guix-git/doc/guix.texi:38299
  58185. msgid "An association list specifying the default @command{sysctl} parameters on Guix System."
  58186. msgstr ""
  58187. #. type: cindex
  58188. #: guix-git/doc/guix.texi:38301
  58189. #, no-wrap
  58190. msgid "pcscd"
  58191. msgstr ""
  58192. #. type: subsubheading
  58193. #: guix-git/doc/guix.texi:38302
  58194. #, no-wrap
  58195. msgid "PC/SC Smart Card Daemon Service"
  58196. msgstr ""
  58197. #. type: Plain text
  58198. #: guix-git/doc/guix.texi:38309
  58199. 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."
  58200. msgstr ""
  58201. #. type: defvar
  58202. #: guix-git/doc/guix.texi:38310
  58203. #, fuzzy, no-wrap
  58204. msgid "pcscd-service-type"
  58205. msgstr "邮件服务"
  58206. #. type: defvar
  58207. #: guix-git/doc/guix.texi:38314
  58208. 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:"
  58209. msgstr ""
  58210. #. type: lisp
  58211. #: guix-git/doc/guix.texi:38317
  58212. #, no-wrap
  58213. msgid "(service pcscd-service-type)\n"
  58214. msgstr ""
  58215. #. type: deftp
  58216. #: guix-git/doc/guix.texi:38320
  58217. #, no-wrap
  58218. msgid "{Data Type} pcscd-configuration"
  58219. msgstr ""
  58220. #. type: deftp
  58221. #: guix-git/doc/guix.texi:38322
  58222. msgid "The data type representing the configuration of @command{pcscd}."
  58223. msgstr ""
  58224. #. type: item
  58225. #: guix-git/doc/guix.texi:38324
  58226. #, no-wrap
  58227. msgid "@code{pcsc-lite} (default: @code{pcsc-lite})"
  58228. msgstr ""
  58229. #. type: table
  58230. #: guix-git/doc/guix.texi:38326
  58231. msgid "The pcsc-lite package that provides pcscd."
  58232. msgstr ""
  58233. #. type: item
  58234. #: guix-git/doc/guix.texi:38326
  58235. #, no-wrap
  58236. msgid "@code{usb-drivers} (default: @code{(list ccid)})"
  58237. msgstr ""
  58238. #. type: table
  58239. #: guix-git/doc/guix.texi:38329
  58240. 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."
  58241. msgstr ""
  58242. #. type: cindex
  58243. #: guix-git/doc/guix.texi:38332
  58244. #, no-wrap
  58245. msgid "LIRC"
  58246. msgstr ""
  58247. #. type: subsubheading
  58248. #: guix-git/doc/guix.texi:38333
  58249. #, fuzzy, no-wrap
  58250. #| msgid "VPN Services"
  58251. msgid "LIRC Service"
  58252. msgstr "VPN服务"
  58253. #. type: Plain text
  58254. #: guix-git/doc/guix.texi:38336
  58255. msgid "The @code{(gnu services lirc)} module provides the following service."
  58256. msgstr ""
  58257. #. type: defvar
  58258. #: guix-git/doc/guix.texi:38337
  58259. #, fuzzy, no-wrap
  58260. msgid "lirc-service-type"
  58261. msgstr "邮件服务"
  58262. #. type: defvar
  58263. #: guix-git/doc/guix.texi:38340
  58264. msgid "Type for a service that runs @url{http://www.lirc.org, LIRC}, a daemon that decodes infrared signals from remote controls."
  58265. msgstr ""
  58266. #. type: defvar
  58267. #: guix-git/doc/guix.texi:38342
  58268. msgid "The value for this service is a @code{<lirc-configuration>} object."
  58269. msgstr ""
  58270. #. type: deftp
  58271. #: guix-git/doc/guix.texi:38344
  58272. #, fuzzy, no-wrap
  58273. msgid "{Data Type} lirc-configuration"
  58274. msgstr "{数据类型} build-machine"
  58275. #. type: deftp
  58276. #: guix-git/doc/guix.texi:38346
  58277. #, fuzzy
  58278. msgid "Data type representing the configuration of @command{lircd}."
  58279. msgstr "管理操作系统配置。"
  58280. #. type: item
  58281. #: guix-git/doc/guix.texi:38348
  58282. #, fuzzy, no-wrap
  58283. msgid "@code{lirc} (default: @code{lirc}) (type: file-like)"
  58284. msgstr "@code{xfce}(默认值:@code{xfce})"
  58285. #. type: table
  58286. #: guix-git/doc/guix.texi:38350
  58287. #, fuzzy
  58288. #| msgid "Package management commands."
  58289. msgid "Package object for @command{lirc}."
  58290. msgstr "软件包管理命令。"
  58291. #. type: item
  58292. #: guix-git/doc/guix.texi:38351
  58293. #, fuzzy, no-wrap
  58294. msgid "@code{device} (default: @code{#f}) (type: string)"
  58295. msgstr "@code{xfce}(默认值:@code{xfce})"
  58296. #. type: itemx
  58297. #: guix-git/doc/guix.texi:38352
  58298. #, fuzzy, no-wrap
  58299. msgid "@code{driver} (default: @code{#f}) (type: string)"
  58300. msgstr "@code{xfce}(默认值:@code{xfce})"
  58301. #. type: itemx
  58302. #: guix-git/doc/guix.texi:38353
  58303. #, fuzzy, no-wrap
  58304. msgid "@code{config-file} (default: @code{#f}) (type: string-or-file-like)"
  58305. msgstr "@code{xfce}(默认值:@code{xfce})"
  58306. #. type: table
  58307. #: guix-git/doc/guix.texi:38355
  58308. msgid "TODO. See @command{lircd} manual for details."
  58309. msgstr ""
  58310. #. type: item
  58311. #: guix-git/doc/guix.texi:38356
  58312. #, fuzzy, no-wrap
  58313. msgid "@code{extra-options} (default: @code{'()}) (type: list-of-string)"
  58314. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  58315. #. type: table
  58316. #: guix-git/doc/guix.texi:38358
  58317. msgid "Additional command-line options to pass to @command{lircd}."
  58318. msgstr ""
  58319. #. type: cindex
  58320. #: guix-git/doc/guix.texi:38365
  58321. #, no-wrap
  58322. msgid "SPICE"
  58323. msgstr ""
  58324. #. type: subsubheading
  58325. #: guix-git/doc/guix.texi:38366
  58326. #, fuzzy, no-wrap
  58327. msgid "SPICE Service"
  58328. msgstr "DNS服务"
  58329. #. type: Plain text
  58330. #: guix-git/doc/guix.texi:38369
  58331. msgid "The @code{(gnu services spice)} module provides the following service."
  58332. msgstr ""
  58333. #. type: defvar
  58334. #: guix-git/doc/guix.texi:38370
  58335. #, fuzzy, no-wrap
  58336. msgid "spice-vdagent-service-type"
  58337. msgstr "邮件服务"
  58338. #. type: defvar
  58339. #: guix-git/doc/guix.texi:38374
  58340. msgid "Type of the 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."
  58341. msgstr ""
  58342. #. type: deftp
  58343. #: guix-git/doc/guix.texi:38376
  58344. #, fuzzy, no-wrap
  58345. msgid "{Data Type} spice-vdagent-configuration"
  58346. msgstr "{数据类型} build-machine"
  58347. #. type: deftp
  58348. #: guix-git/doc/guix.texi:38379
  58349. #, fuzzy
  58350. msgid "Data type representing the configuration of @code{spice-vdagent-service-type}."
  58351. msgstr "管理操作系统配置。"
  58352. #. type: item
  58353. #: guix-git/doc/guix.texi:38381
  58354. #, fuzzy, no-wrap
  58355. msgid "@code{spice-vdagent} (default: @code{spice-vdagent}) (type: file-like)"
  58356. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  58357. #. type: table
  58358. #: guix-git/doc/guix.texi:38383
  58359. msgid "Package object for VDAGENT."
  58360. msgstr ""
  58361. #. type: cindex
  58362. #: guix-git/doc/guix.texi:38387
  58363. #, no-wrap
  58364. msgid "inputattach"
  58365. msgstr ""
  58366. #. type: subsubheading
  58367. #: guix-git/doc/guix.texi:38388
  58368. #, no-wrap
  58369. msgid "inputattach Service"
  58370. msgstr ""
  58371. #. type: cindex
  58372. #: guix-git/doc/guix.texi:38390
  58373. #, no-wrap
  58374. msgid "tablet input, for Xorg"
  58375. msgstr ""
  58376. #. type: cindex
  58377. #: guix-git/doc/guix.texi:38391
  58378. #, no-wrap
  58379. msgid "touchscreen input, for Xorg"
  58380. msgstr ""
  58381. #. type: Plain text
  58382. #: guix-git/doc/guix.texi:38395
  58383. 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."
  58384. msgstr ""
  58385. #. type: defvar
  58386. #: guix-git/doc/guix.texi:38396
  58387. #, fuzzy, no-wrap
  58388. msgid "inputattach-service-type"
  58389. msgstr "邮件服务"
  58390. #. type: defvar
  58391. #: guix-git/doc/guix.texi:38399
  58392. msgid "Type of a service that runs @command{inputattach} on a device and dispatches events from it."
  58393. msgstr ""
  58394. #. type: deftp
  58395. #: guix-git/doc/guix.texi:38401
  58396. #, no-wrap
  58397. msgid "{Data Type} inputattach-configuration"
  58398. msgstr ""
  58399. #. type: item
  58400. #: guix-git/doc/guix.texi:38403
  58401. #, no-wrap
  58402. msgid "@code{device-type} (default: @code{\"wacom\"})"
  58403. msgstr ""
  58404. #. type: table
  58405. #: guix-git/doc/guix.texi:38406
  58406. 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."
  58407. msgstr ""
  58408. #. type: item
  58409. #: guix-git/doc/guix.texi:38407
  58410. #, no-wrap
  58411. msgid "@code{device} (default: @code{\"/dev/ttyS0\"})"
  58412. msgstr ""
  58413. #. type: table
  58414. #: guix-git/doc/guix.texi:38409
  58415. msgid "The device file to connect to the device."
  58416. msgstr ""
  58417. #. type: table
  58418. #: guix-git/doc/guix.texi:38413
  58419. msgid "Baud rate to use for the serial connection. Should be a number or @code{#f}."
  58420. msgstr ""
  58421. #. type: item
  58422. #: guix-git/doc/guix.texi:38414
  58423. #, no-wrap
  58424. msgid "@code{log-file} (default: @code{#f})"
  58425. msgstr ""
  58426. #. type: table
  58427. #: guix-git/doc/guix.texi:38416
  58428. msgid "If true, this must be the name of a file to log messages to."
  58429. msgstr ""
  58430. #. type: subsubheading
  58431. #: guix-git/doc/guix.texi:38419
  58432. #, fuzzy, no-wrap
  58433. msgid "Dictionary Service"
  58434. msgstr "定义服务"
  58435. #. type: cindex
  58436. #: guix-git/doc/guix.texi:38420
  58437. #, no-wrap
  58438. msgid "dictionary"
  58439. msgstr ""
  58440. #. type: Plain text
  58441. #: guix-git/doc/guix.texi:38423
  58442. msgid "The @code{(gnu services dict)} module provides the following service:"
  58443. msgstr ""
  58444. #. type: defvar
  58445. #: guix-git/doc/guix.texi:38424
  58446. #, fuzzy, no-wrap
  58447. msgid "dicod-service-type"
  58448. msgstr "邮件服务"
  58449. #. type: defvar
  58450. #: guix-git/doc/guix.texi:38427
  58451. 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})."
  58452. msgstr ""
  58453. #. type: defvar
  58454. #: guix-git/doc/guix.texi:38431
  58455. 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})."
  58456. msgstr ""
  58457. #. type: deftp
  58458. #: guix-git/doc/guix.texi:38433
  58459. #, no-wrap
  58460. msgid "{Data Type} dicod-configuration"
  58461. msgstr ""
  58462. #. type: deftp
  58463. #: guix-git/doc/guix.texi:38435
  58464. msgid "Data type representing the configuration of dicod."
  58465. msgstr ""
  58466. #. type: item
  58467. #: guix-git/doc/guix.texi:38437
  58468. #, no-wrap
  58469. msgid "@code{dico} (default: @var{dico})"
  58470. msgstr ""
  58471. #. type: table
  58472. #: guix-git/doc/guix.texi:38439
  58473. msgid "Package object of the GNU Dico dictionary server."
  58474. msgstr ""
  58475. #. type: item
  58476. #: guix-git/doc/guix.texi:38440
  58477. #, no-wrap
  58478. msgid "@code{interfaces} (default: @var{'(\"localhost\")})"
  58479. msgstr ""
  58480. #. type: table
  58481. #: guix-git/doc/guix.texi:38444
  58482. 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})."
  58483. msgstr ""
  58484. #. type: item
  58485. #: guix-git/doc/guix.texi:38445
  58486. #, no-wrap
  58487. msgid "@code{handlers} (default: @var{'()})"
  58488. msgstr ""
  58489. #. type: table
  58490. #: guix-git/doc/guix.texi:38447
  58491. msgid "List of @code{<dicod-handler>} objects denoting handlers (module instances)."
  58492. msgstr ""
  58493. #. type: item
  58494. #: guix-git/doc/guix.texi:38448
  58495. #, no-wrap
  58496. msgid "@code{databases} (default: @var{(list %dicod-database:gcide)})"
  58497. msgstr ""
  58498. #. type: table
  58499. #: guix-git/doc/guix.texi:38450
  58500. msgid "List of @code{<dicod-database>} objects denoting dictionaries to be served."
  58501. msgstr ""
  58502. #. type: deftp
  58503. #: guix-git/doc/guix.texi:38453
  58504. #, no-wrap
  58505. msgid "{Data Type} dicod-handler"
  58506. msgstr ""
  58507. #. type: deftp
  58508. #: guix-git/doc/guix.texi:38455
  58509. msgid "Data type representing a dictionary handler (module instance)."
  58510. msgstr ""
  58511. #. type: table
  58512. #: guix-git/doc/guix.texi:38459
  58513. msgid "Name of the handler (module instance)."
  58514. msgstr ""
  58515. #. type: item
  58516. #: guix-git/doc/guix.texi:38460
  58517. #, no-wrap
  58518. msgid "@code{module} (default: @var{#f})"
  58519. msgstr ""
  58520. #. type: table
  58521. #: guix-git/doc/guix.texi:38464
  58522. 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})."
  58523. msgstr ""
  58524. #. type: table
  58525. #: guix-git/doc/guix.texi:38467
  58526. msgid "List of strings or gexps representing the arguments for the module handler"
  58527. msgstr ""
  58528. #. type: deftp
  58529. #: guix-git/doc/guix.texi:38470
  58530. #, no-wrap
  58531. msgid "{Data Type} dicod-database"
  58532. msgstr ""
  58533. #. type: deftp
  58534. #: guix-git/doc/guix.texi:38472
  58535. msgid "Data type representing a dictionary database."
  58536. msgstr ""
  58537. #. type: table
  58538. #: guix-git/doc/guix.texi:38476
  58539. msgid "Name of the database, will be used in DICT commands."
  58540. msgstr ""
  58541. #. type: code{#1}
  58542. #: guix-git/doc/guix.texi:38477
  58543. #, no-wrap
  58544. msgid "handler"
  58545. msgstr ""
  58546. #. type: table
  58547. #: guix-git/doc/guix.texi:38480
  58548. msgid "Name of the dicod handler (module instance) used by this database (@pxref{Handlers,,, dico, GNU Dico Manual})."
  58549. msgstr ""
  58550. #. type: item
  58551. #: guix-git/doc/guix.texi:38481
  58552. #, no-wrap
  58553. msgid "@code{complex?} (default: @var{#f})"
  58554. msgstr ""
  58555. #. type: table
  58556. #: guix-git/doc/guix.texi:38484
  58557. msgid "Whether the database configuration complex. The complex configuration will need a corresponding @code{<dicod-handler>} object, otherwise not."
  58558. msgstr ""
  58559. #. type: table
  58560. #: guix-git/doc/guix.texi:38488
  58561. msgid "List of strings or gexps representing the arguments for the database (@pxref{Databases,,, dico, GNU Dico Manual})."
  58562. msgstr ""
  58563. #. type: defvar
  58564. #: guix-git/doc/guix.texi:38491
  58565. #, no-wrap
  58566. msgid "%dicod-database:gcide"
  58567. msgstr ""
  58568. #. type: defvar
  58569. #: guix-git/doc/guix.texi:38494
  58570. msgid "A @code{<dicod-database>} object serving the GNU Collaborative International Dictionary of English using the @code{gcide} package."
  58571. msgstr ""
  58572. #. type: Plain text
  58573. #: guix-git/doc/guix.texi:38497
  58574. msgid "The following is an example @code{dicod-service-type} configuration."
  58575. msgstr ""
  58576. #. type: lisp
  58577. #: guix-git/doc/guix.texi:38513
  58578. #, no-wrap
  58579. msgid ""
  58580. "(service dicod-service-type\n"
  58581. " (dicod-configuration\n"
  58582. " (handlers (list\n"
  58583. " (dicod-handler\n"
  58584. " (name \"wordnet\")\n"
  58585. " (module \"wordnet\")\n"
  58586. " (options\n"
  58587. " (list #~(string-append \"wnhome=\" #$wordnet))))))\n"
  58588. " (databases (list\n"
  58589. " (dicod-database\n"
  58590. " (name \"wordnet\")\n"
  58591. " (complex? #t)\n"
  58592. " (handler \"wordnet\"))\n"
  58593. " %dicod-database:gcide))))\n"
  58594. msgstr ""
  58595. #. type: cindex
  58596. #: guix-git/doc/guix.texi:38515
  58597. #, no-wrap
  58598. msgid "Docker"
  58599. msgstr ""
  58600. #. type: subsubheading
  58601. #: guix-git/doc/guix.texi:38516
  58602. #, no-wrap
  58603. msgid "Docker Service"
  58604. msgstr ""
  58605. #. type: Plain text
  58606. #: guix-git/doc/guix.texi:38519
  58607. msgid "The @code{(gnu services docker)} module provides the following services."
  58608. msgstr ""
  58609. #. type: defvar
  58610. #: guix-git/doc/guix.texi:38520
  58611. #, fuzzy, no-wrap
  58612. msgid "docker-service-type"
  58613. msgstr "邮件服务"
  58614. #. type: defvar
  58615. #: guix-git/doc/guix.texi:38525
  58616. 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."
  58617. msgstr ""
  58618. #. type: deftp
  58619. #: guix-git/doc/guix.texi:38528
  58620. #, no-wrap
  58621. msgid "{Data Type} docker-configuration"
  58622. msgstr ""
  58623. #. type: deftp
  58624. #: guix-git/doc/guix.texi:38530
  58625. msgid "This is the data type representing the configuration of Docker and Containerd."
  58626. msgstr ""
  58627. #. type: item
  58628. #: guix-git/doc/guix.texi:38533
  58629. #, fuzzy, no-wrap
  58630. msgid "@code{docker} (default: @code{docker})"
  58631. msgstr "@code{xfce}(默认值:@code{xfce})"
  58632. #. type: table
  58633. #: guix-git/doc/guix.texi:38535
  58634. msgid "The Docker daemon package to use."
  58635. msgstr ""
  58636. #. type: item
  58637. #: guix-git/doc/guix.texi:38536
  58638. #, fuzzy, no-wrap
  58639. msgid "@code{docker-cli} (default: @code{docker-cli})"
  58640. msgstr "@code{xfce}(默认值:@code{xfce})"
  58641. #. type: table
  58642. #: guix-git/doc/guix.texi:38538
  58643. msgid "The Docker client package to use."
  58644. msgstr ""
  58645. #. type: item
  58646. #: guix-git/doc/guix.texi:38539
  58647. #, no-wrap
  58648. msgid "@code{containerd} (default: @var{containerd})"
  58649. msgstr ""
  58650. #. type: table
  58651. #: guix-git/doc/guix.texi:38541
  58652. msgid "The Containerd package to use."
  58653. msgstr ""
  58654. #. type: item
  58655. #: guix-git/doc/guix.texi:38542
  58656. #, no-wrap
  58657. msgid "@code{proxy} (default @var{docker-libnetwork-cmd-proxy})"
  58658. msgstr ""
  58659. #. type: table
  58660. #: guix-git/doc/guix.texi:38544
  58661. msgid "The Docker user-land networking proxy package to use."
  58662. msgstr ""
  58663. #. type: item
  58664. #: guix-git/doc/guix.texi:38545
  58665. #, fuzzy, no-wrap
  58666. msgid "@code{enable-proxy?} (default @code{#t})"
  58667. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  58668. #. type: table
  58669. #: guix-git/doc/guix.texi:38547
  58670. msgid "Enable or disable the use of the Docker user-land networking proxy."
  58671. msgstr ""
  58672. #. type: item
  58673. #: guix-git/doc/guix.texi:38548
  58674. #, fuzzy, no-wrap
  58675. msgid "@code{debug?} (default @code{#f})"
  58676. msgstr "@code{challenge}(默认值:@code{#f})"
  58677. #. type: table
  58678. #: guix-git/doc/guix.texi:38550
  58679. #, fuzzy
  58680. msgid "Enable or disable debug output."
  58681. msgstr "怎么开启或关闭substitute。"
  58682. #. type: item
  58683. #: guix-git/doc/guix.texi:38551
  58684. #, fuzzy, no-wrap
  58685. msgid "@code{enable-iptables?} (default @code{#t})"
  58686. msgstr "@code{mate}(默认值:@code{mate})"
  58687. #. type: table
  58688. #: guix-git/doc/guix.texi:38553
  58689. msgid "Enable or disable the addition of iptables rules."
  58690. msgstr ""
  58691. #. type: item
  58692. #: guix-git/doc/guix.texi:38554
  58693. #, fuzzy, no-wrap
  58694. msgid "@code{environment-variables} (default: @code{'()})"
  58695. msgstr "@code{features} (@code{'()})"
  58696. #. type: table
  58697. #: guix-git/doc/guix.texi:38556
  58698. msgid "List of environment variables to set for @command{dockerd}."
  58699. msgstr ""
  58700. #. type: table
  58701. #: guix-git/doc/guix.texi:38559
  58702. msgid "This must be a list of strings where each string has the form @samp{@var{key}=@var{value}} as in this example:"
  58703. msgstr ""
  58704. #. type: lisp
  58705. #: guix-git/doc/guix.texi:38563
  58706. #, no-wrap
  58707. msgid ""
  58708. "(list \"LANGUAGE=eo:ca:eu\"\n"
  58709. " \"TMPDIR=/tmp/dockerd\")\n"
  58710. msgstr ""
  58711. #. type: cindex
  58712. #: guix-git/doc/guix.texi:38568
  58713. #, no-wrap
  58714. msgid "Singularity, container service"
  58715. msgstr ""
  58716. #. type: defvar
  58717. #: guix-git/doc/guix.texi:38569
  58718. #, fuzzy, no-wrap
  58719. msgid "singularity-service-type"
  58720. msgstr "邮件服务"
  58721. #. type: defvar
  58722. #: guix-git/doc/guix.texi:38574
  58723. 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."
  58724. msgstr ""
  58725. #. type: defvar
  58726. #: guix-git/doc/guix.texi:38578
  58727. 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."
  58728. msgstr ""
  58729. #. type: cindex
  58730. #: guix-git/doc/guix.texi:38580
  58731. #, no-wrap
  58732. msgid "Audit"
  58733. msgstr ""
  58734. #. type: subsubheading
  58735. #: guix-git/doc/guix.texi:38581
  58736. #, fuzzy, no-wrap
  58737. msgid "Auditd Service"
  58738. msgstr "音频服务"
  58739. #. type: Plain text
  58740. #: guix-git/doc/guix.texi:38584
  58741. msgid "The @code{(gnu services auditd)} module provides the following service."
  58742. msgstr ""
  58743. #. type: defvar
  58744. #: guix-git/doc/guix.texi:38585
  58745. #, fuzzy, no-wrap
  58746. msgid "auditd-service-type"
  58747. msgstr "邮件服务"
  58748. #. type: defvar
  58749. #: guix-git/doc/guix.texi:38590
  58750. 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."
  58751. msgstr ""
  58752. #. type: defvar
  58753. #: guix-git/doc/guix.texi:38592
  58754. msgid "Examples of things that can be tracked:"
  58755. msgstr ""
  58756. #. type: enumerate
  58757. #: guix-git/doc/guix.texi:38596
  58758. #, fuzzy
  58759. msgid "File accesses"
  58760. msgstr "文件系统"
  58761. #. type: enumerate
  58762. #: guix-git/doc/guix.texi:38598
  58763. #, fuzzy
  58764. msgid "System calls"
  58765. msgstr "系统安装"
  58766. #. type: enumerate
  58767. #: guix-git/doc/guix.texi:38600
  58768. msgid "Invoked commands"
  58769. msgstr ""
  58770. #. type: enumerate
  58771. #: guix-git/doc/guix.texi:38602
  58772. msgid "Failed login attempts"
  58773. msgstr ""
  58774. #. type: enumerate
  58775. #: guix-git/doc/guix.texi:38604
  58776. msgid "Firewall filtering"
  58777. msgstr ""
  58778. #. type: enumerate
  58779. #: guix-git/doc/guix.texi:38606
  58780. #, fuzzy
  58781. msgid "Network access"
  58782. msgstr "网络服务"
  58783. #. type: defvar
  58784. #: guix-git/doc/guix.texi:38617
  58785. 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}."
  58786. msgstr ""
  58787. #. type: deftp
  58788. #: guix-git/doc/guix.texi:38620
  58789. #, fuzzy, no-wrap
  58790. msgid "{Data Type} auditd-configuration"
  58791. msgstr "{数据类型} build-machine"
  58792. #. type: deftp
  58793. #: guix-git/doc/guix.texi:38622
  58794. msgid "This is the data type representing the configuration of auditd."
  58795. msgstr ""
  58796. #. type: item
  58797. #: guix-git/doc/guix.texi:38625
  58798. #, fuzzy, no-wrap
  58799. msgid "@code{audit} (default: @code{audit})"
  58800. msgstr "@code{mate}(默认值:@code{mate})"
  58801. #. type: table
  58802. #: guix-git/doc/guix.texi:38627
  58803. #, fuzzy
  58804. msgid "The audit package to use."
  58805. msgstr "软件包数据类型。"
  58806. #. type: item
  58807. #: guix-git/doc/guix.texi:38628
  58808. #, no-wrap
  58809. msgid "@code{configuration-directory} (default: @code{%default-auditd-configuration-directory})"
  58810. msgstr ""
  58811. #. type: table
  58812. #: guix-git/doc/guix.texi:38632
  58813. 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."
  58814. msgstr ""
  58815. #. type: cindex
  58816. #: guix-git/doc/guix.texi:38636
  58817. #, no-wrap
  58818. msgid "rshiny"
  58819. msgstr ""
  58820. #. type: subsubheading
  58821. #: guix-git/doc/guix.texi:38637
  58822. #, fuzzy, no-wrap
  58823. msgid "R-Shiny service"
  58824. msgstr "电话服务。"
  58825. #. type: Plain text
  58826. #: guix-git/doc/guix.texi:38640
  58827. msgid "The @code{(gnu services science)} module provides the following service."
  58828. msgstr ""
  58829. #. type: defvar
  58830. #: guix-git/doc/guix.texi:38641
  58831. #, fuzzy, no-wrap
  58832. msgid "rshiny-service-type"
  58833. msgstr "邮件服务"
  58834. #. type: defvar
  58835. #: guix-git/doc/guix.texi:38646
  58836. 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}."
  58837. msgstr ""
  58838. #. type: deftp
  58839. #: guix-git/doc/guix.texi:38647
  58840. #, no-wrap
  58841. msgid "{Data Type} rshiny-configuration"
  58842. msgstr ""
  58843. #. type: deftp
  58844. #: guix-git/doc/guix.texi:38649
  58845. msgid "This is the data type representing the configuration of rshiny."
  58846. msgstr ""
  58847. #. type: item
  58848. #: guix-git/doc/guix.texi:38652
  58849. #, fuzzy, no-wrap
  58850. msgid "@code{package} (default: @code{r-shiny})"
  58851. msgstr "@code{challenge}(默认值:@code{#f})"
  58852. #. type: table
  58853. #: guix-git/doc/guix.texi:38654
  58854. #, fuzzy
  58855. msgid "The package to use."
  58856. msgstr "软件包数据类型。"
  58857. #. type: item
  58858. #: guix-git/doc/guix.texi:38655
  58859. #, fuzzy, no-wrap
  58860. msgid "@code{binary} (default @code{\"rshiny\"})"
  58861. msgstr "@code{display}(默认值:@code{\":0\"})"
  58862. #. type: table
  58863. #: guix-git/doc/guix.texi:38658
  58864. msgid "The name of the binary or shell script located at @code{package/bin/} to run when the service is run."
  58865. msgstr ""
  58866. #. type: table
  58867. #: guix-git/doc/guix.texi:38660
  58868. msgid "The common way to create this file is as follows:"
  58869. msgstr ""
  58870. #. type: lisp
  58871. #: guix-git/doc/guix.texi:38677
  58872. #, no-wrap
  58873. msgid ""
  58874. "@dots{}\n"
  58875. "(let* ((out (assoc-ref %outputs \"out\"))\n"
  58876. " (targetdir (string-append out \"/share/\" ,name))\n"
  58877. " (app (string-append out \"/bin/\" ,name))\n"
  58878. " (Rbin (search-input-file %build-inputs \"/bin/Rscript\")))\n"
  58879. " ;; @dots{}\n"
  58880. " (mkdir-p (string-append out \"/bin\"))\n"
  58881. " (call-with-output-file app\n"
  58882. " (lambda (port)\n"
  58883. " (format port\n"
  58884. "\"#!~a\n"
  58885. "library(shiny)\n"
  58886. "setwd(\\\"~a\\\")\n"
  58887. "runApp(launch.browser=0, port=4202)~%\\n\"\n"
  58888. " Rbin targetdir))))\n"
  58889. msgstr ""
  58890. #. type: cindex
  58891. #: guix-git/doc/guix.texi:38683
  58892. #, no-wrap
  58893. msgid "Nix"
  58894. msgstr ""
  58895. #. type: subsubheading
  58896. #: guix-git/doc/guix.texi:38684
  58897. #, fuzzy, no-wrap
  58898. msgid "Nix service"
  58899. msgstr "DNS服务"
  58900. #. type: Plain text
  58901. #: guix-git/doc/guix.texi:38687
  58902. msgid "The @code{(gnu services nix)} module provides the following service."
  58903. msgstr ""
  58904. #. type: defvar
  58905. #: guix-git/doc/guix.texi:38688
  58906. #, fuzzy, no-wrap
  58907. msgid "nix-service-type"
  58908. msgstr "邮件服务"
  58909. #. type: defvar
  58910. #: guix-git/doc/guix.texi:38693
  58911. 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:"
  58912. msgstr ""
  58913. #. type: lisp
  58914. #: guix-git/doc/guix.texi:38698
  58915. #, no-wrap
  58916. msgid ""
  58917. "(use-modules (gnu))\n"
  58918. "(use-service-modules nix)\n"
  58919. "(use-package-modules package-management)\n"
  58920. "\n"
  58921. msgstr ""
  58922. #. type: lisp
  58923. #: guix-git/doc/guix.texi:38703
  58924. #, no-wrap
  58925. msgid ""
  58926. "(operating-system\n"
  58927. " ;; @dots{}\n"
  58928. " (packages (append (list nix)\n"
  58929. " %base-packages))\n"
  58930. "\n"
  58931. msgstr ""
  58932. #. type: lisp
  58933. #: guix-git/doc/guix.texi:38706
  58934. #, no-wrap
  58935. msgid ""
  58936. " (services (append (list (service nix-service-type))\n"
  58937. " %base-services)))\n"
  58938. msgstr ""
  58939. #. type: defvar
  58940. #: guix-git/doc/guix.texi:38709
  58941. msgid "After @command{guix system reconfigure} configure Nix for your user:"
  58942. msgstr ""
  58943. #. type: item
  58944. #: guix-git/doc/guix.texi:38711
  58945. #, no-wrap
  58946. msgid "Add a Nix channel and update it. See"
  58947. msgstr ""
  58948. #. type: itemize
  58949. #: guix-git/doc/guix.texi:38713
  58950. msgid "@url{https://nixos.org/nix/manual/, Nix Package Manager Guide}."
  58951. msgstr ""
  58952. #. type: item
  58953. #: guix-git/doc/guix.texi:38714
  58954. #, no-wrap
  58955. msgid "Create a symlink to your profile and activate Nix profile:"
  58956. msgstr ""
  58957. #. type: example
  58958. #: guix-git/doc/guix.texi:38720
  58959. #, no-wrap
  58960. msgid ""
  58961. "$ ln -s \"/nix/var/nix/profiles/per-user/$USER/profile\" ~/.nix-profile\n"
  58962. "$ source /run/current-system/profile/etc/profile.d/nix.sh\n"
  58963. msgstr ""
  58964. #. type: deftp
  58965. #: guix-git/doc/guix.texi:38724
  58966. #, fuzzy, no-wrap
  58967. msgid "{Data Type} nix-configuration"
  58968. msgstr "{数据类型} build-machine"
  58969. #. type: deftp
  58970. #: guix-git/doc/guix.texi:38726
  58971. msgid "This data type represents the configuration of the Nix daemon."
  58972. msgstr ""
  58973. #. type: item
  58974. #: guix-git/doc/guix.texi:38728
  58975. #, fuzzy, no-wrap
  58976. msgid "@code{nix} (default: @code{nix})"
  58977. msgstr "@code{xfce}(默认值:@code{xfce})"
  58978. #. type: table
  58979. #: guix-git/doc/guix.texi:38730
  58980. #, fuzzy
  58981. msgid "The Nix package to use."
  58982. msgstr "软件包数据类型。"
  58983. #. type: item
  58984. #: guix-git/doc/guix.texi:38731
  58985. #, fuzzy, no-wrap
  58986. msgid "@code{sandbox} (default: @code{#t})"
  58987. msgstr "@code{speed}(默认值:@code{1.0})"
  58988. #. type: table
  58989. #: guix-git/doc/guix.texi:38733
  58990. msgid "Specifies whether builds are sandboxed by default."
  58991. msgstr ""
  58992. #. type: item
  58993. #: guix-git/doc/guix.texi:38734
  58994. #, fuzzy, no-wrap
  58995. msgid "@code{build-directory} (default: @code{\"/tmp\"})"
  58996. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  58997. #. type: table
  58998. #: guix-git/doc/guix.texi:38738
  58999. msgid "The directory where build directory are stored during builds. This is useful to change if, for example, the default location does not have enough space to hold build trees for big packages."
  59000. msgstr ""
  59001. #. type: table
  59002. #: guix-git/doc/guix.texi:38742
  59003. msgid "This is similar to setting the @env{TMPDIR} environment variable for @command{guix-daemon}. @ref{Build Environment Setup, @env{TMPDIR}}, for more info."
  59004. msgstr ""
  59005. #. type: item
  59006. #: guix-git/doc/guix.texi:38743
  59007. #, fuzzy, no-wrap
  59008. msgid "@code{build-sandbox-items} (default: @code{'()})"
  59009. msgstr "@code{includes}(默认值:@code{'()})"
  59010. #. type: table
  59011. #: guix-git/doc/guix.texi:38746
  59012. msgid "This is a list of strings or objects appended to the @code{build-sandbox-items} field of the configuration file."
  59013. msgstr ""
  59014. #. type: table
  59015. #: guix-git/doc/guix.texi:38754
  59016. msgid "Extra command line options for @code{nix-service-type}."
  59017. msgstr ""
  59018. #. type: cindex
  59019. #: guix-git/doc/guix.texi:38757
  59020. #, no-wrap
  59021. msgid "Fail2Ban"
  59022. msgstr ""
  59023. #. type: subsubheading
  59024. #: guix-git/doc/guix.texi:38758
  59025. #, fuzzy, no-wrap
  59026. msgid "Fail2Ban service"
  59027. msgstr "邮件服务"
  59028. #. type: Plain text
  59029. #: guix-git/doc/guix.texi:38764
  59030. msgid "@uref{http://www.fail2ban.org/, @code{fail2ban}} scans log files (e.g. @code{/var/log/apache/error_log}) and bans IP addresses that show malicious signs -- repeated password failures, attempts to make use of exploits, etc."
  59031. msgstr ""
  59032. #. type: Plain text
  59033. #: guix-git/doc/guix.texi:38767
  59034. msgid "@code{fail2ban-service-type} service type is provided by the @code{(gnu services security)} module."
  59035. msgstr ""
  59036. #. type: Plain text
  59037. #: guix-git/doc/guix.texi:38770
  59038. msgid "This service type runs the @code{fail2ban} daemon. It can be configured in various ways, which are:"
  59039. msgstr ""
  59040. #. type: item
  59041. #: guix-git/doc/guix.texi:38772
  59042. #, fuzzy, no-wrap
  59043. msgid "Basic configuration"
  59044. msgstr "系统配置"
  59045. #. type: table
  59046. #: guix-git/doc/guix.texi:38775
  59047. msgid "The basic parameters of the Fail2Ban service can be configured via its @code{fail2ban} configuration, which is documented below."
  59048. msgstr ""
  59049. #. type: item
  59050. #: guix-git/doc/guix.texi:38776
  59051. #, no-wrap
  59052. msgid "User-specified jail extensions"
  59053. msgstr ""
  59054. #. type: table
  59055. #: guix-git/doc/guix.texi:38779
  59056. msgid "The @code{fail2ban-jail-service} function can be used to add new Fail2Ban jails."
  59057. msgstr ""
  59058. #. type: item
  59059. #: guix-git/doc/guix.texi:38780
  59060. #, no-wrap
  59061. msgid "Shepherd extension mechanism"
  59062. msgstr ""
  59063. #. type: table
  59064. #: guix-git/doc/guix.texi:38783
  59065. msgid "Service developers can extend the @code{fail2ban-service-type} service type itself via the usual service extension mechanism."
  59066. msgstr ""
  59067. #. type: defvar
  59068. #: guix-git/doc/guix.texi:38785
  59069. #, fuzzy, no-wrap
  59070. msgid "fail2ban-service-type"
  59071. msgstr "邮件服务"
  59072. #. type: defvar
  59073. #: guix-git/doc/guix.texi:38789
  59074. msgid "This is the type of the service that runs @code{fail2ban} daemon. Below is an example of a basic, explicit configuration:"
  59075. msgstr ""
  59076. #. type: lisp
  59077. #: guix-git/doc/guix.texi:38804
  59078. #, no-wrap
  59079. msgid ""
  59080. "(append\n"
  59081. " (list\n"
  59082. " (service fail2ban-service-type\n"
  59083. " (fail2ban-configuration\n"
  59084. " (extra-jails\n"
  59085. " (list\n"
  59086. " (fail2ban-jail-configuration\n"
  59087. " (name \"sshd\")\n"
  59088. " (enabled? #t))))))\n"
  59089. " ;; There is no implicit dependency on an actual SSH\n"
  59090. " ;; service, so you need to provide one.\n"
  59091. " (service openssh-service-type))\n"
  59092. " %base-services)\n"
  59093. msgstr ""
  59094. #. type: defun
  59095. #: guix-git/doc/guix.texi:38807
  59096. #, fuzzy, no-wrap
  59097. msgid "fail2ban-jail-service svc-type jail"
  59098. msgstr "邮件服务"
  59099. #. type: defun
  59100. #: guix-git/doc/guix.texi:38810
  59101. msgid "Extend @var{svc-type}, a @code{<service-type>} object with @var{jail}, a @code{fail2ban-jail-configuration} object."
  59102. msgstr ""
  59103. #. type: lisp
  59104. #: guix-git/doc/guix.texi:38826
  59105. #, no-wrap
  59106. msgid ""
  59107. "(append\n"
  59108. " (list\n"
  59109. " (service\n"
  59110. " ;; The 'fail2ban-jail-service' procedure can extend any service type\n"
  59111. " ;; with a fail2ban jail. This removes the requirement to explicitly\n"
  59112. " ;; extend services with fail2ban-service-type.\n"
  59113. " (fail2ban-jail-service\n"
  59114. " openssh-service-type\n"
  59115. " (fail2ban-jail-configuration\n"
  59116. " (name \"sshd\")\n"
  59117. " (enabled? #t)))\n"
  59118. " (openssh-configuration ...))))\n"
  59119. msgstr ""
  59120. #. type: Plain text
  59121. #: guix-git/doc/guix.texi:38831
  59122. msgid "Below is the reference for the different @code{jail-service-type} configuration records."
  59123. msgstr ""
  59124. #. type: deftp
  59125. #: guix-git/doc/guix.texi:38836
  59126. #, fuzzy, no-wrap
  59127. msgid "{Data Type} fail2ban-configuration"
  59128. msgstr "{数据类型} build-machine"
  59129. #. type: deftp
  59130. #: guix-git/doc/guix.texi:38838
  59131. msgid "Available @code{fail2ban-configuration} fields are:"
  59132. msgstr ""
  59133. #. type: item
  59134. #: guix-git/doc/guix.texi:38840
  59135. #, fuzzy, no-wrap
  59136. msgid "@code{fail2ban} (default: @code{fail2ban}) (type: package)"
  59137. msgstr "@code{xfce}(默认值:@code{xfce})"
  59138. #. type: table
  59139. #: guix-git/doc/guix.texi:38844
  59140. msgid "The @code{fail2ban} package to use. It is used for both binaries and as base default configuration that is to be extended with @code{<fail2ban-jail-configuration>} objects."
  59141. msgstr ""
  59142. #. type: item
  59143. #: guix-git/doc/guix.texi:38845
  59144. #, fuzzy, no-wrap
  59145. msgid "@code{run-directory} (default: @code{\"/var/run/fail2ban\"}) (type: string)"
  59146. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  59147. #. type: table
  59148. #: guix-git/doc/guix.texi:38847
  59149. msgid "The state directory for the @code{fail2ban} daemon."
  59150. msgstr ""
  59151. #. type: item
  59152. #: guix-git/doc/guix.texi:38848
  59153. #, fuzzy, no-wrap
  59154. msgid "@code{jails} (default: @code{'()}) (type: list-of-fail2ban-jail-configurations)"
  59155. msgstr "@code{xfce}(默认值:@code{xfce})"
  59156. #. type: table
  59157. #: guix-git/doc/guix.texi:38851
  59158. msgid "Instances of @code{<fail2ban-jail-configuration>} collected from extensions."
  59159. msgstr ""
  59160. #. type: item
  59161. #: guix-git/doc/guix.texi:38852
  59162. #, fuzzy, no-wrap
  59163. msgid "@code{extra-jails} (default: @code{'()}) (type: list-of-fail2ban-jail-configurations)"
  59164. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  59165. #. type: table
  59166. #: guix-git/doc/guix.texi:38854
  59167. msgid "Instances of @code{<fail2ban-jail-configuration>} explicitly provided."
  59168. msgstr ""
  59169. #. type: item
  59170. #: guix-git/doc/guix.texi:38855 guix-git/doc/guix.texi:38984
  59171. #, fuzzy, no-wrap
  59172. msgid "@code{extra-content} (default: @code{'()}) (type: text-config)"
  59173. msgstr "@code{challenge}(默认值:@code{#f})"
  59174. #. type: table
  59175. #: guix-git/doc/guix.texi:38858
  59176. msgid "Extra raw content to add to the end of the @file{jail.local} file, provided as a list of file-like objects."
  59177. msgstr ""
  59178. #. type: deftp
  59179. #: guix-git/doc/guix.texi:38863
  59180. #, fuzzy, no-wrap
  59181. msgid "{Data Type} fail2ban-ignore-cache-configuration"
  59182. msgstr "{数据类型} build-machine"
  59183. #. type: deftp
  59184. #: guix-git/doc/guix.texi:38865
  59185. msgid "Available @code{fail2ban-ignore-cache-configuration} fields are:"
  59186. msgstr ""
  59187. #. type: item
  59188. #: guix-git/doc/guix.texi:38867
  59189. #, fuzzy, no-wrap
  59190. msgid "@code{key} (type: string)"
  59191. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  59192. #. type: table
  59193. #: guix-git/doc/guix.texi:38869
  59194. msgid "Cache key."
  59195. msgstr ""
  59196. #. type: item
  59197. #: guix-git/doc/guix.texi:38870
  59198. #, fuzzy, no-wrap
  59199. msgid "@code{max-count} (type: integer)"
  59200. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  59201. #. type: table
  59202. #: guix-git/doc/guix.texi:38872
  59203. msgid "Cache size."
  59204. msgstr ""
  59205. #. type: item
  59206. #: guix-git/doc/guix.texi:38873
  59207. #, fuzzy, no-wrap
  59208. msgid "@code{max-time} (type: integer)"
  59209. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  59210. #. type: table
  59211. #: guix-git/doc/guix.texi:38875
  59212. msgid "Cache time."
  59213. msgstr ""
  59214. #. type: deftp
  59215. #: guix-git/doc/guix.texi:38880
  59216. #, fuzzy, no-wrap
  59217. msgid "{Data Type} fail2ban-jail-action-configuration"
  59218. msgstr "{数据类型} build-machine"
  59219. #. type: deftp
  59220. #: guix-git/doc/guix.texi:38882
  59221. msgid "Available @code{fail2ban-jail-action-configuration} fields are:"
  59222. msgstr ""
  59223. #. type: table
  59224. #: guix-git/doc/guix.texi:38886
  59225. msgid "Action name."
  59226. msgstr ""
  59227. #. type: item
  59228. #: guix-git/doc/guix.texi:38887
  59229. #, fuzzy, no-wrap
  59230. msgid "@code{arguments} (default: @code{'()}) (type: list-of-arguments)"
  59231. msgstr "@code{features} (@code{'()})"
  59232. #. type: table
  59233. #: guix-git/doc/guix.texi:38889
  59234. msgid "Action arguments."
  59235. msgstr ""
  59236. #. type: deftp
  59237. #: guix-git/doc/guix.texi:38894
  59238. #, fuzzy, no-wrap
  59239. msgid "{Data Type} fail2ban-jail-configuration"
  59240. msgstr "{数据类型} build-machine"
  59241. #. type: deftp
  59242. #: guix-git/doc/guix.texi:38896
  59243. msgid "Available @code{fail2ban-jail-configuration} fields are:"
  59244. msgstr ""
  59245. #. type: table
  59246. #: guix-git/doc/guix.texi:38900
  59247. #, fuzzy
  59248. msgid "Required name of this jail configuration."
  59249. msgstr "这个用户手册的许可证。"
  59250. #. type: table
  59251. #: guix-git/doc/guix.texi:38903
  59252. msgid "Whether this jail is enabled."
  59253. msgstr ""
  59254. #. type: item
  59255. #: guix-git/doc/guix.texi:38904
  59256. #, fuzzy, no-wrap
  59257. msgid "@code{backend} (type: maybe-symbol)"
  59258. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  59259. #. type: table
  59260. #: guix-git/doc/guix.texi:38908
  59261. msgid "Backend to use to detect changes in the @code{log-path}. The default is 'auto. To consult the defaults of the jail configuration, refer to the @file{/etc/fail2ban/jail.conf} file of the @code{fail2ban} package."
  59262. msgstr ""
  59263. #. type: item
  59264. #: guix-git/doc/guix.texi:38909
  59265. #, fuzzy, no-wrap
  59266. msgid "@code{max-retry} (type: maybe-integer)"
  59267. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  59268. #. type: table
  59269. #: guix-git/doc/guix.texi:38912
  59270. msgid "The number of failures before a host get banned (e.g. @code{(max-retry 5)})."
  59271. msgstr ""
  59272. #. type: item
  59273. #: guix-git/doc/guix.texi:38913
  59274. #, fuzzy, no-wrap
  59275. msgid "@code{max-matches} (type: maybe-integer)"
  59276. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  59277. #. type: table
  59278. #: guix-git/doc/guix.texi:38916
  59279. msgid "The number of matches stored in ticket (resolvable via tag @code{<matches>}) in action."
  59280. msgstr ""
  59281. #. type: item
  59282. #: guix-git/doc/guix.texi:38917
  59283. #, fuzzy, no-wrap
  59284. msgid "@code{find-time} (type: maybe-string)"
  59285. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  59286. #. type: table
  59287. #: guix-git/doc/guix.texi:38924
  59288. msgid "The time window during which the maximum retry count must be reached for an IP address to be banned. A host is banned if it has generated @code{max-retry} during the last @code{find-time} seconds (e.g. @code{(find-time \"10m\")}). It can be provided in seconds or using Fail2Ban's \"time abbreviation format\", as described in @command{man 5 jail.conf}."
  59289. msgstr ""
  59290. #. type: item
  59291. #: guix-git/doc/guix.texi:38925
  59292. #, fuzzy, no-wrap
  59293. msgid "@code{ban-time} (type: maybe-string)"
  59294. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  59295. #. type: table
  59296. #: guix-git/doc/guix.texi:38928
  59297. msgid "The duration, in seconds or time abbreviated format, that a ban should last. (e.g. @code{(ban-time \"10m\")})."
  59298. msgstr ""
  59299. #. type: item
  59300. #: guix-git/doc/guix.texi:38929
  59301. #, fuzzy, no-wrap
  59302. msgid "@code{ban-time-increment?} (type: maybe-boolean)"
  59303. msgstr "@code{port}(默认值:@code{22})"
  59304. #. type: table
  59305. #: guix-git/doc/guix.texi:38932
  59306. msgid "Whether to consider past bans to compute increases to the default ban time of a specific IP address."
  59307. msgstr ""
  59308. #. type: item
  59309. #: guix-git/doc/guix.texi:38933
  59310. #, fuzzy, no-wrap
  59311. msgid "@code{ban-time-factor} (type: maybe-string)"
  59312. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  59313. #. type: table
  59314. #: guix-git/doc/guix.texi:38935
  59315. msgid "The coefficient to use to compute an exponentially growing ban time."
  59316. msgstr ""
  59317. #. type: item
  59318. #: guix-git/doc/guix.texi:38936
  59319. #, fuzzy, no-wrap
  59320. msgid "@code{ban-time-formula} (type: maybe-string)"
  59321. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  59322. #. type: table
  59323. #: guix-git/doc/guix.texi:38938
  59324. msgid "This is the formula used to calculate the next value of a ban time."
  59325. msgstr ""
  59326. #. type: item
  59327. #: guix-git/doc/guix.texi:38939
  59328. #, fuzzy, no-wrap
  59329. msgid "@code{ban-time-multipliers} (type: maybe-string)"
  59330. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  59331. #. type: table
  59332. #: guix-git/doc/guix.texi:38941
  59333. msgid "Used to calculate next value of ban time instead of formula."
  59334. msgstr ""
  59335. #. type: item
  59336. #: guix-git/doc/guix.texi:38942
  59337. #, fuzzy, no-wrap
  59338. msgid "@code{ban-time-max-time} (type: maybe-string)"
  59339. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  59340. #. type: table
  59341. #: guix-git/doc/guix.texi:38944
  59342. msgid "The maximum number of seconds a ban should last."
  59343. msgstr ""
  59344. #. type: item
  59345. #: guix-git/doc/guix.texi:38945
  59346. #, fuzzy, no-wrap
  59347. msgid "@code{ban-time-rnd-time} (type: maybe-string)"
  59348. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  59349. #. type: table
  59350. #: guix-git/doc/guix.texi:38949
  59351. msgid "The maximum number of seconds a randomized ban time should last. This can be useful to stop ``clever'' botnets calculating the exact time an IP address can be unbanned again."
  59352. msgstr ""
  59353. #. type: item
  59354. #: guix-git/doc/guix.texi:38950
  59355. #, fuzzy, no-wrap
  59356. msgid "@code{ban-time-overall-jails?} (type: maybe-boolean)"
  59357. msgstr "@code{speed}(默认值:@code{1.0})"
  59358. #. type: table
  59359. #: guix-git/doc/guix.texi:38954
  59360. msgid "When true, it specifies the search of an IP address in the database should be made across all jails. Otherwise, only the current jail of the ban IP address is considered."
  59361. msgstr ""
  59362. #. type: item
  59363. #: guix-git/doc/guix.texi:38955
  59364. #, fuzzy, no-wrap
  59365. msgid "@code{ignore-self?} (type: maybe-boolean)"
  59366. msgstr "@code{speed}(默认值:@code{1.0})"
  59367. #. type: table
  59368. #: guix-git/doc/guix.texi:38957
  59369. msgid "Never ban the local machine's own IP address."
  59370. msgstr ""
  59371. #. type: item
  59372. #: guix-git/doc/guix.texi:38958
  59373. #, fuzzy, no-wrap
  59374. msgid "@code{ignore-ip} (default: @code{'()}) (type: list-of-strings)"
  59375. msgstr "@code{features} (@code{'()})"
  59376. #. type: table
  59377. #: guix-git/doc/guix.texi:38962
  59378. msgid "A list of IP addresses, CIDR masks or DNS hosts to ignore. @code{fail2ban} will not ban a host which matches an address in this list."
  59379. msgstr ""
  59380. #. type: item
  59381. #: guix-git/doc/guix.texi:38963
  59382. #, no-wrap
  59383. msgid "@code{ignore-cache} (type: maybe-fail2ban-ignore-cache-configuration)"
  59384. msgstr ""
  59385. #. type: table
  59386. #: guix-git/doc/guix.texi:38965
  59387. msgid "Provide cache parameters for the ignore failure check."
  59388. msgstr ""
  59389. #. type: item
  59390. #: guix-git/doc/guix.texi:38966
  59391. #, fuzzy, no-wrap
  59392. msgid "@code{filter} (type: maybe-fail2ban-jail-filter-configuration)"
  59393. msgstr "@code{gnome}(默认值:@code{gnome})"
  59394. #. type: table
  59395. #: guix-git/doc/guix.texi:38970
  59396. msgid "The filter to use by the jail, specified via a @code{<fail2ban-jail-filter-configuration>} object. By default, jails have names matching their filter name."
  59397. msgstr ""
  59398. #. type: item
  59399. #: guix-git/doc/guix.texi:38971
  59400. #, fuzzy, no-wrap
  59401. msgid "@code{log-time-zone} (type: maybe-string)"
  59402. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  59403. #. type: table
  59404. #: guix-git/doc/guix.texi:38973
  59405. msgid "The default time zone for log lines that do not have one."
  59406. msgstr ""
  59407. #. type: item
  59408. #: guix-git/doc/guix.texi:38974
  59409. #, fuzzy, no-wrap
  59410. msgid "@code{log-encoding} (type: maybe-symbol)"
  59411. msgstr "@code{port}(默认值:@code{22})"
  59412. #. type: table
  59413. #: guix-git/doc/guix.texi:38977
  59414. msgid "The encoding of the log files handled by the jail. Possible values are: @code{'ascii}, @code{'utf-8} and @code{'auto}."
  59415. msgstr ""
  59416. #. type: item
  59417. #: guix-git/doc/guix.texi:38978
  59418. #, fuzzy, no-wrap
  59419. msgid "@code{log-path} (default: @code{'()}) (type: list-of-strings)"
  59420. msgstr "@code{port}(默认值:@code{22})"
  59421. #. type: table
  59422. #: guix-git/doc/guix.texi:38980
  59423. #, fuzzy
  59424. msgid "The file names of the log files to be monitored."
  59425. msgstr "远程机器的主机名。"
  59426. #. type: item
  59427. #: guix-git/doc/guix.texi:38981
  59428. #, fuzzy, no-wrap
  59429. msgid "@code{action} (default: @code{'()}) (type: list-of-fail2ban-jail-actions)"
  59430. msgstr "@code{features} (@code{'()})"
  59431. #. type: table
  59432. #: guix-git/doc/guix.texi:38983
  59433. msgid "A list of @code{<fail2ban-jail-action-configuration>}."
  59434. msgstr ""
  59435. #. type: table
  59436. #: guix-git/doc/guix.texi:38987
  59437. #, fuzzy
  59438. #| msgid "Instantiating a system configuration."
  59439. msgid "Extra content for the jail configuration, provided as a list of file-like objects."
  59440. msgstr "实例化一个系统配置。"
  59441. #. type: deftp
  59442. #: guix-git/doc/guix.texi:38992
  59443. #, fuzzy, no-wrap
  59444. msgid "{Data Type} fail2ban-jail-filter-configuration"
  59445. msgstr "{数据类型} build-machine"
  59446. #. type: deftp
  59447. #: guix-git/doc/guix.texi:38994
  59448. msgid "Available @code{fail2ban-jail-filter-configuration} fields are:"
  59449. msgstr ""
  59450. #. type: table
  59451. #: guix-git/doc/guix.texi:38998
  59452. #, fuzzy
  59453. #| msgid "user interfaces"
  59454. msgid "Filter to use."
  59455. msgstr "用户界面"
  59456. #. type: item
  59457. #: guix-git/doc/guix.texi:38999
  59458. #, fuzzy, no-wrap
  59459. msgid "@code{mode} (type: maybe-string)"
  59460. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  59461. #. type: table
  59462. #: guix-git/doc/guix.texi:39001
  59463. msgid "Mode for filter."
  59464. msgstr ""
  59465. #. type: cindex
  59466. #: guix-git/doc/guix.texi:39011
  59467. #, no-wrap
  59468. msgid "setuid programs"
  59469. msgstr ""
  59470. #. type: cindex
  59471. #: guix-git/doc/guix.texi:39012
  59472. #, fuzzy, no-wrap
  59473. #| msgid "Setuid Programs"
  59474. msgid "setgid programs"
  59475. msgstr "setuid程序"
  59476. #. type: Plain text
  59477. #: guix-git/doc/guix.texi:39022
  59478. msgid "Some programs need to run with elevated 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, @command{passwd} should be @dfn{setuid-root}, meaning that it always runs with root privileges (@pxref{How Change Persona,,, libc, The GNU C Library Reference Manual}, for more info about the setuid mechanism)."
  59479. msgstr ""
  59480. #. type: Plain text
  59481. #: guix-git/doc/guix.texi:39029
  59482. 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 or setgid bits directly on files that are in the store, we let the system administrator @emph{declare} which programs should be entrusted with these additional privileges."
  59483. msgstr ""
  59484. #. type: Plain text
  59485. #: guix-git/doc/guix.texi:39036
  59486. 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:"
  59487. msgstr ""
  59488. #. type: lisp
  59489. #: guix-git/doc/guix.texi:39040
  59490. #, no-wrap
  59491. msgid ""
  59492. "(setuid-program\n"
  59493. " (program (file-append nfs-utils \"/sbin/mount.nfs\")))\n"
  59494. msgstr ""
  59495. #. type: Plain text
  59496. #: guix-git/doc/guix.texi:39045
  59497. 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:"
  59498. msgstr ""
  59499. #. type: lisp
  59500. #: guix-git/doc/guix.texi:39053
  59501. #, no-wrap
  59502. msgid ""
  59503. "(operating-system\n"
  59504. " ;; Some fields omitted...\n"
  59505. " (setuid-programs\n"
  59506. " (append (list (setuid-program\n"
  59507. " (program (file-append nfs-utils \"/sbin/mount.nfs\"))))\n"
  59508. " %setuid-programs)))\n"
  59509. msgstr ""
  59510. #. type: deftp
  59511. #: guix-git/doc/guix.texi:39055
  59512. #, fuzzy, no-wrap
  59513. msgid "{Data Type} setuid-program"
  59514. msgstr "{数据类型} build-machine"
  59515. #. type: deftp
  59516. #: guix-git/doc/guix.texi:39057
  59517. #, fuzzy
  59518. msgid "This data type represents a program with a setuid or setgid bit set."
  59519. msgstr "管理操作系统配置。"
  59520. #. type: code{#1}
  59521. #: guix-git/doc/guix.texi:39059
  59522. #, no-wrap
  59523. msgid "program"
  59524. msgstr ""
  59525. #. type: table
  59526. #: guix-git/doc/guix.texi:39061
  59527. msgid "A file-like object having its setuid and/or setgid bit set."
  59528. msgstr ""
  59529. #. type: item
  59530. #: guix-git/doc/guix.texi:39062
  59531. #, fuzzy, no-wrap
  59532. msgid "@code{setuid?} (default: @code{#t})"
  59533. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  59534. #. type: table
  59535. #: guix-git/doc/guix.texi:39064
  59536. msgid "Whether to set user setuid bit."
  59537. msgstr ""
  59538. #. type: item
  59539. #: guix-git/doc/guix.texi:39065
  59540. #, fuzzy, no-wrap
  59541. msgid "@code{setgid?} (default: @code{#f})"
  59542. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  59543. #. type: table
  59544. #: guix-git/doc/guix.texi:39067
  59545. msgid "Whether to set group setgid bit."
  59546. msgstr ""
  59547. #. type: item
  59548. #: guix-git/doc/guix.texi:39068
  59549. #, fuzzy, no-wrap
  59550. msgid "@code{user} (default: @code{0})"
  59551. msgstr "@code{port}(默认值:@code{22})"
  59552. #. type: table
  59553. #: guix-git/doc/guix.texi:39071
  59554. msgid "UID (integer) or user name (string) for the user owner of the program, defaults to root."
  59555. msgstr ""
  59556. #. type: item
  59557. #: guix-git/doc/guix.texi:39072
  59558. #, fuzzy, no-wrap
  59559. msgid "@code{group} (default: @code{0})"
  59560. msgstr "@code{gnome}(默认值:@code{gnome})"
  59561. #. type: table
  59562. #: guix-git/doc/guix.texi:39075
  59563. msgid "GID (integer) goup name (string) for the group owner of the program, defaults to root."
  59564. msgstr ""
  59565. #. type: Plain text
  59566. #: guix-git/doc/guix.texi:39081
  59567. msgid "A default set of setuid programs is defined by the @code{%setuid-programs} variable of the @code{(gnu system)} module."
  59568. msgstr ""
  59569. #. type: defvar
  59570. #: guix-git/doc/guix.texi:39082
  59571. #, fuzzy, no-wrap
  59572. #| msgid "Setuid Programs"
  59573. msgid "%setuid-programs"
  59574. msgstr "setuid程序"
  59575. #. type: defvar
  59576. #: guix-git/doc/guix.texi:39085
  59577. msgid "A list of @code{<setuid-program>} denoting common programs that are setuid-root."
  59578. msgstr ""
  59579. #. type: defvar
  59580. #: guix-git/doc/guix.texi:39088
  59581. msgid "The list includes commands such as @command{passwd}, @command{ping}, @command{su}, and @command{sudo}."
  59582. msgstr ""
  59583. #. type: Plain text
  59584. #: guix-git/doc/guix.texi:39094
  59585. 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."
  59586. msgstr ""
  59587. #. type: cindex
  59588. #: guix-git/doc/guix.texi:39098
  59589. #, no-wrap
  59590. msgid "HTTPS, certificates"
  59591. msgstr ""
  59592. #. type: cindex
  59593. #: guix-git/doc/guix.texi:39099
  59594. #, no-wrap
  59595. msgid "X.509 certificates"
  59596. msgstr ""
  59597. #. type: cindex
  59598. #: guix-git/doc/guix.texi:39100
  59599. #, no-wrap
  59600. msgid "TLS"
  59601. msgstr ""
  59602. #. type: Plain text
  59603. #: guix-git/doc/guix.texi:39107
  59604. 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."
  59605. msgstr ""
  59606. #. type: Plain text
  59607. #: guix-git/doc/guix.texi:39111
  59608. 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."
  59609. msgstr ""
  59610. #. type: Plain text
  59611. #: guix-git/doc/guix.texi:39115
  59612. 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."
  59613. msgstr ""
  59614. #. type: Plain text
  59615. #: guix-git/doc/guix.texi:39123
  59616. msgid "For users of Guix System, 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."
  59617. msgstr ""
  59618. #. type: Plain text
  59619. #: guix-git/doc/guix.texi:39128
  59620. 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."
  59621. msgstr ""
  59622. #. type: Plain text
  59623. #: guix-git/doc/guix.texi:39138
  59624. 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:"
  59625. msgstr ""
  59626. #. type: example
  59627. #: guix-git/doc/guix.texi:39144
  59628. #, no-wrap
  59629. msgid ""
  59630. "guix install nss-certs\n"
  59631. "export SSL_CERT_DIR=\"$HOME/.guix-profile/etc/ssl/certs\"\n"
  59632. "export SSL_CERT_FILE=\"$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt\"\n"
  59633. "export GIT_SSL_CAINFO=\"$SSL_CERT_FILE\"\n"
  59634. msgstr ""
  59635. #. type: Plain text
  59636. #: guix-git/doc/guix.texi:39149
  59637. 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:"
  59638. msgstr ""
  59639. #. type: example
  59640. #: guix-git/doc/guix.texi:39153
  59641. #, no-wrap
  59642. msgid ""
  59643. "guix install nss-certs\n"
  59644. "export CURL_CA_BUNDLE=\"$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt\"\n"
  59645. msgstr ""
  59646. #. type: Plain text
  59647. #: guix-git/doc/guix.texi:39157
  59648. msgid "For other applications you may want to look up the required environment variable in the relevant documentation."
  59649. msgstr ""
  59650. #. type: cindex
  59651. #: guix-git/doc/guix.texi:39162
  59652. #, no-wrap
  59653. msgid "name service switch"
  59654. msgstr ""
  59655. #. type: cindex
  59656. #: guix-git/doc/guix.texi:39163
  59657. #, no-wrap
  59658. msgid "NSS"
  59659. msgstr ""
  59660. #. type: Plain text
  59661. #: guix-git/doc/guix.texi:39172
  59662. 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})."
  59663. msgstr ""
  59664. #. type: Plain text
  59665. #: guix-git/doc/guix.texi:39179
  59666. 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}})."
  59667. msgstr ""
  59668. #. type: cindex
  59669. #: guix-git/doc/guix.texi:39180
  59670. #, no-wrap
  59671. msgid "nss-mdns"
  59672. msgstr ""
  59673. #. type: cindex
  59674. #: guix-git/doc/guix.texi:39181
  59675. #, no-wrap
  59676. msgid ".local, host name lookup"
  59677. msgstr ""
  59678. #. type: Plain text
  59679. #: guix-git/doc/guix.texi:39186
  59680. 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}:"
  59681. msgstr ""
  59682. #. type: lisp
  59683. #: guix-git/doc/guix.texi:39190
  59684. #, no-wrap
  59685. msgid ""
  59686. "(name-service-switch\n"
  59687. " (hosts (list %files ;first, check /etc/hosts\n"
  59688. "\n"
  59689. msgstr ""
  59690. #. type: lisp
  59691. #: guix-git/doc/guix.texi:39195
  59692. #, no-wrap
  59693. msgid ""
  59694. " ;; If the above did not succeed, try\n"
  59695. " ;; with 'mdns_minimal'.\n"
  59696. " (name-service\n"
  59697. " (name \"mdns_minimal\")\n"
  59698. "\n"
  59699. msgstr ""
  59700. #. type: lisp
  59701. #: guix-git/doc/guix.texi:39201
  59702. #, no-wrap
  59703. msgid ""
  59704. " ;; 'mdns_minimal' is authoritative for\n"
  59705. " ;; '.local'. When it returns \"not found\",\n"
  59706. " ;; no need to try the next methods.\n"
  59707. " (reaction (lookup-specification\n"
  59708. " (not-found => return))))\n"
  59709. "\n"
  59710. msgstr ""
  59711. #. type: lisp
  59712. #: guix-git/doc/guix.texi:39205
  59713. #, no-wrap
  59714. msgid ""
  59715. " ;; Then fall back to DNS.\n"
  59716. " (name-service\n"
  59717. " (name \"dns\"))\n"
  59718. "\n"
  59719. msgstr ""
  59720. #. type: lisp
  59721. #: guix-git/doc/guix.texi:39209
  59722. #, no-wrap
  59723. msgid ""
  59724. " ;; Finally, try with the \"full\" 'mdns'.\n"
  59725. " (name-service\n"
  59726. " (name \"mdns\")))))\n"
  59727. msgstr ""
  59728. #. type: Plain text
  59729. #: guix-git/doc/guix.texi:39214
  59730. 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."
  59731. msgstr ""
  59732. #. type: Plain text
  59733. #: guix-git/doc/guix.texi:39222
  59734. 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}})."
  59735. msgstr ""
  59736. #. type: Plain text
  59737. #: guix-git/doc/guix.texi:39225
  59738. msgid "For convenience, the following variables provide typical NSS configurations."
  59739. msgstr ""
  59740. #. type: defvar
  59741. #: guix-git/doc/guix.texi:39226
  59742. #, no-wrap
  59743. msgid "%default-nss"
  59744. msgstr ""
  59745. #. type: defvar
  59746. #: guix-git/doc/guix.texi:39229
  59747. msgid "This is the default name service switch configuration, a @code{name-service-switch} object."
  59748. msgstr ""
  59749. #. type: defvar
  59750. #: guix-git/doc/guix.texi:39231
  59751. #, no-wrap
  59752. msgid "%mdns-host-lookup-nss"
  59753. msgstr ""
  59754. #. type: defvar
  59755. #: guix-git/doc/guix.texi:39234
  59756. 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}."
  59757. msgstr ""
  59758. #. type: Plain text
  59759. #: guix-git/doc/guix.texi:39244
  59760. 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}."
  59761. msgstr ""
  59762. #. type: deftp
  59763. #: guix-git/doc/guix.texi:39245
  59764. #, no-wrap
  59765. msgid "{Data Type} name-service-switch"
  59766. msgstr ""
  59767. #. type: deftp
  59768. #: guix-git/doc/guix.texi:39250
  59769. 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."
  59770. msgstr ""
  59771. #. type: item
  59772. #: guix-git/doc/guix.texi:39252
  59773. #, no-wrap
  59774. msgid "aliases"
  59775. msgstr ""
  59776. #. type: itemx
  59777. #: guix-git/doc/guix.texi:39253
  59778. #, no-wrap
  59779. msgid "ethers"
  59780. msgstr ""
  59781. #. type: itemx
  59782. #: guix-git/doc/guix.texi:39255
  59783. #, no-wrap
  59784. msgid "gshadow"
  59785. msgstr ""
  59786. #. type: itemx
  59787. #: guix-git/doc/guix.texi:39256
  59788. #, no-wrap
  59789. msgid "hosts"
  59790. msgstr ""
  59791. #. type: itemx
  59792. #: guix-git/doc/guix.texi:39257
  59793. #, no-wrap
  59794. msgid "initgroups"
  59795. msgstr ""
  59796. #. type: itemx
  59797. #: guix-git/doc/guix.texi:39258
  59798. #, no-wrap
  59799. msgid "netgroup"
  59800. msgstr ""
  59801. #. type: itemx
  59802. #: guix-git/doc/guix.texi:39259
  59803. #, no-wrap
  59804. msgid "networks"
  59805. msgstr ""
  59806. #. type: itemx
  59807. #: guix-git/doc/guix.texi:39262
  59808. #, no-wrap
  59809. msgid "rpc"
  59810. msgstr ""
  59811. #. type: itemx
  59812. #: guix-git/doc/guix.texi:39264
  59813. #, no-wrap
  59814. msgid "shadow"
  59815. msgstr ""
  59816. #. type: table
  59817. #: guix-git/doc/guix.texi:39267
  59818. msgid "The system databases handled by the NSS@. Each of these fields must be a list of @code{<name-service>} objects (see below)."
  59819. msgstr ""
  59820. #. type: deftp
  59821. #: guix-git/doc/guix.texi:39270
  59822. #, no-wrap
  59823. msgid "{Data Type} name-service"
  59824. msgstr ""
  59825. #. type: deftp
  59826. #: guix-git/doc/guix.texi:39274
  59827. msgid "This is the data type representing an actual name service and the associated lookup action."
  59828. msgstr ""
  59829. #. type: table
  59830. #: guix-git/doc/guix.texi:39279
  59831. msgid "A string denoting the name service (@pxref{Services in the NSS configuration,,, libc, The GNU C Library Reference Manual})."
  59832. msgstr ""
  59833. #. type: table
  59834. #: guix-git/doc/guix.texi:39284
  59835. 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}})."
  59836. msgstr ""
  59837. #. type: item
  59838. #: guix-git/doc/guix.texi:39285
  59839. #, no-wrap
  59840. msgid "reaction"
  59841. msgstr ""
  59842. #. type: table
  59843. #: guix-git/doc/guix.texi:39289
  59844. 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:"
  59845. msgstr ""
  59846. #. type: lisp
  59847. #: guix-git/doc/guix.texi:39293
  59848. #, no-wrap
  59849. msgid ""
  59850. "(lookup-specification (unavailable => continue)\n"
  59851. " (success => return))\n"
  59852. msgstr ""
  59853. #. type: Plain text
  59854. #: guix-git/doc/guix.texi:39307
  59855. 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."
  59856. msgstr ""
  59857. #. type: Plain text
  59858. #: guix-git/doc/guix.texi:39316
  59859. 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:"
  59860. msgstr ""
  59861. #. type: lisp
  59862. #: guix-git/doc/guix.texi:39321
  59863. #, no-wrap
  59864. msgid ""
  59865. "(operating-system\n"
  59866. " ;; @dots{}\n"
  59867. " (initrd-modules (cons \"megaraid_sas\" %base-initrd-modules)))\n"
  59868. msgstr ""
  59869. #. type: defvar
  59870. #: guix-git/doc/guix.texi:39323
  59871. #, no-wrap
  59872. msgid "%base-initrd-modules"
  59873. msgstr ""
  59874. #. type: defvar
  59875. #: guix-git/doc/guix.texi:39325
  59876. msgid "This is the list of kernel modules included in the initrd by default."
  59877. msgstr ""
  59878. #. type: Plain text
  59879. #: guix-git/doc/guix.texi:39333
  59880. 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."
  59881. msgstr ""
  59882. #. type: Plain text
  59883. #: guix-git/doc/guix.texi:39338
  59884. 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:"
  59885. msgstr ""
  59886. #. type: lisp
  59887. #: guix-git/doc/guix.texi:39346
  59888. #, no-wrap
  59889. msgid ""
  59890. "(initrd (lambda (file-systems . rest)\n"
  59891. " ;; Create a standard initrd but set up networking\n"
  59892. " ;; with the parameters QEMU expects by default.\n"
  59893. " (apply base-initrd file-systems\n"
  59894. " #:qemu-networking? #t\n"
  59895. " rest)))\n"
  59896. msgstr ""
  59897. #. type: Plain text
  59898. #: guix-git/doc/guix.texi:39351
  59899. 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."
  59900. msgstr ""
  59901. #. type: Plain text
  59902. #: guix-git/doc/guix.texi:39358
  59903. 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."
  59904. msgstr ""
  59905. #. type: Plain text
  59906. #: guix-git/doc/guix.texi:39363
  59907. 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:"
  59908. msgstr ""
  59909. #. type: item
  59910. #: guix-git/doc/guix.texi:39365
  59911. #, no-wrap
  59912. msgid "gnu.load=@var{boot}"
  59913. msgstr ""
  59914. #. type: table
  59915. #: guix-git/doc/guix.texi:39368
  59916. msgid "Tell the initial RAM disk to load @var{boot}, a file containing a Scheme program, once it has mounted the root file system."
  59917. msgstr ""
  59918. #. type: table
  59919. #: guix-git/doc/guix.texi:39372
  59920. 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."
  59921. msgstr ""
  59922. #. type: item
  59923. #: guix-git/doc/guix.texi:39373
  59924. #, no-wrap
  59925. msgid "root=@var{root}"
  59926. msgstr ""
  59927. #. type: table
  59928. #: guix-git/doc/guix.texi:39378
  59929. 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."
  59930. msgstr ""
  59931. #. type: item
  59932. #: guix-git/doc/guix.texi:39379
  59933. #, fuzzy, no-wrap
  59934. msgid "rootfstype=@var{type}"
  59935. msgstr "--log-compression=@var{type}"
  59936. #. type: table
  59937. #: guix-git/doc/guix.texi:39383
  59938. 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."
  59939. msgstr ""
  59940. #. type: item
  59941. #: guix-git/doc/guix.texi:39384
  59942. #, no-wrap
  59943. msgid "rootflags=@var{options}"
  59944. msgstr ""
  59945. #. type: table
  59946. #: guix-git/doc/guix.texi:39388
  59947. 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."
  59948. msgstr ""
  59949. #. type: item
  59950. #: guix-git/doc/guix.texi:39389
  59951. #, fuzzy, no-wrap
  59952. msgid "fsck.mode=@var{mode}"
  59953. msgstr "--rounds=@var{N}"
  59954. #. type: table
  59955. #: guix-git/doc/guix.texi:39395
  59956. 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 @code{<file-system>} object's @code{check?} setting (@pxref{File Systems}) and run a full scan only if the file system was not cleanly shut down."
  59957. msgstr ""
  59958. #. type: table
  59959. #: guix-git/doc/guix.texi:39398
  59960. msgid "@code{auto} is the default if this option is not present or if @var{mode} is not one of the above."
  59961. msgstr ""
  59962. #. type: item
  59963. #: guix-git/doc/guix.texi:39399
  59964. #, no-wrap
  59965. msgid "fsck.repair=@var{level}"
  59966. msgstr ""
  59967. #. type: table
  59968. #: guix-git/doc/guix.texi:39404
  59969. 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."
  59970. msgstr ""
  59971. #. type: table
  59972. #: guix-git/doc/guix.texi:39407
  59973. msgid "@code{preen} is the default if this option is not present or if @var{level} is not one of the above."
  59974. msgstr ""
  59975. #. type: item
  59976. #: guix-git/doc/guix.texi:39408
  59977. #, fuzzy, no-wrap
  59978. #| msgid "--system=@var{system}"
  59979. msgid "gnu.system=@var{system}"
  59980. msgstr "--system=@var{system}"
  59981. #. type: table
  59982. #: guix-git/doc/guix.texi:39411
  59983. msgid "Have @file{/run/booted-system} and @file{/run/current-system} point to @var{system}."
  59984. msgstr ""
  59985. #. type: item
  59986. #: guix-git/doc/guix.texi:39412
  59987. #, no-wrap
  59988. msgid "modprobe.blacklist=@var{modules}@dots{}"
  59989. msgstr ""
  59990. #. type: cindex
  59991. #: guix-git/doc/guix.texi:39413
  59992. #, no-wrap
  59993. msgid "module, black-listing"
  59994. msgstr ""
  59995. #. type: cindex
  59996. #: guix-git/doc/guix.texi:39414
  59997. #, no-wrap
  59998. msgid "black list, of kernel modules"
  59999. msgstr ""
  60000. #. type: table
  60001. #: guix-git/doc/guix.texi:39419
  60002. 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}."
  60003. msgstr ""
  60004. #. type: item
  60005. #: guix-git/doc/guix.texi:39420
  60006. #, no-wrap
  60007. msgid "gnu.repl"
  60008. msgstr ""
  60009. #. type: table
  60010. #: guix-git/doc/guix.texi:39426
  60011. 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."
  60012. msgstr ""
  60013. #. type: Plain text
  60014. #: guix-git/doc/guix.texi:39432
  60015. 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."
  60016. msgstr ""
  60017. #. type: defun
  60018. #: guix-git/doc/guix.texi:39435
  60019. #, fuzzy, no-wrap
  60020. msgid "raw-initrd file-systems @"
  60021. msgstr "网络文件系统"
  60022. #. type: defun
  60023. #: guix-git/doc/guix.texi:39451
  60024. msgid "[#:linux-modules '()] [#:pre-mount #t] [#: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{pre-mount} is a G-expression to evaluate before realizing @var{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."
  60025. msgstr ""
  60026. #. type: defun
  60027. #: guix-git/doc/guix.texi:39457 guix-git/doc/guix.texi:39481
  60028. 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."
  60029. msgstr ""
  60030. #. type: defun
  60031. #: guix-git/doc/guix.texi:39461
  60032. 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."
  60033. msgstr ""
  60034. #. type: defun
  60035. #: guix-git/doc/guix.texi:39464
  60036. msgid "When @var{volatile-root?} is true, the root file system is writable but any changes to it are lost."
  60037. msgstr ""
  60038. #. type: defun
  60039. #: guix-git/doc/guix.texi:39466
  60040. #, fuzzy, no-wrap
  60041. msgid "base-initrd file-systems @"
  60042. msgstr "网络文件系统"
  60043. #. type: defun
  60044. #: guix-git/doc/guix.texi:39475
  60045. 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."
  60046. msgstr ""
  60047. #. type: defun
  60048. #: guix-git/doc/guix.texi:39483
  60049. msgid "@var{qemu-networking?} and @var{volatile-root?} behaves as in @code{raw-initrd}."
  60050. msgstr ""
  60051. #. type: defun
  60052. #: guix-git/doc/guix.texi:39488
  60053. 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."
  60054. msgstr ""
  60055. #. type: Plain text
  60056. #: guix-git/doc/guix.texi:39495
  60057. 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."
  60058. msgstr ""
  60059. #. type: defun
  60060. #: guix-git/doc/guix.texi:39496
  60061. #, no-wrap
  60062. msgid "expression->initrd exp @"
  60063. msgstr ""
  60064. #. type: defun
  60065. #: guix-git/doc/guix.texi:39502
  60066. 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."
  60067. msgstr ""
  60068. #. type: cindex
  60069. #: guix-git/doc/guix.texi:39508
  60070. #, no-wrap
  60071. msgid "boot loader"
  60072. msgstr ""
  60073. #. type: Plain text
  60074. #: guix-git/doc/guix.texi:39515
  60075. 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."
  60076. msgstr ""
  60077. #. type: Plain text
  60078. #: guix-git/doc/guix.texi:39520
  60079. 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."
  60080. msgstr ""
  60081. #. type: deftp
  60082. #: guix-git/doc/guix.texi:39521
  60083. #, no-wrap
  60084. msgid "{Data Type} bootloader-configuration"
  60085. msgstr ""
  60086. #. type: deftp
  60087. #: guix-git/doc/guix.texi:39523
  60088. msgid "The type of a bootloader configuration declaration."
  60089. msgstr ""
  60090. #. type: cindex
  60091. #: guix-git/doc/guix.texi:39527
  60092. #, no-wrap
  60093. msgid "EFI, bootloader"
  60094. msgstr ""
  60095. #. type: cindex
  60096. #: guix-git/doc/guix.texi:39528
  60097. #, no-wrap
  60098. msgid "UEFI, bootloader"
  60099. msgstr ""
  60100. #. type: cindex
  60101. #: guix-git/doc/guix.texi:39529
  60102. #, no-wrap
  60103. msgid "BIOS, bootloader"
  60104. msgstr ""
  60105. #. type: table
  60106. #: guix-git/doc/guix.texi:39535
  60107. msgid "The bootloader to use, as a @code{bootloader} object. For now @code{grub-bootloader}, @code{grub-efi-bootloader}, @code{grub-efi-removable-bootloader}, @code{grub-efi-netboot-bootloader}, @code{grub-efi-netboot-removable-bootloader}, @code{extlinux-bootloader} and @code{u-boot-bootloader} are supported."
  60108. msgstr ""
  60109. #. type: cindex
  60110. #: guix-git/doc/guix.texi:39536
  60111. #, no-wrap
  60112. msgid "ARM, bootloaders"
  60113. msgstr ""
  60114. #. type: cindex
  60115. #: guix-git/doc/guix.texi:39537
  60116. #, no-wrap
  60117. msgid "AArch64, bootloaders"
  60118. msgstr ""
  60119. #. type: table
  60120. #: guix-git/doc/guix.texi:39542
  60121. 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}."
  60122. msgstr ""
  60123. #. type: table
  60124. #: guix-git/doc/guix.texi:39546
  60125. msgid "@code{grub-bootloader} allows you to boot in particular Intel-based machines in ``legacy'' BIOS mode."
  60126. msgstr ""
  60127. #. type: table
  60128. #: guix-git/doc/guix.texi:39552
  60129. 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."
  60130. msgstr ""
  60131. #. type: vindex
  60132. #: guix-git/doc/guix.texi:39553
  60133. #, no-wrap
  60134. msgid "grub-efi-removable-bootloader"
  60135. msgstr ""
  60136. #. type: table
  60137. #: guix-git/doc/guix.texi:39560
  60138. msgid "@code{grub-efi-removable-bootloader} allows you to boot your system from removable media by writing the GRUB file to the UEFI-specification location of @file{/EFI/BOOT/BOOTX64.efi} of the boot directory, usually @file{/boot/efi}. This is also useful for some UEFI firmwares that ``forget'' their configuration from their non-volatile storage. Like @code{grub-efi-bootloader}, this can only be used if the @file{/sys/firmware/efi} directory is available."
  60139. msgstr ""
  60140. #. type: quotation
  60141. #: guix-git/doc/guix.texi:39565 guix-git/doc/guix.texi:39639
  60142. msgid "This @emph{will} overwrite the GRUB file from any other operating systems that also place their GRUB file in the UEFI-specification location; making them unbootable."
  60143. msgstr ""
  60144. #. type: vindex
  60145. #: guix-git/doc/guix.texi:39567
  60146. #, no-wrap
  60147. msgid "grub-efi-netboot-bootloader"
  60148. msgstr ""
  60149. #. type: table
  60150. #: guix-git/doc/guix.texi:39571
  60151. 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."
  60152. msgstr ""
  60153. #. type: table
  60154. #: guix-git/doc/guix.texi:39578
  60155. 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}}) below the sub-directory @file{efi/Guix}, 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 during installation."
  60156. msgstr ""
  60157. #. type: table
  60158. #: guix-git/doc/guix.texi:39587
  60159. 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}."
  60160. msgstr ""
  60161. #. type: table
  60162. #: guix-git/doc/guix.texi:39596
  60163. 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."
  60164. msgstr ""
  60165. #. type: table
  60166. #: guix-git/doc/guix.texi:39602
  60167. 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."
  60168. msgstr ""
  60169. #. type: table
  60170. #: guix-git/doc/guix.texi:39607
  60171. 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 for your @code{targets}."
  60172. msgstr ""
  60173. #. type: table
  60174. #: guix-git/doc/guix.texi:39613
  60175. 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. It is advised to disable any TFTP write access!"
  60176. msgstr ""
  60177. #. type: table
  60178. #: guix-git/doc/guix.texi:39616
  60179. msgid "Please note, that this bootloader will not modify the ‘UEFI Boot Manager’ of the system."
  60180. msgstr ""
  60181. #. type: table
  60182. #: guix-git/doc/guix.texi:39621
  60183. 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}."
  60184. msgstr ""
  60185. #. type: table
  60186. #: guix-git/doc/guix.texi:39628
  60187. msgid "If a local EFI System Partition (ESP) or a similar partition with a FAT file system is mounted in @code{targets}, then symlinks cannot be created. In this case everything will be prepared for booting from local storage, matching the behavior of @code{grub-efi-bootloader}, with the difference that all GRUB binaries are copied to @code{targets}, necessary for booting over the network."
  60188. msgstr ""
  60189. #. type: vindex
  60190. #: guix-git/doc/guix.texi:39629
  60191. #, no-wrap
  60192. msgid "grub-efi-netboot-removable-bootloader"
  60193. msgstr ""
  60194. #. type: table
  60195. #: guix-git/doc/guix.texi:39634
  60196. msgid "@code{grub-efi-netboot-removable-bootloader} is identical to @code{grub-efi-netboot-bootloader} with the exception that the sub-directory @file{efi/boot} will be used instead of @file{efi/Guix} to comply with the UEFI specification for removable media."
  60197. msgstr ""
  60198. #. type: table
  60199. #: guix-git/doc/guix.texi:39644
  60200. msgid "This is a list of strings denoting the targets onto which to install the bootloader."
  60201. msgstr ""
  60202. #. type: table
  60203. #: guix-git/doc/guix.texi:39655
  60204. 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} and @code{grub-efi-removable-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."
  60205. msgstr ""
  60206. #. type: item
  60207. #: guix-git/doc/guix.texi:39656
  60208. #, fuzzy, no-wrap
  60209. msgid "@code{menu-entries} (default: @code{'()})"
  60210. msgstr "@code{features} (@code{'()})"
  60211. #. type: table
  60212. #: guix-git/doc/guix.texi:39660
  60213. 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."
  60214. msgstr ""
  60215. #. type: item
  60216. #: guix-git/doc/guix.texi:39661
  60217. #, no-wrap
  60218. msgid "@code{default-entry} (default: @code{0})"
  60219. msgstr ""
  60220. #. type: table
  60221. #: guix-git/doc/guix.texi:39664
  60222. msgid "The index of the default boot menu entry. Index 0 is for the entry of the current system."
  60223. msgstr ""
  60224. #. type: item
  60225. #: guix-git/doc/guix.texi:39665
  60226. #, no-wrap
  60227. msgid "@code{timeout} (default: @code{5})"
  60228. msgstr ""
  60229. #. type: table
  60230. #: guix-git/doc/guix.texi:39668
  60231. msgid "The number of seconds to wait for keyboard input before booting. Set to 0 to boot immediately, and to -1 to wait indefinitely."
  60232. msgstr ""
  60233. #. type: cindex
  60234. #: guix-git/doc/guix.texi:39669
  60235. #, no-wrap
  60236. msgid "keyboard layout, for the bootloader"
  60237. msgstr ""
  60238. #. type: table
  60239. #: guix-git/doc/guix.texi:39673
  60240. msgid "If this is @code{#f}, the bootloader's menu (if any) uses the default keyboard layout, usually US@tie{}English (``qwerty'')."
  60241. msgstr ""
  60242. #. type: table
  60243. #: guix-git/doc/guix.texi:39676
  60244. msgid "Otherwise, this must be a @code{keyboard-layout} object (@pxref{Keyboard Layout})."
  60245. msgstr ""
  60246. #. type: quotation
  60247. #: guix-git/doc/guix.texi:39680
  60248. msgid "This option is currently ignored by bootloaders other than @code{grub} and @code{grub-efi}."
  60249. msgstr ""
  60250. #. type: item
  60251. #: guix-git/doc/guix.texi:39682
  60252. #, no-wrap
  60253. msgid "@code{theme} (default: @var{#f})"
  60254. msgstr ""
  60255. #. type: table
  60256. #: guix-git/doc/guix.texi:39686
  60257. 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."
  60258. msgstr ""
  60259. #. type: item
  60260. #: guix-git/doc/guix.texi:39687
  60261. #, fuzzy, no-wrap
  60262. msgid "@code{terminal-outputs} (default: @code{'(gfxterm)})"
  60263. msgstr "@code{features} (@code{'()})"
  60264. #. type: table
  60265. #: guix-git/doc/guix.texi:39694
  60266. 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})."
  60267. msgstr ""
  60268. #. type: item
  60269. #: guix-git/doc/guix.texi:39695
  60270. #, no-wrap
  60271. msgid "@code{terminal-inputs} (default: @code{'()})"
  60272. msgstr ""
  60273. #. type: table
  60274. #: guix-git/doc/guix.texi:39703
  60275. 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})."
  60276. msgstr ""
  60277. #. type: item
  60278. #: guix-git/doc/guix.texi:39704
  60279. #, no-wrap
  60280. msgid "@code{serial-unit} (default: @code{#f})"
  60281. msgstr ""
  60282. #. type: table
  60283. #: guix-git/doc/guix.texi:39708
  60284. 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})."
  60285. msgstr ""
  60286. #. type: item
  60287. #: guix-git/doc/guix.texi:39709
  60288. #, no-wrap
  60289. msgid "@code{serial-speed} (default: @code{#f})"
  60290. msgstr ""
  60291. #. type: table
  60292. #: guix-git/doc/guix.texi:39713
  60293. 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})."
  60294. msgstr ""
  60295. #. type: item
  60296. #: guix-git/doc/guix.texi:39714
  60297. #, fuzzy, no-wrap
  60298. #| msgid "@code{port} (default: @code{22})"
  60299. msgid "@code{device-tree-support?} (default: @code{#t})"
  60300. msgstr "@code{port}(默认值:@code{22})"
  60301. #. type: table
  60302. #: guix-git/doc/guix.texi:39717
  60303. msgid "Whether to support Linux @uref{https://en.wikipedia.org/wiki/Devicetree, device tree} files loading."
  60304. msgstr ""
  60305. #. type: table
  60306. #: guix-git/doc/guix.texi:39722
  60307. msgid "This option in enabled by default. In some cases involving the @code{u-boot} bootloader, where the device tree has already been loaded in RAM, it can be handy to disable the option by setting it to @code{#f}."
  60308. msgstr ""
  60309. #. type: cindex
  60310. #: guix-git/doc/guix.texi:39726
  60311. #, no-wrap
  60312. msgid "dual boot"
  60313. msgstr ""
  60314. #. type: cindex
  60315. #: guix-git/doc/guix.texi:39727
  60316. #, no-wrap
  60317. msgid "boot menu"
  60318. msgstr ""
  60319. #. type: Plain text
  60320. #: guix-git/doc/guix.texi:39733
  60321. 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:"
  60322. msgstr ""
  60323. #. type: lisp
  60324. #: guix-git/doc/guix.texi:39740
  60325. #, no-wrap
  60326. msgid ""
  60327. "(menu-entry\n"
  60328. " (label \"The Other Distro\")\n"
  60329. " (linux \"/boot/old/vmlinux-2.6.32\")\n"
  60330. " (linux-arguments '(\"root=/dev/sda2\"))\n"
  60331. " (initrd \"/boot/old/initrd\"))\n"
  60332. msgstr ""
  60333. #. type: Plain text
  60334. #: guix-git/doc/guix.texi:39743
  60335. msgid "Details below."
  60336. msgstr ""
  60337. #. type: deftp
  60338. #: guix-git/doc/guix.texi:39744
  60339. #, no-wrap
  60340. msgid "{Data Type} menu-entry"
  60341. msgstr ""
  60342. #. type: deftp
  60343. #: guix-git/doc/guix.texi:39746
  60344. msgid "The type of an entry in the bootloader menu."
  60345. msgstr ""
  60346. #. type: table
  60347. #: guix-git/doc/guix.texi:39751
  60348. msgid "The label to show in the menu---e.g., @code{\"GNU\"}."
  60349. msgstr ""
  60350. #. type: item
  60351. #: guix-git/doc/guix.texi:39752
  60352. #, fuzzy, no-wrap
  60353. msgid "@code{linux} (default: @code{#f})"
  60354. msgstr "@code{challenge}(默认值:@code{#f})"
  60355. #. type: table
  60356. #: guix-git/doc/guix.texi:39754
  60357. msgid "The Linux kernel image to boot, for example:"
  60358. msgstr ""
  60359. #. type: lisp
  60360. #: guix-git/doc/guix.texi:39757
  60361. #, no-wrap
  60362. msgid "(file-append linux-libre \"/bzImage\")\n"
  60363. msgstr ""
  60364. #. type: table
  60365. #: guix-git/doc/guix.texi:39762
  60366. 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:"
  60367. msgstr ""
  60368. #. type: example
  60369. #: guix-git/doc/guix.texi:39765
  60370. #, no-wrap
  60371. msgid "\"(hd0,msdos1)/boot/vmlinuz\"\n"
  60372. msgstr ""
  60373. #. type: table
  60374. #: guix-git/doc/guix.texi:39769
  60375. msgid "If the device is specified explicitly as above, then the @code{device} field is ignored entirely."
  60376. msgstr ""
  60377. #. type: item
  60378. #: guix-git/doc/guix.texi:39770
  60379. #, fuzzy, no-wrap
  60380. msgid "@code{linux-arguments} (default: @code{'()})"
  60381. msgstr "@code{features} (@code{'()})"
  60382. #. type: table
  60383. #: guix-git/doc/guix.texi:39773
  60384. msgid "The list of extra Linux kernel command-line arguments---e.g., @code{'(\"console=ttyS0\")}."
  60385. msgstr ""
  60386. #. type: item
  60387. #: guix-git/doc/guix.texi:39774
  60388. #, fuzzy, no-wrap
  60389. msgid "@code{initrd} (default: @code{#f})"
  60390. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  60391. #. type: table
  60392. #: guix-git/doc/guix.texi:39777
  60393. msgid "A G-Expression or string denoting the file name of the initial RAM disk to use (@pxref{G-Expressions})."
  60394. msgstr ""
  60395. #. type: table
  60396. #: guix-git/doc/guix.texi:39781
  60397. 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})."
  60398. msgstr ""
  60399. #. type: table
  60400. #: guix-git/doc/guix.texi:39787
  60401. 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}."
  60402. msgstr ""
  60403. #. type: item
  60404. #: guix-git/doc/guix.texi:39788
  60405. #, fuzzy, no-wrap
  60406. msgid "@code{multiboot-kernel} (default: @code{#f})"
  60407. msgstr "@code{challenge}(默认值:@code{#f})"
  60408. #. type: table
  60409. #: guix-git/doc/guix.texi:39792
  60410. 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:"
  60411. msgstr ""
  60412. #. type: lisp
  60413. #: guix-git/doc/guix.texi:39795
  60414. #, no-wrap
  60415. msgid "(file-append mach \"/boot/gnumach\")\n"
  60416. msgstr ""
  60417. #. type: item
  60418. #: guix-git/doc/guix.texi:39797
  60419. #, fuzzy, no-wrap
  60420. msgid "@code{multiboot-arguments} (default: @code{'()})"
  60421. msgstr "@code{features} (@code{'()})"
  60422. #. type: table
  60423. #: guix-git/doc/guix.texi:39799
  60424. msgid "The list of extra command-line arguments for the multiboot-kernel."
  60425. msgstr ""
  60426. #. type: item
  60427. #: guix-git/doc/guix.texi:39800
  60428. #, fuzzy, no-wrap
  60429. msgid "@code{multiboot-modules} (default: @code{'()})"
  60430. msgstr "@code{features} (@code{'()})"
  60431. #. type: table
  60432. #: guix-git/doc/guix.texi:39802
  60433. msgid "The list of commands for loading Multiboot modules. For example:"
  60434. msgstr ""
  60435. #. type: lisp
  60436. #: guix-git/doc/guix.texi:39808
  60437. #, no-wrap
  60438. msgid ""
  60439. "(list (list (file-append hurd \"/hurd/ext2fs.static\") \"ext2fs\"\n"
  60440. " @dots{})\n"
  60441. " (list (file-append libc \"/lib/ld.so.1\") \"exec\"\n"
  60442. " @dots{}))\n"
  60443. msgstr ""
  60444. #. type: item
  60445. #: guix-git/doc/guix.texi:39810
  60446. #, fuzzy, no-wrap
  60447. msgid "@code{chain-loader} (default: @code{#f})"
  60448. msgstr "@code{port}(默认值:@code{22})"
  60449. #. type: table
  60450. #: guix-git/doc/guix.texi:39815
  60451. msgid "A string that can be accepted by @code{grub}'s @code{chainloader} directive. This has no effect if either @code{linux} or @code{multiboot-kernel} fields are specified. The following is an example of chainloading a different GNU/Linux system."
  60452. msgstr ""
  60453. #. type: lisp
  60454. #: guix-git/doc/guix.texi:39826
  60455. #, no-wrap
  60456. msgid ""
  60457. "(bootloader\n"
  60458. " (bootloader-configuration\n"
  60459. " ;; @dots{}\n"
  60460. " (menu-entries\n"
  60461. " (list\n"
  60462. " (menu-entry\n"
  60463. " (label \"GNU/Linux\")\n"
  60464. " (device (uuid \"1C31-A17C\" 'fat))\n"
  60465. " (chain-loader \"/EFI/GNULinux/grubx64.efi\"))))))\n"
  60466. msgstr ""
  60467. #. type: cindex
  60468. #: guix-git/doc/guix.texi:39831 guix-git/doc/guix.texi:39891
  60469. #, no-wrap
  60470. msgid "HDPI"
  60471. msgstr ""
  60472. #. type: cindex
  60473. #: guix-git/doc/guix.texi:39832 guix-git/doc/guix.texi:39892
  60474. #, no-wrap
  60475. msgid "HiDPI"
  60476. msgstr ""
  60477. #. type: cindex
  60478. #: guix-git/doc/guix.texi:39833 guix-git/doc/guix.texi:39893
  60479. #, fuzzy, no-wrap
  60480. msgid "resolution"
  60481. msgstr "隔离"
  60482. #. type: Plain text
  60483. #: guix-git/doc/guix.texi:39837
  60484. msgid "For now only GRUB has theme support. GRUB themes are created using the @code{grub-theme} form, which is not fully documented yet."
  60485. msgstr ""
  60486. #. type: deftp
  60487. #: guix-git/doc/guix.texi:39838
  60488. #, fuzzy, no-wrap
  60489. msgid "{Data Type} grub-theme"
  60490. msgstr "{数据类型} build-machine"
  60491. #. type: deftp
  60492. #: guix-git/doc/guix.texi:39840
  60493. msgid "Data type representing the configuration of the GRUB theme."
  60494. msgstr ""
  60495. #. type: item
  60496. #: guix-git/doc/guix.texi:39842
  60497. #, fuzzy, no-wrap
  60498. msgid "@code{gfxmode} (default: @code{'(\"auto\")})"
  60499. msgstr "@code{mate}(默认值:@code{mate})"
  60500. #. type: table
  60501. #: guix-git/doc/guix.texi:39845
  60502. msgid "The GRUB @code{gfxmode} to set (a list of screen resolution strings, @pxref{gfxmode,,, grub, GNU GRUB manual})."
  60503. msgstr ""
  60504. #. type: defun
  60505. #: guix-git/doc/guix.texi:39848
  60506. #, fuzzy, no-wrap
  60507. msgid "grub-theme"
  60508. msgstr "{数据类型} build-machine"
  60509. #. type: defun
  60510. #: guix-git/doc/guix.texi:39852
  60511. msgid "Return the default GRUB theme used by the operating system if no @code{theme} field is specified in @code{bootloader-configuration} record."
  60512. msgstr ""
  60513. #. type: defun
  60514. #: guix-git/doc/guix.texi:39855
  60515. msgid "It comes with a fancy background image displaying the GNU and Guix logos."
  60516. msgstr ""
  60517. #. type: Plain text
  60518. #: guix-git/doc/guix.texi:39859
  60519. msgid "For example, to override the default resolution, you may use something like"
  60520. msgstr ""
  60521. #. type: lisp
  60522. #: guix-git/doc/guix.texi:39867
  60523. #, no-wrap
  60524. msgid ""
  60525. "(bootloader\n"
  60526. " (bootloader-configuration\n"
  60527. " ;; @dots{}\n"
  60528. " (theme (grub-theme\n"
  60529. " (inherit (grub-theme))\n"
  60530. " (gfxmode '(\"1024x786x32\" \"auto\"))))))\n"
  60531. msgstr ""
  60532. #. type: section
  60533. #: guix-git/doc/guix.texi:39870
  60534. #, fuzzy, no-wrap
  60535. #| msgid "Invoking @command{guix build}"
  60536. msgid "Invoking @command{guix system}"
  60537. msgstr "调用@command{guix build}"
  60538. #. type: command{#1}
  60539. #: guix-git/doc/guix.texi:39872
  60540. #, fuzzy, no-wrap
  60541. #| msgid "Guix System"
  60542. msgid "guix system"
  60543. msgstr "Guix系统"
  60544. #. type: Plain text
  60545. #: guix-git/doc/guix.texi:39876
  60546. 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:"
  60547. msgstr ""
  60548. #. type: example
  60549. #: guix-git/doc/guix.texi:39879
  60550. #, no-wrap
  60551. msgid "guix system @var{options}@dots{} @var{action} @var{file}\n"
  60552. msgstr ""
  60553. #. type: Plain text
  60554. #: guix-git/doc/guix.texi:39885
  60555. 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:"
  60556. msgstr ""
  60557. #. type: item
  60558. #: guix-git/doc/guix.texi:39887 guix-git/doc/guix.texi:43755
  60559. #, no-wrap
  60560. msgid "search"
  60561. msgstr ""
  60562. #. type: table
  60563. #: guix-git/doc/guix.texi:39890
  60564. msgid "Display available service type definitions that match the given regular expressions, sorted by relevance:"
  60565. msgstr ""
  60566. #. type: example
  60567. #: guix-git/doc/guix.texi:39912
  60568. #, no-wrap
  60569. msgid ""
  60570. "$ guix system search console\n"
  60571. "name: console-fonts\n"
  60572. "location: gnu/services/base.scm:806:2\n"
  60573. "extends: shepherd-root\n"
  60574. "description: Install the given fonts on the specified ttys (fonts are per\n"
  60575. "+ virtual console on GNU/Linux). The value of this service is a list of\n"
  60576. "+ tty/font pairs. The font can be the name of a font provided by the `kbd'\n"
  60577. "+ package or any valid argument to `setfont', as in this example:\n"
  60578. "+\n"
  60579. "+ '((\"tty1\" . \"LatGrkCyr-8x16\")\n"
  60580. "+ (\"tty2\" . (file-append\n"
  60581. "+ font-tamzen\n"
  60582. "+ \"/share/kbd/consolefonts/TamzenForPowerline10x20.psf\"))\n"
  60583. "+ (\"tty3\" . (file-append\n"
  60584. "+ font-terminus\n"
  60585. "+ \"/share/consolefonts/ter-132n\"))) ; for HDPI\n"
  60586. "relevance: 9\n"
  60587. "\n"
  60588. msgstr ""
  60589. #. type: example
  60590. #: guix-git/doc/guix.texi:39918
  60591. #, no-wrap
  60592. msgid ""
  60593. "name: mingetty\n"
  60594. "location: gnu/services/base.scm:1190:2\n"
  60595. "extends: shepherd-root\n"
  60596. "description: Provide console login using the `mingetty' program.\n"
  60597. "relevance: 2\n"
  60598. "\n"
  60599. msgstr ""
  60600. #. type: example
  60601. #: guix-git/doc/guix.texi:39925
  60602. #, no-wrap
  60603. msgid ""
  60604. "name: login\n"
  60605. "location: gnu/services/base.scm:860:2\n"
  60606. "extends: pam\n"
  60607. "description: Provide a console log-in service as specified by its\n"
  60608. "+ configuration value, a `login-configuration' object.\n"
  60609. "relevance: 2\n"
  60610. "\n"
  60611. msgstr ""
  60612. #. type: example
  60613. #: guix-git/doc/guix.texi:39927 guix-git/doc/guix.texi:43791
  60614. #, no-wrap
  60615. msgid "@dots{}\n"
  60616. msgstr ""
  60617. #. type: table
  60618. #: guix-git/doc/guix.texi:39932
  60619. 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})."
  60620. msgstr ""
  60621. #. type: cindex
  60622. #: guix-git/doc/guix.texi:39933 guix-git/doc/guix.texi:43840
  60623. #, no-wrap
  60624. msgid "service type definition, editing"
  60625. msgstr ""
  60626. #. type: cindex
  60627. #: guix-git/doc/guix.texi:39934 guix-git/doc/guix.texi:43841
  60628. #, fuzzy, no-wrap
  60629. #| msgid "Adding new service definitions."
  60630. msgid "editing, service type definition"
  60631. msgstr "添加新的服务定义。"
  60632. #. type: item
  60633. #: guix-git/doc/guix.texi:39935 guix-git/doc/guix.texi:43842
  60634. #, no-wrap
  60635. msgid "edit"
  60636. msgstr ""
  60637. #. type: table
  60638. #: guix-git/doc/guix.texi:39937
  60639. msgid "Edit or view the definition of the given service types."
  60640. msgstr ""
  60641. #. type: table
  60642. #: guix-git/doc/guix.texi:39941
  60643. msgid "For example, the command below opens your editor, as specified by the @env{EDITOR} environment variable, on the definition of the @code{openssh} service type:"
  60644. msgstr ""
  60645. #. type: example
  60646. #: guix-git/doc/guix.texi:39944
  60647. #, fuzzy, no-wrap
  60648. #| msgid "guix system describe\n"
  60649. msgid "guix system edit openssh\n"
  60650. msgstr "guix system describe\n"
  60651. #. type: item
  60652. #: guix-git/doc/guix.texi:39946 guix-git/doc/guix.texi:43853
  60653. #, no-wrap
  60654. msgid "reconfigure"
  60655. msgstr ""
  60656. #. type: table
  60657. #: guix-git/doc/guix.texi:39951
  60658. 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.}."
  60659. msgstr ""
  60660. #. type: quotation
  60661. #: guix-git/doc/guix.texi:39959
  60662. 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."
  60663. msgstr ""
  60664. #. type: table
  60665. #: guix-git/doc/guix.texi:39967
  60666. 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})."
  60667. msgstr ""
  60668. #. type: table
  60669. #: guix-git/doc/guix.texi:39973
  60670. 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})."
  60671. msgstr ""
  60672. #. type: table
  60673. #: guix-git/doc/guix.texi:39978
  60674. 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."
  60675. msgstr ""
  60676. #. type: cindex
  60677. #: guix-git/doc/guix.texi:39979 guix-git/doc/guix.texi:40324
  60678. #: guix-git/doc/guix.texi:41347
  60679. #, fuzzy, no-wrap
  60680. msgid "provenance tracking, of the operating system"
  60681. msgstr "配置操作系统。"
  60682. #. type: table
  60683. #: guix-git/doc/guix.texi:39984
  60684. 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:"
  60685. msgstr ""
  60686. #. type: example
  60687. #: guix-git/doc/guix.texi:39987
  60688. #, no-wrap
  60689. msgid "guix system describe\n"
  60690. msgstr "guix system describe\n"
  60691. #. type: table
  60692. #: guix-git/doc/guix.texi:39993
  60693. 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:"
  60694. msgstr ""
  60695. #. type: example
  60696. #: guix-git/doc/guix.texi:39999
  60697. #, no-wrap
  60698. msgid ""
  60699. "guix time-machine \\\n"
  60700. " -C /var/guix/profiles/system-@var{n}-link/channels.scm -- \\\n"
  60701. " system reconfigure \\\n"
  60702. " /var/guix/profiles/system-@var{n}-link/configuration.scm\n"
  60703. msgstr ""
  60704. #. type: table
  60705. #: guix-git/doc/guix.texi:40005
  60706. 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."
  60707. msgstr ""
  60708. #. type: table
  60709. #: guix-git/doc/guix.texi:40011
  60710. 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}."
  60711. msgstr ""
  60712. #. type: item
  60713. #: guix-git/doc/guix.texi:40012 guix-git/doc/guix.texi:43912
  60714. #, no-wrap
  60715. msgid "switch-generation"
  60716. msgstr ""
  60717. #. type: table
  60718. #: guix-git/doc/guix.texi:40021
  60719. 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."
  60720. msgstr ""
  60721. #. type: table
  60722. #: guix-git/doc/guix.texi:40025
  60723. msgid "The bootloader itself is not being reinstalled when using this command. Thus, the installed bootloader is used with an updated configuration file."
  60724. msgstr ""
  60725. #. type: table
  60726. #: guix-git/doc/guix.texi:40029
  60727. msgid "The target generation can be specified explicitly by its generation number. For example, the following invocation would switch to system generation 7:"
  60728. msgstr ""
  60729. #. type: example
  60730. #: guix-git/doc/guix.texi:40032
  60731. #, no-wrap
  60732. msgid "guix system switch-generation 7\n"
  60733. msgstr ""
  60734. #. type: table
  60735. #: guix-git/doc/guix.texi:40040 guix-git/doc/guix.texi:43931
  60736. 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:"
  60737. msgstr ""
  60738. #. type: example
  60739. #: guix-git/doc/guix.texi:40043
  60740. #, no-wrap
  60741. msgid "guix system switch-generation -- -1\n"
  60742. msgstr ""
  60743. #. type: table
  60744. #: guix-git/doc/guix.texi:40051
  60745. 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."
  60746. msgstr ""
  60747. #. type: table
  60748. #: guix-git/doc/guix.texi:40053 guix-git/doc/guix.texi:43937
  60749. msgid "This action will fail if the specified generation does not exist."
  60750. msgstr ""
  60751. #. type: item
  60752. #: guix-git/doc/guix.texi:40054 guix-git/doc/guix.texi:43938
  60753. #, no-wrap
  60754. msgid "roll-back"
  60755. msgstr ""
  60756. #. type: table
  60757. #: guix-git/doc/guix.texi:40060
  60758. 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}."
  60759. msgstr ""
  60760. #. type: table
  60761. #: guix-git/doc/guix.texi:40064
  60762. msgid "Currently, as with @command{switch-generation}, you must reboot after running this action to actually start using the preceding system generation."
  60763. msgstr ""
  60764. #. type: item
  60765. #: guix-git/doc/guix.texi:40065 guix-git/doc/guix.texi:43944
  60766. #, no-wrap
  60767. msgid "delete-generations"
  60768. msgstr ""
  60769. #. type: cindex
  60770. #: guix-git/doc/guix.texi:40066
  60771. #, no-wrap
  60772. msgid "deleting system generations"
  60773. msgstr ""
  60774. #. type: cindex
  60775. #: guix-git/doc/guix.texi:40067 guix-git/doc/guix.texi:43946
  60776. #, no-wrap
  60777. msgid "saving space"
  60778. msgstr ""
  60779. #. type: table
  60780. #: guix-git/doc/guix.texi:40071
  60781. msgid "Delete system generations, making them candidates for garbage collection (@pxref{Invoking guix gc}, for information on how to run the ``garbage collector'')."
  60782. msgstr ""
  60783. #. type: table
  60784. #: guix-git/doc/guix.texi:40075
  60785. 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:"
  60786. msgstr ""
  60787. #. type: example
  60788. #: guix-git/doc/guix.texi:40078
  60789. #, no-wrap
  60790. msgid "guix system delete-generations\n"
  60791. msgstr ""
  60792. #. type: table
  60793. #: guix-git/doc/guix.texi:40082
  60794. 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:"
  60795. msgstr ""
  60796. #. type: example
  60797. #: guix-git/doc/guix.texi:40085
  60798. #, no-wrap
  60799. msgid "guix system delete-generations 2m\n"
  60800. msgstr ""
  60801. #. type: table
  60802. #: guix-git/doc/guix.texi:40090
  60803. 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."
  60804. msgstr ""
  60805. #. type: table
  60806. #: guix-git/doc/guix.texi:40095
  60807. 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."
  60808. msgstr ""
  60809. #. type: item
  60810. #: guix-git/doc/guix.texi:40096
  60811. #, no-wrap
  60812. msgid "init"
  60813. msgstr ""
  60814. #. type: table
  60815. #: guix-git/doc/guix.texi:40100
  60816. 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:"
  60817. msgstr ""
  60818. #. type: example
  60819. #: guix-git/doc/guix.texi:40103
  60820. #, no-wrap
  60821. msgid "guix system init my-os-config.scm /mnt\n"
  60822. msgstr ""
  60823. #. type: table
  60824. #: guix-git/doc/guix.texi:40110
  60825. 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."
  60826. msgstr ""
  60827. #. type: table
  60828. #: guix-git/doc/guix.texi:40114
  60829. msgid "This command also installs bootloader on the targets specified in @file{my-os-config}, unless the @option{--no-bootloader} option was passed."
  60830. msgstr ""
  60831. #. type: item
  60832. #: guix-git/doc/guix.texi:40115
  60833. #, no-wrap
  60834. msgid "vm"
  60835. msgstr ""
  60836. #. type: cindex
  60837. #: guix-git/doc/guix.texi:40116 guix-git/doc/guix.texi:40760
  60838. #, no-wrap
  60839. msgid "virtual machine"
  60840. msgstr ""
  60841. #. type: cindex
  60842. #: guix-git/doc/guix.texi:40117
  60843. #, no-wrap
  60844. msgid "VM"
  60845. msgstr ""
  60846. #. type: anchor{#1}
  60847. #: guix-git/doc/guix.texi:40121
  60848. msgid "guix system vm"
  60849. msgstr ""
  60850. #. type: table
  60851. #: guix-git/doc/guix.texi:40121
  60852. msgid "Build a virtual machine (VM) that contains the operating system declared in @var{file}, and return a script to run that VM."
  60853. msgstr ""
  60854. #. type: quotation
  60855. #: guix-git/doc/guix.texi:40129
  60856. 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})."
  60857. msgstr ""
  60858. #. type: table
  60859. #: guix-git/doc/guix.texi:40134
  60860. 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:"
  60861. msgstr ""
  60862. #. type: example
  60863. #: guix-git/doc/guix.texi:40137
  60864. #, no-wrap
  60865. msgid "$ /gnu/store/@dots{}-run-vm.sh -m 1024 -smp 2 -nic user,model=virtio-net-pci\n"
  60866. msgstr ""
  60867. #. type: table
  60868. #: guix-git/doc/guix.texi:40140
  60869. msgid "It's possible to combine the two steps into one:"
  60870. msgstr ""
  60871. #. type: example
  60872. #: guix-git/doc/guix.texi:40143
  60873. #, no-wrap
  60874. msgid "$ $(guix system vm my-config.scm) -m 1024 -smp 2 -nic user,model=virtio-net-pci\n"
  60875. msgstr ""
  60876. #. type: table
  60877. #: guix-git/doc/guix.texi:40146
  60878. msgid "The VM shares its store with the host system."
  60879. msgstr ""
  60880. #. type: table
  60881. #: guix-git/doc/guix.texi:40151
  60882. 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."
  60883. msgstr ""
  60884. #. type: table
  60885. #: guix-git/doc/guix.texi:40156
  60886. 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."
  60887. msgstr ""
  60888. #. type: table
  60889. #: guix-git/doc/guix.texi:40160
  60890. 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:"
  60891. msgstr ""
  60892. #. type: example
  60893. #: guix-git/doc/guix.texi:40164
  60894. #, no-wrap
  60895. msgid ""
  60896. "guix system vm my-config.scm \\\n"
  60897. " --expose=$HOME --share=$HOME/tmp=/exchange\n"
  60898. msgstr ""
  60899. #. type: table
  60900. #: guix-git/doc/guix.texi:40169
  60901. 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."
  60902. msgstr ""
  60903. #. type: table
  60904. #: guix-git/doc/guix.texi:40174
  60905. 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."
  60906. msgstr ""
  60907. #. type: table
  60908. #: guix-git/doc/guix.texi:40177
  60909. msgid "The @option{--image-size} option can be used to specify the size of the image."
  60910. msgstr ""
  60911. #. type: table
  60912. #: guix-git/doc/guix.texi:40184
  60913. 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."
  60914. msgstr ""
  60915. #. type: cindex
  60916. #: guix-git/doc/guix.texi:40185
  60917. #, no-wrap
  60918. msgid "System images, creation in various formats"
  60919. msgstr ""
  60920. #. type: cindex
  60921. #: guix-git/doc/guix.texi:40186
  60922. #, no-wrap
  60923. msgid "Creating system images in various formats"
  60924. msgstr ""
  60925. #. type: item
  60926. #: guix-git/doc/guix.texi:40187
  60927. #, no-wrap
  60928. msgid "image"
  60929. msgstr ""
  60930. #. type: cindex
  60931. #: guix-git/doc/guix.texi:40188
  60932. #, no-wrap
  60933. msgid "image, creating disk images"
  60934. msgstr ""
  60935. #. type: table
  60936. #: guix-git/doc/guix.texi:40200
  60937. 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:"
  60938. msgstr ""
  60939. #. type: example
  60940. #: guix-git/doc/guix.texi:40208
  60941. #, no-wrap
  60942. msgid ""
  60943. "image=$(guix system image --image-type=qcow2 \\\n"
  60944. " gnu/system/examples/lightweight-desktop.tmpl)\n"
  60945. "cp $image /tmp/my-image.qcow2\n"
  60946. "chmod +w /tmp/my-image.qcow2\n"
  60947. "qemu-system-x86_64 -enable-kvm -hda /tmp/my-image.qcow2 -m 1000 \\\n"
  60948. " -bios $(guix build ovmf)/share/firmware/ovmf_x64.bin\n"
  60949. msgstr ""
  60950. #. type: table
  60951. #: guix-git/doc/guix.texi:40214
  60952. 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:"
  60953. msgstr ""
  60954. #. type: example
  60955. #: guix-git/doc/guix.texi:40217
  60956. #, no-wrap
  60957. msgid "# dd if=$(guix system image my-os.scm) of=/dev/sdc status=progress\n"
  60958. msgstr ""
  60959. #. type: table
  60960. #: guix-git/doc/guix.texi:40221
  60961. msgid "The @code{--list-image-types} command lists all the available image types."
  60962. msgstr ""
  60963. #. type: cindex
  60964. #: guix-git/doc/guix.texi:40222
  60965. #, no-wrap
  60966. msgid "creating virtual machine images"
  60967. msgstr ""
  60968. #. type: table
  60969. #: guix-git/doc/guix.texi:40231
  60970. 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)."
  60971. msgstr ""
  60972. #. type: cindex
  60973. #: guix-git/doc/guix.texi:40232
  60974. #, no-wrap
  60975. msgid "docker-image, creating docker images"
  60976. msgstr ""
  60977. #. type: table
  60978. #: guix-git/doc/guix.texi:40238
  60979. 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:"
  60980. msgstr ""
  60981. #. type: example
  60982. #: guix-git/doc/guix.texi:40243
  60983. #, no-wrap
  60984. msgid ""
  60985. "image_id=\"$(docker load < guix-system-docker-image.tar.gz)\"\n"
  60986. "container_id=\"$(docker create $image_id)\"\n"
  60987. "docker start $container_id\n"
  60988. msgstr ""
  60989. #. type: table
  60990. #: guix-git/doc/guix.texi:40250
  60991. 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}:"
  60992. msgstr ""
  60993. #. type: example
  60994. #: guix-git/doc/guix.texi:40253
  60995. #, no-wrap
  60996. msgid "docker exec -ti $container_id /run/current-system/profile/bin/bash --login\n"
  60997. msgstr ""
  60998. #. type: table
  60999. #: guix-git/doc/guix.texi:40260
  61000. 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}."
  61001. msgstr ""
  61002. #. type: table
  61003. #: guix-git/doc/guix.texi:40264
  61004. 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."
  61005. msgstr ""
  61006. #. type: table
  61007. #: guix-git/doc/guix.texi:40272
  61008. 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."
  61009. msgstr ""
  61010. #. type: table
  61011. #: guix-git/doc/guix.texi:40276
  61012. 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."
  61013. msgstr ""
  61014. #. type: table
  61015. #: guix-git/doc/guix.texi:40280
  61016. 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:"
  61017. msgstr ""
  61018. #. type: example
  61019. #: guix-git/doc/guix.texi:40284
  61020. #, no-wrap
  61021. msgid ""
  61022. "guix system container my-config.scm \\\n"
  61023. " --expose=$HOME --share=$HOME/tmp=/exchange\n"
  61024. msgstr ""
  61025. #. type: table
  61026. #: guix-git/doc/guix.texi:40289
  61027. msgid "The @option{--share} and @option{--expose} options can also be passed to the generated script to bind-mount additional directories into the container."
  61028. msgstr ""
  61029. #. type: quotation
  61030. #: guix-git/doc/guix.texi:40292
  61031. msgid "This option requires Linux-libre 3.19 or newer."
  61032. msgstr ""
  61033. #. type: Plain text
  61034. #: guix-git/doc/guix.texi:40299 guix-git/doc/guix.texi:44055
  61035. 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:"
  61036. msgstr ""
  61037. #. type: table
  61038. #: guix-git/doc/guix.texi:40308
  61039. 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})."
  61040. msgstr ""
  61041. #. type: table
  61042. #: guix-git/doc/guix.texi:40313
  61043. msgid "Attempt to build for @var{system} instead of the host system type. This works as per @command{guix build} (@pxref{Invoking guix build})."
  61044. msgstr ""
  61045. #. type: table
  61046. #: guix-git/doc/guix.texi:40323
  61047. msgid "Return the derivation file name of the given operating system without building anything."
  61048. msgstr ""
  61049. #. type: table
  61050. #: guix-git/doc/guix.texi:40332
  61051. 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:"
  61052. msgstr ""
  61053. #. type: example
  61054. #: guix-git/doc/guix.texi:40335
  61055. #, no-wrap
  61056. msgid "guix system image -t qcow2 --save-provenance config.scm\n"
  61057. msgstr ""
  61058. #. type: table
  61059. #: guix-git/doc/guix.texi:40342
  61060. 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."
  61061. msgstr ""
  61062. #. type: item
  61063. #: guix-git/doc/guix.texi:40343
  61064. #, fuzzy, no-wrap
  61065. msgid "--image-type=@var{type}"
  61066. msgstr "--log-compression=@var{type}"
  61067. #. type: table
  61068. #: guix-git/doc/guix.texi:40346
  61069. msgid "For the @code{image} action, create an image with given @var{type}."
  61070. msgstr ""
  61071. #. type: table
  61072. #: guix-git/doc/guix.texi:40349
  61073. msgid "When this option is omitted, @command{guix system} uses the @code{efi-raw} image type."
  61074. msgstr ""
  61075. #. type: cindex
  61076. #: guix-git/doc/guix.texi:40350
  61077. #, no-wrap
  61078. msgid "ISO-9660 format"
  61079. msgstr ""
  61080. #. type: cindex
  61081. #: guix-git/doc/guix.texi:40351
  61082. #, no-wrap
  61083. msgid "CD image format"
  61084. msgstr ""
  61085. #. type: cindex
  61086. #: guix-git/doc/guix.texi:40352
  61087. #, no-wrap
  61088. msgid "DVD image format"
  61089. msgstr ""
  61090. #. type: table
  61091. #: guix-git/doc/guix.texi:40355
  61092. msgid "@option{--image-type=iso9660} produces an ISO-9660 image, suitable for burning on CDs and DVDs."
  61093. msgstr ""
  61094. #. type: item
  61095. #: guix-git/doc/guix.texi:40356
  61096. #, no-wrap
  61097. msgid "--image-size=@var{size}"
  61098. msgstr ""
  61099. #. type: table
  61100. #: guix-git/doc/guix.texi:40361
  61101. 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})."
  61102. msgstr ""
  61103. #. type: table
  61104. #: guix-git/doc/guix.texi:40365
  61105. 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}."
  61106. msgstr ""
  61107. #. type: table
  61108. #: guix-git/doc/guix.texi:40370
  61109. msgid "For the @code{container} action, allow containers to access the host network, that is, do not create a network namespace."
  61110. msgstr ""
  61111. #. type: item
  61112. #: guix-git/doc/guix.texi:40376
  61113. #, no-wrap
  61114. msgid "--skip-checks"
  61115. msgstr ""
  61116. #. type: table
  61117. #: guix-git/doc/guix.texi:40378
  61118. msgid "Skip pre-installation safety checks."
  61119. msgstr ""
  61120. #. type: table
  61121. #: guix-git/doc/guix.texi:40385
  61122. 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."
  61123. msgstr ""
  61124. #. type: table
  61125. #: guix-git/doc/guix.texi:40388
  61126. msgid "Instruct @command{guix system reconfigure} to allow system downgrades."
  61127. msgstr ""
  61128. #. type: table
  61129. #: guix-git/doc/guix.texi:40396
  61130. 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."
  61131. msgstr ""
  61132. #. type: cindex
  61133. #: guix-git/doc/guix.texi:40402
  61134. #, no-wrap
  61135. msgid "on-error"
  61136. msgstr ""
  61137. #. type: cindex
  61138. #: guix-git/doc/guix.texi:40403
  61139. #, no-wrap
  61140. msgid "on-error strategy"
  61141. msgstr ""
  61142. #. type: cindex
  61143. #: guix-git/doc/guix.texi:40404
  61144. #, no-wrap
  61145. msgid "error strategy"
  61146. msgstr ""
  61147. #. type: item
  61148. #: guix-git/doc/guix.texi:40405
  61149. #, no-wrap
  61150. msgid "--on-error=@var{strategy}"
  61151. msgstr ""
  61152. #. type: table
  61153. #: guix-git/doc/guix.texi:40408
  61154. msgid "Apply @var{strategy} when an error occurs when reading @var{file}. @var{strategy} may be one of the following:"
  61155. msgstr ""
  61156. #. type: item
  61157. #: guix-git/doc/guix.texi:40410
  61158. #, no-wrap
  61159. msgid "nothing-special"
  61160. msgstr ""
  61161. #. type: table
  61162. #: guix-git/doc/guix.texi:40412
  61163. msgid "Report the error concisely and exit. This is the default strategy."
  61164. msgstr ""
  61165. #. type: item
  61166. #: guix-git/doc/guix.texi:40413
  61167. #, no-wrap
  61168. msgid "backtrace"
  61169. msgstr ""
  61170. #. type: table
  61171. #: guix-git/doc/guix.texi:40415
  61172. msgid "Likewise, but also display a backtrace."
  61173. msgstr ""
  61174. #. type: item
  61175. #: guix-git/doc/guix.texi:40416
  61176. #, no-wrap
  61177. msgid "debug"
  61178. msgstr ""
  61179. #. type: table
  61180. #: guix-git/doc/guix.texi:40422
  61181. 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."
  61182. msgstr ""
  61183. #. type: Plain text
  61184. #: guix-git/doc/guix.texi:40429
  61185. 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:"
  61186. msgstr ""
  61187. #. type: item
  61188. #: guix-git/doc/guix.texi:40432 guix-git/doc/guix.texi:43971
  61189. #, no-wrap
  61190. msgid "describe"
  61191. msgstr ""
  61192. #. type: table
  61193. #: guix-git/doc/guix.texi:40435
  61194. msgid "Describe the running system generation: its file name, the kernel and bootloader used, etc., as well as provenance information when available."
  61195. msgstr ""
  61196. #. type: table
  61197. #: guix-git/doc/guix.texi:40442
  61198. msgid "The @code{--list-installed} flag is available, with the same syntax that is used in @command{guix package --list-installed} (@pxref{Invoking guix package}). When the flag is used, the description will include a list of packages that are currently installed in the system profile, with optional filtering based on a regular expression."
  61199. msgstr ""
  61200. #. type: quotation
  61201. #: guix-git/doc/guix.texi:40449
  61202. 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."
  61203. msgstr ""
  61204. #. type: quotation
  61205. #: guix-git/doc/guix.texi:40453
  61206. 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."
  61207. msgstr ""
  61208. #. type: item
  61209. #: guix-git/doc/guix.texi:40455 guix-git/doc/guix.texi:43986
  61210. #, no-wrap
  61211. msgid "list-generations"
  61212. msgstr ""
  61213. #. type: table
  61214. #: guix-git/doc/guix.texi:40460
  61215. 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})."
  61216. msgstr ""
  61217. #. type: table
  61218. #: guix-git/doc/guix.texi:40465 guix-git/doc/guix.texi:43996
  61219. 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:"
  61220. msgstr ""
  61221. #. type: example
  61222. #: guix-git/doc/guix.texi:40468
  61223. #, no-wrap
  61224. msgid "$ guix system list-generations 10d\n"
  61225. msgstr ""
  61226. #. type: table
  61227. #: guix-git/doc/guix.texi:40474
  61228. msgid "The @code{--list-installed} flag may also be specified, with the same syntax that is used in @command{guix package --list-installed}. This may be helpful if trying to determine when a package was added to the system."
  61229. msgstr ""
  61230. #. type: Plain text
  61231. #: guix-git/doc/guix.texi:40480
  61232. 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:"
  61233. msgstr ""
  61234. #. type: anchor{#1}
  61235. #: guix-git/doc/guix.texi:40482
  61236. msgid "system-extension-graph"
  61237. msgstr ""
  61238. #. type: item
  61239. #: guix-git/doc/guix.texi:40484 guix-git/doc/guix.texi:44026
  61240. #, no-wrap
  61241. msgid "extension-graph"
  61242. msgstr ""
  61243. #. type: table
  61244. #: guix-git/doc/guix.texi:40491
  61245. 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}}):"
  61246. msgstr ""
  61247. #. type: table
  61248. #: guix-git/doc/guix.texi:40493 guix-git/doc/guix.texi:44035
  61249. msgid "The command:"
  61250. msgstr ""
  61251. #. type: example
  61252. #: guix-git/doc/guix.texi:40496
  61253. #, no-wrap
  61254. msgid "$ guix system extension-graph @var{file} | xdot -\n"
  61255. msgstr ""
  61256. #. type: table
  61257. #: guix-git/doc/guix.texi:40499 guix-git/doc/guix.texi:44041
  61258. msgid "shows the extension relations among services."
  61259. msgstr ""
  61260. #. type: quotation
  61261. #: guix-git/doc/guix.texi:40502
  61262. msgid "The @command{dot} program is provided by the @code{graphviz} package."
  61263. msgstr ""
  61264. #. type: anchor{#1}
  61265. #: guix-git/doc/guix.texi:40505
  61266. msgid "system-shepherd-graph"
  61267. msgstr ""
  61268. #. type: item
  61269. #: guix-git/doc/guix.texi:40505 guix-git/doc/guix.texi:44043
  61270. #, no-wrap
  61271. msgid "shepherd-graph"
  61272. msgstr ""
  61273. #. type: table
  61274. #: guix-git/doc/guix.texi:40510
  61275. 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."
  61276. msgstr ""
  61277. #. type: table
  61278. #: guix-git/doc/guix.texi:40513 guix-git/doc/guix.texi:44050
  61279. msgid "Again, the default output format is Dot/Graphviz, but you can pass @option{--graph-backend} to select a different one."
  61280. msgstr ""
  61281. #. type: section
  61282. #: guix-git/doc/guix.texi:40517
  61283. #, fuzzy, no-wrap
  61284. msgid "Invoking @command{guix deploy}"
  61285. msgstr "调用@command{guix-daemon}"
  61286. #. type: command{#1}
  61287. #: guix-git/doc/guix.texi:40519
  61288. #, fuzzy, no-wrap
  61289. #| msgid "Invoking guix deploy"
  61290. msgid "guix deploy"
  61291. msgstr "调用 guix deploy"
  61292. #. type: Plain text
  61293. #: guix-git/doc/guix.texi:40526
  61294. 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''."
  61295. msgstr ""
  61296. #. type: quotation
  61297. #: guix-git/doc/guix.texi:40531 guix-git/doc/guix.texi:42077
  61298. 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}!"
  61299. msgstr ""
  61300. #. type: example
  61301. #: guix-git/doc/guix.texi:40535
  61302. #, no-wrap
  61303. msgid "guix deploy @var{file}\n"
  61304. msgstr ""
  61305. #. type: Plain text
  61306. #: guix-git/doc/guix.texi:40539
  61307. 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:"
  61308. msgstr ""
  61309. #. type: lisp
  61310. #: guix-git/doc/guix.texi:40546
  61311. #, no-wrap
  61312. msgid ""
  61313. ";; This is a Guix deployment of a \"bare bones\" setup, with\n"
  61314. ";; no X11 display server, to a machine with an SSH daemon\n"
  61315. ";; listening on localhost:2222. A configuration such as this\n"
  61316. ";; may be appropriate for virtual machine with ports\n"
  61317. ";; forwarded to the host's loopback interface.\n"
  61318. "\n"
  61319. msgstr ""
  61320. #. type: lisp
  61321. #: guix-git/doc/guix.texi:40549
  61322. #, no-wrap
  61323. msgid ""
  61324. "(use-service-modules networking ssh)\n"
  61325. "(use-package-modules bootloaders)\n"
  61326. "\n"
  61327. msgstr ""
  61328. #. type: lisp
  61329. #: guix-git/doc/guix.texi:40570
  61330. #, no-wrap
  61331. msgid ""
  61332. "(define %system\n"
  61333. " (operating-system\n"
  61334. " (host-name \"gnu-deployed\")\n"
  61335. " (timezone \"Etc/UTC\")\n"
  61336. " (bootloader (bootloader-configuration\n"
  61337. " (bootloader grub-bootloader)\n"
  61338. " (targets '(\"/dev/vda\"))\n"
  61339. " (terminal-outputs '(console))))\n"
  61340. " (file-systems (cons (file-system\n"
  61341. " (mount-point \"/\")\n"
  61342. " (device \"/dev/vda1\")\n"
  61343. " (type \"ext4\"))\n"
  61344. " %base-file-systems))\n"
  61345. " (services\n"
  61346. " (append (list (service dhcp-client-service-type)\n"
  61347. " (service openssh-service-type\n"
  61348. " (openssh-configuration\n"
  61349. " (permit-root-login #t)\n"
  61350. " (allow-empty-passwords? #t))))\n"
  61351. " %base-services))))\n"
  61352. "\n"
  61353. msgstr ""
  61354. #. type: lisp
  61355. #: guix-git/doc/guix.texi:40580
  61356. #, no-wrap
  61357. msgid ""
  61358. "(list (machine\n"
  61359. " (operating-system %system)\n"
  61360. " (environment managed-host-environment-type)\n"
  61361. " (configuration (machine-ssh-configuration\n"
  61362. " (host-name \"localhost\")\n"
  61363. " (system \"x86_64-linux\")\n"
  61364. " (user \"alice\")\n"
  61365. " (identity \"./id_rsa\")\n"
  61366. " (port 2222)))))\n"
  61367. msgstr ""
  61368. #. type: Plain text
  61369. #: guix-git/doc/guix.texi:40593
  61370. 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."
  61371. msgstr ""
  61372. #. type: Plain text
  61373. #: guix-git/doc/guix.texi:40598
  61374. 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:"
  61375. msgstr ""
  61376. #. type: Plain text
  61377. #: guix-git/doc/guix.texi:40606
  61378. #, fuzzy
  61379. msgid "Each target machine must authorize the key of the master machine so that it accepts store items it receives from the coordinator:"
  61380. msgstr "每台构建机器都必须认证主机器的公钥,从而接收从主机器接收的仓库文件:"
  61381. #. type: example
  61382. #: guix-git/doc/guix.texi:40609
  61383. #, fuzzy, no-wrap
  61384. msgid "# guix archive --authorize < coordinator-public-key.txt\n"
  61385. msgstr "# guix archive --authorize < master-public-key.txt\n"
  61386. #. type: Plain text
  61387. #: guix-git/doc/guix.texi:40620
  61388. 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:"
  61389. msgstr ""
  61390. #. type: lisp
  61391. #: guix-git/doc/guix.texi:40624
  61392. #, no-wrap
  61393. msgid ""
  61394. "(use-modules ...\n"
  61395. " (gnu system)) ;for %sudoers-specification\n"
  61396. "\n"
  61397. msgstr ""
  61398. #. type: lisp
  61399. #: guix-git/doc/guix.texi:40626
  61400. #, no-wrap
  61401. msgid ""
  61402. "(define %user \"username\")\n"
  61403. "\n"
  61404. msgstr ""
  61405. #. type: lisp
  61406. #: guix-git/doc/guix.texi:40634
  61407. #, no-wrap
  61408. msgid ""
  61409. "(operating-system\n"
  61410. " ...\n"
  61411. " (sudoers-file\n"
  61412. " (plain-file \"sudoers\"\n"
  61413. " (string-append (plain-file-content %sudoers-specification)\n"
  61414. " (format #f \"~a ALL = NOPASSWD: ALL~%\"\n"
  61415. " %user)))))\n"
  61416. "\n"
  61417. msgstr ""
  61418. #. type: Plain text
  61419. #: guix-git/doc/guix.texi:40639
  61420. msgid "For more information regarding the format of the @file{sudoers} file, consult @command{man sudoers}."
  61421. msgstr ""
  61422. #. type: Plain text
  61423. #: guix-git/doc/guix.texi:40644
  61424. 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:"
  61425. msgstr ""
  61426. #. type: example
  61427. #: guix-git/doc/guix.texi:40647
  61428. #, no-wrap
  61429. msgid "guix deploy @var{file} -x -- uname -a\n"
  61430. msgstr ""
  61431. #. type: Plain text
  61432. #: guix-git/doc/guix.texi:40651
  61433. 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:"
  61434. msgstr ""
  61435. #. type: example
  61436. #: guix-git/doc/guix.texi:40654
  61437. #, no-wrap
  61438. msgid "guix deploy @var{file} -x -- herd restart @var{service}\n"
  61439. msgstr ""
  61440. #. type: Plain text
  61441. #: guix-git/doc/guix.texi:40658
  61442. msgid "The @command{guix deploy -x} command returns zero if and only if the command succeeded on all the machines."
  61443. msgstr ""
  61444. #. type: Plain text
  61445. #: guix-git/doc/guix.texi:40663
  61446. msgid "Below are the data types you need to know about when writing a deployment file."
  61447. msgstr ""
  61448. #. type: deftp
  61449. #: guix-git/doc/guix.texi:40664
  61450. #, fuzzy, no-wrap
  61451. msgid "{Data Type} machine"
  61452. msgstr "{数据类型} build-machine"
  61453. #. type: deftp
  61454. #: guix-git/doc/guix.texi:40667
  61455. msgid "This is the data type representing a single machine in a heterogeneous Guix deployment."
  61456. msgstr ""
  61457. #. type: table
  61458. #: guix-git/doc/guix.texi:40671
  61459. #, fuzzy
  61460. msgid "The object of the operating system configuration to deploy."
  61461. msgstr "管理操作系统配置。"
  61462. #. type: code{#1}
  61463. #: guix-git/doc/guix.texi:40672
  61464. #, fuzzy, no-wrap
  61465. msgid "environment"
  61466. msgstr "构建环境"
  61467. #. type: table
  61468. #: guix-git/doc/guix.texi:40674
  61469. msgid "An @code{environment-type} describing how the machine should be provisioned."
  61470. msgstr ""
  61471. #. type: item
  61472. #: guix-git/doc/guix.texi:40675
  61473. #, fuzzy, no-wrap
  61474. msgid "@code{configuration} (default: @code{#f})"
  61475. msgstr "@code{journal-content}(默认值:@code{#f})"
  61476. #. type: table
  61477. #: guix-git/doc/guix.texi:40680
  61478. 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."
  61479. msgstr ""
  61480. #. type: deftp
  61481. #: guix-git/doc/guix.texi:40683
  61482. #, fuzzy, no-wrap
  61483. msgid "{Data Type} machine-ssh-configuration"
  61484. msgstr "{数据类型} build-machine"
  61485. #. type: deftp
  61486. #: guix-git/doc/guix.texi:40686
  61487. msgid "This is the data type representing the SSH client parameters for a machine with an @code{environment} of @code{managed-host-environment-type}."
  61488. msgstr ""
  61489. #. type: item
  61490. #: guix-git/doc/guix.texi:40689
  61491. #, fuzzy, no-wrap
  61492. msgid "@code{build-locally?} (default: @code{#t})"
  61493. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  61494. #. type: table
  61495. #: guix-git/doc/guix.texi:40691
  61496. msgid "If false, system derivations will be built on the machine being deployed to."
  61497. msgstr ""
  61498. #. type: code{#1}
  61499. #: guix-git/doc/guix.texi:40691 guix-git/doc/guix.texi:44173
  61500. #, no-wrap
  61501. msgid "system"
  61502. msgstr "系统"
  61503. #. type: table
  61504. #: guix-git/doc/guix.texi:40694
  61505. #, fuzzy
  61506. msgid "The system type describing the architecture of the machine being deployed to---e.g., @code{\"x86_64-linux\"}."
  61507. msgstr "远程机器的系统类型--如,@code{\"x86_64-linux\"}。"
  61508. #. type: item
  61509. #: guix-git/doc/guix.texi:40694
  61510. #, fuzzy, no-wrap
  61511. msgid "@code{authorize?} (default: @code{#t})"
  61512. msgstr "@code{mate}(默认值:@code{mate})"
  61513. #. type: table
  61514. #: guix-git/doc/guix.texi:40697
  61515. msgid "If true, the coordinator's signing key will be added to the remote's ACL keyring."
  61516. msgstr ""
  61517. #. type: item
  61518. #: guix-git/doc/guix.texi:40699
  61519. #, fuzzy, no-wrap
  61520. msgid "@code{identity} (default: @code{#f})"
  61521. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  61522. #. type: table
  61523. #: guix-git/doc/guix.texi:40702
  61524. msgid "If specified, the path to the SSH private key to use to authenticate with the remote host."
  61525. msgstr ""
  61526. #. type: item
  61527. #: guix-git/doc/guix.texi:40703
  61528. #, fuzzy, no-wrap
  61529. msgid "@code{host-key} (default: @code{#f})"
  61530. msgstr "@code{port}(默认值:@code{22})"
  61531. #. type: table
  61532. #: guix-git/doc/guix.texi:40705
  61533. msgid "This should be the SSH host key of the machine, which looks like this:"
  61534. msgstr ""
  61535. #. type: example
  61536. #: guix-git/doc/guix.texi:40708
  61537. #, fuzzy, no-wrap
  61538. msgid "ssh-ed25519 AAAAC3Nz@dots{} root@@example.org\n"
  61539. msgstr "ssh-ed25519 AAAAC3NzaC@dots{}mde+UhL hint@@example.org\n"
  61540. #. type: table
  61541. #: guix-git/doc/guix.texi:40713
  61542. 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."
  61543. msgstr ""
  61544. #. type: item
  61545. #: guix-git/doc/guix.texi:40714
  61546. #, fuzzy, no-wrap
  61547. msgid "@code{allow-downgrades?} (default: @code{#f})"
  61548. msgstr "@code{challenge}(默认值:@code{#f})"
  61549. #. type: table
  61550. #: guix-git/doc/guix.texi:40716
  61551. msgid "Whether to allow potential downgrades."
  61552. msgstr ""
  61553. #. type: table
  61554. #: guix-git/doc/guix.texi:40724
  61555. 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."
  61556. msgstr ""
  61557. #. type: item
  61558. #: guix-git/doc/guix.texi:40725
  61559. #, fuzzy, no-wrap
  61560. msgid "@code{safety-checks?} (default: @code{#t})"
  61561. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  61562. #. type: table
  61563. #: guix-git/doc/guix.texi:40731
  61564. 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."
  61565. msgstr ""
  61566. #. type: table
  61567. #: guix-git/doc/guix.texi:40734
  61568. msgid "These safety checks ensure that you do not inadvertently deploy a system that would fail to boot. Be careful before turning them off!"
  61569. msgstr ""
  61570. #. type: deftp
  61571. #: guix-git/doc/guix.texi:40737
  61572. #, no-wrap
  61573. msgid "{Data Type} digital-ocean-configuration"
  61574. msgstr ""
  61575. #. type: deftp
  61576. #: guix-git/doc/guix.texi:40740
  61577. 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}."
  61578. msgstr ""
  61579. #. type: code{#1}
  61580. #: guix-git/doc/guix.texi:40742
  61581. #, fuzzy, no-wrap
  61582. msgid "ssh-key"
  61583. msgstr "主机公钥"
  61584. #. type: table
  61585. #: guix-git/doc/guix.texi:40745
  61586. msgid "The path to the SSH private key to use to authenticate with the remote host. In the future, this field may not exist."
  61587. msgstr ""
  61588. #. type: code{#1}
  61589. #: guix-git/doc/guix.texi:40745
  61590. #, no-wrap
  61591. msgid "tags"
  61592. msgstr ""
  61593. #. type: table
  61594. #: guix-git/doc/guix.texi:40748
  61595. 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."
  61596. msgstr ""
  61597. #. type: code{#1}
  61598. #: guix-git/doc/guix.texi:40748
  61599. #, no-wrap
  61600. msgid "region"
  61601. msgstr ""
  61602. #. type: table
  61603. #: guix-git/doc/guix.texi:40750
  61604. msgid "A Digital Ocean region slug, such as @code{\"nyc3\"}."
  61605. msgstr ""
  61606. #. type: table
  61607. #: guix-git/doc/guix.texi:40752
  61608. msgid "A Digital Ocean size slug, such as @code{\"s-1vcpu-1gb\"}"
  61609. msgstr ""
  61610. #. type: code{#1}
  61611. #: guix-git/doc/guix.texi:40752
  61612. #, no-wrap
  61613. msgid "enable-ipv6?"
  61614. msgstr ""
  61615. #. type: table
  61616. #: guix-git/doc/guix.texi:40754
  61617. msgid "Whether or not the droplet should be created with IPv6 networking."
  61618. msgstr ""
  61619. #. type: section
  61620. #: guix-git/doc/guix.texi:40758
  61621. #, no-wrap
  61622. msgid "Running Guix in a Virtual Machine"
  61623. msgstr ""
  61624. #. type: Plain text
  61625. #: guix-git/doc/guix.texi:40766
  61626. 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)."
  61627. msgstr ""
  61628. #. type: Plain text
  61629. #: guix-git/doc/guix.texi:40773
  61630. 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})."
  61631. msgstr ""
  61632. #. type: Plain text
  61633. #: guix-git/doc/guix.texi:40776
  61634. msgid "Instead of using this pre-built image, one can also build their own image using @command{guix system image} (@pxref{Invoking guix system})."
  61635. msgstr ""
  61636. #. type: cindex
  61637. #: guix-git/doc/guix.texi:40777
  61638. #, no-wrap
  61639. msgid "QEMU"
  61640. msgstr ""
  61641. #. type: Plain text
  61642. #: guix-git/doc/guix.texi:40784
  61643. 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:"
  61644. msgstr ""
  61645. #. type: example
  61646. #: guix-git/doc/guix.texi:40791
  61647. #, no-wrap
  61648. msgid ""
  61649. "$ qemu-system-x86_64 \\\n"
  61650. " -nic user,model=virtio-net-pci \\\n"
  61651. " -enable-kvm -m 2048 \\\n"
  61652. " -device virtio-blk,drive=myhd \\\n"
  61653. " -drive if=none,file=guix-system-vm-image-@value{VERSION}.x86_64-linux.qcow2,id=myhd\n"
  61654. msgstr ""
  61655. #. type: Plain text
  61656. #: guix-git/doc/guix.texi:40794
  61657. msgid "Here is what each of these options means:"
  61658. msgstr ""
  61659. #. type: item
  61660. #: guix-git/doc/guix.texi:40796
  61661. #, no-wrap
  61662. msgid "qemu-system-x86_64"
  61663. msgstr ""
  61664. #. type: table
  61665. #: guix-git/doc/guix.texi:40799
  61666. msgid "This specifies the hardware platform to emulate. This should match the host."
  61667. msgstr ""
  61668. #. type: item
  61669. #: guix-git/doc/guix.texi:40800
  61670. #, no-wrap
  61671. msgid "-nic user,model=virtio-net-pci"
  61672. msgstr ""
  61673. #. type: table
  61674. #: guix-git/doc/guix.texi:40808
  61675. 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}."
  61676. msgstr ""
  61677. #. type: item
  61678. #: guix-git/doc/guix.texi:40809
  61679. #, no-wrap
  61680. msgid "-enable-kvm"
  61681. msgstr ""
  61682. #. type: table
  61683. #: guix-git/doc/guix.texi:40813
  61684. msgid "If your system has hardware virtualization extensions, enabling the virtual machine support (KVM) of the Linux kernel will make things run faster."
  61685. msgstr ""
  61686. #. type: item
  61687. #: guix-git/doc/guix.texi:40815
  61688. #, no-wrap
  61689. msgid "-m 2048"
  61690. msgstr ""
  61691. #. type: table
  61692. #: guix-git/doc/guix.texi:40818
  61693. msgid "RAM available to the guest OS, in mebibytes. Defaults to 128@tie{}MiB, which may be insufficient for some operations."
  61694. msgstr ""
  61695. #. type: item
  61696. #: guix-git/doc/guix.texi:40819
  61697. #, no-wrap
  61698. msgid "-device virtio-blk,drive=myhd"
  61699. msgstr ""
  61700. #. type: table
  61701. #: guix-git/doc/guix.texi:40824
  61702. 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."
  61703. msgstr ""
  61704. #. type: item
  61705. #: guix-git/doc/guix.texi:40825
  61706. #, no-wrap
  61707. msgid "-drive if=none,file=/tmp/qemu-image,id=myhd"
  61708. msgstr ""
  61709. #. type: table
  61710. #: guix-git/doc/guix.texi:40829
  61711. msgid "Use our QCOW image, the @file{guix-system-vm-image-@value{VERSION}.x86_64-linux.qcow2} file, as the backing store of the ``myhd'' drive."
  61712. msgstr ""
  61713. #. type: Plain text
  61714. #: guix-git/doc/guix.texi:40839
  61715. 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}."
  61716. msgstr ""
  61717. #. type: subsection
  61718. #: guix-git/doc/guix.texi:40840
  61719. #, no-wrap
  61720. msgid "Connecting Through SSH"
  61721. msgstr ""
  61722. #. type: Plain text
  61723. #: guix-git/doc/guix.texi:40848
  61724. 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"
  61725. msgstr ""
  61726. #. type: example
  61727. #: guix-git/doc/guix.texi:40851
  61728. #, no-wrap
  61729. msgid "$(guix system vm config.scm) -nic user,model=virtio-net-pci,hostfwd=tcp::10022-:22\n"
  61730. msgstr ""
  61731. #. type: Plain text
  61732. #: guix-git/doc/guix.texi:40854
  61733. msgid "To connect to the VM you can run"
  61734. msgstr ""
  61735. #. type: example
  61736. #: guix-git/doc/guix.texi:40857
  61737. #, no-wrap
  61738. msgid "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 10022 localhost\n"
  61739. msgstr ""
  61740. #. type: Plain text
  61741. #: guix-git/doc/guix.texi:40864
  61742. 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."
  61743. msgstr ""
  61744. #. type: quotation
  61745. #: guix-git/doc/guix.texi:40870
  61746. 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."
  61747. msgstr ""
  61748. #. type: subsection
  61749. #: guix-git/doc/guix.texi:40872
  61750. #, no-wrap
  61751. msgid "Using @command{virt-viewer} with Spice"
  61752. msgstr ""
  61753. #. type: Plain text
  61754. #: guix-git/doc/guix.texi:40878
  61755. 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."
  61756. msgstr ""
  61757. #. type: Plain text
  61758. #: guix-git/doc/guix.texi:40881
  61759. 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}:"
  61760. msgstr ""
  61761. #. type: example
  61762. #: guix-git/doc/guix.texi:40887
  61763. #, no-wrap
  61764. msgid ""
  61765. "-device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x5\n"
  61766. "-chardev spicevmc,name=vdagent,id=vdagent\n"
  61767. "-device virtserialport,nr=1,bus=virtio-serial0.0,chardev=vdagent,\\\n"
  61768. "name=com.redhat.spice.0\n"
  61769. msgstr ""
  61770. #. type: Plain text
  61771. #: guix-git/doc/guix.texi:40891
  61772. msgid "You'll also need to add the @code{(spice-vdagent-service)} to your system definition (@pxref{Miscellaneous Services, Spice service})."
  61773. msgstr ""
  61774. #. type: Plain text
  61775. #: guix-git/doc/guix.texi:40898
  61776. 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?"
  61777. msgstr ""
  61778. #. type: cindex
  61779. #: guix-git/doc/guix.texi:40911
  61780. #, no-wrap
  61781. msgid "daemons"
  61782. msgstr ""
  61783. #. type: Plain text
  61784. #: guix-git/doc/guix.texi:40924
  61785. 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."
  61786. msgstr ""
  61787. #. type: cindex
  61788. #: guix-git/doc/guix.texi:40925
  61789. #, no-wrap
  61790. msgid "service extensions"
  61791. msgstr ""
  61792. #. type: Plain text
  61793. #: guix-git/doc/guix.texi:40937
  61794. 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})."
  61795. msgstr ""
  61796. #. type: Plain text
  61797. #: guix-git/doc/guix.texi:40941
  61798. 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:"
  61799. msgstr ""
  61800. #. type: Plain text
  61801. #: guix-git/doc/guix.texi:40943
  61802. msgid "@image{images/service-graph,,5in,Typical service extension graph.}"
  61803. msgstr ""
  61804. #. type: cindex
  61805. #: guix-git/doc/guix.texi:40944
  61806. #, no-wrap
  61807. msgid "system service"
  61808. msgstr ""
  61809. #. type: Plain text
  61810. #: guix-git/doc/guix.texi:40952
  61811. 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."
  61812. msgstr ""
  61813. #. type: cindex
  61814. #: guix-git/doc/guix.texi:40953
  61815. #, no-wrap
  61816. msgid "service types"
  61817. msgstr ""
  61818. #. type: Plain text
  61819. #: guix-git/doc/guix.texi:40959
  61820. 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."
  61821. msgstr ""
  61822. #. type: Plain text
  61823. #: guix-git/doc/guix.texi:40962
  61824. msgid "The following section describes the programming interface for service types and services."
  61825. msgstr ""
  61826. #. type: Plain text
  61827. #: guix-git/doc/guix.texi:40969
  61828. 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}):"
  61829. msgstr ""
  61830. #. type: lisp
  61831. #: guix-git/doc/guix.texi:40979
  61832. #, no-wrap
  61833. msgid ""
  61834. "(define guix-service-type\n"
  61835. " (service-type\n"
  61836. " (name 'guix)\n"
  61837. " (extensions\n"
  61838. " (list (service-extension shepherd-root-service-type guix-shepherd-service)\n"
  61839. " (service-extension account-service-type guix-accounts)\n"
  61840. " (service-extension activation-service-type guix-activation)))\n"
  61841. " (default-value (guix-configuration))))\n"
  61842. msgstr ""
  61843. #. type: Plain text
  61844. #: guix-git/doc/guix.texi:40983
  61845. msgid "It defines three things:"
  61846. msgstr ""
  61847. #. type: enumerate
  61848. #: guix-git/doc/guix.texi:40987
  61849. msgid "A name, whose sole purpose is to make inspection and debugging easier."
  61850. msgstr ""
  61851. #. type: enumerate
  61852. #: guix-git/doc/guix.texi:40992
  61853. 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."
  61854. msgstr ""
  61855. #. type: enumerate
  61856. #: guix-git/doc/guix.texi:40995
  61857. msgid "Every service type has at least one service extension. The only exception is the @dfn{boot service type}, which is the ultimate service."
  61858. msgstr ""
  61859. #. type: enumerate
  61860. #: guix-git/doc/guix.texi:40998
  61861. msgid "Optionally, a default value for instances of this type."
  61862. msgstr ""
  61863. #. type: Plain text
  61864. #: guix-git/doc/guix.texi:41001
  61865. msgid "In this example, @code{guix-service-type} extends three services:"
  61866. msgstr ""
  61867. #. type: defvar
  61868. #: guix-git/doc/guix.texi:41003 guix-git/doc/guix.texi:41622
  61869. #, no-wrap
  61870. msgid "shepherd-root-service-type"
  61871. msgstr ""
  61872. #. type: table
  61873. #: guix-git/doc/guix.texi:41008
  61874. 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})."
  61875. msgstr ""
  61876. #. type: item
  61877. #: guix-git/doc/guix.texi:41009
  61878. #, no-wrap
  61879. msgid "account-service-type"
  61880. msgstr ""
  61881. #. type: table
  61882. #: guix-git/doc/guix.texi:41014
  61883. 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})."
  61884. msgstr ""
  61885. #. type: item
  61886. #: guix-git/doc/guix.texi:41015
  61887. #, no-wrap
  61888. msgid "activation-service-type"
  61889. msgstr ""
  61890. #. type: table
  61891. #: guix-git/doc/guix.texi:41019
  61892. 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."
  61893. msgstr ""
  61894. #. type: Plain text
  61895. #: guix-git/doc/guix.texi:41022
  61896. msgid "A service of this type is instantiated like this:"
  61897. msgstr ""
  61898. #. type: lisp
  61899. #: guix-git/doc/guix.texi:41028
  61900. #, no-wrap
  61901. msgid ""
  61902. "(service guix-service-type\n"
  61903. " (guix-configuration\n"
  61904. " (build-accounts 5)\n"
  61905. " (extra-options '(\"--gc-keep-derivations\"))))\n"
  61906. msgstr ""
  61907. #. type: Plain text
  61908. #: guix-git/doc/guix.texi:41036
  61909. 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:"
  61910. msgstr ""
  61911. #. type: lisp
  61912. #: guix-git/doc/guix.texi:41039
  61913. #, no-wrap
  61914. msgid "(service guix-service-type)\n"
  61915. msgstr ""
  61916. #. type: Plain text
  61917. #: guix-git/doc/guix.texi:41043
  61918. msgid "@code{guix-service-type} is quite simple because it extends other services but is not extensible itself."
  61919. msgstr ""
  61920. #. type: Plain text
  61921. #: guix-git/doc/guix.texi:41047
  61922. msgid "The service type for an @emph{extensible} service looks like this:"
  61923. msgstr ""
  61924. #. type: lisp
  61925. #: guix-git/doc/guix.texi:41054
  61926. #, no-wrap
  61927. msgid ""
  61928. "(define udev-service-type\n"
  61929. " (service-type (name 'udev)\n"
  61930. " (extensions\n"
  61931. " (list (service-extension shepherd-root-service-type\n"
  61932. " udev-shepherd-service)))\n"
  61933. "\n"
  61934. msgstr ""
  61935. #. type: lisp
  61936. #: guix-git/doc/guix.texi:41061
  61937. #, no-wrap
  61938. msgid ""
  61939. " (compose concatenate) ;concatenate the list of rules\n"
  61940. " (extend (lambda (config rules)\n"
  61941. " (udev-configuration\n"
  61942. " (inherit config)\n"
  61943. " (rules (append (udev-configuration-rules config)\n"
  61944. " rules)))))))\n"
  61945. msgstr ""
  61946. #. type: Plain text
  61947. #: guix-git/doc/guix.texi:41067
  61948. 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:"
  61949. msgstr ""
  61950. #. type: item
  61951. #: guix-git/doc/guix.texi:41069
  61952. #, no-wrap
  61953. msgid "compose"
  61954. msgstr ""
  61955. #. type: table
  61956. #: guix-git/doc/guix.texi:41072
  61957. msgid "This is the procedure to @dfn{compose} the list of extensions to services of this type."
  61958. msgstr ""
  61959. #. type: table
  61960. #: guix-git/doc/guix.texi:41075
  61961. msgid "Services can extend the udev service by passing it lists of rules; we compose those extensions simply by concatenating them."
  61962. msgstr ""
  61963. #. type: item
  61964. #: guix-git/doc/guix.texi:41076
  61965. #, no-wrap
  61966. msgid "extend"
  61967. msgstr ""
  61968. #. type: table
  61969. #: guix-git/doc/guix.texi:41079
  61970. msgid "This procedure defines how the value of the service is @dfn{extended} with the composition of the extensions."
  61971. msgstr ""
  61972. #. type: table
  61973. #: guix-git/doc/guix.texi:41084
  61974. 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."
  61975. msgstr ""
  61976. #. type: table
  61977. #: guix-git/doc/guix.texi:41090
  61978. 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})."
  61979. msgstr ""
  61980. #. type: Plain text
  61981. #: guix-git/doc/guix.texi:41095
  61982. 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."
  61983. msgstr ""
  61984. #. type: Plain text
  61985. #: guix-git/doc/guix.texi:41098
  61986. msgid "Still here? The next section provides a reference of the programming interface for services."
  61987. msgstr ""
  61988. #. type: Plain text
  61989. #: guix-git/doc/guix.texi:41106
  61990. 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."
  61991. msgstr ""
  61992. #. type: defun
  61993. #: guix-git/doc/guix.texi:41107
  61994. #, fuzzy, no-wrap
  61995. msgid "service type [value]"
  61996. msgstr "邮件服务"
  61997. #. type: defun
  61998. #: guix-git/doc/guix.texi:41111
  61999. 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."
  62000. msgstr ""
  62001. #. type: defun
  62002. #: guix-git/doc/guix.texi:41115
  62003. 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."
  62004. msgstr ""
  62005. #. type: defun
  62006. #: guix-git/doc/guix.texi:41117
  62007. msgid "For instance, this:"
  62008. msgstr ""
  62009. #. type: lisp
  62010. #: guix-git/doc/guix.texi:41120
  62011. #, no-wrap
  62012. msgid "(service openssh-service-type)\n"
  62013. msgstr ""
  62014. #. type: defun
  62015. #: guix-git/doc/guix.texi:41124
  62016. msgid "is equivalent to this:"
  62017. msgstr ""
  62018. #. type: lisp
  62019. #: guix-git/doc/guix.texi:41128
  62020. #, no-wrap
  62021. msgid ""
  62022. "(service openssh-service-type\n"
  62023. " (openssh-configuration))\n"
  62024. msgstr ""
  62025. #. type: defun
  62026. #: guix-git/doc/guix.texi:41132
  62027. msgid "In both cases the result is an instance of @code{openssh-service-type} with the default configuration."
  62028. msgstr ""
  62029. #. type: defun
  62030. #: guix-git/doc/guix.texi:41134
  62031. #, fuzzy, no-wrap
  62032. msgid "service? obj"
  62033. msgstr "DNS服务"
  62034. #. type: defun
  62035. #: guix-git/doc/guix.texi:41136
  62036. msgid "Return true if @var{obj} is a service."
  62037. msgstr ""
  62038. #. type: defun
  62039. #: guix-git/doc/guix.texi:41138
  62040. #, fuzzy, no-wrap
  62041. #| msgid "Service Types and Services"
  62042. msgid "service-kind service"
  62043. msgstr "服务类型和服务"
  62044. #. type: defun
  62045. #: guix-git/doc/guix.texi:41140
  62046. msgid "Return the type of @var{service}---i.e., a @code{<service-type>} object."
  62047. msgstr ""
  62048. #. type: defun
  62049. #: guix-git/doc/guix.texi:41142
  62050. #, fuzzy, no-wrap
  62051. msgid "service-value service"
  62052. msgstr "邮件服务"
  62053. #. type: defun
  62054. #: guix-git/doc/guix.texi:41145
  62055. msgid "Return the value associated with @var{service}. It represents its parameters."
  62056. msgstr ""
  62057. #. type: Plain text
  62058. #: guix-git/doc/guix.texi:41148
  62059. msgid "Here is an example of how a service is created and manipulated:"
  62060. msgstr ""
  62061. #. type: lisp
  62062. #: guix-git/doc/guix.texi:41157
  62063. #, no-wrap
  62064. msgid ""
  62065. "(define s\n"
  62066. " (service nginx-service-type\n"
  62067. " (nginx-configuration\n"
  62068. " (nginx nginx)\n"
  62069. " (log-directory log-directory)\n"
  62070. " (run-directory run-directory)\n"
  62071. " (file config-file))))\n"
  62072. "\n"
  62073. msgstr ""
  62074. #. type: lisp
  62075. #: guix-git/doc/guix.texi:41160
  62076. #, no-wrap
  62077. msgid ""
  62078. "(service? s)\n"
  62079. "@result{} #t\n"
  62080. "\n"
  62081. msgstr ""
  62082. #. type: lisp
  62083. #: guix-git/doc/guix.texi:41163
  62084. #, no-wrap
  62085. msgid ""
  62086. "(eq? (service-kind s) nginx-service-type)\n"
  62087. "@result{} #t\n"
  62088. msgstr ""
  62089. #. type: Plain text
  62090. #: guix-git/doc/guix.texi:41173
  62091. 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."
  62092. msgstr ""
  62093. #. type: defspec
  62094. #: guix-git/doc/guix.texi:41174
  62095. #, no-wrap
  62096. msgid "modify-services services @"
  62097. msgstr ""
  62098. #. type: defspec
  62099. #: guix-git/doc/guix.texi:41176
  62100. msgid "(type variable => body) @dots{}"
  62101. msgstr ""
  62102. #. type: defspec
  62103. #: guix-git/doc/guix.texi:41179
  62104. msgid "Modify the services listed in @var{services} according to the given clauses. Each clause has the form:"
  62105. msgstr ""
  62106. #. type: example
  62107. #: guix-git/doc/guix.texi:41182
  62108. #, no-wrap
  62109. msgid "(@var{type} @var{variable} => @var{body})\n"
  62110. msgstr ""
  62111. #. type: defspec
  62112. #: guix-git/doc/guix.texi:41189
  62113. 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}."
  62114. msgstr ""
  62115. #. type: defspec
  62116. #: guix-git/doc/guix.texi:41196
  62117. 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."
  62118. msgstr ""
  62119. #. type: defspec
  62120. #: guix-git/doc/guix.texi:41198
  62121. #, fuzzy
  62122. #| msgid "Packages are currently available on the following platforms:"
  62123. msgid "Clauses can also have the following form:"
  62124. msgstr "目前这些平台提供软件包:"
  62125. #. type: lisp
  62126. #: guix-git/doc/guix.texi:41201
  62127. #, no-wrap
  62128. msgid "(delete @var{type})\n"
  62129. msgstr "(delete @var{type})\n"
  62130. #. type: defspec
  62131. #: guix-git/doc/guix.texi:41205
  62132. msgid "Such a clause removes all services of the given @var{type} from @var{services}."
  62133. msgstr ""
  62134. #. type: defspec
  62135. #: guix-git/doc/guix.texi:41207
  62136. msgid "@xref{Using the Configuration System}, for example usage."
  62137. msgstr ""
  62138. #. type: Plain text
  62139. #: guix-git/doc/guix.texi:41214
  62140. 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."
  62141. msgstr ""
  62142. #. type: deftp
  62143. #: guix-git/doc/guix.texi:41215
  62144. #, no-wrap
  62145. msgid "{Data Type} service-type"
  62146. msgstr ""
  62147. #. type: cindex
  62148. #: guix-git/doc/guix.texi:41216
  62149. #, no-wrap
  62150. msgid "service type"
  62151. msgstr ""
  62152. #. type: deftp
  62153. #: guix-git/doc/guix.texi:41219
  62154. msgid "This is the representation of a @dfn{service type} (@pxref{Service Types and Services})."
  62155. msgstr ""
  62156. #. type: table
  62157. #: guix-git/doc/guix.texi:41223
  62158. msgid "This is a symbol, used only to simplify inspection and debugging."
  62159. msgstr ""
  62160. #. type: code{#1}
  62161. #: guix-git/doc/guix.texi:41224
  62162. #, no-wrap
  62163. msgid "extensions"
  62164. msgstr ""
  62165. #. type: table
  62166. #: guix-git/doc/guix.texi:41226
  62167. msgid "A non-empty list of @code{<service-extension>} objects (see below)."
  62168. msgstr ""
  62169. #. type: item
  62170. #: guix-git/doc/guix.texi:41227
  62171. #, no-wrap
  62172. msgid "@code{compose} (default: @code{#f})"
  62173. msgstr ""
  62174. #. type: table
  62175. #: guix-git/doc/guix.texi:41231
  62176. 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."
  62177. msgstr ""
  62178. #. type: table
  62179. #: guix-git/doc/guix.texi:41235
  62180. 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."
  62181. msgstr ""
  62182. #. type: item
  62183. #: guix-git/doc/guix.texi:41236
  62184. #, no-wrap
  62185. msgid "@code{extend} (default: @code{#f})"
  62186. msgstr ""
  62187. #. type: table
  62188. #: guix-git/doc/guix.texi:41238
  62189. msgid "If this is @code{#f}, services of this type cannot be extended."
  62190. msgstr ""
  62191. #. type: table
  62192. #: guix-git/doc/guix.texi:41244
  62193. 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."
  62194. msgstr ""
  62195. #. type: table
  62196. #: guix-git/doc/guix.texi:41250
  62197. 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})."
  62198. msgstr ""
  62199. #. type: item
  62200. #: guix-git/doc/guix.texi:41251
  62201. #, fuzzy, no-wrap
  62202. msgid "@code{default-value} (default: @code{&no-default-value})"
  62203. msgstr "@code{mate}(默认值:@code{mate})"
  62204. #. type: table
  62205. #: guix-git/doc/guix.texi:41254
  62206. msgid "The default value associated for instances of this service type. This allows users to use the @code{service} form without its second argument:"
  62207. msgstr ""
  62208. #. type: lisp
  62209. #: guix-git/doc/guix.texi:41257
  62210. #, no-wrap
  62211. msgid "(service @var{type})\n"
  62212. msgstr ""
  62213. #. type: table
  62214. #: guix-git/doc/guix.texi:41261
  62215. msgid "The returned service in this case has the default value specified by @var{type}."
  62216. msgstr ""
  62217. #. type: deftp
  62218. #: guix-git/doc/guix.texi:41264
  62219. msgid "@xref{Service Types and Services}, for examples."
  62220. msgstr ""
  62221. #. type: defun
  62222. #: guix-git/doc/guix.texi:41266
  62223. #, no-wrap
  62224. msgid "service-extension target-type compute"
  62225. msgstr ""
  62226. #. type: defun
  62227. #: guix-git/doc/guix.texi:41271
  62228. msgid "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."
  62229. msgstr ""
  62230. #. type: defun
  62231. #: guix-git/doc/guix.texi:41273
  62232. #, no-wrap
  62233. msgid "service-extension? obj"
  62234. msgstr ""
  62235. #. type: defun
  62236. #: guix-git/doc/guix.texi:41275
  62237. msgid "Return true if @var{obj} is a service extension."
  62238. msgstr ""
  62239. #. type: Plain text
  62240. #: guix-git/doc/guix.texi:41281
  62241. 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."
  62242. msgstr ""
  62243. #. type: defun
  62244. #: guix-git/doc/guix.texi:41282
  62245. #, no-wrap
  62246. msgid "simple-service name target value"
  62247. msgstr ""
  62248. #. type: defun
  62249. #: guix-git/doc/guix.texi:41286
  62250. 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."
  62251. msgstr ""
  62252. #. type: defun
  62253. #: guix-git/doc/guix.texi:41289
  62254. msgid "For example, this extends mcron (@pxref{Scheduled Job Execution}) with an additional job:"
  62255. msgstr ""
  62256. #. type: lisp
  62257. #: guix-git/doc/guix.texi:41293
  62258. #, no-wrap
  62259. msgid ""
  62260. "(simple-service 'my-mcron-job mcron-service-type\n"
  62261. " #~(job '(next-hour (3)) \"guix gc -F 2G\"))\n"
  62262. msgstr ""
  62263. #. type: Plain text
  62264. #: guix-git/doc/guix.texi:41303
  62265. 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."
  62266. msgstr ""
  62267. #. type: defun
  62268. #: guix-git/doc/guix.texi:41304
  62269. #, no-wrap
  62270. msgid "fold-services services [#:target-type system-service-type]"
  62271. msgstr ""
  62272. #. type: defun
  62273. #: guix-git/doc/guix.texi:41307
  62274. msgid "Fold @var{services} by propagating their extensions down to the root of type @var{target-type}; return the root service adjusted accordingly."
  62275. msgstr ""
  62276. #. type: Plain text
  62277. #: guix-git/doc/guix.texi:41311
  62278. msgid "Lastly, the @code{(gnu services)} module also defines several essential service types, some of which are listed below."
  62279. msgstr ""
  62280. #. type: defvar
  62281. #: guix-git/doc/guix.texi:41312
  62282. #, fuzzy, no-wrap
  62283. msgid "system-service-type"
  62284. msgstr "邮件服务"
  62285. #. type: defvar
  62286. #: guix-git/doc/guix.texi:41315
  62287. msgid "This is the root of the service graph. It produces the system directory as returned by the @command{guix system build} command."
  62288. msgstr ""
  62289. #. type: defvar
  62290. #: guix-git/doc/guix.texi:41317
  62291. #, fuzzy, no-wrap
  62292. msgid "boot-service-type"
  62293. msgstr "邮件服务"
  62294. #. type: defvar
  62295. #: guix-git/doc/guix.texi:41320
  62296. 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."
  62297. msgstr ""
  62298. #. type: defvar
  62299. #: guix-git/doc/guix.texi:41322
  62300. #, fuzzy, no-wrap
  62301. msgid "etc-service-type"
  62302. msgstr "邮件服务"
  62303. #. type: defvar
  62304. #: guix-git/doc/guix.texi:41326
  62305. 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:"
  62306. msgstr ""
  62307. #. type: lisp
  62308. #: guix-git/doc/guix.texi:41329
  62309. #, no-wrap
  62310. msgid "(list `(\"issue\" ,(plain-file \"issue\" \"Welcome!\\n\")))\n"
  62311. msgstr ""
  62312. #. type: defvar
  62313. #: guix-git/doc/guix.texi:41333
  62314. msgid "In this example, the effect would be to add an @file{/etc/issue} file pointing to the given file."
  62315. msgstr ""
  62316. #. type: defvar
  62317. #: guix-git/doc/guix.texi:41335
  62318. #, fuzzy, no-wrap
  62319. msgid "setuid-program-service-type"
  62320. msgstr "邮件服务"
  62321. #. type: defvar
  62322. #: guix-git/doc/guix.texi:41339
  62323. 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 and setgid programs on the system (@pxref{Setuid Programs})."
  62324. msgstr ""
  62325. #. type: defvar
  62326. #: guix-git/doc/guix.texi:41341
  62327. #, fuzzy, no-wrap
  62328. msgid "profile-service-type"
  62329. msgstr "邮件服务"
  62330. #. type: defvar
  62331. #: guix-git/doc/guix.texi:41345
  62332. 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."
  62333. msgstr ""
  62334. #. type: defvar
  62335. #: guix-git/doc/guix.texi:41349
  62336. #, no-wrap
  62337. msgid "provenance-service-type"
  62338. msgstr ""
  62339. #. type: defvar
  62340. #: guix-git/doc/guix.texi:41353
  62341. 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}:"
  62342. msgstr ""
  62343. #. type: item
  62344. #: guix-git/doc/guix.texi:41355
  62345. #, fuzzy, no-wrap
  62346. msgid "channels.scm"
  62347. msgstr "通道"
  62348. #. type: table
  62349. #: guix-git/doc/guix.texi:41360
  62350. 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})."
  62351. msgstr ""
  62352. #. type: item
  62353. #: guix-git/doc/guix.texi:41361
  62354. #, fuzzy, no-wrap
  62355. msgid "configuration.scm"
  62356. msgstr "系统配置"
  62357. #. type: table
  62358. #: guix-git/doc/guix.texi:41366
  62359. 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."
  62360. msgstr ""
  62361. #. type: item
  62362. #: guix-git/doc/guix.texi:41367
  62363. #, no-wrap
  62364. msgid "provenance"
  62365. msgstr ""
  62366. #. type: table
  62367. #: guix-git/doc/guix.texi:41370
  62368. msgid "This contains the same information as the two other files but in a format that is more readily processable."
  62369. msgstr ""
  62370. #. type: defvar
  62371. #: guix-git/doc/guix.texi:41374
  62372. msgid "In general, these two pieces of information (channels and configuration file) are enough to reproduce the operating system ``from source''."
  62373. msgstr ""
  62374. #. type: quotation
  62375. #: guix-git/doc/guix.texi:41375
  62376. #, no-wrap
  62377. msgid "Caveats"
  62378. msgstr ""
  62379. #. type: quotation
  62380. #: guix-git/doc/guix.texi:41382
  62381. 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."
  62382. msgstr ""
  62383. #. type: quotation
  62384. #: guix-git/doc/guix.texi:41390
  62385. 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."
  62386. msgstr ""
  62387. #. type: defvar
  62388. #: guix-git/doc/guix.texi:41395
  62389. 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}."
  62390. msgstr ""
  62391. #. type: defvar
  62392. #: guix-git/doc/guix.texi:41397
  62393. #, fuzzy, no-wrap
  62394. msgid "linux-loadable-module-service-type"
  62395. msgstr "邮件服务"
  62396. #. type: defvar
  62397. #: guix-git/doc/guix.texi:41401
  62398. msgid "Type of the service that collects lists of packages containing kernel-loadable modules, and adds them to the set of kernel-loadable modules."
  62399. msgstr ""
  62400. #. type: defvar
  62401. #: guix-git/doc/guix.texi:41404
  62402. msgid "This service type is intended to be extended by other service types, such as below:"
  62403. msgstr ""
  62404. #. type: lisp
  62405. #: guix-git/doc/guix.texi:41410
  62406. #, no-wrap
  62407. msgid ""
  62408. "(simple-service 'installing-module\n"
  62409. " linux-loadable-module-service-type\n"
  62410. " (list module-to-install-1\n"
  62411. " module-to-install-2))\n"
  62412. msgstr ""
  62413. #. type: defvar
  62414. #: guix-git/doc/guix.texi:41414
  62415. 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."
  62416. msgstr ""
  62417. #. type: cindex
  62418. #: guix-git/doc/guix.texi:41419
  62419. #, no-wrap
  62420. msgid "shepherd services"
  62421. msgstr ""
  62422. #. type: cindex
  62423. #: guix-git/doc/guix.texi:41420
  62424. #, no-wrap
  62425. msgid "PID 1"
  62426. msgstr ""
  62427. #. type: cindex
  62428. #: guix-git/doc/guix.texi:41421
  62429. #, no-wrap
  62430. msgid "init system"
  62431. msgstr ""
  62432. #. type: Plain text
  62433. #: guix-git/doc/guix.texi:41427
  62434. 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})."
  62435. msgstr ""
  62436. #. type: Plain text
  62437. #: guix-git/doc/guix.texi:41433
  62438. 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:"
  62439. msgstr ""
  62440. #. type: Plain text
  62441. #: guix-git/doc/guix.texi:41435
  62442. msgid "@image{images/shepherd-graph,,5in,Typical shepherd service graph.}"
  62443. msgstr ""
  62444. #. type: Plain text
  62445. #: guix-git/doc/guix.texi:41439
  62446. 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}})."
  62447. msgstr ""
  62448. #. type: Plain text
  62449. #: guix-git/doc/guix.texi:41443
  62450. 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."
  62451. msgstr ""
  62452. #. type: deftp
  62453. #: guix-git/doc/guix.texi:41444
  62454. #, no-wrap
  62455. msgid "{Data Type} shepherd-service"
  62456. msgstr ""
  62457. #. type: deftp
  62458. #: guix-git/doc/guix.texi:41446
  62459. msgid "The data type representing a service managed by the Shepherd."
  62460. msgstr ""
  62461. #. type: code{#1}
  62462. #: guix-git/doc/guix.texi:41448
  62463. #, no-wrap
  62464. msgid "provision"
  62465. msgstr ""
  62466. #. type: table
  62467. #: guix-git/doc/guix.texi:41450
  62468. msgid "This is a list of symbols denoting what the service provides."
  62469. msgstr ""
  62470. #. type: table
  62471. #: guix-git/doc/guix.texi:41455
  62472. 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{Defining Services,,, shepherd, The GNU Shepherd Manual}, for details."
  62473. msgstr ""
  62474. #. type: item
  62475. #: guix-git/doc/guix.texi:41456
  62476. #, fuzzy, no-wrap
  62477. msgid "@code{requirement} (default: @code{'()})"
  62478. msgstr "@code{features} (@code{'()})"
  62479. #. type: table
  62480. #: guix-git/doc/guix.texi:41458
  62481. msgid "List of symbols denoting the Shepherd services this one depends on."
  62482. msgstr ""
  62483. #. type: cindex
  62484. #: guix-git/doc/guix.texi:41459
  62485. #, no-wrap
  62486. msgid "one-shot services, for the Shepherd"
  62487. msgstr ""
  62488. #. type: table
  62489. #: guix-git/doc/guix.texi:41464
  62490. 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."
  62491. msgstr ""
  62492. #. type: item
  62493. #: guix-git/doc/guix.texi:41465
  62494. #, no-wrap
  62495. msgid "@code{respawn?} (default: @code{#t})"
  62496. msgstr ""
  62497. #. type: table
  62498. #: guix-git/doc/guix.texi:41468
  62499. msgid "Whether to restart the service when it stops, for instance when the underlying process dies."
  62500. msgstr ""
  62501. #. type: code{#1}
  62502. #: guix-git/doc/guix.texi:41469
  62503. #, no-wrap
  62504. msgid "start"
  62505. msgstr ""
  62506. #. type: itemx
  62507. #: guix-git/doc/guix.texi:41470
  62508. #, no-wrap
  62509. msgid "@code{stop} (default: @code{#~(const #f)})"
  62510. msgstr ""
  62511. #. type: table
  62512. #: guix-git/doc/guix.texi:41476
  62513. 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})."
  62514. msgstr ""
  62515. #. type: item
  62516. #: guix-git/doc/guix.texi:41477
  62517. #, no-wrap
  62518. msgid "@code{actions} (default: @code{'()})"
  62519. msgstr ""
  62520. #. type: cindex
  62521. #: guix-git/doc/guix.texi:41478
  62522. #, no-wrap
  62523. msgid "actions, of Shepherd services"
  62524. msgstr ""
  62525. #. type: table
  62526. #: guix-git/doc/guix.texi:41483
  62527. 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:"
  62528. msgstr ""
  62529. #. type: example
  62530. #: guix-git/doc/guix.texi:41486
  62531. #, no-wrap
  62532. msgid "herd @var{action} @var{service} [@var{arguments}@dots{}]\n"
  62533. msgstr ""
  62534. #. type: item
  62535. #: guix-git/doc/guix.texi:41488
  62536. #, fuzzy, no-wrap
  62537. msgid "@code{auto-start?} (default: @code{#t})"
  62538. msgstr "@code{port}(默认值:@code{22})"
  62539. #. type: table
  62540. #: guix-git/doc/guix.texi:41491
  62541. 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}."
  62542. msgstr ""
  62543. #. type: table
  62544. #: guix-git/doc/guix.texi:41494
  62545. msgid "A documentation string, as shown when running:"
  62546. msgstr ""
  62547. #. type: example
  62548. #: guix-git/doc/guix.texi:41497
  62549. #, no-wrap
  62550. msgid "herd doc @var{service-name}\n"
  62551. msgstr ""
  62552. #. type: table
  62553. #: guix-git/doc/guix.texi:41501
  62554. msgid "where @var{service-name} is one of the symbols in @code{provision} (@pxref{Invoking herd,,, shepherd, The GNU Shepherd Manual})."
  62555. msgstr ""
  62556. #. type: table
  62557. #: guix-git/doc/guix.texi:41505
  62558. msgid "This is the list of modules that must be in scope when @code{start} and @code{stop} are evaluated."
  62559. msgstr ""
  62560. #. type: Plain text
  62561. #: guix-git/doc/guix.texi:41513
  62562. 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}):"
  62563. msgstr ""
  62564. #. type: example
  62565. #: guix-git/doc/guix.texi:41525
  62566. #, no-wrap
  62567. msgid ""
  62568. "(let ((config (plain-file \"syslogd.conf\" \"@dots{}\")))\n"
  62569. " (shepherd-service\n"
  62570. " (documentation \"Run the syslog daemon (syslogd).\")\n"
  62571. " (provision '(syslogd))\n"
  62572. " (requirement '(user-processes))\n"
  62573. " (start #~(make-forkexec-constructor\n"
  62574. " (list #$(file-append inetutils \"/libexec/syslogd\")\n"
  62575. " \"--rcfile\" #$config)\n"
  62576. " #:pid-file \"/var/run/syslog.pid\"))\n"
  62577. " (stop #~(make-kill-destructor))))\n"
  62578. msgstr ""
  62579. #. type: Plain text
  62580. #: guix-git/doc/guix.texi:41540
  62581. 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})."
  62582. msgstr ""
  62583. #. type: deftp
  62584. #: guix-git/doc/guix.texi:41541
  62585. #, no-wrap
  62586. msgid "{Data Type} shepherd-action"
  62587. msgstr ""
  62588. #. type: deftp
  62589. #: guix-git/doc/guix.texi:41544
  62590. msgid "This is the data type that defines additional actions implemented by a Shepherd service (see above)."
  62591. msgstr ""
  62592. #. type: table
  62593. #: guix-git/doc/guix.texi:41548
  62594. msgid "Symbol naming the action."
  62595. msgstr ""
  62596. #. type: table
  62597. #: guix-git/doc/guix.texi:41551
  62598. msgid "This is a documentation string for the action. It can be viewed by running:"
  62599. msgstr ""
  62600. #. type: example
  62601. #: guix-git/doc/guix.texi:41554
  62602. #, no-wrap
  62603. msgid "herd doc @var{service} action @var{action}\n"
  62604. msgstr ""
  62605. #. type: item
  62606. #: guix-git/doc/guix.texi:41556
  62607. #, no-wrap
  62608. msgid "procedure"
  62609. msgstr ""
  62610. #. type: table
  62611. #: guix-git/doc/guix.texi:41560
  62612. 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})."
  62613. msgstr ""
  62614. #. type: deftp
  62615. #: guix-git/doc/guix.texi:41564
  62616. msgid "The following example defines an action called @code{say-hello} that kindly greets the user:"
  62617. msgstr ""
  62618. #. type: lisp
  62619. #: guix-git/doc/guix.texi:41573
  62620. #, no-wrap
  62621. msgid ""
  62622. "(shepherd-action\n"
  62623. " (name 'say-hello)\n"
  62624. " (documentation \"Say hi!\")\n"
  62625. " (procedure #~(lambda (running . args)\n"
  62626. " (format #t \"Hello, friend! arguments: ~s\\n\"\n"
  62627. " args)\n"
  62628. " #t)))\n"
  62629. msgstr ""
  62630. #. type: deftp
  62631. #: guix-git/doc/guix.texi:41576
  62632. msgid "Assuming this action is added to the @code{example} service, then you can do:"
  62633. msgstr ""
  62634. #. type: example
  62635. #: guix-git/doc/guix.texi:41582
  62636. #, no-wrap
  62637. msgid ""
  62638. "# herd say-hello example\n"
  62639. "Hello, friend! arguments: ()\n"
  62640. "# herd say-hello example a b c\n"
  62641. "Hello, friend! arguments: (\"a\" \"b\" \"c\")\n"
  62642. msgstr ""
  62643. #. type: deftp
  62644. #: guix-git/doc/guix.texi:41587
  62645. msgid "This, as you can see, is a fairly sophisticated way to say hello. @xref{Defining Services,,, shepherd, The GNU Shepherd Manual}, for more info on actions."
  62646. msgstr ""
  62647. #. type: cindex
  62648. #: guix-git/doc/guix.texi:41589
  62649. #, fuzzy, no-wrap
  62650. msgid "configuration file, of Shepherd services"
  62651. msgstr "管理操作系统配置。"
  62652. #. type: defun
  62653. #: guix-git/doc/guix.texi:41590
  62654. #, fuzzy, no-wrap
  62655. msgid "shepherd-configuration-action"
  62656. msgstr "{数据类型} build-machine"
  62657. #. type: defun
  62658. #: guix-git/doc/guix.texi:41593
  62659. msgid "Return a @code{configuration} action to display @var{file}, which should be the name of the service's configuration file."
  62660. msgstr ""
  62661. #. type: defun
  62662. #: guix-git/doc/guix.texi:41597
  62663. msgid "It can be useful to equip services with that action. For example, the service for the Tor anonymous router (@pxref{Networking Services, @code{tor-service-type}}) is defined roughly like this:"
  62664. msgstr ""
  62665. #. type: lisp
  62666. #: guix-git/doc/guix.texi:41603
  62667. #, no-wrap
  62668. msgid ""
  62669. "(let ((torrc (plain-file \"torrc\" @dots{})))\n"
  62670. " (shepherd-service\n"
  62671. " (provision '(tor))\n"
  62672. " (requirement '(user-processes loopback syslogd))\n"
  62673. "\n"
  62674. msgstr ""
  62675. #. type: lisp
  62676. #: guix-git/doc/guix.texi:41610
  62677. #, no-wrap
  62678. msgid ""
  62679. " (start #~(make-forkexec-constructor\n"
  62680. " (list #$(file-append tor \"/bin/tor\") \"-f\" #$torrc)\n"
  62681. " #:user \"tor\" #:group \"tor\"))\n"
  62682. " (stop #~(make-kill-destructor))\n"
  62683. " (actions (list (shepherd-configuration-action torrc)))\n"
  62684. " (documentation \"Run the Tor anonymous network overlay.\")))\n"
  62685. msgstr ""
  62686. #. type: defun
  62687. #: guix-git/doc/guix.texi:41614
  62688. msgid "Thanks to this action, administrators can inspect the configuration file passed to @command{tor} with this shell command:"
  62689. msgstr ""
  62690. #. type: example
  62691. #: guix-git/doc/guix.texi:41617
  62692. #, no-wrap
  62693. msgid "cat $(herd configuration tor)\n"
  62694. msgstr "cat $(herd configuration tor)\n"
  62695. #. type: defun
  62696. #: guix-git/doc/guix.texi:41620
  62697. msgid "This can come in as a handy debugging tool!"
  62698. msgstr ""
  62699. #. type: defvar
  62700. #: guix-git/doc/guix.texi:41624
  62701. msgid "The service type for the Shepherd ``root service''---i.e., PID@tie{}1."
  62702. msgstr ""
  62703. #. type: defvar
  62704. #: guix-git/doc/guix.texi:41629
  62705. 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."
  62706. msgstr ""
  62707. #. type: deftp
  62708. #: guix-git/doc/guix.texi:41631
  62709. #, fuzzy, no-wrap
  62710. msgid "{Data Type} shepherd-configuration"
  62711. msgstr "{数据类型} build-machine"
  62712. #. type: deftp
  62713. #: guix-git/doc/guix.texi:41633 guix-git/doc/guix.texi:42869
  62714. #, fuzzy
  62715. msgid "This data type represents the Shepherd's configuration."
  62716. msgstr "管理操作系统配置。"
  62717. #. type: item
  62718. #: guix-git/doc/guix.texi:41635 guix-git/doc/guix.texi:42871
  62719. #, fuzzy, no-wrap
  62720. msgid "shepherd (default: @code{shepherd})"
  62721. msgstr "@code{mate}(默认值:@code{mate})"
  62722. #. type: table
  62723. #: guix-git/doc/guix.texi:41637 guix-git/doc/guix.texi:42873
  62724. #, fuzzy
  62725. msgid "The Shepherd package to use."
  62726. msgstr "软件包数据类型。"
  62727. #. type: item
  62728. #: guix-git/doc/guix.texi:41638 guix-git/doc/guix.texi:42877
  62729. #, fuzzy, no-wrap
  62730. msgid "services (default: @code{'()})"
  62731. msgstr "@code{features} (@code{'()})"
  62732. #. type: table
  62733. #: guix-git/doc/guix.texi:41642 guix-git/doc/guix.texi:42881
  62734. msgid "A list of @code{<shepherd-service>} to start. You should probably use the service extension mechanism instead (@pxref{Shepherd Services})."
  62735. msgstr ""
  62736. #. type: Plain text
  62737. #: guix-git/doc/guix.texi:41647
  62738. msgid "The following example specifies the Shepherd package for the operating system:"
  62739. msgstr ""
  62740. #. type: lisp
  62741. #: guix-git/doc/guix.texi:41662
  62742. #, no-wrap
  62743. msgid ""
  62744. "(operating-system\n"
  62745. " ;; ...\n"
  62746. " (services (append (list openssh-service-type))\n"
  62747. " ;; ...\n"
  62748. " %desktop-services)\n"
  62749. " ;; ...\n"
  62750. " ;; Use own Shepherd package.\n"
  62751. " (essential-services\n"
  62752. " (modify-services (operating-system-default-essential-services\n"
  62753. " this-operating-system)\n"
  62754. " (shepherd-root-service-type config => (shepherd-configuration\n"
  62755. " (inherit config)\n"
  62756. " (shepherd my-shepherd))))))\n"
  62757. msgstr ""
  62758. #. type: defvar
  62759. #: guix-git/doc/guix.texi:41664
  62760. #, fuzzy, no-wrap
  62761. #| msgid "Shepherd Services"
  62762. msgid "%shepherd-root-service"
  62763. msgstr "Shepherd服务"
  62764. #. type: defvar
  62765. #: guix-git/doc/guix.texi:41666
  62766. msgid "This service represents PID@tie{}1."
  62767. msgstr ""
  62768. #. type: cindex
  62769. #: guix-git/doc/guix.texi:41670
  62770. #, fuzzy, no-wrap
  62771. msgid "complex configurations"
  62772. msgstr "系统配置"
  62773. #. type: Plain text
  62774. #: guix-git/doc/guix.texi:41675
  62775. 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."
  62776. msgstr ""
  62777. #. type: Plain text
  62778. #: guix-git/doc/guix.texi:41683
  62779. 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."
  62780. msgstr ""
  62781. #. type: defmac
  62782. #: guix-git/doc/guix.texi:41684
  62783. #, no-wrap
  62784. msgid "define-configuration name clause1 clause2 @dots{}"
  62785. msgstr ""
  62786. #. type: defmac
  62787. #: guix-git/doc/guix.texi:41687
  62788. msgid "Create a record type named @code{@var{name}} that contains the fields found in the clauses."
  62789. msgstr ""
  62790. #. type: defmac
  62791. #: guix-git/doc/guix.texi:41689
  62792. #, fuzzy
  62793. #| msgid "Packages are currently available on the following platforms:"
  62794. msgid "A clause can have one of the following forms:"
  62795. msgstr "目前这些平台提供软件包:"
  62796. #. type: example
  62797. #: guix-git/doc/guix.texi:41694
  62798. #, no-wrap
  62799. msgid ""
  62800. "(@var{field-name}\n"
  62801. " (@var{type} @var{default-value})\n"
  62802. " @var{documentation})\n"
  62803. "\n"
  62804. msgstr ""
  62805. #. type: example
  62806. #: guix-git/doc/guix.texi:41699
  62807. #, no-wrap
  62808. msgid ""
  62809. "(@var{field-name}\n"
  62810. " (@var{type} @var{default-value})\n"
  62811. " @var{documentation}\n"
  62812. " (serializer @var{serializer}))\n"
  62813. "\n"
  62814. msgstr ""
  62815. #. type: example
  62816. #: guix-git/doc/guix.texi:41703
  62817. #, no-wrap
  62818. msgid ""
  62819. "(@var{field-name}\n"
  62820. " (@var{type})\n"
  62821. " @var{documentation})\n"
  62822. "\n"
  62823. msgstr ""
  62824. #. type: example
  62825. #: guix-git/doc/guix.texi:41708
  62826. #, no-wrap
  62827. msgid ""
  62828. "(@var{field-name}\n"
  62829. " (@var{type})\n"
  62830. " @var{documentation}\n"
  62831. " (serializer @var{serializer}))\n"
  62832. "\n"
  62833. msgstr ""
  62834. #. type: example
  62835. #: guix-git/doc/guix.texi:41713
  62836. #, no-wrap
  62837. msgid ""
  62838. "(@var{field-name}\n"
  62839. " (@var{type})\n"
  62840. " @var{documentation}\n"
  62841. " (sanitizer @var{sanitizer})\n"
  62842. "\n"
  62843. msgstr ""
  62844. #. type: example
  62845. #: guix-git/doc/guix.texi:41719
  62846. #, no-wrap
  62847. msgid ""
  62848. "(@var{field-name}\n"
  62849. " (@var{type})\n"
  62850. " @var{documentation}\n"
  62851. " (sanitizer @var{sanitizer})\n"
  62852. " (serializer @var{serializer}))\n"
  62853. msgstr ""
  62854. #. type: defmac
  62855. #: guix-git/doc/guix.texi:41723
  62856. msgid "@var{field-name} is an identifier that denotes the name of the field in the generated record."
  62857. msgstr ""
  62858. #. type: defmac
  62859. #: guix-git/doc/guix.texi:41731
  62860. 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."
  62861. msgstr ""
  62862. #. type: defmac
  62863. #: guix-git/doc/guix.texi:41735
  62864. 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."
  62865. msgstr ""
  62866. #. type: defmac
  62867. #: guix-git/doc/guix.texi:41740
  62868. msgid "@var{documentation} is a string formatted with Texinfo syntax which should provide a description of what setting this field does."
  62869. msgstr ""
  62870. #. type: defmac
  62871. #: guix-git/doc/guix.texi:41745
  62872. msgid "@var{sanitizer} is a procedure which takes one argument, a user-supplied value, and returns a ``sanitized'' value for the field. If no sanitizer is specified, a default sanitizer is used, which raises an error if the value is not of type @var{type}."
  62873. msgstr ""
  62874. #. type: defmac
  62875. #: guix-git/doc/guix.texi:41748
  62876. msgid "An example of a sanitizer for a field that accepts both strings and symbols looks like this:"
  62877. msgstr ""
  62878. #. type: lisp
  62879. #: guix-git/doc/guix.texi:41753
  62880. #, no-wrap
  62881. msgid ""
  62882. "(define (sanitize-foo value)\n"
  62883. " (cond ((string? value) value)\n"
  62884. " ((symbol? value) (symbol->string value))\n"
  62885. " (else (error \"bad value\"))))\n"
  62886. msgstr ""
  62887. #. type: defmac
  62888. #: guix-git/doc/guix.texi:41761
  62889. 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."
  62890. msgstr ""
  62891. #. type: defmac
  62892. #: guix-git/doc/guix.texi:41763
  62893. msgid "A simple serializer procedure could look like this:"
  62894. msgstr ""
  62895. #. type: lisp
  62896. #: guix-git/doc/guix.texi:41768
  62897. #, no-wrap
  62898. msgid ""
  62899. "(define (serialize-boolean field-name value)\n"
  62900. " (let ((value (if value \"true\" \"false\")))\n"
  62901. " #~(string-append #$field-name #$value)))\n"
  62902. msgstr ""
  62903. #. type: defmac
  62904. #: guix-git/doc/guix.texi:41779
  62905. 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 from 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."
  62906. msgstr ""
  62907. #. type: lisp
  62908. #: guix-git/doc/guix.texi:41783
  62909. #, no-wrap
  62910. msgid ""
  62911. "(define (foo-serialize-string field-name value)\n"
  62912. " @dots{})\n"
  62913. "\n"
  62914. msgstr ""
  62915. #. type: lisp
  62916. #: guix-git/doc/guix.texi:41786
  62917. #, no-wrap
  62918. msgid ""
  62919. "(define (bar-serialize-string field-name value)\n"
  62920. " @dots{})\n"
  62921. "\n"
  62922. msgstr ""
  62923. #. type: lisp
  62924. #: guix-git/doc/guix.texi:41792
  62925. #, no-wrap
  62926. msgid ""
  62927. "(define-configuration foo-configuration\n"
  62928. " (label\n"
  62929. " (string)\n"
  62930. " \"The name of label.\")\n"
  62931. " (prefix foo-))\n"
  62932. "\n"
  62933. msgstr ""
  62934. #. type: lisp
  62935. #: guix-git/doc/guix.texi:41798
  62936. #, no-wrap
  62937. msgid ""
  62938. "(define-configuration bar-configuration\n"
  62939. " (ip-address\n"
  62940. " (string)\n"
  62941. " \"The IPv4 address for this device.\")\n"
  62942. " (prefix bar-))\n"
  62943. msgstr ""
  62944. #. type: defmac
  62945. #: guix-git/doc/guix.texi:41804
  62946. 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."
  62947. msgstr ""
  62948. #. type: lisp
  62949. #: guix-git/doc/guix.texi:41812
  62950. #, no-wrap
  62951. msgid ""
  62952. ";; Nothing will be serialized to disk.\n"
  62953. "(define-configuration foo-configuration\n"
  62954. " (field\n"
  62955. " (string \"test\")\n"
  62956. " \"Some documentation.\")\n"
  62957. " (no-serialization))\n"
  62958. "\n"
  62959. msgstr ""
  62960. #. type: lisp
  62961. #: guix-git/doc/guix.texi:41818
  62962. #, no-wrap
  62963. msgid ""
  62964. ";; The same thing as above.\n"
  62965. "(define-configuration/no-serialization bar-configuration\n"
  62966. " (field\n"
  62967. " (string \"test\")\n"
  62968. " \"Some documentation.\"))\n"
  62969. msgstr ""
  62970. #. type: defmac
  62971. #: guix-git/doc/guix.texi:41821
  62972. #, fuzzy, no-wrap
  62973. #| msgid "{Data Type} build-machine"
  62974. msgid "define-maybe type"
  62975. msgstr "{数据类型} build-machine"
  62976. #. type: defmac
  62977. #: guix-git/doc/guix.texi:41826
  62978. 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 left unset, or is set to the @code{%unset-value} value, then it will not be serialized."
  62979. msgstr ""
  62980. #. type: defmac
  62981. #: guix-git/doc/guix.texi:41833
  62982. 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, or left unspecified."
  62983. msgstr ""
  62984. #. type: lisp
  62985. #: guix-git/doc/guix.texi:41836
  62986. #, no-wrap
  62987. msgid ""
  62988. "(define-maybe string)\n"
  62989. "\n"
  62990. msgstr ""
  62991. #. type: lisp
  62992. #: guix-git/doc/guix.texi:41839
  62993. #, no-wrap
  62994. msgid ""
  62995. "(define (serialize-string field-name value)\n"
  62996. " @dots{})\n"
  62997. "\n"
  62998. msgstr ""
  62999. #. type: lisp
  63000. #: guix-git/doc/guix.texi:41846
  63001. #, no-wrap
  63002. msgid ""
  63003. "(define-configuration baz-configuration\n"
  63004. " (name\n"
  63005. " ;; If set to a string, the `serialize-string' procedure will be used\n"
  63006. " ;; to serialize the string. Otherwise this field is not serialized.\n"
  63007. " maybe-string\n"
  63008. " \"The name of this module.\"))\n"
  63009. msgstr ""
  63010. #. type: defmac
  63011. #: guix-git/doc/guix.texi:41850
  63012. msgid "Like with @code{define-configuration}, one can set a prefix for the serializer name by using the @code{prefix} literal."
  63013. msgstr ""
  63014. #. type: lisp
  63015. #: guix-git/doc/guix.texi:41854
  63016. #, no-wrap
  63017. msgid ""
  63018. "(define-maybe integer\n"
  63019. " (prefix baz-))\n"
  63020. "\n"
  63021. msgstr ""
  63022. #. type: lisp
  63023. #: guix-git/doc/guix.texi:41857
  63024. #, no-wrap
  63025. msgid ""
  63026. "(define (baz-serialize-integer field-name value)\n"
  63027. " @dots{})\n"
  63028. msgstr ""
  63029. #. type: defmac
  63030. #: guix-git/doc/guix.texi:41864
  63031. 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 whether its value is set or not. @code{define-maybe/no-serialization} is a shorthand for specifying the @code{no-serialization} literal."
  63032. msgstr ""
  63033. #. type: lisp
  63034. #: guix-git/doc/guix.texi:41867
  63035. #, no-wrap
  63036. msgid ""
  63037. "(define-maybe/no-serialization symbol)\n"
  63038. "\n"
  63039. msgstr ""
  63040. #. type: lisp
  63041. #: guix-git/doc/guix.texi:41872
  63042. #, no-wrap
  63043. msgid ""
  63044. "(define-configuration/no-serialization test-configuration\n"
  63045. " (mode\n"
  63046. " maybe-symbol\n"
  63047. " \"Docstring.\"))\n"
  63048. msgstr ""
  63049. #. type: defun
  63050. #: guix-git/doc/guix.texi:41875
  63051. #, no-wrap
  63052. msgid "maybe-value-set? value"
  63053. msgstr ""
  63054. #. type: defun
  63055. #: guix-git/doc/guix.texi:41878
  63056. msgid "Predicate to check whether a user explicitly specified the value of a maybe field."
  63057. msgstr ""
  63058. #. type: defun
  63059. #: guix-git/doc/guix.texi:41880
  63060. #, fuzzy, no-wrap
  63061. msgid "serialize-configuration configuration fields"
  63062. msgstr "@code{journal-content}(默认值:@code{#f})"
  63063. #. type: defun
  63064. #: guix-git/doc/guix.texi:41885
  63065. msgid "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}."
  63066. msgstr ""
  63067. #. type: defun
  63068. #: guix-git/doc/guix.texi:41887
  63069. #, no-wrap
  63070. msgid "empty-serializer field-name value"
  63071. msgstr ""
  63072. #. type: defun
  63073. #: guix-git/doc/guix.texi:41890
  63074. msgid "A serializer that just returns an empty string. The @code{serialize-package} procedure is an alias for this."
  63075. msgstr ""
  63076. #. type: Plain text
  63077. #: guix-git/doc/guix.texi:41895
  63078. 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."
  63079. msgstr ""
  63080. #. type: defun
  63081. #: guix-git/doc/guix.texi:41896
  63082. #, no-wrap
  63083. msgid "generate-documentation documentation documentation-name"
  63084. msgstr ""
  63085. #. type: defun
  63086. #: guix-git/doc/guix.texi:41902
  63087. msgid "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."
  63088. msgstr ""
  63089. #. type: defun
  63090. #: guix-git/doc/guix.texi:41907
  63091. 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."
  63092. msgstr ""
  63093. #. type: defun
  63094. #: guix-git/doc/guix.texi:41914
  63095. 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}."
  63096. msgstr ""
  63097. #. type: lisp
  63098. #: guix-git/doc/guix.texi:41921
  63099. #, no-wrap
  63100. msgid ""
  63101. "(generate-documentation\n"
  63102. " `((getmail-configuration ,getmail-configuration-fields\n"
  63103. " (rcfile getmail-configuration-file))\n"
  63104. " @dots{})\n"
  63105. " 'getmail-configuration)\n"
  63106. msgstr ""
  63107. #. type: defun
  63108. #: guix-git/doc/guix.texi:41925
  63109. msgid "@var{documentation-name} should be a symbol and should be the name of the configuration record."
  63110. msgstr ""
  63111. #. type: defun
  63112. #: guix-git/doc/guix.texi:41928
  63113. #, no-wrap
  63114. msgid "configuration->documentation configuration-symbol"
  63115. msgstr ""
  63116. #. type: defun
  63117. #: guix-git/doc/guix.texi:41934
  63118. msgid "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."
  63119. msgstr ""
  63120. #. type: Plain text
  63121. #: guix-git/doc/guix.texi:41942
  63122. 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."
  63123. msgstr ""
  63124. #. type: Plain text
  63125. #: guix-git/doc/guix.texi:41946
  63126. msgid "Below is an example of a record type created using @code{define-configuration} and friends."
  63127. msgstr ""
  63128. #. type: lisp
  63129. #: guix-git/doc/guix.texi:41953
  63130. #, no-wrap
  63131. msgid ""
  63132. "(use-modules (gnu services)\n"
  63133. " (guix gexp)\n"
  63134. " (gnu services configuration)\n"
  63135. " (srfi srfi-26)\n"
  63136. " (srfi srfi-1))\n"
  63137. "\n"
  63138. msgstr ""
  63139. #. type: lisp
  63140. #: guix-git/doc/guix.texi:41961
  63141. #, no-wrap
  63142. msgid ""
  63143. ";; Turn field names, which are Scheme symbols into strings\n"
  63144. "(define (uglify-field-name field-name)\n"
  63145. " (let ((str (symbol->string field-name)))\n"
  63146. " ;; field? -> is-field\n"
  63147. " (if (string-suffix? \"?\" str)\n"
  63148. " (string-append \"is-\" (string-drop-right str 1))\n"
  63149. " str)))\n"
  63150. "\n"
  63151. msgstr ""
  63152. #. type: lisp
  63153. #: guix-git/doc/guix.texi:41964
  63154. #, no-wrap
  63155. msgid ""
  63156. "(define (serialize-string field-name value)\n"
  63157. " #~(string-append #$(uglify-field-name field-name) \" = \" #$value \"\\n\"))\n"
  63158. "\n"
  63159. msgstr ""
  63160. #. type: lisp
  63161. #: guix-git/doc/guix.texi:41967
  63162. #, no-wrap
  63163. msgid ""
  63164. "(define (serialize-integer field-name value)\n"
  63165. " (serialize-string field-name (number->string value)))\n"
  63166. "\n"
  63167. msgstr ""
  63168. #. type: lisp
  63169. #: guix-git/doc/guix.texi:41970
  63170. #, no-wrap
  63171. msgid ""
  63172. "(define (serialize-boolean field-name value)\n"
  63173. " (serialize-string field-name (if value \"true\" \"false\")))\n"
  63174. "\n"
  63175. msgstr ""
  63176. #. type: lisp
  63177. #: guix-git/doc/guix.texi:41973
  63178. #, no-wrap
  63179. msgid ""
  63180. "(define (serialize-contact-name field-name value)\n"
  63181. " #~(string-append \"\\n[\" #$value \"]\\n\"))\n"
  63182. "\n"
  63183. msgstr ""
  63184. #. type: lisp
  63185. #: guix-git/doc/guix.texi:41976
  63186. #, no-wrap
  63187. msgid ""
  63188. "(define (list-of-contact-configurations? lst)\n"
  63189. " (every contact-configuration? lst))\n"
  63190. "\n"
  63191. msgstr ""
  63192. #. type: lisp
  63193. #: guix-git/doc/guix.texi:41981
  63194. #, no-wrap
  63195. msgid ""
  63196. "(define (serialize-list-of-contact-configurations field-name value)\n"
  63197. " #~(string-append #$@@(map (cut serialize-configuration <>\n"
  63198. " contact-configuration-fields)\n"
  63199. " value)))\n"
  63200. "\n"
  63201. msgstr ""
  63202. #. type: lisp
  63203. #: guix-git/doc/guix.texi:41988
  63204. #, no-wrap
  63205. msgid ""
  63206. "(define (serialize-contacts-list-configuration configuration)\n"
  63207. " (mixed-text-file\n"
  63208. " \"contactrc\"\n"
  63209. " #~(string-append \"[Owner]\\n\"\n"
  63210. " #$(serialize-configuration\n"
  63211. " configuration contacts-list-configuration-fields))))\n"
  63212. "\n"
  63213. msgstr ""
  63214. #. type: lisp
  63215. #: guix-git/doc/guix.texi:41991
  63216. #, no-wrap
  63217. msgid ""
  63218. "(define-maybe integer)\n"
  63219. "(define-maybe string)\n"
  63220. "\n"
  63221. msgstr ""
  63222. #. type: lisp
  63223. #: guix-git/doc/guix.texi:42006
  63224. #, no-wrap
  63225. msgid ""
  63226. "(define-configuration contact-configuration\n"
  63227. " (name\n"
  63228. " (string)\n"
  63229. " \"The name of the contact.\"\n"
  63230. " serialize-contact-name)\n"
  63231. " (phone-number\n"
  63232. " maybe-integer\n"
  63233. " \"The person's phone number.\")\n"
  63234. " (email\n"
  63235. " maybe-string\n"
  63236. " \"The person's email address.\")\n"
  63237. " (married?\n"
  63238. " (boolean)\n"
  63239. " \"Whether the person is married.\"))\n"
  63240. "\n"
  63241. msgstr ""
  63242. #. type: lisp
  63243. #: guix-git/doc/guix.texi:42018
  63244. #, no-wrap
  63245. msgid ""
  63246. "(define-configuration contacts-list-configuration\n"
  63247. " (name\n"
  63248. " (string)\n"
  63249. " \"The name of the owner of this contact list.\")\n"
  63250. " (email\n"
  63251. " (string)\n"
  63252. " \"The owner's email address.\")\n"
  63253. " (contacts\n"
  63254. " (list-of-contact-configurations '())\n"
  63255. " \"A list of @@code@{contact-configuation@} records which contain\n"
  63256. "information about all your contacts.\"))\n"
  63257. msgstr ""
  63258. #. type: Plain text
  63259. #: guix-git/doc/guix.texi:42021
  63260. msgid "A contacts list configuration could then be created like this:"
  63261. msgstr ""
  63262. #. type: lisp
  63263. #: guix-git/doc/guix.texi:42037
  63264. #, no-wrap
  63265. msgid ""
  63266. "(define my-contacts\n"
  63267. " (contacts-list-configuration\n"
  63268. " (name \"Alice\")\n"
  63269. " (email \"alice@@example.org\")\n"
  63270. " (contacts\n"
  63271. " (list (contact-configuration\n"
  63272. " (name \"Bob\")\n"
  63273. " (phone-number 1234)\n"
  63274. " (email \"bob@@gnu.org\")\n"
  63275. " (married? #f))\n"
  63276. " (contact-configuration\n"
  63277. " (name \"Charlie\")\n"
  63278. " (phone-number 0000)\n"
  63279. " (married? #t))))))\n"
  63280. msgstr ""
  63281. #. type: Plain text
  63282. #: guix-git/doc/guix.texi:42041
  63283. msgid "After serializing the configuration to disk, the resulting file would look like this:"
  63284. msgstr ""
  63285. #. type: example
  63286. #: guix-git/doc/guix.texi:42046
  63287. #, no-wrap
  63288. msgid ""
  63289. "[owner]\n"
  63290. "name = Alice\n"
  63291. "email = alice@@example.org\n"
  63292. "\n"
  63293. msgstr ""
  63294. #. type: example
  63295. #: guix-git/doc/guix.texi:42051
  63296. #, no-wrap
  63297. msgid ""
  63298. "[Bob]\n"
  63299. "phone-number = 1234\n"
  63300. "email = bob@@gnu.org\n"
  63301. "is-married = false\n"
  63302. "\n"
  63303. msgstr ""
  63304. #. type: example
  63305. #: guix-git/doc/guix.texi:42055
  63306. #, no-wrap
  63307. msgid ""
  63308. "[Charlie]\n"
  63309. "phone-number = 0\n"
  63310. "is-married = true\n"
  63311. msgstr ""
  63312. #. type: cindex
  63313. #: guix-git/doc/guix.texi:42060
  63314. #, fuzzy, no-wrap
  63315. msgid "home configuration"
  63316. msgstr "系统配置"
  63317. #. type: Plain text
  63318. #: guix-git/doc/guix.texi:42072
  63319. 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})."
  63320. msgstr ""
  63321. #. type: Plain text
  63322. #: guix-git/doc/guix.texi:42089
  63323. 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 are 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."
  63324. msgstr ""
  63325. #. type: Plain text
  63326. #: guix-git/doc/guix.texi:42092
  63327. msgid "Using Guix for managing home environments provides a number of advantages:"
  63328. msgstr ""
  63329. #. type: item
  63330. #: guix-git/doc/guix.texi:42095
  63331. #, no-wrap
  63332. msgid "All software can be configured in one language (Guile Scheme),"
  63333. msgstr ""
  63334. #. type: itemize
  63335. #: guix-git/doc/guix.texi:42098
  63336. msgid "this gives users the ability to share values between configurations of different programs."
  63337. msgstr ""
  63338. #. type: item
  63339. #: guix-git/doc/guix.texi:42099
  63340. #, no-wrap
  63341. msgid "A well-defined home environment is self-contained and can be"
  63342. msgstr ""
  63343. #. type: itemize
  63344. #: guix-git/doc/guix.texi:42102
  63345. msgid "created in a declarative and reproducible way---there is no need to grab external binaries or manually edit some configuration file."
  63346. msgstr ""
  63347. #. type: item
  63348. #: guix-git/doc/guix.texi:42103
  63349. #, no-wrap
  63350. msgid "After every @command{guix home reconfigure} invocation, a new home"
  63351. msgstr ""
  63352. #. type: itemize
  63353. #: guix-git/doc/guix.texi:42107
  63354. 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."
  63355. msgstr ""
  63356. #. type: item
  63357. #: guix-git/doc/guix.texi:42108
  63358. #, no-wrap
  63359. msgid "It is possible to manage stateful data with Guix Home, this"
  63360. msgstr ""
  63361. #. type: itemize
  63362. #: guix-git/doc/guix.texi:42113
  63363. 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."
  63364. msgstr ""
  63365. #. type: Plain text
  63366. #: guix-git/doc/guix.texi:42130
  63367. 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}:"
  63368. msgstr ""
  63369. #. type: example
  63370. #: guix-git/doc/guix.texi:42133
  63371. #, no-wrap
  63372. msgid "guix home import ~/src/guix-config\n"
  63373. msgstr ""
  63374. #. type: Plain text
  63375. #: guix-git/doc/guix.texi:42141
  63376. 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."
  63377. msgstr ""
  63378. #. type: Plain text
  63379. #: guix-git/doc/guix.texi:42147
  63380. 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."
  63381. msgstr ""
  63382. #. type: quotation
  63383. #: guix-git/doc/guix.texi:42153
  63384. 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})."
  63385. msgstr ""
  63386. #. type: findex
  63387. #: guix-git/doc/guix.texi:42155
  63388. #, fuzzy, no-wrap
  63389. msgid "home-environment"
  63390. msgstr "构建环境"
  63391. #. type: include
  63392. #: guix-git/doc/guix.texi:42157
  63393. #, fuzzy, no-wrap
  63394. msgid "he-config-bare-bones.scm"
  63395. msgstr "系统配置"
  63396. #. type: Plain text
  63397. #: guix-git/doc/guix.texi:42164
  63398. 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."
  63399. msgstr ""
  63400. #. type: Plain text
  63401. #: guix-git/doc/guix.texi:42172
  63402. 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."
  63403. msgstr ""
  63404. #. type: cindex
  63405. #: guix-git/doc/guix.texi:42173 guix-git/doc/guix.texi:43797
  63406. #, fuzzy, no-wrap
  63407. #| msgid "Invoking @command{guix build}"
  63408. msgid "container, for @command{guix home}"
  63409. msgstr "调用@command{guix build}"
  63410. #. type: Plain text
  63411. #: guix-git/doc/guix.texi:42176
  63412. msgid "Once the configuration looks good, you can first test it in a throw-away ``container'':"
  63413. msgstr ""
  63414. #. type: example
  63415. #: guix-git/doc/guix.texi:42179 guix-git/doc/guix.texi:43807
  63416. #, fuzzy, no-wrap
  63417. msgid "guix home container config.scm\n"
  63418. msgstr "guix package --list-available\n"
  63419. #. type: Plain text
  63420. #: guix-git/doc/guix.texi:42187
  63421. 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''."
  63422. msgstr ""
  63423. #. type: Plain text
  63424. #: guix-git/doc/guix.texi:42190
  63425. msgid "Once you have a configuration file that suits your needs, you can reconfigure your home by running:"
  63426. msgstr ""
  63427. #. type: example
  63428. #: guix-git/doc/guix.texi:42193
  63429. #, no-wrap
  63430. msgid "guix home reconfigure config.scm\n"
  63431. msgstr ""
  63432. #. type: Plain text
  63433. #: guix-git/doc/guix.texi:42197
  63434. msgid "This ``builds'' your home environment and creates @file{~/.guix-home} pointing to it. Voilà!"
  63435. msgstr ""
  63436. #. type: quotation
  63437. #: guix-git/doc/guix.texi:42204
  63438. 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."
  63439. msgstr ""
  63440. #. type: Plain text
  63441. #: guix-git/doc/guix.texi:42210
  63442. msgid "This section is safe to skip if your shell or shells are managed by Guix Home. Otherwise, read it carefully."
  63443. msgstr ""
  63444. #. type: Plain text
  63445. #: guix-git/doc/guix.texi:42217
  63446. 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}."
  63447. msgstr ""
  63448. #. type: Plain text
  63449. #: guix-git/doc/guix.texi:42224
  63450. 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}."
  63451. msgstr ""
  63452. #. type: Plain text
  63453. #: guix-git/doc/guix.texi:42227
  63454. msgid "Guix Home will always create @file{~/.profile}, which contains the following lines:"
  63455. msgstr ""
  63456. #. type: example
  63457. #: guix-git/doc/guix.texi:42232
  63458. #, no-wrap
  63459. msgid ""
  63460. "HOME_ENVIRONMENT=$HOME/.guix-home\n"
  63461. ". $HOME_ENVIRONMENT/setup-environment\n"
  63462. "$HOME_ENVIRONMENT/on-first-login\n"
  63463. msgstr ""
  63464. #. type: Plain text
  63465. #: guix-git/doc/guix.texi:42242
  63466. 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."
  63467. msgstr ""
  63468. #. type: Plain text
  63469. #: guix-git/doc/guix.texi:42247
  63470. 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}."
  63471. msgstr ""
  63472. #. type: quotation
  63473. #: guix-git/doc/guix.texi:42251
  63474. msgid "This step is only required if your shell is @emph{not} managed by Guix Home. Otherwise, everything will be done automatically."
  63475. msgstr ""
  63476. #. type: cindex
  63477. #: guix-git/doc/guix.texi:42255
  63478. #, fuzzy, no-wrap
  63479. #| msgid "Other services."
  63480. msgid "home services"
  63481. msgstr "其它服务。"
  63482. #. type: Plain text
  63483. #: guix-git/doc/guix.texi:42264
  63484. 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."
  63485. msgstr ""
  63486. #. type: Plain text
  63487. #: guix-git/doc/guix.texi:42272
  63488. 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}}."
  63489. msgstr ""
  63490. #. type: Plain text
  63491. #: guix-git/doc/guix.texi:42283
  63492. 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)}."
  63493. msgstr ""
  63494. #. type: menuentry
  63495. #: guix-git/doc/guix.texi:42299
  63496. #, fuzzy
  63497. #| msgid "Game Services"
  63498. msgid "Mail: Mail Home Services"
  63499. msgstr "游戏服务"
  63500. #. type: menuentry
  63501. #: guix-git/doc/guix.texi:42299
  63502. #, fuzzy
  63503. #| msgid "Messaging services."
  63504. msgid "Services for managing mail."
  63505. msgstr "消息服务。"
  63506. #. type: Plain text
  63507. #: guix-git/doc/guix.texi:42308
  63508. 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."
  63509. msgstr ""
  63510. #. type: cindex
  63511. #: guix-git/doc/guix.texi:42309
  63512. #, fuzzy, no-wrap
  63513. msgid "environment variables"
  63514. msgstr "构建环境"
  63515. #. type: defvar
  63516. #: guix-git/doc/guix.texi:42311
  63517. #, fuzzy, no-wrap
  63518. msgid "home-environment-variables-service-type"
  63519. msgstr "构建环境"
  63520. #. type: defvar
  63521. #: guix-git/doc/guix.texi:42316
  63522. 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."
  63523. msgstr ""
  63524. #. type: lisp
  63525. #: guix-git/doc/guix.texi:42320
  63526. #, no-wrap
  63527. msgid ""
  63528. "(list (\"ENV_VAR1\" . \"value1\")\n"
  63529. " (\"ENV_VAR2\" . \"value2\"))\n"
  63530. msgstr ""
  63531. #. type: defvar
  63532. #: guix-git/doc/guix.texi:42325
  63533. msgid "The easiest way to extend a service type, without defining a new service type is to use the @code{simple-service} helper from @code{(gnu services)}."
  63534. msgstr ""
  63535. #. type: findex
  63536. #: guix-git/doc/guix.texi:42326
  63537. #, no-wrap
  63538. msgid "literal-string"
  63539. msgstr ""
  63540. #. type: lisp
  63541. #: guix-git/doc/guix.texi:42335
  63542. #, no-wrap
  63543. msgid ""
  63544. "(simple-service 'some-useful-env-vars-service\n"
  63545. "\t\thome-environment-variables-service-type\n"
  63546. "\t\t`((\"LESSHISTFILE\" . \"$XDG_CACHE_HOME/.lesshst\")\n"
  63547. " (\"SHELL\" . ,(file-append zsh \"/bin/zsh\"))\n"
  63548. " (\"USELESS_VAR\" . #f)\n"
  63549. " (\"_JAVA_AWT_WM_NONREPARENTING\" . #t)\n"
  63550. " (\"LITERAL_VALUE\" . ,(literal-string \"$@{abc@}\"))))\n"
  63551. msgstr ""
  63552. #. type: defvar
  63553. #: guix-git/doc/guix.texi:42340
  63554. 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):"
  63555. msgstr ""
  63556. #. type: example
  63557. #: guix-git/doc/guix.texi:42346
  63558. #, no-wrap
  63559. msgid ""
  63560. "export LESSHISTFILE=\"$XDG_CACHE_HOME/.lesshst\"\n"
  63561. "export SHELL=\"/gnu/store/2hsg15n644f0glrcbkb1kqknmmqdar03-zsh-5.8/bin/zsh\"\n"
  63562. "export _JAVA_AWT_WM_NONREPARENTING\n"
  63563. "export LITERAL_VALUE='$@{abc@}'\n"
  63564. msgstr ""
  63565. #. type: defvar
  63566. #: guix-git/doc/guix.texi:42352
  63567. msgid "Notice that @code{literal-string} above lets us declare that a value is to be interpreted as a @dfn{literal string}, meaning that ``special characters'' such as the dollar sign will not be interpreted by the shell."
  63568. msgstr ""
  63569. #. type: quotation
  63570. #: guix-git/doc/guix.texi:42358
  63571. 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} package, which is used in the example above."
  63572. msgstr ""
  63573. #. type: defvar
  63574. #: guix-git/doc/guix.texi:42371
  63575. 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."
  63576. msgstr ""
  63577. #. type: defvar
  63578. #: guix-git/doc/guix.texi:42374
  63579. #, fuzzy, no-wrap
  63580. msgid "home-profile-service-type"
  63581. msgstr "aarch64-linux"
  63582. #. type: defvar
  63583. #: guix-git/doc/guix.texi:42380
  63584. 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."
  63585. msgstr ""
  63586. #. type: defvar
  63587. #: guix-git/doc/guix.texi:42382
  63588. msgid "The extension value is just a list of packages:"
  63589. msgstr ""
  63590. #. type: lisp
  63591. #: guix-git/doc/guix.texi:42385
  63592. #, no-wrap
  63593. msgid "(list htop vim emacs)\n"
  63594. msgstr ""
  63595. #. type: defvar
  63596. #: guix-git/doc/guix.texi:42395
  63597. 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."
  63598. msgstr ""
  63599. #. type: Plain text
  63600. #: guix-git/doc/guix.texi:42399
  63601. msgid "There are few more essential services, but users are not expected to extend them."
  63602. msgstr ""
  63603. #. type: defvar
  63604. #: guix-git/doc/guix.texi:42400
  63605. #, fuzzy, no-wrap
  63606. msgid "home-service-type"
  63607. msgstr "邮件服务"
  63608. #. type: defvar
  63609. #: guix-git/doc/guix.texi:42405
  63610. 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."
  63611. msgstr ""
  63612. #. type: defvar
  63613. #: guix-git/doc/guix.texi:42407
  63614. #, fuzzy, no-wrap
  63615. msgid "home-run-on-first-login-service-type"
  63616. msgstr "邮件服务"
  63617. #. type: defvar
  63618. #: guix-git/doc/guix.texi:42412
  63619. 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."
  63620. msgstr ""
  63621. #. type: defvar
  63622. #: guix-git/doc/guix.texi:42418
  63623. 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."
  63624. msgstr ""
  63625. #. type: defvar
  63626. #: guix-git/doc/guix.texi:42420
  63627. #, fuzzy, no-wrap
  63628. msgid "home-files-service-type"
  63629. msgstr "aarch64-linux"
  63630. #. type: defvar
  63631. #: guix-git/doc/guix.texi:42427
  63632. msgid "The service of this type allows to specify a list of files, which will go to @file{~/.guix-home/files}, usually this directory contains configuration files (to be more precise it contains symlinks to files in @file{/gnu/store}), which should be placed in @file{$XDG_CONFIG_DIR} or in rare cases in @file{$HOME}. It accepts extension values in the following format:"
  63633. msgstr ""
  63634. #. type: lisp
  63635. #: guix-git/doc/guix.texi:42431
  63636. #, no-wrap
  63637. msgid ""
  63638. "`((\".sway/config\" ,sway-file-like-object)\n"
  63639. " (\".tmux.conf\" ,(local-file \"./tmux.conf\")))\n"
  63640. msgstr ""
  63641. #. type: defvar
  63642. #: guix-git/doc/guix.texi:42444
  63643. msgid "Each nested list contains two values: a subdirectory and file-like object. After building a home environment @file{~/.guix-home/files} will be populated with apropiate content and all nested directories will be created accordingly, however, those files won't go any further until some other service will do it. By default a @code{home-symlink-manager-service-type}, which creates necessary symlinks in home folder to files from @file{~/.guix-home/files} and backs up already existing, but clashing configs and other things, is a part of essential home services (enabled by default), but it's possible to use alternative services to implement more advanced use cases like read-only home. Feel free to experiment and share your results."
  63644. msgstr ""
  63645. #. type: defvar
  63646. #: guix-git/doc/guix.texi:42446
  63647. #, fuzzy, no-wrap
  63648. msgid "home-xdg-configuration-files-service-type"
  63649. msgstr "管理操作系统配置。"
  63650. #. type: defvar
  63651. #: guix-git/doc/guix.texi:42453
  63652. msgid "The service is very similiar to @code{home-files-service-type} (and actually extends it), but used for defining files, which will go to @file{~/.guix-home/files/.config}, which will be symlinked to @file{$XDG_CONFIG_DIR} by @code{home-symlink-manager-service-type} (for example) during activation. It accepts extension values in the following format:"
  63653. msgstr ""
  63654. #. type: lisp
  63655. #: guix-git/doc/guix.texi:42459
  63656. #, no-wrap
  63657. msgid ""
  63658. "`((\"sway/config\" ,sway-file-like-object)\n"
  63659. " ;; -> ~/.guix-home/files/.config/sway/config\n"
  63660. " ;; -> $XDG_CONFIG_DIR/sway/config (by symlink-manager)\n"
  63661. " (\"tmux/tmux.conf\" ,(local-file \"./tmux.conf\")))\n"
  63662. msgstr ""
  63663. #. type: defvar
  63664. #: guix-git/doc/guix.texi:42462
  63665. #, fuzzy, no-wrap
  63666. msgid "home-activation-service-type"
  63667. msgstr "邮件服务"
  63668. #. type: defvar
  63669. #: guix-git/doc/guix.texi:42466
  63670. 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."
  63671. msgstr ""
  63672. #. type: defvar
  63673. #: guix-git/doc/guix.texi:42468
  63674. #, fuzzy, no-wrap
  63675. msgid "home-symlink-manager-service-type"
  63676. msgstr "邮件服务"
  63677. #. type: defvar
  63678. #: guix-git/doc/guix.texi:42472
  63679. msgid "The service of this type generates a guile script, which will be executed during activation of home environment, and do a few following steps:"
  63680. msgstr ""
  63681. #. type: enumerate
  63682. #: guix-git/doc/guix.texi:42477
  63683. msgid "Reads the content of @file{files/} directory of current and pending home environments."
  63684. msgstr ""
  63685. #. type: enumerate
  63686. #: guix-git/doc/guix.texi:42482
  63687. msgid "Cleans up all symlinks created by symlink-manager on previous activation. Also, sub-directories, which become empty also will be cleaned up."
  63688. msgstr ""
  63689. #. type: enumerate
  63690. #: guix-git/doc/guix.texi:42495
  63691. msgid "Creates new symlinks the following way: It looks @file{files/} directory (usually defined with @code{home-files-service-type}, @code{home-xdg-configuration-files-service-type} and maybe some others), takes the files from @file{files/.config/} subdirectory and put respective links in @env{XDG_CONFIG_DIR}. For example symlink for @file{files/.config/sway/config} will end up in @file{$XDG_CONFIG_DIR/sway/config}. The rest files in @file{files/} outside of @file{files/.config/} subdirectory will be treated slightly different: symlink will just go to @file{$HOME}. @file{files/.some-program/config} will end up in @file{$HOME/.some-program/config}."
  63692. msgstr ""
  63693. #. type: enumerate
  63694. #: guix-git/doc/guix.texi:42498
  63695. msgid "If some sub-directories are missing, they will be created."
  63696. msgstr ""
  63697. #. type: enumerate
  63698. #: guix-git/doc/guix.texi:42501
  63699. msgid "If there is a clashing files on the way, they will be backed up."
  63700. msgstr ""
  63701. #. type: defvar
  63702. #: guix-git/doc/guix.texi:42506
  63703. msgid "symlink-manager is a part of essential home services and is enabled and used by default."
  63704. msgstr ""
  63705. #. type: node
  63706. #: guix-git/doc/guix.texi:42509
  63707. #, fuzzy, no-wrap
  63708. #| msgid "Shepherd Services"
  63709. msgid "Shells Home Services"
  63710. msgstr "Shepherd服务"
  63711. #. type: subsection
  63712. #: guix-git/doc/guix.texi:42510
  63713. #, no-wrap
  63714. msgid "Shells"
  63715. msgstr ""
  63716. #. type: cindex
  63717. #: guix-git/doc/guix.texi:42512 guix-git/doc/guix.texi:43759
  63718. #, no-wrap
  63719. msgid "shell"
  63720. msgstr ""
  63721. #. type: cindex
  63722. #: guix-git/doc/guix.texi:42513
  63723. #, no-wrap
  63724. msgid "login shell"
  63725. msgstr ""
  63726. #. type: cindex
  63727. #: guix-git/doc/guix.texi:42514
  63728. #, no-wrap
  63729. msgid "interactive shell"
  63730. msgstr ""
  63731. #. type: cindex
  63732. #: guix-git/doc/guix.texi:42515 guix-git/doc/guix.texi:43761
  63733. #, no-wrap
  63734. msgid "bash"
  63735. msgstr ""
  63736. #. type: cindex
  63737. #: guix-git/doc/guix.texi:42516 guix-git/doc/guix.texi:43762
  63738. #, no-wrap
  63739. msgid "zsh"
  63740. msgstr ""
  63741. #. type: Plain text
  63742. #: guix-git/doc/guix.texi:42522
  63743. 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."
  63744. msgstr ""
  63745. #. type: Plain text
  63746. #: guix-git/doc/guix.texi:42532
  63747. 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."
  63748. msgstr ""
  63749. #. type: subsubheading
  63750. #: guix-git/doc/guix.texi:42533
  63751. #, fuzzy, no-wrap
  63752. #| msgid "Certificate Services"
  63753. msgid "Shell Profile Service"
  63754. msgstr "证书服务"
  63755. #. type: deftp
  63756. #: guix-git/doc/guix.texi:42535
  63757. #, fuzzy, no-wrap
  63758. msgid "{Data Type} home-shell-profile-configuration"
  63759. msgstr "管理操作系统配置。"
  63760. #. type: deftp
  63761. #: guix-git/doc/guix.texi:42537
  63762. msgid "Available @code{home-shell-profile-configuration} fields are:"
  63763. msgstr ""
  63764. #. type: item
  63765. #: guix-git/doc/guix.texi:42539
  63766. #, fuzzy, no-wrap
  63767. msgid "@code{profile} (default: @code{'()}) (type: text-config)"
  63768. msgstr "@code{challenge}(默认值:@code{#f})"
  63769. #. type: table
  63770. #: guix-git/doc/guix.texi:42549
  63771. 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."
  63772. msgstr ""
  63773. #. type: subsubheading
  63774. #: guix-git/doc/guix.texi:42554
  63775. #, fuzzy, no-wrap
  63776. #| msgid "Base Services"
  63777. msgid "Bash Home Service"
  63778. msgstr "基础服务"
  63779. #. type: anchor{#1}
  63780. #: guix-git/doc/guix.texi:42557
  63781. #, fuzzy
  63782. msgid "home-bash-configuration"
  63783. msgstr "系统配置"
  63784. #. type: deftp
  63785. #: guix-git/doc/guix.texi:42557
  63786. #, fuzzy, no-wrap
  63787. msgid "{Data Type} home-bash-configuration"
  63788. msgstr "{数据类型} build-machine"
  63789. #. type: deftp
  63790. #: guix-git/doc/guix.texi:42559
  63791. msgid "Available @code{home-bash-configuration} fields are:"
  63792. msgstr ""
  63793. #. type: item
  63794. #: guix-git/doc/guix.texi:42561
  63795. #, fuzzy, no-wrap
  63796. msgid "@code{package} (default: @code{bash}) (type: package)"
  63797. msgstr "@code{xfce}(默认值:@code{xfce})"
  63798. #. type: table
  63799. #: guix-git/doc/guix.texi:42563
  63800. #, fuzzy
  63801. msgid "The Bash package to use."
  63802. msgstr "软件包数据类型。"
  63803. #. type: item
  63804. #: guix-git/doc/guix.texi:42564
  63805. #, fuzzy, no-wrap
  63806. msgid "@code{guix-defaults?} (default: @code{#t}) (type: boolean)"
  63807. msgstr "@code{challenge}(默认值:@code{#f})"
  63808. #. type: table
  63809. #: guix-git/doc/guix.texi:42567
  63810. msgid "Add sane defaults like reading @file{/etc/bashrc} and coloring the output of @command{ls} to the top of the @file{.bashrc} file."
  63811. msgstr ""
  63812. #. type: item
  63813. #: guix-git/doc/guix.texi:42568 guix-git/doc/guix.texi:42639
  63814. #: guix-git/doc/guix.texi:42678
  63815. #, fuzzy, no-wrap
  63816. msgid "@code{environment-variables} (default: @code{'()}) (type: alist)"
  63817. msgstr "@code{features} (@code{'()})"
  63818. #. type: table
  63819. #: guix-git/doc/guix.texi:42573
  63820. 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."
  63821. msgstr ""
  63822. #. type: item
  63823. #: guix-git/doc/guix.texi:42574 guix-git/doc/guix.texi:42644
  63824. #, fuzzy, no-wrap
  63825. msgid "@code{aliases} (default: @code{'()}) (type: alist)"
  63826. msgstr "@code{features} (@code{'()})"
  63827. #. type: table
  63828. #: guix-git/doc/guix.texi:42579
  63829. 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 like this:"
  63830. msgstr ""
  63831. #. type: lisp
  63832. #: guix-git/doc/guix.texi:42582
  63833. #, no-wrap
  63834. msgid "'((\"ls\" . \"ls -alF\"))\n"
  63835. msgstr ""
  63836. #. type: table
  63837. #: guix-git/doc/guix.texi:42585
  63838. msgid "turns into"
  63839. msgstr ""
  63840. #. type: example
  63841. #: guix-git/doc/guix.texi:42588
  63842. #, no-wrap
  63843. msgid "alias ls=\"ls -alF\"\n"
  63844. msgstr ""
  63845. #. type: item
  63846. #: guix-git/doc/guix.texi:42590 guix-git/doc/guix.texi:42648
  63847. #, fuzzy, no-wrap
  63848. msgid "@code{bash-profile} (default: @code{'()}) (type: text-config)"
  63849. msgstr "@code{xfce}(默认值:@code{xfce})"
  63850. #. type: table
  63851. #: guix-git/doc/guix.texi:42595
  63852. 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."
  63853. msgstr ""
  63854. #. type: item
  63855. #: guix-git/doc/guix.texi:42596 guix-git/doc/guix.texi:42652
  63856. #, fuzzy, no-wrap
  63857. msgid "@code{bashrc} (default: @code{'()}) (type: text-config)"
  63858. msgstr "@code{xfce}(默认值:@code{xfce})"
  63859. #. type: table
  63860. #: guix-git/doc/guix.texi:42601
  63861. 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)."
  63862. msgstr ""
  63863. #. type: item
  63864. #: guix-git/doc/guix.texi:42602 guix-git/doc/guix.texi:42656
  63865. #, fuzzy, no-wrap
  63866. msgid "@code{bash-logout} (default: @code{'()}) (type: text-config)"
  63867. msgstr "@code{xfce}(默认值:@code{xfce})"
  63868. #. type: table
  63869. #: guix-git/doc/guix.texi:42607
  63870. 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)."
  63871. msgstr ""
  63872. #. type: Plain text
  63873. #: guix-git/doc/guix.texi:42617
  63874. msgid "You can extend the Bash service by using the @code{home-bash-extension} configuration record, whose fields must 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}."
  63875. msgstr ""
  63876. #. type: Plain text
  63877. #: guix-git/doc/guix.texi:42621
  63878. msgid "For example, here is how you would define a service that extends the Bash service such that @file{~/.bash_profile} defines an additional environment variable, @env{PS1}:"
  63879. msgstr ""
  63880. #. type: lisp
  63881. #: guix-git/doc/guix.texi:42629
  63882. #, no-wrap
  63883. msgid ""
  63884. "(define bash-fancy-prompt-service\n"
  63885. " (simple-service 'bash-fancy-prompt\n"
  63886. " home-bash-service-type\n"
  63887. " (home-bash-extension\n"
  63888. " (environment-variables\n"
  63889. " '((\"PS1\" . \"\\\\u \\\\wλ \"))))))\n"
  63890. msgstr ""
  63891. #. type: Plain text
  63892. #: guix-git/doc/guix.texi:42634
  63893. msgid "You would then add @code{bash-fancy-prompt-service} to the list in the @code{services} field of your @code{home-environment}. The reference of @code{home-bash-extension} follows."
  63894. msgstr ""
  63895. #. type: deftp
  63896. #: guix-git/doc/guix.texi:42635
  63897. #, fuzzy, no-wrap
  63898. msgid "{Data Type} home-bash-extension"
  63899. msgstr "{数据类型} build-machine"
  63900. #. type: deftp
  63901. #: guix-git/doc/guix.texi:42637
  63902. msgid "Available @code{home-bash-extension} fields are:"
  63903. msgstr ""
  63904. #. type: table
  63905. #: guix-git/doc/guix.texi:42643
  63906. 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."
  63907. msgstr ""
  63908. #. type: table
  63909. #: guix-git/doc/guix.texi:42647
  63910. msgid "Additional aliases to set. These will be combined with the aliases from other extensions and the base service."
  63911. msgstr ""
  63912. #. type: table
  63913. #: guix-git/doc/guix.texi:42651
  63914. msgid "Additional text blocks to add to @file{.bash_profile}, which will be combined with text blocks from other extensions and the base service."
  63915. msgstr ""
  63916. #. type: table
  63917. #: guix-git/doc/guix.texi:42655
  63918. msgid "Additional text blocks to add to @file{.bashrc}, which will be combined with text blocks from other extensions and the base service."
  63919. msgstr ""
  63920. #. type: table
  63921. #: guix-git/doc/guix.texi:42659
  63922. msgid "Additional text blocks to add to @file{.bash_logout}, which will be combined with text blocks from other extensions and the base service."
  63923. msgstr ""
  63924. #. type: subsubheading
  63925. #: guix-git/doc/guix.texi:42663
  63926. #, fuzzy, no-wrap
  63927. #| msgid "Game Services"
  63928. msgid "Zsh Home Service"
  63929. msgstr "游戏服务"
  63930. #. type: deftp
  63931. #: guix-git/doc/guix.texi:42665
  63932. #, fuzzy, no-wrap
  63933. msgid "{Data Type} home-zsh-configuration"
  63934. msgstr "{数据类型} build-machine"
  63935. #. type: deftp
  63936. #: guix-git/doc/guix.texi:42667
  63937. msgid "Available @code{home-zsh-configuration} fields are:"
  63938. msgstr ""
  63939. #. type: item
  63940. #: guix-git/doc/guix.texi:42669
  63941. #, fuzzy, no-wrap
  63942. msgid "@code{package} (default: @code{zsh}) (type: package)"
  63943. msgstr "@code{xfce}(默认值:@code{xfce})"
  63944. #. type: table
  63945. #: guix-git/doc/guix.texi:42671
  63946. #, fuzzy
  63947. msgid "The Zsh package to use."
  63948. msgstr "软件包数据类型。"
  63949. #. type: item
  63950. #: guix-git/doc/guix.texi:42672
  63951. #, fuzzy, no-wrap
  63952. msgid "@code{xdg-flavor?} (default: @code{#t}) (type: boolean)"
  63953. msgstr "@code{challenge}(默认值:@code{#f})"
  63954. #. type: table
  63955. #: guix-git/doc/guix.texi:42677
  63956. 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}."
  63957. msgstr ""
  63958. #. type: table
  63959. #: guix-git/doc/guix.texi:42680
  63960. msgid "Association list of environment variables to set for the Zsh session."
  63961. msgstr ""
  63962. #. type: item
  63963. #: guix-git/doc/guix.texi:42681
  63964. #, fuzzy, no-wrap
  63965. msgid "@code{zshenv} (default: @code{'()}) (type: text-config)"
  63966. msgstr "@code{xfce}(默认值:@code{xfce})"
  63967. #. type: table
  63968. #: guix-git/doc/guix.texi:42686
  63969. 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}."
  63970. msgstr ""
  63971. #. type: item
  63972. #: guix-git/doc/guix.texi:42687
  63973. #, fuzzy, no-wrap
  63974. msgid "@code{zprofile} (default: @code{'()}) (type: text-config)"
  63975. msgstr "@code{challenge}(默认值:@code{#f})"
  63976. #. type: table
  63977. #: guix-git/doc/guix.texi:42692
  63978. 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}."
  63979. msgstr ""
  63980. #. type: item
  63981. #: guix-git/doc/guix.texi:42693
  63982. #, fuzzy, no-wrap
  63983. msgid "@code{zshrc} (default: @code{'()}) (type: text-config)"
  63984. msgstr "@code{xfce}(默认值:@code{xfce})"
  63985. #. type: table
  63986. #: guix-git/doc/guix.texi:42698
  63987. 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)."
  63988. msgstr ""
  63989. #. type: item
  63990. #: guix-git/doc/guix.texi:42699
  63991. #, fuzzy, no-wrap
  63992. msgid "@code{zlogin} (default: @code{'()}) (type: text-config)"
  63993. msgstr "@code{speed}(默认值:@code{1.0})"
  63994. #. type: table
  63995. #: guix-git/doc/guix.texi:42703
  63996. 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."
  63997. msgstr ""
  63998. #. type: item
  63999. #: guix-git/doc/guix.texi:42704
  64000. #, fuzzy, no-wrap
  64001. msgid "@code{zlogout} (default: @code{'()}) (type: text-config)"
  64002. msgstr "@code{xfce}(默认值:@code{xfce})"
  64003. #. type: table
  64004. #: guix-git/doc/guix.texi:42709
  64005. 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)."
  64006. msgstr ""
  64007. #. type: node
  64008. #: guix-git/doc/guix.texi:42714
  64009. #, fuzzy, no-wrap
  64010. #| msgid "Monitoring Services"
  64011. msgid "Mcron Home Service"
  64012. msgstr "监控服务"
  64013. #. type: subsection
  64014. #: guix-git/doc/guix.texi:42715
  64015. #, fuzzy, no-wrap
  64016. #| msgid "Scheduled Job Execution"
  64017. msgid "Scheduled User's Job Execution"
  64018. msgstr "执行计划任务"
  64019. #. type: Plain text
  64020. #: guix-git/doc/guix.texi:42728
  64021. 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-environment} record instead of an @code{operating-system} record."
  64022. msgstr ""
  64023. #. type: defvar
  64024. #: guix-git/doc/guix.texi:42729
  64025. #, fuzzy, no-wrap
  64026. msgid "home-mcron-service-type"
  64027. msgstr "邮件服务"
  64028. #. type: defvar
  64029. #: guix-git/doc/guix.texi:42733
  64030. msgid "This is the type of the @code{mcron} home service, whose value is a @code{home-mcron-configuration} object. It allows to manage scheduled tasks."
  64031. msgstr ""
  64032. #. type: deftp
  64033. #: guix-git/doc/guix.texi:42740
  64034. #, fuzzy, no-wrap
  64035. msgid "{Data Type} home-mcron-configuration"
  64036. msgstr "{数据类型} build-machine"
  64037. #. type: deftp
  64038. #: guix-git/doc/guix.texi:42742
  64039. #, fuzzy
  64040. msgid "Available @code{home-mcron-configuration} fields are:"
  64041. msgstr "{数据类型} build-machine"
  64042. #. type: table
  64043. #: guix-git/doc/guix.texi:42763
  64044. msgid "@code{(ice-9 format)} format string for log messages. The default value produces messages like \"@samp{@var{pid} @var{name}: @var{message}\"} (@pxref{Invoking mcron, Invoking,, mcron,GNU@tie{}mcron}). Each message is also prefixed by a timestamp by GNU Shepherd."
  64045. msgstr ""
  64046. #. type: subsection
  64047. #: guix-git/doc/guix.texi:42768 guix-git/doc/guix.texi:42769
  64048. #, fuzzy, no-wrap
  64049. #| msgid "Power Management Services"
  64050. msgid "Power Management Home Services"
  64051. msgstr "电源管理服务"
  64052. #. type: cindex
  64053. #: guix-git/doc/guix.texi:42771
  64054. #, fuzzy, no-wrap
  64055. #| msgid "Power Management Services"
  64056. msgid "power management"
  64057. msgstr "电源管理服务"
  64058. #. type: Plain text
  64059. #: guix-git/doc/guix.texi:42774
  64060. msgid "The @code{(gnu home services pm)} module provides home services pertaining to battery power."
  64061. msgstr ""
  64062. #. type: defvar
  64063. #: guix-git/doc/guix.texi:42775
  64064. #, fuzzy, no-wrap
  64065. msgid "home-batsignal-service-type"
  64066. msgstr "aarch64-linux"
  64067. #. type: defvar
  64068. #: guix-git/doc/guix.texi:42781
  64069. msgid "Service for @code{batsignal}, a program that monitors battery levels and warns the user through desktop notifications when their battery is getting low. You can also configure a command to be run when the battery level passes a point deemed ``dangerous''. This service is configured with the @code{home-batsignal-configuration} record."
  64070. msgstr ""
  64071. #. type: deftp
  64072. #: guix-git/doc/guix.texi:42783
  64073. #, fuzzy, no-wrap
  64074. msgid "{Data Type} home-batsignal-configuration"
  64075. msgstr "{数据类型} build-machine"
  64076. #. type: deftp
  64077. #: guix-git/doc/guix.texi:42785
  64078. #, fuzzy
  64079. msgid "Data type representing the configuration for batsignal."
  64080. msgstr "管理操作系统配置。"
  64081. #. type: item
  64082. #: guix-git/doc/guix.texi:42787
  64083. #, fuzzy, no-wrap
  64084. msgid "@code{warning-level} (default: @code{15})"
  64085. msgstr "@code{speed}(默认值:@code{1.0})"
  64086. #. type: table
  64087. #: guix-git/doc/guix.texi:42789
  64088. msgid "The battery level to send a warning message at."
  64089. msgstr ""
  64090. #. type: item
  64091. #: guix-git/doc/guix.texi:42790
  64092. #, fuzzy, no-wrap
  64093. msgid "@code{warning-message} (default: @code{#f})"
  64094. msgstr "@code{challenge}(默认值:@code{#f})"
  64095. #. type: table
  64096. #: guix-git/doc/guix.texi:42794
  64097. msgid "The message to send as a notification when the battery level reaches the @code{warning-level}. Setting to @code{#f} uses the default message."
  64098. msgstr ""
  64099. #. type: item
  64100. #: guix-git/doc/guix.texi:42795
  64101. #, fuzzy, no-wrap
  64102. msgid "@code{critical-level} (default: @code{5})"
  64103. msgstr "@code{speed}(默认值:@code{1.0})"
  64104. #. type: table
  64105. #: guix-git/doc/guix.texi:42797
  64106. msgid "The battery level to send a critical message at."
  64107. msgstr ""
  64108. #. type: item
  64109. #: guix-git/doc/guix.texi:42798
  64110. #, fuzzy, no-wrap
  64111. #| msgid "@code{challenge} (default: @code{#f})"
  64112. msgid "@code{critical-message} (default: @code{#f})"
  64113. msgstr "@code{challenge}(默认值:@code{#f})"
  64114. #. type: table
  64115. #: guix-git/doc/guix.texi:42802
  64116. msgid "The message to send as a notification when the battery level reaches the @code{critical-level}. Setting to @code{#f} uses the default message."
  64117. msgstr ""
  64118. #. type: item
  64119. #: guix-git/doc/guix.texi:42803
  64120. #, fuzzy, no-wrap
  64121. msgid "@code{danger-level} (default: @code{2})"
  64122. msgstr "@code{speed}(默认值:@code{1.0})"
  64123. #. type: table
  64124. #: guix-git/doc/guix.texi:42805
  64125. msgid "The battery level to run the @code{danger-command} at."
  64126. msgstr ""
  64127. #. type: item
  64128. #: guix-git/doc/guix.texi:42806
  64129. #, fuzzy, no-wrap
  64130. msgid "@code{danger-command} (default: @code{#f})"
  64131. msgstr "@code{challenge}(默认值:@code{#f})"
  64132. #. type: table
  64133. #: guix-git/doc/guix.texi:42809
  64134. msgid "The command to run when the battery level reaches the @code{danger-level}. Setting to @code{#f} disables running the command entirely."
  64135. msgstr ""
  64136. #. type: item
  64137. #: guix-git/doc/guix.texi:42810
  64138. #, fuzzy, no-wrap
  64139. msgid "@code{full-level} (default: @code{#f})"
  64140. msgstr "@code{speed}(默认值:@code{1.0})"
  64141. #. type: table
  64142. #: guix-git/doc/guix.texi:42813
  64143. msgid "The battery level to send a full message at. Setting to @code{#f} disables sending the full message entirely."
  64144. msgstr ""
  64145. #. type: item
  64146. #: guix-git/doc/guix.texi:42814
  64147. #, fuzzy, no-wrap
  64148. msgid "@code{full-message} (default: @code{#f})"
  64149. msgstr "@code{display}(默认值:@code{\":0\"})"
  64150. #. type: table
  64151. #: guix-git/doc/guix.texi:42817
  64152. msgid "The message to send as a notification when the battery level reaches the @code{full-level}. Setting to @code{#f} uses the default message."
  64153. msgstr ""
  64154. #. type: item
  64155. #: guix-git/doc/guix.texi:42818
  64156. #, fuzzy, no-wrap
  64157. #| msgid "@code{features} (default: @code{'()})"
  64158. msgid "@code{batteries} (default: @code{'()})"
  64159. msgstr "@code{features} (@code{'()})"
  64160. #. type: table
  64161. #: guix-git/doc/guix.texi:42821
  64162. msgid "The batteries to monitor. Setting to @code{'()} tries to find batteries automatically."
  64163. msgstr ""
  64164. #. type: item
  64165. #: guix-git/doc/guix.texi:42822
  64166. #, fuzzy, no-wrap
  64167. msgid "@code{poll-delay} (default: @code{60})"
  64168. msgstr "@code{port}(默认值:@code{22})"
  64169. #. type: table
  64170. #: guix-git/doc/guix.texi:42824
  64171. msgid "The time in seconds to wait before checking the batteries again."
  64172. msgstr ""
  64173. #. type: item
  64174. #: guix-git/doc/guix.texi:42825
  64175. #, fuzzy, no-wrap
  64176. msgid "@code{icon} (default: @code{#f})"
  64177. msgstr "@code{challenge}(默认值:@code{#f})"
  64178. #. type: table
  64179. #: guix-git/doc/guix.texi:42828
  64180. msgid "A file-like object to use as the icon for battery notifications. Setting to @code{#f} disables notification icons entirely."
  64181. msgstr ""
  64182. #. type: item
  64183. #: guix-git/doc/guix.texi:42829
  64184. #, fuzzy, no-wrap
  64185. msgid "@code{notifications?} (default: @code{#t})"
  64186. msgstr "@code{mate}(默认值:@code{mate})"
  64187. #. type: table
  64188. #: guix-git/doc/guix.texi:42831
  64189. msgid "Whether to send any notifications."
  64190. msgstr ""
  64191. #. type: item
  64192. #: guix-git/doc/guix.texi:42832
  64193. #, fuzzy, no-wrap
  64194. msgid "@code{notifications-expire?} (default: @code{#f})"
  64195. msgstr "@code{xfce}(默认值:@code{xfce})"
  64196. #. type: table
  64197. #: guix-git/doc/guix.texi:42834
  64198. msgid "Whether notifications sent expire after a time."
  64199. msgstr ""
  64200. #. type: item
  64201. #: guix-git/doc/guix.texi:42835
  64202. #, fuzzy, no-wrap
  64203. msgid "@code{notification-command} (default: @code{#f})"
  64204. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  64205. #. type: table
  64206. #: guix-git/doc/guix.texi:42838
  64207. msgid "Command to use to send messages. Setting to @code{#f} sends a notification through @code{libnotify}."
  64208. msgstr ""
  64209. #. type: item
  64210. #: guix-git/doc/guix.texi:42839
  64211. #, fuzzy, no-wrap
  64212. msgid "@code{ignore-missing?} (default: @code{#f})"
  64213. msgstr "@code{journal-content}(默认值:@code{#f})"
  64214. #. type: table
  64215. #: guix-git/doc/guix.texi:42841
  64216. msgid "Whether to ignore missing battery errors."
  64217. msgstr ""
  64218. #. type: node
  64219. #: guix-git/doc/guix.texi:42844
  64220. #, fuzzy, no-wrap
  64221. #| msgid "Shepherd Services"
  64222. msgid "Shepherd Home Service"
  64223. msgstr "Shepherd服务"
  64224. #. type: subsection
  64225. #: guix-git/doc/guix.texi:42845
  64226. #, fuzzy, no-wrap
  64227. #| msgid "Messaging services."
  64228. msgid "Managing User Daemons"
  64229. msgstr "消息服务。"
  64230. #. type: cindex
  64231. #: guix-git/doc/guix.texi:42847
  64232. #, fuzzy, no-wrap
  64233. #| msgid "Shepherd Services"
  64234. msgid "shepherd services, for users"
  64235. msgstr "Shepherd服务"
  64236. #. type: Plain text
  64237. #: guix-git/doc/guix.texi:42854
  64238. 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."
  64239. msgstr ""
  64240. #. type: defvar
  64241. #: guix-git/doc/guix.texi:42855
  64242. #, fuzzy, no-wrap
  64243. msgid "home-shepherd-service-type"
  64244. msgstr "邮件服务"
  64245. #. type: defvar
  64246. #: guix-git/doc/guix.texi:42860
  64247. 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."
  64248. msgstr ""
  64249. #. type: defvar
  64250. #: guix-git/doc/guix.texi:42865
  64251. 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."
  64252. msgstr ""
  64253. #. type: deftp
  64254. #: guix-git/doc/guix.texi:42867
  64255. #, fuzzy, no-wrap
  64256. msgid "{Data Type} home-shepherd-configuration"
  64257. msgstr "{数据类型} build-machine"
  64258. #. type: item
  64259. #: guix-git/doc/guix.texi:42874
  64260. #, fuzzy, no-wrap
  64261. msgid "auto-start? (default: @code{#t})"
  64262. msgstr "@code{port}(默认值:@code{22})"
  64263. #. type: table
  64264. #: guix-git/doc/guix.texi:42876
  64265. msgid "Whether or not to start Shepherd on first login."
  64266. msgstr ""
  64267. #. type: subsection
  64268. #: guix-git/doc/guix.texi:42884 guix-git/doc/guix.texi:42885
  64269. #, no-wrap
  64270. msgid "Secure Shell"
  64271. msgstr ""
  64272. #. type: cindex
  64273. #: guix-git/doc/guix.texi:42887
  64274. #, fuzzy, no-wrap
  64275. msgid "secure shell client, configuration"
  64276. msgstr "系统配置"
  64277. #. type: cindex
  64278. #: guix-git/doc/guix.texi:42888
  64279. #, fuzzy, no-wrap
  64280. msgid "SSH client, configuration"
  64281. msgstr "系统配置"
  64282. #. type: Plain text
  64283. #: guix-git/doc/guix.texi:42896
  64284. msgid "The @uref{https://www.openssh.com, OpenSSH package} includes a client, the @command{ssh} command, that allows you to connect to remote machines using the @acronym{SSH, secure shell} protocol. With the @code{(gnu home services ssh)} module, you can set up OpenSSH so that it works in a predictable fashion, almost independently of state on the local machine. To do that, you instantiate @code{home-openssh-service-type} in your Home configuration, as explained below."
  64285. msgstr ""
  64286. #. type: defvar
  64287. #: guix-git/doc/guix.texi:42897
  64288. #, fuzzy, no-wrap
  64289. msgid "home-openssh-service-type"
  64290. msgstr "邮件服务"
  64291. #. type: defvar
  64292. #: guix-git/doc/guix.texi:42900
  64293. msgid "This is the type of the service to set up the OpenSSH client. It takes care of several things:"
  64294. msgstr ""
  64295. #. type: itemize
  64296. #: guix-git/doc/guix.texi:42906
  64297. msgid "providing a @file{~/.ssh/config} file based on your configuration so that @command{ssh} knows about hosts you regularly connect to and their associated parameters;"
  64298. msgstr ""
  64299. #. type: itemize
  64300. #: guix-git/doc/guix.texi:42911
  64301. msgid "providing a @file{~/.ssh/authorized_keys}, which lists public keys that the local SSH server, @command{sshd}, may accept to connect to this user account;"
  64302. msgstr ""
  64303. #. type: itemize
  64304. #: guix-git/doc/guix.texi:42915
  64305. msgid "optionally providing a @file{~/.ssh/known_hosts} file so that @file{ssh} can authenticate hosts you connect to."
  64306. msgstr ""
  64307. #. type: Plain text
  64308. #: guix-git/doc/guix.texi:42919 guix-git/doc/guix.texi:43093
  64309. #: guix-git/doc/guix.texi:43675 guix-git/doc/guix.texi:43709
  64310. msgid "Here is an example of a service and its configuration that you could add to the @code{services} field of your @code{home-environment}:"
  64311. msgstr ""
  64312. #. type: lisp
  64313. #: guix-git/doc/guix.texi:42931
  64314. #, no-wrap
  64315. msgid ""
  64316. "(service home-openssh-service-type\n"
  64317. " (home-openssh-configuration\n"
  64318. " (hosts\n"
  64319. " (list (openssh-host (name \"ci.guix.gnu.org\")\n"
  64320. " (user \"charlie\"))\n"
  64321. " (openssh-host (name \"chbouib\")\n"
  64322. " (host-name \"chbouib.example.org\")\n"
  64323. " (user \"supercharlie\")\n"
  64324. " (port 10022))))\n"
  64325. " (authorized-keys (list (local-file \"alice.pub\")))))\n"
  64326. msgstr ""
  64327. #. type: defvar
  64328. #: guix-git/doc/guix.texi:42938
  64329. msgid "The example above lists two hosts and their parameters. For instance, running @command{ssh chbouib} will automatically connect to @code{chbouib.example.org} on port 10022, logging in as user @samp{supercharlie}. Further, it marks the public key in @file{alice.pub} as authorized for incoming connections."
  64330. msgstr ""
  64331. #. type: defvar
  64332. #: guix-git/doc/guix.texi:42941
  64333. msgid "The value associated with a @code{home-openssh-service-type} instance must be a @code{home-openssh-configuration} record, as describe below."
  64334. msgstr ""
  64335. #. type: deftp
  64336. #: guix-git/doc/guix.texi:42943
  64337. #, fuzzy, no-wrap
  64338. msgid "{Data Type} home-openssh-configuration"
  64339. msgstr "{数据类型} build-machine"
  64340. #. type: deftp
  64341. #: guix-git/doc/guix.texi:42947
  64342. msgid "This is the datatype representing the OpenSSH client and server configuration in one's home environment. It contains the following fields:"
  64343. msgstr ""
  64344. #. type: item
  64345. #: guix-git/doc/guix.texi:42949
  64346. #, fuzzy, no-wrap
  64347. msgid "@code{hosts} (default: @code{'()})"
  64348. msgstr "@code{features} (@code{'()})"
  64349. #. type: table
  64350. #: guix-git/doc/guix.texi:42953
  64351. msgid "A list of @code{openssh-host} records specifying host names and associated connection parameters (see below). This host list goes into @file{~/.ssh/config}, which @command{ssh} reads at startup."
  64352. msgstr ""
  64353. #. type: item
  64354. #: guix-git/doc/guix.texi:42954
  64355. #, fuzzy, no-wrap
  64356. msgid "@code{known-hosts} (default: @code{*unspecified*})"
  64357. msgstr "@code{features} (@code{'()})"
  64358. #. type: table
  64359. #: guix-git/doc/guix.texi:42956
  64360. msgid "This must be either:"
  64361. msgstr ""
  64362. #. type: itemize
  64363. #: guix-git/doc/guix.texi:42962
  64364. msgid "@code{*unspecified*}, in which case @code{home-openssh-service-type} leaves it up to @command{ssh} and to the user to maintain the list of known hosts at @file{~/.ssh/known_hosts}, or"
  64365. msgstr ""
  64366. #. type: itemize
  64367. #: guix-git/doc/guix.texi:42966
  64368. msgid "a list of file-like objects, in which case those are concatenated and emitted as @file{~/.ssh/known_hosts}."
  64369. msgstr ""
  64370. #. type: table
  64371. #: guix-git/doc/guix.texi:42975
  64372. msgid "The @file{~/.ssh/known_hosts} contains a list of host name/host key pairs that allow @command{ssh} to authenticate hosts you connect to and to detect possible impersonation attacks. By default, @command{ssh} updates it in a @dfn{TOFU, trust-on-first-use} fashion, meaning that it records the host's key in that file the first time you connect to it. This behavior is preserved when @code{known-hosts} is set to @code{*unspecified*}."
  64373. msgstr ""
  64374. #. type: table
  64375. #: guix-git/doc/guix.texi:42981
  64376. msgid "If you instead provide a list of host keys upfront in the @code{known-hosts} field, your configuration becomes self-contained and stateless: it can be replicated elsewhere or at another point in time. Preparing this list can be relatively tedious though, which is why @code{*unspecified*} is kept as a default."
  64377. msgstr ""
  64378. #. type: item
  64379. #: guix-git/doc/guix.texi:42982
  64380. #, fuzzy, no-wrap
  64381. msgid "@code{authorized-keys} (default: @code{#false})"
  64382. msgstr "@code{mate}(默认值:@code{mate})"
  64383. #. type: table
  64384. #: guix-git/doc/guix.texi:42987
  64385. msgid "The default @code{#false} value means: Leave any @file{~/.ssh/authorized_keys} file alone. Otherwise, this must be a list of file-like objects, each of which containing an SSH public key that should be authorized to connect to this machine."
  64386. msgstr ""
  64387. #. type: table
  64388. #: guix-git/doc/guix.texi:42993
  64389. msgid "Concretely, these files are concatenated and made available as @file{~/.ssh/authorized_keys}. If an OpenSSH server, @command{sshd}, is running on this machine, then it @emph{may} take this file into account: this is what @command{sshd} does by default, but be aware that it can also be configured to ignore it."
  64390. msgstr ""
  64391. #. type: deftp
  64392. #: guix-git/doc/guix.texi:42998
  64393. #, fuzzy, no-wrap
  64394. msgid "{Data Type} openssh-host"
  64395. msgstr "{数据类型} build-machine"
  64396. #. type: deftp
  64397. #: guix-git/doc/guix.texi:43000
  64398. msgid "Available @code{openssh-host} fields are:"
  64399. msgstr ""
  64400. #. type: table
  64401. #: guix-git/doc/guix.texi:43004
  64402. #, fuzzy
  64403. #| msgid "Detail of operating-system declarations."
  64404. msgid "Name of this host declaration."
  64405. msgstr "操作系统声明详情。"
  64406. #. type: item
  64407. #: guix-git/doc/guix.texi:43005
  64408. #, fuzzy, no-wrap
  64409. msgid "@code{host-name} (type: maybe-string)"
  64410. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  64411. #. type: table
  64412. #: guix-git/doc/guix.texi:43007
  64413. msgid "Host name---e.g., @code{\"foo.example.org\"} or @code{\"192.168.1.2\"}."
  64414. msgstr ""
  64415. #. type: item
  64416. #: guix-git/doc/guix.texi:43008
  64417. #, fuzzy, no-wrap
  64418. msgid "@code{address-family} (type: maybe-address-family)"
  64419. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  64420. #. type: table
  64421. #: guix-git/doc/guix.texi:43012
  64422. msgid "Address family to use when connecting to this host: one of @code{AF_INET} (for IPv4 only), @code{AF_INET6} (for IPv6 only). Additionally, the field can be left unset to allow any address family."
  64423. msgstr ""
  64424. #. type: item
  64425. #: guix-git/doc/guix.texi:43013
  64426. #, fuzzy, no-wrap
  64427. msgid "@code{identity-file} (type: maybe-string)"
  64428. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  64429. #. type: table
  64430. #: guix-git/doc/guix.texi:43015
  64431. msgid "The identity file to use---e.g., @code{\"/home/charlie/.ssh/id_ed25519\"}."
  64432. msgstr ""
  64433. #. type: item
  64434. #: guix-git/doc/guix.texi:43016 guix-git/doc/guix.texi:43056
  64435. #, fuzzy, no-wrap
  64436. msgid "@code{port} (type: maybe-natural-number)"
  64437. msgstr "@code{gnome}(默认值:@code{gnome})"
  64438. #. type: table
  64439. #: guix-git/doc/guix.texi:43018 guix-git/doc/guix.texi:43058
  64440. msgid "TCP port number to connect to."
  64441. msgstr ""
  64442. #. type: item
  64443. #: guix-git/doc/guix.texi:43019 guix-git/doc/guix.texi:43050
  64444. #: guix-git/doc/guix.texi:43642
  64445. #, fuzzy, no-wrap
  64446. msgid "@code{user} (type: maybe-string)"
  64447. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  64448. #. type: table
  64449. #: guix-git/doc/guix.texi:43021 guix-git/doc/guix.texi:43052
  64450. #, fuzzy
  64451. #| msgid "The host name of the remote machine."
  64452. msgid "User name on the remote host."
  64453. msgstr "远程机器的主机名。"
  64454. #. type: item
  64455. #: guix-git/doc/guix.texi:43022
  64456. #, fuzzy, no-wrap
  64457. msgid "@code{forward-x11?} (default: @code{#f}) (type: boolean)"
  64458. msgstr "@code{challenge}(默认值:@code{#f})"
  64459. #. type: table
  64460. #: guix-git/doc/guix.texi:43025
  64461. msgid "Whether to forward remote client connections to the local X11 graphical display."
  64462. msgstr ""
  64463. #. type: item
  64464. #: guix-git/doc/guix.texi:43026
  64465. #, fuzzy, no-wrap
  64466. msgid "@code{forward-x11-trusted?} (default: @code{#f}) (type: boolean)"
  64467. msgstr "@code{challenge}(默认值:@code{#f})"
  64468. #. type: table
  64469. #: guix-git/doc/guix.texi:43029
  64470. msgid "Whether remote X11 clients have full access to the original X11 graphical display."
  64471. msgstr ""
  64472. #. type: item
  64473. #: guix-git/doc/guix.texi:43030
  64474. #, fuzzy, no-wrap
  64475. msgid "@code{forward-agent?} (default: @code{#f}) (type: boolean)"
  64476. msgstr "@code{challenge}(默认值:@code{#f})"
  64477. #. type: table
  64478. #: guix-git/doc/guix.texi:43033
  64479. msgid "Whether the authentication agent (if any) is forwarded to the remote machine."
  64480. msgstr ""
  64481. #. type: item
  64482. #: guix-git/doc/guix.texi:43034
  64483. #, fuzzy, no-wrap
  64484. msgid "@code{compression?} (default: @code{#f}) (type: boolean)"
  64485. msgstr "@code{challenge}(默认值:@code{#f})"
  64486. #. type: table
  64487. #: guix-git/doc/guix.texi:43036
  64488. msgid "Whether to compress data in transit."
  64489. msgstr ""
  64490. #. type: item
  64491. #: guix-git/doc/guix.texi:43037
  64492. #, fuzzy, no-wrap
  64493. msgid "@code{proxy} (type: maybe-proxy-command-or-jump-list)"
  64494. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  64495. #. type: table
  64496. #: guix-git/doc/guix.texi:43041
  64497. msgid "The command to use to connect to the server or a list of SSH hosts to jump through before connecting to the server. The field may be set to either a @code{proxy-command} or a list of @code{proxy-jump} records."
  64498. msgstr ""
  64499. #. type: table
  64500. #: guix-git/doc/guix.texi:43045
  64501. msgid "As an example, a @code{proxy-command} to connect via an HTTP proxy at 192.0.2.0 would be constructed with: @code{(proxy-command \"nc -X connect -x 192.0.2.0:8080 %h %p\")}."
  64502. msgstr ""
  64503. #. type: deftp
  64504. #: guix-git/doc/guix.texi:43046
  64505. #, fuzzy, no-wrap
  64506. msgid "{Data Type} proxy-jump"
  64507. msgstr "{数据类型} build-machine"
  64508. #. type: deftp
  64509. #: guix-git/doc/guix.texi:43048
  64510. #, fuzzy
  64511. msgid "Available @code{proxy-jump} fields are:"
  64512. msgstr "{数据类型} build-machine"
  64513. #. type: item
  64514. #: guix-git/doc/guix.texi:43053
  64515. #, fuzzy, no-wrap
  64516. msgid "@code{host-name} (type: string)"
  64517. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  64518. #. type: table
  64519. #: guix-git/doc/guix.texi:43055
  64520. msgid "Host name---e.g., @code{foo.example.org} or @code{192.168.1.2}."
  64521. msgstr ""
  64522. #. type: item
  64523. #: guix-git/doc/guix.texi:43063
  64524. #, fuzzy, no-wrap
  64525. msgid "@code{host-key-algorithms} (type: maybe-string-list)"
  64526. msgstr "@code{mate}(默认值:@code{mate})"
  64527. #. type: table
  64528. #: guix-git/doc/guix.texi:43066
  64529. msgid "The list of accepted host key algorithms---e.g., @code{'(\"ssh-ed25519\")}."
  64530. msgstr ""
  64531. #. type: item
  64532. #: guix-git/doc/guix.texi:43067
  64533. #, fuzzy, no-wrap
  64534. msgid "@code{accepted-key-types} (type: maybe-string-list)"
  64535. msgstr "@code{mate}(默认值:@code{mate})"
  64536. #. type: table
  64537. #: guix-git/doc/guix.texi:43069
  64538. msgid "The list of accepted user public key types."
  64539. msgstr ""
  64540. #. type: item
  64541. #: guix-git/doc/guix.texi:43070 guix-git/doc/guix.texi:43192
  64542. #: guix-git/doc/guix.texi:43272
  64543. #, fuzzy, no-wrap
  64544. msgid "@code{extra-content} (default: @code{\"\"}) (type: raw-configuration-string)"
  64545. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  64546. #. type: table
  64547. #: guix-git/doc/guix.texi:43073
  64548. msgid "Extra content appended as-is to this @code{Host} block in @file{~/.ssh/config}."
  64549. msgstr ""
  64550. #. type: cindex
  64551. #: guix-git/doc/guix.texi:43081
  64552. #, fuzzy, no-wrap
  64553. msgid "ssh-agent"
  64554. msgstr "主机公钥"
  64555. #. type: Plain text
  64556. #: guix-git/doc/guix.texi:43089
  64557. msgid "The @uref{https://www.openssh.com, OpenSSH package} includes a daemon, the @command{ssh-agent} command, that manages keys to connect to remote machines using the @acronym{SSH, secure shell} protocol. With the @code{(gnu home services ssh-agent)} service, you can configure the OpenSSH ssh-agent to run upon login. @xref{GNU Privacy Guard, @code{home-gpg-agent-service-type}}, for an alternative to OpenSSH's @command{ssh-agent}."
  64558. msgstr ""
  64559. #. type: lisp
  64560. #: guix-git/doc/guix.texi:43098
  64561. #, fuzzy, no-wrap
  64562. #| msgid ""
  64563. #| "(service home-ssh-agent-service-type\n"
  64564. #| " (home-ssh-agent-configuration\n"
  64565. #| " (extra-options '(\"-t\" \"1h30m\"))))\n"
  64566. msgid ""
  64567. "(service home-ssh-agent-service-type\n"
  64568. " (home-ssh-agent-configuration\n"
  64569. " (extra-options '(\"-t\" \"1h30m\"))))\n"
  64570. msgstr ""
  64571. "(service home-ssh-agent-service-type\n"
  64572. " (home-ssh-agent-configuration\n"
  64573. " (extra-options '(\"-t\" \"1h30m\"))))\n"
  64574. #. type: defvar
  64575. #: guix-git/doc/guix.texi:43100
  64576. #, fuzzy, no-wrap
  64577. msgid "home-ssh-agent-service-type"
  64578. msgstr "邮件服务"
  64579. #. type: defvar
  64580. #: guix-git/doc/guix.texi:43103
  64581. msgid "This is the type of the @code{ssh-agent} home service, whose value is a @code{home-ssh-agent-configuration} object."
  64582. msgstr ""
  64583. #. type: deftp
  64584. #: guix-git/doc/guix.texi:43105
  64585. #, fuzzy, no-wrap
  64586. msgid "{Data Type} home-ssh-agent-configuration"
  64587. msgstr "{数据类型} build-machine"
  64588. #. type: deftp
  64589. #: guix-git/doc/guix.texi:43107
  64590. #, fuzzy
  64591. msgid "Available @code{home-ssh-agent-configuration} fields are:"
  64592. msgstr "{数据类型} build-machine"
  64593. #. type: item
  64594. #: guix-git/doc/guix.texi:43109
  64595. #, fuzzy, no-wrap
  64596. msgid "@code{openssh} (default: @code{openssh}) (type: file-like)"
  64597. msgstr "@code{xfce}(默认值:@code{xfce})"
  64598. #. type: item
  64599. #: guix-git/doc/guix.texi:43112
  64600. #, fuzzy, no-wrap
  64601. msgid "@code{socket-directory} (default: @code{@env{XDG_RUNTIME_DIR}/ssh-agent\"}) (type: gexp)"
  64602. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  64603. #. type: table
  64604. #: guix-git/doc/guix.texi:43114
  64605. msgid "The directory to write the ssh-agent's @file{socket} file."
  64606. msgstr ""
  64607. #. type: table
  64608. #: guix-git/doc/guix.texi:43118
  64609. msgid "Extra options will be passed to @command{ssh-agent}, please run @command{man ssh-agent} for more information."
  64610. msgstr ""
  64611. #. type: subsection
  64612. #: guix-git/doc/guix.texi:43122 guix-git/doc/guix.texi:43123
  64613. #, no-wrap
  64614. msgid "GNU Privacy Guard"
  64615. msgstr ""
  64616. #. type: cindex
  64617. #: guix-git/doc/guix.texi:43125
  64618. #, fuzzy, no-wrap
  64619. #| msgid "Game Services"
  64620. msgid "GNU Privacy Guard, Home service"
  64621. msgstr "游戏服务"
  64622. #. type: cindex
  64623. #: guix-git/doc/guix.texi:43126
  64624. #, fuzzy, no-wrap
  64625. #| msgid "Game Services"
  64626. msgid "GPG, Home service"
  64627. msgstr "游戏服务"
  64628. #. type: Plain text
  64629. #: guix-git/doc/guix.texi:43130
  64630. msgid "The @code{(gnu home services gnupg)} modules provides services that help you set up the GNU Privacy Guard, also known as GnuPG or GPG, in your home environment."
  64631. msgstr ""
  64632. #. type: cindex
  64633. #: guix-git/doc/guix.texi:43131
  64634. #, fuzzy, no-wrap
  64635. #| msgid "Game Services"
  64636. msgid "gpg-agent, Home service"
  64637. msgstr "游戏服务"
  64638. #. type: cindex
  64639. #: guix-git/doc/guix.texi:43132
  64640. #, no-wrap
  64641. msgid "SSH agent, with gpg-agent"
  64642. msgstr ""
  64643. #. type: Plain text
  64644. #: guix-git/doc/guix.texi:43137
  64645. msgid "The @code{gpg-agent} service configures and sets up GPG's agent, the program that is responsible for managing OpenPGP private keys and, optionally, OpenSSH (secure shell) private keys (@pxref{Invoking GPG-AGENT,,, gnupg, Using the GNU Privacy Guard})."
  64646. msgstr ""
  64647. #. type: Plain text
  64648. #: guix-git/doc/guix.texi:43141
  64649. msgid "As an example, here is how you would configure @code{gpg-agent} with SSH support such that it uses the Emacs-based Pinentry interface when prompting for a passphrase:"
  64650. msgstr ""
  64651. #. type: lisp
  64652. #: guix-git/doc/guix.texi:43148
  64653. #, no-wrap
  64654. msgid ""
  64655. "(service home-gpg-agent-service-type\n"
  64656. " (home-gpg-agent-configuration\n"
  64657. " (pinentry-program\n"
  64658. " (file-append pinentry-emacs \"/bin/pinentry-emacs\"))\n"
  64659. " (ssh-support? #t)))\n"
  64660. msgstr ""
  64661. #. type: Plain text
  64662. #: guix-git/doc/guix.texi:43151 guix-git/doc/guix.texi:43540
  64663. msgid "The service reference is given below."
  64664. msgstr ""
  64665. #. type: defvar
  64666. #: guix-git/doc/guix.texi:43152
  64667. #, fuzzy, no-wrap
  64668. msgid "home-gpg-agent-service-type"
  64669. msgstr "邮件服务"
  64670. #. type: defvar
  64671. #: guix-git/doc/guix.texi:43156
  64672. msgid "This is the service type for @command{gpg-agent} (@pxref{Invoking GPG-AGENT,,, gnupg, Using the GNU Privacy Guard}). Its value must be a @code{home-gpg-agent-configuration}, as shown below."
  64673. msgstr ""
  64674. #. type: deftp
  64675. #: guix-git/doc/guix.texi:43160
  64676. #, fuzzy, no-wrap
  64677. msgid "{Data Type} home-gpg-agent-configuration"
  64678. msgstr "{数据类型} build-machine"
  64679. #. type: deftp
  64680. #: guix-git/doc/guix.texi:43162
  64681. #, fuzzy
  64682. msgid "Available @code{home-gpg-agent-configuration} fields are:"
  64683. msgstr "{数据类型} build-machine"
  64684. #. type: item
  64685. #: guix-git/doc/guix.texi:43164
  64686. #, fuzzy, no-wrap
  64687. msgid "@code{gnupg} (default: @code{gnupg}) (type: file-like)"
  64688. msgstr "@code{xfce}(默认值:@code{xfce})"
  64689. #. type: table
  64690. #: guix-git/doc/guix.texi:43166
  64691. #, fuzzy
  64692. msgid "The GnuPG package to use."
  64693. msgstr "软件包数据类型。"
  64694. #. type: item
  64695. #: guix-git/doc/guix.texi:43167
  64696. #, fuzzy, no-wrap
  64697. msgid "@code{pinentry-program} (type: file-like)"
  64698. msgstr "@code{xfce}(默认值:@code{xfce})"
  64699. #. type: table
  64700. #: guix-git/doc/guix.texi:43172
  64701. msgid "Pinentry program to use. Pinentry is a small user interface that @command{gpg-agent} delegates to anytime it needs user input for a passphrase or @acronym{PIN,personal identification number} (@pxref{Top,,, pinentry,Using the PIN-Entry})."
  64702. msgstr ""
  64703. #. type: item
  64704. #: guix-git/doc/guix.texi:43173
  64705. #, fuzzy, no-wrap
  64706. msgid "@code{ssh-support?} (default: @code{#f}) (type: boolean)"
  64707. msgstr "@code{challenge}(默认值:@code{#f})"
  64708. #. type: table
  64709. #: guix-git/doc/guix.texi:43178
  64710. msgid "Whether to enable @acronym{SSH,secure shell} support. When true, @command{gpg-agent} acts as a drop-in replacement for OpenSSH's @command{ssh-agent} program, taking care of OpenSSH secret keys and directing passphrase requests to the chosen Pinentry program."
  64711. msgstr ""
  64712. #. type: item
  64713. #: guix-git/doc/guix.texi:43179
  64714. #, fuzzy, no-wrap
  64715. msgid "@code{default-cache-ttl} (default: @code{600}) (type: integer)"
  64716. msgstr "@code{port}(默认值:@code{22})"
  64717. #. type: table
  64718. #: guix-git/doc/guix.texi:43181
  64719. msgid "Time a cache entry is valid, in seconds."
  64720. msgstr ""
  64721. #. type: item
  64722. #: guix-git/doc/guix.texi:43182
  64723. #, fuzzy, no-wrap
  64724. msgid "@code{max-cache-ttl} (default: @code{7200}) (type: integer)"
  64725. msgstr "@code{port}(默认值:@code{22})"
  64726. #. type: table
  64727. #: guix-git/doc/guix.texi:43185
  64728. msgid "Maximum time a cache entry is valid, in seconds. After this time a cache entry will be expired even if it has been accessed recently."
  64729. msgstr ""
  64730. #. type: item
  64731. #: guix-git/doc/guix.texi:43186
  64732. #, fuzzy, no-wrap
  64733. msgid "@code{default-cache-ttl-ssh} (default: @code{1800}) (type: integer)"
  64734. msgstr "@code{port}(默认值:@code{22})"
  64735. #. type: table
  64736. #: guix-git/doc/guix.texi:43188
  64737. msgid "Time a cache entry for SSH keys is valid, in seconds."
  64738. msgstr ""
  64739. #. type: item
  64740. #: guix-git/doc/guix.texi:43189
  64741. #, fuzzy, no-wrap
  64742. msgid "@code{max-cache-ttl-ssh} (default: @code{7200}) (type: integer)"
  64743. msgstr "@code{challenge}(默认值:@code{#f})"
  64744. #. type: table
  64745. #: guix-git/doc/guix.texi:43191
  64746. msgid "Maximum time a cache entry for SSH keys is valid, in seconds."
  64747. msgstr ""
  64748. #. type: table
  64749. #: guix-git/doc/guix.texi:43194
  64750. msgid "Raw content to add to the end of @file{~/.gnupg/gpg-agent.conf}."
  64751. msgstr ""
  64752. #. type: subsection
  64753. #: guix-git/doc/guix.texi:43203 guix-git/doc/guix.texi:43204
  64754. #, fuzzy, no-wrap
  64755. #| msgid "Desktop Services"
  64756. msgid "Desktop Home Services"
  64757. msgstr "桌面服务"
  64758. #. type: Plain text
  64759. #: guix-git/doc/guix.texi:43209
  64760. 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."
  64761. msgstr ""
  64762. #. type: defvar
  64763. #: guix-git/doc/guix.texi:43210
  64764. #, fuzzy, no-wrap
  64765. msgid "home-redshift-service-type"
  64766. msgstr "邮件服务"
  64767. #. type: defvar
  64768. #: guix-git/doc/guix.texi:43215
  64769. 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."
  64770. msgstr ""
  64771. #. type: defvar
  64772. #: guix-git/doc/guix.texi:43218
  64773. msgid "A typical configuration, where we manually specify the latitude and longitude, might look like this:"
  64774. msgstr ""
  64775. #. type: lisp
  64776. #: guix-git/doc/guix.texi:43225
  64777. #, no-wrap
  64778. msgid ""
  64779. "(service home-redshift-service-type\n"
  64780. " (home-redshift-configuration\n"
  64781. " (location-provider 'manual)\n"
  64782. " (latitude 35.81) ;northern hemisphere\n"
  64783. " (longitude -0.80))) ;west of Greenwich\n"
  64784. msgstr ""
  64785. #. type: deftp
  64786. #: guix-git/doc/guix.texi:43228
  64787. #, fuzzy, no-wrap
  64788. msgid "{Data Type} home-redshift-configuration"
  64789. msgstr "{数据类型} build-machine"
  64790. #. type: deftp
  64791. #: guix-git/doc/guix.texi:43230
  64792. msgid "Available @code{home-redshift-configuration} fields are:"
  64793. msgstr ""
  64794. #. type: item
  64795. #: guix-git/doc/guix.texi:43232
  64796. #, fuzzy, no-wrap
  64797. msgid "@code{redshift} (default: @code{redshift}) (type: file-like)"
  64798. msgstr "@code{xfce}(默认值:@code{xfce})"
  64799. #. type: table
  64800. #: guix-git/doc/guix.texi:43234
  64801. #, fuzzy
  64802. msgid "Redshift package to use."
  64803. msgstr "软件包数据类型。"
  64804. #. type: item
  64805. #: guix-git/doc/guix.texi:43235
  64806. #, fuzzy, no-wrap
  64807. msgid "@code{location-provider} (default: @code{geoclue2}) (type: symbol)"
  64808. msgstr "@code{port}(默认值:@code{22})"
  64809. #. type: table
  64810. #: guix-git/doc/guix.texi:43241
  64811. 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."
  64812. msgstr ""
  64813. #. type: item
  64814. #: guix-git/doc/guix.texi:43242
  64815. #, fuzzy, no-wrap
  64816. msgid "@code{adjustment-method} (default: @code{randr}) (type: symbol)"
  64817. msgstr "@code{port}(默认值:@code{22})"
  64818. #. type: table
  64819. #: guix-git/doc/guix.texi:43244
  64820. msgid "Color adjustment method."
  64821. msgstr ""
  64822. #. type: item
  64823. #: guix-git/doc/guix.texi:43245
  64824. #, fuzzy, no-wrap
  64825. msgid "@code{daytime-temperature} (default: @code{6500}) (type: integer)"
  64826. msgstr "@code{challenge}(默认值:@code{#f})"
  64827. #. type: table
  64828. #: guix-git/doc/guix.texi:43247
  64829. msgid "Daytime color temperature (kelvins)."
  64830. msgstr ""
  64831. #. type: item
  64832. #: guix-git/doc/guix.texi:43248
  64833. #, fuzzy, no-wrap
  64834. msgid "@code{nighttime-temperature} (default: @code{4500}) (type: integer)"
  64835. msgstr "@code{challenge}(默认值:@code{#f})"
  64836. #. type: table
  64837. #: guix-git/doc/guix.texi:43250
  64838. msgid "Nighttime color temperature (kelvins)."
  64839. msgstr ""
  64840. #. type: item
  64841. #: guix-git/doc/guix.texi:43251
  64842. #, fuzzy, no-wrap
  64843. msgid "@code{daytime-brightness} (type: maybe-inexact-number)"
  64844. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  64845. #. type: table
  64846. #: guix-git/doc/guix.texi:43253
  64847. msgid "Daytime screen brightness, between 0.1 and 1.0, or left unspecified."
  64848. msgstr ""
  64849. #. type: item
  64850. #: guix-git/doc/guix.texi:43254
  64851. #, fuzzy, no-wrap
  64852. msgid "@code{nighttime-brightness} (type: maybe-inexact-number)"
  64853. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  64854. #. type: table
  64855. #: guix-git/doc/guix.texi:43256
  64856. msgid "Nighttime screen brightness, between 0.1 and 1.0, or left unspecified."
  64857. msgstr ""
  64858. #. type: item
  64859. #: guix-git/doc/guix.texi:43257
  64860. #, fuzzy, no-wrap
  64861. msgid "@code{latitude} (type: maybe-inexact-number)"
  64862. msgstr "@code{gnome}(默认值:@code{gnome})"
  64863. #. type: table
  64864. #: guix-git/doc/guix.texi:43259
  64865. msgid "Latitude, when @code{location-provider} is @code{'manual}."
  64866. msgstr ""
  64867. #. type: item
  64868. #: guix-git/doc/guix.texi:43260
  64869. #, fuzzy, no-wrap
  64870. msgid "@code{longitude} (type: maybe-inexact-number)"
  64871. msgstr "@code{gnome}(默认值:@code{gnome})"
  64872. #. type: table
  64873. #: guix-git/doc/guix.texi:43262
  64874. msgid "Longitude, when @code{location-provider} is @code{'manual}."
  64875. msgstr ""
  64876. #. type: item
  64877. #: guix-git/doc/guix.texi:43263
  64878. #, fuzzy, no-wrap
  64879. msgid "@code{dawn-time} (type: maybe-string)"
  64880. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  64881. #. type: table
  64882. #: guix-git/doc/guix.texi:43267
  64883. 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."
  64884. msgstr ""
  64885. #. type: item
  64886. #: guix-git/doc/guix.texi:43268
  64887. #, fuzzy, no-wrap
  64888. msgid "@code{dusk-time} (type: maybe-string)"
  64889. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  64890. #. type: table
  64891. #: guix-git/doc/guix.texi:43271
  64892. msgid "Likewise, custom time for the transition from day to night in the evening."
  64893. msgstr ""
  64894. #. type: table
  64895. #: guix-git/doc/guix.texi:43276
  64896. msgid "Extra content appended as-is to the Redshift configuration file. Run @command{man redshift} for more information about the configuration file format."
  64897. msgstr ""
  64898. #. type: defvar
  64899. #: guix-git/doc/guix.texi:43281
  64900. #, fuzzy, no-wrap
  64901. msgid "home-dbus-service-type"
  64902. msgstr "邮件服务"
  64903. #. type: defvar
  64904. #: guix-git/doc/guix.texi:43284
  64905. msgid "This is the service type for running a session-specific D-Bus, for unprivileged applications that require D-Bus to be running."
  64906. msgstr ""
  64907. #. type: deftp
  64908. #: guix-git/doc/guix.texi:43286
  64909. #, fuzzy, no-wrap
  64910. msgid "{Data Type} home-dbus-configuration"
  64911. msgstr "{数据类型} build-machine"
  64912. #. type: deftp
  64913. #: guix-git/doc/guix.texi:43288
  64914. #, fuzzy
  64915. msgid "The configuration record for @code{home-dbus-service-type}."
  64916. msgstr "管理操作系统配置。"
  64917. #. type: item
  64918. #: guix-git/doc/guix.texi:43290
  64919. #, fuzzy, no-wrap
  64920. msgid "@code{dbus} (default: @code{dbus})"
  64921. msgstr "@code{port}(默认值:@code{22})"
  64922. #. type: table
  64923. #: guix-git/doc/guix.texi:43292
  64924. #, fuzzy
  64925. #| msgid "Package management commands."
  64926. msgid "The package providing the @code{/bin/dbus-daemon} command."
  64927. msgstr "软件包管理命令。"
  64928. #. type: defvar
  64929. #: guix-git/doc/guix.texi:43295
  64930. #, fuzzy, no-wrap
  64931. msgid "home-unclutter-service-type"
  64932. msgstr "aarch64-linux"
  64933. #. type: defvar
  64934. #: guix-git/doc/guix.texi:43301
  64935. msgid "This is the service type for Unclutter, a program that runs on the background of an X11 session and detects when the X pointer hasn't moved for a specified idle timeout, after which it hides the cursor so that you can focus on the text underneath. Its associated value must be a @code{home-unclutter-configuration} record, as shown below."
  64936. msgstr ""
  64937. #. type: defvar
  64938. #: guix-git/doc/guix.texi:43304
  64939. msgid "A typical configuration, where we manually specify the idle timeout (in seconds), might look like this:"
  64940. msgstr ""
  64941. #. type: lisp
  64942. #: guix-git/doc/guix.texi:43309
  64943. #, no-wrap
  64944. msgid ""
  64945. "(service home-unclutter-service-type\n"
  64946. " (home-unclutter-configuration\n"
  64947. " (idle-timeout 2)))\n"
  64948. msgstr ""
  64949. "(service home-unclutter-service-type\n"
  64950. " (home-unclutter-configuration\n"
  64951. " (idle-timeout 2)))\n"
  64952. #. type: deftp
  64953. #: guix-git/doc/guix.texi:43312
  64954. #, fuzzy, no-wrap
  64955. msgid "{Data Type} home-unclutter-configuration"
  64956. msgstr "{数据类型} build-machine"
  64957. #. type: deftp
  64958. #: guix-git/doc/guix.texi:43314
  64959. #, fuzzy
  64960. msgid "The configuration record for @code{home-unclutter-service-type}."
  64961. msgstr "管理操作系统配置。"
  64962. #. type: item
  64963. #: guix-git/doc/guix.texi:43316
  64964. #, fuzzy, no-wrap
  64965. msgid "@code{unclutter} (default: @code{unclutter}) (type: file-like)"
  64966. msgstr "@code{xfce}(默认值:@code{xfce})"
  64967. #. type: table
  64968. #: guix-git/doc/guix.texi:43318
  64969. #, fuzzy
  64970. msgid "Unclutter package to use."
  64971. msgstr "软件包数据类型。"
  64972. #. type: item
  64973. #: guix-git/doc/guix.texi:43319
  64974. #, fuzzy, no-wrap
  64975. msgid "@code{idle-timeout} (default: @code{5}) (type: integer)"
  64976. msgstr "@code{challenge}(默认值:@code{#f})"
  64977. #. type: table
  64978. #: guix-git/doc/guix.texi:43321
  64979. msgid "A timeout in seconds after which to hide cursor."
  64980. msgstr ""
  64981. #. type: defvar
  64982. #: guix-git/doc/guix.texi:43325
  64983. #, fuzzy, no-wrap
  64984. msgid "home-xmodmap-service-type"
  64985. msgstr "邮件服务"
  64986. #. type: defvar
  64987. #: guix-git/doc/guix.texi:43331
  64988. msgid "This is the service type for the @uref{https://gitlab.freedesktop.org/xorg/app/xmodmap,xmodmap} utility to modify keymaps and pointer button mappings under the Xorg display server. Its associated value must be a @code{home-xmodmap-configuration} record, as shown below."
  64989. msgstr ""
  64990. #. type: defvar
  64991. #: guix-git/doc/guix.texi:43339
  64992. msgid "The @code{key-map} field takes a list of objects, each of which is either a @dfn{statement} (a string) or an @dfn{assignment} (a pair of strings). As an example, the snippet below swaps around the @kbd{Caps_Lock} and the @kbd{Control_L} keys, by first removing the keysyms (on the right-hand side) from the corresponding modifier maps (on the left-hand side), re-assigning them by swapping each other out, and finally adding back the keysyms to the modifier maps."
  64993. msgstr ""
  64994. #. type: lisp
  64995. #: guix-git/doc/guix.texi:43349
  64996. #, no-wrap
  64997. msgid ""
  64998. "(service home-xmodmap-service-type\n"
  64999. " (home-xmodmap-configuration\n"
  65000. " (key-map '((\"remove Lock\" . \"Caps_Lock\")\n"
  65001. " (\"remove Control\" . \"Control_L\")\n"
  65002. " (\"keysym Control_L\" . \"Caps_Lock\")\n"
  65003. " (\"keysym Caps_Lock\" . \"Control_L\")\n"
  65004. " (\"add Lock\" . \"Caps_Lock\")\n"
  65005. " (\"add Control\" . \"Control_L\")))))\n"
  65006. msgstr ""
  65007. #. type: deftp
  65008. #: guix-git/doc/guix.texi:43352
  65009. #, fuzzy, no-wrap
  65010. msgid "{Data Type} home-xmodmap-configuration"
  65011. msgstr "{数据类型} build-machine"
  65012. #. type: deftp
  65013. #: guix-git/doc/guix.texi:43355
  65014. #, fuzzy
  65015. msgid "The configuration record for @code{home-xmodmap-service-type}. Its available fields are:"
  65016. msgstr "管理操作系统配置。"
  65017. #. type: item
  65018. #: guix-git/doc/guix.texi:43357
  65019. #, fuzzy, no-wrap
  65020. msgid "@code{xmodmap} (default: @code{xmodmap}) (type: file-like)"
  65021. msgstr "@code{xfce}(默认值:@code{xfce})"
  65022. #. type: table
  65023. #: guix-git/doc/guix.texi:43359
  65024. #, fuzzy
  65025. msgid "The @code{xmodmap} package to use."
  65026. msgstr "软件包数据类型。"
  65027. #. type: item
  65028. #: guix-git/doc/guix.texi:43360
  65029. #, fuzzy, no-wrap
  65030. msgid "@code{key-map} (default: @code{'()}) (type: list)"
  65031. msgstr "@code{features} (@code{'()})"
  65032. #. type: table
  65033. #: guix-git/doc/guix.texi:43362
  65034. msgid "The list of expressions to be read by @code{xmodmap} on service startup."
  65035. msgstr ""
  65036. #. type: subsection
  65037. #: guix-git/doc/guix.texi:43366 guix-git/doc/guix.texi:43367
  65038. #, fuzzy, no-wrap
  65039. #| msgid "Game Services"
  65040. msgid "Guix Home Services"
  65041. msgstr "游戏服务"
  65042. #. type: Plain text
  65043. #: guix-git/doc/guix.texi:43371
  65044. msgid "The @code{(gnu home services guix)} module provides services for user-specific Guix configuration."
  65045. msgstr ""
  65046. #. type: defvar
  65047. #: guix-git/doc/guix.texi:43372
  65048. #, fuzzy, no-wrap
  65049. msgid "home-channels-service-type"
  65050. msgstr "邮件服务"
  65051. #. type: defvar
  65052. #: guix-git/doc/guix.texi:43378
  65053. msgid "This is the service type for managing @file{$XDG_CONFIG_HOME/guix/channels.scm}, the file that controls the channels received on @command{guix pull} (@pxref{Channels}). Its associated value is a list of @code{channel} records, defined in the @code{(guix channels)} module."
  65054. msgstr ""
  65055. #. type: defvar
  65056. #: guix-git/doc/guix.texi:43385
  65057. msgid "Generally, it is better to extend this service than to directly configure it, as its default value is the default guix channel(s) defined by @code{%default-channels}. If you configure this service directly, be sure to include a guix channel. @xref{Specifying Additional Channels} and @ref{Using a Custom Guix Channel} for more details."
  65058. msgstr ""
  65059. #. type: defvar
  65060. #: guix-git/doc/guix.texi:43387
  65061. msgid "A typical extension for adding a channel might look like this:"
  65062. msgstr ""
  65063. #. type: lisp
  65064. #: guix-git/doc/guix.texi:43395
  65065. #, no-wrap
  65066. msgid ""
  65067. "(simple-service 'variant-packages-service\n"
  65068. " home-channels-service-type\n"
  65069. " (list\n"
  65070. " (channel\n"
  65071. " (name 'variant-packages)\n"
  65072. " (url \"https://example.org/variant-packages.git\"))))\n"
  65073. msgstr ""
  65074. #. type: subsection
  65075. #: guix-git/doc/guix.texi:43398 guix-git/doc/guix.texi:43399
  65076. #, fuzzy, no-wrap
  65077. #| msgid "Game Services"
  65078. msgid "Fonts Home Services"
  65079. msgstr "游戏服务"
  65080. #. type: Plain text
  65081. #: guix-git/doc/guix.texi:43405
  65082. msgid "The @code{(gnu home services fontutils)} module provides services for user-specific Fontconfig setup. The @uref{https://www.freedesktop.org/wiki/Software/fontconfig,Fontconfig} library is used by many applications to access fonts on the system."
  65083. msgstr ""
  65084. #. type: defvar
  65085. #: guix-git/doc/guix.texi:43406
  65086. #, fuzzy, no-wrap
  65087. msgid "home-fontconfig-service-type"
  65088. msgstr "邮件服务"
  65089. #. type: defvar
  65090. #: guix-git/doc/guix.texi:43412
  65091. msgid "This is the service type for generating configurations for Fontconfig. Its associated value is a list of either strings (or gexps) pointing to fonts locations, or SXML (@pxref{SXML,,, guile, GNU Guile Reference Manual}) fragments to be converted into XML and put inside the main @code{fontconfig} node."
  65092. msgstr ""
  65093. #. type: defvar
  65094. #: guix-git/doc/guix.texi:43418
  65095. msgid "Generally, it is better to extend this service than to directly configure it, as its default value is the default Guix Home's profile font installation path (@file{~/.guix-home/profile/share/fonts}). If you configure this service directly, be sure to include the above directory."
  65096. msgstr ""
  65097. #. type: defvar
  65098. #: guix-git/doc/guix.texi:43421
  65099. msgid "A typical extension for adding an additional font directory and setting a font as the default monospace font might look like this:"
  65100. msgstr ""
  65101. #. type: lisp
  65102. #: guix-git/doc/guix.texi:43430
  65103. #, no-wrap
  65104. msgid ""
  65105. "(simple-service 'additional-fonts-service\n"
  65106. " home-fontconfig-service-type\n"
  65107. " (list \"~/.nix-profile/share/fonts\"\n"
  65108. " '(alias\n"
  65109. " (family \"monospace\")\n"
  65110. " (prefer\n"
  65111. " (family \"Liberation Mono\")))))\n"
  65112. msgstr ""
  65113. #. type: subsection
  65114. #: guix-git/doc/guix.texi:43433 guix-git/doc/guix.texi:43434
  65115. #, fuzzy, no-wrap
  65116. #| msgid "Sound Services"
  65117. msgid "Sound Home Services"
  65118. msgstr "声音服务"
  65119. #. type: Plain text
  65120. #: guix-git/doc/guix.texi:43438
  65121. msgid "The @code{(gnu home services sound)} module provides services related to sound support."
  65122. msgstr ""
  65123. #. type: cindex
  65124. #: guix-git/doc/guix.texi:43439
  65125. #, fuzzy, no-wrap
  65126. #| msgid "Other services."
  65127. msgid "PulseAudio, home service"
  65128. msgstr "其它服务。"
  65129. #. type: cindex
  65130. #: guix-git/doc/guix.texi:43440
  65131. #, no-wrap
  65132. msgid "RTP, for PulseAudio"
  65133. msgstr ""
  65134. #. type: Plain text
  65135. #: guix-git/doc/guix.texi:43450
  65136. msgid "The following services dynamically reconfigure the @uref{https://pulseaudio.org,PulseAudio sound server}: they let you toggle broadcast of audio output over the network using the @acronym{RTP, real-time transport protocol} and, correspondingly, playback of sound received over RTP. Once @code{home-pulseaudio-rtp-sink-service-type} is among your home services, you can start broadcasting audio output by running this command:"
  65137. msgstr ""
  65138. #. type: example
  65139. #: guix-git/doc/guix.texi:43453 guix-git/doc/guix.texi:43519
  65140. #, no-wrap
  65141. msgid "herd start pulseaudio-rtp-sink\n"
  65142. msgstr ""
  65143. #. type: Plain text
  65144. #: guix-git/doc/guix.texi:43458
  65145. msgid "You can then run a PulseAudio-capable mixer, such as @code{pavucontrol} or @code{pulsemixer} (both from the same-named package) to control which audio stream(s) should be sent to the RTP ``sink''."
  65146. msgstr ""
  65147. #. type: Plain text
  65148. #: guix-git/doc/guix.texi:43465
  65149. msgid "By default, audio is broadcasted to a multicast address: any device on the @acronym{LAN, local area network} receives it and may play it. Using multicast in this way puts a lot of pressure on the network and degrades its performance, so you may instead prefer sending to specifically one device. The first way to do that is by specifying the IP address of the target device when starting the service:"
  65150. msgstr ""
  65151. #. type: example
  65152. #: guix-git/doc/guix.texi:43468
  65153. #, no-wrap
  65154. msgid "herd start pulseaudio-rtp-sink 192.168.1.42\n"
  65155. msgstr ""
  65156. #. type: Plain text
  65157. #: guix-git/doc/guix.texi:43472
  65158. msgid "The other option is to specify this IP address as the one to use by default in your home environment configuration:"
  65159. msgstr ""
  65160. #. type: lisp
  65161. #: guix-git/doc/guix.texi:43476
  65162. #, no-wrap
  65163. msgid ""
  65164. "(service home-pulseaudio-rtp-sink-service-type\n"
  65165. " \"192.168.1.42\")\n"
  65166. msgstr ""
  65167. #. type: Plain text
  65168. #: guix-git/doc/guix.texi:43480
  65169. msgid "On the device where you intend to receive and play the RTP stream, you can use @code{home-pulseaudio-rtp-source-service-type}, like so:"
  65170. msgstr ""
  65171. #. type: lisp
  65172. #: guix-git/doc/guix.texi:43483
  65173. #, no-wrap
  65174. msgid "(service home-pulseaudio-rtp-source-service-type)\n"
  65175. msgstr "(service home-pulseaudio-rtp-source-service-type)\n"
  65176. #. type: Plain text
  65177. #: guix-git/doc/guix.texi:43486
  65178. msgid "This will then let you start the receiving module for PulseAudio:"
  65179. msgstr ""
  65180. #. type: example
  65181. #: guix-git/doc/guix.texi:43489
  65182. #, no-wrap
  65183. msgid "herd start pulseaudio-rtp-source\n"
  65184. msgstr ""
  65185. #. type: Plain text
  65186. #: guix-git/doc/guix.texi:43494
  65187. msgid "Again, by default it will listen on the multicast address. If, instead, you'd like it to listen for direct incoming connections, you can do that by running:"
  65188. msgstr ""
  65189. #. type: lisp
  65190. #: guix-git/doc/guix.texi:43498
  65191. #, no-wrap
  65192. msgid ""
  65193. "(service home-pulseaudio-rtp-source-service-type\n"
  65194. " \"0.0.0.0\")\n"
  65195. msgstr ""
  65196. #. type: Plain text
  65197. #: guix-git/doc/guix.texi:43501
  65198. msgid "The reference of these services is given below."
  65199. msgstr ""
  65200. #. type: defvar
  65201. #: guix-git/doc/guix.texi:43502
  65202. #, fuzzy, no-wrap
  65203. msgid "home-pulseaudio-rtp-sink-service-type"
  65204. msgstr "邮件服务"
  65205. #. type: defvarx
  65206. #: guix-git/doc/guix.texi:43503
  65207. #, fuzzy, no-wrap
  65208. msgid "home-pulseaudio-rtp-source-service-type"
  65209. msgstr "邮件服务"
  65210. #. type: defvar
  65211. #: guix-git/doc/guix.texi:43506
  65212. msgid "This is the type of the service to send, respectively receive, audio streams over @acronym{RTP, real-time transport protocol}."
  65213. msgstr ""
  65214. #. type: defvar
  65215. #: guix-git/doc/guix.texi:43511
  65216. msgid "The value associated with this service is the IP address (a string) where to send, respectively receive, the audio stream. By default, audio is sent/received on multicast address @code{%pulseaudio-rtp-multicast-address}."
  65217. msgstr ""
  65218. #. type: defvar
  65219. #: guix-git/doc/guix.texi:43516
  65220. msgid "This service defines one Shepherd service: @code{pulseaudio-rtp-sink}, respectively @code{pulseaudio-rtp-source}. The service is not started by default, so you have to explicitly start it when you want to turn it on, as in this example:"
  65221. msgstr ""
  65222. #. type: defvar
  65223. #: guix-git/doc/guix.texi:43522
  65224. msgid "Stopping the Shepherd service turns off broadcasting."
  65225. msgstr ""
  65226. #. type: defvar
  65227. #: guix-git/doc/guix.texi:43524
  65228. #, no-wrap
  65229. msgid "%pulseaudio-rtp-multicast-address"
  65230. msgstr ""
  65231. #. type: defvar
  65232. #: guix-git/doc/guix.texi:43526
  65233. msgid "This is the multicast address used by default by the two services above."
  65234. msgstr ""
  65235. #. type: subsection
  65236. #: guix-git/doc/guix.texi:43528 guix-git/doc/guix.texi:43529
  65237. #, fuzzy, no-wrap
  65238. #| msgid "Game Services"
  65239. msgid "Mail Home Services"
  65240. msgstr "游戏服务"
  65241. #. type: Plain text
  65242. #: guix-git/doc/guix.texi:43533
  65243. msgid "The @code{(gnu home services mail)} module provides services that help you set up the tools to work with emails in your home environment."
  65244. msgstr ""
  65245. #. type: cindex
  65246. #: guix-git/doc/guix.texi:43534
  65247. #, no-wrap
  65248. msgid "msmtp"
  65249. msgstr ""
  65250. #. type: Plain text
  65251. #: guix-git/doc/guix.texi:43538
  65252. msgid "@uref{https://marlam.de/msmtp, MSMTP} is a @acronym{SMTP, Simple Mail Transfer Protocol} client. It sends mail to a predefined SMTP server that takes care of proper delivery."
  65253. msgstr ""
  65254. #. type: defvar
  65255. #: guix-git/doc/guix.texi:43541
  65256. #, fuzzy, no-wrap
  65257. msgid "home-msmtp-service-type"
  65258. msgstr "邮件服务"
  65259. #. type: defvar
  65260. #: guix-git/doc/guix.texi:43545
  65261. msgid "This is the service type for @command{msmtp}. Its value must be a @code{home-msmtp-configuration}, as shown below. It provides the @file{~/.config/msmtp/config} file."
  65262. msgstr ""
  65263. #. type: defvar
  65264. #: guix-git/doc/guix.texi:43548
  65265. msgid "As an example, here is how you would configure @code{msmtp} for a single account:"
  65266. msgstr ""
  65267. #. type: lisp
  65268. #: guix-git/doc/guix.texi:43562
  65269. #, no-wrap
  65270. msgid ""
  65271. "(service home-msmtp-service-type\n"
  65272. " (home-msmtp-configuration\n"
  65273. " (accounts\n"
  65274. " (list\n"
  65275. " (msmtp-account\n"
  65276. " (name \"alice\")\n"
  65277. " (configuration\n"
  65278. " (msmtp-configuration\n"
  65279. " (host \"mail.example.org\")\n"
  65280. " (port 587)\n"
  65281. " (user \"alice\")\n"
  65282. " (password-eval \"pass Mail/alice\"))))))))\n"
  65283. msgstr ""
  65284. #. type: deftp
  65285. #: guix-git/doc/guix.texi:43567
  65286. #, fuzzy, no-wrap
  65287. msgid "{Data Type} home-msmtp-configuration"
  65288. msgstr "{数据类型} build-machine"
  65289. #. type: deftp
  65290. #: guix-git/doc/guix.texi:43569
  65291. #, fuzzy
  65292. msgid "Available @code{home-msmtp-configuration} fields are:"
  65293. msgstr "{数据类型} build-machine"
  65294. #. type: item
  65295. #: guix-git/doc/guix.texi:43571
  65296. #, fuzzy, no-wrap
  65297. msgid "@code{defaults} (type: msmtp-configuration)"
  65298. msgstr "{数据类型} build-machine"
  65299. #. type: table
  65300. #: guix-git/doc/guix.texi:43573
  65301. msgid "The configuration that will be set as default for all accounts."
  65302. msgstr ""
  65303. #. type: item
  65304. #: guix-git/doc/guix.texi:43574
  65305. #, fuzzy, no-wrap
  65306. msgid "@code{accounts} (default: @code{'()}) (type: list-of-msmtp-accounts)"
  65307. msgstr "@code{features} (@code{'()})"
  65308. #. type: table
  65309. #: guix-git/doc/guix.texi:43577
  65310. msgid "A list of @code{msmtp-account} records which contain information about all your accounts."
  65311. msgstr ""
  65312. #. type: item
  65313. #: guix-git/doc/guix.texi:43578
  65314. #, fuzzy, no-wrap
  65315. msgid "@code{default-account} (type: maybe-string)"
  65316. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  65317. #. type: table
  65318. #: guix-git/doc/guix.texi:43580
  65319. msgid "Set the default account."
  65320. msgstr ""
  65321. #. type: item
  65322. #: guix-git/doc/guix.texi:43581 guix-git/doc/guix.texi:43652
  65323. #, fuzzy, no-wrap
  65324. msgid "@code{extra-content} (default: @code{\"\"}) (type: string)"
  65325. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  65326. #. type: table
  65327. #: guix-git/doc/guix.texi:43585
  65328. msgid "Extra content appended as-is to the configuration file. Run @command{man msmtp} for more information about the configuration file format."
  65329. msgstr ""
  65330. #. type: deftp
  65331. #: guix-git/doc/guix.texi:43594
  65332. #, fuzzy, no-wrap
  65333. msgid "{Data Type} msmtp-account"
  65334. msgstr "{数据类型} build-machine"
  65335. #. type: deftp
  65336. #: guix-git/doc/guix.texi:43596
  65337. #, fuzzy
  65338. msgid "Available @code{msmtp-account} fields are:"
  65339. msgstr "{数据类型} build-machine"
  65340. #. type: table
  65341. #: guix-git/doc/guix.texi:43600
  65342. #, fuzzy
  65343. msgid "The unique name of the account."
  65344. msgstr "这个用户手册的许可证。"
  65345. #. type: item
  65346. #: guix-git/doc/guix.texi:43601
  65347. #, fuzzy, no-wrap
  65348. msgid "@code{configuration} (type: msmtp-configuration)"
  65349. msgstr "@code{journal-content}(默认值:@code{#f})"
  65350. #. type: table
  65351. #: guix-git/doc/guix.texi:43603
  65352. #, fuzzy
  65353. msgid "The configuration for this given account."
  65354. msgstr "管理操作系统配置。"
  65355. #. type: deftp
  65356. #: guix-git/doc/guix.texi:43612
  65357. #, fuzzy, no-wrap
  65358. msgid "{Data Type} msmtp-configuration"
  65359. msgstr "{数据类型} build-machine"
  65360. #. type: deftp
  65361. #: guix-git/doc/guix.texi:43614
  65362. #, fuzzy
  65363. msgid "Available @code{msmtp-configuration} fields are:"
  65364. msgstr "{数据类型} build-machine"
  65365. #. type: item
  65366. #: guix-git/doc/guix.texi:43616
  65367. #, fuzzy, no-wrap
  65368. msgid "@code{auth?} (type: maybe-boolean)"
  65369. msgstr "@code{speed}(默认值:@code{1.0})"
  65370. #. type: table
  65371. #: guix-git/doc/guix.texi:43618
  65372. #, fuzzy
  65373. msgid "Enable or disable authentication."
  65374. msgstr "--disable-deduplication"
  65375. #. type: item
  65376. #: guix-git/doc/guix.texi:43619
  65377. #, fuzzy, no-wrap
  65378. msgid "@code{tls?} (type: maybe-boolean)"
  65379. msgstr "@code{speed}(默认值:@code{1.0})"
  65380. #. type: table
  65381. #: guix-git/doc/guix.texi:43621
  65382. msgid "Enable or disable TLS (also known as SSL) for secured connections."
  65383. msgstr ""
  65384. #. type: item
  65385. #: guix-git/doc/guix.texi:43622
  65386. #, fuzzy, no-wrap
  65387. msgid "@code{tls-starttls?} (type: maybe-boolean)"
  65388. msgstr "@code{speed}(默认值:@code{1.0})"
  65389. #. type: table
  65390. #: guix-git/doc/guix.texi:43625
  65391. msgid "Choose the TLS variant: start TLS from within the session (‘on’, default), or tunnel the session through TLS (‘off’)."
  65392. msgstr ""
  65393. #. type: item
  65394. #: guix-git/doc/guix.texi:43626
  65395. #, fuzzy, no-wrap
  65396. msgid "@code{tls-trust-file} (type: maybe-string)"
  65397. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  65398. #. type: table
  65399. #: guix-git/doc/guix.texi:43629
  65400. msgid "Activate server certificate verification using a list of trusted Certification Authorities (CAs)."
  65401. msgstr ""
  65402. #. type: table
  65403. #: guix-git/doc/guix.texi:43634
  65404. msgid "Enable logging to the specified file. An empty argument disables logging. The file name ‘-’ directs the log information to standard output."
  65405. msgstr ""
  65406. #. type: item
  65407. #: guix-git/doc/guix.texi:43635
  65408. #, fuzzy, no-wrap
  65409. msgid "@code{host} (type: maybe-string)"
  65410. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  65411. #. type: table
  65412. #: guix-git/doc/guix.texi:43637
  65413. msgid "The SMTP server to send the mail to."
  65414. msgstr ""
  65415. #. type: item
  65416. #: guix-git/doc/guix.texi:43638
  65417. #, fuzzy, no-wrap
  65418. msgid "@code{port} (type: maybe-integer)"
  65419. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  65420. #. type: table
  65421. #: guix-git/doc/guix.texi:43641
  65422. msgid "The port that the SMTP server listens on. The default is 25 (\"smtp\"), unless TLS without STARTTLS is used, in which case it is 465 (\"smtps\")."
  65423. msgstr ""
  65424. #. type: table
  65425. #: guix-git/doc/guix.texi:43644
  65426. #, fuzzy
  65427. #| msgid "Substitute Authentication"
  65428. msgid "Set the user name for authentication."
  65429. msgstr "验证substitute"
  65430. #. type: item
  65431. #: guix-git/doc/guix.texi:43645
  65432. #, fuzzy, no-wrap
  65433. msgid "@code{from} (type: maybe-string)"
  65434. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  65435. #. type: table
  65436. #: guix-git/doc/guix.texi:43647
  65437. msgid "Set the envelope-from address."
  65438. msgstr ""
  65439. #. type: item
  65440. #: guix-git/doc/guix.texi:43648
  65441. #, fuzzy, no-wrap
  65442. msgid "@code{password-eval} (type: maybe-string)"
  65443. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  65444. #. type: table
  65445. #: guix-git/doc/guix.texi:43651
  65446. msgid "Set the password for authentication to the output (stdout) of the command cmd."
  65447. msgstr ""
  65448. #. type: table
  65449. #: guix-git/doc/guix.texi:43656
  65450. msgid "Extra content appended as-is to the configuration block. Run @command{man msmtp} for more information about the configuration file format."
  65451. msgstr ""
  65452. #. type: subsection
  65453. #: guix-git/doc/guix.texi:43663 guix-git/doc/guix.texi:43664
  65454. #, fuzzy, no-wrap
  65455. #| msgid "Messaging Services"
  65456. msgid "Messaging Home Services"
  65457. msgstr "消息服务"
  65458. #. type: cindex
  65459. #: guix-git/doc/guix.texi:43666
  65460. #, no-wrap
  65461. msgid "znc"
  65462. msgstr ""
  65463. #. type: Plain text
  65464. #: guix-git/doc/guix.texi:43670
  65465. msgid "The @uref{https://znc.in, ZNC bouncer} can be run as a daemon to manage your IRC presence. With the @code{(gnu home services messaging)} service, you can configure ZNC to run upon login."
  65466. msgstr ""
  65467. #. type: Plain text
  65468. #: guix-git/doc/guix.texi:43672
  65469. msgid "You will have to provide a @file{~/.znc/configs/znc.conf} seperately."
  65470. msgstr ""
  65471. #. type: lisp
  65472. #: guix-git/doc/guix.texi:43678
  65473. #, no-wrap
  65474. msgid "(service home-znc-service-type)\n"
  65475. msgstr "(service home-znc-service-type)\n"
  65476. #. type: defvar
  65477. #: guix-git/doc/guix.texi:43680
  65478. #, fuzzy, no-wrap
  65479. msgid "home-znc-service-type"
  65480. msgstr "邮件服务"
  65481. #. type: defvar
  65482. #: guix-git/doc/guix.texi:43683
  65483. #, fuzzy
  65484. msgid "This is the type of the ZNC home service, whose value is a @code{home-znc-configuration} object."
  65485. msgstr "管理操作系统配置。"
  65486. #. type: deftp
  65487. #: guix-git/doc/guix.texi:43685
  65488. #, fuzzy, no-wrap
  65489. msgid "{Data Type} home-znc-configuration"
  65490. msgstr "{数据类型} build-machine"
  65491. #. type: deftp
  65492. #: guix-git/doc/guix.texi:43687
  65493. #, fuzzy
  65494. msgid "Available @code{home-znc-configuration} fields are:"
  65495. msgstr "{数据类型} build-machine"
  65496. #. type: item
  65497. #: guix-git/doc/guix.texi:43689
  65498. #, fuzzy, no-wrap
  65499. msgid "@code{znc} (default: @code{znc}) (type: file-like)"
  65500. msgstr "@code{xfce}(默认值:@code{xfce})"
  65501. #. type: table
  65502. #: guix-git/doc/guix.texi:43691
  65503. #, fuzzy
  65504. msgid "The ZNC package to use."
  65505. msgstr "软件包数据类型。"
  65506. #. type: table
  65507. #: guix-git/doc/guix.texi:43695
  65508. msgid "Extra options will be passed to @command{znc}, please run @command{man znc} for more information."
  65509. msgstr ""
  65510. #. type: subsection
  65511. #: guix-git/doc/guix.texi:43699 guix-git/doc/guix.texi:43700
  65512. #, fuzzy, no-wrap
  65513. #| msgid "Game Services"
  65514. msgid "Media Home Services"
  65515. msgstr "游戏服务"
  65516. #. type: cindex
  65517. #: guix-git/doc/guix.texi:43702
  65518. #, no-wrap
  65519. msgid "kodi"
  65520. msgstr ""
  65521. #. type: Plain text
  65522. #: guix-git/doc/guix.texi:43706
  65523. msgid "The @uref{https://kodi.tv, Kodi media center} can be run as a daemon on a media server. With the @code{(gnu home services kodi)} service, you can configure Kodi to run upon login."
  65524. msgstr ""
  65525. #. type: lisp
  65526. #: guix-git/doc/guix.texi:43714
  65527. #, no-wrap
  65528. msgid ""
  65529. "(service home-kodi-service-type\n"
  65530. " (home-kodi-configuration\n"
  65531. " (extra-options '(\"--settings=\"<settings-file>\"))))\n"
  65532. msgstr ""
  65533. "(service home-kodi-service-type\n"
  65534. " (home-kodi-configuration\n"
  65535. " (extra-options '(\"--settings=\"<settings-file>\"))))\n"
  65536. #. type: defvar
  65537. #: guix-git/doc/guix.texi:43716
  65538. #, fuzzy, no-wrap
  65539. msgid "home-kodi-service-type"
  65540. msgstr "邮件服务"
  65541. #. type: defvar
  65542. #: guix-git/doc/guix.texi:43719
  65543. msgid "This is the type of the Kodi home service, whose value is a @code{home-kodi-configuration} object."
  65544. msgstr ""
  65545. #. type: deftp
  65546. #: guix-git/doc/guix.texi:43721
  65547. #, fuzzy, no-wrap
  65548. msgid "{Data Type} home-kodi-configuration"
  65549. msgstr "{数据类型} build-machine"
  65550. #. type: deftp
  65551. #: guix-git/doc/guix.texi:43723
  65552. #, fuzzy
  65553. msgid "Available @code{home-kodi-configuration} fields are:"
  65554. msgstr "{数据类型} build-machine"
  65555. #. type: item
  65556. #: guix-git/doc/guix.texi:43725
  65557. #, fuzzy, no-wrap
  65558. msgid "@code{kodi} (default: @code{kodi}) (type: file-like)"
  65559. msgstr "@code{xfce}(默认值:@code{xfce})"
  65560. #. type: table
  65561. #: guix-git/doc/guix.texi:43727
  65562. #, fuzzy
  65563. msgid "The Kodi package to use."
  65564. msgstr "软件包数据类型。"
  65565. #. type: table
  65566. #: guix-git/doc/guix.texi:43731
  65567. msgid "Extra options will be passed to @command{kodi}, please run @command{man kodi} for more information."
  65568. msgstr ""
  65569. #. type: section
  65570. #: guix-git/doc/guix.texi:43736
  65571. #, fuzzy, no-wrap
  65572. #| msgid "Invoking @command{guix build}"
  65573. msgid "Invoking @command{guix home}"
  65574. msgstr "调用@command{guix build}"
  65575. #. type: command{#1}
  65576. #: guix-git/doc/guix.texi:43738
  65577. #, fuzzy, no-wrap
  65578. #| msgid "guix pull\n"
  65579. msgid "guix home"
  65580. msgstr "guix pull\n"
  65581. #. type: Plain text
  65582. #: guix-git/doc/guix.texi:43743
  65583. 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:"
  65584. msgstr ""
  65585. #. type: example
  65586. #: guix-git/doc/guix.texi:43746
  65587. #, no-wrap
  65588. msgid "guix home @var{options}@dots{} @var{action} @var{file}\n"
  65589. msgstr ""
  65590. #. type: Plain text
  65591. #: guix-git/doc/guix.texi:43753
  65592. 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:"
  65593. msgstr ""
  65594. #. type: table
  65595. #: guix-git/doc/guix.texi:43758
  65596. msgid "Display available home service type definitions that match the given regular expressions, sorted by relevance:"
  65597. msgstr ""
  65598. #. type: cindex
  65599. #: guix-git/doc/guix.texi:43760
  65600. #, no-wrap
  65601. msgid "shell-profile"
  65602. msgstr ""
  65603. #. type: example
  65604. #: guix-git/doc/guix.texi:43771
  65605. #, no-wrap
  65606. msgid ""
  65607. "$ guix home search shell\n"
  65608. "name: home-shell-profile\n"
  65609. "location: gnu/home/services/shells.scm:100:2\n"
  65610. "extends: home-files\n"
  65611. "description: Create `~/.profile', which is used for environment initialization of POSIX compliant login shells.\n"
  65612. "+ This service type can be extended with a list of file-like objects.\n"
  65613. "relevance: 6\n"
  65614. "\n"
  65615. msgstr ""
  65616. #. type: example
  65617. #: guix-git/doc/guix.texi:43777
  65618. #, no-wrap
  65619. msgid ""
  65620. "name: home-fish\n"
  65621. "location: gnu/home/services/shells.scm:640:2\n"
  65622. "extends: home-files home-profile\n"
  65623. "description: Install and configure Fish, the friendly interactive shell.\n"
  65624. "relevance: 3\n"
  65625. "\n"
  65626. msgstr ""
  65627. #. type: example
  65628. #: guix-git/doc/guix.texi:43783
  65629. #, no-wrap
  65630. msgid ""
  65631. "name: home-zsh\n"
  65632. "location: gnu/home/services/shells.scm:290:2\n"
  65633. "extends: home-files home-profile\n"
  65634. "description: Install and configure Zsh.\n"
  65635. "relevance: 1\n"
  65636. "\n"
  65637. msgstr ""
  65638. #. type: example
  65639. #: guix-git/doc/guix.texi:43789
  65640. #, no-wrap
  65641. msgid ""
  65642. "name: home-bash\n"
  65643. "location: gnu/home/services/shells.scm:508:2\n"
  65644. "extends: home-files home-profile\n"
  65645. "description: Install and configure GNU Bash.\n"
  65646. "relevance: 1\n"
  65647. "\n"
  65648. msgstr ""
  65649. #. type: table
  65650. #: guix-git/doc/guix.texi:43796
  65651. 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})."
  65652. msgstr ""
  65653. #. type: table
  65654. #: guix-git/doc/guix.texi:43801
  65655. msgid "Spawn a shell in an isolated environment---a @dfn{container}---containing your home as specified by @var{file}."
  65656. msgstr ""
  65657. #. type: table
  65658. #: guix-git/doc/guix.texi:43804
  65659. msgid "For example, this is how you would start an interactive shell in a container with your home:"
  65660. msgstr ""
  65661. #. type: table
  65662. #: guix-git/doc/guix.texi:43812
  65663. 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."
  65664. msgstr ""
  65665. #. type: table
  65666. #: guix-git/doc/guix.texi:43814
  65667. msgid "As with @command{guix shell}, several options control that container:"
  65668. msgstr ""
  65669. #. type: table
  65670. #: guix-git/doc/guix.texi:43819
  65671. msgid "Enable networking within the container (it is disabled by default)."
  65672. msgstr ""
  65673. #. type: table
  65674. #: guix-git/doc/guix.texi:43826
  65675. 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}})."
  65676. msgstr ""
  65677. #. type: table
  65678. #: guix-git/doc/guix.texi:43832
  65679. 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:"
  65680. msgstr ""
  65681. #. type: example
  65682. #: guix-git/doc/guix.texi:43835
  65683. #, no-wrap
  65684. msgid "guix home container config.scm -- herd status\n"
  65685. msgstr ""
  65686. #. type: table
  65687. #: guix-git/doc/guix.texi:43839
  65688. msgid "The command to run in the container must come after @code{--} (double hyphen)."
  65689. msgstr ""
  65690. #. type: table
  65691. #: guix-git/doc/guix.texi:43844
  65692. msgid "Edit or view the definition of the given Home service types."
  65693. msgstr ""
  65694. #. type: table
  65695. #: guix-git/doc/guix.texi:43848
  65696. msgid "For example, the command below opens your editor, as specified by the @env{EDITOR} environment variable, on the definition of the @code{home-mcron} service type:"
  65697. msgstr ""
  65698. #. type: example
  65699. #: guix-git/doc/guix.texi:43851
  65700. #, fuzzy, no-wrap
  65701. #| msgid "guix describe\n"
  65702. msgid "guix home edit home-mcron\n"
  65703. msgstr "guix describe\n"
  65704. #. type: table
  65705. #: guix-git/doc/guix.texi:43861
  65706. 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."
  65707. msgstr ""
  65708. #. type: quotation
  65709. #: guix-git/doc/guix.texi:43866
  65710. 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})."
  65711. msgstr ""
  65712. #. type: table
  65713. #: guix-git/doc/guix.texi:43873
  65714. 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}})."
  65715. msgstr ""
  65716. #. type: table
  65717. #: guix-git/doc/guix.texi:43879
  65718. 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})."
  65719. msgstr ""
  65720. #. type: cindex
  65721. #: guix-git/doc/guix.texi:43880
  65722. #, fuzzy, no-wrap
  65723. msgid "provenance tracking, of the home environment"
  65724. msgstr "配置操作系统。"
  65725. #. type: table
  65726. #: guix-git/doc/guix.texi:43885
  65727. 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:"
  65728. msgstr ""
  65729. #. type: example
  65730. #: guix-git/doc/guix.texi:43888
  65731. #, fuzzy, no-wrap
  65732. #| msgid "guix describe\n"
  65733. msgid "guix home describe\n"
  65734. msgstr "guix describe\n"
  65735. #. type: table
  65736. #: guix-git/doc/guix.texi:43894
  65737. 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:"
  65738. msgstr ""
  65739. #. type: example
  65740. #: guix-git/doc/guix.texi:43900
  65741. #, no-wrap
  65742. msgid ""
  65743. "guix time-machine \\\n"
  65744. " -C /var/guix/profiles/per-user/@var{USER}/guix-home-@var{n}-link/channels.scm -- \\\n"
  65745. " home reconfigure \\\n"
  65746. " /var/guix/profiles/per-user/@var{USER}/guix-home-@var{n}-link/configuration.scm\n"
  65747. "\n"
  65748. msgstr ""
  65749. #. type: table
  65750. #: guix-git/doc/guix.texi:43907
  65751. 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}."
  65752. msgstr ""
  65753. #. type: cindex
  65754. #: guix-git/doc/guix.texi:43913
  65755. #, fuzzy, no-wrap
  65756. #| msgid "Documentation"
  65757. msgid "home generations"
  65758. msgstr "文档"
  65759. #. type: table
  65760. #: guix-git/doc/guix.texi:43916
  65761. msgid "Switch to an existing home generation. This action atomically switches the home profile to the specified home generation."
  65762. msgstr ""
  65763. #. type: table
  65764. #: guix-git/doc/guix.texi:43920
  65765. msgid "The target generation can be specified explicitly by its generation number. For example, the following invocation would switch to home generation 7:"
  65766. msgstr ""
  65767. #. type: example
  65768. #: guix-git/doc/guix.texi:43923
  65769. #, fuzzy, no-wrap
  65770. msgid "guix home switch-generation 7\n"
  65771. msgstr "guix package --list-available\n"
  65772. #. type: example
  65773. #: guix-git/doc/guix.texi:43934
  65774. #, fuzzy, no-wrap
  65775. msgid "guix home switch-generation -- -1\n"
  65776. msgstr "guix package --list-available\n"
  65777. #. type: table
  65778. #: guix-git/doc/guix.texi:43943
  65779. 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}."
  65780. msgstr ""
  65781. #. type: cindex
  65782. #: guix-git/doc/guix.texi:43945
  65783. #, no-wrap
  65784. msgid "deleting home generations"
  65785. msgstr ""
  65786. #. type: table
  65787. #: guix-git/doc/guix.texi:43950
  65788. msgid "Delete home generations, making them candidates for garbage collection (@pxref{Invoking guix gc}, for information on how to run the ``garbage collector'')."
  65789. msgstr ""
  65790. #. type: table
  65791. #: guix-git/doc/guix.texi:43954
  65792. 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:"
  65793. msgstr ""
  65794. #. type: example
  65795. #: guix-git/doc/guix.texi:43957
  65796. #, fuzzy, no-wrap
  65797. msgid "guix home delete-generations\n"
  65798. msgstr "guix package --list-available\n"
  65799. #. type: table
  65800. #: guix-git/doc/guix.texi:43961
  65801. 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:"
  65802. msgstr ""
  65803. #. type: example
  65804. #: guix-git/doc/guix.texi:43964
  65805. #, fuzzy, no-wrap
  65806. msgid "guix home delete-generations 2m\n"
  65807. msgstr "guix package --list-available\n"
  65808. #. type: table
  65809. #: guix-git/doc/guix.texi:43970
  65810. msgid "Build the derivation of the home environment, which includes all the configuration files and programs needed. This action does not actually install anything."
  65811. msgstr ""
  65812. #. type: table
  65813. #: guix-git/doc/guix.texi:43974
  65814. msgid "Describe the current home generation: its file name, as well as provenance information when available."
  65815. msgstr ""
  65816. #. type: table
  65817. #: guix-git/doc/guix.texi:43981
  65818. msgid "To show installed packages in the current home generation's profile, the @code{--list-installed} flag is provided, with the same syntax that is used in @command{guix package --list-installed} (@pxref{Invoking guix package}). For instance, the following command shows a table of all the packages with ``emacs'' in their name that are installed in the current home generation's profile:"
  65819. msgstr ""
  65820. #. type: example
  65821. #: guix-git/doc/guix.texi:43984
  65822. #, fuzzy, no-wrap
  65823. msgid "guix home describe --list-installed=emacs\n"
  65824. msgstr "guix package --list-available\n"
  65825. #. type: table
  65826. #: guix-git/doc/guix.texi:43991
  65827. 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})."
  65828. msgstr ""
  65829. #. type: example
  65830. #: guix-git/doc/guix.texi:43999
  65831. #, fuzzy, no-wrap
  65832. msgid "guix home list-generations 10d\n"
  65833. msgstr "guix package --list-available\n"
  65834. #. type: table
  65835. #: guix-git/doc/guix.texi:44005
  65836. msgid "The @code{--list-installed} flag may also be specified, with the same syntax that is used in @command{guix home describe}. This may be helpful if trying to determine when a package was added to the home profile."
  65837. msgstr ""
  65838. #. type: item
  65839. #: guix-git/doc/guix.texi:44006
  65840. #, no-wrap
  65841. msgid "import"
  65842. msgstr ""
  65843. #. type: table
  65844. #: guix-git/doc/guix.texi:44013
  65845. 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})."
  65846. msgstr ""
  65847. #. type: example
  65848. #: guix-git/doc/guix.texi:44017
  65849. #, no-wrap
  65850. msgid ""
  65851. "$ guix home import ~/guix-config\n"
  65852. "guix home: '/home/alice/guix-config' populated with all the Home configuration files\n"
  65853. msgstr ""
  65854. #. type: Plain text
  65855. #: guix-git/doc/guix.texi:44023
  65856. 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:"
  65857. msgstr ""
  65858. #. type: cindex
  65859. #: guix-git/doc/guix.texi:44025
  65860. #, fuzzy, no-wrap
  65861. msgid "service extension graph, of a home environment"
  65862. msgstr "配置操作系统。"
  65863. #. type: table
  65864. #: guix-git/doc/guix.texi:44033
  65865. 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}}):"
  65866. msgstr ""
  65867. #. type: example
  65868. #: guix-git/doc/guix.texi:44038
  65869. #, no-wrap
  65870. msgid "guix home extension-graph @var{file} | xdot -\n"
  65871. msgstr ""
  65872. #. type: cindex
  65873. #: guix-git/doc/guix.texi:44042
  65874. #, fuzzy, no-wrap
  65875. msgid "Shepherd dependency graph, for a home environment"
  65876. msgstr "配置操作系统。"
  65877. #. type: table
  65878. #: guix-git/doc/guix.texi:44047
  65879. 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."
  65880. msgstr ""
  65881. #. type: table
  65882. #: guix-git/doc/guix.texi:44063
  65883. msgid "Consider the home-environment @var{expr} evaluates to. This is an alternative to specifying a file which evaluates to a home environment."
  65884. msgstr ""
  65885. #. type: table
  65886. #: guix-git/doc/guix.texi:44066
  65887. msgid "Instruct @command{guix home reconfigure} to allow system downgrades."
  65888. msgstr ""
  65889. #. type: table
  65890. #: guix-git/doc/guix.texi:44073
  65891. 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!"
  65892. msgstr ""
  65893. #. type: cindex
  65894. #: guix-git/doc/guix.texi:44079
  65895. #, no-wrap
  65896. msgid "documentation, searching for"
  65897. msgstr ""
  65898. #. type: cindex
  65899. #: guix-git/doc/guix.texi:44080
  65900. #, no-wrap
  65901. msgid "searching for documentation"
  65902. msgstr ""
  65903. #. type: cindex
  65904. #: guix-git/doc/guix.texi:44081
  65905. #, no-wrap
  65906. msgid "Info, documentation format"
  65907. msgstr ""
  65908. #. type: cindex
  65909. #: guix-git/doc/guix.texi:44082
  65910. #, no-wrap
  65911. msgid "man pages"
  65912. msgstr ""
  65913. #. type: cindex
  65914. #: guix-git/doc/guix.texi:44083
  65915. #, no-wrap
  65916. msgid "manual pages"
  65917. msgstr ""
  65918. #. type: Plain text
  65919. #: guix-git/doc/guix.texi:44090
  65920. 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}."
  65921. msgstr ""
  65922. #. type: Plain text
  65923. #: guix-git/doc/guix.texi:44094
  65924. 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:"
  65925. msgstr ""
  65926. #. type: example
  65927. #: guix-git/doc/guix.texi:44102
  65928. #, no-wrap
  65929. msgid ""
  65930. "$ info -k TLS\n"
  65931. "\"(emacs)Network Security\" -- STARTTLS\n"
  65932. "\"(emacs)Network Security\" -- TLS\n"
  65933. "\"(gnutls)Core TLS API\" -- gnutls_certificate_set_verify_flags\n"
  65934. "\"(gnutls)Core TLS API\" -- gnutls_certificate_set_verify_function\n"
  65935. "@dots{}\n"
  65936. msgstr ""
  65937. #. type: Plain text
  65938. #: guix-git/doc/guix.texi:44108
  65939. 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.}:"
  65940. msgstr ""
  65941. #. type: example
  65942. #: guix-git/doc/guix.texi:44114
  65943. #, no-wrap
  65944. msgid ""
  65945. "$ man -k TLS\n"
  65946. "SSL (7) - OpenSSL SSL/TLS library\n"
  65947. "certtool (1) - GnuTLS certificate tool\n"
  65948. "@dots {}\n"
  65949. msgstr ""
  65950. #. type: Plain text
  65951. #: guix-git/doc/guix.texi:44120
  65952. 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."
  65953. msgstr ""
  65954. #. type: Plain text
  65955. #: guix-git/doc/guix.texi:44123
  65956. msgid "Once you have these results, you can view the relevant documentation by running, say:"
  65957. msgstr ""
  65958. #. type: example
  65959. #: guix-git/doc/guix.texi:44126
  65960. #, no-wrap
  65961. msgid "$ info \"(gnutls)Core TLS API\"\n"
  65962. msgstr ""
  65963. #. type: Plain text
  65964. #: guix-git/doc/guix.texi:44130
  65965. msgid "or:"
  65966. msgstr ""
  65967. #. type: example
  65968. #: guix-git/doc/guix.texi:44133
  65969. #, no-wrap
  65970. msgid "$ man certtool\n"
  65971. msgstr ""
  65972. #. type: Plain text
  65973. #: guix-git/doc/guix.texi:44141
  65974. 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."
  65975. msgstr ""
  65976. #. type: Plain text
  65977. #: guix-git/doc/guix.texi:44150
  65978. msgid "The packages and systems built by Guix are intended, like most computer programs, to run on a CPU with a specific instruction set, and under a specific operating system. Those programs are often also targeting a specific kernel and system library. Those constraints are captured by Guix in @code{platform} records."
  65979. msgstr ""
  65980. #. type: section
  65981. #: guix-git/doc/guix.texi:44157
  65982. #, no-wrap
  65983. msgid "@code{platform} Reference"
  65984. msgstr ""
  65985. #. type: Plain text
  65986. #: guix-git/doc/guix.texi:44163
  65987. msgid "The @code{platform} data type describes a @dfn{platform}: an @acronym{ISA, instruction set architecture}, combined with an operating system and possibly additional system-wide settings such as the @acronym{ABI, application binary interface}."
  65988. msgstr ""
  65989. #. type: deftp
  65990. #: guix-git/doc/guix.texi:44164
  65991. #, fuzzy, no-wrap
  65992. msgid "{Data Type} platform"
  65993. msgstr "{数据类型} build-machine"
  65994. #. type: deftp
  65995. #: guix-git/doc/guix.texi:44166
  65996. #, fuzzy
  65997. msgid "This is the data type representing a platform."
  65998. msgstr "管理操作系统配置。"
  65999. #. type: table
  66000. #: guix-git/doc/guix.texi:44172
  66001. msgid "This field specifies the platform's GNU triplet as a string (@pxref{Specifying Target Triplets, GNU configuration triplets,, autoconf, Autoconf})."
  66002. msgstr ""
  66003. #. type: table
  66004. #: guix-git/doc/guix.texi:44176
  66005. msgid "This string is the system type as it is known to Guix and passed, for instance, to the @option{--system} option of most commands."
  66006. msgstr ""
  66007. #. type: table
  66008. #: guix-git/doc/guix.texi:44180
  66009. msgid "It usually has the form @code{\"@var{cpu}-@var{kernel}\"}, where @var{cpu} is the target CPU and @var{kernel} the target operating system kernel."
  66010. msgstr ""
  66011. #. type: table
  66012. #: guix-git/doc/guix.texi:44184
  66013. msgid "It can be for instance @code{\"aarch64-linux\"} or @code{\"armhf-linux\"}. You will encounter system types when you perform native builds (@pxref{Native Builds})."
  66014. msgstr ""
  66015. #. type: item
  66016. #: guix-git/doc/guix.texi:44185
  66017. #, fuzzy, no-wrap
  66018. msgid "@code{linux-architecture} (default: @code{#false})"
  66019. msgstr "@code{challenge}(默认值:@code{#f})"
  66020. #. type: table
  66021. #: guix-git/doc/guix.texi:44189
  66022. msgid "This optional string field is only relevant if the kernel is Linux. In that case, it corresponds to the ARCH variable used when building Linux, @code{\"mips\"} for instance."
  66023. msgstr ""
  66024. #. type: code{#1}
  66025. #: guix-git/doc/guix.texi:44190
  66026. #, no-wrap
  66027. msgid "glibc-dynamic-linker"
  66028. msgstr ""
  66029. #. type: table
  66030. #: guix-git/doc/guix.texi:44194
  66031. msgid "This field is the name of the GNU C Library dynamic linker for the corresponding system, as a string. It can be @code{\"/lib/ld-linux-armhf.so.3\"}."
  66032. msgstr ""
  66033. #. type: Plain text
  66034. #: guix-git/doc/guix.texi:44203
  66035. msgid "The @code{(guix platforms @dots{})} modules export the following variables, each of which is bound to a @code{platform} record."
  66036. msgstr ""
  66037. #. type: defvar
  66038. #: guix-git/doc/guix.texi:44204
  66039. #, fuzzy, no-wrap
  66040. #| msgid "armhf-linux"
  66041. msgid "armv7-linux"
  66042. msgstr "armhf-linux"
  66043. #. type: defvar
  66044. #: guix-git/doc/guix.texi:44206
  66045. msgid "Platform targeting ARM v7 CPU running GNU/Linux."
  66046. msgstr ""
  66047. #. type: defvar
  66048. #: guix-git/doc/guix.texi:44210
  66049. msgid "Platform targeting ARM v8 CPU running GNU/Linux."
  66050. msgstr ""
  66051. #. type: defvar
  66052. #: guix-git/doc/guix.texi:44212
  66053. #, fuzzy, no-wrap
  66054. #| msgid "aarch64-linux"
  66055. msgid "mips64-linux"
  66056. msgstr "aarch64-linux"
  66057. #. type: defvar
  66058. #: guix-git/doc/guix.texi:44214
  66059. msgid "Platform targeting MIPS little-endian 64-bit CPU running GNU/Linux."
  66060. msgstr ""
  66061. #. type: defvar
  66062. #: guix-git/doc/guix.texi:44216
  66063. #, fuzzy, no-wrap
  66064. msgid "powerpc-linux"
  66065. msgstr "aarch64-linux"
  66066. #. type: defvar
  66067. #: guix-git/doc/guix.texi:44218
  66068. msgid "Platform targeting PowerPC big-endian 32-bit CPU running GNU/Linux."
  66069. msgstr ""
  66070. #. type: defvar
  66071. #: guix-git/doc/guix.texi:44222
  66072. msgid "Platform targeting PowerPC little-endian 64-bit CPU running GNU/Linux."
  66073. msgstr ""
  66074. #. type: defvar
  66075. #: guix-git/doc/guix.texi:44226
  66076. msgid "Platform targeting RISC-V 64-bit CPU running GNU/Linux."
  66077. msgstr ""
  66078. #. type: defvar
  66079. #: guix-git/doc/guix.texi:44230
  66080. msgid "Platform targeting x86 CPU running GNU/Linux."
  66081. msgstr ""
  66082. #. type: defvar
  66083. #: guix-git/doc/guix.texi:44234
  66084. msgid "Platform targeting x86 64-bit CPU running GNU/Linux."
  66085. msgstr ""
  66086. #. type: defvar
  66087. #: guix-git/doc/guix.texi:44236
  66088. #, fuzzy, no-wrap
  66089. #| msgid "i686-linux"
  66090. msgid "i686-mingw"
  66091. msgstr "i686-linux"
  66092. #. type: defvar
  66093. #: guix-git/doc/guix.texi:44239
  66094. msgid "Platform targeting x86 CPU running Windows, with run-time support from MinGW."
  66095. msgstr ""
  66096. #. type: defvar
  66097. #: guix-git/doc/guix.texi:44241
  66098. #, fuzzy, no-wrap
  66099. #| msgid "x86_64-linux"
  66100. msgid "x86_64-mingw"
  66101. msgstr "x86_64-linux"
  66102. #. type: defvar
  66103. #: guix-git/doc/guix.texi:44244
  66104. msgid "Platform targeting x86 64-bit CPU running Windows, with run-time support from MinGW."
  66105. msgstr ""
  66106. #. type: defvar
  66107. #: guix-git/doc/guix.texi:44249
  66108. msgid "Platform targeting x86 CPU running GNU/Hurd (also referred to as ``GNU'')."
  66109. msgstr ""
  66110. #. type: cindex
  66111. #: guix-git/doc/guix.texi:44254
  66112. #, fuzzy, no-wrap
  66113. msgid "system images"
  66114. msgstr "系统"
  66115. #. type: Plain text
  66116. #: guix-git/doc/guix.texi:44266
  66117. msgid "When it comes to installing Guix System for the first time on a new machine, you can basically proceed in three different ways. The first one is to use an existing operating system on the machine to run the @command{guix system init} command (@pxref{Invoking guix system}). The second one, is to produce an installation image (@pxref{Building the Installation Image}). This is a bootable system which role is to eventually run @command{guix system init}. Finally, the third option would be to produce an image that is a direct instantiation of the system you wish to run. That image can then be copied on a bootable device such as an USB drive or a memory card. The target machine would then directly boot from it, without any kind of installation procedure."
  66118. msgstr ""
  66119. #. type: Plain text
  66120. #: guix-git/doc/guix.texi:44275
  66121. msgid "The @command{guix system image} command is able to turn an operating system definition into a bootable image. This command supports different image types, such as @code{efi-raw}, @code{iso9660} and @code{docker}. Any modern @code{x86_64} machine will probably be able to boot from an @code{iso9660} image. However, there are a few machines out there that require specific image types. Those machines, in general using @code{ARM} processors, may expect specific partitions at specific offsets."
  66122. msgstr ""
  66123. #. type: Plain text
  66124. #: guix-git/doc/guix.texi:44278
  66125. msgid "This chapter explains how to define customized system images and how to turn them into actual bootable images."
  66126. msgstr ""
  66127. #. type: Plain text
  66128. #: guix-git/doc/guix.texi:44291
  66129. msgid "The @code{image} record, described right after, allows you to define a customized bootable system image."
  66130. msgstr ""
  66131. #. type: deftp
  66132. #: guix-git/doc/guix.texi:44292
  66133. #, fuzzy, no-wrap
  66134. msgid "{Data Type} image"
  66135. msgstr "{数据类型} build-machine"
  66136. #. type: deftp
  66137. #: guix-git/doc/guix.texi:44294
  66138. #, fuzzy
  66139. msgid "This is the data type representing a system image."
  66140. msgstr "管理操作系统配置。"
  66141. #. type: item
  66142. #: guix-git/doc/guix.texi:44296
  66143. #, fuzzy, no-wrap
  66144. msgid "@code{name} (default: @code{#false})"
  66145. msgstr "@code{challenge}(默认值:@code{#f})"
  66146. #. type: table
  66147. #: guix-git/doc/guix.texi:44299
  66148. msgid "The image name as a symbol, @code{'my-iso9660} for instance. The name is optional and it defaults to @code{#false}."
  66149. msgstr ""
  66150. #. type: table
  66151. #: guix-git/doc/guix.texi:44302
  66152. msgid "The image format as a symbol. The following formats are supported:"
  66153. msgstr ""
  66154. #. type: item
  66155. #: guix-git/doc/guix.texi:44304
  66156. #, no-wrap
  66157. msgid "@code{disk-image}, a raw disk image composed of one or multiple"
  66158. msgstr ""
  66159. #. type: itemize
  66160. #: guix-git/doc/guix.texi:44306
  66161. msgid "partitions."
  66162. msgstr ""
  66163. #. type: item
  66164. #: guix-git/doc/guix.texi:44307
  66165. #, no-wrap
  66166. msgid "@code{compressed-qcow2}, a compressed qcow2 image composed of"
  66167. msgstr ""
  66168. #. type: itemize
  66169. #: guix-git/doc/guix.texi:44309
  66170. msgid "one or multiple partitions."
  66171. msgstr ""
  66172. #. type: item
  66173. #: guix-git/doc/guix.texi:44310
  66174. #, fuzzy, no-wrap
  66175. msgid "@code{docker}, a Docker image."
  66176. msgstr "@code{xfce}(默认值:@code{xfce})"
  66177. #. type: item
  66178. #: guix-git/doc/guix.texi:44312
  66179. #, no-wrap
  66180. msgid "@code{iso9660}, an ISO-9660 image."
  66181. msgstr ""
  66182. #. type: item
  66183. #: guix-git/doc/guix.texi:44314
  66184. #, no-wrap
  66185. msgid "@code{tarball}, a tar.gz image archive."
  66186. msgstr ""
  66187. #. type: item
  66188. #: guix-git/doc/guix.texi:44316
  66189. #, no-wrap
  66190. msgid "@code{wsl2}, a WSL2 image."
  66191. msgstr ""
  66192. #. type: item
  66193. #: guix-git/doc/guix.texi:44320
  66194. #, fuzzy, no-wrap
  66195. msgid "@code{platform} (default: @code{#false})"
  66196. msgstr "@code{port}(默认值:@code{22})"
  66197. #. type: table
  66198. #: guix-git/doc/guix.texi:44324
  66199. msgid "The @code{platform} record the image is targeting (@pxref{Platforms}), @code{aarch64-linux} for instance. By default, this field is set to @code{#false} and the image will target the host platform."
  66200. msgstr ""
  66201. #. type: item
  66202. #: guix-git/doc/guix.texi:44325 guix-git/doc/guix.texi:44387
  66203. #, fuzzy, no-wrap
  66204. msgid "@code{size} (default: @code{'guess})"
  66205. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  66206. #. type: table
  66207. #: guix-git/doc/guix.texi:44329
  66208. msgid "The image size in bytes or @code{'guess}. The @code{'guess} symbol, which is the default, means that the image size will be inferred based on the image content."
  66209. msgstr ""
  66210. #. type: table
  66211. #: guix-git/doc/guix.texi:44332
  66212. msgid "The image's @code{operating-system} record that is instanciated."
  66213. msgstr ""
  66214. #. type: item
  66215. #: guix-git/doc/guix.texi:44333
  66216. #, fuzzy, no-wrap
  66217. msgid "@code{partition-table-type} (default: @code{'mbr})"
  66218. msgstr "@code{compression-level}(默认值:@code{3})"
  66219. #. type: table
  66220. #: guix-git/doc/guix.texi:44336
  66221. msgid "The image partition table type as a symbol. Possible values are @code{'mbr} and @code{'gpt}. It default to @code{'mbr}."
  66222. msgstr ""
  66223. #. type: item
  66224. #: guix-git/doc/guix.texi:44337
  66225. #, fuzzy, no-wrap
  66226. msgid "@code{partitions} (default: @code{'()})"
  66227. msgstr "@code{features} (@code{'()})"
  66228. #. type: table
  66229. #: guix-git/doc/guix.texi:44340
  66230. msgid "The image partitions as a list of @code{partition} records (@pxref{partition Reference})."
  66231. msgstr ""
  66232. #. type: item
  66233. #: guix-git/doc/guix.texi:44341
  66234. #, fuzzy, no-wrap
  66235. #| msgid "@code{compression-level} (default: @code{3})"
  66236. msgid "@code{compression?} (default: @code{#true})"
  66237. msgstr "@code{compression-level}(默认值:@code{3})"
  66238. #. type: table
  66239. #: guix-git/doc/guix.texi:44345
  66240. msgid "Whether the image content should be compressed, as a boolean. It defaults to @code{#true} and only applies to @code{'iso9660} image formats."
  66241. msgstr ""
  66242. #. type: item
  66243. #: guix-git/doc/guix.texi:44346
  66244. #, fuzzy, no-wrap
  66245. msgid "@code{volatile-root?} (default: @code{#true})"
  66246. msgstr "@code{mate}(默认值:@code{mate})"
  66247. #. type: table
  66248. #: guix-git/doc/guix.texi:44348
  66249. msgid "Whether the image root partition should be made volatile, as a boolean."
  66250. msgstr ""
  66251. #. type: table
  66252. #: guix-git/doc/guix.texi:44353
  66253. msgid "This is achieved by using a RAM backed file system (overlayfs) that is mounted on top of the root partition by the initrd. It defaults to @code{#true}. When set to @code{#false}, the image root partition is mounted as read-write partition by the initrd."
  66254. msgstr ""
  66255. #. type: item
  66256. #: guix-git/doc/guix.texi:44354
  66257. #, fuzzy, no-wrap
  66258. msgid "@code{shared-store?} (default: @code{#false})"
  66259. msgstr "@code{speed}(默认值:@code{1.0})"
  66260. #. type: table
  66261. #: guix-git/doc/guix.texi:44361
  66262. msgid "Whether the image's store should be shared with the host system, as a boolean. This can be useful when creating images dedicated to virtual machines. When set to @code{#false}, which is the default, the image's @code{operating-system} closure is copied to the image. Otherwise, when set to @code{#true}, it is assumed that the host store will be made available at boot, using a @code{9p} mount for instance."
  66263. msgstr ""
  66264. #. type: item
  66265. #: guix-git/doc/guix.texi:44362
  66266. #, fuzzy, no-wrap
  66267. msgid "@code{shared-network?} (default: @code{#false})"
  66268. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  66269. #. type: table
  66270. #: guix-git/doc/guix.texi:44366
  66271. msgid "Whether to use the host network interfaces within the image, as a boolean. This is only used for the @code{'docker} image format. It defaults to @code{#false}."
  66272. msgstr ""
  66273. #. type: item
  66274. #: guix-git/doc/guix.texi:44367
  66275. #, fuzzy, no-wrap
  66276. msgid "@code{substitutable?} (default: @code{#true})"
  66277. msgstr "@code{mate}(默认值:@code{mate})"
  66278. #. type: table
  66279. #: guix-git/doc/guix.texi:44370
  66280. msgid "Whether the image derivation should be substitutable, as a boolean. It defaults to @code{true}."
  66281. msgstr ""
  66282. #. type: subsection
  66283. #: guix-git/doc/guix.texi:44379
  66284. #, fuzzy, no-wrap
  66285. #| msgid "origin Reference"
  66286. msgid "@code{partition} Reference"
  66287. msgstr "origin参考手册"
  66288. #. type: Plain text
  66289. #: guix-git/doc/guix.texi:44382
  66290. msgid "In @code{image} record may contain some partitions."
  66291. msgstr ""
  66292. #. type: deftp
  66293. #: guix-git/doc/guix.texi:44383
  66294. #, fuzzy, no-wrap
  66295. msgid "{Data Type} partition"
  66296. msgstr "{数据类型} build-machine"
  66297. #. type: deftp
  66298. #: guix-git/doc/guix.texi:44385
  66299. #, fuzzy
  66300. msgid "This is the data type representing an image partition."
  66301. msgstr "管理操作系统配置。"
  66302. #. type: table
  66303. #: guix-git/doc/guix.texi:44391
  66304. msgid "The partition size in bytes or @code{'guess}. The @code{'guess} symbol, which is the default, means that the partition size will be inferred based on the partition content."
  66305. msgstr ""
  66306. #. type: item
  66307. #: guix-git/doc/guix.texi:44392
  66308. #, fuzzy, no-wrap
  66309. msgid "@code{offset} (default: @code{0})"
  66310. msgstr "@code{port}(默认值:@code{22})"
  66311. #. type: table
  66312. #: guix-git/doc/guix.texi:44396
  66313. msgid "The partition's start offset in bytes, relative to the image start or the previous partition end. It defaults to @code{0} which means that there is no offset applied."
  66314. msgstr ""
  66315. #. type: item
  66316. #: guix-git/doc/guix.texi:44397
  66317. #, fuzzy, no-wrap
  66318. msgid "@code{file-system} (default: @code{\"ext4\"})"
  66319. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  66320. #. type: table
  66321. #: guix-git/doc/guix.texi:44401
  66322. msgid "The partition file system as a string, defaulting to @code{\"ext4\"}. The supported values are @code{\"vfat\"}, @code{\"fat16\"}, @code{\"fat32\"} and @code{\"ext4\"}."
  66323. msgstr ""
  66324. #. type: item
  66325. #: guix-git/doc/guix.texi:44402
  66326. #, fuzzy, no-wrap
  66327. msgid "@code{file-system-options} (default: @code{'()})"
  66328. msgstr "@code{includes}(默认值:@code{'()})"
  66329. #. type: table
  66330. #: guix-git/doc/guix.texi:44406
  66331. msgid "The partition file system creation options that should be passed to the partition creation tool, as a list of strings. This is only supported when creating @code{\"ext4\"} partitions."
  66332. msgstr ""
  66333. #. type: table
  66334. #: guix-git/doc/guix.texi:44409
  66335. msgid "See the @code{\"extended-options\"} man page section of the @code{\"mke2fs\"} tool for a more complete reference."
  66336. msgstr ""
  66337. #. type: table
  66338. #: guix-git/doc/guix.texi:44413
  66339. msgid "The partition label as a mandatory string, @code{\"my-root\"} for instance."
  66340. msgstr ""
  66341. #. type: item
  66342. #: guix-git/doc/guix.texi:44414
  66343. #, fuzzy, no-wrap
  66344. #| msgid "@code{port} (default: @code{22})"
  66345. msgid "@code{uuid} (default: @code{#false})"
  66346. msgstr "@code{port}(默认值:@code{22})"
  66347. #. type: table
  66348. #: guix-git/doc/guix.texi:44418
  66349. msgid "The partition UUID as an @code{uuid} record (@pxref{File Systems}). By default it is @code{#false}, which means that the partition creation tool will attribute a random UUID to the partition."
  66350. msgstr ""
  66351. #. type: table
  66352. #: guix-git/doc/guix.texi:44425
  66353. msgid "The partition flags as a list of symbols. Possible values are @code{'boot} and @code{'esp}. The @code{'boot} flags should be set if you want to boot from this partition. Exactly one partition should have this flag set, usually the root one. The @code{'esp} flag identifies a UEFI System Partition."
  66354. msgstr ""
  66355. #. type: item
  66356. #: guix-git/doc/guix.texi:44426
  66357. #, fuzzy, no-wrap
  66358. msgid "@code{initializer} (default: @code{#false})"
  66359. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  66360. #. type: table
  66361. #: guix-git/doc/guix.texi:44431
  66362. msgid "The partition initializer procedure as a gexp. This procedure is called to populate a partition. If no initializer is passed, the @code{initialize-root-partition} procedure from the @code{(gnu build image)} module is used."
  66363. msgstr ""
  66364. #. type: Plain text
  66365. #: guix-git/doc/guix.texi:44440
  66366. msgid "Let's say you would like to create an MBR image with three distinct partitions:"
  66367. msgstr ""
  66368. #. type: item
  66369. #: guix-git/doc/guix.texi:44442
  66370. #, no-wrap
  66371. msgid "The @acronym{ESP, EFI System Partition}, a partition of"
  66372. msgstr ""
  66373. #. type: itemize
  66374. #: guix-git/doc/guix.texi:44444
  66375. msgid "40@tie{}MiB at offset 1024@tie{}KiB with a vfat file system."
  66376. msgstr ""
  66377. #. type: item
  66378. #: guix-git/doc/guix.texi:44445
  66379. #, no-wrap
  66380. msgid "an ext4 partition of 50@tie{}MiB data file, and labeled ``data''."
  66381. msgstr ""
  66382. #. type: item
  66383. #: guix-git/doc/guix.texi:44447
  66384. #, no-wrap
  66385. msgid "an ext4 bootable partition containing the @code{%simple-os}"
  66386. msgstr ""
  66387. #. type: itemize
  66388. #: guix-git/doc/guix.texi:44449
  66389. #, fuzzy
  66390. #| msgid "operating-system Reference"
  66391. msgid "operating-system."
  66392. msgstr "操作系统参考"
  66393. #. type: Plain text
  66394. #: guix-git/doc/guix.texi:44453
  66395. msgid "You would then write the following image definition in a @code{my-image.scm} file for instance."
  66396. msgstr ""
  66397. #. type: lisp
  66398. #: guix-git/doc/guix.texi:44460
  66399. #, no-wrap
  66400. msgid ""
  66401. "(use-modules (gnu)\n"
  66402. " (gnu image)\n"
  66403. " (gnu tests)\n"
  66404. " (gnu system image)\n"
  66405. " (guix gexp))\n"
  66406. "\n"
  66407. msgstr ""
  66408. #. type: lisp
  66409. #: guix-git/doc/guix.texi:44462 guix-git/doc/guix.texi:44564
  66410. #, no-wrap
  66411. msgid ""
  66412. "(define MiB (expt 2 20))\n"
  66413. "\n"
  66414. msgstr ""
  66415. #. type: lisp
  66416. #: guix-git/doc/guix.texi:44491
  66417. #, no-wrap
  66418. msgid ""
  66419. "(image\n"
  66420. " (format 'disk-image)\n"
  66421. " (operating-system %simple-os)\n"
  66422. " (partitions\n"
  66423. " (list\n"
  66424. " (partition\n"
  66425. " (size (* 40 MiB))\n"
  66426. " (offset (* 1024 1024))\n"
  66427. " (label \"GNU-ESP\")\n"
  66428. " (file-system \"vfat\")\n"
  66429. " (flags '(esp))\n"
  66430. " (initializer (gexp initialize-efi-partition)))\n"
  66431. " (partition\n"
  66432. " (size (* 50 MiB))\n"
  66433. " (label \"DATA\")\n"
  66434. " (file-system \"ext4\")\n"
  66435. " (initializer #~(lambda* (root . rest)\n"
  66436. " (mkdir root)\n"
  66437. " (call-with-output-file\n"
  66438. " (string-append root \"/data\")\n"
  66439. " (lambda (port)\n"
  66440. " (format port \"my-data\"))))))\n"
  66441. " (partition\n"
  66442. " (size 'guess)\n"
  66443. " (label root-label)\n"
  66444. " (file-system \"ext4\")\n"
  66445. " (flags '(boot))\n"
  66446. " (initializer (gexp initialize-root-partition))))))\n"
  66447. msgstr ""
  66448. #. type: Plain text
  66449. #: guix-git/doc/guix.texi:44499
  66450. msgid "Note that the first and third partitions use generic initializers procedures, initialize-efi-partition and initialize-root-partition respectively. The initialize-efi-partition installs a GRUB EFI loader that is loading the GRUB bootloader located in the root partition. The initialize-root-partition instantiates a complete system as defined by the @code{%simple-os} operating-system."
  66451. msgstr ""
  66452. #. type: Plain text
  66453. #: guix-git/doc/guix.texi:44501
  66454. msgid "You can now run:"
  66455. msgstr ""
  66456. #. type: example
  66457. #: guix-git/doc/guix.texi:44504
  66458. #, fuzzy, no-wrap
  66459. msgid "guix system image my-image.scm\n"
  66460. msgstr "guix package --list-available\n"
  66461. #. type: Plain text
  66462. #: guix-git/doc/guix.texi:44508
  66463. msgid "to instantiate the @code{image} definition. That produces a disk image which has the expected structure:"
  66464. msgstr ""
  66465. #. type: example
  66466. #: guix-git/doc/guix.texi:44517
  66467. #, no-wrap
  66468. msgid ""
  66469. "$ parted $(guix system image my-image.scm) print\n"
  66470. "@dots{}\n"
  66471. "Model: (file)\n"
  66472. "Disk /gnu/store/yhylv1bp5b2ypb97pd3bbhz6jk5nbhxw-disk-image: 1714MB\n"
  66473. "Sector size (logical/physical): 512B/512B\n"
  66474. "Partition Table: msdos\n"
  66475. "Disk Flags:\n"
  66476. "\n"
  66477. msgstr ""
  66478. #. type: example
  66479. #: guix-git/doc/guix.texi:44522
  66480. #, no-wrap
  66481. msgid ""
  66482. "Number Start End Size Type File system Flags\n"
  66483. " 1 1049kB 43.0MB 41.9MB primary fat16 esp\n"
  66484. " 2 43.0MB 95.4MB 52.4MB primary ext4\n"
  66485. " 3 95.4MB 1714MB 1619MB primary ext4 boot\n"
  66486. msgstr ""
  66487. #. type: Plain text
  66488. #: guix-git/doc/guix.texi:44527
  66489. msgid "The size of the @code{boot} partition has been inferred to @code{1619MB} so that it is large enough to host the @code{%simple-os} operating-system."
  66490. msgstr ""
  66491. #. type: Plain text
  66492. #: guix-git/doc/guix.texi:44532
  66493. msgid "You can also use existing @code{image} record definitions and inherit from them to simplify the @code{image} definition. The @code{(gnu system image)} module provides the following @code{image} definition variables."
  66494. msgstr ""
  66495. #. type: defvar
  66496. #: guix-git/doc/guix.texi:44533
  66497. #, no-wrap
  66498. msgid "efi-disk-image"
  66499. msgstr ""
  66500. #. type: defvar
  66501. #: guix-git/doc/guix.texi:44537
  66502. msgid "A MBR disk-image composed of two partitions: a 64 bits ESP partition and a ROOT boot partition. This image can be used on most @code{x86_64} and @code{i686} machines, supporting BIOS or UEFI booting."
  66503. msgstr "MBR 磁盘镜像由两个分区组成:一个 64 位的 ESP 分区和一个 ROOT 引导分区。这种镜像可以在大多数 @code{x86_64} 和 @code{i686} 机器上使用,支持 BIOS 或 UEFI 引导。"
  66504. #. type: defvar
  66505. #: guix-git/doc/guix.texi:44539
  66506. #, no-wrap
  66507. msgid "efi32-disk-image"
  66508. msgstr ""
  66509. #. type: defvar
  66510. #: guix-git/doc/guix.texi:44541
  66511. msgid "Same as @code{efi-disk-image} but with a 32 bits EFI partition."
  66512. msgstr "与 @code{efi-disk-image} 相同,但是有一个 32 位的 EFI 分区。"
  66513. #. type: defvar
  66514. #: guix-git/doc/guix.texi:44543
  66515. #, no-wrap
  66516. msgid "iso9660-image"
  66517. msgstr ""
  66518. #. type: defvar
  66519. #: guix-git/doc/guix.texi:44546
  66520. msgid "An ISO-9660 image composed of a single bootable partition. This image can also be used on most @code{x86_64} and @code{i686} machines."
  66521. msgstr "ISO-9660镜像由一个可引导分区组成。这种镜像可以在大多数 @code{x86_64} 和 @code{i686} 机器上使用。"
  66522. #. type: defvar
  66523. #: guix-git/doc/guix.texi:44548
  66524. #, no-wrap
  66525. msgid "docker-image"
  66526. msgstr ""
  66527. #. type: defvar
  66528. #: guix-git/doc/guix.texi:44550
  66529. msgid "A Docker image that can be used to spawn a Docker container."
  66530. msgstr "Docker 镜像可以用来孵化 Docker 容器。"
  66531. #. type: Plain text
  66532. #: guix-git/doc/guix.texi:44554
  66533. msgid "Using the @code{efi-disk-image} we can simplify our previous @code{image} declaration this way:"
  66534. msgstr "使用 @code{efi-disk-image} 我们就可以像这样简化先前的 @code{image} 声明:"
  66535. #. type: lisp
  66536. #: guix-git/doc/guix.texi:44562
  66537. #, no-wrap
  66538. msgid ""
  66539. "(use-modules (gnu)\n"
  66540. " (gnu image)\n"
  66541. " (gnu tests)\n"
  66542. " (gnu system image)\n"
  66543. " (guix gexp)\n"
  66544. " (ice-9 match))\n"
  66545. "\n"
  66546. msgstr ""
  66547. #. type: lisp
  66548. #: guix-git/doc/guix.texi:44576
  66549. #, no-wrap
  66550. msgid ""
  66551. "(define data\n"
  66552. " (partition\n"
  66553. " (size (* 50 MiB))\n"
  66554. " (label \"DATA\")\n"
  66555. " (file-system \"ext4\")\n"
  66556. " (initializer #~(lambda* (root . rest)\n"
  66557. " (mkdir root)\n"
  66558. " (call-with-output-file\n"
  66559. " (string-append root \"/data\")\n"
  66560. " (lambda (port)\n"
  66561. " (format port \"my-data\")))))))\n"
  66562. "\n"
  66563. msgstr ""
  66564. #. type: lisp
  66565. #: guix-git/doc/guix.texi:44584
  66566. #, no-wrap
  66567. msgid ""
  66568. "(image\n"
  66569. " (inherit efi-disk-image)\n"
  66570. " (operating-system %simple-os)\n"
  66571. " (partitions\n"
  66572. " (match (image-partitions efi-disk-image)\n"
  66573. " ((esp root)\n"
  66574. " (list esp data root)))))\n"
  66575. msgstr ""
  66576. #. type: Plain text
  66577. #: guix-git/doc/guix.texi:44588
  66578. msgid "This will give the exact same @code{image} instantiation but the @code{image} declaration is simpler."
  66579. msgstr "这将会有一模一样的 @code{image} 实例化,不过 @code{image} 声明更加简单。"
  66580. #. type: Plain text
  66581. #: guix-git/doc/guix.texi:44597
  66582. msgid "The @command{guix system image} command can, as we saw above, take a file containing an @code{image} declaration as argument and produce an actual disk image from it. The same command can also handle a file containing an @code{operating-system} declaration as argument. In that case, how is the @code{operating-system} turned into an image?"
  66583. msgstr "正如我们在上面看到的那样,@command{guix system image} 命令可以将含有 @code{image} 声明的文件作为参数,从中产生一个磁盘镜像。同样的命令也可以操纵含有 @code{operating-system} 声明的文件作为参数。在那种情况下,@code{operating-system} 如何变为镜像呢?"
  66584. #. type: Plain text
  66585. #: guix-git/doc/guix.texi:44601
  66586. msgid "That's where the @code{image-type} record intervenes. This record defines how to transform an @code{operating-system} record into an @code{image} record."
  66587. msgstr "那是 @code{image-type} 记录干预的地方。这个记录定义了 @code{operating-system} 记录如何转化为 @code{image} 记录。"
  66588. #. type: deftp
  66589. #: guix-git/doc/guix.texi:44602
  66590. #, no-wrap
  66591. msgid "{Data Type} image-type"
  66592. msgstr "{数据类型} image-type"
  66593. #. type: deftp
  66594. #: guix-git/doc/guix.texi:44604
  66595. msgid "This is the data type representing an image-type."
  66596. msgstr "这是表示镜像类别的数据类型。"
  66597. #. type: table
  66598. #: guix-git/doc/guix.texi:44609
  66599. msgid "The image-type name as a mandatory symbol, @code{'efi32-raw} for instance."
  66600. msgstr "镜像类型名称是强制性的符号,比如说 @code{'efi32-raw}。"
  66601. #. type: code{#1}
  66602. #: guix-git/doc/guix.texi:44610
  66603. #, no-wrap
  66604. msgid "constructor"
  66605. msgstr ""
  66606. #. type: table
  66607. #: guix-git/doc/guix.texi:44614
  66608. msgid "The image-type constructor, as a mandatory procedure that takes an @code{operating-system} record as argument and returns an @code{image} record."
  66609. msgstr ""
  66610. #. type: Plain text
  66611. #: guix-git/doc/guix.texi:44620
  66612. msgid "There are several @code{image-type} records provided by the @code{(gnu system image)} and the @code{(gnu system images @dots{})} modules."
  66613. msgstr ""
  66614. #. type: defvar
  66615. #: guix-git/doc/guix.texi:44621
  66616. #, no-wrap
  66617. msgid "efi-raw-image-type"
  66618. msgstr ""
  66619. #. type: defvar
  66620. #: guix-git/doc/guix.texi:44623
  66621. msgid "Build an image based on the @code{efi-disk-image} image."
  66622. msgstr ""
  66623. #. type: defvar
  66624. #: guix-git/doc/guix.texi:44625
  66625. #, no-wrap
  66626. msgid "efi32-raw-image-type"
  66627. msgstr ""
  66628. #. type: defvar
  66629. #: guix-git/doc/guix.texi:44627
  66630. msgid "Build an image based on the @code{efi32-disk-image} image."
  66631. msgstr ""
  66632. #. type: defvar
  66633. #: guix-git/doc/guix.texi:44629
  66634. #, no-wrap
  66635. msgid "qcow2-image-type"
  66636. msgstr ""
  66637. #. type: defvar
  66638. #: guix-git/doc/guix.texi:44632
  66639. msgid "Build an image based on the @code{efi-disk-image} image but with the @code{compressed-qcow2} image format."
  66640. msgstr ""
  66641. #. type: defvar
  66642. #: guix-git/doc/guix.texi:44634
  66643. #, no-wrap
  66644. msgid "iso-image-type"
  66645. msgstr ""
  66646. #. type: defvar
  66647. #: guix-git/doc/guix.texi:44636
  66648. msgid "Build a compressed image based on the @code{iso9660-image} image."
  66649. msgstr ""
  66650. #. type: defvar
  66651. #: guix-git/doc/guix.texi:44638
  66652. #, no-wrap
  66653. msgid "uncompressed-iso-image-type"
  66654. msgstr ""
  66655. #. type: defvar
  66656. #: guix-git/doc/guix.texi:44641
  66657. msgid "Build an image based on the @code{iso9660-image} image but with the @code{compression?} field set to @code{#false}."
  66658. msgstr ""
  66659. #. type: defvar
  66660. #: guix-git/doc/guix.texi:44643
  66661. #, no-wrap
  66662. msgid "docker-image-type"
  66663. msgstr ""
  66664. #. type: defvar
  66665. #: guix-git/doc/guix.texi:44645
  66666. msgid "Build an image based on the @code{docker-image} image."
  66667. msgstr ""
  66668. #. type: defvar
  66669. #: guix-git/doc/guix.texi:44647
  66670. #, no-wrap
  66671. msgid "raw-with-offset-image-type"
  66672. msgstr ""
  66673. #. type: defvar
  66674. #: guix-git/doc/guix.texi:44651
  66675. msgid "Build an MBR image with a single partition starting at a @code{1024KiB} offset. This is useful to leave some room to install a bootloader in the post-MBR gap."
  66676. msgstr ""
  66677. #. type: defvar
  66678. #: guix-git/doc/guix.texi:44653
  66679. #, no-wrap
  66680. msgid "pinebook-pro-image-type"
  66681. msgstr ""
  66682. #. type: defvar
  66683. #: guix-git/doc/guix.texi:44658
  66684. msgid "Build an image that is targeting the Pinebook Pro machine. The MBR image contains a single partition starting at a @code{9MiB} offset. The @code{u-boot-pinebook-pro-rk3399-bootloader} bootloader will be installed in this gap."
  66685. msgstr ""
  66686. #. type: defvar
  66687. #: guix-git/doc/guix.texi:44660
  66688. #, no-wrap
  66689. msgid "rock64-image-type"
  66690. msgstr ""
  66691. #. type: defvar
  66692. #: guix-git/doc/guix.texi:44665
  66693. msgid "Build an image that is targeting the Rock64 machine. The MBR image contains a single partition starting at a @code{16MiB} offset. The @code{u-boot-rock64-rk3328-bootloader} bootloader will be installed in this gap."
  66694. msgstr ""
  66695. #. type: defvar
  66696. #: guix-git/doc/guix.texi:44667
  66697. #, no-wrap
  66698. msgid "novena-image-type"
  66699. msgstr ""
  66700. #. type: defvar
  66701. #: guix-git/doc/guix.texi:44670
  66702. msgid "Build an image that is targeting the Novena machine. It has the same characteristics as @code{raw-with-offset-image-type}."
  66703. msgstr ""
  66704. #. type: defvar
  66705. #: guix-git/doc/guix.texi:44672
  66706. #, fuzzy, no-wrap
  66707. #| msgid "{Data Type} build-machine"
  66708. msgid "pine64-image-type"
  66709. msgstr "{数据类型} build-machine"
  66710. #. type: defvar
  66711. #: guix-git/doc/guix.texi:44675
  66712. msgid "Build an image that is targeting the Pine64 machine. It has the same characteristics as @code{raw-with-offset-image-type}."
  66713. msgstr ""
  66714. #. type: defvar
  66715. #: guix-git/doc/guix.texi:44677
  66716. #, no-wrap
  66717. msgid "hurd-image-type"
  66718. msgstr ""
  66719. #. type: defvar
  66720. #: guix-git/doc/guix.texi:44681
  66721. msgid "Build an image that is targeting a @code{i386} machine running the Hurd kernel. The MBR image contains a single ext2 partitions with specific @code{file-system-options} flags."
  66722. msgstr ""
  66723. #. type: defvar
  66724. #: guix-git/doc/guix.texi:44683
  66725. #, no-wrap
  66726. msgid "hurd-qcow2-image-type"
  66727. msgstr ""
  66728. #. type: defvar
  66729. #: guix-git/doc/guix.texi:44686
  66730. msgid "Build an image similar to the one built by the @code{hurd-image-type} but with the @code{format} set to @code{'compressed-qcow2}."
  66731. msgstr ""
  66732. #. type: defvar
  66733. #: guix-git/doc/guix.texi:44688
  66734. #, no-wrap
  66735. msgid "wsl2-image-type"
  66736. msgstr ""
  66737. #. type: defvar
  66738. #: guix-git/doc/guix.texi:44691
  66739. msgid "Build an image for the @acronym{WSL2, Windows Subsystem for Linux 2}. It can be imported by running:"
  66740. msgstr ""
  66741. #. type: example
  66742. #: guix-git/doc/guix.texi:44695
  66743. #, no-wrap
  66744. msgid ""
  66745. "wsl --import Guix ./guix ./wsl2-image.tar.gz\n"
  66746. "wsl -d Guix\n"
  66747. msgstr ""
  66748. #. type: Plain text
  66749. #: guix-git/doc/guix.texi:44703
  66750. msgid "So, if we get back to the @code{guix system image} command taking an @code{operating-system} declaration as argument. By default, the @code{efi-raw-image-type} is used to turn the provided @code{operating-system} into an actual bootable image."
  66751. msgstr ""
  66752. #. type: Plain text
  66753. #: guix-git/doc/guix.texi:44709
  66754. msgid "To use a different @code{image-type}, the @code{--image-type} option can be used. The @code{--list-image-types} option will list all the supported image types. It turns out to be a textual listing of all the @code{image-types} variables described just above (@pxref{Invoking guix system})."
  66755. msgstr ""
  66756. #. type: Plain text
  66757. #: guix-git/doc/guix.texi:44716
  66758. msgid "Let's take the example of the Pine64, an ARM based machine. To be able to produce an image targeting this board, we need the following elements:"
  66759. msgstr ""
  66760. #. type: item
  66761. #: guix-git/doc/guix.texi:44718
  66762. #, no-wrap
  66763. msgid "An @code{operating-system} record containing at least"
  66764. msgstr ""
  66765. #. type: itemize
  66766. #: guix-git/doc/guix.texi:44721
  66767. msgid "an appropriate kernel (@code{linux-libre-arm64-generic}) and bootloader @code{u-boot-pine64-lts-bootloader}) for the Pine64."
  66768. msgstr ""
  66769. #. type: item
  66770. #: guix-git/doc/guix.texi:44722
  66771. #, no-wrap
  66772. msgid "Possibly, an @code{image-type} record providing a way to"
  66773. msgstr ""
  66774. #. type: itemize
  66775. #: guix-git/doc/guix.texi:44725
  66776. msgid "turn an @code{operating-system} record to an @code{image} record suitable for the Pine64."
  66777. msgstr ""
  66778. #. type: item
  66779. #: guix-git/doc/guix.texi:44726
  66780. #, no-wrap
  66781. msgid "An actual @code{image} that can be instantiated with the"
  66782. msgstr ""
  66783. #. type: itemize
  66784. #: guix-git/doc/guix.texi:44728
  66785. msgid "@command{guix system image} command."
  66786. msgstr ""
  66787. #. type: Plain text
  66788. #: guix-git/doc/guix.texi:44734
  66789. msgid "The @code{(gnu system images pine64)} module provides all those elements: @code{pine64-barebones-os}, @code{pine64-image-type} and @code{pine64-barebones-raw-image} respectively."
  66790. msgstr ""
  66791. #. type: Plain text
  66792. #: guix-git/doc/guix.texi:44737
  66793. msgid "The module returns the @code{pine64-barebones-raw-image} in order for users to be able to run:"
  66794. msgstr ""
  66795. #. type: example
  66796. #: guix-git/doc/guix.texi:44740
  66797. #, no-wrap
  66798. msgid "guix system image gnu/system/images/pine64.scm\n"
  66799. msgstr ""
  66800. #. type: Plain text
  66801. #: guix-git/doc/guix.texi:44745
  66802. msgid "Now, thanks to the @code{pine64-image-type} record declaring the @code{'pine64-raw} @code{image-type}, one could also prepare a @code{my-pine.scm} file with the following content:"
  66803. msgstr ""
  66804. #. type: lisp
  66805. #: guix-git/doc/guix.texi:44751
  66806. #, no-wrap
  66807. msgid ""
  66808. "(use-modules (gnu system images pine64))\n"
  66809. "(operating-system\n"
  66810. " (inherit pine64-barebones-os)\n"
  66811. " (timezone \"Europe/Athens\"))\n"
  66812. msgstr ""
  66813. #. type: Plain text
  66814. #: guix-git/doc/guix.texi:44754
  66815. msgid "to customize the @code{pine64-barebones-os}, and run:"
  66816. msgstr ""
  66817. #. type: example
  66818. #: guix-git/doc/guix.texi:44757
  66819. #, no-wrap
  66820. msgid "$ guix system image --image-type=pine64-raw my-pine.scm\n"
  66821. msgstr ""
  66822. #. type: Plain text
  66823. #: guix-git/doc/guix.texi:44762
  66824. msgid "Note that there are other modules in the @code{gnu/system/images} directory targeting @code{Novena}, @code{Pine64}, @code{PinebookPro} and @code{Rock64} machines."
  66825. msgstr ""
  66826. #. type: cindex
  66827. #: guix-git/doc/guix.texi:44766
  66828. #, no-wrap
  66829. msgid "debugging files"
  66830. msgstr ""
  66831. #. type: Plain text
  66832. #: guix-git/doc/guix.texi:44772
  66833. 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."
  66834. msgstr ""
  66835. #. type: Plain text
  66836. #: guix-git/doc/guix.texi:44776
  66837. 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."
  66838. msgstr ""
  66839. #. type: Plain text
  66840. #: guix-git/doc/guix.texi:44792
  66841. 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})."
  66842. msgstr ""
  66843. #. type: Plain text
  66844. #: guix-git/doc/guix.texi:44799
  66845. 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})."
  66846. msgstr ""
  66847. #. type: Plain text
  66848. #: guix-git/doc/guix.texi:44807
  66849. 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:"
  66850. msgstr ""
  66851. #. type: example
  66852. #: guix-git/doc/guix.texi:44810
  66853. #, no-wrap
  66854. msgid "guix install glibc:debug guile:debug\n"
  66855. msgstr ""
  66856. #. type: Plain text
  66857. #: guix-git/doc/guix.texi:44816
  66858. 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}):"
  66859. msgstr ""
  66860. #. type: example
  66861. #: guix-git/doc/guix.texi:44819
  66862. #, no-wrap
  66863. msgid "(gdb) set debug-file-directory ~/.guix-profile/lib/debug\n"
  66864. msgstr ""
  66865. #. type: Plain text
  66866. #: guix-git/doc/guix.texi:44823
  66867. msgid "From there on, GDB will pick up debugging information from the @file{.debug} files under @file{~/.guix-profile/lib/debug}."
  66868. msgstr ""
  66869. #. type: Plain text
  66870. #: guix-git/doc/guix.texi:44828
  66871. 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."
  66872. msgstr ""
  66873. #. type: example
  66874. #: guix-git/doc/guix.texi:44836
  66875. #, no-wrap
  66876. msgid ""
  66877. "guile\n"
  66878. "(use-modules (gdb))\n"
  66879. "(execute (string-append \"set debug-file-directory \"\n"
  66880. " (or (getenv \"GDB_DEBUG_FILE_DIRECTORY\")\n"
  66881. " \"~/.guix-profile/lib/debug\")))\n"
  66882. "end\n"
  66883. msgstr ""
  66884. #. type: Plain text
  66885. #: guix-git/doc/guix.texi:44844
  66886. 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})."
  66887. msgstr ""
  66888. #. type: Plain text
  66889. #: guix-git/doc/guix.texi:44852
  66890. 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})."
  66891. msgstr ""
  66892. #. type: Plain text
  66893. #: guix-git/doc/guix.texi:44854
  66894. msgid "Read on for how to deal with packages lacking a @code{debug} output."
  66895. msgstr ""
  66896. #. type: Plain text
  66897. #: guix-git/doc/guix.texi:44866
  66898. 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."
  66899. msgstr ""
  66900. #. type: Plain text
  66901. #: guix-git/doc/guix.texi:44871
  66902. 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:"
  66903. msgstr ""
  66904. #. type: example
  66905. #: guix-git/doc/guix.texi:44882
  66906. #, no-wrap
  66907. msgid ""
  66908. "(gdb) bt\n"
  66909. "#0 0x00007ffff5f92190 in g_getenv ()\n"
  66910. " from /gnu/store/@dots{}-glib-2.62.6/lib/libglib-2.0.so.0\n"
  66911. "#1 0x00007ffff608a7d6 in gobject_init_ctor ()\n"
  66912. " from /gnu/store/@dots{}-glib-2.62.6/lib/libgobject-2.0.so.0\n"
  66913. "#2 0x00007ffff7fe275a in call_init (l=<optimized out>, argc=argc@@entry=1, argv=argv@@entry=0x7fffffffcfd8,\n"
  66914. " env=env@@entry=0x7fffffffcfe8) at dl-init.c:72\n"
  66915. "#3 0x00007ffff7fe2866 in call_init (env=0x7fffffffcfe8, argv=0x7fffffffcfd8, argc=1, l=<optimized out>)\n"
  66916. " at dl-init.c:118\n"
  66917. msgstr ""
  66918. #. type: Plain text
  66919. #: guix-git/doc/guix.texi:44886
  66920. msgid "To address that, you install Inkscape linked against a variant GLib that contains debug info:"
  66921. msgstr ""
  66922. #. type: Plain text
  66923. #: guix-git/doc/guix.texi:44892
  66924. msgid "This time, debugging will be a whole lot nicer:"
  66925. msgstr ""
  66926. #. type: example
  66927. #: guix-git/doc/guix.texi:44910
  66928. #, no-wrap
  66929. msgid ""
  66930. "$ gdb --args sh -c 'exec inkscape'\n"
  66931. "@dots{}\n"
  66932. "(gdb) b g_getenv\n"
  66933. "Function \"g_getenv\" not defined.\n"
  66934. "Make breakpoint pending on future shared library load? (y or [n]) y\n"
  66935. "Breakpoint 1 (g_getenv) pending.\n"
  66936. "(gdb) r\n"
  66937. "Starting program: /gnu/store/@dots{}-profile/bin/sh -c exec\\ inkscape\n"
  66938. "@dots{}\n"
  66939. "(gdb) bt\n"
  66940. "#0 g_getenv (variable=variable@@entry=0x7ffff60c7a2e \"GOBJECT_DEBUG\") at ../glib-2.62.6/glib/genviron.c:252\n"
  66941. "#1 0x00007ffff608a7d6 in gobject_init () at ../glib-2.62.6/gobject/gtype.c:4380\n"
  66942. "#2 gobject_init_ctor () at ../glib-2.62.6/gobject/gtype.c:4493\n"
  66943. "#3 0x00007ffff7fe275a in call_init (l=<optimized out>, argc=argc@@entry=3, argv=argv@@entry=0x7fffffffd088,\n"
  66944. " env=env@@entry=0x7fffffffd0a8) at dl-init.c:72\n"
  66945. "@dots{}\n"
  66946. msgstr ""
  66947. #. type: Plain text
  66948. #: guix-git/doc/guix.texi:44913
  66949. msgid "Much better!"
  66950. msgstr ""
  66951. #. type: Plain text
  66952. #: guix-git/doc/guix.texi:44917
  66953. 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."
  66954. msgstr ""
  66955. #. type: chapter
  66956. #: guix-git/doc/guix.texi:44919
  66957. #, no-wrap
  66958. msgid "Using @TeX{} and @LaTeX{}"
  66959. msgstr ""
  66960. #. type: cindex
  66961. #: guix-git/doc/guix.texi:44921
  66962. #, fuzzy, no-wrap
  66963. msgid "@TeX{} packages"
  66964. msgstr "软件包数据类型。"
  66965. #. type: cindex
  66966. #: guix-git/doc/guix.texi:44922
  66967. #, fuzzy, no-wrap
  66968. #| msgid "Building packages."
  66969. msgid "@LaTeX{} packages"
  66970. msgstr "构建软件包。"
  66971. #. type: Plain text
  66972. #: guix-git/doc/guix.texi:44930
  66973. 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."
  66974. msgstr ""
  66975. #. type: Plain text
  66976. #: guix-git/doc/guix.texi:44932
  66977. msgid "@TeX{} Live currently comes in two flavors in Guix:"
  66978. msgstr ""
  66979. #. type: itemize
  66980. #: guix-git/doc/guix.texi:44938
  66981. 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!)."
  66982. msgstr ""
  66983. #. type: itemize
  66984. #: guix-git/doc/guix.texi:44948
  66985. 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."
  66986. msgstr ""
  66987. #. type: Plain text
  66988. #: guix-git/doc/guix.texi:44953
  66989. 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:"
  66990. msgstr ""
  66991. #. type: example
  66992. #: guix-git/doc/guix.texi:44957
  66993. #, no-wrap
  66994. msgid ""
  66995. "guix shell texlive-base texlive-wrapfig \\\n"
  66996. " texlive-hyperref texlive-cm-super -- pdflatex doc.tex\n"
  66997. msgstr ""
  66998. #. type: Plain text
  66999. #: guix-git/doc/guix.texi:44961
  67000. 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:"
  67001. msgstr ""
  67002. #. type: lisp
  67003. #: guix-git/doc/guix.texi:44965
  67004. #, no-wrap
  67005. msgid ""
  67006. "(specifications->manifest\n"
  67007. " '(\"rubber\"\n"
  67008. "\n"
  67009. msgstr ""
  67010. #. type: lisp
  67011. #: guix-git/doc/guix.texi:44968
  67012. #, no-wrap
  67013. msgid ""
  67014. " \"texlive-base\"\n"
  67015. " \"texlive-wrapfig\"\n"
  67016. "\n"
  67017. msgstr ""
  67018. #. type: lisp
  67019. #: guix-git/doc/guix.texi:44971
  67020. #, no-wrap
  67021. msgid ""
  67022. " \"texlive-microtype\"\n"
  67023. " \"texlive-listings\" \"texlive-hyperref\"\n"
  67024. "\n"
  67025. msgstr ""
  67026. #. type: lisp
  67027. #: guix-git/doc/guix.texi:44974
  67028. #, no-wrap
  67029. msgid ""
  67030. " ;; PGF/TikZ\n"
  67031. " \"texlive-pgf\"\n"
  67032. "\n"
  67033. msgstr ""
  67034. #. type: lisp
  67035. #: guix-git/doc/guix.texi:44978
  67036. #, no-wrap
  67037. msgid ""
  67038. " ;; Additional fonts.\n"
  67039. " \"texlive-cm-super\" \"texlive-amsfonts\"\n"
  67040. " \"texlive-times\" \"texlive-helvetic\" \"texlive-courier\"))\n"
  67041. msgstr ""
  67042. #. type: Plain text
  67043. #: guix-git/doc/guix.texi:44981
  67044. msgid "You can then pass it to any command with the @option{-m} option:"
  67045. msgstr ""
  67046. #. type: example
  67047. #: guix-git/doc/guix.texi:44984
  67048. #, no-wrap
  67049. msgid "guix shell -m manifest.scm -- pdflatex doc.tex\n"
  67050. msgstr ""
  67051. #. type: Plain text
  67052. #: guix-git/doc/guix.texi:44992
  67053. msgid "@xref{Writing Manifests}, 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."
  67054. msgstr ""
  67055. #. type: Plain text
  67056. #: guix-git/doc/guix.texi:44998
  67057. 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:"
  67058. msgstr ""
  67059. #. type: example
  67060. #: guix-git/doc/guix.texi:45002
  67061. #, no-wrap
  67062. msgid ""
  67063. "doc.tex: File `tikz.sty' not found.\n"
  67064. "doc.tex:7: Emergency stop.\n"
  67065. msgstr ""
  67066. #. type: Plain text
  67067. #: guix-git/doc/guix.texi:45006
  67068. msgid "or, for a missing font:"
  67069. msgstr ""
  67070. #. type: example
  67071. #: guix-git/doc/guix.texi:45010
  67072. #, no-wrap
  67073. msgid ""
  67074. "kpathsea: Running mktexmf phvr7t\n"
  67075. "! I can't find file `phvr7t'.\n"
  67076. msgstr ""
  67077. #. type: Plain text
  67078. #: guix-git/doc/guix.texi:45014
  67079. msgid "How do you determine what the missing package is? In the first case, you'll find the answer by running:"
  67080. msgstr ""
  67081. #. type: example
  67082. #: guix-git/doc/guix.texi:45020
  67083. #, no-wrap
  67084. msgid ""
  67085. "$ guix search texlive tikz\n"
  67086. "name: texlive-pgf\n"
  67087. "version: 59745\n"
  67088. "@dots{}\n"
  67089. msgstr ""
  67090. #. type: Plain text
  67091. #: guix-git/doc/guix.texi:45025
  67092. 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:"
  67093. msgstr ""
  67094. #. type: example
  67095. #: guix-git/doc/guix.texi:45029
  67096. #, no-wrap
  67097. msgid ""
  67098. "$ guix shell texlive-base -- tlmgr info phvr7t\n"
  67099. "tlmgr: cannot find package phvr7t, searching for other matches:\n"
  67100. "\n"
  67101. msgstr ""
  67102. #. type: example
  67103. #: guix-git/doc/guix.texi:45031
  67104. #, no-wrap
  67105. msgid ""
  67106. "Packages containing `phvr7t' in their title/description:\n"
  67107. "\n"
  67108. msgstr ""
  67109. #. type: example
  67110. #: guix-git/doc/guix.texi:45040
  67111. #, no-wrap
  67112. msgid ""
  67113. "Packages containing files matching `phvr7t':\n"
  67114. "helvetic:\n"
  67115. " texmf-dist/fonts/tfm/adobe/helvetic/phvr7t.tfm\n"
  67116. " texmf-dist/fonts/tfm/adobe/helvetic/phvr7tn.tfm\n"
  67117. " texmf-dist/fonts/vf/adobe/helvetic/phvr7t.vf\n"
  67118. " texmf-dist/fonts/vf/adobe/helvetic/phvr7tn.vf\n"
  67119. "tex4ht:\n"
  67120. " texmf-dist/tex4ht/ht-fonts/alias/adobe/helvetic/phvr7t.htf\n"
  67121. msgstr ""
  67122. #. type: Plain text
  67123. #: guix-git/doc/guix.texi:45045
  67124. 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!"
  67125. msgstr ""
  67126. #. type: Plain text
  67127. #: guix-git/doc/guix.texi:45049
  67128. 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}):"
  67129. msgstr ""
  67130. #. type: example
  67131. #: guix-git/doc/guix.texi:45052
  67132. #, fuzzy, no-wrap
  67133. msgid "guix import texlive @var{package}\n"
  67134. msgstr "guix install emacs-guix\n"
  67135. #. type: quotation
  67136. #: guix-git/doc/guix.texi:45067
  67137. msgid "@TeX{} Live packaging is still very much work in progress, but you can help! @xref{Contributing}, for more information."
  67138. msgstr ""
  67139. #. type: cindex
  67140. #: guix-git/doc/guix.texi:45072
  67141. #, no-wrap
  67142. msgid "security updates"
  67143. msgstr ""
  67144. #. type: Plain text
  67145. #: guix-git/doc/guix.texi:45081
  67146. 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:"
  67147. msgstr ""
  67148. #. type: smallexample
  67149. #: guix-git/doc/guix.texi:45088
  67150. #, no-wrap
  67151. msgid ""
  67152. "$ guix lint -c cve\n"
  67153. "gnu/packages/base.scm:652:2: glibc@@2.21: probably vulnerable to CVE-2015-1781, CVE-2015-7547\n"
  67154. "gnu/packages/gcc.scm:334:2: gcc@@4.9.3: probably vulnerable to CVE-2015-5276\n"
  67155. "gnu/packages/image.scm:312:2: openjpeg@@2.1.0: probably vulnerable to CVE-2016-1923, CVE-2016-1924\n"
  67156. "@dots{}\n"
  67157. msgstr ""
  67158. #. type: Plain text
  67159. #: guix-git/doc/guix.texi:45091
  67160. msgid "@xref{Invoking guix lint}, for more information."
  67161. msgstr ""
  67162. #. type: Plain text
  67163. #: guix-git/doc/guix.texi:45100
  67164. 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."
  67165. msgstr ""
  67166. #. type: cindex
  67167. #: guix-git/doc/guix.texi:45101
  67168. #, no-wrap
  67169. msgid "grafts"
  67170. msgstr ""
  67171. #. type: Plain text
  67172. #: guix-git/doc/guix.texi:45109
  67173. 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."
  67174. msgstr ""
  67175. #. type: cindex
  67176. #: guix-git/doc/guix.texi:45110
  67177. #, no-wrap
  67178. msgid "replacements of packages, for grafts"
  67179. msgstr ""
  67180. #. type: Plain text
  67181. #: guix-git/doc/guix.texi:45116
  67182. 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:"
  67183. msgstr ""
  67184. #. type: lisp
  67185. #: guix-git/doc/guix.texi:45123
  67186. #, no-wrap
  67187. msgid ""
  67188. "(define bash\n"
  67189. " (package\n"
  67190. " (name \"bash\")\n"
  67191. " ;; @dots{}\n"
  67192. " (replacement bash-fixed)))\n"
  67193. msgstr ""
  67194. #. type: Plain text
  67195. #: guix-git/doc/guix.texi:45133
  67196. 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."
  67197. msgstr ""
  67198. #. type: Plain text
  67199. #: guix-git/doc/guix.texi:45141
  67200. 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."
  67201. msgstr ""
  67202. #. type: Plain text
  67203. #: guix-git/doc/guix.texi:45145
  67204. msgid "The @option{--no-grafts} command-line option allows you to forcefully avoid grafting (@pxref{Common Build Options, @option{--no-grafts}}). Thus, the command:"
  67205. msgstr ""
  67206. #. type: example
  67207. #: guix-git/doc/guix.texi:45148
  67208. #, no-wrap
  67209. msgid "guix build bash --no-grafts\n"
  67210. msgstr ""
  67211. #. type: Plain text
  67212. #: guix-git/doc/guix.texi:45152
  67213. msgid "returns the store file name of the original Bash, whereas:"
  67214. msgstr ""
  67215. #. type: example
  67216. #: guix-git/doc/guix.texi:45155
  67217. #, no-wrap
  67218. msgid "guix build bash\n"
  67219. msgstr ""
  67220. #. type: Plain text
  67221. #: guix-git/doc/guix.texi:45160
  67222. msgid "returns the store file name of the ``fixed'', replacement Bash. This allows you to distinguish between the two variants of Bash."
  67223. msgstr ""
  67224. #. type: Plain text
  67225. #: guix-git/doc/guix.texi:45163
  67226. msgid "To verify which Bash your whole profile refers to, you can run (@pxref{Invoking guix gc}):"
  67227. msgstr ""
  67228. #. type: example
  67229. #: guix-git/doc/guix.texi:45166
  67230. #, no-wrap
  67231. msgid "guix gc -R $(readlink -f ~/.guix-profile) | grep bash\n"
  67232. msgstr ""
  67233. #. type: Plain text
  67234. #: guix-git/doc/guix.texi:45171
  67235. msgid "@dots{} and compare the store file names that you get with those above. Likewise for a complete Guix system generation:"
  67236. msgstr ""
  67237. #. type: example
  67238. #: guix-git/doc/guix.texi:45174
  67239. #, no-wrap
  67240. msgid "guix gc -R $(guix system build my-config.scm) | grep bash\n"
  67241. msgstr ""
  67242. #. type: Plain text
  67243. #: guix-git/doc/guix.texi:45178
  67244. msgid "Lastly, to check which Bash running processes are using, you can use the @command{lsof} command:"
  67245. msgstr ""
  67246. #. type: example
  67247. #: guix-git/doc/guix.texi:45181
  67248. #, no-wrap
  67249. msgid "lsof | grep /gnu/store/.*bash\n"
  67250. msgstr ""
  67251. #. type: cindex
  67252. #: guix-git/doc/guix.texi:45189
  67253. #, no-wrap
  67254. msgid "bootstrapping"
  67255. msgstr ""
  67256. #. type: Plain text
  67257. #: guix-git/doc/guix.texi:45196
  67258. 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?"
  67259. msgstr ""
  67260. #. type: Plain text
  67261. #: guix-git/doc/guix.texi:45204
  67262. 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."
  67263. msgstr ""
  67264. #. type: cindex
  67265. #: guix-git/doc/guix.texi:45205 guix-git/doc/guix.texi:45424
  67266. #, no-wrap
  67267. msgid "bootstrap binaries"
  67268. msgstr ""
  67269. #. type: Plain text
  67270. #: guix-git/doc/guix.texi:45215
  67271. 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}."
  67272. msgstr ""
  67273. #. type: Plain text
  67274. #: guix-git/doc/guix.texi:45219
  67275. msgid "These bootstrap binaries are ``taken for granted'', though we can also re-create them if needed (@pxref{Preparing to Use the Bootstrap Binaries})."
  67276. msgstr ""
  67277. #. type: section
  67278. #: guix-git/doc/guix.texi:45226
  67279. #, no-wrap
  67280. msgid "The Full-Source Bootstrap"
  67281. msgstr ""
  67282. #. type: Plain text
  67283. #: guix-git/doc/guix.texi:45233
  67284. 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.''"
  67285. msgstr ""
  67286. #. type: Plain text
  67287. #: guix-git/doc/guix.texi:45239
  67288. 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."
  67289. msgstr ""
  67290. #. type: Plain text
  67291. #: guix-git/doc/guix.texi:45251
  67292. msgid "For @code{i686-linux} and @code{x86_64-linux}, Guix now features a @dfn{full-source bootstrap}. This bootstrap is rooted in @file{hex0-seed} from the @url{https://savannah.gnu.org/projects/stage0, Stage0} package. The hex0 program is minimalist assembler: it reads space-separated hexadecimal digits (nibbles) from a file, possibly including comments, and emits on standard output the bytes corresponding to those hexadecimal numbers. The source code of this initial hex0 program is a file called @url{https://github.com/oriansj/bootstrap-seeds/blob/master/POSIX/x86/hex0_x86.hex0,@file{hex0_x86.hex0}} and is written in the @code{hex0} language."
  67293. msgstr ""
  67294. #. type: Plain text
  67295. #: guix-git/doc/guix.texi:45253
  67296. msgid "Hex0 is self-hosting, which means that it can build itself:"
  67297. msgstr ""
  67298. #. type: example
  67299. #: guix-git/doc/guix.texi:45256
  67300. #, no-wrap
  67301. msgid "./hex0-seed hex0_x86.hex0 hex0\n"
  67302. msgstr ""
  67303. #. type: Plain text
  67304. #: guix-git/doc/guix.texi:45260
  67305. msgid "Hex0 it is the ASCII-equivalent of the binary program and can be produced by doing something much like:"
  67306. msgstr ""
  67307. #. type: example
  67308. #: guix-git/doc/guix.texi:45264
  67309. #, no-wrap
  67310. msgid ""
  67311. "sed 's/[;#].*$//g' hex0_x86.hex0 | xxd -r -p > hex0\n"
  67312. "chmod +x hex0\n"
  67313. msgstr ""
  67314. #. type: Plain text
  67315. #: guix-git/doc/guix.texi:45268
  67316. msgid "It is because of this ASCII-binary equivalence that we can bless this initial 357-byte binary as source, and hence `full-source bootstrap''."
  67317. msgstr ""
  67318. #. type: Plain text
  67319. #: guix-git/doc/guix.texi:45275
  67320. msgid "The bootstrap then continues: @code{hex0} builds @code{hex1} and then on to @code{M0}, @code{hex2}, @code{M1}, @code{mescc-tools} and finally @code{M2-Planet}. Then, using @code{mescc-tools}, @code{M2-Planet} we build Mes (@pxref{Top, GNU Mes Reference Manual,, mes, GNU Mes}, a Scheme interpreter and C compiler in Scheme). Frome here on starts the more traditional @code{C}-based bootstrap of the GNU System."
  67321. msgstr ""
  67322. #. type: Plain text
  67323. #: guix-git/doc/guix.texi:45282
  67324. msgid "Another 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."
  67325. msgstr ""
  67326. #. type: Plain text
  67327. #: guix-git/doc/guix.texi:45292
  67328. 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."
  67329. msgstr ""
  67330. #. type: Plain text
  67331. #: guix-git/doc/guix.texi:45296
  67332. 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."
  67333. msgstr ""
  67334. #. type: Plain text
  67335. #: guix-git/doc/guix.texi:45299
  67336. msgid "@image{images/gcc-core-mesboot0-graph,6in,,Dependency graph of gcc-core-mesboot0}"
  67337. msgstr ""
  67338. #. type: Plain text
  67339. #: guix-git/doc/guix.texi:45302
  67340. msgid "Work is ongoing to to bring these bootstraps to the @code{arm-linux} and @code{aarch64-linux} architectures and to the Hurd."
  67341. msgstr ""
  67342. #. type: Plain text
  67343. #: guix-git/doc/guix.texi:45306
  67344. msgid "If you are interested, join us on @samp{#bootstrappable} on the Libera.Chat IRC network or discuss on @email{bug-mes@@gnu.org} or @email{gash-devel@@nongnu.org}."
  67345. msgstr ""
  67346. #. type: Plain text
  67347. #: guix-git/doc/guix.texi:45313
  67348. msgid "@image{images/bootstrap-graph,6in,,Dependency graph of the early bootstrap derivations}"
  67349. msgstr ""
  67350. #. type: Plain text
  67351. #: guix-git/doc/guix.texi:45318
  67352. 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:"
  67353. msgstr ""
  67354. #. type: example
  67355. #: guix-git/doc/guix.texi:45323
  67356. #, no-wrap
  67357. msgid ""
  67358. "guix graph -t derivation \\\n"
  67359. " -e '(@@@@ (gnu packages bootstrap) %bootstrap-gcc)' \\\n"
  67360. " | dot -Tps > gcc.ps\n"
  67361. msgstr ""
  67362. #. type: Plain text
  67363. #: guix-git/doc/guix.texi:45326
  67364. msgid "or, for the further Reduced Binary Seed bootstrap"
  67365. msgstr ""
  67366. #. type: example
  67367. #: guix-git/doc/guix.texi:45331
  67368. #, no-wrap
  67369. msgid ""
  67370. "guix graph -t derivation \\\n"
  67371. " -e '(@@@@ (gnu packages bootstrap) %bootstrap-mes)' \\\n"
  67372. " | dot -Tps > mes.ps\n"
  67373. msgstr ""
  67374. #. type: Plain text
  67375. #: guix-git/doc/guix.texi:45340
  67376. 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})."
  67377. msgstr ""
  67378. #. type: Plain text
  67379. #: guix-git/doc/guix.texi:45349
  67380. 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."
  67381. msgstr ""
  67382. #. type: Plain text
  67383. #: guix-git/doc/guix.texi:45361
  67384. 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})."
  67385. msgstr ""
  67386. #. type: Plain text
  67387. #: guix-git/doc/guix.texi:45366
  67388. 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."
  67389. msgstr ""
  67390. #. type: unnumberedsec
  67391. #: guix-git/doc/guix.texi:45367
  67392. #, no-wrap
  67393. msgid "Building the Build Tools"
  67394. msgstr ""
  67395. #. type: Plain text
  67396. #: guix-git/doc/guix.texi:45376
  67397. 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."
  67398. msgstr ""
  67399. #. type: Plain text
  67400. #: guix-git/doc/guix.texi:45383
  67401. 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:"
  67402. msgstr ""
  67403. #. type: example
  67404. #: guix-git/doc/guix.texi:45388
  67405. #, no-wrap
  67406. msgid ""
  67407. "guix graph -t bag \\\n"
  67408. " -e '(@@@@ (gnu packages commencement)\n"
  67409. " glibc-final-with-bootstrap-bash)' | xdot -\n"
  67410. msgstr ""
  67411. #. type: Plain text
  67412. #: guix-git/doc/guix.texi:45395
  67413. 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."
  67414. msgstr ""
  67415. #. type: Plain text
  67416. #: guix-git/doc/guix.texi:45397
  67417. msgid "@image{images/bootstrap-packages,6in,,Dependency graph of the early packages}"
  67418. msgstr ""
  67419. #. type: Plain text
  67420. #: guix-git/doc/guix.texi:45403
  67421. 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."
  67422. msgstr ""
  67423. #. type: Plain text
  67424. #: guix-git/doc/guix.texi:45408
  67425. 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."
  67426. msgstr ""
  67427. #. type: Plain text
  67428. #: guix-git/doc/guix.texi:45414
  67429. 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."
  67430. msgstr ""
  67431. #. type: Plain text
  67432. #: guix-git/doc/guix.texi:45420
  67433. 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}})."
  67434. msgstr ""
  67435. #. type: unnumberedsec
  67436. #: guix-git/doc/guix.texi:45422
  67437. #, no-wrap
  67438. msgid "Building the Bootstrap Binaries"
  67439. msgstr ""
  67440. #. type: Plain text
  67441. #: guix-git/doc/guix.texi:45429
  67442. 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."
  67443. msgstr ""
  67444. #. type: Plain text
  67445. #: guix-git/doc/guix.texi:45435
  67446. 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):"
  67447. msgstr ""
  67448. #. type: example
  67449. #: guix-git/doc/guix.texi:45438
  67450. #, no-wrap
  67451. msgid "guix build bootstrap-tarballs\n"
  67452. msgstr ""
  67453. #. type: Plain text
  67454. #: guix-git/doc/guix.texi:45443
  67455. 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."
  67456. msgstr ""
  67457. #. type: Plain text
  67458. #: guix-git/doc/guix.texi:45449
  67459. 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."
  67460. msgstr ""
  67461. #. type: unnumberedsec
  67462. #: guix-git/doc/guix.texi:45450
  67463. #, no-wrap
  67464. msgid "Reducing the Set of Bootstrap Binaries"
  67465. msgstr ""
  67466. #. type: Plain text
  67467. #: guix-git/doc/guix.texi:45458
  67468. 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}."
  67469. msgstr ""
  67470. #. type: Plain text
  67471. #: guix-git/doc/guix.texi:45464
  67472. 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."
  67473. msgstr ""
  67474. #. type: Plain text
  67475. #: guix-git/doc/guix.texi:45470
  67476. 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."
  67477. msgstr ""
  67478. #. type: Plain text
  67479. #: guix-git/doc/guix.texi:45479
  67480. 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."
  67481. msgstr ""
  67482. #. type: Plain text
  67483. #: guix-git/doc/guix.texi:45482
  67484. 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!"
  67485. msgstr ""
  67486. #. type: chapter
  67487. #: guix-git/doc/guix.texi:45484
  67488. #, no-wrap
  67489. msgid "Porting to a New Platform"
  67490. msgstr ""
  67491. #. type: Plain text
  67492. #: guix-git/doc/guix.texi:45493
  67493. 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."
  67494. msgstr ""
  67495. #. type: Plain text
  67496. #: guix-git/doc/guix.texi:45498
  67497. 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:"
  67498. msgstr ""
  67499. #. type: example
  67500. #: guix-git/doc/guix.texi:45501
  67501. #, no-wrap
  67502. msgid "guix build --target=armv5tel-linux-gnueabi bootstrap-tarballs\n"
  67503. msgstr ""
  67504. #. type: Plain text
  67505. #: guix-git/doc/guix.texi:45510
  67506. msgid "For this to work, it is first required to register a new platform as defined in the @code{(guix platform)} module. A platform is making the connection between a GNU triplet (@pxref{Specifying Target Triplets, GNU configuration triplets,, autoconf, Autoconf}), the equivalent @var{system} in Nix notation, the name of the @var{glibc-dynamic-linker}, and the corresponding Linux architecture name if applicable (@pxref{Platforms})."
  67507. msgstr ""
  67508. #. type: Plain text
  67509. #: guix-git/doc/guix.texi:45519
  67510. msgid "Once the bootstrap tarball 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."
  67511. msgstr ""
  67512. #. type: Plain text
  67513. #: guix-git/doc/guix.texi:45528
  67514. 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."
  67515. msgstr ""
  67516. #. type: include
  67517. #: guix-git/doc/guix.texi:45530
  67518. #, no-wrap
  67519. msgid "contributing.texi"
  67520. msgstr "contributing.zh_CN.texi"
  67521. #. type: Plain text
  67522. #: guix-git/doc/guix.texi:45543
  67523. 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."
  67524. msgstr ""
  67525. #. type: Plain text
  67526. #: guix-git/doc/guix.texi:45546
  67527. msgid "The Nix-based software distributions, Nixpkgs and NixOS, have also been an inspiration for Guix."
  67528. msgstr "基于 Nix 的软件发行版 Nixpkgs 和 NixOS 也给 Guix 带来了灵感。"
  67529. #. type: Plain text
  67530. #: guix-git/doc/guix.texi:45552
  67531. 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!"
  67532. msgstr ""
  67533. #. type: cindex
  67534. #: guix-git/doc/guix.texi:45557
  67535. #, no-wrap
  67536. msgid "license, GNU Free Documentation License"
  67537. msgstr ""
  67538. #. type: include
  67539. #: guix-git/doc/guix.texi:45558
  67540. #, no-wrap
  67541. msgid "fdl-1.3.texi"
  67542. msgstr ""
  67543. #, no-wrap
  67544. #~ msgid "semodule -i etc/guix-daemon.cil\n"
  67545. #~ msgstr "semodule -i etc/guix-daemon.cil\n"
  67546. #, fuzzy
  67547. #~| msgid "Then relabel the file system with @code{restorecon} or by a different mechanism provided by your system."
  67548. #~ msgid "Then relabel the file system with @code{restorecon -vR /} or by a different mechanism provided by your system. You may need to remount @file{/gnu/store} to make it writable first, e.g. with @code{mount -o remount,rw /gnu/store}."
  67549. #~ msgstr "用@code{restorecon}或者你的系统提供的其它机制重新给文件系统打标签。"
  67550. #, fuzzy
  67551. #~ msgid "@code{shepherd-requirement} (default: @code{()})"
  67552. #~ msgstr "@code{features} (@code{'()})"
  67553. #~ msgid "Programming Guix in Guile."
  67554. #~ msgstr "在Guile中为Guix编程"
  67555. #, fuzzy
  67556. #~| msgid "System Configuration"
  67557. #~ msgid "Home Environment Configuration"
  67558. #~ msgstr "系统配置"
  67559. #, fuzzy
  67560. #~| msgid "Instantiating a system configuration."
  67561. #~ msgid "Instantiating a home environment configuration."
  67562. #~ msgstr "实例化一个系统配置。"
  67563. #, fuzzy
  67564. #~ msgid "@code{proxy-command} (type: maybe-string)"
  67565. #~ msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  67566. #, fuzzy
  67567. #~ msgid "The git package to use."
  67568. #~ msgstr "软件包数据类型。"
  67569. #, fuzzy
  67570. #~ msgid "@code{group} (default: @code{\"mpd\"}) (type: string)"
  67571. #~ msgstr "@code{port}(默认值:@code{22})"
  67572. #, fuzzy
  67573. #~ msgid "{Scheme Variable} tree-sitter-build-system"
  67574. #~ msgstr "aarch64-linux"
  67575. #, fuzzy
  67576. #~ msgid "@code{iwd?} (default: @code{#f})"
  67577. #~ msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  67578. #, fuzzy
  67579. #~ msgid "%nscd-default-configuration"
  67580. #~ msgstr "系统配置"
  67581. #, fuzzy
  67582. #~ msgid "{Data Type} host"
  67583. #~ msgstr "{数据类型} build-machine"
  67584. #, fuzzy
  67585. #~ msgid "@code{address} (type: string)"
  67586. #~ msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  67587. #, fuzzy
  67588. #~ msgid "@code{canonical-name} (type: string)"
  67589. #~ msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  67590. #, fuzzy
  67591. #~| msgid "name"
  67592. #~ msgid "Hostname."
  67593. #~ msgstr "名字"
  67594. #, fuzzy
  67595. #~ msgid "@code{name} (default: @code{\"MPD\"})"
  67596. #~ msgstr "@code{gnome}(默认值:@code{gnome})"
  67597. #, fuzzy
  67598. #~ msgid "@code{type} (default: @code{\"pulse\"})"
  67599. #~ msgstr "@code{mate}(默认值:@code{mate})"
  67600. #, fuzzy
  67601. #~ msgid "@code{enabled?} (default: @code{#t})"
  67602. #~ msgstr "@code{speed}(默认值:@code{1.0})"
  67603. #, fuzzy
  67604. #~ msgid "@code{tags?} (default: @code{#t})"
  67605. #~ msgstr "@code{mate}(默认值:@code{mate})"
  67606. #, fuzzy
  67607. #~ msgid "@code{always-on?} (default: @code{#f})"
  67608. #~ msgstr "@code{challenge}(默认值:@code{#f})"
  67609. #, fuzzy
  67610. #~ msgid "{Scheme Variable} powerpc64le-linux"
  67611. #~ msgstr "aarch64-linux"
  67612. #, fuzzy
  67613. #~ msgid "@code{group} (default: @code{\"zabbix\"}) (type: group)"
  67614. #~ msgstr "@code{xfce}(默认值:@code{xfce})"
  67615. #, fuzzy
  67616. #~ 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}."
  67617. #~ msgstr "在发送补丁系列时(如,使用@code{git send-email}),请先向@email{guix-patches@@gnu.org}发送一封邮件,再把后续的补丁发送到@email{@var{NNN}@@debbugs.gnu.org},以确保他们被归在一起。见@uref{https://debbugs.gnu.org/Advanced.html, Debbugs文档}以了解更多信息。"
  67618. #~ 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});"
  67619. #~ msgstr "@uref{https://gnutls.org/, GnuTLS},特别是它的Guile接口(@pxref{Guile Preparations, 怎样为Guile安装GnuTLS接口,, gnutls-guile, GnuTLS-Guile});"
  67620. #, fuzzy
  67621. #~ msgid "Invoking @code{guix home}"
  67622. #~ msgstr "调用@command{guix-daemon}"
  67623. #, fuzzy
  67624. #~ msgid "The config file to use."
  67625. #~ msgstr "软件包数据类型。"
  67626. #, fuzzy
  67627. #~ msgid "@deftp{Data Type} wsdd-configuration This data type represents the configuration for the wsdd service."
  67628. #~ msgstr "管理操作系统配置。"
  67629. #~ msgid ""
  67630. #~ ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  67631. #~ "(with-eval-after-load 'yasnippet\n"
  67632. #~ " (add-to-list 'yas-snippet-dirs \"~/src/guix/etc/snippets\"))\n"
  67633. #~ msgstr ""
  67634. #~ ";; @r{假设Guix项目在 ~/src/guix.}\n"
  67635. #~ "(with-eval-after-load 'yasnippet\n"
  67636. #~ " (add-to-list 'yas-snippet-dirs \"~/src/guix/etc/snippets\"))\n"
  67637. #, fuzzy
  67638. #~ msgid "@code{user} (default: @samp{\"root\"})"
  67639. #~ msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  67640. #, fuzzy
  67641. #~ msgid "@code{priority} (default @code{-1})"
  67642. #~ msgstr "@code{port}(默认值:@code{22})"
  67643. #, fuzzy
  67644. #~ msgid "@code{display-server} (default: @code{\"x11\"})"
  67645. #~ msgstr "@code{display}(默认值:@code{\":0\"})"
  67646. #, fuzzy
  67647. #~ msgid "@code{auto-login-session} (default: @code{\"\"})"
  67648. #~ msgstr "@code{max-zone-size}(默认值:@code{#f})"
  67649. #~ msgid "./etc/indent-code.el gnu/packages/@var{file}.scm @var{package}\n"
  67650. #~ msgstr "./etc/indent-code.el gnu/packages/@var{文件}.scm @var{软件包}\n"
  67651. #~ 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:"
  67652. #~ msgstr "这会调用Emacs以批处理模式自动地缩进@file{gnu/packages/@var{文件}.scm}里@var{软件包}的定义。如果想缩进整个文件,省略第二个参数:"
  67653. #~ msgid "./etc/indent-code.el gnu/services/@var{file}.scm\n"
  67654. #~ msgstr "./etc/indent-code.el gnu/services/@var{文件}.scm\n"
  67655. #, fuzzy
  67656. #~ msgid ""
  67657. #~ " (build-machine\n"
  67658. #~ " (name \"armeight.example.org\")\n"
  67659. #~ " (systems (list \"aarch64-linux\"))\n"
  67660. #~ " (host-key \"ssh-rsa AAAAB3Nza@dots{}\")\n"
  67661. #~ " (user \"alice\")\n"
  67662. #~ " (private-key\n"
  67663. #~ " (string-append (getenv \"HOME\")\n"
  67664. #~ " \"/.ssh/identity-for-guix\"))))\n"
  67665. #~ msgstr ""
  67666. #~ " (build-machine\n"
  67667. #~ " (name \"meeps.example.org\")\n"
  67668. #~ " (system \"mips64el-linux\")\n"
  67669. #~ " (host-key \"ssh-rsa AAAAB3Nza@dots{}\")\n"
  67670. #~ " (user \"alice\")\n"
  67671. #~ " (private-key\n"
  67672. #~ " (string-append (getenv \"HOME\")\n"
  67673. #~ " \"/.ssh/identity-for-guix\"))))\n"
  67674. #~ msgid "git-send-email"
  67675. #~ msgstr "git-send-email"
  67676. #, fuzzy
  67677. #~ msgid "@code{opam}, the default opam repository,"
  67678. #~ msgstr "@code{mate}(默认值:@code{mate})"
  67679. #, fuzzy
  67680. #~ msgid "of coq packages."
  67681. #~ msgstr "定义新软件包。"
  67682. #~ msgid "Using Debbugs."
  67683. #~ msgstr "用Debbugs。"
  67684. #, fuzzy
  67685. #~| msgid "@xref{Invoking guix pack}, for more info on this handy tool."
  67686. #~ msgid "@xref{Build Phases}, for more info on build phases and ways to customize them."
  67687. #~ msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  67688. #~ msgid ""
  67689. #~ "(service qemu-binfmt-service-type\n"
  67690. #~ " (qemu-binfmt-configuration\n"
  67691. #~ " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))\n"
  67692. #~ " (guix-support? #t)))\n"
  67693. #~ msgstr ""
  67694. #~ "(service qemu-binfmt-service-type\n"
  67695. #~ " (qemu-binfmt-configuration\n"
  67696. #~ " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))\n"
  67697. #~ " (guix-support? #t)))\n"
  67698. #, fuzzy
  67699. #~| msgid "@code{zonefile-load} (default: @code{#f})"
  67700. #~ msgid "@code{queries-log-file} (default: @code{#f})"
  67701. #~ msgstr "@code{zonefile-load}(默认值:@code{#f})"
  67702. #, fuzzy
  67703. #~| msgid "@code{zonefile-load} (default: @code{#f})"
  67704. #~ msgid "@code{web-queries-log-file} (default: @code{#f})"
  67705. #~ msgstr "@code{zonefile-load}(默认值:@code{#f})"
  67706. #, fuzzy
  67707. #~| msgid "The host name of the remote machine."
  67708. #~ msgid "Size of the database writer queue."
  67709. #~ msgstr "远程机器的主机名。"
  67710. #, fuzzy
  67711. #~| msgid "Manage the operating system configuration."
  67712. #~ msgid "Data type representing the configuration of a simple Cuirass instance."
  67713. #~ msgstr "管理操作系统配置。"
  67714. #, fuzzy
  67715. #~| msgid "Channels"
  67716. #~ msgid "channel-name"
  67717. #~ msgstr "通道"
  67718. #, fuzzy
  67719. #~| msgid "@code{includes} (default: @code{'()})"
  67720. #~ msgid "@code{non-package-channels} (default: @code{'()})"
  67721. #~ msgstr "@code{includes}(默认值:@code{'()})"
  67722. #, fuzzy
  67723. #~| msgid "@code{zonefile-load} (default: @code{#f})"
  67724. #~ msgid "@code{password-file} (default: @code{#f})"
  67725. #~ msgstr "@code{zonefile-load}(默认值:@code{#f})"
  67726. #~ 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."
  67727. #~ msgstr "通常,@code{master}之外的其它分支如果最近被评审过,或有一个对应的@code{-next}分支,则被视为@emph{冻结}状态。如果不清楚该把补丁放到哪里,请在邮件列表或IRC上提问。"
  67728. #~ msgid "@xref{Invoking guix environment}, for more information on that command. Extra dependencies can be added with @option{--ad-hoc}:"
  67729. #~ msgstr "这个命令更多的信息请参考@xref{Invoking guix environment}。额外的依赖可以通过@option{--ad-hoc}选项添加:"
  67730. #~ 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!"
  67731. #~ msgstr "小端序64位ARMv8-A处理器,Linux-Libre内核。目前处于实验阶段,支持有限。@xref{Contributing},提供帮助!"
  67732. #~ msgid "@url{https://zlib.net, zlib};"
  67733. #~ msgstr "@url{https://zlib.net, zlib};"
  67734. #~ 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."
  67735. #~ msgstr "当一个已经安装的且可用的@url{https://nixos.org/nix/, Nix包管理器}存在时,你可以为Guix配置@code{--disable-daemon}参数。那样Nix可以替换上面的三个依赖。"
  67736. #~ 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."
  67737. #~ 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}参数不是必须的。"
  67738. #~ msgid "Do not use the @dfn{build hook}."
  67739. #~ msgstr "不要使用@dfn{构建钩子}。"
  67740. #~ 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})."
  67741. #~ msgstr "构建钩子是一个可以被后台进程启动并且提交构建请求的辅助程序。这个机制被用来向其它机器下发构建。(@pxref{Daemon Offload Setup})。"
  67742. #~ 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}."
  67743. #~ msgstr "@code{guix}软件包必须保留在@code{root}的profile里,否则它会被垃圾回收清理掉--那时你会发现缺少@command{guix}命令。换句话说,不要用@code{guix package -r guix}命令删除@code{guix}。"