Archive for the 'Informatique' Category

Source :



 wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie"


 wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie"

RPM using curl:

 curl -v -j -k -L -H "Cookie: oraclelicense=accept-securebackup-cookie" > jdk-8u45-linux-x64.rpm
  • -j -> junk cookies
  • -k -> ignore certificates
  • -L -> follow redirects
  • -H [arg] -> headers

curl can be used in place of wget.

UPDATED ANSWER ON 6th September 2014 (JDK 7u67)

I am updating this answer to take into account the fact that Oracle has changed their cookie policy. Thanks to Det for pointing out a simpler method than what I had originally specified.

wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie"

Once again, make sure you specify the correct URL for the version you are downloading. You can find the URL here: Oracle JDK download site


If you are looking to download the Oracle JDK from the command line using wget, there is a workaround. Run the wget command as follows:

wget --no-cookies --header "Cookie:" ""

Be sure to replace the download link with the correct one for the version you are downloading.

Regarder ce site :

To use this repository we need to add following lines to /etc/apt/sources.list file:

deb unstable main non-free
deb-src unstable main

we also need to get and install the package key from oracle web site
apt-key add RPM-GPG-KEY-oracle
 Next, you need to update your package files (as root)# apt-get update

Reading Package Lists… Done


 Now, you able to install your new Oracle XE! Just run following commands as a root user and answer for some questions about admin passwords and Oracle starting at boot:# apt-get install oracle-xe-universal

(Reading database … 62016 files and directories currently installed.)
Unpacking oracle-xe (from oracle-xe_10.2.0.1-0.060128_i386.deb) …
Setting up oracle-xe ( …
Oracle Database 10g Express Edition is not configured. You must run
‘/etc/init.d/oracle-xe configure’ as the root user to configure the database.
Executing Post-install steps…
You must run ‘/etc/init.d/oracle-xe configure’ as the root user to configure the database

# /etc/init.d/oracle-xe configure

Specify the HTTP port that will be used for Oracle Application Express [8080]:

Specify a port that will be used for the database listener [1521]:

Specify a password to be used for database accounts. Note that the same
password will be used for SYS and SYSTEM. Oracle recommends the use of
different passwords for each database account. This can be done after
initial configuration:

Confirm the password: (* make sure you remember this password *)

Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]: y

Starting Oracle Net Listener…Done
Configuring Database…Done
Starting Oracle Database 10g Express Edition Instance…Done
Installation Completed Successfully.
To access the Database Home Page go to “”
Now you have installed Oracle Express Edition on your Debian Etch server.
Disabling/enabling the Oracle XE Service
Your Debian based system should meet the minimum requirements for swap space, otherwise installation would fail.
Based on the amount of physical memory available on the system, Oracle Database 10g Express Edition requires 1006 MB of swap space (YMMV). In order to overcome this issue you can always extend your partitions with Knoppix or Gparted.
The alternative solution, avoiding a reboot, would be:

# dd if=/dev/zero of=/myswapfile bs=1M count=1000
# mkswap /myswapfile
# swapon /myswapfile

You can always disable Oracle XE startup in boot time with (no update-rc.d method here):
# chmod -x /etc/init.d/oracle-xe

The alernative way to the same is to edit /etc/default/oracle-xe and change:

Web console management
If you have installed OracleXE? database on remote *nix server, you can easily setup a SSH tunnel in order to gain access to a web administration console (since web console is bound to loopback device and therefore unavailable outside to the network):
# ssh oracle-xe-server -L 8081:localhost:8080
While keeping this proces running (or keep it on background via screen or nohup), you may now login to Oracle XE web administrations console on your local computer: http://localhost:8081/apex/
Please notice that your ssh daemon on your local computer should allow TCP forwarding. (ie. “AllowTcpForwarding? yes” should be present in “/etc/sshd/sshd_config”.)
SQL Remote connection management
By default OracleXe? installation does not allow SQL network connections to your XE database. To enable remote connections, logon to web management console and enable “Remote connections”: “Administration->enable Available from local server and remote clients”-> press “Apply Changes”. The same procedure can also be done from the commandline:

# sqlplus -S system/[email protected]//localhost/XE < @this_script.sql SQL> exit;

Alternatively use the web managment console to add new Oracle XE users accordingly.
Deleting users
For deleting an SQL user from OracleXE? use the web management console, or execute following commands from the commandline:
# su – oracle
[email protected]:~$ sqlplus / as sys
SQL> drop user myuser cascade;
< < ClockProblemOnVM | Linux | >>

Comme le reste de mes posts, voici des notes pour moi, mais qui peuvent être utile à d’autre pour faire reverse proxy avec IIS vers un lamp pour un sous répertoire du site web.

Full Story »

Testé avec find (GNU findutils) 4.4.2 .

Trouver les fichiers dans <répertoire_où_sont_les_fichiers>  avec une date de modifications plus récente qu’une date spécifique Full Story »

Grâce à cette merveilleuse fonctionnalité, j’ai réussis à sauver ceci sur un disque servant à stocker des sauvegardes effectuer avec Veeam pour des machines virtuelles VMWare :

Full Story »

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

In Java, Mac OSx
4Sep 08

Salut, j’ai trouvé cette procédure pour installer un JDK 1.6 sous Mac OSX :

Voici un copié-collé d’une procédure de compilation/configuration/installation d’Apache 2.2 en concert avec Tomcat 5.5 que j’ai à utilisé de temps en temps dans mon travail. Si ça peux vous être utile.

