FrequentTasks


mailman

remove held messages

as root, do

 $ cd /var/lib/mailman # ~mailman
 $ bin/discard data/heldmsg-<listname>-*
source: http://wiki.list.org/pages/viewpage.action?pageId=4030620

remove member from list

as root, do

 $ remove_members -n -N <list> <emailaddr>
source: http://wiki.list.org/display/DOC/4.09+Summary+of+the+mailman+bin+commands

git

undo unstaged changes

 $ git checkout thefile       # only undo changes for file: thefile
 $ git checkout -- .	  # to revert all unstaged files
source: http://stackoverflow.com/questions/52704/how-do-you-discard-unstaged-changes-in-git

pushing tags to the remote repository

 $ git tag v42
 $ git push --tags
source: http://stackoverflow.com/questions/5195859/how-can-i-push-a-tag-to-a-remote-repository-using-git

initialize a git repository

on the server
 $ mkdir -p projects/foo.git
 $ cd projects/foo.git
 $ git init --bare
on the client
 $ cd projects
 $ git clone user@server:projects/foo.git

creating true type fonts

gimp

create single font images, use: Tools -> Color Tools -> Treshold...

inkscape

fontforge


arm based single board computers

resources:

bootstrap root filesystem

requiered packages

 $ apt-get install debootstrap binfmt-support qemu-user-static

prepare image (optional)

 $ dd if=/dev/zero of=./rootfs.img bs=1M count=1024
 $ mkfs.ext4 -F -L rootfs ./rootfs.img
 $ mkdir rootfs.mnt
 $ mount -o loop ./rootfs.img ./rootfs.mnt

bootstrap part 1

 $ debootstrap --verbose --arch armhf --variant=minbase --foreign unstable rootfs.mnt http://ftp.de.debian.org/debian

bootstrap part 2

 $ modprobe binfmt_support
 $ mkdir ./rootfs.mnt/dev/pts
 $ mount -t devpts devpts ./rootfs.mnt/dev/pts
 $ mount -t proc proc ./rootfs.mnt/proc
 $ cp /usr/bin/qemu-arm-static ./rootfs.mnt/usr/bin
 $ chroot ./rootfs.mnt
 $ /debootstrap/debootstrap --second-stage 

final configuration

 $ echo "deb http://ftp.de.debian.org/debian/ unstable main contrib non-free" > /etc/apt/sources.list
 $ echo "deb-src http://ftp.de.debian.org/debian/ unstable main contrib non-free" >> /etc/apt/sources.list
 $ apt-get update
 $ apt-get install apt-utils dialog locales
 $ dpkg-reconfigure locales
 $ echo -en "auto lo\niface lo inet loopback\n" > /etc/network/interfaces
 $ echo -en "auto eth0\niface eth0 inet dhcp\n" >> /etc/network/interfaces
 $ echo -en "auto usb0\niface usb0 inet dhcp\n" >> /etc/network/interfaces
 $ echo -en "auto wlan0\niface wlan0 inet dhcp\n" >> /etc/network/interfaces
 $ echo "T2:2345:respawn:/sbin/getty -L ttyO2 115200 linux" >> /etc/inittab
 $ echo "armboard" > /etc/hostname
 $ echo "/dev/root / ext3 defaults 0 1" > /etc/fstab
 $ echo "HWCLOCKACCESS=no" >> /etc/default/rcS
 $ echo "CONCURRENCY=shell" >> /etc/default/rcS
 $ passwd

cross toolchain

 $ dpkg --ad-architecture armhf
 $ apt-get update
 $ apt-get install crossbuild-essential-armhf

kernel

something like this (mind the type, beglebone instead of beaglebone):

 cd /usr/src/linux
 mkdir ../linux_build
 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean
 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- omap2plus_defconfig
 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LOCALVERSION=-beglebone0 zImage modules
 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LOCALVERSION=-beglebone0 dtbs
 mkdir ../linux_build/modules
 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LOCALVERSION=-beglebone0 INSTALL_MOD_PATH=/usr/src/linux_build/modules
 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LOCALVERSION=-beglebone0 INSTALL_MOD_PATH=/usr/src/linux_build/modules modules_install
 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LOCALVERSION=-beglebone0 zImage modules
 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LOCALVERSION=-beglebone0 INSTALL_MOD_PATH=/usr/src/linux_build/modules modules_install
 mkdir ../linux_build/dtbs
 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LOCALVERSION=-beglebone0 INSTALL_DTBS_PATH=/usr/src/linux_build/dtbs dtbs_install
 mkdir ../linux_build/firmware
 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LOCALVERSION=-beglebone0 INSTALL_FW_PATH=/usr/src/linux_build/firmware firmware_install
 cp arch/arm/boot/zImage ../linux_build/4.11.0-rc3-beglebone0.zImage
 cp .config ../linux_build/config-4.11.0-rc3-beglebone0
 

bootloader(s)

obtain u-boot

 $ git clone git://git.denx.de/u-boot.git

cross compile

possibly edit the Makefile, change
 CC	      = $(CROSS_COMPILE)gcc
to
 CC	      = $(CROSS_COMPILE)gcc-4.7
where 4.7 is the installed version, then continue ...
 $ make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- distclean
 $ make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- omap3_beagle_config
 $ make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-

native build

partition sd card

TODO


android related things

download mode

power on device and simultaneously press volume down and home button

flash cwm

enter recovery mode

power on device and simultaneously press volume up and home button

flash rom

adb

backup contacts

flash layout (of my samsung galaxy s3)

 root@m0:/sys/block # fdisk -l /dev/block/mmcblk0			       
 Found valid GPT with protective MBR; using GPT
 
 Disk /dev/block/mmcblk0: 30777344 sectors, 2740M
 Logical sector size: 512
 Disk identifier (GUID): 52444e41-494f-2044-4d4d-43204449534b
 Partition table holds up to 128 entries
 First usable sector is 34, last usable sector is 30777310 

 Number  Start (sector)    End (sector)  Size       Code  Name
    1	    8192	   16383       4096K   0700  BOTA0
    2	   16384	   24575       4096K   0700  BOTA1
    3	   24576	   65535       20.0M   0700  EFS
    4	   65536	   81919       8192K   0700  PARAM
    5	   81920	   98303       8192K   0700  BOOT
    6	   98304	  114687       8192K   0700  RECOVERY
    7	  114688	  180223       32.0M   0700  RADIO
    8	  180224	 2277375       1024M   0700  CACHE
    9	 2277376	 5423103       1536M   0700  SYSTEM
   10	 5423104	 6569983	560M   0700  HIDDEN
   11	 6569984	 6586367       8192K   0700  OTA
   12	 6586368	30769151       11.5G   0700  USERDATA

certificates and keys

openvpn

CA

todo ...

clients

go to the respective easyrsa/ssl directory, i.e. $HOME/ssl and run

 ./build-key <common name>
and answer the questions ...

setup

todo ...

webservers

todo ...


Edit FrequentTasks HackDaWorld PageList RecentChanges PageHistory