I am Hack Sparrow
Captain of the Internets.

Archive for Linux

Linux – Find out which OS distro

So how do you get the distro name of the Linux you are using? The uname command doesn't really help a lot of time. [code] $ uname -a Linux hackbox 2.6.32-131.17.1.el6.x86_64 #1 SMP Thu Oct 6 19:24:09 BST 2011 x86_64 x86_64 x86_64 GNU/Linux [/code] Try looking for the details in /proc/version. [code] $ cat /proc/version Linux version 2.6.32-5-xen-amd64 (Debian 2.6.32-31) (captain@hacksparrow.com) (gcc versi ...

Linux scp command – Common use cases

scp is a very useful Linux tool which lets you copy files from one system to another via SSH in a secured manner. I will assume that, since you want to use the scp command, you have access to a Linux or related system. You can find out details about the scp command by doing man scp at the terminal. But that's not the point of it. I want to show you some common uses cases of scp and how t ...

Install Node.js on CentOS

Installing Node.js on CentOS is slightly different from installing on Ubuntu Linux. The main differences being in the name of the package manager and the package names. The package manager of CentOS is called Yum. Make sure a Cxx compiler and OpenSSL development packages are installed, else you will be stopped by these errors. [code] wscript:261: error: could n ...

Install MongoDB on Ubuntu

Having a tough time trying to install MongoDB on Ubuntu? This post will show you how to get MongoDB running on your Ubuntu box. Instead of compiling from source, we will be installing MongoDB using apt-get. Compiling MongoDB is a pain in the ass with all its very specific dependencies, so I personally prefer installing the compiled binary. There are two MongoDB packages available for you to choose from - mongodb and mongodb-10gen. T ...

How to install Node.js on Ubuntu Linux

Although there is an official Linux installation documentation, and an unofficial installation script to help you install Node.js on Linux systems, things generally don't go smoothly or reliably. I will show you the core basics of installing Node.js on an Ubuntu system. These instructions will be immensely helpful if it is a Freshly installed Ubuntu system. Fi ...