Pavnay

 
  • Increase font size
  • Default font size
  • Decrease font size
FrançaisEnglish
Tricks & tips
In this section, some useful tricks and tips to gain some comfort on a server...

[Apache] Compile an optional module

Print
Apache

For whom like me who like compile their httpd server, there's always a moment when we said we had added a module during the compilation.
There's an example of an independant module compilation : the rewriting module :

 

Read more...
 

[MySQL] Creating a timestamped backup table

Print
MySQL

Sometimes it's useful to create a backup table before doing a datas update in a SQL script.
But if this script must be run frequently, the table must be timestamped. However, it's not possible to create a table using a function (as CREATE TABLE MyTable_CURDATE()).

Read more...
 

[Network] Creating a network on a Linux system

Print
Système

When we create a network, a firewall must be required and it must be a gateway between our network and the internet.
Creating a gateway is easy, a simple Linux server with iptables is the only thing we needed :
Read more...
 

[SVN] Backup a SVN repository

Print
Subversion

To backup a SVN repository, there is dedicated tools which is svnadmin :



for mydir in /var/lib/svn/*; 
do 
   svnadmin dump $mydir | gzip -c - > $(date +%Y%m%d)-$(basename $mydir); 
done


Here, all repositories from /var/lib/svn are compressed and backuped in a timestamped archive.
 

[System] Network interface auto-negociation

Print
System
The network configuration can be hard if we can't manage the hardware which is provided as the switches.
There is many kinds of connection and a bad configuration can cause trouble and bad performance.

A common issue is the full / half duplex management and their auto-negociation.

To activate and deactivate the auto-negociation for a network interface, the mii-tools are very useful (here for eth0 ) :
mii-tool -F 100BaseTx-FD eth0 # Activate
mii-tool -A 100BaseTx-FD eth0 # Deactivate
 
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  Next 
  •  End 
  • »


Page 1 of 3

Actualités


AddThis Social Bookmark Button