Archive for the 'FreeBSD' Category

cd /etc/sshd
vi sshd_config
PermitRootLogin yes
/etc/rc.d/sshd restart

Utiliser la commande /usr/sbin/sysinstall. Ensuite aller dans Configure > Distributions > Select Man and Info.

Voila, le reste est simple.

Install Evolution
Open Evolution one time and then close it

Configure the Exchange account with your account informations on the Windows domain with the command : ximian-connector-setup-2.x (x being the Evolution version you’re using).
Download the scritp provided with this post.
Modify the script following the instruction provided by the comments in it.
Execute the script you’ve downloaded.
Open Evolution, right-click one by one the newly imported folders from thunderbird and then select move, select the your exchange’s personnal folder.

The code for the migration script : Copy, paste in a bash script file (.sh)


# Author: Sean Carlos
# Date: 2005-08-07
# Purpose: One time brute force migration of Thunderbird mail to Evolution.
# All Thunderbird accounts & folders will be dumped into a Thunderbird
# folder in Evolution.

# *********************************************************
# You must modify the first two variables to match your settings.
# *********************************************************

# Change the location to your Thunderbird Mail directory


# Change the location to your Evolution Mail directory
# Note: you must have already created at least a dummy account in Evolution.


# Done user modifications.
echo “_______________________________________________________________________________”
echo “”
echo ” – one time copy of Thunderbird Email to Evolution”
echo ”                                 v 00.01″
echo “_______________________________________________________________________________”
echo “”
echo ”     You have specified the following:”
echo “”
echo ”  Thunderbird Mail Directory: $THUNDIRBIRD_MAIL”
echo “”
echo ”    Evolution Mail Directory: $EVOLUTION_MAIL”
echo “”
echo “”
echo “_______________________________________________________________________________”
echo “”

echo -n “Are you sure you want to continue? (y/n) [y]: ”
read ans

if [ ! -z $ans ] ; then
if [ $ans = “n” -o $ans = “N” -o $ans = “no” -o $ans = “No” -o $ans = “nO” -o $ans = “NO” ] ; then
echo “”
echo “copy_thunderbird Information: Nothing done.  Exiting.”
echo “”

# Allow Date parameterization

# Ideally, a migration script would migration account information

# 1. Make a Thunderbird directory which will be the the migration folder in Evolution

if [ -d $EVOLUTION_MAIL ] ; then
echo “Creating Directory $EVOLUTION_THUNDERBIRD_MAIL”
echo “”
echo “Found directory $EVOLUTION_THUNDERBIRD_MAIL”
echo “Migration was already performed?  Exiting.”
echo “*** Cannot find Evolution directory $EVOLUTION_MAIL”
echo “*** Start Evolution and create a dummy account in order to create this directory.”
echo “*** Nothing done.  Exiting.”
# 2. Copy everything.  Resolves issues dealing with directory and or filename spaces…

if [ -d $THUNDIRBIRD_MAIL ] ; then
echo “*** Cannot find Thunderbird directory $THUNDIRBIRD_MAIL”

# 3. Delete Thunderbird only index and data files

echo “Deleating msf files under $EVOLUTION_THUNDERBIRD_MAIL”
find $EVOLUTION_THUNDERBIRD_MAIL -name “*.msf” -exec rm {} \;
echo “Deleating dat files under $EVOLUTION_THUNDERBIRD_MAIL”
find $EVOLUTION_THUNDERBIRD_MAIL -name “*.dat” -exec rm {} \;
echo “Deleating rdf files under $EVOLUTION_THUNDERBIRD_MAIL”
find $EVOLUTION_THUNDERBIRD_MAIL -name “*.rdf” -exec rm {} \;
echo “Deleating html files under $EVOLUTION_THUNDERBIRD_MAIL”
find $EVOLUTION_THUNDERBIRD_MAIL -name “*.html” -exec rm {} \;

# The sbd directories exist in Evolution only if not empty.
echo “Deleating empty sbd directories under $EVOLUTION_THUNDERBIRD_MAIL”
find $EVOLUTION_THUNDERBIRD_MAIL -depth -empty -name “*.sbd” -exec rmdir {} \;

# deleate Trash and Template folders (optional…)
echo “Deleating Trash directories under $EVOLUTION_THUNDERBIRD_MAIL”
find $EVOLUTION_THUNDERBIRD_MAIL -name “Trash” -exec rm -rf ‘{}’ \;

echo “Deleating Templates directories under $EVOLUTION_THUNDERBIRD_MAIL”
find $EVOLUTION_THUNDERBIRD_MAIL -name “Templates” -exec rm -rf ‘{}’ \;

# 4. Rename top level Thunderbird e-mail account folders so Evolution can find them.

find $EVOLUTION_THUNDERBIRD_MAIL/ -depth -mindepth 1 -maxdepth 1 -name “*” -exec mv {} {}.sbd \;

# 5. Delete existing Beagle e-mail index
echo “Deleating $HOME/.beagle/MailIndex”
rm -rf $HOME/.beagle/MailIndex

echo “”
echo “_______________________________________________________________________________”
echo “”
echo ”     copy_thunderbird Information: Finished Migration.”
echo “”
echo ”     Start Evolution and click on each new folder to create Evolution indexes.”
echo ”     Evolution will show a count of the items in the folder.  This step is”
echo ”     required for Beagle to find the data.”
echo “”
echo “_______________________________________________________________________________”
echo “”

1. cd /usr/ports/www/apache22

2. make install clean

Note: Durant le make install, il faut choisir les modules d’apache que l’on veut avoir d’installé

Getting PHP5 installed in FreeBSD 7.0

1. cd /usr/ports/lang/php5

2. make install clean

3. cd /usr/ports/lang/php5-extensions

4. make config

5. make install clean

Putting it all together

1. vi cd /usr/local/etc/apache2/httpd.conf

2. at the end of the LoadModule directive look for the first AddType section and add this to next line below the AddType section

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

3. copy /usr/local/etc/php.ini-recommended or /usr/local/etc/php.ini-dist to /usr/local/etc/php.ini

4. start apache with the following command:

/usr/local/sbin/apachectl start


Adapté de

Il faut que l’utilisateur soit dans le groupe wheel pour pouvoir utiliser su :

Editer le fichier /etc/group et ajouter l’utilisateur au groupe wheel comme suit :

Une procédure pour moi, mais au cas où cela vous serait utile, je vous la cole ici.
1. Faire un schéma de partitionnement contenant une partition /data pour nos données comme les pages web ou des VM

2. Faire l’installation minimale de FreeBSD

3. Accepter de faire l’installation des ports

4. Configurer les informations réseaux dans /etc/rc.conf :
#SINON (noter que la notation / [, par exemple] marche aussi)
ifconfig_=”ip masque”
defaultrouter=”ip passerelle”
#Si on veut des alias
ifconfig__alias0=”ip_alias0 masque_alias0″
#Si on veut ajouter des routes statiques
#Si c’est un routeur ou firewall
#Aussi pour désactiver IPv6, ce qui peux améliorer les performances systèmes :

5. Installer les services que l’on a besoin

Subscribe to RSS