Průvodce začátečníka (Česky)

From ArchWiki

Jump to: navigation, search


Image:Tango-document-new.png This article is a stub.
It may be confusing, not contain enough information, or be a placeholder for an article to come. People are invited to expand it to full article status and remove this box.
Image:Tango-preferences-desktop-locale.png This page (or parts of it) was marked to be translated.
If you speak the original and target languages of the page, feel free to finish the translation. After you have finished the translation, remove the {{translateme}} flag from the document.
i18n
Česky
Dansk
简体中文
正體中文
Deutsch
English
Español
Français
Italiano
Lietuviškai
Português Brasil
Türkçe

Contents

[edit] Úvod

Tento dokument Vás provede procesem instalace a základní konfigurace kompletního systému Arch Linux. Je napsán pro aktuální verzi Arch Linuxu 0.8 a i když vám má ukázat jak získat plně nakonfigurovaný Arch Linux, není možné popsat konfiguraci do posledního detailu. Hlavním účelem je zaměřit se na důležité uživatelské kroky. Pokud Vám nebudou stačit informace, které se zde dozvíte, prozkoumejte prosím wiki a fórum.

Upozornění:
Dokument je zamýšlen jako stručný návod k instalaci a zprovoznění funkčního desktopu na Arch Linuxu pro pokročilejší uživatele. Pokud nerozumíte většině zde probíraných témat, projevte iniciativu a problematiku si nejdříve nastudujte. Využijte některý z volně dostupných virtualizačních programů (např. VMware Server) a vyzkoušejte si instalaci nanečisto.

Jestliže zjistíte, že něco důležitého zde chybí nebo nějaký postup nefunguje, zkuste se prosím nejdříve podívat na anglickou předlohu Beginners Guide. Pokud ani tam nenaleznete to, co hledáte, můžete kontaktovat původního autora na <freigeist [at] elfenbeinturm.cc> (anglicky pokud možno), napsat vzkaz do diskuze k tomuto článku nebo sami celou věc napravit a stránku editovat. Existuje i vlákno na oficiálním fóru Arch Linuxu, kde můžete vznášet případné otázky nebo návrhy (anglicky).

[edit] Stažení Arch Linuxu

Jako úplně první krok k nainstalování Arch Linuxu potřebujete stáhnout nejnovější snapshot archovských repozitářů v podobě .iso obrazu. Podívejte se tedy na http://www.archlinux.org/download/ a stáhněte si obraz pro požadovanou architekturu z vašeho nebližšího (oblíbeného) zrcadla nebo ze sítě BitTorrent. Pokud si nejste jisti co přešně stáhnout bude se vám hodit následující přehled:

Výběr instalačního CD podle architekury:

  • i686 - 32-bitový systém
  • x86_64 - 64-bitový systém

Výběr instalačního CD podle typu instalace:

  • base - obsahuje pouze základní balíčky (150 MB). Z tohoto instalačního média vytvoříte systém, který půjde ovládat pouze z příkazové řádky. Ostatní balíčky musíte doinstalovat z internetu.
  • full - obsahuje úplný current repozitář (550 MB). Pokud nebudete mít z počítače, na kterém budete provádět instalaci, přistup k internetu, stáhněte si verzi tuto verzi (v názvu .iso obrazu označena jako current).
  • ftp - ftp varianta (22 MB) obsahuje pouze komponenty nutné pro spuštění instalátoru. Ftp verze neobsahuje žádné balíčky. Ty se instalují z FTP serveru. Pokud tedy disponujete rychlým LAN připojením do sítě internet, může být pro vás ftp verze zajímavým instalačním řešením.


Důležité upozornění:
Nezapoměnte zkontrolovat oficiální kontrolní md5 součet instalačního CD s kontrolním součtem obrazu, který jste stáhli z internetu. Vyhnete se tím možným nepříjemným komplikacím. Kontrolní součty naleznete v souboru md5sum.txt. Získáte jej ze stejného zdroje, kde jste stáhli instalační obraz. Kontrolní md5 součet ze staženého ISO obrazu vygenerujete následovně:

md5sum /cesta/k/Archlinux-i686-0.8-Voodoo.base.iso

Nyní můžete porovnat vygenerovaný součet s příšlušným součtem ze souboru md5sum.txt. Program md5sum umožňuje i jednoduše porovnat součet oproti souboru md5sum.txt:

md5sum -c /cesta/k/md5sum.txt

Výstup může vypadat přibližně takto:

Archlinux-i686-0.8-Voodoo.base.iso: OK
Archlinux-i686-0.8-Voodoo.current.iso: FAILED open or read
Archlinux-i686-0.8-Voodoo.ftp.iso: FAILED open or read

Případných hlášek FAILED open or read si nevšímejte. Pokud se vedle názvu staženého souboru objeví OK, můžete se směle pustit do další instalace. V opačném případě zkuste stáhnout obraz znovu nebo z jiného zdroje. Utilita md5sum existuje i pro Windows. Stáhnete ji na adrese http://www.etree.org/cgi-bin/counter.cgi/software/md5sum.exe. Stažený .exe soubor nakopírujte do adresáře C:/Windows/system32 a otevřete příkazový řádek. Další práce je ekvivaletní k výše uvedeným příkladům.

