Sunday, June 1, 2014

( RK3188/MK809 ) Embedded Web Server


Introductions:

For now, it is good that there are so many XBMC, mini-PC, dongle and stick available online. Local hobbyists are becoming very much more  enthusiastic to learn new embedded system behind  gadgets. To the younger generations,their  interest and excitements show about  popularity of  techno hobby in our country. Well ,this is a good indications of imminent R&D community , start-ups on the rise, and  more electronic hobbyists contributing their experiences  to  operate and tweak this micro embedded PC. Who knows anyway ?

But  my purpose is to have a cheaper computer that could saves a lot of cost ,  processing  and external peripherals. A server for host testing and debugging  which has a very minimal electricity consumption, portable,flexible and a pocket size computer. I have been testing my quad core micro server for a weeks now , and it gives me a very satisfying performance.So I decided to have a rough draft hoping to share  technical information about implementing and deploying micro server using quad core Arm based mini stick pc. 

By the way, I have discussed a while ago how to compile and flash kernel  in the RK3188 /MK809 mini stick,just I need a little more  screen shots for the additional details.http://cobecoballes-embedded.blogspot.com/2014/01/rk3188-minipc-booting-installing-linux.html .I will be posting here the steps and procedures how to use this RK3188 quad-core CPU  as a complete host server, as usual we have the basic application software to use. Our operating system will be debian a lubuntu /Picuntu NAND based for RK3188 cpu, and the rest are: Apache2,Php5 and MySQL . Let us also try sample application ,like web program and some scripts ,just comment below for some tips and clarifications about the post.

Before anything else, I would like to thanks the cyber folks who have spent time to contribute a lot so that all the technical developments are open resources.

Thanks to all of you. 

Requirements:

Hardware:
RK3188 mini stick (quad core ARM CPU)

Software:
Picuntu 4.4/4,5 or Lubuntu (RFS)
Apache ,Nginx ,PHP5, MySQL,TigthVNCserver
RKFlash

Objectives:
To compile , install and boot Linux-Ubuntu (13.4)  in RK3188 Mini PC
To install Apache2, Nginx, Php5 and MySQL
To deploy sample web program


Methodology :

1) Download Picuntu 4.5 Nand Basic GUI  image
http://www.g8.net/download/4.5/picuntu-4.5-basicgui-nand.7z

2) Using RKFlash flash the image (see to it the you are in a debug mode -OTG)
Please see to it that you have checked(/)
- Parameter
- Boot
- Kernel
-System
and unchecked()
Misc
Recovery
Back-Up

Erase Nand then Flash ROM

3) Access the new Picuntu (Lubuntu) OS
username:root
password: 12qwaszk

3.1) Connect to Wireless network (using menu or shell)
id:
key:

3.2)  using shell network configurations
root@g8picuntu#  vim /etc/network/interfaces

auto lo

iface lo inet loopback
iface eth0 inet dhcp

# could be wlan1 ,wlan2
allow-hotplug wlan0
auto wlan0


iface wlan0 inet dhcp
        wpa-ssid "wifi ssid"
        wpa-psk "wifi password"


4) List of  the download package
root@g8picuntu#  vim /etc/apt/source.list

4.1)  Update the package
root@g8picuntu# apt-get update

5) Install Apache2, Nginx, Php5 and Mysql

root@g8picuntu#  apt-get install  apache2 ,nginx,, mysql-server libapache2-mod-php5 libapache2-mod-rpaf php5-mysql php5-curl php5-gd php-apc php5-mcrypt


6.) Checking access through vnc
root@g8picuntu#  apt-get install tightvncserver
root@g8picuntu# tightvncserver
password: "your password"

6.1)  Access IP-address of client PC ,examples 192.168.1.15:1

7 ) Test sample program and lets get back to usual setting of an ordinary Linux box
root@g8picuntu# cd /var/www/

Details:

Details:

















Details:



Details:









Summary:



Conclusions:


No comments:

Post a Comment