Difference between revisions of "User:MajorTom"

From ArchWiki
Jump to: navigation, search
m
m
Line 1: Line 1:
* got first computer around 1984 - the [http://en.wikipedia.org/wiki/Image:ZX_Spectrum%2B.jpg ZX Spectrum+], followed by [http://en.wikipedia.org/wiki/Image:65xe.jpg Atari 65XE], [http://en.wikipedia.org/wiki/Image:Commodore64.jpg C64], [http://en.wikipedia.org/wiki/Image:Amiga500_system.jpg Amiga 500] and then entered the PC world in 1996 (Pentium 133)
+
<pre>
* been using GNU/Linux (that's right - it's GNU!) on and off since 1999; first distro I ever booted was [http://www.toms.net/rb/ tomsrtbt] from a 3.5" floppy disk; first "full blown" distro was Mandrake 5.2 "Leeloo"
+
:: Arch Linux Install Media 2012.07.15 Template ::
* tried RedHat, SuSE and many many others before settling on Debian mainly to enjoy the vast number of precompiled packages in the repos and the ease of package management with ''dselect'' (remember that one?) and later ''aptitude''
+
 
* finally started using Linux full time on the desktop in 2005 after installing Kubuntu 5.10 "Breezy Badger"
+
 
* been running Arch since September 2008, now on numerous systems at home and at work
+
Keyboard layout
 +
 
 +
# ls /usr/share/kbd/keymaps/
 +
# loadkeys uk
 +
 
 +
 
 +
Connect to the Internet
 +
 
 +
# dhcpcd
 +
or
 +
# dhclient eth0
 +
or
 +
# ip addr add 192.168.1.2/24 dev eth0
 +
# ip route add default via 192.168.1.1
 +
# echo "nameserver 8.8.8.8" >> /etc/resolv.conf
 +
 
 +
 
 +
Prepare disks
 +
 
 +
# fdisk /dev/sda
 +
or
 +
# cfdisk /dev/sda
 +
or
 +
# gdisk /dev/sda
 +
or
 +
# cgdisk /dev/sda
 +
 
 +
# mkfs.ext4 /dev/sda1
 +
# mkswap /dev/sda4
 +
 
 +
 
 +
Mount destination
 +
 
 +
# mount /dev/sda1 /mnt
 +
# mount /dev/sda2 /mnt/boot
 +
# mount /dev/sda3 /mnt/home
 +
# swapon /dev/sda4
 +
 
 +
 
 +
Install base system
 +
 
 +
# vi /etc/pacman.d/mirrorlist
 +
# pacstrap /mnt base base-devel
 +
or
 +
# pacstrap /mnt base base-devel syslinux [package1] [package2] [package3] [...]
 +
 
 +
 
 +
Install bootloader
 +
 
 +
# pacstrap /mnt syslinux
 +
or
 +
# pacstrap /mnt grub-bios
 +
or
 +
# pacstrap /mnt grub-efi-i386
 +
or
 +
# pacstrap /mnt grub-efi-x86_64
 +
 
 +
 
 +
Configure system
 +
 
 +
# genfstab -p /mnt >> /mnt/etc/fstab
 +
or
 +
# genfstab -p -U /mnt >> /mnt/etc/fstab
 +
or
 +
# genfstab -p -L /mnt >> /mnt/etc/fstab
 +
 
 +
# arch-chroot /mnt
 +
# vi /etc/hostname
 +
# ln -s /usr/share/zoneinfo/Europe/Athens /etc/localtime
 +
# vi /etc/locale.conf
 +
# vi /etc/locale.gen
 +
# locale-gen
 +
# vi /etc/mkinitcpio.conf
 +
# mkinitcpio -p linux
 +
# passwd
 +
 
 +
 
 +
Configure bootloader
 +
 
 +
# syslinux-install_update -iam
 +
# vi /boot/syslinux/syslinux.cfg
 +
or
 +
# modprobe dm-mod
 +
# grub-install --target=i386-pc --recheck --debug /dev/sda
 +
# mkdir -p /boot/grub/locale
 +
# cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
 +
# grub-mkconfig -o /boot/grub/grub.cfg
 +
or
 +
# mkdir -p /boot/efi
 +
# mount -t vfat /dev/sda1 /boot/efi
 +
# modprobe dm-mod
 +
# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --recheck --debug
 +
# mkdir -p /boot/grub/locale
 +
# cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
 +
# grub-mkconfig -o /boot/grub/grub.cfg
 +
 
 +
 
 +
Finish up
 +
 
 +
# exit
 +
# umount /mnt/{boot,home,}
 +
# reboot

Revision as of 19:50, 31 July 2012

:: Arch Linux Install Media 2012.07.15 Template ::


Keyboard layout

# ls /usr/share/kbd/keymaps/
# loadkeys uk


Connect to the Internet

# dhcpcd
or
# dhclient eth0
or
# ip addr add 192.168.1.2/24 dev eth0
# ip route add default via 192.168.1.1
# echo "nameserver 8.8.8.8" >> /etc/resolv.conf


Prepare disks

# fdisk /dev/sda
or
# cfdisk /dev/sda
or
# gdisk /dev/sda
or
# cgdisk /dev/sda

# mkfs.ext4 /dev/sda1
# mkswap /dev/sda4


Mount destination

# mount /dev/sda1 /mnt
# mount /dev/sda2 /mnt/boot
# mount /dev/sda3 /mnt/home
# swapon /dev/sda4


Install base system

# vi /etc/pacman.d/mirrorlist
# pacstrap /mnt base base-devel
or
# pacstrap /mnt base base-devel syslinux [package1] [package2] [package3] [...]


Install bootloader

# pacstrap /mnt syslinux
or
# pacstrap /mnt grub-bios
or
# pacstrap /mnt grub-efi-i386
or
# pacstrap /mnt grub-efi-x86_64


Configure system

# genfstab -p /mnt >> /mnt/etc/fstab
or
# genfstab -p -U /mnt >> /mnt/etc/fstab
or
# genfstab -p -L /mnt >> /mnt/etc/fstab

# arch-chroot /mnt
# vi /etc/hostname
# ln -s /usr/share/zoneinfo/Europe/Athens /etc/localtime
# vi /etc/locale.conf
# vi /etc/locale.gen
# locale-gen
# vi /etc/mkinitcpio.conf
# mkinitcpio -p linux
# passwd


Configure bootloader

# syslinux-install_update -iam
# vi /boot/syslinux/syslinux.cfg
or
# modprobe dm-mod
# grub-install --target=i386-pc --recheck --debug /dev/sda
# mkdir -p /boot/grub/locale
# cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
# grub-mkconfig -o /boot/grub/grub.cfg
or
# mkdir -p /boot/efi
# mount -t vfat /dev/sda1 /boot/efi
# modprobe dm-mod
# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --recheck --debug
# mkdir -p /boot/grub/locale
# cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
# grub-mkconfig -o /boot/grub/grub.cfg


Finish up

# exit
# umount /mnt/{boot,home,}
# reboot