logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 Re : Suivi du Wiki et des Projets Git » wiki - irssi l'irc en ligne de commande » 12-11-2009 11:45:04

ger-le-sky
Méthode pour changer de fenêtre de discutions " Shift+Alt+X" ( X étant le numéro de la fenêtre à affiché )

#3 Re : Matériel » Accélération graphique activé mais jeu qui est lent » 11-11-2009 12:14:21

ger-le-sky
tape

glxinfo | grep renderin


en console ? tu n'as pas compiz de lancé ? ce n'est pas possible d'avoir un interface graphique et de ne pas avoir de xorg.conf ( enfin je croit ) , il se trouve là -> /etc/X11/xorg.conf

#5 Re : Suivi du Wiki et des Projets Git » wiki - irssi l'irc en ligne de commande » 10-11-2009 10:20:33

ger-le-sky
pour info j'utilise Eterm sans bordure en transparance pour irssi

après avoir installer Eterm , Alt+F2 puis "Eterm  -f green --trans -x --shade=0 --scrollbar=0 --buttonbar=0 --geometry=100x20+450+300"

green correspond à la couleur du texte ( mais ce n'est pas important si vous utiliser un thème irssi )
et geometry correspond à l'emplacement d'Eterm sur votre écran.

le seul soucis s'est que je ne s'est pas trouvé comment mettre les accents dans Eterm...

capture1dd.png

#7 Re : Scripts, programmes et robots » script perl qui envoi une commande AT à récuper dans conky » 09-11-2009 18:15:10

ger-le-sky
nouvelle idée de script , créer un scripte perl qui envoi une commande AT (à savoir "AT+CSQ") à mon modem 3G ( ttyACM0) pour récupérer la qualité du signal qui sera affcihé dans conky...

dur dur...

j'ai trouver un example de script perl dans lequel piqué les "commandes"

sub signal_strength
{
   my ($signal)= (&send_cmd("AT\+CSQ") =~ /\+CSQ\: (\d+),.*/i);
   return ($signal);
}


le script entier

#! /usr/bin/perl -w

use Device::SerialPort;
use Getopt::Long;

$version=0.1;

########################################
#
# GPL - http://www.equinoxefr.org
#
########################################

$DEVICE="/dev/ttyHS3";
my $port=Device::SerialPort->new($DEVICE);

sub send_cmd ($)
{
    my $cmd = shift;
    $port->write("$cmd\r");
    my $result="";
    $result=$port->input until ($result =~ /.*OK./ || $result =~ /.*ERROR./);
    $result=~ s/OK\r\n//g;
    return $result;
}

sub setup_port
{
    $port->baudrate(19200);
    $port->parity("odd");
    $port->databits(8);
    $port->stopbits(1);
}

sub signal_strength
{
   my ($signal)= (&send_cmd("AT\+CSQ") =~ /\+CSQ\: (\d+),.*/i);
   return ($signal);
}

sub network_capabilities
{
    my $capa="";
    my $result = &send_cmd("AT+WS46=?");
    if ( $result =~ /12/)
    {
    $capa .= "GSM\n"
    }
    if ( $result =~ /22/)
    {
    $capa .= "3G\n"
    }
    if ( $result =~ /25/)
    {
    $capa .= "GPRS\n"
    }

    return $capa;
}

sub hardware_infos
{
    my ($hw_info) = &send_cmd("ATI");
    my ($imei,$serial) = (&send_cmd("AT+CGSN") =~ m/(.*?),(.*?)\r\n/);
    return "$hw_info IMEI: $imei\n Serial Number: $serial\n";
}

my $hw;
my $net;
my $ver;
my $help;
my $pin;
my $connect;
my $disconnect;
my $apn="orange";


GetOptions ('help' => \$help, 'version' => \$ver, 'hw' => \$hw, 'net' => \$net, 'pin=s' => \$pin, 'connect' => \$connect, 'disconnect' => \$disconnect, 'apn=s' => \$apn);


&setup_port();

if (defined($help))
{
    print "Usage:\n";
    print "\t--help: this message :-)\n";
    print "\t--version: version of $0\n";
    print "\t--hw: information about your 3G hardware\n";
    print "\t--net: information about network capabilities\n";
    print "\t--pin=XXXX: PIN number\n";

}

if (defined($ver))
{
    print "Version: $version\n";
}

if (defined($hw))
{

    print "Hardware informations:\n";
    print &hardware_infos;
}

if (defined($net))
{
    printf ("Signal Quality:%s\n",&signal_strength());
    printf ("Network capabilities:\n%s",&network_capabilities);
}

if (defined ($connect))
{
    print "Connecting\n";
    &send_cmd("ATZ");   
    printf ("Signal Quality:%s\n",&signal_strength());
    if ( !defined($pin))
    {
    print "No PIN provided, enter it now:";
    $pin=<STDIN>;
    chomp($pin);
    }
    #&send_cmd("ABORT ERROR");
    #&send_cmd("TIMEOUT 10");
   
    my $result = &send_cmd("AT+CPIN=$pin");
    if ($result =~ /ERROR/)
    {
        print "Warning ERROR in PIN:\n$result\n";
        exit -1;
    }
    $result = &send_cmd("AT+COPS=0");
    $result = &send_cmd("AT+COPS=?");
    print "$result\n";
}


if (defined ($disconnect))
{
    print "Disconnecting\n";
}

undef $port;


s'il y a une âme charitable pour m'aider car je galère un max...

#9 Re : Scripts, programmes et robots » script perl qui envoi une commande AT à récuper dans conky » 09-11-2009 13:52:21

ger-le-sky
sinon je peut me connecté à la 3G grave à networkmanager , j'aimerais pouvoir lancer conky lorsqu'il est connecté au GSM SFR ttyACM0

#10 Re : Scripts, programmes et robots » script perl qui envoi une commande AT à récuper dans conky » 09-11-2009 09:29:40

ger-le-sky

#!/bin/sh

if [[ "`ls -1 /dev | grep ttyACM0`" != "" ]]

    then

                        echo "######################"

                        echo "# Connexion CABLE = OK"

                        echo "######################"

                        sudo wvdial



if [[ "`sudo ifconfig | grep ppp0`" != "" ]]
    then               
                        echo "######################"

                        echo "# connexion au reseau 3G = ok"

                        echo "######################"

                        conky -c /home/zorg/.conkyrc/conky3G

fi
   fi


une petite amélioration mais ça ne fonctionne toujours pas

#12 Scripts, programmes et robots » script perl qui envoi une commande AT à récuper dans conky » 08-11-2009 19:19:32

ger-le-sky
Réponses : 7
salut le monde,

j'aimerais faire un script qui lance wvdial et si connexion établie (ppp0), lance conky

#!/bin/sh

if

sudo wvdial

then

if [ ps aux |grep /usr/sbin/pppd ]

then

conky -c /home/zorg/.conkyrc/conky3G

fi
  fi


je pense que j'ai tout faux , de l'aide serait la bien venu . merci big_smile

#13 Autres » Probleme Compiler Conky 1.7.1 » 05-11-2009 12:35:32

ger-le-sky
Réponses : 1
salut , j'ai un problème pour compiler Conky 1.7.1, je suis ce qui est dit ici , donc en installant les paquets manquant ./configure fonctionne , mais "make" m'affiche des erreurs...


AsusDeb:/home/soogri/Desktop/conky-1.7.2# ./configure --disable-x11 --enable-imlib2
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether gcc and cc understand -c and -o together... yes
checking for pkg-config... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.19... yes
checking for fopencookie... yes
checking for funopen... no
checking for LUA... no
checking for LUA51... no
checking for LUA51... yes
checking for getnameinfo... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for GLib2... yes
checking alsa/asoundlib.h usability... no
checking alsa/asoundlib.h presence... no
checking for alsa/asoundlib.h... no
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for unistd.h... (cached) yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking for sys/stat.h... (cached) yes
checking linux/soundcard.h usability... yes
checking linux/soundcard.h presence... yes
checking for linux/soundcard.h... yes
checking for alsa/asoundlib.h... (cached) no
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking mcheck.h usability... yes
checking mcheck.h presence... yes
checking for mcheck.h... yes
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for sys/mount.h... yes
checking sys/inotify.h usability... yes
checking sys/inotify.h presence... yes
checking for sys/inotify.h... yes
checking for calloc... yes
checking for malloc... yes
checking for free... yes
checking for popen... yes
checking for sysinfo... yes
checking for getloadavg... yes
checking for memrchr... yes
checking for strndup... yes
checking for gethostbyname_r... yes
checking for library containing clock_gettime... -lrt
checking for struct statfs.f_fstypename... no
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for db2x_xsltproc... no
checking for db2x_manxml... no
checking for xsltproc... xsltproc
checking if /usr/bin/ld accepts -O1... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating data/Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating src/build.h
config.status: creating lua/Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing libtool commands

conky 1.7.2 configured successfully:

Installing into:   /usr/local
System config dir: ${prefix}/etc
C compiler flags:    -I/usr/include/lua5.1   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -Wall -W
Libraries:          -lm  -llua5.1    -lglib-2.0   -lrt
Linker flags:       -Wl,-O1

* X11:
  X11 support:      no
  XDamage support:  no
  XDBE support:     no
  Xft support:      no

* Music detection:
  Audacious:        no
  BMPx:             no
  MPD:              yes
  MOC:              yes
  XMMS2:            no

* General:
  OpenMP:           
  math:             yes
  hddtemp:          yes
  portmon:          yes
  RSS:              no
  Curl:             no
  Weather
    METAR:          no
    XOAP:           no
  wireless:         no
  IBM:              no
  nvidia:           no
  eve-online:       no
  config-output:    yes
  Imlib2:           no
  ALSA mixer:       no
  apcupsd:          yes
  I/O stats:        yes

* Lua (yes) bindings:
  Cairo:            no
  Imlib2:           no


AsusDeb:/home/soogri/Desktop/conky-1.7.2# make
Making all in src
make[1]: entrant dans le répertoire « /home/soogri/Desktop/conky-1.7.2/src »
make  all-am
make[2]: entrant dans le répertoire « /home/soogri/Desktop/conky-1.7.2/src »
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/usr/local/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/local/lib/conky\"   -I/usr/include/lua5.1   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -Wall -W  -MT conky-conf_cookie.o -MD -MP -MF .deps/conky-conf_cookie.Tpo -c -o conky-conf_cookie.o `test -f 'conf_cookie.c' || echo './'`conf_cookie.c
mv -f .deps/conky-conf_cookie.Tpo .deps/conky-conf_cookie.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/usr/local/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/local/lib/conky\"   -I/usr/include/lua5.1   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -Wall -W  -MT conky-colours.o -MD -MP -MF .deps/conky-colours.Tpo -c -o conky-colours.o `test -f 'colours.c' || echo './'`colours.c
mv -f .deps/conky-colours.Tpo .deps/conky-colours.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/usr/local/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/local/lib/conky\"   -I/usr/include/lua5.1   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -Wall -W  -MT conky-common.o -MD -MP -MF .deps/conky-common.Tpo -c -o conky-common.o `test -f 'common.c' || echo './'`common.c
mv -f .deps/conky-common.Tpo .deps/conky-common.Po
gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/usr/local/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/local/lib/conky\"   -I/usr/include/lua5.1   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -Wall -W  -MT conky-conky.o -MD -MP -MF .deps/conky-conky.Tpo -c -o conky-conky.o `test -f 'conky.c' || echo './'`conky.c
conky.c: In function ‘draw_stuff’:
conky.c:6944: error: ‘own_window’ undeclared (first use in this function)
conky.c:6944: error: (Each undeclared identifier is reported only once
conky.c:6944: error: for each function it appears in.)
conky.c:6945: warning: implicit declaration of function ‘set_transparent_background’
make[2]: *** [conky-conky.o] Erreur 1
make[2]: quittant le répertoire « /home/soogri/Desktop/conky-1.7.2/src »
make[1]: *** [all] Erreur 2
make[1]: quittant le répertoire « /home/soogri/Desktop/conky-1.7.2/src »
make: *** [all-recursive] Erreur 1


qu'es qui ne va pas ? pourquoi j'ai ce messages en fesant "make"

conky.c: In function ‘draw_stuff’:
conky.c:6944: error: ‘own_window’ undeclared (first use in this function)
conky.c:6944: error: (Each undeclared identifier is reported only once
conky.c:6944: error: for each function it appears in.)
conky.c:6945: warning: implicit declaration of function ‘set_transparent_background’


j'ai suprimer l'ancienne version de conky et ses fichiers de config  avant de tenté quoi que se soit...

#14 Re : Matériel » [réglé] carte graphique Nvidia GeForce 9600 : saccades » 04-11-2009 13:21:09

ger-le-sky

est-ce que dans mon cas, installer le .run fournit sur le site de Nvidia n'arrangerait pas les choses ?


j'ai installer le pilotes propriétaire (.run) pour mon ati et ça fonctionne au poils, après ta une nvidia donc je sait pas, tu peut toujours tenter ..

#16 Re : Suivi du Wiki et des Projets Git » wiki - irssi l'irc en ligne de commande » 04-11-2009 12:08:22

ger-le-sky
en se moment free ma coupé la connections internet , je navigue grâce à la 3G sfr via mon tel qui fait modem et du coup tout les port ( sauf http et https ) sont bloqué donc pour l'exemple attend celui de gutts.

(je te ferais un screenshot le mois prochain, normalement j'aurais de nouveau la ligne adsl en décembre )

#17 Re : Suivi du Wiki et des Projets Git » wiki - irssi l'irc en ligne de commande » 03-11-2009 19:33:02

ger-le-sky

Commandes pour un canal

    *

      /me agit : envoie un message d'action (dans lequel /me apparaîtra remplacé par votre pseudonyme) sur le channel,
    *

      /nick nouveau_nick : change de pseudonyme,
    *

      /query nick : entamme une conversation privée dans une nouvelle fenêtre,
    *

      /query : met fin à la conversation privée et ferme la fenêtre,
    *

      /leave : quitte le canal et ferme la fenêtre.


Commandes pour la fenêtre de statut
*

      /list : affiche la liste des canaux du réseau sélectionné,
    *

      /who #debian : affiche la liste des gens présents sur #debian,
    *

      /hilight mot : met en couleur le pseudo de la personne qui prononce le mot (c'est utile pour repérer quand on parle de soi),
    *

      /dcc list : liste les fichiers disponibles par dcc,
    *

      /dcc get nick : pour récupérer un fichier envoyé par dcc,
    *

      /dcc send nick nom_du_fichier : pour envoyer un fichier par dcc,
    *

      /help pour avoir la liste des commandes,
    *

      /help nom_de_la_commande pour avoir de l'aide sur une commande particulière,
    *

      /quit pour quitter irssi.


vous pouvez utiliser des scripts , http://scripts.irssi.org/ et http://juerd.nl/site.plp/irssiscripttut

et bien-sûr modifier le thème d'irssi

Usage: Copy the .theme file to ~/.irssi/ directory, change the theme with /SET theme theme_name


http://irssi.org/themes

#20 Re : Autres » Un joli logo au lancement d'un terminal » 03-11-2009 13:45:18

ger-le-sky
une méthode pour afficher un ascii-art au démarrage d'un terminal :

créer un fichier texte contenant l'ascii-art à enregistrer dans un endroit sûr

puis ajouter "cat /chemin_du_fichier_texte/logo.txt" à la fin de

"/home/soogri/.bashrc"
"/etc/bash.bashrc"

#23 Re : Autres » logiciels disponibles pour architecture PowerPC ? » 01-11-2009 04:06:58

ger-le-sky
j'ai également un G3 (bleu et blanc) je n'ait pas encore installé debian parce qu'il me manque le clavier mais l'image debian ppc qui nous faut c'est celles si je ne me trompe pas --> http://webb.ens-cachan.fr/debian-cd/cur … pc/iso-cd/

(j'ai graver un ubuntu ppc pour testé , juste en insérant le cd , j'ai le terminal d'install qui s'affiche , qui annonce aussi que c'est yaboot qui est utilisé pour le démarage,  pas de refit ou autre modification à faire donc, je pense qu'avec l'image debian ppc soit doit fonctionné aussi sans modif  ..)

tout se que tu a à faire , s'est de démarré sur ton mac os X , dans le menu de pomme tu clique sur "démarrer"  et tu choisi le cd debian ppc où tu ora gravé l'image , et tu redémarre ton G3 et normalement il boot sur le cd ... sinon ya l'histoire de la touche C au démarage pour booté sur cd à testé , vu que je n'ait pas de clavier.

#24 Re : Réseau » Problème de wifi » 29-10-2009 19:01:14

ger-le-sky
tu a suivi se qui est dit ici ? http://doc.ubuntu-fr.org/atheros_ar5007eg

lors de ton essai concluant tu avait fait la même chose ?

modprobe ath5k
ifconfig wlan0 up
...


et le le pilote ath_pci ça donne pas mieux ?

#25 Re : Gestion des paquets Debian » [RESOLU] = ASUS G2P & wvdial ne s'aime pas... » 29-10-2009 18:47:59

ger-le-sky
pfff PROBLEME RESOLU ... il a suffit que j'ouvre un autre terminal et que je tu le processus wvdial configure

je n'est plus de problème avec wvdial lol

AsusDeb:/home/soogri# apt-get install -f
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
AsusDeb:/home/soogri#


c'est beau sans erreur tongue

Pied de page des forums

Propulsé par FluxBB