Suggestions for enhancing the porteus 2.1 Wizard

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
donald
Full of knowledge
Full of knowledge
Posts: 1243
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Suggestions for enhancing the porteus 2.1 Wizard

Post#31 by donald » 27 Sep 2013, 01:09

@ Gooplusplus
Gooplusplus wrote:I don't want "my" own personal post-first-run settings saved when they may be entirely different and inappropriate for others.
So the Question is: Why do you have to run it first?
(imo you could unpack the iso, make your configurations and repack.)
and the Point is: If you need to do so, you are not forced to save your Settings.

The "main-owner" of this collection may or may not save his changes (e.g.using a save-file)
you can boot porteus in "allways fresh mode" what will ignore the changes and boot up the defaults.If you make and want to save the changes you can make a "module" containing them.This modul you can store wherever you want and activate it next Time.

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

Re: Suggestions for enhancing the porteus 2.1 Wizard

Post#32 by brokenman » 27 Sep 2013, 15:19

I should add that my comment was assuming that the user boots with the changes:EXIT cheatcode. I am also an 'always fresh' user. I think we agreed early on in the evolution of Porteus that a 'first run wizard' of any kind would not work well with Porteus for many reasons.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Gooplusplus
White ninja
White ninja
Posts: 10
Joined: 12 Jun 2013, 23:36
Distribution: KDE 2.1
Location: Las Vegas
Contact:

Re: Suggestions for enhancing the porteus 2.1 Wizard

Post#33 by Gooplusplus » 05 Oct 2013, 07:29

Once up and running, the Porteus SAVE FILE MANAGEMENT menu seemed simple enough. However, the SAVEFILE creation aspect never really worked for me. It seemed to create the file in RAM without writing to the USB flash drive.

I did find a workaround by CREATING (EXT4 option) and then choosing the REPAIR OPTION simply to grab the listed porteus.dat file (from RAM?) in order to copy via the FILE MANAGER to my bootup USB flash drive. After that, the changes=/multiboot/porteus/porteus.dat parameter in my /multiboot/menu/porteus-rw.cfg worked fine after reboot.

This is not a very user-friendly method to add persistence but I'm not fond of digging through documentation to find the "right way" to do it. I doubt many Windows users new to Linux would be inclined to do so either.

At least after this process, I can now compress this clean porteus.dat file for inclusion with a few new USB multiboot "persistent" collections. With automatic Porteus persistence available for less tech-savvy users, I will now replace Puppy-Racy with Porteus KDE 2.1 for my next YUMI-compatible USB multiboot collection (example shown below, likely to be available in a few days via bittorrent download).

Image

http://www.gooplusplus.com/multiboot-collections/

User avatar
fanthom
Site Admin
Site Admin
Posts: 4623
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Suggestions for enhancing the porteus 2.1 Wizard

Post#34 by fanthom » 05 Oct 2013, 16:54

Once up and running, the Porteus SAVE FILE MANAGEMENT menu seemed simple enough. However, the SAVEFILE creation aspect never really worked for me. It seemed to create the file in RAM without writing to the USB flash drive.
could be due to an 'async' mount flag used in Porteus by default. most Porteus installations are done on the flash media so we need this flag to reduce number of writes and extend life of the sticks.

solution to the 'delayed writes' problem is very simple: one must run 'sync' command after creating the .dat container to flush the buffers.

@brokenman
please add this command to the 'save file manager' tool.

thanks for reporting.
Please add [Solved] to your thread title if the solution was found.

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

Re: Suggestions for enhancing the porteus 2.1 Wizard

Post#35 by brokenman » 05 Oct 2013, 18:06

Done. Added sync after all dd actions.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Suggestions for enhancing the porteus 2.1 Wizard

Post#36 by Hamza » 06 Oct 2013, 22:16

Hi Gooplusplus,

Correct me if I'm wrong but you want to have a feature that allow anyone to choose the path of changes before even downloading the ISO ? About .dat container ... I don't think this will be possible for only one reason ... someone will not downloads an ISO of 1.5Gb with a container of 1Gb included inside. :roll:

Thanks! :)
NjVFQzY2Rg==

donald
Full of knowledge
Full of knowledge
Posts: 1243
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Suggestions for enhancing the porteus 2.1 Wizard

Post#37 by donald » 06 Oct 2013, 22:58

^
...and a preset path makes no sense if you just want to burn a live-cd...for use on different machines...

User avatar
Gooplusplus
White ninja
White ninja
Posts: 10
Joined: 12 Jun 2013, 23:36
Distribution: KDE 2.1
Location: Las Vegas
Contact:

