Wednesday, February 14, 2018

Ubuntu moodle pre-requisites

$sudo ufw app list

$sudo apt-get install libapache2-mod-php
$sudo apt-get install php7.0-curl 
$sudo apt-get install php7.0-zip

$sudo chmod 777 /var/www/ -R

$sudo apt-get install php7.0-mysql
$sudo apt-get install php7.0-xml



$sudo apt-get install php7.0-gd


$sudo apt-get install php7.0-intl

$sudo apt-get install php7.0-xmlrpc
$sudo apt-get install php7.0-mbstring






Ubuntu Hard Drive Health Monitor

HDD Verification tool

$sudo apt-get install smartmontools
$sudo apt-get install gsmartcontrol

$sudo smartctl --all /dev/sda

Friday, February 02, 2018

Ubuntu 14 Lamp


https://www.godaddy.com/help/build-a-lamp-stack-linux-apache-mysql-php-ubuntu-14-17341
https://www.howtoforge.com/ubuntu-lamp-server-with-apache2-php5-mysql-on-14.04-lts
https://styde.net/como-instalar-lamp-en-ubuntu-linux/
https://www.digitalocean.com/community/tutorials/como-instalar-linux-apache-mysql-php-lamp-en-ubuntu-14-04-es
https://www.digitalocean.com/community/tutorials/how-to-install-lamp-on-ubuntu-14-04-quickstart

Update kernel to the latest mainline version without any Distro-upgrade?

To find out which kernel you have type uname -rin terminal.Now type this command to get list of available kernels.
apt-cache search linux-image
this will give you a very big output.Now chose one of them that you want to install and install it by following commands(Don't type these commands like this,replace the word kernal_version with the kernel version which you wish to install)
sudo apt-get install linux-image-kernal_version
sudo apt-get install linux-image-extra-kernal_version
sudo apt-get install linux-headers-kernal_version
Now in my case i choose linux-image-4.10.0-22-generic so my command will look like this
sudo apt-get install linux-image-4.10.0-22-generic 
sudo apt-get install linux-image-extra-4.10.0-22-generic
sudo apt-get install linux-headers-4.10.0-22-generic
now in the end remove old kernel by command
sudo apt-get autoremove
sudo reboot
 

Thursday, February 01, 2018

Related to Certificates


Generate a CSR
https://www.digitalocean.com/community/questions/how-do-i-generate-a-csr-key

Create the self-signed certificate
https://help.ubuntu.com/lts/serverguide/certificates-and-security.html

Create thrid certificate using CSR
https://ssl.comodo.com/free-ssl-certificate.php
https://support.comodo.com/index.php?/comodo/Knowledgebase/Article/View/637/66/

Aditional information
https://www.ssl2buy.com/ssl-certificate-google-rankings
https://www.elegantthemes.com/blog/tips-tricks/how-to-get-a-free-ssl-certificate-and-why-google-is-forcing-you-to

Tuesday, January 30, 2018

Ubuntu 14 install sSMTP

Ubuntu
1.1) Install sSMTP

$sudo apt-get install ssmtp
$sudo vi /etc/ssmtp/ssmtp.conf  #add or set

root=username@gmail.com
mailhub=smtp.gmail.com:587
rewriteDomain=
hostname=fileserver.local
UseSTARTTLS=YES
AuthUser=username
AuthPass=password
FromLineOverride=YES
sudo vi /etc/ssmtp/revaliases
root:username@gmail.com:smtp.gmail.com:587
youruser:username@gmail.com:smtp.gmail.com:587

1.2) How to use

$ssmtp recipient_email@example.com  #sSMTP will then wait for:
To: recipient_email@example.com
From: myemailaddress@gmail.com
Subject: test email

hello world!
#press Ctrl-D for send the message before closing.

$ssmtp myemailaddress@gmail.com < msg.txt

To: myemailaddress@gmail.com
From: myemailaddress@gmail.com
Subject: alert

The server is down!

1.3) Alternative to use

$sudo apt-get install heirloom-mailx -y
$echo testing|mail -s 'Test Mail' Insert email address to send to here


References:
[1]  http://tombuntu.com/index.php/2008/10/21/sending-email-from-your-system-with-ssmtp/

Fedora/CentOs
[2.1] postfix https://kifarunix.com/configure-postfix-as-send-only-smtp-server-on-fedora-29/
[2.2] sendmail https://tecadmin.net/install-sendmail-on-fedora/


Mono Develop on Ubuntu 14

#monodevelop 4
sudo apt-get install monodevelop
 
#upgrade to monodevelop 5
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
sudo apt-get install monodevelop
 
 
 

 
References:
[1] Monodevelop versions https://download.mono-project.com/archive/

Friday, January 26, 2018

Ubuntu 14 virtualize

Virtual box

$uname -a
$apt-get upgrade #for update kernel
$apt-get install virtualbox

Dependences
[1] https://www.virtualbox.org/wiki/Download_Old_Builds_4_3

Sunday, January 07, 2018

Bajaj Avenger 220 Especificaciones

Motor

Desplazamiento (cc)
219.89
A Partir
Eléctrica
Max. De alimentación (PS rpm)
19,03 @ 8400
Max. Torque (Nm @ rpm)
17.5 @ 7000
Tipo
4 tiempos, monocilíndrico, DTS-i, refrigerado por aire con el refrigerador de aceite

Frenos

Frente
Disco, Dia. 260 mm
Trasero
Tambor, Dia. 130 mm

Suspensión

Frente
Telescópico
Trasero
Amortiguador hidráulico

Electrónica

Cabeza de la lámpara
60 / 55W
Cuerno
12V, 30W
Batería
12V, 9Ah

Tiro

Frente
Con cámara unidireccional - 90 / 90 x 17 "
Trasero
Con cámara unidireccional - 130/90 x 15 "

Depósito de combustible

Total de litros (reserva, utilizable)
14 litros completo (3.4 litros de reserva)

Dimensiones

Separación de tierra
169 mm
Peso en orden de marcha
154,5 kg
Distancia entre ejes
1475 mm

Running apps

Runtastic (I uninstalled because force to update your device - Internet connection problems) Runkeeper  (Wrong GPS tracking) Strava   (Curr...