Archive

Archives pour la catégorie ‘Linux’

Afficheurs LCD

J’ai récupéré sur un vieux serveur un afficheur LCD
Le modèle est un DATA VISION 16230 S2FBLY
datavision-16230-s2fbly-front.pngdatavision-16230-s2fbly-back.png

Je vais me servir de cette excellent doc pour le brancher à mon port //

http://www.aurel32.net/elec/lcd.php

http://electroremy.ifrance.com/elec-info-lcd.html

Ainsi qu’un GC-1602F1-YSL1-A de Goldentek récupéré dans un Cobalt dont le bios est HS (du à la tentative de flashage ratée)
gc-1602f1-ysl1-a-front.pnggc-1602f1-ysl1-a-back.png

Liens utiles :
Comprendre les afficheurs LCD HD44780

LK162-12

http://www.matrixorbital.com/p73/LK162-12/product_info.html

un nouveau LCD dans ma collection : DG24128-01

un peu de doc : http://angeliz.free.fr/electro/elec20.htm
DataSheet oplcdg240x128_Datavision 24128-01
DataSheet T6963
cablage : http://lcdhype.condense.de/index.php?showtopic=3172

Categories: Linux Tags:

Bind et Cacti

Danc ce topic, nous allons grapher les statistiques de bind comme dans le graphique suivant :
cacti-bind-template.png

Voici la procédure à suivre :
- Récupérez l’archive cacti-bind-template.tar.bz2.
- Décompréssez-la.
- Importez dans CACTI les templates.
- Copier bind9-genstats.sh et bind9-stats-snmpd.pl dans /usr/bin/ sur le DNS.
- Ajoutez un crontab :

*/5 * * * * /usr/sbin/bind9-genstats.sh

- Et ajoutez la configuration snmp :

pass .1.3.6.1.4.1.2021.55 /usr/bin/perl /usr/sbin/bind9-stats-snmpd.pl

Et voila !

Categories: Cacti, Linux Tags:

Importer des bases RRD entre différente architectures

J’ai eut besoin de déplacer des bases RRD entre 2 serveurs, je pensais qu’il suffisait de déplacer les base RRD, mais non, on obtiens l’erreur suivante :

ERROR : This RRD was created on other architecture

J’ai donc créer un script d’export et un autre d’import pour résoudre ce petit problème.


#!/bin/bash

SOURCE="/repertoire/ou/se/trouvent/les/bases/rrd/a/exporter"
DESTINATION="/repertoire/ou/vont/se/trouver/les/exports"

