LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-10-2002, 01:46 PM   #16
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30

you need to be root.
 
Old 01-10-2002, 02:55 PM   #17
prodigius
Member
 
Registered: Oct 2001
Location: Stockbridge, south of Atlanta, GA
Distribution: Slackware
Posts: 59

Rep: Reputation: 15
errr again

uh,

i ran it as root and still got the same...
i did notice one other problem:
i tried for shits and grins to try a dial up (56k) connection and i was not able to even do that...

in the past hour i have reinstalled mandrake with minimum stuff... now i am able to connect via modem but not dsl...
 
Old 01-10-2002, 03:01 PM   #18
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
You need your /etc/ppp/options to have the adsl stuff in it, check the howto at
http://www.linux-usb.org/SpeedTouch/howto.html
Jim
 
Old 01-10-2002, 03:51 PM   #19
prodigius
Member
 
Registered: Oct 2001
Location: Stockbridge, south of Atlanta, GA
Distribution: Slackware
Posts: 59

Rep: Reputation: 15
a simple question:

is that i need to compile a new kernel?

i connected with the alcatel under mandrake in the automated box they have. it didnt stay connected...it was being timed like it was connected yet it says i wasnt...

i suspect some type of daemon was running because when i tried to connect with a 56 k modem for some reason THAT wouldnt work...

what the hell is wrong with this damn thing?
 
