Script Extracting Desktop Module Offline/Online from ISO File

Technical issues/questions of an intermediate or advanced nature.

Re: Script Extracting Desktop Module Offline/Online from ISO

Postby Ed_P » 23 Feb 2017, 01: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
User avatar
Ed_P
Contributor
Contributor
 
Posts: 2945
Joined: 06 Feb 2013, 23:12
Location: Western NY, USA
Distribution: Cinnamon 3.2.2 64-bit ISO

Re: Script Extracting Desktop Module Offline/Online from ISO

Postby Bogomips » 23 Feb 2017, 02: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
Bogomips
Full of knowledge
Full of knowledge
 
Posts: 2435
Joined: 25 Jun 2014, 16:21
Location: London
Distribution: 3.2.2 Cinnamon & KDE5

Re: Script Extracting Desktop Module Offline/Online from ISO

Postby francois » 28 Feb 2017, 05: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/porteus/x86_64/Porteus-v3.2.2/Porteus-KDE-v3.2.2-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.
User avatar
francois
Contributor
Contributor
 
Posts: 4847
Joined: 28 Dec 2010, 15:25
Location: Enfin l'été, le changement climatique attendu: le soleil.
Distribution: kde xfce porteus manjaro kubun

Re: Script Extracting Desktop Module Offline/Online from ISO

Postby Bogomips » 28 Feb 2017, 13: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/porteus/x86_64/Porteus-v3.2.2/Porteus-KDE-v3.2.2-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
Bogomips
Full of knowledge
Full of knowledge
 
Posts: 2435
Joined: 25 Jun 2014, 16:21
Location: London
Distribution: 3.2.2 Cinnamon & KDE5

Re: Script Extracting Desktop Module Offline/Online from ISO

Postby brokenman » 28 Feb 2017, 14: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.
brokenman
Site Admin
Site Admin
 
Posts: 5400
Joined: 27 Dec 2010, 04:50
Location: Brazil
Distribution: Porteus v3.2rcX all desktops

Re: Script Extracting Desktop Module Offline/Online from ISO

Postby Bogomips » 06 Mar 2017, 02:37

Script Script Extracting Desktop Module Offline/Online from ISO File 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
Bogomips
Full of knowledge
Full of knowledge
 
Posts: 2435
Joined: 25 Jun 2014, 16:21
Location: London
Distribution: 3.2.2 Cinnamon & KDE5

Previous

Return to Intermediate/Advanced User Questions



Who is online

Users browsing this forum: No registered users and 1 guest