I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / Other I-Appliances / MSN Companion
creating files in midori
Can't figure out how to create files that persist across reboots

New Messagecreating files in midori (modified 0 times) rlyacht
Profile
I am happily using the latest midori image to use my ia1 as a picture frame (with pictures mounted via samba). I can't figure out how to create files that stick around. I assumed that if I created a file in /tmp it would be permanent. I want to do this for two reasons:

1. I want to create /tmp/.icewm/preferences to turn on autohide
2. I want to create /tmp/show to loop over all my smb-mounted picture and display them via xli.

I'm sure this is easy and doable, and I'm missing something very basic! Can someone explain? Thanks.

03-28-2002 19:02:23

New MessageRE:creating files in midori (modified 1 times) wildwildwes
Profile
/tmp is stored in ram, so it isn't saved when you reboot. Edit the init file in /tmp/config to create the files, then freeze the configuration. When you freeze, /tmp/config gets written to /config
03-29-2002 09:35:44

New MessageRE:creating files in midori (modified 0 times) LasersInTheJungle
Profile
You can only save files in /tmp/config, which is why there are links from the home dir /tmp to anything that needs to get saved in /tmp/config.

I think (in the lastest buildkit) that all of /etc may be linked to /tmp/config/etc .. you may be able to create /tmp/config/etc/X11/icewm/preferences which *might* be read before the one in /usr/X11R6/lib/X11/icewm .

My suggestion, if that fails, woul be to get the latest build kit from ia1hacking, and add to the intit scripts that craeate the links, or replace the offending files all together. =)

/tmp/config/show should work.. also you can call programs at boot time AFAIK with /tmp/config/profile.

Hope that helps..
Julio

03-29-2002 09:38:12

New MessageRE:creating files in midori (modified 0 times) radarman
Profile
I have a similar question along this vein. I don't have a linux box (other than the IA-1). While I could convert my workstation into a Linux box long enough to build the Midori image, I have been told that the midori image I am using, and really like, is a hacked version that the build scripts won't create. My primary *nix box is a FreeBSD 4.5 system, and I'm not sure the build kit will work on the Linux emulator.

All I really want is to be able to write a script that runs at boot time that will automate the NFS mounts and start XMMS. I figure a two or three line file called at startup would do the trick.

Is there a way to do this?

03-29-2002 10:16:26

New MessageRE:creating files in midori (modified 0 times) wildwildwes
Profile
What I meant before was that there is not a way to have the official midori build sources produce the current version. The build kit is the hacked version and will produce the current image. It probably isn't possible to use BSD with it, but it wouldn't hurt to try if yours is binary compatible with linux. It really isn't necessary though, since what you want to do is possible without rebuilding it. You could just add that to /tmp/config/XFinit and freeze.
03-29-2002 10:46:30

New MessageRE:creating files in midori (modified 0 times) Peter
Profile
I also want to customize the "preference" file for icewm. I tried the suggestion of creating /tmp/config/etc/X11/icewm/preferences, and then running 'freeze'. However that did not work. Is it possible to remount /usr and edit /usr/X11R6/lib/X11/icewm/preference directly?

(I currently can't use the build kit because I only have one linux workstation (the MSN Companion) and the other computer needs to stay Windows as it is not mine )


-Peter.
04-05-2002 14:37:06

New MessageRE:creating files in midori (modified 0 times) jbierling
Profile
Peter, did you find a solution? I'd like to change the icewm preferences too.

Thanks,
-Joel

06-04-2002 19:19:07

New MessageRE:creating files in midori (modified 0 times) geo_fr
Profile
DONE !!!

just copy the /usr/X11R6/lib/X11/icewm/preferences file to

/tmp/config/home/.icewm/preferences
unmark the TaskBarAutoHide = 0

freeze
and DONE !!!

it works !!!!!!!!!!!!!!!
free for good slideshow !


--== Geo ==--
08-31-2003 09:21:57

New MessageRE:creating files in midori (modified 0 times) geo_fr
Profile
oups !!!

TaskBarAutoHide = 1


--== Geo ==--
08-31-2003 09:23:34

New MessageRE:creating files in midori (modified 0 times) rlyacht
Profile
This didn't work for me. I didn't have a home directory under /tmp/config, so I created /tmp/config/home/.icewm, copied prefernces into it, edited the file, and froze. Then I reloaded ice by switching themes. But I still have the taskbar. Do I need to reboot?
09-02-2003 19:25:56

New MessageRE:creating files in midori (modified 0 times) geo_fr
Profile
yes, reboot !!!
I use the WWWes midori image, and it works with this modification.

I've just finish my slideshow shell script, but I don't know which command using to
randomize it ...


--== Geo ==--
09-04-2003 17:57:07

New MessageRE:creating files in midori (modified 0 times) TheGoose
Profile
I tried this small script to generate a list of random photo's... but it appears that the environment 'variable' $RANDOM doesn't exist on midori

#!/bin/sh
# randomphotos.sh - list random photos's in a directory tree
for file in $(find /mnt/cf -name '*.jpg' -print); do echo $RANDOM $file ; done | sort -n | sed 's/^[1-9][0-9]* //'


This works fine on other standard linux's.
09-10-2003 13:53:06

New MessageRE:creating files in midori (modified 0 times) geo_fr
Profile
apparently, the $RANDOM exist (/dev/random and /dev/urandom)
but the question is :

how to affect $RANDOM value to a variable ???

the command i=$random or echo /dev/random don't works ...

any idea ??


--== Geo ==--
09-10-2003 20:17:15

New MessageRE:creating files in midori (modified 0 times) scatterbrained
Profile
I got a random slideshow working by using this function in a shell script:
(this is typed from memory so I might have garbled the syntax slightly)

randomize () {
for i in $*; do
echo (dd 2>/dev/null if=/dev/urandom bs=32 count=1 | md5sum) $i
done | sort | sed 's/^[0-9a-f]* //'
}

pass this function a list of filenames and it should return a randomized
list. It works by using dd to read /dev/urandom and using md5sum to
turn the raw bytes from dd into a hexadecimal text string. Normally
I would 'od' for this, but it wasn't on the midori image I had.
Then it puts the string before the filename it's working on. Pass all the
lines to sort, strip out the junk added with sed. Please direct your
vomit away from the keyboard

12-22-2003 22:15:42

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3