Beruflich Dokumente
Kultur Dokumente
Retrieved August 27, 2009 from http://wiki.arch i!u".org/i!de".php/#egi!!ers$%uide &ermissio! is gra!ted to copy, distri'ute a!d/or modify this docume!t u!der the terms of the %() *ree +ocume!tatio! ,ice!se, -ersio! ..2 or a!y ater versio! pu' ished 'y the *ree /oftware *ou!datio!0 with !o 1!varia!t /ectio!s, !o *ro!t2Cover 3e"ts, a!d !o #ack2Cover 3e"ts. A copy of the ice!se is i!c uded i! the sectio! e!tit ed 4%() *ree +ocume!tatio! ,ice!se4. *or i!formatio! o! this 'ook et, p ease co!tact +usty &hi ips at dusty5arch i!u".ca
Cover and Book Design by Dusty Phillips. Printed in the United States by A a!on CreateSpa"e. Designed in Canada. #A$%&'( 9)*&++*,99,0.SB$%&0( &++*,99,0,
/able o0 Contents
Table of Contents
/able o0 Contents............................................................& Pre0a"e.............................................................................Part .( .nstall the Base Syste ........................................9 Step &( 1btain the latest .nstallation edia ...............9 Step 2( Boot Ar"h 2inu3 .nstaller.............................&& Step '( Start the .nstallation.....................................&2 A( Sele"t an installation sour"e................................&2 B( Set Clo"k..............................................................&C( Prepare 4ard Drive..............................................&D( Sele"t Pa"kages...................................................2+ #( .nstall Pa"kages....................................................25( Con0igure the Syste ...........................................26( .nstall Bootloader................................................+2 4( 7eboot..................................................................++ Part ..( Con0igure8Update the $e9 Ar"h 2inu3 base syste ............................................................................+Step &( Con0iguring the net9ork :i0 ne"essary;........+Step 2( Update< Syn" and Upgrade the syste 9ith pa" an......................................................................-& Step '( Update Syste ..............................................,2 Step +( Add a user and setup groups.........................,' Step -( .nstall and setup Sudo :1ptional;.................,Part ...( .nstall = and "on0igure A2SA.........................,) Step &( Con0igure sound 9ith alsa i3er..................,) Step 2( .nstall =........................................................)0 Step '( Con0igure =..................................................)) Si ple baseline = test:i0 ne"essary;.........................*+ Part .>( .nstalling and "on0iguring a Desktop #nviron ent .................................................................*9 Step &( .nstall 5onts..................................................90 Step 2( ?@.3initr" :again;...........................................90 &
Ar"h 2inu3 4andbook Step '( .nstall a Desktop #nviron ent.....................9& Use0ul Appli"ations.....................................................&0Aeb bro9ser...........................................................&0100i"e......................................................................&0, >ideo Player...........................................................&0, Audio Player...........................................................&09 Code"s and other ulti edia "ontent types :i,*, only; .......................................................................&&& CD and D>D Burning............................................&&2 $et9orking.............................................................&&' />%Cards.................................................................&&+ Digital Ca eras......................................................&&USB Be ory Sti"ks @ 4ard Disks..........................&&An .ntrodu"tion to ABS...............................................&&) An .ntrodu"tion to /he AU7.......................................&2& .nstall an AU7 4elper............................................&2' 5ile and dire"tory e3planation.....................................&2Ar"h Boot Pro"ess.......................................................&'Boot S"ript 1vervie9.............................................&', agetty and login......................................................&'9 Baintaining the syste ...............................................&+& su.............................................................................&+& Pa" an...................................................................&+2 /9eaks@5inishing tou"hes...........................................&+9 4A2........................................................................&+9 Ba"kgrounding DA#B1$S on startup..................&+9 /urn o00 Control #"ho in Bash...............................&-0 Beauti0ying 5onts 0or 2CDCs..................................&-0 AdDusting Bouse 0or s"roll 9heel..........................&-0 6et All Bouse Buttons Aorking............................&-0 Con0iguring /ou"hpad 0or 2aptops........................&-0 AdDusting Eeyboard 2ayout...................................&-0 Additional t9eaks 0or laptops.................................&-& Con0iguring CPU 0reFuen"y s"aling......................&-& 2
/able o0 Contents P %Utils..................................................................&-2 2aptop%Bode..........................................................&-2 Add additional repositories.....................................&-' 6$U 5ree Do"u entation 2i"ense.............................&-6$U 5ree Do"u entation 2i"ense........................&-4o9 to use this 2i"ense 0or your do"u ents.........&,+
'
Pre0a"e
Preface
Everything you ever wanted to know about Arch, but were afraid to ask 6e come. 3his se f2co!tai!ed docume!t wi guide you through the process of i!sta i!g a!d co!figuri!g Arch ,i!u"0 a simp e, agi e a!d ightweight %()/,i!u" distri'utio!, UNIX2 ike operati!g system. Arch ,i!u" re7uires a certai! eve of i!timate k!ow edge of its co!figuratio! a!d of UNIX2 ike system methodo ogy a!d for this reaso!, e"tra e"p a!atory i!formatio! is i!c uded. 3his guide is aimed at !ew Arch users, 'ut strives to serve as a stro!g refere!ce a!d i!formative 'ase for a . Arch Linux distribution highlights: i!"le, UNIX2 ike desig! a!d phi osophy 1!depe!de!t y +eve oped Commu!ity distro 'ui t from scratch a!d targeted at compete!t %()/,i!u" users A packages compi ed for i#$#%x$#&#' 8igh y customi9a' e system assem' ed 'y the user from the grou!d up ( )&style init scripts, featuri!g o!e ce!tra i9ed co!figuratio! fi e !kinitc"io: a simp e a!d dy!amic i!itramfs creator *olling *elease mode Pac!an package ma!ager is fast, writte! i! C, ightweight a!d agi e, with a very modest memory footpri!t A( : 3he Arch (ui d ystem, a ports2 ike package 'ui di!g system makes it simp e to create your ow! easi y i!sta a' e Arch packages from source, to use a!d/or share with the commu!ity o! the A)R A+*: 3he Arch )ser Repository, offeri!g ma!y thousa!ds of 'ui d scripts for Arch user2provided software packages
Pre0a"e
"$he e%traordinary part of [my method] lies in its simplicity..$he height of cultivation always runs to simplicity." 2 #ruce ,ee About This 3uide 3he Arch wiki is a! e"ce e!t resource a!d shou d 'e co!su ted for issues first0 1RC ;free!ode Barch i!u"<, a!d the forums are a so avai a' e if the a!swer ca!!ot 'e fou!d. -ote: *o owi!g this guide c ose y is esse!tia i! order to successfu y i!sta a proper y co!figured Arch ,i!u" system, so p ease read it thorough y. 1t is stro!g y recomme!ded you read each sectio! comp ete y 'efore carryi!g out the tasks co!tai!ed. /i!ce %()/,i!u" +istri'utio!s are fu!dame!ta y =modu ar= 'y desig!, the guide is ogica y divided i!to C mai! compo!e!ts of a desktop UNIX2 ike operati!g system: Part /: /nstalling the (ase syste! Part //: Configure4+"date the -ew Arch Linux base syste! Part ///: /nstalling 5 and configuring AL A Part /6: /nstalling a )eskto" Environ!ent Welcome to Arch! Enjoy the installation; take your time and have fun! No ! let"s get started....
#$ installer
#ur! the .iso to a C+ with your preferred 'ur!er, a!d co!ti!ue with /tep 2: #oot Arch ,i!u" 1!sta er -ote: Aptica drives as we as C+ media 7ua ity vary great y, 'ut ge!era y, usi!g a s ow 'ur! speed is recomme!ded for re ia' e 'ur!s0 /ome users recomme!d speeds as ow as C" or 2". 1f you are e"perie!ci!g u!e"pected 'ehavior from the C+, try 'ur!i!g at the mi!imum speed supported 'y your system.
where if- is the path to the img fi e a!d of- is your )/# device. Hake sure to use /dev/sd% a!d !ot /dev/sd%.. Check !d9su! :o"tional;: Hake a !ote of the !um'er of records ;' ocks< read i! a!d writte! out, the! perform the fo owi!g check:
dd if=/dev/ dx count=number_of_records md" um tatu =noxfer !
3he mdIsum retur!ed shou d match the mdIsum of the dow! oaded arch i!u" image fi e0 they 'oth shou d match the mdIsum of the image as isted i! the mdIsums fi e i! the mirror distri'utio! site. 1indows 8ethod: +ow! oad +isk 1mager from https:// au!chpad.!et/wi!G22image2 writer/Jdow! oad. 1!sert f ash media. /tart the +isk 1mager a!d se ect the image fi e. /e ect the +rive etter associated with the f ash drive. C ick 4write4. Co!ti!ue with /tep 2: #oot Arch ,i!u" 1!sta er
&0
to the ker!e i!e, fo owed 'y M@(3@RN, for a .02C"7ED frame'uffer. 8it b to 'oot. 3he system wi !ow 'oot a!d prese!t a ogi! prompt. ,ogi! as =root= without 7uotes. 1f your system has errors tryi!g to 'oot from the ive C+ or there are other hardware errors, refer to the 1!sta atio! 3rou' eshooti!g wiki page.
&&
;rep ace layout with your key'oard ayout such as 4fr4 or 4belatin14<
$ocumentation
3he officia i!sta guide is avai a' e o! the ive system. 3he officia guide covers i!sta atio! a!d co!figuratio! of the 'ase system o! y. Cha!ge to vc/2 ;virtua co!so e B2< with MA,3NJ*2 a!d i!voke /usr/bin/less:
% le /arch/doc /official_in tallation_guide_en
less wi a ow you to page through the docume!t. Cha!ge 'ack to vc/. with MA,3NJ*.. Cha!ge 'ack to vc/2 if you !eed to refere!ce the Afficia %uide at a!y time.
&2
#onfigure Net ork ()T*+,TT*Avai a' e 1!terfaces wi 'e prese!ted. 1f a! i!terface a!d 86addr ;Hard1are address< is isted, the! your modu e has a ready 'ee! oaded. 1f your i!terface is !ot isted, you may pro'e it from the i!sta er, or ma!ua y do so from a!other virtua co!so e. 3he fo owi!g scree! wi prompt you to Select the interface, /robe, or 0ancel. Choose the appropriate i!terface a!d co!ti!ue. 3he i!sta er wi the! ask if you wish to use +8C&. Choosi!g :es wi ru! dhc"cd to discover a! avai a' e gateway a!d re7uest a! 1& address0 Choosi!g (o wi prompt you for your static 1&, !etmask, 'roadcast, gateway +(/ 1&, 833& pro"y, a!d *3& pro"y. ,ast y, you wi 'e prese!ted with a! overview to e!sure your e!tries are correct. 1ireless >uickstart ?or the Live Environ!ent :/f you need wireless connectivity during the installation "rocess; 3he wire ess drivers a!d uti ities are !ow avai a' e to you i! the ive e!viro!me!t of the i!sta atio! media. A good k!ow edge of your wire ess hardware wi 'e of key importa!ce to successfu co!figuratio!. (ote that the fo owi!g 7uickstart procedure wi i!itia i9e your wire ess hardware for use in the live environment. 3he 'asic procedure wi 'e: /witch to a free virtua co!so e, e.g.: MA,3NJ*G @!sure udev has oaded the driver, a!d that the driver has created a usa' e wire ess ker!e i!terface with /usr/sbin/iwconfig:
&'
;Autput shou d show a! avai a' e wire ess i!terface< #ri!g the i!terface up with /sbin/ifconfig <interface> up. A! e"amp e, usi!g a! atheros card a!d madwifi driver:
% ifconfig ath0 up
;Remem'er, your i!terface may 'e !amed somethi!g e se, depe!di!g o! your modu e ;driver< a!d chipset: w a!0, eth., etc.< /pecify the id of the wire ess !etwork with iwco!fig Mi!terfaceN essid 4MyouressidN4 key MyourwepkeyN ;give the essid ;the =!etwork !ame=< of the !etwork i! 7uotes<. A! e"amp e usi!g 6@&:
% i(config ath0 e id )lin& ' ) &e' 02*+,af$*c
+o!e.
&+
(: et Clock
)3C 2 Choose )3C if ru!!i!g o! y UNIX2 ike operati!g system;s<. oca time 2 Choose oca if mu ti2'ooti!g with a Hicrosoft 6i!dows A/.
&-
3ake !ote of the disk;s</partitio!;s< to uti i9e for the Arch i!sta atio!. /witch 'ack to the i!sta atio! script with MA,3NJ*. /e ect the first me!u e!try 4&repare 8ard +rive4. Aptio! .: Auto &repare Auto2&repare divides the disk i!to the fo owi!g co!figuratio!: e"t2 /'oot partitio!, defau t si9e G2H#. 1ou will be prompted to modify the si#e to your re2uirement. swap partitio!, defau t si9e 2IEH#. 1ou will be prompted to modify the si#e to your re2uirement. A /eparate / a!d /home partitio!, ;si9es ca! a so 'e specified<. Avai a' e fi esystems i!c ude e"t2, e"tG, e"tC, reiserfs, "fs a!d Qfs, 'ut !ote that both 3 and 3home shall share the same fs type if choosi!g the Auto &repare optio!. #e war!ed that Auto2prepare wi comp ete y erase the chose! hard drive. Read the war!i!g prese!ted 'y the i!sta er very carefu y, a!d make sure the correct device is a'out to 'e partitio!ed. Aptio! 2: :*eco!!ended; &artitio! 8ard +rives ;with cfdisk< 3his optio! wi a ow for the most ro'ust a!d customi9ed partitio!i!g so utio! for your perso!a !eeds. t this point, more advanced !&(3,inu% users who are familiar and comfortable with manually partitioning may wish to s*ip down to $. &elect *ackages below. -ote: 1f you are i!sta i!g to a )/# f ash key, see 41!sta i!g Arch ,i!u" o! a )/# key4.
&,
&)
Partition che!e A disk partitio!i!g scheme is a very perso!a i9ed prefere!ce. @ach user=s choices wi 'e u!i7ue to their ow! computi!g ha'its a!d re7uireme!ts. *i esystem ca!didates for separate partitio!s i!c ude: % ;root< $he root filesystem is the primary filesystem from which all other filesystems stem4 the top of the hierarchy. ll files and directories appear under the root directory "3", even if they are stored on different physical devices. $he contents of the root filesystem must be ade2uate to boot, restore, recover, and3or repair the system. %boot $his directory contains the *ernel and ramdis* images as well as the bootloader configuration file, and bootloader stages. 3boot also stores data that is used before the *ernel begins e%ecuting userspace programs. $his may include saved master boot sectors and sector map files. %ho!e (ser data and user specific configuration files for applications are stored in each user's home directory in a file that starts with the '.' character )a "dot file"+. %usr 5hile root is the primary filesystem, 3usr is the secondary hierarchy, for user data, containing the ma6ority of )multi-+user utilities and applications. 3usr is shareable, read-only data. $his means that 3usr shall be shareable between various hosts and must not be written to, e%cept in the case of system update3upgrade. ny
&*
&9
How big should !y "artitions beA 3his 7uestio! is 'est a!swered 'ased upo! i!dividua !eeds. :ou may wish to simp y create one "artition for root and one "artition for swa" or only one root "artition without swa" or refer to the fo owi!g e"amp es a!d co!sider these guide i!es to provide a frame of refere!ce: 3he root fi esystem ;/< i! the e"amp e wi co!tai! the /usr directory, which ca! 'ecome moderate y arge, depe!di!g upo! how much software is i!sta ed. .I220 %# shou d 'e sufficie!t for most users. 3he /var fi esystem wi co!tai!, amo!g other data, the A#/ tree a!d the pacma! cache. Oeepi!g cached packages is usefu a!d versati e0 it provides the a'i ity to dow!grade packages if !eeded. /var te!ds to grow i! si9e0 the pacma! cache ca! grow arge over o!g periods of time, 'ut ca! 'e safe y c eared if !eeded. A!other adva!tage of havi!g a dedicated /var partitio! is if you=re usi!g a! //+. ,ocate your /var o! a! 8++ a!d keep the / a!d /home partitio!s o! your //+ to avoid !eed ess read/writes to the //+. E2D %igs o! a desktop system shou d therefore 'e sufficie!t for /var. /ervers te!d to have e"treme y arge /var fi esystems. 3he /home fi esystem is typica y where user data, dow! oads, a!d mu timedia reside. A! a desktop system, /home is typica y the argest fi esystem o! the drive 'y a arge margi!. Remem'er that if you chose to rei!sta Arch, a the data o! your /home partitio! wi 'e u!touched ;so o!g as you have a separate /home partitio!<.
20
Choose 1rite a!d type =yes.. #eware that this operatio! may destroy data o! your disk. Choose >uit to eave the partitio!er.
2&
22
2'
): elect Packages
(ow we sha se ect packages to i!sta i! our system. Core 1/A: Choose C+ as source a!d se ect the appropriate C+ drive if you have more tha! o!e. *3& 1/A: /e ect a! *3&/833& mirror. &ote that archlinu%.org is throttled to :;<'3s. &ackage se ectio! is sp it i!to two stages. *irst, se ect the package category: -ote: *or e"pedie!ce, a packages i! 'ase are se ected 'y defau t (ase: 3he mi!ima 'ase e!viro!me!t. lways select it and only remove pac*ages that you don't use. (ase&devel: @"tra too s such as !ake, auto!ake a!d wireless&tools as we as wire ess firmwares. =ost beginners should choose to install it, and will probably need it later.
2+
E: /nstall Packages
(e"t, choose =1!sta &ackages=. :ou wi 'e asked if you wish to keep the packages i! the pacma! cache. 1f you choose =yes=, you wi have the f e"i'i ity to dow!grade to previous package versio!s i! the future, so this is recomme!ded ;you ca! a ways c ear the cache i! the future<. 3he i!sta er script wi !ow i!sta the se ected packages, as we as the defau t Arch 2.E ker!e , to your system. *3& 1/A: 3he &acma! package ma!ager wi !ow dow! oad a!d i!sta your se ected packages. ;/ee vc/I for output, vc/. to retur! to the i!sta er< CAR@ 1/A: 3he packages wi 'e i!sta ed from the C+.
2-
Can the installer handle this !ore auto!aticallyA 8idi!g the process of system co!figuratio! is i! direct oppositio! to 3he Arch 6ay. 6hi e it is true that rece!t versio!s of the ker!e a!d hardware pro'i!g too s offer e"ce e!t hardware support a!d auto2co!figuratio!, Arch prese!ts the user a perti!e!t co!figuratio! fi es duri!g i!sta atio! for the purposes of transparency and system resource control. #y the time you have fi!ished modifyi!g these fi es to your specificatio!s, you wi have ear!ed the simp e method of ma!ua Arch ,i!u" system co!figuratio! a!d 'ecome more fami iar with the 'ase structure,
2,
+etc+rc.conf
Arch ,i!u" uses the fi e %etc%rc2conf as the pri!cipa ocatio! for system co!figuratio!. 3his o!e fi e co!tai!s a wide ra!ge of co!figuratio! i!formatio!, pri!cipa y used at system startup. As its !ame direct y imp ies, it a so co!tai!s setti!gs for a!d i!vokes the /etc/rcU fi es, a!d is, of course, sourced by these fi es. L,CAL/CAT/,- section L,CALEV: 3his sets your system oca e, which wi 'e used 'y a i.D!2aware app icatio!s a!d uti ities. :ou ca! get a ist of the avai a' e oca es 'y ru!!i!g = oca e 2a= from the comma!d i!e. 3his setti!g=s defau t is fi!e for )/ @!g ish users. HA*)1A*ECL,CDV: /pecifies whether the hardware c ock, which is sy!chro!i9ed o! 'oot a!d o! shutdow!, stores +TC time, or the localti!e. )3C makes se!se 'ecause it great y simp ifies cha!gi!g time9o!es a!d day ight savi!gs time. oca time is !ecessary if you dua 'oot with a! operati!g system such as 6i!dows, that o! y stores oca time to the hardware c ock. + E)/*ECT/ A: )se direct 1/A re7uest i!stead of /dev/rtc for hwc ock T/8EC,-EV: /pecify your 31H@WA(@. ;A avai a' e 9o!es are u!der /usr/share/9o!ei!fo/<. DEE8APV: 3he avai a' e keymaps are i! /usr/share/k'd/keymaps. & ease !ote that this setti!g is o! y va id for your 33:s, !ot a!y graphica wi!dow ma!agers or 5. C,- ,LE?,-TV: Avai a' e co!so e fo!ts reside u!der /usr/share/k'd/co!so efo!ts/ if you must cha!ge. 3he defau t ;' a!k< is safe. C,- ,LE8APV: +efi!es the co!so e map to oad with the setfo!t program at 'oot. &ossi' e maps are fou!d i!
2)
HA*)1A*E ection 8,)FA+T,L,A)V: /etti!g this to 4yes4 wi use udev to automatica y pro'e hardware a!d oad the appropriate modu es duri!g 'oot2up, ;co!ve!ie!t with the defau t modu ar ker!e <. /etti!g this to 4!o4 wi re y o! the user=s a'i ity to specify this i!formatio! ma!ua y, or compi e their ow! custom ker!e a!d modu es, etc. 8,)F(LACDL/ TV: 3his has 'ecome deprecated i! favor of addi!g ' ack isted modu es direct y to the 8,)+LE G i!e 'e ow. 8,)+LE V: /pecify additio!a HA+),@/ if you k!ow that a! importa!t modu e is missi!g. 1f your system has a!y f oppy drives, add 4f oppy4. 1f you wi 'e usi!g oop'ack fi esystems, add 4 oop4. A so specify a!y ' ack isted modu es 'y prefi"i!g them with a 'a!g ;P<. )dev wi 'e forced (A3 to oad ' ack isted modu es. 1! the e"amp e, the 1&vE modu e as we as the a!!oyi!g pcspeaker are ' ack isted.
2*
-ET1,*D/-3 ection H, T-A8EV:/et your 8A/3(AH@ to your iki!g. ethHV: =@ther!et, card 0=. AdQust the i!terface 1& address, !etmask a!d 'roadcast address if you are usi!g static /P. /et eth0V4dhcp4 if you wa!t to use )HCP /-TE*?ACE V: /pecify a i!terfaces here. gatewayV: 1f you are usi!g static /P, set the gateway address. 1f usi!g )HCP, you ca! usua y ig!ore this varia' e, though some users have reported the !eed to defi!e it. *,+TE V: 1f you are usi!g static /P, remove the 0 i! fro!t of =gateway=. 1f usi!g )HCP, you ca! usua y eave this varia' e comme!ted out with the 'a!g ;P<, 'ut agai!, some users re7uire the gateway a!d RA)3@/ defi!ed. 1f you e"perie!ce !etworki!g issues with pacma!, for i!sta!ce, you may wa!t to retur! to these varia' es.
29
=810-:5;=)arch) %eth0=)eth0 +92.+68.0.2 netma & 2"".2"".2"".0 ,roadca t +92.+68.0.2"") eth0=)dhcp) B-0;>.:9;1=4eth07 gate(a'=)default g( +92.+68.0.+) >8<0;1=4Fgate(a'7
-ote: Arch uses the dhcpcd +8C& c ie!t. A ter!ative y, dhc ie!t is avai a' e from the Ke"traL repository via pacma!.
=810-:5;=)arch) eth0=)eth0 +92.+68.0.2 netma & 2"".2"".2"".0 ,roadca t +92.+68.0.2"") B-0;>.:9;1=4eth07 gate(a'=)default g( +92.+68.0.+) >8<0;1=4gate(a'7
Ti": 1f you a so re7uire usi!g a !o!2sta!dard H3) si9e ;a.k.a. Qum'o frames< to speed up i!tra!et "fers A(+ your hardware supports them, see the ?um'o *rames wiki artic e for further co!figuratio!.
-ote: 1! some cases, users wi !eed to modify their /etc/res ov.co!f to preve!t the dhcpcd daemo! from overwriti!g the +(/ e!tries. Hodify your /etc/reslo .conf to co!tai! i!es to your the +(/=s that your 1/& uses.
'0
Ti": 1f you are u!sure what va ues to use i! the /etc/reslo .conf simp y co!figure your system to use +8C& a!d ook at the /etc/reslo .conf which shou d 'e automatica y set for you. :ou may use these va ues. *i!a y, /etc/conf.d/dhcpcd !eeds to 'e tweaked to keep the dhcpcd from overwriti!g your /etc/reslo .conf which wi happe! without this modificatio!:
% :rgument % to ,e pa ed to the ?=9/ client daemon
)AE8,-
ection
3his array simp y ists the !ames of those scripts co!tai!ed i! /etc/rc.d/ which are to 'e started duri!g the 'oot process, a!d the order i! which they start.
?:;58-1=4net(or& H ' log-ng netf Hcrond7
1f a script !ame is prefi"ed with a 'a!g ;P<, it is !ot e"ecuted. 1f a script is prefi"ed with a! 4at4 sym'o ;5<, it sha 'e e"ecuted i! the 'ackgrou!d0 the startup se7ue!ce wi !ot wait for successfu comp etio! of each daemo! 'efore co!ti!ui!g to the !e"t. ;)sefu for speedi!g up system 'oot<. +o !ot 'ackgrou!d daemo!s that are !eeded 'y other
'&
:ou do !ot have to cha!ge the daemo!s i!e at this time, 'ut it is usefu to e"p ai! what daemo!s are, 'ecause we !eed them ater i! this guide. A daemon is a program that ru!s i! the 'ackgrou!d, waiti!g for eve!ts to occur a!d offeri!g services. A good e"amp e is a we'server that waits for a re7uest to de iver a page or a! //8 server waiti!g for someo!e tryi!g to og i!. 6hi e these are fu 2 featured app icatio!s, there are daemo!s whose work is !ot that visi' e. @"amp es are a daemo! which writes messages i!to a og fi e ;e.g. sys og, meta og<, a daemo! which owers your C&)=s fre7ue!cy if your system has !othi!g to do ;e.g.:cpufre7<, a!d a daemo! which offers you a graphica ogi! ;e.g.: gdm, kdm<. A these programs ca! 'e added to the daemo!s i!e a!d wi 'e started whe! the system 'oots. )sefu daemo!s wi 'e prese!ted duri!g this guide. 8istorica y, the term daemon was coi!ed 'y the programmers of H13=s &roQect HAC. 3hey took the !ame from =a%well's demon, a! imagi!ary 'ei!g from a famous thought e"perime!t that co!sta!t y works i! the 'ackgrou!d, sorti!g mo ecu es. UNIX systems i!herited this termi!o ogy a!d created the 'ackro!ym disk a!d e"ecutio! !onitor. Ti": A Arch daemo!s reside u!der /etc/rc.d/
+etc+fstab
3he fstab ;for fi e systems tab e< is part of the system co!figuratio! isti!g a avai a' e disks a!d disk partitio!s, a!d i!dicati!g how they are to 'e i!itia i9ed or otherwise i!tegrated i!to the overa
'2
-ote: 3he =!oatime= optio! disa' es writi!g read access times to the metadata of fi es a!d may safe y 'e appe!ded to / a!d /home regard ess of your specified fi esystem type for i!creased speed, performa!ce, a!d power efficie!cy. =!otai = disa' es the Reiser*/ tai packi!g feature, for added performa!ce at the cost of s ight y ess efficie!t disk usage.
''
wi
'+
wi show a ist corre ati!g each partitio! with its a'e , fi esystem type a!d ))1+. &ote? this command is installed by the e6fsprogs pac*age. IdirJ: descri'es the mou!t poi!t for the fi esystem. *or swap partitio!s, this fie d shou d 'e specified as =swap=0 ;/wap partitio!s are !ot actua y mou!ted.< Ity"eJ: descri'es the type of the fi esystem. 3he ,i!u" ker!e supports ma!y fi esystem types. ;*or the fi esystems curre!t y supported 'y the ru!!i!g ker!e , see /proc/fi esystems<. A! e!try =swap= de!otes a fi e or partitio! to 'e used for swappi!g. A! e!try =ig!ore= causes the i!e to 'e ig!ored. 3his is usefu to show disk partitio!s which are curre!t y u!used. Io"tionsJ: descri'es the mou!t optio!s associated with the fi esystem. 1t is formatted as a comma separated ist of optio!s with !o i!terve!i!g spaces. 1t co!tai!s at east the type of mou!t p us a!y additio!a optio!s appropriate to the fi esystem type. *or docume!tatio! o! the avai a' e optio!s for !o!2!fs fi e systems, see mou!t;D<. Idu!"J: used 'y the dump;D< comma!d to determi!e which fi esystems are to 'e dumped. dump is a 'ackup uti ity. 1f the fifth fie d is !ot prese!t, a va ue of 9ero is retur!ed a!d dump wi assume that the fi esystem does !ot !eed to 'e 'acked up. &ote that dump is not installed by default. I"assJ: used 'y the fsck;D< program to determi!e the order i! which fi esystem checks are do!e at 'oot time. 3he root fi esystem shou d 'e specified with a MpassN of ., a!d other fi esystems shou d have a MpassN of 2 or 0. *i esystems withi! a drive wi 'e checked se7ue!tia y, 'ut fi esystems o! differe!t drives wi 'e checked at the same time to uti i9e para e ism avai a' e i! the hardware. 1f the si"th fie d is !ot prese!t or 9ero, a va ue of 9ero is retur!ed a!d
'-
+etc+mkinitcpio.conf
3his fi e a ows you to fi!e2tu!e the i!itia ram fi esystem ;a so commo! y referred to as the i!itia ramdisk or 4i!itrd4< for your system. 3he i!itrd is a g9ipped image that is read 'y the ker!e duri!g 'oot. 3he purpose of the i!itrd is to 'ootstrap the system to the poi!t where it ca! access the root fi esystem. 3his mea!s it has to oad a!y modu es that are re7uired for devices ike 1+@, /C/1, or /A3A drives ;or )/#/*6, if you are 'ooti!g off a )/#/*6 drive<. A!ce the i!itrd oads the proper modu es, either ma!ua y or through udev, it passes co!tro to the Arch system a!d your 'oot co!ti!ues. *or this reaso!, the i!itrd o! y !eeds to co!tai! the modu es !ecessary to access the root fi esystem. 1t does !ot !eed to co!tai! every modu e you wou d ever wa!t to use. 3he maQority of your everyday modu es wi 'e oaded ater o! 'y udev, duri!g the i!it process. !kinitc"io is the !e"t ge!eratio! of initra!fs creation. 1t has ma!y adva!tages over the o d !kinitrd a!d !kinitra!fs scripts. 1t uses klibc a!d kinit which are deve oped 'y ,i!u" ker!e devs to provide a sma a!d ightweight 'ase for ear y userspace. 1t ca! use udev for hardware autodetectio! at ru!time, thus preve!ts you from havi!g to!s of u!!ecessary modu es oaded. 1ts hook2'ased i!it script is easi y e"te!da' e with custom hooks, which ca! easi y 'e i!c uded i! pacma! packages without havi!g to modifiy mki!itcpio itse f.
',
Atherwise if 'oot fai s for some reaso! you wi 'e asked to e!ter root=s password for system mai!te!a!ce 'ut wi 'e u!a' e to do so. If you are using a (S *eyboard editing this configuration should be unnecessary at this point. !kinitc"io was deve oped 'y Aaro! %riffi! a!d 3o'ias &owa owski with some he p from the commu!ity.
+etc+modprobe.conf
1t is u!!ecessary to co!figure this fi e at this time. !od"robe2conf ca! 'e used to set specia co!figuratio! optio!s for the ker!e modu es -ote: 3he !ew modu e2i!it2too s G.D package cha!ges the ocatio! of the co!figuratio! fi e: /etc/modpro'e.co!f is !o o!ger read, i!stead /etc/modpro'e.d/modpro'e.co!f is used. i!k
')
Ar"h 2inu3 4andbook +etc+resolv.conf (for &tatic 7*3he resolver is a set of routi!es i! the C i'rary that provide access to the 1!ter!et +omai! (ame /ystem ;+(/<. A!e of the mai! fu!ctio!s of +(/ is to tra!s ate domai! !ames i!to 1& addresses, to make the 6e' a frie!d ier p ace. 3he reso ver co!figuratio! fi e, or /etc/reso v.co!f, co!tai!s i!formatio! that is read 'y the reso ver routi!es the first time they are i!voked 'y a process. If you are using >@0/, you may safely ignore this file, as by default, it will be dynamically created and destroyed by the dhcpcd daemon. 1ou may change this default behavior if you wish. )See &etwor*]+. 1f you use a static 1&, set your +(/ servers i! /etc/reso v.co!f ;!ameserver Mip2addressN<. :ou may have as ma!y as you wish. A! e"amp e, usi!g Ape!+(/:
name erver 208.6#.222.222 name erver 208.6#.220.220
1f you are usi!g a router, you wi pro'a' y wa!t to specify your +(/ servers i! the router itse f, a!d mere y poi!t to it from your %etc%resolv2conf, usi!g your router=s 1& ;which is a so your gateway from %etc%rc2conf<, e.g.:
name erver +92.+68.+.+
1f usi!g )HCP, you may a so specify your +(/ servers i! the router, or a ow automatic assig!me!t from your 1/&, if your 1/& is so e7uipped.
+etc+hosts
3his fi e associates 1& addresses with host!ames a!d a iases, o!e i!e per 1& address. *or each host a si!g e i!e shou d 'e prese!t with the fo owi!g i!formatio!:
'*
Add your hostname, coi!cidi!g with the o!e specified i! /etc/rc.co!f, as a! a ias, so that it ooks ike this:
+2#.0.0.+ localho t.localdomain yourhostname localho t
3his format, including the .localhost. and your actual host na!e, is re7uired for program compati'i ityP /o, if you have !amed your computer Archhost, the! that i!e a'ove shou d ook ike this:
+2#.0.0.+ localho t.localdomain localho t :rchho t
@rrors i! this e!try may cause poor !etwork performa!ce a!d/or certai! programs to ope! very s ow y, or !ot work at a . 3his is a very commo! error for 'egi!!ers. 1f you use a static 1&, add a!other i!e usi!g the sy!ta": Mstatic21&N Mhost!ame.domai!!ame.orgN Mhost!ameN e.g.:
+92.+68.+.+00 yourhostname.domain.org yourhostname
Ti": *or co!ve!ie!ce, you may a so use /etc/hosts a iases for hosts o! your !etwork, a!d/or o! the 6e', e.g.:
6*.2$$.+69.+0$ (((.google.com +92.+68.+.90 media +92.+68.+.88 data g
3he a'ove e"amp e wou d a ow you to access goog e simp y 'y typi!g =g= i!to your 'rowser, a!d access to a media a!d data server o! your !etwork 'y !ame a!d without the !eed for typi!g out their respective 1& addresses.
'9
hdM :22
restrict it to a certai! ip
hdM +92.+68.0.+
1f you do !ot p a! o! usi!g the ssh daemo!, eave this fi e at the defau t, ;empty<, for added security.
+etc+locale.gen
3he %usr%sbin%locale&gen comma!d reads from %etc%locale2gen to ge!erate specific oca es. 3hey ca! the! 'e used 'y glibc a!d a!y other oca e2aware program or i'rary for re!deri!g 4pecu iar4 te"t, correct y disp ayi!g regio!a mo!etary va ues, time a!d date formats, a pha'etic idiosy!crasies, a!d other oca e2specific sta!dards. 3he a'i ity to setup a defau t oca e is a great 'ui t2i! privi ege of usi!g a UNIX2 ike operati!g system.
+0
3he i!sta er wi !ow ru! the oca e2ge! script, which wi ge!erate the oca es you specified. :ou may cha!ge your oca e i! the future 'y editi!g /etc/ oca e.ge! a!d su'se7ue!t y ru!!i!g = oca e2ge!= as root. -ote: 7f you fail to choose your locale! this ill lead to a 8The current locale is invalid...8 error. This is perhaps the most common mistake by ne Arch users! and also leads to the most commonly asked 9uestions on the forum.
*acman;5irror
Choose a mirror repository for "ac!an. archlinu%.org is throttled, limiting downloads to :;<'3s Retur! to the mai! me!u.
+&
3: /nstall (ootloader
#ecause we have !o seco!dary operati!g system i! our e"amp e, we wi !eed a 'oot oader. %() %R)# is the recomme!ded 'oot oader. A ter!ative y, you may choose ,1,A.
3:%'
3he provided 3*+( co!figuratio! ;%boot%grub%!enu2lst< shou d 'e sufficie!t, 'ut verify its co!te!ts to e!sure accuracy ;specifica y, e!sure that the root ;/< partitio! is specified 'y ))1+ o! i!e G<. :ou may wa!t to a ter the reso utio! of the co!so e 'y addi!g a vgaVM!um'erN ker!e argume!t correspo!di!g to your desired virtua co!so e reso utio!. ;A ta' e of reso utio!s a!d the correspo!di!g !um'ers is pri!ted i! the me!u. st.< @"amp e:
title root &ernel 9$$9.. initrd :rch 2inux 45ain7 4hd0K07 /,oot/vmlinu326 root=/dev/di &/,'-uuid/0ec+ro vga=##$ /,oot/&ernel26.img
-ote: $he linu% *ernel, 'vmlinu#', is so named because it incorporated virtual memory capability early in its development. $he < denotes a #ipped )compressed+ image. @"p a!atio!: ,i!e .: title: A pri!ted me!u se ectio!. 4Arch ,i!u" ;Hai!<4 wi 'e pri!ted o! the scree! as a me!u se ectio!. ,i!e 2: root: 3*+(.s root0 the drive a!d partitio! where the ker!e ;/'oot< resides, accordi!g to system #1A/. ;Hore accurate y, where %R)#=s stage2 fi e resides<. -,T necessarily the root ;/< fi e system, as they ca! reside o! separate partitio!s. %R)#=s !um'eri!g scheme starts at 0, a!d uses a! hd%,% format regard ess of 1+@ or /A3A, a!d e!c osed withi! pare!theses.
+2
+'
H: *eboot
3hat=s it0 :ou have co!figured a!d i!sta ed your Arch ,i!u" 'ase system. @"it the i!sta , a!d re'oot:
% re,oot
++
If you have successfully established a networ* connection, continue with %pdate! &ync and %pgrade the system ith pacman. 1f, after tryi!g to pi!g www.goog e.com, a! 4u!k!ow! host4 error is received, you may co!c ude that your !etwork is !ot proper y
+-
Wired >AN
Check your @ther!et with
% ifconfig -a
A i!terfaces wi 'e isted. :ou shou d see a! e!try for eth0, or perhaps eth.. tatic /P 1f re7uired, you ca! set a !ew static 1& with:
% ifconfig eth0 Iip addre J netma & Inetma &J up
-erify that /etc/reso v.co!f co!tai!s your +(/ server a!d add it if it is missi!g. Check your !etwork agai! with pi!g www.goog e.com. 1f everythi!g is worki!g !ow, adQust /etc/rc.co!f as descri'ed a'ove for static 1&.
+,
Wireless >AN
@!sure the driver has created a usa' e i!terface:
% i(config
/pecify the id of the wire ess !etwork with iwconfig <interface> essid <!ouressid>. Ar, if usi!g 6@&0 iwconfig <interface> essid <!ouressid> ke! <!ourwepke!>, e.g.:
% i(config (lan0 e id lin& ' &e' :69?;.0+2$*
+)
Analog 5odem
3o 'e a' e to use a 8ayes2compati' e, e"ter!a , a!a og modem, you !eed to at east have the ppp package i!sta ed. Hodify the fi e /etc/ppp/optio!s to suit your !eeds a!d accordi!g to ma! pppd. :ou wi !eed to defi!e a chat script to supp y your user!ame a!d password to the 1/& after the i!itia co!!ectio! has 'ee! esta' ished. 3he ma!pages for pppd a!d chat have e"amp es i! them that shou d suffice to get a co!!ectio! up a!d ru!!i!g if you=re either e"perie!ced or stu''or! e!ough. 6ith udev, your seria ports usua y are /dev/tts/0 a!d /dev/tts/.. 1!stead of fighti!g a g orious 'att e with the p ai! pppd, you may opt to i!sta wvdia or a simi ar too to ease the setup process co!sidera' y. 1! case you=re usi!g a so2ca ed 6i!Hodem, which is 'asica y a &C1 p ugi! card worki!g as a! i!ter!a a!a og modem, you shou d i!du ge i! the vast i!formatio! fou!d o! the ,i!Hodem homepage.
7&$N
/etti!g up 1/+( is do!e i! three steps: .. 1!sta a!d co!figure hardware 2. 1!sta a!d co!figure the 1/+( uti ities G. Add setti!gs for your 1/& 3he curre!t Arch stock ker!e s i!c ude the !ecessary 1/+( modu es, mea!i!g that you wi !ot !eed to recompi e your ker!e
+*
3his wi oad the hisa" modu e for my @,/A Fuickstep .000&C1, 'ei!g used i! %erma!y with the @+//. protoco . :ou shou d fi!d he pfu de'uggi!g output i! your /var/ og/everythi!g. og fi e, i! which you shou d see your card 'ei!g prepared for actio!. & ease !ote that you wi pro'a' y !eed to oad some )/# modu es 'efore you ca! work with a! e"ter!a )/# 1/+( Adapter. A!ce you have co!firmed that your card works with certai! setti!gs, you ca! add the modu e optio!s to your /etc/modpro'e.co!f:
alia ippp0 hi ax option hi ax t'pe=+8 protocol=2
A ter!ative y, you ca! add o! y the optio!s i!e here, a!d add hisa" to your HA+),@/ array i! the rc.co!f. 1t=s your choice, rea y, 'ut this e"amp e has the adva!tage that the modu e wi !ot 'e oaded u!ti it=s rea y !eeded. 3hat 'ei!g do!e, you shou d have worki!g, supported hardware. (ow you !eed the 'asic uti ities to actua y use itP
+9
as root. 1f you have a!y pro' ems, remem'er to check the ogfi esP
$&> (***oE3hese i!structio!s are re eva!t to you o! y if your &C itse f is supposed to ma!age the co!!ectio! to your 1/&. :ou do !ot !eed to do a!ythi!g 'ut defi!e a correct defau t gateway if you are usi!g a separate router of some sort to do the gru!t work. #efore you ca! use your +/, o! i!e co!!ectio!, you wi have to physica y i!sta the !etwork card that is supposed to 'e co!!ected to the +/,2Hodem i!to your computer. After addi!g your !ew y i!sta ed !etwork card to the modu es.co!f/modpro'e.co!f or the HA+),@/ array, you shou d i!sta the rp2pppoe package a!d ru! the pppoe2setup script to co!figure your co!!ectio!. After you have e!tered a the data, you ca! co!!ect a!d disco!!ect your i!e with
-0
a!d
% /etc/rc.d/ad l top
respective y. 3he setup usua y is rather easy a!d straightforward, 'ut fee free to read the ma!pages for hi!ts. 1f you wa!t to automatica y =dia i!= o! 'oot2up, add ads to your +A@HA(/ array, a!d put a P 'efore the !etwork e!try, si!ce the !etwork is ha!d ed 'y ads !ow.
te" <: +"date, ync and +"grade the syste! with "ac!an
(ow we wi update the system usi!g pacma!.
What is pacman ?
&acma! is the "ackage !anager of Arch ,i!u". &acma! is writte! i! 0 a!d is desig!ed from the grou!d up to 'e ightweight with a very modest memory footpri!t, fast, simp e, a!d versati e. 1t ma!ages your e!tire package system a!d ha!d es i!sta atio!, remova , package dow!grade ;through cache<, custom compi ed package ha!d i!g, automatic depe!de!cy reso utio!, remote a!d oca searches a!d much more. &acma!=s output is stream i!ed, very reada' e a!d provides @3A for each package dow! oad. Arch uses the .tar.g9 package format, which further e!ha!ces pacma!=s speed0 %9ipped tar'a s, though s ight y arger, are decompressed ma!y times faster tha! their #9ipped cou!terparts, a!d are therefore i!sta ed much more e"pedie!t y. 6e wi use pacma! to dow! oad software packages from remote repositories a!d i!sta them o!to your system.
-&
NextraO 3he Ke"traL repository co!tai!s a Arch packages that are !ot themse ves !ecessary for a 'ase Arch system, 'ut co!tri'ute to a more fu 2featured e!viro!me!t. 5, O+@, a!d Apache, for i!sta!ce, ca! 'e fou!d here. +eve oper mai!tai!ed A 'i!ary packages pacma! accessi' e NtestingO 3he Ktesti!gL repository co!tai!s packages that are ca!didates for the KcoreL or Ke"traL repositories. (ew packages go i!to Ktesti!gL if:
-2
1arning: A! y e"perie!ced users shou d use Ktesti!gL. Nco!!unityO 3he Kcommu!ityL repository is mai!tai!ed 'y the $rusted (sers )$(s+ a!d is simp y the 'i!ary 'ra!ch of the rch (ser Aepository ) (A+. 1t co!tai!s 'i!ary packages which origi!ated as &O%#)1,+s from (A Ku!supportedL that have ac7uired e!ough votes a!d were adopted 'y a $(. ,ike a repos isted a'ove, Kcommu!ityL may 'e readi y accessed 'y pacma!. 3) mai!tai!ed A 'i!ary packages pacma! accessi' e A+* :unsu""orted; 3he A+* a so co!tai!s the unsu""orted 'ra!ch, which ca!!ot 'e accessed direct y 'y pacma!U. A+* Ku!supportedL does !ot co!tai! 'i!ary packages. Rather, it provides more tha! si"tee! thousa!d &O%#)1,+ scripts for 'ui di!g packages from source, that may 'e u!avai a' e through the other repos. 6he! a! A)R u!supported
-'
@"amp e:
-+
--
% 5i c option 4all di a,led ,' default7 %-o/a ive.tp %< e1' log %1ho(1i3e %< e?elta %0otal?o(nload %
-,
-)
% :n example of a cu tom pac&age repo itor'. pacman manpage for % tip on creating 'our o(n repo itorie . %[cu tom] %1erver = fileM///home/cu tomp&g
1ee the
@!a' e a desired repositories ;remove the B i! fro!t of the =1!c ude V= a!d =KrepositoryL= i!es<. When choosing repos! be sure to uncomment both the repository header lines in @bracketsA as ell as the "7nclude B" lines. )ailure to do so ill result in the selected repository being omitted! This is a very common error.
+etc+pacman.d+mirrorlist
*aster mirrors wi dramatica y improve pacma! performa!ce, a!d your overa Arch ,i!u" e"perie!ce. @dit /etc/pacma!.d/mirror ist: 8anually:
% nano /etc/pacman.d/mirrorli t
Remove a mirrors which are !ot o! your co!ti!e!t, or are e"treme y dista!t. 1! !a!o, KC3R,LJO wi cut each u!!eeded i!e. @dit /etc/pacma!.d/mirror ist 'y p aci!g the 'est mirror at the top of the ist. ;Reca that arch i!u".org is thrott ed to I0O#/s<. 1! !a!o, KA,3LJA se ects a! area, cursor dow! marks the i!es, KC3R,LJO cuts the se ected area a!d KC3R,LJ) u!cuts, or pastes it. Alternative, using the rank!irrors scri"t: /usr/bin/rankmirrors is a pytho! script which wi attempt to detect the mirrors which are c osest to you.
-*
@dit mirror ist.'ackup a!d u!comme!t mirrors you wa!t to test with ra!kmirrors. Ru! the script agai!st the mirror ist.'ackup with the 2! switch a!d redirect output to a !ew /etc/pacma!.d/mirror ist fi e:
% ran&mirror -n 6 mirrorli t.,ac&up J mirrorli t
&n #: ra!k the E fastest mirrors ?orce "ac!an to refresh the "ackage lists After creati!g/editi!g your /etc/pacma!.d/mirror ist, ;ma!ua y or 'y /usr/bin/rankmirrors< issue the fo owi!g comma!d:
% pacman -1''
&assi!g two 22refresh or 2y f ags forces pacma! to refresh a package ists eve! if they are co!sidered to 'e up to date. 1ssui!g pacma! 2/yy whenever a mirror is changed, is good practice a!d wi avoid possi' e headaches.
-9
7gnoring packages
6he! you e"ecute the comma!d 4pacma! 2/yu4, your e!tire system wi 'e updated. 1t is possi' e that you wa!t to preve!t a package from 'ei!g upgraded. A! e"amp e cou d 'e the ker!e ;ker!e 2E< or a package for which a! upgrade may prove pro' ematic for your system. 1! this case, you have two optio!s0 i!dicate the package;s< you wa!t to skip i! the pacma! comma!d i!e usi!g the 22ig!ore switch ;do pacma! 2/ 22he p for detai s< or perma!e!t y i!dicate the package;s< you wa!t to skip i! your /etc/pacma!.co!f fi e i! the 1g!ore&kg array. ,ist each package, with o!e i!terve!i!g space :
Bgnore/&g = (ine
3he typica way to use Arch is to use pacma! to i!sta a packages u! ess there is !o package avai a' e, i! which case you ca! 'ui d your ow! package usi!g A#/. Ha!y user2co!tri'uted package 'ui d scripts are a so avai a' e i! the A)R. :ou are e"pected to keep your system up to date with pacma! 2/yu, rather tha! se ective y upgradi!g packages. :ou may diverge from this typica usage as you wish0 Qust 'e war!ed that there is a greater cha!ce that thi!gs wi !ot work as i!te!ded a!d that it cou d 'reak your system. 3he maQority of comp ai!ts happe! whe! se ective upgradi!g, u!usua compi atio! or improper software i!sta atio! is performed. )se of /gnorePkg i! /etc/pacma!.co!f is therefore
,0
*or more i!formatio!,p ease ook up the pacma! wiki e!tries at your eisure.
3reat powerpi as pacma! as you co!sider i!sta atio!s, for e"amp e, the fo owi!g wi update your system:
,&
pacma! wi !ow dow! oad a fresh copy of the master package ist from the server;s< defi!ed i! pacma!.co!f;I< a!d perform a avai a' e upgrades. ;:ou may 'e prompted to upgrade pacma! itse f at this poi!t. 1f so, say yes, a!d the! reissue the pacma! 2/yu comma!d whe! fi!ished.< Re'oot if a ker!e upgrade has occurred. -ote: Accasio!a y, co!figuratio! cha!ges may take p ace re7uiri!g user actio! duri!g a! update0 read pacma!=s output for a!y perti!e!t i!formatio!. &acma! output is saved i! /var/ og/pacma!. og. /ee &ackage Ha!ageme!t *AFs for a!swers to fre7ue!t y asked 7uestio!s regardi!g updati!g a!d ma!agi!g your packages.
,2
&! Creates user home directory as /home/userna!e. 6ithi! their home directory, a user ca! write fi es, de ete them, i!sta programs, etc. )sers= home directories sha co!tai! their data a!d perso!a co!figuratio! fi es, the so2 ca ed =dot fi es= ;their !ame is preceded 'y a dot<, which are =hidde!=. ;3o view dotfi es, e!a' e the appropriate optio! i! your fi e ma!ager or ru! s with the 2a switch.< 1f there is a co!f ict 'etwee! user ;u!der /home/user!ame< a!d global co!figuratio! fi es, ;usua y u!der /etc/< the setti!gs i! the user fi e wi prevai . +otfi es ike y to 'e a tered 'y the e!d user i!c ude ."i!itrc a!d .'ashrc fi es. 3he co!figuratio! fi es for "i!it a!d #ash respective y.
,'
A typica desktop system e"amp e, addi!g a user !amed 4archie4 specifyi!g 'ash as the ogi! she :
% u eradd -m -G u er KaudioKlpKopticalK torageKvideoK(heelKpo(er /,in/,a h archie
(e"t, add a password for your !ew user usi!g /usr/bin/passwd. A! e"amp e for our user, =archie=:
% pa (d archie
,+
)eleting the user account: 1! the eve!t of error, or if you wish to de ete this user accou!t i! favor of a differe!t !ame or for a!y other reaso!, use /usr/sbin/userdel:
% u erdel -r [u ername]
&r *i es i! the userXs home directory wi 'e removed a o!g with the home directory itse f a!d the userXs mai spoo . 1f you wa!t to cha!ge the !ame of your user or a!y e"isti!g user, see the Cha!ge user!ame page of the wiki a!d/or the %roups a!d )ser Ha!ageme!t artic es for further i!formatio!. :ou may a so check the ma! pages for usermod'() a!d gpasswd'().
3o add a user as a sudo user ;a 4sudoer4<, the visudo comma!d must 'e ru! as root. 1f you do !ot k!ow how to use vi, you may set the @+13AR e!viro!me!t varia' e to the editor of your choice 'efore ru!!i!g visudo. e.g.:
,-
1f you are comforta' e usi!g vi, issue the visudo comma!d without the @+13ARV!a!o varia' e:
% vi udo
3his wi ope! the fi e /etc/sudoers i! a specia sessio! of vi. visudo copies the fi e to 'e edited to a temporary fi e, edits it with a! editor, ;vi 'y defau t<, a!d su'se7ue!t y ru!s a sa!ity check. 1f it passes, the temporary fi e overwrites the origi!a with the correct permissio!s. 1arning: +o !ot edit /etc/sudoers direct y with a! editor0 @rrors i! sy!ta" ca! cause a!!oya!ces ; ike re!deri!g the root accou!t u!usa' e<. :ou must use the visudo comma!d to edit /etc/sudoers. 3o give the user fu root privi eges whe! he/she precedes a comma!d with 4sudo4, add the fo owi!g i!e:
<1;>_-:5; :22=4:227 :22
where )/@R$(AH@ is the user!ame of the i!dividua . *or more i!formatio!, such as sudoer M3A#N comp etio!, see /udo
,,
,)
A ter!ative y, if you do !ot wa!t s!d$pcsp to oad at a , ' ack ist it 'y addi!g the fo owi!g to /etc/rc.co!f:
58?<2;1=4... F nd_pc p7
-ote: :ou wi !eed to u! oad a your sou!d modu es a!d re oad them for the cha!ges to take effect. 1t might 'e easier to re'oot. :our choice. 1!sta the a sa2uti s package:
% pacman -1 al a-util
A so, you may wa!t to i!sta the a sa2oss package, which wraps app icatio!s writte! for A// i! a compati'i ity i'rary, a owi!g them to work with A,/A. 3o i!sta the a sa2oss package:
% pacman -1 al a-o
+id you add your !orma user to the audio groupY 1f !ot, use /usr/bin/gpasswd. As root do:
% gpa (d -a yourusername audio
)!mute the Haster a!d &CH cha!!e s 'y scro i!g to them with cursor eft/right a!d pressi!g 8. 1!crease the vo ume eve s with the
,*
&ound test
@!sure your speakers are proper y co!!ected, a!d test your sou!d co!figuratio! as !orma user usi!g /usr/bin/apla!:
N apla' /u r/ hare/ ound /al a/.ront_9enter.(av
3his wi create the fi e =/etc/asou!d.state=, savi!g the a sami"er setti!gs. A so, add the a sa daemon to your +A@HA(/ sectio! i! /etc/rc.co!f to automatica y restore the mi"er setti!gs o! 'oot2up.
% nano /etc/rc.conf ?:;58-1=4 ' log-ng net(or& crond alsa7
&ote that the alsa daemon merely restores your volume mi%er levels on boot up by reading 3etc3asound.state. It is separate from the alsa audio library )and *ernel level /I+. @"pa!ded i!formatio! avai a' e i! the A,/A wiki e!try.
,9
A. 7nstall C
(ow we wi i!sta the 'ase Sorg packages usi!g pacma!. 3his is the first step i! 'ui di!g a %)1.
% pacman -1 xorg
6ith !ewer versio!s of "org, it is suggested ;a!d possi' y !ecessary i! most cases< to i!sta the i!put driver evdev, which shou d 'e i!sta ed as a depe!de!cy for "org2server, 'ut ma!y seem to 'e acki!g somehow:
)0
3he Gd uti ities g "gears a!d g "i!fo are i!c uded i! the !esa package:
% pacman -1 me a
8ere is a ist of o"en source drivers, a!d the correspo!di!g video chipsets. xf$#&video&a"! Z A ia!ce &roHotio! video driver xf$#&video&ark Z ark video driver xf$#&video&ati Z A31;AH+< video driver xf$#&video&r7<$ Z A31;AH+< video driver for S.org ati Rage.2D video xf$#&video&!ach#' Z A31;AH+< video driver for S.org machEC video
)&
)2
;for the /avage driver.< 1f you have a! (-1+1A or A31 graphics card you may wish to i!sta the proprietary (-1+1A or A31 drivers. /nstalling "ro"rietary video drivers is covered below2. 1f you do !ot wa!t to i!sta the proprietary drivers or do !ot have a! (-1+1A or A31 graphics card, you shou d skip dow! to te" =: Configure 5. -6/)/A 3ra"hics Cards 3he (-1+1A proprietary drivers are ge!era y co!sidered to 'e of good 7ua ity, a!d offer G+ performa!ce, whereas the ope! source nv driver offers o! y 2d support at this time. #efore you co!figure your %raphics Card you wi !eed to k!ow which driver fits. Arch curre!t y has severa differe!t driver packages that each match a certai! su'set of Cards: 72 nvidia&P#xx slightly newer cards up to the !7 B. <2 nvidia&7M=xx !eforce 7C series cards =2 nvidia newest !/(s after the !7 7C
)'
3he (-1+1A package has a uti ity for updati!g your e"isti!g /etc/S../"org.co!f for use with the (-1+1A driver:
% nvidia-xconfig
1t a so has severa optio!s which wi further specify the co!te!ts a!d optio!s of the "org.co!f fi e. *or e"amp e,
% nvidia-xconfig --compo ite --add-arg,-glx-vi ual
*or more detai ed i!formatio!, see !vidia2"co!fig;.<. /ome usefu tweaki!g optio!s i! the device sectio! are ;'eware that these may !ot work o! your system<:
8ption 8ption 8ption 8ption )>ender:ccel) )true) )-o2ogo) )true) ):G/.a t@rite) )true) );na,le/age.lip) )true)
)+
+ou' e check your /etc/S../"org.co!f to make sure your defau t depth, hori9o!ta sy!c, vertica refresh, a!d reso utio!s are accepta' e. )pdate ker!e modu e depe!de!cies usi!g /sbin/depmod:
% depmod -a
;A re'oot may 'e !ecessary.< Ti": Adva!ced i!structio!s for (-1+1A co!figuratio! ca! 'e fou!d i! the (-1+1A artic e. :ou may !ow co!ti!ue with te" =: Configure 5 to fami iari9e yourse f further, or co!ti!ue the i!sta atio! process with Test 5. AT/ 3ra"hics Cards A31 ow!ers have mu tip e optio!s for drivers. 3he ope! source radeon driver provided 'y the xf$#&video& ati package. 3his is the origi!a , reverse2e!gi!eered ope! source driver which fu y supports Radeo! chipsets up to S.9I0 ; atest RI00 chipsets<. Cards up to the 9200 series are fu y supported, sta' e, a!d provide fu 2+ a!d G+ acce eratio!. Cards from 9I00 to S.9I0 feature fu 2+ acce eratio!, a!d good G+ acce eratio!, 'ut ack certai! features provided 'y the proprietary driver, ;for e"amp e, powersavi!g is sti i! a testi!g phase<. Cards from 8+2""" ;RE""< to the !ewest are supported 'y "fDE2video2 ati, 'ut o! y offer 2d support at this time. 3he ope! source radeonhd driver provided 'y the xf$#& video&radeonhd package.
)-
3he proprietary A31 driver Catalyst was o!ce a precompi ed package offered 'y Arch i! the e*tra repository, 'ut as of Harch 2009, officia support has 'ee! dropped 'ecause of dissatisfactio! with the 7ua ity a!d speed of deve opme!t of the proprietary driver.3he cata yst driver is !ow avai a' e i! A)R. 1!sta atio! i!formatio! for Cata yst driver is avai a' e here 1arning: 3he proprietary A31 driver supports o! y RE00 a!d !ewer devices ;that mea!s, 8+2""" a!d !ewer<. 3he o der o!es ;S.""" a!d o der< are!=t supported. Ti": Adva!ced i!structio!s for A31 co!figuratio! ca! 'e fou!d i! the A31 wiki artic e.
),
Part ...( .nstall = and "on0igure A2SA #. 7nstall 7nput $river *ackages
3he atest S re7uires you to i!sta drivers for your i!put devices, key'oard a!d mouse i!c uded. *or a comp ete ist of avai a' e i!put drivers,
% pacman -1 xf86-input ! le
*or most users, "fDE2i!put2key'oard a!d "fDE2i!put2mouse shou d 'e sufficie!t for a 'asic setup. )se pacma! to i!sta your desired drivers for your i!put devices. e.g.:
% pacman -1 xf86-input-&e',oard
te" =: Configure 5
A. The /org.conf file
/etc/S../"org.co!f is the mai! co!figuratio! fi e for your 5 6i!dow /ystem, the fou!datio! of your 3raphica +ser /!terface. 1t is a p ai! te"t fi e ordered i!to sectio!s a!d su'sectio!s. 1mporta!t sectio!s are 7iles, Input>evice, =odule, =onitor, =odes, Screen, >evice, and Server,ayout. /ectio!s ca! appear i! a!y order a!d there may 'e more tha! o!e sectio! of each ki!d, for e"amp e, if you have more tha! o!e mo!itor, or if your aptop has a trackpoi!t as we as a mouse. /i!ce S..R7.2 the S.Arg S /erver features autoco!figuratio!. 3herefore, it ca! fu!ctio! without a! "org.co!f fi e i! ma!y cases. If the autoco!figuratio! wor*s satisfactorily a!d you do !ot !eed to specify specia features such as aig ", compositi!g a!d so forth, you may forgo creati!g a! "org.co!f fi e.
))
Alternative xorg2conf generation (ewer versio!s of the Sorg /erver;N..E< do !ot i!c ude the /usr/'i!/"orgco!fig or /usr/'i!/"orgcfg scripts. 1f you ru! i!to pro' ems ge!erati!g/usi!g a! "org.co!f fi e, you might wa!t to co!sider usi!g this guide. /ee the artic e o! S.Arg, sectio! 46ithout "org.co!f4. (ote that if you are i! possessio! of a proper y co!figured "org.co!f u!der a!other distri'utio! a!d with the same Sorg versio!, you may easi y copy it over to your curre!t Arch system=s /etc/X11/ directory.
)*
+sing in"ut hot"lugging 1!sta 8A,, d'us a!d the evdev i!put driver:
% pacman -1 hal d,u xf86-input-evdev
/et the key'oard ayout ;if you do !ot use a sta!dard )/ key'oard<
% cp /u r/ hare/hal/fdi/polic'/+0o vendor/+0&e'map.fdi /etc/hal/fdi/polic'/ % nano /etc/hal/fdi/polic'/+0-&e'map.fdi
@dit the 4i!put."k'. ayout4 key a!d possi' y the 4i!put."k'.varia!t4 key i! this fi e. ,aptop users wi a so !eed the sy!aptics package to a ow S to co!figure the touchpad:
)9
Ti": *or i!structio!s o! fi!e tu!i!g or trou' eshooti!g touchpad setti!gs, see the 3ouchpad /y!aptics artic e.
The HAL dae!on 3he ha daemo! !ust 'e started before the 5 server:
% /etc/rc.d/hal tart
Add the ha daemo! to the +A@HA(/ array i! /etc/rc.co!f to start it at every 'oot. )isable in"ut hot"lugging +isa' i!g i!put hotp uggi!g wi skip devices detected 'y ha a!d wi use the key'oard/mouse co!figuratio! from "org.co!f:
% nano /etc/O++/xorg.conf
Add optio! i!es i! the 41!put+evice4 sectio! of the /etc/S../"org.co!f fi e specifyi!g the key'oard ayout a!d varia!t:
*0
;with the proper key'oard ayout i!stead of pl of course< shou d switch your key'oard ayout i! ". 3o make this perma!e!t, add this comma!d to /home/<!ouruser>/.*initrc 'efore starti!g the wi!dow ma!ager ;'efore comma!d ike e*ec start*fce+<.
#. Test C
*irst, read the war!i!g a'out i!put hotp uggi!g i! the previous sectio!. 3o test the S server, ru! the 5 script with the -config f ag agai!st the path3to3%org.conf fi e. e.g.:
% O -config /etc/O++/xorg.conf
5 shou d start with the white ho ow vector 5 i! the ce!ter of the scree!, which shou d respo!d to mouse, trackpoi!t or touchpad moveme!t. )se C3R,2A t2#ackspace to e"it 5. -ote: /ome users have fou!d after the upgrade to Sorg ..E that this test fai s ;!o ho ow S appears a!d !o capacity for cursor moveme!t is e!a' ed<, 'ut this does !ot i!dicate a pro' em with the i!sta atio! of S. :ou may wa!t to dou' e check 'y ru!!i!g the !e"t test i! this guide.
*&
@!sure there are hori9o!ta sy!c a!d vertica refresh specs u!der sectio! 4Ho!itor4. 1f !ot, add them:
*2
)5onitor0) )5onitor Rendor) )5onitor 5odel) $0.0 - +$0.0 % 1afe for 29?Q "0.0 - +00.0 % 1afe for 29?Q
and
;1f these specs are u!k!ow!, co!su t the docume!tatio! of the computer mo!itor.< /pecify your defau t co or depth u!der sectio! 4/cree!4:
1ection )1creen) Bdentifier )1creen0) ?evice )9ard0) 5onitor )5onitor0) ?efault?epth 2*
;3ypica y, this wi 'e set to 2C for true co or.< A so add your desired Hodes to your 4+isp ay4 su'sectio!, at east u!der the +epth 2C header, e.g.:
1u,1ection )?i pla') Rie(port 0 0 ?epth 2* 5ode )+02*x#68) )800x600) )6*0x*80)
Add the fo owi!g sectio!, if eye ca!dy which re7uires the composite e"te!sio! is desired:
1ection );xten ion ) 8ption )9ompo ite) );na,le) ;nd1ection
*'
+etai ed i!structio!s i! the Sorg artic e. +sing wget"aste 1f you are sti havi!g trou' e after co!su ti!g the Sorg artic e a!d !eed assista!ce via the Arch forums, 'e sure to i!sta a!d use wgetpaste:
% pacman -1 (getpa te
)se wgetpaste a!d provide i!ks for the fo owi!g fi es whe! aski!g for he p i! your forum post: [/."i!itrc /etc/S../"org.co!f /var/ og/Sorg.0. og.o d )se wgetpaste ike so:
N (getpa te I/path/to/fileJ
&ost the correspo!di!g i!ks give! withi! your forum post. #e sure to provide appropriate hardware a!d driver i!formatio! as we .
*+
Part ...( .nstall = and "on0igure A2SA *repare for the test by configuring 0+./initrc
A!e of the mai! fu!ctio!s of this fi e is to dictate what 5 6i!dow c ie!t is i!voked with the %usr%bin%startx a!d/or %usr%bin%xinit program on a per-user basis. ;3he startx script is mere y a fro!t e!d to the more versati e xinit comma!d.< 3here are vast amou!ts of additio!a co!figura' e specificatio!s a!d comma!ds that may a so 'e added to [/."i!itrc as you further customi9e your system. -ote: 2xinitrc is a so2ca ed =dot= ;.< fi e. *i es i! a )(1S fi esystem which are preceded with a dot ;.< are =hidde!=, a!d wi !ot show up with a regu ar = s= comma!d, usua y for the sake of keepi!g directories tidy. +ot fi es may 'e see! 'y issui!g ls &a. 3he =rc= de!otes Aun 0ommands a!d simp y i!dicates that it is a co!figuratio! fi e. /i!ce it co!tro s how a program ru!s, it is ;a though historica y i!correct< a so said to sta!d for 4Ru! Co!tro 4. startx%xinit wi start the 5 server a!d c ie!ts. 3o determi!e the c ie!t to ru!, startx%xinit wi first ook to parse a ."i!itrc fi e i! the user=s home directory. 1! the a'se!ce of fi e [/."i!itrc, it defau ts to the g o'a "i!itrc i! the "i!it i'rary directory0 /etc/S../"i!it/"i!itrc, which defau ts to usi!g the 36H wi!dow ma!ager. ;8e!ce, if you i!voke start" without a [/."i!itrc fi e, a 36H sessio! wi start.< *urther detai s i! the ."i!itrc wiki e!try. /witch to your normal! non;root user:
% u - yourusername
/etc/ske / co!tai!s fi es a!d directories to provide sa!e defau ts for !ew y created user accou!ts. 3he !ame skel is derived from the word skeleton, 'ecause the fi es it co!tai!s form the 'asic structure for users= home directories. 1f you i!sta ed from a fresh ;Core< i!sta , it does !ot i!c ude the S wi!dow ma!ager, so ."i!itrc does !ot e"ist i! /etc/ske . 1!stead, use the samp e provided here ;1f you=ve
*-
@dit the fi e:
N nano S/.xinitrc
-ote: 'e sure to have only one uncommented e/ec line in your D3.%initrc. #e ow, we sha edit this fi e agai! to specify the appropriate desktop e!viro!me!t/wi!dow ma!ager of your choice.
*,
or
N xinit
:ou shou d have a! xter! sessio! ope! up. :ou ca! test your key'oard a!d its ayout i! it. :ou may have to move your mouse arou!d u!ti it e!ters the "term area 'efore you see the mouse cursor or "term respo!ds to your key'oard. :ou ca! e"it the 5 /erver with Ctr JA tJ#ackspace, or 'y typi!g 4e"it4. 1f you have pro' ems starti!g 5, you ca! ook for errors i! the /var/ og/Sorg.0. og fi e a!d o! the co!so e output of the co!so e you started 5 from. 1f you prove a proper y co!figured /etc/S../"org.co!f 'y successfu y ru!!i!g the test, you ca! 'e assured that your +@/6H of choice wi work smooth y. Ti": Adva!ced i!structio!s for Sorg co!figuratio! ca! 'e fou!d i! the Sorg artic e.
*)
*9
)!comme!t or add the =exec ..= i!e of the appropriate desktop e!viro!me!t/wi!dow ma!ager. /ome e"amp es are 'e ow: *or the SfceC desktop e!viro!me!t:
exec tartxfce*
90
A startkde or startxfce' comma!d starts the O+@ or SfceC desktop e!viro!me!t. 3his comma!d does !ot fi!ish u!ti you ogout of the +@. (orma y the she wou d wait for O+@ to fi!ish, the! ru! the !e"t comma!d. 3he 4e"ec4 prefi" to this comma!d te s the she that this is the ast comma!d, so the she does !ot !eed to wait to ru! a su'se7ue!t comma!d. 1f you have trou' e with automou!ti!g, use the fo owi!g comma!d i!stead. Rep ace 4start"fceC4 with the comma!d that is appropriate for your wi!dow ma!ager.
exec c&-launch- e ion tartxfce*
3NE5E
About 3-,8E 3he 3() -etwork ,'Qect 8ode E!viro!me!t. 3he %(AH@ proQect provides two thi!gs: 3he %(AH@ desktop e!viro!me!t, a! i!tuitive a!d attractive desktop for e!d2users, a!d the %(AH@
9&
1t=s safe to choose a packages show! i! the e"tra package. +seful )AE8,- for 3-,8E Reca from a'ove that a daemo! is a program that ru!s i! the 'ackgrou!d, waiti!g for eve!ts to occur a!d offeri!g services. /ome users prefer to use the hal daemo!. 3he hal daemo!, amo!g other thi!gs, wi automate the mou!ti!g of disks, optica drives, a!d )/# drives/thum'drives for use i! the %)1. 3he fa! daemo! wi a ow rea 2time represe!tatio! of fi e a teratio!s i! the %)1, a owi!g i!sta!t access to rece!t y i!sta ed programs, or cha!ges i! the fi e system. #oth hal a!d fa! ca! make ife easier for the %(AH@ user. 3he ha a!d fam packages are i!sta ed whe! you i!sta %(AH@, 'ut must 'e i!voked to 'ecome usefu . :ou may wa!t to i!sta a graphica ogi! ma!ager. *or %(AH@, the gd! daemo! is a good choice. As root:
% pacman -1 gdm
92
Add them to your /etc/rc.co!f +A@HA(/ sectio!, so they wi 'e i!voked at 'oot:
% nano /etc/rc.conf ?:;58-1=4 ' log-ng net(or& crond al a hal fam gdm7
;1f you prefer to og i!to the co!so e a!d ma!ua y start S, eave out gdm.< 3he! edit your /etc/gdm/custom.co!f a!d i! the NserversO sectio! add:
0=1tandard vt#
or
N xinit
1f [/."i!itrc is !ot co!figured for %(AH@, you may a ways start it with xinit, fo owed 'y the path to %(AH@:
9'
Ti": Adva!ced i!structio!s for i!sta i!g a!d co!figuri!g %(AH@ ca! 'e fou!d i! the %!ome artic e. Co!gratu atio!sP 6e come to your %(AH@ desktop e!viro!me!t o! your !ew Arch ,i!u" systemP :ou may wish to co!ti!ue 'y viewi!g Tweaks and finishing touches, or the rest of the i!formatio! 'e ow. :ou may a so 'e i!terested i! the &ost 1!sta atio! 3ips wiki artic e. Eye Candy #y defau t, %(AH@ does !ot come with ma!y themes a!d ico!s. :ou may wish to i!sta some more attractive artwork for %(AH@: A !ice gtk ;gui widget< theme e!gi!e ;i!c udes themes< is the murri!e e!gi!e. 1!sta with:
% pacman -1 gt&-engine-murrine
A!ce it has 'ee! i!sta ed, se ect it with /ystem 2N &refere!ces 2N Appeara!ce 2N 3heme ta'. 3he Arch ,i!u" repositories a so have a few more !ice themes a!d e!gi!es. 1!sta the fo owi!g to see for yourse f:
% pacman -1 gt&-engine gt&-aurora-engine gt&-candidoengine gt&-re3loo& -engine
:ou ca! fi!d ma!y more themes, ico!s, a!d wa papers at %(AH@2,ook.
9+
or
% pacman -1 &de-meta
2. A ter!ative y, there e"ists a proQect ca ed D)E!od ;rece!t y referred to co ective y as the Chakra proQect<. 1t is a! Arch ,i!u" e"c usive, commu!ity2drive! system, desig!ed for modu arity a!d offers a choice 'etwee! O+@ G.I..0 or C.".". O+@mod ca! 'e i!sta ed with pacma!, after addi!g the proper repository to /etc/pacma!.co!f. 3he proQect we'site, i!c udi!g comp ete i!sta atio! i!structio!s, ca! 'e fou!d at http://www.chakra2 proQect.org/.
9-
/tart ha :
% /etc/rc.d/hal tart
-ote: 3he ha daemo! re ies o!, a!d wi automatica y start, the d'us daemo!. @dit your +A@HA(/ array i! /etc/rc.co!f:
% nano /etc/rc.conf
Add hal to your +A@HA(/ array, to i!voke it o! 'oot. 1f you prefer a graphica ogi!, add kd! as we :
?:;58-1=4 ' log-ng hal net(or& crond al a kdm7
-ote: 1f you i!sta ed O+@modG i!stead of !orma O+@, use kdmG i!stead of kdm.
9,
or
N xinit
Ti": Adva!ced i!structio!s for i!sta i!g a!d co!figuri!g O+@ ca! 'e fou!d i! the O+@ artic e. Co!gratu atio!sP 6e come to your O+@ desktop e!viro!me!t o! your !ew Arch ,i!u" systemP :ou may wish to co!ti!ue 'y viewi!g The (eginners 3uide A""endix, or the rest of the i!formatio! 'e ow. :ou may a so 'e i!terested i! the &ost 1!sta atio! 3ips wiki artic e.
Cfce
About 5fce 3he cho estero 2free 5 e!viro!me!t. Sfce, ike %(AH@ or O+@, is a desktop e!viro!me!t, 'ut aims to 'e fast a!d ightweight whi e remai!i!g visua y appea i!g a!d easy to use. 1t co!tai!s a suite of
9)
(ote: xfce'&xfa""let&"lugin ;a p ugi! that a ows the use of %(AH@ app ets i! the SfceC pa!e < is part of the xfce'&goodies group a!d depe!ds o! gno!e&"anel, which i! tur! depe!ds o! gno!e&deskto". :ou may wish to take this i!to co!sideratio! 'efore i!sta i!g, si!ce it represe!ts a sig!ifica!t !um'er of e"tra depe!de!cies. 1f you get errors a'out d'us2 au!ch the! you !eed to i!sta d'us aswe :
% pacman -1 d,u
1f you wish to admire =3ips a!d 3ricks= o! ogi!, i!sta the fortune& !od package:
9*
+seful )AE8,Reca from a'ove that a daemo! is a program that ru!s i! the 'ackgrou!d, waiti!g for eve!ts to occur a!d offeri!g services. /ome Sfce users prefer to use the hal daemo!. 3he ha daemo!, amo!g other thi!gs, wi automate the mou!ti!g of disks, optica drives, a!d )/# drives/thum'drives for use i! the %)1. 3he fam daemo! wi a ow rea 2time represe!tatio! of fi e a teratio!s i! the %)1, a owi!g i!sta!t access to rece!t y i!sta ed programs, or cha!ges i! the fi e system. 3he ha a!d fam packages are i!sta ed whe! you i!sta Sfce, 'ut must 'e i!voked to 'ecome usefu . /tart ha a!d fam:
% /etc/rc.d/hal % /etc/rc.d/fam tart tart
-ote: 3he ha daemo! re ies o!, a!d wi automatica y start, the d'us daemo!. @dit your +A@HA(/ array i! /etc/rc.co!f:
% nano /etc/rc.conf
Add hal a!d fa! to your +A@HA(/ array, to i!voke them at 'oot. Ti": Adva!ced i!structio!s for i!sta i!g a!d co!figuri!g Sfce ca! 'e fou!d i! the Sfce artic e. 1f you wish to i!sta o!e, see Addi!g a ogi! ma!ager ;O+H, %+H, or S+H< to automatica y 'oot o! startup. Atherwise you ca! ogi! i! via the co!so e a!d ru!:
99
Co!gratu atio!sP 6e come to your Sfce desktop e!viro!me!t o! your !ew Arch ,i!u" systemP :ou may a so 'e i!terested i! the &ost 1!sta atio! 3ips wiki artic e.
>C$E
About L5)E ,S+@, ;for ,ightweight C.. >esktop "!viro!me!t<, is a !ew proQect focused o! providi!g a moder! desktop e!viro!me!t which aims to 'e ightweight, fast, i!tuitive a!d fu!ctio!a whi e keepi!g system resource usage ow. ,S+@ is 7uite differe!t from other desktop e!viro!me!ts, si!ce each compo!e!t of ,S+@ is a discrete a!d i!depe!de!t app icatio!, a!d each ca! 'e easi y su'stituted 'y other programs. 3his modu ar desig! e imi!ates a u!!ecessary depe!de!cies a!d provides more f e"i'i ity. +etai s a!d scree!shots avai a' e at: http:// "de.org/ ,S+@ provides: .. 2. G. C. I. E. 7. D. 3he Ape!#o" wi!dowma!ager &CHa!*H *i e ma!ager ,Spa!e system pa!e ,S/essio! sessio! ma!ager ,SAppeara!ce %3OJ theme switcher %&ic-iew image viewer ,eafpad simp e te"t editor SArchiver: ,ightweight, fast, a!d desktop2i!depe!de!t gtkJ2'ased fi e archiver 9. ,S(H ;sti u!der deve opme!t<: ,ightweight !etwork ma!ager for ,S+@ supporti!g wire ess co!!ectio!s 3hese ightweight a!d versati e too s com'i!e for 7uick setup, modu arity a!d simp icity. 1!sta ,S+@ with:
&00
Add:
exec tartlxde
1f you p a! o! ru!!i!g n!&a""let, the fo owi!g comma!d shou d 'e used i!stead
exec c&-launch- e ion tartlxde
to your [/."i!itrc a!d start with start% or %init Ti": *urther i!formatio! avai a' e at the ,S+@ wiki artic e.
Gbo/
?luxbox * u"'o" > is yet a!other wi!dowma!ager for S. 1t=s 'ased o! the # ack'o" 0.E... code. * u"'o" ooks ike ' ack'o" a!d ha!d es sty es, co ors, wi!dow p aceme!t a!d simi ar thi!gs e"act y ike ' ack'o" ;.00R theme/sty e compa'i ity<. 1!sta * u"'o" usi!g
% pacman -1 flux,ox fluxconf
1f you use gdm/kdm a !ew f u"'o" sessio! wi 'e automatica y added. Atherwise, you shou d modify your user=s ."i!itrc a!d add this to it:
&0&
Hore i!formatio! is avai a' e i! the * u"'o" artic e. ,"enbox Ape!'o" is a sta!dards comp ia!t, fast, ight2weight, e"te!si' e wi!dow ma!ager. Ape!'o" works with your app icatio!s, a!d makes your desktop easier to ma!age. 3his is 'ecause the approach to its deve opme!t was the opposite of what seems to 'e the ge!era case for wi!dow ma!agers. Ape!'o" was writte! first to comp y with sta!dards a!d to work proper y. A! y whe! that was i! p ace did the team tur! to the visua i!terface. Ape!'o" is fu y fu!ctio!a as a sta!d2a o!e worki!g e!viro!me!t, or ca! 'e used as a drop2i! rep aceme!t for the defau t wi!dow ma!ager i! the %(AH@ or O+@ desktop e!viro!me!ts. 1!sta ope!'o" usi!g
% pacman -1 open,ox
A!ce ope!'o" is i!sta ed you wi get a message to move me!u."m \ rc."m to [/.co!fig/ope!'o"/ i! your home directory:
&02
rc2x!l is the mai! co!figuratio! fi e for Ape!#o". 1t may 'e ma!ua y edited, ;or you ca! use A#co!f<. !enu2x!l co!figures the right2c ick me!u. :ou may og i!to Ape!#o" via graphica ogi! usi!g O+H/%+H, or from the she usi!g startx, i! which case you wi !eed to edit your [/."i!itrc ;as !o!2root user< a!d add the fo owi!g:
exec open,ox- e ion
(A3@: 1f you p a! o! ru!!i!g d'us ;which is re7uired 'y ha < the! make sure your [/."i!itrc reads:
exec d,u -launch --exit-(ith- e ion open,ox- e ion
Ape!'o" may a so 'e used as the wi!dow ma!ager for %(AH@, O+@, a!d Sfce. *or O+H there is !othi!g eft to do0 ope!'o" is isted i! the sessio!s me!u i! O+H. /ome usefu , ightweight programs for Ape!#o" are: &y&a!e , 3i!t2, or ,Spa!e if you wa!t a pa!e feh if you wa!t to set the 'ackgrou!d RAS if you wa!t a simp e fi e ma!ager ;a so provides simp e ico!s< &cma!*H a ightweight 'ut versati e fi e ma!ager ;a so provides desktop ico! fu!ctio!a ity<
&0'
fv m6
*-6H is a! e"treme y powerfu 1CCCH2comp ia!t mu tip e virtua desktop wi!dow ma!ager for the S 6i!dow system. +eve opme!t is active, a!d support is e"ce e!t. 1!sta fvwm2 with
% pacman -1 fv(m
fvwm wi automatica y 'e isted i! kdm/gdm i! the sessio!s me!u. Atherwise, add
exec fv(m
&0+
Use0ul Appli"ations
+seful A""lications
3his page wi !ever 'e comp ete. 1t Qust shows some good app icatio!s for the everyday user. 1t might a so 'e worthwhi e to check out ,ightweight /oftware as we .
1eb browser
)irefo/
3he ever2popu ar *irefo" we' 'rowser is avai a' e through pacma!, a though it does !ot have its officia 'ra!di!g. 3herefore, the program appears as its deve opme!t code!ame, Shireto*o, whe! ope!ed. 1!sta with:
pacman -1 firefox
*lugins
#e sure a!d i!sta =f ashp ugi!=,a!d the =mp ayer2p ugi!=packages for a comp ete we' e"perie!ce:
pacman -1 fla hplugin mpla'er-plugin
&0-
)Note! 'e sure to remove mplayer-plugin if it is already installed.+ 3hu!der'ird is usefu for ma!agi!g your emai s. 1f you are usi!g %(AH@ you may wa!t to take a ook at @pipha!y a!d @vo utio!0 if you are usi!g O+@ Oo!7ueror a!d OHai cou d 'e your choice. 1f you wa!t somethi!g comp ete y differe!t you ca! sti use Apera. *i!a y, if you are worki!g o! the system co!so e 2 or i! a termi!a sessio! 2 you cou d use various te"t2'ased 'rowsers ike @,i!ks, ,i!ks a!d ,y!", a!d ma!age your emai s with Hutt. &idgi! ;previous y k!ow! as %aim< a!d Oopete are good i!sta!t messe!gers for %(AH@ a!d O+@, respective y. &/1 a!d %aQim are perfect if you are usi!g o! y ?a''er or %oog e 3a k.
,ffice
A fu set of ,a3eS &rograms: tete" has 'ee! popu ar for ma!y years a!d sti works, a!d its successor 3e" ive is avai a' e from the e"tra repository. OAffice is a revo utio!ary office suite. 1t is sharp y deve opi!g to koffice2. Ape!Affice.org is a comp ete office suite ;simi ar to Hicrosoft Affice<. A'iword is a good, sma a ter!ative word processor, a!d %!umeric a! @"ce rep aceme!t for the %(AH@ desktop. %o2 ope!office %1H& ;or %1H&/hop< is a pi"e 2'ased graphics program ;simi ar to Ado'e &hotoshop<, whi e 1!kscape is a vector2'ased graphics program ; ike Ado'e 1 ustrator<.
6ideo Player
D>#
-,C & ayer is a versati e mu timedia p ayer which ca! ma!y differe!t formats, from a disc or fi e. 1t a so provides the a'i ity to
&0,
Use0ul Appli"ations
stream mu timedia over a a!. 3o i!sta it, simp y type the code 'e ow.
pacman -1 vlc
5player
H& ayer is a mu timedia p ayer for ,i!u". 3o i!sta it, simp y type the code 'e ow.
pacman -1 mpla'er
1t a so has a Ho9i a p ug2i! for videos a!d streams em'edded i! we' pages. 3o i!sta it, simp y type the code 'e ow. -,TE: mp ayer2p ugi! is co!sidered to 'e o'so ete, p ease see %ecko Hedia & ayer a'ove.
pacman -1 mpla'er-plugin
1f you use O+@, OHp ayer is a 'etter choice. 1t comes with a p ug2 i! for videos a!d streams em'edded i! we' pages, which works with Oo!7ueror. 3o i!sta it, simp y type the code 'e ow.
pacman -1 &mpla'er
Cine
Si!e is a! e"ce e!t p ayer, especia y for +-+s.
&0)
libdvdcss
3he i'dvdcss i'rary provides +-+ decodi!g for e!crypted +-+s. "nsure the legality of using libdvdcss in your country before installingE
pacman -1 li,dvdc
Totem
3otem is the officia movie p ayer of the %(AH@ desktop e!viro!me!t 'ased o! "i!e2 i' or %/treamer ;gstreamer is the defau t which i!sta s with the arch totem package<. 1t features a p ay ist, a fu 2scree! mode, seek a!d vo ume co!tro s, as we as key'oard !avigatio!. 1t comes with added fu!ctio!a ity such as: -ideo thum'!ai er for the fi e ma!ager (auti us properties ta' @pipha!y / Ho9i a ;*irefo"< p ugi! to view movies i!side your 'rowser 6e'cam uti ity ;i! deve opme!t< 3otem2"i!e is sti the 'etter choice if you wa!t to watch +-+s. 3otem is part of the g!ome2e"tra group0 the 3otem we''rowser p ugi! is !ot. 3o i!sta separate y:
pacman -1 totem
&0*
Use0ul Appli"ations
pacman -1 totem-plugin
Faffeine
Oaffei!e is a good optio! for O+@ users. 3o i!sta it, simp y type the code 'e ow.
pacman -1 &affeine
Audio Player
Amarok
Amarok is o!e of the 'est audio p ayers a!d music i'rary systems avai a' e for O+@. 3o i!sta it, simp y type the code 'e ow.
pacman -1 amaro&
E/aile
@"ai e is a music p ayer writte! i! &ytho! that makes use of the %3OJ too kit. 1t tries to 'e c ose to the popu ar Amarok, 'ut i! %3O. 1t is i! Kcommu!ityL, so i!sta with:
pacman -1 exaile
:hythmbo/
Rhythm'o" is a! i!tegrated music ma!ageme!t app icatio!, origi!a y i!spired 'y App e=s i3u!es. 1t is free software, desig!ed to work we u!der the %(AH@ +esktop, a!d 'ased o! the powerfu %/treamer media framework.
&09
3o i!sta rhythm'o":
pacman -1 rh'thm,ox
Huod >ibet
Fuod ,i'et is a music ma!ager that uses the %/treamer media framework to p ay audio fi es. 3his a ows it to p ay a the fi e2 types that Rhythm'o" ;which uses %/treamer too< ca! p ay. Fuod ,i'et is more suited to !o!2%!ome desktops si!ce it has a sma er footpri!t a!d fewer depe!de!cies tha! Rhythm'o" ;Rhythm'o" depe!ds o! !auti us, which re7uires a ot of %(AH@ to 'e i!sta ed<. 1! additio! to the music p ayer/ma!ager, Fuod ,i'et a so i!c udes @" *a so, a tag editor. Fuod ,i'et=s features i!c ude: @asy2to2use music 'rowser /earchi!g Comprehe!sive audio format support through %/treamer @asy & ay ist ma!ageme!t
Ather good audio p ayers are #a!shee a!d ,iste!. /ee %!omefi es to compare them.
&&0
Use0ul Appli"ations
Hoc is a !curses2'ased audio p ayer for the co!so e. Ather e"ce e!t choices are mpd, cmus, a!d herrie.
)lash
1!sta the f ash p ugi! usi!g
pacman -1 fla hplugin
to e!a' e Hacromedia ;!ow Ado'e< * ash i! your 'rowser, if you ru! O+@ you shou d see this after i!sta i!g f ash.
Huicktime
Fuicktime codecs are co!tai!ed i! the codecs package. ?ust type
pacman -1 codec
to i!sta them.
:ealplayer
3he codec for Rea p ayer 9 is co!tai!ed i! the codecs package. ?ust type
&&&
to i!sta them. Rea p ayer .0 is avai a' e as a 'i!ary package for ,i!u". :ou ca! get it from A)R here.
3o i!sta :
pacman -1 &$,
'rasero
#rasero is a! app icatio! that 'ur!s C+s/+-+s for the %(AH@ +esktop. 1t is desig!ed to 'e as simp e as possi' e a!d has some
&&2
Use0ul Appli"ations
u!i7ue features to e!a' e users to create their discs easi y a!d 7uick y. 3o i!sta :
pacman -1 ,ra ero
A'cde is a co!so e2'ased app icatio! for rippi!g C+s. 1t supports e!codi!g immediate y after rippi!g, C++#, a!d writi!g tags o!2 the2f y. #ash'ur! is a co!so e2'ased app icatio! for 'ur!i!g isos, C+s, a!d +-+s. 1t supports ma!y, if !ot a of the same thi!gs as #rasero a!d OG'. Host C+ 'ur!ers are wrappers for cdrecord:
pacman -1 cdr&it
1f you i!sta packages for C+/+-+ 'ur!i!g app icatio!s ike #rasero or OG# it a so i!sta s the C+/+-+ 'ur!i!g i'rary for it, ike i''ur! or cdrkit. A good comma!d2 i!e +-+2'ur!i!g too is growisofs:
pacman -1 dvdTr(-tool
-etworking
A good !etwork ma!ager for ,i!u" is wicd. 1t has few depe!de!cies ;compared to !etwork2ma!ager<, is fast a!d ightweight a!d makes a great too for a!y aptop or desktop usi!g wire ess !etworks.
&&'
T6&Cards
3here are severa thi!gs to do if you wa!t to watch 3- u!der ;Arch< ,i!u". 3he most importa!t task is to fi!d out which chip your tu!er is usi!g. 8owever, 7uite a ot are supported. #e sure to check at a 8ardware +ata'ase to 'e sure ;see this ist, for e"amp e<. A!ce you k!ow your Hode , there are Qust a few steps ahead to get you goi!g. 1! most cases, you wi !eed to use the 'ttv2drivers ;other drivers e"ist, ike -C,< together with the 12C2modu es. Co!figuri!g those is the hardest task. 1f you are ucky, a
modpro,e ,ttv
wi autodetect the card ;check dmesg for resu ts<. 1! that case, you !eed o! y to i!sta a! app icatio! to watch 3-. 6e wi ook at that ater, though. 1f the autodetectio! did !ot work, you wi !eed to check the fi e CAR+,1/3, which is i!c uded i! the tar'a of 'ttv to fi!d out the right parameters for your card. A &-9I. without radio support wou d !eed this i!e:
modpro,e ,ttv card=*2 radio=0
8owever, that varies. /o Qust try it out. /ome other cards dema!d the fo owi!g i!e:
modpro,e tuner
3his is su'Qect to tria 2a!d2error, too. 3o actua y watch 3-, i!sta the tvtime2package with
&&+
Use0ul Appli"ations
pacman -1 tvtime
)igital Ca!eras
Host newer digita cameras are supported as )/# mass storage devices, which mea!s that you ca! simp y p ug it i! a!d copy the images as you wou d with e"ter!a hard drives, or )/# sticks. ,lder cameras may use the &3& ;&icture 3ra!sfer &rotoco < which re7uires a 4specia driver4. gPhoto< provides this driver a!d a ows a she 2'ased tra!sfer of the images. /evera %raphica 1!terfaces are avai a' e for use with g&hoto2: digikam ;O+@< gthum' ;%(AH@< gtkam ;%(AH@< 1!sta atio!:
pacman -1 gphoto2
&&-
An .ntrodu"tion to ABS
An /ntroduction to A(
A#/ is the Arch ,i!u" #ui d /ystem. 1t is a ports2 ike system for compi i!g sources i!to i!sta a' e packages. =&orts= is a system used 'y U#/+, which uses simp e 'ui d scripts residi!g i! a directory tree o! the oca machi!e. @ach port is simp y a directory, !amed for the i!sta a' e Grd party software, a!d co!tai!i!g a 'ui d script. 3ypica y, a U#/+ user who wa!ted to 'ui d a!d i!sta firefo%, wou d cd i!to the correspo!di!g firefo" port residi!g u!der /usr/ports a!d do make install clean. 3he firefo% sourcecode wou d the! 'e dow! oaded from a Grd party source. Accordi!g to the port 'ui d script, the sources wou d the! 'e compi ed, patched ;if directed<, a!d fi!a y, i!sta ed to the system. A#/ offers the same fu!ctio!a ity 'y providi!g 'ui d scripts ca ed &O%#)1,+s, which co!tai! a i!formatio! for a give! piece of software0 3he mdIsums, source )R,, versio!, ice!se a!d compi atio! i!structio!s. 1! additio!, A#/ provides the adva!tage of compi i!g the sources into an installable pac*age with the e"te!sio! .p*g.tar.g#. A'vious y, it is a simp e g29ipped tar'a , 'ut it is c ea! y i!sta a' e/remova' e/tracka' e via pacma!. 1!sta the a's package:
% pacman -1' a,
After i!sta i!g the abs package with pacma!, ru! the /usr/bin/abs script as root:
% a,
3he 'S tree is the! e"tracted u!der /var/a's, orga!i9ed accordi!g to the i!sta a' e software. 3o 'ui d a package from source, create a 'ui d directory a!d copy the a's directory for a give! app icatio! to the 'ui d directory:
&&)
3his wi move the s im su'dir a!d &O%#)1,+ script for s im to the 'ui d directory. -ote: 1! additio! to &O%#)1,+s, some software re7uires a! additio!a U.i!sta fi e. /ee the A( a!d !ake"kg wiki e!tries for more i!formatio! !avigate to the s im 'ui d directory a!d, after modifyi!g the &O%#)1,+ if desired or !ecessary, i!voke the a's /usr/bin/makepkg too
N ma&ep&g -c
2c C ea!s up a!y eftover fi es from the source compi atio! 2s +ow! oads a!d i!sta s a!y missi!g depe!de!cies 'y i!voki!g pacma! 1!sta with pacma!=s 2) ;upgrade< switch:
% pacman -< lim-Iver ionJ.p&g.tar.g3
+o!e. / im sources are dow! oaded, compi ed, compressed i!to a package a!d fi!a y, i!sta ed. -ote: :ou may 'ui d, c ea!, i!sta a!y !eeded depe!de!cies a!d fi!a y i!sta the package with o!e comma!d: !ake"kg &csi. 3he a'ove e"amp e used pacma! 2) to i!sta as a separate step for i!formatio!a purposes. /ee the !ake"kg:$; ma! page. F: 6hy wou d 1 !eed A#/ to compi e a!d create a! i!sta a' e package from source, whe! 1 have access to a of the same software via pacma! a!d the 'i!ary reposY
&&*
An .ntrodu"tion to ABS
A: A few reaso!s: *or i!sta i!g !ewer, u!sta' e, custom, or deve opme!t versio!s of a! app icatio!. &O%#)1,+s are tra!spare!t a!d simp e. @dit the software versio! a!d the mdIsums of the desired versio!s withi! the &O%#)1,+, a!d 'ui d a!d i!sta your custom packages. *or patchi!g. Copy the correspo!di!g &O%#)1,+ to a 'ui d directory a o!g with your patch, edit the &O%#)1,+, a!d 'ui d/i!sta with /usr/bin/makepkg. *or creati!g your ow! packages for yourse f, or to share with the commu!ity o! the A)R. :ou are !ot imited to the &O%#)1,+s u!der /var/a's. Create your ow! to 'ui d from Grd party sourcecode. 3hey are simp e, ope! a!d tra!spare!t. @"p ore the prototype &O%#)1,+ provided at /usr/share/pacma!/&O%#)1,+.proto A#/ provides a! e"pedie!t method for recompi i!g, if !ecessary. *or e"amp e, to recompi e your video or wire ess drivers. 3o 'ui d a! i!sta a' e package with custom co!figuratio!s @!a' e or disa' e optio!s i! a!y package 'y modifyi!g the &O%#)1,+ 3o 'ui d a! i!sta a' e package, further optimi9ed for your machi!e=s architecture, /pecify your C*,A%/ i! /etc/makepkg.co!f. 3o re'ui d your e!tire system, #/+2sty e, further optimi9ed for your machi!e=s architecure. )se the makewor d script, or the commu!ity2co!tri'uted pac'ui der
&&9
&2&
C ick o! the Tarball i!k i! the ast i!e of the detai s, a!d save to a 'ui d directory. (avigate to, a!d e"tract the tar'a :
N tar -xvf 'aourt.tar.g3
@!ter the 'ui d directory a!d i!voke makepkg, which wi dow! oad the sources, compi e, a!d compress the i!sta atio! i!to a! i!sta a' e .pkg.tar.g9 package:
N ma&ep&g -c
2c C ea!s up a!y eftover fi es from the source compi atio! 2s +ow! oads a!d i!sta s a!y missi!g depe!de!cies 'y i!voki!g pacma! 1!sta with pacma!=s &+ ;upgrade< switch:
% pacman -< 'aourtIver ionJ.p&g.tar.g3
&22
&2'
&2-
/etc/conf.d/ So e dae on s"ripts 9ill have a at"hing "on0iguration 0ile in this dire"tory that "ontains so e use0ul de0ault values. Ahen a dae on is started< it 9ill 0irst sour"e the settings 0ro its "on0ig 0ile 9ithin this dire"tory< and then sour"e @et"@r"."on0. Ar"hCs si ple< transparent s"ripting approa"h eans you "an easily "entrali!e all your dae on "on0iguration options in your @et"@r"."on0 si ply by setting an appropriate variable value< or< split up your "on0iguration over ultiple 0iles i0 you pre0er a de"entrali!ed approa"h to this issue. /etc/rc.d/ All Ar"h dae ons reside here. Custo s"ripts ay also be pla"ed here and invoked 0ro the DA#B1$SG array in @et"@r"."on0 /etc/X11/ Con0iguration 0iles 0or the = Aindo9 Syste /etc/X11/xinit/ 3init "on0iguration 0iles. C3initC is a "on0iguration ethod o0 starting up an = session that is designed to be used as part o0 a s"ript. /etc/X11/xinit/xinitrc 6lobal 3initr" 0ile< used by all = sessions started by 3init :start3;. .ts usage is o0 "ourse overridden by a .3initr" 0ile lo"ated in the ho e dire"tory o0 a user.
&2,
&2)
&2*
&29
/usr/bin/ $on%essential "o and binaries :not needed in single user ode;H 0or all users. /his dire"tory "ontains the vast aDority o0 binaries :appli"ations; on your syste . #3e"utables in this dire"tory vary 9idely. 5or instan"e vi< g""< and gno e%session reside here. /usr/include/ 4eader 0iles needed 0or "o piling userspa"e sour"e "ode.. /usr/lib/ 2ibraries 0or the binaries in @usr@bin@ and @usr@sbin@. /usr/sbin/ $on%essential syste binaries o0 use to the syste ad inistrator. /his is 9here the net9ork dae ons 0or the syste reside< along &'0
5ile and dire"tory e3planation 9ith other binaries that :generally; only the syste ad inistrator has a""ess to< but 9hi"h are not reFuired 0or syste aintenan"e and repair. $or ally< these dire"tories are never part o0 nor al userCs IPA/4s< only o0 rootCs :PA/4 is an environ ent variable that "ontrols the seFuen"e o0 lo"ations that the syste 9ill atte pt to look in 0or "o ands;. /usr/share/ /his dire"tory "ontains CshareableC< ar"hite"ture%independent 0iles :do"s< i"ons< 0onts et";. $ote< ho9ever< that C@usr@shareC is generally not intended to be shared by di00erent operating syste s or by di00erent releases o0 the sa e operating syste . Any progra or pa"kage 9hi"h "ontains or reFuires data that donCt need to be odi0ied should store these data in C@usr@share@C :or C@usr@lo"al@share@C< i0 anually installed % see belo9;. .t is re"o ended that a subdire"tory be used in @usr@share 0or this purpose. /usr/src/ /he Clinu3C sub%dire"tory holds the 2inu3 kernel sour"es< and header%0iles. /usr/local/ 1ptional tertiary hierar"hy 0or lo"al data. /he original idea behind C@usr@lo"alC 9as to have a separate :Clo"alC; C@usr@C dire"tory on every a"hine besides C@usr@C< 9hi"h ight be ounted read%only 0ro so e9here else. .t "opies the stru"ture o0 C@usr@C. /hese days< C@usr@lo"al@C is 9idely regarded as a good pla"e in 9hi"h to keep sel0%"o piled or third%party progra s. /his dire"tory is e pty by de0ault in Ar"h 2inu3. .t ay be used 0or anually "o piled so0t9are installations i0 desired. Pa" an installs to @usr@< there0ore< anually &'&
Ar"h 2inu3 4andbook "o piled@installed so0t9are installed to @usr@lo"al@ ay pea"e0ully "o%e3ist 9ith pa" an%tra"ked syste so0t9are.
%var% -aria' e fi es, such as ogs, spoo fi es, a!d temporary e2mai fi es. A! Arch, the A#/ tree a!d pacma! cache a so reside here. 6hy !ot put the varia' e a!d tra!sie!t data i!to /usr/Y #ecause there might 'e circumsta!ces whe! /usr/ is mou!ted as read2o! y, e.g. if it is o! a C+ or o! a!other computer. =/var/= co!tai!s varia' e data, i.e. fi es a!d directories the system must 'e a' e to write to duri!g operatio!, whereas /usr/ sha o! y co!tai! static data. /ome directories ca! 'e put o!to separate partitio!s or systems, e.g. for easier 'ackups, due to !etwork topo ogy or security co!cer!s. Ather directories have to 'e o! the root partitio!, 'ecause they are vita for the 'oot process. =Hou!ta' e= directories are: =/home=, =/m!t=, =/tmp=, =/usr= a!d =/var=. @sse!tia for 'ooti!g are: =/'i!=, =/'oot=, =/dev=, =/etc=, =/ i'=, =/proc= a!d =/s'i!=.
/var/abs/ /he ABS tree. A ports%like pa"kage build syste hierar"hy "ontaining build s"ripts 9ithin subdire"tories "orresponding to all installable Ar"h so0t9are. /var/cache/pacman/pkg/ /he pa" an pa"kage "a"he. /var/lib/ State in0or ation. Persistent data odi0ied by progra s as they run :e.g. databases< pa"kaging syste etadata et".;. /var/lock/ Unsharable 2o"k 0iles data. 5iles keeping tra"k o0 resour"es "urrently in use. /var/log/ 2og 0iles. /var/mail/ Shareable dire"tory 0or usersC ailbo3es. /var/run/ Unshareable data about the running syste sin"e last boot :e.g. "urrently logged%in users and running dae ons;. /var/spool/ Spool 0or tasks 9aiting to be pro"essed :e.g. print Fueues and unread ail;. &'2
5ile and dire"tory e3planation /var/spool/mail/ Depre"ated lo"ation 0or usersC ailbo3es. /var/tmp/ /e porary 0iles to be preserved bet9een reboots.
&''
&'-
&',
&')
wi stop the postfi" daemo!. 3his directory is !ot i! the ]&A38 'y defau t, 'ut may 'e added for co!ve!ie!ce. A'vious y a correspo!di!g daemo! script o! y e"ists whe! the appropriate package has 'ee! i!sta ed ;i! this case postfi"<. 6ith a 'ase system i!sta , there are few scripts i! here, 'ut rest assured that a re eva!t daemo! scripts e!d up here. 1f you wish, you ca!, of course, create your ow! scripts a!d p ace them here, to 'e ca ed 'y the +A@HA(/V array i! /etc/rc.co!f o! system startup. 3his directory is pretty much the e7uiva e!t to the /etc/rcG.d/ or /etc/i!it.d/ directories of other distri'utio!s, 'ut without a the sym i!k hass e. 3he ack of sym i!k re7uireme!t is a defi!i!g differe!ce of a U#/+2sty e i!it framework, vs a sysvi!it.
&'*
&'9
is to remai! withi! the curre!t directory a!d to mai!tai! the e!viro!me!ta varia' es of the origi!a user ;rather tha! switch to those of the !ew user<. 1t sometimes ca! 'e adva!tageous for a system admi!istrator to use the she accou!t of a! ordi!ary user rather tha! its ow!. 1! particu ar, occasio!a y the most efficie!t way to so ve a user=s pro' em is to og i!to that user=s accou!t i! order to reproduce or de'ug the pro' em. 8owever, i! ma!y situatio!s it is !ot desira' e, or it ca! eve! 'e da!gerous, for the root user to 'e operati!g from a! ordi!ary user=s she accou!t a!d with that accou!t=s e!viro!me!ta varia' es rather tha! from its ow!. 6hi e i!adverte!t y usi!g a! ordi!ary user=s she accou!t, root cou d i!sta a program or make other cha!ges to the system that wou d !ot have the same resu t as if they were made whi e usi!g the root accou!t. *or i!sta!ce, a program cou d 'e i!sta ed that cou d give the ordi!ary user power to accide!ta y damage the system or gai! u!authori9ed access to certai! data. 3hus, it is advisa' e that admi!istrative users, as we as a!y other users that are authori9ed to use su ;of which there shou d 'e very few, if a!y<, ac7uire the ha'it of a ways fo owi!g the su comma!d with a space a!d the! a hyphe!. ; ogi! she optio!< 3he hyphe! has two effects: ;.< it switches from the curre!t directory to the home directory of the !ew user ;e.g., to /root i! the case of the root user< 'y logging in as that user, a!d ;2< it cha!ges the e!viro!me!ta varia' es to those of the !ew user as dictated 'y their [/.'ashrc. 3hat is, if the first argume!t to su is a hyphe!, the curre!t directory a!d e!viro!me!t wi 'e cha!ged to what wou d 'e e"pected if the
&+&
,ikewise, the same ca! 'e do!e for a!y other user, e.g., for a user !amed archie:
% u - archie
Pac!an
&acma! is 'oth a 'i!ary a!d source package ma!ager which is a' e to dow! oad, i!sta , a!d upgrade packages from 'oth remote a!d oca repositories with fu depe!de!cy ha!d i!g, a!d has easy2to2 u!dersta!d too s for crafti!g your ow! packages too. A more2detai ed descriptio! of &acma! ca! 'e fou!d i! its artic e.
%seful commands
3o view the optio!s avai a' e for a particu ar operatio!a comma!d, say &>, Qust appe!d it with &h:
pacman -Vh
3o sy!chro!i9e a!d update the oca packages data'ase with the remote repositories ;it is a good idea to do this 'efore i!sta i!g a!d upgradi!g packages<:
&+2
3o sy!c, update, a!d u"grade a the packages o! the system with o!e comma!d:
pacman -1'u
:ou ca! a so sy!c, update the package data'ase, a!d i!sta packages i! o!e comma!d:
pacman -1' pac&age: pac&age6
3o remove a package a!d a of the package=s depe!de!cies which are !ot used 'y a!y other i!sta ed package:
pacman -> pac&age
&+'
3o search the remote ;repo< package data'ase for a ist of packages matchi!g a give! keyword:
pacman -1 &e'(ord
3o ist a packages o! your system without the versio! stri!gs, we add the &@ optio!:
pacman -VE
3o search ;7uery< the oca ;your machi!e< package data'ase for a give! package:
pacman -V pac&age
3o search ;7uery< the oca ;your machi!e< package data'ase for a give! package a!d ist a perti!e!t i!formatio!:
&++
Co!verse y, to fi!d the package that ow!s a give! fi e ;i! this e"amp e, the ls e"ecuta' e<:
pacman -,o /bin/ls
3his may 'e a! i!dicatio! that a package you have previous y i!sta ed is !ow corrupt ;some or a of its fi es are missi!g<. :ou shou d try to fi!d the package !ame that provides the missi!g shared i'rary. 1! this e"amp e, you cou d type:
&+-
(ote: 3here are cou!t ess additio!a pacma! fu!ctio!s a!d comma!ds. 3ry ma! pacma! a!d co!su t the pacma! wiki e!tries.
)iles
3here are a !um'er of fi es eft a!d created 'y pacma! a!d other programs to faci itate mai!te!a!ce a!d to co!form to a safe computi!g practice. 6he! pacma! is i!sta i!g somethi!g, the package co!tai!s i!formatio! o! whether to 'ack up a particu ar
&+,
3o view the differe!ces of the o d a!d !ew versio!s of these fi es, we ca! either edit them ma!ua y or use a diff uti ity to take !ote of the differe!ces. 3here is a! automated too to fi!d a!d view such fi es avai a' e from the co!!unity repository:
pacman -1 pacman-contri, cd S/ pacdiff % a root
3here is a 'ug i! the a'ove too where if you !avigate to %etc a!d ru! it from there, the paths wi 'e messed up. 6e remai! o! the safer side 'y 'ei!g at 4home4. :ou may wa!t to ru! it as user first i! case you happe! to 'e a care ess perso! ;you may Qust overwrite or remove fi es 'ecause you thin* that is the right way<. 3here are other types of eftovers depe!di!g o! the programs avai a' e o! your system. /ome wi create 'ackups with a 2bak e"te!sio!, whi e others with somethi!g ike 4Q4 or 4&4. )!fortu!ate y, there is curre!t y !o way to 4automatica y4 fi!d a!d review them. *ear !ot, as we have !o !eed for automated too s to dea with such trivia tasks. /imp y use locate to search for them:
locate -e W.S W.- W.,a&
A!d we ca! use somethi!g usefu ike vi!diff to ook at the differe!ces ma!ua y:
&+)
&+*
/9eaks@5inishing tou"hes
Tweaks%?inishing touches
HAL
/i!ce you have !ow i!sta ed a desktop e!viro!me!t/wi!dow ma!ager, a!d if you did !ot do so ear ier, !ow wou d 'e a good time to a so i!sta 8A,. 8A, a ows p ug2a!d2p ay for your mo'i e pho!e, your i&od, your e"ter!a 8+=s, etc. 1t wi mou!t the device a!d make a !ice visua ico! o! your desktop a!d/or i! =Hy Computer=, a owi!g you to access the device after you have p ugged it i! i!stead of havi!g to ma!ua y co!figure the /etc/fsta' fi e or udev ru es for each a!d every !ew device. O+@, %(AH@ a!d S*C@ a use 8A,. 3he i!sta atio! procedure is descri'ed i! the 8A, artic e. /ome i!formatio! ca! a so 'e fou!d at 6ikipedia.
3his wi e!a' e daemo!s to oad i! the 'ackgrou!d, without waiti!g for the precedi!g daemo! to oad first. 1! some cases, this may cause issues, especia y if you re7uire daemo!s to start i! the specified order. &refi" a!y daemo!s which you do !ot !eed with a 'a!g ;P< e.g.:
?:;58-1=4 ' log-ng Hnet(or& Fnetf Hfam H&dm7 Fcrond Hal a Hhal
;A ter!ative y, you may a so simp y remove u!!eeded daemo!s from the array<.
&+9
&-0
/9eaks@5inishing tou"hes
8ption 8ption )O&,2a'out) )O&,Rariant) )de) )nodead&e' )
a!d add it to the daemo!s i! /etc/rc.co!f. 1f you a ready have hal specified i! your +A@HA(/, there is !o !eed to add ac"id. 8A, wi automatica y detect a!d oad the acpid daemo!. Ha!ua y, it ca! 'e started 'y
/etc/rc.d/acpid tart
Hore2specific i!formatio! a'out Arch ,i!u" o! various ,aptops ca! 'e fou!d at Category:,aptops ;@!g ish<
&-&
which dy!amica y i!creases the C&) fre7ue!cy if !eeded ;which is a safe choice o! desktop systems too<. A ter mi!$fre7 a!d ma"$fre7 to match your system=s C&) spec. 1f you do !ot k!ow the fre7ue!cies, ru! cpufre2-info after oadi!g o!e of the fre7ue!cy sca i!g modu es. :ou ca! a so comme!t out or de ete the mi!$fre7 a!d ma"$fre7 i!es: thi!gs wi work automatica y. Add the fre7ue!cy sca i!g modu es to your /etc/rc.co!f modu es i!e. Host moder! !ote'ooks a!d desktops ca! simp y use the acpi-cpufre2 driver, however other optio!s i!c ude the pB-cloc*mod, powernow*F, powernow-*G, powernow-*H, and speedstep-centrino drivers. ,oad the modu e with
modpro,e ImodulnameJ
P!&+tils
3he pm2uti s package wi a ow you to suspe!d2to2RAH a!d hi'er!ate:
pacman -1 pm-util
La"to"&8ode
3he aptop2mode2too s package is sort of a o!e2stop co!figuratio! for a aptop power ma!ageme!t uti ities. 1t works i! co!Qu!ctio!
&-2
/9eaks@5inishing tou"hes
with other i!sta ed too s to fu y co!figure everythi!g from hard disk spi!2dow! to S disp ay +&H/ sta!d'y times, if desired.
pacman -1 laptop-mode-tool
Add aptop2mode to your +A@HA(/V i!e i! /etc/rc.co!f a!d co!figure /etc/ aptop2mode/ aptop2mode.co!f.
&-'
H2 P*EA8(LE 3he purpose of this ,ice!se is to make a ma!ua , te"t'ook, or other fu!ctio!a a!d usefu docume!t 4free4 i! the se!se of freedom: to assure everyo!e the effective freedom to copy a!d redistri'ute it, with or without modifyi!g it, either commercia y or !o!commercia y. /eco!dari y, this ,ice!se preserves for the author a!d pu' isher a way to get credit for their work, whi e !ot 'ei!g co!sidered respo!si' e for modificatio!s made 'y others. 3his ,ice!se is a ki!d of 4copy eft4, which mea!s that derivative works of the docume!t must themse ves 'e free i! the same se!se. 1t comp eme!ts the %() %e!era &u' ic ,ice!se, which is a copy eft ice!se desig!ed for free software. 6e have desig!ed this ,ice!se i! order to use it for ma!ua s for free software, 'ecause free software !eeds free docume!tatio!: a free program shou d come with ma!ua s providi!g the same freedoms that the software does. #ut this ,ice!se is !ot imited to software ma!ua s0 it ca! 'e used for a!y te"tua work, regard ess of su'Qect matter or whether it is pu' ished as a pri!ted 'ook. 6e recomme!d this ,ice!se pri!cipa y for works whose purpose is i!structio! or refere!ce. 72 APPL/CA(/L/TE A-) )E?/-/T/,3his ,ice!se app ies to a!y ma!ua or other work, i! a!y medium, that co!tai!s a !otice p aced 'y the copyright ho der sayi!g it ca! 'e distri'uted u!der the terms of this ,ice!se. /uch a !otice gra!ts a
&--
&-,
&-)
&-*
&-9
&,0
&,&
&,2
&,'
1f you have 1!varia!t /ectio!s, *ro!t2Cover 3e"ts a!d #ack2Cover 3e"ts, rep ace the 4with...3e"ts.4 i!e with this:
(ith the Bnvariant 1ection ,eing 2B10 0=;B> 0B02;1K (ith the .ront-9over 0ext ,eing 2B10K and (ith the 6ac&-9over 0ext ,eing 2B10.
1f you have 1!varia!t /ectio!s without Cover 3e"ts, or some other com'i!atio! of the three, merge those two a ter!atives to suit the situatio!. 1f your docume!t co!tai!s !o!trivia e"amp es of program code, we recomme!d re easi!g these e"amp es i! para e u!der your choice of free software ice!se, such as the %() %e!era &u' ic ,ice!se, to permit their use i! free software.
&,+