Apr 05 2009

My memo -cheatsheet- page

Tags:, , , , , , , , , , Ignace Mouzannar (ghantoos) @ 2:54 pm

I have added a new page to my blog today. It lists commands/tips I collected over the past couple of month. I will be updating it every once in while.

Please don’t hesitate to comment suggesting/correcting commands :)

I hope this can be useful!

Cheers,
Ignace M -ghantoos-


Apr 04 2009

Mounting UFS in read/write under Linux (debian)

Tags:, , , , , Ignace Mouzannar (ghantoos) @ 3:08 pm

A week ago, I encountered some space problems on my FreeBSD system during a system wide portupgrade. Fortunately, I had backed up my system just before the adventure, so my system was saved.

The procedure I followed to restore my data, was:
1- recreate my partitioning, giving 10 more Gigs to the system, using the FreeBSD installation CD
2- copy all the data on it

Since I backed up my FreeBSD system on an external ext3 hard drive, I needed to copy it back from “outside” my freebsd system. My first option was to use Fixit from the FreeBSD installation CD set, but I had problems mounting my partition because of the inode block size of my ext3 partition. Bref. I decided to mount everything from my Linux (ubuntu) system, and copy everything back from there!

I only way to do this was to recompile my kernel with the right “UFS write” flag. And it JUST WORKED!! I copied back __ALL__ my FreeBSD system on the new slices, rebooted my machine, and here I am writing this post from my old-new FreeBSD system! :)

Continue reading “Mounting UFS in read/write under Linux (debian)”


Sep 18 2007

NextGen Gallery SQL script (to scan folders and add them as galleries)

Tags:, , , , , , , , Ignace Mouzannar (ghantoos) @ 5:51 pm

This time I needed this time to provision the NextGen SQL database with all the folders I’ve put on my server.

Again, i did a little python script. I scans your NextGen gallery folder, and enters all new folders as “galleries” in the SQL DB, and creates the thumbs for the pictures.

This was usefull for me. : )

You can download the script here.
Continue reading “NextGen Gallery SQL script (to scan folders and add them as galleries)”


Sep 14 2007

Picture database recursive copier/resizer

Tags:, , , , , , , Ignace Mouzannar (ghantoos) @ 4:33 pm

That a little script I did yesterday because I needed to copy my 35gig picture gallery in a new directory then resize all the pictures.

Of course, this MUST not be done “à la mano”! So i did a little python script. : ) Here it is, hope you find it of any interest.

You can download the script here.
Continue reading “Picture database recursive copier/resizer”