Skip to content

how to enable realtek ALC275 built-in mic in fedora 14

September 1, 2011

I know that F15 is there since long time (about 3 months ago), but i hate Gnome3 UI and like to stay with gnome2.x .
the following is the summery of enabling built-in mic in most Intel-HDA codecs unsupported in F14 and specially Realtek ALC275 which is in my VAIO VPC111FX .

in short – i used the latest F15 src.rpm of kernel-2.6.40 , alsa-utils , alsa-plugins and pulseaudio to update the kernel and sound sub-systems to get built-in mic working.

it’s all went fine till the kernel package installation, here rpm will complain if you have akmod or kmod installed – just use –nodeps option to skip and after reboot every thing is working fine even the kmod-nvidia for proprietary geforce driver.

one thing to mention is the new kernel replaces the original ones that may be installed but it’s working so fine ;) .

I assume you know how to use rpmbuild and how to satisfy the build dependencies of each packge, it’s a long process and you will install many packages needed to build those really needed, if you want i can upload my built pkgs online so save you the time and effort, just let me know ;) .

Drupal clean URLs with nginx – the simple way

January 4, 2011

I know, it’s somehow old topics that i write these days – nginx is there since late 2004, but it’s the fact that all articles online doesn’t mention some important information about the installation and the configuration and some others tries to make it so complex plus the fact that the default configuration included with most dists. makes it confusing to understand it.

Simply – you must create a virtual host – new server { entry for drupal directory to get clean urls working !! – yes apache is so smart .
in the configuration file you can add the following block of lines and modify it to meet your env. and that’s damn fine:

server {
listen 80;
server_name Server2;
root /var/www/html/drpl;
index index.php;
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?q=$1 last;
}

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

}

Note: the server_name value must differ from the main virtual host name – and must be defined in /etc/hosts with different IP and it should look like this:

127.0.0.1 localhost.localdomain localhost
192.168.1.10 server2.mylan server2

finally don’t forget to restart nginx ;) .

Simple & Fast Install of nginx with php on centos-5.x

January 4, 2011

I don’t like to talk so much so simply you have to:

1- install epel repo using:

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

2- install remi repo using:

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

3- install nginx, php* and mysql:

yum -y install nginx php \
php-{fpm,gd,xml,xmlrpc,mbstring,mysql,imap,cli} \
mysql{,-server}.x86_64

Note: for 32bit systems remove the “.x86_64″ word.

4- edit /etc/nginx/nginx.conf so that:
- user should be apache (and chown apache.apache /var/log/nginx)
- change the following block from

location / {
root html;
index index.html index.htm;
}

to :

root /var/www/html;
index index.html index.php;

yes, remove the “location /{” and the “}” lines and change the document root.

5- uncomment the block starts with location ~ \.php$ { and edit it to be like this:

location ~ \.php$ {
#root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

be sure to replace /scripts by $document_root

6- service php-fpm start && chkconfig php-fpm on
7- service nginx start && chkconfig nginx on
8- service mysqld start && chkconfig mysqld on

finally be sure that selinux is at least in permissive mode using the getenforce and setenforce and /etc/selinux/config
also be sure that the system firewall is OK.

Now you’re done, try installing our darlings php apps like Drupal, Joomla, phpBB and others.
Have a problem ? just let me NO ;)

good solution to snort compilation on RHEL4

February 17, 2010

Important: On Red Hat/Fedora systems, you will need to perform an extra step before you can compile snort_inline. This has not been tested on other systems, but, if your build fails later with the error shown below…

In file included from /usr/include/linux/netfilter_ipv4/ip_queue.h:10,
from /usr/include/libipq.h:37,
from ../../src/inline.h:8,
from ../../src/snort.h:38,
from spo_alert_fast.c:51:
/usr/include/linux/if.h:59: redefinition of `struct ifmap’
/usr/include/linux/if.h:77: redefinition of `struct ifreq’
/usr/include/linux/if.h:126: redefinition of `struct ifconf’
make[3]: *** [spo_alert_fast.o] Error 1
make[3]: Leaving directory
`/usr/src/snort_inline-2.3.0-RC1/src/output-plugins’
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/snort_inline-2.3.0-RC1/src’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/snort_inline-2.3.0-RC1′
make: *** [all] Error 2

…you may need to perform the corrective steps below: The build fails because your glibc headers need to be updated [1], and this is why the kernel source is required, as stated above. To temporarily fix this problem, please make the following adjustments. This step assumes you have your kernel’s source installed, and that it resides in linux-2.6.9. This directory is likely to change, depending on your kernel/distro version.

cd /usr/include
mv linux linux.orig
ln -s /usr/src/redhat/SOURCES/linux-2.6.9/include/linux/ linux

This step can always be reversed at a later date, should problems arise.
Read more

Facebook totaly based on FOSS is now gold sponsor of Apache

January 23, 2010

Facebook Developers | Building on our Commitment to Open Source Software

From the day Mark Zuckerberg started building Facebook in his Harvard dorm room in 2004, the site has been built on common open source software such as Linux, Apache, memcached, MySQL, and PHP. In that time, we’ve open sourced more than 20 different technologies, and scaled Facebook to reach over 350 million people around the world. Today we are pleased to announce that we are becoming a Gold sponsor of the Apache Software Foundation (ASF), which has been instrumental in fostering open source adoption and providing structure to build successful open source communities.
Read More.

A call to save RecordMyDesktop

January 3, 2010

Would you ever try gtk-recordmydesktop or the qt version ?
It’s the best application to make screen casts with audio on Linux – all distributions .
this project is facing a problem now, the maintainer have no time to maintain the project any more and there’s almost no active developers so the project development is inactive for more than a year now.

I’m calling every body who interested to get back this project to life to contribute his time and effort, even if you don’t know how to program, just spread the word maybe there’s someone who may welling to help.

for any one who is welling to help this project you are welcome to join the project on sourceforge.net and its mailing lists, forums.

if you’re welling to take the administration of the project just contact the current project admin Martin ASAP.

Qt Applications as Browser Applets

December 21, 2009

Nokia’s Sorvig is using Google’s Native Client (NaCl) technology for the purpose. The browser plugin executes native code, currently on 32-bit Intel systems. Because running code on the web provides certain security risks, NaCl uses a sandbox model that applies similar security rules to the code as the browser does for JavaScript.

Read More

Follow

Get every new post delivered to your Inbox.