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

Pages: 1 [2] 3 4
16
Python / 'adding' Modules To A Read Only Image
« on: March 09, 2005, 09:23:03 am »
No problem.

I am still slowly learning how to use Python (upto Chapter 6 in Dive into Python) but I know my way around a *nix file system

17
Python / 'adding' Modules To A Read Only Image
« on: March 08, 2005, 10:26:38 am »
I know it is bad form to reply to your own posts but I have modifed this process slightly so that distutils can install new modules.  This works with the READ ONLY image for modules that are pure python.  If you what to install a module with bits of C in them you will need one of the dev images install but it should work.

Fist you need to add a couple of directories in your home directory if you don't already have them.

Code: [Select]
mkdir ~/bin
mkdir ~/lib
mkdir ~/lib/python
mkdir ~/share

Now add a line in your .profile file

Code: [Select]
PYTHONPATH=$HOME/lib/python
export PYTHONPATH

and optionally alter the PATH line

Code: [Select]
PATH={what ever is here}:$HOME/bin
Lastly create a file in your home directory called .pydistutils.cfg containing

Code: [Select]
[install]
home=$HOME

For good luck restart.

Now if you try to install something packaged with distutils you can use something like
Code: [Select]
python setup.py install
and the modules will be placed in the the ~/lib/python directory which is now sourced in your python code.  In theory you can install newer/older versions of the modules in the read-only image and the freshly installed versions will override the built in versions (I have not tried this).

If anyone tries this let me know.  I have installed a couple of packages with distutils and it seems to work ok as does writing modules and saving them into ~/lib/python

18
General Discussion / Replacement For A C860 Screen?
« on: March 05, 2005, 05:40:38 pm »
Its ok.  Bought a second one once I could and used my old sl-5500 to get me through the days.

19
General Discussion / Replacement For A C860 Screen?
« on: March 05, 2005, 05:47:55 am »
If it is any help I have a perfect c860 with a fried memory chip.

20
Sharp ROMs / Sharp Rom For Uk Zaurus
« on: March 03, 2005, 01:25:00 pm »
To get the word picker thingy to work you need to install the Word Game it should be availible where ever you got the rom.

I have never had any problem with the euro and pound keys though.

21
6000 - Tosa / Smb In Files Tab?
« on: February 23, 2005, 04:04:46 pm »
Yes.  If you don't have your smb mount mounted (?) you will be okay but I would check the first back-up you do and check it is smaller than the total storage on your zaurus.

22
6000 - Tosa / Smb In Files Tab?
« on: February 23, 2005, 06:01:24 am »
It is not pretty but you can add a sym link from somewhere inside you /home/zaurus/Documents directory to your smb mount point.
i.e.
Code: [Select]
ln -s /mnt/smb/ /home/zaurus/Documents/smb
Now you should be able to see your smb stuff under the Internal Flash Icon in the Files tab.

A word of warning there are a couple of problem with this.
1)   If you open an application like image viewer or musicplayer, they search your whole file tab for files, including your new smb link.  If you have a large smb share this can take ages.
2)   I have seen this seriously break the sharp back-up tools if you don?t unmount the share before back-up.  This is because the back-up sometimes follows all sym links and stores copies of the files not the sym links themselves.  I did this once and did not notice until I tried to restore a 256MB back-up image on the 32MB memory of my sl-5500, fun

23
Python / 'adding' Modules To A Read Only Image
« on: February 16, 2005, 12:13:01 pm »
This is probably obvious but I thought I should mention it.

If you are using kopsis' excellent read-only, compressed python image you can still add modules to the system even thought the site-packages directory is read-only.

Create a directory on you internal drive (I call mine /home/zaurus/python_mod) and then add to your .profile file the line

Code: [Select]
export PYTHONPATH=/home/zaurus/python_mod
You can now add modules to this directory as much as you want/have space for.

WARNING!!!  This adds PYTHONPATH to the start of python's search path so if you add modules with the same name as in the image the new ones will be called first.  This may or may not be a good thing

24
Python / Python 2.4 Zaurus Image Available
« on: February 08, 2005, 05:17:12 am »
sojc

You are having the same problem I was.  Open up /etc/rc.d/init/mntpython as root and find the line
Code: [Select]
elsif [ -f /home/zaurus/Documents/$PYTHON.ex2 ]..........
below it you need to change the IMAGEDIR to /home/zaurus/Documents/

Save the file and then type /etc/rc.d/init.d/mntpython

Hope that helps

25
Python / Python 2.4 Zaurus Image Available
« on: February 03, 2005, 10:14:56 am »
Kopsis,

Just installed your Python cramfs image on the main memory of my c860 and there is a small error in the mntpython script.  when it searches for the image it looks for /home/zaurus/Documents/${PYTHON}.img but then sets IMAGEDIR="/home/zaurus/" so the mount then fails.

I just changed IMAGEDIR="/home/zaurus/Documents/" and everything works fine.  Just need to learn more than print "Hello World" now

26
Cxx0 Hardware / C700 Won't Start - Leds Blinking
« on: February 02, 2005, 10:43:38 am »
Have you tried getting to the D+M or D+P service menus (power off, remove battery, hold down D+M or D+P and replace battery for further instructions search the forum)?

If you can you  can try a nand restore but I have seen this problem on my C860 and it is because the boot loader in the p2rom is not finding the nand due to errors in the flash memory (I have a serial cable to follow the debugging messages).  This is bad!  There maybe a way to fix your c700 if this is the case but for my c860 it has proved terminal.

27
C1000/3x00 General discussions / Greek/mathmatical Fonts?
« on: January 31, 2005, 03:56:55 pm »
I am using the version of qpdf2 from the cacko feed (http://www.cacko.biz/cacko/feed) it also installs libtt as a dependance.

I don't have any problems but then again most of the pdfs are of papers etc that I have written and converted myself using acrobat in windows, which I think embeds the fonts required for the math in the papers.

28
C1000/3x00 General discussions / Greek/mathmatical Fonts?
« on: January 31, 2005, 03:10:56 pm »
Try switching on the option to use embedded fonts.  This usually works for me.

29
Cxx0 General discussions / Any Way To Get Out Of The 860 Gui On Startup
« on: January 26, 2005, 11:04:10 am »
If you want to use the d-b method make sure that you are holding down the buttons before you put the battery back in a flick the switch.  This sometimes needs an extra hand   The commandline you get with this is slightly different to the one avalible with the gui because you are actually starting a second kernel stored in the flash.  It uses a special read only file system with a minimum tool set but you can manually mount the normal partitions.  Scrolling of the screen doesn't work but search the forum for a solution ( a little program called consolscroll is needed).

A second easier way that will give you a 'normal' commandline is to install cacko.  When cacko boots there is a 5 second countdown before qt starts, pressing / gives you menu of options.

30
For Sale / Wanted / For Sale-zaurus C860, 11 Months Old, 1a Conditon
« on: January 21, 2005, 10:18:56 am »
I may be interested.  Send me an email (g dot a dot russell at physics dot org) and we can talk.  I am in Edinburgh so postage should not be much of a issue but I wil need to wait until pay day next week

Pages: 1 [2] 3 4