How to install libtorrent on linux

Installing libtorrent on linux. I use boost (how to install boost) version 1.47.0 so I can’t guarantee it works with any other version (although it probably will). cd /var wget libtorrent-rasterbar-0.14.7.tar.gz -O http://sourceforge.net/projects/libtorrent/files/libtorrent/libtorrent-0.14.7/libtorrent-rasterbar-0.14.7.tar.gz/download tar -zxfv libtorrent-rasterbar-0.14.7.tar.gz cd libtorrent-rasterbar-0.14.7 CPPFLAGS=”-DBOOST_FILESYSTEM_VERSION=2″ ./configure make make install ldconfig Make sure you add CPPFLAGS=”-DBOOST_FILESYSTEM_VERSION=2″ before ./configure or you’re gonna get […]

How To Install Code::Blocks on Debian

64-bit link: http://download.berlios.de/codeblocks/codeblocks-10.05-1-debian-amd64.tar.bz2 32-bit link: http://download.berlios.de/codeblocks/codeblocks-10.05-1-debian-i386.tar.bz2 I will be using 64bit debian-squeeze. cd /var wget http://download.berlios.de/codeblocks/codeblocks-10.05-1-debian-amd64.tar.bz2 tar -jxvf codeblocks-10.05-1-debian-amd64.tar.bz2 First, we have to install libwxbase, find URLs Here wget http://ftp.us.debian.org/debian/pool/main/w/wxwidgets2.8/libwxbase2.8-0_2.8.10.1-3+b1_amd64.deb dpkg -i libwxbase*.deb Next, we have to install libwxgtk, find URLs Here wget http://ftp.us.debian.org/debian/pool/main/w/wxwidgets2.8/libwxgtk2.8-0_2.8.10.1-3+b1_amd64.deb dpkg -i libwxgtk*.deb And finally, we can install Code::Blocks cd amd64 […]

How to install curlpp on linux

First, install libcurl: Here cd /var wget http://curlpp.googlecode.com/files/curlpp-0.7.3.tar.gz tar -zxvf curlpp-0.7.3.tar.gz cd curlpp-0.7.3 ./configure You may have to install some dependencies, like: apt-get install gcc apt-get install g++ apt-get install make But since we already installed libcurl, they should be in already. make make install And we’re done.

How to install boost on linux

Boost is a definite must have for all C++ programmers, and it’s really easy to install, too. Warning: Running ./b2 install will take a really long time to complete. It may look like it’s stuck at the start, but it’s really working it’s butt off! Tip: For instructions use ./bootstrap.sh –help cd /var wget http://sourceforge.net/projects/boost/files/boost/1.47.0/boost_1_47_0.tar.gz […]

Install libcurl with ssl and ssh support

cd /var wget http://curl.haxx.se/download/curl-7.22.0.tar.bz2 apt-get install bzip2 tar -jxvf curl-7.22.0.tar.bz2 cd curl-7.22.0 ./configure Install dependencies, if they pop up as not installed. For me, these popped up (binutils is for ar): apt-get install binutils apt-get install gcc apt-get install g++ apt-get install make I decided I also want SSL and SSH support so; Check for […]

Clear memory cache every 5 seconds

Create a shell script clear.sh using bash. $ vim clear.sh #!/bin/bash while true do sync; echo 3 > /proc/sys/vm/drop_caches sleep 5 done Set execute permissions $ chmod u+x clear.sh Now, execute this shell script in the background using “nohup” as shown below. This will keep executing the script even after you logout from your session. […]

Installing php-fpm on Debian 6 (squeeze)

First add the dotdeb repo to your sources.list file: vim /etc/apt/sources.list add this to the bottom of the file: deb http://packages.dotdeb.org stable all Next, add the GnuPG key to your distribution: wget http://www.dotdeb.org/dotdeb.gpg cat dotdeb.gpg | sudo apt-key add – rm dotdeb.gpg Update APT: apt-get update Install that shizzle: apt-get install php5-cli php5-common php5-suhosin apt-get […]

Different php-fpm for each lighttpd vhost

#Edit /etc/php5/fpm/php-fpm.conf Add line “include=/etc/php5/fpm/pool.d/*.conf” #if it isn’t in there already. cd /etc/php5/fpm/pool.d #We have to create a new .conf file for each vhost, so I copy the default one cp www.conf myvhost.conf vim myvhost.conf #Edit the following: [www] to [domain.tld] listen = 127.0.0.1:9000 to :9001 pm.max_children = 2 pm.start_servers = 1 pm.min_spare_servers = 1 […]

Lighttpd with LUA support

There are two ways to install Lighttpd with LUA support, I will show you both. ### Easy way; ## Add to /etc/apt/sources.list: deb http://www.jonmoniaci.com/debian-ppa/ lenny main contrib non-free ## Install aptitude install lighttpd-mod-magnet ## Remove from sources list again ### Harder way ## Install gcc (compiler), and lua apt-get install gcc apt-get install lua apt-get […]