• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: 1 ... 25 26 [27] 28 29 30
391  General Category / General Discussion / Re: Setting up sheevaplug with wlan on: August 24, 2009, 05:23:12 PM
Might be related to things like this:

http://patchwork.kernel.org/patch/38530/

There seem to be a few post about "No probe response from AP" timeouts since 2.6.30-rc3.  Apparently fixed at 2.6.31.2.  But they may be driver-specific (and neither is RTL8187).

My scripts to re-associate (which are at least a workaround) are these:
5-min crontab job (/etc/cron.d/WifiCheck)
Code:
# Check the Wifi status
#
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/local/bin

01-58/5 * * * * root /local/bin/wireless-check
The actual script (/local/bin/wireless-check):
Code:
#!/bin/sh
#
if=wlan0

if iwconfig $if | grep -q Not-Associated; then
   : Not associated, so get it to retry
else
   exit     # All OK
fi

iwconfig $if | Mail -s 'Wifi lost association on plug' {my-mail-address}
# Force re-association
iwconfig $if ap auto
(I've got mail setup...)
The result, earlier today, showed this in in dmesg (as well as mailing me the Not-Associated details):
Quote
wlan0: no probe response from AP 00:02:cf:xx:xx:xx - disassociating
wlan0: direct probe to AP 00:02:cf:xx:xx:xx try 1
wlan0: direct probe to AP 00:02:cf:xx:xx:xx try 2
wlan0: direct probe to AP 00:02:cf:xx:xx:xx try 3
wlan0: direct probe to AP 00:02:cf:xx:xx:xx timed out
wlan0: direct probe to AP 00:02:cf:xx:xx:xx try 1
wlan0: direct probe to AP 00:02:cf:xx:xx:xx try 2
wlan0 direct probe responded
wlan0: authenticate with AP 00:02:cf:xx:xx:xx
wlan0: authenticated
wlan0: associate with AP 00:02:cf:xx:xx:xx
wlan0: RX ReassocResp from 00:02:cf:xx:xx:xx (capab=0x431 status=0 aid=4)
wlan0: associated
392  General Category / General Discussion / Re: Reflash help needed! on: August 24, 2009, 04:52:36 PM
You are not alone.  Other have seen some USB sticks fail.
Points that have cropped up (IIRC):
a) Has to be FAT32
b) Has to be directly on the partition (e.g. /dev/sda1) not on the whole device (e.g. /dev/sda) 
c) The USB stick has to be 2GB or less.
393  Linux Stuff / Linux distributions / Re: Unable to boot after apt-get dist-upgrade on: August 23, 2009, 04:28:16 PM
<Guessing>
  Your boot line mentions /boot/uInitrd and /boot/uImage, but you've got these on a partition that gets mounted as /boot.  So I expect these are actually /uInitrd and /uImage wrt to the actual partition they are one.
Try redoing the bootcmd_mmc setting.
</Guessing>
394  General Category / General Discussion / Re: Setting up sheevaplug with wlan on: August 23, 2009, 01:16:26 PM
My wifi is also a little flakey at the moment. After about a day it loses association with the AP.
So I've added a script to re-associate when this happens.
No packet loss on ping, though (although I have just changed the aerial and move things around).
I have one of these.  And yes - it does get quite warm.
395  General Category / General Discussion / Re: How to set up a network printer? on: August 23, 2009, 01:01:16 PM
>> Anybody got any ideas at this point?

Are you any good on Apache access configuration?  cups uses the same style.
Again, in cupsd.conf you'll find things like:
Quote
<Location />
  # Allow remote administration...
  Order allow,deny
  Allow @LOCAL
</Location>
Which means it will allow access from any address which resolves back to a name that is not in any domain.  So, if you edit your /etc/hosts file to add an entry for the client that is trying to connect and make sure that the first name part is just the short name, e.g:
Quote
192.168.1.105           ps3 ps3.local
then it should work.  Or you could edit all of the @LOCAL entries in cupsd.conf...

