My Arch Linux Installation on Lenovo T450s

After receiving my Lenovo T450s, the first thing I did was open the back and swap out the hard drive with a Crucial SSD and an upgraded Kingston Ram. I wanted to try installing Arch Linux and that turned out to be a satisfying experience in the end. I have been happily running this setup for the last 6 months, and the boot time for my machine is now just under 10 seconds. Below are some of the notes I wrote down, while installing the base OS and configuring some of the details. Make sure to check out Arch Linux Installation Guide for a more step-by-step introduction.

Partition the drive

  • List of all Disks: fdisk -l
  • Start Partition: fdisk /dev/sda
n  
p  
<CR>  
<CR>  
+496GB
a

p  
<CR>  
<CR>  
<CR>  
t  
3  
82

w  
  • Create ESP if needed
gdisk  
(ef00)
mkfs.fat -F32 /dev/sda<X>

mkfs.ext4 /dev/sda1  
mount /dev/sda1 /mnt  
mkdir /mnt/boot  
mkdir /mnt/home  

GRUB Check for UEFI

  • Already installed GRUB http://www.rodsbooks.com/efi-bootloaders/installation.html df /boot/efi
  • Find the Number (1,2,3) for EFI partition parted /dev/sda print
  • Find out what disk and where it's being mounted
  • If GRUB is installed, create a directory && copy files from USB EFI into the newly created directory
mkdir /boot/efi/EFI/arch  
cp -r PATH_TO_USB /boot/efi/arch

efibootmgr -c -d /dev/sda -p 1 -l \\EFI\\newloader\\loadername.efi -L NewLoader  
mkdir /mnt/boot/EFI/efi
  • Make sure you have internet connection
ping -c3 www.google.com  

If not, wifi-menu -o

Install the system

pacstrap /mnt base base-devel  
genfstab -p /mnt >> /mnt/etc/fstab  

Configuring System

arch-chroot /mnt  
echo coolio > /etc/hostname  
cp /usr/share/zoneinfo/America/New_York /etc/localtime  
locale-gen  
mkinitcpio -p linux  
passwd  
pacman -S grub dialog wpa_supplicant  
grub-install /dev/sda  
grub-mkconfig -o /boot/grub/grub.cfg  
<CTRL-D>  
umount -R /mnt  
reboot  

Login as root

  • If Ethernet Connections:
cp /etc/netctl/examples/ethernet-dhcp /etc/netctl/enp0s3  
Change the Connection to be enp0s3  
netctl start enp0s3  
vi /etc/pacman.conf  
Uncomment Color  
pacman -S xf86-video-intel libva-intel-driver intel-ucode  
  • Install XFCE4 (the best Desktop enviornment in my opinion)
pacman -S xorg-server xorg-server-utils xorg-apps xorg-xinit xfce4 xfce4-goodies xterm

echo "exec startxfce4" > .xinitrc  
Xorg :0 -configure  
cp xorg.conf.new /etc/X11/xorg.conf  
  • Install some basic libraries and utilities
pacman -S xf86-input-synaptics zsh mesa-libgl wget firefox vim  
pacman -S networkmanager network-manager-applet xfce4-notifyd gnome-keyring seahorse openssh  
yaourt xfce4-indicator-plugin  
sudo systemctl start NetworkManager.service  
sudo systemctl enable NetworkManager.service  
  • Install Lightweight NTP client and server
pacman -S chrony  
usermod -Gaudio yo  
pacman -S alsa-utils alsa-plugins  
yaourt -S asoundconf  
comments powered by Disqus