Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: manit123 on July 08, 2012, 12:24:46 AM

Title: how to get persistent flash in tiny core
Post by: manit123 on July 08, 2012, 12:24:46 AM
hi
I have noticed that in case of adobe flash you have to copy libflashplayer.so to ~/.mozilla/plugins

I boot from USB .
How can I make it persistent on every reboot ?
Is there any  way that ~/.mozilla/plugins folder gets saved on shutdown .
Title: Re: how to get persistent flash in tiny core
Post by: Rich on July 08, 2012, 01:47:47 AM
Hi manit123
First you have to get your problems from your tce-load thread straightened out.
Title: Re: how to get persistent flash in tiny core
Post by: manit123 on July 08, 2012, 02:21:08 AM
In similiar context ,
I have installed sun-jre .
'java -version' says
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode

By default java is not recognised by firefox.
When I add link to /tmp/tcloop/sun-jre/usr/local/java-sun/jre/lib/i386/libnpjp2.so in ~/.mozilla/plugins folder then java in browser works.
I believe , here also I have to find a way to save ~/.mozilla/plugins folder.
Title: Re: how to get persistent flash in tiny core
Post by: Rich on July 08, 2012, 02:33:43 AM
Hi manit123
As long as there is a line that reads  home  in your  /opt/.filetool.lst  file, the contents of your homr directory will
be backed up.
Some of your problems could have avoided by spending some time reading the FAQs and the Wiki.
Title: Re: how to get persistent flash in tiny core
Post by: manit123 on July 08, 2012, 01:33:24 PM
I have used core2usb to create bootable usb of tinycore.
Downside was it needs an empty pendrive.
I notice that mydata.tgz contains home & opt folder.
Will they be automatically restored on next boot or I have to do it manually ?
Title: Re: how to get persistent flash in tiny core
Post by: manit123 on July 08, 2012, 02:54:30 PM
I see that on selecting restore in control panel I get flash & java plugin in firefox as  they relate to ~/.mozilla/plugins
Anyway to set this option at boot ?
Title: Re: how to get persistent flash in tiny core
Post by: tinypoodle on July 08, 2012, 02:59:53 PM
Should be auto scanned for at boot time.
Title: Re: how to get persistent flash in tiny core
Post by: Rich on July 08, 2012, 05:01:15 PM
Hi manit123
Quote
Anyway to set this option at boot ?
Yes. Stop manually installing extensions, use AppBrowser for that. It will automatically install applications so
that they are available when you boot. Make sure those two extensions are listed in  tce/onboot.lst.
Title: Re: how to get persistent flash in tiny core
Post by: manit123 on July 08, 2012, 09:20:33 PM
Now , it is automatically restoring the /home/tc folder .
I need to find meaning of about safe option.
Also about on boot , on demand in apps.
Title: Re: how to get persistent flash in tiny core
Post by: manit123 on July 08, 2012, 09:50:47 PM
http://wiki.tinycorelinux.net/wiki:backup
http://wiki.tinycorelinux.net/wiki:install_apps
Title: GOT java,flash in firefox but only java in opera
Post by: manit123 on July 10, 2012, 08:56:36 AM
I was trying to make my backup useful but small.
So here is my /opt/.filetool.lst
Code: [Select]
opt
home
#files from flash player 11 tarball
usr/bin/flash-player-properties
usr/share/kde4/services/kcm_adobe_flash_player.desktop
usr/share/applications/flash-player-properties.desktop
usr/share/icons/hicolor/22x22/apps/flash-player-properties.png
usr/share/icons/hicolor/48x48/apps/flash-player-properties.png
usr/share/icons/hicolor/24x24/apps/flash-player-properties.png
usr/share/icons/hicolor/32x32/apps/flash-player-properties.png
usr/share/icons/hicolor/16x16/apps/flash-player-properties.png
usr/lib/kde4/kcm_adobe_flash_player.so
#files for opera & firefox browser
usr/local/firefox-official/plugins/libflashplayer.so
usr/local/firefox-official/plugins/libnpjp2.so
usr/lib/opera/plugins/libnpjp2.so
#note that libnpjp2.so points to  /tmp/tcloop/sun-jre/usr/local/java-sun/jre/lib/i386/libnpjp2.so
The files & folder to exclude are in /opt/.xfiletool.lst
Code: [Select]
Cache
cache
.cache
XUL.mfasl
XPC.mfasl
mnt
.adobe/Flash_Player/AssetCache
.macromedia/Flash_Player
.opera/opcache
.opera/cache4
.Xauthority
.wmx
# i added following as I do not want web history or cookies or cache
home/tc/.opera-11
home/tc/.mozilla

