![The Rad Lectures](/img/default-banner.jpg)
- 11
- 108 630
The Rad Lectures
Thailand
Registrace 8. 08. 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!
zhlédnutí: 1 713
Video
Host Your Own Website Free
zhlédnutí 137Před měsícem
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.
zhlédnutí 91Před měsícem
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]
zhlédnutí 788Před měsícem
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]
zhlédnutí 4,2KPřed 3 měsíci
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
zhlédnutí 12KPřed 8 měsíci
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)
zhlédnutí 8KPřed 9 měsíci
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
zhlédnutí 1,4KPřed 9 měsíci
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)
zhlédnutí 79KPřed 10 měsíci
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
zhlédnutí 416Před rokem
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!
zhlédnutí 1,9KPřed 4 lety
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...
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.
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.
7:52 , Thank you so much!! I was trying to quit neovim for a month now
Keep up the great work man! I'm currently studying Web3 (Solidity, Go, Rust) Your "Neovim from Scratch" video kicked off my journey last year. Such a crazy coincidence that I'm setting up a new config for Web3 on NixOS today
Man, that's awesome. The new config sounds great. Nice job!
Great video! Very informative. Loved how you explained everything, giving us a foundation to build upon. Thank you! 😄
Rad, I started learn sql with postgre. it'll be helpful to know, with your configuration I use, how to add nvim-dbee, or another nvim plugin to manage database directly with tmux and nvim. thanks again
big fans, thanks again from senegal
went crazy because of "sourcing your config is not allowed with lazy" errors in 2024/6 with V10.0. After cloning the repository everything was fine, thanks for this great tutorial in the end. Newbie to NeoVim who has now learned a lot instead of just mindlessly copying configurations 👍 Your explanations really helped to make sense of the configuration next times. Thank you.🤗
Great to hear it. In a few months I'll do an updated video. Thanks for the feedback!
I had a problem during the ZDOTDIR config during the first steps so the zsh configuration keeps appearing and echo ZDOTDIR returns nothing
Please log out and back in again.
When I got into using neovim, I used to just copy youtubers' config files and use them, without knowing how they even worked. This is the first tutorial which I have followed, and created the files all by myself, and I have to say, I have learnt so much about neovim configuration. Thanks for this!
What's the difference between opensuse leap and tumbleweed?
Leap is intended to be more stable and works on a release schedule. Tumbleweed is rolling release like arch. There are other differences but this is the primary differentiator.
@@theradlectures thank you for taking your time answering my questions. Really appreciated.
What a great tutorial man, thanks so much!
This is fun cuz if you use vim you defenitly shouldn't need a tutorial to install it.
Terminal, terminal, terminal... :/
Wohoo! Glad to see a new vid Rad! I've been a fan since your Neovim config video :D I've actually done something similar. Started a new job in Feb and was forced to use Windows 11. Installed WSL2 together with Neovim, Zsh and Ubuntu 22.04 LTS. Most of my colleagues are using VSCode on Windows. They even use a programme called SourceTree to interact with git. A lot of them don't even know about git ... sigh Sorry for the rant. Glad to see you back :) Cheers! //Aquabbas
Aquabbas, thanks for the note brother, and your OG loyalty. Congrats on the new job, sounds like you may end up running the team!
5 Months 🙄
may I know your nvim font please? I really like it.
Great content.
Thank you so much! It is wonderful how in one tutorial video, I can get to do lsp from scratch.
please help
i have installed jdtls , mason is showing it but it is not showing ,
Great video, I definitely learnt a lot. I am facing a bit of an issue if someone could help out, both tmux and nvim works nicely seperately but if try running nvim with tmux it crashes with "server exited unexpectedly". Is anyone also facing this issue?
i cant belive i am nerd
Hello sir .. does it support for MERN stack ???
Hey what did you use to open new files in new buffers?
AHH, now I'm stuck at 1:50:00 where cmp_nvim_lsp isn't being recognized. is there any option for a direct contact with you so I could ask questions?
hey, at 1:28:00 i am unable to install python3.10-venv on ubuntu 23.10 [sudo] password for sebvu: Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package python3.10-venv E: Couldn't find any package by glob 'python3.10-venv' i don't really know what else to do from here, as i believe it's required to install black when i try installing black, this is my error. ▶ # [14/14] spawn: python3 failed with exit code 1 and signal 0.
can you please make a new one as your config are changed.
only 15 minutes into the video and this video already proves to be a very useful not only to nvim but to the linux cli in general <3
Duuuude! You are an angel. This is the walkthrough I needed. Thank you!! ❤