How to Install DWM on Arch Linux - Minimal with No Bloat! Dynamic Window Manager
ฝัง
- เผยแพร่เมื่อ 25 ก.ค. 2024
- Install DWM on the Minimal/Base install of Arch Linux. This won't contain any of the Bloat that a standard Linux Desktop comes with. Install the Dynamic Window Manger without the Bloat today! Run through all the steps to get DWM running on your Arch Linux machine. Then start customizing your Arch Linux desktop environment and creating a great user experience. Arch Linux tailored to your own needs.
Dynamic Window Manager (DWM) minimalist tiling window manager for the X Window System and is created using C programming. It has all the tools of a powerful window manager, but is very simplistic, as well as, lightweight. It's very easy to install, as well as, configure using the patches on the suckless website. Start customizing your desktop today with DWM and experience a minimal yet powerful window manager today.
My Linux Cheat Sheet and 25 Page Checklist here:
📚 learn.savvynik.com
Share this free tool and support Small TH-camrs
editbulk.com
(I made this tool to help creators)
Want more info/content?
savvynik.com
Useful Links/Commands:
Discord Link - / discord
DWM Website - dwm.suckless.org/
Ubuntu Website - Ubuntu.com
sudo apt remove gdm3
git clone git.suckless.org/dwm
sudo make clean install
Packages Needed -
sudo apt install xorg stterm suckless-tools build-essential libx11-dev libxinerama-dev libxft-dev git vim libwebkit2gtk-4.0-dev
Credits:
Penguin BG - unsplash.com/@evanescentlight
Ian Parker on Unsplash
#linux #dwm #install - วิทยาศาสตร์และเทคโนโลยี
When using pacman please use pacman -Syu intead of pacman -Sy - thanks for bringing it to my attention @Sandborn
use ctrl l to clear screen
your shit anit working cuz another wm is running on kde
@@marcels.7074 it doesn't clear the terminal but scrolls down your terminal. Clear command clears everything.
yes babe, you so good babe
You explained it very simply and concisely. Thanks!
Glad you found it helpful! You're welcome. Make sure to smash that like button for me if you haven't already =)
thanks for the beautiful tutorial, finally got myself a working dwm :D
Nice work!
This video was incredibly helpful for a newbie like myself. Before this video I had tried installing dwm in the past following other guides and kept getting stuck but this was the first time that I was actually successful in installing dwm. Tysfm!
You're welcome! Glad you found the video helpful :)
I have a question: can you install dwm while the setup of Arch Linux ?
Liked and subscribed, of course! Thanks! 😊
You explained it very simply. Thanks!
Glad you liked it!
Such a good video super simple and easy to understand for a noob like me. Liked and subbed
Thanks for the sub! Glad you liked the video.
Great video for getting started with DWM and ST! Looking forward to watching your other content.
Thanks Chris! Glad to have you following.
How are all of your videos this good? Thanks man
You're welcome!! I'm glad you find the videos helpful and thanks for the kind remark.
WHAT THE MAIN LINUX TH-camRS DONT WANT YOU TO KNOW.
clean video thank you
haha glad you enjoyed it.
No fluff, here is what is needed to run dwm. Thanks!
You're welcome, glad you liked it.
Long time casual Ubuntu user here wanting to try something different. Your guides on setting up Arch Linux are amazing.
Awesome to hear!! Good luck exploring and thanks for the kind remarks =)
those transitions into the like button pressing is amazing
😂 haha
Install didn't work, followed the tutorial but after logging in I did not boot into dwm. Any ideas to fix? After running dwm it tells me there is no locale support...
Update: No longer told ther is a locale issue, but dwm still does not open on boot or command.
Thanks man, great tutorial..
You're welcome!
Great! I've spent the whole week trying to get to this. it didn't work at first so I installed xorg in full then it worked. Though I need to fix my resolution but that's another issue
Congrats on that! You could probably fix your resolution through graphics drivers if you install them or use a package called xrandr :)
@@SavvyNik yeah I tried xrandr but found it couldn't find display gama. So I googled and tried to configure my xorg.conf with nvidia but now starx crashes. And the error log says it can't load kernel module
@@neonpecker7183 yikes sounds like you are having fun lol. Well good luck. Could be a lot of things hard to suggest anything. It's all about trial and error at this point haha
great tutorial bro!!
You're welcome! Glad you found it helpful. Make sure to smash that like button for me
lol I watched the video before the notification, It popped up in my feed :)
btw Savvy I love your editing
:o haha on top of it Ramit!!
😋
The Notification just popped...
@@ramitisking haha I messed up the first version so had to reupload >
Very helpful
Sooo I think I did everything correctly, everything installed without issue but it doesn't work at reboot or sign out and when I run dwm manually it says dwm: cannot open display, any ideas?
so at the bash_profile point, in the .bash_profile i have nothing. So should i just type startx and do colon x?
Why did you replace the shell /bin/sh with the terminal app /use/local/bin/st in config.h??
I did everything you said, and I don’t have a window manager, when I sign in.
Hey, i had one issue with this. When i relog an error pops. It says:
Failed to enable I/O ports 0000-03ff(operation not permitted)
Great video, really helped me install dwm! But i have 1 small issue with it, putting 'startx' in your .bashrc file make terminals bug out, because they try to startx everytime they're opened, but other than that, i really appreciate the video and your work!
You're welcome, glad you found it helpful. Makes sure to smash that like button for me if you haven't already. Try moving the command to .bashprofile instead.
The arch wiki has a basic script you can copy into your bashrc that makes dwm auto start when you log on to tty1
omfg thx man
I keep getting this error:
"xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error"
Good tutorial! Coming from i3 I was using the i3 binary and was confused as hell looking for the config.h file after downloading the dwm binary lol.
Glad it helped!
Why are the required packages not listed in the readme?
Love it
this really save me bro
So clear, thk u! Btw why the startx in bash_profile?
That helps startup the x server so you can render dwm.
When editing dwm config.h…. Changing the bash to bin/st… you don’t have to remove the # at the beginning of the line? Thank you!
don't remove it :)
Yessss i made it 😁
Lets gooo
when i enter "startx" into the command line i receive errors for /etc/X11/xinit/xinitrc on line 55, 52, 52 and 51 saying "command not found" for xterm, xclock, xterm and twm respectively. Can anyone provide some insight into this.
[UPDATE]: by "pacman -Sy xterm" i could run DWM. however I'm pretty sure xclock and twm are not working as I'm missing the workspace task bar
@@georgejohnson964 when I install dwm I cp the xinitrc from /etc/X11/xinit/xinitrc to my home directory as .xinitrc (this way my users xinitrc is used) and delete the last lines with twc and xterm or whatever and replace it with exec dwm. Then everything works for me. If you have all that and it still doesn't work it might be worth asking in some forum
THANK YOU SO MUCH !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You're welcome! Glad you found the video helpful. Make sure to smash that like button for me =)
I cannot open the terminal
Wow I learned how to actually use vim !
If you have KDE already on arch, will the process be the same?
similar but this is meant for a system that doesn't have anything on it yet.
Hey there, thanks a lot for creating this video. I'm running into some issues though. When I login as my user I get multiple warnings about "Could not resolve keysym …".
At the end the output shows waiting for X server to shut down (II) Server terminated successfully…
dwm never starts, and I don't know where to look for more information.
Any idea on how to proceed?
Are you doing startx anywhere and did you make sure to install the startx package?
Same but says something about i3
Can I have both KDE DE and DWM? And choose between them at startup?
Yup! Okay, so I'm assuming you have lightdm or some other dm installed already. Just install dwm, write a script (you'll get that in the archwiki I guess), add a .desktop file for dwm (you'll find plenty of tutorials for that too) in the xsessions folder in the /usr/share/. Make sure you add the location for the script file in the .desktop file and you are ready to go! You can choose between KDE and dwm in the login manager/greeter. Please feel free to correct me if I'm wrong anywhere.
@@suchitg9115 i've never done that myself, but i do know it is the way
Everything went well, but how can I change the terminal font
If you want to change the console font here's a video - th-cam.com/video/nxUTnZVdS64/w-d-xo.html
tip: you can also use the "startx" command if you accidentally exit dwm
I have a desktop environment installed (xfce4) using lxde and xorg how would i uninstall them?
usually you can get rid of the packages you installed by pacman -R
@@SavvyNik I tried doing that corrupted my install so just reinstalled, didn't lose any files as I downloaded it tday
Yeah figures.. the DE's are really involved with dependencies... glad you got things working tho
thank you
You're welcome!
Thanks!
No problem! Glad you found it helpful. Make sure to smash that like button for me if you haven't already =)
@@SavvyNik already did , but thanks again I am using artix and for some reason no other tutorial would work
Wooot!
Thx
Hey man,
I really enjoy your videos, but after asking us to hit the like button for the third time it becomes a little annoying.
I personally clicked it before you even asked :D
Keep it up man!
Thanks for the feedback. I've made adjustments in my latest vids.
How can I change my font size in st like you did?
ctrl ++ ? there's some keybinding you can look up
@@SavvyNik Thank you for responding, but I already figured it out. I had to use ctrl+shift+pageup/pagedown
when startx is written in the .bash_profile make sure if the file is empty to type bash into the command line before editing the file (this generates the file so it works) it fixes the issue where when you login dwm doesn’t auto start
Thanks for sharing
You have to do cd ../ in order to go back to the root / '~' directory. I followed the same tutorial three times and was started to get pissed that it wasn't working until I noticed that that was the one thing that he didn't mention before going into the .bash_profile.
how i can move the terminal around
Not sure what you mean the terminal console is exclusively meant for keyboard navigation
hey - noob normie question here. how do you zoom at the font (9:55) in the video shown? pressing ctrl + (+/-) seems to not work.
To make the console font bigger follow this tutorial th-cam.com/video/QMVtaKSlrc8/w-d-xo.html
@@SavvyNik thanks! :D
What hotkeys did you use to resize the fonts?
ctrl+alt and ++ I think.. can't remember anymore
@@SavvyNik Woah, thank you for replying.
2:35 I used -Sy idk whether for that or not but I had to use sudo in 2:35
At the 6:25 mark I can't get sudo make clean install to work. I'm on Arch Linux.
I get the make *** No rule to make target 'clean'. Stop.
Are you in the proper folder? That's telling you that it can't find anything to clean bc it can't find it in the makefile. You should be in the DWM folder that you cloned down.
Guys how do you remove/delete dwm,
I'm running gnome desktop on my arch linux
I did everything on your video and well. I cannot enter dwm hahah
Soo... Do you know how can I switch from gnome to dwm? Thanks :)
You might have to uninstall GNOME it's definitely not something simple that I could explain over the YT comments haha or have time to do. This is really meant for a fresh install of Arch.
@@SavvyNik I see
It's seems I will have to install arch again hahhahaha... oh boy
@@dxrbkn5145 haha well good luck either way!
you can just type "cd" with nothing else to get into your home directory btw
good mention ;)
it works if i run startx but i have to do it manually i think its to do with the bash file?
usually startx should be started by the xinitrc file. Locations can be $(HOME)/.xinitrc or /etc/X11/xinit/xinitrc
@@SavvyNik I fixed it I changed a different bash file and woallah it works
Great to hear! Congrats on the successful setup.
Wow a bloat free video as in whole...❤️
Glad you enjoyed it.
Startx is not working for me
Cant install pacman eroor of dependencies
That is one beautiful font you've got there! Which font is it?
I believe that was terminus font.
@@SavvyNik thank you!
I had no problems I stalling dwm, but I clicked this video because you're specifically using Arch, and I have no sound on dwm. Any ideas?
You need to install sound packages like alsa and pulse audio with Arch. It doesn't come with any of the packages that were installed in this video.
@@SavvyNik haha, halfway through reading through the docs for pulse I gave up thinking I was going in the wrong direction
@@penguinbloopers haha I guess you weren't too far off after all!
Unmute the Speaker with "amixer"
I don't know what I'm doing wrong but I can't get any window managers working. This one is no different.
Usually that has to do with the xserver not being started properly / the window manager itself. Running the commands startx and dwm in terminal should give you errors if there is something wrong.
@@SavvyNik yes, I am getting a couple of errors in relation to xinit, "xinit: giving up, xinit: connection to X server: Connection refused, and xinit: server error. Couldn't get a descriptor referring to the console."
I'm guessing from this I have to find the config file to tell it which terminal I'm using? I dunno, I'll work it out eventually.
@@SavvyNik Also, I really love your vids. They are really descriptive, straightforward and easy to follow. Thank you for your hard work.
@@nemonada3501 well good luck either way.
@@nemonada3501 Thanks for that. Means a lot =)
I installed this but now i cant log in on plasma after i type the password it freezes idk what im doing
DWM is a window manager. Plasma has its own window manager, KWin. You cannot use them both at the same time. You'll have to uninstall Plasma (sudo pacman -Rns plasma) and then DWM will work.
@@wlwww16 i made it work in the .xinitrc i exec dwm and not plasma and i have both can switch but of course you can use one at the time xD
@@Seiseary Oh I see, that's cool
@@wlwww16 but few things are broken probably not the right way to use it
what is the ram usage
It was like something stupid low.. 80-120MB?
@@SavvyNik very good👍
how to change the scale factor of terminal
Are you trying to change the font size? How to Change Linux Console Fonts on Arch Linux
th-cam.com/video/nxUTnZVdS64/w-d-xo.html
@@SavvyNik Yes, but i did changed it. actually from your video thanks.
Glad to hear it. Great work
which window manager does you used?
My latest WM is XMonad. Here it is in action - th-cam.com/video/rMoUCnqhYfs/w-d-xo.html
and then how to install it - th-cam.com/video/a8YJBGk8H4Q/w-d-xo.html
_FIRST!_ 😋
WOOOOOOT YUM
Yeah it just didn't give any errors but it won't work
This is the way the world will be saved lol XD
show me the way xD
@@SavvyNik You need to show us the way! I already have a patched up working conf up in my repo, we need to see YOUR rice!
yes 😋
@@atharvatimsina9314 Getting there slowly but surely haha
.bash_profile is an empty file
that's fine you might not have a bash profile yet, you can still create the file.
F.. installing it-- do a video for those of us that have NEVER SEEN IT and demo it's USE once it's installed!!!!!
Lit.
much lit
chriso 😋
ez clap
me about to click on the like button cause I liked the video.
SavvyNik: please make sure to like and bla bla...
me: naah, f# off, i'm not gonnna like anything.
Ok smash the dislike then ^^ sometimes people forget you don't get sour about it lol. It's not supposed to be personal.
Patch are bloated!
Lol yes patches are technically bloated!! But good luck with customization then haha
@@SavvyNik Just kidding, I use Awesome, I like features! hahaha 😝🌝
Great video btw :)
@@joaopauloalbq haha!! Awesome = Awesome :P
@@joaopauloalbq Appreciate it ^^
i made th is faarrt
Glad to smash that DISLIKE button for you ;)
but i suck
perfect tutorial, thanks. bash_profile with startx -- cruche
Glad you liked it!