[OT] algoritmos en c

2004-04-13 Thread mangel



hola , ya se que esta no es la lista adecuada , 
pero de todas las maneras hago la pregunta a ver si alguien me hecha una 
mano

Necesito ejemplos de algoritmos en C ,qu trabajen 
con estructuras de datos como árboles ,grafos etc , alguien puede recomendarme 
algún sitio o mandarme ejemplos 

gracias


como montar un cluster

2004-03-31 Thread mangel



Hola , quiero montar un cluster openmoxis en debian 
, con las dos maquinas de mi casa 
alguien me puede echar una mano

salu2


instalar knoppix 3.4 en disco duro

2004-03-27 Thread mangel



hola ,alguien sabe como instalar el nuevo knoppix 
en disco duro
ALT-Crtl+F2
knx-hdinstall no chufla

y la opcion de copiar el contenido de /KNOPPIX en 
una partición no me termina de convencer

gracias y salud



instalacion de PVM

2004-01-12 Thread mangel



hola , estoy intentando montar un pequeño cluster , 
alguien me podría indicar los pasos a seguir o algún sitio con información 
detallada del tema

  

salud2
PD 
intente instalar PVM 
apt-get install pvm
OK
en las dos maquinas , tengo un usuario creado 
pvmuser en ambas y abierto el puerto ssh 
pvmadd hostname
me contesta que no puede arancar el pvmd de la 
maquina remota .


acceder al internet a traves de un linux

2003-10-08 Thread mangel



hola , tengo cable (tarjeta eth0) por la que accedo 
a internetcon IP dinamica , tengo otra tarjeta que para red local de dos 
windos , como configuro para que los dos windows tengan acceso tanmbién a 
internete
  
sl2


configuracion de CVS

2003-09-26 Thread mangel



hola , mi pregunta es la siguiente:

¿Como configurar CVS para que pueda acceder desde 
otra computadora al repositorio de codigo fuente?



kde kaput!!

2003-06-13 Thread mangel



hola a todos, mi problema es el siguiente , 
instalando paquetes con el apt-get me he debido cargar el kde ya que ahora ya no 
arranca y solo puedo entrar en el gnome , algien puede darme alguna 
solución
gracias a todos



Problem mit wshaper.htb

2003-01-24 Thread mangel
Moin !

Ich benutze das wshaper.htb script und habe paar Schwierigkeiten damit:

1. Wenn jemand was per zB Apache was von mir downloadet, geht meine
Downloadrate in die Knie

2. Ich muss Uplink=60 reinschreiben obwohl ich 128kbps uplink habe
(dsl), sonst macht der full speed upload und dann ich gar nix mehr
downloaden, wenn es auf 60 steht dann ist die uploadrate = 14-15kb/s

Weis jemand Rat?

TiA

PS: Ich habe nur die Mldonkey sachen dazu getan sonst ist es org.
wshaper.htb

Hier wshaper.htb:

#!/bin/bash
# Wonder Shaper
# please read the README before filling out these values 
#
# Set the following values to somewhat less than your actual download
# and uplink speed. In kilobits. Also set the device that is to be
shaped.

DOWNLINK=722
UPLINK=60
DEV=ppp0

# low priority OUTGOING traffic - you can leave this blank if you want
# low priority source netmasks
NOPRIOHOSTSRC=

# low priority destination netmasks
NOPRIOHOSTDST=

# low priority source ports
NOPRIOPORTSRC=4662

# low priority destination ports
NOPRIOPORTDST=4662


if [ $1 = status ]
then
tc -s qdisc ls dev $DEV
tc -s class ls dev $DEV
exit
fi


# clean existing down- and uplink qdiscs, hide errors
tc qdisc del dev $DEV root2 /dev/null  /dev/null
tc qdisc del dev $DEV ingress 2 /dev/null  /dev/null

if [ $1 = stop ] 
then 
exit
fi


## uplink

# install root HTB, point default traffic to 1:20:

tc qdisc add dev $DEV root handle 1: htb default 20

# shape everything at $UPLINK speed - this prevents huge queues in your
# DSL modem which destroy latency:

tc class add dev $DEV parent 1: classid 1:1 htb rate ${UPLINK}kbit burst
6k

# high prio class 1:10:

tc class add dev $DEV parent 1:1 classid 1:10 htb rate ${UPLINK}kbit \
   burst 6k prio 1

# bulk  default class 1:20 - gets slightly less traffic, 
# and a lower priority:

tc class add dev $DEV parent 1:1 classid 1:20 htb rate
$[9*$UPLINK/10]kbit \
   burst 6k prio 2