for file in $SOURCE/*
        do
                BASENAME=`basename ${file} .rrd`
                rrdtool dump "${file}" $DESTINATION/$BASENAME.xml
        done

Le script d’import :


#!/bin/bash

SOURCE="/repertoire/ou/vont/se/trouver/les/exports"
DESTINATION="/repertoire/ou/on/veux/placer/les/fichier/rrd"

for file in $SOURCE/*
        do
                BASENAME=`basename ${file} .xml`
                rrdtool restore ${file} $DESTINATION/$BASENAME.rrd
                echo $BASENAME
        done
Categories: Cacti, Linux Tags:

Super Dual Box Pro

Sous ce nom barbare se cache un adaptateur USB pour manettes PS/PS2 théoriquement compatible Linux.
super_dual_box_pro-1.jpg
super_dual_box_pro-2.jpg
super_dual_box_pro-3.jpg
super_dual_box_pro-4.jpg
Je vais donc décrire la mise en place de cet adaptateur sous Ubuntu.

Je branche et voila le résultat.

Oct 18 10:43:27 ubuntu kernel: [505638.538561] usb 3-1: new low speed USB device using uhci_hcd and address 2
Oct 18 10:43:27 ubuntu kernel: [505638.804821] usb 3-1: configuration #1 chosen from 1 choice
Oct 18 10:43:37 ubuntu kernel: [505648.900166] drivers/usb/input/hid-core.c: timeout initializing reports
Oct 18 10:43:37 ubuntu kernel: [505648.900244] input: WiseGroup.,Ltd TigerGame PS/PS2 Game Controller Adapter as /class/input/input6
Oct 18 10:43:37 ubuntu kernel: [505648.900292] input: USB HID v1.00 Joystick [WiseGroup.,Ltd TigerGame PS/PS2 Game Controller Adapter] on usb-0000:00:1d.2-1
Oct 18 10:43:37 ubuntu kernel: [505648.901479] usbcore: registered new interface driver xpad
Oct 18 10:43:37 ubuntu kernel: [505648.901550] drivers/usb/input/xpad.c: driver for Xbox controllers v0.1.6

Voici le mapping à utiliser (pour une snes) dans le fichier snes9x.conf

[Unix/X11 Controls]
J00:Axis0 = Joypad1 Axis Left/Right T=50%
J00:Axis1 = Joypad1 Axis Up/Down T=50%
J00:B1 = Joypad1 A
J00:B2 = Joypad1 B
J00:B0 = Joypad1 X
J00:B3 = Joypad1 Y
J00:B6 = Joypad1 L
J00:B7 = Joypad1 R
J00:B8 = Joypad1 Start
J00:B9 = Joypad1 Select

P.S. : Les bouttons marchent parfaitement, mais il me reste à régler un problème avec les touches de directions.

Modification du driver joystick
Driver Super Dual Box Pro (Win XP/2000/ME/9x)

Categories: Linux, Todo Tags:

VNC par tunnel SSH

Voici la procédure à suivre pour la mise en place d’un serveur VNC sur CentOS-5.0-x86_64 (la procédure devrais etre la meme pour x86).

Se connecter avec son login que je présenterais à présent [login].

Executer vnpasswd pour activer ou changer son mot de passe VNC.

sudo chkconfig --add vncserver

Modifier le fichier /etc/sysconfig/vncservers ainsi :

VNCSERVERS="1:[login]"
VNCSERVERARGS[1]="-nolisten tcp -nohttpd -localhost"

Démarrez le serveur :

service vncserver start

Pour avoir le bureau gnome, modifier le fichier /home/[login]/.vnc/xstartup comme suit :

#!/bin/sh

unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
/etc/rc.d/init.d/vncserver start

P.S. : Si vous apportez des modification a ce fichier, relancez le serveur.

Créer le tunnel avec putty

Connection / SSH / Tunnels

Source port = le port du tunnel de votre coté (ex : 6666)

Destination = localhost:5901 (pour le premier serveur)

Local et IPV4 cochés.

Connectez-vous normalement en SSH par putty.

Puis lancer le client VNC sur localhost:source_port (ex : localhost:6666)

Et voila !

Pour Ubuntu :

sudo apt-get install vncserver
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture de l'information d'état... Fait
vncserver est déjà la plus récente version disponible.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 3 non mis à jour.

Categories: Linux Tags:

SUDO

Pour autoriser un groupe d’utilisateurs à éxecuter des commandes avec les droits root sans taper de mot de passe, il sufit d’ajouter cette ligne avec visudo :


%groupe ALL=(ALL) NOPASSWD:ALL

Categories: Linux Tags:

Manette SNES sous UBUNTU

J’ai récement trouvé dans un vieux carton mes manette SNES que j’avais modifiées pour fonctionner avec le port paralelle (2 manettes)

http://www.tolaris.com/snes-to-parallel/

Lorsque j’essaye d’activer le module, j’ai une erreur :

sudo modprobe gamecon map=0,1,1,0,0,0
FATAL: Error inserting gamecon (/lib/modules/2.6.20-16-generic/kernel/drivers/input/joystick/gamecon.ko): Invalid argument

Donc téléchargement des sources du kernel et lecture de la doc pour ce module.

La partie intéresante :

3.1 gamecon.c
~~~~~~~~~~~~~
Using gamecon.c you can connect up to five devices to one parallel port. It
uses the following kernel/module command line:

gamecon.map=port,pad1,pad2,pad3,pad4,pad5

Where 'port' the number of the parport interface (eg. 0 for parport0).

And 'pad1' to 'pad5' are pad types connected to different data input pins
(10,11,12,13,15), as described in section 2.1 of this file.

The types are:

Type | Joystick/Pad
--------------------
0 | None
1 | SNES pad
2 | NES pad
4 | Multisystem 1-button joystick
5 | Multisystem 2-button joystick
6 | N64 pad
7 | Sony PSX controller
8 | Sony PSX DDR controller
9 | SNES mouse

Donc apparement la ligne de commande est correcte.
Un tour dans dmesg me donne une piste :

gamecon.c: no such parport

Categories: Linux, Todo Tags:

µBox

Cette box va reprendre le principe de la NGBox mais en version beaucoup plus light par l’utilisation de µclibc

Mais avant d’attaquer la µclibc je vais tenter de faire une image la plus petite possible.

CompactFlash de 128Mo
Booter sur LFSLiveCD

et suivre cette doc http://users.rsise.anu.edu.au/~okeefe/p2b/buildMin/buildMin.html
boot : linux vga=0x030C ide=nodma KEYMAP=fr-latin1

Categories: Linux, Projet, Todo, µBox Tags:

LVS et Cacti

Je vais décrire dans ce document la procédure pour grapher différents stats LVS à partir de Cacti.
Par chance, tout le travail à deja été fait par des développeurs.

Les template cacti :

http://www.asyd.net/cacti/

snmp-lvs.xml
cacti_data_query_snmp_lvs.xml

Le module a inclure dans net-snmp :

http://homes.tiscover.com/jrief/net-snmp-lvs-module/

http://kb.linuxvirtualserver.org/wiki/Net-SNMP-LVS-Module

net-snmp-lvs-module-004tar.gz

J’ai tout suivis à la lettre, mais lors du snmpwalk ca n’a pas l’air de fonctionner correctement :

# snmpwalk -c monitoring -v 2c -m LVS-MIB localhost 1.3.6.1.4.1.8225.4711
LVS-MIB::lvsVersion.0 = STRING: "0.0.0"
LVS-MIB::lvsNumServices.0 = INTEGER: 0
LVS-MIB::lvsHashTableSize.0 = INTEGER: 0

Categories: Cacti, Linux Tags:

RC POWER 601BC

J’ai récement acheté un RC POWER 601BC, un chargeur de batteries intélligent.
Le chargeur étant équipé d’un port USB, j’ai souhaité le faire marcher sous linux .
ne fois branché sur le port usb, il est reconnu comme un CP2101/CP2102:

Sep 15 14:36:07 localhost kernel: usb 3-2: new full speed USB device using uhci_hcd and address 2
Sep 15 14:36:07 localhost kernel: usb 3-2: configuration #1 chosen from 1 choice
Sep 15 14:36:07 localhost kernel: usbcore: registered new driver usbserial
Sep 15 14:36:07 localhost kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
Sep 15 14:36:07 localhost kernel: usbcore: registered new driver usbserial_generic
Sep 15 14:36:07 localhost kernel: drivers/usb/serial/usb-serial.c: USB Serial Driver core
Sep 15 14:36:07 localhost kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for cp2101
Sep 15 14:36:07 localhost kernel: cp2101 3-2:1.0: cp2101 converter detected
Sep 15 14:36:07 localhost kernel: usb 3-2: reset full speed USB device using uhci_hcd and address 2
Sep 15 14:36:07 localhost kernel: usb 3-2: cp2101 converter now attached to ttyUSB0
Sep 15 14:36:07 localhost kernel: usbcore: registered new driver cp2101
Sep 15 14:36:07 localhost kernel: drivers/usb/serial/cp2101.c: Silicon Labs CP2101/CP2102 RS232 serial adaptor driver v0.07
Sep 15 14:38:59 localhost kernel: usb 3-2: USB disconnect, address 2

Une fois débranché :

Sep 15 14:38:59 localhost kernel: cp2101 ttyUSB0: cp2101 converter now disconnected from ttyUSB0
Sep 15 14:38:59 localhost kernel: cp2101 3-2:1.0: device disconnected

TODO :
Récupérer les informations offerte par ce chipset et les grapher dans une base rrd.
Je penses qu’il faut compiler le driver USB en mode DEBUG pour savoir ce qu’il y a a récupérer à moins de trouver de la doc sur ce chipset.

Categories: Linux, Modélisme, Todo Tags:

Utilisation du NGBox-Devel-Kit

Mise en place de l’environement de développement avec une NGBox déja fonctionelle en console (bash) :

[root@NGBox /usr/src]$ mkdir -p /usr/src/NGBox/Devel-kit/bin
[root@NGBox /usr/src]$ cp /bin/bash NGBox/Devel-kit/bin/
[root@NGBox /usr/src]$ # Test du chroot
[root@NGBox /usr/src]$ chroot NGBox/Devel-kit/
chroot: cannot run command `/bin/bash': No such file or directory
[root@NGBox /usr/src]$
[root@NGBox /usr/src]$ mkdir -p /usr/src/NGBox/Devel-kit/usr/bin/
[root@NGBox /usr/src]$
[root@NGBox /usr/src]$ cp /usr/bin/env /usr/src/NGBox/Devel-kit/usr/bin/
[root@NGBox /usr/src]$
[root@NGBox /usr/src]$ ldd NGBox/Devel-kit/usr/bin/env
linux-gate.so.1 => (0xffffe000)
libc.so.6 => /lib/libc.so.6 (0xb7e3f000)
/lib/ld-linux.so.2 (0xb7f62000)
[root@NGBox /usr/src]$
[root@NGBox /usr/src]$ mkdir NGBox/Devel-kit/lib
[root@NGBox /usr/src]$ cp /lib/libc.so.6 /lib/ld-linux.so.2 NGBox/Devel-kit/lib/
[root@NGBox /usr/src]$ chroot NGBox/Devel-kit/
/bin/bash: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory
[root@NGBox /usr/src]$
[root@NGBox /usr/src]$ find / -name libreadline.so.5
/lib/libreadline.so.5
[root@NGBox /usr/src]$ cp /lib/libreadline.so.5 NGBox/Devel-kit/lib/
[root@NGBox /usr/src]$ chroot NGBox/Devel-kit/
/bin/bash: error while loading shared libraries: libhistory.so.5: cannot open shared object file: No such file or directory
[root@NGBox /usr/src]$
[root@NGBox /usr/src]$ cp /lib/libhistory.so.5 NGBox/Devel-kit/lib/
[root@NGBox /usr/src]$ chroot NGBox/Devel-kit/
/bin/bash: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory
[root@NGBox /usr/src]$
[root@NGBox /usr/src]$ find / -name libncursesw.so.5
/lib/libncursesw.so.5
[root@NGBox /usr/src]$ cp /lib/libncursesw.so.5 NGBox/Devel-kit/lib/
[root@NGBox /usr/src]$ chroot NGBox/Devel-kit/
/bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
[root@NGBox /usr/src]$
[root@NGBox /usr/src]$ find / -name libdl.so.2
/lib/libdl.so.2
[root@NGBox /usr/src]$ cp /lib/libdl.so.2 NGBox/Devel-kit/lib/
[root@NGBox /usr/src]$
[root@NGBox /usr/src]$ chroot NGBox/Devel-kit/
[I have no name!@NGBox /]$

Ca y est on a le début de notre espace de développement !

Les problèmes commencent :

[I have no name!@NGBox /]$ ls
bash: ls: command not found
[I have no name!@NGBox /]$
[I have no name!@NGBox /]$ exit
[root@NGBox /usr/src]$ find / -name ls
/bin/ls
[root@NGBox /usr/src]$ cp /bin/ls NGBox/Devel-kit/bin/
[root@NGBox /usr/src]$
[root@NGBox /usr/src]$ chroot NGBox/Devel-kit/
[I have no name!@NGBox /]$ ls
ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
[I have no name!@NGBox /]$ exit
[root@NGBox /usr/src]$ find / -name librt.so.1
/lib/librt.so.1
[root@NGBox /usr/src]$ cp /lib/librt.so.1 NGBox/Devel-kit/lib/
[root@NGBox /usr/src]$ chroot NGBox/Devel-kit/
[I have no name!@NGBox /]$ ls
ls: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
[I have no name!@NGBox /]$ exit
[root@NGBox /usr/src]$ cp /lib/libpthread.so.0 NGBox/Devel-kit/lib/
[root@NGBox /usr/src]$ chroot NGBox/Devel-kit/
[I have no name!@NGBox /]$ ls
bin lib usr
[I have no name!@NGBox /]$
[I have no name!@NGBox /]$ pwd
/
[I have no name!@NGBox /]$ env
HZ=100
TERM=xterm
SHELL=/bin/bash
USER=root
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAIL=/var/mail/root
PWD=/
INPUTRC=/etc/inputrc
LANG=fr_FR.ISO-8859-15@euro
PS1=[\[\033[01;31m\]\u\[\033[m\]@\h \w]$
HOME=/root
SHLVL=2
LOGNAME=root
_=/usr/bin/env
[I have no name!@NGBox /]$
[root@NGBox /usr/src]$ find / -name make
/usr/bin/make
[root@NGBox /usr/src]$ cp /usr/bin/make NGBox/Devel-kit/bin/
[root@NGBox /usr/src]$ chroot NGBox/Devel-kit/
[I have no name!@NGBox /]$ make
make: *** No targets specified and no makefile found. Stop.
[I have no name!@NGBox /]$

La c’est bon pour make
[I have no name!@NGBox /]$ cd /usr/src/
[I have no name!@NGBox /usr/src]$ tar jxvf linux-2.6.21.5.tar.bz2
bash: tar: command not found
[I have no name!@NGBox /usr/src]$ exit
[root@NGBox /usr/src/NGBox/Devel-kit]$ ldd /usr/bin/ta
tac tack tail tailf talk
[root@NGBox /usr/src/NGBox/Devel-kit]$ ldd /bin/tar
linux-gate.so.1 => (0xffffe000)
librt.so.1 => /lib/librt.so.1 (0xb7f14000)
libc.so.6 => /lib/libc.so.6 (0xb7df2000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7ddf000)
/lib/ld-linux.so.2 (0xb7f1f000)
[root@NGBox /usr/src/NGBox/Devel-kit]$ cp /bin/tar bin/
[root@NGBox /usr/src/NGBox/Devel-kit]$ chroot .
[I have no name!@NGBox /]$ cd /usr/src/
[I have no name!@NGBox /usr/src]$ tar jxvf linux-2.6.21.5.tar.bz2
tar: bzip2: Cannot exec: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
[I have no name!@NGBox /usr/src]$ exit
[root@NGBox /usr/src/NGBox/Devel-kit]$
[I have no name!@NGBox /]$ cd usr/src/
[I have no name!@NGBox /usr/src]$ ls
linux-2.6.21.5 linux-2.6.21.5.tar.bz2
[I have no name!@NGBox /usr/src]$ rm linux-2.6.21.5 -rf
bash: rm: command not found
[I have no name!@NGBox /usr/src]$ exit
[root@NGBox /usr/src/NGBox/Devel-kit]$ cp /bin/rm
rm rmdir
[root@NGBox /usr/src/NGBox/Devel-kit]$ cp /bin/rm bin/
[root@NGBox /usr/src/NGBox/Devel-kit]$ chroot .
[I have no name!@NGBox /]$ cd /usr/src
[I have no name!@NGBox /usr/src]$ rm linux-2.6.21.5 -rf
[I have no name!@NGBox /usr/src]$ tar jxf linux-2.6.21.5.tar.bz2
[I have no name!@NGBox /usr/src]$ cd linux-2.6.21.5
[I have no name!@NGBox /usr/src/linux-2.6.21.5]$
[I have no name!@NGBox /usr/src/linux-2.6.21.5]$ make menuconfig
make: /bin/sh: Command not found
make: /bin/sh: Command not found
Makefile:412: /usr/src/linux-2.6.21.5/arch//Makefile: No such file or directory
make: *** No rule to make target `/usr/src/linux-2.6.21.5/arch//Makefile’. Stop.
[I have no name!@NGBox /usr/src/linux-2.6.21.5]$
[root@NGBox /usr/src/NGBox/Devel-kit]$ cp /bin/sh bin/
[root@NGBox /usr/src/NGBox/Devel-kit]$ chroot .
[I have no name!@NGBox /]$ cd /usr/src/linux-2.6.21.5
[I have no name!@NGBox /usr/src/linux-2.6.21.5]$ make menuconfig
/bin/sh: uname: command not found
/bin/sh: sed: command not found
Makefile:412: /usr/src/linux-2.6.21.5/arch//Makefile: No such file or directory
make: *** No rule to make target `/usr/src/linux-2.6.21.5/arch//Makefile’. Stop.
[I have no name!@NGBox /usr/src/linux-2.6.21.5]$
[root@NGBox /usr/src/NGBox/Devel-kit]$ cp -a –preserve=all /dev/null dev/
[root@NGBox /usr/src/NGBox/Devel-kit]$ ls -als dev/
total 8
4 drwxr-xr-x 2 root root 4096 2007-09-15 09:37 .
4 drwxr-xr-x 6 root root 4096 2007-09-15 09:34 ..
0 crw-rw-rw- 1 root root 1, 3 2007-06-18 03:46 null
[root@NGBox /usr/src/NGBox/Devel-kit]$
[root@NGBox /usr/src/NGBox/Devel-kit]$ mkdir -p usr/lib/gcc/i686-pc-linux-gnu/4.0.3/
[root@NGBox /usr/src/NGBox/Devel-kit]$ cp /usr/lib/gcc/i686-pc-linux-gnu/4.0.3/cc1 usr/lib/gcc/i686-pc-linux-gnu/4.0.3/
[root@NGBox /usr/src/NGBox/Devel-kit]$

Categories: Devel Tags:

Cacti et Postfix

Je vais essayer de décrire la procédure à suivre pour la mise en place de la mailq postfix dans Cacti.

J’ais me basé sur ces travaux :

http://forums.cacti.net/about16480.html

Et tout s’est bien passé.

Categories: Linux Tags:

NGBox

Description du projet

Mon nouveau projet, faire un linux multimedia sur un embed system. c.a.d un plug-n-play
tu branches ton périphérique est ça fonctionne !


Avantages :
Pas de disque dur.
Faible consommation.
Résiste aux chocs.


Problèmes rencontrés :
Le manque de formation.
Manque de temps


Feuille de route

  • Compiler LFS pour ce CPU : Fait
  • Mettre à jour les Bootscripts : Fait
  • Installer Autofs : Fait

Matériel utilisé :
Lex system

Boitier : http://www.lex.com.tw:8080/product/LIGHT.htm
Carte mère : CV860B http://www.lex.com.tw:8080/product/CV860B.htm
LFS 6.2 compilé avec un LFSLiveCD brnaché sur le port IDE.

Dans le même genre le projet
OMCube
De la doc sur ce boitier : http://www.solsys.org/mod.php?mod=faq&op=match&display_order=topic&section=Epia5000&display_option=expand

Problème : Clavier ne fonctionne pas.
Solution : Ajouter au kernel : Device Drivers / Input device support / Miscellaneous devices / PC Speaker support.
Ne me demandez pas pourquoi, mais c’est comme ça !

Categories: Linux, NGBox, Projet, Todo Tags:

Ecran LCD Hanns G HW223DP


Je me suis acheté un écran LCD 22″ sur ldlc.

Reçu trés rapidement comme d’hab.

Super content vu que j’ai pas eut à payer la TVA, mais au premier allumage … un pixel mort. J’ai décidé de ne prien faire vu que les écrans sont garantis à 99,.. % de pixel, donc c’est pour ma poire…

Fiche technique

Categories: Linux, Todo Tags:

Wifi

J’ai récupéré une carte wifi USB d’un « Hotspot Wifi » fonctionnant sous windows. Elle est équipée d’un Chipset RT2572T.

Le driver se trouve ici.

Pour le compiler avec un kernel 2.6 :

tar zxvf RT25USB-SRC-V2.0.8.0.tar.gz &&
cd RT25USB-SRC-V2.0.8.0 &&
mv Makefile.6 Makefile &&
make

Pour scanner les réseaux wifi alentour lancez la commande suivante :

insmod rt2570.ko
ifconfig rausb0 up
iwlist rausb0 scan

Problème rencontré sur LFS

[root@NGBox /usr/src/NGBox/drivers/RT25USB-SRC-V2.0.8.0]$ make
make -C /lib/modules/2.6.21.5/build SUBDIRS=/usr/src/NGBox/drivers/RT25USB-SRC-V2.0.8.0 modules
make[1]: Entering directory `/usr/src/linux-2.6.21.5'
CC [M] /usr/src/NGBox/drivers/RT25USB-SRC-V2.0.8.0/rtusb_main.o
/usr/src/NGBox/drivers/RT25USB-SRC-V2.0.8.0/rtusb_main.c: In function 'CMDHandler':
/usr/src/NGBox/drivers/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1079: attention : unused variable 'pkey'
/usr/src/NGBox/drivers/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1078: attention : unused variable 'i'
/usr/src/NGBox/drivers/RT25USB-SRC-V2.0.8.0/rtusb_main.c: In function 'usb_rtusb_probe':
/usr/src/NGBox/drivers/RT25USB-SRC-V2.0.8.0/rtusb_main.c:1779: erreur: 'struct net_device' has no member named 'get_wireless_stats'
make[2]: *** [/usr/src/NGBox/drivers/RT25USB-SRC-V2.0.8.0/rtusb_main.o] Erreur 1
make[1]: *** [_module_/usr/src/NGBox/drivers/RT25USB-SRC-V2.0.8.0] Erreur 2
make[1]: Leaving directory `/usr/src/linux-2.6.21.5'
make: *** [all] Erreur 2

Et la je suis bloqué … (google est mon amis, il va me renseigner ;)

P.S. : Sur Ubuntu, elle est reconue directement. comme rausb0, super.

Categories: Linux, NGBox, Todo Tags:

Firefox2 sur centos-5.0

Aucun paquet RPM n’existe pour firefox-2 a ma connaissance. J’ai donc décider de décrire la procédure pour installer firefox-2.0 en version binaire en paralelle de firefox-1.5.0.??

Téléchargez firefox : http://download.mozilla.org/?product=firefox-2.0.0.6&os=linux〈=fr

mv /usr/bin/firefox /usr/bin/firefox.1.5.0.?
tar zxvf firefox-2.0.0.tar.gz
mv firefox  /usr/lib/firefox-2.0.x
ln -s /usr/lib/firefox-2.0.4/firefox /usr/bin/firefox
yum install compat-libstdc++-33.i386

Le reste du texte qyui suit je l'ai piqué pour m'en inspiré, je ne me souviens plus de la source.


Then you need to take care of any plugins you have installed ... by
moving them from /usr/lib/mozilla/plugins
and /usr/lib/firefox-1.5.{version}/plugins
to /usr/lib/firefox-2.0.4/plugins/

You need to manage upgrades yourself ... I just download the latest
firefox from mozilla and do this again when there are updates.

Note:  In CentOS-5, firefox is a required install for other things ...
so if firefox-1.5 is installed and updated by yum, you will need to
recreate your /usr/bin/firefox symlink to use firefox 2.

Trying to replace firefox on CentOS-5 with another RPM is going to be
versy problematic as several other packages are built against it in the
distribution ... but running 2 versions in parallel is not very hard.
Categories: Linux Tags:

Authentification par clé SSH