Please suggest any improvement ?
Also I have copied libflashplayer.so to usr/lib/opera/plugins/ . Yet opera does not play flash ?
Code: [Select]
if we install get-flash-11 app then I see
/tmp/tcloop/flash11/
`-- usr
    `-- local
        |-- share
        |   `-- flash11
        |       |-- libflashplayer.so
        |       `-- libflashsupport.so
        `-- tce.installed
            `-- flash11

5 directories, 3 files
libflashplayer.so has same md5sum as the file from install-flash-player11 tarball .
Seems the other two files made the difference for opera .

Also I have noticed that on excluding folder ~/.opera-11 .
There is no way I can include file ~/.opera-11/operaprefs.ini .
Is there a workaround ?
Title: Re: how to get persistent flash in tiny core
Post by: Rich on July 10, 2012, 02:46:55 PM
Hi manit123
I don't think filetool.lst and xfiletool.lst are supposed to have comments in them. Entries in the xfiletool.lst overide
entries in the filetool.lst file. If you only want to include  ~/.opera-11/operaprefs.ini in your backup, you have to
exclude everything except that. For the individual files in  ~/.opera-11/ you can probably use wildcards like:
Quote
home/tc/.opera-11/*.dat
Don't forget to exclude the lock file from your backup.
Title: Re: how to get persistent flash in tiny core
Post by: manit123 on July 10, 2012, 10:17:18 PM
the comments I had added while posting to explain my opinion.

excluding all files of .opera-11 individually will be difficult as new files get created on browsing.

Anyway , that means either I save all opera history to have customised settings or start afresh on every startup with default settings saving backup space.
Title: Re: how to get persistent flash in tiny core
Post by: Rich on July 10, 2012, 10:47:13 PM
Hi manit123
You shouldn't have to exclude all the files individually. See if adding this to your xfiletool.lst works:
Code: [Select]
home/tc/.opera-11/application_cache
home/tc/.opera-11/cache
home/tc/.opera-11/dictionaries
home/tc/.opera-11/icons
home/tc/.opera-11/lock
home/tc/.opera-11/opcache
home/tc/.opera-11/pstorage
home/tc/.opera-11/sessions
home/tc/.opera-11/styles
home/tc/.opera-11/temporary_downloads
home/tc/.opera-11/thumbnails
home/tc/.opera-11/toolbar
home/tc/.opera-11/vps
home/tc/.opera-11/webserver
home/tc/.opera-11/widgets
home/tc/.opera-11/*.adr
home/tc/.opera-11/*.dat
home/tc/.opera-11/*.js
home/tc/.opera-11/*.log
home/tc/.opera-11/*.xml
That should exclude everything except the .ini files.
Title: Re: how to get persistent flash in tiny core
Post by: tinypoodle on July 11, 2012, 01:19:31 AM
Maybe more simple and reliable to just manually copy the desired file(s) to a different dir within /home/tc before backing up (while excluding .opera).
Title: Re: how to get persistent flash in tiny core
Post by: Rich on July 11, 2012, 02:26:38 AM
Hi manit123
Yes, you could copy the file somewhere else in your home directory. Add a copy command in the shutdown.sh
script to save it and another copy command in the bootlocal.sh script to restore it.
Title: Re: how to get persistent flash in tiny core
Post by: manit123 on July 12, 2012, 09:42:44 AM
Is there a way I can run a script after everything is mounted i.e my pendrive , loop tcz etc.
Then usually I get my pendrive as /mnt/sda1
so I will add to it
sudo cp  /mnt/sda1/my-customised-settings/operaprefs.ini   ~/.opera-11/
Title: Re: how to get persistent flash in tiny core
Post by: tinypoodle on July 12, 2012, 09:54:27 AM
Add to /opt/bootlocal.sh
Omit sudo.
Title: Re: how to get persistent flash in tiny core
Post by: gerald_clark on July 12, 2012, 10:42:00 AM
Use the LABEL or UUID form of the tce= boot option.
Since you can't be sure what device the USB will be, use /etc/sysconfig/tcedir.
Title: Re: how to get persistent flash in tiny core
Post by: manit123 on July 13, 2012, 09:43:42 PM
do you mean
 /etc/sysconfig/tcedir gets saved in backup.
Title: Re: how to get persistent flash in tiny core
Post by: gerald_clark on July 14, 2012, 12:21:13 AM
No, /etc/sysconfig/tcedir is a symlink to the tce dir found or specified in the boot options.
Title: Re: how to get persistent flash in tiny core
Post by: manit123 on July 30, 2012, 10:34:59 AM
sorry for my late reply .
  I see /etc/sysconfig/tcedir/ points to /tmp/tce
Title: Re: how to get persistent flash in tiny core
Post by: gerald_clark on July 30, 2012, 12:37:18 PM
Then you do not have a tce directory on the root of drive found at boot.
Either use a proper tce= boot option, or manually create the directory..
If this drive is a flash deive, do not forget waitusb=5 boot code.