tc class add dev $DEV parent 1:1 classid 1:30 htb rate
$[8*$UPLINK/10]kbit \
   burst 6k prio 2

# all get Stochastic Fairness:
tc qdisc add dev $DEV parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev $DEV parent 1:20 handle 20: sfq perturb 10
tc qdisc add dev $DEV parent 1:30 handle 30: sfq perturb 10

# TOS Minimum Delay (ssh, NOT scp) in 1:10:

tc filter add dev $DEV parent 1:0 protocol ip prio 10 u32 \
  match ip tos 0x10 0xff  flowid 1:10

# ICMP (ip protocol 1) in the interactive class 1:10 so we 
# can do measurements  impress our friends:
tc filter add dev $DEV parent 1:0 protocol ip prio 10 u32 \
match ip protocol 1 0xff flowid 1:10

# mldonkey UDP source propagation packets are small, but go to
# bulk priority class

tc filter add dev $DEV parent 1: protocol ip prio 10 u32 \
match ip protocol 17 0xff \
match ip sport 4666 0x \
flowid 1:30

# To speed up downloads while an upload is going on, put ACK packets in
# the interactive class:

tc filter add dev $DEV parent 1: protocol ip prio 10 u32 \
   match ip protocol 6 0xff \
   match u8 0x05 0x0f at 0 \
   match u16 0x 0xffc0 at 2 \
   match u8 0x10 0xff at 33 \
   flowid 1:10

# rest is 'non-interactive' ie 'bulk' and ends up in 1:20

# some traffic however suffers a worse fate
for a in $NOPRIOPORTDST
do
tc filter add dev $DEV parent 1: protocol ip prio 14 u32 \
   match ip dport $a 0x flowid 1:30
done

for a in $NOPRIOPORTSRC
do
tc filter add dev $DEV parent 1: protocol ip prio 15 u32 \
   match ip sport $a 0x flowid 1:30
done

for a in $NOPRIOHOSTSRC
do
tc filter add dev $DEV parent 1: protocol ip prio 16 u32 \
   match ip src $a flowid 1:30
done

for a in $NOPRIOHOSTDST
do
tc filter add dev $DEV parent 1: protocol ip prio 17 u32 \
   match ip dst $a flowid 1:30
done

# rest is 'non-interactive' ie 'bulk' and ends up in 1:20

tc filter add dev $DEV parent 1: protocol ip prio 18 u32 \
   match ip dst 0.0.0.0/0 flowid 1:20


## downlink #
# slow downloads down to somewhat less than the real speed  to prevent 
# queuing at our ISP. Tune to see how high you can set it.
# ISPs tend to have *huge* queues to make sure big downloads are fast
#
# attach ingress policer:

tc qdisc add dev $DEV handle : ingress

# filter *everything* to it (0.0.0.0/0), drop everything that's
# coming in too fast:

tc filter add dev $DEV parent : protocol ip prio 50 u32 match ip src
\
   0.0.0.0/0 police rate ${DOWNLINK}kbit burst 10k drop flowid :1

 



-- 
Häufig gestellte Fragen und Antworten (FAQ): 
http://www.de.debian.org/debian-user-german-FAQ/

Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)




Problem mit wshaper.htb

2003-01-24 Thread mangel
Moin !

Ich benutze das wshaper.htb script und habe paar Schwierigkeiten damit:

1. Wenn jemand was per zB Apache was von mir downloadet, geht meine
Downloadrate in die Knie

2. Ich muss Uplink=60 reinschreiben obwohl ich 128kbps uplink habe
(dsl), sonst macht der full speed upload und dann ich gar nix mehr
downloaden, wenn es auf 60 steht dann ist die uploadrate = 14-15kb/s

Weis jemand Rat?

TiA

PS: Ich habe nur die Mldonkey sachen dazu getan sonst ist es org.
wshaper.htb

Hier wshaper.htb:

#!/bin/bash
# Wonder Shaper
# please read the README before filling out these values 
#
# Set the following values to somewhat less than your actual download #
and uplink speed. In kilobits. Also set the device that is to be shaped.

DOWNLINK=722
UPLINK=60
DEV=ppp0

# low priority OUTGOING traffic - you can leave this blank if you want #
low priority source netmasks NOPRIOHOSTSRC=

# low priority destination netmasks
NOPRIOHOSTDST=

# low priority source ports
NOPRIOPORTSRC=4662

# low priority destination ports
NOPRIOPORTDST=4662


if [ $1 = status ]
then
tc -s qdisc ls dev $DEV
tc -s class ls dev $DEV
exit
fi


