[Shift2] Dead?


Recommended Posts

Another dumb feature of PHP-GTK! You've got callbacks, there's supposidally 3 for when the page is switched on a notebook but only one works... So it's called before it actually switches the page, and you can't stop it from switching the page or move it to another page! Madness.

Link to comment
Share on other sites

Actually no the whole installer's dead because of GtkNotebook, I don't know if it's not implemented in PHP-GTK or if it's buggy or what but basically as a result you can't stop the tab being changed, at all, unless you disable the notebook which then disables the whole god damn page of it stupidly, so unless anyone's got a solution then I'm done because it just fails in PHP.

http://gtk.php.net/manual/en/gtk.gtknotebook.php

'switch-page' action works doesn't allow you to stop the page from being switched nor change to another

'change-current-page' doesn't work at all

'focus-tab' doesn't work at all

'move-focus-out' doesn't work at all

'select-page' doesn't work at all

Link to comment
Share on other sites

Now THAT looks frickin' awesome! Good work n_K. How did you go about getting this all set up btw?

EDIT: I mean GitHub and stuff like that, damn I'm tired!

Link to comment
Share on other sites

I've lost all the commands I ran (set it up in a temp folder) but basically you have to setup a new repo, download the existing branch, then add a new update and commit it (which will ask for your git username and password, both in asterisks so read the input box because I didn't :p) and it'll open vi (set it to nano if you don't have/like vi) and ask you to say what the updates are for, save file and exit and it uploaded them.

Link to comment
Share on other sites

I've lost all the commands I ran (set it up in a temp folder) but basically you have to setup a new repo, download the existing branch, then add a new update and commit it (which will ask for your git username and password, both in asterisks so read the input box because I didn't :p) and it'll open vi (set it to nano if you don't have/like vi) and ask you to say what the updates are for, save file and exit and it uploaded them.

Jesus, quite easy then :p

Link to comment
Share on other sites

Because I hate Arch. Might as well be Egyptian hieroglyphics. If we can actually base this on Fedora or Debian, then I am all in.

so why not just install something like noobuntu? Basing something off Arch or Gentoo is the better way to go

Link to comment
Share on other sites

Not as of yet, spent the day trying to work around annoying headaches with esxi and osx, only to find the day was spent wasting my time ;/. (for anyone that's interested the lesson is that UEFI/EFI sucks, grub2-EFI can't do ****, it can't chainload, nor can it boot from CD, all it can do is boot linux when a kernel and initrd is present, so it's a complete waste of code and webspace hosting it. HPIUTIL is pretty nifty for making bootable CD images whilst cdrtools is absolutely useless and if you want to waste your time and try getting mac running in esxi then don't bother with the EFI method because it'll bitch at you asking for a response at each turn on if you've got more than 1 CPU or CPU core about stability and if you use an iso as a bootdisk, it'll also pester you with each darn power-up to ask you if you really want to eject the CD-ROM [and quite where it even gets the idea to eject the CD-ROM is something I haven't managed to find out]).

But anyway, I'm unsure of how to do manual partitioning in the GUI? Was thinking about a graphic that updates to show you say a pie-chart of available/used space or something (generate it with PHP, output it to a png and import it into the installer) and maybe a list with the partitions to make? Also I've no idea how to go about allowing editing of partitions either, say if the drive has a windows partition, how to get that displayed and add extra partitions to the drive :s

Link to comment
Share on other sites

Alright got to the stage of implementing checks on the data for people to put in such as username, name, etc. so if anyone wants to figure out the regex of what's allowed (Do linux usernames support regex?) and post them, that'd be great!

Link to comment
Share on other sites

looking good n_K. Glad you were able to get up and running. Sucks not having time to do any work on this, as I had the C# stuff coming along nicely.

Link to comment
Share on other sites

Error highlighting with the first data input screen and some input sanitation.

Gonna add a popup if people click next and either passwords are blank, and system location is getting removed/merged with timezone to create a timezone file, and gonna add a language dropdown instead.

Refreshing for network works and only displays valid devices, not sure if it's gonna work on all systems though (as it gets data from 'ip link') or with other network types/device names. Although I've added 'already setup' to network types for people that can set it up themselves (as it's a live-cd, I'd assume the probably will... Plus we're gonna need to put cntlm on this live CD! :p)

On and now the left navigation doesn't re-align (and look back) when the option is changed! :D

post-160466-0-18517100-1348257047.png

  • Like 1
Link to comment
Share on other sites

(The partition not being bold just now and welcome having HTML tags has been fixed btw :p)

PHP file itself is up to 798 lines/30KB.

And I'm still not sure how to implement partitioning :/. Also for the pages for selecting what web browser/if to setup google drive, etc. not sure what info would be needed for that, nor what to do about installing GRUB (Ask if they want grub? Ask what drive to put it on? etc.)

Link to comment
Share on other sites

its looking great, i am not sure about partitioning at all

cant u ask what drive it should install grub to and have a list?

Link to comment
Share on other sites

Can do but it'd depend on if they want grub installed or not, plus the type of grub (EFI vs BIOS) plus if it'd need to add windows or other OS's and whatnot :/

Link to comment
Share on other sites

This topic is now closed to further replies.