apt install vim wget unzip net-tools
mkdir /usr/local/src/ooklaserver
cd /usr/local/src/ooklaserver
wget https://install.speedtest.net/ooklaserver/ooklaserver.sh
chmod +x ooklaserver.sh
./ooklaserver.sh install
./ooklaserver.sh stop
vim /usr/local/src/ooklaserver/ooklaServer.properties
cp /usr/local/src/ooklaserver/OoklaServer.properties
/usr/local/src/ooklaserver/OoklaServer.properties.default
vim /lib/systemd/system/ooklaserver.service
[Unit]
Description=OoklaServer-SpeedTest
After=network.target
[Service]
User=root
Group=root
Type=simple
RemainAfterExit=yes
WorkingDirectory=/usr/local/src/ooklaserver
ExecStart=/usr/local/src/ooklaserver/ooklaserver.sh start
ExecReload=/usr/local/src/ooklaserver/ooklaserver.sh restart
ExecStop=/usr/local/src/ooklaserver/ooklaserver.sh stop
TimeoutStartSec=60
TimeoutStopSec=300
[Install]
WantedBy=multi-user.target
Alias=speedtest.service
systemctl daemon-reload
systemctl status ooklaserver
systemctl enable ooklaserver
systemctl status ooklaserver
systemctl start ooklaserver
systemctl status ooklaserver
reboot
systemctl status ooklaserver
systemctl status speedtest
---------------------------------------------------
Solución de certificado
Instalemos Certbot, que generará certificados con Let's Encrypt.
apt install certbot
certbot certonly --standalone
Responde: email (null@SEU DOMINIO.com.br), Y, N, tu dominio
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Enter email address (used for urgent renewal and security notices)
(Enter 'c' to cancel): null@SEU DOMINIO.com.br
<<<<<<<<<<<<<<<<<<<<<
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server. Do you agree?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y
<<<<<<<<<<<<<<<<<<<<<
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing, once your first certificate is successfully issued, to
share your email address with the Electronic Frontier Foundation, a founding
partner of the Let's Encrypt project and the non-profit organization that
develops Certbot? We'd like to send you email about our work encrypting the web,
EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: N
<<<<<<<<<<<<<<<<<<<<<
Account registered.
Please enter in your domain name(s) (comma and/or space separated) (Enter 'c'
to cancel): teste.remontti.com.br
<<<<<<<<<<<<<<<<<<<<<
Requesting a certificate for SEU DOMINIO
Performing the following challenges:
http-01 challenge for teste.remontti.com.br
Waiting for verification...
Cleaning up challenges
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/teste.remontti.com.br/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/teste.remontti.com.br/privkey.pem
Your certificate will expire on 2022-02-03. To obtain a new or
tweaked version of this certificate in the future, simply run
certbot again. To non-interactively renew *all* of your
certificates, run "certbot renew"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
vim /usr/local/src/ooklaserver/OoklaServer.properties
openSSL.server.certificateFile =
/etc/letsencrypt/live/SUB.DOMINIO.XXX.XX/fullchain.pem
openSSL.server.privateKeyFile =
/etc/letsencrypt/live/SUB.DOMINIO.XXX.XX/privkey.pem
cp /usr/local/src/ooklaserver/OoklaServer.properties
/usr/local/src/ooklaserver/OoklaServer.properties.default
systemctl restart ooklaserver.service