====== Configuration ======
===== Locale =====
* edit /etc/locale.gen uncomment en_US.UTF-8
* execute locale-gen
* see rc.conf below
===== rc.conf =====
#
# /etc/rc.conf - Main Configuration for Arch Linux
#
#
# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.UTF-8"
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Paris"
KEYMAP="fr-latin9"
CONSOLEFONT=""
CONSOLEMAP=
USECOLOR="yes"
#
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# Scan hardware and load required modules at bootup
MOD_AUTOLOAD="yes"
# Module Blacklist - modules in this list will never be loaded by udev
MOD_BLACKLIST=()
#
# Modules to load at boot-up (in this order)
# - prefix a module with a ! to blacklist it
#
MODULES=(8139cp 8139too mii ac97_bus snd-mixer-oss snd-pcm-oss snd-seq-oss snd-seq-device snd-seq-midi-event snd-seq snd-hwdep snd-page-alloc snd-pcm snd-rawmidi snd-timer snd snd-ac97-codec snd-emu10k1 soundcore snd-util-mem snd-usb-lib snd-usb-usx2y)
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
#
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="speed-core"
#
# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available
# interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# - prefix an entry in INTERFACES with a ! to disable it
# - no hyphens in your interface names - Bash doesn't like it
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
# Don't use this for wireless interfaces, see network profiles below
#
eth0="dhcp"
lo="lo 127.0.0.1"
INTERFACES=(lo eth0)
#
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
#
# Enable these network profiles at boot-up. These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network-profiles
#
#NET_PROFILES=(main)
#
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng hal network netfs @openntpd @crond @alsa stbd @fail2ban @sshd )
# End of file
====== Grub ======
FIXMEEEEE
copy /boot/vmlinuz26 to /boot/vmlinuz26-anc, and /boot/kernel26.img to /boot/kernel26-anc.img to have a previous a kernel when the installation of a new one fail
title Arch Linux GDM [/boot/vmlinuz26]
root (hd0,1)
kernel /vmlinuz26 root=/dev/sda5 ro vga=792 5
initrd /kernel26.img
title Arch Linux Console [/boot/vmlinuz26]
root (hd0,1)
kernel /vmlinuz26 root=/dev/sda5 ro vga=792 3
initrd /kernel26.img
title Microdaube XP
rootnoverify (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
title Arch Linux Rescue [/boot/vmlinuz26]
root (hd0,1)
kernel /vmlinuz26 root=/dev/sda5 ro single
initrd /kernel26.img
title Arch Linux Fallback [/boot/vmlinuz26]
root (hd0,1)
kernel /vmlinuz26 root=/dev/sda5 ro single
initrd /kernel26-fallback.img
title Arch Linux Previous Kernel [/boot/vmlinuz26]
root (hd0,1)
kernel /vmlinuz26-anc root=/dev/sda5 ro single
initrd /kernel26-anc.img
====== Yaourt ======
edit /etc/pacman.conf and add:
[archlinuxfr]
Server = http://repo.archlinux.fr/i686
then : pacman -S yaourt versionpkg
====== PostInstall ======
- update the systeme:
pacman -Suy
- install xorg, gdm and necessary stuff
- pacman -S emacs subversion zsh most gdm sudo yaourt gnome
====== Add a new user ======
- adduser, groups: adm,wheel,games,video,audio,optical,storage,floppy
- sudo chsh -s /bin/zsh
====== sudo ======
- chmod 660 /etc/sudoers
- uncomment : %wheel ALL=(ALL) NOPASSWD: ALL
- chmod 440 /etc/sudoers
====== GDM ======
edit /etc/inittab, set:
* id:5:initdefault:
* x:5:respawn:/usr/sbin/gdm -nodaemon
====== Sound ======
* use alsaconf
===== us428 =====
* edit /etc/udev/rules.d/51-tascam.rules
cat /etc/udev/rules.d/51-usx2yloader.rules [08-01-12 23:59]
BUS=="usb", ACTION=="add", SYSFS{idProduct}=="8000", SYSFS{idVendor}=="1604", RUN+="/bin/sh -c '/sbin/fxload -D %N -s /usr/share/alsa/firmware/usx2yloader/ld2-ezusb.hex -I /usr/share/alsa/firmware/usx2yloader/us428fw.ihx'"
BUS=="usb", ACTION=="add", SYSFS{idProduct}=="8001", SYSFS{idVendor}=="1604", RUN+="/bin/sh -c '/usr/bin/usx2yloader; /usr/bin/us428control -m mixxx&'"
BUS=="usb", ACTION=="add", SYSFS{idProduct}=="8006", SYSFS{idVendor}=="1604", RUN+="/bin/sh -c '/sbin/fxload -D %N -s /usr/share/alsa/firmware/usx2yloader/ld2-ezusb.hex -I /usr/share/alsa/firmware/usx2yloader/us122fw.ihx'"
BUS=="usb", ACTION=="add", SYSFS{idProduct}=="8007", SYSFS{idVendor}=="1604", RUN+="/bin/sh -c '/usr/bin/usx2yloader'"
* compile fxload,usx2yloader,us428control into /usr/bin
====== AUR and Package ======
To create a package:
* create a directory
* create a PKGBUILD inside
* call makepkg
* to install the package call pacman -U pkgname.pkg.tgz
To install package:
* yaourt -S pkg
To update all pkg:
* yaourt -Suy
To search a pkg:
* yaourt -Ss pkgname
====== TODO ======
- sudo, remove root passwd