2013年5月5日 星期日

[Arch Linux][USB][Update 2013-05-06] Install arch linux 2013 on the USB stick


[Arch Linux][USB][Update 2013-05-06] Install arch linux 2013 on the USB stick

# cfdisk /dev/sda

# mkfs -t ext4 /dev/sda1



# mkswap /dev/sda6

# swapon /dev/sda6



# mount /dev/sda1 /mnt



Install base package into /mnt

# pacstrap -i /mnt base



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

# cat /mnt/etc/fstab



Chroot and configure the base system

Next, we chroot into our newly installed system:

# arch-chroot /mnt

Can ignore

# nano /etc/locale.gen

en_US.UTF-8 UTF-8

# echo LANG=en_US.UTF-8 > /etc/locale.conf

# locale-gen


Hardware clock

# hwclock --systohc --utc

Can ignore

Set hostname :

# echo happy > /etc/hostname




Create an initial ramdisk environment

# mkinitcpio -p linux



Install the grub-bios package and then run grub-install /dev/sda

# pacman -S grub-bios

# grub-install /dev/sda

# grub-mkconfig -o /boot/grub/grub.cfg

# exit

# umount /mnt/

# reboot

############################################################

After reboot

Synchronizing package databases

# pacman -Syy

After reboot network interface always get ip address.

# systemctl enable dhcpcd.service





Following command is to install x-windows and choose which windows enviroment you want

# pacman -S xorg

# pacman -S xfce4

Have a ifconfig command

# pacman -S net-tools



Install Firefox

# pacman -S firefox



Start windows enviroment by using xfce

# startxfce4



############################################################

Q : After upgrade,Xorg Freeze at loading extension GLX [vmware]

A :

# pacman -R xf86-video-vmware



Reference :



Related Posts:

0 意見:

張貼留言