PHP4 PHP5 CGI with suPHP

/etc/portage/package.use
==
=dev-lang/php-4* cgi force-cgi-redirect
=dev-lang/php-5* cgi force-cgi-redirect
==

USE=”force-cgi-redirect” emerge ‘=dev-lang/php-4*’ ‘=dev-lang/php-5*’

/etc/conf.d/apache2
==
APACHE2_OPTS=”-D SUPHP”
==

echo “>=www-apache/mod_suphp-0.6* ~x86″ >> /etc/portage/package.keywords

USE=”mode-force” emerge mod_suphp

/etc/suphp.conf
==
[handlers]
;Handler for php-scripts
x-httpd-php=php:/usr/lib/php5/bin/php-cgi
x-httpd-php5=php:/usr/lib/php5/bin/php-cgi
x-httpd-php4=php:/usr/lib/php4/bin/php-cgi
x-httpd-phtml=php:/usr/lib/php5/bin/php-cgi
==

Gentoo 2006.0 Install on Compaq Deskpro EN

Gentoo 2006.0 Install on Compaq Deskpro EN

Linux: Gentoo 2006.0
Compaq Despro EN Slim Form Factor

CPU0: Intel Pentium III (Coppermine) stepping 0a 1GHz
512 MB DDR Memory
hda: WDC WD200BB-60DGA0, ATA DISK drive
hdc: LITE-ON CD-ROM LTN-4891S, ATAPI CD/DVD-ROM drive

localhost home # lspci

