 So last week I asked you guys to ask me some questions and you did and I just read over them And I'm going to do my best to answer them There are some good questions in there and some that I'm not gonna have some very good answers for because it's on topics I don't know. Let's go ahead and we'll start at the first one and work our way through So the first comment has three questions. The first one, which is you know logic email I guess the short answer is no This is I think asking about logic gates and ores Why are you not using graphics magic? Mainly I'm not using it because I've never heard of it till just now I quickly googled it. It seems like it's very similar to image magic It does a lot of image conversion and manipulation from the shell the commands look very similar to image magic So at this point, why would I not use that instead of image magic? They're both open source the main reason I probably would stick with image magic is just because it's better known There's a lot more documentation. It seems out there now as far as performance. I don't know if one's better than other If you had asked me before now what license image magic was under I would have guessed GPL But it actually has its own image magic license I believe according to Wikipedia Where graphics magic uses the MIT license and I couldn't tell you if I have a preference over either of those license Since I'm definitely not familiar with the image magic license But for right now I'm sticking with image magic just because I've used it and it's very common And there's a lot of documentation out there for it. Why sometimes I see palm tree just inside your home There are no palm trees inside my house. Sometimes I film outside and there's palm trees I don't know if this is a joke question or serious, but there's no palm trees inside my house You know crypt image and color modem. So this is another one I had to look up They're both open source projects both was code up I think on github when I searched it and it has to do with other projects that are emulating or recreating Analog TV signals once for encrypting analog TV signals So like broadcast studios used to broadcast You know your your TV shows and the signal be encrypted in some cases And I guess this is these are projects on that and I don't know anything about them Sorry, I'm gonna summarize this next comment. Basically someone's running Debian 10.5 I guess they're tried both mate and I3 and it keeps logging out on them after every You know half an hour or so will say if they're not doing anything on the laptop And they're wondering why they can't seem to solve the problem. They're wondering if I think it's I3 The light DM which is the login manager is a Debian system D Linux in general Or is it because he's using a laptop it could be anything the things I would check first is power management settings If you're in mate, there might be some power management settings in there Look at those beyond that use something like ps, you know look at processes are running Is there anything running that shouldn't be running? You know check your startups and see what's starting May there's a process starting that's logging you out in the comment You said logging out not that the system shutting down or turning off Are you sure that it's logging you out and not just logging the screen? But if it's logging you out you you said that you're running light DM the login manager I never heard of that doing that, but I usually remove that if I do an install it has it I prefer to start off with a shell login. So just apt uninstall Lights DM see if that helps, but yeah, it could be a lot of different things I really don't know, but that's where I would start look at power management settings Although I don't think there's usually options to log you out. There's usually shut down or hibernate options in there But there must be a process or something if it's logging you out now if your computer's shutting down or turning off It's probably a power management thing or maybe there's some sort of problem with your laptop. I really don't know But those would be my suggestions on where to start off I want to run 64-bit programs on my cell phone, but they require four gigs of RAM my Android 2 gig RAM Is there a pro any program? Container or anything to make the Windows application work on specific amount of RAM like 400 megabytes question mark I am really not sure why I said question mark at the end of reading that thing I think it's just from doing voice texts so much This question is a little confusing. First of all, most phones are 64-bit processors. They're ARM processors, but they're 64-bit I think you're meaning architecture instead of ARM you're talking about x86 if you're trying to run x86 Application on an ARM processors going to be some sort of emulation there It seems like specifically you're trying to run Windows programs on an Android device So in which case you would definitely need some sort of Emulation there But as far as a program that makes Another program that uses a certain amount of RAM use less RAM The program uses a certain amount of RAM it uses a certain amount of RAM the only way to really fix that would be to Pre-change change the code write it more efficiently and recompile it if it's compiled Which in this case we're talking about something. It's architecture specific. It seems like it is So no, I think you're looking for something that's it's kind of impossible But your question is a little vague in some ways But yeah, if you're trying to run Windows applications on an Android device, I've never looked into that I would guess that there's probably emulators to run Windows But yeah, if something's taking four gigs of RAM to run and you only have two gigs of RAM There's not much you can do about that unless it's open source and you can write the code better and recompile it Here's a fun one. Do you think Richard Stalin is a communist? I'm not gonna go into detail on any of this I'm assuming he means Richard Stallman And do I think he's a communist? I really don't know much about the man Other than his views on open source software. I'm sorry Richard free software and as far as software is concerned I agree almost completely with him. I think software should be free I don't see why anyone would use proprietary software if they didn't have to and very rarely do you need to So do I think he's a communist outside of his software views, which are not communistic? I don't think I don't know anything about him Other than he is a little weird and a little rude and but he's also a little straightforward a little straightforward He's very straightforward Which is how he's gotten his message out over the years So I can't you know say anything about that as far as people some people say that You know free software the GPL is coming communism. It's not. Yeah, I don't think you understand what communism is If you think it is or you just completely misunderstand free software. Yeah, so this one. No, I'm good I already have lovely worst and best moments during pandemic I don't know about best and worst moments but I will say that I have found out that I really like curbside pickup for groceries and I really miss just like Little weekend getaways for a day or two. Are you still working as a fireman is Linux a hobby for you, or are you doing it projects as a programmer or something? Can't remember when I subscribed, but it was a long time ago around 2013 an M FFM peg brought me here I still really like the content. You may you only like my content. You don't love my content I'll have to work a little harder for you But no, I'm thank you for being around for so long. I'm glad you're still enjoying my content I am still a fireman or as we're PC, you know, politically correct We are called firefighters, which I am not Super PC with stuff, but firefighter just sounds cooler than fireman if you ask me and yes, I am still doing that, you know 17 years on the job and You know things are going good there. Do I do any type of programming professionally? No, you know I do my YouTube videos. I write code all the time But just to make my life easier and I try to share that With you I post what I can on GitHub and pay spin and in my videos, you know Anything I create to make my life easier. It might be something that other people could use too I write a lot of scripts to help my job at work You know, we do a lot of stuff filling out forms and stuff at work and lots of times the interfaces are horrible And and the fire department hires these companies to make these horrible horrible interfaces Luckily 80% of them are in the web browser so I can write simple little JavaScripts or sometimes even shell scripts to interact with these web sites and Just makes things easier because these companies make horrible hard interfaces and the people who are paying these Companies aren't the ones that have to use the software It's just easier for me to spend a little bit of time to improve upon them And since their web pages and they're written in HTML and JavaScript It's very easy for me to again write a little plug-in for my browser a little extension for my browser that improves upon them certain things like The company that does our scheduling and our calendar Well, they don't do it. They create web interface their web interface is horrible, especially on mobile devices luckily, I was able to use some of their APIs and Set my own interface on my own web server And I've shared that with a lot of the guys at work and they use them So it basically my code just you know people I give people a link they go there and it grabs You know the calendar information and displays it in a nice very simple searchable format And I've even started adding little avatars for people And there's a lot of little things I do like that that I write for myself To improve my job, but other people use them, but I don't do anything officially for the fire department I've tried in the past and it's never worked out. Well, they much rather just dump a bunch of money on some company that Makes some cookie cutter software that doesn't work very well But again the people who make these decisions are the people who have to use the software. So what do they care, right? How are you good and you how did you learn everything about Linux? Have you ever studied at a university? What is your main job? Thank you for your great content smiley face. You see that guy knows where it's at great content That's what I'm talking about. I make great content. How did I learn about Linux? You know, I've told this story before but most people probably haven't seen it Back, you know in high school. So late 90s a friend of mine. I had heard of Linux I had a friend who installed it on his computer for a little bit But he couldn't figure out how to use it and you know, that's the first time I heard about it mid 2000 so 2004 2005 I was interested I tried it once twice, but you know always went back to Windows because that's what I was used to In 2006 I finally told myself I'm gonna try this Linux thing out because what would happen is I would try it But then there'd be something I need to do and I didn't know how to do it So I'd go back to Windows and then I just never go back to Linux. So in 2006 I said two weeks I am not touching Windows for two weeks. I'm gonna use Linux if I need to do something I'm gonna figure out how to do in the Linux After two weeks the only thing I went back to Windows for was video editing by 2010 I stopped using Windows all together And as far as learning how to use it, you know, there's no books or anything. I recommend You know, I'm just not a book person. I find books and magazines They have a lot of filler just give me the code with a couple of comments and I'll figure it out I don't need five pages talking about the you know, the code and then you show me an example code But that's just how I learned another thing. I did especially when I first started learning Linux learning the shell Is you know you go into shell you start typing a command you can hit tab to autocomplete it I would hit a Hit tab look at the list of commands and start typing each one in to see what it does if I couldn't figure out what it does I look at the help file could figure out then I'd look at you know I Google it and I just see what does this program do? What does that program do just in my spare time, you know There's so many commands that you probably don't even know exists that are on your computer play with them other than that When you have an issue, you know, you need to do something look up how to do it, you know It's it's it's that simple You know just playing around and not being afraid. Just remember, you know, as long as you back up your personal files You could trash a Linux machine As long as you have a copy on a USB drive handy you plug it in in 30 seconds You got a live system up and running So it's not like you're gonna be without a system if you trash it like back in the day I used Windows I did again. I played around with a lot. I messed it up I constantly was trashing my systems back then only thing is especially today You try to install a copy of Windows. It's gonna take you 30 minutes to an hour To to before you can get to a usable desktop. It's not like that with links It takes 30 seconds to boot an operating system I think you know a live system and five to ten minutes at most to install most of them So yeah, just don't be afraid. That's a you know, most things in life Don't be afraid play around with it until you learn. I have never studied at a university The only college I have is a you know the EMT classes I took for my work as for your next question a firefighter. Hello, Chris Could you list five or more GNU Linux commands? You consider to be the most useful and among the most Versatile this is a great question You know and it depends on what you're trying to do But obviously grep is super important. I mean there's all the built-in commands for bash, you know Or whatever shell you're using, you know cat and that sort of stuff But outside of that grep said Wget or curl So but for me To main app one one binary you need wherever you go Busy box, okay I've talked about busy box before busy box is a binary that you can compile and It has sometimes stripped down But it has almost every command that you need to do 99% of the stuff you need to do and if you you don't compile it With certain tools and other and not other tools, but when it's fully compiled you'll have you know web Browse web browsers web servers FTP servers telnet servers as well as clients for all those DD all your your core commands are in busy box and it can be in a like one and a half megabyte file Or less it's probably already on things like your router my TV has it I don't have access to it on my TV, but if you look in the manual it lists The the open-source software it uses and the licenses because they're required to do that So my TV does have busy box on it Your phone most likely has busy box or maybe toy box Which is like someone trying to recreate busy box under a BSD license rather than GPL license because people do that Although it doesn't have as many tools or is as useful as busy box busy box is also can be compiled and get executables for windows Although it's missing some of the tools mostly the the server type stuff. There's no web server FTP server or telnet server in that binary, but it has most your tools it has stripped-down versions of W get-ock said And yeah, just most year even end map net cat not in map net cat So if I talked about one tool that is essential that is very useful is Busy box, but it's really just a package of tools, but very very small again one to one and a half megabytes The next tool outside of that would be FCF. I've talked about that a lot lately. I've used it in all my scripts Oh busy box also has a built-in shell. It's an ash shell, which is similar to a busy Bash shell and in fact on my flash drive that I carry on my keychain. Let me get that out Yeah, this little one I used to have a smaller one But this one has USB C on one side and standard USB on the other so I can plug it into my phone or a computer It has a ventoy on it and a bunch of ISOs. It's a 64 gigs I think so I have like five or six different ISOs on there including Android, you know Debbie in Linux Mint MX Linux Slits has Linux, but I also have a folder on there of tools for use on a Windows machine and two of those binaries are busy box and FCF and I'm pretty much set. I think I also have a copy of area area area ar I a Which is a program that's used for bulk downloading, but it also has a built-in torrent Clients in it. So those are some tools that I have on me all the time So even when I'm at a Windows machine Those those few tools give me 90 some percent of what I need to do because Windows out of the box does nothing. Hi, Chris I recently installed FCF in my Debian PC and I'm trying to know how to search for files in my Second hard drive mounted on 4 slash MNT. Thanks. So this is one of those things that Probably could do a tutorial for but FCF will If you haven't watched my videos on it search my videos on I've done a few Anything you pipe into it it will make it a searchable list a fuzzy searchable list So you can type something similar to what you're looking for but not exact and it will filter it based on how close it is so if you wanted to search for files one of the things you can do is you can Do the fine command or list command something like that and then pipe it in FCF so you can write a an alias that or a script that basically does a fine command on That hard drive and pipes into FCF and then the output would be whatever files you select You can select one or more after that, you know, you can decide whether opens it or not and for example on my machine I Have the oh if I'm at the shell and I type oh and hit enter it starts scanning It does a scan on whatever directory I'm in all the sub directories FCF and then when I hit enter it uses the XDG dash open command which will open it but with whatever file it is with whatever the default program is For that file type So I mean I would have to do before besides just explaining it here I would have to do a video up but check out my FCF videos go to my you know film site chris comm chris of the K link in the description and Type FZF and see what videos come up I've talked about in other videos, but I'm pretty sure I've done at least one or two showing how FCF works Also, when you install FCF command how you install it there might be some shortcuts already Put into your system such as with Z shell or pry bash as well If I do a search history search it searches through the history using FCF What does your network environment look like and how did you set it up? Storage config my network environment. I'm not really sure exactly what you mean by that, but as far as like All the systems in my house, you know, I you know my wife's computers my my kids computers and a lot of little devices a lot of ESP ESP 8266 is around here But I have actually over can you see it in that corner? I just move I just rearrange my office that yellow box back that yellow metal box has two raspberry pies in it One just running regular Debian and I have SSH enabled on that and if I I use that to Pivot into the rest of my network when I'm out and about And I also use it I have a I think that one has a four terabyte drive on it and I are sync stuff to it So most time are syncing sometimes I SFTP or scoppy stuff over to it The other Raspberry Pi is running next cloud which automatically syncs from my phones and my desktop computer my desktop computer also Has syncing running on it which syncs with my phone So then stuff syncs from my phone to the next cloud server But then also to my desktop and then when I run my end my rsync Command it takes those files also and recopies them over to the Debian server through SSH Using our sync so I have a little redundancy in my backups there So like my phone synchronizes with one of the Raspberry Pi's and my desktop and then my desktop Syncs with both the Raspberry Pi's basically and my phone so a little bit of redundancy there, which is always good with backups But as far as you know Okay, my 8 gig SD card got full which apparently means I have been talking for 20 minutes now Anyway as far as like my physical network, I've got my modem It's a was it a Motorola surf, you know, I bought off Amazon And it's connected to a wireless router that has four or five plugs on the back Which is behind my TV near the room which is connected to a Raspberry Pi over there That's worked as a media center and then I have a wire that runs through goes in the ground here And then goes up to a little network switch I have up there that goes to all my computers in the office here pretty much everything else is Wi-Fi Unix book recommendations not really as I mentioned earlier, you know when I first switched legs I tried I bought a couple of books Or even before that I you know, I read up on stuff But it's just I find I need to do something. I Google how to do it Reading books. I feel like it's just a bunch of filler to fill the books and even books that I liked It was because they had a couple of scripts in there I liked and the rest of the book I didn't even read so no recommendations. They are sorry But I did once think about writing a Linux shell book or even just a code book And basically I was just picturing it as a book with each page having a separate script on it in different languages Just this is what it does This is the code with a couple of comments and nothing else no other commentary or anything like that That would be a book I would buy please show how to run a script with system D When USB device connects it's fun. You asked that I actually just saw a post about this sort of thing the other day And I put it on my list of things to do video tutorials on I would say look at this command and see if it works for you So again expect a tutorial on that in the future But that's a quick answer that might answer your question Please can you show how to integrate not much with mutt? I actually had not heard of not much till I read this comment the other day And I quickly searched for it and went on YouTube and watched like a 45 minutes Presentation from 2014 on the guy who created not much sounded very interesting It's something basically to filter and keep your inbox clean is the very short version of what it does At the time of the video he talked about possible future integration to mutt I don't know if they ever reached that it does sound like an interesting project But not something that I'd be touching on anytime soon. Sorry. Hi, Chris How do you manage security for Linux machines? Do you track passwords in a vault and are you using SSH keys for every machine and What is the best practice for managing SSH keys? I don't consider myself a security professional So I don't really have a lot of advice on this. I do try to on most my machines Utilize SSH keys rather than passwords the few exceptions But basically I just generate the keys on my computer and then use SH ID copy or whatever the command is to push it to the servers. I don't know what you do beyond that Again, that's not my field. But sometimes I feel like people over complicate stuff like this But then again, there might be issues that I'm unaware of how to create a new partition table on an SD card Labeling multiple partitions how to do that normally when I'm creating, you know new partitions on a drive. I use F-disk if you're not familiar with that, I would just recommend looking into a G part it There's a good chance It's on your system and it makes it very simple to repart partition drives that being said There was something interesting that some of my viewers brought up that I did not I was unaware of up until recently And I thought when they told me this so I was talking about using multiple partitions on a flash drive and People told me oh, you know windows won't recognize anything past the first partition on an external drive like that Or at least a flash drive or SD card, and I thought shh. They're wrong Obviously windows would see the partitions. They must have like if you get a Raspberry Pi You'll have your boot partition which is a you know a fat partition and then your file systems on an EXT And I thought they have partitions that windows doesn't recognize as a second partition You see no you can take a USB flash drive make two partitions on it both You know fat 32 partitions which windows should see and it will not see the second partition for some reason That's just blew my mind anyway be aware of that if you make multiple partitions By default at least there might be a way to get windows to see extra partitions on devices like that But it just ignores them so if you ever want to have a secret partition You can you can do that and windows machines won't be able to see them or just make them EXT forward partitions And windows won't see them even if there's one partition It will just be like do you want to erase those who is your favorite linux youtuber? Mine is you and got let to got let to does some great YouTube videos I haven't watched any of his videos in a couple of years I used to subscribe to him and I know he used to watch my videos because he used to comment on them I don't know if he still does if you do. Hey, buddy main reason I don't watch his videos anymore is Basically his language. He just had some foul language and as a personal opinion other people may feel different I just didn't need to be hearing that but as far as my favorite linux youtubers, I would say Luke Smith and Arthur reader would be my two top linux youtubers right now Here's a gentleman named Martin Parker who seems to have his own YouTube channel about Python coding I'm not gonna read his full comment But his question is what I would like to ask is how did you get started? How long have you been doing it? Is it your day job or not? What's your favorite language and why not? I'm not sure if he means how did I get started in programming or how did I get started in YouTube videos? The YouTube video answer is in 2006. I started using linux. I liked it a lot I tried to get other people to convert to it So I had someone else who started using it and I thought they would be interested in seeing some videos and how Powerful the shell is I made a couple of videos for that person put them on YouTube that person never watched the videos Other people did and since people were watching them. I continued making them as far as programming I have always been interested in computer since I was really young When I was kid, I'm not really sure what age but I would say somewhere between five and ten my family Got a computer and IBM old IBM DOS computer that had two large five-inch floppy disk did have an internal hard drive probably not very big at all and When you put it up it was DOS, but it did have like a menu based system on it but and it had basic word processor and a Printmaster program where you could make greeting cards with large blocky images And I just loved messing around with it And one of the things my dad taught me which really probably wasn't necessary was that when you shut down the machine You should exit out of the menu and which would bring you to a DOS prompt and you should type exit before turning off the machine That really probably wasn't that important to do, but my thought was when I was a kid they put this computer in my bedroom, so it was kind of it was the family computer, but it was kind of mine and I knew okay. I type exit and it would exit. I wondered what else it could do So I just as a kid started typing all these words. I knew and occasionally I would get a word that You know most time would say command not famine, but I know that copy and help and move I think were probably three commands I typed and it gave a different message. I still didn't know what to do But I just was curious and that's kind of my point is when it comes to anything in life But especially computers don't be afraid poke around pick around and and don't worry about messing things up because at least Would software you know hardware is a different thing Although it's still hard to mess up hardware if it doesn't fit in the port doesn't go there Basically, but hardware is when it comes to computers, but when it comes to software As long as you have your personal files backed up, which is easy to do so are so cheap now Trash your system as often as possible until you get comfortable with getting it set up again If you don't break it and fix it, then you really don't know how it works So that would be my suggestion the next part of his question was How long have I been doing it You know, like I said, I've been playing around with computers my whole life I think he also asked if I do it professionally as I've already mentioned I do not It's just always been a hobby format for me And oh, what is my favorite programming language? That's a tricky one depends on what I'm going for but really I would say I have two favorite programming languages Bash, you know shell scripts in general and JavaScript, you know, which gets a lot of you know Complaints about from people as far as like JavaScript being slow But the stuff I write it runs fast enough to do what I need to do and for me when it comes to Software people are very big on speed. It's got to be the fastest, which is true But it also depends on what you're going for. Yeah, you should always try to write your code as efficient as possible But speed is not at the top of my list for most of the programs I write and that that sounds horrible. It sounds like it's a program You shouldn't say that but in reality if I submitting a form or doing something like that We're a user is interacting with it and it takes a tenth of a second rather than a hundredth of a second It doesn't matter. You know, if you're doing big calculations Yeah, you want it as fast as possible and I should write the code as fast as possible But I always say it's more important to write your code efficiently than the language you use and when it comes to bash and JavaScript those are two things especially JavaScript is Orion every modern device people can write I can send someone a link. They don't have to download or install anything this application just runs Most things you're gonna write nowadays are going to communicate with a server anyways So the fact that it's in a web browser is irrelevant things JavaScript is on the client side So it can run offline unless you're running it as a back-end, you know, like no JS but it's just the reason I like JavaScript is just that it's already on every device and It's easy for people to just load up the stuff I create without having to jump through hoops and download stuff that, you know, they don't know what they're downloading And as far as bash, it's just easy for system maintenance pass that I guess my next programming language I like Python. I don't use it nearly as much as I used to The main time I use Python is just basically interacting with hardware because it makes it very easy There's some things that doing directly in bash or JavaScript interacting with hardware Is a bit more difficult so Python would be the way I go with that. I like your Kaden live videos Thank you. I'm glad you like them It's not the type of videos I normally make but I did do them in the past and I use Kaden live all time In fact this video is being edited in Kaden live. How to learn regex Do use it often regex or regular expressions are very very useful How do you learn them just by using them? I probably could be better with them But here's the thing about regular expressions is There's certain ones you're going to use all the time and you learn those ones and you use them all the time If they're not ones use all the time Sometimes it's just easier to pipe things to multiple commands and get it done But if you know them, they are very powerful how you learn them again It's just if you need them you're going to use them often if you use them often You're gonna learn them. Can a Linux CNC be installed in a virtual box? I want to say yes I'm pretty sure that Linux CNC has directions on using it in virtual box I could be wrong about that obviously especially if you're going to be using certain hardware ports You might have to enable access to them in virtual box But once you do that, I don't see why you couldn't but I would check out the Linux CNC website How to detect all IOT switches outlets ring etc in a browser and terminal CC camera and so on so if the device is on your network you just scan your network You can do an ARP scan or NMAP is a good way to check also Just you know log into your router your router should list all devices that are connected and have previously been connected So that's how you find out where they are on your network And then the next thing would be to do a port scan now certain you know IOT devices can be accessed You know through the web browser some can't some might have a port You can connect through using like netcat or telnet Some you can't it just depends on the device my suggestion is before you buy a device Look up and see what people have discovered if you already have a device poke around again and maps great thing If you can get a copy of the firmware a lot of them, you know that I think they download I don't have a lot of IOT devices that I didn't create myself using like an ESPA 266 chip So I can't speak for a lot of them But if you get these devices and there's nobody who's already picked them apart That's what you got to do see if you can get a copy of the firmware And then use something like bin walk to extract them I have videos on bin walk check out my website again Link in the description films at chris.com. It's chris with a K pull apart the Firmware see if it's running a web server if it says what port look for HTML files within that firmware Stuff like that. That's how you find out how this stuff works besides that Just port scanning and then other than that taking the device apart and looking for serial port connections You can get a serial port USB to serial connector for like $2 learn how to use it I have videos on that as well, you know check my site out for that But if you can find them and a lot of devices the cheaper devices are very easy to figure out if you get something from Google They're gonna hide that they're not gonna have serial port connectors connectors that are easy to find and all that stuff So lots of times for me going with the cheap Chinese knockoff I hate using that term But the cheap Chinese stuff is usually a lot easier because they make it easy for them to work on them So it's easier for you to work on them even if they don't are Advertising that feature to you But other than that that's that would be where I would start Okay, it's kind of a long one basically is asking about using an old Android phone as like a security camera or Dash cam in your car that sort of thing. Okay, I can go on and on about this I'm gonna try not to but this is actually something I was trying to do just recently is use an old Android phone as A dash cam in my car. I figured I already have them laying around. They have storage They have a backup battery connect to my Wi-Fi I can auto use sync thing to sync things to my desktop to keep the stuff clear on the phone. Okay, so Android is a system that uses Linux. Okay, so so this is where they are gonna come is is Android Linux Linux is part of Android and 99% of the stuff you do in Linux can be done on Android, but there are a few things they're different and It's mainly what I would call fake security. I love that and then sometimes it just does things are weird So I was trying to do that. I Tried using termux if you haven't used termux installed on your Android device You will love it It will give you a shell with most of the tools you will probably normally use easily to install It does have some API connections that are supposed to be able to do a lot of stuff interact with Android Some of them work some of them don't one of them is being able to grab images And I think maybe video from your camera on your Android device has not worked for me I always get black screens black images or very low contrast Images and this seems to be a common problem with a lot of phones with the termux Software to where it's just the aperture not the aperture, but the contrast something is very low You just get you just get black images So I've tried looking at other options, you know on a regular Linux device if you are root You can just usually lots of times just dump the raw data from certain web cameras Can't do that at least not on any of my Android devices I then I tried to look into creating my own Android apps and I hate that Again, I could go on to about this forever APKs so I can write stuff and see python shell scripts Java script all this stuff and get to run on an Android device no problem I can write them right on there without having to install anything I can do GUI interfaces again with HTML for any of these programming languages right on there But if you want to create an APK like actually create one, you're gonna have to download the SDK Which is I think it's one gig File download and then it uncompresses to two and then if you want to write something in C Which is what I was looking at you need the NDK Which is a 2 gig file that uncompresses to a 4 gig file on your computer And that's just just to write a hello world you need that and then to create an APK hello world in in Java It's like you need like 10 different folders with multiple sub folders config files and all this junk Just to say hello world on the screen and it is ridiculous and it's aggravating I shouldn't need anything special. I should be able to write code and just push it to the phone I shouldn't need anything special the phone should already have everything it needs I shouldn't have to download anything to my desktop I should just be able to write code and push it over to the phone But as far as APKs that doesn't go and to interact with certain features of hardware in Android It's the best my knowledge you need to do that because of app permission rather than user permission Which again is something that I think is ridiculous giving certain applications certain permissions is just stupid But I tried and tried I wrote tried writing my own application I use example codes that was supposed to work and they would crash on me or they were older versions of Android which is also ridiculous that it's changed that much. I also downloaded The I think was open cam open cam is an open source It was either use open cam or simple cam. They're both open source applications I want to look at the source code and again. They are just I don't know if all Java I don't write stuff in Java often. It's just a mess. You got a hundred different files config files I would look at the GUI XML file. I go, okay, this this is the drop-down It's called this I would search the rest of the code and not be able to find anything Recording it anywhere else in the code long story short. I Gave up on it. I tried asking people online for help no one responded if I'm gonna do a dash cam I think the best bet is to spend eight dollars on an ESP 32 that has a built-in SD card And that way you have a device that has storage and Wi-Fi and then you can access it from there It's very sad that that's the state and you would think that Android devices would be a little more usable But that's where we're at with that at least for me if anyone knows any better, please let me know But I went over I even looked into Compiling my own Android kernel to see if I can change permissions and access the camera directly But I couldn't get it to compile properly for my phone That's enough about talking about that. Could you do some videos on magnet reader writers and port forwarding? Person bought a domain and has have trouble getting it to port to his or point to his computer as far as magnet readers I've already done that at least ones. They're hit devices I have been meaning for about two or three years now to do a whole thing on hit devices and Because the drawback of the ones that are hit devices they act like keyboards is that you actually have to be in the field You want to fill in I have written scripts that allow you to swipe the card No matter where you are and have it run a certain command or put that text somewhere as far as writing to a magnet strip I've never done that because the writers are more expensive than the readers You can get a reader for like ten bucks the writers are probably seventy five to a hundred dollars And I really don't have a need for that as far as the port forwarding main reason I've never done a video on that before is because you go into the router settings and they all look different So me doing a tutorial on this is what it looks like wouldn't really help anybody But my suggestion is go into your router look for port forwarding Sometimes it's under gaming because you need to port forward ports for certain gaming applications And basically it's just usually they'll say you'll have a column for your external port Where you want to go what ip you want to go to and what port internally you want to go to And once you do that it should work unless your isp is blocking certain ports I have had no problem. I've opened up port 80 on my Network before to test things out and it's worked But I don't leave it open all the time because It might draw attention comcast might end up blocking it in the future But check your isp. They might be blocking the port you're trying to use because I've heard of isps doing that We'd love to see a clone zilla type android backup Then wipe all the partitions put linux on it Then put everything back on the way it was stock Probably mission impossible as far as backing up the whole android system. I've done videos on that before Using fast boot. Oh no fast boot will allow you to push the partitions back Basically once you get like something like twerp installed you can dd or even just adb get partitions But although I do recommend trying to get stock copies as well in case your copies go bad But it's very easy. You you would back them up just like you would any partition On linux, but there's multiple partitions. So make sure you get them all if you're going to do this I as far as getting linux install on there technically again android is rain linux It is a linux os and with the exception of some stupid security decisions they made You can do or use it like a regular linux system My suggestion is because even if you wipe it and you put linux on there your big issue is going to be drivers You're not going to be able to get all the hardware working Unless you really know what you're doing You can get linux or you know your regular linux distro such as debian So as long as it supports your architecture which debian supports arm architecture You can get running in a true route, which is not emulation. A lot of people think that's emulation You're really running the debian file system. You're just using the android kernel, which is you want for your hardware support But I don't even bother doing that anymore. I used to but I really suggest using termux termux will let you do all your shell stuff It even has like I said the apis allow you to interact with android somewhat doing things like Copying and pasting stuff in the clipboard doing little pop-up notifications But already has most the tools you'll probably need and gives you the ability to install all this because it will let you use it Like a regular linux system if you want You know for some reason to have a full linux desktop on your phone I really don't see the point to that but you can do that Again through a true route. There's lots of projects out there and linux. I think is the one But I think termux actually has some options to get that up and running as well. I haven't really played with that I've done the whole true route thing on phones years ago But I really just haven't had the need to once I had termux installed. So check that out system 76 Opinions cool stories from being a firefighter Uh opinions on system 76. Those are the people who make linux laptops, right? I don't have any I've never bought any of the devices. I've never really looked at I think I went to the website once and just like most systems that come with linux pre-installed. They're just expensive I personally think uh from the software side of things Linux runs on most devices already. And I think that's uh more of a goal We should get when it comes to more of these lockdown devices We shouldn't be trying to make hardware to fit linux. We should be making linux to fit hardware Not that it's bad to make hardware that comes with linux pre-installed But uh, I think it's more important to get These devices that might be a little bit harder to get linux on It's like we were talking about with android if you could wipe android and put a full Linux to show on a phone You know debbie and or whatnot without the android back end. That would be great And I think that should be more of a goal than making hardware specific For linux as far as firefighter stories. I probably have a lot. I can't really think of any right now There was one from years ago that I think I already did a video on years ago about putting out a fire That there was a guy sleeping in this warehouse And uh, he woke up and walked out right in front of me Thought there was a hurricane because he was getting sprayed with those That's a short version of that story, but uh, maybe I'll tell more in the future This gentleman just asked me to talk about linux on mobile devices linux and any level automation together Smart home in your vision Your personal linux tips. Okay linux on mobile devices as we kind of talked already Android uh, it's not I I really hate certain aspects of android As I was talking about earlier creating apk's Um, and and really the back end of linux. It's just really weird the whole file system structure It's like it seems like they were Trying to do things temporary. They just left them like that. It's just a mess where I think a regular standard Normal linux system the file structure makes a lot more sense I think it'd be great if the back end was more like ray linux system I think android, uh, as far as its interface, I think that's where where android really shines But linux on mobile devices, you know phones right now I think your android as long as you get a device that you can unlock the boot loader If you can unlock the boot loader, then you pretty much have the freedom to make whatever changes you want So my suggestion is if you're going to get a phone or a tablet Go to uh lineage os or was the other one e foundation See what devices they support and buy devices that they support because if they're supported then that means they Should be able to be unlocked and you can at least put a free version of android on there Plus i've been picking around with android a lot and i've learned a lot about how to get rid of a lot of the proprietary Applications on certain partitions. I need to do Storyles on that, you know the stuff that you can't remove that you can only disable and some you can't disable They're actually pretty easy to get rid of once you've unlocked the boot loader Again, once you unlock the boot loader. It's like a desktop computer You can make any changes you want as long as you know what to do Other than that chrome os. Okay, so I I bought a chrome book about two years ago. I got it for christmas And I decided to give chrome s a chance for a while You can run android or yeah, you can run android applications on chrome os And you can run linux applications on chrome s But the thing is when you're running the linux applications on chrome os It's actually doing some sort of emulation Now you can install crouton which allows you to do a linux true and that's how I kind of know that uh the linux applications in the chrome os interface is a Some sort of emulation because if you actually go to the shell which is easy to get to on a chrome book You can use the the uname command to see What kernel you're running and when if you open up a shell in the linux applications on the chrome book First of all the linux applications on chrome book take forever to open the first time you open them and then they run Faster after they load up faster But if you open up the shell and you run that you'll see that you're running a different kernel So it's not running the actual kernel on the device. It's doing some sort of emulation Which is probably why it takes forever to load that first time because it's basically booting up a whole another system in the background Um that being said, uh, I think most I can't really say I've only got one but most chrome books um You can wipe and install a full version of linux on there and just get rid of the chrome os And if you can't you can at least get the crouton running um, so I I have noticed uh, I was at walmart the other day and they had a Chromebook tablet That my mine is a pc convertible tablet, but it's huge This was a 10 inch tablet with a keyboard disconnects and then it's kind of lightweight like an android tablet But it was running uh chrome os as far as tablets go if I can get one with chrome os Over android I would since one it will run your android apps if you really want that But it from my understanding for at least my experience It's very easy to at least get a chur route And get a full desktop running that seems to run better than I've had experiences with android in the past running You know x org if that's the way you want to go which on a tablet I I I would go that route smart home and automation Uh, I basically like everything else in my life So a lot of people will talk about like when I've done videos on like installing remote switches and controlling my My tv or my lights with my phone. I get a lot of complaints from people going Oh, I tried a smart light bulb and then if I left my phone upstairs I've got to go go all way upstairs and come back down just to turn my light on and off Okay, so a lot of the complaints out and then you've got these services that you need A lot of the complaints about smart home stuff I get is from people making choices in their hardware that are limited If you don't have full control over any device, then you're going to have problems at some point They're kind of designed like that My suggestion is learn about es2 chips or esp chips esp a266 or the newer esp 32 chips very cheap very easy to use And you can create and automate a lot of things and you are in full control And as far as like the lights things All my lights can either be controlled by a light switch Or my phone or really any device that's connected to the network because I just use http requests for them Uh, so you could give me a windows 95 machine with netscape navigator And I can turn my lights on and off with it if I can get it on my local network So my views as far as smart home and home automation stuff is just like everything else Make sure you choose things that you have full control over so you can make any change that you want and make it work The way you want otherwise you're you're going to have problems You're going to have complaints or you're just going to become complacent and just be like that's the way it is Personal linux tips, uh, I would say, you know as far as learning linux Learning anything as I've already said just don't be afraid of it Don't be afraid of breaking because if you break it that just gives you an opportunity to fix it and learn something new Okay, let's break this one down into four parts Do you think rolling release distros are the way to go these days for non-server use? I would say that's personal preference But on all my local machines that other than my servers I run debbie and sid which is a rolling release I love not having to Do an upgrade, you know every year or two or being left behind And I don't necessarily recommend sid for everybody Obviously you wouldn't want to run sid on servers because it's the the unstable version of debbie But I've had very little to no problems running it on my desktop for probably at least eight years now I've been going unstable with it on my laptops and my desktops and a few hiccups in the road here But again, uh, it's a learning process But at the same time if you asked me the same question 10 years ago I would have been like what's a rolling release because I probably didn't know But I also back in the day and this is kind of because I was coming from a windows world But it still holds true on linux is it's kind of nice to start off from scratch every once in a while And just you know start with a clean system because You're going to have config files from programs you've installed and uninstalled or you know Cached files from stuff and unless you're really good about cleaning that they can build up after a while So, you know, sometimes it's nice just to wipe your machine start from scratch So it's just a personal opinion What is the biggest usability issue you find in linux at the moment? Either for you or others? Absolutely none. I know I'm sounding like a linux preachy guy, but I can't think of anything that um, I Prefer in windows or mac os or whatever other distributor operating system out there linux does everything I want it doesn't know why I want because it lets me do it however I want And I can't think of anything that I've heard of that I can't do on a linux system Um, and I'm sure there's cases out there where there might be this niche piece of software That does something that some rare person needs that can only be run on another operating system But most time when people say oh, I need this piece of software. I have to have this piece of software It's usually that they don't there's usually an equivalent that usually works better on linux But they're used to certain things and I always say try not to get too set on anything Um, you know if you really really love livery office, you know play around with other software You know other office software just in case for some reason you don't like that tomorrow You can switch to something else just don't ever feel like you're dependent on any piece of software If linux went away, I guess I'd go to bsd next. I've never really used it, but uh That's how I feel Suggestions on being a better public speaker Confidence and that's true in all aspects of life. Whatever you do do it with confidence You're going to mess up. We're all going to mess up. We're not perfect people except that Be confident with it and when you mess up, it's not going to be as big of a deal as if you're not being comfortable about it People are going to notice it less if you're being confident in what you say Don't be cocky. Don't be prideful Realize that you're not going to always be right and just move on and again That's true with all aspects of life If you are certain about something and you truly believe something Stick with it. Argue with someone. Argue with them with good points. And if they prove you wrong, accept it Don't keep fighting because that's where you stand But just be confident in all that you do and you're going to be a better speaker You're going to learn better because you're not going to be nervous about learning the wrong thing And you're just going to go further in life. It's one of those things, you know, I guess it's easier said than done It seems to me. That's like I see people who aren't confident and it's just like just just move forward and be confident Um, so I don't know what to tell you other than that But I hope that helps The last little part of that didn't seem very confident did it? Uh, this last part's a little embarrassing for me to read but how can it be an IT guy and also well built well groomed like you Etc. I am pressed and surprised when I see you on camera. Thanks Well, thanks to you too. Uh, well groomed. I don't know. I I guess I don't know if you know this I cut my own hair. I have most of my life So I'm surprised that uh, you consider me well groomed as fell as far as uh, well built Um, I worked out when I was 10. I bought my first comic. It was a Daredevil comic in it He did some training and I thought hey to be a superhero. You got to work out. So I started working out I've been working out since then. Um, I don't know what else to tell if you want to be well built You got to you got to work out well groomed, you know take showers Okay, what is the asterisk when you run the command fc-l? 50 I may not be 100% accurate on this because I had never ran this command or uh notice this before so fc-l 50 Brings up basically part of your history the most recent things in your shell history And um, I realized when I ran that like he said certain commands have little asterisks in the second column And you want to know why but I noticed it was all stuff that was recent but not all of them And what I've discovered is and my first thought was and I kind of tested this out was Those are things that were recently added in a shell that hasn't been closed out yet What I mean by that so I use z shell I'm not sure what shell this person's using in bash at least by the default settings You run commands and they're logged into history, but they don't log into history until you exit out of that shell So if I have two shells open and I'm running commands over in this one I go over here and I try to go up in the history It's not going to show the commands from that shell now in z shell at least with my configuration As I'm running commands every so often it updates. I don't know how often updates I know it's not immediate, but if I go to another shell the commands I've been running in this shell will show up in this other shell even though I haven't closed this one out yet So I was thinking maybe that asterisk are the ones that were recently added in a shell that wasn't closed out So I tested it out. I opened up a couple of shells ran a couple of commands ran the fc-l 50 command And the recent commands I ran all had asterisks in it I closed out one of the shells Ran the command again and all the commands that I had run in that shell now don't have asterisks in them I closed out all the shells open up a new shell ran the command again and none of them had asterisks So that's my assumption is that they're somehow marking commands that have been run But they're they've been running a shell that's still open But I didn't actually look it up. That's just from what I tried When is your birthday your birthday is the day you were born? How do you prevent DDoS attacks against a linux router? How can I close ports with IP tables and such? My router is off my phone and I have a static IP subscription to it But I have a linux kernel and pseudo access I really don't have a great answer for this one. Um as far as DDoS attacks It's something I've never had to worry about. I guess you can try blocking Certain ranges of ports that you know, if you know, you're going to be connecting from a certain area If you're the only one accessing this stuff remotely, uh, you can probably set a white list of IP tape IPs Um IP tables is something I've done very little with I've done one or two videos on it on adding and removing rules And doing some port forwarding. Unfortunately, I'll stop my head. I don't have any suggestions for you. Sorry How I keep ssh connection alive is always disconnect Connection to root host close. Well, if you google it, you know keeping ssh connections alive You'll find a lot of uh websites basically talking about in your ssh configuration There's a uh a live option. I think it's called it's it's a heartbeat basically you can set how many seconds it sends a signal To the server, uh, and it will keep it open and so you can make that number smaller So it sends more signals when you're not using the shell It will send a signal every once in a while to keep you connected Now if your network's dropping out, uh, I don't think that's going to help too much I do remember a while ago seeing a couple of people talking on different websites about another tool that Will do ssh connections for you and supposed to do a better job of not losing connections But I personally have my computers here at home connected to my films by chris server 24 7 And it rarely disconnects. The other thing is if you are continuously getting disconnected Definitely look into using tmux not term mux that I was talking about earlier, but tmux t m u x It's kind of like screen screen would be another option And that will allow you to keep your shell and processes alive even if you get disconnected So next time you reconnect everything is there waiting for you exactly how it was before you left And you can also connect from multiple machines and leave all those connections open But still be interacting with the same shell Okay, three more comments Please can you show how you can set bios clock to start up the pc and then run sync thing Command line version to sync files with android phone at say 3 a.m Then shut down pc all automatically Hmm. That's a good one I have never heard of a bios settings that turns the computer on at a certain point Certain point. I guess that could be possible, but I've never seen or heard of that One thing that I have heard of you know is that I've never done myself is Starting up the computer with a network connection. This is called wake on land It's something I have not done But I've read about before needs to be done through a physical ethernet cable as to the best of my knowledge It can't be done over wi-fi And it takes some configuration and your computer spiles either supports it or not I think you also probably need a network card that supports it And then you can have another computer set to turn that computer on And then you can just have a script running to start up sync thing when the computer starts and then shut down After a certain amount of time I'll think is sync things constantly Syncing so I don't know if you can set it to shut down when it's done because it's never done But you can use an rsync command and say okay rsync and when the rsync is done then shut down Another option. I guess would be you know to turn on a computer It's just you know pressing a button which is also just connecting wire so you could set up like an arduino With a clock and have it at a certain time trigger the power on again And then the rest can be done with scripts running your sync program and then shutting down after it's done But as far as just saying computer to automatically turn on by itself I have not heard of that but people can comment below and let me know if I'm wrong I'm sure it might exist. I just don't think most pcs have that built into the bios I'd really like the business I work in To use linux on their computers. However I have a conflict before suggesting it because they have to use programs That are only available on windows. Most of the ones exclusive to windows they have One week of the year except for autocad which is used for simple drawings on a daily basis What infrastructure would you suggest? Yeah, isn't that the question trying to get a company you work for to switch to linux It's probably not going to happen. First of all all that we need these applications is not true There's plenty of open source cad programs that run on linux You know, I can't say for sure if there's a feature they may need that's in autocad only But getting a company to switch to linux, it's they're either going to or they're not Unless you're in the position of making that decision getting someone to switch is is probably not going to happen Because they all feel like they've been they've been brainwashed through commercials saying oh Windows is for business. You need windows for business. I know so many people who own companies who Had to buy upgrade computers and spend thousand dollars on new computers just to get the new versions of burning and running just so They can get the new version of access I've known people who have used access for two decades now And they have to keep upgrading their computer to upgrade access And I know someone who bought a new computer once had to upgrade the new version of access Because the old version didn't work on the new version of windows But they couldn't just upgrade to the new version because the old version they had this was so Old they had to buy two copies of access to upgrade their files to a medium Version of access and then to another version of access and it's just a mess But the people are so brainwashed into believing that's what they need to do and access is just databases Databases are are nothing, you know unique or special But you get locked into these proprietary softwares and you feel like you have to but I can't tell you what to do You know other than just whenever you can point out where their software is failing So i'm editing this video and realize I didn't answer the last question on this comment Which is basically how do we get uh companies like uh adobe to make their products for linux? And my answer is we we shouldn't want them to the linux community Why would we want more proprietary software on our open source system on our free systems? You know a lot of people they're dependent on these adobe programs and adobe programs If you ask me are horrible and many of them Uh, I mean basic things like adobe pdf reader Is so horrible compared to and has so many security flaws compared to other pdf readers But why would you want to be locked into some proprietary program? Most people be like oh, I need them because I it's what we use Uh, I be I I bet most people will be hard pressed to give me an answer if I ask What features in those programs do you need that we don't already have on linux? And i'm sure there's probably something there But uh most people who say they need it don't really need it They think they need it because they haven't looked into the open source alternatives Which uh tends to be better in many cases You know in 10 years ago video editing on linux and special effects, you know using linux systems was a little difficult But between blender and kaden live there's really I can't think of anything that someone can do on a Windows system that they can't do on linux system and that's just where it comes to but if you start Moving all these proprietary programs over to linux people are going to start using them And then linux is going to start running like crap just like windows does and we don't want that That's why most people get away from linux if you want that stuff if you don't care about software freedom Why are you on linux and the last comment is did I miss this? No, you didn't you made in time just in time Last one and it might be a little in left field if Wehcb supports adebian framework An app written in node Can I run google play apps? from the Wehbc kernel like mics Five I don't know and that ends that no, I'm just kidding. Um, I don't really know So we hbc is we homebrew community. I had to look that up And the question is basically if you can get Basically linux running with node. Can you run google play apps? Okay, so my first question is what do you mean by google play apps? Are you talking about, you know, android specific applications? Or are you talking about the app store? Or are you just talking about android applications in general because you get android applications outside of The android play services And so if you have linux, can you get android Apps running on a linux system natively? I feel like I've heard them talking about that eventually happening And I know chromebooks can do it But can I just start up an android app natively on a desktop linux? I mean if you're running debian linux on the device then I would say yes But if you can't then you can't And I really don't know so I wish the final question. I had a better answer than that. Anyway This took a lot longer than I expected Um, and this is a very long video and I apologize for that unless you guys liked it Let me know you made it here to the end Probably most of you didn't but those of you are here at the end. Let me know I thought about maybe splitting this into two videos Um, but then I decided just to do it all in one video because most of my videos are short and maybe a Longer video will do well Maybe you all thought this was boring Also, do you think there should be music in the background? I always feel like there should be music in the background So you drowns out the humming of my desktop computer But then people always complain that there's music in the background So I didn't put any music in the background of this video unless I changed my time Mine between now and the time that I finish editing this video. Maybe I'll do two versions. Anyway Thank you for your questions. Probably do this again in the future I thank you. I wasn't sure if I was going to get any comments or not and I got plenty of them So thanks again. I hope I answered your questions and I hope you too enjoying my videos Have a great day