Arch Linux Install for UTM on Macbook M1/M2 (+ Configuration!)

Sdílet
Vložit
  • čas přidán 11. 09. 2024

Komentáře • 105

  • @zubiarfan
    @zubiarfan  Před rokem +2

    ⚠ NOTE: I switched to Kitty terminal emulator because of font ligatures. Make sure you download it too using ‚sudo pacman -S kitty‘. The config files in my dotfiles are in the path ~/.config/kitty/kitty.conf.
    If you prefer Alacritty make sure you edit the i3 config file so when you press Command+Enter the Alacritty terminal starts up! Otherwise nothing happens if you don‘t have Kitty installed.
    ⚠ NOTE: In my dotfiles I changed the plugin manager from Paq to Packer. You have to download Packer.nvim and when you copied the Nvim config files run `:PackerInstall` instead of `:PaqInstall`, otherwise it won't work!

    • @Elijaw_stream
      @Elijaw_stream Před rokem

      Hallo! Danke erstmal für die super Anleitung :) Ich habe leider ein kleines Problem mit PackerInstall, ich bin der Anleitung gefolgt, die lua files haben sich ja seit dem Video verändert, also habe ich sie so wie sie auf GitHub waren genommen. Wenn ich nun aber :PackerInstall eingebe, bekomme ich die Fehlermeldung "kein Editorbefehl". Gibt's da eine Lösung? Packer selbst habe ich soweit erfolgreich runtergeladen. Ach und aus irgendeinem Grund ist nach dem Fensterwechsel, sowohl innerhalb der VM als auch außerhalb, immer die Feststelltaste aktiviert, jedoch nur mit Shift zu lösen. Ist das auch ein bekanntes Problem?
      Danke schonmal, ist erst meine zweite eigene Installation...

  • @linuxUnderdogs
    @linuxUnderdogs Před 11 měsíci

    Thanks, Arfan Zubi, for your dotfiles. I tried your entire setup, and it motivated me to maintain my own dotfiles..✌

    • @zubiarfan
      @zubiarfan  Před 11 měsíci

      Cool! Have fun customizing :)

  • @spooders8943
    @spooders8943 Před rokem +2

    This is exactly what I was looking for for a year now since the day I got my m1 air. This is the first guide that worked for me to get a window manager working along with audio. And it comes with an i3 rice. This is great. Although I switched to dwm rice of my own instead because I am more familiar with it and it workes great so far. Just have to figure out a way to fix dpi scaling tho.

    • @zubiarfan
      @zubiarfan  Před rokem +1

      Nice, glad to hear it worked! Configuring the system and ricing is a journey on its own but with the basics in the video I try to give people new to Arch a starting point. dwm is also a great window manager I think of switching too.

    • @vinzz1786
      @vinzz1786 Před 7 měsíci

      how did you fix the dpi scaling issue

  • @leaparwell2524
    @leaparwell2524 Před rokem +3

    thanks so much akhi al kareem. the installation/configuration guide you have outlined in your dotfiles github is outstanding and can even serve for future installation reference as it appears clear and organized. I was setting up Arch to create a sandbox play test before committing to my new desktop and unfortunately the network stopped receiving a connection after I closed and reopened it. I've tried changing from shared to bridged and what feels like all possible combinations but can't get it to reconnect. It seems from what I've found online that there is no real solution for this as everyone has a random problem for no apparent reason. I'd suggest looking into it if you haven't already. Jazak'allah khayr.

    • @zubiarfan
      @zubiarfan  Před rokem

      Thanks for your comment and baarak Allahu feek. I had this problem once and then found out that I didn't enable NetworkManager. Also try to establish a connection using nmcli(1): wiki.archlinux.org/title/NetworkManager#nmcli_examples (supposing you use wifi)

    • @annplatoworld
      @annplatoworld Před 3 měsíci

      I had the same issue after rebooting, I think the main issue is that network manager stops every time the system is rebooted. I solved it by running:
      `systemctl start NetworkManager`
      you can then check the network device using this command:
      `nmcli device`
      If `systemctl start NetworkManager` doesn't take effect you can try running:
      `systemctl daemoon-reload`
      Many thanks to @Arfan Zubi for the tutorial!

  • @tiIIus
    @tiIIus Před rokem +1

    Sehr hilfreiches Video! Vielen Dank und Grüße aus Deutschland!

  • @rumble1925
    @rumble1925 Před 11 měsíci +2

    Does anyone know how to get networking enabled? Seems the default UTM + archboot configs don't mix (for me at least)

    • @Rubalix
      @Rubalix Před 8 měsíci

      Same problem here.

  • @mokshdutt6094
    @mokshdutt6094 Před rokem +6

    Hey man, great Vid! I'm facing a problem though.While installing the Grub boot-loader my pacman is not working and shows all the downloaded files as corrupted due to some keys.
    i tried everything from resetting system clock, refreshing and also deleting and repopulating the keys but it still doesn't work. Any clue what i should do......

    • @zubiarfan
      @zubiarfan  Před rokem +2

      I had this issue some time ago. Try to do the following steps: github.com/3rfaan/dotfiles#package-install
      Hope it works

    • @KonstantinKrasser
      @KonstantinKrasser Před rokem +1

      @@zubiarfan Didn't work for me :(

    • @zubiarfan
      @zubiarfan  Před rokem

      @@KonstantinKrasser could you elaborate further? At which point are you and what is the error message?

    • @yuriish7570
      @yuriish7570 Před rokem

      @@zubiarfan works for me, thanks a million🤍

    • @kerrermanisNL
      @kerrermanisNL Před rokem +1

      I had the same issue. After including archlinuxarm-keyring during the pacstrap install (go out first by pressing ctrl+d then redo pacstrap) it works

  • @syngard5242
    @syngard5242 Před 5 měsíci +1

    Thx for your video, i had a lot of struggle with pacman and gpg.
    pacman wasnt working after the installation.
    found out that the Keyring is/was missing and trys afterwards to fix it with pacman-key --init / --populate wasn't working.
    After some trys i found out that put "archlinuxarm-keyring" in the "pacstrap -K" process solve my issue.
    It is my first time testing /playing around with arch and i have no clue what chanegs there in a year but mayber it helps some others.
    have all a nice day

  • @baocao1411
    @baocao1411 Před rokem +2

    Note for US layout users: setxkbmap us at 51:35

  • @hugomartinezf
    @hugomartinezf Před 7 měsíci +3

    Hi Arfan, I tried your guide and it is very helpful but I couldn't install properly the latest (archboot-2024.01.01) ISO from archboot, I had some issues installing packages with pacman (marginal trust), I was able to make it work with "archboot-2023.11.29-15.35" ISO version though without any issue, Im using a Macbook with M3, but I would like to know why I haven't been able to fix that marginal trust issue with the 01.01.2024 version, I tried to disable the SigLevel and enable it back after installing archlinux-keyring and archlinuxarm-keyring but i still get these issues (marginal trust).

    • @vinzz1786
      @vinzz1786 Před 7 měsíci +1

      i have the same problem thanks for specifying the archboot version

    • @hugomartinezf
      @hugomartinezf Před 6 měsíci

      @@vinzz1786 i found later that the issue was the gpg version, apparently there is a bug in the newest version, we need to downgrade gpg to 2.2.41 (2.3.xx - 2.4.4 are not working for me)

  • @BenDavis78
    @BenDavis78 Před 10 měsíci +3

    Any ideas on how to get GPU acceleration working? I get a black screen after startx using the virtio-ramfb-gl emulated display card

  • @rzwnhmd
    @rzwnhmd Před rokem +4

    I am getting an error after i run the command "pacman -S grub efiboomgr"
    File /var/cache/pacman/pkg/efibootmgt/18-1-aarch64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP Signature))
    error: failed to commit transaction (invalid or corrupted package (PGP singature))
    Errors occured, no packages were upgraded

    • @zubiarfan
      @zubiarfan  Před rokem

      You have a typo. The package is called „efibootmgr“ (for EFI Boot Manager):
      pacman -S grub efibootmgr
      Hope it works.

    • @rzwnhmd
      @rzwnhmd Před rokem +1

      @@zubiarfan sorry just made the typo while writing the comment here. Otherwise it was "efibootmgr" on the virtual machine

    • @zubiarfan
      @zubiarfan  Před rokem

      @@rzwnhmd But in the file path you provided I see „efibootmgt“:
      File /var/cache/pacman/pkg/efibootmgt/18-1-aarch64.pkg.tar.xz is corrupted

    • @rzwnhmd
      @rzwnhmd Před rokem +1

      @@zubiarfan sorry there have been typos while entering comments here. I was not able to copy paste the error message here. So I had to type it out. During installation I have run the command correctly "pacman -S grub efibootmgr". After this it downloads the required PGP Key and then throws the error

    • @zubiarfan
      @zubiarfan  Před rokem

      @@rzwnhmd Ok, I understand. In this case follow these steps related to PGP key errors:
      github.com/3rfaan/dotfiles#package-install

  • @vinzz1786
    @vinzz1786 Před 7 měsíci +1

    we need an updated version of this

  • @darkarie
    @darkarie Před rokem +1

    One question, I installed the UTM arch ARM and the screen is really small when I open nvim or other cli tools. What could be the issue?

    • @zubiarfan
      @zubiarfan  Před rokem

      Did you install SPICE guest additions?

    • @darkarie
      @darkarie Před rokem

      yes, I installed them via brew

    • @zubiarfan
      @zubiarfan  Před rokem

      @@darkarie ok but you have to install it in Arch too

  • @GAccountMe
    @GAccountMe Před rokem +1

    Hi. Is there any way to use arch fully? I have two monitors and a macbook, but I don't like macos, but I like linux with tile window manager using multiple monitors. As I understand it is not possible to fully use multiple monitors with virtualization - м the virtual system runs in one window. Is there any solution for this?

    • @zubiarfan
      @zubiarfan  Před rokem

      I don't think that's possible but I'm not sure about it. But if you want to use Arch as your main driver I'd suggest you install it on bare metal with Asahi Linux rather than in a virtual box. The performance is much better and you will be able to use your hardware to the fullest.

  • @kuchesezik
    @kuchesezik Před 2 měsíci

    hello, the command at 26:45 `pacman -S grub efibootmgr` returns "invalid or corrupted package (pgp signature)"
    i couldn't get around it, the `pacman-key --populate archlinux` command i found for this issue didn't help. i can't get past this step and surprisingly find no other guides for arch on utm.

    • @zubiarfan
      @zubiarfan  Před 2 měsíci

      @@kuchesezik I guess the guide is outdated. I might make another one.

    • @kuchesezik
      @kuchesezik Před 2 měsíci

      @@zubiarfan thank you. i want to gradually migrate to linux. i'm planning to install fedora bare metal later on but wanted to try here. i know arch is more complex but i'll try the other arm distros now.

    • @kaungmyatsanviciousclover2916
      @kaungmyatsanviciousclover2916 Před měsícem

      try adding "SigLevel = Optional TrustAll" under repository name
      Include* line; but don't forget to comment that line after installing a required package as it can raise security issues later.

  • @kaswanpradeep
    @kaswanpradeep Před rokem +1

    my keys are fucked, only characters are working properly, special characters and symbols are all mapped incorrect, can u help me with this?

    • @zubiarfan
      @zubiarfan  Před rokem

      At which stage are they mapped incorrect, in the installation process or after entering the GUI environment?

    • @kaswanpradeep
      @kaswanpradeep Před rokem +1

      @@zubiarfan after entering the gui

    • @zubiarfan
      @zubiarfan  Před rokem

      @@kaswanpradeep Ok, that‘s because the default keymap of Xorg is US English. What language do you prefer? You can set it using ‚setxkbmap ‘. Also change the language in the i3 config file because these are my keymaps (Swiss layout).

  • @Princypal1lol
    @Princypal1lol Před rokem +2

    I followed your install guide but instead I used asahi linux, for some reason my terminal fonts are overlapping. Can you help?

    • @zubiarfan
      @zubiarfan  Před rokem

      I‘ve never tried Asahi Linux out. Do you mean the font in the TTY or the font in your terminal emulator?

    • @Princypal1lol
      @Princypal1lol Před rokem +1

      @@zubiarfan The font in alacritty. I have tried everything but I cant fix it.

    • @zubiarfan
      @zubiarfan  Před rokem

      @@Princypal1lol could you upload a screenshot somewhere and post the link here so I can see what‘s going on?

    • @Princypal1lol
      @Princypal1lol Před rokem +1

      @@zubiarfan Sure will do

    • @zubiarfan
      @zubiarfan  Před rokem

      @@Princypal1lol ok, and alternatively you could use another terminal emulator e.g. kitty is the one I‘m using currently.

  • @minruilu1362
    @minruilu1362 Před rokem +1

    Is anyone having keyboard issues? Mine is a keyboard from a different language.
    I tried ``loadkeys br-latin1-us`` (which seems to match my keyboard), it only worked in that session. Does anyone know how to make it persistent?

    • @zubiarfan
      @zubiarfan  Před rokem +1

      Try using `setxkbmap br`.
      You can also make this persistent by adding in your ~/.xinitrc file the following line:
      setxkbmap br
      Hope that helps

    • @minruilu1362
      @minruilu1362 Před rokem +1

      @@zubiarfan Cool, thank you for replying. I'll try this after installing Xorg

    • @minruilu1362
      @minruilu1362 Před rokem +1

      @@zubiarfan sry to bother, but there's another issue when running ``sudo pacman -S spice-vdagent``, it says:
      'failed retrieving file 'harfbuzz-7.0.1......' : the request URL returned 404'

    • @minruilu1362
      @minruilu1362 Před rokem +1

      nevermind, the server is prob syncing or something. just try it some time later

  • @baocao1411
    @baocao1411 Před rokem +2

    You tutorial is great but could you please tell me how to solve the the problem of "wrong fs type, bad option, bad super block,..." when running the command. "mount /dev/vda3 /mnt" at 15:59?

    • @zubiarfan
      @zubiarfan  Před rokem

      Make sure you formatted the root partition: ‚mkfs.ext4 /dev/vda3‘. Also make sure that the name on your system is „vda3“. It could also be „sda3“ or any other name depending on your computer.

    • @baocao1411
      @baocao1411 Před rokem +1

      @@zubiarfan thank you, I missed that :3 However I then lalter got a problem telling that it could not resolve the resolve the host. I tried several ways, but they didn't work. Have you met this before?

    • @zubiarfan
      @zubiarfan  Před rokem +1

      @@baocao1411 Do you have this problem with the Xorg server? If yes, then make sure you have created the .xinitrc file in the home directory of your user account and make sure you are logged in as your user not as root. Also check if xorg-server and i3 are properly installed.

    • @baocao1411
      @baocao1411 Před rokem

      @@zubiarfan Could you please go in more detail on how to check this? I am new to this field of Linux, and I am currently taking an Operating System course so I really want to get over this problem. Thank you very much for your support!

    • @zubiarfan
      @zubiarfan  Před rokem

      @@baocao1411 Well it‘s hard to tell without context. At which stage in the video are you when the error occurs? Could you maybe provide a timestamp so I understand what‘s going on

  • @kattsyna
    @kattsyna Před 10 měsíci

    Hi! I have this message in the "Guest has not initialized display yet". M2

  • @tobiaspowalowski9846
    @tobiaspowalowski9846 Před rokem +1

    Please tell me what is too buggy in the installer itself? Without knowing I can't fix them ;)

    • @zubiarfan
      @zubiarfan  Před rokem

      First I want to say thank you for developing this useful program. On my computer (MacBook M1 2020) I faced two issues in the aarch64 iso:
      1. I could not modify the mapping of my keyboard to my preferred language.
      2. Sometimes when entering the settings for the boot loader it would just not respond anymore I couldn't exit the process or do anything.

    • @tobiaspowalowski9846
      @tobiaspowalowski9846 Před rokem +1

      @@zubiarfan 1. Is fixed in yesterdays images. 2. Which bootloader is hanging? You can always check VC7 to see what's going on. Grub takes some time to build the EFI and I cannot monitor this to the setup script cause it's lot of text. Thanks for your video :). If you find issues just post them to my projects bugtracker, I try to solve things quickly.

    • @tobiaspowalowski9846
      @tobiaspowalowski9846 Před rokem

      @@zubiarfan Linked your video on archboot homepage.

    • @zubiarfan
      @zubiarfan  Před rokem

      @@tobiaspowalowski9846 Great, thanks for linking my video I really appreciate it.
      Yes I noticed that you maintain your project very actively and I love to use it.
      The issue concerning the bootloader happened with GRUB.

    • @tobiaspowalowski9846
      @tobiaspowalowski9846 Před rokem +1

      @@zubiarfan Please retry latest image, I fixed some parts in grub installation.

  • @Q-Ball.
    @Q-Ball. Před rokem +1

    Thank you so much for these videos. I have been having limitless problems with virtualization on my MacBook.
    I think I followed everything you did, but when I chroot into the system it says there is no /bin/bash directory

    • @zubiarfan
      @zubiarfan  Před rokem +1

      Could it be that when you ran the pacstrap command that you forgot to set /mnt as destination or that you forgot to install the base package?
      $ pacstrap -K /mnt base base-devel linux linux-firmware e2fsprogs dhcpcd networkmanager sof-firmware git neovim man-db man-pages texinfo

    • @Q-Ball.
      @Q-Ball. Před rokem +1

      @@zubiarfan i used the arrow keys to go back to the pacstrap command I ran. Everything was included in it, so I just ran it again and now it seems to be working lol. I saw that the archboot guy was in here, so I’ll try to give that a run through soon too. Thanks

    • @Q-Ball.
      @Q-Ball. Před rokem

      I had some weird graphical problems when trying to use i3 or any other de/dm. I had to reinstall without enabling hardware acceleration in utm

    • @zubiarfan
      @zubiarfan  Před rokem +1

      @@Q-Ball. I‘ve fixed it in the dotfiles. On a virtual machine you should use xrender instead of glx for rendering of your compositor.

  • @AnnaWeichert
    @AnnaWeichert Před rokem +1

    thank you but im not doin all that but good to know it exists thx

  • @rzwnhmd
    @rzwnhmd Před rokem +2

    grüße aus deutschland

  • @filoreykjavik
    @filoreykjavik Před 10 měsíci

    mekk os

  • @kaswanpradeep
    @kaswanpradeep Před rokem +1

    when i run mkfs.ext4 /dev/vda3, it shows /dev/vda3 is apparently in use by the system; will not make a filesystem here!

    • @zubiarfan
      @zubiarfan  Před rokem

      Did you create a GPT Partition Table at the beginning of the partitioning process by pressing ‚g‘? This will wipe the whole disk.

    • @kaswanpradeep
      @kaswanpradeep Před rokem +1

      @@zubiarfan i think i did that twice, maybe thats the issue, wil deleting all the partition and doing it from beginning fix it?

    • @zubiarfan
      @zubiarfan  Před rokem +1

      @@kaswanpradeep Yes, it happened to me as well. I suggest you do a clean installation: Delete the virtual machine and start over.