Sign in to follow this  
Followers 0
n_K

[Shift2] Dead?

122 posts in this topic

ffs lol

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

your dialogs are amazing really like the look

Share this post


Link to post
Share on other sites

https://github.com/matthewthepc/Shift2

I finally worked out to push to github!

In other news: Woo githubs so complicated I probably won't be pushing to github again, haha!

1 person likes this

Share this post


Link to post
Share on other sites

will have a look later :)

Share this post


Link to post
Share on other sites

OK I found out about GtkEventbox's, so can now get the installation tab disabled, as well as others! It's going better than I thought it would actually...

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Alright I finally got around it by dumping GtkNotepad which seems to lack some pretty basic features... But unfortunately the menu now looks like crap.

post-160466-0-55876800-1348006564.png

Share this post


Link to post
Share on other sites

That still looks good to me

i like the little blue accent on the menu on the left

Share this post


Link to post
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!

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Jesus, quite easy then :p

LOL, that's why I gave up on github until they released their Github for Windows app :)

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

hey n_K any further forward?

Share this post


Link to post
Share on other sites

LOL, that's why I gave up on github until they released their Github for Windows app :)

But what about us people that are in the the fruit company camp? :D

Share this post


Link to post
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

Share this post


Link to post
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!

Share this post


Link to post
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.

Share this post


Link to post
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

1 person likes this

Share this post


Link to post
Share on other sites

awesome it looks good

Share this post


Link to post
Share on other sites

Added a few more bits.

post-160466-0-13514400-1348423737.png

post-160466-0-35520400-1348426392.png

Share this post


Link to post
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.)

Share this post


Link to post
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?

Share this post


Link to post
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 :/

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.