00:00.0 Host bridge: Intel Corporation 82815 815 Chipset Host Bridge and Memory Controller Hub (rev 04)
00:02.0 VGA compatible controller: Intel Corporation 82815 CGC [Chipset Graphics Controller] (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 02)
00:1f.0 ISA bridge: Intel Corporation 82801BA ISA Bridge (LPC) (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801BA IDE U100 (rev 02)
00:1f.4 USB Controller: Intel Corporation 82801BA/BAM USB (Hub #2) (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801BA/BAM AC'97 Audio (rev 02)
02:08.0 Ethernet controller: Intel Corporation 82801BA/BAM/CA/CAM Ethernet Controller (rev 01)

The Install

Legend:
= action
== content

Boot using the minimal install CD “Gentoo 2006.0 Minimal CD/InstallCD”

On Boot:

gentoo acpi=off agpgart nosata nosmp doapm nofirewire scandelay
net-setup eth0
passwd

SSH client: (logged as root)

useradd -m -G users xorprime
passwd xorprime
hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda
==
/dev/hda1 /boot 512
/dev/hda2 swap
/dev/hda3 /
/dev/hda4 /home
==
mke2fs /dev/hda1
mke2fs -j /dev/hda3
mkswap /dev/hda2
swapon /dev/hda2
mkreiserfs /dev/hda4
mount /dev/hda3 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/hda1 /mnt/gentoo/boot
cd /mnt/gentoo
links http://www.gentoo.org/main/en/mirrors.xml
=
download stage3 and portage snapshots
=
tar xvjpf stage3-*.tar.bz2
cd /mnt/gentoo
tar xvjf /mnt/gentoo/portage-.tar.bz2 -C /mnt/gentoo/usr
nano -w /mnt/gentoo/etc/make.conf
==
CHOST=”i686-pc-linux-gnu”
CFLAGS=”-march=pentium3 -O2 -pipe -fomit-frame-pointer”
CXXFLAGS=”${CFLAGS}”
==
MAKEOPTS=”-j2″
mirrorselect -i -o >> /mnt/gentoo/etc/make.conf
mirrorselect -i -r -o >> /mnt/gentoo/etc/make.conf
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1=”(chroot) $PS1″
emerge –sync

ls -FGg /etc/make.profile
less /usr/portage/profiles/use.desc
mkdir -p /etc/portage
echo “sys-libs/glibc userlocales” >> /etc/portage/package.use
nano -w /etc/locales.build

USE=”-doc symlink” emerge gentoo-sources
ls -l /usr/src/linux

emerge genkernel
zcat /proc/config.gz > /usr/share/genkernel/x86/kernel-config-2.6
genkernel –menuconfig all
ls /boot/kernel* /boot/initramfs*

emerge coldplug
rc-update add coldplug boot

find /lib/modules// -type f -iname ‘*.o’ -or -iname ‘*.ko’
nano -w /etc/modules.autoload.d/kernel-2.6

nano -w /etc/conf.d/net
==
config_eth0=( “192.168.1.50 netmask 255.255.255.0 brd 192.168.1.255” )
routes_eth0=( “default gw 192.168.1.1” )
==
rc-update add net.eth0 default
passwd
echo “tts/0” >> /etc/securetty
nano -w /etc/rc.conf
nano -w /etc/conf.d/keymaps
nano -w /etc/conf.d/clock
emerge syslog-ng
rc-update add syslog-ng default
emerge vixie-cron
rc-update add vixie-cron default
emerge reiserfsprogs

emerge lilo
nano -w /etc/lilo.conf
==
boot=/dev/hda # Install LILO in the MBR
prompt # Give the user the chance to select another section
timeout=50 # Wait 5 (five) seconds before booting the default section
default=gentoo # When the timeout has passed, boot the “gentoo” section

# For genkernel users
image=/boot/kernel-genkernel-x86-2.6.16-gentoo-r9
label=gentoo
read-only
root=/dev/ram0
append=”init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev”
initrd=/boot/initramfs-genkernel-x86-2.6.16-gentoo-r9
==
/sbin/lilo
cd
umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo
reboot
useradd -m -G users,wheel,audio -s /bin/bash xorprime
passwd xorprime

==
# ls /usr/share/zoneinfo
(Suppose you want to use GMT)
# cp /usr/share/zoneinfo/GMT /etc/localtime
date 081914582006

nano -w /etc/fstab

==
emerge ati-drivers xorg-x11 -pv
USE=”symlink” emerge -puavDN world
(Remerge libtool to avoid further potential problems)
mybox etc # emerge libtool

(Update config files, make sure you do not let etc-update
update config files you have edited)
mybox etc # etc-update

(If perl has been updated, you should run the perl-cleaner script)
mybox etc # time perl-cleaner all
real 1m6.495s
user 0m42.699s
sys 0m10.641s

(In case of a major upgrade of python, you should run the python-updater script)
mybox etc # python-updater

Web Systems Analyst

ComputingCareers: Senior Web Systems Analyst – £40,000 – £45,000 + Bns – Sutton – URGENT – 40,000 – 45,000 + BENEFITS, Sutton – Real IT Resourcing – Sutton: “Senior Web Systems Analyst – £40,000 – £45,000 + Bns – Sutton – URGENT – 40,000 – 45,000 + BENEFITS, Sutton

We have an exciting opportunity for a Senior web systems Analyst.

Purpose of Role: A senior hands-on role within the Web Systems team, individuals at this level must be totally proficient in all aspects of Web Systems support in their chosen area. From a technical perspective, they will be asked to mentor and oversee more junior members of staff and will increasingly be asked to work with the Technical Architects in the overall design of new solutions.

Key Accountabilitie;

Working with Architects, provide technical designs and guidance for other members of the team and take responsibility for the implications and impact of design decisions.

? Undertaking all Web Systems support activities efficiently to the highest standards, including analysing and fixing assigned faults and systems testing.

? Understand the needs of the business and how the systems they are asked to work on meet these needs.

? Accurately estimating duration and effort required to complete web systems support and maintenance tasks.

? Mentor, and support junior staff.

? Ensuring that line manager and/or Technical Team Lead is kept informed of progress, issues and difficulties in an efficient manner.

? Undertake peer-to-peer pre-implementation technical reviews of colleague’s work

? Supplying innovative ideas and suggestion for improvement in working practices, tools and technologies used by the team.

? Working with direct line manager and Technical Team Lead to improve skills and experience through formal training, mentoring and work assignments.

? Are completely familiar with, and follow, relevant processes and procedure as defined in the IS process manual.

? Demonstrat”

Installing Debian GNU/Linux on an IBM T30 ThinkPad laptop

3. Paranoia

After installation, ps auxw’d to check for running services that I didn’t need. I saw inetd and lpd running, so I did the following to turn these services off (without uninstalling their software):

/etc/init.d/inetd stop
/etc/init.d/lpd stop
/usr/sbin/update-rc.d -f inetd remove
/usr/sbin/update-rc.d -f lpd remove