If you haven’t already, grab your copy of new AP-Linux here.
April 5th 2018. There has been some issues with upstream Arch packages so install brakes when you want to upgrade packages. Check down for the fix…
DISCLAIMER! This installation can ERASE all your data if you don’t know what you are doing. We are not responsible for any of your data or hair loss. If you feel uncomfortable working with Linux disk tools, and you have sensitive data, make a backup first.
– USB thumb drive to burn the iso file
– blank disk or free partition on the disk. Use at least 25GB minimum.
– internet access
Put/burn the iso on the thumb drive, power up your PC and select to boot from USB. Standard Arch Linux boot will appear. Just press enter and wait for system to boot. If you don’t know how to burn/put iso file on the USB thumb drive, there’s a lot of documentation on the internet. It all depends which operating system or software you use. But if you using Linux, it’s easy. In terminal just do this:
dd bs=4M if=/path/to/apl-v4.iso of=/dev/sdX status=progress && sync
where /dev/sdX is your thumb drive. Make sure you put correct /dev/sdX or you will loose all the data on that disk.
After boot finishes, use this commands:
If you have 4K Monitor, the fonts will be very small. Execute this command if you have 4K Monitor:
# setfont ter-232b
‘fdisk -l’ command will list disks and partitions on your machine.
This is needed for you to know where you are going to install AP-Linux. When you are sure where you are going to install AP-Linux, write down on peace of paper your disk name. For example “/dev/sda”.
Now we need to create partition for AP-Linux on that disk. Warning! If you have existing operating system or any data on the disks, this steps can overwrite and delete all of your data. Make sure that you know what you are doing. You can use two different tools for creating the partition for AP-Linux.
Fdisk or Cfdisk.
If you are for example going to use “/dev/sda” disk to create partition for AP-Linux, execute this commands:
# fdisk /dev/sda or # cfdisk /dev/sda
Cfdisk is more user friendly tool. If you are asked “Select label type” in cfdisk, it’s important to choose “dos” because otherwise you will not be able to finish installation (GRUB bootloader will not work).
Creating a partition with fdisk begins with typing “n” and then “p”. Saving with “w”. With cfdisk is different. Create new partition for AP-Linux and select “Write” to save new partition table. Quit to get back to the terminal.
Then again type:
# fdisk -l
to view your new partition tables. If you used disk /dev/sda, then you should see your new partition. For example as /dev/sda1.
Now you have to create a file system on that partition. mkfs.ext4 command will do that for you. Again be very careful in the next step.
# mkfs.ext4 /dev/sdXX. Replace /dev/sdXX with your partition. For example
# mkfs.ext4 /dev/sda1
Mount that partition to /mnt folder
# mount /dev/sda1 /mnt
Then type these commands:
# time cp -ax / /mnt # arch-chroot /mnt /bin/bash # cd /etc/apl-files
The next command will ask you to put your username and password and install some packages.
Answer “yes” to question and wait till it finishes. If there are no errors, continue with
# grub-install --target=i386-pc /dev/sda
Replace /dev/sda with your disk, then execute this:
# grub-mkconfig -o /boot/grub/grub.cfg
Next command will set up super user password.
# passwd root
Next command will setup your timezone
# ln -s /usr/share/zoneinfo/Europe/Dublin /etc/localtime
Replace Europe/Dublin with your city. Full list is available with
# ls /usr/share/zoneinfo/
# ls /usr/share/zoneinfo/Europe
Then continue with:
# hwclock --systohc --utc # ./autologin.sh
If you have 4k monitor execute also ./4k-mon-setup.sh
# exit # genfstab -U /mnt >> /mnt/etc/fstab
Reboot your system, remove the USB thumb drive and let’s hope you’ve done everything OK. If you did, you will first see GRUB boot loader and your system should boot to new AP-Linux. If not, check your boot disk priority in BIOS.
To summarize, these are all commands you need to run after disk partitioning:
# mkfs.ext4 /dev/sdXX # mount /dev/sdXX /mnt # time cp -ax / /mnt # arch-chroot /mnt /bin/bash # cd /etc/apl-files # ./runme.sh # grub-install --target=i386-pc /dev/sdX # grub-mkconfig -o /boot/grub/grub.cfg # passwd root # ln -s /usr/share/zoneinfo/Europe/Dublin /etc/localtime # hwclock --systohc --utc # ./autologin.sh # exit # genfstab -U /mnt >> /mnt/etc/fstab # reboot
When AP-Linux boots, open terminal. Make sure your internet is working. You can check if internet is working with:
$ ping 126.96.36.199
You should see something like this:
PING 188.8.131.52 (184.108.40.206) 56(84) bytes of data. 64 bytes from 220.127.116.11: icmp_seq=1 ttl=56 time=25.9 ms 64 bytes from 18.104.22.168: icmp_seq=2 ttl=56 time=21.9 ms 64 bytes from 22.214.171.124: icmp_seq=3 ttl=56 time=25.4 ms
Then become root with:
Execute these commands. First command will take a while…
# pacman-key --init # pacman-key --populate archlinux # pacman -Sy # pacman -S archlinux-keyring
April 5th 2018 fix. This command brakes
# pacman -Suy
The solution is to first remove libxfont like this:
# pacman -Rc libxfont
Answer yes and do it again
# pacman -Suy # pacman -S terminus-font # pacman -S xorg-server # pacman -S chromium
The last command will install web browser Chromium. Use pacman -S to install other
programs like deadbeef, audacious or firefox.
We need to reboot because April 5th fix
After updating the system with “pacman -Suy”, mpd config will brake. In order to fix this you will need to do the following:
# cd /etc/apl-files # cat mpd.service > /usr/lib/systemd/system/mpd.service # systemctl daemon-reload # systemctl restart mpd.service
Now we need to do few more tweaks. If you have installed AP-Linux on SSD disk, edit /etc/fstab file with
# nano /etc/fstab
and add ‘noatime,discard’ option. Your “/dev/sdX1” line should look like this
/dev/sda1 / ext4 rw,noatime,discard,data=ordered 0 1
If you didn’t install AP-Linux on SSD, remove the ‘discard’ part.
/dev/sda1 / ext4 rw,noatime,data=ordered 0 1
What we just told our system is not to write some unnecessary file access information. This will speed up a little our machine which can be good for sound processing.
Music play setup
1. Select “List cards” from the menu
2. Put your card in /etc/mpd.conf. Select “Edit mpd.conf”
3. Change this line:
It’s better to put the name of your card in mpd.conf like this:
Because cards in Linux often switch numbers.
Restart mpd when you made changes to mpd.conf
Copy your music files in Music directory and launch “Play music” from the menu.
For wireless or manual IP setup, open terminal, become root and go to /etc/apl-files directory. There you will find “enable-wless.sh” script. Execute this script with ./enable-wless.sh and reboot. After reboot you will find one small icon on the right in the system tray that you can “right click” and edit your network settings.