How-To setup Fedora Linux 15 as LAMP server

Aside

This short guide demonstrates how to setup Fedora 15 as a LAMP server containing Apache, PHP, Perl, Python, Ruby and MySQL.

You have to use the shell and be able to use the machine as  root.


sudo
yum install httpd
yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc php-eaccelerator php-magickwand php-magpierss php-mapserver php-mbstring php-mcrypt php-mhash php-mssql php-shout php-snmp php-soap php-tidy curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel
yum install mysql mysql-devel mysql-server
yum install httpd-devel ruby ruby-devel
yum install mod_python
yum install mod_perl
yum install perl-HTML-Parser perl-DBI perl-Net-DNS perl-Digest-SHA1 perl-ExtUtils-AutoInstall perl-NetAddr-IP perl-Archive-Tar
/etc/init.d/httpd restart

Now you have got everything installed except for mod_ruby – so that`s the next step;

cd /tmp
wget http://modruby.net/archive/mod_ruby-1.3.0.tar.gz
tar zxvf mod_ruby-1.3.0.tar.gz
cd mod_ruby-1.3.0/
./configure.rb --with-apr-includes=/usr/include/apr-1
make
make install
/etc/init.d/httpd restart

You have to add mod_ruby by hand in /etc/httpd/conf.d/ruby.conf
By adding

LoadModule ruby_module modules/mod_ruby.so

Relative Light Index for Nikon prime lenses

The table below displays the RLI value for all Nikon prime lenses:

NameLens in mmFISORLI
Nikon 10.5mm f/2.8G ED DX Fisheye AF10,52,82002430
Nikon 14mm f/2.8D ED AF Nikkor142,82001822
Nikon 16mm f/2.8D AF Fisheye-Nikkor162,82001594
Nikon 18mm f/2.8D AF Nikkor182,82001417
Nikon 20mm f/2.8D AF Nikkor202,82001276
Nikon 24mm f/1.4G ED AF-S Nikkor241,42004252
Nikon 24mm f/2.8D AF Nikkor242,82001063
Nikon 24mm f/3.5D ED PC-E Nikkor243,5200680
Nikon 28mm f/1.4D AF Nikkor281,42003644
Nikon 28mm f/2.8D AF Nikkor282,8200911
Nikon 35mm f/1.4G AF-S NIKKOR351,42002915
Nikon 35mm f/1.8G AF-S DX Micro-Nikkor351,82001764
Nikon 35mm f/2D AF Nikkor3522001429
Nikon 50mm f/1.4D AF Nikkor501,42002041
Nikon 50mm f/1.4G AF-S Nikkor501,42002041
Nikon 50mm f/1.8 AF Nikkor501,82001235
Nikon 50mm f/1.8D AF Nikkor501,82001235
Nikon 60mm f/2.8D AF Micro-Nikkor602,8200425
Nikon 60mm f/2.8G ED AF-S Micro-Nikkor602,8200425
Nikon 85mm f/1.4D IF AF Nikkor851,42001200
Nikon 85mm f/1.8D AF Nikkor851,8200726
Nikon 85mm f/2.8 PC Micro-Nikkor852,8200300
Nikon 105mm f/2.8 ED-IF AF-S VR Micro-Nikkor1052,8200486
Nikon 105mm f/2.8D AF Micro1052,8200243
Nikon 135mm f/2D AF-DC Nikkor1352200370
Nikon 180mm f/2.8D ED-IF AF Nikkor1802,8200142
Nikon 200mm f/2G IF-ED AF-S VR2002200500
Nikon 200mm f/4D ED-IF AF Micro-Nikkor200420063
Nikon 300mm f/2.8D ED-IF II AF-S3002,820085
Nikon 300mm f/2.8G IF-ED AF-S VR3002,8200170
Nikon 300mm f/4 ED-IF AF-S Nikkor300420042
Nikon 400mm f/2.8D IF-ED AF-S II Nikkor4002,820064
Nikon 400mm f/2.8G ED VR AF-S5002,8200102
Nikon 500mm f/4D IF-ED AF-S II Nikkor500420025
Nikon 500mm f/4G ED VR AF-S500420050
Nikon 600mm f/4D ED-IF AF-S Nikkor600420021
Nikon 600mm f/4D IF-ED AF-S II Nikkor600420021
Nikon 600mm f/4G ED VR AF-S600420042

Relative Light Index for photocameras

I have developed a mathematical formula to compare the light sensitivity for photo camera lenses.

A twice as high value means that the lens will receive twice as much light. The formula and equation are linear.

The relative light index of a camera can be calculated as followed:

RLI = ( 1/lens mm ) * (F^2) * ISO value

This initial formula doesn`t correct for VR or OS (whatever name you prefer).
Therefore I adapted the formula to compensate for this

RLI = ( 1/lens mm ) * (F^2) * ISO value * VR (if not, 1  | if yes 2)

Because these values are very small (below 5) its recommended to multiply them with 1000 to create a  more easy to read value.

Linux Kernel 2.6.39 installation guide for Ubuntu Linux

Aside

This short walkthrough describes how to get the latest linux kernel working under Ubuntu Linux without having to compile it yourself.

This tutorial should work with the latest version of Ubuntu Linux (10.04 LTS, 10.10, 11.04 and 11.10) and most distributions based on these versions of Ubuntu Linux like Mint.

The included kernel files have been compiled using the generic ubuntu configuration.
Note: nVIDIA ForceWare drivers are automatically installed using DKMS, if you have these installed and up-to-date.

Installation Guide

  1. Download the kernel headers package;

    linux-headers-2.6.39-020639_2.6.39-020639.201105190911_all.deb
  2. And the appropriate package for your system

    I386: linux-headers-2.6.39-020639-generic_2.6.39-020639.201105190911_i386.deb

    AMD64: linux-headers-2.6.39-020639-generic_2.6.39-020639.201105190911_amd64.deb
  3. And the accompanying compiled kernel;

    I386: linux-image-2.6.39-020639-generic_2.6.39-020639.201105190911_i386.deb

    AMD64: linux-image-2.6.39-020639-generic_2.6.39-020639.201105190911_amd64.deb
  4. Install the files in the same order (else it won`t work!)
  5. In the terminal run:

    sudo update-grub
  6. Reboot and select the kernel from the bootloader menu

    If it`s not there check all steps (and of course for errors)

The source can be found on www.kernel.org