mactjaap
Well-known member
I did the test on a Orange Pi One. Not sure if this is OK. But I have it at my desk. I do have a Raspberry Pi, but didn’t use it seriously.
To start I add a wireless USB dongle to the OrangePi, added a udev rule to get it known as wlan0
vi /etc/udev/rules.d/75-persistent-net.rules
with this in it:
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:13:ef:c5:2d:40", NAME="wlan0"
Activated wlan0 with nmtui and ssh-ed to its ip address to check if everything is working ok. It was.
Then did the install. I needed these commands
apt-get update
apt-get install ansible
git clone https://github.com/justinschw/legacyweb.git
cd legacyweb
./runinstall.sh
root@orangepione:~/legacyweb# ./runinstall.sh
[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default). This feature will be removed in a
future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
PLAY ***************************************************************************
TASK [setup] *******************************************************************
ok: [127.0.0.1]
TASK [gateway : install dnsmasq] ***********************************************
changed: [127.0.0.1]
TASK [gateway : install redis server for hostname-page lookup] *****************
changed: [127.0.0.1]
TASK [gateway : install redis tools] *******************************************
ok: [127.0.0.1]
TASK [gateway : template] ******************************************************
changed: [127.0.0.1]
TASK [gateway : template] ******************************************************
changed: [127.0.0.1]
TASK [gateway : template] ******************************************************
changed: [127.0.0.1]
TASK [gateway : template] ******************************************************
changed: [127.0.0.1]
TASK [gateway : template] ******************************************************
changed: [127.0.0.1]
TASK [gateway : command] *******************************************************
changed: [127.0.0.1]
TASK [gateway : command] *******************************************************
changed: [127.0.0.1]
TASK [gateway : service] *******************************************************
changed: [127.0.0.1]
TASK [gateway : service] *******************************************************
ok: [127.0.0.1]
TASK ************************************************
changed: [127.0.0.1]
TASK mailto:: install stunnel4 *************************************************
mailto:: install stunnel4changed: [127.0.0.1]
mailto:: install stunnel4TASK mailto:: install stunnel4mailto:: install postfix ********************************************************
mailto:: install stunnel4mailto:: install postfixchanged: [127.0.0.1]
mailto:: install stunnel4mailto:: install postfixTASK mailto:: install stunnel4mailto:: install postfixmailto:: template ********************************************************
mailto:: install stunnel4mailto:: install postfixmailto:: templatechanged: [127.0.0.1]
mailto:: install stunnel4mailto:: install postfixmailto:: templateTASK mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template *********************************************************
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: templatefatal: [127.0.0.1]: FAILED! => {"changed": false, "failed": true, "msg": "Job for stunnel4.service failed because the control process exited with error code. See \"systemctl status stunnel4.service\" and \"journalctl -xe\" for details.\n"}
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: templatePLAY RECAP *********************************************************************
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template127.0.0.1 : ok=17 changed=14 unreachable=0 failed=1
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: templateInstalation is OK, only stunnel failes, but that is only needed for email i guess.
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: templateWlan0 seems to have losts it’s ip address. Nmtui doesn’t get it back.
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: templateThis is not Ok because the Pi doesn’t have an connection to the internet anymore. Not sure why this happens.
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: templateI decide to hook up an old computer. A Windows XP notebook is most simple (sorry).
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: templateNo go. I did get correct IP information, but cannot connect with a web browser to the IP address of dns name legacyweb.net.
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: templateI will try to debug, but I think it is nice to show this outcome first.
To start I add a wireless USB dongle to the OrangePi, added a udev rule to get it known as wlan0
vi /etc/udev/rules.d/75-persistent-net.rules
with this in it:
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:13:ef:c5:2d:40", NAME="wlan0"
Activated wlan0 with nmtui and ssh-ed to its ip address to check if everything is working ok. It was.
Then did the install. I needed these commands
apt-get update
apt-get install ansible
git clone https://github.com/justinschw/legacyweb.git
cd legacyweb
./runinstall.sh
root@orangepione:~/legacyweb# ./runinstall.sh
[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default). This feature will be removed in a
future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
PLAY ***************************************************************************
TASK [setup] *******************************************************************
ok: [127.0.0.1]
TASK [gateway : install dnsmasq] ***********************************************
changed: [127.0.0.1]
TASK [gateway : install redis server for hostname-page lookup] *****************
changed: [127.0.0.1]
TASK [gateway : install redis tools] *******************************************
ok: [127.0.0.1]
TASK [gateway : template] ******************************************************
changed: [127.0.0.1]
TASK [gateway : template] ******************************************************
changed: [127.0.0.1]
TASK [gateway : template] ******************************************************
changed: [127.0.0.1]
TASK [gateway : template] ******************************************************
changed: [127.0.0.1]
TASK [gateway : template] ******************************************************
changed: [127.0.0.1]
TASK [gateway : command] *******************************************************
changed: [127.0.0.1]
TASK [gateway : command] *******************************************************
changed: [127.0.0.1]
TASK [gateway : service] *******************************************************
changed: [127.0.0.1]
TASK [gateway : service] *******************************************************
ok: [127.0.0.1]
TASK ************************************************
changed: [127.0.0.1]
TASK mailto:: install stunnel4 *************************************************
mailto:: install stunnel4changed: [127.0.0.1]
mailto:: install stunnel4TASK mailto:: install stunnel4mailto:: install postfix ********************************************************
mailto:: install stunnel4mailto:: install postfixchanged: [127.0.0.1]
mailto:: install stunnel4mailto:: install postfixTASK mailto:: install stunnel4mailto:: install postfixmailto:: template ********************************************************
mailto:: install stunnel4mailto:: install postfixmailto:: templatechanged: [127.0.0.1]
mailto:: install stunnel4mailto:: install postfixmailto:: templateTASK mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template *********************************************************
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: templatefatal: [127.0.0.1]: FAILED! => {"changed": false, "failed": true, "msg": "Job for stunnel4.service failed because the control process exited with error code. See \"systemctl status stunnel4.service\" and \"journalctl -xe\" for details.\n"}
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: templatePLAY RECAP *********************************************************************
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template127.0.0.1 : ok=17 changed=14 unreachable=0 failed=1
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: templateInstalation is OK, only stunnel failes, but that is only needed for email i guess.
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: templateWlan0 seems to have losts it’s ip address. Nmtui doesn’t get it back.
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: templateThis is not Ok because the Pi doesn’t have an connection to the internet anymore. Not sure why this happens.
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: templateI decide to hook up an old computer. A Windows XP notebook is most simple (sorry).
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: templateNo go. I did get correct IP information, but cannot connect with a web browser to the IP address of dns name legacyweb.net.
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: template
mailto:: install stunnel4mailto:: install postfixmailto:: templatemailto:: templateI will try to debug, but I think it is nice to show this outcome first.