Development

Create a New User in CentOS [HOW TO]

Creating a New User in CentOS ssh to your server as root Create a user:  /usr/sbin/useradd john Expire ther user immediately: /usr/bin/chage -d 0 john Set blank password: /usr/sbin/usermod -p “” john If you want to set the user’s password: su john passwd ...

Read More

Tagged As: , , ,

How to choose rails version when generating new app

How to select the version of rails when you want to create a new rails application: $ rails _3.0.0_ new appname ...

Read More

Tagged As: ,

How to setup a Sinatra app under Apache with Passenger?

app |– config.ru ...

Read More

How to install RoR on Ubuntu

When installing Ubuntu 10.04 server choose the following packages: LAMP and SSH After you install Ubuntu 10.04 always get the latest packages to this run: sudo apt-get update Install Git, curl, and build-essential: sudo apt-get install build-essential git-core curl With git-core ...

Read More

Problem Shutting Down FreeBSD

FreeBSD doesn’t shutdown properly when I type “shutdown now”, the system runs and “Enter full pathname of shell or RETURN for /bin/sh” appears. Here is how to fix that: $ shutdown -p now To learn more check out the FreeBSD manual here: http://www.fre...

Read More

How to install Python 2.7 on FreeBSD

To install Python v 2.7 just type the following in shell 1. Install Python 2.7 #  pkg_add -v -r python27 2. To install Apache: # cd /usr/ports/www/apache22 # make config Make sure ‘THREADS’ is selected and review other options before selecting OK. # make &&...

Read More

FreeBSD Static IP Routing Configuration

1. Open up the file rc.conf # vi /etc/rc.conf 2. Now add the following line ifconfig_interface=”inet 192.168.1.1 netmask 255.255.255.0″ substitute interface with your interface(eg:rl0,rl1,fxp0,em0..) substitute 192.168.1.1 with your desired lan ip. Now type <ESC>...

Read More

gem install postgres ERROR

In terminal type the following, this will install the libraries that are needed for PostgreSQL development. $ sudo apt-get install libpq-dev ...

Read More