All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.
| ________ ________ ___ __ ___ | |
| |\_____ \|\ __ \|\ \|\ \ |\ \ | |
| \|___/ /\ \ \|\ \ \ \/ /|\ \ \ | |
| / / /\ \ __ \ \ ___ \ \ \ | |
| / /_/__\ \ \ \ \ \ \\ \ \ \ \ | |
| |\________\ \__\ \__\ \__\\ \__\ \__\ | |
| \|_______|\|__|\|__|\|__| \|__|\|__| | |
| Ignore Azure and GCP. This gist was implemented on AWS. |
| # Beanstalk ain't ready for Rails 6. This fix is courtesy of https://austingwalters.com/rails-6-on-elastic-beanstalk/ | |
| # Additional node 6 cleanup courtesy of https://github.com/nodesource/distributions/issues/486 | |
| commands: | |
| 00_remove_node_6_if_present: | |
| command: "/bin/rm -rf /var/cache/yum && /usr/bin/yum remove -y nodejs && /bin/rm /etc/yum.repos.d/nodesource* && /usr/bin/yum clean all" | |
| ignoreErrors: true | |
| 01_download_nodejs: | |
| command: "curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -" | |
| 02_install_nodejs: |
| # config/initializers/active_admin.rb | |
| #... | |
| module ActiveAdmin | |
| module Views | |
| # Defines a `react_component` active admin component. It allows you | |
| # to include react components into active admin using React On Rails. | |
| # Example: | |
| # |
For more details please visit http://fisherworks.cn/?p=2517
$ sudo apt update && sudo apt dist-upgrade
$ sudo apt install vim-nox openssh-server chromium-browser x11vnc slick-greeter
On lightdm configuration screen choose lightdm
Excellent GoRails Article(which is main source for this guide too). I did benefited from lot of other resources online as well.
(Skip this if you are not using DO, and create your own VPS instance on the service of your choice. Steps below may still be helpful.)
There are few options for this step, DO provide us some pre built images for lot of platforms in which they have pre-installed nginx, node and other related dependencies for each image. Rails one is little outdated, I tried that but didn't go very well for me, you can give it a shot if you have enough time.
For this guide we will go with bear bone ubuntu 18.04 server.
While creating the droplet, you will be asked to set an ssh key, just generate an ssh key with ssh-keygen on your local system and copy contents of .pub file into the textbox provided.
| import time | |
| import datetime | |
| from utils import * | |
| import pyzk.pyzk as pyzk | |
| from pyzk.zkmodules.defs import * | |
| from pyzk.misc import * | |
| """ | |
| Script to connect to multiple ZKTeco devices and check the incoming events by pooling. |
- login to 'AWS Management Console' (https://aws.amazon.com/console/)
- from 'Services'(in navbar) choose 'EC2'
- from 'Create Instance' section, click on 'Launch Instance'
- then select 'AMI' (Amazon Machine Image), we will be using 'Ubuntu Server 16.04 LTS (HVM)' as example
- select 'Instance Type' as per your requirement
- then click 'Next:Configure Instance Details' to continue
change 'Configure Instance Details' or used as default settings
| ::########################################################################################################################## | |
| :: | |
| :: This script can ruin your day, if you run it without fully understanding what it does, you don't know what you are doing, | |
| :: | |
| :: OR BOTH!!! | |
| :: | |
| :: YOU HAVE BEEN WARNED!!!!!!!!!! | |
| :: | |
| :: This script is provided "AS IS" with no warranties, and confers no rights. | |
| :: Feel free to challenge me, disagree with me, or tell me I'm completely nuts in the comments section, |
| files: | |
| "/etc/nginx/conf.d/01_app_server.conf": | |
| mode: "000644" | |
| owner: root | |
| group: root | |
| content: | | |
| # The content of this file is based on the content of /etc/nginx/conf.d/webapp_healthd.conf | |
| upstream website_upstream { | |
| server unix:///var/run/puma/my_app.sock; | |
| } |