Rete... con Ubuntu non va invece funziona con Puppy Linux!!!

Riconoscimento, installazione e configurazione delle periferiche.
Scrivi risposta
webeco
Prode Principiante
Messaggi: 126
Iscrizione: mercoledì 17 ottobre 2007, 12:22

Rete... con Ubuntu non va invece funziona con Puppy Linux!!!

Messaggio da webeco »

Tempo fa ho postato di problemi (mai risolti) su un mio notebook Medion modello sim2000. Il problema è che con ubuntu non riesco ad accedere ad internet  :'(. Poco fa ho provato per pura curiosità ad avviare il cd live di puppy linux e....miracolo!! Funziona tutto perfettamente. :-\
Boh
Avatar utente
blaze++
Prode Principiante
Messaggi: 132
Iscrizione: mercoledì 11 luglio 2007, 22:47
Località: Parma-Marsala
Contatti:

Re: Rete... con Ubuntu non va invece funziona con Puppy Linux!!!

Messaggio da blaze++ »

Ti collegavi via cavo o wireless???
webeco
Prode Principiante
Messaggi: 126
Iscrizione: mercoledì 17 ottobre 2007, 12:22

Re: Rete... con Ubuntu non va invece funziona con Puppy Linux!!!

Messaggio da webeco »

Cavo... >:(

p.s. su linea adsl
webeco
Prode Principiante
Messaggi: 126
Iscrizione: mercoledì 17 ottobre 2007, 12:22

Re: Rete... con Ubuntu non va invece funziona con Puppy Linux!!!

Messaggio da webeco »

Da profano mi pare che il problema risieda nel fatto che non riesce ad acquisire l'IP  :(
Avatar utente
blaze++
Prode Principiante
Messaggi: 132
Iscrizione: mercoledì 11 luglio 2007, 22:47
Località: Parma-Marsala
Contatti:

Re: Rete... con Ubuntu non va invece funziona con Puppy Linux!!!

Messaggio da blaze++ »

forse il problema sono i dns!
Prova ad eseguire un terminale e scrivere

Codice: Seleziona tutto

pppoeconf
segui le istruzioni (nel dubbio io davo sempre ok e non ho avuto problemi)
Fammi sapere
webeco
Prode Principiante
Messaggi: 126
Iscrizione: mercoledì 17 ottobre 2007, 12:22

Re: Rete... con Ubuntu non va invece funziona con Puppy Linux!!!

Messaggio da webeco »

Allora,pare ci siano problemi. Alla fine dei test dice:

"Sorry, I scanned 3 interfaces, but the Access
Concentrator of your proveder did not respond. Please
check your network and modem cables. Another reason
for the scan failure may also be another running pppoe
process which controls the modem"

scusa eventuali errori ma l'ho dovuto ridigitare sul pc dal quale posto
Avatar utente
blaze++
Prode Principiante
Messaggi: 132
Iscrizione: mercoledì 11 luglio 2007, 22:47
Località: Parma-Marsala
Contatti:

Re: Rete... con Ubuntu non va invece funziona con Puppy Linux!!!

Messaggio da blaze++ »

Prova così:
vai su Sistema--->Amministrazione--->Rete
Spunta la casella di connessione via cavo e clicca su proprietà
Abilita la modalità roaming e vedi se internet va.

Se non va (ov lentissimo), disabilita modalità roamig, seleziona configurazione automatica dhcp
e prova
se non va ancora, lasciando le ultime impostazioni, ridigita il comando pppoeconf

Fammi sapere!
webeco
Prode Principiante
Messaggi: 126
Iscrizione: mercoledì 17 ottobre 2007, 12:22

Re: Rete... con Ubuntu non va invece funziona con Puppy Linux!!!

Messaggio da webeco »

Allora...
1) modalità roaming (che è quella di default) non va.
2) modalità DHCP già provata, non va.
3) anche seguendo la terza opzione..... non va  :-\

quel che mi da fastidio e che sul "misero" puppy....funge perfettamente  :o
Avatar utente
blaze++
Prode Principiante
Messaggi: 132
Iscrizione: mercoledì 11 luglio 2007, 22:47
Località: Parma-Marsala
Contatti:

Re: Rete... con Ubuntu non va invece funziona con Puppy Linux!!!

Messaggio da blaze++ »

Allora non saprei...
Spero che qualcuno con un po' più di esperienza ti dia una mano!
Ciao
webeco
Prode Principiante
Messaggi: 126
Iscrizione: mercoledì 17 ottobre 2007, 12:22

Re: Rete... con Ubuntu non va invece funziona con Puppy Linux!!!

