Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - BarrySamuels

Pages: [1] 2 3 ... 7
1
For Sale / Wanted / Wanted: Usb Mini Type A (male) Adapter/lead
« on: August 02, 2009, 05:08:47 pm »
Only just seen these replies. Thanks chaps.

I'm not convinced that the ones advertised on Ebay are the correct ones so I'll try Conics.

2
For Sale / Wanted / Wanted: Usb Mini Type A (male) Adapter/lead
« on: July 23, 2009, 09:52:55 am »
I'm looking for a USB adapter or short cable with a mini type A male plug at one end and a standard type A, male or female, at the other. Must be a mini type A and NOT a mini type B.

Thanks.

3
UK / Uk Zaurus Owners Meeting
« on: September 29, 2007, 05:19:24 pm »
I have only just come across this and think that it's quite a good idea. It doesn't seem to have attracted a lot of interest, though, does it?  

Quote
Location would have to be central UK-ish and with cheap-ish local accommodation.

You weren't thinking of Cambridge were you?    (I'm only about 50 miles away)

4
Debian / Debian On C3xxx (merged Topics)
« on: September 21, 2007, 10:34:15 am »
Quote
Quote
I have to admit I'm rather tempted by this ARM version of Debian particularly as I run Debian on 3 machines at home.

There is a different version of Murphy's Law called Barry's Law:

'If it can go wrong then he'll make it go wrong'   

In view of that I could change the microdrive in my C3100 for a new blank one and install on that. If I didn't like it or the installation failed miserably could I then replace my original microdrive and boot into my current operating system as normal?

If that is feasible where could I get a larger microdrive (8GB?) at a reasonable price preferably in the U.K.?

Ta muchly!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=167724\"][{POST_SNAPBACK}][/a][/div]
Others have reported problems using non-standard microdrives.  YMMV.  So, what's so great about your current OS on the machine?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=167726\"][{POST_SNAPBACK}][/a][/div]

It works!  

5
Debian / Debian On C3xxx (merged Topics)
« on: September 21, 2007, 09:55:34 am »
I have to admit I'm rather tempted by this ARM version of Debian particularly as I run Debian on 3 machines at home.

There is a different version of Murphy's Law called Barry's Law:

'If it can go wrong then he'll make it go wrong'    

In view of that I could change the microdrive in my C3100 for a new blank one and install on that. If I didn't like it or the installation failed miserably could I then replace my original microdrive and boot into my current operating system as normal?

If that is feasible where could I get a larger microdrive (8GB?) at a reasonable price preferably in the U.K.?

Ta muchly!

6
Quote
Hey, I just found instructions for how to enable the log for dhcpcd in, of all places, the man page!

I have only just realised something ( I am slow sometimes    ) I can't enable logging for my dhcp server 'cause I'm using the one in my router.  

Quote
Your ls of ps looks perfect...when you can, give me an md5sum...I'm wondering if we have the same file...my ls looks similar:

-rwxrwxr-x 1 root root 89312 Apr 12 17:00 /bin/ps


602103a27e13b84221a56532d27f8ecb  ps

7
Quote
I take it there is no log of dhcpcd's progress?

Good guess.  

Quote
Look for logs in /tmp/ and in /var/log/ when you are actually online with kismet.

The only relevant logs appear to be for Kismet and that's only wireless network information.

Quote
Please paste in your results...whether you meant "shows the details for /bin/ps" or "shows a symlink pointing to /bin/ps" is not clear without me eyeballing your output.


-rwxrwxr-x   1  root  root  89312  Apr 5  2005  /bin/ps

Quote
I don't know what Skype does.

You what? I thought everybody knew of Skype. It's one of those Internet telephone type thingies - if I might use the technical term - talk to someone on the other side of the world for free.  

I'll try and get round to providing what other information I can a little later on.

8
Quote
When you do

which ps | xargs ls -l

What do you get?  If you follow any symlinks and it points to busybox, then it won't be very useful output from ps.

It points to /bin/ps

