You are on page 1of 8

fdisk -l

# mkfs.ext4 /dev/sda2
# mkfs.ext4 /dev/sda3
It is good idea to create swap drive as well for swap operations and hibernation support

create 2gb of partition i.e /dev/sda4

create swap on /dev/sda4

# mkswap /dev/sda4
# swapon /dev/sda4
Now mount your partitionis

# mount /dev/sda2 /mnt


I am going to create home directory in root and will mount dev/sda3 to it

# mkdir /mnt/home
# mount /dev/sda3 /mnt/home
Select a mirror list:

During installation linux will download files from internet, it is recommended that you
select nearest mirror to get fast downloads

# nano /etc/pacman.d/mirrorlist
find your country or nearest one in file by pressing ctrl+w and type your country name
and hit enter

copy whole line using alt+6 and now go to start by using pageup button or home button
on keyboard

paste that line on the top of file using ctrl+u


now save the file using ctrl+x and enter y to save

Installing base arch linux

# pacstrap -i /mnt base


if you want to build packages then you should need

# pacstrap -i /mnt base base-devel


Generate an fstab

linux needs to store partitions and mount information for future use to auto mount drives
lets generate that configuration file
# genfstab -U -p /mnt >> /mnt/etc/fstab
to make sure file has been create correctly please use following

# nano /mnt/etc/fstab
Enter to new arch linux environment

# arch-chroot /mnt
Set your locale

edit locales file

# nano /etc/locale.gen
and uncomment your locale

I uncomment en_US.UTF-8 UTF-8 for english

Generate the locale(s) specified in /etc/locale.gen:

# locale-gen
Create the /etc/locale.conf file substituting your chosen locale:

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


Export substituting your chosen locale:

# export LANG=en_US.UTF-8
Time zone

Available time zones and subzones can be found in the /usr/share/zoneinfo/Zone/SubZone


directories.

To view the available zones, check the directory /usr/share/zoneinfo/:

# ls /usr/share/zoneinfo/
Similarly, you can check the contents of directories belonging to a subzone:

# ls /usr/share/zoneinfo/Asia
Create a symbolic link /etc/localtime to your subzone file
/usr/share/zoneinfo/Zone/SubZone using this command:

# ln -s /usr/share/zoneinfo/Zone/SubZone /etc/localtime
Example:

# ln -s /usr/share/zoneinfo/Asia/Karachi /etc/localtime
Hardware clock
Set the hardware clock mode uniformly between your operating systems. Otherwise, they
may overwrite the hardware clock and cause time shifts.

# hwclock --systohc --utc


Hostname

Set the hostname of your computer (e.g. arch):

# echo arch > /etc/hostname


Configure your net work

If you prefer wifi:

# pacman -S iw wpa_supplicant dialog wpa_actiond


# wifi-menu
# systemctl enable netctl-auto@interface_name.service
If you prefer lan then do following

# systemctl enable dhcpcd@interface_name.service


example:
# systemctl enable dhcpcd@enp38s0.service
To find your interface name you can use either

# ip link
or
# ls /sys/class/net
You will see your device name as some thing like “enp38s0”

Finishing base installation

Set the root password with:

# passwd
Now it’s time to create a user for the system and also add some groups to it.

So run the following command and replace ‘tofeeq‘ with your user-name.

# useradd -m -g users -G wheel,storage,power -s /bin/bash tofeeq


add a password to tofeeq

# passwd tofeeq
Sudo

Now we have to allow this use to do administrative jobs as sudo so let’s install sudo.

# pacman -S sudo
Once that is done, we will now allow the users in wheel group to be able to performance
administrative tasks with sudo. Run the following command to edit the sudoers:

# EDITOR=nano visudo
It will open the sudoers file where you have to uncomment this line:

%wheel ALL=(ALL) ALL


I will also recommend installing bash-completion so that Arch auto-complete commands
of names of packages:

# pacman -S bash-completion
Install boot loader

GRUB

Install the grub package and then run grub-install to install the bootloader:

# pacman -S grub
# grub-install --target=i386-pc --recheck /dev/sda
# pacman -S os-prober
# grub-mkconfig -o /boot/grub/grub.cfg
# exit
# reboot
Installing display managers

install xserver

# pacman -S xorg-server xorg-server-utils xorg-xinit


Now we will also install mesa for 3D support:

# pacman -S mesa
It’s time to install video drivers. I am using intel graphic card so would be using

