Archive de la catégorie ‘Informatique’

Comment bien protéger un routeur sans-fil des intempéries ?
Voilà la réponse que m’a donné Vincent C., membre de l’Association ILArd :

« Pour ce qui est du routeur, c’est simple. Tu mets de quoi maintenir le routeur en hauteur dans une caisse trouée, pour évacuer la condensation. Tu mets l’ensemble dans un sac (à gravas, ils sont plus solides). Tu le lies bien serré au chatterton avec les câbles qui sortent par la gueule du sac en faisant un toron. Tu enfourne le tout dans le 2ème sac la ligature du premier au fond. Tu referme le 2ème sac comme le premier. Si tu fais ça bien, un typhon n’aura aucun effet. »

3
sept

Webcam Philips spc900nc

   Ecrit par : Nekrofage   in Informatique, Matériels

Problème :

$ mplayer tv:// -tv driver=v4l:device=/dev/video0:width=640:height=480
...
Unknown norm!
Error: Cannot set norm!
Selected input hasn't got a tuner!
FPS not specified in the header or invalid, use the -fps option.
No stream found.
...

Solution :

$ mplayer -fps 30 -tv driver=v4l2:width=640:height=480:device=/dev/video0 tv://

Lien :

http://www.linuxforums.org/forum/ubuntu-help/146227-solved-trying-view-my-webcam-using-mplayer.html

23
août

Return To Castle Wolfenstein

   Ecrit par : Nekrofage   in Jeux Vidéos

1) Récupére l’image .iso du jeu sur internet :

http://www.megaupload.com/?d=6WBOTQ8Y

2) Répertoire de travail :

lesanglier@station66:~$ cd JEUX
lesanglier@station66:~/JEUX$ mkdir RTCW
lesanglier@station66:~/JEUX$ cd RTCW/
lesanglier@station66:~/JEUX/RTCW$

3) Répertoire image .iso :

lesanglier@station66:~/JEUX/RTCW$ mkdir ISO
lesanglier@station66:~/JEUX/RTCW$ cd ISO/
lesanglier@station66:~/JEUX/RTCW/ISO$

4) Copier les fichiers de l’image RTCW.by.amanix.iso dans ~/JEUX/RTCW/ISO/

5) Récupérer la clé d’installation :

lesanglier@station66:~/JEUX/RTCW/ISO$ cd CRACK\ \&\ KEYGEN/KEYGEN/
lesanglier@station66:~/JEUX/RTCW/ISO/CRACK & KEYGEN/KEYGEN$ wine ./RTCW-KG.exe

6) Lancer l’installation du jeu avec Wine :

lesanglier@station66:~/JEUX/RTCW/ISO$ wine ./Setup.exe

7) Installer RTCW version Linux :

lesanglier@station66:~/JEUX/RTCW$ wget ftp://ftp.idsoftware.com/idstuff/wolf/linux/wolf-linux-1.41b.x86.run
lesanglier@station66:~/JEUX/RTCW$ sh ./wolf-linux-1.41b.x86.run
Chemin d'installation : /home/lesanglier/wolfenstein
Chemin du lien symbolique : /home/lesanglier/bin

8) Copier les .pk3 :

