ThePrimeagen On Running Linux
Вставка
- Опубліковано 28 січ 2024
- ThePrimeagen makes use of a Linux box that he runs directly and a Windows capture PC but why even bother with Linux in the first place, what is he trying to get out of it
Full Episode: • #204 Vim Is The Only R...
==========Support The Channel==========
► Patreon: / brodierobertson
► Paypal: www.paypal.me/BrodieRobertson...
► Amazon USA: amzn.to/3d5gykF
► Other Methods: cointr.ee/brodierobertson
==========Guest Links==========
UA-cam 1: / @theprimeagen
UA-cam 2: / @theprimetimeagen
UA-cam 3: / @thevimeagen
Twitter: / theprimeagen
Twitch: / theprimeagen
=========Audio Release=========
🎵 RSS: anchor.fm/s/149fd51c/podcast/rss
🎵 Apple Podcast: podcasts.apple.com/us/podcast...
🎵 Spotify: open.spotify.com/show/3IfFpfz...
🎵 Google Podcast: www.google.com/podcasts?feed=...
=========Video Platforms==========
🎥 LBRY: odysee.com/@TechOverTea:3
==========Social Media==========
🎤 Discord: brodierobertson.xyz/discord
🐦 Twitter: / techoverteashow
📷 Instagram: / techovertea
🌐 Mastodon: brodierobertson.xyz/mastodon
#Linux #Vim #Programming #OpenSource #FOSS
DISCLOSURE: Wherever possible I use referral links, which means if you click one of the links in this video or description and make a purchase we may receive a small commission or other compensation.
I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and related sites.
🎵 Intro Music
Aces High by Kevin MacLeod
Link: incompetech.filmmusic.io/song...
License: creativecommons.org/licenses/b... - Розваги
Basically, the operating system should get out of the way. This is what Linus Torvalds himself says.
yeah but linus torvalds never developed an operating system
@@shallex5744and???
OS is literally the thing that matters the least. It is for package manager, and a good wiki/forum for oopsie daisy situations.
@@shallex5744yeah, but he manages the development of The Kernel and also makes a huge impact on OS development community
@@shallex5744 And?
Biggest crossover of our generation
Not really. Prime has not much to do with linux. Is your window manager on its default config?
@@jonbikaku6133 mine? i3? no, i changed alot of stuff
“It is a thrown together mess that just happens to work”. Perfectly describes my installed gnome extensions
it describes my life
Primeagen is reinventing a faster and more streamlined version of Emacs. I can't wait for the full release of Primamacs.
I think the benefit of his approach is that the skills, tools, and environment you learn with neovim and linux is applicable outside of neovim and linux. Vim bindings exist everywhere and unix is everywhere. Emacs on the other hand is restricted to emacs and lisp.
@@hamm8934 That's exactly why I use Evil Mode in Emacs.
I also don't want my Pinky to look like this: elijah.mirecki.com/images/misc/emacs-pinky.png
I use both Vim and Emacs fwiw, Emacs can do things Vim can't, but like it said, Vim is everywhere, and way faster.
That is quite literally the primary reason I can't use Emacs - that it's slow and clunky. I hope he succeeds.
actually, the emacs keybinding its by default on linux terminals, like ctrl , ctlr e etc..
@@kevs3913 Except for a few like Ctrl+C
I like Vim key bindings better because they are faster and don't require so much stretching. It's also like a mini programming language if you take it far enough.
Prime nailed the whole reason I use i3 as well - I love how quickly I can just jump to exactly the thing I want to be at. There's never the question of "Oh, where is that window again?" because the answer is "It's exactly where I decided that thing should live" and "I can get there with one combo". Even on the worst kinds of days, I can use rofi to find any window that has somehow gone missing.
Using linuxfromscratch as a daily driver is nutz.
I remember the days when I used to compile freebsd software with ports. I think back upon that, and I think that is so time wasteful. I used to compile my own kernel, jre, and also compile my own apache server on a 2009 computer hardware. That would take about 4 days of compiling. Absolutely nutz.
Prime is an inspiration for getting stuff done! Also, Tom is a genius.
Best Shortcut To Start Using: ctrl + shift + A when opening a chrome tab you were on
this was a welcome suprise,
love prime and his takes
really glad to see theprimeagen on
I appreciate the LFS representation, and I wouldn't even disagree with you that it's a waste of time lol. I can also really get behind where ThePrimeagen is coming from and at the start of my Linux journey, I felt the same way. The difference between me and him is he's a much better dev while I fell into the Linux rabbit hole.
I run Arch, it's already a waste of time, but it's a waste of time I can balance out with videos, LFS is way too far down the rabbit hole for me but I have respect for people who manage to use it
@@TechOverTea I used an LFS system I built for a few months in 2020, at the end I realized I had just turned it into an Arch system with more maintenance requirements. So I just switched back to Arch.
Any time you enjoy wasting is not wasted. LFS is a learning exercise, never done it. But I get it.
The main takeaway I'm getting is that unless it's for content, trying to sort out your distro cuts into your schedule and time to produce videos which are your livelihood. I'm lucky enough where YT is just my hobby while I have another job, so I'm free to mess around with my distro as much as I want as there isn't an opportunity cost.
This one blew up. Congratulations, Brodie.
The Primeagen effect
Lol the pop OS window manager was the main reason I switched too
wezterm mentioned let's go
I kinda get where prime comes from, mainly using linux as well because it is the best tool for my developing workflow and I even have written a similar script to quickly open projects in nvim
win shift enter, project name and I'm there
But I like customizing my linux install beyond functionality as well
I had the chance to use fedora as a workstation on one sysadmin job and I was quite happy with it. KVM so I can host my own performant mini-lab, zooming terminals, better commandline tooling ecosystem out of the box (grep vs findstr etc).
@@KucheKlizma I have yet to try fedora, somehow I always ended up for something arch based as it was the most stable
I really need to learn how to use tmux effectively. My solution so far is to alias things to directories that I go to often. So like cdw goes to work, cds goes to scratch, cdp goes to my personal projects, etc. This has worked okay, but it does become a pain when dealing with files that are across different directories and having to constantly jump there instead of having multiple tmux terminals open at a time.
I was definitely not expecting this one!
To be honest, I didn't either
I just use KDE because it does everything out of the box and then some, it's easy to configure 100's of shortcut keys for it, and I generally don't have to do anything to get it working and keep it working. One of these days, maybe after I retire, I'll have the time to sit down and try doing LFS.
I switched to Linux, because I found unable to force myself to continue using Windows. However I'm still fascinated by all the computer human interactions that are possible with window managers. (workspaces, window rules, vertical bars, hiding title bars, user customizable keybinds for everything & to a lesser extent tiling)
I don't think I could go back, even if Microsoft decided to fix everything I had a problem with.
So yeah, I think wanting a good WM is a decent enough reason already..
I havent used linux in a long time (just no need). but lets say, um, 10 years ago it was still utter shit. :D Luckily under win there are few tools that save the day. At least I can make win look mostly like win95. Clean :D better tell the name of these guise who animate everything. IM LOOKING AT YOU, BROWSER DEVS. Like wtf, fade- animated status-bar-replacement-tooltip? YOU MFing cnts! Faded menus? WTF? I have to dig into a bit, if these can be some way hacked away with user.css or smth.
@@v2ike6udik Yep I mean the last time I tried linux I had a hell of a time getting a proper US-intl keyboard layout to work. Linux can't even figure out _keyboard layouts._ And of course I had issues with the wifi dongle despite taking care to buy one that was supposed to be linux-compatible. It's just like it was 20 years ago with softmodems.
@@isodoubIet Was this 20 years ago? Because today k layouts are either easy, because you know what you are doing, or it's easy because you are using KDE/Gnome/Cinnamon and you just select the one you have from a VERY long list.
@@conjurermast No, it was around 2015 or so. I had to fiddle with some weird undocumented settings in gnome, and use a layout I found on some random guy's github. US Intl (a proper useful version of one) was not on the list.
I saw Brodie’s shit eating grin after Prime said he was switching and thought he was going to say hyprland
🤣
He said Wayland.
ThePrimeagen is a very focused individual. So he will build a system which is efficient and quick!!!!! Bravo!
That's part of how he stays focused. When I first started learning to navigate on mac my focus was unspeakably bad because I was constantly distracted by navigation not doing what I wanted. The more it becomes a reflex, the better.
for managing tabs I now use the tabOS extension, it's far from perfect but allows me to keep chrome clean for the first time
For anyone interested, there are plenty window managers for macOS. Amethyst probably being the closest to something like i3 or awesomewm. There's also ones like Rectangle if all you're really trying to achieve is grid layouts or snapping and want to avoid the need for writing your own configs.
yabai + skhd is pretty good
It's not as good though.
I've tried WM on macOS but all the but many mac apps have fixed layouts (settings app etc..) you can't remove the annoying title-bars, nothing feel like it's streamlined tons of visual artifacts, the whole DE is running in the background wasting resources. It feels like a mess and I dislike it. Persoanlly I like the idea of only having the software I'm actually using running, keeping it simple, no settings panels etc, simple + clean config files, on my linux. However, take this will a grain of salt as I've only had around 20-30 hours on the macOS side as it was my friends computer, and I've never actually used any other operating systems other than BSD's and GNU/Linux.
@@stugeh agreed but it gets the job done for me as I have to use mac for work, of course they will never be as good as my sway config
I don't have such browser tab management issue. I just close whatever I'm done with immediately. If I will need it again, there is absolutely no problem to find it in 10s. Either through url autocomplete or history search.
there's also ctrl+shift+A on chrome, can quickly find any tab
I hate screen tearing so much. That's the thing that made me go back to windows back in the days. Now with wayland it feels much better
lmao I sincerely have compassion with him on that screen tearing on i3. It actually quite recently made me switch to sway, which is a good experience for the most part, but now I suddenly have issues with my second hidpi display randomly blinking black now and again, which is honestly a worse experience than screen tearing sometimes, I think, I'm not sure yet. Screen tearing is gone though and scaling feels so much better on wayland, makes using a hidpi display more comfortable.
I have a dual boot setup with Fedora for all my programming work and Windows for everything else. My Linux set up is also super bare bones running vanilla GNOME and the default window manager.
super bare bones and GNOME in the same sentence kekw
Why not just use wsl?
@@askeladden450 Fewer unhelpful abstraction layers, holistic integration with the entire system instead of a bolted-on shim, lower memory and power requirements, better system stability and over months and years of use, better printer support (yeah, kinda weird, but it’s a real thing), better community, more learning opportunities, and more room for optimization and customization if that’s what you think you’ll like someday. And that’s just from a beginner’s perspective. It keeps getting better.
@@askeladden450 Because you are still using windows. And also wsl sucks compared to real linux.
@@oredaze but if they are just using it for programming and dont even bother to customize the workflow, which is one of the biggest selling point of linux window managers, then i dont really see the point of going through the inconvenience of a dual boot setup.
I've used all the popular window managers and I think my favorite was bspwm and skhxd on Linux. Got a Mac recently. Learned about Yabai + skhd which basically mirrors bspwm + skhd. Now, I can do basically everything in Mac that I loved about Linux, with nearly the same configuration so the transition is pretty much seamless.
yeah Brodie, you're in right path, more devs story please. especially for linux.
In chrome based browsers there this search opened tabs menu with ctrl + shift + a (by default), so it is possible to fuzzy search already opened tabs, idk just a suggestion for those who struggle with browser too (and don't use vieb)
Linux fulfilled my dream UI that I could not achieve on Windows - full screen for each window, 20 workspaces accessed by shortcuts. No title bars, menu bars, status bars, animations.
XMonad.Layout.Groups.Wmii was best experience. For Wayland I've patched a bit Sway.
I'm running Fedora with Xmonad on my work pc, Garuda KDE with Krohnkite on my gaming pc.
I recommend both, but Xmonad requires more configuring and tinkering.
nice talks enjoyed it
For macOS users:
I'm using yabai in stack mode, to keep a single app on the front, can also enable transparency on select apps. I use karabiner-elements to get to the app that I want with a single keymap, also set up tmux. Basically replicated Prime's dev workflow, but for macOS. It's all in my dotfiles, I even created some videos to set macOS up
ua-cam.com/video/IRL-ueXXnWM/v-deo.html
yabai is great
i use mac at work, linux at home, and yabai replicates my linux workflow pretty great, apart from the fact that i need to disable SIP to be able to switch between desktops with custom shortcuts (i don't care about transparency) and i can't do it on my work mac
one of the main issues is the active window indication so the best way for me was to turn on the option like "mouse on active window" and make the cursor T H I C C cuz i (almost) don't use it anyway
macos for me is like linux that works
i enjoy doing weird shit with my system, but when i need it to work, i want it to work
@@ser_igel I feel the same way about macOS, I love linux, but I love to run it on servers, Debian is stable as a rock, so that's why I use in all my linux servers. But when it comes to personal usage, I prefer macOS, being unix based, I can do basically all the things I could with a linux box, with the added benefit, that I know is never going to break, and I've never have to dealt with drivers or hardware compatibility issues.
Yabai is a key player here, so if someone comes from advanced Linux window managers, they definitely need to try Yabai, the rest of macOS window managers are not as feature rich and customizable.
I'm not saying that Linux breaks, but I don't want to through the process of figuring stuff out in the extremely rare event that it does. I Hate Windows though, unless it's running Debian or a Linux distro in WSL so I can get my Alacritty, tmux and neovim setup, but still, don't use it unless I strictly have no choice.
@@linkarzu Linux definitely breaks
Vivaldi (not open source, I know, I know) has helped me a lot with this "too many tabs" issue. You can ctrl+e and type the title of what you're searching for. That and the Workspaces feature are working like a charm to me.
@ThePrimeTimeagen, Sway is nice but not fun adding 4 flags to every electron app if you want it to open vs just clicking on it in the launcher :/ went back to i3 so apps opened without having to mess with them. If there are some Sway defaults fix for this I'd love to know.
Man, very refreshing. Please more people that "just know enough to get by". This is what gets people into casual use and spinning up. Not elite stuff, not flexing for no reason. THIS. RIGHT HERE.
brilliant. Love prime and cool seeing him talk with linux people
My only annoyance during the 8 years, I used Linux, was external monitors. Though I learned to work with one screen and be productive af with it.
I used to use Linux for WM too. Then I recently moved to windows + wsl and glazewm
swaywm + vim motions + foot terminal and neovim, my only work tools that i need
7:08 "20 or 30 tabs open"
/cries in 900 tabs
laghs in max 7 tabs
20 or 30 tabs? Those are rookie numbers
900? I've yet to break 200, I bow to your superiority
but y tho
that thumbnail is something
You don't know how many choices I could have made for his face, this man is a thumbnail machine
for the tab issue I use Workona!
Brodie uses Arch, btw
Ooo, a dual pc recording system! Super smart.. though yea capture card with linux lol. Would it work better under a Wayland session?
what's the software on the left in the thumbail?
I recently moved to pop os and am working on having my system work the same way, this makes total sense to me and windows is terrible at it.
Yabai is great for mac for a window manager
For the tabs on browser(firefox), searching the open tabs using "%" in the address bar is pretty good.
Thank you, I need to check out this one!
Really want to install arch in my laptop but my internet is just so damn slow.
Don't say "I haven't learned Linux".
You don't learn Linux.
You use Linux.
Every day.
I disagree, you can use and learn Linux, it works in different ways than Windows and Mac and you have to learn them too.
Just like a uni, bi and tri cycle work different but do the same thing and are very different to learn.
You use them but you learn them first. You aren't born with operating system user experience design baked in!
I mean...I learned Linux, deeply on a systems level
So yes, you *can* learn linux, you can also choose *not to* learn linux
Why isn't this on Spotify or apple podcasts yet?
07:28 i use one desktop/workspace for each 'theme' (work, study, fun, randon, etc) then i open 1 browser window por topic (1 per search topic, 1 per consulting documentation, 1 for youtube, etc) with all the tabs related with that theme in it ....
that consumes a lot of ram, in this workspace alone i have 15 browser windows, i might have hundreds of tabs idk, so, its a good system ? no, but worked for me for years since i'm used to be anxious and cluttered :}
I did a Gentoo install and several Arch installs.
I just use endeavourOS for my ThinkPad now cause AUR and all that good stuff, great mobile computing platform. I do like Debian as a base for docker containers or VMs that I don't really intend to upgrade often. I have a home server running AlmaLinux cause it's RHEL compatible but that's it. My PC still runs Windows cause it's too weak to justify running Linux with Windows VM, and I do sadly still need Windows from time to time, otherwise I'd probably run endeavourOS or maybe nixOS.
Have you tried yabai for window manager on osx? It's very fast and customizable. Really resembles linux
I know someone who had some good experiences with it
gonna say, macos window managers have actually matured quite a bit. I use Amethyst and it gets the job done for me. Though I think there are more customizable ones. But man is i3 so good though. actually making me wanna switch to linux full time.
Might just go sway or hyprland at this point
I really enjoy amethyst. For jumping straight from app to app without having to spam cmd+tab, Alfred workflows are great.
Sway, hyprlnd is for anime kitties,
I tried amethyst but windows don't shrink to the size properly
@@duartedias271 yeah, and certain applications are glitchy too. I think it's because you don't need to give special permission like the other window managers do. So a lot of the time i'm resetting amethyst (depending on the application) and usually stick to 3 layouts to get work done. Works for me though, haven't bothered to tryout any other one currently. you got any suggestions?
Debian with kde works wonders for me, is like low maintenance, fast, boring, good workflow and reliable.
Linux search is so fast!
Switched to Linux in 2019 and it really helped me become a better developer, but as some one that is forced to use Windows/MacOS for developing Linux software its a real pain.
but at least Windows have WSL and that is 100% better then MacOS.
Wow making it big
Please have Kenny from Mental Outlaw on the podcast!
I like the toolchain. I'm perfectly fine running windows with WSL. Just switched to Ubuntu for full time development. Only because it seemed easier to use native linux pathing with vim rather than WSL to windows for my specific needs.
On the tabs while researching I will open new windows for new topics. Then I can just close a window when I'm done
Funny that he talks about audio issues when the audio and video are out of sync
I completely agree with him though. Would be great if more people on Linux had that mentality
Yabai on macOS works well enough and makes the macOS window manager not suck.
Ever change ownership in Windows? Feels like MS doesn't understand Windows.
Linux + Toolbx (Toolbox) + VirtMan & KVM (passthrough) = I pretty much got it all.
Good vid.
I use Linux and macOS on my main machines (and Windows on gaming and extra machines). I totally get his "needs to be Unix" position! I can't imagine working from Windows! As for preference, I'm totally with him on i3 or a WM that follows that style of "workspace means function". I prefer macOS overall for its stability and UI consistency, and I've tried multiple ways of setting up the same experience on macOS. Yabai is nice but not perfect, but I'd recommend it (along with skhd and maybe sketchybar) for those interested in that kind of workflow… :)
Thought it was a primeagen react for a bit
I was also skeptical about Go's error handling since I was so used to TypeScript. Six months later, coding in Go almost day, I now love it and I dislike the JS way.
they must be streaming on linux how out of sync the audio is
is LFS a waste of time? I've thinking about that or set up arch on my personal machine but now I'm conflicted
What is the app on the thumbnail?
From what I can tell, it's a Hyprland rice which you can find on the official Hyprland website in the Hall of Fame
Yeap, using a Mac for work and windows for gaming and all I ever want from both is i3....
To get things straight, are you using PopOS with i3?
And packages from the AUR?🤔
yes
Learning linux is really helpful to understand computers and computer history
What window manager is Prime using?
i3
tmux-sessionizer is dope
Mr Prime just exudes pure logic, love it.
Pop OS let’s go
I ran Gentoo for 2 years (no longer do), I wouldn't say it isn't worth it. It's the same type of thing as saying linux isn't worth it, it depends what you do or need. Gentoo is worth it for learning, or customization, like custom initramfs, custom encryption setup, custom kernel etc. if it isn't your thing it means it isn't worth it *for you,* not that it has zero worth altogether.
Keep the PERSONAL in PC, and switch to Linux today!
Vivaldi worspaces, Magic is what that is.
Bro got the arcteryx
07:42 you can use ctrl L to select the address bar without creating a new tab
or ALT+D does same thing with one hand
@@bobmcbob4399 damn nice, though you could use left control if you have it
My man just wants to work lol
Mac has Yabai, it won't ever reach Linux levels (and it's annoying to configure properly), but it is surprising to me that it is as usable as it is.
I used Linux before I switched to Windows + WSL. It's great.
7:39 HUH?
firefox has a button for tab search
20, 30 tabs... I just check, i had 16K tabs "open" :D
4070 for roblox. The Chadagen
Not sure if that happened to anyone else, but I would just run an update on Linux, and some random feature would just break. I never had that on Windows.
I've had it happen but definitely 100x more on linux. Definitely a major pain to just lose wifi/modem drivers when you do an update lmao. SOL if those aren't on-hand.
Trouble with Windows, aside from all the technical things, is that it has become an advertising system with a GUI shell bolted on.
Primeagen is closer to my view on linux. I also run pop os and run my dev tools in the way i want to.
That's interesting. Linux dude he be.
I came here and say Silverblue and any ImageBased Read-Only distro is a game changer, and has allowed me to leave windows forever
20 or 30 tabs... that's _adorable._
I have so many tabs open that Akamai banned my IP addresses twice. They thought its a web scraper. I have at least 100-200 tabs open at once (just for one computer). I have a 40 computer laboratory, and then some VMs running on the servers.
I verified that I was blacklisted by looking up all those blacklist database like you find in snort and sorbs (and other security firewall and intrusion detection programs).
It was funny and scary at the same time! I couldn't get at my own web sites.
P.S. I moved all my websites off cloudflare and akamai. They have a hidden agenda to create a internet membership. People are going to eventually have to pay to get their IPs unblocked. I think I witnessed the testing bed. I used to be a U.S.P.S. intrusion detection guy. It came full circle. If you run wget or anything downloader to get files, then they're looking at you. It made me get more involved with selenium again. I don't webscrape, but it made me aware of how akamai and cloudflare work and mis-diagnose their problems.
I use i3wm because tmux can't show FireFox Dev Ed to my knowledge.
That's a large part for me as well - Linux lets me use a completely distraction free UI, while Windows is Windows and Mac OS' window management system is still like 20 years behind the rest of the world in terms of basic functionality.
no idea wtf you are on about, window managers and customization of UI exists on windows as well. including hotkeys for certain applications. has it been 20 years you have used windows? lmao
i definitely think windows' window manager is very polished although i prefer wms on linux since theyre so much more customizable
@@PsycosisIncarnated i have used that and it always work terribly. They do this by hacking system32 files and something is always broken. It's a bad hack.
macOS is basically on par with a fresh install of Fedora and Gnome in terms of functionality? Don’t know what you’re talking about. Only thing I can think of is snapping by dragging to edges which you can install in 1 minute. Everything else is basically the same? Curious what people are referring to.
@@notuxnobux theres some software that acts as a window manager without having to resort to such hacks but i forgot the fckin name… you use keybindings to move the windows around but ofcourse its not as good as i3wm or sway for example. But i mean “distraction free UI”, wtf does that even mean? Just hide the taskbar, maximize your screen, and just alt tab between applications. I also find windows Window management much better than macOS despite all the cool touchpad mechanics.