Si vous êtes l’auteur de cette procédure n’hésitez pas à me le dire pour que je vous cite, j’ai oublié d’où provient ces informations. (If you are this procedure’s author, please do not hesitate to tell me so I can quote you).
Here is what you need to do to have a running webserver using Apache and Tomcat:
If you’ve already installed required packages and are ready to install Apache and Tomcat, go to STEP1?. If you are starting after installing the OS and you still have no packages installed at all, you might want to use apt-get install to get the following packages:
bison,flex,g++,make (If you’re going to be building anything from source, these will help)
bzip2,unzip (Useful for compressing/uncompressing archives)
dnsutils (DNS utilities including nslookup)
lynx (Text Based Browser – useful for testing your websites if you need to)
nmap,tcpdump,tethereal,traceroute (More advanced layer 1-3 troubleshooting utilities)
ntpdate (Make sure you install this so all your machines have the same system time)
libssl-dev,openssl (Necessary if you’re installing apache with SSL)
vim (Better text editor, after you install this, make sure you edit /etc/vim/vimrc and uncomment the line that says syntax=on)

First, install this:

apt-get install ssh vim ntpdate
Here is what the line that you would type to get all of this on a new server.

apt-get install bison bzip2 dnsutils flex g++ libssl-dev lynx make nmap openssl tcpdump tethereal traceroute unzip

STEP1 – downloads
Downloading Java, Apache2.2, Tomcat 5.5
go to /usr/src on your machine and run wget on the following files. (you can use “copy link location” in Firefox on the links that say “This is the latest version […]” then paste the links in your console)
Java 1.4.2_11 from Get the J2SDK non-rpm linux installer.
Another alternative is to copy the file from zeus:

scp [email protected]:/usr/src/j2sdk-1_4_2_11-linux-i586.bin /usr/src

Latest Apache2 from Get the tar of the source. This is the latest version (2.2.0) on 20060403
Latest Tomcat 5.5.16 from Get the tar of the binary. This is the latest version (5.5.16) on 20060403
STEP 2 – installation
Installing everything you downloaded above
installing Apache
Go to /usr/src/ and untar the apache archive (use tar -xvf and add either z for gunzip or j for bzip2) go into the apache installation directory (usually this is /usr/src/httpd-2.2.0) and do the following:

./configure –prefix=/usr/local/apache-2.2.0 –enable-ssl –enable-cgi –enable-so –enable-rewrite –enable-proxy –enable-proxy-ajp

If you want to know what the options do, run ./configure –help Also, please make sure that the prefix fits your version of apache and that you are NOT overwriting anything. Finally, make sure that the configure command completed successfully and that you are not lacking any libraries (see above for libraries you might need).
Now type:

make install

Now, go to /usr/local/ and make a Symbolic Link on the new apache install called apache:

ln -s apache-2.2.0 apache

installing Tomcat
Go to /usr/local/ and untar the tomcat installer:

tar -zxvf /usr/src/jakarta-tomcat-5.5.16.tar.gz

This will create a new directory called jakarta-tomcat-5.5.16 in /usr/local/. You want to make a Symbolic Link to that directory called tomcat (look at the example in step a to see how to create a symlink)
You also need to edit /usr/local/tomcat/bin/ to include the following:

JAVA_OPTS=”-server -Xmx200m -Dfile.encoding=ISO8859-1″
export LD_ASSUME_KERNEL=2.4.1

It is sometimes necessary to add but you should be sure you need it! Don’t add this unless you are sure you have to.
installing Java
Go to /usr/src/ and make the installer executable:

chmod +x j2sdk-1_4_2_11-linux-i586.bin

Now go to /usr/local/ and run the executable by typing the following (don’t change directories!):


This will create a new directory called j2sdk1.4.2_11 in /usr/local/.
You want to make a symlink to that directory called java
Don’t forget to add startup scripts or links in /etc/init.d/ to make sure the applications start when the machine starts.
Et voilà! You are now done installing Apache and Tomcat! All you have to do at this point is add the configuration for the sites in /usr/local/apache/conf/httpd.conf and /usr/local/tomcat/conf/server.xml

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

Langue, JEE5, EJB3

Posted by niu789
In Java, JEE
16Aug 07

Bon, finalement, j’ai décidé de n’écrire qu’en Français (ou du moins le franglais avec plein de fautes) sur mon blog. En effet, je me dis que puisque que j’ai une si belle langue, autant en profiter.

Bon pour revenir au sujet qui nous intéresse, c’est-à-dire l’informatique.

Durant mes vacances d’été, je suis en train d’apprendre la platefore JEE5 (Java Enterprise Edition 5) avec les EJB3, JSF, Web Services, et JMS grâce à un merveilleux livre que j’ai découvert. Ce merveilleux livre est Java EE 5 d’Antonio Concalves dans la collection les Cahiers du Programmeurs des éditions Eyrolles. Cet excellent livre alterne entre les passages nous montrant la théories et les passages plus pratique où du code fonctionnel est implémenté. En effet, vous suivrez le développement de commerce électronique tout au long du livre.

Pour plus d’informations concernant le livre, je vous suggère d’allé consulter le site de l’auteur :

Un lien vers la solution temporaire :

Just a little note for those like me that need some time to boot cds on old computers.

If the bios is incompatible, you just have to use a floppy and write on it Smart Boot Manager.

How to do that :

On windows :
1. Download rawrite freely from
2. Download smb.bin from or
3. Use rawrite to write smb.bin on a floppy.4. Et voilà, you have a boot disk that will give you the possibility to choose the cdrom as start disk.
On linux :

Full Story »

Subscribe to RSS