lesanglier@station66:~/wolfenstein/main$ cp -r /home/lesanglier/.wine/drive_c/Program\ Files/Return\ to\ Castle\ Wolfenstein/Main/* .

9) Télécharger le code source :

lesanglier@station66:~$ cd JEUX/RTCW/
lesanglier@station66:~/JEUX/RTCW$ wget ftp://ftp.idsoftware.com/idstuff/source/RTCW-SP-GPL.zip

9) Compiler :

lesanglier@station66:~/JEUX/RTCW$ unzip RTCW-SP-GPL.zip
lesanglier@station66:~/JEUX/RTCW$ cd RTCW-SP-GPL/src/unix/
lesanglier@station66:~/JEUX/RTCW/RTCW-SP-GPL/src/unix$ ./cons

10) Copier les binaires :

lesanglier@station66:~/JEUX/RTCW/RTCW-SP-GPL/src/unix$ cp -r debug-x86-Linux-2.1/out/* /home/lesanglier/wolfenstein/

11) Vérification :

lesanglier@station66:~$ cd wolfenstein/
lesanglier@station66:~/wolfenstein$ ls -l
total 5736
drwxr-xr-x 4 lesanglier lesanglier 4096 2010-08-23 21:25 cgame
-rw-r--r-- 1 lesanglier lesanglier 6189 2010-08-23 21:19 CHANGES
drwxr-xr-x 4 lesanglier lesanglier 4096 2010-08-23 21:19 Docs
drwxr-xr-x 16 lesanglier lesanglier 4096 2010-08-23 21:25 full
drwxr-xr-x 5 lesanglier lesanglier 4096 2010-08-23 21:25 game
-rw-r--r-- 1 lesanglier lesanglier 2323 2010-08-23 21:19 INSTALL
-rw-r--r-- 1 lesanglier lesanglier 15483 2010-08-23 21:19 License.txt
drwxr-xr-x 3 lesanglier lesanglier 4096 2010-08-23 21:29 main
-rwxr-xr-x 1 lesanglier lesanglier 226 2010-08-23 21:19 openurl.sh
drwxr-xr-x 3 lesanglier lesanglier 4096 2010-08-23 21:19 pb
-rw-r--r-- 1 lesanglier lesanglier 2174 2010-08-23 21:19 QUICKSTART
-rw-r--r-- 1 lesanglier lesanglier 1814 2010-08-23 21:19 RTCW-README-1.4.txt
drwxr-xr-x 4 lesanglier lesanglier 4096 2010-08-23 21:25 ui
-rwxr-xr-x 1 lesanglier lesanglier 208 2010-08-23 21:19 wolf
-rwxr-xr-x 1 lesanglier lesanglier 211 2010-08-23 21:19 wolfded
-rwxr-xr-x 1 lesanglier lesanglier 719940 2010-08-23 21:19 wolfded.x86
-rwxr-xr-x 1 lesanglier lesanglier 208 2010-08-23 21:19 wolfmp
-rw-r--r-- 1 lesanglier lesanglier 1309 2010-08-23 21:19 WolfMP.xpm
-rwxr-xr-x 1 lesanglier lesanglier 210 2010-08-23 21:19 wolfsp
-rwxr-xr-x 1 lesanglier lesanglier 3529849 2010-08-23 21:29 wolfsp.x86 <-- Le binaire compilé
-rw-r--r-- 1 lesanglier lesanglier 17425 2010-08-23 21:19 WolfSP.xpm
-rwxr-xr-x 1 lesanglier lesanglier 1496148 2010-08-23 21:19 wolf.x86
lesanglier@station66:~/wolfenstein$

12) Lancement :

lesanglier@station66:~/wolfenstein$ ./wolfsp


13) Fichiers de configurations :

config.tar

14) Activer le mode "fenêtrer" :


lesanglier@station66:~/JEUX/RTCW$ cp wolfconfig.cfg /home/lesanglier/wolfenstein/main/

15) Activer la vue "à la troisième personne" :


lesanglier@station66:~/JEUX/RTCW$ cp thirdperson.cfg /home/lesanglier/wolfenstein/main/

Dans le jeu, activer la console : [2 ]
Exécuter le fichier "thirdperson" : \exec thirdperson.cfg

7
août

Emerald viewer 1.4.0

   Ecrit par : Nekrofage   in OpenSim

Erreur :

nekrofage@reseau66:~/ATRIER1/EmeraldViewer-i686-1.4.0.0$ ./snowglobe
bash: ./snowglobe : /bin/bash^M : mauvais interpréteur: Aucun fichier ou dossier de ce type

Solution :

nekrofage@reseau66:~/ATRIER1/EmeraldViewer-i686-1.4.0.0$ sudo apt-get install tofrodos
nekrofage@reseau66:~/ATRIER1/EmeraldViewer-i686-1.4.0.0$ dos2unix ./snowglobe
nekrofage@reseau66:~/ATRIER1/EmeraldViewer-i686-1.4.0.0$ dos2unix fetch_bins.sh
nekrofage@reseau66:~/ATRIER1/EmeraldViewer-i686-1.4.0.0$ dos2unix launch_url.sh
nekrofage@reseau66:~/ATRIER1/EmeraldViewer-i686-1.4.0.0$ dos2unix handle_secondlifeprotocol.sh
nekrofage@reseau66:~/ATRIER1/EmeraldViewer-i686-1.4.0.0$ dos2unix ./register_secondlifeprotocol.sh

nekrofage@reseau66:~/ATRIER1/EmeraldViewer-i686-1.4.0.0$ chmod 777 ./fetch_bins.sh
nekrofage@reseau66:~/ATRIER1/EmeraldViewer-i686-1.4.0.0$ chmod 777 ./handle_secondlifeprotocol.sh
nekrofage@reseau66:~/ATRIER1/EmeraldViewer-i686-1.4.0.0$ chmod 777 ./launch_url.sh
nekrofage@reseau66:~/ATRIER1/EmeraldViewer-i686-1.4.0.0$ chmod 777 ./snowglobe
nekrofage@reseau66:~/ATRIER1/EmeraldViewer-i686-1.4.0.0$ chmod 777./register_secondlifeprotocol.sh

nekrofage@reseau66:~/ATRIER1/EmeraldViewer-i686-1.4.0.0$ ./snowglobe

1
août

Sleep is Death

   Ecrit par : Nekrofage   in Jeux Vidéos

1) Activer le mode fenêtré :

Ouvrir :

SleepIsDeath_v15b_UnixSource/settings/fullscreen.ini

Chercher :

1

Remplacer par :

0

2) Activer l’interface en français :

- Télécharger : http://sidtube.com/media/uploads/resources/331-numidark-french-translation-for-tradu.pak

- Renommer 331-numidark-french-translation-for-tradu.pak en 331-numidark-french-translation-for-tradu.zip
$ mv 331-numidark-french-translation-for-tradu.pak en 331-numidark-french-translation-for-tradu.zip

- Décompresser :
$ cp 331-numidark-french-translation-for-tradu.pak ./SleepIsDeath_v15b_UnixSource
$ cd SleepIsDeath_v15b_UnixSource
$ unzip 331-numidark-french-translation-for-tradu.zip

2) « Joueur » et « Controlleur » héberger sur le même ordinateur :

« Joueur » et « Controlleur » sont dans 2 répertoire différents.

15
juil

Pour Wordpress, activation du permalink

   Ecrit par : Nekrofage   in Logiciels, Ma vie, mon oeuvre

Cas :

Pour Wordpress, avoir des urls du style :

http://ardenne-informatique.com/~nekrofage/journal/2010/01/24/prochains-concerts/
                                                     |   |  |       |
                                                    Année|  |       |
                                                         |  |       |
                                                       Mois |       |
                                                           Jour     |
                                                                 Titre du billet

- Sous Wordpress, activer le « Permalinks » :
- Sous Apache2, activer le « mod_rewrite » :

root@ardenne-informatique.com:~# a2enmod rewrite
Module rewrite installed; run /etc/init.d/apache2 force-reload to enable.
root@ardenne-informatique.com:~# /etc/init.d/apache2 force-reload
Forcing reload of web server: Apache2.

3
juil

Modification du code source de PrBoom pour Archos 7 HT

   Ecrit par : Nekrofage   in Android, Doom

1) Modification du code source de Doom pour Archos 7 HT :

Ouvrir :

/Doom/src/org/doom/DoomClient.java

Chercher :

if (mOrientation == 0 ) {
if ( mMultiPlayer)
argv = new String[]{"doom" , "-width", "320", "-height", "480", "-iwad", wad , "-net", mServerPort};
else
argv = new String[]{"doom" , "-width", "320", "-height", "480", "-iwad", wad};
}
else {
if ( mMultiPlayer)
argv = new String[]{"doom" , "-width", "480", "-height", "320", "-iwad", wad, "-net", mServerPort};
else
argv = new String[]{"doom" , "-width", "480", "-height", "320", "-iwad", wad};
}

Remplacer par :

if (mOrientation == 0 ) {
if ( mMultiPlayer)
argv = new String[]{« doom » , « -width », « 320″, « -height », « 480″, « -iwad », wad , « -net », mServerPort};
else
argv = new String[]{« doom » , « -width », « 320″, « -height », « 480″, « -iwad », wad, « -warp », « 1 1″};
}
else {
if ( mMultiPlayer)
argv = new String[]{« doom » , « -width », « 640″, « -height », « 320″, « -iwad », wad, « -net », mServerPort};
else
argv = new String[]{« doom » , « -width », « 640″, « -height », « 320″, « -iwad », wad, « -warp », « 1 1″};
}

Ouvrir :

/Doom/native/prboom/d_main.c

Chercher :

if ((p = M_CheckParm ("-warp")) || // killough 5/2/98
(p = M_CheckParm ("-wart")))
// Ty 08/29/98 - moved this check later so we can have -warp alone: && p < myargc-1)

Ajouter avant :

startmap = 0; // Ty 08/29/98 - allow "-warp x" to go to first map in wad(s)
autostart = true; // Ty 08/29/98 - move outside the decision tree

Ouvrir :

/Doom/project/jni/d_main.c

Chercher :

if ((p = M_CheckParm ("-warp")) || // killough 5/2/98
(p = M_CheckParm ("-wart")))
// Ty 08/29/98 - moved this check later so we can have -warp alone: && p < myargc-1)

Ajouter avant :

startmap = 0; // Ty 08/29/98 - allow "-warp x" to go to first map in wad(s)
autostart = true; // Ty 08/29/98 - move outside the decision tree

Action :

PATH=${PATH}:/home/nekrofage/ANDROID/android-sdk-linux_86/tools
~/ANDROID/android-ndk-1.6_r1$ make APP=Doom

Vérifier :

~/ANDROID/android-ndk-1.6_r1/apps/Doom/project/libs/armeabi/libdoom.so

Eclipse :

Compiler

2) Cette modification permet le lancement du premier niveau de Doom 1

3) Trucs et astuces :

Choisir la méthode de navigation par "Touch Screen"
Pour tirer, taper sur n'importe quelle surface de la tablette sauf celle des commandes.

4) Téléchargement :

http://ardenne-informatique.com/~nekrofage/archos7ht/Doom.apk

23
juin

Deliantra

   Ecrit par : Nekrofage   in Deliantra

I) Serveur Deliantra :

Distribution : Debian 5.0 Lenny

1) Paquetages :

geidiprime:~# apt-get install gperf optipng pngnq pngquant
geidiprime:~# apt-get install libdb4.8-dev

2) Répertoire de travail :

util01@geidiprime:~$ cd JEUX
util01@geidiprime:~/JEUX$ mkdir DELIANTRA
util01@geidiprime:~/JEUX$ cd DELIANTRA/
util01@geidiprime:~/JEUX/DELIANTRA$ mkdir Perl
util01@geidiprime:~/JEUX/DELIANTRA$ cd Perl/

3) Téléchargement :

util01@geidiprime:~/JEUX/DELIANTRA/Perl$ wget http://downloads.activestate.com/ActivePerl/releases/5.12.1.1201/ActivePerl-5.12.1.1201-i686-linux-glibc-2.3.2-292674.deb
util01@geidiprime:~/JEUX/DELIANTRA/Perl$ cd ..
util01@geidiprime:~/JEUX/DELIANTRA$ wget http://dist.schmorp.de/deliantra/deliantra-server-3.0.tar.bz2
util01@geidiprime:~/JEUX/DELIANTRA$ wget http://dist.schmorp.de/deliantra/deliantra-maps-3.0.tar.bz2
util01@geidiprime:~/JEUX/DELIANTRA$ wget http://dist.schmorp.de/deliantra/deliantra-arch-3.0.tar.bz2

4) Installatin de Perl :

geidiprime:~# cd /home/util01/JEUX/DELIANTRA/Perl/
geidiprime:/home/util01/JEUX/DELIANTRA/Perl# dpkg -i ActivePerl-5.12.1.1201-i686-linux-glibc-2.3.2-292674.deb
geidiprime:/home/util01/JEUX/DELIANTRA/Perl# export PATH=/opt/ActivePerl-5.12/bin:$PATH
geidiprime:/home/util01/JEUX/DELIANTRA/Perl# perl -v

This is perl 5, version 12, subversion 1 (v5.12.1) built for i686-linux-thread-multi
(with 3 registered patches, see perl -V for more detail)
...
geidiprime:/home/util01/JEUX/DELIANTRA/Perl#

5) Compilation des modules :

util01@geidiprime:~/JEUX/DELIANTRA$ mkdir Modules
util01@geidiprime:~/JEUX/DELIANTRA$ cd Modules/
geidiprime:/home/util01/JEUX/DELIANTRA/Modules# export PATH=/opt/ActivePerl-5.12/bin:$PATH
geidiprime:/home/util01/JEUX/DELIANTRA/Modules# wget
geidiprime:/home/util01/JEUX/DELIANTRA/Modules# tar xvfz
geidiprime:/home/util01/JEUX/DELIANTRA/Modules# cd
geidiprime:/home/util01/JEUX/DELIANTRA/Modules/# perl Makefile.PL && make && make install
geidiprime:/home/util01/JEUX/DELIANTRA/Modules/# cd ..

Listes des modules à télécharger :

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/common-sense-3.2.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/IO-AIO-3.65.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-5.271.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-AIO-1.1.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/BDB-1.88.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-BDB-1.1.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Compress-LZF-3.43.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Guard-1.021.tar.gz

http://search.cpan.org/CPAN/authors/id/J/JP/JPRIT/Event-1.13.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/EV-3.9.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Coro-5.23.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/JSON-XS-2.29.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Deliantra-1.30.tar.gz

http://search.cpan.org/CPAN/authors/id/E/EL/ELMEX/Object-Event-1.21.tar.gz

http://search.cpan.org/CPAN/authors/id/E/EL/ELMEX/AnyEvent-IRC-0.95.tar.gz

http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/File-Slurp-9999.13.tar.gz

http://search.cpan.org/CPAN/authors/id/A/AN/ANDREWF/Pod-POM-0.27.tar.gz

http://search.cpan.org/CPAN/authors/id/E/EL/ELMEX/Object-Event-1.21.tar.gz

Exception :

http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/Safe-Hole-0.13.tar.gz
geidiprime:/home/util01/JEUX/DELIANTRA/Modules# tar xvfz Safe-Hole-0.13.tar.gz
geidiprime:/home/util01/JEUX/DELIANTRA/Modules# cd Safe-Hole-0.13
geidiprime:/home/util01/JEUX/DELIANTRA/Modules/Safe-Hole-0.13# perl Build.PL
geidiprime:/home/util01/JEUX/DELIANTRA/Modules/Safe-Hole-0.13# ./Build
geidiprime:/home/util01/JEUX/DELIANTRA/Modules/Safe-Hole-0.13# ./Build install

6) Compilation du serveur :

util01@geidiprime:~/JEUX/DELIANTRA/Perl$ cd ..
util01@geidiprime:~/JEUX/DELIANTRA$ tar xvfj deliantra-server-3.0.tar.bz2
util01@geidiprime:~/JEUX/DELIANTRA$ cd deliantra-server-3.0/
util01@geidiprime:~/JEUX/DELIANTRA/deliantra-server-3.0$ ./configure --prefix=/home/util01/Jeux/Deliantra/Serveur
util01@geidiprime:~/JEUX/DELIANTRA/deliantra-server-3.0$ make
util01@geidiprime:~/JEUX/DELIANTRA/deliantra-server-3.0$ make install
util01@geidiprime:~/JEUX/DELIANTRA/deliantra-server-3.0$ cd ~/Jeux/Deliantra/Serveur/bin
util01@geidiprime:~/Jeux/Deliantra/Serveur/bin$ cp ~/JEUX/DELIANTRA/deliantra-maps-3.0.tar.bz2 .
util01@geidiprime:~/Jeux/Deliantra/Serveur/bin$ cp ~/JEUX/DELIANTRA/deliantra-arch-3.0.tar.bz2 .
util01@geidiprime:~/Jeux/Deliantra/Serveur/bin$ tar xvfj deliantra-arch-3.0.tar.bz2
util01@geidiprime:~/Jeux/Deliantra/Serveur/bin$ tar xvfj deliantra-maps-3.0.tar.bz2
util01@geidiprime:~/Jeux/Deliantra/Serveur/bin$ ./cfutil --install-maps deliantra-maps-3.0 --install-arch deliantra-arch-3.0

7) Lancement du serveur :

util01@geidiprime:~/Jeux/Deliantra/Serveur/bin$ ./deliantra-server

II) Client Deliantra :

Distribution : Kubuntu 9.10

1) Installation de Perl :

nekrofage@reseau66:~/JEUX/DELIANTRA$ mkdir Perl
nekrofage@reseau66:~/JEUX/DELIANTRA$ cd Perl/
nekrofage@reseau66:~/JEUX/DELIANTRA/Perl$ wget http://downloads.activestate.com/ActivePerl/releases/5.12.1.1201/ActivePerl-5.12.1.1201-i686-linux-glibc-2.3.2-292674.deb
nekrofage@reseau66:~/JEUX/DELIANTRA/Perl$ sudo dpkg -i ActivePerl-5.12.1.1201-i686-linux-glibc-2.3.2-292674.deb
nekrofage@reseau66:~/JEUX/DELIANTRA/Perl$ export PATH=/opt/ActivePerl-5.12/bin:$PATH
nekrofage@reseau66:~/JEUX/DELIANTRA/Perl$ perl -v

2) Installation des modules :

nekrofage@reseau66:~/JEUX/DELIANTRA$ mkdir Modules
nekrofage@reseau66:~/JEUX/DELIANTRA$ cd Modules/

Exception :

nekrofage@reseau66:~/JEUX/DELIANTRA/Modules$ wget http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/Safe-Hole-0.13.tar.gz
nekrofage@reseau66:~/JEUX/DELIANTRA/Modules$ tar xvfz Safe-Hole-0.13.tar.gz
nekrofage@reseau66:~/JEUX/DELIANTRA/Modules$ cd Safe-Hole-0.13
nekrofage@reseau66:~/JEUX/DELIANTRA/Modules/Safe-Hole-0.13$ perl Build.PL
nekrofage@reseau66:~/JEUX/DELIANTRA/Modules/Safe-Hole-0.13$ ./Build
nekrofage@reseau66:~/JEUX/DELIANTRA/Modules/Safe-Hole-0.13$ sudo ./Build install

Ouvrir :

modules_a_telecharger.txt

Ajouter :

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/common-sense-3.2.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/IO-AIO-3.65.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-5.271.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-AIO-1.1.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/BDB-1.88.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-BDB-1.1.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Compress-LZF-3.43.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Guard-1.021.tar.gz

http://search.cpan.org/CPAN/authors/id/J/JP/JPRIT/Event-1.13.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/EV-3.9.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Coro-5.23.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/JSON-XS-2.29.tar.gz

http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Deliantra-1.30.tar.gz

http://search.cpan.org/CPAN/authors/id/E/EL/ELMEX/AnyEvent-IRC-0.95.tar.gz

http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/File-Slurp-9999.13.tar.gz

http://search.cpan.org/CPAN/authors/id/A/AN/ANDREWF/Pod-POM-0.27.tar.gz


Ouvrir :

telecharger_modules.sh

Ajouter :

#!/bin/bash

for ligne in $(cat modules.txt)
do
wget $ligne
done

Action :

$ chmod 777 telecharger_modules.sh
$ ./telecharger_modules.sh

Ouvrir :

modules.txt

Ajouter :

common-sense-3.2.tar.gz
IO-AIO-3.65.tar.gz
AnyEvent-5.271.tar.gz
AnyEvent-AIO-1.1.tar.gz
BDB-1.88.tar.gz
AnyEvent-BDB-1.1.tar.gz
Compress-LZF-3.43.tar.gz
Guard-1.021.tar.gz
Event-1.13.tar.gz
EV-3.9.tar.gz
Coro-5.23.tar.gz
JSON-XS-2.29.tar.gz
Deliantra-1.30.tar.gz
AnyEvent-IRC-0.95.tar.gz
File-Slurp-9999.13.tar.gz
Pod-POM-0.27.tar.gz

Ouvrir :

installer_module.sh

Ajouter :

#!/bin/bash

repertoire=`basename $1 .tar.gz`
tar xvfz $1
cd $repertoire
perl Makefile.PL
make
sudo make install
cd ..

Ouvrir :

traiter_modules.sh

Ajouter :

#!/bin/bash

for ligne in $(cat modules.txt)
do
./installer_module.sh $ligne
done

Action :

$ chmod 777 installer_modules.sh
$ chmod 777 traiter_modules.sh
$ ./traiter_modules.sh

3) Répertoire de travail :

nekrofage@reseau66:~$ cd JEUX/
nekrofage@reseau66:~/JEUX$ mkdir DELIANTRA
nekrofage@reseau66:~/JEUX$ cd DELIANTRA
nekrofage@reseau66:~/JEUX/DELIANTRA$ export PATH=/opt/ActivePerl-5.12/bin:$PATH
nekrofage@reseau66:~/JEUX/DELIANTRA$ mkdir Client
nekrofage@reseau66:~/JEUX/DELIANTRA$ cd Client/

4) Téléchargement :

nekrofage@reseau66:~/JEUX/DELIANTRA/Client$ wget http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Deliantra-Client-2.11.tar.gz
nekrofage@reseau66:~/JEUX/DELIANTRA/Client$ tar xvfz Deliantra-Client-2.11.tar.gz

5) Compilation :

nekrofage@reseau66:~/JEUX/DELIANTRA/Client$ cd Deliantra-Client-2.11/
nekrofage@reseau66:~/JEUX/DELIANTRA/Client/Deliantra-Client-2.11$ perl Makefile.PL
nekrofage@reseau66:~/JEUX/DELIANTRA/Client/Deliantra-Client-2.11$ make
nekrofage@reseau66:~/JEUX/DELIANTRA/Client/Deliantra-Client-2.11$ sudo make install

6) Lancement :

nekrofage@reseau66:~/JEUX/DELIANTRA/Client/Deliantra-Client-2.11$ cd /opt/ActivePerl-5.12/site/bin/
nekrofage@reseau66:/opt/ActivePerl-5.12/site/bin$ ./deliantra

III) Editeur :

1) Répertoire de travail :

nekrofage@reseau66:~$ cd JEUX/DELIANTRA
nekrofage@reseau66:~/JEUX/DELIANTRA$ mkdir Editeur
nekrofage@reseau66:~/JEUX/DELIANTRA$ cd Editeur/
nekrofage@reseau66:~/JEUX/DELIANTRA/Editeur$ export PATH=/opt/ActivePerl-5.12/bin:$PATH

2) Modules :

http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/ExtUtils-Depends-0.302.tar.gz

http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/ExtUtils-PkgConfig-1.12.tar.gz

http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/Glib-1.223.tar.gz

http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/Cairo-1.061.tar.gz

http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/Pango-1.221.tar.gz

http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/Gtk2-1.222.tar.gz

http://search.cpan.org/CPAN/authors/id/E/EL/ELMEX/AnyEvent-EditText-0.2.tar.gz

3) Installation des modules

/home/util01/JEUX/DELIANTRA/Modules# export PATH=/opt/ActivePerl-5.12/bin:$PATH
/home/util01/JEUX/DELIANTRA/Modules# wget
/home/util01/JEUX/DELIANTRA/Modules# tar xvfz
/home/util01/JEUX/DELIANTRA/Modules# cd
/home/util01/JEUX/DELIANTRA/Modules/# perl Makefile.PL && make && make install
/home/util01/JEUX/DELIANTRA/Modules/# cd ..

4) Téléchargement de l’éditeur :

nekrofage@reseau66:~/JEUX/DELIANTRA/Editeur$ wget http://cvs.schmorp.de/deliantra/gde.tar.gz?view=tar
nekrofage@reseau66:~/JEUX/DELIANTRA/Editeur$ mv gde.tar.gz\?view\=tar gde.tar.gz
nekrofage@reseau66:~/JEUX/DELIANTRA/Editeur$ tar xvfz gde.tar.gz
nekrofage@reseau66:~/JEUX/DELIANTRA/Editeur$ cd gde/
nekrofage@reseau66:~/JEUX/DELIANTRA/Editeur/gde$ perl Makefile.PL && make && sudo make install

5) Lancement :

nekrofage@reseau66:~/JEUX/DELIANTRA/Editeur/gde$ cd /opt/ActivePerl-5.12/site/bin/
nekrofage@reseau66:/opt/ActivePerl-5.12/site/bin$ export DELIANTRA_LIBDIR=/home/nekrofage/Jeux/Deliantra/Serveur/share/deliantra-server/
nekrofage@reseau66:/opt/ActivePerl-5.12/site/bin$ ./gde

20
juin

Compilation « Battle of Wesnoth » version 1.8.2

   Ecrit par : Nekrofage   in Jeux Vidéos, Wesnoth

Compilation « Battle of Wesnoth » version 1.8.2

Erreur :
g++ -o build/release/game.o -c -std=c++98 -W -Wall -O2 -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_LIBDBUS -DHAVE_CONFIG_H -D_X11 -DDISABLE_POOL_ALLOC -I/usr/include -I/usr/include/SDL -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/lua5.1 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/fribidi -I. -Isrc src/game.cpp
In file included from src/wesconfig.h:14,
from src/game.cpp:91:
/usr/include/config.h:9:24: error: vpx_config.h: Aucun fichier ou dossier de ce type

Solution :

$ git clone git://review.webmproject.org/libvpx.git
$ cd libvpx
$ ./configure
$ make
# /sbin/ldconfig
# cp vpx_config /usr/local/include/vpx/

Ouvrir :

/usr/include/config.h

Chercher :

#include "vpx_config.h"

Remplacer par :

#include "/usr/local/include/vpx/vpx_config.h"

14
juin

Installation de Rails 3 « from scratch »

   Ecrit par : Nekrofage   in Ruby

Installation de Rails 3 « from scratch »

/!\ A faire avec précautions /!\

1) Supprimer tous les gems :

# gem list | cut -d" " -f1 | xargs gem uninstall -aIx

Lien :

http://geekystuff.net/2009/1/14/remove-all-ruby-gems

2) Lister les gems :

# gem list

3) Installer Rails 3

# gem install rails --pre

4) Installer Bundler

# bundle install

 Page 1 of 26  1  2  3  4  5 » ...  Last »