 Hello, today we're going to be looking at creating QR codes. Many of you probably know what a barcode is. It's lines that can be read with a scanner or a camera of some sort. QR codes are the next generation of that. They allow you to store a lot more data. You can store a large amount of text in a little square. You've seen them on products, business cards, a bunch of stuff. And they're very, very handy. I did a story a long time ago on a program called QR encode. QR encode should be in a repository. So if you're on a Debian-based system, you can sudo apt install. You've got a spell install, right? Install QR encode. If you're on Debian, Ubuntu, Linux Mint, use whatever package manager you like. Once it's installed, it's very simple to use. You just type QR encode, give it some text, such as HTTP, go on, publish, slash films. You only do two forward slash films by chris.com, which is my website. And then you want to give it the type of file you want to output. So I'm going to do tpng-o and I'll just put it to output fpk.png. And hopefully if that was generated properly, I should be able to use a image viewer. I'll use, I'm assuming it's how you say that. So I'm going to use to display this png file and there's a QR code. And let me just make sure that I typed everything right and it generated properly, grabbed my cell phone, pointed at that. And sure enough, it says, film beside chris gives me the link there. You should be able to scan it watching this video if you're watching at high enough resolution. I'll close that. So that I've shown in the past and there are many file formats you can output to. But let's say you're running this on a server or you only have a shell, you don't have a GUI and you want to be able to display it right in the terminal. You want to display your QR code. Well, you have options. And so I'm going to do the same thing, but I'm going to erase my output file. And for type, I'm going to change it to utf8. Now if I do that, boom. We have a QR code right here using Unicode standards that you can scan with your phone or whatnot. So that's very useful. You can do it right there in your shell. And another option would be if for some reason you're running a shell that doesn't allow Unicode standards, you do have another option, which is plain old ASCII. So you just change this to ASCII. Probably doesn't have to be capital, but I'll capitalize it all. And now you get this. Let me small down. So you wouldn't think that this works, but it does. Now my phone has a little trouble scanning like this, but if you do the same exact command, but do a lowercase i at the end, you hit enter and it inverts it. And my phone can read this a lot easier. And it's just using the pound symbol and it's creating a QR code in ASCII. And again, you wouldn't think this works, but it does. I can point my phone at this. It scans it and we get the bar code on there. So there are two options to output your QR code right there in your shell script. I use this in a lot of my scripts that I'm gonna be looking at here soon. But there are a lot of options if we were to type in man, qr in code, and look at the man page here. It's a very helpful man page. You can see that you can do the output to a file. And if we come down here, there's a lot of options that we even play with, but you can set here the DPI, which is nice because you can set kind of the size of your QR code if you're outputting to a PNG. I don't know how that would work if you're working right in the shell. But type, look at all these different file formats you can save to as we went over ASCII, ASCII inverted, UTF-8, which is the Unicode standardization. You can also do ANSI, UTF-8, which I believe UTF-8, the point of that was kind of to replace this. The output of the shell looks the same. For me, the only difference that I know, I notice. So if I was to run this, I get it. And it's in the color of my theme of my shell. If I was to do the ANSI, something national standard, I don't know. I don't remember exactly what it stands for. It does the same thing just in white. It doesn't match the theme. So I don't know the benefit of one over the other other than I'm pretty sure, I don't know. I'm not even gonna guess. But there's a lot of help in here and there's a few examples here on ways to use it. You can also pass it a text file. One thing that I do commonly is if you don't give it a string, you can pipe stuff into it. So if I was to run my date command, I can pipe that into here and there now is a QR code with my time and date that I'm recording this. So you can pipe text from a command into a QR code and then scan it with your phone if for some reason you need to do that, which we'll talk about more as we get into utilizing this stuff because there's a lot of scripts I have that I've created shortcut keys on my system. I press shortcut key and I can get a QR code to scan to my phone, which is very useful for passing stuff to your phone. Anyway, that's a quick look. Again, QR code, QR code does a lot of great things, outputs to a lot of formats, very, very useful. I hope you enjoyed the tutorial. If you did, think about liking, sharing, subscribing, commenting, all that good stuff and visit filmsbychrist.com. That's Chris at the gate. You can check out the link in the description or point your phone at this QR code right now and it'll bring you to my website where you can search through all my videos from this channel and my second channel, which is on hardware. If you like it, be sure to like this video, comment, share, subscribe, all that good stuff. Support me over at patreon.com, forward slash metalx1000 and there I would love to actually do that. Patreon.com forward slash metalx1000 so go ahead and scan that QR code if I typed everything right and it should be into a place where you can become a supporter and get early access and downloadable videos from me. Thank you for watching and as always, I hope that you have a great day.