At this point "man cupsd.conf" might be a good idea.



396  General Category / Application ideas and development Q/A / Re: lighttpd + php5 + mysql on: August 23, 2009, 12:50:16 PM
If you don't make /tmp world-writeable (with the sticky-bit set) then it will be more than php that has problems.
397  General Category / General Discussion / Re: How to set up a network printer? on: August 22, 2009, 06:55:25 PM
This (the 127.0.0.1:631) means your cups is set to listen only on the local interface, so your not going to be able to talk to it from any other system.
Something in your /etc/cups/cupsd.conf file will be setting this.
The usual way to fix this would be via the web interface - but that's Catch-22.
I suggest you look at that file with an editor and look for a line with 127.0.0.1 in it.  Possibly:
Code:
Listen 127.0.0.1:631
Just comment it out (the default should be listen on all interfaces)
398  General Category / General Discussion / Re: How to set up a network printer? on: August 22, 2009, 04:53:30 PM
The request was to telnet to port 631, not just telnet (which will go to the telnet port - 23)
First - lets check you really have a cups server running.
On the plug, type:
Code:
netstat -tan | grep LISTEN
It should show a listener on port 631, so a line like this:
Code:
tcp        0      0 0.0.0.0:631                 0.0.0.0:*                   LISTEN
399  General Category / General Discussion / Re: tun device ? openvpn etc on: August 21, 2009, 07:03:24 PM
Probably because the tunnel only exists once something decides to create it. It needs a destination (the light at the other end of the tunnel).  So unless an application has an active one set-up there is no such device.
400  General Category / General Discussion / Re: Can't connect to sheevaplug from outside home network on: August 21, 2009, 06:58:44 PM
You say you've forwarded ports.  But have you allowed the protocol through the firewall.
I have a ZyXel router and I need to setup both for incoming traffic to work. i.e. I have to both route it to the internal system I desire and allow it to pass from WAN to LAN.
401  General Category / General Discussion / Re: Setting up sheevaplug with wlan on: August 21, 2009, 06:54:04 PM
I've got the cherokee web server running on mine (which is what I was running on my Asus wl500g, and was available so it made it rather simple to move everything over).
402  General Category / General Discussion / Re: Lighttpd & sftp on: August 21, 2009, 06:49:13 PM
I'm wondering is there way to ftp or sftp into the sheeva? I found that sftp is installed on the sheeva, but I don't know the password to get into it (it's not nosoup4u)
That is the password, but you have to tell it to be root if you aren't on the client system, so
Quote
sftp root@plug
  To ftp in you'd have to install an ftp server (run apt-cache search ftpd)
403  Linux Stuff / General Linux questions / Re: Problem with cronjob on: August 20, 2009, 04:42:11 PM
Not a good idea to post username/pwd to a forum.

If that's all of the script then how do you know it isn't working?  It doesn't do anything apart from set some variables!

If the posting was incomplete then the problem *may* be that you set a specific PATH in your interactive account, which won't be set for cron.

Getting the script to write all of its output to a log when run non-interactively would help you:

Code:
[ -t 0 ] || exec > /mnt/mybook/Torrent/cron.log 2>&1
404  General Category / General Discussion / Re: tun device ? openvpn etc on: August 20, 2009, 04:29:05 PM
FWIW: I get the same ifconfig message on my standard Intel desktop after "modprobe tun".  But vpnc is happy to use it.
405  General Category / General Discussion / Re: Setting up sheevaplug with wlan on: August 20, 2009, 04:14:54 PM
OK - you'll need the alpha6 install and the 2.6.30.5 kernel to get an rtl8187 driver.
The alpha6 update is simple to do, provide you have a small USB stick and an Intel Linux PC handy.
The Netgear should be OK.  Certainly the WG111GE I have (my son has....)  is an RTL8187, but I've just noticed that it says WG111v3 on the box.  From a quick web search it seem v2 was Realtek too, though.
Pages: 1 ... 25 26 [27] 28 29 30