[edit] Instalace základního systému

Kromě následujících informací se můžete podívat do oficiální anglické instalační přiručky nebo jejího českého překladu, kde naleznete další detaily ohledně instalačního procesu Arch Linuxu.

[edit] Boot z instalačního CD

Vložte CD s vypáleným obrazem Arch Linuxu do vaší CD mechaniky a restartujte počítač. Možná budete muset v BIOSu vašeho počítače změnit pořadí zařízení, na kterých se má hledat operační systém, tak aby jako první v pořadí byla vaše CD mechanika.

Pokud se vám podaří boot z instalačního CD, uvidíte obrazovku zakončenou výzvou boot: Nyní máte 3 možnosti.

  1. Stisknout klávesu ENTER. Tímto způsobem spustíte instalační live systém bez jakýchkoliv dalších průtahů.
  2. Zadat příkaz memtest. Spustí se program memtest, který slouží k testování operační paměti. Pokud se váš počítač chová zvláštně nebo vám padají aplikace, které ostatním jedou bez problémů, zkuste si otestovat paměť. Nejdříve vám ale doporučuji si něco málo o práci s memtestem přečíst.
  3. Poslední možností je specifické nastavení bootovacích parametrů kernelu live systému. Tuto možnost využijte pokud máte problémy s kernelem v live systému. Stačí napsat arch a za něj seznam parametrů s případnými hodnotami:
arch <parametry>

Existuje několik parametrů, které řeší všechny nejčastější problémy:

  • Pokud máte problémy s diskovým řadičem, bootujte s parametrem ide-legacy
  • Pokud live systém během startu "mrzne", zkuste tyto parametry noapic acpi=off pci=routeirq nosmp

Výsledný příkaz může být například:

arch ide-legacy noapic acpi=off

Na konci bootovacího procesu live systému uvidíte uvítací obrazovku, na jejímž konci bude věta:

Hit ENTER to enter the bash shell ...

Stiskněte ENTER.

[edit] Změna rozložení klávesnice

Pokud preferujete jiné než US rozložení, zadejte příkaz.

km

Když si vyberete požadované rozložení, čeká vás ještě výběr fontu, který bude použit v konzoli. Mějte prosím na paměti, že výběrem špatného fontu se nemusí korektně zobrazovat znaky s diakritikou. Pokud nevíte co udělat, nedělejte nic. Tento krok můžete s čistým svědomím přeskočit. Jako výchozí bezpečné hodnoty můžete použít US.map.gz a font default8x16.psfu.gz (tento tip je adresován všem, kterým se podařilo si klávesnici a font totálně rozhodit pomocí km).

[edit] Spuštění instalace

Zadejte příkaz:

/arch/setup 

[edit] Výběr instalačního zdroje

Ihned po potvrzení "grafické" uvítací obrazovky se instalační program zeptá na instalační zdroj. Vyberte "CD-ROM or OTHER SOURCE" pokud máte verzi full nebo base. Volbu FTP využijte pokud jste stáhli ftp verzi instalačního CD.

[edit] Příprava pevného disku

Dále zvolte možnost "Prepare Hard Drive". Dávejte si pozor na volbu "Auto-Prepare". Tato volba použije pro Arch Linux celý disk (pokud jich máte více, instalátor vám dá vybrat). Pokud nechcete smazat celý váš disk zvolte volbu "2. Partition Hard Drives", vyberte pevný disk (/dev/sdx) a vytvořte diskové oddíly. Arch používá libATA. To znamená, že všechny disky jsou značeny jako sdx. U staré verze rozhraní byly obyčejné IDE disky označovaný hdx.

Následující příklad předpokládá, že disponujete prázdným diskem a chcete vytvořit oddíl pro /, oddíl pro /home a oddíl pro swap. Instalátor používá k rozdělení disků konzolovou aplikaci cfdisk. Začněme tedy vytvořením prvního oddílu. Zvolte New -> Primary a velikost nového oddílu (něco mezi 6 - 8 GB je rozumná volba). Zadejte velikost oddílu (v MB) a zvolte, aby byl vytvořen na začátku volného místa (beginning). Vyberte nově vytvořený oddíl a označte jej jako "Bootable". Nyní bude možné z tohoto oddílu zavést systém. Přidejte stejným způsobem další oddíl pro domovské adresáře, ale tento oddíl neoznačujte jako "Bootable". "Bootable" může být jen jeden oddíl. Velikost tohoto oddílu závisí na vašich požadavcích. Budou v něm uloženy dokumenty, hudba, videa atd. Přizpůsobte tomu i velikost oddílu. Nakonec vytvořte poslední oddíl. Zvolte velikost mezi 512 MB - 1 GB a změňte typ na 82 (Linux swap / Solaris).

Na hlavní obrazovce cfdisku byste měli vidět rozdělení disku podobné tomuto (pokud jste předtím neměli žádné oddíly, jinak jich tam může být více):

