Virtual Box Mount new Disk (Centos 6)

This is a step to step guide mounting a disk to Centos 6 running on Virtual Box. Add a new disk under virtualbox setting -> storage. Set the new disk as Primary Slave Boot up centos and type in fdisk -l You should see a disk called Disk /dev/sdb¬†something like , Disk /dev/sdb: 12.8 GB, […]

Read More »

SSH Public / Private Key Setup

Create Public / Private key pairs ssh-keygen -t [Type of the key] ¬†-b [Number of bits in the key to create] e.g. ssh-keygen -t rsa -b 4096 Copy public key to remote server ssh-copy-id -i [path to public key] [username]@[host] e.g. ssh-copy-id -i keys/sample_public_key.pub [email protected]   p.s. Public key is always associated with a user […]

Read More »

Useful Linux Commands

Commonly used Linux commands. //change permissions recursively on Directories: find . -type d -exec chmod XXX {} ; //change permissions recursively on Files: find . -type f -exec chmod XXX {} ; //extract .tar.gz file: tar -zxvf [file].tar.gz //logout logout //switch user: su [username] //change owner of a directory recursively chown -Rv [username] [somedir] //change […]

Read More »