Make Raspberry Pi Network SpeedTest Tool for Internal throughput and network speed measuring.

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • Welcome to my Tutorial on how to make a network speed test tool for measuring internal network speeds and throughputs using a Raspberry Pi and Flirc Case, installing Open Speed Test in Docker on your Raspberry Pi.
    A great tool for fault finding your's and customers' networks and measuring how fast a local WiFi access point is or a hard-wired ethernet connected device is.
    #thecomputerlab, #raspberrypimaker, #openspeedtest
    GET STARTED HERE:
    --------------------------------------------------
    sudo apt-get update
    sudo apt-get upgrade -y
    curl -sSL get.docker.com | sh
    curl -fsSL get.docker.com -o get-docker.sh
    ls (This lists content)
    sh get-docker.sh (runs script)
    sudo usermod -aG docker pi (adds user to docker)
    Restart Raspberry Pi
    sudo reboot (reboots pi)
    The test by typing
    docker
    And then check
    docker run hello-world
    enable docker on restart
    sudo systemctl enable docker
    sudo docker pull portainer/portainer-ce:linux-arm
    sudo docker run -d -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest
    Install OpenSpeed Test in portioner
    sudo docker run --restart=unless-stopped --name=openspeedtest -d -p 3000:3000 openspeedtest/latest
    -----------
    Install screen
    sudo apt-get install python3-pip
    sudo pip3 install --upgrade setuptools
    cd ~
    sudo pip3 install --upgrade adafruit-python-shell
    wget raw.githubuser...
    sudo python3 raspi-blinka.py
    Ask to reboot then check it by :
    ls /dev/i2c* /dev/spi*
    Should see this (/dev/i2c-1 /dev/spidev0.0 /dev/spidev0.1)
    NOW add adafruit library:
    sudo pip3 install adafruit-circuitpython-ssd1306
    Allow custom fonts
    sudo apt-get install python3-pil
    Now code for screen:
    nano /home/pi/stats.py
    Paste code direct from adafruit website here:
    (Visit this website if you need code or instructions direct from AdaFruit: Here if needed -learn.adafruit...)
    ----------
    One last thing run stats on boot by:
    sudo nano /etc/rc.local
    Running Stats on Boot
    You can pretty easily make it so this handy program runs every time you boot your Pi.
    The fastest/easiest way is to put it in /etc/rc.local
    Run sudo nano /etc/rc.local and add the line
    sudo python3 /home/pi/stats.py &
    on its own line right before exit 0
    Then save and exit. Reboot to verify that the screen comes up on boot!
    sudo reboot
    ----------------------------
    Affiliate links:
    Raspberry Pi 4 4gb: amzn.to/3Aghxdc
    Raspberry Pi 8gb: amzn.to/2XuDZAE
    Raspberry Pi power supply: amzn.to/3EuLGYX
    Flirc CASE: amzn.to/3CjnFCb
    32gb Micro SD Card: amzn.to/39cubhA
    AdaFruit OLED: amzn.to/2XqP2Lk
    -----------------------------
    💯 Help support this channel my family and me - by signing up to my Patreon here / computerlab
    💻 Please subscribe here: www.youtube.co...
    📺 Discord here: TheComputerLab#4156
    🎭 Check out my Facebook page here / thecomputerlabuk
    🐦 Also, why not tweet me here on Twitter / thecomputerlab
    💷 Or if you want to support a fellow human being please donate via Paypal here info@thecomputerlab.co.uk
    Welcome to my RUclips channel "TheComputerLab" I created this channel to help others with everyday computer problems. It has slightly changed throughout the years and has gone from basic fixes to lots of different help videos going from iPhone tutorials to game system fixes to Mac and Windows tutorials and lots more - Please do subscribe even if you only visited my channel just for one video as your help by subscribing helps my channel.
    **Disclaimer: The Computer Lab is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to www.amazon.co.uk.
    Disclaimers: all opinions are my own, for entertainment purposes only.

Комментарии • 9

  • @MrRlovely
    @MrRlovely Год назад +3

    Someone noted on another video like this was that using the 64 bit OS achieved full speeds for UL and DL.

  • @jeffmourich2343
    @jeffmourich2343 2 года назад +1

    Great project! Thank you.

  • @stevetaylor9899
    @stevetaylor9899 Год назад

    Great video, thankyou for posting. As im half thinking of a similar project and very new to the Raspberry Pi world, i was wondering if i could quiz you on what im after doing. Ideally Id like to have this device sat quite close to my own router, and with the LED screen that you have, possibly also provide a red, amber & green three colour scheme depending on the speed that is happening or happened prior to the previous scheduled check. Would this be at all possible?

  • @grumpycloud
    @grumpycloud 2 года назад

    I'm not an expert by any stretch of the imagination, but I believe the reason the first curl command didn't "download" the script file is because you piped it directly to sh. So as soon as it downloaded it was instantly ran by sh, which was the output you saw. It didn't write the file (that's what the -o command in your second line was for).

  • @stefanic88
    @stefanic88 6 месяцев назад

    Hi! Can I setup the Pie so that it would record reports of tests at preset intervarls? I wish to test a mobile internet router and the speeds I would get at my location.

  • @rahshaunsharpe9152
    @rahshaunsharpe9152 2 года назад

    Can I run this on a bigger screen on a pi 4 ? will the startup look wierd?

  • @vbhoj74
    @vbhoj74 Год назад

    Great, can the display refresh IP address if I just unplug & plug it back on different switch port (maybe with different VLAN) ?

    • @MrRlovely
      @MrRlovely Год назад

      It appeared to display an autoconfig IP at first before it received a DHCP address, so it looks like it was monitoring in real time. I have yet to build one of there, but just from my experience with networking.