πΎ Archived View for bacaliu.de βΊ 20220915-switch-from-manjaro-to-arch.txt captured on 2023-07-10 at 13:50:32.
-=-=-=-=-=-=-
βββββββββββββββββββββββββββββ SWITCH FROM MANJARO TO ARCH I'll use Arch btw βββββββββββββββββββββββββββββ 2022-09-15 Table of Contents βββββββββββββββββ 1. Motivation 2. Process .. 1. Backup ..... 1. System ..... 2. Data .. 2. Install-stick .. 3. Installation .. 4. Get the data back .. 5. Ready! 3. Another Installation <2022-09-30 Fr> .. 1. Problems .. 2. Get the packages back .. 3. Ready! 4. Bibliography Nav Footer 1 Motivation ββββββββββββ Manjaro is a nice OS in general. But there are some issues (Robertson 2022a) like polybar fails for some weeks because Manjaros repos update two week after Archs', so the AUR is out of sync with them. It was a good starting point for me to experience Linux; now I feel confident enough to use bare Arch. 2 Process βββββββββ 2.1 Backup ββββββββββ It's possible, if having the `/home' folder in its own partition, to install a new linux system and keep the data. But there is the risk of overwriting it, therefore a Backup is recommended in any case. 2.1.1 System ββββββββββββ To get a list of the currently installed packages, I stored the output of `pacman' into a file. βββββ β pacman -Qeq > package-list.txt βββββ Listing 1: list of programms (just lists the /explicit/ installed packages.) This way, I /could/ simply push this list into pacman to get the same packages as now; but I'll rather use it to look at it if I need to and don't install all the unused packages too. 2.1.2 Data ββββββββββ To backup my personal data, I plugged in an old HDD. It was named `/dev/sda1'. So I mounted it and archived my whole home-directory into it. While doing so, i ran into some errors. 1. When doing my first try, I was logged in as `adrian'. At the very end complained about changed files. Conclusion: don't be logged in while cerating the backup. 2. By trying different compressions, I found that it's faster to just throw the data uncompressed at the drive than using something like . My initial thought was that the slow HDD would be the smallest part in the pipe, but it was the compression. So I logged in as `root', mountet the HDD and stored my data onto it. βββββ β mkdir ~/media β mount /dev/sda1 ~/media βββββ Listing 2: mounting the HDD βββββ β tar -cvf media/Backup/2022-09-15.tar /home/adrian βββββ Listing 3: backup the data <file:images/IMG_20220915_145948.jpg> 2.2 Install-stick βββββββββββββββββ I just downloaded an Arch-iso from some mirror (βArch Linux - Downloadsβ 2022) and wrote it on the usb-drive. (The stick was connected as `/dev/sda'.) βββββ β pv archlinux-2022.09.03-x68_64.iso > /dev/sda βββββ Listing 4: writing 2.3 Installation ββββββββββββββββ The installation is relatively simple. (βInstallation guide - ArchWikiβ 2022) 1. make the computer boot from the usb-drive 2. the arch-iso loads 3. run (archlinux 2022) and fill in all the information I let the installer whipe the whole disk, created a user `adrian' again, set up language, time, keyboard and installed i3wm (Developers 2022) as a window manager. 2.4 Get the data back βββββββββββββββββββββ Now I had a functional Arch-System with nearly empty home directory. I took the HDD, mountet it and moved the data back. I did it again as `root' to prevent any more difficulties. βββββ β mkdir ~/media β mount /dev/sda1 ~/media βββββ Listing 5: mounting the HDD βββββ β tar --skip-old-files --file media/Backup/2022-09-15.tar / βββββ Listing 6: get the data back Notice 1. the flag, which I used to pause and resume the extraction to get sleep without the noise of the HDD. 2. the location is specified as and not as , because the archive already contains the information about where the data goes. 2.5 Ready! ββββββββββ βββββ β pfetch βββββ βββββ β /\ adrian@archlinux β / \ os Arch Linux β /\ \ host 81LG Lenovo IdeaPad L340-15IWL β / \ kernel 5.19.8-arch1-1 β / ,, \ wm i3 β / | | -\ uptime 6h 23m β /_-'' ''-_\ pkgs 791 β βββββ Now I run Arch. Browser, Matrix-client etc. work all like before on Manjaro, because their userdata is unchanged. I've already installed some missing packages as I ran into errors in my daily workflow (one because of a bug in Doom Emacs (doomemacs 2022) which I installed manually), and there are still some missing. Nevertheless There are only 791 packages installed currently. On Manjaro I had more then two thousand installed! 3 Another Installation <2022-09-30 Fr> ββββββββββββββββββββββββββββββββββββββ After two weeks, I decided to install it again. The main reason is, that `archinstall' decided the `/' Partition should only get 20GB, which is not enough for all the software I use. Also I β use Systemd-boot, because Grub has some annoying problems (Robertson 2022b) β use no preslected profile (like i3wm which would install all stuff to make i3 run), because I made a new package-list which I just read in before the reinstall 3.1 Problems ββββββββββββ I run into the same problems this time, as last time. But this time I was prepared for this and documented my way solving them. β No Internet connection βββββ β systemctl enable systemd-networkd β systemctl start systemd-networkd β systemctl enable systemd-resolved β systemctl start systemd-resolved β pacman -S NetworkManager β systemctl enable NetworkManager β systemctl start NetworkManager βββββ Listing 7: enable network β’ `systemctl' enable and start `systemd-networkd', `systemd-resolved' β’ install `NetworkManager' and `systemctl' enable and start it's β For some reason, the locale wasn't set right. So I had to edit the `/etc/locale.conf' and `/etc/locale.gen', then run `locale-gen' βββββ β LANG=de_DE.UTF-8 βββββ Listing 8: /etc/locale.conf βββββ β #... β de_DE.UTF-8 # (comment out the needed language) β #... βββββ Listing 9: /etc/locale.gen βββββ β sudo locale-gen βββββ Listing 10: generate locale 3.2 Get the packages back βββββββββββββββββββββββββ First, I needed to get paru (βAUR (en) - paruβ 2022), a very useful AUR-helper. Following the instructions on it's github-page, I installed `git' and `base-devel', cloned it *as a normal user*, then `mkpkg -si'. Afterwards, I could simply push the List of packages into it. βββββ β paru -S $(cat ~/media/package-list.txt) βββββ Listing 11: reinstall the packages 3.3 Ready! ββββββββββ Now I use Arch again, but β The `/' partition will not run full unless my `/home' is full too (because both are the same) β by using `systemd-boot' instead of `grub' I don't risk any issues β By Installing it a second time, I got better in getting the network work. (last time I tried so many things, that I couldn't write about it, I just hadn't known what made it work) 4 Bibliography ββββββββββββββ archlinux. 2022. βarchinstall,β /Github/ September 16, 2022, URL: <https://github.com/archlinux/archinstall>. βArch Linux - Downloads,β. 2022. September 16, 2022, URL: <https://archlinux.org/download>. βAUR (en) - paru,β. 2022. October 1, 2022, URL: <https://aur.archlinux.org/packages/paru>. Developers, I. 2022. βi3 - improved tiling wm,β June 21, 2022, URL: <https://i3wm.org>. doomemacs. 2022. βSymbolβs function definition is void,β /Github/ September 16, 2022, URL: <https://github.com/doomemacs/doomemacs/issues/6784>. βInstallation guide - ArchWiki,β. 2022. /Archwiki/ September 16, 2022, URL: <https://wiki.archlinux.org/title/Installation_guide>. Robertson, B. 2022a. βI Can No Longer Recommend Manjaro Linux,β /Youtube/, Youtube September 16, 2022, URL: <https://www.youtube.com/watch?v=5KNK3e9ScPo&feature=youtu.be>. Robertson, B. 2022b. βGRUB Broke My Arch Linux Installation!,β /Youtube/, Youtube August 30, 2022, URL: <https://www.youtube.com/watch?v=b_KHtK2b5cA>. Nav βββ β Tags: [IT] - [Linux] β Formats: [md] - [txt] - [html] - [gmi] [IT] <./tags/IT.org> [Linux] <./tags/Linux.org> [md] <./20220915-switch-from-manjaro-to-arch.md> [txt] <./20220915-switch-from-manjaro-to-arch.txt> [html] <./20220915-switch-from-manjaro-to-arch.html> [gmi] <./20220915-switch-from-manjaro-to-arch.gmi> Footer ββββββ License: CC BY-4.0 [Impressum und Datenschutz] [Impressum und Datenschutz] <./impressum-datenschutz.gmi>