Agile Programming

Servidores

Written on July 27th, 2010

Joining Ubuntu Lucid Lynx to Active Directory

linux xp Joining Ubuntu Lucid Lynx to Active DirectoryFrom Jaunty Jackalope version of Ubuntu and now in the lastest release (Ludid, 10.4) it’s very easy to join your Ubuntu to an Active Directory. Where I work we have a huge Active Directory to centralize users, groups, computers and resources (far more than 3000 users).

Here I go to explain how to join an Ubuntu Lucid Lynx (10.04) box to an Active Directory server:

Before all take notice that your DNS are pointing to your corporative DNS and the client system-time is synchronized with the server time. To do this just issue the next command:

sudo ntpdate domain.of.your.ad.server.com
  1. Install the likewise open AD authentication application with the next command: sudo apt-get install likewise-open
  2. Register your Ubuntu system:
    sudo domainjoin-cli join name.of.jour.domain.com admin-user 

    (where name.of.your.domain.com is your domain name, and admin-user is a user account on the domain with permissions to add computers to it).

  3. When prompted, enter the password of your adminstrator account. A dialogue box will appear asking for your domain name, enter your AD fully qualified domain name in upper case letters, i.e YOUR.DOMAIN.COM
  4. Finally reboot.

Read the rest of this entry »

Written on July 15th, 2010

How to setup a LAMP server with less than 100 characters

lamp How to setup a LAMP server with less than 100 charactersOne of the reasons cause I love the GNU/Linux for developing is its easy and quick setup.
So if you’re a LAMP-dev you can setup a LAMP server with less than 100 chars.
With the next command you will have a apache2+php5+mysql on Debian based systems with the bonus of phpmyadmin for administer your databases.
sudo apt-get install phpmyadmin lamp-server^

Dont forget the trailing ‘^’ char.

Quick post, quick solution. Isn’t it?

Written on June 3rd, 2010

Speed up Google Analytics js by caching it locally

rect2818 Speed up Google Analytics js by caching it locally

The big problem of use Google Analytics is that you have to get its javascript to get to work statistics. For me this causes that my sites takes a lot of time to end the load. For this reason I always recommend put the GAnalytics code at the bottom of the page, but for me this is not enought.

One solution to this is to cache the external javascript locally but what if the external javascript changes? Here I go to explain how to store GAnalytics javascript locally and peridiocally check that is the lastest version.
Read the rest of this entry »

Written on June 1st, 2010

3 ways of get memcached status

rect3644 3 ways of get memcached statusIf you use memcached to cache contents among different servers and apps, and you want to get statistics for what is happening inside the memcached-sever you can use one of the available interfaces for programming languages but there are simpler ways to do that. The best way is use the command line because the simple protocol that memcached has.
Read the rest of this entry »