Extramod

Technical issues/questions of an intermediate or advanced nature.
Post Reply
User avatar
normalGuy
Black ninja
Black ninja
Posts: 51
Joined: 06 Nov 2015, 23:36
Distribution: porteus 3.2 xfce archBang
Location: uk & portugal

Extramod

Post#1 by normalGuy » 16 Feb 2017, 13:57

Hi,

Follow the porteus links to download I only found a lxde.xzm single module, if I want to extramod with mate.xzm or kde.xzm where are they or it is possible to do it?

Evan
Warlord
Warlord
Posts: 512
Joined: 11 Apr 2016, 09:00
Distribution: Distribution: *

Extramod

Post#2 by Evan » 16 Feb 2017, 14:06

<removed>
Last edited by Evan on 17 Feb 2018, 07:45, edited 1 time in total.

User avatar
normalGuy
Black ninja
Black ninja
Posts: 51
Joined: 06 Nov 2015, 23:36
Distribution: porteus 3.2 xfce archBang
Location: uk & portugal

Re: Extramod

Post#3 by normalGuy » 16 Feb 2017, 15:11

Hi
add the other desktops to your current build and swap between them
...some years ago I use to do that , that is why I was asking if is still possible because I only see the 003-lxde.xzm single module.

Thanks.

User avatar
francois
Contributor
Contributor
Posts: 5291
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Y fait frette et on gèle

Re: Extramod

Post#4 by francois » 16 Feb 2017, 17:16

Extramod cheatcode still works. It is just that the other desktop have not been packaged individually.
Carpe diem.

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

Re: Extramod

Post#5 by Bogomips » 16 Feb 2017, 23:14

Code: Select all

noload=xfce extramod=/Path/to/003-lxde.xzm
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: 3599
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Extramod

Post#6 by Ed_P » 21 Feb 2017, 06:02

normalGuy wrote:Hi
add the other desktops to your current build and swap between them
...some years ago I use to do that , that is why I was asking if is still possible because I only see the 003-lxde.xzm single module.

Thanks.
It's possible normalGuy. Check out this link: https://forum.porteus.org/viewtopic.php ... 242#p53221 :good:
Ed

User avatar
normalGuy
Black ninja
Black ninja
Posts: 51
Joined: 06 Nov 2015, 23:36
Distribution: porteus 3.2 xfce archBang
Location: uk & portugal

Re: Extramod

Post#7 by normalGuy » 22 Feb 2017, 12:50

Hi,

Yes tnks Ed_p but like françois said:
...other desktop have not been packaged individually
and I don't want to download the full iso just the 003.xxx.xzm.

But great work :good:

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

Re: Extramod

Post#8 by Ed_P » 22 Feb 2017, 14:24

normalGuy, Bogomips's script doesn't download the full iso file, it reads it on the server!! Only the 003 file gets downloaded. :good:
Ed

User avatar
normalGuy
Black ninja
Black ninja
Posts: 51
Joined: 06 Nov 2015, 23:36
Distribution: porteus 3.2 xfce archBang
Location: uk & portugal

Re: Extramod

Post#9 by normalGuy » 22 Feb 2017, 17:09

Hi Ed_p
Maybe I'm confused, just confirm:

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 $*
Use of it:

Code: Select all

x3wget DE /tmp
It's possible to show the number or progressbar of the amount downloaded?

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

Re: Extramod

Post#10 by Ed_P » 22 Feb 2017, 18:01

normalGuy wrote:Hi Ed_p
Maybe I'm confused, just confirm:

x3wget:
Yup. :)
Use of it:

Code: Select all

x3wget DE /tmp
Yup. :)

Actually if you save the script to your Home folder and make it executable:

Code: Select all

sudo ./x3get DE /tmp
Or if not made executable:

Code: Select all

sudo sh ./x3wget DE /tmp
It's possible to show the number or progressbar of the amount downloaded?
Nope. :( At least not the last time I tested it. https://forum.porteus.org/viewtopic.php ... 242#p53242 And actually I don't think doing that is possible unfortunately. The script does indicate when it is finished with the download.
Ed

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

Re: Extramod

Post#11 by Bogomips » 22 Feb 2017, 18:47

@ normalGuy

As you are not a novice, I'll explain what I do, and then you can take your pick. The script with function x3get will Extract the 003 module from the ISO file over the internet:
  1. Save script in a file of your choice
  2. In terminal su (toor) to run as Root
  3. Source the file and invoke the function:

    Code: Select all

    source  /Path/to/<Script extracting 003 module from ISO file>
    x3get  <desktop>  [<Folder for downloaded module>]
  4. Upon sourcing the file, you will get usage iinformation like that already given.
OR
  1. Copy Script & Paste into Root Terminal
  2. Code: Select all

    x3get  <desktop>  [<Folder for downloaded module>]
Enjoy!
Last edited by Bogomips on 22 Feb 2017, 20:56, edited 1 time in total.
Reason: Copy & Paste
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
normalGuy
Black ninja
Black ninja
Posts: 51
Joined: 06 Nov 2015, 23:36
Distribution: porteus 3.2 xfce archBang
Location: uk & portugal

Re: Extramod

Post#12 by normalGuy » 22 Feb 2017, 20:01

@ Ed_P
@bogomips

Thanks! :beer:

My wifi - realtek - has been on / off for awhile and I had to edit the wpa_suplicant.conf and it looks better now (knock on wood!!!) that's why I wanted to try other DE to test if it was only a xfce4 problem.

Great job!! Another Porteus goodie 8)

Post Reply