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 Thu 23 Oct 2014, 01:38
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Filesystem
"Peazip-3.6" in "Quirky Linux 1.40" ! only script
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: Mon 05 Dec 2011, 18:40    Post subject:  "Peazip-3.6" in "Quirky Linux 1.40" ! only script
Subject description: Tool to unpack the packed files. Tool to pack the not packed files.
 

Arrow

Quote:

Install_Peazip--sr0.sh
Code:

#!/bin/bash
#
#http://www.peazip.org/download-linux-gtk2-rpm.html
#
#
cd /room ;
#
curl -C - -O file:///mnt/sr0/_Files/Peazip/Unknown_Distribution_RPM_files/peazip-3.6.LINUX.GTK2-1.i586.rpm ;
if [ ! `echo -e "d9fcb85fe285160dbbbe3b93ae9830a6  peazip-3.6.LINUX.GTK2-1.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i peazip-3.6.LINUX.GTK2-1.i586.rpm ;
sleep 0.5s ;
rm /room/peazip-3.6.LINUX.GTK2-1.i586.rpm ;
rm /room/.md-5.sm ;
#1
#
# # #
#
cd / ;
#
curl -C - -O file:///mnt/sr0/_Files/Peazip/Arklinux-2008_files/icons-slick-3.5.9-1ark.i586.rpm ;
if [ ! `echo -e "abc32e1c14b4d5797e2b038179dc47b5  icons-slick-3.5.9-1ark.i586.rpm" | md5sum -c - >/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /.md-5.sm` ] ; then xmessage -file /.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /.md-5.sm`" ; fi ;
rpm2cpio icons-slick-3.5.9-1ark.i586.rpm | cpio -idv ./usr/share/icons/slick/48x48/apps/kpackage.png ;
sleep 0.5s ;
rm /icons-slick-3.5.9-1ark.i586.rpm ;
rm /.md-5.sm ;
#1
#
# # #
#
#
rm /usr/local/share/applications/peazip.desktop ;
rm /opt/kde3/share/applications/kde/peazip.desktop ;
#
#
echo '[Desktop Entry]' > /usr/share/applications/Peazip.desktop ;
echo 'Version=1.0' >> /usr/share/applications/Peazip.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/Peazip.desktop ;
echo 'Name=PeaZip' >> /usr/share/applications/Peazip.desktop ;
echo 'MimeType=application/x-gzip;application/x-lha;application/x-tar;application/x-tgz;application/x-tbz;application/x-tbz2;application/x-zip;application/zip;application/x-bzip;application/x-rar;application/x-tarz;application/x-archive;application/x-bzip2;application/x-jar;application/x-deb;application/x-ace;application/x-7z;application/x-arc;application/x-arj;application/x-compress;application/x-cpio;' >> /usr/share/applications/Peazip.desktop ;
echo 'GenericName=Archiving Tool' >> /usr/share/applications/Peazip.desktop ;
echo 'Exec=peazip' >> /usr/share/applications/Peazip.desktop ;
echo 'Icon=/usr/share/icons/slick/48x48/apps/kpackage.png' >> /usr/share/applications/Peazip.desktop ;
echo 'Type=Application' >> /usr/share/applications/Peazip.desktop ;
echo 'Terminal=false' >> /usr/share/applications/Peazip.desktop ;
echo 'X-KDE-HasTempFileOption=true' >> /usr/share/applications/Peazip.desktop ;
echo 'Categories=Utility;' >> /usr/share/applications/Peazip.desktop ;
echo 'Name[en_US]=peazip' >> /usr/share/applications/Peazip.desktop ;
#
#
rox -p=/root/Choices/ROX-Filer/PuppyPin ;
fixmenus ;
xmessage "-=Peazip-3.6.LINUX.GTK2=- has been installed." `jwm -restart`


Edit: 2011, dec 5.


A script's content can be copied into text editor by means of the forum's <Quote> mode.

_________________
  • I don't know why laboratories are named a hospitals.
  • The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.

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


Joined: 30 May 2010
Posts: 1429
Location: Queensland Australia ɹǝpu∩uʍop

PostPosted: Sat 10 Dec 2011, 03:52    Post subject:  

Hi postfs1,

I just looked at your script, seems to be a lot of echo's, you should only need two to make the ".desktop" file, I wouldn't like to see you get a repetitive strain injury or you could end up taking up residence in one of those laboratories Wink

The scripting syntax below works for me without complaint

Code:
echo '[Desktop Entry]' > /usr/share/applications/Peazip.desktop ;
echo 'Version=1.0
Encoding=UTF-8
Name=PeaZip
MimeType=application/x-gzip;application/x-lha;application/x-tar;application/x-tgz;application/x-tbz;application/x-tbz2;application/x-zip;application/zip;application/x-bzip;application/x-rar;application/x-tarz;application/x-archive;application/x-bzip2;application/x-jar;application/x-deb;application/x-ace;application/x-7z;application/x-arc;application/x-arj;application/x-compress;application/x-cpio;
GenericName=Archiving Tool
Exec=peazip
Icon=/usr/share/icons/slick/48x48/apps/kpackage.png
Type=Application
Terminal=false
X-KDE-HasTempFileOption=true
Categories=Utility;
Name[en_US]=peazip' >> /usr/share/applications/Peazip.desktop ;


The resulting desktop file looks like so, without all the wrapping of course

Code:
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=PeaZip
MimeType=application/x-gzip;application/x-lha;application/x-tar;application/x-tgz;application/x-tbz;application/x-tbz2;application/x-zip;application/zip;application/x-bzip;application/x-rar;application/x-tarz;application/x-archive;application/x-bzip2;application/x-jar;application/x-deb;application/x-ace;application/x-7z;application/x-arc;application/x-arj;application/x-compress;application/x-cpio;
GenericName=Archiving Tool
Exec=peazip
Icon=/usr/share/icons/slick/48x48/apps/kpackage.png
Type=Application
Terminal=false
X-KDE-HasTempFileOption=true
Categories=Utility;
Name[en_US]=peazip


Geoffrey
Back to top
View user's profile Send private message 
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: Sat 10 Dec 2011, 11:14    Post subject:  

As for big amount of word "echo": for me it's easier to make many steps.
_________________
  • I don't know why laboratories are named a hospitals.
  • The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.

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


Joined: 27 Mar 2010
Posts: 831

PostPosted: Sat 18 Aug 2012, 15:38    Post subject:
Subject description: Fresh variant of installation
 

INSTALLATION --->
Quote:

Install_Peazip_v2--sr0.sh
Code:

#!/bin/bash
#
#http://www.peazip.org/download-linux-gtk2-rpm.html
#
mkdir -p /room ;
cd /room ;
#
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if [ `grep -w -s -c 'peazip-3.6.LINUX.GTK2-1.i586.rpm..rm' /usr/local/etc/*.dsktop | awk -F: '{ sum +=$2 } END { print sum }'` -gt 0 ] ;
then echo "peazip-3.6.LINUX.GTK2-1.i586.rpm..rm" >/usr/local/etc/Peazip.dsktop ; else
curl -C - -O file:///mnt/sr0/_Files/Peazip/Unknown_Distribution_RPM_files/peazip-3.6.LINUX.GTK2-1.i586.rpm ;
if [ ! `echo -e "d9fcb85fe285160dbbbe3b93ae9830a6  peazip-3.6.LINUX.GTK2-1.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i peazip-3.6.LINUX.GTK2-1.i586.rpm ;
sleep 0.5s ;
echo "peazip-3.6.LINUX.GTK2-1.i586.rpm..rm" >/usr/local/etc/Peazip.dsktop ;
rm /room/peazip-3.6.LINUX.GTK2-1.i586.rpm ;
rm /room/.md-5.sm ;
#
rm /usr/local/share/applications/peazip.desktop ;
rm /opt/kde3/share/applications/kde/peazip.desktop ;
#
fi ;
#1
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# # #
#
#
cd / ;
#
if [ `grep -w -s -c 'icons-slick-3.5.9-1ark.i586.rpm..rm' /usr/local/etc/*.dsktop | awk -F: '{ sum +=$2 } END { print sum }'` -gt 0 ] ;
then echo "icons-slick-3.5.9-1ark.i586.rpm..rm" >>/usr/local/etc/Peazip.dsktop ; else
curl -C - -O file:///mnt/sr0/_Files/Peazip/Arklinux-2008_files/icons-slick-3.5.9-1ark.i586.rpm ;
if [ ! `echo -e "abc32e1c14b4d5797e2b038179dc47b5  icons-slick-3.5.9-1ark.i586.rpm" | md5sum -c - >/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /.md-5.sm` ] ; then xmessage -file /.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /.md-5.sm`" ; fi ;
rpm2cpio icons-slick-3.5.9-1ark.i586.rpm | cpio -idv ./usr/share/icons/slick/48x48/apps/kpackage.png ;
sleep 0.5s ;
echo "icons-slick-3.5.9-1ark.i586.rpm..rm" >>/usr/local/etc/Peazip.dsktop ;
rm /icons-slick-3.5.9-1ark.i586.rpm ;
rm /.md-5.sm ;
fi ;
#-^-
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# # #
#
echo '[Desktop Entry]' > /usr/share/applications/Peazip.desktop ;
echo 'Version=1.0' >> /usr/share/applications/Peazip.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/Peazip.desktop ;
echo 'Name=PeaZip' >> /usr/share/applications/Peazip.desktop ;
echo 'MimeType=application/x-gzip;application/x-lha;application/x-tar;application/x-tgz;application/x-tbz;application/x-tbz2;application/x-zip;application/zip;application/x-bzip;application/x-rar;application/x-tarz;application/x-archive;application/x-bzip2;application/x-jar;application/x-deb;application/x-ace;application/x-7z;application/x-arc;application/x-arj;application/x-compress;application/x-cpio;' >> /usr/share/applications/Peazip.desktop ;
echo 'GenericName=Archiving Tool' >> /usr/share/applications/Peazip.desktop ;
echo 'Exec=peazip' >> /usr/share/applications/Peazip.desktop ;
echo 'Icon=/usr/share/icons/slick/48x48/apps/kpackage.png' >> /usr/share/applications/Peazip.desktop ;
echo 'Type=Application' >> /usr/share/applications/Peazip.desktop ;
echo 'Terminal=false' >> /usr/share/applications/Peazip.desktop ;
echo 'X-KDE-HasTempFileOption=true' >> /usr/share/applications/Peazip.desktop ;
echo 'Categories=Utility;' >> /usr/share/applications/Peazip.desktop ;
echo 'Name[en_US]=peazip' >> /usr/share/applications/Peazip.desktop ;
#
#
rox -p=/root/Choices/ROX-Filer/PuppyPin ;
fixmenus ;
xmessage "-=Peazip-3.6.LINUX.GTK2=- has been installed." `jwm -restart`


Edit: 2012, aug 18.


A script's content can be copied into text editor by means of <Quote> mode.

<--- INSTALLATION

_________________
  • I don't know why laboratories are named a hospitals.
  • The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.

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


Joined: 27 Mar 2010
Posts: 831

PostPosted: Sat 18 Aug 2012, 15:39    Post subject:  

DEINSTALLATION --->

Quote:

Remove_Peazip.sh
Code:

#!/bin/bash
#TMP --->
#echo 'peazip-3.6.LINUX.GTK2-1.i586.rpm..rm' >/usr/local/etc/Peazip.dsktop ;
#echo 'icons-slick-3.5.9-1ark.i586.rpm..rm' >>/usr/local/etc/Peazip.dsktop ;
#<--- TMP
# # #
#
#
cd /room ;
#
if [ `grep -w -s -c 'peazip-3.6.LINUX.GTK2-1.i586.rpm..rm' /usr/local/etc/*.dsktop | awk -F: '{ sum +=$2 } END { print sum }'` -gt 1 ] ;
then sed -i '/peazip-3.6.LINUX.GTK2-1.i586.rpm..rm/d' /usr/local/etc/Peazip.dsktop ; else
curl -C - -O file:///mnt/sr0/_Files/Peazip/Unknown_Distribution_RPM_files/peazip-3.6.LINUX.GTK2-1.i586.rpm ;
if [ ! `echo -e "d9fcb85fe285160dbbbe3b93ae9830a6  peazip-3.6.LINUX.GTK2-1.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
#bash -c "`rpm -qp -l peazip-3.6.LINUX.GTK2-1.i586.rpm | sed 's/^/rm -f /' | sed 's/$/ ;/'`" ; ---> due to "(" sign.
bash -c "`rpm -qp -l peazip-3.6.LINUX.GTK2-1.i586.rpm | sed 's/^/rm -f /' | sed 's/$/ ;/' | grep '(' | sed 's/(/\"(\"/' | sed 's/)/\")\"/'`" ;
bash -c "`rpm -qp -l peazip-3.6.LINUX.GTK2-1.i586.rpm | sed 's/^/rm -f /' | sed 's/$/ ;/' | grep -v '(' | grep -v '\/usr\/local\/share\/icons ;'`" ;#/usr/local/share/icons ---> needful symlink
sleep 0.5s ;
bash -c "`rpm -qp -l peazip-3.6.LINUX.GTK2-1.i586.rpm | rev | cut -d'/' -f2- | rev | sort -u | sed 's/^/rmdir --ignore-fail-on-non-empty -p /' | sed 's/$/ ;/'`" ;
sed -i '/peazip-3.6.LINUX.GTK2-1.i586.rpm..rm/d' /usr/local/etc/Peazip.dsktop ;
rm /room/peazip-3.6.LINUX.GTK2-1.i586.rpm ;
rm /room/.md-5.sm ;
fi ;
#1
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# # #
#
#
cd / ;
#
if [ `grep -w -s -c 'icons-slick-3.5.9-1ark.i586.rpm..rm' /usr/local/etc/*.dsktop | awk -F: '{ sum +=$2 } END { print sum }'` -gt 1 ] ;
then sed -i '/icons-slick-3.5.9-1ark.i586.rpm..rm/d' /usr/local/etc/Peazip.dsktop ; else
curl -C - -O file:///mnt/sr0/_Files/Peazip/Arklinux-2008_files/icons-slick-3.5.9-1ark.i586.rpm ;
if [ ! `echo -e "abc32e1c14b4d5797e2b038179dc47b5  icons-slick-3.5.9-1ark.i586.rpm" | md5sum -c - >/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /.md-5.sm` ] ; then xmessage -file /.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /.md-5.sm`" ; fi ;
bash -c "`rpm2cpio icons-slick-3.5.9-1ark.i586.rpm | cpio -t ./usr/share/icons/slick/48x48/apps/kpackage.png 2>&1 | grep -v blocks | sed 's/^./rm -f /' | sed 's/$/ ;/'`" ;
sleep 0.5s ;
sed -i '/icons-slick-3.5.9-1ark.i586.rpm..rm/d' /usr/local/etc/Peazip.dsktop ;
rm /icons-slick-3.5.9-1ark.i586.rpm ;
rm /.md-5.sm ;
fi ;
#-^-
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
rm /usr/share/applications/Peazip.desktop ;
#
if [ `grep -s -c '..rm' /usr/local/etc/Peazip.dsktop | awk -F^ '{ sum +=$1 } END {print sum}'` -gt 0 ] ;
then sleep 0.5s ; else
rm /usr/local/etc/Peazip.dsktop ; fi ;
#
rox -p=/root/Choices/ROX-Filer/PuppyPin ;
fixmenus ;
xmessage "Program -=Peazip-3.6.LINUX.GTK2=- has been almost removed." `jwm -restart` ;


Edit: 2012, aug 18.


A script's content can be copied into text editor by means of <Quote> mode.

<--- DEINSTALLATION

_________________
  • I don't know why laboratories are named a hospitals.
  • The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Filesystem
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.0835s ][ Queries: 11 (0.0037s) ][ GZIP on ]