 Hey everybody, welcome back to the channel today. I'm going to be talking about how to install DWM on Ubuntu and Pop OS now this process should be Perfectly similar between these two operating systems because Pop OS is just a derivative of Ubuntu So everything should be exactly the same. I'm going to be doing this on Pop OS So we're gonna see because I'm not actually done this on Pop OS before I've done it on Ubuntu a couple times So we're gonna this is going to be an experiment So let's jump over to my Pop OS install so the first thing we're going to want to do is open up a terminal and This is just known terminal and we'll zoom in here so that you can actually see it and make it bigger So the first thing we're going to want to do is install some dependencies so we're gonna want to make sure especially if you're using a headless version of Ubuntu of some kind you're gonna want to make sure you have a few packages installed So you're gonna want to do sudo app install And we want to build the essentials installed build That's essentials. You probably already have this This is just gonna basically install make and a few other things. We're gonna want to do lib x11-dev Okay, and we're gonna want to do lib Xenorama-dev and I believe share utils is actually depreciated no, it's still there good and then we're going to do lib Xft-dev and I believe that's it. We might be missing one. We're gonna find out because Depending on what tutorial you look at online. You'll find different dependencies. So we won't know until we make We make it for the first time whether or not Okay, so it's a bit of essentials is not available Because I probably spelled it wrong. Yep, that's because there's no s There's no s There we go We'll wait for the install shouldn't be too. It shouldn't take too very long Now what we're going to want to do is make a folder where we're gonna put everything So we're gonna want to want to do cd.config. Okay, and we're gonna make directory DW or actually we're gonna do is make directory suckless Because DWM is not gonna be the only suckless utility we install here So we're just gonna make directory suckless and then cd into that directory and Now we're gonna want a web browser open up Firefox your favorite web browser and navigate to suckless.org Or and we'll zoom in a bit here so you can actually see first one want DWM And we'll scroll down here until it gives us the Thing we need We just copy and paste this underneath development. Oops just control C and then control shift V Oh, you're gonna want to actually I'm sorry. We're not quite there yet We're gonna want to make sure we have a couple other things install sudo apt install get W get and curl Looks like those are already installed on this system. They may or may not be for you You just want to especially get you're gonna need to get for sure now we can control V Control shift V and clone that that's gonna take a minute Okay, and then the next thing we're gonna want to do is go back up over here and go to ST and Scroll down here to development again copy and paste copy this paste oh Yep, we're gonna want to make sure we're still in the suckless folder and paste that command Wait for that. So that's gonna be the terminal that is a dependency for DWM unless you've changed the code So like I've changed the code in mind to be termite But in this case, we're just gonna go ahead and use ST and Then the last thing we're gonna want to do is D menu. So we're gonna go to tools D menu and we'll copy and paste this right here Again, this is one of those things that you have to have in order to use DWM. So We'll Do that now we want to do go into CD DWM and We'll do an LS here. We got some stuff here. We have not made this yet. So we're gonna go ahead and make and make install this We'll see if we've gotten all the dependencies or not. So we do just to make It made fine. So pseudo make install and And work just fine, okay, and we're gonna CD into the st folder Okay, and we do another LS. We've got some stuff here. We do a make and a pseudo make install That may just fine so we're gonna CD into the DW or the D menu one D menu And we do an LS and again, we have a whole bunch of stuff here and we do make That may just fine and pseudo make install And again, that is done fine. Now, honestly, we're done All we have to do now is get to the point where we can actually Find DWM in the login manager and we do that by going to see we're just gonna CD into our home directory here Okay, and we're gonna want to Now if you like I said if you're on a headless directory, this is gonna or a headless installation of Ubuntu This is gonna be a little bit different because you're probably not gonna have this directory, but we're gonna CD into user So usr slash share slash X sessions Okay, now if you do not have that like which is probably only gonna be if you're running a headless version which means without a Desktop environment already installed if you already have a desktop environment already started you're gonna have this because you're gonna have a Login manager of some kind. So if we do it now last right here, we'll just see that right now All we have in there is the pop dot desktop. That's the only desktop environment That would be available to you upon logging if you didn't change it. So what we're gonna want to do is pseudo touch DWM desktop Okay, now if we do an LS, there's a DWM here and we want to Either Vim or nano into this if you've never used them. Just go ahead and use nano. I'm going to use them DWM desktop and actually you need to make sure you're using this is root for you root privileges So this is gonna make sure you pseudo Vim DWM desktop Now Vim is not actually installed on this system. I didn't even know that pseudo apt install them Yes, you can't why Vim is not installed by default. I mean, that's just travesty Anyway, so we can do pseudo Vim DWM desktop. Okay, now we're gonna want to type this exactly. So we're gonna want to do brackets oops Insert mode bracket desktop Make sure you spell this all right Entry I will paste this into the video description below So that you can just copy and paste this if you want I don't have copy and paste set up between this and the virtual machine The virtual machine and my regular machine. So I'm gonna type it out manually, which is fine The next thing I want to do is encoding coding Equals UTF dash eight Okay And the next thing I want to do is name equals DWM and yes, it's capitalized the ways, you know, it's supposed to be capitalized comment equals The dynamic Window Sure. Oops Okay, and then then you exec equals DWM Okay, and icon equals DWM and type equals X session and Then you're gonna want to make sure you put a space after the end of it Okay, whenever you're ready writing a configuration file from scratch always leave a space at the end because sometimes it needs it Sometimes it doesn't it's always just better to leave it there just in case. Okay, and I'm going to make sure I go It went through and and type all this correctly and coding ENCO DI and G UTF-8 Yep name DWM Comment equals yep exec yep icon Yep, and type X session. Yep. Okay, and then you're just gonna want to write and quit this. Okay now If we've done everything right, and I think we have we can close this and we can close this Thank You Firefox close and we can Log out and Log out here, which you and you should go back to your display manager and we You type we click on your name and down here. There's a little icon. You probably can't see it We just select the UWM instead of pop and to your password and BAM you have DWM now if you do No, remember the default key bindings are a little bit different. So I believe That alt shift enter will get you a terminal which it does and this is This is ST. I cannot zoom in actually I should be able to do that. I should be able to do shift page up Yeah, there we go Control shift page up is zoom in in ST. So as you can see this is ST, which we installed Alt and P will get you DWM or get you D menu so you can actually so if you want to watch Firefox You can watch Firefox in that way And it for whatever reason it installs or automatically opens up on tag 9 You can move it by doing Mod shift and one or alt shift in one now. We'll go to one. You got to remember now if you wanted to change your Key bindings so to close something it's alt shift and C okay So those alt shift C is to close alt P is Is D D D menu alt shift enter is a number another terminal so alt shift C Alt shift Q would get you out of DWM Completely, okay, it would just take you back to the log manager. All right I'm not gonna go through all the processes of changing those key bindings Maybe I'll do another tutorial on that someday But this is how you install DWM on Ubuntu and pop us. It's exactly the same on Ubuntu It's actually mostly the same on Arch as well The only difference is if you're on like an arch based distro, you will not have to install those dependencies They should be there automatically It will just be a matter of creating your suck list directory get coding all the three things we needed to clone Adding your X sessions file and logging out and logging back in that's literally it. Those are the differences So that's how you install DWM on Ubuntu and pop a West easy peasy, right? I can't even begin to tell you how Intimidating it felt the first time I tried and completely failed and honestly especially on Ubuntu with those three or four dependencies that you have to install Are probably the biggest hurdles anybody has it on Ubuntu because there's no instructions anywhere that are consistent There's just not yeah, it's really annoying because no matter what tutorial you find online They all have slightly different utilities and like that's as you that what was it called the SH are a are Utils may not be available on Ubuntu and you may not even need them What I will say is that um if you go through and make your DWM like I did here and you get an error it says Something's missing. It will give you the name of the file and you should just be able to install that via apt And if it's not the exact name just google whatever it comes up with and you should be able to find it just easily If you do have problems leave in the comments below You what problems you're having and I should be able to be able to walk you through how it differs from what I've done So thank you for watching Make sure you follow us on Facebook and Twitter of Twitter comm slash Linux cast Facebook comm slash Linux cast You know also support us on patreon at patreon.com slash Linux cast Again starting in March everyone will tier 2 and 3 will get early access to all of our videos and podcasts And on that note, I would like to thank Devon see and Marcus B for being our patrons Thanks fellas, and I'll see everybody else later. Thanks for watching. Stay safe