How to Install Arch Linux-Part2

May 4, 2015

  1. Change your hostname system wide
### hostnamect sethostname ${Your_Desire_hostname} for example :
root@arch:~$ hostnamect sethostname mehdi
root@arch:~$ exit
  1. Login again Now your shell should look diffrent after “@” you should have your hostname like the following :
root@mehdi:~$
  1. Check the internet connection availability , if you dont have the connection follow the instruction in the previous
  2. Install your sound utilitis by issue the following command :
$ pacman -S alsa-utils
  1. Now its time to create user & install everything with the user NOT ROOT
$ pacman -S sudo
$ useradd -m -g users -G wheel,storage,power -s /bin/bash ${Your_User}=mehdi
$ passwd ${Your_User}=mehdi

Issue the command “visudo " and uncomment “%wheel ALL=(ALL)ALL” then save & exit from the file & current root user then login with your created user.

  1. Install X11 & other services

Note : since you are not “root” user anymore need to use “sudo” before every command that requires root previleges

$ sudo pacman -S xorg-server xorg-init xorg-server-utils mesa ttf-dejavu samba smbclient networkmanager networkmanager-vpnc networkmanager-openvpn networkmanager-pptp networkmanager-applet networkmanager-openconnect gvfs-smb sshfs

let the download begin & goto step 7 when its finished.

  1. Find your VGA
$ lscpi -k | grep -A 2 -i "VGA"

#### your out put may differ, below is an output example:
"01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2)
Subsystem: Gigabyte Technology Co., Ltd Device 34ef
Kernel driver in use: nvidia"

After you know what is your VGA you can install the driver.

$ sudo pacman -S x86-video-intel 			------------> this for intel VGA
$ sudo pacman -S x86-video-ati 			------------> this for ATI
$ sudo pacman -S nvidia 				------------> this for nvidia
$ sudo pacman -S virtualbox-guest-utils 		------------> this for Virtualbox
  1. Enable the network when system bootsup
$ sudo systemctl enable NetworkManager

Note : the word “N” and “M” should be capital.

  1. Time to load the drivers by restarting.
  2. Time to install KDE
$ sudo pacman -S kde-meta

P.S : if you prompted with some configuration you can use defaults.

  1. Create your DE Skeleton
$ cp /etc/skel/.xinitrc ~/.xinitrc
$ vi .xinitrc
$ uncomment "exec startkde"

Run “startx” and there you go.