Re: mp3 player with adjustable speed and pitch correction
Le Monday 30 June 2008 19:55:55 Andrei Popescu, vous avez écrit : On Mon, Jun 30, 2008 at 07:27:22PM +0200, Joachim Reichel wrote: Hi, I'm looking for an mp3 player that allows to adjust the speed, but haven't been successful so far. audacity: requires preprocessing (and is not really a music player) amarok: the developers tagged #103895 as wontfix vlc: allows only fixed multipliers (like 0.5x/1x/2x) noatun: restarts song from beginning on every change Is there any music player that allows to adjust the speed by any factor between half and double speed, at any point during playback, without preprocessing, without restarting playback from beginning, and with pitch correction? mplayer can adjust the speed on-the-fly. A quick search through the man page does find a filter which compensates for the pitch as well, but I didn't test it. alsaplayer does it too, even allowing negative speeds for your satanic parties :) -- Cédric Lucantis -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Minicom : Tuer le processus avec top
Le Saturday 28 June 2008 02:02:41 Michelle Konzack, vous avez écrit : Am 2008-06-23 18:27:57, schrieb Alain Vaugham: Bonjour la liste, Par habitude j'utilise top pour tuer un processus. Exemple: $ top | grep spamd Dans le cas présent : $ top | grep minicom n'affiche rien car ce ne doit pas être le bon nom. Peut-être aussi parce que c'est un script shell ou autre, donc le nom du processus est 'sh' au lieu du nom du script. Il y'a pidof -x pour ça (voir la page man). Comment je peux m'en sortir pour tuer Minicom quand je ne connais pas le nom du processus? [EMAIL PROTECTED]:~] killall minicom Mais oui, killall est probablement suffisant pour ça. -- Cédric Lucantis -- Lisez la FAQ de la liste avant de poser une question : http://wiki.debian.org/DebFrFrenchLists Vous pouvez aussi ajouter le mot ``spam'' dans vos champs From et Reply-To: To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: emacs: renaming files in a programming project
Le Friday 27 June 2008 19:20:41 H.S., vous avez écrit : Hello, I have a directory with a whole bunch of source files (C++ files, *.cpp and *.hpp). I am at a position where I need to rename a subset of those source files (their functionality has changed over the time and hence the need for new intuitive names). Now, I am going to do this the basic way. Rename the source code files, grep all source code files and change their occurrences everywhere. Before I do this, I am wondering if there is an automated way to do this from within emacs. Any idea? If it helps, I am using ctags. The tags-query-replace command is just done for that. -- Cédric Lucantis -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: printf
Le vendredi 20 juillet 2007 18:06, De Leeuw Guy a écrit : Bonjour je cherche le moyen avec printf de spécifier la précision d'un double par un variable passée en paramètre. Qqun sait il ? exemple : printf(double = %.5lf\n, mondouble); je voudrais remplacer le 5 par une variable printf(double = %.?lf\n, mondouble, nbdecim); Bonjour, je fais ça en utilisant une variable pour le format : char format[32]; int precision = 5; sprintf(format, double = %%.%dlf\n, precision); printf(format, mondouble); mais le problème de cette méthode c'est qu'on a plus l'avertissement de gcc quand les paramètres ne correspondent pas au format alors il y a peut être mieux... -- Cédric Lucantis
Re: installing X libraries?? -- need your help!
Hello! I'm new in Linux. I installed Debian Linux Etch for Intel x86-CPU. Everything is ok. Then I tried to install a kdm theme called QtCurve- KDE3-0.48.5 and I have to compile it. So I installed the gcc and g++ packages and the kernel sources. This was decribed by an article I googled. Then I started the 3 steps for installtion with ./ configure but it brakes with the following message: [EMAIL PROTECTED]:~/test$ ./configure (...) checking for X... configure: error: Can't find X libraries. Please check your installation and add the correct paths! [EMAIL PROTECTED]:~/test$ What should I do, now? Must I install a few packages? Yes, you're probably lacking some x*-dev package, but I don't remember which one exactly. Maybe x-dev or xlibs-dev? You'll find useful informations in the file config.log like which test program failed and what was the error message. -- Cédric Lucantis
Re: Copie d'une image iso sur un disque USB
Le dimanche 6 mai 2007 14:40, Jellyroll a écrit : Bonsoir, Je suis encore sous GNU/Linux Debian Sarge. Sur une partition de mon disque dur j'ai deux images de DVD (4,3 Go) que je voudrai sauvegarder sur un disque USB formaté en FAT 32. Quand je copie l'un de ces fichiers (command cp) il y a des erreurs (je vérifie avec md5sum). Ma question est donc : comment copier ces gros fichiers sans erreur ? A verifier, mais je crois bien que FAT32 ne supporte pas les fichiers de cette taille (la limite doit être autour de 2G). -- Cédric Lucantis
Re: Copie d'une image iso sur un disque USB
Le dimanche 6 mai 2007 20:20, Jean-Yves F. Barbier a écrit : Pascal Hambourg a écrit : Jean-Yves F. Barbier a écrit : Jellyroll a écrit : Je pense que la limite doit être plus de 2 Go (quelqu'un peut-il donner cette limite pour les partition FAT32 ou dois-je poster sur un forum adéquat ?). nan, c'est bien 2147483648 - 1 (2^32 -1), les utilisateurs de video sous w$98 doivent s'en rappeler. 2^32 = 4Gi, pas 2Gi ! Le site de Microsoft indique une limite de taille de fichier de (2^32 - 1) octets, soit ~4 Gio, en FAT32. Si je ne m'abuse, la limitation à 2 Gio provenait du format de fichier vidéo AVI, pas du système de fichiers FAT32. Vi, mais c'était pô conseillé, d'ailleurs que ce soit sous 98 ou xp, le réseau m$ te limites à des transferts = 2GB Pour mettre tout le monde d'accord, j'ai fait un petit test qui écrit des données aléatoires dans un fichier, et il s'arrete après 2G avec le message 'Débordement de la taille permise pour un fichier'. Je suppose (quoi qu'en dise microsoft, ça sera pas leur premier mensonge ;) qu'on utilise quelque part une variable 32bits signée, ce qui fait que la limite est 2^(32-1) et non (2^32)-1, soit 2G. -- Cédric Lucantis
Re: How to create boost libraries for cross compile?
Le vendredi 4 mai 2007 09:27, Joost Kraaijeveld a écrit : Hi, Can anyone tell me how to create the Boost libraries so that I can use them using the mingw32 cross compiler? Can that be done using the cross compiler itself or should I just compile Boost on a Windows machine and copy the files? Both methods should work. I never did it, but it's an autoconf package and is already ported on windows, so I guess you can compile it with mingw32. It should be as simple as ./configure --host=i586-mingw32msvc --prefix=/some/path make make install Set a prefix to install it in a separate place or you'll mess up your system. I generaly put all my mingw32 packages in ~/local-win32, but of course you can choose any place you want. But maybe is there a precompiled package somewhere, in which case you just have to uncompress it in some place and use it as is. I think cygwin provides that. -- Cédric Lucantis
Re: How to cross compile Debian - Windows ???
Le jeudi 3 mai 2007 09:07, Joost Kraaijeveld a écrit : Hi, I have written a small Hello world program that I want to cross compile from Debian to Windows using the Mingw32 package. I can run configure both on Debian and on Windows without problem. Can anyone give me the correct syntax for calling configure so that I can compile the program on Linux and run it on Windows? I tried something like: /configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=i686-pc-mingw32 but that did not do the trick on my AMD64 Debian Etch (I think the configuration names do not match but how can I find the correct ones???). [EMAIL PROTECTED]:~$ dpkg -c /var/cache/apt/archives/mingw32_3.4.5.20060117.1.dfsg-2_i386.deb (...) drwxr-xr-x root/root 0 2006-12-23 06:26 ./usr/bin/ -rwxr-xr-x root/root 81336 2006-12-23 06:26 ./usr/bin/i586-mingw32msvc-g++ hrwxr-xr-x root/root 0 2006-12-23 06:26 ./usr/bin/i586-mingw32msvc-c++ -rwxr-xr-x root/root 80696 2006-12-23 06:26 ./usr/bin/i586-mingw32msvc-cpp -rwxr-xr-x root/root 80696 2006-12-23 06:26 ./usr/bin/i586-mingw32msvc-gcc (...) so the name you are looking for is 'i586-mingw32msvc' but you should only set the host and not the target (others are autodetected), so simply try this : ./configure --host=i586-mingw32msvc it will emit a warning which you can ignore for now. I'm not sure this is the conventional way of doing it, but it works for me. -- Cédric Lucantis
Re: [SID] pas de mise à jour ?
Le mercredi 2 mai 2007 18:26, giggz a écrit : Bonjour, juste une petite question : je m'étonne car depuis 2 jours je n'ai aucune mise à jour dans SID... mon sources.list : deb http://ftp.fr.debian.org/debian/ sid main contrib non-free Il y a eu unn énorme changement du fonctionnement d'apt ou alors il n'y a pas eu de mise à jour ? :) Guillaume qui s'inquiète...(ben oui j'ai pas eu ma dose de mise à jour quotidienne) J'ai pas de mise à jour non plus (sur ftp2.fr.debian.org) depuis 2/3 jours, mais pas de quoi s'inquiéter, ça arrive souvent pour un tas de raisons... Si t'es vraiment en manque de problemes, t'as qu'à essayer windows update ;) -- Cédric Lucantis
Re: kernel recompile compile
Le mercredi 2 mai 2007 12:40, Andrew Critchlow a écrit : Can anyone tell me how to, or point me to a good website that tells you how to recompile/compile a kernel? The normal way? and the debian way? I need to be able to add and remove built in modules of the kernel such as remove network card driver and add wireless card driver etc. Many thanks. Andrew. - Here's a good starting point (found on tldp.org, a good start for anything related to linux) : http://www.digitalhermit.com/linux/Kernel-Build-HOWTO.html it's not completely finished, but was enough for me - the kernel sources themselves contain a lot of useful infos - for the debian way, there are two sections in the reference manual which give some pointers, but I never did it this way, so I can't say much about that : http://www.debian.org/doc/manuals/reference/ch-system.en.html#s-kernel-details http://www.debian.org/doc/manuals/reference/ch-kernel.en.html Finally just two hints before you start : - before anything, get a good live cd (I suggest knoppix or debian live) to repair the disaster which will probably happen ;) - don't read too much and do it, it's much easier than it might seem... Enjoy, -- Cédric Lucantis
Re: GCC compiler
Le dimanche 29 avril 2007 04:56, Micha Feigin a écrit : On Sat, 28 Apr 2007 22:20:08 -0300 Iuri Sampaio [EMAIL PROTECTED] wrote: Hi, I tried to compile a C source code, using make command: The Makefile script is: BINDIR = ./ LIBDIR = /foo/im/lib/Linux24 INCLUDE = /foo/im/include CC = gcc CFLAGS = -g -I$(INCLUDE) LIBS = $(LIBDIR)/libim.a $(LIBDIR)/libim.so \ -lm -L/usr/X11R6/lib -lX11 You are linking against libim twice, once static and once dynamic, what you may mean is LIBS = -L$(LIBDIR) -lim -lm -L/usr/X11R6/lib -lX11 OBJS = rotation.c BIN = rotation $(BIN): $(OBJS) $(CC) $(CFLAGS) -o $(BIN) $(OBJS) $(LIBS) Not really an answer, but this is wrong too, you should have something like this instead: OBJS = rotation.o BIN = rotation $(BIN): $(OBJS) $(CC) -o $@ $^ $(LIBS) %.o: %.c $(CC) -c -o $@ $ $(CFLAGS) but with only one source file it doesn't really matter install: $(BIN) mv $(BIN) $(BINDIR) clean: rm -f $(BIN) *.o *~ but then I got this error message when I run make [EMAIL PROTECTED]:~/mat056/AULA28.03.07$ make gcc -g -I../im2_6_linux24/im/include/ -o quantizacao quantizacao.c ../im2_6_Linux24/im/lib/Linux24/libim.a ../im2_6_Linux24/im/lib/Linux24/libim.so -lm -L/u\ sr/X11R6/lib -lX11 quantizacao.c:1:16: error: im.h: No such file or directory quantizacao.c: In function 'main': quantizacao.c:12: warning: incompatible implicit declaration of built-in function 'malloc' Seems like you are not including stdlib.h so malloc is not defined quantizacao.c:22: error: 'IM_TIF' undeclared (first use in this function) quantizacao.c:22: error: (Each undeclared identifier is reported only once quantizacao.c:22: error: for each function it appears in.) make: *** [quantizacao] Error 1 Strange! What is this quantizacao file ? It doesn't appear in the makefile. HYPERLINK mailto:[EMAIL PROTECTED]:~/mat056/AULA28.03.07$[EMAIL PROTECTED]:~/mat056/AULA28. 03. 07$ I can see it’s missing the im.h of my gcc lib. Does anyone know how to solve this problem? Even apt-get any lib that has im.h? what is im.h supposed to be a part of? If you don't know, than where did you get the code and what's its intent? Good question ;) Maybe are you looking for libimlib ? (an image manipulation lib, replacement for libxpm) There is no debian package that contains im.h or libim.a or libim.so Only reference I found is national language support for AIX which is a proprietary UNIX by IBM Regards, iuri sampaio -- Cédric Lucantis
Re: GCC compiler
Le dimanche 29 avril 2007 19:40, John L Fjellstad a écrit : Michael Marsh [EMAIL PROTECTED] writes: If I'm using GNU make, I hardly ever use = instead of :=, unless I really want to define a macro. You're a lot more likely to get what you expect most of the time, and you can use +=. What's the difference? My book on Make mentions =, but not :=. I knew about := but I always thought they were pretty much the same. The difference is that the value of a variable defined with := is expanded immediately, while with = it is only computed when used. Here's an example: BAR = $(FOO) FOO = some value all: @echo BAR = $(BAR) the BAR variable will here be expanded to some value, but if you write BAR := $(FOO) instead, it will be expanded to an empty string because FOO is undefined at this time. That's why you can only use += with a variable defined with := , because it wouldn't make sense in the other case. That's also why (I guess) Michael says that you're more likely to get what you expect with := , because it's closer to what happens with other scripting languages. It's true that the = syntax can be quite tricky and is often the cause of hard to find bugs, but it's also often useful. This is documented in the make info page, under section 6.5 How to use variables/Setting. I don't know if this is specific to gnu make or not. -- Cédric Lucantis
Re: Système de sauvegarde avec serveur debian et clients windows?
Le vendredi 27 avril 2007 23:42, *air* a écrit : Avec backuppc peut faire des sauvegardes avec ssh entre les clients windows et le serveur debian? Sil lt;Spamgt; wrote: Le vendredi 27 avril 2007 23:20, *air* a écrit : Bonsoir, Bonsoir, J'aimerais savoir quel programme permettrait de repondre à ces conditions? Backuppc ? Il faut un peu de configuration et se plonger dans les fichiers, mais une fois en route c'est vraiment très efficace. Il y a aussi amanda : http://www.amanda.org Un peu ardu aussi pour la config, mais ca marche très bien. Ca passe par samba pour les clients windows, mais pour ssh je ne sais pas, je n'y connais rien... Je ne connais pas non plus backuppc, alors je ne sais pas si l'un est meilleur que l'autre. -- Cédric Lucantis
Re: aide pour config imprimante sous SARGE
Le mercredi 11 avril 2007 00:53, Bernard a écrit : Bonjour, Je pédale dans la choucroute pour installer ma HP Deskjet 1120C. Après divers déboires, j'ai désinstallé cups et hplip, et je ne parviens plus à les réinstaller ! #apt-get install cupsys me répond le copié collé suivant : # apt-get install cupsys -s Lecture des listes de paquets... Fait Construction de l'arbre des dépendances... Fait Certains paquets ne peuvent être installés. Ceci peut signifier que vous avez demandé l'impossible, ou bien, si vous utilisez la distribution unstable, que certains paquets n'ont pas encore été créés ou ne sont pas sortis d'Incoming. Puisque vous n'avez demandé qu'une seule opération, le paquet n'est probablement pas installable et vous devriez envoyer un rapport de bogue. L'information suivante devrait vous aider à résoudre la situation : Les paquets suivants contiennent des dépendances non satisfaites : cupsys: Dépend: gs-esp mais ne sera pas installé E: Paquets défectueux Je ne peux pas vraiment aider pour l'imprimante, mais peut-etre qu'ici 'apt-get -f install' sans autres paramètres peut réparer tout ça (parfois il faut l'appeler plusieurs fois, recommencer jusqu'à ce qu'il ne fasse plus rien). Sinon, comme l'indique le message, c'est peut-être un problème de dependences cassées dans le dépôt Debian, généralement résolu en un jour ou deux. Dans ce cas, essayer d'installer une version plus ancienne du paquet (le plus simple pour ça est d'utiliser aptitude). -- Cédric Lucantis
Re: sed command spanning multiple lines
Le mercredi 11 avril 2007 19:22, Russell L. Harris a écrit : Is it possible to spread a sed command over multiple lines, to improve readability (for the sake of future maintenance)? If so, what character is used to break the line and what are the rules? For example, I would like to re-write the command: sed -e 's/\.//g' -e 's/\,//g' -e 's/\\//g' $1 | sort -u foo as: sed -e 's/\.//g' -e 's/\,//g' -e 's/\\//g' $1 | sort -u foo and be able to add additional lines such as: -e 's/[0-9]//g' bash simply accepts something like this: sed /tmp/file -e ' s,h,,g s,o,,g' or you can put your commands in a separate file (one by line) and use -f command-file instead of -e in both cases, you can put several commands on the same line by separating them with a ';' -- Cédric Lucantis
Re: sed command spanning multiple lines
sed -e 's/\.//g' -e 's/\,//g' -e 's/\\//g' $1 ... but also note that this can be done with a single command (escaping is useless here) : 's/[,/.]//g' -- Cédric Lucantis
Re: [OT] Graphics programming
Le jeudi 5 avril 2007 13:51, Jan Willem Stumpel a écrit : I would like to try some simple graphics programming on Linux -- plotting points, lines, and arcs to a window, filling areas with colour, etc. Preferably with a C interface, something like what you could do with Turbo C on DOS in the 1980's. What would be the easiest system to do this? Should I learn Java? Or something else? I'd suggest Allegro : http://alleg.sourceforge.net (use the 4.2, as 4.3 is not really usable actually) it's a game development library, so a little bit more general than what you want, but it's in C, well documented and very easy to use. And it has been ported on many platforms, inlcuding MSDOS :) There's also SDL (http://www.libsdl.org) which is equivalent (maybe better) but I don't know much about it. There are debian packages for both of these. I think C (or C++) is a good choice for what you want to do if you want good performances. If you don't really care about it, some scripting language like python may be better (they all generally provide an image manipulation module). -- Cédric Lucantis
Re: probleme autoconf automake
en fait dans l'idee, les modules utilisent des symboles tels que des singletons qui sont definis dans le core du serveur et le --export-dynamic permet de resoudre ces symboles uniquement au loading du module en allant tapper dans ceux du serveur. C'est tout du moins le fonctionnement auquel j'etait parvenu en utilisant un Makefile a la mano dans lequel je precisait juste l'export-dynamic au moment du link (la difference etait que tout les .o etaient compiles et ensuite ils etaient tous linkes d'un coup -- ca ne passait pas par des librairies temporares comme c'est le cas avec mes Makefiles.am) Les modules ne devraient pas avoir à acceder au programme lui-même, mais seulement à la librairie corecommon. Si tu as des ressources globales utilisables par les modules, elles doivent être fournies par la librairies. As tu lancé libtoolize? (peut être qu'un make maintainer-clean aiderait aussi) J'ai lance un libtoolize, mais je n'ai pas vu beaucoup de difference (il n'y a pas eu d'output). Je testerait le make maintainer-clean, mais a chaque fois que je fait un test, je recompile tout les objs (le core du serveur et le module que je test ne sont pas tres longs a compiler) ca peut vraiment aider quand tu fais des gros changements dans la config, beaucoup de choses devraient être recompilées et ne le sont pas (les dépendences ne tiennent compte que des fichiers sources) * Le Makefile.am dans ./src/core (c'est la ou la compile du core se fait, et c'est la qu'il y a le main.cpp et les sous repertoires qui separent le code du core. je simplifie l'arborescence pour des questions de lisibilite) SUBDIRS = common bindir= @prefix@/bin bin_PROGRAMS= core coredir= @prefix@/bin core_SOURCES= main.cpp core_LDADD= common/libcorecommon.a INCLUDES= \ [EMAIL PROTECTED]@/src/include \ -I./common LIBS= -lpthread -ldl -Wl,--export-dynamic j'enleverais cette ligne pour la remplacer par LIBADD (voir plus bas) * Le Makefile.am dans le repertoire ./src/core/common/ (celui qui est sense compiler la libcorecommon.a qui sera linkee ensuite avec le main.cpp (.o) ) -- C'est dans ce repertoire que le Parser et le Logger sont des singletons et donc j'aurais besoin que les symboles soient accessibles depuis mes modules. noinst_LIBRARIES = libcorecommon.a pendant qu'on y est, pourquoi pas une lib dynamique ici aussi? libcorecommon_a_SOURCES= \ Parser.h\ Parser.cpp\ Logger.h\ Logger.cpp\ Utils.h\ Utils.cpp libcorecommon_la_LIBADD = -lpthread -ldl attention LIBADD, et pas LDADD! avec ça, lpthread et ldl seront ajoutées automatiquement à chaque fois que tu link quelque chose avec -lcorecommon. INCLUDES= [EMAIL PROTECTED]@/src/include/ * et enfin le Makefile.am d'un des modules ( ./src/modules/module1/ ) lib_LTLIBRARIES= mod1.la mod1_la_SOURCES = \ header1.h \ source1.cpp \ header2.h \ source2.cpp mod1_la_LDFLAGS= -version-info 1:0:0 il faut ajouter -module aux LDFLAGS pour que libtool accepte de créer une librairie non-standard et puis ça: mod1_la_LIBADD = $(top_builddir)/core/common/lib/libcorecommon.la meme chose qu'au dessus, ça devrait régler le probleme du --export-dynamic INCLUDES = \ [EMAIL PROTECTED]@/src/include \ [EMAIL PROTECTED]@/src/core/common Voila, je pense que le probleme viens d'un de mes fichiers ou d'une etape que je fait mal, mais comme je suis debutant en Autotools, je ne suis pas encore au fait des bonnes pratiques. le probleme, c'est que les docs sont eparpillées un peu partout et pas évidentes à trouver, et les recents problemes de licence debian n'ont pas arrangé les choses (certain manuels sont en non-free). Le mieux c'est d'aller sur les sites respectifs, tu trouveras un manuel complet pour chaque outil, plus un livre (autobook) qui décrit l'ensemble. deux questions bonus pour terminer : 1) pour resoudre mon probleme de compilation et d'export-dynamic je pourrais passer par un Makefile.am dans ./src/core/ qui compilerait tout mes fichiers (meme ceux qui sont dans des sous-repertoires) en une seule fois. mais est-ce vraiment propre? pas vraiment, c'est pas du tout l'esprit d'automake et tu aurais des problèmes avec les variables _SOURCES qui n'acceptent pas des fichiers venant d'un autre repertoire. 2) quelles difference entre automake-autoconf-libtool et autotools? les premiers font-ils partie du second? en gros oui, autotools est seulement un nom donné à l'ensemble des outils de compilation GNU (automake, autoconf, libtool, m4) -- Cédric Lucantis
Re: probleme autoconf automake
Le mardi 3 avril 2007 11:47, Heyberger Ludovic a écrit : Je viens de regler mon probleme de configuration des modules de cette maniere la: apt-get install libtool configure.in : (--) AC_PROG_RANLIB (++) AC_PROB_LIBTOOL et dans le Makefile.am d'un des modules: lib_LTLIBRARIES = libname.la libname_la_SOURCES = \ header1.h \ source1.cpp\ header2.h \ source2.cpp libname_la_LDFLAGS = -version-info 1:0:0 INCLUDES = [EMAIL PROTECTED]@/src/include Par contre j'ai toujours le probleme au moment du load des modules qui ne trouvent pas certains symbols qui seraient senses etre exportes par le core au moment de la compilation grace a un -Wl--export-dynamic Il y a une virgule ici: -Wl,--export-dynamic (je ne sais pas si c'est obligatoire) mais pourquoi en as tu besoin? J'ai un projet à base de modules dynamiques qui fonctionne très bien sans. As tu lancé libtoolize? (peut être qu'un make maintainer-clean aiderait aussi) Sinon c'est pas très clair, comment compiles tu les modules et comment les utilises tu ? (avec lt_dlopen?) Le makefile complet serait utile (si il ne fait pas 15 pages :) Normalement, tu devrais avoir quelque chose comme ca: # bibliothèque principale lib_LTLIBRARIES = libmain.la libmain_LIBADD = -lltdl libmain_SOURCES = ... # module modulesdir = ... modules_LTLIBRARIES = module1.la module1_la_LDFLAGS = -module module1_SOURCES = ... -- Cédric Lucantis
Re: probleme autoconf automake
Le dimanche 1 avril 2007 15:36, Heyberger Ludovic a écrit : donc j'ai suivi les indications de divers tutos expliquants que pour compiler, je devais passer par autant de libs statiques que de sous repertoires necessaires a ma compile. j'ai donc les fichiers suivants: pas obligé d'utiliser des libs statiques, LTLIBRARIES marche aussi ... que je link ensuite a mon main.o grace a la macro LDADD je crois que c'est plutôt LIBADD ici comment faire pour les compiler proprement ? (en .so). certains disent qu'il faut du libtool, d'autres semblent partis pour faire du automake aussi, ... bref je suis un peu perdu. un petit coup de main serait le bienvenue :) tu peux laisser automake et libtool faire tout ça, ils se débrouillent bien. La doc la dessus est éparpillée entre les pages infos automake et libtool. L'idée de base, c'est de remplacer tes xx_LIBRARIES par xx_LTLIBRARIES et d'utiliser l'extension .la au lieu de .a. Automake va ensuite créer des librairies statiques ou dynamiques (ou les deux) selon ce que veut l'utilisateur et ce qui est possible. a part ça, il y'a une liste pour automake :) http://lists.gnu.org/mailman/listinfo/automake -- Cédric Lucantis
Re: probleme autoconf automake
Le dimanche 1 avril 2007 15:36, Heyberger Ludovic a écrit : Bonjour a tous, j'aimerait utiliser (ou plutot je suis oblige d'utiliser) les autotools pour compiler et distribuer un programme de type serveur modulaire et je rencontre pas mal de problemes depuis le debut. mon architecture de repertoire est la suivante: ... donc j'ai suivi les indications de divers tutos expliquants que pour compiler, je devais passer par autant de libs statiques que de sous repertoires necessaires a ma compile. j'ai donc les fichiers suivants: ... que je link ensuite a mon main.o grace a la macro LDADD C'est plutôt LIBADD dans ce cas je crois, et tu peux utiliser des librairies dynamiques. Question 2) : mes modules doivent etre compiles en .so. ils se trouvent dans un sous repertoire de src possedant l'architecture suivante: ./src/modules/mod1/ -- .cpp et .h du module1 ./src/modules/mod2/ -- idem ./src/modules/modn/ -- idem comment faire pour les compiler proprement ? (en .so). certains disent qu'il faut du libtool, d'autres semblent partis pour faire du automake aussi, ... bref je suis un peu perdu. un petit coup de main serait le bienvenue :) Automake/libtool gérent tout ça très bien, mais c'est pas évident à utiliser. La doc est éparpillée entre les pages info automake et libtool. L'idée de base, c'est de remplacer tes xxx_LIBRARIES par xx_LTLIBRARIES et l'extension .a par .la. Il va alors automatiquement créer des librairies statiques et/ou dynamiques selon ce que veut l'utilisateur et ce qui est possible sur la plate-forme. libtool offre aussi un mécanisme pour gérer les modules externes et plugins de façon portable : libltdl (voir info libtool). Ca a l'air d'être ce que tu cherches... -- Cédric Lucantis
Re: keeping tar quiet in script
Le samedi 31 mars 2007 21:55, Jorge Peixoto de Morais Neto a écrit : I'm using a simple script for making backups with tar. I can't make tar quiet, so cron keeps mailing me 'Removing leading `/' from member names' . Adding /dev/null doesn't help. What can I do to catch tar's output and keep it from shouting all over the place? a /dev/null redirects stdout to /dev/null, but stderr is left untouched. a /dev/null redirects both stdout and stderr to /dev/null. redirecting stderr is good but will also discard other possibly helpful error messages if something goes wrong. You can simply avoid this particular one with something like this : tar -cf archive -C/ . another trick is to redirect the whole script to some log file (or /dev/null if you're fearless) by putting this at its beggining : LOGFILE=... exec $LOGFILE 21 -- Cédric Lucantis
Re: Accessing windows partition through debian etch
Le dimanche 1 avril 2007 12:55, andy a écrit : Hi all I've run into a problem: the win98 partition on my wife's machine seems fried with a very unhelpful error message. I can access it in safe mode which is not very helpful because I want to back up the info from there onto a CD and safe mode doesn't recognise the cd-drive (!). So, my next option is to reach across the Debian/windows divide and bring the directories needed into the Debian partition. I used to be able to do this kind of thing using Slackware and with root permissions could access the windows partition quite readily. However, Debian just isn't picking up anything at all to do with the windows partition so I can't access it from within Deb. Is there a way I can do this, because if I run the windows setup (like the error message on windows is telling me to do) it'll toast the windows and the Debian partitions and lose everything. Any thoughts/help/advice? Please! I guess all these partitions are on the same computer (?). First, you have to know which partition type windows is using : FAT or NTFS? Then you can mount it where you want with: mount /dev/hda1 /where/you/want -t vfat -o quiet,ro,shortname=winnt (replacing vfat by ntfs if needed). Windows is probably installed on /dev/hda1, run fdisk -l /dev/hda if you're not sure. The ro option ensures you won't have the right to write on it, preventing some disasters :) and shortname is required to keep the file names case. You can also make this permanent by adding a line in your fstab file (see man mount and fstab for more infos). And no, reinstalling windows shouldn't touch the debian's partitions, unless you ask for it, but it will replace your boot loader and you'll have to reinstall it... -- Cédric Lucantis
Re: System Rescue CD sur clef usb
j'essais d'installer systemrescuecd sur une clefs usb (pny 1Gb) c'est pour faire suite à (Copie hda-hdb : taille différente). j'ai suivi la procédure http://www.sysresccd.org/Sysresccd-manual-fr_Installer_SystemRescueCd_sur_u ne_cl%C3%A9_USB mais ça ne boot jamais sur la clef (même symptôme que pour les disques dur copié de mon post Copie hda-hdb : taille différente. je vois pas ou ça marche pas dans la procédure Es-tu sûr que le bios peut booter sur un péripherique USB, et si oui est-ce qu'il est bien configuré (il doit être le premier dans la liste) ? Que veux tu dire par même symptôme ? As tu un message d'erreur, ou est ce qu'il démarre sur un autre péripherique sans rien dire? J'ai aussi entendu dire que toutes les clés USB n'étaient pas 'bootables', je ne sais pas si c'est vrai, à vérifier. Sinon, peut être que ceci peut aider : http://en.wikipedia.org/wiki/LiveUSB Il y a là quelques infos + une liste d'autres systèmes (Pen Drive Linux a l'air interessant...) -- Cédric Lucantis
Re: Home Directory on External Drive
I want to keep my home directory on an external drive and move it between computers as required. First, make sure that your users on the different computers have the same uid/gid (edit /etc/passwd and /etc/group for that). 1. It is asking for super-user privileges to mount it. How can I avoid this? Use the 'users' mount options, but mounting/unmounting your own home when you're logged is probably not a good idea. 2. Should I place /home/masatran, or /home, on the drive? This is your choice here. With /home, you'll have the homes of all your users on your drive (except if some have their home elsewhere, of course). You probably want the other choice. 3. How can I get it to use the external drive as my home directory during login, for the application data, etc.? 4. I read somewhere that the external drive must be named for the links to remain permanent. Is this correct? How do I name it? Not sure I understood those two points, but you should give a label to your drive (if it's an ext3 filesystem, do 'e2label /dev/xxx NAME') and use an fstab entry like this: LABEL=NAME /home/masatran ext3defaults It will then be mounted automatically at boot time. -- Cédric Lucantis
Re: no /etc/mtab and mount bind
Le jeudi 22 mars 2007 14:33, Bernard a écrit : Hi, On our servers /etc is read-only. Therefore, I don't have /etc/mtab. My problem is to find which mounts are bind mounts (mount --bind ...). Normally in the file mtab the mounts are shown with the option bind. Is there another way to find which mounts are mount bind? I thought in /proc I could find something but I didn't find anything. Someone has a trick on this? mount with no args should give a list of all mounted devices and their options, including bind, but I don't know if it uses mtab or not. The same infos are in /proc/mount, but the bind option doesn't seem to appear there. The only solution I can see is to check for the device inode (stat -c '%d') of all your mount points, looking for duplicate ones, but there's probably simpler... -- Cédric Lucantis
Re: Copie hda-hdb : taille différente
Salut, sauf que dd if=/dev/hda of=/dev/hdb en init 2 ne semble plus fonctionner ! en effet lorsque je retire le hda, je bascule le hdb en hda , au démarrage la machine démarre comme si le secteur de boot du disque copié n'existe pas. cfdisk sur le disque copié me confirme l'existance du flag boot Je ne suis pas sûr que ce flag serve à quelque chose en dehors de dos/windows; est-ce qu'il ne faudrait pas plutôt réinstaller grub/lilo? (Mais là dessus je n'y connais pas grand chose :) Par ailleurs, y'a-t-il une autre méthode pour copier des disques (hda-hdb), sachant que je ne peux installer mondo (a cause des dépenses j'ai quasiment une reinstall complète du système, pour l'instant je souhaiterais l'éviter) j'avais pensé 1) sfdisk -d /dev/hda | sfdisk /dev/hdb 2) montage des partition de hdb dans /mnt/partitionx 3) cp -ax partition sur hda vers partition sur hdb (là j'ai un soucis de copie avec /proc/ ) 4) en shell un grub qui install le boot La méthode tar devrait marcher: tar --one-file-system --numeric-owner -p -C /mnt/hda1 -cf - . | tar -C /mnt/hdb1 -xf - mais cp devrait marcher aussi, quel est le souci avec /proc? (il devrait être ignoré par -x) Src=${partition[$i]} Src=$Src'/''*' echo $Src Dest=/mnt/hdb$i cmd=cp -ax $Src $Dest'/.' `$cmd`# ça me recréer /usr/* par exemple ça c'est très bizarre :) pourquoi pas simplement Src=${partition[$i]} Dest=/mnt/hdb$i cp -ax $Src/* $Dest ?? Pour finir, je ne sais pas trop si c'est une bonne idée de faire ça sur un système qui tourne, peut être que tu aurais moins de problèmes à partir d'un système live? -- Cédric Lucantis
Re: [HS] mc-like script shell
Le mardi 20 mars 2007 16:55, Damien Ulrich a écrit : Bonjour à tous, je suis à la recherche d'un sélecteur de fichiers en console, à la manière midnight commander, mais dans l'esprit kdialog, pour de petits scripts shell locaux ça vous inspire ? ^^' Dams Il y a dialog, mais son comportement est assez bizarre et pas très intuitif... dialog --title TITRE --fselect /path 25 40 voir man dialog et /usr/share/doc/dialog/examples pour plus d'infos... -- Cédric Lucantis
Re: tar syntax and backing up
Le dimanche 18 mars 2007 17:14, Tyler Smith a écrit : Hi, Related to another post concerning the possible demise of my harddrive, I thought I'd better confirm with wiser people that my backup plan is doing what I think it's doing. I've got a full backup of all my important data in tar.gz files on my harddrive and burned onto cds. I want to backup everything that has been modified since the last full backup, so I use: tar --newer-mtime ../mail4Mar07.tar.gz -cvzf 18Mar2007.tar.gz \ /home/tyler/bibtex/ /home/tyler/thesis/ /home/tyler/analysis/ \ /home/tyler/grassdata/ /home/tyler/Mail/ As far as I can tell from the output and tar -t this is correct, but I'd hate to find out after my drive dies that I'm mistaken... I'd rather suggest to use incremental backups, because they also check for other metadatas (file size, dev inode...) as the date is not always enough, and also because they will remove deleted files when restoring (I don't think newer-mtime does it, but I never used it so I may be wrong). To do it, choose a location to store snapshot files and: # do a level 0 (full dump) rm -f snapshot0 tar --listed-incremental=snapshot0 -czf dump0.tar.gz ... # do a level 1 cp -f snapshot0 snapshot1 tar --listed-incremental=snapshot1 -czf dump1.tar.gz ... # do a level 2 cp -f snapshot1 snapshot2 tar --listed-incremental=snapshot2 -czf dump2.tar.gz ... # ... And to restore: tar --listed-incremental=/dev/null -xzf dump0.tar.gz tar --listed-incremental=/dev/null -xzf dump1.tar.gz tar --listed-incremental=/dev/null -xzf dump2.tar.gz There are many backup tools which can do this for you, I personnaly choose Amanda because it has a good estimation feature to decide automatically which level should be done, but there are probably many other good choices. If you want to do it by hand anyway, also read the tar docs for some useful parameters, like --preserve-permissions, --numeric-owner and things like that. The funny thing about tar is that some docs are in the man page but not in the info and vice versa, so it's probably a good idea to read them both. Enjoy :) -- Cédric Lucantis
Re: scripting
Le jeudi 15 mars 2007 17:36, john gennard a écrit : I'm trying to understand Debian's startup procedure and follow the relevant scripts. Where can I find a tutorial on scripting? For example, /etc/init.d/rc - I can roughly understand what is happening (the comments often indicate the way), but the finer points are obscure. I've found a tutorial written in 2000 and a number of other things which appear to relate to bash scripting, but none show many of the words used in /etc/init.d/rc. Does each Distro create it's own words? on debian systems there is a /etc/init.d/skeleton file which is a template you can use as a starting point. See also man update-rc.d for more infos on how to setup startup scripts. Don't do it by hand! As the skeleton is quite complex, for a simple startup action you can use something like this (just be aware that it may be called several times depending on the runlevel(s) you choose) : . /lib/lsb/init-functions case $1 in start) log_daemon_msg Doing something # do it... log_action_end_msg 0 ;; esac You may also have a look at /lib/lsb/init-functions which contains some system functions often used in startup scripts. -- Cédric Lucantis
Re: scripting
Le vendredi 16 mars 2007 15:07, Celejar a écrit : On Thu, 15 Mar 2007 17:14:48 -0700 Bob McGowan [EMAIL PROTECTED] wrote: [snip] Nigel, I cannot find a package 'abs-guide' for etch. I've tried several different permutations (-guide, guide[too much!], abs-), nothing is found. Is there is typo here or is there some other repository to add to sources.list? It's in non-free; you have to add non-free in your sources.list. Celejar there's also an online version which seems to be a little bit more up to date: http://www.tldp.org/LDP/abs/html -- Cédric Lucantis
Re: Using quotes in bash script parameters
eval does the trick: SUBJECT=This is a test mail WARNMSG=An error occurred WARNCMD=mail -s \${SUBJECT}\ root echo echo $WARNMSG | $WARNCMD eval $WARNMSG | $WARNCMD oops, sorry, quotes are required here: eval $WARNMSG | $WARNCMD well, hum you see what I mean don't you? :) eval echo $WARNMSG | $WARNCMD sorry for the noise -- Cédric Lucantis
Re: [cron] Soucis d'execution de shell
59 08 * * * /mnt/trinity/nfs/www/SitesVirtuels//batch/TrinityToPrimergy.sh 59 08 * * * /mnt/trinity/nfs/www/SitesVirtuels//batch/test.cron.sh Dans ta crontab, après tes variables temporelles, on ne devrait pas voir le user qui lance les scripts ? Seulement pour la crontab système (/etc/crontab). Pour les crontab utilisateur c'est inutile et incorrect. Sinon je commencerais par tester ceci: * * * * * /bin/echo 'hello' pour vérifier que cron est bien configuré (si tu ne reçois pas de mail, vérifie que la variable MAILTO est correcte). Ensuite essaye d'ajouter set -x au début du script. Et juste au hasard, est-ce que ton script est executable par l'utilisateur propriétaire de la crontab? -- Cédric Lucantis
Fwd: Re: lancer un prog avec une priorité basse mm si ca prend plus de temps
Bonjour, J'aimerais lancer un programme avec une priorité basse mm si ca prend plus de temps, mais que ma machine ne soit pas ralentie pendant ce temps. Est-ce qu'il y a mieux que nice pour faire ce genre de choses? (oops désolé pour le post privé :) C'est exactement le boulot de nice, pourquoi vouloir mieux? (Il y a aussi renice pour changer la priorité d'un processus en cours) -- Cédric Lucantis
Re: [HS] Logiciels de récupération
Le mardi 13 mars 2007 15:29, GIGGz a écrit : Bonjour, Je reviens toujours avec cette histoire de disque dur endommagé. Pour l'instant il refroidit tranquillement au frigo... A sa sortie je vais tenter de faire une image du disque à l'aide de gddrescue. J'ai qqs questions. J'ai trouvé ça sur le net : #récupérer en priorité le plus de zones mémoires saines: ddrescue -B -n /dev/old_disk /dev/new_disk rescued.log #puis essayez de récuperer le plus de zones mémoires endommagées possible: ddrescue -B -r 1 /dev/old_disk /dev/new_disk rescued.log bon le /dev/old_disk je sais ce que c'est c'est /dev/sda ms le /dev/new_disk je ne vois pas... Est ce que je peux mettre un répertoire quelconque ? ou alors il faut que ce soit un fichier device non monté ? Ca peut être soit un device non monté (assez grand bien sur), soit un fichier que tu peux monter après avec quelque chose comme ça: mount fichier dir -tvfat -oloop -- Cédric Lucantis
Re: avoir la valeur absolue d'une difference avec bc
J'aimerais pouvoir à partir de 2 nombres en avoir la valeur absolue avec bc, pour pouvoir intégrer le résultat d'un calcul dans un script shell. Est-ce que cela est possible? Quelque chose comme ça ? echo n=${VAR1}-${VAR2}; if (n0) print -n else print n | bc (mais si ce sont des nombres entiers, pas besoin de bc) -- Cédric Lucantis
Re: Installation sur un espace minimal
Le mardi 13 mars 2007 17:19, Thomas Clavier a écrit : Benoît Durruty a écrit : Je voudrais installer Debian sur un petit disque dur (DiskOnModule de 256 Mo). Je voudrais que cela ne dépasse pas 50 Mo. Pour cela j’ai utilisé la version « netinstall » de Debian. bon début, pour l'objectif je ne sais pas s'il est possible de l'atteindre, mais en ne sélectionnant que le minimum de paquets, en montant /usr/share/doc sur /dev/null et en purgeant les locales non utilisé (localepurge), il doit être possible de réduire drastiquement la taille de la distrib. voir aussi ça: http://lists.alioth.debian.org/pipermail/debian-live-devel/2007-March/000933.html peut être aussi qu'un système compressé comme squashfs ferait mieux l'affaire? -- Cédric Lucantis
Re: Problème de VFS: devfs et procfs
J' ai éxecutée cette commande sous Freebsd. En réalité j'ai une application qui tourne sur du Freebsd mais aussi sur Debian sarge. En étant sous freebsd, j'ai rencontré des problèmes ( comme le cas précité ) Je vais donc l'installer sous debian. Mais je veux savoir comment étendre les systèmes de fichiers /proc et /dev ? SARAKA CAMILLE [EMAIL PROTECTED] a écrit : Quand je tape la commande df, ,j'obtiens: FileSystem1K-blocks UsedAvail Capacity Mount on devfs 1 1 0 100% /dev procfs 4 4 0 100% /proc Je cherche un moyen sinon une solution pour étendre les tailles des fs /dev et /proc. Ces fichiers n'ont pas de taille réelle, donc je ne pense pas que ça soit possible. Les fichiers /proc n'existent pas vraiment mais sont créés à la volée par le noyau quand c'est necessaire (si j'ai bien compris). Les fichiers /dev sont aussi speciaux et la plupart n'ont pas de notion de taille. Sinon tu peux toujours lister les fichiers avec find et faire un stat -c '%s' dessus, mais les tailles rapportées ne correspondront pas à l'espace occupé. -- Cédric Lucantis
Re: Using quotes in bash script parameters
Le mercredi 14 mars 2007 01:04, Marco De Vitis a écrit : Hi, this is not strictly Debian-related, but I'm doing it on Etch, so... :) Let's say I'm writing a script like this: #! /bin/bash SUBJECT=This is a test mail WARNMSG=An error occurred WARNCMD=mail -s \${SUBJECT}\ root echo echo $WARNMSG | $WARNCMD echo $WARNMSG | $WARNCMD Everything works fine if I enter the equivalent command line: echo An error occurred | mail -s This is a test mail root A mail is sent to root with subject This is a test mail and body An error occurred. The script should produce the same effect, but instead, when I run it, it sends a mail with subect This and body An error occurred to the following users: is a mail , root, test although the command line printed by the first echo statement looks perfect. It'a problem which has been bugging me for a while. I usually find some workaround, but I'm a bit tired now. An I suppose it should be some kind of FAQ... although I couldn't find anything around. I already tried with single quotes, I tried escaping them, I tried escaping the spaces in the subject... to no avail. Any clues? Thanks. eval does the trick: SUBJECT=This is a test mail WARNMSG=An error occurred WARNCMD=mail -s \${SUBJECT}\ root echo echo $WARNMSG | $WARNCMD eval $WARNMSG | $WARNCMD -- Cédric Lucantis
Re: Using quotes in bash script parameters
Le mercredi 14 mars 2007 02:07, Cédric Lucantis a écrit : Le mercredi 14 mars 2007 01:04, Marco De Vitis a écrit : Hi, this is not strictly Debian-related, but I'm doing it on Etch, so... :) Let's say I'm writing a script like this: #! /bin/bash SUBJECT=This is a test mail WARNMSG=An error occurred WARNCMD=mail -s \${SUBJECT}\ root echo echo $WARNMSG | $WARNCMD echo $WARNMSG | $WARNCMD Everything works fine if I enter the equivalent command line: echo An error occurred | mail -s This is a test mail root A mail is sent to root with subject This is a test mail and body An error occurred. The script should produce the same effect, but instead, when I run it, it sends a mail with subect This and body An error occurred to the following users: is a mail , root, test although the command line printed by the first echo statement looks perfect. It'a problem which has been bugging me for a while. I usually find some workaround, but I'm a bit tired now. An I suppose it should be some kind of FAQ... although I couldn't find anything around. I already tried with single quotes, I tried escaping them, I tried escaping the spaces in the subject... to no avail. Any clues? Thanks. eval does the trick: SUBJECT=This is a test mail WARNMSG=An error occurred WARNCMD=mail -s \${SUBJECT}\ root echo echo $WARNMSG | $WARNCMD eval $WARNMSG | $WARNCMD oops, sorry, quotes are required here: eval $WARNMSG | $WARNCMD -- Cédric Lucantis
Re: qemu et windows sur une partition
Bonjour à tous Est il possible avec qemu de démarrer un système windows présent sur une partition en dual boot ? Merci d'avance chez moi, qemu /dev/hda présente le menu grub et lance windows, mais mon windows est cassé donc je ne sais pas si il va jusqu'au bout. Je ne sais pas non plus si c'est dangereux :) -- Cédric Lucantis
Re: [HS] Logiciels de récupération
Le lundi 12 mars 2007 16:17, GIGGz a écrit : Bonsoir, C'est un peu hors sujet, désolé d'avance : J'ai un disque dur de 250 GO avec po mal de données dessus qui vient de me lacher ss prévenir. Il fait bzzzt bzzzt (je sais c'est mauvais signe). Qd je branche la chose sous ma sid, il charge bien les modules qui faut...et puis plus rien...il me met des erreurs sur /dev/sda. Oui il y a qd même /dev/sda qui apparait. J'ai essayer cfdisk /dev/sda...j'ai droit à un fatal error. Pourriez vous m'indiquer un logiciel de récup sous debian. Ou alors des lignes de commande magiques... Ca depend du type de système de fichier. Si c'est ext2/ext3, essaye debugfs (paquet e2fsprogs). -- Cédric Lucantis
Re: core dumps
Hi, I'd like to know how to find which program produced a particular core dump file, any idea? , | (debian-unstable)[EMAIL PROTECTED]:~$ ulimit -c unlimited | | (debian-unstable)[EMAIL PROTECTED]:~$ echo | #include stdio.h | | int main () | { | char * foo = 0; | *foo = 'bar'; | | return 0; | } | | | gcc -xc -o baz - | | (debian-unstable)[EMAIL PROTECTED]:~$ ./baz | Segmentation fault (core dumped) | | (debian-unstable)[EMAIL PROTECTED]:~$ gdb -batch -c ./core | grep -i | generated Core was generated by `./baz'. ` HTH, May I suggest using the 'file' command? $ baz Segmentation fault (core dumped) $ ls baz core $ file core core: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV), SVR4-style, from 'baz' Strangely, it doesn't work on my system: [EMAIL PROTECTED]:~$ file core core: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV), SVR4-style But gdb -batch did the trick, thanks! -- Cédric Lucantis
Re: filename case
Le dimanche 11 mars 2007 14:43, L.V.Gandhi a écrit : When I copy files to vfat drives , filenames case is changed to lower case. Is there any way to keep them as they are ie FileName as FileName instead of filename or FILENAME as FILENAME instead of filename ? I think this works: tar -C /path/to/source -cf - . | ( cd /path/to/dest; tar -xf -; ) -- Cédric Lucantis
Re: filename case
When I copy files to vfat drives , filenames case is changed to lower case. Is there any way to keep them as they are ie FileName as FileName instead of filename or FILENAME as FILENAME instead of filename ? I think this works: tar -C /path/to/source -cf - . | ( cd /path/to/dest; tar -xf -; ) stupid me :) I never realized I could simply do this: tar -C /path/to/source -cf - . | tar -C /path/to/dest -xf - (you also have to add -h to the first tar if there are symlinks in your files) -- Cédric Lucantis
Re: filename case
Le dimanche 11 mars 2007 18:10, L.V.Gandhi a écrit : On 3/11/07, Cédric Lucantis [EMAIL PROTECTED] wrote: Le dimanche 11 mars 2007 14:43, L.V.Gandhi a écrit: When I copy files to vfat drives , filenames case is changed to lower case. Is there any way to keep them as they are ie FileName as FileName instead of filename or FILENAME as FILENAME instead of filename ? I think this works: tar -C /path/to/source -cf - . | ( cd /path/to/dest; tar -xf -; ) -- Cédric Lucantis here also some files were copied as it is and some filenames were changed to small letters. yes, you're right, sorry :( I use to do this in the past, maybe something changed in tar or maybe my memory is false. So I had a try with the shortname=mixed mount option and both cp and tar worked fine. -- Cédric Lucantis
Re: debian charset howto help
Le dimanche 11 mars 2007 19:59, Paul E Condon a écrit : I want to set up charsets on my Etch system to have some reasonable compromise between 'modern' and 'works for me'. I have, from time to time, attempted to copy advice offered on email lists with mixed results. I want to try again because recovering from my last failure left my computer in a state where man pages and emails, read in mutt, contain strings like '#8212;' . Based on past experience, I pretty sure that I can make these disappear, but in the process some other, undesireable artifacts with arise. Where is there an up-to-date tutorial for controlling and fixing charset stuff? Details of my situation: mutt for email emacs and vim for editing iceweasel gnome-terminal gnome desktop, but really only to run gnome-terminal Once upon a time my system was pure Etch. Now it is Etch with garbage left over from failed attempts to solve this issue. I think I need help particularly with clearing out this garbage. Suggestions? you may start here: http://www.debian.org/doc/manuals/reference/ch-tune.en.html#s-l10n and also: man charsets man locale-gen man consolechars man loadkeys see the file /etc/console-tools/config -- Cédric Lucantis
Re: Empty crontab
I see tasks from directories /etc/cron.* are ran regulary, but when I run crontab -e as root, the file is empty. Where are these tasks schedualed? I am asking because I want to know at what time of the day are tasks from cron.daily ran and how to change it. If I am not mistaken crontab -e edits root's crontab, however, according to me, you are looking for /etc/crontab, aren't you ? I thaught root's crontab is /etc/crontab. Thanks. Which command then to run to edit this file (sometime ago I read it is not recommended to edit it directly)? You can edit it with any editor. If I remember well, this restriction exists on other systems but Debian is not concerned. -- Cédric Lucantis
Re: Groups, Permissions and /Share
I have set up a nice big /Share directory on a separate HD, and would like to create a document repository there accessible by all users. So far only the root user can read, write and execute on the /Share directory. What is the best way to accomplish this? I don't mind reading tutorials and other docs, but at this point in my Debian education, they need to be suitability simple. Any links to such material would be much appreciated. [...] You could try the NewbieDOC wiki (documentation for newbies). There is an article on users and groups - http://newbiedoc.berlios.de/wiki/Manage_users_and_groups - which may get you started. Basically, you could put your users into a new group, give the group ownership if the directory using chgrp, and give the permissions you wish to the group on the directory group with chmod g+rwx. Try the manual pages (eg man chmod) and google search (eg for chmod). When you have succeeded, you might consider documenting your efforts on the NewbieDOC wiki. :) Another good source of infos about that and unix systems in general are the coreutils doc (info coreutils). You'll find a lot of useful tricks there. The section 'file permissions' explains all this in details, and 'changing files attributes' describes chmod and chown. -- Cédric Lucantis
Re: Sarge to Etch upgrade report
A related issue is: Is there an easy way to go through the system and identify (and possibly purge, after being asked) old files that are no longer needed/used? I presume that the packaging system would take care of files no longer needed, but what about old packages from previous distributions? To its credit, aptitude handled the hotplug - udev transition correctly, I wonder what else it didn't handle... Try the cruft package Well, overall, no major problems. I'm happy with the way the upgrade turned out. Kudos to the developers!!! +1 :) -- Cédric Lucantis
Re: [etch] plus de tube etc ...
J'ai installe debian sur une base knoppix, puis et basculer sur etch avec apt et source listes ! Hier, je démonte la machine, trois DD ne voulais plus causer avec la CM ... Je remonte fais un apt et face si, et aujourd'hui je redemarre le bouzin, j' ai plus de commande less et more qui fonctionne ... un dpkg purge m'envoie au paquerette, et Netbas n'est quand 4.08, alors y a t'il une commande magic pour repaser à la dernieres version, celle ou j'avais au moins les tubes ? J'ai pas vraiment de reponse, mais à l'époque ou j'utilisais knoppix (il y a un an ou deux) ce genre de chose était fortement déconseillé parce que knoppix utilise un tas de configs bizarres qui font qu'un upgrade te donne un système tout cassé. Je ne sais pas si c'est toujours le cas... Pourquoi ne pas installer une debian officielle? -- Cédric Lucantis
Re: Installation sur un espace minimal
Je voudrais installer Debian sur un petit disque dur (DiskOnModule de 256 Mo). Je voudrais que cela ne dépasse pas 50 Mo. Pour cela j'ai utilisé la version « netinstall » de Debian. J'ai lancé en mode classique ou expert et je n'arrive pas à configurer l'installation pour ne m'installer que le strict minimum. Au mieux mon install fait 140 Mo. J'ai vu sur le net que cela était possible de faire une install de 40 Mo aussi, merci de m'indiquer la procédure pour faire cette installation minimale. Juste un petit truc pour faire le ménage: dpkg-query -W -f '${installed-size} ${package}' | sort -rn liste tous les paquets installés triés par taille. A part ça je ne sais pas si il y a moyen de demander une installation minimale, les seuls cas que j'ai vu étaient des bidouillages horribles, du genre supprimer manuellement toutes les locales, les docs etc... -- Cédric Lucantis
core dumps
Hi, I'd like to know how to find which program produced a particular core dump file, any idea? thanks, -- Cédric Lucantis
Re: problems with apt-get update
Hi, hi, my problem is the next: when i run apt-get update, debian says me: ... E: Error de lectura - read (5 Error de entrada/salida) E: No se pudieron analizar o abrir las listas de paquetes o el archivo de estado. my sourcelist is this: deb http://apt.linex.org/linex2006 sarge linex2006 # gnuLinEx 2006 deb http://security.debian.org/ sarge/updates main contrib # Seguridad de Debian deb http://ftp.de.debian.org/debian sarge main contrib non-free # Copia de Debian en Alemania and i don't be able to fix it, i tried with: apt-get clean, un apt-get autoclean, un apt-get -f install, un dpkg --configure -a, and nothing, the error continues. i detected that the file into /var/lib/dpkg/, which is named 'available' is corrupt because i can't open it to read, and the same happens with the 'status' files, also into the same directory. I had a similar problem in the past and solved it by adding the following line in /etc/apt/apt.conf (create the file if you don't have one) : APT::Cache-Limit 1; then re-run apt-get update try a higher value if it does not work, but I don't know what it means exactly so maybe there's a risk of breaking something -- Cédric Lucantis
Re: problems with apt-get update
no friend, the error continues, i try this: linex-inWpyZ:/etc/apt# cat apt.conf APT { APT::Cache-Limit 1; CDROM { NoMount True; }; }; hmm, not sure about it, but maybe APT::Cache-Limit inside APT{} is redundant and not understood by apt. Try either APT { Cache-Limit ... } or APT::Cache-Limit outside of the braces. -- Cédric Lucantis
Re: now the solution is nearer:
But when i run apt-get upgrade, i get a error, because debian download 3 pakages and says me that there are problems with package libvisual0.2 frome available files, but this package appears installed ok when i run apt-cache show libvisual0.2, now i show you the output of upgrade, can you help me? : linex-inWpyZ:/var/lib/dpkg# apt-get upgrade Leyendo lista de paquetes... Hecho Creando árbol de dependencias... Hecho Se actualizarán los siguientes paquetes: libapache-mod-php4 php4 php4-common 3 actualizados, 0 se instalarán, 0 para eliminar y 0 no actualizados. Necesito descargar 1784kB de archivos. Se utilizarán 0B de espacio de disco adicional después de desempaquetar. ¿Desea continuar? [S/n] s Des:1 http://security.debian.org sarge/updates/main libapache-mod-php4 4:4.3.10-19 [1614kB] Des:2 http://security.debian.org sarge/updates/main php4-common 4:4.3.10-19 [168kB] Des:3 http://security.debian.org sarge/updates/main php4 4:4.3.10-19 [1142B] Descargados 1784kB en 17s (99,5kB/s) Preconfigurando paquetes ... (Leyendo la base de datos ... dpkg: error al procesar /var/cache/apt/archives/libapache-mod-php4_4%3a4.3.10-19_i386.deb (--unpack): fallo en buffer_read(fd): el fichero de lista de ficheros del paquete `libvisual0.2': Error de entrada/salida Se encontraron errores al procesar: /var/cache/apt/archives/libapache-mod-php4_4%3a4.3.10-19_i386.deb Proceso detenido por haber demasiados errores. E: Sub-process /usr/bin/dpkg returned an error code (1) sorry, I don't speak castilian :) as Mathias said, you should send the output of something like LC_ALL=C apt-get upgrade but maybe you should first check that you have enough space left in /var. Then try apt-get -f install and apt-get dist-upgrade. -- Cédric Lucantis
Re: Question about using anacron with cron
I have a question about cron and anancron. After reading the man page for both cron/crontab and anacron/ anacrontab, it's not clear to me how to configure for the following: --jobs to run currently live in /etc/crontab --jobs need to run serially (hence the staggered start times in crontab) As I understand it, anacron will only run those jobs created as scripts in the **ly folders (e.g. /etc/cron.weekly). not only, you can run a script from anywhere by editing /etc/anacrontab (see man anacrontab) So, my question is this: if I have periodic jobs to run in /etc/ crontab, how do I have anacron run those jobs when cron fails to do so (e.g. machine turned off)? use cron _or_ anacron, not both! It seems to me that the only way anacron will do what I expect it to do is to move my jobs in /etc/crontab into /etc/cron.daily. Yet, if I do that, I lose the ability to have jobs run serially (or at least run the risk of having jobs overlap each other). jobs in /etc/cron.daily are run one by one in lexicographic order, so you just have to prepend their name with a number (01first_script, 02second_script...) to order them (see man run-parts) I can't answer your cron/anacron questions directly, but why not just wrap your cron jobs in a script that runs them sequentially? then you can just run that script from cron/anacron and not worry about it. seems to be a good solution too -- Cédric Lucantis
Re: How do I list all users in a group?
Hi, Hi, I know the question may have simple answer... but I googled to no avail for quite some time now. Is there a command to list all users that are part of a group? If I look into /etc/passwd I can see some informations, but not all and not easy to reconstruct. Thank you all for any advice, I'd do this: group=group-name grep ^${group}: /etc/group | awk -F ':' '{print $4}' It produces a comma separated list of users -- Cédric Lucantis
Re: How do I list all users in a group?
It seems that there's no simple solution... This method is good, but I can't know if a user is in a group and is not listed because he owns the group or if no such user is present because there is none... Thanks anyway! hmm, interesting :) Here's the simplest I could find (call it with group name as first param) : list_group_users() { ( grep ^${1}: /etc/group | awk -F ':' '{print $4}' | sed -e 's/,/\n/g'; grep ^${1}: /etc/passwd | awk -F ':' '{print $1}'; ) | sort -u } sorry if I misunderstood what you want... -- Cédric Lucantis
wodim sans graveur
Bonjour, je suis en train d'écrire un script de sauvegarde sur DVD qui utilisera wodim mais je n'ai pas encore le graveur :) Je voudrais donc savoir si il y a un moyen de simuler un péripherique pour pouvoir faire des tests tout de suite. Merci, -- Cédric Lucantis
Re: profiler
I am looking for a profiler to easily profile a C program of mine on my Etch box (amd64): any suggestions are welcome. Hi, I like gprof, part of the binutils package (I guess you're using gcc), but there are probably many other choices. See man gprof and gcc. -- Cédric Lucantis
Re: Where to put scripts
Le mardi 6 mars 2007 18:10, José Pablo Fernández a écrit : Hello, we are creating lot's of little scripts on our servers, some in bash, some in python and other languages may be picked as well. Currently we have a mess, scripts all over... /bin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin, /root/bin and even other weird locations (/usr/src/...) depending on who wrote the script. I want to standardize on one and only one location for these scripts. It'll be versioned and it'll be backed up. Any recommendation on where to put these scripts? Any best or common practice? Thank you. Hi, this is my comprehension of this organisation: 'sbin' directories are for system tools, those which are typically only used by the root user (they are by default in the PATH of the root user only) while 'bin' ones are for general programs. /sbin and /bin are for very common tools which may be required at boot time before the /usr partition is mounted and /usr/bin and /usr/sbin are for everything else /usr/local is for user programs, it's the default installation directory of manually compiled programs. I think it's a good idea to keep everything you do here to avoid interfering with debian packages. So I'd suggest /usr/local/bin for programs called by normal user and /usr/local/sbin for those only used by root. If you prefer, you can also put them all in another directory to keep things more clear, say /usr/local/myscripts/bin and /usr/local/myscripts/sbin. -- Cédric Lucantis
Re: [HS]parametre de script
Le lundi 5 mars 2007 21:19, Remi Suinot a écrit : bonsoir à tous, je suis en train de faire un script, ou l'utilisateur passe en nom de fichier en entrée: ~/bin/convert.sh toto.rm j'ai utilisé ceci pour récupérer le nom du fichier sans l'extension: nom=`echo $1 | cut -d . -f 1 ` Ca marche, sauf quand je donne à manger ceci: ~/bin/convert.sh ./toto.rm là, c'est le bazard à cause du point au début! comment faire autrement que cut? Il y a certainement mieux à faire, mais je n'ai pas trouvé (pas assez cherché?) Merci de vos avis. Rémi. PS: le script converti du *.rm en *.mp3 sans passer par un fichier temporaire. une solution spécifique à bash (je crois) : nom=${1%.*} (l'operateur % supprime le plus court suffixe correspondant au motif) attention, un fichier sans extension te donnera des resultats bizarres, par exemple './toto.dir/tata' renverra './toto' Tu peux éviter ça en utilisant basename/dirname une autre avec sed (même probleme) : nom=`echo $1 | sed 's,\..*$,,g'` si le fichier à toujours l'extension rm, tu peux aussi faire nom=`basename $1 '.rm'` -- Cédric Lucantis
Re: question technique azerty et fr
Bonjour, je cherche à remastériser un live-cd (basé sur knoppix) mais qui est avec un clavier qwerty/suédois par défaut :( Quel fichier (en chrootant) dois-je modifier (voire ajouter) pour passer cette distrib en azerty et en fr avant de refaire l'image iso ? j'ai trouvé le fichier /etc/environment qui est en DE (allemand). que je vais modifier en : LANG=fr_FR je n'ai pas vraiment de réponse car j'ai anbandonné knoppix il y a longtemps mais juste un petit conseil : avant de bidouiller dans les fichiers, cherche des les parametres de boot. Sur un vrai knoppix, taper 'knoppix lang=fr' au boot est suffisant pour avoir un environement en français. Il y a probablement un moyen d'en faire le défaut. PS: je souhaite modifier cette version de live-cd car elle comporte des applications de paravirtualisation (xen). Une vrai knoppix ou kaella ne m'intéresse pas pour l'usage que j'ai prévu d'en faire. (au passage, peut-être que debian-live répondrais mieux à tes attentes : http://live.debian.net) Si tout ça ne t'aide pas, les fichiers concernés doivent être /etc/console-tools/config (pour la police écran et le 'charset') /etc/locale.gen (voir man locale-gen) voir aussi man loadkeys et set-language-env personellement, je m'étais un peu perdu dans tous ces outils alors je ne peux pas vraiment en dire plus :) -- Cédric Lucantis
Re: (La)Tex : questions
Bonjour, - Je souhaite faire un lien en Tex, a href=/a en html, mais qu'en est-il pour LaTex, car j'ai regardé ici : http://www.grappa.univ-lille3.fr/FAQ-LaTeX/6.21.html, je fais donc : \url{http://hostname/~username} pour tester, mais ne m'affiche rien, ça ne m'affiche qu'un simple texte. pas sur de comprendre ce que tu veux, mais Latex est destiné à créer des fichiers imprimables (PostScript...) et ne supporte donc pas les hyper-liens mais seulement des références du genre voir chap 2, p48 . La commande \url{} n'est qu'une commande de formatage. Tu peux utiliser latex2html pour créer des fichiers HTML ou les références deviennent de vrais liens (voir http://www.latex2html.org) J'ai bien sûr installé le package breakurl (en éspèrant que ce soit le bon) : ftp://ftp.inria.fr/pub/TeX/CTAN/macros/latex/contrib/breakurl/ puis j'ai suivi Comment installer un package ? : http://www.grappa.univ-lille3.fr/FAQ-LaTeX/29.19.html, il est indiqué : Ces fichiers doivent ensuite être déclarés dans une variable d'environnement afin d'être rendus visibles. Exemple (UNIX) : TEXINPUTS=.:/usr/local/TEX/texmf/tex:/users/ADMIN/NG/LATEX: /users/home/kluth/Section-equit/Modele fin exemple Mais où je dois déclarer la variable ? Là désolé, je ne comprends plus rien :) Mais lorsque je compile ce code source (après avoir rempli un peu le code), ça ne me donne pas un superbe résultat, je pense que cela vient des \{}, auriez-vous un lien qui donne les différents \{} qui existent ? Les \{} sont des commandes latex, si tu les enlève ce n'est plus du latex :) Le résultat est probablement mauvais parce que tu visualises un DVI (?), mais est généralement meilleur une fois converti en ps (voir dvips). Pour plus d'infos: http://www.latex-project.org et notamment http://www.latex-project.org/guides/usrguide.pdf -- Cédric Lucantis
Re: konqueror is slow
Hi, Hi all. On my laptop, konqueror takes, sometimes, tens seconds to access pages. Since character terminal 'links' web browser quickly navigates across the internet, network setting should be ok. Any hints? What to check for mis-configuration? I add the same problem and two things helped me a lot: - add the following in your /etc/environment (create the file if you don't have one) : KDE_NO_IPV6=TRUE - install the nscd package and make sure it's running (installing it should be enough) and please, don't ask me why :) -- Cédric Lucantis
Re: Config réseau et IPv6
Tu peux, si tu veux faire de l'IPv6, rajouter les lignes suivantes dans /etc/hosts: ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts Et quelle est l'erreur avec Amanda? Il devrait pouvoir tourner sans IPv6 non? J'ai deja ces lignes dans /etc/hosts et effectivement amanda fonctionne sans IPv6. En fait, je n'ai plus vraiment de probleme, si ce n'est ces messages d'erreur que j'aimerais bien comprendre, mais maintenant c'est plus par curiosité qu'autre chose... IPv6 over IPv4 tunneling driver sit0: unknown hardware address type 776 sit0: unknown hardware address type 776 eth0: duplicate address detected! merci quand même :) -- Cédric Lucantis
Re: Config réseau et IPv6
Bonjour, j'ai actuellement de gros problèmes avec Amanda (logiciel de backup) qui n'arrive pas à résoudre le nom d'hôte de mon pc. Et d'autres programmes ? Que dit : ping nom-de-la-machine pas de problème de ce coté là: PING localhost.localdomain (127.0.0.1) 56(84) bytes of data. 64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.048 ms ... --- localhost.localdomain ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2999ms rtt min/avg/max/mdev = 0.037/0.041/0.048/0.007 ms Après quelques recherches il semblerait que cela soit du à une mauvaise config de IPv6 Qu'est-ce qui vous fait dire cela ? (un simple programme de test montre que la résolution fonctionne avec IPv4 mais pas IPv6) Quel programme ? Quel message d'erreur ? J'ai mis le programme (envoyé par un des auteurs d'amanda) à la fin de ce message, le résultat est le suivant: --- gethostbyname(pc-cedric) succeeded getaddrinfo(pc-cedric) with AF_INET6 failed: No address associated with hostname getaddrinfo(pc-cedric) with AF_INET succeeded --- et probablement lié aux messages suivants que j'ai lors du boot: Non, probablement pas. Ha bon :) je ne peux que vous croire sur parole. Je précise que je n'ai pas de réseau, seulement amanda est un système client/serveur qui passe donc par le réseau même si le client et le serveur sont la même machine. A part ça, le problème a été résolu après l'avoir configurée pour utiliser IPv4 au lieu d'IPv6, ce qui confirme que quelque chose est mal configuré. Tout ça n'est donc plus très grave maintenant mais ma connection internet fonctionne _très_ mal (très lente, et je dois souvent recharger une page plusieurs fois avant de l'avoir en entier) et je me demande si il peut y avoir un rapport? --- #include stdio.h #include unistd.h #include sys/types.h #include sys/socket.h #include netdb.h main() { char *hostname = pc-cedric; struct hostent *he; struct addrinfo hints; struct addrinfo *res = NULL; int result; if ((he = gethostbyname(hostname)) == NULL) { printf(gethostbyname(%s) failed\n, hostname); } else { printf(gethostbyname(%s) succeeded\n, hostname); } hints.ai_flags = AI_CANONNAME | AI_V4MAPPED | AI_ALL; hints.ai_family = AF_INET6; hints.ai_socktype = SOCK_DGRAM; hints.ai_protocol = IPPROTO_UDP; hints.ai_addrlen = 0; hints.ai_addr = NULL; hints.ai_canonname = NULL; hints.ai_next = NULL; result = getaddrinfo(hostname, NULL, hints, res); if (result != 0) { printf(getaddrinfo(%s) with AF_INET6 failed: %s\n, hostname, gai_strerror(result)); } else { printf(getaddrinfo(%s) with AF_INET6 succeeded\n, hostname); } hints.ai_flags = AI_CANONNAME; hints.ai_family = AF_INET; hints.ai_socktype = SOCK_DGRAM; hints.ai_protocol = IPPROTO_UDP; hints.ai_addrlen = 0; hints.ai_addr = NULL; hints.ai_canonname = NULL; hints.ai_next = NULL; result = getaddrinfo(hostname, NULL, hints, res); if (result != 0) { printf(getaddrinfo(%s) with AF_INET failed: %s\n, hostname, gai_strerror(result)); } else { printf(getaddrinfo(%s) with AF_INET succeeded\n, hostname); } } --- merci, -- Cédric Lucantis
Re: Config réseau et IPv6
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data. 64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.048 ms ... [...] gethostbyname(pc-cedric) succeeded getaddrinfo(pc-cedric) with AF_INET6 failed: No address associated with hostname getaddrinfo(pc-cedric) with AF_INET succeeded D'un côté tu parles de localhost.localdomain, et de l'autre tu parles de pc-cedric... Tu ne penses pas qu'il y a comme une incohérence dans tes tests ? localhost et pc-cedric sont la meme machine (la sortie ci dessus vient de la commande 'ping pc-cedric') /etc/hosts: 127.0.0.1 localhost.localdomain localhost pc-cedric -- Cédric Lucantis
Config réseau et IPv6
Bonjour, j'ai actuellement de gros problèmes avec Amanda (logiciel de backup) qui n'arrive pas à résoudre le nom d'hôte de mon pc. Après quelques recherches il semblerait que cela soit du à une mauvaise config de IPv6 (un simple programme de test montre que la résolution fonctionne avec IPv4 mais pas IPv6) et probablement lié aux messages suivants que j'ai lors du boot: IPv6 over IPv4 tunneling driver sit0: unknown hardware address type 776 sit0: unknown hardware address type 776 eth0: duplicate address detected! quelqu'un aurait-il une idée de ce que ça veut dire? (Je n'y connais vraiment pas grand chose en réseau:) Je suis sous Debian unstable avec un noyau 2.6.18 personnalisé, mais le problème persiste avec un noyau pré-compilé. merci beaucoup, -- Cédric Lucantis