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

Pages: [1]
1
Security and Networking / Crypted Filesystem
« on: May 07, 2005, 05:10:00 am »
encfs  (http://encfs.sourceforge.net/) should work fine, I use it on my laptop with great success.  You just need the fuse module compiled and you're good to go.   encfs isn't that heavy on the CPU and doesn't required to preallocate space like you have to do with any of the loopback filesystem options.

2
5x00 General discussions / Tried to format SD as ext2, now doesn't mount
« on: November 10, 2004, 02:44:00 am »
I'm using a PQI 1GB SD card that I'd formatted as ext2, ext3 and reiserfs with no issues.  reiserfs takes too much memory though, so for small boxes like the Z it's probably not the best choice.

BTW, I have ext3 modules I compiled for OZ 3.5.1 (5000/5500 series) on my site here:
http://undertow.2y.net/zaurus/

3
General Discussion / E-mail/IM?
« on: October 31, 2004, 12:16:01 pm »
Yesterday I compiled Gaim 1.0.2 with (http://gaim-encryption.sourceforge.net/Gaim-Encryption 2.32 *and* the Meanwhile (Sametime) plugin and put it online here:
http://undertow.2y.net/zaurus/bin/

Note this is the X version, so you either run it under fbvnc (best option, IMHO) or maybe X/QT.
It's a big install, (I put it under /opt/gaim so as to not conflict with any Debian packages installed) , so making a cramfs image of it is a good idea. Unfortunately since it's a GTK app you can't compress it via UCLX, but at least with a cramfs image you compress the rest of the files like the libs which are quite large.

javab0y, I'd be interested in getting my hands on whatever code you now have-- I really need Sametime and gaim-encryption functionality, although it's likely that my existing plugins would work with your new QPE version.

Free free to email me at:   kcurrie (a...t) undertow.2y.net

4
X/Qt / Debian with Xqt
« on: October 30, 2004, 12:35:44 pm »
I too have been running Debian (using pocket workstation) on my Z 5500 (under OpenZaurus in my case) and absolutely love it.
I posted on /. recently about it and reposted it here:
Thoughts on the Zaurus

I've been meaning to slap together a page detailing how to run swap over NFS/SMB (or any protocol) so you can easily have this:
Code: [Select]
OZ #free
              total         used         free       shared      buffers
  Mem:        62388        54924         7464            0         1084
 Swap:       524280         1068       523212
Total:       586668        55992       530676

..yes, that's 512MB of swap :-)  Swapping over wireless isn't too bad, faster than wearing out my SD card, that's for sure.   Big compiles are no longer a problem!

The otter big thing I've been doing is running a COMPLETE remote root disk over NFS! Doing this allows me to have a 3GB remote root:
deb # df -H /
Filesystem             Size   Used  Avail Use% Mounted on
/dev/mmcda1            3.2G   1.3G   1.8G  42% /
..and allows me to easily have different images for development or testing out sw installs without messing up the 1GB  SD card in my Z until I am sure I want to commit changes.   A quick rsync allows for easy cloning of my SD card onto my remote root.

Using these methods you can run the complete Debian setup over wireless without even having an SD card at all.   This opens EVERYBODY up to Z development and the vastnumber (~15819) of ARM Debian packages avail up to everybody with minimal effort and no local diskspace requirements.

As a matter of fact, I compiled the latest version of GAIM along with the encryption plugin (gaim-encryption) AND the Sametime (meanwhile) plugin, for those of use who have to use  that IBM/Lotus beast.

See here:
http://undertow.2y.net/zaurus/bin/gaim-enc...ime-ARM.tar.bz2

Note this requires X to run.  

Anyway, I'll try to get together details on this in the next couple of days, and it'll be on http://undertow.2y.net/zaurus/

Cheers!

5
Angstrom & OpenZaurus / Freeswan ipsec.o OZ 3.5.1
« on: October 23, 2004, 10:00:12 pm »
Quote
FreeSwan/IPSec is the way to go. It's used in a lot of professional environments.
Sure is-- I work at one of the largest makers of VPNS (among other gear), and I've even taken courses on configuring VPN concentrators and clients.   I use a hardware VPN for my IP phone and it works great, but setting something like that up is much more complex then a simple OpenVPN setup, which can be little more than a tun module (usually included with any kernel), a user space daemon, and a few lines of shell script.

I slimmed down what I have a bit, but basically throw a script in /etc/inittab on the Z with something as simple as this in it:

$REMOTEIP=192.168.0.11
iwconfig wlan0 essid SOMESSID channel 1 rate auto mode managed
ifconfig wlan0 192.168.0.8  netmask 255.255.255.255  up
route add -host  $REMOTEIP  dev wlan0
/etc/openvpn/openvpn  --verb 0 --remote  $REMOTEIP --dev tun0 --ifconfig  10.0.9.8  10.0.9.6  --secret z.key  --port 5001 --float --up "route add default gw 10.0.9.6 dev tun0; route delete default gw 192.168.0.1; #"


..and on the server put something like:
openvpn  --verb 0 --dev tun0  --ifconfig 10.0.9.6 10.0.9.8 --secret z.key  --port 5001 --float

..depending on how else your system is setup, after generating the key (and ensuring your server is doing ipforward/masq), really all you may need are the single lines on client and server that call OpenVPN.  Very simple really!    The first chunk of code will ensure my Z is on the net, has the right IP address (it's 182.168.0.8), and then once it's on the VPN it's 10.0.0.9.8.  The server is really 192.168.0.6 and it's VPN address to the Z is 10.0.9.6.  

It's pretty lightweight too-- the OpenVPN daemon is currently using ~1200k,  even the tun module is only ~4k once loaded.   That's actually a little LESS memory then would be taken up by just doing a simple ssh portforward like "ssh -L 143:localhost:143 imapserver -N".   Not bad for a complete tunnel!  

..that reminds me, for another very simple, *nearly* complete VPN solution, you can use ssh with it's SOCKS proxy abilities.  "ssh -D 1080 myserver -N" would bring up a SOCKS5 proxy,  and if you had socks capable clients, *OR* used something like tsocks or proxychains (for which you can find a z binary on my web site) you can capture all TCP or UDP (with tsocks) traffic and pipe it all through the ssh tunnel.    Doing something like starting Opie like "proxychains /etc/init.d/opie start" or "tsocks /etc/init.d/opie start" *should* put your whole Opie session under the SOCKS/SSH proxy.  I haven't done it specifically with Opie, but have for shell based things like ipkg installs.
Just now (in a Debian chrooted environment on my Z under OZ 3.5.1)  I went "apt-get install -y tsocks ; alien -t /var/cache/apt/archives/tsocks_1.8beta5-2_arm.deb" and put the converted .tgz file which should run fine on OZ with the appropriate libaries (included already? maybe).  The results .tgz file in in the bin directory of my website.

..anyway, lots of ways to do lots of things with unix :-)

Anyway, My web page is here:   Zaurus in the Undertow

6
Angstrom & OpenZaurus / Freeswan ipsec.o OZ 3.5.1
« on: October 23, 2004, 03:52:14 pm »
You can use the OpenVPN binaries I put up on my website here:
http://undertow.2y.net/zaurus/

I use it great success on my laptop and Zaurus to a central linux box to secure my wireless.

I put both a statically compiled binary as well as a much smaller dynamically linked binary online.
Both are compressed with upx, so you need to decompress it before you can check the libs so
I've done that here:

OZ #ldd /tmp/openvpn
        libssl.so.0.9.7 => /DEBIAN/usr/lib/libssl.so.0.9.7 (0x40023000)
        libcrypto.so.0.9.7 => /DEBIAN/usr/lib/libcrypto.so.0.9.7 (0x40057000)
        libc.so.6 => /lib/libc.so.6 (0x40149000)
        libdl.so.2 => /lib/libdl.so.2 (0x40250000)
        libgcc_s.so.1 => /DEBIAN/lib/libgcc_s.so.1 (0x4025a000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Ignore the /DEBIAN paths-- I have Debian running on my Z as well so I often just sym/hardlink apps from Debian to OZ to share the same binaries and config files.

7
Software / SLapAss
« on: July 07, 2004, 03:33:52 am »
Oh, I just STATICALLY compiled ar a few minutes ago.  It's pretty big, even after UCLXing it at 336K, but it at least runs on my OZ box and should on a Sharp ROM as well.

I'll attach it to this message or you can get it from the bin dir my website here:

http://undertow.2y.net/zaurus/bin/

The main Z page is here:  http://undertow.2y.net/zaurus/

8
Software / SLapAss
« on: July 07, 2004, 03:11:52 am »
Ah!  I wasn't aware that the Sharp ROMS didn't use a tar.gz based package but rather an ar based packged containing tar.gz files :-)
Oh, I fixed a minor bug in the script as well where if it failed to associate it now quits instead of continuing on with IP allocation.

Let me know if this works!

I also attached it to this message (but had to add a .bin extension to it because otherwise it said: You cannot upload this type of file)

Give it a shot!

9
Software / SLapAss
« on: July 05, 2004, 12:31:24 am »
Eh?  busybox is installed on the Sharprom to begin with, is it not?  I mean, that's what nearly all the binaries in /bin are symlinks to-- right??  I haven't run the sharp rom for a while, but I can't image a Z could even boot without busybox installed.    If I remember correctly, the shell (sh) that is used on the sharp rom is also part of busybox.   In case anybody isn't aware, busybox is a binary that functions as a ton of various commands.  To make busybox work as (say) grep, just ensure that there is a symlink pointing to the busybox binary with the name of grep. ...the same goes for the rest of the commands it functions as.


..anyway...

If for some reason the ipk won't install, just do this (assuming you have the SLapASS.ipk file in /mnt/card/tmp);

cd /mnt/card/tmp
tar zxvf SLapASS.ipk
cd /
tar zxvf /sd/tmp/data.tar.gz

Now try running it like this:
 
/opt/QtPalmtop/bin/SLapASS

If you end up with some errors,  you can try running the script with the -x option to /bin/sh so it shows the commands it's executing:

sh -x /opt/QtPalmtop/bin/SLapASS

Is there anybody here who was able to get this working on the Sharp rom?

I'm not aware of anything I've done that would be OZ specific, but I've been running OZ for so long that I may have missed something obvious :-)

10
Angstrom & OpenZaurus / clean up a bad package install ??
« on: July 03, 2004, 04:34:31 am »
If you were brave enough, you could even just go ahead and delete all of the files listed in the data.tar.gz file like this:

cd /
tar ztvf data.tar.gz |xargs rm

I'd check the package contents before doing that though :-)

11
Angstrom & OpenZaurus / opera on 3.3.6pre1 ??
« on: July 03, 2004, 04:32:34 am »
I run Opera 7.30 on 3.3.6pre1 but need to run it via runcompat for it to work correctly.

12
General Discussion / Aol Instant Messenger on Zaurus
« on: July 03, 2004, 04:24:37 am »
I had to take a butter knife, heat it up on the stove and melt the side of my Dlink card so I could fit a headphone plug in with the wireless card in.     Looks a little ugly, but works fine :-)

13
Software / GAIM?
« on: July 03, 2004, 04:19:44 am »
Any update on this?   I was thinking of trying to compile (Meanwhile which is a module for Gaim that implements the Lotus/IBM Sametime protocol.    If the project is dead though I won't bother....

14
Software / SLapAss
« on: July 03, 2004, 04:16:28 am »
Hello all, I'm the author of SLapASS.    Please *DO* forward any questions to me you have-- I'll try my best to answer them.  Email me at kcurrie@undertow.2y.net

SLapASS really IS a simple program-- if you're having problems with it bring open a shell (embeddedKonsole) and run it with tracing:
 sh -x /opt/QtPalmtop/bin/SLapASS

..and see what errors you get.

For it to work, assuming you want to use the Kismet functionality you need to have a *working* Kismet configuration.   For just using it to switch between preconfigured networks kismet isn't required.

I've got my Z all jacked up with all kinds of programs but I tried to make sure that nothing I have as standard on mine but non-standard elsewhere crept into the program.  

As for why it doesn't show up as an installed package on the Sharp rom-- I have no idea, as  from what I've read there is no difference between an OZ ipkg and a Sharp ipkg.  I built the packages mostly manually as well, just using tar, gzip and md5sum.  

To my great surprise there has been ~450 downloads in the last 10-11 days, so apparently there is SOME interest there, although I've only recieved a few emails about it.
I personally got sick of having to manually reconfig my networking under OZ all the time because the Oz network app can't seem to store multiple configs-- even though it has a dropdown box which would appear to offer that functionality...

SLapASS actually was just a simple offshoot of another program I'm writing, and I thought it'd be useful to write it in just /bin/sh so it'd run just about anywhere (except for the Opie-SH requirement).   If there is interest, I could *possibly* hack it to work either WITH Opie-SH or just as a command line app.    The other program I'm writing has basically the same functionality as SLapASS and only runs via cmd line, but is written in perl, which I'd assume most people don' t have installed.

..if there was a  half-deceit replacement to Opie-SH that could be used as a frontend as easily as Opie-SH I'd be thrilled to use... anybody know of such a thing?

I found a bug in SLapASS today yesterday while waiting to go into surgery-- if it fails to associate it tells you so and then tells you it associated :-)  Instead of "break" I should have had "exit 1" on that line... a new version should be up soon.  
Any other features people would like?

Out of curiosity the other day I also hacked up a simple script which varies the volume of the Z according to the wireless strength.  Why you ask?  So you can listen to something like a wave file or mp3 and determine if you are getting farther away from an access point or closer without having to look at your Z (or even have if visable) :-)

I've got a ton of other stuff I just haven't bother to package up or even drop in my bin directory too.... stuff like swapd which is a swap daemon which creates swapfiles as required and deletes them when done... works pretty good on the Z for creating swapfiles in the ram disk....  other stuff  like a patched proxychains, various hacking tools, etc.
If anybody wants anything really cool out there, please let me know :-)

Pages: [1]