EmDebian in Android BOX Linux System

EmDebian in Android BOX

Prerequisite: Android box should be rooted and a available linux system. Equipment: KaiBoer F4 My process is as follows: Any one running linux machine (my system is ubuntu x64): mkdir -p ~/debian cd ~/debian dd if=/dev/zero of=debian.img bs=100M count=20 mkfs.ext4 debian.img sudo mount -o loop debian.img /mnt sudo apt-get install debootstrap cd /mnt debootstrap --verbose --arch=armel --foreign wheezy debian http://ftp.cn.debian.org/debian cd sudo umount /mnt Then copy debian.img into root directory of the sdcard in your android box. Ssh to your...
snmpdiskio for ubuntu 13.10 LTS Bsd System

snmpdiskio for ubuntu 13.10 LTS

Step by Step: 1.sudo apt-get install snmp snmpd snmp-mibs-downloader  2.Download snmpdiskio package from "http://forums.cacti.net/viewtopic.php?f=12&t=12742" and following README 3.Edit profiles for snmpd: 『/etc/snmp/snmpd.conf』 agentAddress udp: view systemonly included . view systemonly included . view systemonly included . extend . hdNum /usr/local/bin/snmpdiskio hdNum extend . hdIndex /usr/local/bin/snmpdiskio hdIndex extend . hdDescr /usr/local/bin/snmpdiskio hdDescr extend . hdInBlocks /usr/local/bin/snmpdiskio hdInBlocks extend . hdOutBlocks /usr/local/bin/snmpdiskio hdOutBlocks 『/etc/snmp/snmp.conf』 mibs : 『/etc/default/snmpd』 export MIBS=/usr/share/snmp/mibs SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I interface,ifTable,ifXTable,cpu,cpu_linux,hw_mem,extend,versioninfo,snmp_mib,ip,at,system_mib -smux,mteTrigger,mteTriggerConf -p /var/run/snmpd.pid'  4.Download...


for package fontspec: edit $texlive/texmf-dist/tex/latex/ctex/engine/ctex-xecjk-engine.def % ctex-xecjk-engine.def: for XeTeX engine with xeCJK % vim:ft=tex % compatibility with amssymb.sty etc and xunicode.sty v0.95+ \RequirePackage{savesym} \def\CTEX@save@symlist{hbar,Finv,aleph,beth,gimel,daleth,Game} \@for \reversed@a:=\CTEX@save@symlist \do{% \savesymbol{\reversed@a}} \RequirePackage{fontspec} \RequirePackage{xeCJK} \defaultfontfeatures{Ligatures=TeX} \@for \reversed@a:=\CTEX@save@symlist \do{% \restoresymbol{UTF}{\reversed@a}% \expandafter\ifx \csname\reversed@a\endcsname \relax \expandafter\let \csname\reversed@a\endcsname \CTEX@undefined \fi} \let\CTEX@save@symlist\CTEX@undefined \ifCTEX@punct \punctstyle{quanjiao} \else \punctstyle{plain} \fi \input{ctex-cjk-common.def} \ifCTEX@nofonts\else \ifCTEX@winfonts \input{ctex-xecjk-winfonts.def} \else\ifCTEX@adobefonts \input{ctex-xecjk-adobefonts.def} \fi\fi \fi \endinput for winfonts for ctex-xecjk $texlive/texmf-dist/tex/latex/ctex/fontset/ctex-xecjk-winfonts.def % ctex-xecjk-winfonts.def: Windows 的 xeCJK 字体设置,默认为六种中易字体 % vim:ft=tex \setCJKmainfont{SimSun} \setCJKsansfont{SimHei} \setCJKmonofont{FangSong} \setmainfont{Times New Roman} \setsansfont{Droid Serif} \setmonofont{Droid Sans...
Native ZFS + rootfs + GPT on Gentoo Linux System

Native ZFS + rootfs + GPT on Gentoo

Step by step: Boot install CD (i.e. Gentoo 12.1 LiveDVD) Parted disk using gpt mode (i.e. GPTFDISK, make sure "BIOS boot partition" being parted, zfs partition set type "Solaris zfs") create zpool and zfs partitions zpool create -f -o ashift=12 -o cachefile=/tmp/zpool.cache -O normalization=formD -m none -R /mnt/gentoo zdisk /dev/sda2 zfs create -o mountpoint=none zdisk/ROOT zfs create -o mountpoint=/ zdisk/ROOT/gentoo zfs create -o mountpoint=/home zdisk/HOME zfs create -o mountpoint=none zdisk/PORTS zfs create -o mountpoint=/usr/portage zdisk/PORTS/portage zfs create -o mountpoint=/usr/portage/distfiles zdisk/PORTS/portage/distfiles...
Checking system uptime on FreeBSD Bsd System

Checking system uptime on FreeBSD

We usually check "sysctl:kernel.boottime" to get uptime on freebsd, but it does not work for version 6 and above. Be obtained by reading the source code uptime the system call,and then through the python to obtain accurate uptime. #!/usr/bin/env python # NOTE: ctypes require python 2.5 import os, sys, datetime from optparse import OptionParser EX_WARN = 1 EX_CRIT = 2 EX_UNKN = 3 try: import ctypes except ImportError: print "UPTIME CRITICAL: Python ctypes required (Python 2.5 or greater)" sys.exit(EX_CRIT) class...
NoMachine NX for LinuxMint V12 Linux System

NoMachine NX for LinuxMint V12

First: Install software into your system, command like: sudo apt-get install openssh Second: Download nxclient/nxnode/nxserver from http://www.nomachine.com/download.php, and install them step by step, command like: sudo dpkg -i ***.deb Third: Edit /etc/ssh/sshd_config, and modify or add (more…)
Increase LaTeX support Linux System

Increase LaTeX support

By wp latex. Look like: \begin{bmatrix} 0 & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & 0 \end{bmatrix} f(n) = \begin{cases} n/2, & \mbox{if }n\mbox{ is even} \\ 3n+1, & \mbox{if }n\mbox{ is odd} \end{cases} f(x)= \sum_{n=0}^\infty a_n x^n= a_0+a_1x+a_2x^2+\cdots