- 11
- 132 111
The Rad Lectures
Thailand
เข้าร่วมเมื่อ 8 ส.ค. 2020
Linux | Code | Tech
Arch Linux Installation Guide (including BTRFS, QTile, ZRAM, disk encryption, timeshift)
Welcome to my step-by-step guide on manually installing Arch Linux. In this video I will cover BTRFS, Timeshift, ZRAM, encryption, Qtile and many other packages to form the foundation of a robust Arch system. By manually installing Arch the hard way, you will better understand how your system works, and how to fix issues if they arise.
In this video, we'll cover:
- Creating a bootable Arch media device and setting up our system with the Arch ISO: partitioning, disk encryption setup, and mounting filesystems.
- Working within our new system: configure your new Arch installation, including setting up users, installing essential packages, and configuring services.
- Tweaking our new Arch system: Explore advanced configurations such as ZRAM setup for memory optimization, the paru AUR helper, Timeshift for system backups and auto-cpufreq for better power management.
Timestamps:
00:00 - introduction (BTRFS, cryptsetup, zram, timeshift, QTile)
03:00 - download Arch Linux ISO
03:40 - writing the ISO to USB
04:55 - booting into Arch on the target machine
06:30 - connect to WiFi with iwctl
09:00 - create root password and ssh into target machine
09:25 - set locale, keymaps, time
14:22 - partition the target disk (efi, btrfs)
17:54 - encrypt disk and format partitions
20:45 - open encrypted disk and create btrfs subvolumes
22:10 - mount partitions
24:55 - update mirrorlist with reflector
25:38 - install base packages
26:20 - generate filesystem table
27:19 - arch-chroot into new system
27:48 - setup locales, timezone
30:53 - create user (add user to groups and sudoers)
32:13 - install additional packages
36:30 - update mkinitcpio.conf
37:40 - setup grub bootloader
41:54 - enable system utilities
43:16 - reboot into our freshly installed system
44:46 - logging in for the first time + installing paru, zram, auto-cpufreq, timeshift
51:10 - Outro, thank you!
Let's go!
Links:
Full Guide here: github.com/radleylewis/arch_installation_guide
Writing Arch ISO to USB: wiki.archlinux.org/title/USB_flash_installation_medium
Arch Wiki Installation Guide: wiki.archlinux.org/title/Installation_guide
BTRFS: btrfs.readthedocs.io/en/latest/
Cryptsetup: gitlab.com/cryptsetup/cryptsetup/
ZRAM: www.kernel.org/doc/html/v5.9/admin-guide/blockdev/zram.html
Timeshift GitHub: github.com/linuxmint/timeshift
Qtile: qtile.org/
Thank you to all of the maintainers who make this system and GNU/Linux possible!
In this video, we'll cover:
- Creating a bootable Arch media device and setting up our system with the Arch ISO: partitioning, disk encryption setup, and mounting filesystems.
- Working within our new system: configure your new Arch installation, including setting up users, installing essential packages, and configuring services.
- Tweaking our new Arch system: Explore advanced configurations such as ZRAM setup for memory optimization, the paru AUR helper, Timeshift for system backups and auto-cpufreq for better power management.
Timestamps:
00:00 - introduction (BTRFS, cryptsetup, zram, timeshift, QTile)
03:00 - download Arch Linux ISO
03:40 - writing the ISO to USB
04:55 - booting into Arch on the target machine
06:30 - connect to WiFi with iwctl
09:00 - create root password and ssh into target machine
09:25 - set locale, keymaps, time
14:22 - partition the target disk (efi, btrfs)
17:54 - encrypt disk and format partitions
20:45 - open encrypted disk and create btrfs subvolumes
22:10 - mount partitions
24:55 - update mirrorlist with reflector
25:38 - install base packages
26:20 - generate filesystem table
27:19 - arch-chroot into new system
27:48 - setup locales, timezone
30:53 - create user (add user to groups and sudoers)
32:13 - install additional packages
36:30 - update mkinitcpio.conf
37:40 - setup grub bootloader
41:54 - enable system utilities
43:16 - reboot into our freshly installed system
44:46 - logging in for the first time + installing paru, zram, auto-cpufreq, timeshift
51:10 - Outro, thank you!
Let's go!
Links:
Full Guide here: github.com/radleylewis/arch_installation_guide
Writing Arch ISO to USB: wiki.archlinux.org/title/USB_flash_installation_medium
Arch Wiki Installation Guide: wiki.archlinux.org/title/Installation_guide
BTRFS: btrfs.readthedocs.io/en/latest/
Cryptsetup: gitlab.com/cryptsetup/cryptsetup/
ZRAM: www.kernel.org/doc/html/v5.9/admin-guide/blockdev/zram.html
Timeshift GitHub: github.com/linuxmint/timeshift
Qtile: qtile.org/
Thank you to all of the maintainers who make this system and GNU/Linux possible!
มุมมอง: 8 968
วีดีโอ
Host Your Own Website Free
มุมมอง 2434 หลายเดือนก่อน
You need your own website now! I'll show you how to host your own website for free using AWS and Cloudflare. In this tutorial we will create a static website from scratch, and then host it with Amazon Web Services using AWS's S3 storage (available on the free tier). We will set up our AWS S3 bucket using the AWS CLI and creating a dedicated IAM admin user. We will then register a domain with Cl...
Starting a Tech Business? 5 Lessons From A Startup CTO.
มุมมอง 1224 หลายเดือนก่อน
It's been a year since I sold my first business - a business I co-founded with my brother, and in which I was the CTO and Tech Lead. If I could go back in time to before it all began, this is the advice I would give myself! Timestamps: 00:00 Introduction 01:00 Tip 1: Invest In High Quality Equipment 02:15 Tip 2: Take Time Out 03:28 Tip 3: Strike A Balance 06:03 Tip 4: Invest In People 08:24 Tip...
Solidity NeoVim Config [LSP, Linting, Formatting]
มุมมอง 1.3K4 หลายเดือนก่อน
Music by @oxfordrecite Let's setup NeoVim for a vscode-like IDE experience. We will setup the Solidity Language Server Protocol, linting with Solhint and auto-formatting with prettier and prettier-plugin-solidity. Timestamps: 00:00 - Introduction & Previewing Solidity Files 03:21 - Mason.Nvim (install Solidity LSP, Solhint linter and Prettier formatter) 07:43 - Explaining the NeoVim LSP Client ...
NeoVim + WSL on Windows Setup Guide [Ubuntu 24.04]
มุมมอง 8K5 หลายเดือนก่อน
Still rolling with Windows? You can still use NeoVim and Linux. There is no excuse at this point people! Let's get your Windows Subsystem for Linux setup with NeoVim. I'll take you through installing the latest Ubuntu version on WSL and setting up your base NeoVim installation. Links: - ubuntu 24.04 (Noble Numbat): releases.ubuntu.com/noble/ - neovim: neovim.io/ - windows subsystem for linux: l...
Stop Using hjkl - 2 NeoVim Plugins to Navigate like a Chad
มุมมอง 13K11 หลายเดือนก่อน
Getting used to NeoVim? You might not be as efficient as you could be! Once you have used NeoVim / Vim motions for a while, its time to do away with some bad habits. I cover off on two discipline and workflow boosting neovim plugins. Links: - hardtime.nvim: github.com/m4xshen/hardtime.nvim - leap.nvim: github.com/ggandor/leap.nvim - My neovim config: github.com/radleylewis/nvim Thank you to the...
Customize your ZSH (auto-suggestions, prompt theme, syntax highlighting and more)
มุมมอง 11Kปีที่แล้ว
No Oh-My-Zsh needed in this ZSH setup! We walk through a lite-weight zshell customization including vi-mode, auto-suggestions, syntax highlighting, zsh-history-substrings, prompt styling and more. Zsh is highly configurable and will give you a big productivity boost over vanilla BASH, while also remaining POSIX ready, and adopting many of the best aspects of fish! If you enjoy my content, pleas...
Effective TypeScript 2024 - Beginner Fundamentals to Advanced Concepts
มุมมอง 1.6Kปีที่แล้ว
Whether you are a beginner coming from JavaScript, or you already know enough TypeScript to be dangerous, this comprehensive and up-to-date course will teach you how to use TypeScript effectively in production grade applications! As one of the most popular programming languages in the world, TypeScript has permanently disrupted the JavaScript ecosystem. Many top tech companies have adopted it, ...
How to setup Neovim from Scratch - Complete Guide (Including TMUX, Lazy and LSP)
มุมมอง 86Kปีที่แล้ว
My NeoVim config needed an update, so, I decided to configure it from scratch! I've documented each step for an awesome neovim setup, including installing the Lazy Nvim plugin manager, integrating TMUX, setting up our Language Servers with Lspconfig and much more. In light of the recent archiving of null-ls, we will also explore switching to efm-langserver, a performance-optimized alternative f...
Tech I'm Using in 2023
มุมมอง 440ปีที่แล้ว
Time to contemplate the year ahead. Hear my thoughts on ChatGPT and OpenAI as well as my favourite new backend framework, FastAPI. Node.js vs Flask Article www.radleylewis.com/flask_vs_node_001.html NeoVim Config: github.com/radleylewis/nvim #chatgpt #vuejs #neovim #typescript #python #fastapi #aws #2023 #openai #vim #cloudflare #golang #rust #reactjs #reactnative
Get Facebook Bloatware off your OnePlus Nord / 8 Series!
มุมมอง 1.9K4 ปีที่แล้ว
In this video we remove the pre-installed Facebook and Netflix bloatware that shipped with the OnePlus Nord and 8 Series. Windows article: gadgetstouse.com/blog/2020/08/08/how-remove-facebook-bloatware-from-oneplus-oneplus-nord/ Main article (Linux & Mac): www.xda-developers.com/how-to-remove-facebook-bloatware-from-oneplus-8-8-pro-nord/ Please note that I don't accept any responsibility or lia...
40:34 is this necessary if I didn't encrypt my partition?
When I initially tried to install arch manually after getting tired of that archinstall script, this was first video that I immediately discarded due to its length😅😅 also I was a newbie (Ubuntu Fedora user) to arch and not wanted to read it's documentation 🥲 But now after I'm familiar with arch this is best installation video for arch installation🔥😊❤
Really great tutorial. I especially liked that you not only showed what to do but also explained what certain commands do or why certain things do not work right from the start(like that nvim needs to be made executable first with chmod)
Thanks @WhatTheScoots
OMG this is what am looking for sir..!!! the best guide of arch installation for me. can you do the same thing with VOID distro sir? thanks
This is great! I'm new to neovim and I've already watched like 5 different neovim setups and by far, this video explains a lot more in detail than the others. Thanks and keep posting content!
Thanks man, much appreciated.
I like the video but the music is kind of distracting and thanks because of you I was able to setup arch and neovim and I can finally say I use arch btw
great guide. watching this on my ext4 arch system. I'm thinking of switching to btrfs. this will help me alot. thanks!
Great video, thanks! Can you make one on ricing Qtile? Look forward to seeing your next Arch video👍
Thank you so much
Great video, thank you! I now have a reasonable method to backup/restore my system. It would help a lot if you clear the screen before running commands. When you pause it on YT, the red pause line near the bottom is directly over the text and obfuscates it quite well. If you would kindly leave the command there a couple of seconds it would be very helpful in trying to copy it down. Thank you again sir, great work.
So how do you do this if you are using Zsh? How do you make zsh recognise nvim appimage
Zsh is POSIX compliant, meaning that the same steps that bash uses (also a POSIX compliant shell) will work with your .zshrc
Many thanks for this great tutorial ❤❤❤
this might have been the best video I have ever watched
Thanks man! Means a lot!
13:32 How do you visualize your keystrokes?
Awsome learning material. Very useful tips! Just one small thing i've noticed: when you were setting up Telescope, you've thrown your keymaps inside the `key` table right bellow the config parameter. That table is meant for lazy loading the plugin with the keymaps. If `lazy = false` was not assigned before, the plugin would not load at all because it would depend on a shortcut which executes a command that could only be provided by the plugin itself, almost like a circular dependency problem.
Good point! I always use telescope, a bit of a hangover from vscode and atom, but you're right, if you want it to lazy load, you would have to manually start for the keybinds to work.
Thank you! Its really helpful! But on part where we setup lsp i drop. Because it was hard to understand and your github is updated and not like in video
Thanks for the feedback. I plan to make an updated video tutorial at the end of the year. However, you can find the git commit from the code at the time of this recording in the video description, so that will help you navigate the code from the tutorial (rather than the updated code as you mentioned).
I want to completely switch is to Linux would that be good idea? Arch Linux or Ubuntu?
Yes, these days Linux is quite stable, I use it on all my machines. Generally, as a first distro I recommend Pop!_OS which is based on Ubuntu. Ultimately, any distribution is fine!
Great job rad you built an awesome product and the business from scratch.
Thanks, Ty. Couldn't have done it without you!
great guide, i wanted to do a fresh install of arch linux. i was having issues with trying to install paru. When i run makepkg -si, it gives me an error saying that "his version of alpm.rs does not support libalpm v15.0.0 only v14.x.x is supported". do you have any idea how i can work around this? thank you again for this tutroial!
got it to work, had to build from master
Awesome work!
Yahooooooo! Thank you very much sir, you don't know how valuable your videos are. Wish all the best for you, sir.
nice video!
awesome video!
Great video! Thank you! One question I have is that when I type history it only shows the last 16 lines of my .histfile Any idea why this happens?
That definitely shouldn't be happening! Does your .zshrc file have the below (or something similar)? HISTSIZE=110000 SAVEHIST=100000 HISTFILE=~/.histfile
Great video, with great explanations and directions! Thanks for sharing.
difficult video if you are beginner
Don't worry, come back to it in a few months. I am sure you can get it!
Don't you use hibernation?
On this machine with zram I do not.
I'm curious of one thing, when I originally set up btrfs+encryption using the Archinstall script and used timeshift, I recall at one point running into an issue: - I ran pacman -Syu - I then restored to an older snapshot - I got an error along the lines of "/boot failed to mount" - I was able to fix this eventually by chrooting into the system and updating via pacman -Syu again and i think some other command to sync it with something. Dont remember which of these fixed the issue but it was something with the kernel versions having some kind of version mismatch. With the set-up in this video, when I make timeshift snapshots, will it propperly restore everything in the system, or are there still some issues that come up regarding restoring an old kernel version. Because I'm currently under the impression that timeshift cant propperly restore /boot since its a VFAT format instead of btrfs like the main partition is.
Interesting. Honestly, I have not had any issues restoring my system and this is the approach I have been using for some time. That being said, if I do come across behaviour like what you have described I will be sure to keep this in mind.
It's not copy paste to the Neovim !
Thank you so much! You were able to convey it so easily, clearly and simply. You helped me out❤
Thank you!
Thanks for this! On my last install I ran into issues with systemd-boot having /boot on a non-snapshotted partition and thus making snapshots unbootable after a kernel update. Was racking my brain trying to find a better way and not having much experience with grub.
Thanks for this. This tutorial is one of the best I have seen on any subject. Kudos to you. I am new to linux and Nvim and this has helped me understand better how much can be done using the terminal instead of always relying on GUI. Would like to know why several of your configurations are different in your Nvim repository than in the video. Do the differences improve the way Nvim works? I would like to see you do a video on configuring .bashrc to understand it better and improve its functionality. Thanks again.
Thanks! I am really glad you found the video helpful. Yes, you're right, my config has evolved somewhat since this video was recorded and I will do an update at some stage (this video is almost a year old). You may have already seen it, but in case you didn't, I have included the git commit for the config as it was at the time of recording in the video description. Also, I actually do have a video using zsh - a bash alternative - if you'd like to check that out. Thanks for the comment and happy coding!
@@theradlectures Thanks for your reply. I did see the video using zsh. That will be my next project since I also us a Mac which has the zsh shell. I am new to this whole githup thing, so I don't understand how to find the commit for Nvim you referenced. I would like to see it, so any help would be appreciated. Thanks againg for doing these video instructions.
@@mjh1348 no worries at all. You can check out this link which contains the github code at the time of recording (noting there have been changes since then as you point out): github.com/radleylewis/nvim/tree/85f6a8d2ff35bdf4c28db92e4965825692364317
Great guide! A good thing to mention perhaps is that the "@" and "@home" subvolume names are absolutely REQUIRED for timeshift to work, which tripped me up. I tried to use it but my btrfs subvolumes had different names, and so I was unable to use timeshift to create snapshots.
Good observation! I have updated the github guide (link: github.com/radleylewis/arch_installation_guide ) to be more explicit on this too. Thanks for the feedback.
Thank god i found this I updated arch and got super lost trying to fix it. Id input my password and it would restart my system. My timeshift didnt work bc I didnt set it up right, gave up and lost all my stuff. Nvr again im about to study the fuck out of this video. RIP my rice hyprland 😢. I was doing so well at least thats what i thought
Oh man, that sucks! Remember to commit your work! Btw, all the commands are in the GitHub link for your reference if that helps. I will do a full rice on qtile in the coming weeks.
really good teaching skill man
Thanks, brother.
I can not recall how die i install nvim in wal, but thre was no color when i wrote some code. Any i diea wht may have happened?
Why not just install neovim through the package manager instead of downloading the appimage? I guess the package managed version is slightly older, but I dont see why that would be a problem.
Yes, you can definitely use the distro package manager, I just use the app image out of habit as I tend to keep my NeoVim Config on the same version of NeoVim to avoid issues.
Hi, I want to try and test many neovim distributions on docker linux images ... But I'm not understanding the file structure and there's no way I'm able to add sudo in it ... could u help me out on it
or if theres some other alternatives for me not to use docker linux images please suggest
Just a small advice , when you write command in terminal please wait at least 3sec before hitting enter. Sometimes I cant even stop it with spacer because you hit enter to fast.
Cheers for the feedback. Btw, if you are looking for any commands, they are linked in the repo in the video description.
@@theradlecturesSorry to point out but there is minor mistake on repo cryptsetup luksformat /dev/nvme0n1p3
great pickup, I have fixed this in the repo.
Nice video mate, I definitely learnt bew things: like automatic mirrors update. Intresting thing, whu do you prefer timeshift over snapper. Im using snapper and it saved me from failure 4 times without even going back to live usb stick.
Cheers brother. Yes, good call. I've stuck with Timeshift out of habit but may install void Linux on another machine and give snapper a go. Thanks for the comment!
@@theradlecturesWhat I'm looking for now is video with btrfs, snapper and zstd zram. My system is a bit messy, all works great but I'm lacking of space hence I bought 1tb nvme today. I don't understand everything, reading official documentation isn't too helpful.
Great idea for another tutorial. Thanks for the tip.
@@theradlecturesThank you for your reply. I did install snapper but I couldn't boot to snapshots nor make it visible in grub unless I pointed to /efi/grub/grub cfg Could you tell me for 100% that timeshift doesn't have problems with booting from snapshots in grub?
@@inio np. Yes, I can confirm that with the below changes snapshots are viewable in grub and can be booted from: sudo systemctl edit --full grub-btrfsd # NOTE: # rm : ExecStart=/usr/bin/grub-btrfsd --syslog /.snapshots # add: ExecStart=/usr/bin/grub-btrfsd --syslog -t sudo grub-mkconfig -o /boot/grub/grub.cfg
Wish you posted this video way before, configured my arch with btrfs but forgot to do the subvolumes 'cause I was following another video and I'm new to BTRFS. Now I'm kinda lazy to redo all lmao
haha! Ah damn, I can understand that, especially if you've riced your setup a lot. Still might be worth it!
i wasted my whole day trying to run the latest version on my windows wsl but at last i landed on your video Thanks man
You are welcome!
based
Smell like a waste of time, grow up and go the nixos way.
it sucks
For those who got lost at 44:00 because this bozo does a random cut in the middle of explaining what to do. make sure your nvim-tree.lua looks like this: return { "nvim-tree/nvim-tree.lua", lazy = false, config = function() require("nvim-tree").setup() end }
I'm completely new to vim and i was overwhelmed by the amount of resources addressing how to build your own config. Just coming from a total VSCode noob it was hard for me to differenciate between - native nvim functionality and config - nvim plugins - nvim package managers - nvim distributions This video made it easy for me to not just blindly copy some config files and hope it works but actually understand whats going on. Thank you! 10/10 would recommend
finally get to hear an australian accent on yt 😂
this is the only clear nvim setup video
Seem to have an issue when I get to @14:50 where instad of the /home/[user]/.config//zsh I instead get XDG_CONFIG_HOME/zsh/ Would appreciate some help with this, not quite sure where I went wrong (on debian 12)
Make sure the file in your /etc/zsh/zshenv file is correct. You can see the instructions here: github.com/radleylewis/dotfiles/tree/master/.config/zsh
@@theradlectures that did it! thanks mate - I must have misspelled something in that step, the classic PEBCAK error :D
@@SamuraiTurtle91 awesome! Glad to hear it worked.
Hi Rad, thank you for sharing your thoughts! One language for FE and BE to make shuffling roles easier is something I've never considered. Great point! What's your experience been working with family on a business? Also, what's your opinion on hiring friends to work with? Is it a strength or will it sour the relationship (kinda like asking friends for money)? Probably, it has a lot to do with emotional maturity and setting clear roles/expectations? I always struggle with the employee vs employer dichotomy when it comes to friends & family, as I wanna do right by them 😅 //Aquabbas
Hi, Aquabbas! Thanks for your comment. Actually, this is a great question. I think that you hit the nail on the head in that if you work with friends and family you may try too hard to do the right thing by them, perhaps to your own detriment. With the benefit of hindsight, while I think that going in a partnership with friends or family is likely to be ok, assuming you can communicate effectively with each other, but with respect to money (i.e. taking money from friends or family) it is very likely to change the dynamic of the relationship. Probably best to be avoided, but if it is the only option, then showing them exactly where the money has been spent could help them to process that you used the money in a certain way (therefore there is no ambiguity if they start asking for it back or where their money is!). I'd definitely be interested to hear your thoughts though!
@@theradlectures That's a great point about showing where the money is going. Never though about it. I can't really speak much to the matter of starting/running a business at all tbh, as I'm relatively new to the IT industry and still learning. That's why I really appreciate that you shared not just technical content, but also business/people content :) One thing I really like about running a bussines with friends/family is that there is already an established trust and rapport, and that will probably take you pretty far. Right now, I'm working in the property management sector as a SWE. Kinda close to your area/industry. We use a LAMP stack. Kinda old but solid. And we use TypeScript/Angular for FE. We have a lot of economists and property mangers we work with on a daily basis. I definitely need more time to wrap my head around the bussines side of things. Thanks for your thoughts again! Great video :D
You hit the nail on the head, with family - and friends to some extent - you certainly have a level of trust that will take time to build with any new co-founder. I think that is awesome that you are new to IT. This can only be a good thing, because say in my case, I was an ex-banker, and it is the industry experience that I have that helps me approach tech projects/business differently. This will likely be a big advantage for you too. Keep up the good work! Thanks again for the comment.
why you deleted your video about hosting I was about to host my Astro website by following it.| and please make a video on how to deploy a web app with database. please make something on it too.
Hi @prashlovessamosa, the audio wasnt good so I will re-upload by the weekend. Thanks fro your patience.