Speedtest Mini Installation Ubuntu


Speedtest Mini :
———————-
Speedtest.net mini is a speed testing application which is used for hosting speed test server (Mini) on your own site/server. Another application from NetGuage serves the same purpose which primarily is designed for Corporate sites.

Output Details :
———————
Retrieving speedtest.net configuration…
Retrieving speedtest.net server list…
Testing from IP-Address …
Selecting best server based on latency…
Hosted by BYTENET (Guntur) [31.44 km]: 92.384 ms
Testing download speed……………
Download: 5.46 Mbit/s
Testing upload speed……………..
Upload: 7.38 Mbit/s

Manual Installation :
—————————
echo “Updating System Updates”

sudo apt-get udpate

echo “Downloading Speedtest Mini”

cd /var/www/html

wget http://c.speedtest.net/mini/mini.zip

Unzip mini.zip

cd mini

echo “Checking list of contents”

ls -l /var/www/html/mini

echo “Copying file to index.html”

mv mini/index-php.html mini/index.html

echo “Please Check http://IP-Address/mini”

Begin Test

Begin Test

Checking Bandwidth test

Speedtest

Command Line Excuting :
———————————–
cd /var/www/html

wget https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py

cd /var/www/html/speedtest-cli-master

chmod +x speedtest_cli.py

./speedtest_cli.py

commandline

Creating New Linux User Script


#!/bin/bash

while [ x$username = “x” ]; do
read -p “Please enter the username you wish to create : ” username
if id -u $username >/dev/null 2>&1; then
echo “User already exists”
username=””
fi
done
while [ x$group = “x” ]; do
read -p “Please enter the primary group. If group not exist, it will be created : ” group
if id -g $group >/dev/null 2>&1; then
echo “Group exist”
else
groupadd $group
fi
done
read -p “Please enter bash [/bin/bash] : ” bash
if [ x”$bash” = “x” ]; then
bash=”/bin/bash”
fi
read -p “Please enter homedir [/home/$username] : ” homedir
if [ x”$homedir” = “x” ]; then
homedir=”/home/$username”
fi
read -p “Please confirm [y/n]” confirm
if [ “$confirm” = “y” ]; then
useradd -g $group -s $bash -d $homedir -m $username
fi

Output Details
Please enter the username you wish to create : Chaitu
Please enter the primary group. If group not exist, it will be created : Chaitanya
Please enter bash [/bin/bash] : /bin/bash
Please enter homedir [/home/Chaitu] : /home/Chaitu
Please confirm [y/n]y

creating user

Creating User Path
/home/Chaitu
Chaitu User will create in /home/Chaitu

Path Details
chaitanya-GA-78LMT-S2 ~ # cd /home/
chaitanya-GA-78LMT-S2 home # ls
chaitanya  Chaitu