Old 01-10-2002, 03:55 PM   #20
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
this is exactly what happened with me.
stay calm
DO NOT reinstall
post the contents of your etc/ppp/options (remove the passwords
Jim
 
Old 01-10-2002, 07:51 PM   #21
prodigius
Member
 
Registered: Oct 2001
Location: Stockbridge, south of Atlanta, GA
Distribution: Slackware
Posts: 59

Rep: Reputation: 15
hehe

big jim:

my friend it is now too late, i have gone and done the unconscienable...i have set my windows box as my router and moved the linux distro to a client computer and now can hook up to the web with no problem whatsoever...
 
Old 01-10-2002, 08:23 PM   #22
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
You'll be back to it. The BSOD is never far away when windoze is proxying.
 
Old 01-10-2002, 08:29 PM   #23
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
Try this howto, it seems to describe your problem and how to get around it.

http://forums.kieser.net/view.php3?b...ere=1008021566
 
Old 01-10-2002, 11:38 PM   #24
prodigius
Member
 
Registered: Oct 2001
Location: Stockbridge, south of Atlanta, GA
Distribution: Slackware
Posts: 59

Rep: Reputation: 15
uh... it works

big jim...what can i say?

when i saw where you wrote about the bsod most likely coming for me i all of a sudden started paying attention hehe...

that website was totally on the money except for just a few changes...

that speedtouch in /usr/share/speedtouch/speedtouch should read /usr/share/speedtouch/speedtouch.sh start instead...

only one problem now...how do i turn it off? hehe
 
Old 01-11-2002, 06:21 AM   #25
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
Prodigius
The line will drop every 3/7 or so, so don't worry about having to switch it off! (just rerun pppd when that happens).
Congratulations! It's incredibly satisfying when it works isn't it. Took me nearly 5 weeks to figure my problem out.
Jim
 
Old 01-11-2002, 07:30 AM   #26
prodigius
Member
 
Registered: Oct 2001
Location: Stockbridge, south of Atlanta, GA
Distribution: Slackware
Posts: 59

Rep: Reputation: 15
err how do i...?

how do i rerun pppd?
 
Old 01-11-2002, 07:58 AM   #27
prodigius
Member
 
Registered: Oct 2001
Location: Stockbridge, south of Atlanta, GA
Distribution: Slackware
Posts: 59

Rep: Reputation: 15
errr... rerunning pppd

i seem to have found a script for rerunning pppd:



-----------------------------------------------
#!/usr/bin/perl
#use strict;
use Net::Ping;

my $line;my $dummy;my $peer;my $ip1;my $ip2;my $ip3;my $ip4;my $p;my $field;
my $status="OK";
my $sleep=60;
my $peermissing=0;
my $peerunreach=0;
my $oldrecvpack=0;
my $recvpackets=0;

# sub performing restart of pppd and relevant process
##
sub restartppp {
system("killall pppd;pppd");
sleep 20;
system("/etc/rc.d/init.d/snortd restart");
}

# sub performing restart of usb and relevant process
##
sub restartusb {
system("/etc/rc.d/init.d/adsl restart");
}

# sub to update number of packets received on ppp0
##
sub updatepackets {
my $inpackets=0;
my $line;
my $dummy;
$line=`ifconfig ppp0 | grep "Paquets Re"`;
chomp $line;
($dummy,$inpackets)=split(":",$line);
$line=$inpackets;
($inpackets,$dummy)=split(" ",$line);
return $inpackets;
}

# Start of script
##

#Update number of packets the first time
$recvpackets=updatepackets();
$oldrecvpack=$recvpackets;
#open(LOG,">/var/log/checkpeer.log");
print "Starting to monitor ppp0 link\n";
while ($status ne "quit"){
#Testing if the ppp interface is OK by fetching the peer IP address
$line=`ifconfig ppp0 | grep inet `;
chomp $line;
($dummy,$dummy,$field)=split (":",$line);
($peer,$dummy)=split (" ",$field);
($ip1,$ip2,$ip3,$ip4)=split ("\\.",$peer);
if ($ip1<=0 || $ip1>255 || $ip2<=0 || $ip2>255 || $ip3<=0 || $ip3>255 || $ip4<=0 || $ip4>255){
$status="peer missing";
}
else{
#Test if we have received new packets on ppp0 to save pinging peer
$recvpackets=updatepackets();
if ($recvpackets > $oldrecvpack){
$oldrecvpack=$recvpackets;
$status="packets detected";
}
elsif ($recvpackets < $oldrecvpack){
$oldrecvpack=$recvpackets;
$status="interface reset";
}
else {# No packets received lately.Checking peer by pinging it ...
$p = Net::Ping->new("icmp");
if ($p->ping($peer,1)){
$status="peer reacheable";
}
else{
$status="peer unreacheable";
}
$p->close();
#Update packets count so next comparison takes the ping into account
$recvpackets=updatepackets();
$oldrecvpack=$recvpackets;
}
}

#From here, we take different actions depending on the previous results
if ($status eq "peer missing"){
$peermissing++;
print scalar(localtime()).": PPPD is being started (peer missing)\n";
restartppp();
#Increase sleep time each time in case pppd needs more time
$sleep=30+$peermissing*5;
if ($peermissing >= 5){
print scalar(localtime()).": USB is being restarted\n";
restartusb();
$sleep=120;
}
}
elsif ($status eq "peer unreacheable"){
$peerunreach++;
$sleep=5;
print scalar(localtime()).": PEER $peer is down ($peerunreach time(s))"."\n";
if ($peerunreach >= 5){
print scalar(localtime()).": PPPD is being restarted (peer unreacheable)\n";
restartppp();
#Increase sleep time each time in case pppd needs more time
$sleep=15+$peerunreach;
}
}
elsif ($status eq "packets detected"){
$sleep=30;
print scalar(localtime()).": PPP0 traffic increased to $recvpackets packets. Skipping ping"."\n";
}
elsif ($status eq "interface reset"){
$sleep=20;
print scalar(localtime()).": PPP0 interface reset $recvpackets packets. Skipping ping"."\n";
}
elsif ($status eq "peer reacheable"){
print scalar(localtime()).": PEER $peer is alive"."\n";
$sleep=60;
$peermissing=0;
$peerunreach=0;
}
print scalar(localtime()).": SLEEP for $sleep seconds\n";
sleep $sleep;
}
-------------------------------------------------

save as checkpeer.pl, run> perl checkpeer.pl

->this will rerun pppd 5 times in the event of a down connection...

what to do if pppd doesnt restart after 5 tries?
 
Old 01-11-2002, 08:28 AM   #28
prodigius
Member
 
Registered: Oct 2001
Location: Stockbridge, south of Atlanta, GA
Distribution: Slackware
Posts: 59

Rep: Reputation: 15
reboot prob's

i noticed that often when i reboot there is a line that says the system is trying to disconnect usb devices1 and 2. it seems to get stuck permanently...i often will manually turn the box off (i have ext3 fs but i still worry)...

what does that mean? do i need to un mount the /dev/usbdvfs?
 
Old 01-11-2002, 09:02 AM   #29
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
One of the howtos covers this, you need to killall speedtouch processes, and I think USB as well.
 
Old 01-12-2002, 12:33 AM   #30
prodigius
Member
 
Registered: Oct 2001
Location: Stockbridge, south of Atlanta, GA
Distribution: Slackware
Posts: 59

Rep: Reputation: 15
uhh

i know i may be asking a lot but i have this problem that must be solved...

at shutdown i get :

usb device1 shutting down

and then it simply freezes and then i have to manually shut it off- which is not too bad because im using ext3 and it tends to fix itself at bootup but i dont believe this is the proper way to get it done...

have any idea how i can shutdown my connection and usb devices properly?

thank you for all your help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Alcatel Speed Touch USB 330 + SuSE 9.1 Dreamcatcher Linux - Hardware 6 08-03-2004 01:09 PM
alcatel speed touch usb in mandrake 9.1 rybing Linux - Newbie 3 12-18-2003 10:22 AM
Alcatel Speed Touch usb in mandrake 9.1 rybing Linux - Hardware 0 12-17-2003 03:31 PM
Again: Alcatel Speed Touch USB kingelessar Linux - Hardware 13 10-06-2003 01:00 PM
QNX + Alcatel Speed Touch USB Modem shawn Linux - Newbie 1 02-12-2002 08:10 AM


All times are GMT -5. The time now is 04:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration