I am Hack Sparrow
Captain of the Internets.

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 ...

Two common Nodejs NPM Permission Denied errors on Linux

Permission Denied: '../lib/node_modules/npm/bin/npm-cli.js' You are likely to encounter this error when you try to install npm. Even chmodding '/lib/node_modules' recursively won't fix the problem. You get this error and npm just fails to install: [code] $ curl http://npmjs.org/install.sh | sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload ...

How to open tar.gz File in Linux

This post is a quick instruction on how to open tar.gz files in Linux. So you came across a file that has the extension .tar.gz and have no idea how to open it. Let's say you downloaded , here's how you open it. [code] $ tar -zxvf node-v0.4.12.tar.gz ... $ ls -la drwxr-xr-x node-v0.4.12 -rw-rw-r-- node-v0.4.12.tar.gz [/code] In the above example tar -zxvf will extract the contents of to a direc ...

How to Zip and Unzip in Linux: The Zip and Unzip Linux Commands

To create ".zip" files in Linux, you use the zip command. To unzip ".zip" files, you use the unzip command. Here are some common uses of the zip and unzip commands in Linux. To zip a single file: [bash] $ zip myfile.zip myfile.txt [/bash] ...

How to Change User Shell Type in Linux

To change a user's shell type in Linux you use the command. Before using that you may want to see the curtrent default shell of the user. To see the current shell type, do the following: [bash] $ cat /etc/passwd | grep jack jack:x:10003:10003::/home/jack:/bin/sh [/bash] So the user jack's shell type is currently , we'd do the following ...