Archive for the ‘Linux Solution’ Category

VMware ESXi 7.0 ARM Edition UEFI Firmware v1.22 – on a Raspberry Pi 4

Mittwoch, Februar 24th, 2021
On Raspberry Pi OS:
# apt-get update -y
# apt-get full-upgrade -y
# rpi-update
# rpi-eeprom-update
-a : automatically install bootloader and USB (VLI) EEPROM updates
-d : use the default bootloader config
# rpi-eeprom-update -d -a

Things you need to download:

Latest Raspberry Pi Firmware:
https://github.com/raspberrypi/firmware

UEFI Raspberry Pi Firmware:
https://github.com/pftf/RPi4/releases

Edit config.txt

arm_64bit=1
enable_uart=1
uart_2ndstage=1
enable_gic=1
armstub=RPI_EFI.fd
disable_commandline_tags=1
disable_overscan=1
device_tree_address=0x1f0000
device_tree_end=0x200000
dtoverlay=miniuart-bt
gpu_mem=16

On ESXi (SSH):
[root@localhost:~] /etc/init.d/usbarbitrator stop
watchdog-usbarbitrator: Terminating watchdog process with PID 66927
stopping usbarbitrator…
usbarbitrator stopped
[root@localhost:~]
[root@localhost:~] chkconfig usbarbitrator off
[root@localhost:~]
[root@localhost:~] ls /dev/disks/
mpx.vmhba32:C0:T0:L0
mpx.vmhba32:C0:T0:L0:1
mpx.vmhba33:C0:T0:L0
mpx.vmhba33:C0:T0:L0:1
mpx.vmhba33:C0:T0:L0:5
mpx.vmhba33:C0:T0:L0:6
mpx.vmhba33:C0:T0:L0:7
vml.0000000000766d68626133323a303a30
vml.0000000000766d68626133323a303a30:1
vml.01000000003443353330303031303531313237313032353733556c74726120
vml.01000000003443353330303031303531313237313032353733556c74726120:1
vml.01000000003443353330303031303531313237313032353733556c74726120:5
vml.01000000003443353330303031303531313237313032353733556c74726120:6
vml.01000000003443353330303031303531313237313032353733556c74726120:7
[root@localhost:~]
[root@localhost:~] partedUtil mklabel /dev/disks/mpx.vmhba32:C0:T0:L0 msdos
[root@localhost:~]

Fling-on-Raspberry-Pi  ESXi-Arm-Fling-Doc

Raspberry Pi – Image direkt auf die USB Stick schreiben

Montag, Februar 22nd, 2021

Seit Anfang September 2020 gibt es ein EEPROM-Update für den Raspberry Pi 4 das eine von älteren Modellen bekannte Funktion endlich auf für die Version 4 implementiert – das Booten von externen USB-Datenträgern damit können Sie Ihren Raspberry Pi 4 ohne die auf Dauer oft unzuverlässige SD-Karte betreiben

# raspi-config

# vi / boot/cmdline.txt
console=serial0,115200 console=tty1 root=PARTUUID=9e49548b-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles

Docker Chef – a systems integration framework built to bring the benefits of config management to your infrastructure

Montag, Februar 22nd, 2021

Denkovi 1-Wire Eight Channel Relay Module – with Chipset DS2408 supported by OWFS

Sonntag, Februar 21st, 2021

Zabbix – how to upgrade to Zabbix 5.2

Samstag, Februar 20th, 2021

Node-RED – for talking to 1-wire devices using an owfs owserver instance

Donnerstag, Februar 18th, 2021
root@rpi-iot-jsho-NodeRED:~# apt-get update -y
root@rpi-iot-jsho-NodeRED:~# apt-get install owfs owserver
root@rpi-iot-jsho-NodeRED:~# vi /etc/owfs.conf
# This part must be changed on real installation
# server: FAKE = DS18S20,DS2405
#
# USB device: DS9490
server: usb = all

root@rpi-iot-jsho-NodeRED:/etc# lsusb
Bus 001 Device 004: ID 04fa:2490 Dallas Semiconductor DS1490F 2-in-1 Fob, 1-Wire adapter
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Arduino ESP8266 – install Ubuntu 20.10

