What's going on guys.this is me Mehedi Shakeel
here and you are watching my youtube channel
sstec tutorial.so guys today in this video
i am going to show you that how you can make
a wifi router using raspberry pi 4.yes guys
after watching this video you can make a wifi
router at home using any raspberry pi board.you
can use raspberry pi 2,raspberry pi 3,4 any
raspberry pi board but except raspberry pi
zero.because raspberry pi zero doesn’t have
wifi card.so guys without talking too much
lets get started.don't forget to subscribe.subscribe
my youtube channel sstec tutorials and stay
connect with my channel.ok guys so these are
all the devices we need to make this raspberry
pi wifi router.you will find all of this devices
best buy link in description below.as a main
board i will use this raspberry pi 4.4 gb
variant.you can use any raspberry pi board
except raspberry pi zero.for the OS storage
i will use my class 10 sd card.you can use
at least 4 gb to 8 gb of sd card.to connect
the sd card with my computer and flash the
OS i will use this cheap sd card reader.also
we must need an ethernet cable to connect
our pi with the internet.first insert the
sd card into sd card reader and connect it
with your computer.ok now i am in my computer.before
start you need to download the raspberry pi
OS and imager for it.so open up your browser
and search for raspberry pi.go to this first
website.now from here you need to download
the rpi imager or flashing tool according
to your operating system.i had already downloaded
and installed it in my computer.now scroll
down and click on raspberry pi OS.raspbian
OS is now call raspberry pi OS.from here download
any of this raspberry pi OS.you can use lite
OS or full OS whatever you want.i had already
downloaded them.ok guys now open up raspberry
pi imager.now from here you need to select
the raspberry pi OS.if you didn’t download
the OS file you can also download and flash
it from here.but i had already downloaded
them so i will choose other option and select
the raspberry pi OS.now here select your sd
card then click on right.and it will start
flashing the raspberry pi image on your sd
card.ok now flashing is completed.simply close
the imager and eject the sd card from your
computer.and also reconnect it.now just open
the book directory and simply create a file
name ssh without any extension.and save that
file into a book directory.you can use any
text editor for it.now remove the sd card
from reader.and insert the sd card into raspberry
pi.then connect the ethernet cable with your
router and connect other end with your raspberry
pi to get ssh connection into a pi using your
computer.now connect the USB cable to give
power on raspberry pi.now use any type of
network scanner like angry ip scanner or others
to get the raspberry pi ip address.i am gonna
use this net discover cli tool to do it.here
you can see the raspberry pi ip address.now
you have to use any ssh client software like
putty or also you can use your default command
chrome or terminal.just simply type ssh space
pi and your raspberry pi ip address and get
connect with ssh.the default user name is
pi and password is raspberry.now here you
can see i am into raspberry pi ssh terminal.now
update your raspberry pi using the command
sudo apt update.then you need to install dnsmasq.to
do it type this command apt install dnsmasq.now
you need to install the hostapd.type apt install
hostapd and hit enter to install it.after
that you need to install gittool.type sudo
apt install git.ok guys now all the tool we
need to make this rpi wifi router are install
on our raspberry pi operating system.now you
need to download a repository from github.on
your terminal type git clone and paste this
repository link.i will put the link in description
below.ok guys now change your directory to
that folder.here you will find a bash script
name eth to wifi.open that bash script using
nano editor.now here you need to configure
your ip address and also select the dhcp ip
list.scroll down a little bit and here you
need to select your wifi interface.raspberry
pi 4 as built-in wifi card so keep it as it
is.if you use any external wifi adapter then
you have to type here wlan 1 or others.now
here change your wifi access point name whatever
you want.i will give it sstec pi.then type
the password whatever you want to give it
to your raspberry pi wifi router.i will keep
it as it is.then press control s to save and
control x to exit.ok guys now you need to
give this bash script permission to execute.type
this command to give it the permission.now
here you can see the file colour is changed.now
you need to copy that file to home.so type
this command.now go back to your home and
here you can see the file.now we need to configure
our bashrc to make auto execute this script
whenever our raspberry pi will boot.so open
up bashrc with the nano.scroll down to the
end of this file and add this command sudo
bash and the script name and save the bashrc.now
it will execute the script whenever our power
will boot.now one more thing we need to do
and that is we need to make our pi auto login
as root user.because by default it login with
non root user pi.to do so type this command
on your terminal and hit enter.i will put
the command in description.now scroll to service
section and here you need to add another line.like
this.i will also put that line in description.so
you can copy that line from there.ok guys
now save the line and exit.now our raspberry
pi wifi router is ready to use.just reboot
your raspberry pi and lets see did our raspberry
pi wifi router working or not.you can see
here i get a wifi access point from raspberry
pi name sstec pi.now lets connect with that
access point.and also let me disconnect the
ethernet connection.so that i can show you
the proper speed test of this wifi router.i
have 20 mbps internet connection.now lets
see the speed test.first i will test the speed
using the cli tool.so guys here you can see
i got 14 mbps of speed.now lets test using
our web browser with the well known speed
testing site.so guys you can see the speed
test result.now lets try to connect our smart
phone with our raspberry pi wifi router and
also do a speed test with that smart phone.so
guys thats all for today.I hope you like this
video.
If you really like this video and enjoy this
video then please give it a big thumbs up
and share this video with your friends.and
guys if you are new on my channel then please
please do subscribe to my youtube channel
and don't forget to press the bell icon to
get all the latest upcoming video tutorial
notification.i'm Mehedi Shakeel and you are
watching sstec tutorial and i'm signing out.
