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

Pages: [1]
1
Personal Java/Jeode/J2ME Personal Profile / Inner classes
« on: July 24, 2004, 06:23:34 pm »
Thanks for your help.

Yes it works to add all of the inner classes to a jar file and then execute it using
Code: [Select]
evm -cp NameOfJarFile.jar:. NameOfMainClassBut you cannot put all of the files in one jar and create a manifest file then run it using
Code: [Select]
evm -jar NameOfJarFile.jarBecause evm will not recognize the jar flag.


What a pain....

2
Personal Java/Jeode/J2ME Personal Profile / Inner classes
« on: July 24, 2004, 04:37:32 pm »
So I have this Java program that uses inner classes.  When I transfer the class files over to the Zaurus I get the message that filenames cannot be saved with a $ sign in them.  I think the Zaurus converts the dollar sign to a %24 or something like that.  When I try to run the program the vm fails to find the class.  I tried using the terminal to rename the file and replace the %24 with a $ sign.  If I do that the file seems to dissapear completely.  How can I use inner classes on the Zaurus?

Thanks for your help.

3
Qt/Qtopia / Qt/Embedded data directory is not owned by user 0
« on: July 22, 2004, 05:58:11 pm »
Thanks.  Putting the library in the usr/lib/ directory worked.  I still don't understand why the Zaurus has these problems though.  On an unmodified zaurus I tried running evm --help and this prints the standard help message for a java virtual machine.  Then I switched to super user and ran the same command but got the data directory does not belong to user 0 error again.  I think this is a big problem with the Zaurus.  Is there any permanent way to change this behavior that does not involve using sudo every time I want to do something as root?

4
Qt/Qtopia / Qt/Embedded data directory is not owned by user 0
« on: July 22, 2004, 11:05:17 am »
I tried using sudo, but the problem with that is it disables the LD_LIBRARY_PATH environmental variable, which I need to have (and set) so that my program can locate a shared library.

"sudo tries to be safe when executing external commands. Variables that control how dynamic loading and binding is done can be used to subvert the program that sudo runs. To combat this the LD_, _RLD_, SHLIB_PATH (HP-UX only), and LIBPATH (AIX only) environment variables are removed from the environment passed on to all commands executed" - from the Sudo website

Apparently the Zaurus searches for shared libraries in /usr/QtPalmtop.rom/ , so I tried to just copy my library into there but it won't let me (even when I am root) because
Code: [Select]
cp: unable to open '/usr/QtPalmtop.rom/libLogger.so': Read-only file system

Thanks for your help

5
Qt/Qtopia / Qt/Embedded data directory is not owned by user 0
« on: July 21, 2004, 04:01:47 pm »
Hi,

I have a program that opens a raw socket.  When I run this as non-root it begins and runs for a while until it comes to the code where it opens a raw socket and prints "socket: Operation not permitted".  This is all as I expected.  So when I su to root and run the same program with the exact same command I get the error message "Qt/Embedded data directory is not owned by user 0".  I really don't know what this means but I found one source that said this is a bug in Qt and the way to solve it is to delete the qtembedded-zaurus directory in tmp.  I did this.  Now when I run the exact same command I get the error "QSocket::writeBlock: Socket is not open" printed 4 times and then "No Qt/Embedded server appears to be running.  If you want to run this program as a server add the '-qws' command-line option.  I tried adding the command line option as instructed but this didn't work.

So I also did another test to see if deleting the directory created a problem.  Now when I type evm --help (my program is mostly in java and calls some c code for the raw socket) I get the "QSocket::writeBlock: Socket is not open" error message again.

I really have no idea what is going on.  If anyone can offer a fix to my problem or some workaround I would be very happy.  Thanks for your help.

Chris

6
Security and Networking / netfilter and wireless
« on: July 09, 2004, 04:49:32 pm »
So the solution to this problem turns out to be: just install the newest Sharp ROM (i.e. 1.32 for the 5600).  This ROM has netfilter/iptable support configured into it.  If you install the iptables and iptables-module packages from http://cmisip.home.insightbb.com/zaurus.htm it should work.  I tested filtering by ip and mac address and these both worked.

Chris

7
Sharp ROMs / netfilter/iptables on Cacko ROM 1.21a
« on: July 08, 2004, 03:54:54 pm »
Sorry I do not have an answer to your question, but I am having problems with iptables on the SharpRom.

Which SharpROM did you use to get iptables working?  Did you just install the ipkgs and it worked?  Because for me it says that the kernel does not support iptables.

Chris

8
Security and Networking / netfilter and wireless
« on: July 07, 2004, 01:10:50 pm »
I found out that the zaurus kernel is not configured to support netfilter/iptables, so to get these things to work I reconfigured and recompiled the kernel to support them.  The only changes I made (during menuconfig) were enabling iptables/netfilter.  I installed the new kernel and everything went fine.  There were no problems however after a couple hours my Zaurus started locking up and the wireless connection was always giving me the signal level is low message.  I know it isn't low because my router is about 2 feet away from me.  This same thing happened to my friend who installed the new kernel as well.  Any ideas on why this is happening?  Thanks for your help.

Chris

9
Security and Networking / iptables
« on: June 25, 2004, 05:56:45 pm »
I'm trying to get iptables to work on my zaurus.  I have the 5600 with kernel 2.4.18 and the standard sharp ROM 1.00. I installed the iptables and iptables-modules ipk packages from the Zaurus Software Index but it still isn't working. I am trying to filter based on mac address with the command:

iptables -A INPUT -m mac --mac-source XX:XX:XX:XX:XX:XX -j DROP

but i get an error message like:

can't initialize iptables table 'filter': iptables who? (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded

Has anyone been able to get iptables running?  Any advice? Thanks.

Chris

Pages: [1]