LEFEVRE Damien .net

< 1 2 3 4 5 6 7 8 >

Thursday 4 January 2007, 18:46

Customize Live messenger

If like me you are forced to use Live messenger on a machine and you are pissed with the crapy GUI advertisement that gives headache... There's a patch that can make thing just a little bit better even if it's still no that...

Here is the link http://apatch.ikhost.com/downloads.php

Friday 3 November 2006, 10:26

Remove Windows informer

To get rid of the informer, go to Start > Run > cmd. Then write: "regsvr32.exe -u c:\windows\system32\regwizc.dll". Validate.
If everything went well, a message box says: "DllUnregisterServer in c:\windows\system32\regwizc.dll succeed". Finally, click OK.

Friday 3 November 2006, 10:17

Uninstall Windows Messenger

If you don't have use of Messenger, better remove it, this will free small amount of memory. However, this is not possible via Add or Remove Windows Components. Here we go:

  • Start > Run...
  • Type: RunDll32 advpack.dll,LaunchINFSection %windir%\INF\msmsgs.inf,BLC.Remove


Friday 3 November 2006, 10:03

Re-installing XP without re-activating it

When you re-install Windows XP after formating, you are forced to re-activate it as the first time. To avoid this, before formating, find the file "wpa.dbl" in C:\windows\sytem32. Then copy it on a floppy disk, CD or even a different partition. After formating, restore it at the same place then reboot.

Friday 3 November 2006, 10:03

Access rapidly the systems properties

You only need to use the keyboard keys combination: "windows" + "Pause"

Sunday 8 October 2006, 19:32

Configuring SAMBA

To be able to browse files from Windows machine you need to add a user to the user list:

smbpasswd -a user

The linux user account has to exist. Then when you write files from the Windows machine, they will have the right owner on the linux disk.

Wednesday 4 October 2006, 19:04

Installing Apache2, PHP, MySQL, PHPMyAdmin on Debian

Follow the guide and install the elements one by one! I tried to install everything in a row and it screwed everything.

This will install and configure APACHE. The root folder is /var/www..

# apt-get install apache2

This will install and configure PHP5 to work with APACHE2.

# apt-get install php5

To check if the interaction between PHP and APACHE is functional, create /var/www/essay.php containing:


Then launch it from your explorer from http://localhost/essay.php
To configure PHP:
PHP is modular, several module exist and can be loaded or not in /etc/php.ini

A list of available modules for PHP is at http://www.php.net, and the debian package corresponding are:

$ apt-cache search php5 | less


# apt-get install mysql-server

Configuring MySQL:
One need to know that UNIX and MySQL users are different. We start by typing in a root terminal:


We should then get something like:

Welcome to the MySQL monitor.  Commands end with ; or g. 
Your MySQL connection id is 133 to server version: 3.23.49-log
Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

The SQL connection to the server works properly. Now exit :

mysql> quit 

We need to give a password to the root user for Mysql :

mysqladmin password yourpassword

Make a root connection to the SQL server :

mysql -p
Enter password : 
Welcome to the MySQL monitor.  Commands end with ; or g.
Your MySQL connection id is 9 to server version: 5.0.20-Debian_1-log

Type 'help;' or 'h' for help. Type 'c' to clear the buffer.


To prevent using root for the connections, we now create a adminsql user:

mysql> use mysql;  
mysql> select * from user;
mysql>  GRANT ALL PRIVILEGES ON *.* TO adminmysql@localhost IDENTIFIED BY 'motdepasse' WITH GRANT OPTION;
mysql> select * from user where User='adminmysql';
mysql> quit

Now we connect like:

mysql -u adminmysql -p

That's it for the first MySQL configuration

To check the SQL server :

ps aux |grep mysql

The porcess is called mysqld.

/etc/init.d/mysql stop // to stop the service
/etc/init.d/mysql start // to start the service

To insure a good interaction between PHP5 et mysql :

apt-get install php5-mysql

PhpMyAdmin is not mandatory but it's a great help to manage databases!

apt-get install phpmyadmin

To check that everything is functional, go to : http://localhost/phpmyadmin/
If you followed the previous steps, you should get the PhpMyAdmin main page, asking for a password.
This is the one you set previously with adminmysql user.

Everything should be functional, you manage your database with phpmyadmin and you put your files to /var/www.
You can of course change the root document in /etc/apache2/httpd.conf

< 1 2 3 4 5 6 7 8 >