How to make sfs file of AdobeReader7.0

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
YoN
Posts: 76
Joined: Wed 04 Jul 2007, 07:28
Location: NIPPON

How to make sfs file of AdobeReader7.0

#1 Post by YoN »

Hi,

Linux Japanese version of AdobeReader7.0.9 has come out.

I installed it by downloading the tar.gz file. The PDF file of Japanese is neatly seen.
It is not necessary to install it like an old version by a Japanese Font Pack manual operation of the Minchou type and the Gothic type.

The problem is that the capacity of the disk is large. (Become about as much as 56MB (tar.gz) and it becomes 90MB it installed.

Then, I tried to make sfs file of AdobeReader as ComboPack (additional module of sfs file).

Reference page;

http://www.murga-linux.com/puppy/viewtopic.php?t=5291&start=15

Though I tried as shown in the topic of Mr.MU. But the sfs file is not loaded.

Please teach when someone knows how to make.
Create a folder (it also could be somewhere else):
/root/sfs/

Copy there your files.
In this example, I use some example files EXAMPLE to make it clearer.
You need such a folderstructure:

/root/sfs/usr/local/bin/EXAMPLE.sh
/root/sfs/usr/lib/EXAMPLE.so
/root/sfs/usr/share/applications/EXAMPLE.desktop
/root/sfs/usr/share/icons/EXAMPLE.png

Now create the squashfs:
cd /mnt/home
mksquashfs /root/sfs EXAMPLE_215.sfs

That's all!
Test 1;
1: After AdobeReader is usually installed in pup_save.2fs of HD,
copied /usr/local/Abobe/Acrobat7.0 directory to /root/sfs/usr/local/as
follows.

2: copied the .so file in /usr/lib directory onto /root/sfs/usr/lib directory.

3: copied /usr/share/applications/Adobe?.Desktop onto /root/sfs/usr/share/
applications/

4: copied the files of /usr/share/icons/hicolor/48x48/apps directory onto /root/sfs/usr/share/icons/hicolor/48x48/apps directory.

The all files of the above are copied onto /root/sfs directory according to
the tree structure.

5: And, the sfs file was made by the following command.

Code: Select all

cd /mnt/home
mksquashfs /root/sfs AdobeReader-7.0-JP_216.sfs
Completed AdobeReader-7.0-JP_216.sfs became about 58MB.

6: Afterwards, the directory of /root/sfs is deleted.
7: I set that AdobeReader-7.0-JP_216.sfs was lead with BootManager again, and rebooted PC.

However, it is not loaded.

TEST 2;

I tried similarly by installing AdobeReader directly to /root/sfs directory.

It is not loaded.

Is there any solution?

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

looks ok so far.
2 ideas:
can you load other sfs files?

Maybe you have loaded too many?
Puppy can handle only 3 or 4 at once.

If it was loaded, it should show up in
/initrd/pup_roX

where X is a number from 2 to 5

Mark

User avatar
YoN
Posts: 76
Joined: Wed 04 Jul 2007, 07:28
Location: NIPPON

#3 Post by YoN »

Thank you MU,
can you load other sfs files?
Yes.
Maybe you have loaded too many?
No, I loaded 2 sfs-files.
devx_216.sfs and AdobeRead.sfs.
If it was loaded, it should show up in
/initrd/pup_roX
Yes! I found /intrd/pup_ro3/usr/local/Adobe/ directory.

And I can start it.
But how to load it from commandline "# acroread"?
I shounld make sym link?

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#4 Post by MU »

(the blue text are shell commands)

Do you also find: /usr/local/Adobe/ ?

If no, there is a special issue with .wh files.

If yes, you can create a symlink to /usr/local/bin/ for your sfs, like:

cd /root/sfs/usr/local/bin
ln -s /usr/local/Adobe/Acrobat7.0/bin/acroread acroread


Or you create such a startscript
/root/sfs/usr/local/bin/acroread

Code: Select all

#!/bin/bash

cd /usr/local/Adobe/Acrobat7.0/bin
./acroread "$@"
Make it executable:
chmod 755 /root/sfs/usr/local/bin/acroread

Then rebuild the sfs.

Mark

User avatar
YoN
Posts: 76
Joined: Wed 04 Jul 2007, 07:28
Location: NIPPON

#5 Post by YoN »

MU,
Do you also find: /usr/local/Adobe/ ?
If no, there is a special issue with .wh files.
No.
Sorry, I can't understand a meaning of ".wh files"
What is .wh files ? Teach me it.

Thank you.

User avatar
YoN
Posts: 76
Joined: Wed 04 Jul 2007, 07:28
Location: NIPPON

#6 Post by YoN »

Compromise Plan.

AdobeReader.sfs still does not loaded automaticaly.

But after I loaded AdobeReader.sfs by BootManager, I made a script.

I used MU's script ; acroread.sh

Code: Select all

#!/bin/bash

cd /initrd/pup_ro3/usr/local/Adobe/Acrobat7.0/bin
./acroread "$@"
And

Code: Select all

chmod 755 /root/acroread.sh
I can somehow use AdobeReader.sfs.

I'll try another way to automatilc-load.

Thanks.
Last edited by YoN on Mon 30 Jul 2007, 07:21, edited 1 time in total.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#7 Post by MU »

just have some minutes time, please read about the wh.opaque files here, that prevent folders from being shown correctly.
They must be deleted by a script.

http://murga-linux.com/puppy/viewtopic. ... 35&t=19834

Mark

User avatar
YoN
Posts: 76
Joined: Wed 04 Jul 2007, 07:28
Location: NIPPON

#8 Post by YoN »

MU,

Give me some time to study.
These are difficult for me to understand.

I use OpenOffice.org-2.sfs, it is loaded on boot time.
It is great.

I want to look at inside of OOo-2.sfs.
How can I do it?
I read howto-look-inside-of-sfs-files somewhere, but I forgot it.

Thanks again.

YoN

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#9 Post by MU »

I *think* this is the problem:

A bug in the way sfs files are mounted.
If there is a folder with no files in it, it becomes "invisible".
For example /Adobe/ has no file in it, only another folder.
So one solution could be, to add a (hidden) file to every folder.

Please try this:
Before you build the sfs, run the following script.

Save this text as /root/add-dummy-files

And make it executable by typing:
chmod 755 /root/add-dummy-files

Code: Select all

#!/bin/bash

find sfs -type d | while read a
do
echo "1">$a/.dummyfile$$
done
Now run it:
cd /root
./add-dummy-files


Now in /root/sfs/ there should be files like: dummyfile32745

The number can be different.
Now build again a .sfs from the sfs-folder, and try to see if it gets mounted correctly.

If it still fails, we might have to try something else.

To watch a sfs, simply start with it, and look in /initrd/pup_roX
One of those folders 1-5 contains the files from that sfs.

Or try such commands:

mkdir /root/mount
mount -o loop test.sfs /root/mount


Now the content is visible in /root/mount
You should unmount it again then:
umount /root/mount

Mark

User avatar
YoN
Posts: 76
Joined: Wed 04 Jul 2007, 07:28
Location: NIPPON

#10 Post by YoN »

I did 2 TESTs.

TEST 1 ;
1: I made /root/add-dummy-files script.
2: chmod 755 /root/add-dummy-files
3: cd /root
4: ./add-dummy-files
5: I confirmed .dummyfile18397 in each directory.
6: I opened .dummyfile18397 with Geany.
7: .dummyfile18397 was wrote only "1".
8: Then build a .sfs from the sfs-folder, and try again.
9: Nothing changes. a .sfs file was mounted in /initrd/pup_ro3/usr/local/Adobe/... .

TEST 2 ;
When I saw the inside of /initrd/pup_ro3/usr/local/Adobe/directories,
AdobeReader has some symbolic links of some-adobe-imamges.png.
These are linked to /root/sfs/usr/local/Adobe/... .

1: I changed them real image-png files. Of course, names are same as sym link names.
2: Then I build a .sfs and reboot Puppu.
3: Adobe.sfs file was mounted in /initrd/pup_ro3/ .
4: When I start AdobeReder, I do thus,
5: cd /initrd/pup_ro3/usr/local/Adobe/Acrobat7.0/bin/
6: Then command "./acroread" or click it on Rox-filer.

I can start AdobeReader from /initrd/pup_ro3/directory, but can other people who use same sfs file do likewise ?

YoN

User avatar
nyu
Posts: 110
Joined: Tue 14 Mar 2006, 15:30
Location: good earth

#11 Post by nyu »

Hi MU and YoN,

I think the method to make .sfs file is correct. The problem is for some reason, you just can't see the files or directories :cry:

After reading through the Forum, I have encountered the following link:
http://www.murga-linux.com/puppy/viewto ... 1&start=15
This is from PaulBx1:

Code: Select all

find /initrd/pup_rw | grep "/\.wh\." |
while read N
do
rm "$N"
done
I made the script and executed it. The script deleted all of the .w*opaque files.
After that, I can see /usr/local/Adobe/Acrobat7.0.... and other Acrobat related files.

I don't know deleting all of the .w*opaque files will cause any problem though.

Nyu

User avatar
YoN
Posts: 76
Joined: Wed 04 Jul 2007, 07:28
Location: NIPPON

#12 Post by YoN »

nyu,

I executed that script, after booting AdobeReader-7.0-JP_216.sfs.

I also found /usr/local/Adobe directory! and I can start AdobeReader.

But once remove AR.sfs, /usr/local/Adobe directory stay.
So I deleted /usr/local/Adobe directory, and loaded AR.sfs with BootManager again.

I could not see /usr/local/Adobe directory.
I run the script again, then I saw Adobe directory.

Again and again, I did add and remove AR.sfs.
Then I didn't need to run the script, I saw Adobe directory.
I do not understand the reason.

I got possible to start AR at all events.

It is not complete solution, but will be good.

Thank you MU.
Thank you nyu.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#13 Post by MU »

The problem is unionfs.
This is the driver that loads a sfs and mounts it, and combines it with the other filesystem.

unionfs seems to have a bug, just the one you encountered.

For this reason Barry is testing the new aufs-driver.

The .wh files are created, when a folder is deleted.
You cannot delete from a sfs (it is read only).
So unionfs instead creates a .wh file, to mark a file or folder as "deleted".
So the modified kernel thinks there is no file, when there is a .wh file.

The script I gave you, I used in a different way for KDE.
I did not create dummyfiles in /root/sfs/ , but I used a more complicated method, which worked.

I hoped, the simpler version I gave you, might work too, but so I was wrong.
I even vaguely remember it did not work like this, but I was not shure any more.
So I wanted you to test it again, just to be shure.


When I created a sfs, I ran a script, that makes a list of all folders in the sfs.
Then it creates a dotpup.
The dotpup will install dummy-files to all folders saved in this list, AFTER the final sfs was mounted after the reboot.
This method also makes all folders visible, because know the unionfs-driver knows, that there are files in it.
So it has a similar effect effect as deleting those .wh files.

Of course this method has also the disadvantage, that all folders remain there with the dummyfiles, even if you do not use the sfs any longer.
I just accepted this as unavoidable, at least KDE works now.

I have not much time, so I cannot create a script for you.
I'm away until sunday night.
If you have knowledge in shellscripts, you could modify my "mkkde" to build a Adobe sfs with a Adobe dotpup.

http://murga-linux.com/puppy/viewtopic.php?t=11876

If it looks too complicated, please remind me next monday or tuesday, then I could try to modify it on my own.

Mark

User avatar
YoN
Posts: 76
Joined: Wed 04 Jul 2007, 07:28
Location: NIPPON

#14 Post by YoN »

MU,

As for the AdobeReader Japanese edition, it's size becomes very big so that fonts increase.

Thus I intended to make it a ComboPack.

I think that your method to make dummyfiles is one good way.

But I am not a programmer.

I cannot write the script, and there is not time, too.

It is possible for me only to wait for it to be fixed.

Thanks.

YoN

Post Reply