CTF MEG Software Installation Guide

The CTF MEG software is a collection of tools to collect/manipulate/analyse MEG data. If you know well about the history of transitioning from 32bit Linux to 64bit, then you'll be fine without this guide. In this guide there will be some nasty hacks that works around package management situations, and therefore can be potentially harmful to the extent of system secruity and stablity. Though I am adding some tips about how to keep it as safe and sound as possible as my power allows, but consider you've been warned.

Installation of CTF MEG software cna be divided into two parts, enabling 32bit executables, and force installation some out-dated and risky libraries.

Getting Started

You need i386 version libc or glibc depends on the availabity on your platform, e.g. on Ubuntu 16.04 LTS:

View ZZZ.passwd
View flags
View .surge.conf
# warning, notify, info, verbose
skip-proxy =,,,, localhost, *.local
bypass-tun =,,,
loglevel = notify
# 默认 IP 和端口,不修改的话系统网络 HTTP 和 HTTPS 代理设置中就是
interface =
port = 6152
View haproxy.cfg
# Please set $SRV_TLS_CERT, $SRV_TLS_CA accordingly.
maxconn 2048
log /dev/log local0
log /dev/log local1 notice
tune.ssl.default-dh-param 2048
ssl-default-bind-options no-tls-tickets
chroot /var/lib/haproxy
stats timeout 30s
function snmpGetIP
local SNMP_HOST=$1
local SNMP_COMM=$2
local SNMP_IFID=$3
snmpwalk -Os -c ${SNMP_COMM} -v 2c ${SNMP_HOST} ipAdEntIf | grep "INTEGER: ${SNMP_IFID}" | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}'
View hostIp.func.rsc
# Change to the name of interface that gets the dynamic IP address
:local inetinterface "pppoe-out1";
# use search & replace all on myEndpoint for multiple hosts
:global myEndpoint;
:if ([/interface get $inetinterface value-name=running]) do={
# Get the current IP on the interface
:local currentIP [/ip address get [find interface="$inetinterface" disabled=no] address];
View DNSoMatic.rsc
# DNS-O-Matic Dynamic IP Endpoint update script for Mikrotik RouterOS.
# Author: Quan Zhou <>
# Description:
# Update IP address of specified hostname through
# You need a account and whatsoever ddns service
# supported by them.
# Tested ands works with Mikrotik RouterOS 6.32
View surge.conf
# warning, notify, info, verbose
loglevel = notify
# http, https, socks5
Proxy = custom,, 443, rc4-md5, password, http://server/custom.module
# Block privacy trackers
View default.yaml
good_old_caps_lock: true
Caps_Lock: clear
Control_L: noop
Control_R: noop
Eisu_toggle: clear
Shift_L: inline_ascii
Shift_R: commit_text
config_version: 0.36.custom.3025064750