Name    Flags  Part Type   FS Type         [Label]         Size (MB)
-------------------------------------------------------------------------
sda1    Boot   Primary     Linux                           (4096 - 8192)
sda2           Primary     Linux                           (> 100)
sda3           Primary     Linux swap / Solaris            (512 - 1024)

Zvolte možnost Write a potvrďte ji slovíčkem yes. Write provede přerozdělění disku. Dále zvolte Quit a vyberte Done.

Problematika rozdělování disků a adresářové struktury v linuxovém systému není těžká, ale její bližší objasnění překračuje rámec tohoto článku. Odkazy níže by vám mohly pomoci se odrazit, jestliže vůbec nevíte o čem je řeč.

Dělění disků
Adresářová struktura
Diskotéka v systému

[edit] Nastavení přípojných bodů

Nejdříve se vás instalátor zeptá, jaký oddíl si přejete použít pro swap (v našem příkladě sda3). Odpovězením na další otázku instalátor vytvoří souborový systém pro swap. Další otázka se týká kořenového adresáře, vyberte oddíl sda1. Nyní musíte vybrat souborový systém pro kořenový oddíl.

Když se zeptáte dvou lidí, jaký si vybrat systém souborů, dostanete třeba pět různých odpovědí. Každá z nich bude mít svá plus i minus. Největší rozdíl je v žurnálování (něco podobného jako transakce u databází). Všechny systémy souborů vyjma Ext2 jsou žurnálovací. Ext3 je naprosto kompatibilní s Ext2, a tudíž lze jej připojit i s velmi starými záchrannými CD. Bezpečná volba pro oddíl kořenového adresáře je Ext3. Reiserfs, XFS a JFS můžete použít také, jelikož grub (zaváděcí manažer, kterého nainstalujeme později) z nich také umí bootovat. Filesystém vytvoříte zvolením Yes. U všech dalších oddílů budete dotázáni, kam je chcete připojit. V našem příkladě zůstal volný jen sda2, takže vybereme JFS a připojíme do /home. Znovu vytvoříme systém souborů a zvolíme Done. Zpět do hlavního menu (Return).

[edit] Výběr balíčků

Nyní musíme vybrat balíčky, které chceme nainstalovat. Zvolte CD jako zdroj a vyberte příslušnou CD-ROM (pokud máte více než jednu CD mechaniku). Chceme začít s velmi základním systémem, proto neinstalujeme víc než základ [base] (zvolení všech základních balíčků je bezpečná volba). Je to na vás, jestliže chcete zvolit více balíčků, ale ukážeme vám jak nainstalovat další software jednodušeji. Pokračujte s instalováním balíčků [Install Packages].

[edit] Instalování balíčků

Toto je jednoduchý úkol, protože vše probíhá automaticky. Dejte si šálek kávy a počkejte na konec instalace (když bude potřeba, zmáčkněte pokračovat [continue]).

[edit] Nastavení systému

Budete vyzváni k tomu jestli chcete aby hwdetect zjistil informace o vašem počítači. Doporučejem zvolit tuto možnost. Now you will be asked if you need support for booting from usb devices, firewire devices, pcmcia devices, nfs shares, software raid arrays, lvm2 volumes and encrypted volumes. Choose yes if you need it, in our example nothing is needed. Now you will be asked which text editor you want to use, choose nano if you are not familiar with vi/vim. You will now get a menu with most important config files for your system. We will only do some minor tweaks at this time. If you want to look up the available options as stated in rc.conf just press Alt+F2 to get a shell, look it up and switch back to the installer with Alt+F1. Edit your /etc/rc.conf:

  • Change your LOCALE if needed (e.g. "de_DE.utf8")
  • Change your TIMEZONE if needed (e.g. "Europe/Berlin")
  • Change your KEYMAP if needed (e.g. "de-latin1-nodeadkeys")
  • Change MODULES if you know that an important module is missing (hwdetect should have filled in the most important modules)
  • Change your HOSTNAME
  • Change your Network settings:
    • Don't modify the lo line
    • Adjust the IP address, netmask and broadcast address if you are using a static ip
    • Set eth0="dhcp" if you have a router which dynamically assigns an ip address
    • If you have a static IP set the gateway address to your the one of your router and remove the ! in front of the ROUTES entry

You don't have to change the daemons line at this time, but it is useful to explain what daemons are, because we need them later in this guide. A daemon is a program that runs in the background, waiting for events to occur and offering services. A good example is a webserver that waits for a request to deliver a page or a ssh server waiting for someone trying to log in. While these are full featured applications, there are daemons whose work is not that visible. A daemon which writes messages into a log file (e.g. syslog, metalog), a daemon which lowers your cpu's frequency if your system has nothing to do or a daemon which offers you a graphical login (e.g. gdm, kdm). All these programs can be added to the daemons line and will started when the system boots. Useful daemons will be presented during this guide.

Use Ctrl+X to leave the editor.

Now we edit /etc/hosts:

  • Add the desired hostname (the one you set in rc.conf before) after localhost
  • If you use a static ip, add a new line <static-ip> hostname.domainname hostname