Re: Suggestions for enhancing the porteus 2.1 Wizard

Post#38 by Gooplusplus » 07 Oct 2013, 17:03

Hamza wrote:Hi Gooplusplus,
Correct me if I'm wrong but you want to have a feature that allow anyone to choose the path of changes before even downloading the ISO ? About .dat container ... I don't think this will be possible for only one reason ... someone will not downloads an ISO of 1.5Gb with a container of 1Gb included inside. :roll:
That is not how it will work. A clean 1GB EXT4 *.dat file can be compressed to under 400KB.
donald wrote:^
...and a preset path makes no sense if you just want to burn a live-cd...for use on different machines...
Before you speculate on what "makes sense", perhaps you might wait a few days and try it yourself. I will post a bittorrent link.

Assuming that everything works, this first "all persistent" USB multiboot collection will include Zorin OS lite, Porteus KDE 2.1, OpenElec 3.2.2 XBMC, Hirens Boot CD lite, and AVG rescue CD with a total download size of about 1.6GB (requires installing to a 4GB or larger USB flash drive.)

donald
Full of knowledge
Full of knowledge
Posts: 1243
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Suggestions for enhancing the porteus 2.1 Wizard

Post#39 by donald » 07 Oct 2013, 17:18

@Gooplusplus
You are talking about a USB multiboot
I'm talking about a live-CD
must I explain the difference?

User avatar
Gooplusplus
White ninja
White ninja
Posts: 10
Joined: 12 Jun 2013, 23:36
Distribution: KDE 2.1
Location: Las Vegas
Contact:

Re: Suggestions for enhancing the porteus 2.1 Wizard

Post#40 by Gooplusplus » 07 Oct 2013, 17:40

My YUMI-compatible USB multiboot collections are made up of several "live-cd" distros on a single USB flash drive rather than on CD-ROM media,

This one, for instance, is under 800MB and contains utilities collections and four selectable Linux "live-cd" distros. (Only Puppy has persistence.)

http://www.gooplusplus.com/multiboot-2013-mini-v2/ --- http://www.tuxdistro.com/torrents-details.php?id=1752

Image

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Suggestions for enhancing the porteus 2.1 Wizard

Post#41 by Hamza » 07 Oct 2013, 17:58

A clean 1GB EXT4 *.dat file can be compressed to under 400KB.
Can you extend this answer to a more technical answer with details like compression method, algorithm used, advantages, disadvantages ? :)
NjVFQzY2Rg==

User avatar
Gooplusplus
White ninja
White ninja
Posts: 10
Joined: 12 Jun 2013, 23:36
Distribution: KDE 2.1
Location: Las Vegas
Contact:

Re: Suggestions for enhancing the porteus 2.1 Wizard

Post#42 by Gooplusplus » 07 Oct 2013, 18:22

Hamza wrote:
A clean 1GB EXT4 *.dat file can be compressed to under 400KB.
Can you extend this answer to a more technical answer with details like compression method, algorithm used, advantages, disadvantages ? :)
I simply used 7-zip to create a self-extracting EXE file. I created PERSISTENCE.exe which compressed two "clean" files: (1) /casper-rw (1GB used for persistence for any Ubuntu derivative) and (2) /multiboot/porteus/porteus.dat (512MB EXT4 persistence file). The archive format is *.7z (required to create SFX archive). Since I found there was little difference in the compressed file size on clean persistence files, I chose the 7-zip defaults: fastest, LZMA compression, etc.

PERSISTENCE.exe will be run and uncompressed almost immediately after formatting the USB flash drive, likely eliminating any potential fragmentation.

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Suggestions for enhancing the porteus 2.1 Wizard

Post#43 by Hamza » 07 Oct 2013, 19:08

Here is what I could get when trying from one of build servers.

Code: Select all

root@node1:/home/hamza# mkisofs -T -o test.iso 1g.img 
mkisofs: Value too large for defined data type. File 1g.img is too large for current mkisofs settings - ignoring
Total translation table size: 0
Total rockridge attributes bytes: 0
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 3000
174 extents written (0 MB)
root@node1:/home/hamza# 
NjVFQzY2Rg==

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

Re: Suggestions for enhancing the porteus 2.1 Wizard

Post#44 by brokenman » 09 Oct 2013, 22:52

Pull apart a slax-6x ISO and take a look at the save.dat files that are all compressed into one (zip?) file.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Suggestions for enhancing the porteus 2.1 Wizard

Post#45 by Hamza » 10 Oct 2013, 17:04

I don't understand, sorry.
NjVFQzY2Rg==

Post Reply