Oct 31

Export to file:

pdbedit -e smbpasswd:/mydir/myfile

Import from exported file:

pdbedit -i smbpasswd:/mydir/myfile

written by MG \\ tags: , , , ,

Sep 27

(Samba errror : unable to connect to CUPS server localhost – Connection refused)

To disable printing support, you should edit your samba configuration settings.

Edit or add the flowing line to your /etc/samba/smb.conf

load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes

written by MG \\ tags: , ,

Nov 17

If you have a IBM ServeRAID 8k controller and you have changed a defunct drive with new one,

and rebuilding is not starting, you must add your new READY drive to your logical drive.

Usage: SETSTATE <Controller#> DEVICE <Channel# ID#> <State> [LOGICALDRIVE <LD#> [LD#] … ] [noprompt]

if you are in this particular situation :


disk is 0,5

and logical drive is 1

./arcconf setstate 1 device 0 5 hsp logicaldrive 1

written by MG \\ tags: , ,

Aug 31

If you do not wish to perform a GUI installation, you can start a text  mode installation using the following boot command:

boot: text

If you are having trouble booting into the graphical installation program,  you can try to boot using the no framebuffer (nofb) boot option.

At the boot command, enter the following:

boot: nofb

This option allows you to use the graphical installation program without using a framebuffer.

written by MG \\ tags: , ,

Jun 21


dumpe2fs -h /dev/sda1


tune2fs -l /dev/sda1

where /dev/sda1 is you partition, and search for Block size:

written by MG \\ tags: ,

Jan 26

for x in `find * -maxdepth 0 -type d`;
  # Translate Caps to Small letters
  y=$(echo $x | tr ‘[A-Z]’ ‘[a-z]’);

  # check if directory exits
  if [ ! -d $y ]; then
     echo “mv $x $y”
     mv $x $y;

NOTE: -maxdepth 0 is for directories in curent dir. If you want to rename in depth use -depth instead

written by MG \\ tags: , , , ,

Jan 07


/download/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function ‘zif_ffmpeg_frame_toGDImage’:
/download/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: ‘PIX_FMT_RGBA32’ undeclared (first use in this function)
/download/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: (Each undeclared identifier is reported only once
/download/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: for each function it appears in.)
/download/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function ‘zif_ffmpeg_frame_ffmpeg_frame’:
/download/ffmpeg-php-0.6.0/ffmpeg_frame.c:421: error: ‘PIX_FMT_RGBA32’ undeclared (first use in this function)
make: *** [ffmpeg_frame.lo] Error 1


1. Open the file “/ffmpeg-php-0.5.0/ffmpeg_frame.c”

1. Replace all PIX_FMT_RGBA32 with PIX_FMT_RGB32

written by MG \\ tags: , , , ,