 going to be looking at creating a Wi-Fi hotspot with pretty much any computer. To do this, you'll have to have a computer or device running Linux with two network cards, whether it be two wireless cards or a wireless and a wired connection. One wireless connection is going to be allowing other devices to connect to your laptop as if it's a router and the other connection will be allowing them to access the internet through your computer. If you enjoy my tutorials and would like to see more, please think about contributing to my Patreon account at patreon.com forward slash metalx1000. Now as you follow along in this video, you may help you to go ahead and look in the description of this video and download the connected script. It's a script I created to automate this full process, so you can either just run that script on a Debian-based system and it should in theory work, although I've only tested my own systems here at home, and you can also look through it and follow along as I'm talking about this in the video and it may help you understand what's going on a little bit better. Again, that script has some default settings that you might have to change, like whatever your network cards are labeled, but it should help you get through this process. And again, this is a good learning experience to show you how to do things manually, especially if you don't have a GUI interface or a network manager that has this enabled. Let's say you're running a Raspberry Pi and you want to turn it into a wireless network. This is a great way to do this and it's not that difficult, just a lot of configuration files to set up. Now you may wonder why would you want to set up your own wireless network based on your laptop? Well, people do it all the time with their smart phones setting up hot spots that their friends can connect to or they can use other devices too, and you can do the same thing with a laptop. In fact, those phones are probably using the same service in the backend, host ADP, and there are lots of uses for it. Just be creative. One of them is sometimes I like to have a Raspberry Pi that's controlling something that isn't near a regular network. And this I can set up using a cheap Wi-Fi dongle and use my phone to connect to that and have a web-based interface to control that Raspberry Pi and whatever the Raspberry Pi may be connected to. So that's just one concept that I use it for, but be creative and have fun, and I hope that you enjoy this tutorial. Now the technique we're going to be using today is a manual way of doing it. We'll be installing a few packages and setting up a bunch of configuration files. If that's not what you're into doing, just let you know that a lot of network managers nowadays on a lot of desktops, such as if you're using Linux Mint or Ubuntu, will already have an option in it to allow you to create a wireless network using that card in just two simple steps. Just a create network and whether you want to have a password protected Wi-Fi connection or not. Now not all wireless cards allow this functionality, so you have to be sure that the wireless card you're going to allow other people to access has this functionality. You can Google this before buying a card and also try to put a link in the description to a cheap $10 USB dongle that you can get that I know works. Now the first thing we're going to have to do is install two packages. The first will allow other devices to connect to your Wi-Fi card and the other one is used to assign IP addresses to other users. Now we will be using a Debian based system on this, so you can use aptitude or apt-get and to install these packages. You could also use whatever package manager you prefer. Next we'll be editing this configuration file and replacing its entire contents with these lines. This config file will be setting up what IP address ranges you'll be issuing to other devices as well as what DNS servers you will be issuing to these users. Next we'll be replacing the contents of this file with this single line. After doing that and saving that file we'll be using IF config to issue an IP address to our new router. Next we'll be configuring our host APD config file. In here we'll be setting the name of our Wi-Fi so that when other people connect they know the name of your Wi-Fi and we also be setting things like the channel which can go anywhere from up to I believe 12 although you'll have to check what country and there are some restrictions on what channels you use. Next we're going to be editing the file for our interfaces and we're going to make sure that the IP address for our Wi-Fi connection stays the same as well as making sure that any other network configurations we want to start at startup are configured correctly. So let's edit this file and replace everything in it with the contents of this. Next we're going to be telling host ADP what config file to use by replacing the contents of this file with this single line. After that we're going to enable forwarding on our network card and we're going to use IP tables to tell what network card to forward to which network card in what events by running these lines in our shell. Once we have IP tables all set up telling which card to forward to which card we want to make sure that those settings are saved we can do that with a single command this command right here and that will allow to make sure that when you restart these services that everything is forward correctly. Now again these steps are more for advanced users and I hope you're able to follow along. If not again don't worry in the description of this video there is a link to a script that I created it's not the cleanest script in the world I kind of created it for personal use but I'll share it with you. You should be able to run this on a Debian based system and it should install the packages you need and set up all the config files. By default the script steps use ETH0 and WLAN0 so if you're going to be using cards that are issued different names be sure to change those in the config files other than that the script should work if you have a supported Wi-Fi card and again if you're going to be using two Wi-Fi cards you'll want to change one to WLAN0 and the other one to WLAN1 or whatever your Wi-Fi cards are labeled on your system. Again that script is in the description of this video. Go ahead check that out and have fun setting up your own Wi-Fi networks.