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 - NickNak

Pages: [1]
1
Angstrom & OpenZaurus / Network Bridge Help And Discussion
« on: September 04, 2006, 03:19:38 pm »
Sorry about the delay in replying.  It's just dawned on me that bridging is not appropriate for the case where you have a single PC connected directly to the internet (i.e. with a public IP address assigned by your ISP, e.g via a cable or ADSL modem), it is only of use where your PC connects via some kind of router and hence gets assigned a private IP address (e.g. 192.168.1.1). In this case you can assign another private IP address on the same subnet to the Zaurus.  If this is the setup you have, you should be able to configure the Zaurus's interface by dhcp by putting something like this in your /etc/network/interfaces file.

iface usbd0 inet dhcp

I have noticed it sometimes takes up to a minute from switching on the Zaurus before it becomes part of the network.  Once you get it working, check the Troubleshooting section of http://wiki.openzaurus.org/HowTos/Bridging_with_Gentoo you may need to adjust the MTU.

2
Angstrom & OpenZaurus / Usb Connection Howto
« on: May 04, 2006, 05:54:42 pm »
The "USB Networking" howto submitted by telemetric_au seems to be Debian-specific, maybe the title should reflect that.  I have just added a Gentoo-specific howto: http://openzaurus.berlios.de/HowTos/Bridging_with_Gentoo which includes a workaround for the MTU problem I mention above.

3
Angstrom & OpenZaurus / Usb Connection Howto
« on: May 01, 2006, 04:17:42 pm »
I have run into problems with my bridging setup:  I can log into my SL-5500 using ssh, ping hosts on the internet, download small files using wget, but if I try to download anything bigger than about 1k I get "no response from the server".  I have noticed that usb0 on the desktop gets an MTU of 1494 whereas usbd0 at the other end on the Zaurus gets an MTU of 1500. I can't increase usb0 to 1500 on the desktop, but if I decrease usbd0 to 1494 on the Z ('ifconfig usbd0 mtu 1494') the problem is fixed.  My question is: why doesn't this 'just work'?  Why do usb0 and usbd0 get different MTUs? Is there a bug somewhere, or is there something wrong with my setup?

4
Angstrom & OpenZaurus / Usb Connection Howto
« on: September 19, 2005, 06:31:31 pm »
Using this method, usb0 and eth0 do not need IP addresses.  There are only two IP addresses involved: the one for the PC, which is assigned to interface br0 by the directive config_br0=( "192.168.2.30" ), and the one for the PDA which I configured using the Network settings GUI to "192.168.2.50".  I think both of these could be assigned using dhcp but I haven't tried it. Using a bridge at the ethernet level means that the PDA "looks like" any other device on the same ethernet segment as the PC.

5
Security and Networking / Using Fish To Copy Files To My Z
« on: September 19, 2005, 12:04:24 pm »
Quote
Sorry, I've been away.

I would be interested in seeing this work though.

I'll have a think about it and see if I can get it working (remind me though otherwise I'll probably forget - lots of work atm).

Is it possible to use the fish protocol from the command line as my Linux box is headless?


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

I don't know of a way to invoke the fish protocol from the command line, I believe it is implemented only as a KDE kioslave.

6
Angstrom & OpenZaurus / Usb Connection Howto
« on: September 14, 2005, 12:56:39 pm »
Using an ethernet bridge to plug your Zaurus into your network seems to me preferable to routing a two-node subnet between your PC and the Z and then using NAT to give the Z access to your network/the internet. Details of how to do it are at the usbnet website. On Gentoo, this is particularly easy:

1. Create symlinks to /etc/init.d/net.lo called /etc/init.d/net.usb0 and /etc/init.d/net.br0
2. Put the following in /etc/conf.d/net:

