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: 3059
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#16 by Ed_P » 23 Feb 2017, 00:15

Bogomips wrote: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
:shock: Really!! Wow
  1. Root Terminal if getting Online from Mirror.
  2. Any Terminal if getting Offline from Directory in Filesystem.
Offline??


N.B.

Never mind I've figured out what you're saying. Offline mode for ISOs you have already downloaded. :pardon:
Ed

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

Re: Script Extracting Desktop Module Offline/Online from ISO

Post#17 by Bogomips » 23 Feb 2017, 01:03

Ed_P wrote:Offline??
Whole idea of reusable code. :wink:
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
francois
Contributor
Contributor
Posts: 4902
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Script Extracting Desktop Module Offline/Online from ISO

Post#18 by francois » 28 Feb 2017, 04:08

brokenman wrote: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
Great trick! :)

How about mounting a complete iso to get the desktop environement of your choice (kde for example)? (to be tested)
# iso=http://ftp.vim.org/ftp/os/Linux/distr/p ... x86_64.iso
# mkdir /mnt/{httpfs2,xzm}
httpfs2 $iso /mnt/httpfs2
# mount /mnt/httpfs2/Porteus-KDE-v3.2.2-x86_64.iso
ls /mnt/xzm/porteus/base/004.kde.xzm
Voltaire: Le mieux est l'ennemi du bien.

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

Re: Script Extracting Desktop Module Offline/Online from ISO

Post#19 by Bogomips » 28 Feb 2017, 12:52

francois wrote: How about mounting a complete iso to get the desktop environement of your choice (kde for example)? (to be tested)
# iso=http://ftp.vim.org/ftp/os/Linux/distr/p ... x86_64.iso
# mkdir /mnt/{httpfs2,xzm}
httpfs2 $iso /mnt/httpfs2
# mount /mnt/httpfs2/Porteus-KDE-v3.2.2-x86_64.iso
Isn't that what mloop already does?

Code: Select all

# mloop $iso    
Put forward by your good self:
francois wrote:What about mloop iso? :wink:
:roll:
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
brokenman
Site Admin
Site Admin
Posts: 5437
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#20 by brokenman » 28 Feb 2017, 13:54

I think it would be much easier to just put the desktop modules on the server. The script would be best used to extract modules from a local ISO. In this case though, mloop could mount the script and user could copy the module.

Great scripting nonetheless Bogomips.
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: 2522
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Script Extracting Desktop Module Offline/Online from ISO

Post#21 by Bogomips » 06 Mar 2017, 01:37

Script viewtopic.php?f=140&t=6678&sid=ebcef422 ... 1ab#p53221 Enhanced to cope with variable length mirror timings. Also when invoked as function, provides an architecture override. Prior to invocation of function x3get, setting shell variable arc=i586/x86_64 will ensure architecture override. 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

Post Reply