Messaggio da webeco »

Ti ringrazio blaze, sei stato molto gentile  ;)
webeco
Prode Principiante
Messaggi: 126
Iscrizione: mercoledì 17 ottobre 2007, 12:22

Re: Rete... con Ubuntu non va invece funziona con Puppy Linux!!!

Messaggio da webeco »

Piccolo aggiornamento. Ho visto che puppy linux crea un (o almeno penso che sia uno) file di configurazione di alcuni dispositivi compresi quelli di rete.
Posto per i più esperti che magari sono in grado di ricavarne delle impostazioni per fare andare la rete sotto ubuntu.
Ho visto che ci sono un paio di sezioni che riguardano il settaggio della rete, una piu' o meno all'inizio e l'altra alla fine del file.

#this file is included (inserted) in rc.local0
#setup the networking.
#note, analog modem dialup is configured after bootup,
by the
#Modem Wizard and Gkdial (or ppp).
#Ethernet network is configured after bootup, by the
Puppy Ethernet Wizard.

#note, "> out.txt 2>&1" is syntax required to redirect
both stdout and
#stderr to a file, using BusyBox Ash shell (not "&>").

#echo "Setting up interface lo..."
ifconfig lo 127.0.0.1
route add -net 127.0.0.0 netmask 255.0.0.0 lo

#autodetect serial mouse and serial modem,
puppyserialdetect run in rc.local0...
rm -f /dev/modem 2>/dev/null #must remove. rc.local0
depends on it.
#puppyserialdetect output format:
"Type:modem|Port:/dev/ttyS0|Speed:230000"
MODEMPORT="`echo "$SERIALSTUFF" | grep "modem" | head
-n 1 | cut -f 2 -d '|' | cut -f 3 -d '/'`"
#jcoder24 has mouse thinks it is a modem...
if [ ! "$MODEMPORT" = "" ];then
[ ! "`echo "$SERIALSTUFF" | grep "mouse" | grep
"$MODEMPORT"`" = "" ] && MODEMPORT=""
fi
[ ! "$MODEMPORT" = "" ] && ln -s /dev/$MODEMPORT
/dev/modem
#...run modem-wizard to override autodetection.

#d*m*, running setserial if eth0 or eth1 "up" causes
setserial to hang.
#dunno why, just doing a quick fix here, moved this
modem code up before
#the ethernet setup code...
#...maybe conflicting with dhcpcd daemon.
#Modem Wizard creates this file, also pinstall.sh of
ltmodem pupget pkg...
if [ -e /etc/modemdevice ];then
  #do this every bootup, as /dev is pristine, not
saved (except for full h.d. install)...
  rm -f /dev/modem 2>/dev/null
  DEVM="`cat /etc/modemdevice`"
  echo "Linking /dev/modem to $DEVM"
  ln -s $DEVM /dev/modem
  #k2.6 has serial_core, 8250, 8250_pci builtin, else
need to load them.

  if [ "$DEVM" = "/dev/ttyLT0" ];then #Lucent Linmodem
  #precaution, in case modprobe.conf gets changed...
  cat /etc/modprobe.conf | grep "ltserial" >
/dev/null 2>&1
  if [ ! $? -eq 0 ];then #=0 found.
    echo "alias char-major-62 ltserial" >>
/etc/modprobe.conf
    echo "alias /dev/ttyLT0 ltserial" >>
/etc/modprobe.conf
    echo "alias /dev/modem ltserial" >>
/etc/modprobe.conf
    touch -t 0512010101 /etc/modprobe.conf #set modify
date back before modules.dep.
  fi
  modprobe ltmodem
  modprobe ltserial
  fi

  if [ "$DEVM" = "/dev/ttySL0" ];then #Smart-Link
Linmodem
  #precaution in case modprobe.conf gets changed...
  if [ "`cat /etc/modprobe.conf | grep "slamr"`" = ""
];then
    #rerwin found, need to change 212,213 to
242,243...
    echo "alias char-major-242 slamr" >>
/etc/modprobe.conf
    #v2.02 rerwin dev t=1533 to auto load modules...
    echo "install slamr modprobe --ignore-install
ungrab-winmodem ; modprobe --ignore-install slamr" >>
/etc/modprobe.conf
    echo "alias char-major-243 slusb" >>
/etc/modprobe.conf
    touch -t 0512010101 /etc/modprobe.conf #set modify
date back before modules.dep.
    #v2.02 rerwin, moved if down from here, as modules
autoloaded.
    #v2.01 bug, rerwin found needs ungrab-winmodem
before load slamr...
    #v2.02 rerwin, rmmod...
    rmmod slamr #unload for ungrab, in case slamr
misloaded as serial driver.
    modprobe ungrab-winmodem
    modprobe slamr
    modprobe slusb #ok to load both.
    sleep 1
  fi
  #and also start the daemon...
  if [ -f /usr/sbin/slmodemdshell ];then
    /usr/sbin/slmodemdshell &
  else
    echo
    echo "ERROR, /usr/sbin/slmodemdshell does not
exist."
    echo "Run Modem Wizard and setup Smartlink modem
properly."
    sleep 10
  fi
  #...note, this is created by Modem Wizard.
  fi

  if [ "$DEVM" = "/dev/ttyS_ESS0" ];then #ESS2898
Linmodem
  #No, now taken care of in /etc/modprobe.conf...
  ##to avoid conflict with pctel linmodem.ko...
  #modprobe -o linmodem linmodem_ess
  #modem wizard also put country-code param into
/etc/modprobe.conf...
  modprobe esscom #will also load esscom_hw.
  fi

  if [ "$DEVM" = "/dev/ttyS_PCTEL0" ];then #PCTEL
pct789 Linmodem
  #modem wizard put country-code param into
/etc/modprobe.conf...
  modprobe pctel #also loads linmodem,pctel_hw.
  fi

  #YOU MAY NOT NEED TO USE SETSERIAL... the docs are
vague, even
  #suggesting setserial can sometimes mess things
up...
  #v1.0.2 do not use setserial for linmodems...
  #ummm, will leave it in for now...
  #if [ "`echo "$DEVM" | grep --extended-regexp
"ttyLT0|ttySL0"`" = "" ];then
  setserial -v -b $DEVM auto_irq skip_test autoconfig
  #fi
  #v1.0.2 perhaps should also disable setserial for a
pcmcia modem, as
  #pcmcia startup in /etc/pcmcia/ calls setserial.
fi


#most modules are loaded in /etc/rc.d/rc.modules.
#after running the Puppy Ethernet wizard, the files
/etc/eth0mode,
#/etc/eth1mode and /etc/ethernetmodules may exist and
have to be
#handled here.
#/etc/ethernetmodules has extra modules to load, not
detected by
#Antonio's libhardware program (see rc.modules).
Loading...
if [ -s /etc/ethernetmodules ];then #-s tests file not
zero size.
echo "Loading extra ethernet driver modules..."
#each line of ethernetmodules has a module plus
optional params...
EMODULE="`cat /etc/ethernetmodules | head -n 1`"
modprobe $EMODULE
FMODULE="`cat /etc/ethernetmodules | head -n 2 | tail
-n 1`"
if [ ! "$EMODULE" = "$FMODULE" ];then
  modprobe $FMODULE
fi
fi
#v0.9.4 wacha reported need sleep 3 secs after loading
e1000 module...
if [ -f /etc/eth0mode ];then
sleep 3
elif [ -f /etc/eth1mode ];then
sleep 3
elif [ -f /etc/ethernetmodules ];then
sleep 3
fi

#Try to connect each ethernet interface found
INTERFACES="`ifconfig -a | grep "Link encap:Ethernet"
| cut -f 1 -d " " | tr "\n" " "`"

echo "The following interfaces have been found:
${INTERFACES}
Trying to connect"

for INTERFACE in ${INTERFACES}
do
INTERFACEFAIL=0
#code inserted by rarsa for wireless...
#Puppy v1.0.9 have Puppy internet wizard create
/etc/${INTERFACE}wireless for wireless interfaces
if [ -e /etc/${INTERFACE}wireless ] ; then
echo "/etc/${INTERFACE}wireless found"
. /etc/${INTERFACE}wireless
fi
#end rarsa patch.
#Puppy v0.8.4, have Puppy Ethernet Wizard, creates
/etc/${INTERFACE}mode
if [ ! -f /etc/${INTERFACE}mode ];then
  INTERFACEFAIL=1
  echo "Interface ${INTERFACE} has not been
configured. Use the ethernet wizard"
else
  ifconfig ${INTERFACE} up #fails if interface doesn't
exist.
  if [ ! $? -eq 0 ];then #=0 success.
  echo "${INTERFACE} interface does not exist"
  echo "...pausing for 5 seconds..."
  sleep 5
  INTERFACEFAIL=1
  else
  # let's find out if the ethernet cable plugged
in...
  #v1.0.0 both v0.18 and 0.25 now used, sometimes one
works, not the other...
  #fix from GuestToo (see Forum) ifplugstatus
sometimes does not work...
  echo "Testing if ${INTERFACE} network is alive..."
  UNPLUGGED='false'
  #  if [ ! "`ifplugstatus ${INTERFACE} | grep
--extended-regexp "unplugged|Failure"`" = "" ];then
  if [ "`ifplugstatus ${INTERFACE} | grep "link beat
detected"`" = "" ];then
    sleep 2
    if [ "`ifplugstatus-0.25 ${INTERFACE} | grep "link
beat detected"`" = "" ];then
    sleep 2
    if [ "`ifplugstatus ${INTERFACE} | grep "link
beat detected"`" = "" ];then
      sleep 2
      if [ "`ifplugstatus-0.25 ${INTERFACE} | grep
"link beat detected"`" = "" ];then #v1.0.4 extra test.
      UNPLUGGED='true'
      fi
    fi
    fi
  fi
# UNPLUGGED="false" #Line 198 Remove # in column 1 to
uncomment.
  if [ "$UNPLUGGED" = "true" ];then
    #no cable plugged in, no network connection
possible...
    echo "Ethernet cable not plugged in, or network
dead."
    echo "...pausing for 3 seconds..."
    echo -en "\\033[1;31m" #34=blue, 33=yellow,
32=green, 31=red, 35=purple, 36=aquablue, 38=black.
    echo -n "NOTICE: IF THIS IS WRONG, EDIT
/etc/rc.d/rc.network AND UNCOMMENT LINE 198"
    echo -e "\\033[0;39m"
    sleep 3
    ifconfig ${INTERFACE} down
    INTERFACEFAIL=1
  else
    #i think should bring ${INTERFACE} down first,
then bring up again...
    ifconfig ${INTERFACE} down
    if [ "`cat /etc/${INTERFACE}mode`" = "auto" ];then
#see Puppy Ethernet Wizard.
    #i'll tackle Puppy plugged into a network with a
dhcp
    #server, so we need to be assigned an ip
address...
    echo "Trying to get IP address from DHCP server
(60sec timeout)..."
    rm /etc/dhcpc/dhcpcd-${INTERFACE}.pid 2>/dev/null
#if left over from last session, causes trouble.
    rm /etc/dhcpc/dhcpcd-${INTERFACE}.cache
2>/dev/null #ditto
    rm /etc/dhcpc/dhcpcd-${INTERFACE}.info
2>/dev/null #ditto
    dhcpcd ${INTERFACE}
    if [ ! $? -eq 0 ];then #=0 success
      echo "FAILURE!"
      ifconfig ${INTERFACE} down
    else
      echo "SUCCESS! nameservers written to
/etc/resolv.conf, and"
      echo "Assigned IP address written to
/etc/dhcpc/dhcpcd-${INTERFACE}.cache"
      echo "Connection information in
/etc/dhcpc/dhcpcd-${INTERFACE}.info"
      echo "DHCP client daemon now running"
      #note, /etc/yp.conf and /etc/ntp.conf also
created.
    fi
    else
    #${INTERFACE}mode contains startup script,
created by Ethernet Wizard...
    #${INTERFACE} was configured manually...
    #eval `cat /etc/${INTERFACE}mode` ...problem,
concatenates multiple lines into one.
    . /etc/${INTERFACE}mode
    if [ ! $? -eq 0 ];then # =0 success
      echo "Error initializing interface
${INTERFACE}.!"
      ifconfig ${INTERFACE} down
    else
      echo "SUCCESS initializing interface
${INTERFACE}.!"
    fi
    fi
  fi
  fi
fi
done

#TODO: how do we handle dhcp server that needs
username and password?

#end
Avatar utente
viralex
Prode Principiante
Messaggi: 186
Iscrizione: sabato 20 ottobre 2007, 11:18
Località: viareggio
Contatti:

Re: Rete... con Ubuntu non va invece funziona con Puppy Linux!!!

Messaggio da viralex »

interessante.. io su un vecchio pentium 3 ho provato a mettere debian minimale, ma non mi riconosceva la scheda di rete... proverò puppy linux anche se il nome nn mi sembra molto professionale  ;)
webeco
Prode Principiante
Messaggi: 126
Iscrizione: mercoledì 17 ottobre 2007, 12:22

Re: Rete... con Ubuntu non va invece funziona con Puppy Linux!!!

Messaggio da webeco »

Beh..il nome è indicativo del fatto che si tratta di un sistema leggero per macchine un po vecchiotte. Infatti l'ho installato su un vecchio notebook con un pentium 2 mi pare e 64mb di ram. Ma si tratta comunque di un sistema linux con tutti i programmi e tools di cui si può avere bisogno.
ciao.
Scrivi risposta

Ritorna a “Driver e periferiche”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 12 ospiti