Quote
If it is not a busybox ps, then how about pasteing in or uploading a copy of 'ps ax' from when you are online here?

  PID TTY      STAT   TIME COMMAND
    1 ?        S      0:21 init
    2 ?        SW     0:00 [keventd]
    3 ?        RWN    1:15 [kapm-idled]
    4 ?        SW     0:00 [off_thread]
    5 ?        SW     0:00 [battchrgon]
    6 ?        SW     0:00 [battchrgoff]
    7 ?        SW     0:00 [sharpsl_bat]
    8 ?        SWN    0:00 [ksoftirqd_CPU0]
    9 ?        SW     0:00 [kswapd]
   10 ?        SW     0:00 [bdflush]
   11 ?        SW     0:01 [kupdated]
   12 ?        SW     0:00 [rcscan]
   13 ?        SW     0:00 [rcenirq]
   14 ?        SW     0:00 [buzzer]
   18 ?        SW     0:00 [snd_hp]
   20 ?        SW     0:00 [mtdblockd]
   43 ?        SWN    0:20 [jffs2_gcd_mtd3]
   81 ?        S      0:00 /sbin/cardmgr
   94 ?        SW     0:00 [kjournald]
   98 ?        SW     0:00 [kjournald]
  100 ?        SW     0:00 [kjournald]
  153 ?        S      0:00 /sbin/sdmgr -d /dev/sd_slotstat -c /etc/sdcard/sd.con
  175 ?        S      0:00 /usr/sbin/inetd
  185 ?        S      0:00 [rpc.portmap]
  195 ?        S      0:00 /home/QtPalmtop/bin/atd /var/spool/at
  212 ?        DW     0:00 [usbh-moni]
  257 ?        SW     0:00 [krfcommd]
  329 ?        S      0:00 hcid: processing events
  335 ?        S      0:00 /usr/sbin/sdpd
  348 ?        S      0:00 /sbin/launch
  349 ?        S      0:01 /sbin/shsync
  350 ?        S      0:00 /bin/sh ./qpe.sh
  374 ?        SN     0:37 [qpe]
  375 ?        SN     0:00 [qeserver]
  376 ?        SN     0:08 [qeserver]
  396 ?        SN     0:13 launcher -qcop /tmp/qcop-msg-launcher -display Transf
  655 ?        SW     0:00 [kjournald]
 2580 ?        SN     0:02 [qkonsole]
 2581 ttya0    SN     0:00 -bash
 2952 ?        SN     0:00 /sbin/dhcpcd -t 30 wlan0
 2959 ?        SWN    0:00 [rpciod]
 2960 ?        SW     0:00 [lockd]
 2961 ttya0    RN     0:00 ps ax

Quote
Also, do you have any kind of log showing what happens when you go online/use kismet?

I don't think so.

The interesting thing is that the only difference in that ps listing between on-line and off-line is that

 2952 ?        SN     0:00 /sbin/dhcpcd -t 30 wlan0
 2959 ?        SWN    0:00 [rpciod]
 2960 ?        SW     0:00 [lockd]
 
appears between the two occurences of ttya0

I don't have a chat client but I do have Skype.

9
Quote
Sigh...let's try another time...

Maybe just look over the output of 'ps ax' with your eyes, and find all the lines that contain ttyS when the CF card is plugged in and shows in the taskbar.  And see if there are any other tty's in addition to ttya0 that show in the list.  Hopefully your eyes will pick up on whatever grep isn't fetching for us.

I did 'ps ax' and the only occurrences of ttyS in the list are the ones I've already mentioned. Perhaps this version of ps ain't so good.

Quote
If your system knows the CF card is plugged in, and it's on ttyS3, then it has to show up somewhere on the list, esp. when you're running kismet.

I got the ttyS3 information from qpeGPS which has ttyS3 set as the Com port.

Quote
And have you ever seen any lines showing a ttyS0 in the list?  If not, that's great for my script.  If yes, then it will be a good test, but I'd like to see what those ttyS0 lines look like.

I suppose the answer there is no.

10
Quote
Ah!  That's what I needed to know.  My script could work, but I still don't know if you have ttyS0 running as well.  My hunch is that you entered something other than "ps ax | grep tty" or that you weren't using the wireless when you ran the above.

Oh - no - I - didn't. :-))  Just to be sure I entered 'ps ax | grep tty'  again and got the same result.

Quote
That's cool.  So, next time you do run that script, I'd suggest you maybe background it with an ampersand at the end of the command line, or so something to see if you have ttyS0 also running.

I ran the script normally by clicking the icon then opened a console and did the same again and got the same results. Is that sufficient?

Quote
But can you try the "ps ax | grep pppd" and see what you get when you are not using wireless?  And show the command you entered as well as it's output?

Oops...it was my mistake.  I see when I run "ps aux | grep pppd" that the tty part gets cut off:

root     31707  0.0  0.5  1984  160 ttyS3    SN   15:41   0:00 /usr/sbin/pppd tt

