(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 26 Nov 2020, 23:01
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
PackIt-1.22 - a flexible Archiving/Compressing GUI
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 7 of 8 [113 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8 Next
Author Message
SFR


Joined: 26 Oct 2011
Posts: 1802

PostPosted: Sat 02 Nov 2019, 07:14    Post subject:  

Hey Revolverve

PackIt is a GUI for archiving/compressing random stuff, so creating an executable AppImages is kinda out of its scope, just like creating pet, deb, rpm, flatpack, snap, etc. packages.

The thing is that AppImage is not "just" an executable SFS, it's an SFS (used to be an ISO, before that) with prepended i686/x86_64 binary that handles mounting and executing the payload.
Also, the input content must meet specific criteria (.desktop file, AppRun launcher, etc.) - you can't just create an AppImage from anything you want.
Well, technically you could, but it would be just an SFS with useless binary attached to it. Wink

Have a great one, too &
Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
Revolverve


Joined: 08 Nov 2008
Posts: 266
Location: 45°17'28.8"N 72°16'08.8"W_avatar/ mira.ca

PostPosted: Sun 03 Nov 2019, 09:32    Post subject:  

SFR
ok,thanks for the useful info!
Will shoot to your UExtract topic for the next questions.
I enjoy your work!
Thank you again.

_________________
Help mira.ca
Back to top
View user's profile Send private message 
Smithy


Joined: 12 Dec 2011
Posts: 1157

PostPosted: Fri 29 Nov 2019, 06:09    Post subject: lz4 option  

Hi SFR, just wondering with V1.9, is there an easy way to make a LZ4.sfs?
And there is a new block size option, what would be optimal, 4k?
I wanted to experiment with a few sqooshing up formats, only ever used GZIP and XZ so far.
Screenshot.png
 Description   
 Filesize   48.55 KB
 Viewed   544 Time(s)

Screenshot.png

Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1802

PostPosted: Fri 29 Nov 2019, 11:31    Post subject:  

Hey Smithy,

Smithy wrote:
Hi SFR, just wondering with V1.9, is there an easy way to make a LZ4.sfs?

Yes, LZ4 should be available on the drop-down list below the mksquashfs radio button.
But it shows only if squashfs-tools in your distro support LZ4.

Smithy wrote:
And there is a new block size option, what would be optimal, 4k?

Depends on what is your priority.
If you prefer performance over compression ratio, go low and if the opposite, go high.

Greetings!
packit_lz4.png
 Description   
 Filesize   46.71 KB
 Viewed   539 Time(s)

packit_lz4.png


_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
zagreb999

Joined: 11 Apr 2014
Posts: 573
Location: Yugoslavija

PostPosted: Fri 29 Nov 2019, 13:47    Post subject:  

to create lz4 in
tazpuppy i use

liblz4-1_0.0~r122-2_i386.deb

liblz4-tool_0.0~r122-2_i386.deb

squashfs-tools_4.3-3+deb9u1_i386.deb
Back to top
View user's profile Send private message 
Smithy


Joined: 12 Dec 2011
Posts: 1157

PostPosted: Fri 29 Nov 2019, 19:29    Post subject:  

Great, thanks to you both.
I will see if I can find the tools.
Back to top
View user's profile Send private message 
Smithy


Joined: 12 Dec 2011
Posts: 1157

PostPosted: Sun 01 Dec 2019, 11:18    Post subject:  

Hi SFR, not sure if I asked this before, but I am getting an error on Packiting an SFS with no compression option. Says it was not successful almost immediately.
There's no relevant information in view log. Got LZ4 working thanks.
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1802

PostPosted: Sun 01 Dec 2019, 12:08    Post subject:  

Thanks Smithy, please try v1.20.
___________

Version 1.20:

- mksquashfs: remove '-noId' option, which is not supported by older versions of squashfs-tools
- add missing ; in .desktop file

First post updated.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
Smithy


Joined: 12 Dec 2011
Posts: 1157

PostPosted: Sun 01 Dec 2019, 13:12    Post subject:  

On a quick test with a smallish Adrv, No Compression works A OK.
Thanks SFR!
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 5524
Location: Ontario

PostPosted: Thu 23 Jan 2020, 21:10    Post subject:  

I'm writing my own compression and encryption app
and I've decided to put in help button to tell users that foreign characters
can be used in password.

Code:
 <button>                     
         <variable>VARIABLE</variable>
         <action>Xdialog --title "'$(gettext 'Warning')'"  --rc-file /root/.config/pclock/orangebox.rc    --wrap --screen-center --left --no-buttons --msgbox  "'$(gettext 'Foreign characters are allowed in a password but no spaces.')'"   0 0 100  & </action>
         <input file stock="gtk-help"></input>
     </button>
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 5524
Location: Ontario

PostPosted: Tue 28 Jan 2020, 19:49    Post subject:  

I noticed that packit allows the last character of a password to be blank.
Uextract then requires the blank to be added to password to succeed.
_____________________________________________________
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1802

PostPosted: Sat 22 Feb 2020, 09:51    Post subject:  

Version 1.21:

- fixes and improvements in creating ISO and ext2 images
- zstd: use '-T0' option (max. # of threads)

First post updated.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 9400
Location: Perth, Western Australia

PostPosted: Mon 09 Mar 2020, 20:47    Post subject:  

@SFR
PackIt is great! Feodor reminded me about it, suggesting it, and UExtract, would be good in EasyOS and EasyPup. Yes, they would!

I took the liberty os making some changes to the 'pinstall.sh' script:

Code:
#!/bin/sh

###############################################################################
# PackIt v1.21 by JakeSFR (a.k.a. SFR)'2013-2016,2019,2020                    #
# GNU GPL v2 applies                                                          #
# Thanks to Pemasu for helping me with making this script Woof-friendly       #
###############################################################################

# -----------------------------------------------------------------------------
# Associate ROX 'SendTo/OpenWith' with PackIt
# -----------------------------------------------------------------------------

#BK got this from UExtract.desktop...
ARCHIVED_MIME='application_epub+zip\napplication_gzip\napplication_img\napplication_initramfs-gz\napplication_mbox\napplication_ms-tnef\napplication_pdf\napplication_pet\napplication_pup\napplication_vnd.adobe.flash.movie\napplication_vnd.android.package-archive\napplication_vnd.appimage\napplication_vnd.comicbook-rar\napplication_vnd.comicbook+zip\napplication_vnd.debian.binary-package\napplication_vnd.etsi.asic-e+zip\napplication_vnd.ms-cab-compressed\napplication_vnd.ms-excel.sheet.macroEnabled.12\napplication_vnd.ms-powerpoint\napplication_vnd.ms-tnef\napplication_vnd.oasis.opendocument.chart\napplication_vnd.oasis.opendocument.database\napplication_vnd.oasis.opendocument.graphics\napplication_vnd.oasis.opendocument.graphics-template\napplication_vnd.oasis.opendocument.image\napplication_vnd.oasis.opendocument.presentation\napplication_vnd.oasis.opendocument.presentation-template\napplication_vnd.oasis.opendocument.spreadsheet\napplication_vnd.oasis.opendocument.spreadsheet-template\napplication_vnd.oasis.opendocument.text\napplication_vnd.oasis.opendocument.text-master\napplication_vnd.oasis.opendocument.text-template\napplication_vnd.oasis.opendocument.text-web\napplication_vnd.openofficeorg.extension\napplication_vnd.openxmlformats-officedocument.presentationml.presentation\napplication_vnd.openxmlformats-officedocument.spreadsheetml.sheet\napplication_vnd.openxmlformats-officedocument.wordprocessingml.document\napplication_vnd.rar\napplication_vnd.sqlite3\napplication_vnd.squashfs\napplication_vnd.sun.xml.calc\napplication_vnd.sun.xml.calc.template\napplication_vnd.sun.xml.draw\napplication_vnd.sun.xml.draw.template\napplication_vnd.sun.xml.impress\napplication_vnd.sun.xml.impress.template\napplication_vnd.sun.xml.math\napplication_vnd.sun.xml.writer\napplication_vnd.sun.xml.writer.global\napplication_vnd.sun.xml.writer.template\napplication_x-7z-compressed\napplication_x-abiword\napplication_x-ace\napplication_x-aes\napplication_x-alz\napplication_x-amiga-disk-format\napplication_x-amipro\napplication_x-apple-diskimage\napplication_x-arc\napplication_x-archive\napplication_x-arj\napplication_x-bfe\napplication_x-blender\napplication_x-bzip\napplication_x-bzip-compressed-tar\napplication_x-cb7\napplication_x-cbr\napplication_x-cbt\napplication_x-cbz\napplication_x-ccrypt\napplication_x-cd-image\napplication_x-chm\napplication_x-compress\napplication_x-compressed-tar\napplication_x-cpio\napplication_x-cpio-compressed\napplication_x-dar\napplication_x-deb\napplication_x-debian-package\napplication_x-emerald-theme\napplication_x-ext2-image\napplication_x-ext3-image\napplication_x-ext4-image\napplication_x-font-pcf\napplication_x-gamegear-rom\napplication_x-gettext-translation\napplication_x-gnumeric\napplication_x-gz-font-linux-psf\napplication_x-gzip\napplication_x-gzpdf\napplication_x-gzpostscript\napplication_x-hwp\napplication_x-initrd\napplication_x-initrd-compressed\napplication_x-iso9660-appimage\napplication_x-java-archive\napplication_x-java-pack200\napplication_x-lha\napplication_x-linux-kernel\napplication_x-lz4\napplication_x-lrzip-compressed-tar\napplication_x-lzip\napplication_x-lzip-compressed-tar\napplication_x-lzma\napplication_x-lzma-compressed-tar\napplication_x-lzop\napplication_x-matroska\napplication_x-mimearchive\napplication_x-ms-dos-executable\napplication_x-ms-wim\napplication_x-navi-animation\napplication_x-ole-storage\napplication_x-pak\napplication_x-php\napplication_x-rar\napplication_x-raw-disk-image\napplication_x-raw-disk-image-xz-compressed\napplication_x-rpm\napplication_x-shar\napplication_x-sharedlib\napplication_x-shockwave-flash\napplication_x-sms-rom\napplication_x-source-rpm\napplication_x-sqlite3\napplication_x-squashfs-image\napplication_x-tar\napplication_x-tarz\napplication_x-truecrypt\napplication_x-tzo\napplication_x-veracrypt\napplication_x-virtualbox-ova\napplication_x-virtualbox-vbox-extpack\napplication_x-virtualbox-vdi\napplication_x-virtualbox-vmdk\napplication_x-windows-themepack\napplication_x-xar\napplication_x-xpinstall\napplication_x-xz\napplication_x-xz-compressed-tar\napplication_x-zstd-compressed-tar\napplication_x-zoo\napplication_zip\napplication_zstd\naudio_basic\naudio_mpeg\naudio_x-flac\naudio_x-ms-wma\naudio_x-wav\nimage_bmp\nimage_gif\nimage_jpeg\nimage_png\nimage_vnd.djvu\nimage_vnd.djvu+multipage\nimage_vnd.microsoft.icon\nimage_x-icns\nimage_x-win-bitmap\nimage_x-xcursor\nmessage_rfc822\ntext_x-vhdl\nvideo_3gpp\nvideo_mp2t\nvideo_mp4\nvideo_mpeg\nvideo_ogg\nvideo_quicktime\nvideo_webm\nvideo_x-flv\nvideo_x-matroska\nvideo_x-msvideo\nvideo_x-ms-wmv'
echo -e "$ARCHIVED_MIME" > /tmp/packit-archived-mime

PackIt_PATH="/usr/local/apps/PackIt"

LOC1="/etc/xdg/rox.sourceforge.net/SendTo"
LOC2="$HOME/.config/rox.sourceforge.net/SendTo"
LOC3="$HOME/.config/rox.sourceforge.net/OpenWith"
LOC4="/root/.config/rox.sourceforge.net/OpenWith"

if [ "$(pwd)" = "/" ]; then
   for i in "$LOC1" "$LOC2" "$LOC3" "$LOC4"; do
      [ -d "$i" ] && { RC_PATH="$i"; break; }
   done
   Globs_PATH="/usr/share/mime/globs"
   Types_PATH="/usr/share/mime/types"
else   # Woof/Fatdog build system
   for i in ".$LOC1" ".$LOC2" ".$LOC3" ".$LOC4"; do
      [ -d "$i" ] && { RC_PATH="$i"; break; }
   done
   Globs_PATH="./usr/share/mime/globs"
   Types_PATH="./usr/share/mime/types"
fi

if [ -d "$RC_PATH" ]; then

   # Creates missing folders using contents of 'globs' file
   for i in $(grep ":" "$Globs_PATH" | cut -f1 -d ':' | tr '/' '_' | uniq); do
      [ ! -d "${RC_PATH}/.${i}" ] && mkdir "${RC_PATH}/.${i}"
   done
 
   # Creates missing folders using contents of 'types' file
   for i in $(cat "$Types_PATH" | tr '/' '_' | uniq); do
      [ ! -d "${RC_PATH}/.${i}" ] && mkdir "${RC_PATH}/.${i}"
   done
 
   #BK[ ! -d "${RC_PATH}/.inode_unknown" ] && mkdir "${RC_PATH}/.inode_unknown"
   #BK[ ! -d "${RC_PATH}/.group" ] && mkdir "${RC_PATH}/.group"
 
   # Creates symlink to PackIt in every folder
   # BK: must have "_", ex to avoid ".text"...
   for i in $(find "$(realpath "${RC_PATH}")" -maxdepth 1 -type d -iname ".*_*"); do
      #BK: ignore files already archives...
      echo -n "${i/*./}" > /tmp/packit-mime-folder
      grep -q -x -f /tmp/packit-archived-mime /tmp/packit-mime-folder
      [ $? -eq 0 ] && continue
      [ ! -L "${i}/PackIt" ] && ln -s "$PackIt_PATH" "${i}/PackIt"
   done
   #BK[ ! -L "${RC_PATH}/PackIt" ] && ln -s "$PackIt_PATH" "${RC_PATH}/PackIt"
 
fi

# -----------------------------------------------------------------------------

# Associate custom action with Thunar
if [ "$(pwd)" = "/" ]; then
   if [ $(which thunar 2>/dev/null) ] || [ $(which Thunar 2>/dev/null) ]; then
      CONFIG="$HOME/.config/Thunar/uca.xml"
      CONFIG_BAK="$HOME/.config/Thunar/uca.xml.bak"
      CONFIG_TMP="/tmp/uca.xml"
      if [ -f "$CONFIG" ]; then
         grep '<name>PackIt</name>' "$CONFIG" >/dev/null || {
         grep -v '^</actions>' "$CONFIG" > "$CONFIG_TMP"
         echo '<action>
   <icon>PackIt</icon>
   <name>PackIt</name>
   <command>/usr/local/apps/PackIt/AppRun %F</command>
   <description>Archive files</description>
   <patterns>*</patterns>
   <directories/>
   <audio-files/>
   <image-files/>
   <other-files/>
   <text-files/>
   <video-files/>
</action>
</actions>' >> "$CONFIG_TMP"
         mv "$CONFIG" "$CONFIG_BAK"
         mv "$CONFIG_TMP" "$CONFIG"
         }
      else
         mkdir -p "${CONFIG%/*}"
         echo '<?xml encoding="UTF-8" version="1.0"?>
<actions>
<action>
   <icon></icon>
   <name>PackIt</name>
   <command>/usr/local/apps/PackIt/AppRun %F</command>
   <description>Archive files</description>
   <patterns>*</patterns>
   <directories/>
   <audio-files/>
   <image-files/>
   <other-files/>
   <text-files/>
   <video-files/>
</action>
</actions>' > "$CONFIG"
      fi
   fi
fi

# -----------------------------------------------------------------------------

# Create shortcut on pinboard/desktop
[ "$(pwd)" = "/" ] && /usr/local/apps/PackIt/createshortcut &

# =============================================================================


...I thought is is better if leave out files that are already archives.
...and commented-out a couple of lines, to avoid duplicate "PackIt" entries in the right-click "Open With..." menu.

Also, the search for mime folders will ignore any without "_" in it. For example, ".text", as again, this causes duplicate entries in the menu.

For the 'pet.specs' file, I made one change, "Utility;package", as the "X-Utility-package" is wrong for Easy -- don't know if that is now acceptable to woofCE.

packit-1.21-1|packit|1.21-1||Utility;package|116K||packit-1.21-1.pet||Archiving/Compressing GUI||||

_________________
https://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
nic007


Joined: 13 Nov 2011
Posts: 3444
Location: Cradle of Humankind

PostPosted: Tue 10 Mar 2020, 02:55    Post subject:  

Where can I download the rar compression module (not unrar, I have that)?
_________________
nicOS-Utility-Suite
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1802

PostPosted: Tue 10 Mar 2020, 07:59    Post subject:  

BarryK wrote:
PackIt is great! Feodor reminded me about it, suggesting it, and UExtract, would be good in EasyOS and EasyPup. Yes, they would!

Alright!

BarryK wrote:
...I thought is is better if leave out files that are already archives.

Generally yes (not in all cases, though), but it was more straightforward to add it to all available MIME-Types.

BarryK wrote:
...and commented-out a couple of lines, to avoid duplicate "PackIt" entries in the right-click "Open With..." menu.

Code:
#BK[ ! -d "${RC_PATH}/.inode_unknown" ] && mkdir "${RC_PATH}/.inode_unknown"

I don't quite remember what was this special case for...

Code:
#BK[ ! -d "${RC_PATH}/.group" ] && mkdir "${RC_PATH}/.group"

This enables PackIt menu option for multiple items of the same or (and that's important) different MIME-Types.
I think '.group' wasn't implemented in the original ROX, but is supported by some of its forks (jun7's for sure).
There's also '.all', that adds menu item for all MIME-Types, which would be the best option for PackIt, but again it's not supported by the original ROX.

BarryK wrote:
Also, the search for mime folders will ignore any without "_" in it. For example, ".text", as again, this causes duplicate entries in the menu.

Interesting, I don't have '.text' dir in Fatdog, but indeed adding it creates a duplicate.
However, just installed PackIt in easy-2.2.11 and clicking a text/plain file shows only one PackIt menu item, even if '.text' dir also contains PackIt symlink.
In fact, I didn't see a duplicate menu entry for PackIt in Easy at all...
In Fatdog I see the duplicates only if I select multiple items of the same MIME-Type and it's caused by '.group'.
EDIT: unless you mean the 'SendTo/OpenWith' case? Yeah, there are some duplicates, but IIRC fixing it would also disable PackIt in the root menu in some cases...

BarryK wrote:
For the 'pet.specs' file, I made one change, "Utility;package", as the "X-Utility-package" is wrong for Easy -- don't know if that is now acceptable to woofCE.

Oh, that's because the 2nd .desktop file in AppDir has 'Categories=X-Utility-package;', should be just 'Utility'. And dir2pet picks up the wrong one.
Thanks!
EDIT: I reuploaded the .pet with corrected category.
___________

nic007 wrote:
Where can I download the rar compression module (not unrar, I have that)?

Here: https://www.rarlab.com/download.htm

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.

Last edited by SFR on Tue 10 Mar 2020, 10:01; edited 1 time in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 7 of 8 [113 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8 Next
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1911s ][ Queries: 13 (0.0565s) ][ GZIP on ]