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 01 Jul 2015, 13:06
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
SlocateGUI with apptree
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
stemsee

Joined: 27 Jun 2013
Posts: 1217
Location: In The Way

PostPosted: Fri 22 May 2015, 15:48    Post_subject:  SlocateGUI with apptree
Sub_title: find files, re-build pet from installed app
 

This is my update to slocategui, which depends on yad and slocate. Find files dirs easily. Per partition/drive functionality. Use slocate to read .packages/app.files list to feed into apptree to rebuild app in dir tree. Also combine several related installs together. Then create pet or sfs. Select multiple media files and send to player as playlist. Use slocate to remove/copy/move files and/or dirs recursively no prompt.

https://mega.co.nz/#!dcZmEZqB!8vyWC9kGikMizHZgGQwTbaFAQqZ45WlBgZDBRqt31yU
Back to top
View user's profile Send_private_message MSNM 
stemsee

Joined: 27 Jun 2013
Posts: 1217
Location: In The Way

PostPosted: Thu 28 May 2015, 04:49    Post_subject:  

So here is an update. Slocate-GUI-3.2-apptree

Added the ability to link -s file
Rename file.
Replace e.g. replace space in file name with something else: syntax is 'thing-to replace'replace-with-this' only three apostrophees:replace space ' '_' with underscore.
for files from windows machines. Replace any string/symbol except apostrophe and backslash.