Line was too long <:(  Oh well.

Grepping for pppd should cover that...

I entered 'ps ax | grep pppd' (not using wireless) and the result was:

11087  ttya0    SN    0:00  grep pppd

Quote
Barry, I believe your trouble getting the card to go online the next time around is not due to using stop, but because of the qcop Network messages sent by other apps. Do you use a browser when you are connected? Or email or a chat client?


No. The script that I run is for Kismet only i.e. network scanning and is not used with anything else.

11
Quote
Duh, I remember hearing some ROMs use different kernel networking stuff.  Um, can you grep wlan when it's active on your Zaurus?  wlan doesn't use a tty?  I'm baffled.

Be baffled no longer.  
zaurus 6302 0.0 0.7 1304 476 ttya0 SN 13:39 0:00 grep wlan

Quote
Which version of Qtopia and which ROM did you say you had?

Qtopia v1.5.4. The ROM is the standard Sharp ROM v1.01 JP.

Quote
What does your Z call the slot your CF card is in?  I don't remember another command other than to grep the ps output for details, at least not after being up most of the night.

CF card is ttyS3

Quote
Ah...if it's a pppd connection,

It ain't

12
Quote
Oooh...that sounds very familiar.

Don't work too hard at it...in about four weeks, after I deal with some other deadlines, I expect to be asking you to test the script I've written that resets the network applet.  If it works, you should be able to simply call qreset from your script before each time you go to start a connection.

Sounds good - I can wait.  

Quote
My concern has been that I only have one tty active, and don't know whether it will work properly for multiple active tty processes.   I've tried asking both here and at the trolltech mailing list how to direct the 'stop' to a specific tty or pid, and gotten no answers.   From looking  at the qtopia docs, it may not be officially possible.   I guess it might be possible with a lot of painfully worked out tweaking of the qcop message stack to do it, to ensure that the process you want to stop is at the top.

Can you do the following for me, once with wlan active, and once when you are totally offline :

ps ax   |  grep tty

I've been totally offline for years - Oh you mean the Zaurus.  

Offline:

zaurus    4683  0.7  2.2  2020 1420 ttya0    SN   12:00   0:00 -bash
zaurus    4686  0.0  1.3  2548  844 ttya0    RN   12:02   0:00 ps aux
zaurus    4687  0.0  0.7  1304  476 ttya0    SN   12:02   0:00 grep tty

Online:

zaurus    4683  0.5  2.2  2020 1424 ttya0    SN   12:00   0:00 -bash
zaurus    5056  0.0  1.3  2548  844 ttya0    RN   12:02   0:00 ps aux
zaurus    5057  0.0  0.7  1304  476 ttya0    SN   12:02   0:00 grep tty

Is that what you wanted?

13
Quote
Don't want to disappoint you, but I'm not confused at all.

This is linux, after all, and that gives us the ability to write scripts to make things easier for us.  I think that was a great idea.

Aw shucks - you're only saying that because it's true.  

Quote
What command did you use to determine if the connection was up?  I've used route or ifconfig, but also sometimes use grep to check my log and make sure authentication has been completed.

The short answer's 'grep'. I'm using it for a wireless network connection and I now have at the start of my script:

Ok=0
Count=0
MaxTries=10
while (( !$Ok )) && (( $Count <= $MaxTries )); do
   qcop QPE/Network 'start(QString,QString)' "/home/root/Applications/Network/modules/WLAN0.conf" ""
   ifconfig | grep 'wlan' &>/dev/null
   if [ $? = 0 ] ; then
      Ok=1
   fi
   let Count=$Count+1
   sleep 2
done

That seems to work.

I also have   qcop QPE/Network 'stop()'   at the end but I'm not sure it's working properly without some 'cardctl' commands to eject/insert the card. It stops the network Ok but the network may not restart without me ejecting and re-inserting the card (I can't remember    ). I've got to look into it more.

14
Quote
Barry,

Do you mind my asking why you wanted to do it in a script?  Most people prefer GUIs, although I also am starting my dialup connections from the command line so I have more control over what's going on, although I've been using opie-sh to make my selection of which connection.

sdjf
[div align=\"right\"][a href=\"index.php?act=findpost&pid=157011\"][{POST_SNAPBACK}][/a][/div]

Ah! Now that's a long story.

It all started with the GUI for kismet. I couldn't get it to work for me so I set up a script to do it for me. I renamed the original kismet_qt script, called my new script kismet_qt. so that it would then start when I clicked the kismet icon. My new script starts Kismet Server first then calls the renamed kismet_qt.

That worked for me but as I don't use it frequently I often forgot to start the network connection first. I've now included an extra bit in my script which starts the network connection, waits until it's up and running then proceeds to start the kismet stuff all from clicking an icon. Just the sort of thing someone of my age (70) with a bad memory needs.

Thoroughly confused? Well you did ask.  

15
This is to notify the world in general that sdjf is a splendid chap!

His suggestion does, indeed, work and Qtopia seems aware of that!  

Just what I need - thanks sdjf.

(Everything comes to him who waits)

Pages: [1] 2 3 ... 7