rozniak / xfce-winxp-tc

Windows XP stuff for XFCE
Other
1.13k stars 38 forks source link

Create test for text-mode setup bootstrapper #250

Closed rozniak closed 4 months ago

rozniak commented 11 months ago

Need to test the waters on how text-mode setup, and the setup bootstrapping will work.

Basically setup has to be bootstrapped from a system where there can only be minimal assumptions. Will get something working presumably using /bin/dash (cannot rely on Bash in the final setup bootstrapper) to probe things and get stuff moving.

Will need to be script based, cannot use pre-compiled binaries for setup due to systems that may use different libc implementations I believe (musl in the case of Alpine Linux).

rozniak commented 4 months ago

Rough plan for setup:

Need to consider the AUR, which is another reason I think graphical mode should be compiled/packaged so it can be installed. Should provide some simple shell script that is responsible for chaining phases into the init system which can be run by AUR users to simply skip straight to the configuration portion of setup.

For AUR users it would be something like (setupx is the script here, not necessarily final):

All theoretical, I haven't actually tested much of this and how to handle the various init systems supported. I think it should work but that it is the point of these bootstrap tests.

rozniak commented 4 months ago

Been chipping away at text-mode - bootstrapping into Python and using the curses library for the terminal stuff. Seems to work quite well, here's a couple screenshots (they are massive...) image image

Scripts might be a bit untidy, I don't write that much Python. As long as they work I suppose!

rozniak commented 4 months ago

Might merge the current work and look into testing out loading up graphical mode so we have stuff to work with.