**INSTALLATION OF LOCAL SERVER ORANGE PI**
**OS Installation**
-
Download os __Orangepizero_2.1.0_ubuntu_xenial_desktop_linux3.4.113.img__ ____
-
Install os to orange pi with Raspberry Pi Imager
-
Open Raspberry Pi Imager
-
Choose os > Use Custom > __Orangepizero_2.1.0_ubuntu_xenial_desktop_linux3.4.113.img__ ____ > Open
-
Choose storage
-
Click the button **Write**
-
Uploading to micro sd
-
OS has been installed
-
Place the micro sd into the orange pi
**SSH Remote with PuTTY**
-
Connect LAN Cable from the router to the orange pi
-
Check the IP Address Router, generally 192.168.0.1
-
Scan the IP Address with **Angry IP Scanner**
-
Set the IP Range “192.168.0.0” to “192.168.0.255”
-
Click the button **Start**
-
Scanning progress …
-
Get IP Address 192.168.0.x
-
Connect to the orange pi with **PuTTY**
-
Enter username and password default the orange pi zero, username: orangepi, password: orange pi
-
Successfully login
**Change IP Address**
-
Type the word **“ifconfig”**
-
Change IP Address to 192.168.0.2 (generally the local server 192.168.0.2)
-
Type the word **“nmtui” **ENTER
-
Choose **Edit a connection** > ENTER
-
Choose **Wired connection **> ENTER
-
Set “Manual” on **IPv4 CONFIGURATION**
-
Choose to setup IP Address, Gateway, and DNS servers
-
Choose for fixed the setup IP
-
Refresh network configuration, type the word “sudo service network-manager restart
-
Done
-
**MQTT Mosquitto Installation**
-
Type the word **“sudo apt-get update”**
-
Type the word **“sudo apt-get upgrade”**
-
Type the word **“y” **> ENTER
-
Done upgrade
- [[https://mosquitto.org/blog/2013/01/mosquitto-debian-repository/|Go to https://mosquitto.org/blog/2013/01/mosquitto-debian-repository/]] for step-by-step the installation
- [[http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key|wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key]]
-
ERROR
- [[http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key|wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key]] –no-check-certificate
-
sudo apt-key add mosquitto-repo.gpg.key
-
OK
-
cd /etc/apt/sources.list.d/
- [[http://repo.mosquitto.org/debian/mosquitto-stretch.list|sudo wget http://repo.mosquitto.org/debian/mosquitto-stretch.list]]
-
ERROR
- [[http://repo.mosquitto.org/debian/mosquitto-stretch.list|sudo wget http://repo.mosquitto.org/debian/mosquitto-stretch.list]] –no-check-certificate
-
sudo apt-get update
-
apt-cache search mosquitto
-
sudo apt-get install mosquitto
-
Done Mosquitto
-
Check the mqtt connection wit **MQTTBox**
-
Topic Publish and Topic Subscribe
-
**DONE**