# sudo pacman -S xf86-video-intel intel-dri


If you are not using intel then you might explore

https://wiki.archlinux.org/index.php/General_recommendations

If you are using a laptop you need to install the drivers for input devices like touch-pad

# pacman -S xf86-input-synaptics
# pacman -S xorg-twm xorg-xclock xterm
Install Desktop Environment

# sudo pacman -S kde


# systemctl enable kdm.service
# systemctl start kdm.service
install network managers

# pacman -S kdeplasma-applets-plasma-nm
Audio management

# pacman -S alsa-utils pulseaudio kdemultimedia-kmix


Install the mesa package, which provides the DRI driver for 3D acceleration.

 For 32-bit application support, also install the lib32-mesa package from
the multilib repository.

 For the DDX driver (which provides 2D acceleration in Xorg), install the xf86-video-
intel package. (Often not recommended, see note below.)

 For Vulkan support (Ivy Bridge and newer), install the vulkan-intel package.

The Intel kernel module should load fine automatically on system boot.
If it does not happen, then:

 Make sure you do not have nomodeset or vga= as a kernel parameter, since Intel requires
kernel mode-setting.

 Also, check that you have not disabled Intel by using any modprobe blacklisting
within /etc/modprobe.d/ or /usr/lib/modprobe.d/.

Enable GuC / HuC firmware loading


For Skylake and newer processors, some video features (e.g. CBR rate control on SKL low-power
encoding mode) may require the use of an updated GPU firmware, which is currently (as of 4.16) not
enabled by default. Enabling GuC/HuC firmware loading can cause issues on some systems; disable
it if you experience freezing (for example, after resuming from hibernation).
Note: See Gentoo:Intel#Feature support for an overview of Intel processor generations.
For those processors it is necessary to add i915.enable_guc=2 to the kernel parameters to
enable both GuC and HuC firmware loading. Alternatively, if the initramfs already includes
the i915 module (see Kernel mode setting#Early KMS start), you can set these options through a
file in /etc/modprobe.d/, e.g.:

/etc/modprobe.d/i915.conf

options i915 enable_guc=2

It is possible to enable both GuC/HuC firmware loading and GuC submission by using
the enable_guc=3 module parameter, although this is generally discouraged and may even
negatively affect your system stability.
You can verify both are enabled by using dmesg:

$ dmesg

[drm] HuC: Loaded firmware i915/kbl_huc_ver02_00_1810.bin (version 2.0)


[drm] GuC: Loaded firmware i915/kbl_guc_ver9_39.bin (version 9.39)
i915 0000:00:02.0: GuC firmware version 9.39
i915 0000:00:02.0: GuC submission enabled
i915 0000:00:02.0: HuC enabled

Installation and configuration

CPU & Graphics


Works perfectly out of the box with the typical installation. More information: Intel & Microcode
Touchpad
Works fully with 3.17+ kernel.
Bluetooth
toshiba_bluetooth kernel module is auto-loaded but is not necessary and, in fact, it is counter-
productive, since as soon as you disable bluetooth (e.g. with rfkill), it seems to attempt to re-load the
Intel bluetooth firmware every few seconds. Just blacklist the module.
Create /etc/modprobe.d/toshiba-blacklist.conf with:

blacklist toshiba_bluetooth

Wifi
linux-firmware is needed for the correct working of wifi.
Smart Card Reader
Works perfectly with ccid & opensc .
Display Backlight Control
Control with the Fn buttons works correctly in 3.17 and 3.18 kernel. However, in 3.19 kernel, a
minimum configuration is needed because toshiba_acpi kernel module add some non-necessary
backlight control. For controlling with Fn, create /etc/X11/xorg.conf.d/80-
backlight.conf with

Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "Backlight" "intel_backlight" # use your backlight that works here
EndSection

Keyboard Backlight control


The backlight works correctly if it is configured on BIOS. toshiba_acpi kernel module add support
for configuring the backlit of the keyboard. However, Fn-Z does not work. The modules can be
changed
in /sys/devices/LNXSYSTM:00/LNXSYBUS:00/TOS6208:00/kbd_backlight_mode with the
modes: 2,8,16.

# tee /sys/devices/LNXSYSTM:00/LNXSYBUS:00/TOS6208:00/kbd_backlight_mode <<< 2

Fingerprint reader
The last version of fprintd has support for it. However, the image usually is wrong (lengthened) and
needs two, three or more tries to obtain verifications.
Category:

 Toshiba

You might also like