Install any version of NodeJS and npm on Raspberry Pi

Wojtek on nodejs, Raspberry Pi, npm, Linux · · Comments · 1 min read

Or simply put, easily switch between versions of NodeJS on any Linux based system. There are two most popular Node version managers. One, my personal favourite is n package, the other one is nvm. n For me the easiest way is to use n package. Just install whatever Node version your official distribution ships with. sudo yum install nodejs or,... Read more »

How to make sure service is running after restart

Wojtek on bash, chkconfig, Linux · · Comments · 1 min read

If you want to avoid situation when after server restart you have to start lots of services manually, a little thing like chkconfig would come in handy. First you might want to take a look at a list of services handled by chkconfig: chkconfig --list You should see something like this: mysql 0:off 1:off 2:on 3:on... Read more »

How to run memcache in PHP

Wojtek on CentOS, Linux, memcache, PHP · · Comments · 1 min read

After installing memcached daemon, we have to install memcache PHP extension. yum install php-pecl-memcache or apt-get install php5-memcache If above is not an option try below method. pecl install memcache After successful installation add memcache.so extension to your php.ini file. vim /etc/php.ini Add this line: extension=memcache.so Restart web server service httpd restart Test out... Read more »

How to install memcached on CentOS

Wojtek on bash, CentOS, libevent, Linux, memcached · · Comments · 1 min read

Install dependancy Before we install memcached we need a dependency library libevent. Check for latest stable version at https://monkey.org/~provos/libevent/ cd /usr/local/src wget http://monkey.org/~provos/libevent-1.4.13-stable.tar.gz tar -xzvf libevent-1.4.13-stable.tar.gz cd libevent-1.4.13-stable ./configure --prefix=/usr/local make make install cd .. Install memcached Check for... Read more »

Install xmpppy on CentOS

Wojtek on bash, jabber, Linux, xmpppy · · Comments · 1 min read

xmpppy is a Python library allowing you to send messages from your server to any Jabber enabled communicator. Firstly download and unpack xmpppy to a local directory. Next go into the unpacked directory and run: python setup.py install Next you need a script that will do the sending. Use your favourite text editor to create file i.e.: vim... Read more »