| Article Index |
|---|
| Arch Linux Installation Guide |
| Page 2 |
| Page 3 |
| Page 4 |
| Page 5 |
| Page 6 |
| Page 7 |
| Page 8 |
| Page 9 |
| Page 10 |
| Page 11 |
| Page 12 |
| Page 13 |
| Page 14 |
| Page 15 |
| Page 16 |
| Page 17 |
| Page 18 |
| Page 19 |
| Page 20 |
| All Pages |
16. fstab Configuration
Now let’s configure our /etc/fstab file.
We are interested on the lines that are relevant to optical drives and the floppy.
First of all see in which directories under “/mnt/” they are configured to be mounted and with Midnight Commander delete them.
Create under “/” directory a new directory “media” and in there create directories like these:
cdrom0 cdrom1
depending on how many optical drives you have.
If you have a floppy create also the next directory:
floppy0
Now back to fstab.
The lines that the installed has placed in there are wrong and so you may delete them. In their place add the following ones:
/dev/sr0 /media/cdrom0 udf,iso9660 ro,user,noauto,iocharset=utf8,unhide 0 0 /dev/sr1 /media/cdrom1 udf,iso9660 ro,user,noauto,iocharset=utf8,unhide 0 0 /dev/fd0 /media/floppy0 vfat user,noauto,iocharset=utf8 0 0
This is for our example where we have two optical drives and one floppy.
Note that your optical drives device names may be different from mine.
For your optical drives you may open later k3b and see what the names are. In the top left there will be a list with all your optical drives and their names as well.
Save the file and exit.
Now, we are finished with fstab as well.
17. Xorg Configuration
Now let’s configure our X Server in order to have a nice refresh rate and 3D acceleration.
In your console type:
mkdir /mnt/arch/etc/X11
Create a new file in there and save it with Western Locale encoding and a name
xorg.conf
Our xorg.conf is composed from three parts:
a. The first part is common for everyone. Copy and paste this one.
Section "Files"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/cyrillic"
FontPath "/usr/share/fonts/100dpi/:unscaled"
FontPath "/usr/share/fonts/75dpi/:unscaled"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/TTF"
EndSection
Section "ServerFlags"
Option "AutoAddDevices" "False"
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us,gr"
Option "XkbOptions" "grp:ctrl_shift_toggle,lv3:ralt_switch,eurosign:e"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection
b. The next part depends on our video card:
for nVidia σειρά GeForce5 and above
Section "Module"Load "dbe"
Load "freetype"
Load "glx"
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
EndSection
Section "Device"
Identifier "My Graphics Card"
Driver "nvidia"
# Option "DynamicTwinView" "false"
Option "RenderAccel" "true"
Option "CursorShadow" "true"
Option "HWCursor" "true"
Option "TripleBuffer" "true"
# Option "ConnectedMonitor" "DFP"
# Option "ConnectedMonitor" "CRT"
Option "InitialPixmapPlacement" "2"
Option "GlyphCache" "1"
EndSection
Section "Extensions"
Option "Composite" "enable"
EndSection
for ATi RADEON from X-XXXXX and above
Section "Module"Load "dbe"
Load "type1"
Load "freetype"
Load "glx"
Load "dri"
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
EndSection
Section "DRI"
Mode 0666
EndSection
Section "Device"
Identifier "My Graphics Card"
Driver "fglrx"
BusID "PCI:2:0:0"
Option "no_accel" "no"
Option "no_dri" "no"
Option "mtrr" "off"
Option "DesktopSetup" "clone"
Option "ScreenOverlap" "0"
Option "Capabilities" "0x00000800"
Option "CapabilitiesEx" "0x00000000"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Option "CenterMode" "off"
Option "PseudoColorVisuals" "off"
Option "Stereo" "off"
Option "StereoSyncEnable" "1"
Option "FSAAEnable" "no"
Option "FSAAScale" "1"
Option "FSAADisableGamma" "no"
Option "FSAACustomizeMSPos" "no"
Option "FSAAMSPosX0" "0.000000"
Option "FSAAMSPosY0" "0.000000"
Option "FSAAMSPosX1" "0.000000"
Option "FSAAMSPosY1" "0.000000"
Option "FSAAMSPosX2" "0.000000"
Option "FSAAMSPosY2" "0.000000"
Option "FSAAMSPosX3" "0.000000"
Option "FSAAMSPosY3" "0.000000"
Option "FSAAMSPosX4" "0.000000"
Option "FSAAMSPosY4" "0.000000"
Option "FSAAMSPosX5" "0.000000"
Option "FSAAMSPosY5" "0.000000"
Option "UseFastTLS" "1"
Option "BlockSignalsOnLock" "on"
Option "UseInternalAGPGART" "no"
Option "ForceGenericCPU" "no"
Option "TVFormat" "PAL-G"
Option "OverlayOnCRTC1" "1"
Option "TexturedVideo" "True"
Option "TexturedVideoSync" "True"
Option "Textured2D" "True"
Option "TexturedXrender" "Off"
Option "MaxGARTSize" "256"
EndSection
Section "Extensions"
Option "Composite" "Enable"
Option "RENDER" "Enable"
Option "DAMAGE" "Enable"
Option "XVideo" "Enable"
EndSection
for ATi RADEON till 9800XT
Section "Module"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "GLcore"
Load "glx"
Load "int10"
Load "record"
Load "type1"
Load "vbe"
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
EndSection
Section "DRI"
Mode 0666
EndSection
Section "Device"
Identifier "My Graphics Card"
Driver "radeon"
BusID "PCI:2:0:0"
EndSection
In the last two ATi cases if you get an error try to change in the line:
BusID "PCI:2:0:0"
The first number (here it is 2) to something else (such as 5) and try again. You might find the correct number by typing:
lspci | grep VGA
c. The third part depends on the type and model of your screen.
for TFT with DVI
Section "Monitor"
Identifier "My Monitor"
Option "DPMS" "True"
Option "DPI" "96 x 96"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "My Graphics Card"
Monitor "My Monitor"
Option "UseEvents" "true"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024"
Viewport 0 0
EndSubSection
Option "AddARGBGLXVisuals" "true"
# Option "PixmapCacheSize" "1000000"
# Option "AllowSHMPixmaps" "0"
EndSection
Here be careful. In the line
Modes "1280x1024"
You see what your screen resolution is. You should place your screen’s native resolution.
for CRT
Section "Monitor"
Identifier "My Monitor"
Option "DPMS" "True"
Option "DPI" "96 x 96"
HorizSync 30-115
VertRefresh 50-160
#Modeline "1280x960@100" 178.992 1280 1376 1520 1760 960 961 964 1017 +hsync +vsync
#Modeline "1152x864@100" 143.472 1152 1232 1360 1568 864 865 868 915 +hsync +vsync
#Modeline "1024x768@120" 166.71 1024 1056 1688 1720 768 780 795 807 +hsync +vsync
#Modeline "1600x1200@85" 300.92 1600 1632 2768 2800 1200 1222 1239 1261 +hsync +vsync
EndSection
Section "Screen"
Identifier "Default Screen"
Device "My Graphics Card"
Monitor "My Monitor"
Option "UseEvents" "true"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x960" "1152x864" "1024x768"
Viewport 0 0
EndSubSection
Option "AddARGBGLXVisuals" "true"
# Option "PixmapCacheSize" "1000000"
# Option "AllowSHMPixmaps" "0"
EndSection
Here you need even more attention.
Again in the line:
Modes "1280x960" "1152x864" "1024x768"
You can see which are your screen’s acceptable resolution. The first one should be what you want to use as a default.
BE CAREFUL!!
Don’t put in there a resolution that isn’t accepted from your screen.
Moreover in the following lines:
HorizSync 30-115 VertRefresh 50-160
Read your screen’s specifications and place your horizontal and vertical refresh rates.
BE CAREFUL!!
If you use wrong values in here you may damage your screen.
Now save the file and close gedit.
Umount all the partitions you have previously mounted.
cd /
Be careful. Here we umount with the reverse order we have previously mounted the partitions. Start from the folders and go to ther root “/”.
umount /mnt/arch/mnt/repos
umount /mnt/arch
The directory arch is not needed any more so delete it.
rmdir /mnt/arch
In that part the live CD isn’t needed any more. So exit everything that is running and reboot.
When computer reboots enter BIOS and select hard disk drive as the boot device.