linux

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.

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.

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

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

 

Apache Module mod_status

The Status module allows a server administrator to find out how well their server is performing.

This module is normaly enable by default on ubuntu.

On a ubuntu distribution, you can edit the file
etc/apache2/mods-available/status.conf
for your personal configuration; for example to allow only from your ip.

Complete description can be found at apache website.

 

ab - Apache HTTP server benchmarking tool

ab - apache benchmarkThis is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. This especially shows you how many requests per second your Apache installation is capable of serving.

Proftpd - How to put users in a chroot jail?

In proftpd (ftp server), the most common configuration requested is to restrict users to their home directories, which can be done simply by adding the following line to your proftpd.conf: DefaultRoot ~ The ~ (tilde) is a Unix-ism that is expanded to the logging-in user's home directory.You can use this configuration directive in:
  • VirtualHost
  • Global
  • in the main "server config"
 

Drupal - the most solid cms.

Drupal is a robust platform and Content Management System. It is used for communities, ecommerce, many sizes of sites from small companies, to non-profit groups.Those are the main reasons why I use drupal as a cms:

Howto install Webmin to administer your server?

I love webmin. I think it is one of the best freeware administration tool for a linux box. I normaly install via apt repository. Please follow the instructions directly on the webmin site: howto unstall webmin on ubuntu server via apt repository.

How to move your MySQL database directory to another directory

If you have a dedicated server with a second Hard Drive then you can often achieve better performance (reduce io wait issues) if you move your MySQL databases to the second Hard Drive.

This was done on a server with CentOS operating system.
Let’s say your second HDD is mounted as /home2
1. The first step is to stop MySQL so that all your data gets copied correctly.

$ /etc/rc.d/init.d/mysql stop
- or -
$ service mysql* stop

Syndicate content