Author Archive

How to fix ffmpeg-php compile error – make: *** [ffmpeg_frame.lo] Error 1

You are getting the following error while compiling the latest release of ffmpeg-php-0.6.0 ?

This  will let you know how to get this fixed:

The error:

/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function âzim_ffmpeg_frame_toGDImageâ:
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: âPIX_FMT_RGBA32â undeclared (first use in this function)
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: (Each undeclared identifier is reported only once
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: for each function it appears in.)
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function âzim_ffmpeg_frame_ffmpeg_frameâ:
/usr/src/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

The fix:
Under the ffmpeg-php-0.6.0 directory modify the file: ffmpeg_frame.c

nano ffmpeg_frame.c


Debian 6.0.5 released

The Debian project is pleased to announce the fifth update of its stable distribution Debian 6.0. This update mainly adds corrections for security problems to the stable release, along with a few adjustments for serious problems. Security advisories were already published separately and are referenced where available.

Please note that this update does not constitute a new version of Debian 6.0 but only updates some of the packages included. There is no need to throw away 6.0 CDs or DVDs but only to update via an up-to-date Debian mirror after an installation, to cause any out of date packages to be updated.

Those who frequently install updates from security.debian.org won’t have to update many packages and most updates from security.debian.org are included in this update.

New installation media and CD and DVD images containing updated packages will be available soon at the regular locations.

Upgrading to this revision online is usually done by pointing the aptitude (or apt) package tool (see the sources.list(5) manual page) to one of Debian’s many FTP or HTTP mirrors. A comprehensive list of mirrors is available at:

http://www.debian.org/mirror/list

More info @ http://www.debian.org/News/2012/20120512


Set E-mail Alert on Root SSH Login

In this post I will guide you how to set the mail alert if somebody logins to the server as root.

Step1. Login to your server as root:

ssh root@debian-tutorials.com
root@debian-tutorials.com’s password:
root@deb:~#

Step2. Edit the .bashrc file as follows:

Open the file:

nano .bashrc

Add the following code to the end of the file:

echo ‘SECURITY ALERT – Someone has logged in as root  on:’ `date` `who` | mail -s “Security Alert: Root login from `who | cut -d’(‘ -f2 | cut -d’)’ -f1`” contact[@]debian-tutorials.com

NOTE: Replace contact[@]debian-tutorials.com   with your valid email address.

Step3.  Now logout from the server and relogin. You will receive an email with the root login  alert .

Enjoy.


PHP 5.4 New Built-in Web Server

One of the more fascinating facilities provided in PHP 5.4 is a built-in web server.

It runs from the command line on Windows, Mac or Linux. You require to enter to the folder where your application resides then run:

php -S localhost:8080

This command will start a console-based web server. The document root is located in the  folder:

PHP 5.4.0 Development Server started at Sat Apr 07 10:36:35 2012
Listening on localhost:8080
Document root is /home/user/phpapp
Press Ctrl-C to quit

Now you can then open http://localhost:8080/ in your browser.  The server will return either index.php or index.html in the root folder.

This PHP 5.4 web server is intended for development purposes and I think it will be adopted by text editors and possibly browser plug-ins as an easy way to test PHP code.

 


How to install Percona Server MySQL replacement on Debian

Debian and Ubuntu packages from Percona are signed with a key. Before using the repository  you ought to add the key to apt.

For that run the following commands:

Step1. Add the Percona repository:

gpg –keyserver hkp://keys.gnupg.net –recv-keys 1C4CBDCDCD2EFD2A
gpg -a –export CD2EFD2A | sudo apt-key add -
echo “deb http://repo.percona.com/apt squeeze main” >> /etc/apt/sources.list
echo “deb-src http://repo.percona.com/apt squeeze main” >> /etc/apt/sources.list

Step2. Install Percona Server:

apt-get update
apt-get install  percona-server-server-5.5


Social Media

  
FeedBurner Subscribe



Categories

Page 1 of 4712345102030...Last »
Copyright © 2012 Linux Debian Tutorials | Debian Squeeze Tutorials. All rights reserved.
↑ Back to Top