Default image

check the latest kernel version available

In order to check the latest kernel version available just do this: finger @kernel.org And get an output similar to: [kernel.org] The latest stable version of the Linux kernel is: 2.6.22.4 The latest prepatch for the stable Linux kernel tree is: 2.6.23-rc3 The latest snapshot for the stable Linux kernel tree is: 2.6.23-rc3-git4 The latest 2.4 version of the Linux kernel is: 2.4.35.1 The latest 2.2 version of the Linux kernel is: 2.2.26 The latest prepatch for the 2.2 Linux kernel tree is: 2.2.27-rc2 The latest -mm patch to the stable Linux kernels is: 2.6.23-rc2-mm2

August 22, 2007 · 1 min · 95 words · João Malcata
Default image

add a scheduled job with crontab

In order to add a scheduled job just call “crontab -e” and add entries to the crontab file. Take a look at this scheduled crontab examples: 0 0 * * * ~/incremental_bck.sh --midnight every day 0 0 * * 1-5 ~/send_happybirthday.sh --midnight every weekday 0 0 1,15 * * ~/full_backup.sh --midnight on 1st and 15th days

October 15, 2006 · 1 min · 56 words · João Malcata
Default image

Multiple web sites installation on wordpress

Here are the basic steps to install another wordpress weblog on a multiple web sites infrastructure over a single apache2 on debian. 1. Create the new database In order to pick a consistent database name, check the existing databases and create a new one. Then create a new username and give it full access. mysql> SHOW DATABASES; mysql> CREATE DATABASE <databasename>; mysql> SELECT User, Password, Host from user; mysql> GRANT ALL PRIVILEGES ON <databasename>.* TO <username>@<hostname> INDENTIFIED BY <password>; mysql> FLUSH PRIVILEGES; mysql> EXIT; 2. Setup the wp-config file 2.1 Copy wp-config.php to config-<website>.php 2.2 Update config-website.php constants with the info from above define('DB\_NAME', '<databasename>'); // The name of the database define('DB\_USER', '<username>'); // Your MySQL username define('DB\_PASSWORD', '<password>'); // ...and password define('DB\_HOST', '<hostname>'); // 99% chance you won't need to change this value 3. Setup Apache2 web site 3.1 Create a website path ln -s /usr/share/wordpress /var/www/<website> 3.2 Create logs folder mkdir /var/log/apache2/<website> 3.3 Create a new apache configuration file for the website /etc/apache2/sites-available/<website> <VirtualHost *:80> ServerName <website> ServerAdmin webmaster@<domain> DocumentRoot /var/www/<website>/ <Directory /var/www/<website>> Options ... # hack for nice URIs <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> </Directory> ... LogLevel warn ErrorLog /var/log/apache2/<website>/error.log CustomLog /var/log/apache2/<website>/access.log combined ... </VirtualHost> 3.4 Enable the new website a2ensite website 3.5 Reload Apache2 configuration /etc/init.d/apache2 reload 3.6 Run the install script: https://<website>/wp-admin/install.php And Voila, you have a new weblog. ...

August 23, 2006 · 2 min · 242 words · João Malcata