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 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: 32-bit link: I will be using 64bit debian-squeeze. cd /var wget tar -jxvf codeblocks-10.05-1-debian-amd64.tar.bz2 First, we have to install libwxbase, find URLs Here wget dpkg -i libwxbase*.deb Next, we have to install libwxgtk, find URLs Here wget 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 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 ./ –help cd /var wget […]

Install libcurl with ssl and ssh support

cd /var wget 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 using bash. $ vim #!/bin/bash while true do sync; echo 3 > /proc/sys/vm/drop_caches sleep 5 done Set execute permissions $ chmod u+x 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 stable all Next, add the GnuPG key to your distribution: wget 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 = 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 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 […]