Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 26 Nov 2014, 12:30
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
SFS file Installer for Full-HD Puppy installs. TEST
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 2 of 5 Posts_count   Goto page: Previous 1, 2, 3, 4, 5 Next
Author Message
sunburnt


Joined: 08 Jun 2005
Posts: 5042
Location: Arizona, U.S.A.

PostPosted: Thu 12 Apr 2007, 16:24    Post_subject:  

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” & it doesn't work?
I don't think “devx_214.sfs” has any [Start] menu items to click on, it's just
libraries & other development stuff that's needed to compile apps. & the kernel.

The file sfslist is only used by the GTK GUI TableBox to show the files installed.
The files in the dir. /install-files are file lists of the files in that installed app.

To uninstall an app., click the app. in the TableBox & click [UnInstall SFS file].
This should do: rm -f (each file in list in /install-files/AppName.files)
Another words it should delete each file in the apps. file list one by one.
So after uninstalling an app. the SFS file should be just the way it was before.

I haven't checked a list file yet to make sure it has ALL the app. files listed in it.
The command: find $sfsMNT |sed "s#^$sfsMNT##" > ${instFILES}/${sfsNAME}.files
Should create the file "(AppName).files" with ALL the installed apps. files list in it.
If the list is complete, then uninstall can delete all of the apps. files correctly.

##### JUST READ NEW POST by: DiabloRojo

YES, your correct... It does't remove the dirs.! (sorry about that)
I'll add the line to delete the dirs. to sfs installer when I figure it out.

Once I've done this, all you'll have to do is reinstall the app. & then uninstall it again.
This will remove everything including the dirs. that were left over.

I'll post & announce the new version here when I'm done with it.
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5042
Location: Arizona, U.S.A.

PostPosted: Thu 12 Apr 2007, 19:18    Post_subject:  

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
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5042
Location: Arizona, U.S.A.

PostPosted: Fri 13 Apr 2007, 14:58    Post_subject:  

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:

###### 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
Back to top
View user's profile Send_private_message 
DiabloRojo


Joined: 11 Mar 2007
Posts: 27
Location: Madrid, Spain, Europe, Earth, Solar System

PostPosted: Sat 14 Apr 2007, 11:26    Post_subject:  

Hello Terry.
Quote:
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:
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.

_________________
Foro de usuarios de (Forum of users of) OpenSUSE

LO SIENTO NO CONTESTO A PRIVADOS SOBRE GNU/LINUX.
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5042
Location: Arizona, U.S.A.

PostPosted: Sat 14 Apr 2007, 17:05    Post_subject:  

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.
Back to top
View user's profile Send_private_message 
bugman


Joined: 20 Dec 2005
Posts: 2131
Location: buffalo commons

PostPosted: Tue 17 Apr 2007, 16:59    Post_subject:  

Works weird, but works. Everything installed, so I'm basically happy. I'm not the best tester, so I can say no more, sorry...
Back to top
View user's profile Send_private_message Visit_website 
sunburnt


Joined: 08 Jun 2005
Posts: 5042
Location: Arizona, U.S.A.

PostPosted: Tue 17 Apr 2007, 17:28    Post_subject:  

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.
Back to top
View user's profile Send_private_message 
bugman


Joined: 20 Dec 2005
Posts: 2131
Location: buffalo commons

PostPosted: Tue 17 Apr 2007, 17:32    Post_subject:  

Quote:
### 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...
Back to top
View user's profile Send_private_message Visit_website 
sunburnt


Joined: 08 Jun 2005
Posts: 5042
Location: Arizona, U.S.A.

PostPosted: Tue 17 Apr 2007, 19:19    Post_subject:  

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
Back to top
View user's profile Send_private_message 
bugman


Joined: 20 Dec 2005
Posts: 2131
Location: buffalo commons

PostPosted: Wed 18 Apr 2007, 06:45    Post_subject:  

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...
Back to top
View user's profile Send_private_message Visit_website 
sunburnt


Joined: 08 Jun 2005
Posts: 5042
Location: Arizona, U.S.A.

PostPosted: Wed 18 Apr 2007, 13:39    Post_subject:  

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.
Back to top
View user's profile Send_private_message 
bugman


Joined: 20 Dec 2005
Posts: 2131
Location: buffalo commons

PostPosted: Wed 18 Apr 2007, 14:03    Post_subject:  

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!
Back to top
View user's profile Send_private_message Visit_website 
sunburnt


Joined: 08 Jun 2005
Posts: 5042
Location: Arizona, U.S.A.

PostPosted: Wed 18 Apr 2007, 17:17    Post_subject:  

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
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5042
Location: Arizona, U.S.A.

PostPosted: Thu 19 Apr 2007, 14:03    Post_subject:  

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:
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
Back to top
View user's profile Send_private_message 
bugman


Joined: 20 Dec 2005
Posts: 2131
Location: buffalo commons

PostPosted: Thu 19 Apr 2007, 17:10    Post_subject:  

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...
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 2 of 5 Posts_count   Goto page: Previous 1, 2, 3, 4, 5 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0934s ][ Queries: 12 (0.0137s) ][ GZIP on ]