Script Extracting Desktop Module Offline/Online from ISO File

Technical issues/questions of an intermediate or advanced nature.
User avatar
Ed_P
Contributor
Contributor
Posts: 3322
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Script Extracting Desktop Module Offline/Online from ISO File

Post#1 by Ed_P » 17 Feb 2017, 15:56

A script that would support extracting 003 files from downloaded iso files would be helpful. :)
Ed

Bogomips
Full of knowledge
Full of knowledge
Posts: 2563
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Extramod

Post#2 by Bogomips » 17 Feb 2017, 18:13

^
  • <Desktop Extracting Script>.sh

    Code: Select all

     #!/bin/bash 
    x3 () 
    { 
        [[ -n $1 ]] || { 
            echo Usage: "<Desktop>  <ISO File>  [<Target Directory>]";
            return
        };
        bsdtar xf $2 --strip-components 2 -C ${3:-.} porteus/base/003-${1}.xzm;
        /bin/ls $LS_OPTIONS -lh ${3:-.}/003-${1}.xzm
    }
    x3 $*
     

    Code: Select all

    guest@porteus:~$ x3  xfce4  p10/tmp/iso/rc3/i586/Porteus-XFCE-v3.2rc3-i586.iso
    -rw-r--r-- 1 guest users 46M Jun  5  2016 ./003-xfce4.xzm
    
    guest@porteus:~$ x3  xfce4  p10/tmp/iso/rc3/i586/Porteus-XFCE-v3.2rc3-i586.iso   /tmp
    -rw-r--r-- 1 guest users 46M Jun  5  2016 /tmp/003-xfce4.xzm
    
8)
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
Ed_P
Contributor
Contributor
Posts: 3322
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Extramod

Post#3 by Ed_P » 18 Feb 2017, 00:57

Bogomips wrote:<Desktop Extracting Script>.sh
hmmmm Now if you preceeded the function with something like this:

Code: Select all

#!/bin/bash 
# https://forum.porteus.org/viewtopic.php?f=140&t=6669&p=53124#p53124

ARCH=i586
if [ `echo $MACHTYPE | sed -e 's/-.*$//'` = x86_64 ]; then
   ARCH=x86_64
fi

# Find closest mirror from here: http://porteus.org/porteus-mirrors.txt

MIRROR=http://www6.frugalware.org/mirrors/linux/porteus/$ARCH/Porteus-v3.2.2/

if [ `whoami` != "root" ]; then
   ktsuss "$0 $1"
   exit
fi

if [ -d  "/tmp/*.iso" ]; then
   rm /tmp/*.iso*
fi
wget $MIRROR/Porteus-$1-v3.2.2-$ARCH.iso      -P /tmp

You could shorten the Usage to be:

Code: Select all

echo Usage: "<Desktop>  [<Target Directory>]";
:wink:
Ed

User avatar
francois
Contributor
Contributor
Posts: 5080
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Extramod

Post#4 by francois » 18 Feb 2017, 03:01

What about mloop iso? :wink:
Voltaire: Le mieux est l'ennemi du bien.

User avatar
Ed_P
Contributor
Contributor
Posts: 3322
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Extramod

Post#5 by Ed_P » 18 Feb 2017, 21:16

francois wrote:What about mloop iso? :wink:
Ok, where's the rest of your code? :twisted:
Ed

Bogomips
Full of knowledge
Full of knowledge
Posts: 2563
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Script Extracting Desktop Module Offline/Online from ISO

Post#6 by Bogomips » 18 Feb 2017, 22:49

Ed_P wrote:A script that would support extracting 003 files from downloaded iso files would be helpful. :)
My emphasis.

Provided such a script, but as it seems more was in mind, have enhanced script to fit in with this:
  • Code: Select all

    #!/bin/bash 
    dayset(){
        # Set up Desktop Conversion Array
        dtp=(cinnamon kde mate xfce);
        day[${dtp[0]}]=${dtp[0]}; day[${dtp[1]}]=${dtp[1]}5
        day[${dtp[2]}]=${dtp[2]}; day[${dtp[3]}]=${dtp[3]}4
    }
    chkid(){
        # Convert to Lower Case
        id=${1,,}; id=${id/kde5/kde}; id=${id/xfce4/xfce};
        [[ ${day[$id]} ]] && return 0;
        echo Desktop must be one of:; printf "%s\n" ${!day[*]};
        return 1;
    }
    x3 () 
    { 
        [[ -n $1 ]] || { 
            echo Usage: "<Desktop>  <ISO File>  [<Target Directory>]";
            return
        };
        unset day;
        declare -A day;
        dayset;
        chkid $1 || return $?;
        bsdtar xf $2 --strip-components 2 -C ${3:-.} porteus/base/003-${day[$id]}.xzm || return $?;
        /bin/ls $LS_OPTIONS -lh ${3:-.}/003-${day[$id]}.xzm
    }
    x3 $*
    
  • Code: Select all

    guest@porteus:~$ x3 cinn p10/tmp/iso/rc3/i586/Porteus-CINNAMON-v3.2rc3-i586.iso /tmp
    Desktop must be one of:
    cinnamon
    mate
    kde
    xfce
    
    guest@porteus:~$ x3 mate p10/tmp/iso/rc3/i586/Porteus-MATE-v3.2rc3-i586.iso  /tmp
    -rw-r--r-- 1 guest users 44M Jun  5  2016 /tmp/003-mate.xzm
    
    guest@porteus:~$ x3 kde  p10/tmp/iso/rc3/i586/Porteus-KDE-v3.2rc3-i586.iso  /tmp
    -rw-r--r-- 1 guest users 230M Jun  5  2016 /tmp/003-kde5.xzm
    
    guest@porteus:~$ x3 cinnamon  p10/tmp/iso/rc3/i586/Porteus-CINNAMON-v3.2rc3-i586.iso /tmp
    -rw-r--r-- 1 guest users 65M Jun  5  2016 /tmp/003-cinnamon.xzm
    
    guest@porteus:~$ x3 xfce  p10/tmp/iso/rc3/i586/Porteus-XFCE-v3.2rc3-i586.iso /tmp
    -rw-r--r-- 1 guest users 46M Jun  5  2016 /tmp/003-xfce4.xzm
    
    guest@porteus:~$ x3 kde5 p10/tmp/iso/rc3/i586/Porteus-KDE-v3.2rc3-i586.iso /tmp-rw-r--r-- 1 guest users 230M Jun  5  2016 /tmp/003-kde5.xzm
    
    guest@porteus:~$ x3 mate p10/tmp/iso/rc3/i586/Porteus-XFCE-v3.2rc3-i586.iso
    bsdtar: porteus/base/003-mate.xzm: Not found in archive
    bsdtar: Error exit delayed from previous errors.
    
:wink:
Last edited by Bogomips on 20 Feb 2017, 13:55, edited 2 times in total.
Reason: Enhanced error detection
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
Ed_P
Contributor
Contributor
Posts: 3322
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Script Extracting Desktop Module Offline/Online from ISO

Post#7 by Ed_P » 19 Feb 2017, 04:46

So close bogomips, so close. But stills requires a user to manually download an ISO file to do the DE extract and then delete it.

So close.

:D
Ed

User avatar
brokenman
Site Admin
Site Admin
Posts: 5574
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Script Extracting Desktop Module Offline/Online from ISO

Post#8 by brokenman » 19 Feb 2017, 19:59

What about mounting the file over the internet?

Proof of concept

Code: Select all

iso=http://ftp.vim.org/ftp/os/Linux/distr/porteus/x86_64/Porteus-v3.2.2/modules/003-lxde.xzm
mkdir /mnt/{httpfs2,xzm}
httpfs2 $iso /mnt/httpfs2
mount /mnt/httpfs2/003-lxde.xzm /mnt/xzm
ls /mnt/xzm
How do i become super user?
Wear your underpants on the outside and put on a cape.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2563
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Script Extracting Desktop Module Offline/Online from ISO

Post#9 by Bogomips » 20 Feb 2017, 00:11

Tried Ed's approach, which took some 5 mins, almost all of this, spent on downloading the iso:

Code: Select all

guest@porteus:~$ x3get cinn /tmp
Desktop must be one of:
cinnamon
mate
kde
xfce

guest@porteus:~$ x3get cinnamon /tmp
2017-02-19 18:35:59 URL:http://ftp.nluug.nl/os/Linux/distr/porteus/i586/Porteus-v3.2.2/Porteus-CINNAMON-v3.2.2-i586.iso [285741056/285741056] -> "/tmp/Porteus-CINNAMON-v3.2.2-i586.iso" [1]
-rw-r--r-- 1 guest users 78M Dec 24 00:19 ./003-cinnamon.xzm
Downloaded file Porteus-CINNAMON-v3.2.2-i586.iso is also accessible in /tmp

guest@porteus:~$ ls -lh /tmp/Porteus-CINNAMON-v3.2.2-i586.iso 
-rw-r--r-- 1 guest users 273M Dec 24 00:59 /tmp/Porteus-CINNAMON-v3.2.2-i586.iso
brokenman wrote:What about mounting the file over the internet?
Idea has already been mooted:
francois wrote:What about mloop iso? :wink:
  • MLOOP not really suited to a script:

    Code: Select all

    root@porteus:/home/guest# mloop http://ftp.vim.org/ftp/os/Linux/distr/porteus/i586/Porteus-v3.2.2/Porteus-CINNAMON-v3.2.2-i586.iso
    using /dev/loop4
    
    Please wait while i gather some info ....
    
    Checking given link ...
    link is good
     Connecting to:   Porteus-CINNAMON-v3.2.2-i586.iso ...
    file name:      Porteus-CINNAMON-v3.2.2-i586.iso
    host name:      ftp.vim.org
    port number:    80
    protocol:       http
    request path:   /ftp/os/Linux/distr/porteus/i586/Porteus-v3.2.2/Porteus-CINNAMON-v3.2.2-i586.iso
    auth data:      (null)
    file size:      285741056
     Attemptingto mount:   Porteus-CINNAMON-v3.2.2-i586.iso ...
    
     #################################
     Your online file has been mounted at: 
    /mnt/http
    
    You can unmount it by typing: uloop
    
    Here is a list of the files:
    USB_INSTALLATION.txt  boot  porteus
    
    root@porteus:/home/guest# ls -lh /mnt/http/porteus/base/003-cinnamon.xzm 
    -rw-r--r-- 1 root root 78M Dec 24 00:19 /mnt/http/porteus/base/003-cinnamon.xzm
    root@porteus:/home/guest# uloop
    
    /mnt/loop has been unmounted
    
  • Code: Select all

    root@porteus:/home/guest# mloop http://ftp.vim.org/ftp/os/Linux/distr/porteus/i586/Porteus-v3.2.2/Porteus-KDE-v3.2.2-i586.iso
    file size:      439152640
    root@porteus:/home/guest# ls -lh /mnt/http/porteus/base/003-kde5.xzm 
    -rw-r--r-- 1 root root 225M Dec 24 00:19 /mnt/http/porteus/base/003-kde5.xzm
    
    root@porteus:/home/guest# mloop http://ftp.vim.org/ftp/os/Linux/distr/porteus/i586/Porteus-v3.2.2/Porteus-MATE-v3.2.2-i586.iso
    file size:      256028672
    root@porteus:/home/guest# ls -lh /mnt/http/porteus/base/003-mate.xzm 
    -rw-r--r-- 1 root root 50M Dec 24 00:18 /mnt/http/porteus/base/003-mate.xzm
    
    root@porteus:/home/guest# mloop http://ftp.vim.org/ftp/os/Linux/distr/porteus/i586/Porteus-v3.2.2/Porteus-XFCE-v3.2.2-i586.iso
    file size:      251113472
    root@porteus:/home/guest# ls -lh /mnt/http/porteus/base/003-xfce4.xzm 
    -rw-r--r-- 1 root root 45M Dec 24 00:14 /mnt/http/porteus/base/003-xfce4.xzm
    
    guest@porteus:~$ sudo mloop http://ftp.vim.org/ftp/os/Linux/distr/porteus/i586/Porteus-v3.2.2/Porteus-CINNAMON-v3.2.2-i586.iso
    /usr/bin/mloop: line 53: losetup: command not found
    file size:      285741056
    guest@porteus:~$ ls -lh /mnt/http/porteus/base/003-cinnamon.xzm 
    -rw-r--r-- 1 root root 78M Dec 24 00:19 /mnt/http/porteus/base/003-cinnamon.xzm
    guest@porteus:~$ sudo uloop
    /mnt/loop has been unmounted
    
So, was going to try and look up latest hhtpfs2 coding example supplied by tome, but now saved the troublle by the example provided. Hope it's not just going to try and download the whole iso, which was the impression being given to me when trying to mloop the Slackware 14.2 iso, which kept on crashing no matter the mirror, because it seemed due to insufficient disk space. :twisted:
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
Ed_P
Contributor
Contributor
Posts: 3322
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Script Extracting Desktop Module Offline/Online from ISO

Post#10 by Ed_P » 20 Feb 2017, 04:37

brokenman wrote:What about mounting the file over the internet?
:shock: That's an option!!!
Bogomips wrote:Tried Ed's approach, which took some 5 mins, almost all of this, spent on downloading the iso:
Where's your x3get script?
Ed

Bogomips
Full of knowledge
Full of knowledge
Posts: 2563
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Script Extracting Desktop Module Offline/Online from ISO

Post#11 by Bogomips » 20 Feb 2017, 15:33

Ed_P wrote:Where's your x3get script?
Renamed function x3wget:

Code: Select all

#!/bin/bash 
dayset(){
    dtp=(cinnamon kde mate xfce);
    day[${dtp[0]}]=${dtp[0]}; day[${dtp[1]}]=${dtp[1]}5
    day[${dtp[2]}]=${dtp[2]}; day[${dtp[3]}]=${dtp[3]}4
}
chkid(){
    # Convert to Lower Case
    id=${1,,}; id=${id/kde5/kde}; id=${id/xfce4/xfce};
    [[ ${day[$id]} ]] && return 0;
    echo Desktop must be one of:; printf "%s\n" ${!day[*]};
    return 1;
}
x3(){
[[ $1 ]] || { echo Usage:  "<Desktop>  <ISO File>  [<Target Directory>]"; return; }
unset day; declare -A day;
dayset; chkid $1 || return $?;
bsdtar xf $2 --strip-components 2 -C ${3:-.} porteus/base/003-${day[$id]}.xzm
ls -lh ${3:-.}/003-${day[$id]}.xzm
}
x3wget(){
[[ $1 ]] || { echo Usage:  "<Desktop>  [<Target Directory>]"; return; }
unset day; declare -A day;
dayset; chkid $1 || return $?;
# Mirror Mirror ...
fm=$(yes n | fastest-mirror 2>&1 | grep -A 2 Results: | tail -n1)
a=$(uname -m); a=${a/i6/i5}
iso=Porteus-${id^^}-v3.2.2-${a}.iso
url=${fm:6}$a/Porteus-v3.2.2/$iso
echo This will take some time . . . ; echo
wget -nv -O /tmp/$iso $url
x3  $id  /tmp/$iso  $2
echo Downloaded file $iso is also accessible in /tmp.
}
x3wget $*
httpfs2 does seem to be a mite faster than the wget approach: ( *** !!!SCRIPT IS HERE!!! *** )
  • Code: Select all

    #!/bin/bash 
    dayset(){
        dtp=(cinnamon kde mate xfce);
        day[${dtp[0]}]=${dtp[0]}; day[${dtp[1]}]=${dtp[1]}5
        day[${dtp[2]}]=${dtp[2]}; day[${dtp[3]}]=${dtp[3]}4
    }
    chkid(){
        # Convert to Lower Case
        id=${1,,}; id=${id/kde5/kde}; id=${id/xfce4/xfce};
        [[ ${day[$id]} ]] && return 0;
        echo Desktop must be one of:; printf "%s\n" ${!day[*]};
        return 1;
    }
    x3(){
    [[ $1 ]] || { echo Usage:  "<Desktop>  /Path/to/<ISO File>  [<Target Directory>]"; return; }
    unset day; declare -A day;
    dayset; chkid $1 || return $?;
    bsdtar xf $2 --strip-components 2 -C ${3:-.} porteus/base/003-${day[$id]}.xzm || return $?
    ls -lh ${3:-.}/003-${day[$id]}.xzm
    }
    x3get () 
    { 
        [[ -n $1 ]] || { 
            echo Usage: "<Desktop>  [<Target Directory>]";
            return
        };
        [[ $(whoami) != root ]] && { 
            echo Script requires Superuser Privilege, and has to be run as Root.;
            return
        };
        [[ -n $1 ]] || return;
        unset day;
        declare -A day;
        dayset;
        chkid $1 || return $?;
        fm=$(yes n | fastest-mirror 2>&1 | grep -A 2 Results: | tail -n1);
        fm=${fm%/*};
       # Architecture Override, when Invoked as Function, 
       # by setting arc=i586/x86_64 before invoking x3get.
       a=${arc:-$(uname -m)}; a=${a/i6/i5}
       iso=Porteus-${id^^}-v3.2.2-${a}.iso
       url=http${fm#*http}/$a/Porteus-v3.2.2/$iso;     # Varaiable Length fastest times
        [[ -d u$$ ]] || mkdir u$$ && mountpoint -q u$$ && umount -f u$$;
        echo This will take some time . . . ; echo
        httpfs2 $url u$$ > /dev/null && x3 $id u$$/$iso $2;
        mountpoint -q u$$ && umount u$$;
        rmdir u$$
    }
    x3get $*
    
  • Code: Select all

    guest@porteus:~$ x3get
    Usage: <Desktop>  [<Target Directory>]
    guest@porteus:~$ x3get cinnamon /tmp
    Script requires Superuser Privilege, and has to be run as Root.
    
    root@porteus:/home/guest# x3get
    Usage: <Desktop>  [<Target Directory>]
    
  • Code: Select all

    root@porteus:/home/guest# time x3get cinnamon /tmp
    file name:      Porteus-CINNAMON-v3.2.2-i586.iso
    host name:      ftp.vim.org
    port number:    80
    protocol:       http
    request path:   /porteus/i586/Porteus-v3.2.2/Porteus-CINNAMON-v3.2.2-i586.iso
    auth data:      (null)
    file size:      285741056
    -rw-r--r-- 1 root root 78M Dec 24 00:19 /tmp/003-cinnamon.xzm
    
    real    2m37.927s
    user    0m0.239s
    sys     0m1.947s
    
    root@porteus:/home/guest# time x3get mate /tmp
    file name:      Porteus-MATE-v3.2.2-i586.iso
    host name:      ftp.vim.org
    port number:    80
    protocol:       http
    request path:   /porteus/i586/Porteus-v3.2.2/Porteus-MATE-v3.2.2-i586.iso
    auth data:      (null)
    file size:      256028672
    -rw-r--r-- 1 root root 50M Dec 24 00:18 /tmp/003-mate.xzm
    
    real    1m58.505s
    user    0m0.242s
    sys     0m1.307s
    
    root@porteus:/home/guest# time x3get xfce  /tmp
    file name:      Porteus-XFCE-v3.2.2-i586.iso
    host name:      ftp.vim.org
    port number:    80
    protocol:       http
    request path:   /porteus/i586/Porteus-v3.2.2/Porteus-XFCE-v3.2.2-i586.iso
    auth data:      (null)
    file size:      251113472
    -rw-r--r-- 1 root root 45M Dec 24 00:14 /tmp/003-xfce4.xzm
    
    real    1m32.261s
    user    0m0.223s
    sys     0m1.219s
    
    root@porteus:/home/guest# time x3get kde  /tmp
    file name:      Porteus-KDE-v3.2.2-i586.iso
    host name:      ftp.vim.org
    port number:    80
    protocol:       http
    request path:   /porteus/i586/Porteus-v3.2.2/Porteus-KDE-v3.2.2-i586.iso
    auth data:      (null)
    file size:      439152640
    -rw-r--r-- 1 root root 225M Dec 24 00:19 /tmp/003-kde5.xzm
    
    real    11m10.591s
    user    0m0.236s
    sys     0m2.365s
    
Last edited by Bogomips on 05 Mar 2017, 01:45, edited 5 times in total.
Reason: Varible length fastest mirror times. Architecture override.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
Ed_P
Contributor
Contributor
Posts: 3322
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Script Extracting Desktop Module Offline/Online from ISO

Post#12 by Ed_P » 20 Feb 2017, 16:23

Bogomips wrote:httpfs2 does seem to be a mite faster than the wget approach:
:good: And it appears it takes less disk space also since you were able to download all the DEs. Very cool Bogomips. :beer:
Ed

Bogomips
Full of knowledge
Full of knowledge
Posts: 2563
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Script Extracting Desktop Module Offline/Online from ISO

Post#13 by Bogomips » 20 Feb 2017, 22:06

As I feared, there comes a point of diminishing returns with httpfs2:

Code: Select all

guest@porteus:~$ time x3wget kde5 /tmp
2017-02-20 22:41:24 URL:http://ftp.vim.org/ftp/os/Linux/distr/porteus/i586/Porteus-v3.2.2/Porteus-KDE-v3.2.2-i586.iso [439152640/439152640] -> "/tmp/Porteus-KDE-v3.2.2-i586.iso" [1]
-rw-r--r-- 1 guest users 225M Dec 24 00:19 /tmp/003-kde5.xzm
Downloaded file Porteus-KDE-v3.2.2-i586.iso is also accessible in /tmp.

real    5m50.319s
user    0m2.143s
sys     0m18.500s

guest@porteus:~$ ls -lh /tmp/Porteus-KDE-v3.2.2-i586.iso 
-rw-r--r-- 1 guest users 419M Dec 24 01:13 /tmp/Porteus-KDE-v3.2.2-i586.iso
:(
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
Ed_P
Contributor
Contributor
Posts: 3322
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Script Extracting Desktop Module Offline/Online from ISO

Post#14 by Ed_P » 21 Feb 2017, 05:58

:Yahoo!: It works with Cinnamon 64-bit. :Yahoo!:

Code: Select all

guest@porteus:~$ sh ./DEmod.sh mate /tmp
Script requires Superuser Privilege, and has to be run as Root.
guest@porteus:~$ sudo sh ./DEmod.sh mate /tmp
Password: 
Do you think like you type?
Password: 
Have you considered trying to match wits with a rutabaga?
Password: 
file name: 	Porteus-MATE-v3.2.2-x86_64.iso
host name: 	ftp.nluug.nl
port number: 	80
protocol: 	http
request path: 	/os/Linux/distr/porteus/x86_64/Porteus-v3.2.2/Porteus-MATE-v3.2.2-x86_64.iso
auth data: 	(null)
file size: 	255627264
-rw-r--r-- 1 root root 49M Dec 23 23:13 /tmp/003-mate.xzm
guest@porteus:~$ 
Adding a note that the thing is going to run awhile and to be patient would be nice but overall NICE JOB Bogomips. :Bravo:

It should be added to 3.2.3. :wink:
Ed

Bogomips
Full of knowledge
Full of knowledge
Posts: 2563
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Script Extracting Desktop Module Offline/Online from ISO

Post#15 by Bogomips » 22 Feb 2017, 23:43

If wishing to employ the script with a minimum of hassle, at the Code Block holding the Script:
SELECT ALL > Ctl+C > Paste into a Terminal
  1. Root Terminal if getting Online from Mirror.
  2. Any Terminal if getting Offline from Directory in Filesystem.
Then there is nothing to stop one from using the shell functions of the script to extract:
  1. 003 Module from Online Mirror ISO File

    Code: Select all

    x3get  <Desktop>  [<Target Directory>] 
  2. 003 Module from Offline ISO File in the Filesystem

    Code: Select all

    x3  <Desktop>  /Path/to/<ISO File>  [<Target Directory>]
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

Post Reply