how to load firefox uci automatically


Forum: Apps
Topic: how to load firefox uci automatically
started by: thinketh

Posted by thinketh on Aug. 25 2006,09:02
Hi,

I clicked on MyDsl Icon -> UCI -> firefox-1.5.uci.info and downloaded firefox 1.5 into /tmp. I also did MyDsl Icon ->GTK2 -> gtk2-0705.dsl.info. And MyDsl Icon -> UCI -> jre1_5_0.uci.info.

Then to load firefox,
I did MyDsl Icon -> Load Local Extensions -> /tmp/jre1_5_0.uci.
And then MyDsl Icon -> Load Local Extensions ->/tmp/firefox-1.5.uci

1. Is there anyway to load the uci files automatically so that I don't have to go through the MyDsl icon? Any shorter ways or suggestions would be appreciated.

2. Also, I created a different user other than "dsl". How do I load the uci files automatically from this other account?

3. Assuming I can get firefox 1.5 everytime, how do I remove the existing 1.0?

Thanks for your help.

Regards,
Hongping

Posted by mikshaw on Aug. 25 2006,14:12
When you dowload an extension through mydsl gui the extensions should be automatically loaded, your "Then to load firefox" steps are redundant.

To load extensions automatically, they should be placed in a directory called "mydsl" in the top level of your DSL installation (same place where the "KNOPPIX" directory is found.  This can be done easily in frugal, but requires a "make mydsl cd remaster" for a liveCD.  If you're using a CD and don't want to remaster, you can put them in any directory on a readable/mountable harddrive (NOT within the DSL filesystem in ramdisk) and point the bootloader to it by sending the boot option "dsl mydsl=hdxx/path/to/directory".

If you need to enable Gtk2, look at the mydsl menu item created when the extension is installed (in /home/dsl/.fluxbox/mydsl.menu), and put that command in /opt/bootlocal.sh (and make sure it's being backed up).

If you create a new user he should have little trouble running the apps, but you will need to create the menu item and/or icon yourself. If the apps are loaded automatically during boot, there is no need to be concerned about what user is going to be logged in....the apps are loaded before that happens.

Removing firefox 1.0 requires a remaster of the KNOPPIX file:
< http://damnsmalllinux.org/cgi-bin....77;st=0 >

Posted by thinketh on Aug. 25 2006,17:20
Thank you for your reply. I forgot to mention in my post that I actually did a full hard drive install.

In this case, I don't have a /mydsl directory. And when I boot, there is no place for me to specify where the mydsl directory is.

Where should I put the downloaded extensions, and which file should I edit so that they can be loaded on boot?

Posted by mikshaw on Aug. 25 2006,19:49
If you have the traditional harddrive install, you don't really need to reinstall anything.  The gtk2 extension remains installed, so the only thing you have to be concerned about are the uci packages, which are mounted rather than installed.  The result is, as you probably guessed, that they are unmounted when you shut down.

There are two solutions that I can think of right now....
1) mount both uci packages, copy the newly created /opt/whatever directories to a temporary location (as root), unmount the UCIs, then copy the temp directories back into /opt, using the same directory structure as the original package.  This method allows you to trash the uci, since it is now permanently installed.

2) Copy the uci files wherever you find convenient, and add a mydsl-load command for them in /opt/bootlocal.sh:
su - dsl -c mydsl-load /path/to/extensions/{jre1_5_0,firefox-1.5}.uci

Posted by kuky on Sep. 24 2006,17:48
in the second case the command line in bootlocal.sh is

mydsl-load /"path to uci files"

and works with su -dsl -c the system hangs and is waiting something...

Posted by mikshaw on Sep. 24 2006,19:59
su -dsl -c is incorrect.  There should be a space between "-" and "dsl".  The hyphen might not be vital in DSL...what it does is su to dsl with dsl's environment.
Posted by kuky on Sep. 26 2006,09:21
Master Mikshaw

dónt run with "su - dsl -c"

who is wrong?

Posted by Zucca on Sep. 26 2006,11:15
I load some DSL extensions at startup too. Here's part of my /opt/bootlocal.sh:
Code Sample
echo "Loading needed MyDSL packages into RAM..."
mydsl-load /pkg/dsl/*.dsl 2> /dev/null
echo 'Done.'
sleep 1
echo "Loading needed Debian packegas into RAM..."
dpkg -i /pkg/deb/*.deb 2> /dev/null
echo 'Done.'
sleep 1

Posted by Zucca on Sep. 26 2006,11:23
Btw guys I thinks it's like this:
Code Sample
su -c 'echo "Hi This works."' - dsl

Posted by sassi67 on Oct. 04 2006,10:22
I had the same problem and I resolved in this way.
I moved mydsl-load line (without "su - dsl -c")from /opt/bootlocal.sh in /home/dsl/.bash_profile and it works

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.