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 :

DEVICE is 1

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

Run:

dumpe2fs -h /dev/sda1

or

tune2fs -l /dev/sda1

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

written by MG \\ tags: ,

Jan 26

#!/bin/bash
for x in `find * -maxdepth 0 -type d`;
do
  # 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;
  fi
done

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

Error:

/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

Solution:

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: , , , ,

Nov 23

SSHD has a little bug when do you want to use ClientAliveCountMax in combination with ClientAliveInterval, so if you want to work try this:

TCPKeepAlive yes
ClientAliveInterval 3600
ClientAliveCountMax 0

this should disconnect iddle session older then 1h.

written by MG \\ tags: , , ,

Nov 18

AMRNB & AMRWB
wget http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/0.1.2/opencore-amr-0.1.2.tar.gz?use_mirror=mesh
cd opencore-amr-0.1.2
./configure ; make ; make install

FAAC
wget http://downloads.sourceforge.net/project/faac/faac-src/faac-1.28/faac-1.28.tar.gz?use_mirror=sunet
wget http://www.linuxfromscratch.org/patches/blfs/svn/faac-1.28-glibc_fixes-1.patch
cd faac-1.28
patch -Np1 -i ../faac-1.28-glibc_fixes-1.patch
sed -i -e ‘/obj-type/d’ -e ‘/Long Term/d’ frontend/main.c
./configure ; make ; make install
        docs: http://www.linuxfromscratch.org/blfs/view/svn/multimedia/faac.html

FAAD
wget http://downloads.sourceforge.net/faac/faad2-2.7.tar.gz

cd faad2-2.7
./configure; make ; make install
         docs: http://www.linuxfromscratch.org/blfs/view/svn/multimedia/faad2.html

LAME
wget http://downloads.sourceforge.net/lame/lame-398-2.tar.gz
./configure –enable-mp3rtp ; make ; make install
       docs: http://www.linuxfromscratch.org/blfs/view/svn/multimedia/lame.html

Liba52
wget http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz
./configure –enable-shared ; make ; make intall
       docs: http://www.linuxfromscratch.org/blfs/view/svn/multimedia/liba52.html

XVIDCORE
wget http://downloads.xvid.org/downloads/xvidcore-1.2.2.tar.gz
cd xvidcore/build/generic && ./configure –prefix=/usr/local ; make ; make install
       docs: http://www.linuxfromscratch.org/blfs/view/svn/multimedia/xvid.html

FFMPEG
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure –enable-libxvid –enable-libmp3lame –enable-libfaad –enable-libfaac –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-gpl –enable-shared –enable-nonfree –enable-version3 –enable-pthreads ; make ; make install

written by MG \\ tags: , ,