* 27/03/2011 http://750four.aixmarseille.com Check my new website. It's about restauration of two old motorbikes Honda CB 750 four.

* 05/12/2010 http://sourceforge.net/projects/cutycapt/ CutyCapt website page rendering to file (qt, opensource)

* 01/12/2010 http://www.openfiler.com An open storage filer solution… Worth a try.

* 09/2010 http://ubuntuforums.org/showpost.php?p=9587446&postcount=1406 Ubuntu 10.4 & GMA 500 for my Acer Aspire 751 with poulsbo

* 04/2010 http://watir.com/ Library for automating web browsers. It allows you to write tests that are easy to read and maintain. It is simple and flexible.

* 02/2010 Quick link to my new professionnal website: http://www.oflabs.com

* 20 Oct 2009 Nice software for designing Stripboard Perfboard : http://diy-fever.com/index.php?project=software

* 19 June 2009 Cacti alternative ? Munin seems interesting.

* ESXi Tests http://drewsrambling.blogspot.com/2008/10/esxi-copy-vm-poor-mans-template.html

* 03 July 08 Suspend on ram starts working on my dell_latitude_d430

* 11 March 2008 Found some OpenSource OCR :: http://code.google.com/p/tesseract-ocr/ , giving a try …

* 21 April 2008 FreeBSD7 installation on Laptop Dell Latitude d430 dell_latitude_d430

New Tips

  • Find lost superblock

If you change the partition table for growing an existing partions. Things can go bad, and you may not be able to mount the partition: “Can't find superblock”. Don't panic . Boot SysRescueCD and run testdisk tool. Ask him to find the superbloc (Analyze), then write the partition table.

  • Linux command-line scanning (sane)
scanimage  --resolution 150 --mode Gray -x 215 -y 297 > image.pnm
  • Encode videos for Nokia 5800
#With h264 Codec:
ffmpeg -i "input.avi" -f mp4 -vcodec libx264 -b 1000k -r 30 -s 320x240 -acodec libfaac -ar 32000 -ab 128k -ac 2 -threads 0 -async 1 -aspect 4:3 "output.mp4" 
#With mpeg4 Codec: 
ffmpeg -i input.avi -f mp4 -vcodec mpeg4 -b 643k -r 23 -s 640x360 -acodec libfaac -ar 32000 -ab 128k -ac 2 -threads 0 output.mp4
  • Shrink ext/LVM partition

After a database cleanup, and optimization, I'd like to get back the unused space on my MySQL partition. This partition is ext3+LVM

# df -h 
...
/dev/mapper/lvm_raid-var_lib_mysql
                      1.6T  611G  941G  40% /var/lib/mysql
...
NB: I want to shrink it to 1T.
# root@server:~# resize2fs /dev/mapper/lvm_raid-var_lib_mysql 800G
resize2fs 1.40-WIP (14-Nov-2006)
Resizing the filesystem on /dev/mapper/lvm_raid-var_lib_mysql to 209715200 (4k) blocks.
The filesystem on /dev/mapper/lvm_raid-var_lib_mysql is now 209715200 blocks long.
# lvreduce -L 1000G /dev/mapper/lvm_raid-var_lib_mysql
NB: logical volume is 20% greater than filesystem at this point... this IS NORMAL.



Filesystem at /dev/mapper/myvg-mypartition is mounted on /mnt/mypartition; on-line resizing required
old desc_blocks = 2, new_desc_blocks = 4
Performing an on-line resize of /dev/mapper/myvg-mypartition to 13107200 (4k) blocks.

The filesystem on /dev/mapper/myvg-mypartition is now 13107200 blocks long.
  • FreeBSD and ext2
kldload ext2fs
pkg_add -r e2fsprogs
fsck.ext2  /dev/da0sX
mount -t ext2fs /dev/da0sX /mnt/location/
  • Tech TV Streams
Just found [[http://dl.tv/]] website.
  • Online resize lvm partition
# aptitude install resize2fs
# lvresize /dev/mapper/myvg-mypartition
# resize2fs /dev/mapper/myvg-mypartition


Filesystem at /dev/mapper/myvg-mypartition is mounted on /mnt/mypartition; on-line resizing required
old desc_blocks = 2, new_desc_blocks = 4
Performing an on-line resize of /dev/mapper/myvg-mypartition to 13107200 (4k) blocks.

The filesystem on /dev/mapper/myvg-mypartition is now 13107200 blocks long.
  • Scripting lftp
vi /tmp/myscript

open myftpserver.mydomain.com  -uMYUSER,MYPASS 
binary
hash
cd /some/place
get somefile.tgz
cd ..

$ lftp -f /tmp/myscript -d  (-d is for debug)

Strike-through Text


start.txt · Last modified: 2011/10/28 13:23 by olivier