Modernization of old PCs
I note right away that the article has been for several years and it was left on the site for a change. It is clear that now on the market…

Continue reading →

Computer assembly, pitfalls
Assembling a computer, especially a new one, is a lottery game. A number of factors that are not dependent on the builder can lead to the fact that the computer…

Continue reading →

Drivers & Firmware
Very often I come across a situation where I need to find and download drivers for various devices. Especially often this has to be done when repairing computers (reinstalling the…

Continue reading →

Internet speed check (monthly statistics)

Checking the speed of the Internet is a fairly simple task if a single measurement is required. There are a ton of online tests on the Internet for this. But if the task is to measure the speed of the Internet connection within a month with a frequency of once per hour, in order to evaluate the quality of the service and use this data as an argument when communicating with the service provider, the task is somewhat more complicated.

About how I got out of this situation and received summary data for a month (the period and frequency can be any), read the article.

Checking the speed of the Internet should have been carried out constantly with equal frequency. Therefore, the use of a working computer was not suitable for this purpose, otherwise it would have to be kept on all the time. Therefore, I decided to connect an old computer based on the motherboard P4P800 SE to the local network. And put it in the pantry so that it doesn’t make much noise.

Since for today’s resource consumption the extremely modest power of this motherboard might not be enough, I had to install the very undemanding Slitaz Linux distribution on this computer. The benefit of using a separate PC to implement what was conceived in this matter is not very limited. The distribution with a graphical environment weighs only 40Mb and works on old hardware very fast. Checking the speed of the Internet is done through special software.

Checking internet connection speed using speedtest-cli script
Since Slitaz has a small set of built-in packages, I decided to use a script written in Python – speedtest-cli. Depending on which distribution (version) you will use, Python support may already be installed in it, or it will be absent and it will need to be installed. But these packages in the package manager will be anyway.

After checking (installing) Python support, you need to download a script for measuring Internet speed. In the distribution, we will only be interested in the file speedtest.py. This script uses the well-known online service Speedtest.net for verification. The measurement process is simple and consists of the following steps:

Running a control script at system startup.
Running the speedtest.py script with a control script with parameters.
Writing measurement results to a log file.
Re-running the script speedtest.py after the required period of time.
First of all, you need to write a control script that will command our main script using its parameters. I called it speed.sh. As you can see from the extension, this is a Shell script. There may also be no support for shell scripts in the distribution. But like Python support, it is installed from the package manager and does not constitute a problem.

The contents of speed.sh are as follows:

#! / bin / bash
# /home/admin/Desktop/Speed/speed.sh

sleep 30s

while [1 = 1]
do

date | tee -a /home/admin/Desktop/Speed/logfile.txt
/home/admin/Desktop/Speed/speedtest.py –simple | tee -a /home/admin/Desktop/Speed/logfile.txt
sleep 4h

done
In order not to be involved, if necessary, in searching for where everything lies and how it works, I placed the folder with scripts on the desktop in the Speed ​​directory. According to the help on GitHub, you need to solve the issue with the rights of scripts to run. The command is indicated there:

chmod + x speedtest-cli
Now the script will run without problems. The work of speed.sh starts with a wait of 30 seconds until the old PC loads the working environment in order to avoid possible problems when starting work. Next, the while loop starts. In the process of its execution, the date and time of the Internet speed measurement and the result of this measurement are recorded in the logfile.txt log file. Please note that I am addressing files from the / home user folder. It is important.

Then the script goes into standby mode for 4 hours and after this time is repeated. You can read the help for the sleep program and set your time interval for verification. The last question that needs to be resolved is autostart speed.sh when the system boots. About this below.

Internet speed measurement clearly
The Slitaz Linux distribution has a visual interface for managing autorun, so you will not need to create any new files for this. It will only be necessary to slightly correct the existing one. To do this, run the autorun control application. You can do this through the menu:

internet speed measurement

and in the configuration file that opens, make the following entry:
# Start Network speedtest
/home/admin/Desktop/Speed/speed.sh &
like this:

internet speed measurement

We save the configuration and reboot the PC. Immediately upon loading the PC, open the process manager and look: the process speed.sh should appear there – our control script. It starts immediately after the OpenBox graphical environment.

internet speed measurement

After 30 seconds, Python starts up and the speed measuring program runs. In this case, the log file at this moment should have a weight of 0 bytes, since it is empty. First, the date and time will be written to this file and its volume will increase. So you can indirectly monitor progress

IP address in detail
From Wikipedia, the free encyclopedia IP-address (IP address, short for English. Internet Protocol Address) - a unique identifier (address) for a device (usually a computer) connected to a local network…

...

A bit about CCTV systems
When it comes to business security, peace of mind for the life and health of relatives, it is necessary to carefully approach the choice of security system. Over the past…

...

Work on the Windows command line
The most common startup recommendations are: Start, Run, cmd. There is a Run item in the start menu. He runs a program that allows you to transfer single commands to the…

...

License Review Article
Before we talk about licenses, I would like to touch on the subject of licensing in order to clarify. So, licensing is most often designed to preserve the source code…

...