{"id":1716,"date":"2016-04-06T14:37:51","date_gmt":"2016-04-06T13:37:51","guid":{"rendered":"http:\/\/blog.spanger.org\/?p=1716"},"modified":"2016-04-06T19:13:22","modified_gmt":"2016-04-06T18:13:22","slug":"archlinux-installation-notes","status":"publish","type":"post","link":"https:\/\/blog.spanger.org\/?p=1716","title":{"rendered":"Archlinux installation notes"},"content":{"rendered":"<p>KEYBOARD<\/p>\n<p>For slovenian keyboard<\/p>\n<pre lang=\"bash\"># loadkeys slovene<\/pre>\n<p>PARTITION<\/p>\n<p>BIOS\/GPT<\/p>\n<p>Bios motherboard with gpt partition scheme<\/p>\n<p>Use tools like parted, gdisk.<\/p>\n<p>Prepare partitions<\/p>\n<p>Gdisk<\/p>\n<pre lang=\"bash\"># gdisk \/dev\/sda\r\nCreate small 1-2Mb partition for bios (code: EF02)\r\nCreate small 1 Gb partition for BOOT (code: 8300)\r\nCreate swap partition in the size of RAM or at least 2Gb (code: 8200)\r\nCreate root partition 40Gb\r\nCreate home partition from the rest of the disk space\r\n<\/pre>\n<p>Format partitions (mkfs. , mkswap, swapon)<\/p>\n<pre lang=\"bash\"># mkfs.ext2 \/dev\/sda2 BOOT\r\n# mkswap \/dev\/sda3 SWAP\r\n# swapon \/dev\/sda3\r\n# mkfs.ext4 \/dev\/sda4 ROOT\r\n# mkfs.ext4 \/dev\/sda5 HOME\r\n<\/pre>\n<p>EFI\/GPT<\/p>\n<p>EFI motherboard with GPT partition scheme.<\/p>\n<p>Prepare partitions<\/p>\n<pre lang=\"bash\"># gdisk<\/pre>\n<pre lang=\"bash\"># gdisk \/dev\/sda<\/pre>\n<p>Create small 1 Gb partition for EFI (code: EF00)<br \/>\nCreate swap partition in the size of RAM or at least 2Gb (code: 8200)<br \/>\nCreate root partition 40Gb (it could be smaller)<br \/>\nCreate home partition from the rest of the disk size.<\/p>\n<p>You could create separate partitions (VAR, OPT).<\/p>\n<p>Format partitions<\/p>\n<pre lang=\"bash\"># mkfs.fat -F32 \/dev\/sda1 EFI\r\n# mkswap \/dev\/sda3 SWAP\r\n# swapon \/dev\/sda3\r\n# mkfs.ext4 \/dev\/sda4 ROOT\r\n# mkfs.ext4 \/dev\/sda5 HOME\r\n<\/pre>\n<p>Mount partitions (root, boot, home)<\/p>\n<pre lang=\"bash\"># mount \/dev\/sda4 \/mnt\r\n# mkdir \/mnt\/{boot,home}\r\n# mount \/dev\/sda1 \/mnt\/boot\r\n# mount \/dev\/sda5 \/mnt\/home<\/pre>\n<p>Base system installation<\/p>\n<pre lang=\"bash\"># pacstrap -i \/mnt base base-devel<\/pre>\n<p>Create mount points in fstab<\/p>\n<pre lang=\"bash\"># genfstab -U \/mnt > \/mnt\/etc\/fstab<\/pre>\n<p>CHROOT<\/p>\n<pre lang=\"bash\"># arch-chroot \/mnt \/bin\/bash<\/pre>\n<p>Install extra programs with pacman<\/p>\n<pre lang=\"bash\"># pacman -S vim dhclient iw wpa_supplicant dialog firefox chromium gedit nautilus vlc terminator thunderbird pssh x11-ssh-askpass dunst rednotebook<\/pre>\n<p>Define\/configure locale settings<\/p>\n<pre lang=\"bash\"># vim \/etc\/locale.gen\r\nuncomment your default language (for example en_US.UTF-8)\r\n# locale-gen\r\n# vim \/etc\/locale.conf\r\nLANG=en_US.UTF-8\r\n# vim \/etc\/vconsole.conf\r\nKEYMAP=slovene\r\n<\/pre>\n<p>TIME configuration<\/p>\n<pre lang=\"bash\"># tzselect\r\n# ln -sf \/usr\/share\/zoneinfo\/Europe\/Ljubljana \/etc\/localtime\r\n# hwclock --systohc --utc<\/pre>\n<p>NTP or CHRONY<\/p>\n<p>NTP daemon<\/p>\n<pre lang=\"bash\"># pacman -S ntp\r\n# vim \/etc\/ntp.conf\r\n# sysctl enable ntpd\r\n<\/pre>\n<p>CHRONY<br \/>\nhttps:\/\/wiki.archlinux.org\/index.php\/Chrony<\/p>\n<pre lang=\"bash\"># pacman -S chrony\r\necho \"1 SHA1 HEX:$(tr -d -c '[:xdigit:]' &lt; \/dev\/urandom | head -c 40)\" &gt; \/etc\/chrony.keys\r\n# chmod 640 \/etc\/chrony.keys\r\n# vim \/etc\/chrony.conf\r\npool arch.pool.ntp.org iburst\r\npool arch.pool.ntp.org offline\r\nserver offline\r\nserver offline\r\nserver offline\r\nmaxupdateskew 5\r\ndriftfile \/var\/lib\/chrony\/drift\r\nkeyfile \/etc\/chrony.keys\r\nrtconutc\r\nrtcsync\r\n<\/pre>\n<pre lang=\"bash\"># systemctl restart chrony\r\n# systemctl enable chrony<\/pre>\n<p>INITRAMFS<\/p>\n<pre lang=\"bash\"># mkinitcpio -p linux<\/pre>\n<p>Install\/configure BOOTLOADER<\/p>\n<p>BIOS\/GPT<\/p>\n<pre lang=\"bash\"># pacman -S grub\r\n# grub-install --recheck \/dev\/sda\r\n# grub-mkconfig -o \/boot\/grub\/grub.cfg<\/pre>\n<p>UEFI\/GPT<\/p>\n<pre lang=\"bash\"># bootctl install<\/pre>\n<pre lang=\"bash\"># vim \/boot\/loader\/entries\/arch.conf\r\ntitle Arch Linux\r\nlinux \/vmlinuz-linux\r\ninitrd \/initramfs-linux.img\r\noptions root=\/dev\/sda4 rw<\/pre>\n<pre lang=\"bash\"># vim \/boot\/loader\/loader.conf\r\ntimeout 3\r\ndefault arch\r\neditor 1 (after successful reboot change to 0, for security reasons)<\/pre>\n<p>EFI Viewer\/Manager<\/p>\n<pre lang=\"bash\"># pacman -S efibootmgr\r\n# efibootmgr -v\r\n<\/pre>\n<p>HOSTNAME<\/p>\n<pre lang=\"bash\"># echo newhostname &gt; \/etc\/hostname<\/pre>\n<pre lang=\"bash\"># vim \/etc\/hosts\r\n\r\n127.0.0.1 localhost.localdomain localhost newhostname\r\n::1 localhost.localdomain localhost newhostname\r\n<\/pre>\n<p>Define ROOT PASSWORD<\/p>\n<pre lang=\"bash\"># passwd<\/pre>\n<p>EXIT FROM CHROOT MODE<\/p>\n<pre lang=\"bash\"> Ctrl + D<\/pre>\n<p>RESTART PC<\/p>\n<pre lang=\"bash\"># reboot<\/pre>\n<p>ADD FIRST USERS<\/p>\n<pre lang=\"bash\"># useradd -m -G wheel -s \/bin\/bash newuser<\/pre>\n<pre lang=\"bash\"># passwd newuser<\/pre>\n<p>YAOURT<\/p>\n<pre lang=\"bash\"># pacman -S wget git curl lsof\r\n\r\n$ git clone https:\/\/aur.archlinux.org\/package-query.git\r\nCloning into 'package-query'...\r\nremote: Counting objects: 16, done.\r\nremote: Compressing objects: 100% (16\/16), done.\r\nremote: Total 16 (delta 0), reused 16 (delta 0)\r\nUnpacking objects: 100% (16\/16), done.\r\nChecking connectivity... done.\r\n\r\n$ cd package-query\r\n$ makepkg -si\r\n$ cd ..\r\n\r\n$ git clone https:\/\/aur.archlinux.org\/yaourt.git\r\nCloning into 'yaourt'...\r\nremote: Counting objects: 14, done.\r\nremote: Compressing objects: 100% (11\/11), done.\r\nremote: Total 14 (delta 3), reused 14 (delta 3)\r\nUnpacking objects: 100% (14\/14), done.\r\nChecking connectivity... done.\r\n\r\n$ cd yaourt\r\n$ makepkg -si\r\n$ cd ..\r\n\r\n$ rehash<\/pre>\n<p>XSERVER<\/p>\n<pre lang=\"bash\"># pacman -S xorg-server xorg-xrandr xorg-xrdb xautolock xorg-xinit\r\n$ yaourt -S xf86-video-ati mesa-libgl mesa-vdpau (for radeon video cards)\r\n$ yaourt -S xf86-video-intel (for intel video cards)<\/pre>\n<p>SOUND<\/p>\n<pre lang=\"bash\"># pacman -S pulseaudio pulseaudio-alsa alsa-utils\r\n$ yaourt -S cmus<\/pre>\n<p>SUDO<\/p>\n<pre lang=\"bash\"># pacman -S sudo<\/pre>\n<p>Run visudo and uncomment wheel group.<br \/>\nAdd newuser to wheel group.<\/p>\n<p>ZSH (shell)<\/p>\n<p>https:\/\/github.com\/robbyrussell\/oh-my-zsh<\/p>\n<pre lang=\"bash\"># pacman -S zsh\r\n$ sh -c \"$(wget https:\/\/raw.github.com\/robbyrussell\/oh-my-zsh\/master\/tools\/install.sh -O -)\"<\/pre>\n<p>ENCRYPT HOME DIRECTORY<\/p>\n<p><a href=\"https:\/\/wiki.archlinux.org\/index.php\/ECryptfs#Encrypting_a_home_directory\" target=\"_blank\">https:\/\/wiki.archlinux.org\/index.php\/ECryptfs#Encrypting_a_home_directory<\/a><\/p>\n<pre lang=\"bash\">$ yaourt -S ecryptfs-utils\r\n# modprobe ecryptfs\r\n# ecryptfs-migrate-home -u newuser<\/pre>\n<p>Login as new user<\/p>\n<p><em>use README for help<br \/>\n<\/em><br \/>\nremove temporary map \/home\/newuser.LJHFLAHL<\/p>\n<p>PAM-a ecrypt configuration<\/p>\n<pre lang=\"bash\"># vim \/etc\/pam.d\/system-auth\r\n\r\nOpen \/etc\/pam.d\/system-auth and after the line containing auth required pam_unix.so add:\r\nauth required pam_ecryptfs.so unwrap\r\nNext, above the line containing password required pam_unix.so insert:\r\npassword optional pam_ecryptfs.so\r\nAnd finally, after the line session required pam_unix.so add:\r\nsession optional pam_ecryptfs.so\r\n<\/pre>\n<p>I3 window manager<\/p>\n<pre lang=\"bash\"># pacman -S i3-wm i3lock i3status dmenu<\/pre>\n<pre lang=\"bash\">$ vim .i3\/config\r\n# This file has been auto-generated by i3-config-wizard(1).\r\n# It will not be overwritten, so edit it as you like.\r\n#\r\n# Should you change your keyboard layout some time, delete\r\n# this file and re-run i3-config-wizard(1).\r\n#\r\n\r\n# i3 config file (v4)\r\n#\r\n# Please see http:\/\/i3wm.org\/docs\/userguide.html for a complete reference!\r\n \r\n# Windows key\r\nset $mod Mod4\r\n\r\n# set $mod Mod1 &lt;-- alt\r\n \r\n# Font for window titles. Will also be used by the bar unless a different font\r\n# is used in the bar {} block below.\r\nfont pango:monospace 8\r\n\r\n# This font is widely installed, provides lots of unicode glyphs, right-to-left\r\n# text rendering and scalability on retina\/hidpi displays (thanks to pango).\r\nfont pango:DejaVu Sans Mono 8\r\n\r\n# Before i3 v4.8, we used to recommend this one as the default:\r\n# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1\r\n# The font above is very space-efficient, that is, it looks good, sharp and\r\n# clear in small sizes. However, its unicode glyph coverage is limited, the old\r\n# X core fonts rendering does not support right-to-left and this being a bitmap\r\n# font, it doesn\u2019t scale on retina\/hidpi displays.\r\n\r\n# Use Mouse+$mod to drag floating windows to their wanted position\r\nfloating_modifier $mod\r\n\r\n# start a terminal\r\nbindsym $mod+Return exec i3-sensible-terminal\r\n\r\n# kill focused window\r\nbindsym $mod+Shift+q kill\r\n\r\n# start dmenu (a program launcher)\r\nbindsym $mod+d exec dmenu_run\r\n# There also is the (new) i3-dmenu-desktop which only displays applications\r\n# shipping a .desktop file. It is a wrapper around dmenu, so you need that\r\n# installed.\r\n# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop\r\n\r\n# change focus\r\nbindsym $mod+j focus left\r\nbindsym $mod+k focus down\r\nbindsym $mod+l focus up\r\nbindsym $mod+ccaron focus right\r\n\r\n# alternatively, you can use the cursor keys:\r\nbindsym $mod+Left focus left\r\nbindsym $mod+Down focus down\r\nbindsym $mod+Up focus up\r\nbindsym $mod+Right focus right\r\n\r\n# move focused window\r\nbindsym $mod+Shift+j move left\r\nbindsym $mod+Shift+k move down\r\nbindsym $mod+Shift+l move up\r\nbindsym $mod+Shift+ccaron move right\r\n\r\n# alternatively, you can use the cursor keys:\r\nbindsym $mod+Shift+Left move left\r\nbindsym $mod+Shift+Down move down\r\nbindsym $mod+Shift+Up move up\r\nbindsym $mod+Shift+Right move right\r\n\r\n# split in horizontal orientation\r\nbindsym $mod+h split h\r\n\r\n# split in vertical orientation\r\nbindsym $mod+v split v\r\n\r\n# enter fullscreen mode for the focused container\r\nbindsym $mod+f fullscreen toggle\r\n\r\n# change container layout (stacked, tabbed, toggle split)\r\nbindsym $mod+s layout stacking\r\nbindsym $mod+w layout tabbed\r\nbindsym $mod+e layout toggle split\r\n\r\n# toggle tiling \/ floating\r\nbindsym $mod+Shift+space floating toggle\r\n\r\n# change focus between tiling \/ floating windows\r\nbindsym $mod+space focus mode_toggle\r\n\r\n# focus the parent container\r\nbindsym $mod+a focus parent\r\n\r\n# focus the child container\r\n#bindsym $mod+d focus child\r\n\r\n# Name the workspaces\r\nset $tag1 \"1: term\"\r\nset $tag2 \"2: www\"\r\nset $tag3 \"3: mail\"\r\nset $tag4 \"4: edit\"\r\nset $tag5 \"5: nautilus\"\r\nset $tag6 \"6: virtual\"\r\nset $tag7 \"7: music\"\r\nset $tag8 \"8: video\"\r\nset $tag9 \"9: tor\"\r\nset $tag10 \"10: term\"\r\n\r\n# assignment apps to a named workspace\r\n#assign [class=\"^Terminator$\"] \u2192 \"1: term\"\r\nassign [class=\"^Tor Browser$\"] \u2192 \"2: www\"\r\nassign [class=\"^Firefox$\"] \u2192 \"2: www\"\r\nassign [class=\"^Chromium$\"] \u2192 \"2: www\"\r\nassign [class=\"^Thunderbird$\"] \u2192 \"3: mail\"\r\nassign [class=\"^Gedit$\"] \u2192 \"4: edit\"\r\nassign [class=\"^libreoffice-startcenter$\"] \u2192 \"4: edit\"\r\nassign [class=\"^Nautilus$\"] \u2192 \"5: nautilus\"\r\nassign [class=\"^VirtualBox$\"] \u2192 \"6: virtual\"\r\nassign [class=\"^Clementine$\"] \u2192 \"7: music\"\r\nassign [class=\"^Vlc$\"] \u2192 \"8: video\"\r\nassign [class=\"^Transmission-gtk$\"] \u2192 \"9: tor\"\r\n\r\n# switch to workspace\r\nbindsym $mod+1 workspace $tag1\r\nbindsym $mod+2 workspace $tag2\r\nbindsym $mod+3 workspace $tag3\r\nbindsym $mod+4 workspace $tag4\r\nbindsym $mod+5 workspace $tag5\r\nbindsym $mod+6 workspace $tag6\r\nbindsym $mod+7 workspace $tag7\r\nbindsym $mod+8 workspace $tag8\r\nbindsym $mod+9 workspace $tag9\r\nbindsym $mod+0 workspace $tag10\r\n\r\n# move focused container to workspace\r\nbindsym $mod+Shift+1 move container to workspace $tag1\r\nbindsym $mod+Shift+2 move container to workspace $tag2\r\nbindsym $mod+Shift+3 move container to workspace $tag3\r\nbindsym $mod+Shift+4 move container to workspace $tag4\r\nbindsym $mod+Shift+5 move container to workspace $tag5\r\nbindsym $mod+Shift+6 move container to workspace $tag6\r\nbindsym $mod+Shift+7 move container to workspace $tag7\r\nbindsym $mod+Shift+8 move container to workspace $tag8\r\nbindsym $mod+Shift+9 move container to workspace $tag9\r\nbindsym $mod+Shift+0 move container to workspace $tag10\r\n\r\n# reload the configuration file\r\nbindsym $mod+Shift+c reload\r\n# restart i3 inplace (preserves your layout\/session, can be used to upgrade i3)\r\nbindsym $mod+Shift+r restart\r\n# exit i3 (logs you out of your X session)\r\nbindsym $mod+Shift+e exec \"i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'\"\r\n\r\n# resize window (you can also use the mouse for that)\r\nmode \"resize\" {\r\n # These bindings trigger as soon as you enter the resize mode\r\n\r\n # Pressing left will shrink the window\u2019s width.\r\n # Pressing right will grow the window\u2019s width.\r\n # Pressing up will shrink the window\u2019s height.\r\n # Pressing down will grow the window\u2019s height.\r\n bindsym j resize shrink width 10 px or 10 ppt\r\n bindsym k resize grow height 10 px or 10 ppt\r\n bindsym l resize shrink height 10 px or 10 ppt\r\n bindsym ccaron resize grow width 10 px or 10 ppt\r\n\r\n # same bindings, but for the arrow keys\r\n bindsym Left resize shrink width 10 px or 10 ppt\r\n bindsym Down resize grow height 10 px or 10 ppt\r\n bindsym Up resize shrink height 10 px or 10 ppt\r\n bindsym Right resize grow width 10 px or 10 ppt\r\n\r\n # back to normal: Enter or Escape\r\n bindsym Return mode \"default\"\r\n bindsym Escape mode \"default\"\r\n}\r\n\r\nbindsym $mod+r mode \"resize\"\r\n\r\n# Start i3bar to display a workspace bar (plus the system information i3status\r\n# finds out, if available)\r\n#bar {\r\n# status_command i3status\r\n#}\r\n#\r\nbar {\r\n font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1\r\n font pango:DejaVu Sans Mono 8\r\n\r\n colors {\r\n # Whole color settings\r\n background #000000\r\n statusline #ffffff\r\n separator #666666\r\n\r\n # Type border background font\r\n focused_workspace #008fff #007fff #ffffff\r\n active_workspace #333333 #5f676a #ffffff\r\n inactive_workspace #333333 #222222 #888888\r\n urgent_workspace #aa0000 #990000 #ffffff\r\n }\r\n # i3bar position\r\n position top\r\n # Using custom i3status.conf\r\n status_command i3status -c ~\/.i3\/i3status.conf\r\n}\r\n# floating programs #\r\n#for_window [instance=\"torbrowser\"] floating enable\r\n###\r\n#\r\n###################################\r\n# after 5 min lock screen \r\n#exec --no-startup-id xset dpms 600 \r\n#\r\nexec --no-startup-id xautolock -time 5 -locker \"i3lock -u -t -e -c 000000 -i ~\/Pictures\/Ozadja\/lock5.png -n\" &amp;\r\n\r\n##################\r\n# Startup programs\r\n#\r\n# setup background\r\nexec --no-startup-id feh --bg-fill ~\/Pictures\/Ozadja\/wall3.jpg\r\n# start network manager\r\nexec --no-startup-id nm-applet\r\n# setup slovenian keyboard\r\nexec --no-startup-id setxkbmap -layout si\r\n# za pravilno delovanje jave\r\nexec --no-startup-id wmname LG3D &amp;\r\n# setup displays\r\n#exec ~\/.i3\/detect_displays.sh\r\n\r\n\r\n######################################\r\n# i3lock shutdown, reboot, lock screen\r\nset $Locker i3lock -u -t -e -c 000000 -i ~\/Pictures\/Ozadja\/lock5.png -n &amp;&amp; sleep 1\r\n\r\nset $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown\r\nmode \"$mode_system\" {\r\n bindsym l exec --no-startup-id $Locker, mode \"default\"\r\n bindsym e exec --no-startup-id i3-msg exit, mode \"default\"\r\n bindsym s exec --no-startup-id $Locker &amp;&amp; systemctl suspend, mode \"default\"\r\n bindsym h exec --no-startup-id $Locker &amp;&amp; systemctl hibernate, mode \"default\"\r\n bindsym r exec --no-startup-id systemctl reboot, mode \"default\"\r\n bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode \"default\" \r\n\r\n # back to normal: Enter or Escape\r\n bindsym Return mode \"default\"\r\n bindsym Escape mode \"default\"\r\n}\r\n\r\nbindsym $mod+Pause mode \"$mode_system\" \r\n######################################\r\n#\r\n# pulse audio volume control\r\n#bindsym XF86AudioLowerVolume exec \/usr\/bin\/pactl set-sink-volume 0 -- '-5%'\r\n#bindsym XF86AudioRaiseVolume exec \/usr\/bin\/pactl set-sink-volume 0 -- '+5%'\r\n#bindsym XF86AudioMute exec \/usr\/bin\/pactl set-sink-volume 0 0\r\n#bindsym XF86Launch1 exec \/usr\/bin\/pactl play-sample that_was_easy\r\n#bindsym XF86MonBrightnessUp exec \/usr\/bin\/xbacklight -inc 10\r\n#bindsym XF86MonBrightnessDown exec \/usr\/bin\/xbacklight -dec 5\r\n<\/pre>\n<pre lang=\"bash\">$ vim .i3\/i3status.conf\r\n\r\n# i3status configuration file.\r\n# see \"man i3status\" for documentation.\r\n\r\n# It is important that this file is edited as UTF-8.\r\n# The following line should contain a sharp s:\r\n# \u00df\r\n# If the above line is not correctly displayed, fix your editor first!\r\n\r\ngeneral {\r\n output_format = \"i3bar\"\r\n colors = true\r\n interval = 5\r\n}\r\n\r\norder += \"cpu_usage\"\r\norder += \"cpu_temperature 0\"\r\n#order += \"ipv6\"\r\norder += \"disk \/home\"\r\n#order += \"run_watch DHCP\"\r\n#order += \"run_watch VPN\"\r\n#order += \"wireless _first_\"\r\norder += \"ethernet _first_\"\r\n#order += \"battery 0\"\r\n#order += \"load\"\r\norder += \"volume master\"\r\norder += \"tztime local\"\r\n\r\nwireless _first_ {\r\n format_up = \"Wifi: (%quality at %essid, %bitrate) %ip\"\r\n format_down = \"W: down\"\r\n}\r\n\r\nethernet _first_ {\r\n # if you use %speed, i3status requires root privileges\r\n format_up = \"Eth: %ip (%speed)\"\r\n format_down = \"Eth: down\"\r\n}\r\n\r\nbattery 0 {\r\n format = \"Bat: %status %percentage %remaining\"\r\n}\r\n\r\n#battery 0 {\r\n# format = \"%status %percentage %remaining %emptytime\"\r\n# format_down = \"No battery\"\r\n# status_chr = \"\u2687 CHR\"\"\r\n# status_bat = \"\u26a1 BAT\"\r\n# status_full = \"\u263b FULL\"\r\n# path = \"\/sys\/class\/power_supply\/BAT0\/uevent\"\r\n# low_threshold = 10\r\n#}\r\n\r\ncpu_temperature 0 {\r\n format = \"CPU Temp: %degrees \u00b0C\"\r\n path = \"\/sys\/devices\/platform\/coretemp.0\/hwmon\/hwmon1\/temp1_input\"\r\n}\r\n\r\ncpu_usage {\r\n format = \"CPU: %usage\"\r\n}\r\n\r\nrun_watch DHCP {\r\n pidfile = \"\/var\/run\/dhclient*.pid\"\r\n}\r\n\r\nrun_watch VPN {\r\n pidfile = \"\/var\/run\/vpnc\/pid\"\r\n}\r\n\r\ntztime local {\r\n format = \"%d-%m-%Y %H:%M:%S\"\r\n}\r\n\r\nload {\r\n format = \"%1min\"\r\n}\r\n\r\ndisk \"\/home\" {\r\n format = \"Home: %avail free\"\r\n}\r\n\r\nvolume master {\r\n format = \"\u266a: %volume\"\r\n format_muted = \"\u266a: muted (%volume)\"\r\n device = \"default\"\r\n mixer = \"Master\"\r\n mixer_idx = 0\r\n}\r\n<\/pre>\n<p>FONTS<\/p>\n<pre lang=\"bash\"># pacman -S ttf-dejavu ttf-ubuntu-font-family ttf-ms-fonts(for winbox)<\/pre>\n<p>NETWORK MANAGER<\/p>\n<p><a href=\"https:\/\/wiki.archlinux.org\/index.php\/NetworkManager#Configuration\" target=\"_blank\">https:\/\/wiki.archlinux.org\/index.php\/NetworkManager#Configuration<\/a><\/p>\n<pre lang=\"bash\"># pacman -S networkmanager networkmanager-openvpn\r\n# systemctl enable NetworkManager.service\r\nCreated symlink from \/etc\/systemd\/system\/dbus-org.freedesktop.NetworkManager.service to \/usr\/lib\/systemd\/system\/NetworkManager.service.\r\nCreated symlink from \/etc\/systemd\/system\/multi-user.target.wants\/NetworkManager.service to \/usr\/lib\/systemd\/system\/NetworkManager.service.\r\nCreated symlink from \/etc\/systemd\/system\/dbus-org.freedesktop.nm-dispatcher.service to \/usr\/lib\/systemd\/system\/NetworkManager-dispatcher.service.\r\n<\/pre>\n<pre lang=\"bash\"># pacman -S polkit-gnome<\/pre>\n<pre lang=\"bash\"># vim \/etc\/group\r\nnetwork:x:90:newuser pre&gt;# vim \/etc\/polkit-1\/rules.d\/50-org.freedesktop.NetworkManager.rules\r\n\r\npolkit.addRule(function(action, subject) {\r\nif (action.id.indexOf(\"org.freedesktop.NetworkManager.\") == 0 &amp;&amp; subject.isInGroup(\"network\")) {\r\nreturn polkit.Result.YES;\r\n}\r\n});\r\n<\/pre>\n<p>LAPTOP (hibernate laptop at 5% of the battery life<\/p>\n<pre lang=\"bash\"># vim \/etc\/udev\/rules.d\/99-lowbat.rules\r\n\r\n# Suspend the system when battery level drops to 5% or lower\r\nSUBSYSTEM==\"power_supply\", ATTR{status}==\"Discharging\", ATTR{capacity}==\"[0-5]\", RUN+=\"\/usr\/bin\/systemctl hibernate\"<\/pre>\n<p>TOUCHPAD<\/p>\n<pre lang=\"bash\"># vim \/etc\/X11\/xorg.conf.d\/50-synaptics.conf\r\nSection \"InputClass\"\r\n Identifier \"touchpad\"\r\n Driver \"synaptics\"\r\n MatchIsTouchpad \"on\"\r\n Option \"TapButton1\" \"1\"\r\n Option \"TapButton2\" \"2\"\r\n Option \"TapButton3\" \"3\"\r\n Option \"VertEdgeScroll\" \"on\"\r\n Option \"VertTwoFingerScroll\" \"on\"\r\n Option \"HorizEdgeScroll\" \"on\"\r\n Option \"HorizTwoFingerScroll\" \"on\"\r\n Option \"CircularScrolling\" \"on\"\r\n Option \"CircScrollTrigger\" \"2\"\r\n Option \"EmulateTwoFingerMinZ\" \"40\"\r\n Option \"EmulateTwoFingerMinW\" \"8\"\r\n Option \"CoastingSpeed\" \"0\"\r\n Option \"FingerLow\" \"35\"\r\n Option \"FingerHigh\" \"40\"\r\nEndSection<\/pre>\n<p>VIRTUALIZATION<\/p>\n<p>VIRTUALBOX<\/p>\n<pre lang=\"bash\"># pacman -S virtualbox gksu\r\n$ yaourt -S virtualbox-ext-oracle<\/pre>\n<pre lang=\"bash\"># vim \/etc\/modules-load.d\/virtualbox.conf\r\nvboxdrv\r\nvboxnetflt\r\nvboxnetadp\r\nvboxpci\r\n<\/pre>\n<pre lang=\"bash\">$ sudo gpasswd -a newuser vboxusers\r\nAdding user newuser to group vboxusers<\/pre>\n<p>LIBVIRT (KVM)<\/p>\n<pre lang=\"bash\">$ yaourt -S ebtables bridge-utils dnsmasq qemu virt-viewer\r\n$ yaourt -S libguestfs (tools for edit qcow2 images)<\/pre>\n<p>Define storage pool<br \/>\n<em>example: directory on external usb drive<\/em><\/p>\n<pre lang=\"bash\"># virsh pool-define-as usb dir - - - - \/run\/media\/newuser\/141226ea-ea1c-4d93-aa2a-dfc0ed87ebc8\/VM<\/pre>\n<p>Import new image<\/p>\n<pre lang=\"bash\">$ virt-install \\\r\n--name servername \\\r\n--memory 1024 \\\r\n--disk \/run\/media\/newuser\/141226ea-ea1c-4d93-aa2a-dfc0ed87ebc8\/VM\/eduroam2.img \\\r\n--import\r\n<\/pre>\n<p>NESTED VIRTUALIZATION<\/p>\n<pre lang=\"bash\"># vim \/etc\/modprobe.d\/modprobe.conf\r\noptions kvm_intel nested=1\r\n<\/pre>\n<p>PICTURE VIEWERS\/EDITORS<\/p>\n<pre lang=\"bash\">$ yaourt -S shutter gimp feh<\/pre>\n<p>RDESKTOP (remotely manage windows computers)<\/p>\n<pre lang=\"bash\"> $ yaourt -S rdesktop<\/pre>\n<p>OFFICE<\/p>\n<pre lang=\"bash\">$ yaourt -S libreoffice-still<\/pre>\n<p>PDF reader<\/p>\n<pre lang=\"bash\">$ yaourt -S evince<\/pre>\n<p>NETWORK TOOLS<\/p>\n<pre lang=\"bash\">$ yaourt -S dnsutils whois ipcalc wireshark-cli nmap minicom net-tools<\/pre>\n<pre lang=\"bash\">For wireshark ...\r\n#\u00a0gpasswd -a newuser\u00a0wireshark\r\n  Adding user newuser\u00a0to group wireshark\r\n#\u00a0newgrp wireshark<\/pre>\n<p>DISK test tools<\/p>\n<pre lang=\"bash\">$ yaourt -S smartmontools<\/pre>\n<p>PRINTERS<\/p>\n<pre lang=\"bash\">$ yaourt -S cups cups-pdf<\/pre>\n<pre lang=\"bash\">#\u00a0systemctl start org.cups.cupsd.service\r\n#\u00a0systemctl enable org.cups.cupsd.service\r\n Created symlink from \/etc\/systemd\/system\/printer.target.wants\/org.cups.cupsd.service to \/usr\/lib\/systemd\/system\/org.cups.cupsd.service.\r\n Created symlink from \/etc\/systemd\/system\/sockets.target.wants\/org.cups.cupsd.socket to \/usr\/lib\/systemd\/system\/org.cups.cupsd.socket.\r\n Created symlink from \/etc\/systemd\/system\/multi-user.target.wants\/org.cups.cupsd.path to \/usr\/lib\/systemd\/system\/org.cups.cupsd.path.<\/pre>\n<p>From\u00a0webpage http:\/\/localhost:631, we can add new printers<\/p>\n<p>LCMC &#8211;\u00a0cluster administration<\/p>\n<pre lang=\"bash\">$ yaourt -S jre7-openjdk lcmc<\/pre>\n<p>ZIP<\/p>\n<pre lang=\"bash\">$ yaourt -S file-roller p7zip unrar cdrkit<\/pre>\n<p>ANTIVIRUS<\/p>\n<pre lang=\"bash\">$ yaourt -S clamav\r\n# touch \/var\/lib\/clamav\/clamd.sock\r\n# chown clamav:clamav \/var\/lib\/clamav\/clamd.sock\r\n# systemctl restart clamd.service<\/pre>\n<p>DOS TOOLS<\/p>\n<pre lang=\"bash\">$ yaourt -S dosfstools<\/pre>\n<p>WINE<\/p>\n<pre lang=\"bash\"># vim \/etc\/pacman.conf (uncomment)\r\n[multilib]\r\nInclude = \/etc\/pacman.d\/mirrorlist\r\n\r\n$ yaourt -Syu\r\n\r\n$ yaourt -S wine winetricks<\/pre>\n<p>FLASHPLAYER<\/p>\n<pre lang=\"bash\">$ yaourt -S flashplugin<\/pre>\n<p>TORRENT CLIENTS<\/p>\n<pre lang=\"bash\">$ yaourt -S transmission-cli deluge<\/pre>\n<p>I2P ANONYMOUS SERVICE DAEMON<\/p>\n<pre lang=\"bash\"> $ yaourt -S i2p\r\n $ sudo systemctl enable i2prouter.service\r\n Created symlink from \/etc\/systemd\/system\/multi-user.target.wants\/i2prouter.service to \/usr\/lib\/systemd\/system\/i2prouter.service.\r\n $ sudo systemctl start i2prouter.service<\/pre>\n<p>It works in firefox.<\/p>\n<p>PASSWORD GENERATOR<\/p>\n<pre lang=\"bash\">$ yaourt -S apg<\/pre>\n<p>GPG SIGNATURE PROBLEMs<br \/>\n<em><a href=\"https:\/\/wiki.manjaro.org\/index.php\/Pacman_troubleshooting#.22Failed_to_commit_transaction_.28invalid_or_corrupted_package.29.22_Error\" target=\"_blank\">https:\/\/wiki.manjaro.org\/index.php\/Pacman_troubleshooting#.22Failed_to_commit_transaction_.28invalid_or_corrupted_package.29.22_Error<\/a><\/em><\/p>\n<p>Solution:<\/p>\n<pre lang=\"bash\"># pacman-key --init\r\n# pacman-key --populate archlinux\r\n# pacman-key --refresh-keys\r\n# pacman -Sc\r\n# pacman -Syuu<\/pre>\n<p>GNOME KEYRING<\/p>\n<p>https:\/\/wiki.archlinux.org\/index.php\/GNOME_Keyring<\/p>\n<p>At the end of files we add:<\/p>\n<pre lang=\"bash\"># vim \/etc\/pam.d\/login\r\n session optional pam_gnome_keyring.so auto_start<\/pre>\n<pre lang=\"bash\"># vim \/etc\/pam.d\/passwd\r\n password optional pam_gnome_keyring.so<\/pre>\n<p>SENSORS<\/p>\n<pre lang=\"bash\">$ yaourt -S lm_sensors<\/pre>\n<p>URL: <a href=\"https:\/\/wiki.archlinux.org\/\" target=\"_blank\">https:\/\/wiki.archlinux.org\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>KEYBOARD For slovenian keyboard # loadkeys slovene PARTITION BIOS\/GPT Bios motherboard with gpt partition scheme Use tools like parted, gdisk. Prepare partitions Gdisk # gdisk \/dev\/sda Create small 1-2Mb partition for bios (code: EF02) Create small 1 Gb partition for BOOT (code: 8300) Create swap partition in the size of RAM or at least 2Gb [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[143],"class_list":["post-1716","post","type-post","status-publish","format-standard","hentry","category-linux-stuff","tag-arch-linux"],"_links":{"self":[{"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/posts\/1716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1716"}],"version-history":[{"count":83,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/posts\/1716\/revisions"}],"predecessor-version":[{"id":1801,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=\/wp\/v2\/posts\/1716\/revisions\/1801"}],"wp:attachment":[{"href":"https:\/\/blog.spanger.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.spanger.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}