Michel's blog

Remote desktop on ubuntu server with vnc

Creating Additional Desktops

New desktop environments are created using the vncserver utility. If vncserver is not already installed, it may be installed from a terminal window as follows:

sudo apt-get install vnc4server

Once the VNC server package is installed, the next step is to assign a password to protect the desktops. This can be achieved using the vncpasswd tool. Run this tool from the command-line prompt in a terminal window and enter the password of your choice.

Page speed plugin for firefox 4

This is a link where you can download the new pagespeed plugin for firefox 4:

https://dl.google.com/page-speed/1.11.2.0/page-speed.xpi

It works ok

Install drush - a drupal module - on ubuntu linux server.

  • But first of all "What is Drush?"
    "Drush is a command line shell and Unix scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those who spend most of their working hours at the command prompt."
    Drush allows you to easily manage, update, and maintain your modules via command line without having the need to keep a CVS cheat sheet laying around.
  • Requirements.

What can SEO do for you??

What SEO can do for you:

Apache php: the best way to combine.

This article is still under construction........

 Let's have a look at different points:

  • Apache with PHP module consumes a lot of memory because each request is handled by one process.
  • The worker MPM uses a thread based architecture as opposed to the pre-fork MPM which uses a process based architecture; the architectural differences between the two Multi-Processing Modules means that the worker MPM has a lower memory footprint.
  • The pool of fcgid-invoked programs is shared between all httpd workers.
  •  

 Related links.

Install GD library with PHP on Ubuntu (Debian) for best Drupal performance

One of the best feature of Drupal is the image api; that will help you a lot in managing all of your images to make with the help of the module imagecache all kind of modifications, like resize, crop etc..

In PHP you need the GD Graphics Library for dynamically manipulating images. You need to recompile PHP with the GD library of image functions; fortunately apt-get will help us for this to work.

The package is called php5-gd

MySQL find and replace data in drupal database

Case: in drupal I had to move a complete site (in single site configuration) from one server to another server (in multisite configuration).

All the files included in files/(single site configuration) were moved to a new directory sites/mydomain.com/files/ (multisite configuration).

At this point the path in the field filepath in the files table of the mysql database was not pointing to the correct place. I had to find and replace all values in filepath field to the new correct directory with the following mysql command:

Most installed drupal modules.

When you search for a module in drupal.org you get a filter to fine tune tour searc criterias. To better understand which are the most installed modules, I wanted to make a list of the first modules for each categories for version 6.x:

Howto copy or duplicate a directory in linux?

 The best command to copy or duplicate a directory in linux is the following:

$ mkdir new_dir
$ cp -R old_dir/* new_dir/

cp: copy command in linux

-R: says recursively

 

Howto speed up your web site for best seo.

At Yahoo Developer network, they have found out 35 best practices to speed up your web site. You can find a resume here next, divided by categories.

Syndicate content