VPS! Getting Drupal up and running on a linode

[Be sure to see the more recent update to this article,
VPS! Getting Drupal up and running on a linode (revisited)]

Well, after realizing the limitations of shared hosting for Drupal development, I decided to go with the big boys and use a dedicated server or VPS solution, at least for development. So I can make a multisite install for the docs and I can make subdomains for each development site.

So after perusing various options, I decided for linode. After checking out the various plans, I decided on the Linode 300, and got 50% more disk space by paying for a year.

While I was waiting for my account to be ready (after all today is Thanksgiving: but it still took no more than 40 minutes), I mosied over to ZoneEdit (see excellent tutorial reference below) and signed up for DNS service and domain management (free for the first 5 domains that you add to your account).

Git and Cogito on Ubuntu

In Synaptic I installed cogito (and therefore git), and gitk (gui).

I'm going to follow the advice on the Git Cogito page:

If you want to start to use Git and are considering Cogito, the best way to go about it is to first learn Cogito, then pick up Git commands if you need to do something extraordinary.

For quick introduction to Cogito, follow the Git Crash Courses - they are presenting Cogito commands.

So I cd'd to my project dir and did:

cg init 

This is the equivalent in svn to both creating the repository (which is now local!!! although I can "push" my stuff to a centralized directory somewhere) and doing the initial import. I make the initial comment, save the file and exit).

Then I made a change in a binary document file, and did:

cg commit

Typed in "modifiqué sección 3.6 Ambientes del Usuario" and saved and exited. Then saw my changes:

Subversion Version Control System on Ubuntu Desktop

The objective is to install subversion on my Ubuntu Dapper desktop in order to support version control for day to day projects.

Will use Apache 2 as uniform access control for security reasons, and in order to make this box a subversion server in my home office network.

Installation with Synaptic

  • subversion package
  • libapache2-svn package

Create repository

victorkane@mentor:~$ sudo mkdir /var/lib/svn
victorkane@mentor:~$ sudo svnadmin create --fs-type fsfs /var/lib/svn

Create password file

victorkane@mentor:~$ sudo htpasswd2 -cm /etc/apache2/dav_svn.passwd victor
New password:
Re-type new password:
Adding password for user victor

Apache 2 HTTP Server configuration


Konqueror and Vim 7 as IDE

First off, see Viva Vim 7! (installing on Ubuntu Dapper) .

Second off, see Konqueror with Midnight Commander theme on Ubuntu . Now we're all on the same page, with Konqueror (in all its variations) and Vim 7 installed.

Also assumed here is the installation of the ExuberantCtags package, so that ctags can be generated for ruby, php, python, perl, and a host of other languages (see ExuberantCtags) as well as the C language. On my Ubuntu box installation was straightforward with Synaptic.

The main interest here is using (and remembering how to use in between actual programming bouts: different projects hook you on different tool sets) Vim 7 as a lightweight alternative to Eclipse.

That may sound like a mouthful, but we'll see it is not an exaggeration.

How to make a favicon in Ubuntu

To make a favicon in Debian linux or Ubuntu (in my case):

  • Install the package xpm2wico with Synaptic or apt-get.
    An Xpm to Windows .ico converter
  • Using Gimp, Capture and shrink or create/edit a 16x16 graphic.
  • Save your image in X PixMap Image (xpm) format.
  • Convert from xpm to favicon name and format: "xpm2wico favicon.xpm favicon.ico".
  • Copy favicon.ico to convenient place, then add the following to a webpage:
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
Syndicate content