Add a service to chkconfig

Chkconfig controls when a service will start up or stop based on the run level of the server. To list all of the services and when they would start and stop simply run the following : If you can’t find what you’re looking for right away, use grep to sort through the list : If […]

Read More

Set up a LEMP Server

root@host1:~# history | grep apt-get 1 apt-get update 2 apt-get upgrade 3 sudo apt-get install mysql-server php5-mysql 8 sudo apt-get update 9 apt-get install nginx 11 sudo apt-get install php5-fpm 38 apt-get remove nano 48 apt-get install mumble-server 150 apt-get remove mysql 151 apt-get remove mysql-server 153 apt-get install mariadb 155 sudo apt-get install mariadb-server […]

Read More

Installing NoIP in CentOS

First you will need to verify you have the requirements installed on the server, GCC and MAKE. If you do not have them, simply install them with the following commands : Next, let’s make the directory for NoIP and change to that directory : Then lets download the files needed, make sure you are getting […]

Read More

Open up a port in IPTables

First off, CentOS uses the firewall IPTables by default. To go in and open up ports you will need to start off as root : You will be prompted for your root password. Go ahead and enter it and hit enter. It’s always a good idea to turn IPTables off before you start : Now […]

Read More

Setting up a static ip in CentOS

First you will need to edit the file ifcfg-eth0 : Here is an example, just make sure to change your IP Address that you want to use and your netmask if applicable. Next you need to go in and configure your default gateway : Again here is an example, make sure to keep your hostname […]

Read More

Giving a user superuser access

To give a user sudo access is extremely easy. First you need to run the command : Then you will need to find the line root ALL=(ALL) ALL and add the username of the new sudoer to the file, an easy way to run this in VI is like this : This will find the […]

Read More

Disable root login via SSH

To disbale root access via SSH you will need to go in and edit the sshd_config file : Then you will need to find the following line of code : #PermitRootLogin yes and edit it to read PermitRootLogin no Finally you will need to restart the sshd service :

Read More

Adding a new user in Unix

Adding a new user in Unix is extremely easy. First you will need to run the following line of code : Next you will need to set the user’s password :

Read More