Installing Arch Linux Plus DTOS

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
today i'm going to be running through a base installation of arch linux inside a virtual machine and then i'm going to be installing dtos on top of that and the reason i'm doing this is because i need to actually test out dtos in a vanilla arch linux installation because i'm getting support requests about it so i've got vms of all kinds of arch based distributions right now arco manjaro garuda endeavor and because i have to be able to test out the dtos script on all of these distributions i don't have a arch linux virtual machine handy at the moment so what i'm going to do is i'm going to run through this quick installation inside virtualbox and then we're going to install dtos on top of that and see if it works so let me switch over to my desktop i've already got virtualbox open so let's go ahead and create this new virtual machine so i'm going to go to the menu click machine click new and then i'm going to title this virtual machine i'll call it arch linux dtos and then what i'm going to do is type as linux and version is arch linux that's correct so all i need to do is click next then we need to give it a certain amount of ram however much ram your host machine has give it a little bit of that ram so if you've got 16 gigs of ram in your host machine for example you can afford to give your virtual machine two four six gigs of ram whatever it is you want to give it i've got actually 64 gigs of ram in my host machine so i've got plenty of ram to give these vms i'll give it about six gigs which is more than enough for what we're doing today and then create a virtual disk now is actually ticked on by default and that's what we want because you need a virtual hard drive in your virtual machine if you're going to do an installation of an operating system and that's what we're doing today so click create and then the image type vdi is the default virtual box disk image that's what's ticked on i suggest leaving that as the default click next and then the hard drive do you want a dynamically allocated hard drive or do you want a fixed hard drive the dynamically allocated drive is the default that's what i suggest going with and then you get the next screen which you may or may not have this here this is uh the location of that dot vdi image file that it's going to create and then you have this slider down here where you can size your virtual machine so how big is this virtual machine going to be for arch linux by default in virtualbox it looks like it wants to create eight gigs for the size of the virtual machine i'm going to make this virtual machine 20 gigs in size just to give us plenty of room in case we install a whole bunch of software because i'm actually going to install a whole bunch of software because that's exactly what the dtos script does it installs a whole bunch of programs so i'm going to click create and that's it we created our arch linux dtos virtual machine now before we actually launch it and run it i do want to right click and go into settings and let's go ahead and change a few basic settings i'm going to go into the system tab and i'm going to go to processor i've got 24 threads on my processor and kind of like you can give part of your ram to the virtual machine you can give part of your processor to the virtual machine so i can give this however many threads my cpu i want i'm going to give it two threads of my 12 core 24 thread thread ripper more than enough for what we're doing in this vm then i'm going to click on display a video memory you can give it up to 128 megabytes of video memory i suggest just giving it the max of 128 megabytes it's not very much video memory and we need to go to storage and this is where you go ahead and attach the iso it's kind of like if you burned iso to a usb stick and you plugged it into the computer or you burned it to a cd and put it into an optical drive what i'm going to do is i'm going to go to controller ide i'm going to click on the little optical drive icon here and i'm going to click on add and it's going to go to my downloads directory i have several isos here and one of them is the latest arch linux iso for the month of november so i will click on that click choose and you see arch linux 2021 1101 so it added that so it's it's kind of like we plugged it in to an optical drive and when the computer boots up it's going to read the optical disk first it's kind of what's going on there for audio i'm just going to disable audio in this virtual machine because i won't be using audio for anything and by selecting a null audio driver it will prevent conflicts from the audio server on my host machine and the virtual machine because i'm actually recording right now so that's just something i do because i do these videos you guys don't have to do that other than that again because i do these videos i like having my virtual machines be clean meaning i don't want menus and status bars in them so i go to user interface and i turn off the menu system and i also turn off the bottom status bar again that's just for me because i'm recording the vm i just want a clean window then i'm going to click ok and now that we've got the virtual machine created and all the settings to where we want i'm going to go ahead and double click this vm and let's get this window out of the way we won't need that anymore and let's go ahead and boot directly into the live environment here in arch linux which is just going to be a tty a command prompt now also because i'm recording i'm going to go ahead and try to zoom in here so let me go ahead and switch to full screen here and there's a menu at the bottom here by the way ctrl f will get me into full screen and now i get this little menu that i can get to by taking the cursor all the way to the bottom of the screen if i go into view click on scaled mode and that will scale it to size of the monitor so that way you guys can actually read what i'm about to type here now i will warn you because this vm is strictly for me to have around so i can test out the dtos script i'm not going to cover everything in great detail i've done many detailed videos about how to install arch linux i'm going to run through this arch installation very quickly and i may skip some steps and i'm not going to follow the wiki at all i don't even have the wiki open right now so this is going to just be me doing me so let me go ahead and type fdisk dash l to get a list of our devices our drives because i'm not sure what they're going to be named it looks like our onedrive our virtual hard drive is called slash dev sda so now i'm going to do fdisk space slash dev slash sda and i've done a video how to use fdisk in the past check that out if you're confused about how to partition your drives using the fdisk command line tool and now that i've done the fdisk on slash dev sda i'm gonna type in for new partition it needs to be a primary partition so i'll type p and i'm gonna do a master boot record by the way so by default you only have a one through four partitions for master boot record you can do up to 128 partitions if you do uefi but in this vm it makes sense just to do master boot record so we're only going to have one partition and i'm only going to do one partition for this vm there's no reason to create a swap or anything for this vm so i'm just going to make the default size i'm going to hit enter on the starting size and the ending size so i'm going to make one partition i'm going to give that one partition the entire 20 gigabytes of space i don't have to change the partition type or anything by default it sets the partition type as a linux file system so that's correct for this if i had created a swap then i would have to go in and change that particular partition type to linux swap rather than linux file system but for what i'm doing i'm making things easy on myself i just create the one partition then i'm going to do w to write and now we have made those changes now let's go ahead and make our file system so i'm going to do mkfs for makefilesystem.ext4 it'll be an extend4 file system and it's going to be on slash dev slash sda1 because that's the disk slash dev sda and we only created one partition so it should be sda1 i could have actually checked that just to be certain with lsb okay to make sure that was the case and it is the case that was sda1 so we created our file system so now i'm going to go ahead and mount slash dev slash sda1 to slash mnt and now the most important thing we need to do is actually run the pack strap command so this is the command to install the base arch linux system so you want to run pack strap space slash mnt because that's where the drive is mounted to that we want to install the base arch installation to and then the packages that we want to install are base space linux the kernel space and then linux dash firmware and then hit enter and this should just take a couple of minutes and the pack strap only took about maybe a minute maybe a minute and a half very quick installation for the base arch installation then after that we need to generate our file system table our fs tab so run gen fs tab space dash capital u space slash m t space and then do two of the right pointing chevrons two of the greater than sign space and then where are we directing this to we're going to direct that to slash mnt slash etc slash fs tab so that should generate our file system table and now let's go ahead and root into the new arch linux installation so run arch dash root space and then slash mnt because again that's where the drive is mounted that we just installed everything to now the first thing you want to take care of now that virtual rooted is the time zone information the arch wiki is going to have great information on that i know exactly what i always set my time zone to so what i'm going to do is i'm going to run ln that's the link command space dash sf and then space and then the location of the time zones and they are in slash user slash share slash zone info slash and then the next part is going to be region slash city except region city is actually going to be the names of a region and a city for me it's zone info slash america slash and i typically do chicago space and then you need to write that to slash etsy slash local time and then let's go ahead and run hw clock hardware clock and dash dash cis tohc run that command that should set the hardware clock now let me go ahead and clear the screen here now this next command that i show is very important and this is going to be setting your locale if you set the locale incorrectly or not at all in arch linux certain programs are not going to run correctly and that's going to be the case with many of the programs that dtos installs if you do not have your locale set correctly d menu is going to complain the xmode bar panel inside xmo ned is going to complain so anytime you get weird things going on with the xmo bar panel like it's not displaying icons correctly or you get weird messages like invalid byte sequence and things like that that is you didn't set your locale correctly when you ran through your arch installation so let me go ahead and set my locale i'm going to do vm slash etsy slash locale dot gen and vm is not found so what i'm going to do is i'm going to take some time to go ahead and do a pacman space dash capital s to install software i know i'm going to need vim let me go ahead and install that and now i'm going to i'm going to up arrow to vm c locale dot gen and i'm going to search for en underscore us here in this list and let me go down to this right here what i'm going to do is i'm just going to uncomment that line right there and then after i uncomment it i'm also going to copy it in vmyy copies a line then i'm going to write and quit and now what i'm going to do is i'm going to vm xc locale dot conf and then i'm just going to paste that line there en underscore us dot utf-8 space utf-8 then i'm going to write and quit that so now that you have those two files set correctly to at least one locale run the command locale gen and you can see it's generating my locales which is just the one english us now let's go ahead and set up our host name so clear the screen what i'm gonna do is i'm gonna vim space slash etsy slash uh hostname and this just needs to be a single word the host name of the computer and i'm just going to call this computer arch v box if i can type correctly i think that's descriptive for host name then i'm going to do vm space slash etsy slash hosts let me go ahead and make a new line here what i'm going to do i i've just done this enough i know it's 127.0.0.1 so that's just your local ip for localhost i'm going to tab over and actually write the word localhost and then i'm going to go to the next line i'm going to do colon colon1 and then tab over and write local host one more time and then i'm going to hit enter and this time 127.0.1 tab over and i'm going to do arch vbox dot local domain and tab over arch v box and rh v blocks remember was the host name of the computer obviously if you chose a different host name you should probably use that host name then i'm gonna colon wq to ride and quit out of vm by the way you could also use nano for all of this nano is not installed by default either you would have to do a pacman dash capital s nano to install nano before editing all these files and we're really close to the end of the base arch installation really now i need to set up passwords and users let's go ahead and set the root password with pass wd and give the root password it needs to be a strong and complicated password and then now that we've set the root user a password let's go ahead and create a regular user so i'm going to go ahead and do user add space dash m space dt dt is the name of the new user i'm adding and then i'm going to run the passwd command passwd space dt to set dt's password it needs to be a strong and complicated password now we need to set the groups for the dt user because by default he's not going to be a member of any groups and he can't do much so let's do user mod space dash lowercase a capital g space and then the groups separated by commas so he needs to be a member of the wheel group comma audio comma video comma optical comma storage and probably some other groups but that's fine for now for purposes of this virtual machine and then space and then the name of the user that we were modifying you know adding these groups to dt now the most important group that we added him to was the wheel group because will gives you sudo privileges but the problem is sudo is not installed so let's do a pac-man dash capital s sudo so now dt can actually do things as sudo but we need to edit the sudoers file so what i'm going to do is i'm going to do capital editor so all caps editor equals vm space vi sudo and then just go down this file until you find a line that talks about the wheel group which is going to be right there see will all equals all all uncomment that and now what that will do is that will allow anybody in the wheel group which dt is a member of the wheel group to actually use sudo and let's go ahead and install grub so i'm going to do a pacman space dash capital s grub to install the grub package but just installing it doesn't actually do anything we actually have to run through an installation after the pacman installation you have to use grub dash install and then the name of the device you're installing grub2 which in my case was slash dev slash sda and it needs to be the device it doesn't need to be a particular partition like slash dev sda1 it needs to be just the device slash dev sda and now that we've installed that we need to go ahead and generate a grub config file and you do that with grub if i can spell it dash mk config so grub make config essentially and then dash o i'm assuming for output and the location of this config file needs to be in slash boot slash grub slash grub dot cfg all right and it generated our config file so now we could actually exit out of the root and reboot and we would be in a fresh arch linux installation but there's one other thing i definitely want to take care of first i want to take care of networking so let's go ahead and do pacman dash capital s and i'm going to install network manager just to go ahead and you know take care of internet ethernet so let's go ahead and install network manager and then what we need to do is enable the network manager service with systemd so run system ctl enable and then capital network capital manager all one word no space between it we created that sim link so let me exit out of the jeru and then i'm exited out of the route but we're still mounted so let me go ahead and u-mount for unmount slash mnt and now let me go ahead and just type the word reboot and see if we reboot into a newly installed arch linux actually before rebooting i went ahead and killed the vm because before rebooting i need to go back into the settings of the virtual machine go into storage highlight that iso that we attached earlier and then go down here and remove iso or remove disk so get rid of that because now we're just going to boot directly off of the arch linux dtos.vdi the virtual hard disk that we created and then installed everything too click ok and now let's go ahead and launch dtos and this should boot us yes into our newly installed arch linux and it looks like it installed just fine because we got the grub menu and looks like everything is booting up and we get a command prompt so now we're ready to go ahead and install dtos for those of you that want to try out dtos what you can do is you can go to my git lab my gitlab pages getlab.com dwt1 and i have several repositories i have like 20 25 different repositories look for dtos click on that you'll get some information about dtos and you will get instructions on how to install it it's just three simple commands you have to enter at the command line to install it so let me switch back over to the virtual machine here and once again let me get back into scaled mode so you guys can see exactly what i'm doing here so i'm going to go to view skilled mode switch all right now arch v box login remember the host name of the computer was arch v box so now let's go ahead and log in as our dt user that we created let's see if his username and password works yes but i did get an error bash ian underscore us.utf-8 command not found so obviously i i set the locale wrong i mentioned if you set the locale wrong you're going to get errors and i talked about graphical programs but in this case i'm getting command line errors as soon as i log in i know exactly what i did in this case though so what i'm going to do is i'm going to sudo vim because dt has sudo privileges a slash etsy slash it's going to be locale.com is the problem because en underscore us.utf-8 now all of that is right except in front of that what i needed to do was i needed to actually write playing equals and escape and i'll try to annotate earlier in the video where i made that mistake because i know people don't watch the whole video and many of you guys are probably going to follow me exactly step first step and remember i didn't have the arch wiki in front of me when i was doing this so i was just kind of flying by the seat of my pants and it gets me in trouble sometimes now to run the installation of dtos we need get installed which is not installed by default so i'm going to sudo pacman dash capital s get this should just take a second all right and then we want to get clone and then the location of the dtos repository which is https colon slash slash getlab.com dwt1 slash dtos all right it cloned that repository if i did it ls you see dtos let's cd into dtos if identity ls you will find the dtos script run it with period slash dtos all right and you get this little welcome screen you can read it but just click continue or okay four times begin installation it's gonna add the pgp keys it's gonna add the dtos core repository to this installation of arch linux because the dtos core repository contains a lot of dtos packages that i build myself and you can see it's going to have to install about 665 packages i will pause the video while this installs all right and it looks like it finished installing everything from pacman and now it's going to run through the installation of doomy max so do me max actually takes the longest to install out of everything here so those 665 packages they only took about five minutes to install from pac-man the doom e-max installation itself is going five to ten minutes so i'm just gonna let this run a few more minutes by the way doomy max will pause a couple of times and ask you a yes or no question and we'll ask you do you want to create a env file and we'll also ask you do you want to install all the icons fonts answer yes to both questions all right and the doom emacs installation has completed and now looks like the dtos script is asking for a sudo password one more time it's gonna recompile xmo net for us it's also going to change our default shell now what do we want the user default shell to be the system default shell is bash but your user default shell can be anything fish bash zsh i'm going to choose fish so i'll choose number one and then do you want to reboot your dtos yes yes as the default answer just hit enter on the keyboard and we should now reboot arch linux and instead of getting a command prompt i'm hoping i get a login manager let's see that is the login manager and that is the multi-color sddm theme so that is one of my packages and then let's go ahead and log in as the dt user all right and this of course is my xmo.net desktop and let me go ahead and do super enter to enter a terminal here let's do x render because this is obviously a very bad screen resolution i'm not actually sure what kind of screen resolution this is but that is much better there yeah all right and now let me hit enter now the very first time you entered a terminal it's going to complain about fish errors that's the very first time you launch the fish shell from there on out though everything looks right it's using my shell color scripts here inside the fish shell now because we changed the screen resolution the wallpaper and the cocky are all weird because of that extremely small screen resolution that was there by default is like a 800 by 600 screen resolution now we can actually fix the wallpaper and the cocky so what i'll do is i'm going to go ahead and do uh let's go ahead and fix the uh cocky so i'm going to enter a terminal i'll zoom in and then what i'll do is i'm going to kill all cocky let's go ahead and relaunch the cocky and the cocky config should be in the home directory slash dot config slash cocky slash uh exmo ned slash doom dash 1-01.conkey dot rc and that redraws the con key there let me close that and now let's redraw the wallpaper to get that set right and how you would do this is i have several command prompts if you look at the conkey super p followed by b runs a d menu script called d menu dash set bg set background so super p b and you get what would you like to do set random or exit so set means pick a wallpaper random we'll give you a random wallpaper exit exit out of the script let's set and it should launch well it doesn't launch anything so there is obviously a problem here so uh let me get into pc man fm and let's go ahead and show hidden files let's go into dot config there's dm scripts which is the uh d menu scripts and there should be a config file there is let's open that i'll just open that with vm because i don't think emacs is going to work just yet and let's look for a setting here that is not right should be a setting about the wallpapers the backgrounds the background directory uh right here set bg user share backgrounds dtos yeah and use imv equals one and that is for people that are using weyland and it will use a program called imv to set your wallpaper for like ninety percent of the people that use this thing you're going to want to use uh you're going to use xorg anyway if you're using xmo nad so it doesn't make sense to uh i hate that i have to change that specifically for dtos but the person that wrote this script here he really loves wayland so let's change that to use imv equal zero and i will change that right after recording this and editing this video to where hopefully you guys don't get this error i'll repackage that up so that when you guys install dtos hopefully that is changed so now let me do super p b and then set wallpaper and now it launches sxiv which is the image viewer and it shows all the wallpapers from user share dtos backgrounds and then i just go and navigate to a wallpaper i want such as the one that was set by default i hit m on the keyboard to mark it just type m now close sxiv supershift c to close a window here inside xmo.net and you see everything looks just right now one thing doesn't look just right when the icons are not showing up on some of the widgets you see the word updating dot dot dot that actually should be a font awesome icon that is not displaying every i mentioned that xmobar will complain if the locale is not right so let's go ahead and sudo vim etsylocal.com just to verify that we actually did set that yeah and i i don't know i've i've done this enough times i should know i didn't need that space utf-8 at the end it just needs to be lang equals and then your locale in my case en underscore us.utf-8 let me write and quit that oh my goodness i cannot believe sudo locale dash gin let me restart xm well i probably i may actually just have to reboot for all of the localization to take effect i don't know but let's launch xmo bar and it's dot config slash xmo bar doom dash one dash xmo bar rc and let's see yeah i probably i'm going to have to reboot the machine so i could reboot just entering a terminal and typing the word reboot but for those of you that would rather do this in a graphical way i do have a command i think it's a super p q and this is a dm script dmr logout is the name of it and you see reboot i just hit enter do i want to reboot you get a yes or no confirmation just so you don't accidentally you know shut down your computer without you really wanting to all right let me log back in and the localization was fixed you guys can see now we've actually get icons instead of the updating dot dot so that is that error and let me go ahead and rerun all the commands from before such as kill all conkey then we'll redraw the conkey and then super pb to set the wallpaper then super p b then super p b well super p b not super p b how about d m set vg why is that not running no locale support so now what the locale was fixed for x mode bar but it's not fixed for uh d menu d menu underscore run no locale support all right i think i've got the the problem solved i'm going to go back into the slash etsy slash locale.com and what i needed to do other than setting the lang i also needed to set the lc type so lc underscore c type equals c i i for some reason i guess d menu really needed that and if i set that correctly now d menu works but oddly enough xmo bar is not working let me go back in here maybe if i set the lcc type to en underscore us dot utf-8 we are going to get this guys we are not going to let this defeat us oh i didn't have to enter my strong and complicated password there uh let's reboot let's see if that actually changed anything let's go ahead and log in x mode bar is working correctly and d menu is working correctly so that actually was the problem let me go ahead i'm going to kill all conkey and then i'm going to relaunch cocky in the correct spot now close the terminal and now if i do super p b yeah we get dm set bg and i can go ahead and choose set to set a background sxiv it's going to load all our wallpapers and i go pick a cool wallpaper i type m on the keyboard to mark it and then close sxiv with supership c and there we go all right that is dtos so i'm glad i made all those locale mistakes because i know you guys have been making them actually that was kind of the point of me making today's videos because i've had people that are installing rx linux for the very first time and one of the biggest mistakes people make it's not setting the locale right so now we know that for x mode bar uh you need lang equals and then a locale set you know that's for many programs if you don't have that set you're going to be in trouble and apparently d menu really needs lc underscore c type also set to something in my case english underscore us for that as well and now d menu x mobile everything looks great now looks like everything is working correctly of course there's the terminals uh let me run some of the other d menu scripts so if i do super p followed by e for edit configs you know these are all the config files that are on the system that you could edit such as the alacrity config et cetera let's see if i can launch do me max so ctrl e followed by e so control e followed by e apparently that is a conflict with virtualbox i actually did not know virtualbox use control e for anything but i can still launch doomy max by just typing emacs in the terminal and let's see if it actually launches correctly it's got to install some emoji icons it's asking a yes or no question i just type y and yeah there is doom emacs so apparently for virtual box users control e is a conflict i i was not aware of that control e it launches this file picker for some reason uh dang i hate to change that just for you guys trying this out in virtualbox i mean i guess what i could do i may do this right after the video i could change that key binding to super e followed by something because super e i don't think i use that key binding anywhere else and super e won't conflict with any other programs uh the reason i like to control e rather than super e on the z max key bindings is because you actually have two controllers you know you've got the one on the right hand side of the keyboard and that makes sense oh right hand control followed by e which is on the left side of the computer or on the keyboard you know that's a little more comfortable than super e but super e isn't bad i'll probably change that key binding as soon as as soon as i'm done with this video today so i'm glad i ran through this because i discovered a lot of bugs that do need to be fixed such as that key binding and also i do want to be able to document how to solve that locale problem because i know a lot of you guys are running into that locale problem with both d menu and x mobar now before i go i want to thank a few special people i want to thank the producers of the show devon gabe james matt mitchell paul scott west comey allen chuck commander kurt okay david dilling i think he's commander angry i should pronounce his full name anyway gregory i go lee max and michael mike nitrix eryon alexander peace archan fedor polytechnic prophet steven and willie these guys they're my high steered patrons over on patreon without these guys this installation of arch linux plus dtos on top of it it wouldn't have been possible the show is brought to you by each and every one of these fine ladies and gentlemen as well all these names that i'm showing you on the screen right now these are all my supporters over on patreon because i don't have any community sponsors i'm just sponsored by you guys the community if you like my work and want to support me please subscribe to distrotube over on patreon alright guys peace i guess i should have followed the archwiki
Info
Channel: DistroTube
Views: 32,406
Rating: 4.9111109 out of 5
Keywords: arch linux, install, guide, tutorial, terminal, shell, arch install, arch linux installation, arch linux install guide, arch linux install virtualbox, arch linux installation tutorial, how to install arch linux, arch linux 2020, arch wiki, linux, gnu linux, linux distro, btw i run arch, rtfm, arch linux uefi, fdisk, linux partitions, grub, bootloader, gpt, distrotube, dtos, xmonad, desktop environment, window manager, doom emacs
Id: nyEmX6Gibf4
Channel Id: undefined
Length: 34min 19sec (2059 seconds)
Published: Mon Nov 08 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.