Donnerstag, Februar 18th, 2021

Node-RED Version 1.2.9 – released so you can install or upgrade using the Node-RED upgrade script command

Donnerstag, Februar 18th, 2021
$ bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
# systemctl enable nodered.service

NodeRed – Tutorial Installation | Basics und Dashboard mit Wetterdaten | Sonoff über MQTT schalten | FHEM-Events generisch per MQTT übermitteln | Geräte in FHEM über MQTT schalten | Integration von Philips Hue | Integration des Harmony-Hub | Smart Meter auslesen | Daten von FHEM per JsonList holen

Mittwoch, Februar 17th, 2021

Node-RED to read a 1-wire temperature sensor

Mittwoch, Februar 17th, 2021

   Node-RED – install node-red-contrib-1wire to use the built in GPIO pins to read the 1-wire sensor

Node-RED – for talking to 1-wire devices using an owfs owserver instance

Mittwoch, Februar 17th, 2021

   Node-RED – install node-red-contrib-owfs either on the same system as Node-RED or a system that can be reached over TCP. This node communicates with owfs using the owserver protocol so owserver must be running

1-Wire – Grundlagen

Mittwoch, Februar 17th, 2021

Docker webPDF – is the centralized PDF server which provides SOAP and REST Web services and a Web portal

Dienstag, Februar 16th, 2021

   webPDF Docker image

# docker pull softvisiondev/webpdf
# docker run –name some-webpdf softvisiondev/webpdf:tag
# docker run -p 8080:8080 softvisiondev/webpdf:latest

YunoHost v.4.1.7.1 – ist ein Serverbetriebssystem das Self Hosting für alle ermöglicht

Dienstag, Februar 16th, 2021

  YunoHost – ist ein Betriebssystem das auf die einfachste Verwaltung eines Servers abzielt und daher das Self-Hosting demokratisiert wobei sichergestellt wird dass es zuverlässig sicher ethisch einwandfrei und leichtgewichtig bleibt

Docker – there’s no way to import a container (which wouldn’t make sense as it’s a running environment) as we saw export gives us a file system import takes this file system and imports it as an image which can run as is or serve as a layer for other images

Sonntag, Februar 14th, 2021
┌──(root💀vm-iot-jsho-docker-01)-[~]
└─# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE

┌──(root💀vm-iot-jsho-docker-01)-[~]
└─# ls -la
insgesamt 147124
drwx—— 5 root root 4096 14. Feb 14:16 .
drwxr-xr-x 19 root root 4096 14. Feb 12:08 ..
-rw-r–r– 1 root root 4503 5. Feb 20:07 .bashrc
drwx—— 3 root root 4096 6. Feb 16:16 .cache
drwx—— 2 root root 4096 10. Feb 14:35 .docker
drwxr-xr-x 29 root root 4096 10. Feb 15:03 docker-images
-rw-r–r– 1 root root 11656 5. Feb 20:12 .face
lrwxrwxrwx 1 root root 11 5. Feb 21:09 .face.icon -> /root/.face
-rw-r–r– 1 root root 0 5. Feb 20:33 .hushlogin
-rw-r–r– 1 root root 148 4. Nov 21:24 .profile
-rw——- 1 root root 75307008 14. Feb 14:16 ubuntu.20210214.tar
-rw-r–r– 1 root root 75282944 14. Feb 12:08 ubuntu-iot-jsho-01.20210214.tar
-rw——- 1 root root 5918 14. Feb 13:05 .zsh_history
-rw-r–r– 1 root root 8063 5. Feb 20:07 .zshrc

┌──(root💀vm-iot-jsho-docker-01)-[~]
└─# docker import ubuntu-iot-jsho-01.20210214.tar ubuntu-iot-jsho-01:latest
sha256:cfd9ba654e827c5606f8f1dec0578a0ffd7920aff001fb52c29cd7b2434705f4

┌──(root💀vm-iot-jsho-docker-01)-[~]
└─# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu-iot-jsho-01 latest cfd9ba654e82 7 seconds ago 72.9MB

┌──(root💀vm-iot-jsho-docker-01)-[~]
└─#