 Okay, today we're going to compile busy box for ARM, but on our desktop computer, so we're going to cross compile. So we're going to need a cross compiler. Let's use GCC ARM Linux. So let's go ahead, sudo apt install that. There's a link in the description of this video to all these notes, so you can copy and paste from there. There's going to be other dependencies, but we are going to use apt source. So I did a video on this recently. If we go into so sudo vim apt or etc apt source list, you can see that I have enabled source repositories. I went over this in a previous video, but you just need to uncomment if it's already commented out if you have this in there. If not, just copy and paste deb source, the repository you want to use, and you can just go main, or if you're running a specific version of Debian, you can put that in there like I'm using SID. Once you do that, you can then install an application sudo apt install apt dash src, and that will download an app and install apt src, which will allow us to pull down the busybox source code files from the Debian repositories. Now you can go and get the busybox code from the busybox.net website. They also have some binaries there, but they tend to be pretty old, especially for ARM. What we can do here is we can say app source install busybox, and currently I'm in an empty directory that will download the source code to the current directory, but also pull down any dependencies we need. It may ask you for a password if it needs to pull down any files for compiling it. Now, if I wanted to build it from my system right now, I can run the same command, but instead of install, I can say build, and that will compile the binaries and create a deb file for me that I can use to install. I want to cross compile it. So we're going to use that compiler that we installed, and what we're going to do is we'll move into the directory of the code we just downloaded. So here's the busybox code, and we're going to use make for this. So we're going to say, first, we're going to set up some configuration. We're going to say use make. We're going to use an architecture of ARM. We're going to cross compile using that ARM Linux GNU compiler that we installed, and we're going to do def config. So we're going to do that. We'll take a moment. It's just going to generate some files for us here. Once that is generated, there is a hidden file dot config. So if we were to cat out dot config, you can see some options here. There's an option that we want to apply into there. So you can use a text editor or you can just append it using echo. We're going to say config static dash y. What that's going to do is it's going to make sure that when we compile it, it makes a static binary, so there's no dependency. So it's a single binary file and it's not linked to anything. It's going to make it a lot easier for us to copy it over to our Android device or our modems or TVs or whatever ARM Linux device that we want to copy it to and not have to worry about linking it to stuff. Okay. So now we are going to compile it. And this is the command for compiling. We're going to say make again. We're going to say ARM. We're going to use the ARM Linux compiler and then dash J will allow us to use more than one core. Now I currently have four cores on my CPU, but you may have more. You may have less. And what you can do is you can run the command NPR OC and that will just output the number of cores you have. So at this point, it's going to use the max number of cores for me. It's going to be four. And it should just take a moment to compile a minute or two. And again, if you don't know what busy box is, maybe I should have mentioned this at the beginning of the video. I've mentioned me at times it's on many, many devices. If you have a TV, even if it's not a smart TV, it's probably running Linux and probably has a copy of busy box on there. Your phone probably has busy box or in some cases toy box, which is not as good in my opinion, but basically it's a single binary that has almost all the core tools that you will ever use. You know, grep, AUK, said DD, it even has a built in shell. And lots of times they're compiled for these arm devices, but they don't have to be compiled with all those tools. So they might be stripped down. So what's nice about compiling your own is that you can compile it with all those tools. And you can have a web server, a FTP server, a telnet server. I know those aren't the secure is because they're not encrypted, but there are options there for you. And there's, there's, there's many, many tools that we can build in here and we're just building them all in here by default. And at that point you can copy busy box to your device and, and have all these tools for writing your scripts, right? And that's what we're doing right now, but we're compiling it on a desktop and we're compiling it for arms. So now if I list out files in the directory here, you can see there is a busy box right here. And if I say file and give it the name, you'll tell me what type of file it is. You can see here that it's a 32 bit executable for an arm processor, it's statically linked and it's for a Linux system. And that is it. You just copy that binary to your device, put it where you're going to run it and you have all those tools. And to show you busy box on my system, these are the tools that you will now have on your, whatever device. As long as you have room. And again, if busy box, it has all these tools and it doesn't have them, but it has vice, so at least you have a text editor, it has watch, watch dog, WCW get, which, who, who am I, you can compress files, uncompressed files. And if we list out the file we just compiled, which has all those built in, you can see it's two megabytes, which is actually kind of big. Like I said, last time you see busy box, it's closer to a megabyte or maybe even smaller. And that's because they stripped them down and you don't have all the tools, but if you want all those tools and those devices, you just compiled it on your desktop. Of course you compile it on the device too, but then you have to get all the dependencies and compilers on there. And busy box, again, you can get some binaries from the official website, but they tend to be pretty old. You can get them other places, but if you don't know who compiled them, you know, they can, there could be malicious code in there. So pulling down the source code from the Debian repositories and building it this way, as you saw, it was super simple. If you check out the link in the description, I have all the notes on the stuff we just did, as well as some notes on pushing it to your Android device. And that is it. Please visit filmsbychrist.com. That's Chris at the K. There's a link in the description. If you enjoyed this video, keep on watching, like, share, subscribe, check out my Patreon page, patreon.com, forward slash metal X 1000. There's a link there. There's also a link on my website. Again, filmsitechrist.com, Chris at the K to a place where you can support me that way. You can support me with PayPal or Libre pay. And if you can't support me financially, again, liking, sharing, subscribing, commenting, all helps. And I hope that you have a great day.