font’s in xterm
xterm -fn 9×15
list of fonts available : xlsfonts
letters belonging to a given font: xfd
xterm -fn 9×15
list of fonts available : xlsfonts
letters belonging to a given font: xfd
fdisk -ul image.img You must set cylinders. You can do this from the extra functions menu. Disk image-sda: 0 MB, 0 bytes 255 heads, 63 sectors/track, 0 cylinders, total 0 sectors Units = sectors of 1 * 512 = 512 bytes Device Boot Start End Blocks Id System image.img * 63 78140159 39070048+ 7 HPFS/NTFS Partition 1 has different physical/logical endings: phys=(1023, 254, 63) logical=(4863, 254, 63)
# mount -o loop,offset='''32256''' -t auto image.img mnt/
JFFS2
-----
#!/bin/bash
if [ $# -eq 0 ]; then
echo $0 JFFS2_IMAGE_FILE
exit
fi
modprobe mtdram total_size=44576 erase_size=128
modprobe mtdblock
dd if="$1" of=/dev/mtdblock0
mount -t jffs2 /dev/mtdblock0 m
———
cat /proc/mtd for information of mtd device
.——————-
unpack: rootfs
cat rootfs.gz | lzma -d | cpio -id -H newc
or
cat rootfs.gz | gunzip -c | cpio -id -H newc
pack:
dd if=/dev/zero of=rootfs1 bs=1k count=8192
mke2fs -q -F -m 0 -i 1024 rootfs1
mkdir -p rfs
sudo mount -t ext2 -o loop rootfs1 rfs
cd rfs
tar –exclude=”*/lib*\.a” –exclude=”*/man/*” –exclude=”*/include/*” -cpf – * | \
sudo tar -C rfs -xf –
// sudo chown -h -R 0:0 rfs
find ./rfs | cpio -o -H newc | gzip -9 > rootfs.gz
sudo umount rfs
//gzip -9 -c rootfs1 > rootfs.gz
better to unpack with
cpio -id --no-absolute-filenames
or you will smash your linux…
auspacken:
gunzip < initrd.img | cpio -i –make-directories
einpacken:
find ./ | cpio -H newc -o > initrd.cpio
gzip initrd.cpio
mv initrd.cpio.gz initrd.img
———-
vmlinuz:
od -t x1 -A d vmlinuz | grep "1f 8b 08"
0008322 1b 00 1f 8b 08 00 d5 c2
dd bs=1 skip=8324 if=vmlinuz | zcat > vmlinux_extract
wenn ihr das init.d startscript nutzen wollt: einfach startproc weglöschen
und jetzt zu dem wichtigerem teil, da nach geht es nämlich immer noch nicht…
ihr müsst schauen, dass auch alle Pfade existieren (zu finden in den man pages), bir mir fehlte:
/var/lock/subsys/
var/lock war zwar da, aber subsys nicht…
hoffe, es hilft dem einen oder anderen…
bis dahin,
OO
EXT="m4a";
a=`echo $1 | sed -s "s/\.m4a//g"`;
DIR="mp3"if [ ! -d "$DIR" ]; then
mkdir mp3
fiecho "#############################################"
echo converting $a
echo command: ffmpeg -i "$1" -id3v2_version 3 -write_id3v1 1 -map_metadata 0:g:0 -acodec libmp3lame -ar 44100 -ab 224k -y -metadata date="2012" -metadata copyright="" "mp3/$a.mp3"
echo "#############################################"#ffmpeg -i "$1" -map_metadata 0:g:0 -acodec libmp3lame -ar 44100 -ab 224k -y "$a.mp3"
ffmpeg -i "$1" -id3v2_version 3 -write_id3v1 1 -map_metadata 0:g:0 -acodec libmp3lame -ar 44100 -ab 224k -y -metadata date="2012" "mp3/$a.mp3"
#echo ffmpeg -i "$1" -map_metadata 0:g:0 -acodec libmp3lame -ar 44100 -ab 224k -y "$a.mp3"
Windows iTunes (Info tab) id3v2.3 ffmpeg key ffmpeg example Title Title TIT2 title -metadata title=”Adagio for Strings” Subtitle Description
(Video tab)TIT3 TIT3 -metadata TIT3=”Op. 91″ Rating n/a n/a n/a n/a Comments Comments COMM n/a not implemented Contributing artists Artist TPE1 artist -metadata artist=”Yo Yo Ma/London Symphony” Album artist Album Artist TPE2 album_artist -metadata album_artist=”London Symphony” Album Album TALB album -metadata album=”String Classics” Year Year TYER date -metadata date=”2012″ # Track Number TRCK track -metadata track=”3/12″
(means track number 3 of 12)Genre Genre TCON genre -metadata genre=”Classical” Publisher n/a TPUB publisher -metadata publisher=”London Publishing” Encoded by n/a TENC encoded_by -metadata encoded_by=”Telarc” Author URL n/a WOAR n/a not implemented Copyright
(Not Editable)n/a TCOP copyright -metadata copyright=”℗ Telarc” Composers n/a TCOM composer -metadata composer=”J.S. Bach” Conductors n/a TPE3 performer -metadata performer=”T. S. Miles” Group description Grouping TIT1 TIT1 -metadata TIT1=”The Classics” Mood n/a n/a n/a n/a Part of set Disc Number TPOS disc -metadata disc=”1/2″
(means disc number 1 of 2)Initial key n/a TKEY TKEY -metadata TKEY=”G” Beats-per-minute BPM TBPM TBPM -metadata TBPM=”120″ Part of a compilation Part of a compilation TCMP TCMP -metadata TCMP=”1″
(either blank = false or 1 = true)*table source: http:// jonhall. info / how_to / create_id3_tags_using_ffmpeg
well done dude. 🙂use as script:
or .flac
echo "" > con_vert.sh;chmod 755 con_vert.sh;ls *.m4a| while read line; do echo ./convert.sh \"$line\" >> con_vert.sh;done;./con_vert.sh ;rm con_vert.sh;