Wednesday, August 12, 2015

Linux FIle & Media Server

I had several external usb hardisk. I need to bring them along with my laptop when needed. I though why not create a file server, so that i can still access it anywhere at home. Utilizing one of the cubieboard, i create this file server.

Samba Server
sudo apt-get install samba cifs-utils ntfs-3g dosfstools

add these lines at the end of /etc/samba/smb.conf
[media]
 path = /media
 public = yes
 writable = yes
 comment = smb share
 printable = no
 guest ok = yes
 read only = no
 directory mask = 0777

Tuesday, August 11, 2015

Homemade 3G Router/APCombo

This article show you how to make your own 3g router using embedded linux, in my case i'm using a raspberry pi 1 Model B. What you need other then the board it self were 3g modem and wifi dongle. The Wifi dongle that were gonna use, should have multiple tx queue features, one from atheros should do the trick.



Ethernet/LAN was bridged with Wifi. In this way client via ethernet can also connected to the network. The bridge hold the system ip address, and no ip assigned to ethernet or wifi.

3G connection were done by umtskeeper which include sakis3g, AP were done by hostapd working along with dnsmasq for dhcp and brigde util to configure the network bridge.

Friday, August 7, 2015

Media Player On Allwinner device.

This is my note to make media player that work on Cubieboard, Bananapi and other allwinner board. Assume you already had a working debian wheezy system running on the board.


Add these repository:
sudo vi /etc/apt/source.list
deb http://dl.bananian.org/packages/ wheezy main
deb http://packages.cubian.org/ wheezy main non-free


Add gpg key:
wget -O - http://packages.cubian.org/cubian.gpg.key | sudo apt-key add -
wget -O - http://dl.bananian.org/packages/bananian-packages.key | sudo apt-key add -

Monday, September 29, 2014

Clap On Sensor

This is a simple circuit that I use to replace my mom bird toys which broken by water during the rain.
It work on clapping detection and then the bird singing and moving on a period of time. The bird sound circuit replaced by other singing circuit that I took from unused bubble machine toy.
Here's the schematics:

Thursday, March 13, 2014

Build Raspibian Linux

I'm gonna share how to create debian system on Raspberry PI rev B.
My computer is running debian 7 (wheezy), so this tutor will only work with the same type of linux system. Note that Raspberry Pi had arm v6 processor, the debian armhf itself was build for arm v7, so the armhf distribution of debian will not work on Raspberry Pi, you may use armel instead, regardless performance since soft floating point is used. At last the Raspibian were debian armhf build for arm v6 specially for Raspberry Pi.


1. Cross-toolchains

Download the toolchains from https://github.com/raspberrypi/tools/archive/master.zip
extract somewhere in your home directory, mostly people put the toolchains on /opt directory.
Export the toolchains path to your working environment like this:
export PATH:$PATH:/arm-bcm2708 /gcc-linaro-arm-linux-gnueabihf-raspbian / bin

test your toolchains by typing: 
arm-linux-gnueabihf-gcc --version

Monday, December 9, 2013

Compat wireless driver on mini2440

Compat wireless driver on mini2440

Continuing my post on Debian squeeze in mini2440 board , the default wireless driver included in kernel 2.6.32.2 are limited and most of them were discontinued.
As posted before, get the toolchains from debian squeeze distribution and kernel source for mini2440 whith 2.6.32.2 version.
Get the latest compat wireless driver from linuk backports.
I use the compat-drivers-3.7.6-1.tar.bz2 from http://mirror.anl.gov/pub/linux/kernel/projects/backports/stable/v3.7.6/compat-drivers-3.7.6-1.tar.bz2

Friday, June 14, 2013

Debian Squeeze in mini2440 board

Debian Squeeze in mini2440 board

Toolchains:
Get base debian build essential and ncurses for menuconfig
>sudo apt-get install build-essential ncurses-dev
add to /etc/apt/sources.list
deb http://emdebian.org/debian/ squeeze main
> sudo apt-get update
> sudo apt-get install gcc-4.3-arm-linux-gnueabi
check toolchains
> arm-linux-gnueabi-gcc --version
arm-linux-gnueabi-gcc (Debian 4.3.5-4) 4.3.5Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.