TP-Link TL-MR3020/ Jul 1, 2013

TP-Link TL-MR3020

The TP-Link TL-MR3020 is a small embedded device with 32MB RAM, 4MB ROM, 100Mbit network, an Atheros AR7240 with 400MHz, and with an USB 2.0 port. This device runs with OpenWRT and the installation is easy. One of the highlights is the energy consumption, it uses 500mW with Wifi and if you connect LAN it merely draws 700mW.

read more...
WebRTC and P2P/ May 19, 2013

WebRTC and P2P

WebRTC defines a new API to enable server-less (browser to browser) communication via Javascript. Originaly it was intended to be used as Real-Time Communications (RTC). However, the standard also defines to send arbitrary data, making it suitable for browser-based P2P communication. Browser-based P2P applications are emerging and sending any kind of data via WebRTC is currently being standardized and browser implementation is under active development. Chrome and Firefox already supports it, more browsers will follow. This article presents a minimal example how browser to browser communication works.

read more...
Milestone CM7/ Dec 18, 2011

Installing CM7 7.1.2 (2.3.7) on a Motorola Milestone

Since, I got a new phone, I decided to upgrade my old Motorola Milestone with the latest cyanogenmod. CyanogenMod 7 for Milestone A853 is not officially supported by CyanogenMod, however, since I don’t need the phone to be working, I installed it.

As my phone is already rooted, I did not need to follow these instructions.

Preparation

Compiling CM7

Depending on your CPU and bandwidth, this may take some hours.

mkdir cm4mm
cd cm4mm
repo init -u git://github.com/nadlabak/android.git -b gingerbread
repo sync
vendor/cyanogen/get-rommanager
. build/envsetup.sh && brunch umts_sholes

Flashing

Installing dropbear PCHA200/ Oct 31, 2011

Installing dropbear an a PCH-A200/A210 (NMT – Networked Media Tank)

First, install opkg by using the NMT Community Software Installer. If you are using Ubuntu, install sudo apt-get install mono-complete (which is probably more than you need) to make NMT-CSI run. Download the opkg package, then run sh "Linux Start.sh" and go to File -> Install from File -> opkg_c200_v0.1.8-nmt1.zip. Of course you need to start FTP in order to connect to your device. For more details, go here.

Once opkg is installed get the package list opkg update and install opkg install dropbear. This failed with my setup, so I had to configure it manually:

After that, I modified /share/Apps/local/etc/init.d/51dropbear.sh in order to start dropbear (inspired by this thread.

#!/bin/sh
[ -e /share/Apps/local/etc/default/dropbear ] && . /share/Apps/local/etc/default/dropbear
if [ "$DROPBEAR_ENABLE" = "no" ]; then
    exit
fi
if [ -n "`pidof /share/Apps/local/sbin/dropbear`" ]; then
    killall /share/Apps/local/sbin/dropbear 2>/dev/null
fi
# root does not have a shell, so ssh wont work. Give the root a shell
sed -i 's#root:x:0:0:root:/root:/bin/true#root:x:0:0:root:/root:/bin/sh#g' /etc/passwd
mkdir -p /etc/dropbear
cp /share/.ssh/dropbear_dss_host_key /etc/dropbear
mkdir -p /root/.ssh
chmod 700 /root/.ssh
cp /share/.ssh/authorized_keys /root/.ssh/
chown root.root /root
# -s Disable password logins
/share/Apps/local/sbin/dropbear -s

Lets hope that the installation of an ssh server on the new Popcorn Hour A-300 is a bit easier.

Update 15.12.2011: I installed unison for doing backups on my NMT. Unfortunately, I did not find the package here. However, it turned out to be easier than I thougt. Instead of cross-compiling my own package, I tried the package from debian, and it worked by just copying the binary into the /share/Apps/local/bin/. The only problem is the CPU that slows the encrypted traffic down to around 10MBit/s.

Upload Maven Artifact Manually/ Oct 30, 2011

Upload Artifacts on the Command Line

I had to patch an external library and since my project uses Maven, I wanted to upload this patched library to my Maven repository. It turned out that I had to use maven2 as maven3 handles extensions differently.

Stackoverflow provided the rest of the information I needed to upload a library to my maven repository.

/home/draft/java/apache-maven-2.2.1/bin/mvn deploy:deploy-file -Durl=scp://tomp2p.net/home/draft/maven -DrepositoryId=ssh-tomp2p -DgroupId=org.jboss.netty -DartifactId=netty -Dversion=3.2.6.Patched -Dpackaging=jar -Dfile=target/netty-3.2.6.Patched.jar
Pages: [ 1 2 3 ]