Start downloading the install files from Oracle
Create a blank CentOs 6.5 instance
Convert to Oracle Linux: (source)
curl -O https://linux.oracle.com/switch/centos2ol.sh
sh centos2ol.sh
#!/usr/bin/env python | |
# coding: utf-8 | |
import os | |
import sys | |
import json | |
import uuid | |
import tempfile | |
from flask import Flask, request, Response, g |
cd ~/Downloads
wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb
dpkg -i zabbix-release_3.2-1+xenial_all.deb
apt-get update
should add /etc/apt/sources.list.d/zabbix.list
/etc/apt/source.list
deb http://cn.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise main restricted
deb http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Copyright (c) 2013 Asumi Kamikaze Inc. | |
# Copyright (c) 2013 The Octopus Apps Inc. | |
# Licensed under the Apache License, Version 2.0 (the "License") | |
# | |
# Author: Alejandro M. Bernardis | |
# Email: alejandro.m.bernardis at gmail.com | |
# Created: 4/6/13, 12:44 PM |
#!/usr/bin/env python | |
""" | |
How to use it: | |
1. Just `kill -2 PROCESS_ID` or `kill -15 PROCESS_ID` , The Tornado Web Server Will shutdown after process all the request. | |
2. When you run it behind Nginx, it can graceful reboot your production server. | |
3. Nice Print in http://weibo.com/1682780325/zgkb7g8k7 | |
""" |
import tornado.ioloop | |
import tornado.web | |
from tornado.options import options, define | |
from tornado.netutil import bind_unix_socket | |
from tornado.httpserver import HTTPServer | |
class MainHandler(tornado.web.RequestHandler): | |
def get(self): | |
self.write("Hello, world") | |
Creating a service to startup at BeagleBone Black boot time:
Create a shell script such as /usr/bin/myFancyBash.sh:
#!/bin/bash
# this could be any runnable code or shell script, really
/usr/bin/myFancyPython.py
Note that the first line is critical.