Home Server
Install Apache Server
sudo apt-get install apache2 -y
Install No-IP Service
sudo -s
cd /usr/local/src/
wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
tar xf noip-duc-linux.tar.gz
cd noip-2.1.9-1/
make install
You will then be prompted to login with your No-IP.com account username and password.
If you get “make not found” or “missing gcc” then you do not have the gcc compiler tools on your machine. You will need to install these in order to proceed.
To Configure the Client
As root again (or with sudo) issue the below command:
- /usr/local/bin/noip2 -C (dash capital C, this will create the default config file)
You will then be prompted for your username and password for No-IP, as well as which hostnames you wish to update. Be careful, one of the questions is “Do you wish to update ALL hosts”. If answered incorrectly this could effect hostnames in your account that are pointing at other locations.
Now the client is installed and configured, you just need to launch it. Simply issue this final command to launch the client in the background:
- /usr/local/bin/noip2
cp /usr/local/src/noip-2.1.9-1/debian.noip2.sh /etc/init.d/noip2.sh
chmod 755 /etc/init.d/noip2.sh
update-rc.d noip2.sh defaults 94 6
Reboot and check for a PID for noip2 -
If a number is displayed NOIP2 is running.
pidof noip2
Otra alternativa
cd /usr/local/src
sudo wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
sudo tar xzf noip-duc-linux.tar.gz
cd noip-2.1.9-1
sudo make
sudo make install
Activar como un servicio
cd /usr/local/src
sudo wget http://download.sizious.com/rpi/noip-duc-raspbian.tar.bz2
sudo tar -xjvf noip-duc-raspbian.tar.bz2
cd noip-2.1.9-1
sudo chmod +x raspbian.noip2.sh service.install.sh service.uninstall.sh
sudo ./service.install.sh raspbian
Check running order Shell
systemd-analyze blame
systemctl status noip2
sudo noip2 -S
dmesg | grep "noip2"
sudo service noip2 restart
GitLab
sudo apt-get install curl openssh-server ca-certificates postfix apt-transport-https
curl https://packages.gitlab.com/gpg.key | sudo apt-key add -
sudo curl -sS https://packages.gitlab.com/install/repositories/gitlab/raspberry-pi2/script.deb.sh | sudo bash
sudo apt-get install gitlab-ce
hostname -I
http://host ip/
To change port 80 by 8181 for example
sudo -e /etc/gitlab/gitlab.rb
external_url 'http://host ip:8181'
nginx['listen_port']=8181
sudo gitlab-ctl reconfigure
Create project WemosAlexa at GitLab
cd wemos
git config --global user.name "Administrator"
git config --global user.email "admin@example.com"
git init
git remote add origin http://root@ip:port/root/WemosAlexa.git
git add .
git commit -m "Initial commit"
git push -u origin master
Variable Speed Cooling Fan
Python code file :
Copy run-fan.py to /home/pi/Documents/PythonProjects Raspberry Pi dir
Create a service for boot time sudo nano /etc/init.d/fan
#! /bin/sh
### BEGIN INIT INFO
# Provides: run-fan
# Required-Start: $syslog
# Required-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start fan script at boot time
### END INIT INFO
python /home/pi/Documents/PythonProjects/run-fan.py
Activate it with sudo update-rc.d fan defaults
LibreElec v9.2.0
Para actualizar de manera manual copiar el archivo LibreElec_xxxxx.img.gz en el directorio /storage/backup y en /storage/.update
En backup para tener siempre un respaldo de las versiones para poder regresar a alguna ya que en .update después de aplicado se borra.
En este mismo directorio esta la versión 9.2.0 que no presenta problemas con 4K (problema presentado en la v9.2.1) y el respaldo de toda la configuración que se aplica después de actualizar la versión de manera manual .
https://libreelec.wiki/es/how_to/update_libreelec
El comando para montar en la alternativa Rasbian y copiar archivos es :
sudo mount -o user=pi,pass=xxxxx //192.168.1.61/pi /mnt
Al instalar Noobs podemos configurar dual boot con Raspbian y Libreelec y este ultimo se hace downgrade a v9.2.0.
Para instalar con Noobs la versión de Rasbbian y Libreelec que viene con el no debemos estar conectados a la red o internet para así no buscar actualizaciones. El Raspbian se actualiza posterior con sudo apt-get full-upgrade
Para el acceso a NTFS de disco SSD alta capacidad instalar
sudo apt-get install ntfs-3g