The following document is install references for ArchLinux rolling distribution
With some steps for ThinkPad's.
- [Official Installation Guide](https://wiki.archlinux.org/index.php/Installation_Guide)
# The ArchLinux Off-line documentation
pacman -Syu arch-wiki-docs arch-wiki-lite
# Load Slovenian Keyboard Layout
loadkeys slovene
# Setup wifi internet connection
iwconfig
ip link
ip link set <IFACE> up
wpa_supplicant -B -i <IFACE> -c <(wpa_passphrase ESSID "PASS")
# Setup wired
dhcpcd <IFACE>
# Disk partitioning
cfdisk
## Boot [type 83]
# 1. partition 100 - 200 MB Bootable
## Swap [type 82] for 3GB memory size = 6144 MB
# 2. partition Swap
## Root [type 83] = 15360 MB
# 3. partition /
# Home [type 83]
# 4. partition /home
# format partitions
mkfs.ext2 /dev/sda1/
mkfs.ext4 /dev/sda3/
mkfs.ext4 /dev/sda4/
# Enable swap
mkswap /dev/sda2
swapon /dev/sda2
# Mount partitions
mount /dev/sda3 /mnt
mkdir -p /mnt/boot
mount /dev/sda1 /mnt/boot
mkdir -p /mnt/home
mount /dev/sda4 /mnt/home
# Install the base system
pacstrap /mnt base base-devel ntp sudo net-tools wireless_tools wpa_supplicant wpa_actiond dialog
# Install boot loader grup2
pacstrap /mnt grub-bios
# Generate a fstab with the following command
genfstab -U -p /mnt >> /mnt/etc/fstab
# Next, go into the newly installed system: (chroot)
arch-chroot /mnt
# Set root Password
passwd
# Load Slovenian Keyboard Layout
loadkeys slovene
# Create passwd for roor
passwd
# Create hostname (computer name)
echo "hostname" >> /etc/hostname
# Setup timezone (example: slovenian)
ln -s /usr/share/zoneinfo/Europe/Ljubljana /etc/localtime
# Uncomment on your locale parameter.
# Uncoment lines en-GB.UTF-8 and sl-SI.UTF-8
vim /etc/locale.gen
# after that enter:
locale-gen
# The Language Preference (Locale):
vim /etc/locale.conf
# Enter this 2 Lines
LANG=en_US.UTF-8
LC_COLLATE=C
# Setting the keyboard layout:
vim /etc/vconsole.conf
KEYMAP=slovene
FONT=
FONT_MAP=
# Configure / etc mkinitcpio.conf / as needed
# and create an initial ramdisk:
mkinitcpio -p linux
# Bootloader configuration & installation:
grub-mkconfig -o /boot/grub/grub.cfg
grub-install /dev/sda
# Configuration / etc / pacman.conf
# For 64 Bit Only
vim /etc/pacman.conf
[multilib]
SigLevel = PackageRequired TrustedOnly
Include = /etc/pacman.d/mirrorlist
## Automatic time setting
# Add the server for your country
vim /etc/ntp.conf
server 0.si.pool.ntp.org
server 1.si.pool.ntp.org
server 2.si.pool.ntp.org
server 3.si.pool.ntp.org
# Sync the Time
ntpd -gq
hwclock -w
# exit the arch-chroot
exit
umount /mnt/boot
umount /mnt/home
umount /mnt
# reboot the System
reboot
# Setup network, power manager, printer, DNS-SD framework, message bus system
pacman -Sy networkmanager network-manager-applet acpid cups avahi dbus udisks2
systemctl enable NetworkManager
systemctl enable cronie
systemctl enable ntpd
systemctl enable acpid
systemctl enable avahi-daemon
# Useful tolls
pacman -Sy bash-completion nmap tree openssh ntfs-3g dosfstools mtools gparted
# Security tools
pacman -Sy rkhunter clamav unhide ufw fail2ban
# Enable firewall on startup
systemctl enable ufw
# Start firewall
systemctl start ufw
# The next line is only needed once the first time you install the package.:
ufw enable
sudo ufw default deny incoming
sudo ufw default allow outgoing
# Base X server
pacman -Sy xorg-server xorg-xinit xorg-server-utils mesa xorg-twm xorg-xclock xterm xorg-xclipboard xf86-input-synaptics
# Fonts
pacman -Sy ttf-inconsolata ttf-liberation ttf-droid ttf-ubuntu-font-family
# Test X
startx
# Install Openbox WM
pacman -Sy openbox obconf obkey oblogout obmenu openbox-themes tint2 xfce4-notifyd
# For graphical login into openbox install
pacman -Sy slim
# Enable slim
systemctl enable slim.service
pacman -Sy nvidia lib32-nvidia-utils
# Alsa install
pacman -S alsa-utils alsa-plugins alsa-lib pulseaudio-alsa
pacman -S pavucontrol pulseaudio
# Open sound manager
alsamixer
# Toggle mute
amixer -q set Master toggle
# Volume Down
amixer -q set PCM 2- unmute
# Volume Up
amixer -q set PCM 2+ unmut
Create file /etc/profile.d/keychain.sh, with exec permission.
# chmod 755 /etc/profile.d/keychain.sh
/etc/profile.d/keychain.sh
/usr/bin/keychain -Q -q --nogui ~/.ssh/id_ecdsa
[[ -f $HOME/.keychain/$HOSTNAME-sh ]] && source $HOME/.keychain/$HOSTNAME-sh
# Uncomment %wheel
visudo
# Create new user
useradd -m -g users -G wheel,storage,power,lp,network,audio,video,optical -s /bin/bash username
passwd username
Enable installed WM for user. Login into user and crete file ~/.xinitrc
# And add the following line:
exec openbox-session
reboot
Login into new user
pacman -Sy rxvt-unicode urxvt-perls gvim spacefm wtf deadbeef dmenu zathura galculator geeqie scrot lxinput htop tree xfburn hardinfo filezilla arj bzr ffmpeg file-roller unrar p7zip file-roller unrar p7zip gimp irssi feh figlet imagemagick xclip gsimplecal conky gmrun nitrogen catfish midori gstreamer0.10-ugly-plugins keepass truecrypt faenza-icon-theme darktable
sudo pacman -S python2-pysqlite python-virtualenv python-virtualenvwrapper python-pip python-docutils pep8-python2 pep8-python3 python-pygments
pacman -Sy hplip xsane sane xsane-gimp
# Sudo vim /etc/cups/cups-files.conf::
# Change to: SystemGroup: lp
sudo systemctl restart cups
# Office tools
pacman -S libreoffice libreoffice-sl libreoffice-it libreoffice-en-GB
Installing from https://aur.archlinux.org/
makepkg -s
pacman -U <package-name>.xz
darktable
# Add to PKBUILD
# CXXFLAGS+=" -fpermissive"
gimp-separation+ adobe-icc gimp-save-for-web
pacman -S thinkfinger tp_smapi
AUR install - tlp - Powersaving scripts for ThinkPads(c)
After reboot test
# Show status
sudo tlp-stat
# Show battery status
sudo tlp-stat -b
tp_smapi lets you control the start and stop charging threshold to do just that. Run these commands to set these to good values:
# Set custom values
echo 40 > /sys/devices/platform/smapi/BAT0/start_charge_thresh
echo 80 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh
File content:
#!/bin/sh
# file: /usr/sbin/set_battery_thresholds
# set the battery charging thresholds to extend battery lifespan
echo ${2:-40} > /sys/devices/platform/smapi/BAT${1:-0}/start_charge_thresh
echo ${3:-80} > /sys/devices/platform/smapi/BAT${1:-0}/stop_charge_thresh
Usage:
# Set default values
set_battery_thresholds 0 96 100
# Set long life battery
set_battery_thresholds
# Turn off tuchpad
synclient TouchpadOff=1
# Tun on tuchpad::
synclient TouchpadOff=0
Scritpt for toggle Touchpad on/off
#!/bin/bash
# Set current state
STATE=`synclient -l | grep TouchpadOff | awk '{ print $3 }'`;
# Toggle tuchpad on/off
if [ "$STATE" == "0" ]; then
synclient TouchpadOff=1; else
synclient TouchpadOff=0
fi
# Boot fast groub error - locale
cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
- TODO:
- [ ] Mutt email setup
- [ ] Virtualbox
- [ ] Rescue resume from Hibernate it finish in dark.
__EOF__