SFS file Installer for Full-HD Puppy installs. TEST

Under development: PCMCIA, wireless, etc.
Message
Author
User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#16 Post by sunburnt »

Hi veronicathecow; Nice to hear from you & that my creation's installing well.
Have you tried UnInstalling anything yet? That's the real Q here...
Maybe pick a small app., install it, & then uninstall it for a test.

Duplicate file backup needs testing also, but that'll be proven with time.


Hi DiabloRojo; (Red Devil?) You installed “devx_214.sfs

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#17 Post by sunburnt »

DiabloRojo; I'm making the new version, but it'll test for duplicate dirs. that are
already there, so it won't remove the ones that were left from the uninstall.

I'll give you instructions on how to remove those dirs. when I post the new app.

Your amigo... Terry

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#18 Post by sunburnt »

DiabloRojo; I'm posting your instructions to delete the leftover dirs. now.

But I'm still waiting on info I hope to get to complete sfsInstaller.

Here's the code to fix your Puppy install:

Code: Select all

###### Run each one of these commands separately in Xterm or rxvt to remove leftover dirs.
###### HiLite & Paste (middle mouse button) is the easyist way to put these commands into Xterm.

### On the next line, enter between the 2 '' the path & filename of the SFS file.
sfsFILE=''

sfsMNT='/mnt/data'

mount -t squashfs -o loop $sfsFILE $sfsMNT

find $sfsMNT |sed "s#^$sfsMNT##" > /root/${sfsFILE}.inst

### If you want to, at this point you can look at the file: /root/${sfsFILE}.inst

DIRS=`cat /root/${sfsFILE}.inst`

echo "$DIRS" |while read LINE;do;rmdir $LINE;done

umount $sfsMNT

rm -f /root/${sfsFILE}.inst

I hope this fixes it, let me know how it goes... Terry

User avatar
DiabloRojo
Posts: 27
Joined: Sun 11 Mar 2007, 10:47
Location: Madrid, Spain, Europe, Earth, Solar System

#19 Post by DiabloRojo »

Hello Terry.
Hi DiabloRojo; (Red Devil?)
Yes.

Thanks for your solution, but my problem is solved.

Yesterday, I study your program, execute "mount -t squashfs -o loop /fltkc++_214.sfs /mnt/fltkc++_214" and used the Midnight Commander, command "mc", for erase the installed folders.


And I create new files of installation of pgs_214.sfs with the following instructions.

Code: Select all

mount -t squashfs -o loop /pgs_214.sfs /mnt/pgs_214
find /mnt/pgs_214 | sed "s#^/mnt/pgs_214##" > /root/my-applications/sfsInstaller_full-HD/install-files/pgs_214.files
umount /mnt/pgs_214
Also, I did with web_214.sfs and devx_214.sfs.


If your you publish a new version of your program, I will prove it.


