Debian 12 Bookworm Installation w/BTRFS/XFCE/TIMESHIFT & GRUB-BTRFS

Поділитися
Вставка
  • Опубліковано 28 лис 2024

КОМЕНТАРІ • 107

  • @timoleary5815
    @timoleary5815 8 місяців тому +11

    Absolutely brilliant, it make take me awhile to get it sorted, as I'm still learning, but to be able to restore snapshots from GRUB is a very useful feature. Thanks Drew.

  • @brunombardi
    @brunombardi 4 місяці тому +5

    Man, it was a huge effort for a begginer in Linux like me, but in the ends everything is working fine. I really appreciate the tutorial. Keep the good working, man. Cheers from Brazil.

  • @JC-cj8fc
    @JC-cj8fc 28 днів тому +1

    I'm amazed how easy and straightforward this video is, And the big thing here is that you actually tried to simulate the actual failing of a system which I don't find on the previous tutorials that I watched so it resulted in problems when I restore the backup especially during boot, but this tutorial is complete and I am much thankful to you. This will help me big time!

  • @tolgayenici
    @tolgayenici 3 місяці тому +3

    This is the best ever Debian installation video. I can say that as a Debian user who installed the Debian a million times. Thank you. You are the champion.

  • @huntmanday
    @huntmanday 8 місяців тому +1

    Dude I’ve been using Linux for over 10 years, but have mainly focused on the enterprise space and haven’t kept up with the latest filesystem technologies on my local Linux desktop machines. This video was so insanely helpful for someone who still wants to stay on Debian but yearn for more modern features that are in other distros I personally don’t care much for. HUGE thank you

  • @emanonmuc7762
    @emanonmuc7762 8 місяців тому +3

    Perfect for me. I set up my xps 13 that way. works like a charme. Next will be your xfce customization vid. Great and much appreciated work. Thank you so much.

  •  Місяць тому +1

    Thank you so much for making that video. I learned how to properly use snapshots and how to set it up properly to use timeshift in Debian. I can't thank you enough.

  • @bokami3445
    @bokami3445 8 місяців тому +3

    Great video, easy to follow along and well paced. Now have a lean'n'mean debian nas server.

  • @UBubba98
    @UBubba98 5 місяців тому +2

    This video has been a big help. I did have to consult another video to get help with encrypting because I’m using a laptop and I do like to encrypt my SSD, but other than that the video was great and I love that I can restore it properly and use XFCE on Debian because I was really wanting to do that. Ty Drew! Keep up the great content. I can’t wait to watch the videos you’ve made on customizing XFCE.

  • @NatesRandomVideo
    @NatesRandomVideo 5 місяців тому +2

    Appreciate your work on this. Been working on doing stuff on an ancient MacBook Pro, and this is great for reverting things I try out and don’t work out well. Cheers!

  • @phonewithoutquestion80
    @phonewithoutquestion80 9 місяців тому +2

    I recently redid an install of Debian with xfce and timeshift, myself. To minimize cruft with snapshots, I split my btrfs configuration across six subvolumes, like so:
    /
    /home
    /opt
    /srv
    /tmp
    /var
    Easy enough. I do realize that this layout isn't ideal for flatpak usage, and whatever actually installs to /opt, as you exclude their contents in the snapshot process, but I am leaving flatpak behind to take full advantage of Debians predictable stability.
    As for the xfce half, I only installed the bare minimum core components outlined in the official xfce documentation, which Debians packaging of xfce allows you to do. I did use substitutions for the volume knob, notifications, terminal, etc... Overall I am aiming for a less redundant desktop experience.

  • @internetservices-ki7px
    @internetservices-ki7px 2 місяці тому +1

    This is amazing!! I am really impressed with Debian + btrfs. Thanks for this videos, they are great!!

  • @h20andmore
    @h20andmore 9 місяців тому +1

    I thought you made a great video, thank you sir. I use Linux as desktop, not an expert on anything. Therefore I like being spoon fed sometimes. I have a creator type laptop so that implies what I do on the desktop. You included right amount of details for me without chasing rabbits, that is a real skill. Enjoyed, thank you ! Intend to use it in the near future.👏

  • @RKRK-e5f
    @RKRK-e5f 8 місяців тому

    Excellent method of recovering from a disaster. Thank you

  • @ramosel
    @ramosel 6 місяців тому +1

    Drew, this was awesome!! Thank you, sir!. Fortunately, I was close with a Dell 7480 but after slogging through to the first reboot I got the dreaded "no bootable devices found". Try as I might to resolve this issue, it failed repeatedly. Yet the SAME M.2 drive would load and boot Windows and Linux Mint with no problems... hmmm. I re-ran your process up to the GRUB install and selected YES to the "Force GRUB installation to the EFI removable media path" and it FINALLY showed up in the F2/Boot Sequence as UEFI/debian. Otherwise, the ONLY deviation from your install and my result was although it installed an launches Firefox-esr, the launcher icon is just the generic "web browser" blue earth icon.
    But now I can really start to work on a debian based tool box for working with all my linux and freebsd devices and not have to worry about borking something so bad I get a brick.
    Again, Thank you!!

  • @jeffersonsantos4603
    @jeffersonsantos4603 6 місяців тому +2

    You, sir, are a gentleman and a scholar! Thank you!

  • @jacksonmitchell5074
    @jacksonmitchell5074 27 днів тому +1

    Great video! Thanks for the play-by-play. Very clear all around and super helpful! Like someone else has said, I really appreciate you demonstrating a real system failure. It’s very confidence inspiring to break and fix the system reliably like this 😂
    I am curious why you didn’t use the same btrfs mounting options that you used in the original version of this video eg ssd, discard=async, space_cache=v2.
    Just curious if those options are needed anymore or if you were using a different setup. Thanks a ton for approachable content

  • @PatrickDunn13078
    @PatrickDunn13078 6 місяців тому +2

    While this isn’t all for me I did learn something neat about the expert install that will be quite neat to use.

  • @MarkusHobelsberger
    @MarkusHobelsberger 8 місяців тому +3

    That's a pretty neat setup. Great video.

  • @tunageldigitti7811
    @tunageldigitti7811 3 місяці тому +1

    Drew, many thanks for this amazing guideline.
    May I suggest gnome-core package as a minimalistic and beautiful way of installing Gnome? Each time I install Debian, I do my installation this way (and disable my Wi-Fi from /etc/network/interfaces). Pretty lightweight. Highly recommended.
    Thanks again!

  •  4 місяці тому +1

    That is exactly what I was looking for! Thank you so much!

  • @darkbash-f3m
    @darkbash-f3m 3 місяці тому

    Great video. Debian fan here also tried BTRFS it kept getting corrupted over the last 2 years or slowing down during everyday gnome use. Went back to EXT4 for my debian stable.

  • @miritodrawing
    @miritodrawing 21 день тому

    I know this comment may not be read by you. First of all, I want to thank you for helping me do the best Debian installation I've ever done. I wish you and your family all the best. But I really wanted you to help me in some way. I would like to do the encryption at the time of installation with BTRFS too. If you could record a short video showing how it's done, or send me a link to an article so I can do it, I'd be very grateful. If you have any books to recommend, it would be a great help. Thank you for all your knowledge, you are very special! 🔥 🔥 🔥

    • @JustAGuyLinux
      @JustAGuyLinux  20 днів тому +1

      All noted and appreciated.

    • @miritodrawing
      @miritodrawing 17 днів тому

      @JustAGuyLinux OMG!!! Thank you so much... ❤️🙏❤️🙏❤️

  • @ChrisDrymon
    @ChrisDrymon Місяць тому +1

    This is excellent. Thank you!

  • @CleverBoy0098
    @CleverBoy0098 9 місяців тому +1

    I'm kind of new to Linux and Debian. Does btrfs need to be maintained somehow? Like a series of commands that need to be run regularly? I would appreciate it if you also made tutorials about more basic stuff, like what the benefit of using btrfs over ext4 is. BTW you've got a new subscriber; thanks for your quality videos.
    Update: I installed Debian with the btrfs filesystem in a virtual machine, and, oh boy, every snapshot only took a few megabytes instead of gigabytes! I can now take snapshots on every boot without sacrificing my SSD storage. Btrfs is just amazing.

    • @donaldwilliams6821
      @donaldwilliams6821 9 місяців тому +1

      You are probably thinking of BTRFS scrub and BTRFS balance. IMO there differences between EXT4 and BTRFS are vast! Performance, scalability, features are just a few

  • @JestyJoshua
    @JestyJoshua 2 місяці тому +2

    What is this splitting subvolume thing people are commenting about? Is it something I should do?

  • @huntmanday
    @huntmanday 8 місяців тому +4

    If anyone here is following along but decided to use KDE Plasma as their Desktop Environment of choice, after installing timeshift and attempting to launch it by clicking on the icon in the Application launcher, it won’t launch because a package needs to be installed. Run this command to fix it: sudo apt install pkexec -y

    • @globetrotterdk
      @globetrotterdk 8 місяців тому

      I got it working by issuing the following command: $ sudo chmod +x /usr/share/applications/timeshift-gtk.desktop

  • @internetservices-ki7px
    @internetservices-ki7px Місяць тому

    Great video! I am using your recipe with great result. I just wonder if it s better to make a separate volume for home or not. Having home into the same volume as root makes the snapshots competes and every time you boot an old snapshots you have the complete stage, like that you have to use the recovery function only in order to have the home recovered, if not you boot and old root with the last home that could create some inconsistencies.

  • @kev2020-z9s
    @kev2020-z9s 9 місяців тому +7

    Graphical install Root Password Note that you can leave both fields empty if you want the root account to be disabled. In that case, the login for the root user will be deactivated and the first regular user - that will be created by the installer in the next step - will have administrative rights through sudo.

  • @CleverBoy0098
    @CleverBoy0098 9 місяців тому +2

    I have a few questions:
    1. Why didn't you use ext4 for the boot partition?
    2. Why didn't you create a subvolume for snapshots?
    3. In the fstab file, why didn't you use noatime and compression in conjunction with defaults?
    4. Why didn't you specify a compression level?

    • @JustAGuyLinux
      @JustAGuyLinux  8 місяців тому

      just the way I have always done it.... Thanks for giving me something to think about.

    • @MarkusHobelsberger
      @MarkusHobelsberger 8 місяців тому +2

      @@JustAGuyLinux Compression levels are a "newer" feature of btrfs. Just setting it to zstd defaults to 3. I personally recommend zstd:1. That's quite a bit lighter on the CPU without losing much compression rate (like 50% vs 47% space).

  • @nicopelle72
    @nicopelle72 2 місяці тому +1

    Excellent tutorial, thanks !

  • @busterbrown8830
    @busterbrown8830 9 місяців тому +1

    WOW - great video!
    sorry to ask - How about the part 2 Debian 'trixie' Hyprland video?
    Hope that video is in the que to be done?

    • @JustAGuyLinux
      @JustAGuyLinux  9 місяців тому +2

      for ricing?

    • @busterbrown8830
      @busterbrown8830 9 місяців тому

      yes - I remember you saying you would do a 2nd video ricing the waybar. But again, maybe not. I have stopped using X11 wm's using only Hyprland now- it is the next software replacing X11. @@JustAGuyLinux

  • @NoahWatkins-p4z
    @NoahWatkins-p4z 4 години тому

    Hey Drew, would you be able to make one with Snapper-Tools instead of timeshift? This was an excellent video, but i've been on arco and Eric uses Snapper and that's always worked perfectly when i mess up. I'm tired of Arch's mood swings lol and think I would like to return to something more stable. Thanks in advance

  • @mrCastrinho_
    @mrCastrinho_ 5 місяців тому +2

    Omg you're really very good at it

  • @ultraprimez
    @ultraprimez 8 місяців тому +1

    can i use gnome or cinnamon or KDE instead of XFCE ? i want my home pc for browsing, emails, e-shopping, banking and gaming. how to activate SELinux permissive or Enforcing ? What's Pro & Con of activating SELinux ?

  • @anirbellahcen5551
    @anirbellahcen5551 3 місяці тому

    That's an impressive job. I have a question if you could help me out. I have already installed Debian 12, would it work if I install those subvolumes even after the base system installation? Thank you pal.

  • @SnordCranston23
    @SnordCranston23 9 місяців тому +2

    Great information! Thanks!

  • @krillAmorim
    @krillAmorim 9 місяців тому +1

    Excellent video! I was able to replicate these settings on my newer PC.
    However, I have an older PC that doesn't work with EFI. It's BIOS Legacy only.
    would like to use Debian with BTRFS and Timeshift on it. Could you please make a step-by-step guide or provide a link to some documentation or tutorial where I can accomplish this task?
    I've tried everything so far but without success. Currently, the notebook is running Debian using Timeshift with RSYNC.
    Any help would be greatly appreciated!

  • @medivix
    @medivix Місяць тому

    Thanks for this tutorial, very helpfull.
    I'm using it a a KDE/Fedora Install already. (with snapper)
    I'm gonna try but without XFCE, only on command line, because I don't want desktop env on my mini server.

  • @hiralpatel3863
    @hiralpatel3863 8 місяців тому +1

    Nice one mate. Very resourceful

  • @sergeiborodin9254
    @sergeiborodin9254 9 місяців тому +1

    One thing I noted when followed your Debian 12.5 BTRFS guide - Timeshift can derp with snapshots due to current rsync version. Happened to me, couldn't restore my snapshot, after restoration I had system with all changes made after snapshot was taken. Timeshift just can't delete some directories in subvolumes. Maybe Timeshift itself is broken in this version.
    12.5 is just ridden with bugs - Nvidia drivers are broken due to missing symbols in kernel (needs kernel downgrade), Nouveau drivers are broken too, Timeshift is broken and a lot more complains on forums.
    I will probably wait for 12.6 now. 12.5 wasn't properly tested.
    Also, as a request, please make a guide for XRDP or any open-source remote desktop server for Debian with audio passthrough capability so Windows RDP client could work. I tried some ready script for Ubuntu/Debian but it required tinkering with TCP packet size to prevent audio bufferization/tearing over network. Most guides out there are just plain misleading even to the point of tinkering with pulseaudio/pipewire. Hours were wasted.

  • @codingcats
    @codingcats 5 місяців тому +1

    I need swap partition, while since I can't understand those complicated commands with btrfs and fstab, I had to follow the video exactly as it is. Can I just add swap partition during the partition part?

  • @johnnylee3505
    @johnnylee3505 9 місяців тому +3

    Debian rules!🎉

  • @GlenGlenervo
    @GlenGlenervo 2 місяці тому +1

    cant unmount target: device or resource busy?

    • @MaximeSeguin
      @MaximeSeguin Місяць тому

      Same here! I tried to umount my usb device (it worked, ie, it is not busy anymore and I can mount to efi subvolume), but now the installation can't continue. @JustAGuyLinux Any ideas?

  • @memilanuk
    @memilanuk 6 місяців тому +1

    How much difference is there going with 'expert' instead of 'graphical expert' for the install?

    • @ChrisDrymon
      @ChrisDrymon 2 місяці тому

      When I tried graphical expert, the installation hung up when I exited busy box.

  • @Drugvigil
    @Drugvigil 2 місяці тому

    I have an issue
    Installed debian xfce with expert install include btrfs. Installed successfully but during login. It's not letting me in. I tried resetting my password also. Could you please guide me?

  • @leodnz-sg
    @leodnz-sg 7 місяців тому +1

    Excellent tutorial, maybe it would be great if you did the same thing but with LMDE + Setup secure boot

  • @jotwist138
    @jotwist138 6 місяців тому +1

    👋👌very cool, am still looking if to use timeshift ore snapper but I tested this in vm and cant find reason now why not use timeshift, thx

  • @bryanmoore2355
    @bryanmoore2355 8 місяців тому

    Worked for me. Thanks Drew.

  • @gormhatre
    @gormhatre 6 місяців тому +1

    Do these sub volumes have to be created manually ? What if I used the GUI installer and partitioned disk using btrfs in GUI mode? Will that not be sufficient ?
    WRT ZRAM what if I wanted to set a fixed amount of ZRAM such as 4 GB. How to achieve that in the Zram file ?

    • @JustAGuyLinux
      @JustAGuyLinux  6 місяців тому +1

      Manual is the only way. Edit the zram at /etc/default/zramswap, Uncomment the size line to SIZE=4096. Make sure the percent is commented.

    • @gormhatre
      @gormhatre 6 місяців тому

      @@JustAGuyLinux thank you.

  • @essetee
    @essetee 8 місяців тому +1

    ctrl+alt+F.. is only needed when you are in a GUI. Otherwise just use alt+F..

  • @fuguimashu
    @fuguimashu 9 місяців тому

    Why do you need Partitioning for BTRFS, wasn't BTRFS already selected during installation?

    • @JustAGuyLinux
      @JustAGuyLinux  9 місяців тому

      Timeshift needs this type of setup.

    • @fuguimashu
      @fuguimashu 9 місяців тому

      @@JustAGuyLinux ok,thank you!

  • @herrvorragend4713
    @herrvorragend4713 4 місяці тому

    ok, fine, thanks but timeshift does not save /opt. changes in /opt cannot be reset with timeshift in your configuration. if i make a backup of /, /opt is excluded and that is not good! program changes cannot be undone this way. var and opt should always be backed up as well

    • @OraOraOra
      @OraOraOra 3 місяці тому

      It's personal taste, but even openSUSE (the king of BtrFS and rollback) has complete /var and /opt as subvolume, to exclude it from rollbacks.
      If you install virtual machines like qemu/kvm - virtmanager, the images are saved in /var. You don't want to rollback your VM's.

  • @globetrotterdk
    @globetrotterdk 8 місяців тому +1

    Many thanks for your video. At your "/dev/sda2 /mnt", in my case "/dev/nvme0n1p1 /mnt", I get "permission denied". Any ideas?

    • @globetrotterdk
      @globetrotterdk 8 місяців тому +2

      I solved it. It should have read "/dev/nvme0n1p2 /mnt"

  • @hiralpatel3863
    @hiralpatel3863 7 місяців тому

    Quick question before I try this.
    What additional steps needed if I were to encrypt the BTRFS? Does it get more complicated?
    Thank you in advance

    • @mrCastrinho_
      @mrCastrinho_ 5 місяців тому

      Were you able to do the installation with encryption? I'm trying too, but without success

  •  8 місяців тому

    Can you make a video showing how to do a dual boot install with windows?

  • @upgrade1373
    @upgrade1373 7 місяців тому +1

    Going to fire up my Pentium M again!

  • @JC-cj8fc
    @JC-cj8fc 28 днів тому

    New Sub here, Can I request you make a video about snapper / snapper rollback on Debian in the future using this method also without encryption. As what I have known you can easily back up after the base install using snapper when there is no DE yet.

  • @TheOfficialPesca
    @TheOfficialPesca 9 місяців тому +3

    25:57 EENNSSUURREE 😅

  • @farhadmodaresi4182
    @farhadmodaresi4182 8 місяців тому

    what if grub doesn't boot

    • @JustAGuyLinux
      @JustAGuyLinux  8 місяців тому +1

      I reinstall at the most minor of problems.

  • @m02bd0
    @m02bd0 6 місяців тому

    Thanks a lot.

  • @eygs493
    @eygs493 7 місяців тому +2

    mount boot/efi failed, says sda2 is already mounted, why?

  • @janmussche6815
    @janmussche6815 9 місяців тому +2

    I wonder for whom you made this video. It can't be for people who can do it themselves already, the "experts", so it has to be people who need help. But you don't give any help at all. You race through the installation with your preferred settings and that's it. Nobody will learn from this. Create longer videos and really explain what it is you are doing. People will thank you.

    • @h20andmore
      @h20andmore 9 місяців тому

      I thought this video was long already but your point is understood. To understand the "bones" of btrfs I found this video to be insightful. ua-cam.com/video/RPO-fS6HQbY/v-deo.html

    • @edbeckerich3737
      @edbeckerich3737 9 місяців тому +1

      This is like a Gentoo install, grab the popcorn and enjoy!

    • @phonewithoutquestion80
      @phonewithoutquestion80 9 місяців тому +4

      Tell us you didn't watch the video without telling us you didn't watch the video.

    • @timoleary5815
      @timoleary5815 8 місяців тому +1

      I disagree, I learnt from it and will use it. If you find it too fast, slow the video down or pause it . . . easy.

    • @ytbone9430
      @ytbone9430 8 місяців тому +1

      Well, I think learned a lot. I was not aware I need special grub-btrfs to work with snapshots conveniently and that I need a daemon to auto-update the list. I also never saw the Timeshift application being used. I surely could have read through a lot of websites, but this gives a nice overview of how easy or difficult it is in real life. I've read thousends of Linux howto pages already, sometimes it's nice to see a person familiar with all the things show the full process. So, thank you JustAGuy! o)
      ps: I did not get / understand why I need such many subvolumes and what subvolumes are affected when doing a snapshot. If all the subvolumes are included in a snapshot, then why have them? I can see why an additional home subvolume makes sense in addition to the rootfs, but all the others? I also seem to have missed how to restore the home subvolume separately?! I will watch again.. o)

  • @neuzen
    @neuzen 2 місяці тому

    6:04 why?

  • @eygs493
    @eygs493 7 місяців тому +1

    followed everything and debian boot into black screen

  • @kyu1159
    @kyu1159 5 місяців тому +1

    23:09 @justaguylinux please help i did everything correctly now i cant create it says only Ubuntu type layouts with @ and @home subvolumes are currently supported. I have @ and @home i dont know why is happening to me please help

    • @kyu1159
      @kyu1159 5 місяців тому

      @JustAGuyLinux

    • @JustAGuyLinux
      @JustAGuyLinux  5 місяців тому +1

      I will do my best. But, the only thing I can do is verify that this procedure works and that I do not need to amend it. Not sure I can provide the support beyond that. Based on the error, I would say that you missed the step of renaming the subvolumes and then adding them manually to the fstab.
      Update: confirmed that this sets up the subvolumes and timeshift is working with no errors.

    • @kyu1159
      @kyu1159 5 місяців тому

      Sir i did the steps again one by one and i am still getting the same error

    • @kyu1159
      @kyu1159 5 місяців тому

      ​@@JustAGuyLinux found the solution the problem is using tr.TR.UTF-8 Language i changed to en us utf 8 and vala problem is solved

  • @sergioarondejesusmenichini
    @sergioarondejesusmenichini 4 місяці тому +1

    Thanks 😊