Code: [Select]
bridge_br0="eth0"
# You need to configure eth0 and usb0 as null so that dhcp is not used,
# we don't want IP addresses etc for these interfaces.
config_eth0=( "null" )
config_usb0=( "null" )
# Could use config_br0=( "dhcp" )
config_br0=( "192.168.2.30" )
depend_br0() {
    need net.eth0
}
gateway="br0/192.168.2.1"
# when hotplug configures usb0, add it to the bridge.
postup() {
    local iface=${1}
    if [[ ${iface} == usb0 ]]; then
        brctl addif br0 ${iface}
    fi
}

Obviously tailor the IP addresses to suit.

3. Configure the TCP/IP connecton on the Zaurus to make it part of the same subnet as your PC, e.g.
IP Address = 192.168.2.50
Subnet Mask = 255.255.255.0
Gateway = 192.168.2.1
First and Second DNS the same as your PC.

4. Test the configuration:
 
Code: [Select]
/etc/init.d/net.eth0 stop
/etc/init.d/net.br0 start

then plug in and switch on the PDA.  Check that your PC and PDA have network access
 
5. Make the new configuration permanent:
 
Code: [Select]
rc-update del net.eth0
 rc-update add net.br0 default

7
Security and Networking / Using Fish To Copy Files To My Z
« on: September 13, 2005, 05:01:46 pm »
Looking at the source for the FISH kioslave, it seems that FISH invokes the following commands on the zaurus:

Code: [Select]
> /file/name
echo '### 001'

This bit seems to work because the file is created, FISH then pipes the data to:

Code: [Select]
( [ "`expr %1 / 4096`" -gt 0 ] && dd bs=4096 count=`expr %1 / 4096` 2>/dev/null; [ "`expr %1 % 4096`" -gt 0 ] && dd bs=`expr %1 % 4096` count=1 2>/dev/null; ) | ( cat > /file/name || echo Error $?; cat > /dev/null )
where %1 is replaced by the size of the file in bytes.  Whilst this looks horribly complicated the standard expr, dd, cat and echo commands on the Zaurus do seem to execute it OK, I tested it by feeding stdin from local file, so now I'm thinking the problem must lie somewhere in the data feed from the PC to the Zaurus.

I may give up at this point unless anyone has any other ideas.

8
Security and Networking / Using Fish To Copy Files To My Z
« on: September 12, 2005, 07:16:18 am »
The KDE help information says that PERL is optional, all it requires is: cat, chgrp, chmod, chown, cp, dd, env, expr, grep, ls, mkdir, mv, rm, rmdir, sed, wc and /bin/sh should be Bourne-compatible. My Zaurus seems to meet these requirements, but could the busybox versions of these commands be inadequate in some way?  Is there a way to see exactly which commands are invoked when copying a file to the Z using FISH?

9
Security and Networking / Using Fish To Copy Files To My Z
« on: September 07, 2005, 05:07:18 pm »
I would like to be able to use FISH to copy files to my SL-5500.  I have tried running Dropbear and OpenSSH and in both cases whilst I can view/browse the directories, if I try to copy a file, the file is created but no data is written to it.  I am able to use scp to copy files to the Z and I can use FISH to copy files to other PCs on my net.  Has anyone had any success with this?

10
Software / Opie-calculator Problem
« on: September 07, 2005, 04:13:46 pm »
Quote
it's fixed in OE but noone requested upgrade

it adds conversions.

copy attached file into /opt/QtPalmtop/etc/ as unit_conversion.dat and restart calculator.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=94895\"][{POST_SNAPBACK}][/a][/div]

Thanks, that answers the first question and adds a useful feature.  But I still don't see how to get the inverse trig & log functions, it's as if I'm missing an 'inv' button.

11
Software / Opie-calculator Problem
« on: September 07, 2005, 03:32:16 pm »
In opie-calculator, the drop-down menu labelled "Standard" is permanently greyed-out.  Is it just me, or should I report a bug?  Also, does that menu give access to the inverse trig functions, or is there some other trick to get those?

--
Paul
Opie 1.2.0
OpenZaurus 3.5.3
SL-5500

Pages: [1]