Wouldn't this lot be better on a separate page? -- SteveMcIntyre

howto build the build environment

Sid

 apt-get install cowbuilder git-buildpackage debootstrap 

 sudo cowbuilder --create --basepath=/var/cache/pbuilder/base-sid.cow --mirror http://ftp.de.debian.org/debian --distribution sid 

 sudo cowbuilder --login --basepath=/var/cache/pbuilder/base-sid.cow 

wget https://honk.sigxcpu.org/piki/projects/git-buildpackage/gbp.conf
mv gbp.conf ~/.gbp.conf 

mschmi@proxmox-mschmi:~/hennr/flare$ git branch
* master
  upstream
mschmi@proxmox-mschmi:~/hennr/flare$ git-pbuilder 
WARNING: not invoked by git-buildpackage.
W: /home/mschmi/.pbuilderrc does not exist
I: using cowbuilder as pbuilder

Ubuntu Oneiric Ocelot

 apt-get install cowbuilder git-buildpackage debootstrap 

 wget http://ftp.halifax.rwth-aachen.de/ubuntu/project/ubuntu-archive-keyring.gpg
 sudo cp ubuntu-archive-keyring.gpg /usr/share/keyrings/

sudo cowbuilder --create --basepath=/var/cache/pbuilder/base-oneiric.cow --mirror http://ftp.halifax.rwth-aachen.de/ubuntu/ --distribution oneiric --components "main universe" --debootstrapopts --keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg

Schmierzettel for jboss-packaging

Notiz

* Im Master fehlen: antlr, aopalliance * Im Master zuviel: apache-xmlsec, commons-logging, console, log4j, sun-servlet, xml-apis (allerdings alles nur component-info.xml, keine jars in den Verzeichnissen)

package jbosass5

 $ git-import-orig --upstream-branch=upstream_jboss.org --debian-branch=upstream_jboss.org --upstream-tag=upstream_jboss.org/5.1.0.GA --upstream-version=5.1.0.GA ../jboss-5.1.0.GA-src.tar.gz 

 git checkout upstream
 git merge upstream_jboss.org
 cp thirdparty/ ../
 git rm -r thirdparty 

package jbosass5-libs

 mkdir jbossas-libs
 mv thirdparty jbossas-libs/libs
 tar -czf jbossas5-libs_5.1.0.GA.tar.gz jbossas-libs/

git-import-orig --debian-branch=upstream_jboss.org --upstream-branch=upstream_jboss.org  --upstream-tag=upstream_jboss.org/5.1.0.GA --upstream-version=5.1.0.GA ../jbossas5-libs_5.1.0.GA.tar.gz 

 git checkout upstream
 git merge upstream_jboss.org

Using usbfoo on Debian

What is USBfoo?

 aptitude install gcc-avr dfu-programmer avr-libc 

Connection hardware

 [20622.464064] usb 3-1: new full speed USB device using uhci_hcd and address 10
 [20622.642160] usb 3-1: New USB device found, idVendor=03eb, idProduct=2ffa
 [20622.642169] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
 [20622.642176] usb 3-1: Product: AT90USB162 DFU
 [20622.642180] usb 3-1: Manufacturer: ATMEL
 [20622.642185] usb 3-1: SerialNumber: 1.0.5
 [20622.642421] usb 3-1: configuration #1 chosen from 1 choice

Compile software, program and run

#include <avr/io.h>

int main (void) {
  /* set data direction register d to output */
  DDRD = 0xff;

  /* set port d to 0x00 this activates the red led on the board */
  PORTD = 0x00;

  /* loop until reset */
  while(1) { 
     /* narf! */
  }
  
  /* this will never reached */
  return 0
}

 avr-gcc -Wall -mmcu=at90usb162 program.c -o program 

 avr-objcopy program -O ihex program.hex 

dfu-programmer at90usb162 erase
dfu-programmer at90usb162 flash program.hex

tuxdroid

Monitoring

apt-get install --no-install-recommends mysql-server apache2 libapache2-mod-php5 php5-suhosin 

apt-get install icinga icinga-idoutils --no-install-recommends 

Building own Debian image for Raspberry Pi

The Raspberry Pi is a small ARM computer (http://raspberrypi.org). It boots only from a fat partition of a SD card.

 export RASPBERRY_SDCARD=sdx 
 mkdosfs -F32 /dev/${RASPBERRY_SDCARD}1
 mkfs.ext4 /dev/${RASPBERRY_SDCARD}2
 mkdir /mnt/raspberry_root
 mkdir /mnt/raspberry_boot
 mount /dev/${RASPBERRY_SDCARD}1 /mnt/raspberry_boot
 mount /dev/${RASPBERRY_SDCARD}2 /mnt/raspberry_root

 debootstrap --foreign --arch=armel wheezy /mnt/raspberry_root/ [http://IP_OF_LOCAL_APT_CACHER/debian]

apt-get install qemu-user-static
cp /usr/bin/qemu-arm-static /mnt/raspberry_root/usr/bin/

chroot /mnt/raspberry_root/
cd /debootstrap
./debootstrap --second-stage

echo "deb http://ftp.de.debian.org/debian wheezy main" > /etc/apt/sources.list
apt-get update
apt-get install locales && dpkg-reconfigure locales

that means you have right now no working locales, that's o.k., you are installing them right now

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
# or if statically preferred add something like this
#iface eth0 inet static
#    address 192.168.0.97   
#    netmask 255.255.255.0  
#    gateway 192.168.0.1

echo "nameserver 8.8.8.8 > /etc/resolv.conf"

proc            /proc           proc    defaults          0       0
/dev/mmcblk0p1  /boot           vfat    defaults          0       2
/dev/mmcblk0p2  /               ext4    defaults,noatime  0       1

...
T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
...

 wget https://raw.github.com/Hexxeh/rpi-update/master/rpi-update
 chmod +x rpi-update
 mkdir /mnt/raspberry_boot/lib/modules
 # this is needed because rpi-update complains if no start.elf etc is found
 for file in start.elf bootcode.elf loader.bin kernel.img ; do touch  /mnt/raspberry_boot/$file; done
 ROOT_PATH=/mnt/raspberry_root BOOT_PATH=/mnt/raspberry_boot ./rpi-update

smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=noop rootwait