Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 01 Aug 2014, 04:12
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Announcements
Slacko Puppy 5.3.1 Released
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 8 of 19 [282 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8, 9, 10, ..., 17, 18, 19 Next
Author Message
smthers

Joined: 17 Oct 2011
Posts: 9

PostPosted: Tue 01 Nov 2011, 17:43    Post subject:  

tasmod wrote:
smthers,

I'll dig out my old laptop which has wireless and take a look see what I can do.


Wow, cheers bud. Cool
Back to top
View user's profile Send private message 
tasmod


Joined: 04 Dec 2008
Posts: 1461
Location: North Lincolnshire. UK

PostPosted: Wed 02 Nov 2011, 06:42    Post subject:  

All,

Ok, only being familiar with basic wireless setup I need some help from knowledgeable wifi users.

To test whether connection was up I was checking for ip_tables as the guide.

Is there some straightforward way to check the wi-fi connection is active and working as well?

I lsmod my own wi-fi and could only find ath5 as a pointer, obviously this would be different for each user, so no real use. i need to check for active wi-fi so Psync can then run in autostart.

_________________
Rob
-
The moment after you press "Post" is the moment you actually see the typso Cool
Back to top
View user's profile Send private message Visit poster's website 
jim3630


Joined: 13 Feb 2011
Posts: 792
Location: Northern Nevada

PostPosted: Wed 02 Nov 2011, 13:25    Post subject:  

tasmod wrote:
All,

Ok, only being familiar with basic wireless setup I need some help from knowledgeable wifi users.

To test whether connection was up I was checking for ip_tables as the guide.

Is there some straightforward way to check the wi-fi connection is active and working as well?

I lsmod my own wi-fi and could only find ath5 as a pointer, obviously this would be different for each user, so no real use. i need to check for active wi-fi so Psync can then run in autostart.


tasmod,

ifconfig -a will show active interfaces.

---------
from ppm ettercap will show nice graphics of active interface, actually a quantifiable graphics of active interfaces.

-------
from ppm iftop is another nice one.

console:
iftop -i <interface> in my case wlan0

then toggle with "h"

---
may not be in slacko repo but this one should work. works in racy just remove phony gz.
-----

removed iftop as does not work in slacko-pae

Last edited by jim3630 on Wed 02 Nov 2011, 18:55; edited 1 time in total
Back to top
View user's profile Send private message 
tasmod


Joined: 04 Dec 2008
Posts: 1461
Location: North Lincolnshire. UK

PostPosted: Wed 02 Nov 2011, 15:35    Post subject:  

jim,

Thanks for tip. I only need a simple one liner type, I don't want to install anything else.

I had been using ifconfig this morning to determine the active interfaces.

I started up my old laptop and used Frisbee to get wifi working. That's when I discovered a glitch with this method. ifconfig shows active interfaces but not necessarily connected ones.

Using Frisbee I can turn wifi on and off but this doesn't affect ifconfig.

iwconfig does however show the wifi ESSID when connected and removes it when not, so I'm working on that at the moment in between html etc etc. Too many calls on my time just now.

_________________
Rob
-
The moment after you press "Post" is the moment you actually see the typso Cool
Back to top
View user's profile Send private message Visit poster's website 
tasmod


Joined: 04 Dec 2008
Posts: 1461
Location: North Lincolnshire. UK

PostPosted: Wed 02 Nov 2011, 17:49    Post subject:  

smthers,

Try this one, I've tested it on my wired and wireless 'puters. It should distinguish between either.

In the case of wifi, although it tests out OK I added an extra 10 second sleep just to be sure it's up before running Psync autostart.

As before rename by removing .tar.gz and place in /root/Startup

Oh and don't forget to check permissions are set, right click, then properties and ticks should be on exec.
timesync.sh.tar.gz
Description 
gz

 Download 
Filename  timesync.sh.tar.gz 
Filesize  548 Bytes 
Downloaded  134 Time(s) 

_________________
Rob
-
The moment after you press "Post" is the moment you actually see the typso Cool

Last edited by tasmod on Thu 03 Nov 2011, 06:39; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website 
jim3630


Joined: 13 Feb 2011
Posts: 792
Location: Northern Nevada

PostPosted: Wed 02 Nov 2011, 17:52    Post subject:  

tasmod wrote:
jim,

Thanks for tip. I only need a simple one liner type, I don't want to install anything else.

I had been using ifconfig this morning to determine the active interfaces.

I started up my old laptop and used Frisbee to get wifi working. That's when I discovered a glitch with this method. ifconfig shows active interfaces but not necessarily connected ones.

Using Frisbee I can turn wifi on and off but this doesn't affect ifconfig.

iwconfig does however show the wifi ESSID when connected and removes it when not, so I'm working on that at the moment in between html etc etc. Too many calls on my time just now.


Rob,

understand about too many calls. don't recall any one line types.probable some code can show tx or rx rate since that is displayed in the program it must have a source.

in slacko pae now and iftop does not work here.
Back to top
View user's profile Send private message 
tasmod


Joined: 04 Dec 2008
Posts: 1461
Location: North Lincolnshire. UK

PostPosted: Wed 02 Nov 2011, 18:01    Post subject:  

Hi Jim,

I went with the ESSID in iwconfig, along with a conditional check for either wired or wireless.

If it doesn't find wi-fi it just runs anyway.

If it finds wi-fi it loops until ESSID active then runs Psync autostart. Although it worked fine on my wi-fi laptop, just to be sure i added a 10 second sleep before psync ran.

_________________
Rob
-
The moment after you press "Post" is the moment you actually see the typso Cool
Back to top
View user's profile Send private message Visit poster's website 
jim3630


Joined: 13 Feb 2011
Posts: 792
Location: Northern Nevada

PostPosted: Wed 02 Nov 2011, 19:08    Post subject:  

tasmod wrote:
Hi Jim,

I went with the ESSID in iwconfig, along with a conditional check for either wired or wireless.

If it doesn't find wi-fi it just runs anyway.

If it finds wi-fi it loops until ESSID active then runs Psync autostart. Although it worked fine on my wi-fi laptop, just to be sure i added a 10 second sleep before psync ran.


Hi Rob,
both are handy. ESSID indicator in iwconfig is built-in and that's good to know. noticed have to reset clock in slacko couple of times so far will try out your script. thanks
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3357
Location: Oregon

PostPosted: Thu 03 Nov 2011, 03:56    Post subject:  

I do not know if this would help, but a utility I had made called "system information" has a button for Wireless Interfaces that seems to give a lot of information on what it finds for the WIFI interface.
If you do not have it, it can be found here.

It also will list all kernel modules loaded. but it does not give as much detailed information as HardInfo.
Back to top
View user's profile Send private message 
tasmod


Joined: 04 Dec 2008
Posts: 1461
Location: North Lincolnshire. UK

PostPosted: Thu 03 Nov 2011, 06:40    Post subject:  

Well 4 people downloaded so far.

Is that to look at my crappy code or is it working for you ?

_________________
Rob
-
The moment after you press "Post" is the moment you actually see the typso Cool
Back to top
View user's profile Send private message Visit poster's website 
jim3630


Joined: 13 Feb 2011
Posts: 792
Location: Northern Nevada

PostPosted: Thu 03 Nov 2011, 12:58    Post subject:  

tasmod wrote:
Well 4 people downloaded so far.

Is that to look at my crappy code or is it working for you ?


so far works for me.
Back to top
View user's profile Send private message 
smthers

Joined: 17 Oct 2011
Posts: 9

PostPosted: Thu 03 Nov 2011, 13:13    Post subject:  

tasmod wrote:
Well 4 people downloaded so far.

Is that to look at my crappy code or is it working for you ?


Appreciate the effort you went to but it's still not working for me - sorry! Embarassed

As before, if I restart X it works its magic, but not on a cold boot. Crying or Very sad
Back to top
View user's profile Send private message 
tasmod


Joined: 04 Dec 2008
Posts: 1461
Location: North Lincolnshire. UK

PostPosted: Thu 03 Nov 2011, 15:02    Post subject:  

Don't understand that.

When you first boot, X is started then Startup contents are run.

I'll mod the code to write to a file so we can see what's happening.

How are you checking what happens, Psync autostart is silent?

Try this one. After you have installed it, reboot, wait till desktop then about another minute. There should be a text file called robs as /tmp/robs.
See what is in it, beware do not post contents unless you don't mind your ESSID name being shown.

EDIT:
Just run it on both my machines, wired and wireless. Works faultless, I reset clocks 3 minutes slow in each case and at boot it adjusted them.
When it's run there should be a 'settertime' file as well in /tmp. This shows it has run.
After all checks above, run it manually and check the version. Should be 2.7
timesync.sh.tar.gz
Description 
gz

 Download 
Filename  timesync.sh.tar.gz 
Filesize  755 Bytes 
Downloaded  132 Time(s) 

_________________
Rob
-
The moment after you press "Post" is the moment you actually see the typso Cool
Back to top
View user's profile Send private message Visit poster's website 
smthers

Joined: 17 Oct 2011
Posts: 9

PostPosted: Fri 04 Nov 2011, 13:56    Post subject:  

@tasmod that did the trick. Many thanks! Cool
Back to top
View user's profile Send private message 
tasmod


Joined: 04 Dec 2008
Posts: 1461
Location: North Lincolnshire. UK

PostPosted: Fri 04 Nov 2011, 15:52    Post subject:  

Erm, that doesn't compute. All I did was add lines sending text to a file for reporting purposes.

The rest of the code was same as previous, so in effect nothing altered.

Odd!

OK, well I'll add this to Psync v2.8 as it doesn't hurt anything, it should improve Psync autostart for slow wifi startups. For wired it makes no difference.

I'll remove the code lines for file write.

_________________
Rob
-
The moment after you press "Post" is the moment you actually see the typso Cool
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 8 of 19 [282 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8, 9, 10, ..., 17, 18, 19 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Announcements
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0828s ][ Queries: 12 (0.0070s) ][ GZIP on ]