Tag Archive for debian

The repository for Debian-based LAMP servers

The latest versions of NGINX server

Instructions
Using Dotdeb is very simple:

For the main Dotdeb repository, depending on your distribution (lenny/oldstable or squeeze/stable), add these two lines to your /etc/apt/sources.list file (choosing a mirror near you) :
Read more

Создание .deb пакетов из исходников

Для того что бы создать пакет .deb из исходников нужно проделать следующее:

1) Для начала требуется установить утилиту checkinstal:

sudo apt-get install checkinstall

2) Перейдите в папку с исходниками и выполните следующие команды:

./configure
make
sudo checkinstall

3) Ответить на вопросы.

Далее в папке с исходниками появится пакет с расширением .deb, который, в свою очередь, и будет установлен автоматом.

Более подробнее о данной утилите:

man checkinstall

PyGrub «grub-probe can’t find drive for /dev/xvda1″ error — Debian Squeeze

If you are getting following while doing «apt-get upgrade»…

Setting up linux-image-2.6.32-5-686-bigmem (2.6.32-31) ...
Running depmod.
Running update-initramfs.
update-initramfs: Generating /boot/initrd.img-2.6.32-5-686-bigmem
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.32-5-686-bigmem /boot/vmlinuz-2.6.32-5-686-bigmem
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.32-5-686-bigmem /boot/vmlinuz-2.6.32-5-686-bigmem
Searching for GRUB installation directory ... found: /boot/grub
warning: grub-probe can't find drive for /dev/xvda1.
grub-probe: error: cannot find a GRUB drive for /dev/xvda1. Check your device.map.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.32-5-686-bigmem.postinst line 799, <stdin> line 2.
dpkg: error processing linux-image-2.6.32-5-686-bigmem (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up isc-dhcp-common (4.1.1-P1-15+squeeze1) ...
configured to not write apport reports
Setting up isc-dhcp-client (4.1.1-P1-15+squeeze1) ...
Setting up firmware-linux-free (2.6.32-31) ...
Setting up linux-libc-dev (2.6.32-31) ...
Setting up dhcp3-client (4.1.1-P1-15+squeeze1) ...
Errors were encountered while processing:
linux-image-2.6.32-5-686-bigmem
E: Sub-process /usr/bin/dpkg returned an error code (1)

Read more

NFSv4Howto

Installation
The required packages are different depending on if the system is a client or a server. In this Howto, the server is the host that has the files you want to share and the client is the host that will be mounting the NFS share.

NFSv4 client

apt-get install nfs-common 

NFSv4 server

apt-get install nfs-kernel-server 

After you finish installing nfs-kernel-server, you might see failure to start nfs-kernel-server due to missing entries in /etc/exports. Remember to restart the service when you finish configuring.
Read more

amon.so: Hijacking System Calls For Hardening PHP — Debian Lenny And Squeeze

amon.so is a library that integrates with the PHP interpreter and intercepts and manipulates the system calls provided by libc6. It replace the execve() syscall with a custom function which does extra sanity checking in order to prevent that an attacker could execute arbitrary code on the system exploiting a vulnerability in a web-based application (such as a bugged cms). It’s open-source software released under the terms of the GPL license and compatible with PHP running as a CGI process or Apache’s DSO module. The official website is http://www.lucaercoli.it/

For this brand new project at the moment there aren’t prebuilt packages, therefore to use it you must download the source code and compile it.

In order to install the compiler (gcc) with development libraries and header files, open a terminal and execute the following command:
Read more

Веб-сервер на Debian. Nginx

Статья не моя. Внизу указан источник.
Скопировал к себе на всякий случай.

 

Решился написать продолжение, по настройке полноценного веб сервера на базе Debian Lenny. Хоть и прошло это радостное событие, Squeeze теперь stable. Я все еще не готов оновлять свои продакшн сервера на 6-чку. В данном топике, расскажу, как собрать свежый пакет для nginx ветки 0.8 не прибегая к скучным чтениям документации. Все ужа давно сделали за нас. Итак, приступим:Перво-наперво, рекомендую полностью обновить систему, так как могли выйти обновления:

 

aptitude update
aptitude safe-upgrade

Read more