omi

Membres
  • Compteur de contenus

    15
  • Inscription

  • Dernière visite

Tout ce qui a été posté par omi

  1. Voici mon adaptation du tuto du site Phoenixlabs pour debian. http://forums.phoenixlabs.org/t7270-p-peer...ate-script.html ------------------------------------------------------------------ Télécharger le peerguardnfxxx.deb (PeerGuardian) http://sourceforge.net/projects/peerguardian/ Installer le deb: dpkg -i peerguardnf-1.5beta.i386.deb Creer le répertoire où le script va copier le fichier Blocklist: mkdir /etc/peerguardian Crèer un script peerguardian.sh avec ce code: # version for bluetack.co.uk lists! #!/bin/sh # Update new blocklists and start/stop/restart PeerGuardian # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # testdescription # #CONFIGURATION # Make sure PG_ETC points to the directory where # you want to put your downloaded blocklists. PG_ETC=/etc/peerguardian/ # Remove the lists you don't want to download and # use from BLOCKLISTS. BLOCKLISTS="level1" PG_CONF=/etc/PG.conf PG_LOG=/var/log/PG.log PG_LIST=/etc/p2p.p2b.p2p #The URL where the blocklists reside URL=http://www.bluetack.co.uk/config #The format of the lists to download SUFFIX=gz #The format after unpacking SUFFIX2=txt endscript () { date +"------------ "%F" "%X" "%Z" End PeerGuardian Script" exit $1 } date +"------------ "%F" "%X" "%Z" Begin PeerGuardian $1" case "$1" in 'start') cd "$PG_ETC" # check if blockfiles were updated: UPDATED="" for i in $BLOCKLISTS ; do TIMESTAMP=0 if [ -e $i.$SUFFIX ] ; then TIMESTAMP=`stat --format=%y $i.$SUFFIX` echo "File $i.$SUFFIX last updated $TIMESTAMP" TIMESTAMP=`stat --format=%Y $i.$SUFFIX` fi wget -N $URL/$i.$SUFFIX if [ `stat --format=%Y $i.$SUFFIX` -gt $TIMESTAMP ] ; then UPDATED=$i fi done # if none of the blockfiles were updated: if [ -z $UPDATED ] ; then echo "No blocklists needed updating." echo "Starting PeerGuardian" mv $PG_LOG $PG_LOG.backup peerguardnf -h -m -d -c "$PG_CONF" -l "$PG_LOG" endscript 0 fi # if any blockfiles were updated: for i in $BLOCKLISTS ; do gunzip -c $i.$SUFFIX > $i.$SUFFIX2 BLOCKLISTSCAT="$BLOCKLISTSCAT $i.$SUFFIX2" done cat $BLOCKLISTSCAT | peerguardnf -f merged.p2b.p2p for i in $BLOCKLISTS ; do rm $i.$SUFFIX2 done # uncomment below to unblock Yahoo! Mail and whatever # else needs unblocking here. Do this also in the # restart section. grep -v -i "yahoo\!" merged.p2b.p2p | grep -v -i "Microsoft" | grep -v "Google" > merged.p2b.p2p.tmp mv merged.p2b.p2p.tmp merged.p2b.p2p mv $PG_LIST $PG_LIST.backup mv merged.p2b.p2p $PG_LIST mv $PG_LOG $PG_LOG.backup echo "Starting PeerGuardian" peerguardnf -h -m -d -c "$PG_CONF" -l "$PG_LOG" endscript 0 ;; 'stop') echo "Stopping PeerGuardian" killall peerguardnf > /dev/null 2>&1 endscript 0 ;; 'restart') cd "$PG_ETC" # check if blockfiles were updated: UPDATED="" for i in $BLOCKLISTS ; do TIMESTAMP=0 if [ -e $i.$SUFFIX ] ; then TIMESTAMP=`stat --format=%y $i.$SUFFIX` echo "File $i.$SUFFIX last updated $TIMESTAMP" TIMESTAMP=`stat --format=%Y $i.$SUFFIX` fi wget -N $URL/$i.$SUFFIX if [ `stat --format=%Y $i.$SUFFIX` -gt $TIMESTAMP ] ; then UPDATED=$i fi done # if none of the blockfiles were updated: if [ -z $UPDATED ] ; then echo "No blocklists needed updating." echo "Stopping PeerGuardian" killall peerguardnf > /dev/null 2>&1 mv $PG_LOG $PG_LOG.backup sleep 4 echo "Starting PeerGuardian" peerguardnf -h -m -d -c "$PG_CONF" -l "$PG_LOG" endscript 0 fi # if any blockfiles were updated: for i in $BLOCKLISTS ; do gunzip -c $i.$SUFFIX > $i.$SUFFIX2 BLOCKLISTSCAT="$BLOCKLISTSCAT $i.$SUFFIX2" done cat $BLOCKLISTSCAT | peerguardnf -f merged.p2b.p2p for i in $BLOCKLISTS ; do rm $i.$SUFFIX2 done # uncomment below to unblock Yahoo! Mail and whatever # else needs unblocking here. Do this also in the # restart section. grep -v -i "yahoo\!" merged.p2b.p2p | grep -v -i "Microsoft" | grep -v "Google" > merged.p2b.p2p.tmp mv merged.p2b.p2p.tmp merged.p2b.p2p echo "Stopping PeerGuardian" killall peerguardnf > /dev/null 2>&1 mv $PG_LIST $PG_LIST.backup mv merged.p2b.p2p $PG_LIST mv $PG_LOG $PG_LOG.backup sleep 4 echo "Starting PeerGuardian" peerguardnf -h -m -d -c "$PG_CONF" -l "$PG_LOG" endscript 0 ;; *) echo "Usage: $0 { start | stop | restart }" ;; esac exit 0 Copier le fichier peerguardian.sh: cp peerguardian.sh /usr/local/bin Changer les droits d'accès au fichier: chmod -c 755 /usr/local/bin/peerguardian.sh Pour démarrer peerguardian: sh peerguardian.sh start Pour stoper peerguardian: sh peerguardian.sh stop Pour redémarrer peerguardian: sh peerguardian.sh restart Mon problème est le suivant: Une fois le script exécuté, tous ce passe normalement le fichier block list est téléchargé et mis à jours si nécessaire, ensuite le peerGuardian me confirme qu'il fonctionne, ce que je ne comprends pas c'est que si exécute PeerGuardian avec le même block list depuis un poste Windows(PeerGuardian v.199 pr14) j'ai toujours des adresses IP boquées. Exemple: debian:~# debian:~# sh peerguardian.sh start -bash: debian:~#: command not found debian:~# ------------ 2006-02-23 14:17:57 CET Begin PeerGuardian start -bash: ------------: command not found debian:~# File level1.gz last updated 2006-02-12 02:10:39.000000000 +0100 -bash: File: command not found debian:~# --14:17:57-- http://www.bluetack.co.uk/config/level1.gz -bash: --14:17:57--: command not found debian:~# => `level1.gz' Resolving www.bluetack.co.uk... 67.18.178.4 Connecting to www.bluetack.co.uk[67.18.178.4]:80... connected. -bash: command substitution: line 1: unexpected EOF while looking for matching `'' HTTP request sent, awaiting response... 301 Moved Permanently -bash: command substitution: line 8: syntax error: unexpected end of file -bash: bad substitution: no closing "`" in `level1.gz' debian:~# > Resolving www.bluetack.co.uk... 67.18.178.4 Location: http://dialspace.dial.pipex.com/town/pipex...etack/level1.gz [following] --14:18:00-- http://dialspace.dial.pipex.com/town/pipex...etack/level1.gz -bash: www.bluetack.co.uk...: command not found => `level1.gz' debian:~# > Connecting to www.bluetack.co.uk[67.18.178.4]:80... connected. Resolving dialspace.dial.pipex.com... 195.129.111.57, 195.129.111.58, 195.129.111.59, ... -bash: to: command not found debian:~# > HTTP request sent, awaiting response... 301 Moved Permanently Connecting to dialspace.dial.pipex.com[195.129.111.57]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1,555,948 [text/plain] Server file no newer than local file `level1.gz' -- not retrieving. No blocklists needed updating. Starting PeerGuardian ------------ 2006-02-23 14:18:24 CET End PeerGuardian Script -bash: request: command not found debian:~# > Location: http://dialspace.dial.pipex.com/town/pipex...etack/level1.gz [following] -bash: http://dialspace.dial.pipex.com/town/pipex...tack/level1.gz: No such file or directory debian:~# > --14:18:00-- http://dialspace.dial.pipex.com/town/pipex...etack/level1.gz -bash: http://dialspace.dial.pipex.com/town/pipex...tack/level1.gz: No such file or directory debian:~# > => `level1.gz' Resolving dialspace.dial.pipex.com... 195.129.111.57, 195.129.111.58, 195.129.111.59, ... Connecting to dialspace.dial.pipex.com[195.129.111.57]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1,555,948 [text/plain] Server file no newer than local file `level1.gz' -- not retrieving. No blocklists needed updating. Starting PeerGuardian ------------ 2006-02-23 14:18:24 CET End PeerGuardian Script debian:~#
  2. omi

    Adapteur Ethernet Usb

    Hello, Es qui il y a quelle qu’un qui aurait installé une carte réseau USB supplémentaire sur ça Xbox ? Si oui ? Quel modèle ? Avec quelle driver ? Ma configue: Xebian 1.1.2
  3. omi

    Prob Lancement De Linux Xebian

    Voici une solution avec PBL. Chargement Cromwell par Phoenix Bios Loader
  4. Merci à vous, le problème chargement avec Xebian 1.1.0 est résolut (une fois sur 4 il ne se chargeait pas). Astuce pour utiliser le mode dual boot avec Phoneix Bios Loader: --------------------------------------------------------------------------- Modifié le fichier boot.cfg Exemple d'utilisation: Pour charger linux appuyer sur le bouton pour éjecter le tiroir: AltRomfile xxx.bin(renommer le fichier xromwell.xbe en avalaunch.xbe en fonction des priorités du bios) Pour charger evox appuyer sur le bouton d'enclenchement: Romfile xxx.bin(mettre evoxdash.xbe à la racine du C)
  5. Hello, Es ce qu'il y a un moyen pour charger un bios Cromwell avec Phoenix bios loader pour utiliser une distribution linux ?
  6. omi

    Xbox Softmod Et Xebian

    C'est un bug de chargement du bios de xebian, ça fonctionne une fois sur quatre. L'idéale ça serait d'adapter un bios Cromwell à PBL.
  7. omi

    Linux Xbox Config Ppoe

    Es qu'il y a quelle qu'un qui est arrivé à changer le mtu ? FYI: J'ai modifié le fichier dsl-provider cependant mon provider m'attribue toujours un mtu de 1492.
  8. omi

    Linux Xbox Config Ppoe

    Pour se connecter avec xebian: 1.- Mettre votre routeur en mode bridge 2.- Savoir si vous avez une route par défaut route -n Si une ligne commence par 0.0.0.0, vous avez une route par défaut et il faut l'enlever. route del default 3.- Ensuite lancer l'interface de configuration automatique: /usr/sbin/pppoeconf 4.- Pour démarrer ppp0:(/etc/ppp/peers/) ----------------------------------- pon dsl-provider Pour arrêter ppp0: ------------------ poff dsl-provider
  9. omi

    [tuto] Torrentflux Sur Xbox

    Merci le problème du mot de passe est résolut, maintenant je suis bloqué à ces instructions. cp -r /usr/workspace/torrentflux_1.5/html /usr/local/apache2/htdocs/ cp -r /usr/workspace/torrentflux_1.5/TF_BitTornado/ /usr/local/ Le problème c'est que je n'est pas de répertoire dans usr s'appellent workspace. j'ai essayé de les créez manuelement. mkdir /usr/workspace/torrentflux_1.5/TF_BitTornado mkdir /usr/workspace/torrentflux_1.5/html Es que ça suffit de les crèez manuellement ?
  10. omi

    [tuto] Torrentflux Sur Xbox

    J'ai suivi le tuto à la lettre sauf que je ne trouve pas le password pour installer sql database: Quelle est le password ? /usr/local/mysql/bin/mysqladmin -u root -p <password> create torrentflux J'ai essayé mon root et l'ancien root "xebian".
  11. Chez moi le mode 800x600 fonctionne sur KDE. Ta du mal éditer ton fichier( /etc/X11/XF86Config-4) Ta changé l'attrib avant "chmod 7 XF86Config-4" et configuré ainsi ? Section 4.8 http://people.via.ecp.fr/~alexis/formation...ee.html#AEN6198
  12. omi

    Dynebolic V1.4 Boot From Harddisk

    Je pense que ta raison, de toute façon il y a Xebian qui fait l'affaire vu qu'on peut l'installer sur la partion E en FATX. Autrement l'interface graphique de Dyne:bolic fonctionne sur mon PC.(NVIDIA GeForce Ti4200)
  13. FYI: Sur Xebian(sans KDE) la configue original est en 640x480, j'ai édité le fichier XF86Config-4 et forcer en 800x600 ça fonctionne parfaitement.
  14. omi

    Dynebolic V1.4 Boot From Harddisk

    Lorsque tu copie le cdrom dynebolic v1.4 depuis la console sur le disque dur en FATX avec un gestionnaire de fichier (comme xcommander, boXplorer, xbmc) tu devrait avoir les erreurs suivantes lors du chargement.
  15. Hello, Y’a-t-il un moyen pour démarrer Dynebolic depuis le disque dur ? Apparemment on devrait pouvoir modifier certain fichier avec la console ou avec un script. Documentation -Manuel se trouvant à la racine du cdrom (dynebolic-manual.pdf) -Docking - l a b . d y n e . o r g Autrement saché que Dynebolic fonctionne parfaitement avec le cdrom sur ma Xbox v1.2 ou 1.3 / Video Encoder Connexant / Phoenix Bios Loader Metoo 1.4.1(exploit sans puce) / Souris logitech(M-UR69) / Clavier Logitech(Y-UC29).