linux-dash: Monitors “Linux Performance” Remotely Using Web Browser

at First, go to demo 😀 :


  • A Linux server with Apache/Nginx installed.
  • A PHP and php-json extension installed.
  • A unzip utility installed on server.
  • Optionally, you need htpasswd installed, to password protect the statistics page on your server.

install packages:

# apt-get install apache2 apache2-utils

# apt-get install php5 curl php5-curl php5-json


# git clone 

finally : http://localhost/linux-dash


reference :

Force Reboot a Linux Box

There are times that your sysetm is not stable and you can not reboot it, if you have access to console:

Alt+SysRq+u    will force unmount all filesystems

Alt+SysRq+i    will force kill all tasks

Alt+SysRq+b    will force reboot

Alt+SysRq+o    will force poweroff


If you are on a ssh shell you can not issue these commands and should do this:

enable feature:

     echo 1 > /proc/sys/kernel/sysrq

issue a command (reboot for example):
     echo b > /proc/sysrq-trigger

ubuntu for rk3188

Serial config: 115200

Prebuild images:

you can ignore the rest of this doc and download a prebuild image and flash it!

create ubuntu image: master doc:

apt-get install qemu-user-static binfmt-support
dd if=/dev/zero of=rock_rootfs.img bs=1M count=1024
mkfs.ext4 -F -L linuxroot rock_rootfs.img
mount -o loop rock_rootfs.img /mnt
check md5sum 😉
tar zxvf linaro-raring-alip-20130826-474.tar.gz -C /mnt
cd /mnt
mv binary/*   .
rmdir binary
cp /usr/bin/qemu-arm-static /mnt/usr/bin
modprobe binfmt_misc
mount -t devpts devpts /mnt/dev/pts
mount -t proc proc /mnt/proc
chroot /mnt
echo ‘nameserver’ > /etc/resolv.conf
apt-get update
apt-get install xorg firefox vim mc
passwd linaro
umount /mnt/proc
umount /mnt/dev/pts
cd /
umount /mnt

Flash image: master doc:

download and install
run it
select Image: rock_rootfs.img
turn off board, push recover button (next to usb port) and power on device using oth cable (no ther power supply), now software should detect board
select NAND partition: userdata
it is better to get a backup first 😉
flash 😉
you should flash a kernel too

Compile a kernel: master doc:

NOTE: this works only on squeeze!
apt-get install emdebian-archive-keyring
add this line to sources.list:
deb squeezy main
apt-get update
apt-get install lzop libncurses5-dev
apt-get install g++-4.4-arm-linux-gnueabi git build-essential
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabi-
git clone -b wip/rockchip-3.0-radxa-rock
cd rockchip-3.0/
make rk3188_radxa_rock_defconfig
cd ..
git clone
cd initrd/
find . ! -path “./.git*”  | cpio -H newc  -ov > ../initrd.img
cd ..
chmod +x mkbootimg
./mkbootimg –kernel rockchip-3.0/arch/arm/boot/Image –ramdisk initrd.img -o boot.img