Greetings of your friend Justo, it's is my name, amigo Terry.
[u][url=http://www.forosuse.org]Foro de usuarios de (Forum of users of) OpenSUSE[/url][/u]
[url=http://es.opensuse.org][img]http://img83.imageshack.us/img83/8194/suse1userbarxc7.gif[/img][/url]
LO SIENTO NO CONTESTO A PRIVADOS SOBRE GNU/LINUX.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#20 Post by sunburnt »

Cool Justo; Someone else who knows their way around a console & Bash scripts!

The new app. splits the ".files" file into ".dirs" & ".files".
When the ".dirs" file is made, preexisting dirs. are not included in it.
This should leave Puppy the same as before the install.

Terry B.

bugman

#21 Post by bugman »

Works weird, but works. Everything installed, so I'm basically happy. I'm not the best tester, so I can say no more, sorry...

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#22 Post by sunburnt »

Thanks bugman, hopefully it's real close now, should only be minor bugs.


### CRITICAL: Be SURE to gunzip & untar in the dir.: /root/my-applications


### Change log:
code cleaned up
checkbox to enable rxvt display of files

Lots of little stuff changed again, I may have created bugs...

### NOTE:
If someone has setup a TESTING Full-HD install, please test these items:

Verify install & uninstall as well as you can.
If preexisting files are backed up & restored properly.
If checkbox, the rxvt display shows & is killed when done (install & uninstall).
If no checkbox, messagebox display shows & is killed (install & uninstall).


This should be this apps. final form, so final testing is all that's to be done.
If we can test it out fairly well, I'll submit it to Barry for inclusion in Puppy.

bugman

#23 Post by bugman »

### CRITICAL: Be SURE to gunzip & untar in the dir.: /root/my-applications
Oops...

I put it in /usr/local/apps as I'd seen from using the sfs files in a live-CD install that that was where the sfs files were installing, and knew that there's always some filesystem tinkering going on in Western Oz.

Maybe that's why it ran so weird? Oh well, Gimp works, OOO works, and all's well with the world for now...

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#24 Post by sunburnt »

bugman; Just move the dir.: /sfsInstaller_full-HD & it's contense to: /root/my-applications

The lists of installed files & other paths are hard coded to: /root/my-applications/sfsInstaller_full-HD

bugman

#25 Post by bugman »

Done, thanks. Btw, my sfslist is empty and was throughout the installation. But I have enough space for a few stray programs, so no worries...

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#26 Post by sunburnt »

bugman; Yep, the install tracking file is made during installation.
With the app. in the wrong place it couldn't make the file (no dir.).
If you want, I can give you instructions to make one using Xterm.
However... If your not going to want to uninstall it, don't bother.

If the apps. in the correct path now, then future installs should show.
The installed SFS file shows in the list because there's an install tracking file.

bugman

#27 Post by bugman »

Actually, I thought about it some and wouldn't mind making the list all proper-like.

A: I'm okay today, but tomorrow the unwanted programs will be driving me nuts.

B: Using the terminal makes me feel powerful.

C: My inability to read instructions is my own problem and I shouldn't expect others to bail me out of--oh, wait, nevermind...

Pick a reason, any reason!

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#28 Post by sunburnt »

LOL...

I'll post some cli commands for you to make an "install file" (not at my PC).
Unfortunately simply reinstalling the SFS file again won't do the trick.
Basically instructions to mount the SFS file & generate a correct install file.
Terry

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#29 Post by sunburnt »

bugman; Here's the fix to make the install file.

### Run each one of these commands separately in Xterm or rxvt.
### HiLite each line one at a time & Paste (middle mouse button) into Xterm.

### The first line, enter the path & filename of the SFS file between the 2: ''
### Example: sfsFILE='/mnt/home/devx_214.sfs'

Code: Select all

sfsFILE=''

sfsMNT='/mnt/data'

mount -t squashfs -o loop $sfsFILE $sfsMNT

INST='/root/my-applications/sfsInstaller_full-HD/install-files/${sfsFILE}.inst'

find $sfsMNT |sed "s#^$sfsMNT##" > $INST

umount /mnt/data
Run sfsInstaller & you should now see the SFS file listed.

Unfortunately SFS files usually are larger collections of apps.
(as they should be), so they have to be installed & removed all at once.
However installing from Unleashed PET files is done one at a time (better),
but I guess some may not be fully configured (correct me if I'm wrong).

Let me know if you have any problems... Terry

bugman

#30 Post by bugman »

I tried it for "OOo_215.sfs", but what came up in the sfs installer window was "sfsFILE.inst". Thanks for trying (though it was probably something I did wrong), I then just tracked down as many of the folders for progs I didn't need in /root/, usr/whatever and deleted.

Besides, I already had my Unix-stud moment today. I was working on a friends Mac (shudder!) and they mentioned a file on their desktop that had suddenly appeared and wouldn't go away. It was some weird bit of web-junk that they must have accidentally summoned into being, and resisted all efforts at deleting the regular way. So I opened up a terminal and did rm /Users/mac/Desktop/srvurl and voila! They were amazed that such a primitive tool existed on their Aqua-fresh post-modern doorstop.

The best thing of all is that they thought I actually knew what I was doing...

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#31 Post by sunburnt »

Geek to Guru in a flash!

Sorry about the extra work bugman... Terry

vanchutr
Posts: 438
Joined: Sat 05 Aug 2006, 12:04

Mount the sfs with sfsinstaller

#32 Post by vanchutr »

I can't mount my sfs file on 216 alpha (with full installation). But with sfsinstaller i'd mounted successfully my sfs file. Thank all

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#33 Post by sunburnt »

Hi vanchutr; So it installed the sfs file sucessfully?
If you try UNinstalling it, please post here how well it worked.
So far I have no idea if the uninstall function works at all.
Terry

Fishy
Posts: 234
Joined: Fri 27 Jan 2006, 01:22

#34 Post by Fishy »

Where should the sfs files be in a full install situation? :wink:

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#35 Post by sunburnt »

Hi Fishy; A Full-HD install of Puppy can't use SFS files directly (it won't work).

That's why I made this app., it copies the contense of the SFS file to the full install.

To use it, click: [Install SFS file] & a file chooser pops up.
So the SFS files can be anywhere when installed with my app.: sfsinstaller
After installing the SFS file, it's no longer needed, but is good for a backup.

Post Reply