[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bande Passante



Petit problèmes avec

- make menuconfig, ajoute ingress

avec make menuconfig, j'obtient
   /stephanfo@server-steph:~/noyau/kernel-source-2.4.20$ make menuconfig/
   /rm -f include/asm/
   /( cd include ; ln -sf asm-i386 asm)/
   /make -C scripts/lxdialog all/
   /make[1]: Entering directory
   `/home/stephanfo/noyau/kernel-source-2.4.20/scripts/lxdialog'/
   //usr/bin/ld: cannot find -lncurses/
   /collect2: ld returned 1 exit status/

   />> Unable to find the Ncurses libraries./
   />>/
   />> You must have Ncurses installed in order/
   />> to use 'make menuconfig'/

   /make[1]: *** [ncurses] Error 1/
   /make[1]: Leaving directory
   `/home/stephanfo/noyau/kernel-source-2.4.20/scripts/lxdialog'/
   /make: *** [menuconfig] Error 2///

Portant : un /dpkg -l | grep ncurses/ retourne :

   /stephanfo@server-steph:~/noyau/kernel-source-2.4.20$ dpkg -l | grep
   ncurses
   ii  libncurses5    5.2.20020112a- Shared libraries for terminal handling
   ii  ncurses-base   5.2.20020112a- Descriptions of common terminal types
   ii  ncurses-bin    5.2.20020112a- Terminal-related programs and man
   pages/

what's the problem doctor?

en attendant, je vais modifier a la main le .config, enfin essayer


Charles Plessy wrote:

On Sat, Aug 16, 2003 at 09:54:58AM +0200, Stéphane RATELET wrote:
  Voila ce que donne config-bf2.4.20 `a l'endroit interessant :

    #
    # QoS and/or fair queueing
    #
    CONFIG_NET_SCHED=y
     CONFIG_NET_SCH_CBQ=m OK
     CONFIG_NET_SCH_HTB=m OK
    CONFIG_NET_SCH_CSZ=m
    # CONFIG_NET_SCH_ATM is not set
    CONFIG_NET_SCH_PRIO=m
    CONFIG_NET_SCH_RED=m
    CONFIG_NET_SCH_SFQ=m
    CONFIG_NET_SCH_TEQL=m
    CONFIG_NET_SCH_TBF=m
    CONFIG_NET_SCH_GRED=m
    CONFIG_NET_SCH_DSMARK=m
     # CONFIG_NET_SCH_INGRESS is not set KO :(
    # CONFIG_NET_QOS is not set
    CONFIG_NET_CLS=y
    CONFIG_NET_CLS_TCINDEX=m
    CONFIG_NET_CLS_ROUTE4=m
    CONFIG_NET_CLS_ROUTE=y
    CONFIG_NET_CLS_FW=m
    CONFIG_NET_CLS_U32=m


Je crois que pour wondersahper, il faut aussi une qdiscipline ingress,
afin de jeter quelques paquets en entrée (le but étant de se garder un
chouilla de bande passante pour ssh)

  j'ai l'impression de n'voir ni l'un ni l'autre.
  Je suis partant pour recompiler et faire une doc.

il faut donc recompiler un 2.4.20 avec le support ingress.

pour ceci :

- récupère les sources debian
- décompresse-les dans ton répertoire perso
- make mrproper
- cp /boot/config-bf2.4.20 .config
- make menuconfig, ajoute ingress
- fakeroot make-kpkg --revision=1 --append_to_version=ingress --initrd kernel-image

et voilà! un beau noyau en .deb sans passer en root!

ensuite récupère les scripts wondershaper :
http://lartc.org/wondershaper/wondershaper-1.1a.tar.gz

détarre les dans /usr/local/src
lis le readme, édite wshaper.htb
copie wshaper.htb dasn /usr/local/bin, avec les bon droits
installe les microscripts suivants :

charles@moulinette:~$ cat /etc/ppp/ip-up.d/wshaper
#!/bin/sh
/usr/local/sbin/wshaper.htb start
charles@moulinette:~$ cat /etc/ppp/ip-down.d/wshaper
#!/bin/sh
/usr/local/sbin/wshaper.htb stop

Ça activera/éteindra le wondershaping avec la liaison ppp.

wonderful, isn't it?





Reply to: