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 Fri 18 Apr 2014, 01:43
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Filesystem
mc-4.6.1 in "Quirky Linux 1.40" ! only script to install
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: Wed 02 Feb 2011, 17:29    Post subject:  mc-4.6.1 in "Quirky Linux 1.40" ! only script to install
Subject description: File manager "GNU Midnight Commander 4.6.1"
 

Quote:

Install_MC--sr0.sh
Code:

#!/bin/bash
#
cd /room ;
#
curl -C - -O file:///mnt/sr0/MidnightCommander/PCLinuxOS-2007_files/mc-4.6.1-6pclos2007.i586.rpm ;
if [ -x `echo -e "0101f21adcd0dcf0bf0002f03d199e5b  mc-4.6.1-6pclos2007.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 mc-4.6.1-6pclos2007.i586.rpm ;
sleep 0.5s ;
rm /room/mc-4.6.1-6pclos2007.i586.rpm ;
rm /room/.md-5.sm ;
#1
curl -C - -O file:///mnt/sr0/MidnightCommander/PCLinuxOS-2007_files/libgpm1-1.20.1-15pclos2007.i586.rpm ;
if [ -x `echo -e "f118d7717db58a881d54bf799f66a35d  libgpm1-1.20.1-15pclos2007.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 libgpm1-1.20.1-15pclos2007.i586.rpm ;
sleep 0.5s ;
rm /room/libgpm1-1.20.1-15pclos2007.i586.rpm ;
rm /room/.md-5.sm ;
#2
curl -C - -O file:///mnt/sr0/MidnightCommander/PCLinuxOS-2007_files/libslang1-1.4.9-9pclos2007.i586.rpm ;
if [ -x `echo -e "170a5b85e44782919df06308f8d80fa6  libslang1-1.4.9-9pclos2007.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 libslang1-1.4.9-9pclos2007.i586.rpm ;
sleep 0.5s ;
rm /room/libslang1-1.4.9-9pclos2007.i586.rpm ;
rm /room/.md-5.sm ;
#3
#
#rm /usr/libexec/mc/mc.csh /usr/libexec/mc/mc-wrapper.csh ;
rm /etc/profile.d/mc.csh ;
#
sed -i".tmp" '/"MC"/d' /root/Choices/ROX-Filer/PuppyPin ;
#
echo '[Desktop Entry]' > /usr/share/applications/MC.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/MC.desktop ;
echo 'Name=Midnight Commander' >> /usr/share/applications/MC.desktop ;
echo 'Comment=File manager' >> /usr/share/applications/MC.desktop ;
echo "Exec=rxvt --geometry 139x40 -e mc / /" >>/usr/share/applications/MC.desktop ;
echo 'Terminal=false' >> /usr/share/applications/MC.desktop ;
echo 'Type=Application' >> /usr/share/applications/MC.desktop ;
echo 'Categories=FileManager' >> /usr/share/applications/MC.desktop ;
echo 'GenericName=File Manager' >> /usr/share/applications/MC.desktop ;
echo 'Icon=/usr/local/lib/X11/themes/Smooth-Color/console48.png' >> /usr/share/applications/MC.desktop ;
#
sed -i".tmp" '/\/pinboard/d' /root/Choices/ROX-Filer/PuppyPin ;
sleep 1s ;
echo '<icon x="800" y="704" label="MC">/usr/share/applications/MC.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '</pinboard>' >> /root/Choices/ROX-Filer/PuppyPin ;
sleep 1s ;
#
rox -p=/root/Choices/ROX-Filer/PuppyPin ;
fixmenus ;
xmessage "File manager -=mc-4.6.1-6pclos2007=- has been installed." `jwm -restart`


Edit: 2011, nov 19.


Permissions for -=Install_MC--sr0.sh=- were changed as shown:
Code:

cd /place_where_Install_MC--sr0.sh_is_located ; chmod u+x Install_MC--sr0.sh


A script's content can be copied into text editor by means of <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.


Last edited by postfs1 on Sat 19 Nov 2011, 16:33; edited 5 times in total
Back to top
View user's profile Send private message 
aragon

Joined: 15 Oct 2007
Posts: 1696
Location: Germany

PostPosted: Thu 03 Feb 2011, 04:02    Post subject:  

One question: is there any reason, why one should not just use the mc.pet that is posted 3 or 4 posts below yours? Does it not work in wary? Otherwise i see no point in using an older version compiled for another distro with more dependencies.

Aragon

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: Thu 03 Feb 2011, 04:20    Post subject:  

Arrow I think the "Quirky Linux 1.40" is right name, but if it isn't so, then i don't know where can i find the proof.
------------------------------------------------------------
@aragon I tried to use and the program worked.
------------------------------------------------------------
whawhawewha_002.png
 Description   Someone changed title. My version was: MC in Linux Quirky-1.40 ! only script to install
 Filesize   21.03 KB
 Viewed   741 Time(s)

whawhawewha_002.png


_________________
  • 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:41    Post subject:
Subject description: Fresh variant of installation
 

INSTALLATION --->
Quote:

Install_MC--sr0.sh
Code:

#!/bin/bash
#
mkdir -m 0500 -p /room ;
cd /room ;
#
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if [ `grep -w -s -c 'mc-4.6.1-6pclos2007.i586.rpm..rm' /usr/local/etc/*.dsktop | awk -F: '{ sum +=$2 } END { print sum }'` -gt 0 ] ;
then echo "mc-4.6.1-6pclos2007.i586.rpm..rm" >/usr/local/etc/MC.dsktop ; else
curl -C - -O file:///mnt/sr0/_Files/MidnightCommander/PCLinuxOS-2007_files/mc-4.6.1-6pclos2007.i586.rpm ;
if [ ! `echo -e "0101f21adcd0dcf0bf0002f03d199e5b  mc-4.6.1-6pclos2007.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 mc-4.6.1-6pclos2007.i586.rpm ;
sleep 0.5s ;
echo "mc-4.6.1-6pclos2007.i586.rpm..rm" >/usr/local/etc/MC.dsktop ;
rm /room/mc-4.6.1-6pclos2007.i586.rpm ;
rm /room/.md-5.sm ;
#
#rm /usr/libexec/mc/mc.csh /usr/libexec/mc/mc-wrapper.csh ;
rm /etc/profile.d/mc.csh ;
#
fi ;
#1
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if [ `grep -w -s -c 'libgpm1-1.20.1-15pclos2007.i586.rpm..rm' /usr/local/etc/*.dsktop | awk -F: '{ sum +=$2 } END { print sum }'` -gt 0 ] ;
then echo "libgpm1-1.20.1-15pclos2007.i586.rpm..rm" >>/usr/local/etc/MC.dsktop ; else
curl -C - -O file:///mnt/sr0/_Files/MidnightCommander/PCLinuxOS-2007_files/libgpm1-1.20.1-15pclos2007.i586.rpm ;
if [ ! `echo -e "f118d7717db58a881d54bf799f66a35d  libgpm1-1.20.1-15pclos2007.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 libgpm1-1.20.1-15pclos2007.i586.rpm ;
sleep 0.5s ;
echo "libgpm1-1.20.1-15pclos2007.i586.rpm..rm" >>/usr/local/etc/MC.dsktop ;
rm /room/libgpm1-1.20.1-15pclos2007.i586.rpm ;
rm /room/.md-5.sm ;
fi ;
#2
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if [ `grep -w -s -c 'libslang1-1.4.9-9pclos2007.i586.rpm..rm' /usr/local/etc/*.dsktop | awk -F: '{ sum +=$2 } END { print sum }'` -gt 0 ] ;
then echo "libslang1-1.4.9-9pclos2007.i586.rpm..rm" >>/usr/local/etc/MC.dsktop ; else
curl -C - -O file:///mnt/sr0/_Files/MidnightCommander/PCLinuxOS-2007_files/libslang1-1.4.9-9pclos2007.i586.rpm ;
if [ ! `echo -e "170a5b85e44782919df06308f8d80fa6  libslang1-1.4.9-9pclos2007.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 libslang1-1.4.9-9pclos2007.i586.rpm ;
sleep 0.5s ;
echo "libslang1-1.4.9-9pclos2007.i586.rpm..rm" >>/usr/local/etc/MC.dsktop ;
rm /room/libslang1-1.4.9-9pclos2007.i586.rpm ;
rm /room/.md-5.sm ;
fi ;
#3
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
sed -i '/"MC"/d' /root/Choices/ROX-Filer/PuppyPin ;
#
echo '[Desktop Entry]' > /usr/share/applications/MC.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/MC.desktop ;
echo 'Name=Midnight Commander' >> /usr/share/applications/MC.desktop ;
echo 'Comment=File manager' >> /usr/share/applications/MC.desktop ;
echo "Exec=rxvt --geometry 139x40 -e mc / /" >>/usr/share/applications/MC.desktop ;
echo 'Terminal=false' >> /usr/share/applications/MC.desktop ;
echo 'Type=Application' >> /usr/share/applications/MC.desktop ;
echo 'Categories=FileManager' >> /usr/share/applications/MC.desktop ;
echo 'GenericName=File Manager' >> /usr/share/applications/MC.desktop ;
echo 'Icon=/usr/local/lib/X11/themes/Smooth-Color/console48.png' >> /usr/share/applications/MC.desktop ;
#
sed -i '/\/pinboard/d' /root/Choices/ROX-Filer/PuppyPin ;
sleep 1s ;
echo '<icon x="800" y="704" label="MC">/usr/share/applications/MC.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '</pinboard>' >> /root/Choices/ROX-Filer/PuppyPin ;
sleep 1s ;
#
rox -p=/root/Choices/ROX-Filer/PuppyPin ;
fixmenus ;
xmessage "File manager -=mc-4.6.1-6pclos2007=- 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:42    Post subject:  

DEINSTALLATION --->

Quote:

Remove_MC--sr0.sh
Code:

#!/bin/bash
#
cd /room ;
#
if [ `grep -w -s -c 'mc-4.6.1-6pclos2007.i586.rpm..rm' /usr/local/etc/*.dsktop | awk -F: '{ sum +=$2 } END { print sum }'` -gt 1 ] ;
then sed -i '/mc-4.6.1-6pclos2007.i586.rpm..rm/d' /usr/local/etc/MC.dsktop ; else
curl -C - -O file:///mnt/sr0/_Files/MidnightCommander/PCLinuxOS-2007_files/mc-4.6.1-6pclos2007.i586.rpm ;
if [ ! `echo -e "0101f21adcd0dcf0bf0002f03d199e5b  mc-4.6.1-6pclos2007.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 mc-4.6.1-6pclos2007.i586.rpm | sed 's/^/rm -f /' | sed 's/$/ ;/'`" ;
sleep 0.5s ;
bash -c "`rpm -qp -l mc-4.6.1-6pclos2007.i586.rpm | rev | cut -d'/' -f2- | rev | sort -u | sed 's/^/rmdir --ignore-fail-on-non-empty -p /' | sed 's/$/ ;/'`" ;
sed -i '/mc-4.6.1-6pclos2007.i586.rpm..rm/d' /usr/local/etc/MC.dsktop ;
rm /room/mc-4.6.1-6pclos2007.i586.rpm ;
rm /room/.md-5.sm ;
fi ;
#1
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if [ `grep -w -s -c 'libgpm1-1.20.1-15pclos2007.i586.rpm..rm' /usr/local/etc/*.dsktop | awk -F: '{ sum +=$2 } END { print sum }'` -gt 1 ] ;
then sed -i '/libgpm1-1.20.1-15pclos2007.i586.rpm..rm/d' /usr/local/etc/MC.dsktop ; else
curl -C - -O file:///mnt/sr0/_Files/MidnightCommander/PCLinuxOS-2007_files/libgpm1-1.20.1-15pclos2007.i586.rpm ;
if [ ! `echo -e "f118d7717db58a881d54bf799f66a35d  libgpm1-1.20.1-15pclos2007.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 libgpm1-1.20.1-15pclos2007.i586.rpm | sed 's/^/rm -f /' | sed 's/$/ ;/'`" ;
sleep 0.5s ;
bash -c "`rpm -qp -l libgpm1-1.20.1-15pclos2007.i586.rpm | rev | cut -d'/' -f2- | rev | sort -u | sed 's/^/rmdir --ignore-fail-on-non-empty -p /' | sed 's/$/ ;/'`" ;
sed -i '/libgpm1-1.20.1-15pclos2007.i586.rpm..rm/d' /usr/local/etc/MC.dsktop ;
rm /room/libgpm1-1.20.1-15pclos2007.i586.rpm ;
rm /room/.md-5.sm ;
fi ;
#2
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if [ `grep -w -s -c 'libslang1-1.4.9-9pclos2007.i586.rpm..rm' /usr/local/etc/*.dsktop | awk -F: '{ sum +=$2 } END { print sum }'` -gt 1 ] ;
then sed -i '/libslang1-1.4.9-9pclos2007.i586.rpm..rm/d' /usr/local/etc/MC.dsktop ; else
curl -C - -O file:///mnt/sr0/_Files/MidnightCommander/PCLinuxOS-2007_files/libslang1-1.4.9-9pclos2007.i586.rpm ;
if [ ! `echo -e "170a5b85e44782919df06308f8d80fa6  libslang1-1.4.9-9pclos2007.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 libslang1-1.4.9-9pclos2007.i586.rpm | sed 's/^/rm -f /' | sed 's/$/ ;/'`" ;
sleep 0.5s ;
bash -c "`rpm -qp -l libslang1-1.4.9-9pclos2007.i586.rpm | rev | cut -d'/' -f2- | rev | sort -u | sed 's/^/rmdir --ignore-fail-on-non-empty -p /' | sed 's/$/ ;/'`" ;
sed -i '/libslang1-1.4.9-9pclos2007.i586.rpm..rm/d' /usr/local/etc/MC.dsktop ;
rm /room/libslang1-1.4.9-9pclos2007.i586.rpm ;
rm /room/.md-5.sm ;
fi ;
#3
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
rm /usr/share/applications/MC.desktop ;
#
sed -i '/"MC"/d' /root/Choices/ROX-Filer/PuppyPin ;
#
if [ `grep -s -c '..rm' /usr/local/etc/MC.dsktop | awk -F^ '{ sum +=$1 } END { print sum }'` -gt 0 ] ;
then sleep 0.5s ; else
rm /usr/local/etc/MC.dsktop ; fi ;
#
rox -p=/root/Choices/ROX-Filer/PuppyPin ;
fixmenus ;
xmessage "File manager -=mc-4.6.1-6pclos2007=- 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.0758s ][ Queries: 13 (0.0057s) ][ GZIP on ]