edit /boot/config.txt
sudo nano /boot/config.txt
and add this at the bottom
# Disable internal Bluetooth adapter
dtoverlay=disable-bt
edit /boot/config.txt
sudo nano /boot/config.txt
and add this at the bottom
# Disable internal Bluetooth adapter
dtoverlay=disable-bt
screen
screen -x
screen -ls
screen -r [session]
CTRL+a c
CTRL+a A
CTRA+a "
CTR+a [0-9]
CTRL+a d
CTRL+a S
CTRL+a |
CTRL+a tab
CTRL+a X
CTRL+a :
CTRL-a x
sudo apt install fail2ban
sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
sudo nano /etc/fail2ban/jail.local
sudo service fail2ban restart
sudo fail2ban-client status
or
sudo fail2ban-client status sshd
sudo apt-get --no-install-recommends -y install \
build-essential pkg-config erlang \
libicu-dev libmozjs185-dev libcurl4-openssl-dev
wget https://www.apache.org/dyn/closer.lua?path=/couchdb/source/3.1.1/apache-couchdb-3.1.1.tar.gz
./configure
make release
sudo useradd -d /home/couchdb couchdb
sudo mkdir /home/couchdb
sudo chown couchdb:couchdb /home/couchdb
cd ./rel/couchdb/
sudo cp -Rp * /home/couchdb
sudo chown -R couchdb:couchdb /home/couchdb
sudo chmod 0644 /home/couchdb/etc/*
sudo -i -u couchdb /home/couchdb/bin/couchdb
sudo nano /home/couchdb/etc/local.ini
change line
#bind_address = 127.0.0.1
to
bind_address = 0.0.0.0
and restart CoachDB server
http://127.0.0.1:5984/_utils/index.html
sudo mkdir /var/log/couchdb/
sudo chown couchdb:couchdb /var/log/couchdb
go to http://127.0.0.1:5984/_utils/#/_config select + Add Options set log for Section, file for Name and /var/log/couchdb/couch.log for Value.
sudo nano /lib/systemd/system/couchdb.service
[Unit]
Description=CouchDB Service
After=network.target
[Service]
Type=idle
User=couchdb
Restart=always
ExecStart=/home/couchdb/bin/couchdb
[Install]
WantedBy=default.target
set permissions
sudo chmod 644 /lib/systemd/system/couchdb.service
sudo systemctl daemon-reload
sudo systemctl enable couchdb.service
sudo apt install mosquitto mosquitto-clients
mosquitto_sub -h localhost -t "mqtt/test"
mosquitto_pub -h localhost -t "mqtt/test" -m "test"