We shouldn't need to edit /etc/fstab, mkinitcpio.conf and modprobe.con at this point (fstab manages your filesystems, mkinitcpio configures the ramdisk (e.g. booting from raid, encrypted volumes) and modprobe can be used to set some special config options for the modules)

If you use a static ip set your dns server in /etc/resolv.conf (nameserver <ip-address>)

Now we edit /etc/locale.gen and choose the locales we need (remove the # in front of the line you want). Finally set a Root-Password and make sure that you remember it later. Return to the main menu and continue with installing a kernel.

[edit] Install Kernel

Not many choices here, choose v2.6 and continue. You may want to switch your kernel later. A fallback image will be created, keeping mkinitcpio as it is shown is a safe choice. Continue with installing a bootloader.

[edit] Install Bootloader

Because we have no secondary operating system in our example, we need a bootmanager. Grub is a good choice and a bit easier to configure and maintain than lilo. The shown grub configuration (menu.lst) should be safe choice. The only thing you may want to alter is the resolution of the console. Add a vga=<number> to the first kernel line. A table of resolutions and the according numbers is printed in the menu.lst. Exit the install and type reboot. If everything goes well, your new ArchLinux system will boot up and finish with a login prompt (you may want to change the boot order in your bios back to booting from hard disc).

[edit] Configuring the base system

We will now show some easy tweaks for the beginning. Login with your root account.

[edit] Configuring pacman

Edit /etc/pacman.conf

nano -w /etc/pacman.conf

and remove the # in front of the "Include = /etc/pacman.d/community"-line to add another package sources which offers many useful applications. Now edit /etc/pacman.d/community and move the mirrors which are located near to you up (if you use nano Ctrl+A starts selecting an area, cursor down marks the lines, Ctrl+K cuts the selected area and Ctrl+U uncuts it). Repeat this for all files in /etc/pacman.d/

[edit] Configuring the network

Advanced instructions for configuring the network can be found here

[edit] Wired Lan

If everything went fine, you should have a working network. Try to ping www.google.de to verify this. If you get an "unknown host" error, your network is not configured. Check this with

ifconfig

you should see an entry for eth0. You can set a new static ip with

ifconfig eth0 <ip address> netmask <netmask> up 

and the default gateway with

route add default gw <ip address of the gateway>

Check if /etc/resolv.conf contains your dns server and add it if it is missing. Check your network again with ping www.google.de. If everything is working now, adjust /etc/rc.conf as described in section 2.6 (static ip). If you have a dhcp server/router in your network try

dhcpcd eth0

If this is working, adjust /etc/rc.conf as described in section 2.6 (dynamic ip).

[edit] Wireless Lan

Wireless Setup (TODO) Simplify and generalize it, link only for more advanced stuff

[edit] Analog Modem

To be able to use a Hayes-compatible, external, analog modem, you need to at least have the ppp package installed. Modify the file /etc/ppp/options to suit your needs and according to man pppd. You will need to define a chat script to supply your username and password to the ISP after the initial connection has been established. The manpages for pppd and chat have examples in them that should suffice to get a connection up and running if you're either experienced or stubborn enough. With udev, your serial ports usually are /dev/tts/0 and /dev/tts/1.

Instead of fighting a glorious battle with the plain pppd, you may opt to install wvdial or a similar tool to ease the setup process considerably. In case you're using a so called WinModem, which is basically a PCI plugin card working as an internal analog modem, you should indulge in the vast information found on the LinModem homepage.

[edit] ISDN

Setting up ISDN is done in three steps:

  1. Install and configure hardware
  2. Install and configure the ISDN utilities
  3. Add settings for your ISP

The current Arch stock kernels include the necessary ISDN modules, meaning that you won't need to recompile your kernel unless you're about to use rather odd ISDN hardware. After physically installing your ISDN card in your machine or plugging in your USB ISDN-Box, you can try loading the modules with modprobe. Nearly all passive ISDN PCI cards are handled by the hisax module which needs two parameters; type and protocol. You must set protocol to '1' if your country uses the 1TR6 standard, '2' if it uses EuroISDN (EDSS1), '3' if you're hooked to a so called leased-line without D-channel, and '4' for US NI1.

Details on all those settings and how to set them is included in the kernel documentation, more specifically in the isdn subdirectory, or available online. The type parameter depends on your card; A list of all possible types is to be found in the README.HiSax kernel documentation. Choose your card and load the module with the appropriate options like this:

modprobe hisax type=18 protocol=2

This will load the hisax module for my ELSA Quickstep 1000PCI, being used in Germany with the EDSS1 protocol. You should find helpful debugging output in your /var/log/everything.log file in which you should see your card being prepared for action. Please note that you will probably need to load some usb modules before you can work with an external USB ISDN Adapter.

Once you confirmed that your card works with certain settings, you can add the module options to your /etc/modprobe.conf (or /etc/modules.conf if you're using kernel 2.4.x):

alias ippp0 hisax
options hisax type=18 protocol=2

Alternatively you can only add the options line here, and add hisax to your MODULES array in the rc.conf. Your choice, really, but this example has the advantage that the module will not be loaded until it's really needed.

That being done you should have working, supported hardware. Now you need the basic utilities to actually use it!

Install the isdn4k-utils package, and read the manpage to isdnctrl, it'll get you started. Further down in the manpage you will find explanations on how to create a configuration file that can be parsed by isdnctrl, as well as some helpful setup examples. Please note that you have to add your SPID to your MSN setting seperated by a colon if you use US NI1.

After you configured your ISDN card with the isdnctrl utility, you should be able to dial into the machine you specified with the PHONE_OUT parameter, but fail the username and password authentication. To make this work add your username and password to /etc/ppp/pap-secrets or /etc/ppp/chap-secrets as if you were configuring a normal analogous PPP link, depending on which protocol your ISP uses for authentication. If in doubt, put your data into both files.

If you set up everything correctly, you should now be able to establish a dialup connection with isdnctrl dial ippp0 as root. If you have any problems, remember to check the logfiles!

[edit] DSL (PPPoE)

These instructions are only relevant to you if your PC itself is supposed to manage the connection to your ISP. You do not need to do anything but define a correct default gateway if you are using a separate router of some sort to do the grunt work.

Before you can use your DSL online connection, you will have to physically install the network card that is supposed to be connected to the DSL-Modem into your computer. After adding your newly installed network card to the modules.conf/modprobe.conf or the MODULES array, you should install the rp-pppoe package and run the adsl-setup script to configure your connection. After you have entered all the data, you can connect and disconnect your line with

/etc/rc.d/adsl start

and

/etc/rc.d/adsl stop

respectively. The setup usually is rather easy and straightforward, but feel free to read the manpages for hints. If you want to automatically dial in on bootup, add adsl to your DAEMONS array.

[edit] Update systému

Update, synchronizaci a upgrade celého systému provedete jednoduchým příkazem:

pacman -Syu

pacman stáhne nejnovější informace o dostupných balíčcích a provede všechny dostupné aktualizace. (Je možné, že budete dotázáni na update samotného správce balíčků pacman. Pokud se tak stane, odpovězte Ano, a po jeho aktualizaci proveďte příkaz pacman -Syu znovu.) V případě, že byl aktualizován kernel, proveďte restart.


Note: Občas se stane, že je po aktualizaci potřeba ruční zásah do konfigurace; sledujte proto během upgrade výpis na obrazovce, kde se o případných nutných zásazích dočtete. Pokud máte například pomalé připojení a byl by pro vás problém hlídat, kdy začne probíhat samotný upgrade, můžete použít příkaz pacman -Syuw, který dostupné balíčky pouze stáhne, a samotnou instalaci provést později příkazem pacman -Su.


[edit] Krása modelu Arch rolling release

Myslete na to, že Arch je rolling release distribuce. To znamená, že neexistuje důvod pro reinstalaci, nebo nějaké šílené laborování při aktualizaci na nejnovější verzi. Úplně jednoduše pravidelným používáním příkazu pacman -Syu udržujete váš systém zcela aktuální.

[edit] Seznamte se s pacmanem

Pacman je ten nejlepší kamarád uživatelů Arch Linuxu. Doporučujeme vám, abyste se s ním dobře seznámili a naučili se ho používat. Zkuste příkaz:

man pacman

Ve volném čase si projděte také wiki sekci pacman.

[edit] Přidání uživatele a nastavení skupin

Pro každodenní práci byste neměli používat účet root. Nejenže je to nepraktické, hlavně je to nebezpečné. Root se používá pro administrátorské úkony. Namísto toho vytvořte běžné uživatelské účty příkazem:

adduser

Ačkoliv lze bezpečně použít většinu výchozích voleb, asi budete chtít pro využití plnohodnotného desktopu přidat uživatele do doplňujících skupin, jako storage, audio, video, optical a wheel.

Skupiny a příslušní uživatelé jsou definováni v /etc/group.

Zahrnují tyto možnosti:

  • audio - používání zvukové karty
  • wheel - umožní použít příkaz sudo
  • storage - správa úložných zařízení
  • video - video a 3D akcelerace
  • optical - přístup k optickým zařízením
  • floppy - přístup k disketovým jednotkám
  • lp - správa tiskových úloh

Více se o skupinách dočtete v sekci Groups.

Pro více informací se podívejte také na manuálové stránky usermod a gpasswd.

[edit] Installing and configuring Hardware

[edit] Configure the audio card

Your audio card should already be working but you can't hear anything because it is muted by default. Install the alsa-utils

pacman -S alsa-utils

and use alsamixer to adjust the channels. Unmute at least the master and pcm channel (press the M Key) and increase the volume with the cursor up key. Leave the alsamixer with ESC and store the settings with

alsactl store

Add alsa to your daemons in /etc/rc.conf to automatically restore the mixer on bootup.

[edit] Configuring CPU frequency scaling

Modern processors are able to decrease their frequency and voltage to reduce heat and power consumption. Mostly a reduction will lead to a quieter system, therefore even a desktop system will benefit from it. Install cpufrequtils with

pacman -S cpufrequtils

and add cpufreq to your daemons in /etc/rc.conf. Edit the config file /etc/conf.d/cpufreq and change

governor="conservative"

which dynamically increases the cpu frequency if needed (which is a safe choice on desktop systems too). Alter min_freq and max_freq to match your systems cpu spec. Add the frequency scaling modules to your /etc/rc.conf modules line (e.g. speedstep_centrino for Pentium M processors or powernow-k8 for the Athlon 64). Load the module with

modprobe <modulname> 

and start cpufreq with

/etc/rc.d/cpufreq start

[edit] Additional tweaks for laptops

ACPI support is needed if you want to use some special functions on your notebook (e.g. sleep, sleep when lid is closed, special keys...). Install acpid

pacman -S acpid

add it to the daemons in /etc/rc.conf (acpid). Start it with

/etc/rc.d/acpid start

Additional to this its a good choice to install powersave and add it to your daemons in /etc/rc.conf (powersaved). Powersave contains some fixes for suspend to ram and standby as well some more tweaks for battery saving. Start it with

/etc/rc.d/powersaved start

More specific information about Arch Linux on various Laptops can be found here

[edit] Installing and configuring Xorg

Now we will install Xorg using pacman. Type

pacman -S xorg 

and enter Y. Now we have the base packages we need for running the X Server. You should add the driver for your graphic card now (e.g. xf86-video-<name>). To get a list of all video drivers type

pacman -Ss xf86-video | less

If you don't know which graphic card you are using type

lspci | grep VGA

Now type Xorg -configure to create a basic X configuration. If you want to test your configuration install xterm and twm with

pacman -S xterm xorg-twm

move the xorg.conf.new (mv /root/xorg.conf.new /etc/X11/xorg.conf) and type startx. Exit the X Server with Ctrl+Alt+Backspace. You may want to change some things in your xorg.conf.

Advanced instructions for Xorg configuration can be found here

[edit] Adjusting Keyboard Layout

You may want to change your keyboard layout. To do this edit your /etc/X11/xorg.conf and add these lines in the Input Section (keyboard0) (the example shows a german keyboard layout with no dead keys, alter this to fit your needs).

       Option          "XkbLayout"     "de"
       Option          "XkbVariant"    "nodeadkeys"

[edit] Adjusting Mouse

While your mouse should be working out of the box, you may want to use you scroll wheel, add this to your Input Section (mouse0):

       Option      "ZAxisMapping" "4 5 6 7"

[edit] Using proprietary Graphics Driver (Nvidia, Ati)

[edit] Nvidia Graphic Cards

Install the nvidia drivers with

pacman -S nvidia

Adjust your /etc/X11/xorg.conf Device Section with changing Driver "nv" to Driver "nvidia". You may want to add a new section to enable DRI:

Section "DRI"
       Mode    0666
EndSection

Some useful tweaking options in the device section are (beware that these may not work on your system):

       Option          "RenderAccel" "true"
       Option          "NoLogo" "true"
       Option          "AGPFastWrite" "true"
       Option          "EnablePageFlip" "true"

You should add this to your module section:

Load "glx"

Type modprobe nvidia to load the driver and test your configuration with startx.

Advanced instructions for Nvidia configuration can be found here

[edit] ATI Graphic Cards

ATI owners have two options for drivers. If you unsure which driver to use try the open source one first. The open source driver will suite most needs along with generally being less problematic.

Install the proprietary ATI Driver with

pacman -S ati-fglrx

Use the aticonfig tool to modify the xorg.conf. Note: The proprietary driver does not support AIGLX. To use Compiz or Beryl with this driver you would need to use XGL.

Install the open source ATI Driver with

pacman -S xf86-video-ati

Currently the open source driver is not on par with the performance of the proprietary one. It also lacks TV-out, dual-link DVI support, and possibly other features. On the other hand it supports Aiglx and has better dual-head support.

Advanced instructions for ATI configuration can be found here.

[edit] Installing and configuring a Desktop Environment

If you ask two people what the best Desktop Environment or Window Manager is, you will get six different answers.

  • If you want something similar to Windows, KDE is a good choice
  • If you want something which follows more strictly the KISS principle, Gnome is a good choice
  • If you have a lowend system xfce4 is a good choice, still giving you a complete environment
  • If you need something lighter, openbox, fluxbox or fvwm2 may be the right (not to mention all other lightweight window managers like windowmaker and twm).
  • If you need something completely different try ion, wmii or dwm.

[edit] Install Fonts

First you may want to install some good looking fonts. Dejavu and bitstream-vera are nice font sets. For websites, you may want to have the Microsoft fonts too. Install with

pacman -S ttf-ms-fonts ttf-dejavu ttf-bitstream-vera

[edit] Gnome

[edit] About Gnome

The GNOME project provides two things: The GNOME desktop environment, an intuitive and attractive desktop for end-users, and the GNOME development platform, an extensive framework for building applications that integrate into the rest of the desktop.

[edit] Installation

Install gnome with

pacman -S gnome

If you want a more-than-complete Gnome-Distribution with a lot of extras, do a

pacman -S gnome-extra

Its safe to choose all packages shown. You may want to install a graphical login manager. For gnome gdm is a good choice. Install gdm with

pacman -S gdm

Test it with

/etc/rc.d/gdm start

If everything is working you may want to autostart gdm when booting your system, add gdm to the daemon section in your /etc/rc.conf.

You may want to install a terminal and an editor. I would recommend gnome-terminal and geany:

pacman -S geany gnome-terminal

Advanced instructions for installing and configuring Gnome can be found here

[edit] Eyecandy

You may find the default gnome theme and icons not very attractive. A nice gtk theme is murrine. Install it with

pacman -S gtk-engine-murrine

and select it with System->Preferences->Theme. You find more themes, icons and wallpaper at Gnome Look

[edit] KDE

[edit] About KDE

KDE is a powerful Free Software graphical desktop environment for Linux and Unix workstations. It combines ease of use, contemporary functionality, and outstanding graphical design with the technological superiority of the Unix operating system.

[edit] Installation

Install kde with

pacman -S kde

Its safe to choose all packages shown. You may want to install a graphical login manager. For kde kdm is a good choice. kdm Nainstalujete (jelikož je součástí kdebase) pomocí příkazu

pacman -S kdebase

Test it with

/etc/rc.d/kdm start

If everything is working you may want to autostart kdm when booting your system, add kdm to the daemon section in your /etc/rc.conf.

Advanced instructions for installing and configuring KDE can be found here. Also, a Version of KDE that is unique to Arch exists. It is called KDEmod and can be found at [1].

[edit] Xfce

[edit] About Xfce

Xfce is a Desktop Environment, like GNOME or KDE. It contains a suite of apps like a root window app, window manager, file manager, panel, etc. Xfce is written using the GTK2 toolkit and contains its own development environment (libraries, daemons, etc) similar to other big DEs. Unlike GNOME or KDE, Xfce is lightweight and designed more around CDE than Windows or Mac. It has a much slower development cycle, but is very stable and extremely fast. Xfce is great for older hardware.

[edit] Installation

Install xfce with

pacman -S xfce4 xfce4-goodies 

If you use kdm or gdm a new xfce session appeared. Alternatively you can use

startxfce4

Advanced instructions for installing and configuring Xfce can be found here

[edit] *box

[edit] Fluxbox

Fluxbox © is yet another windowmanager for X. It's based on the Blackbox 0.61.1 code. Fluxbox looks like blackbox and handles styles, colors, window placement and similar thing exactly like blackbox (100% theme/style compability).

Install Fluxbox using

pacman -S fluxbox fluxconf menumaker

If you use gdm/kdm a new fluxbox session will be automatically added. Otherwise you should modify your users .xinitrc and add this to it:

exec startfluxbox 

More information is available here

[edit] Openbox

Openbox is a standards compliant, fast, light-weight, extensible window manager.

Openbox works with your applications, and makes your desktop easier to manage. This is because the approach to its development was the opposite of what seems to be the general case for window managers. Openbox was written first to comply with standards and to work properly. Only when that was in place did the team turn to the visual interface.

Openbox is fully functional as a stand-alone working environment, or can be used as a drop-in replacement for the default window manager in the GNOME or KDE desktop environments.

Install openbox using

pacman -S openbox obconf menumaker

Once openbox is installed you will get a message to move menu.xml & rc.xml to ~/.config/openbox/ in your home directory:

mkdir -p ~/.config/openbox/
cp /etc/xdg/openbox/rc.xml ~/.config/openbox/
cp /etc/xdg/openbox/menu.xml ~/.config/openbox/

In the file "rc.xml" you can change various settings for Openbox (or you can use OBconf). In "menu.xml" you can change your right-click-menu.

To be able to log into openbox you can either go via graphical log in KDM/GDM or startx in which case you will need to edit your ~/.xinitrc (as user) to the following :

exec openbox

For KDM there is nothing left to do, openbox is listed in the sessions menu in KDM.

Useful programs for openbox are:

  • pyPanel or lxpanel if you want a panel
  • feh if you want to set the background
  • Rox if you want a simple filemanager and desktop icons

More information is available here

[edit] fvwm2

FVWM is an extremely powerful ICCCM-compliant multiple virtual desktop window manager for the X Window system. Development is active, and support is excellent.

Install fvwm2 with

pacman -S fvwm 

fvwm will automatically been listed in kdm/gdm in the sessions menu. Otherwise add

exec fvwm 

to your users .xinitrc.

Note that this stable version of fvwm is a few years old. If you want a more recent version of fvwm, there is a fvwm-devel package in the unstable repo.

[edit] Useful Applications

This section will never be complete. It just shows some good applications for the everyday user.

[edit] Internet

Firefox and Thunderbird are good applications for browsing the Internet and managing your emails. If you are using Gnome you may want to take a look at epiphany and evolution, if you are using KDE konqueror and kmail could be your choice. If you want something completely different you can still use Opera and various text-based browsers. Gaim and Kopete are good instant messengers for Gnome and KDE, respectively. PSI and Gajim are perfect if you are only using Jabber or GoogleTalk.

[edit] Office

Openoffice is a complete office suite (similar to Microsoft Office). Abiword is a good small alternative wordprocessor, gnumeric an excel replacement for the gnome desktop. KOffice is a complete office suite for the KDE Desktop. Gimp (or gimpshop) is a pixel based graphic program (similar to Adobe Photoshop) while inkscape is a vector based graphic program (like Adobe Illustrator). And of course Arch comes with a full set of LaTeX-Programms.

[edit] Multimedia

[edit] Video Player

[edit] VLC

(TODO)Link to instructions for vlc mozilla plugin

[edit] Mplayer

(TODO)Mozilla Plugin available, gmplayer for gtk

[edit] Totem

(TODO)totem-xine is still the better choice if you want to watch dvds.

[edit] Kaffeine

(TODO)

[edit] Audio Player

[edit] Gnome

(TODO)Banshee, Quodlibet, Exaile, Rhythmbox, Listen are all good audio players. Check gnomefiles.org to compare them.

[edit] KDE

(TODO)Amarok is one of the best audio player and music library systems available for kde.

[edit] Console

Moc is a ncurses based audio player for the console, another good choice is mpd.

Another excellent choice is cmus[2]

[edit] Other X-based

(TODO)Xmms, audacious, bmpx.


[edit] Codecs and other multimedia content types

[edit] DVD

You can use totem-xine, mplayer or kaffeine (just to name three of the big ones) to watch dvds. The only thing you may miss is libdvdcss. Beware that using it may be illegal in some countries.

[edit] Flash

Install the flash plugin using pacman -S flashplugin to enable Macromedia (now Adobe) Flash in your browser.

[edit] Quicktime

Quicktime Codecs are contained in the codecs package. Just type

pacman -S codecs

to install them.

[edit] Realplayer

The codec for Realplayer 9 is contained in the codecs package. Just type

pacman -S codecs

to install them. There is a Realplayer 10 available as a binary package for Linux. You can get it from AUR here

[edit] CD and DVD Burning

(Todo)Brasero, k3b, cdrecord, graveman...

[edit] TV-Cards

There are several things to do if you want to watch TV under (Arch) Linux. The most important task is to find out which Chip your tuner is using. However, quite a bunch is supported. Be sure to check at a Hardware Database to be sure (e.g. [3]). Once you know your Model, there are just a few steps ahead to get you going.

In most cases, you will need to use the bttv-drivers (other drivers exist, see [4]) together with the I2C-modules. Configuring those is the hardest task. If you are lucky, a

modprobe bttv

will autodetect the card (check dmesg for results). In that case, you only need to install an Application to watch TV. We will look on that later though. If the autodetection did not work, you will need to check the file CARDLIST, which is included in the tarball of bttv[5] to find out the right parameters for your card. A PV951 without radio support would need that line:

modprobe bttv card=42 radio=0

Some cards need the following line to produce sound:

modprobe tvaudio

However, that varies. So just try it out. Some other cards demand the following line:

modprobe tuner

This is object to trial-and-error, too.

TODO: clarify the installation-procedure

To actually watch TV, install the xawtv-package with

pacman xawtv

and let it search for channels.

TODO: clarify some possible problems and procedures

[edit] Digital Cameras

Most newer digital cameras are supported as usb mass storage devices which means that you can simply plug it in and copy the images. Older cameras may use the ptp (Picture Transfer Protocol) which requires a "special driver". Gphoto2 provides this driver and allows a shell based transfer of the images, digikam (for KDE) and gthumb (for Gnome, gtkam would be another choice) use this driver and offer a nice gui.

[edit] USB Memory Sticks / Hard Disks

USB Memory Sticks and hard disks are supported out of the box with the usb mass storage device driver and will appear as a new scsi device (/dev/sdX). If you are using KDE or Gnome you should use dbus and hal (add them to your daemons in /etc/rc.conf) and they will be automatically mounted. If you use a different Desktop Environment you may have a look at ivman.

[edit] Maintaining the system

[edit] Pacman

Pacman is both a binary and source package manager which is able to download, install and upgrade packages from both remote and local repositories with full dependency handling, and has easy to understand tools for crafting your own packages too.

A more detailed description of Pacman can be found here.

[edit] Useful commands

To synchronize the local packages database with the remote repositories (it is a good idea to do this before installing and upgrading packages):

pacman -Sy


To install or upgrade a single package or list of packages (including dependencies):

pacman -S packageA packageB


To remove a single package, leaving all of its dependencies installed:

pacman -R package

To also remove all of the packages dependencies which aren't used by any other installed package:

pacman -Rs package


To update all the packages on the system:

pacman -Su


To search the package database for a list of packages matching a given keyword:

pacman -Ss keyword

[edit] Further information

Further information and support can be found at the homepage, the wiki, the forum, the IRC channel or the mailing lists.

Personal tools