A video of this working example is on YouTube and full PYTHON source code and CODESYS project is on GitHub.
Setup on CODESYS side
| # Unload the Service Service | |
| sudo launchctl unload -w /Applications/Server.app/Contents/ServerRoot/System/Library/LaunchDaemons/com.apple.serviceproxy.plist | |
| # Load the Service Service | |
| sudo launchctl load -w /Applications/Server.app/Contents/ServerRoot/System/Library/LaunchDaemons/com.apple.serviceproxy.plist | |
| # Check the status of the Server Service | |
| sudo launchctl list com.apple.serviceproxy |
| import io | |
| import pathlib | |
| import pycdlib | |
| ubuntu = pathlib.Path('ubuntu-22.04-live-server-amd64.iso') | |
| new_iso_path = pathlib.Path('ubuntu-22.04-live-server-amd64-auto.iso') | |
| iso = pycdlib.PyCdlib() | |
| iso.open(ubuntu) |
| ## Install necessary packages and latest virtualbox | |
| wget -q -O - http://download.virtualbox.org/virtualbox/debian/oracle_vbox_2016.asc | sudo apt-key add - | |
| sudo sh -c 'echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian bionic non-free contrib" >> /etc/apt/sources.list.d/virtualbox.org.list' | |
| sudo apt update | |
| sudo apt install virtualbox-5.2 qemu-utils genisoimage cloud-utils | |
| ## get kvm unloaded so virtualbox can load | |
| ## WARNING: not needed? | |
| #sudo modprobe -r kvm_amd kvm_intel | |
| #sudo service virtualbox stop |
| #!/bin/bash | |
| set -e | |
| # REQUIRED ACTION: Configure your backup server vars - see OVH Server Manager's "Backups" tab. | |
| # BACKUP_HOST_PREFIX: use the prefix domain for the listed "Name" value on the "Backups" tab. | |
| # Example: With a 'Name' value `ftpback-bhs1-3.ip-111-222-333.net` you would need to set `BACKUP_HOST_PREFIX=ftpback-bhs1-3` | |
| # Add something likethese to your ~/.bashrc - /etc/profile | |
| #export OVH_SERVER_ID="ns5xxxxx.ip-x-x-x.net" | |
| #export BACKUP_HOST_PREFIX="ftpback-bhs1-x" |
| server { | |
| listen 80; | |
| listen [::]:80; | |
| root /var/www/wordpress; # Wordpress Directory | |
| index index.php index.html index.htm; | |
| server_name localhost; | |
| client_max_body_size 100M; | |
| autoindex off; |
Security Advisories / Bulletins linked to Log4Shell (CVE-2021-44228)
The MIT License (MIT)
Copyright (c) 2014 David Underwood
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: