edit | blame | history | raw

Smart Diaper Gateway OS

OS install to SD CARD

Raspberry Pi Manager

Raspberry Pi OS (other) -> Raspberry Pi OS Lite

option
-> SSH enable
-> wifi country GB
-> locale Asia/Seoul

get gw install script from git server

curl -k -O https://onioi.com:8443/raw/MEDILOGIS/gwinstall.git/master/gwinstall.sh

install SSH tunnel service on RPi4

#!/bin/bash

export FWD_PORT=10000
if [ ! $1 ]; then
    echo -e "USAGE:\nex) gwinstall.sh 10000"
    exit 1
else
    FWD_PORT=$1
fi

sudo ssh-keygen
sudo ssh-copy-id -p 12222 root@onio.iptime.org

echo "
[Unit]
Description=SSH Tunnel with target server
After=network.target

[Service]
ExecStart=/usr/bin/ssh -NT -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -R 127.0.0.1:$FWD_PORT:localhost:22 -p 12222 root@onio.iptime.org
RestartSec=5
Restart=always

[Install]
WantedBy=multi-user.target
" |  sudo tee /etc/systemd/system/tunnel.service  > /dev/null

sudo systemctl daemon-reload
sudo systemctl start tunnel
sudo systemctl enable tunnel
sudo systemctl status tunnel

Check server side RPi4 SSH tunnel port

netstat -tulpn

Connect to RPi4 via SSH tunnel


ssh -J root@onio.iptime.org:12222 -p 10000 medi@localhost

install packages

sudo apt-get update
sudo apt install -y git nodejs npm bluetooth bluez libbluetooth-dev libudev-dev bluez-hcidump
sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)

RPi 4 USB WiFi tplink archer t2 plus

sudo apt install -y git dkms raspberrypi-kernel-headers build-essential bc

git clone https://github.com/aircrack-ng/rtl8812au.git
cd rtl8812au
sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile
sed -i 's/CONFIG_PLATFORM_ARM_RPI = n/CONFIG_PLATFORM_ARM_RPI = y/g' Makefile

sudo make dkms_install

RPi 4 Korean font install

sudo apt install -y fonts-unfonts-core

RPi 4 measure temp

vcgencmd measure_temp

TODO

ref

USB WiFi tplink archer t2 plus ( https://github.com/nlkguy/archer-t2u-plus-linux )