Keistad-ICT
  1. U bevindt zich hier:  
  2. Startpagina
  3. Raspberry Pi

Raspberry Pi

Om de xfce GUI te installeren als je Raspbian Lite hebt geïnstalleerd

Gegevens
Categorie: Raspberry Pi
Gepubliceerd: 20 augustus 2024
Hits: 31

!#/bin/bash
clear
sudo passwd pi
sudo timedatectl set-timezone Europe/Amsterdam
sudo apt update
sudo apt update --fix-missing -y
sudo apt upgrade -y
sudo apt dist-upgrade -y
sudo apt autoremove -y
sudo apt install xserver-xorg lightdm xfce4 xfce4-terminal xrdp mc synaptic firefox-esr chromium-browser doublecmd-common -y
sudo reboot

ZigBee Phoscon deCONZ USB-stick op Raspberry Pi installeren

Gegevens
Categorie: Raspberry Pi
Gepubliceerd: 20 augustus 2024
Hits: 27
# https://phoscon.de/en/raspbee/install
 
sudo gpasswd -a $USER dialout
wget -O - http://phoscon.de/apt/deconz.pub.key | sudo apt-key add -
sudo sh -c "echo 'deb http://phoscon.de/apt/deconz  $(lsb_release -cs) main' >   /etc/apt/sources.list.d/deconz.list"
sudo apt update
sudo apt install deconz -y
 
# Start een RDP sessie van je PC en voer in de CLI dit commando in:
deCONZ --http-port=80 --auto-connect=1
 
 
# Update WiringPi (only needed for Raspberry Pi 4B)
cd /tmp
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb
 
 
# /boot/config aanpassen
 
/boot/cmdline mag niet de regel bevatten 
console=serial0
 
# in /boot/config moet staan:
enable_uart=1
# (dat staat standaard al aan)
 
# Zet met raspi-config de seriele poort aan.
 
# Om ontbrekende dependencies te installeren:
sudo apt install -f

 

AdGuard op Raspberry Pi

Gegevens
Categorie: Raspberry Pi
Gepubliceerd: 20 augustus 2024
Hits: 33

!#/bin/bash
clear
sudo passwd pi
sudo timedatectl set-timezone Europe/Amsterdam
sudo apt update
sudo apt update --fix-missing -y
sudo apt upgrade -y
sudo apt dist-upgrade -y
sudo apt autoremove -y
# sudo reboot
sudo curl -sSL https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh
systemctl status AdGuardHome

Nagioa op de Raspberry Pi

Gegevens
Categorie: Raspberry Pi
Gepubliceerd: 20 augustus 2024
Hits: 19

Nagios is een netwerk monitoring systeem.

 

#
#
# Nagios op Raspberry Pi
#
#
# https://pimylifeup.com/raspberry-pi-nagios/
# https://support.nagios.com/kb/article/nagios-core-installing-nagios-core-from-source-96.html#Raspbian
# https://exchange.nagios.org/directory/Addons/Passive-Checks/Radar--2D-add-hosts-and-services-automatically/details
#
#!/bin/bash
clear
sudo apt update
sudo apt upgrade -y
sudo apt install -y autoconf build-essential wget unzip apache2 apache2-utils php libgd-dev snmp libnet-snmp-perl gettext libssl-dev wget bc gawk dc libmcrypt-dev
cd /tmp
wget -O nagios.tar.gz https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.4.6.tar.gz
tar xzf nagios.tar.gz
cd /tmp/nagioscore-nagios-4.4.6/
./configure --with-httpd-conf=/etc/apache2/sites-enabled
make all
sudo make install-groups-users
sudo usermod -a -G nagios www-data
sudo make install
sudo make install-daemoninit
sudo make install-commandmode
sudo make install-config
sudo make install-webconf
sudo a2enmod rewrite
sudo a2enmod cgi
sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
sudo systemctl restart apache2
sudo systemctl enable nagios
sudo systemctl start nagios
sudo systemctl status nagios

# Plugins installeren
cd /tmp
wget -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/releases/download/release-2.3.3/nagios-plugins-2.3.3.tar.gz
tar zxf nagios-plugins.tar.gz
cd /tmp/nagios-plugins-2.3.3
./configure
make
sudo make install
sudo systemctl restart nagios
sudo service --status-all

# Optioneel
# sudo apt-get install phpmyadmin

# Adding hosts
cd /usr/local/nagios/etc/objects

 

http://[IPADDRESS]/nagios

Inloggen met: nagiosadmin/Wachtwoord!

Zabbix 5.0.1 LTS op Raspberry Pi installeren

Gegevens
Categorie: Raspberry Pi
Gepubliceerd: 20 augustus 2024
Hits: 19

Zabbix is een monitoring systeem.

 

# https://bestmonitoringtools.com/how-to-install-zabbix-on-raspberry-pi-raspbian/

#!/bin/bash
clear
# Zabbix 5.0 LTS version (supported until May 31, 2025)
# wget https://repo.zabbix.com/zabbix/5.0/raspbian/pool/main/z/zabbix-release/zabbix-release_5.0-1+$(lsb_release -sc)_all.deb
# dpkg -i zabbix-release_5.0-1+$(lsb_release -sc)_all.deb
# apt update
# apt -y install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent
#                                                     OR

# Zabbix 5.2 standard version (supported until May 31, 2021)
sudo wget https://repo.zabbix.com/zabbix/5.2/raspbian/pool/main/z/zabbix-release/zabbix-release_5.2-1+debian$(cut -d"." -f1 /etc/debian_version)_all.deb
sudo dpkg -i zabbix-release_5.2-1+debian$(cut -d"." -f1 /etc/debian_version)_all.deb
sudo apt update
sudo apt -y install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent
sudo apt -y install mariadb-server
sudo systemctl start mariadb
sudo systemctl enable mariadb
sudo mysql_secure_installation
#
## De eerste vraag met 'n' beantwoorden, de rest met 'y'.
#
# Create database
sudo mysql -uroot -p'Pa$$w0rd' -e "create database zabbix character set utf8 collate utf8_bin;"
sudo mysql -uroot -p'Pa$$w0rd' -e "grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbixDBpass';"
# Import initial schema and data
echo Even geduld...
sudo zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p'zabbixDBpass' zabbix
sudo nano /etc/zabbix/zabbix_server.conf

# Vul in: DBPassword=zabbixDBpass
sudo systemctl restart zabbix-server zabbix-agent
sudo systemctl enable zabbix-server zabbix-agent
sudo nano /etc/zabbix/apache.conf

Onderaand toevoegen: php_value date.timezone Europe/Amsterdam

sudo systemctl restart apache2
sudo systemctl enable apache2

# Basically, in this wizard you only need to enter a password for Zabbix DB user and just click “Next step” for everything else.

# Inloggen met http://server_ip/zabbix
# Admin/zabbix

  1. Om MariaDB volledig van een Linux systeem te verwijderen
  2. Om MySQL volledig van een Linux systeem te verwijderen
  3. Backup maken van het micro-SD kaartje
  4. Advies basis-installatie Raspberry Pi voor Home Assistant, MQTT en Node-RED

Pagina 3 van 5

  • 1
  • 2
  • 3
  • 4
  • 5

Main Menu

  • Home
  • Arduino
  • ESP8266
  • Microsoft SQL Server
  • Raspberry Pi
  • Maqueen V3.0
  • PowerShell
  • Proxmox
  • Home Assistant
  • Node-RED
  • Beleggen
  • Sparen
  • Traden - Handelen
  • Linux - Ubuntu
  • MySQL