# clean existing down- and uplink qdiscs, hide errors
tc qdisc del dev $DEV root2 /dev/null  /dev/null
tc qdisc del dev $DEV ingress 2 /dev/null  /dev/null

if [ $1 = stop ] 
then 
exit
fi


## uplink

# install root HTB, point default traffic to 1:20:

tc qdisc add dev $DEV root handle 1: htb default 20

# shape everything at $UPLINK speed - this prevents huge queues in your
# DSL modem which destroy latency:

tc class add dev $DEV parent 1: classid 1:1 htb rate ${UPLINK}kbit burst
6k

# high prio class 1:10:

tc class add dev $DEV parent 1:1 classid 1:10 htb rate ${UPLINK}kbit \
   burst 6k prio 1

# bulk  default class 1:20 - gets slightly less traffic, 
# and a lower priority:

tc class add dev $DEV parent 1:1 classid 1:20 htb rate
$[9*$UPLINK/10]kbit \
   burst 6k prio 2

tc class add dev $DEV parent 1:1 classid 1:30 htb rate
$[8*$UPLINK/10]kbit \
   burst 6k prio 2

# all get Stochastic Fairness:
tc qdisc add dev $DEV parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev $DEV parent 1:20 handle 20: sfq perturb 10
tc qdisc add dev $DEV parent 1:30 handle 30: sfq perturb 10

# TOS Minimum Delay (ssh, NOT scp) in 1:10:

tc filter add dev $DEV parent 1:0 protocol ip prio 10 u32 \
  match ip tos 0x10 0xff  flowid 1:10

# ICMP (ip protocol 1) in the interactive class 1:10 so we 
# can do measurements  impress our friends:
tc filter add dev $DEV parent 1:0 protocol ip prio 10 u32 \
match ip protocol 1 0xff flowid 1:10

# mldonkey UDP source propagation packets are small, but go to # bulk
priority class

tc filter add dev $DEV parent 1: protocol ip prio 10 u32 \
match ip protocol 17 0xff \
match ip sport 4666 0x \
flowid 1:30

# To speed up downloads while an upload is going on, put ACK packets in
# the interactive class:

tc filter add dev $DEV parent 1: protocol ip prio 10 u32 \
   match ip protocol 6 0xff \
   match u8 0x05 0x0f at 0 \
   match u16 0x 0xffc0 at 2 \
   match u8 0x10 0xff at 33 \
   flowid 1:10

# rest is 'non-interactive' ie 'bulk' and ends up in 1:20

# some traffic however suffers a worse fate
for a in $NOPRIOPORTDST
do
tc filter add dev $DEV parent 1: protocol ip prio 14 u32 \
   match ip dport $a 0x flowid 1:30
done

for a in $NOPRIOPORTSRC
do
tc filter add dev $DEV parent 1: protocol ip prio 15 u32 \
   match ip sport $a 0x flowid 1:30
done

for a in $NOPRIOHOSTSRC
do
tc filter add dev $DEV parent 1: protocol ip prio 16 u32 \
   match ip src $a flowid 1:30
done

for a in $NOPRIOHOSTDST
do
tc filter add dev $DEV parent 1: protocol ip prio 17 u32 \
   match ip dst $a flowid 1:30
done

# rest is 'non-interactive' ie 'bulk' and ends up in 1:20

tc filter add dev $DEV parent 1: protocol ip prio 18 u32 \
   match ip dst 0.0.0.0/0 flowid 1:20


## downlink #
# slow downloads down to somewhat less than the real speed  to prevent 
# queuing at our ISP. Tune to see how high you can set it.
# ISPs tend to have *huge* queues to make sure big downloads are fast #
# attach ingress policer:

tc qdisc add dev $DEV handle : ingress

# filter *everything* to it (0.0.0.0/0), drop everything that's # coming
in too fast:

tc filter add dev $DEV parent : protocol ip prio 50 u32 match ip src
\
   0.0.0.0/0 police rate ${DOWNLINK}kbit burst 10k drop flowid :1

 



-- 
Häufig gestellte Fragen und Antworten (FAQ): 
http://www.de.debian.org/debian-user-german-FAQ/

Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)




Ausgabe von ppp auf tty1

2002-12-01 Thread mangel








Hi alle



Ich habe nen kleines Problem:



Wenn meine DSL Verbindung aufgebaut wird erscheint die
Ausgabe immer auf tty1, das nervt nen bisl

Ich habe DoD und die Verbindung
wird schon beim booten aufgebaut.



Weis jemand wie ich die Ausgabe auf tty10 richten kann? Wo kann
ich das ändern?



TiA