Ярлыки

.htaccess (4) тестирование (8) шаблоны проектирования (3) css (5) Debian (6) docker (2) Doctrine2 (6) Git (6) html (4) java (6) javascript (13) jquery (11) LFS (3) linux (23) mac os (4) mod_rewrite (2) MSSQL (4) MySQL (18) ORM Doctrine (17) patterns (3) PDO (3) perl (7) PHP (64) PHPUnit (8) Python (15) SEO (2) Silex (1) SimpleXML (1) SQL (14) ssh (4) Ubuntu (24) Yii1 (1) Zend Framework (19) ZendFramework2 (8)

суббота, 27 ноября 2010 г.

Debian. Сверим часы.

sudo date +%T -s "14:37:00"

Debian. Установка memcache.

apt-get install memcached
ps aux | grep memcache
nobody    9224  0.0  0.0   2584  1084 ?        S    13:53   0:00 /usr/bin/memcached -m 64 -p 11211 -u nobody -l 127.0.0.1

Качаем Development package xampp и исходники модуля memcache для php c http://pecl.php.net/package/memcache.
Распаковываем:
debian:tar xvfz xampp-linux-devel-1.7.3a.tar.gz -C /opt 
debian:/home/leon/Downloads# exit
exit
leon@debian:~/Downloads$ tar xzf memcache-3.0.5.tgz 
leon@debian:~/Downloads$ cd memcache-3.0.5
leon@debian:~/Downloads/memcache-3.0.5$ sudo /opt/lampp/bin/phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

leon@debian:~/Downloads/memcache-3.0.5$ sudo apt-get install autoconf
...
leon@debian:~/Downloads/memcache-3.0.5$ sudo /opt/lampp/bin/phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
leon@debian:~/Downloads/memcache-3.0.5$ 
leon@debian:~/Downloads/memcache-3.0.5$ ./configure --enable-memcache --with-php-config=/opt/lampp/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... no
checking for gcc... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
leon@debian:~/Downloads/memcache-3.0.5$ sudo apt-get install gcc
...
leon@debian:~/Downloads/memcache-3.0.5$ ./configure --enable-memcache --with-php-config=/opt/lampp/bin/php-config
...
checking for the location of zlib... configure: error: memcache support requires ZLIB. Use --with-zlib-dir=<DIR>
to specify prefix where ZLIB include and library are located
...
leon@debian:~/Downloads/memcache-3.0.5$ sudo apt-get install zlib1g-dev
...
leon@debian:~/Downloads/memcache-3.0.5$ ./configure --enable-memcache --with-php-config=/opt/lampp/bin/php-config
leon@debian:~/Downloads/memcache-3.0.5$ sudo apt-get install make
leon@debian:~/Downloads/memcache-3.0.5$ make
leon@debian:~/Downloads/memcache-3.0.5$ sudo make install
...
Installing shared extensions:     /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/
leon@debian:~/Downloads/memcache-3.0.5$ sudo nano /opt/lampp/etc/php.ini
Добавляем расширение:
extension="memcache.so"
Перезапускаем xampp ...

Debian. Установка Firefox.

Качаем архив с сайта firefox для linux.

leon@debian:~/Downloads$ su
Пароль: 
debian:/home/leon/Downloads# mv firefox-3.6.12.tar.bz2 /usr/lib
debian:/home/leon/Downloads# cd /usr/lib/
debian:/usr/lib# tar -jxvf firefox-3.6.12.tar.bz2
debian:/usr/lib# ln -s /usr/lib/firefox/firefox /usr/bin/firefox

Создаем ссылку на каталог с плагинами:
debian:/usr/lib# rm -rf /usr/lib/firefox/plugins
debian:/usr/lib# ln -s /usr/lib/mozilla/plugins /usr/lib/firefox/plugins

Debian. Подключаем backports и устанавливаем Pidgin.

Некоторые пакеты с более новыми версиями для Lenny доступны из репозитория backports.

leon@debian:~$ su
Пароль: 
debian:/home/leon# nano /etc/sudoers 

Добавляем в файл строку:
leon ALL=(ALL) ALL
Этим мы позволяем пользователю пользоваться командой sudo.

debian:/home/leon# exit
exit
leon@debian:~$ sudo nano /etc/apt/sources.list

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for leon:

Добавляем репозиторий в список:
deb http://www.backports.org/debian lenny-backports main contrib non-free

leon@debian:~$ sudo apt-get update
leon@debian:~$ sudo apt-get install debian-backports-keyring

Устанавливаем Pidgin
leon@debian:~$ apt-get install -t lenny-backports pidgin

Теперь установлен Pidgin 2.7.3.