Visit my board at bbs.opicron.eu
Docker install of linux enviroment which runs Mystic BBS software.
Includes start, stop and boot script for correct signal term handling.
02/04/2024:
- added ubuntu 24.04 dockerfile
- path to python 2.7 lib is /opt/pyenv/versions/2.7.18/lib/libpython2.7.so
- moved ubuntu 22.04 dockerfile
- path to python 2.7 lib is /usr/lib/x86_64-linux-gnu/libpython2.7.so
30/03/2024:
- updated to ubuntu 22.04
- added latest pip version for python 2.7
- use pip2 command
- added get-pip python script to repo
- added requests
- added pyfiglet
- added cryptlib archives to repo
- 3.4.3 for ubuntu 16.04
- 3.4.4 for ununtu 20.04
- 3.4.5 for ubuntu 22.04
23/03/2024:
- change from python2.7.18:strech to ubuntu
- small image footprint
- possibility to install python 3
- etc etc
- removed Mystic binaries
- mount Mystic to /mystic/ yourself
- changed ENTRYPOINT to CMD so it can be overriden
- added logger to synology console
- possible to blacklist log lines
- added logrotate to replace Mystic roll
- set roll type to "none" in mystic
- all *.log files are handled by logrotate
- added expect
- run mystic -y background scripts
- without spawn/expect mystic exits
11/08/2020:
- added cleanup signal to entrypoint bash script
- no more forced shutdowns (see sigterm handling)
30/10/2020:
- added cron, zip, rar for fidopoll/mutil mail
- changed from stretch-slim to python2.7.18:stretch (see msg_seek() crash)
- added EXPOSE for BinkP mail server
28/10/2020:
- added manual compile Python 2.7.18 (overruled by cron, which installs 2.7.13)
29/09/2020:
- added EXPOSE ports for Synology docker
- changed cryptlib download link
- changed ENTRYPOINT
- changed main window to tail log instead of sleep
- added start/stop bash scripts
- added python for mystic scripts
- added pip for dependency installs
- added link from unrar to rar
For running mystic -y scripts in background use this script:
#!/usr/bin/expect -f
# Don't log spawn output to stdout
log_user 0
# Set a timeout (optional)
set timeout 30
# Set terminal type
set env(TERM) "linux"
# Start mystic
spawn /mystic/mystic -uYourUser -pYourPass -yYourScript
# Wait for it to finish (you can add more interaction if needed)
expect eof
Used the following source for the start/stop scripts: https://vswitchzero.com/mystic-systemd/
- tba
If you want to mount your custom mystic install you can mount the volume as below and it will override the fresh install. Do not mount the mystic volume if you wish to use the default install. It is recommended to copy the files after a fresh install and add the docker again mounting your own mystic folder to keep your configuration data outside the docker.
To make the usage easier the logs are tail'ed in main docker window as in the following example.
Make sure you map the ports from AUTO to manually set ports. If not set manually Synology will set random ports on each restart:
- MobaXterm (need configuration to get ANSI working well)
- Netrunner v2 (best for mystic and easy to configure)
- SyncTerm
- EtherTerm3
- MT32
sudo iptables -t nat -A PREROUTING -m addrtype --dst-type LOCAL -j DOCKER
https://www.youtube.com/watch?v=uguo1hr2AQg
http://www.mysticbbs.com/downloads.html
https://anotherdroidbbs.wordpress.com/2017/07/04/display-ansi-art-in-mystic-menus/
http://www.mysticbbs.com/screenshots.html
http://andr01d.zapto.org:8080//tutor/p1liner.txt.htm
http://andr01d.zapto.org:8080//tutor/1ledit.txt.htm
http://docs.wwivbbs.org/en/latest/conn/fail2ban/
https://www.youtube.com/watch?v=HLmjBydrL7U
https://stackoverflow.com/questions/32856389/how 57CB -to-import-ssl-in-python-2-7-6
https://stackoverflow.com/questions/17309288/importerror-no-module-named-requests
https://bbs.electronicchicken.com/?page=001-forum.ssjs&sub=fsxnet_fsx_mys&thread=3930
http://necrobbs.com/?page=001-forum.ssjs&sub=fsxnet_fsx_mys&thread=1627
https://unix.stackexchange.com/questions/146756/forward-sigterm-to-child-in-bash/146770#146770