With apptree, which lets you rebuild a pet from install file list ~/.packages/*.files or from multiple individually selected files fed to apptree as a playlist. Gives choice to build sfs or pet or 'both'. And rename folder before building package so that search term need not be the package name term.
SlocateGUI-AppTree-3.2.pet
Description 
pet

 Download 
Filename  SlocateGUI-AppTree-3.2.pet 
Filesize  34.88 KB 
Downloaded  13 Time(s) 

Edited_times_total
Back to top
View user's profile Send_private_message MSNM 
gcmartin


Joined: 14 Oct 2005
Posts: 5143
Location: Earth

PostPosted: Thu 28 May 2015, 16:37    Post_subject:  

Does this replace the slocateGUI-x86_64.pet? Should I uninstall if on any distro?

Thanks in advance

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send_private_message 
stemsee

Joined: 27 Jun 2013
Posts: 1217
Location: In The Way

PostPosted: Fri 29 May 2015, 05:13    Post_subject:  

no this i 32bit only, you should be able to unpack it and install only the scripts slocategui and apptree and /etc/updatedb.conf
Back to top
View user's profile Send_private_message MSNM 
stemsee

Joined: 27 Jun 2013
Posts: 1217
Location: In The Way

PostPosted: Fri 29 May 2015, 05:19    Post_subject:  

There are some problems I a experiencing. To have all partitions indexed in main db i do this inn term
Code:
slocate -u -e /initrd
/etc/updatedb.conf must be edited to remove /mnt from exluded dirs. Then all conneted partitions will be mounted and indexed. If you wish to idex only system then the command is
Code:
slocate -u -e /initrd,/mnt,
In fact if /initrd is in the updatedb.conf ten no need to specify initrd. But for devs sseeing initrd files might be useful.
I was really trying to get it to build a databse per partition and choose to search only that db for that partition, but I am not making much headway.

I want to acheive all of this with one single script and binary and configfile.
Back to top
View user's profile Send_private_message MSNM 
stemsee

Joined: 27 Jun 2013
Posts: 1217
Location: In The Way

PostPosted: Fri 29 May 2015, 16:23    Post_subject:  

Okay ... I have cracked it! Symlinks and grep have combined to do exactly what I intended! Wink
Back to top
View user's profile Send_private_message MSNM 
stemsee

Joined: 27 Jun 2013
Posts: 1217
Location: In The Way

PostPosted: Fri 29 May 2015, 17:38    Post_subject:  

This is my most used program ever. It is absolutely the most useful utility ever.

Now it works per partition. It checks if the db exists first. it makes sure correct permissions for reading the db are set. it updates each db that had files altered with the script.
slocateGUI-x86_64.pet
Description  64bit
pet

 Download 
Filename  slocateGUI-x86_64.pet 
Filesize  28.59 KB 
Downloaded  23 Time(s) 
SlocateGUI-AppTree-3.2.pet
Description 
pet

 Download 
Filename  SlocateGUI-AppTree-3.2.pet 
Filesize  34.88 KB 
Downloaded  21 Time(s) 
Back to top
View user's profile Send_private_message MSNM 
stemsee

Joined: 27 Jun 2013
Posts: 1217
Location: In The Way

PostPosted: Sat 30 May 2015, 18:01    Post_subject:  

So I ran into this problem. After plugging in a 500gb usb hdd with media files on it, slocate did its thing and built a db for that drive only. However on removing the drive and later plugging it back in it ws assigned a different tag: sdc instead of sdb ... so now the db is incorrect because it still thinks the files are stored on sdb*. To deal with this I added code to automatically add all partitions to fstab by UUID if they are not already added. Working fine so far. Also added reset function for deleting all slocate.db files on a ll attached partitions.
Back to top
View user's profile Send_private_message MSNM 
stemsee

Joined: 27 Jun 2013
Posts: 1217
Location: In The Way

PostPosted: Sun 31 May 2015, 04:43    Post_subject:  

It is surprising how difficult it is to find definitive fstab entries for various filesystems. However all is well enough. Original fstab gets backed-up first before entries are made. Just plug in all the drives you want indexed and added to fstab.

I have made some features into functions, to improve the flow of the progrm for enhanced user experience. One script does everything. ' slocategui reset' in term deletes all slocate.db files and restores fstab.

If anyone wants this and is able to provide useful feedback please pm me.
Back to top
View user's profile Send_private_message MSNM 
stemsee

Joined: 27 Jun 2013
Posts: 1217
Location: In The Way

PostPosted: Sun 31 May 2015, 12:33    Post_subject:  

gui
capture10327.jpg
 Description   
 Filesize   7.96 KB
 Viewed   66 Time(s)

capture10327.jpg

capture10923.jpg
 Description   
 Filesize   8.87 KB
 Viewed   66 Time(s)

capture10923.jpg

capture11743.jpg
 Description   
 Filesize   9.54 KB
 Viewed   65 Time(s)

capture11743.jpg

capture14850.jpg
 Description   
 Filesize   31.37 KB
 Viewed   66 Time(s)

capture14850.jpg

capture15348.jpg
 Description   
 Filesize   32.22 KB
 Viewed   67 Time(s)

capture15348.jpg

Back to top
View user's profile Send_private_message MSNM 
stemsee

Joined: 27 Jun 2013
Posts: 1217
Location: In The Way

PostPosted: Sun 31 May 2015, 12:37    Post_subject:  

gui
capture4628.jpg
 Description   
 Filesize   11.64 KB
 Viewed   65 Time(s)

capture4628.jpg

capture26135.jpg
 Description   
 Filesize   21.67 KB
 Viewed   65 Time(s)

capture26135.jpg

capture26965.jpg
 Description   
 Filesize   33.96 KB
 Viewed   66 Time(s)

capture26965.jpg

capture27919.jpg
 Description   
 Filesize   8.95 KB
 Viewed   64 Time(s)

capture27919.jpg

capture28898.jpg
 Description   
 Filesize   11.78 KB
 Viewed   64 Time(s)

capture28898.jpg

capture30010.jpg
 Description   
 Filesize   53.12 KB
 Viewed   65 Time(s)

capture30010.jpg

Back to top
View user's profile Send_private_message MSNM 
stemsee

Joined: 27 Jun 2013
Posts: 1217
Location: In The Way

PostPosted: Mon 01 Jun 2015, 06:13    Post_subject:  

And finally I went through the code and optimized. Now it is fast as well as comprehensive. The only glitch I have found is that sometimes results are shown for the partition db and some results for the system db ... bleed over or crosstalk so to speak. Either both DBs are being searched or the items are logged in both DBs. Not a deal breaker by any means! And I am very happy to have successfully coded the script to auto add all partitions to fstab correctly, only once. Not all filesystem types are catered for though; only ext[2-4], ntfs, vfat, and hfsplus. But I will continue to add others. Aslo I will continue to add preset commands handling, in addition to ; replace, cp, mv, rm, ln, rename. I have just realised that the rm section could be used for all multiple execs, such as petget (install many pets), or dpkg -i, rpm, or anything requiring a simple loop. I would only need to add M after the command with options e.g. rm -rf M ... as long as the M came at the end the command would send it to the loop section and loop through the results list.
Back to top
View user's profile Send_private_message MSNM 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
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.0689s ][ Queries: 12 (0.0039s) ][ GZIP on ]