Ubuntu MID USB boot

DEVICE=/dev/mmcblk0
IMG=ubuntu-8.10-mid-lpia.img
VOLUME=SDCARD_2GB

wget http://releases.ubuntu.com/8.10/${IMG} -P /tmp

mkfs.vfat -n ${VOLUME} ${DEVICE}p1
syslinux -f ${DEVICE}p1

install-mbr ${DEVICE}

mount ${IMG} /mnt/ -o loop
cp -a /mnt/* /media/${VOLUME}
cp -a /mnt/.disk/ /media/SDCARD_2GB
umount /mnt

sync
umount /media/${VOLUME}

# netboot
LABEL linux
MENU LABEL Ubuntu MID
KERNEL ubuntu-8.10-mid/casper/vmlinuz
APPEND initrd=ubuntu-8.10-mid/initrd.img boot=casper netboot=nfs nfsroot=192.168.1.2:/tftpboot/ubuntu-8.10-mid file=/cdrom/preseed/mid.seed p

GWT + MySQL + Netbeans Demo

# INFO
url : jdbc:mysql://localhost:3306/Bible
user: gwt-examples
pass: password

# create database and user
mysql -u root -p
create database Bible;
CREATE USER 'gwt-examples' IDENTIFIED BY 'password';
grant all on Bible.* to 'gwt-examples'@'%' identified by "password";
#grant all on Bible.* to 'gwt-examples'@'192.168.1.10' identified by "password";
#grant all on Bible.* to 'gwt-examples'@'localhost' identified by "password";
commit;
quit;

# get gwt examples
cd ${HOME}
svn checkout http://gwt-examples.googlecode.com/svn/trunk/ gwt-examples

# fill database
wget http://ken

mkBackup.sh

#!/bin/bash

# todo
# backup desktop (check for to big files)
# backup thunderbird
# backup firefox
# backup usb pen if connected
# add state function

DIRS="privat OpenVPN"
EXCLUDE="cd/neue_hp"
DATE=$(date -I)
TARGET="${HOME}/backup/${DATE}"
STATE=0

function state() {
EXIT_CODE=$1
FILE=$2
if [ ! -z ${FILE} ]; then
FILE_SIZE=$(du -sh ${FILE} | cut -f1)
fi

if [ $EXIT_CODE == 0 ]; then
printf "%5s %5s\n" "[OK]" ${FILE_SIZE}
else
printf "%5s\n" "[ERROR]"
STATE=$(($STATE + 1))
fi
}

# create today backup directory
[ !

formatCamcard.sh

#!/bin/bash

DEVICE=/dev/sdc
LABEL=CAMCARD

# create partition
sudo umount ${DEVICE}1
sudo fdisk ${DEVICE} << EOF
o
n
p
1

a
1
t
6
w
EOF

# create filesystem
sudo umount ${DEVICE}1
sudo mkfs.vfat -F 16 -n ${LABEL} ${DEVICE}1

# sync changes
sudo sync

# create directory structure
#sudo mount ${DEVICE}1 /mnt
#mkdir -p /mnt/DCIM/100NIKON
#sudo umount ${DEVICE}1

Google Web Toolkit with Netbeans

# install gwt plugin in netbeans
NETBEANS > Tools > Plugins > Available plugins > GWT4NB > Install

# test, create new projects
export GWT_HOME=/opt/gwt-linux
cd $GWT_HOME
./applicationCreator -out $HOME/GWT-Sample org.kamal.hello.client.HelloWorld
/opt/gwt-linux/applicationCreator -eclipse MyProject com.mycompany.client.MyApplication

# rpc service demo
public void onModuleLoad() {
RootPanel.get().add(new DBQueryUsageExample());
}

# LINKS
http://www.netbeans.org/kb/60/web/quickstart-webapps-gwt.html
http://www.gwt-ext.com/demo/ - GWT-Ext Showcase
http://gwt.google.com/sam

syslinux.cfg

# create usb disk
cp /usr/lib/syslinux/vesamenu.c32 /mnt
cp /usr/lib/syslinux/memdisk /mnt

# tinycorelinux
wget ftp://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/release/tinycore_2.1.iso -P /tmp
mount /tmp/tinycore_2.1.iso /mnt/ -o loop
cp /mnt/boot/bzImage /mnt/boot/tinycore.gz /media/USB_MINI/boot/tinycore/

# netinstall
mount mini.iso /mnt/ -o loop
cp /mnt/initrd.gz /mnt/linux /media/USB_MINI/boot/netinstall/

# syslinux.cfg
default boot/vesamenu.c32
timeout 100
menu title Multi Boot USB

LABEL Localboot
localboot 0x80

LABEL Ubuntu
KERNEL /c