To install speedtest, you need to install Apache first, see the "Installation of Apache under Ubuntu" article, and then install Lamp server, see the article "Fast installation of lamp server under Ubuntu", and finally install Speedtest.
First, open the Ubuntu virtual machine, terminal open root: "Sudo-s".
First, install Speedtest Netgauge
(1) Download
Http://files.netgauge.ookla.com/releases/netgaugedemo.zip
(2) Decompression
After extracting the folder named Speedtest
(3) placing
Place the Speedtest folder under the "/usr/local/apache/htdocs/" path, where the final path is "/usr/local/apache/htdocs/speedtest/*.*".
* If using lamp installed Apache, the path should be "/var/www/html/speedtest/*.*".
(4) Modify permissions
Change the permissions of the Speedtest folder and all files inside it to 777.
#chmod 777 Speedtest
#chmod 777 speedtest/*
(5) Modify the settings file
<1> Change Reason
Other IPs need to call local Speedtest
<2> Modification Methods
/usr/local/apache/htdocs/speedtest/setting.xml file
Change "host= 127.0.0.1:8080" to "host= Ubuntu ip:8080"
Second, installation ooklaserver.sh
(1) Download
#curl-O http://install.speedtest.net/ooklaserver/ooklaserver.sh
(2) Modify permissions to allow installation
#chmod a+x ooklaserver.sh
(3) Installation
#./ooklaserver.sh Install
* (4) To view ooklaserver.sh's Help file
#./ooklaserver.sh-h
* Third, close Ubuntu firewall
(1) View the status of the current firewall
#service UFW Status
(2) shutting down the firewall
#service UFW Stop
(3) Setting boot does not start the firewall
#ufw Disable
Iv. final use of speedtest is also a sign of the success of the test installation
(1) Start Apache
#/usr/local/apache/bin/apachectl start
(2) Start ooklaserver.sh
#/usr/local/apache/htdocs/speedtest/ooklaserver.sh start
(3) Check whether the installation is successful
Open Browser Input url "Ubuntu virtual machine IP address/speedtest/" on other IP side
The successful Start page will display: Speedtest of the graphical interface
(4) You can test the network directly by clicking the "Test" button.
Installation of Speedtest under Ubuntu