Install Secure Boot on Arch Linux (the easy way)

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 64

  • @pejahok250
    @pejahok250 7 месяцев назад +9

    Great vid. One thing, don't endorse doing partial updates with pacman -Sy sbctl.

    • @justtubeuser
      @justtubeuser 3 месяца назад +1

      Could you expand on the partial updates part? Doesn't -Sy just mean "install one package"?

  • @RefiaKazus
    @RefiaKazus 25 дней назад

    Dude your a lifesaver, was baffled by this for weeks :D

  • @another-niko-pfp-holder
    @another-niko-pfp-holder 10 месяцев назад +7

    will this work on a dualboot? or if i boot the os on another computer?

    • @ReGioia
      @ReGioia 9 месяцев назад +1

      sul mio dual boot non ha funzionato

  • @marol75-l2h
    @marol75-l2h 11 месяцев назад +2

    Thank you for your tutorials! :) I have few questions to you about this one.
    1. Can I use this script after I have made basic installation of Archlinux?
    2. After reboot 4:56 there's no need to go to BIOS and chose Secure Boot option there, right?
    3. Should I sign a kernel after each update of it?

    • @Theoldenmage
      @Theoldenmage 11 месяцев назад

      I'd imagine so for #1, 2, not needed, the signer enables it for you, and as for three, it auto signs it for you, it's all shown in the video

    • @marol75-l2h
      @marol75-l2h 11 месяцев назад

      @@Theoldenmage Thank you! This is what I thought about #2 - signer makes it automatically for me. But what about questions 1 and 3? Eh... it seems I have to try it on qemu. But there's a problem - I can't enable Secure Boot option at the start. IDK why.
      So, question #3 remains: Should I sign a kernel after each update?

  • @hate36
    @hate36 2 месяца назад

    Thank you man!

  • @oxyblade
    @oxyblade 10 месяцев назад +1

    Good video. Big thanks! I use and like Manjaro :)

  • @moonmonoar5000
    @moonmonoar5000 Месяц назад

    This video is a life saver

  • @asaurcefulofsecrets
    @asaurcefulofsecrets Месяц назад

    I think your video is excellent and I thank you a lot for it, but this method is so wrong! How is my system protected if the keys to sign a new kernel are available to this sbctl tool in userspace? Why doesn't arch provide a kernel signed with their own private key so I can just add their public key to my secure-boot database by allowing it on the bios settings, once? I don't understand!!!

  • @dozaltay
    @dozaltay 5 месяцев назад +11

    im getting "/efi/EFI/Linux/arch-linux.efi does not exist" error..

    • @donkey7921
      @donkey7921 4 месяца назад

      did you run "cat /etc/mkinitcpio.d/linux.preset" and then read the "default_uki" line?, maybe the cat output from the video is the same for you too, but it still doesn't work ig. Then there's something special about your bootloader setup, exploring your boot or efi dirs and researching more about these files could help, but that's about all I know, sry.

    • @giulioluizvalcanaia
      @giulioluizvalcanaia 4 месяца назад

      Check what files need to be signed for secure boot to work:
      # sbctl verify

    • @Habibaadil-fp3iq
      @Habibaadil-fp3iq 4 месяца назад

      @@giulioluizvalcanaia It says failed to fine EFI partition

    • @littleghoost
      @littleghoost 4 месяца назад

      @@Habibaadil-fp3iq I have the same problem. Did you manage to solve it? How?

    • @chuchu-_-
      @chuchu-_- 3 месяца назад +1

      Use the other one 4:02 i encountered same error so i used /boot/vmlinuz-linux and everything worked out for me

  • @Amiska5v5
    @Amiska5v5 11 месяцев назад

    Are you using VirtualBox or Hyper-V? I tried doing this on Hyper-V Manager on Windows 11. I got the PXE over IPv4 message when I tried to boot with Secure boot enabled.

    • @xCwieCHRISx
      @xCwieCHRISx 11 месяцев назад

      His UEFI looks like VirtualBox idk how Hyper-V UEFI looks.

    • @donkey7921
      @donkey7921 4 месяца назад

      qemu

  • @delemak9364
    @delemak9364 4 месяца назад +1

    And linux boot manager only gets me to windows 11

  • @FinAcharya
    @FinAcharya 4 месяца назад +1

    My laptop has pre-installed windows. Doing this won't effect it right?

    • @marcitrixie
      @marcitrixie Месяц назад

      same question here

    • @dcarpenter85
      @dcarpenter85 12 дней назад

      @@marcitrixie I would recommend against doing this if you dual boot windows. Just disable secure boot when booting into linux and turn it back on (if you want/need) when booting back into Windows. sbctl can brick laptops if you are not careful or do not know what you are doing.

    • @marcitrixie
      @marcitrixie 12 дней назад +1

      @@dcarpenter85 yeah solved a problem buying cheap but relatively high performance laptop :D

  • @haloslayer255
    @haloslayer255 11 месяцев назад +2

    I wonder if this will work with windows 10, or 11 with bitlocker enabled on the partition windows is installed on.
    If we reset the secure boot keys in the first step, does that tamper with the bitlocker encryption key?

  • @howto_7
    @howto_7 6 месяцев назад

    Bro which command to run vmlinuz one or default uki one i am confused as one guy here said his pc died after this command , when j boot through refind i see vmlinuz there for my arch linux it means i use the vmlinuz one?

  • @yorozuya6115
    @yorozuya6115 4 месяца назад

    Hi I'm getting failed to parse pem block when try to enroll keys or reset

  • @UltraStyle_PC88
    @UltraStyle_PC88 5 месяцев назад

    Thanks for making this video working with Kali Linux but I can't get windows 11 on boot menu.

  • @firstnamelastname7774
    @firstnamelastname7774 6 месяцев назад

    after I type bootctl install it says mount point /boot which backs the random seed file is world accessible, which is a security hole and random seed file '/boot/loader/random-seed is world accessible which is a security hole

    • @thelazt16
      @thelazt16 3 месяца назад

      because it has wrong file permissions. If you just `sudo mount "efi part" "mount loc"` the default file permission will be set to "root" and has "0777" file and folder permission. You need to use `sudo mount -o fmask=0137,dmask=0027 "efi part" "mount loc"` so files will be set to "0640" and folders set to "0750" which will be sufficient permissions.

    • @firstnamelastname7774
      @firstnamelastname7774 3 месяца назад

      @@thelazt16 thank you

  • @mitry2
    @mitry2 18 дней назад

    Wow!I thought it was difficult

  • @IGRT
    @IGRT 11 месяцев назад

    wtf, I did this on my dual boot notebook with win11 and arch linux and after the tutorial now it stays with a black screen, not even white back light on the lcd screen, only turned off, I cant see the BIOS like this or do litellary anythinf

    • @Walian-rw1go
      @Walian-rw1go  11 месяцев назад +2

      Did you read my caveat about installing the M$ vendor key?

    • @IGRT
      @IGRT 11 месяцев назад

      ​@@Walian-rw1go I'm frightened to ask, which caveat? I still can access the arch terminal because I remember the keys orders to select, is there anything that I can do from the terminal?

    • @IGRT
      @IGRT 11 месяцев назад

      ​@@Walian-rw1gops: when I tried to sign the keys to the same directory "/efi/EFI/Linux/arch-linux.efi" it says that the directory does not exist, then I signed on "ALL_kver="/boot/vmlinuz-linux"

    • @Walian-rw1go
      @Walian-rw1go  11 месяцев назад +1

      Did you uncomment the lines to generate the UKI efi file?

    • @IGRT
      @IGRT 11 месяцев назад +1

      ​@@Walian-rw1go I think I don't, I just followed the steps from the video, but I remember that when I verified the sbctl, there was a giant list and only one item marked right, I'm scared that was something that I've done to the bios

  • @Huktd
    @Huktd 6 месяцев назад

    Tysm ❤

  • @AnxulJyoti
    @AnxulJyoti 7 месяцев назад

    are you doing this on quemu?

  • @ThsHunt
    @ThsHunt 5 месяцев назад

    will it work if i use dual boot

  • @aftabhussain4036
    @aftabhussain4036 4 месяца назад

    why do you only have 300 subs

  • @jamsheed5179
    @jamsheed5179 Год назад +3

    Can I use this in manjaro

    • @Walian-rw1go
      @Walian-rw1go  Год назад

      Yes it should work in manjaro. software.manjaro.org/package/sbctl

  • @thesun___
    @thesun___ 4 месяца назад

    I just bricked my system by omitting -m. What do I do?

    • @littleghoost
      @littleghoost 4 месяца назад

      Disable Secure Boot in BIOS

  • @invalid-m2e
    @invalid-m2e 2 месяца назад

    Thats useless...

    • @asaurcefulofsecrets
      @asaurcefulofsecrets Месяц назад

      I wouldn't say useless because you can do secure boot, which probably help if you are dual-booting windows 11. But self signing a kernel you did not even build yourself and keeping the private keys to sign them in the same system, that doesn't seem "secure" boot at all. I can't believe this is a recommended or preferred way of doing things. Why doesn't Arch sign with their own private key and provide the public counterpart to add to the sb database (either directly or via shim) so we can just trust their kernels like we do with Microsoft.