 Hey everybody welcome back to the channel today I'm going to be talking about how you can set up mutt and neo mutt to with gmail now The way I do this is not the traditional way because the traditional way would be getting into the mutt configuration file and Setting up all the things manually by hand Entering the different email Things that you need to enter into the configuration file in order to get it to work and That's just all that's just so much work and no I'm I did that once don't need to do it again now for those of you in the know You'll know that Luke Smith is a youtuber. I guess you'd call him a fellow youtuber now because I'm actually I'm a youtuber now and kind of which I mean blowing my mind anyways he has a Script the hero called mutt wizard and that's what we're going to use today It's very very simple to set up now I'm going to be specifically setting this up on arch or on an arch based distro Your mileage may vary on other distributions mostly in terms of package availability I'm not sure the dependencies on a boon to and You know, whatever are gonna be there so you'll have to look them up You may end up having to build some yourself I'm not sure. I've never done this on a boon to so that's just the way it's going to be so Let's jump into a terminal now First off, you'll have to forgive me. I'm still looking at the wrong camera That's just the way things tend to happen when you have two cameras You got a little remember to look at the right camera. Anyways What I was gonna say is that I have this zoomed in now if I end up having to go into a different terminal And I don't zoom in it's because the key bindings for zooming in are different on ST I've switched away from termite for a little while for Reasons, I mean not good reasons, but reasons So that's just something you have to put up with first. We need installed my wizard So the first thing I'm going to do is go into my get things repository On my computer you can get clone mutt wizard anywhere you want to I always do everything in Downloads get things And this just has everything that I've Downloaded from get over time some of them are mine. Some of them are other people's It just gives me one place to Get clone things so that I don't have them all over the place willy-nilly So and all the instructions I'm walking through will be in a link in the video description below That way you can you know follow along via text if that helps you at all so I'm going to copy and paste from The get repository that I need this this command here get clone and then this address and I'm just going to enter I should it shouldn't take too very long and It's done. So I'm going to CD into mutt wizard and Then I'm going to do pseudo make install And enter a password And that made just fine You really shouldn't have any problems here because You're not running anything now if you ran mutt wizard right now You'd have some problems because you don't have all the dependencies. So there's going to be some dependencies here that you're going to need So we're going to install some stuff. So pseudo at first. Let's clear this out so you can actually see pseudo Pac-man s s now if you're on Ubuntu, obviously, this is going to be a little bit different You'll need to use apt some of these packages may or may not be available. I don't know. So we'll need neo mutt, obviously That's the main program. We'll need curl some of these I may actually already have I don't know we'll need isync and We'll need MSM TP We'll need pass We'll need PAM dash GNU PG We'll need not much We'll need a book and There's a couple more we'll need url view Yeah, that one might be in the aur. Yeah, we might end the IEW Yeah, that one's gonna be in the aur So I'll have to install that separately crony CO CRO NIE I'm actually not gonna install that one cuz I already have cron installed. I don't need it again. So MPOP Is something alright, so you may also need MPOP I'm not going to install it because I don't actually need it cuz I'm gonna be using IMAP if you're using a pop based email service like Pop mail or something You would need MPOP. I do not need that Okay, I'm gonna go ahead and run this Okay, so PAM and This one here must be in the aur Yep, not here Okay, well Yeah, all right now we can go There's a couple of areas that will have to use install using yay So the yay dash s PA PAM dash GNU Yep, there we go and the other one I forgot was URL view Well, that's installing so the ones that I've installed let me go through and explain New my obviously is the actual program that's going to be displaying your email curl just downloads the things And it helps with searching. I sync Downloads and syncs the email required. It's required for IMAP MSMTP sends email The PAM GNU PG which I just installed through yay Saves your GPG key, which will work through here in just a second Not much indexes and searches the mail a book is the address book URL view allows you to output URLs and click on them easily and I Think I didn't still links for the HTML stuff LYNX it if you want to be able to view HTML email That's Something you can sell. I don't usually install it now Let's clear this out We got everything if we a city back in my home directory if we want to run this Right now we probably are going to get some errors In fact, I know we will because you have to set up your GPG stuff and you have to set up your Your passwords and stuff in order to do to get this up and running so What we're going to do is just run my wizard like this and that's going to give you some Options Okay, so what I want to do actually is do my wizard dash a MTWB 47 at gmail.com. I Don't care if you have a main email address. Go ahead and email me. I don't care And enter now first run is So it's going to tell you something that you actually have to do first run pass in it then your GPG email And you know actually not don't have a GPG email key yet So you have to do it if you don't this is if you don't already have a GPG key pair first run GPG and then this thing here So I'm going to actually Highlight that so you can actually see it. So I'm going to type in this GPG dash dash full dash generate Key and you got to actually make sure unlike me. You actually spell this right Okay, and then most of these are going to be just downright default. So you're gonna just want to do one Okay, and what size key do you want 30 3072 is perfectly fine We want zero here so it doesn't expire. Otherwise you'll have to go through and do this again and then hit Y and your real name and Your email address and then just a comment GPG key All right, and we're gonna hit O And then it's gonna ask you for your password phrase This is obviously not something that I'm going to show you Now that process might take you a little while depending on the Strength of your computer the specs of your computer because it's actually using CPU power to generate some encryption stuff And that takes a little while and I'm I have a fast computer So that didn't take very long at all now that you've done that you can run your MW dash a This again, you're gonna get another error So we're gonna have to do this pass in it and then the GPG email key that we just set up okay, and then hit enter and That will just I'll put that it created a directory and then we initialized for this certain email address Okay, and now if we go through and do this again It's gonna ask us for a password for Gmail now This is where Gmail differs from other email addresses This is only gonna work if you have to a factor authentication turned on okay, if you don't You won't be able to do it because you have to be able to generate an app-specific password And you can only do that through to factor authentic authentication This is mostly a security feature on Gmail's part. So if you don't have second factor authentication on I'm not exactly sure what to tell you You can try just using your regular password here. I don't think it would work I think you're gonna end up getting a Google email Saying somebody nefarious has tried to access your account. We've blocked it automatically So you'll want to turn on second factor authentication Which you should have on anyways because it's the right thing to do but and then generate a Secure password. I'm not gonna walk you through how to do that. There are plenty of tutorials online That you can find to do that I'm gonna go get mine now and set this up Once you've entered your password you'll be asked to Enter your password in like a pop-up box Which I'm actually have cut out here, you know, so that you don't see my GPG key because it actually does show it But it'll just be like a pop-up box and you think you can hit save and password manager after you've entered your passphrase and Then just hit okay Once you've done that you'll want to go through and Technically you'll you're done here. You The next thing you want to do is sync your Email to your computer. The best way to do that is by running MW dash Small y and then your email address Now if you have more obviously if you have more than one email address that you've set up You want to do capital Y and that will sync everything that you've set up So I'm just going to enter this is going to take a bit The more email you have in your your inbox the longer this is going to take Okay, that took about five minutes for me or so like I said the more mail you have in your gmail account the longer This is going to take so now Once you've done all of that you can actually go through and start neo months. So just do type in neo mutt and Bada bam, bada boom you have your email. That's how you do it now. I'm not gonna go Actually you want to I will go through I'll go through a few of these of the keybinds you need So moving up and down in the map your in your inbox you use them keys. So JNK go up and down H&L H&L will go back and forth. Okay, so L would enter an email H goes back to the the Inbox now if you want to move up and down the sidebar here, I believe you use do use control JNK Yeah, as you can see That moves there and if you want to open this you hit you'd hit I Think command Yeah, you do control. Oh, okay, I Believe oops. Yeah, because oh syncs your inboxes if you if you want to sync manually hit always hit oh You can there's also a Way to Toggle automatic syncing you can look that up on the github page that I you know Showed here. It's very easy. It's just mw dash capital T and it'll do fine and I'll they'll make your Mail synchronize every 10 minutes. So we just go up here And where's inbox here and control. Oh, yeah There we go, and we're back to the inbox if you need ever need any help you just hit the the Question mark and it will show you all the keybinds that you need in order to Move and navigate around and then if you just want to quit just hit Q That's literally how you use Neo mutt now if you wanted to add another Email account you just do mw dash a and then the email address you want to add and it's the same process But you don't have to go through and obviously download any of those dependencies because you've already done that. All right That is how you use mutt wizard wizard to Set up a Gmail account and use Neo mutt with Gmail. It's very easy The hardest part is going to be getting all those dependencies installed Now I noticed that I know that there's a few spots in this video that are blacked out and that's just because I didn't want my Information out there on the internet so you could get to my PGP key And that's just would be silly to put that out there But the most part you should have been able to follow along if you have any questions Leave them below in the comments. I should be able to answer them With that all that being said, let's go ahead and jump into the social Thanks for watching If you'd like to please follow us at twitter.com slash linuxcast or facebook.com slash linuxcast You can also support us by going to patreon.com slash linuxcast and with that thought please Say thanks to Devon C and Marcus B for being our patrons. Thanks for watching everybody. I'll see you next time