Linux Stuff && Coffee

CentOS HowTo Add IP Address to Interface

| Comments

CentOS how to add multiple IP addresses to the existing network interface, this is also known as “adding a network alias”. Please note – this is not a tutorial for adding an second interface, it adds an additional IP address to the existing network card.

How to Create a Symbolic Link (Symlink or Soft Link) on Linux

| Comments

A symbolic link is a link to a file or directory at another location on the file system. For example if you moved the location of /var/log/mail to another drive or file system location you could create a symbolic soft link to the new path, preventing scripts and other programs that use this path from breaking. The commands below demonstrate how to create a symbolic link on Linux / Unix systems.

Note: Symbolic links are often called soft links or symlinks.

Linux Copy Directory HowTo

| Comments

How to copy a directory on the Linux / Unix based operating systems from the command line using the cp command (the linux copy command). To copy a directory in Linux we need to use the recursive option for the cp comamnd.

Ubuntu Ruby on Rails Nginx & Unicorn

| Comments

Ubuntu 12.04, Ruby on Rail, Nginx & Unicorn

I have recently built some web apps with Ruby on Rails and needed to serve them up in a production environment using Ubuntu 12.04, Nginx & Unicorn. There are many ways of installing RoR (Ruby on Rails) but this is the method I currently use to deploy my Ubuntu Rails servers. Apt is used as much as possible in this tutorial although the actual Rails install is done via gem (once Ruby 1.9.3 is installed via apt).

Udev Renamed Network Interface Eth0 to Eth1

| Comments

I recently cloned some Virtual Machines (in VirtualBox) and reset the MAC addresses of the network cards on each of the new cloned machines, as a result eth0 was missing. After inspection of dmesg it found the following udev renamed network interface eth0 to eth1 if you open up the following file you should see something similar to the following:

How to Install Nginx on CentOS / RHEL

| Comments

Normally I install Nginx on CentOS / RHEL via the EPEL repo, however I have recently discovered the Nginx project has it’s own repo available. Note this will install a much newer Nginx version than the one available in the EPEL repo, follow the steps below to install Nginx on CentOS / RHEL.