Setup a new box – Ubuntu Intrepid Server setup

Installed in the server install

sudo aptitude install ruby1.8 rails build-essential ruby1.8-dev
sudo gem install rails
sudo gem install rails -v=2.2.2
sudo gem install chronic
sudo gem install googlebase
sudo gem install hpricot

sudo gem install postgres
sudo aptitude install rmagick
sudo aptitude install librmagick-ruby
sudo gem install rmagick
sudo apt-get install imagemagick
sudo apt-get install libmagick9-dev
sudo apt-get install ibpq-dev
sudo gem install rexml-expansion-fix
sudo apt-get install subversion
sudo gem install memcache-client
sudo gem install mongrel
sudo gem install mongrel_cluster
sudo gem install json

create yourself a user

jordan@wetware:~$ adduser
adduser: Only root may add a user or group to the system.
jordan@wetware:~$ sudo adduser tim
Adding user `tim’ …
Adding new group `tim’ (1001) …
Adding new user `tim’ (1001) with group `tim’ …
Creating home directory `/home/tim’ …
Copying files from `/etc/skel’ …
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for tim
Enter the new value, or press ENTER for the default
Full Name []: Tim Carter
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y

There is also ‘useradd’, which is confusing yes I know, but stick to the above and you won’t go wrong.

Add ‘tim’ to the sudoers list so he can have all root power (not advised, but I don’t yet know how to limit the scope of sudo, when I do, you will know about it!)

sudo visudo
#add the following line at the bottom of the file
tim ALL=(ALL) ALL

You might be asked to select an editor, pick your fav.  Continue as normal.

create a postgres user
Once postgresql is installed you should be able to do

#taken from www.postgresql.org
createuser -P -s -e joe
Enter password for new role: xyzzy
Enter it again: xyzzy
CREATE ROLE joe PASSWORD ‘xyzzy’ SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;
CREATE ROLE

If you are not allowed due to permissions then try ‘sudo su postgres’ first to switch to the postgres user.

Related Posts

Posted on May 30, 2009 at 10:56 pm by Jordan Carter · Permalink
In: Server Config · Tagged with: 

One Response

Subscribe to comments via RSS

  1. Written by oren
    on May 31, 2009 at 9:35 am
    Permalink

    now it’s time to use it on the desktop as well!

Subscribe to comments via RSS

Leave a Reply