Jump to content

PCWiz OS X Kernel Installer


  • Please log in to reply
77 replies to this topic

#1
~pcwiz

~pcwiz

    InsanelyMac V.I.P.

  • Retired
  • 5,900 posts
  • Gender:Male
UPDATE This is the latest version 1.1 of this program. If you downloaded before March 12 2008 please download again as this new version has major improvements

http://######.com/images/kernelinstaller.jpg


I have created a kernel installer application that will automatically install Mac OS X kernels for you. Just run the Kernel Installer application program included in the zip file (download below) and it will guide you through a user friendly, interactive wizard to back up your existing kernel and to install a new one.

CHANGELOG (v1.0 to 1.1)
  • The kernel can be selected from anywhere rather than just the desktop
  • You can specify the name of the file that you want mach_kernel to be backed up to
  • You can install to a different target drive than the drive you are running it from
The NEW 113KB zip file is attached. Also included is a ReadMe file for more information..

I hope this helps! ;)

P.S. Just in case you were wondering, I have tested this and it works :o

Attached Files



#2
daclothe

daclothe

    InsanelyMac Protégé

  • Members
  • PipPip
  • 54 posts
are you running netkas kernel right now or vanilla pcwiz?

#3
~pcwiz

~pcwiz

    InsanelyMac V.I.P.

  • Retired
  • 5,900 posts
  • Gender:Male
netkas kernel

I guess I should update my sig :rolleyes:

P.S. Does anyone know how I would go about creating a GUI front end for this and make it a .app instead of a script? It would be nicer, I don't want to spend too much effort on it, but if anyone knows an easy way :rolleyes:

#4
Headrush69

Headrush69

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 1,441 posts
Use Applescript.

#5
stroke

stroke

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 350 posts
  • Location:Russia
Well it's a bit more complicated, you'd have to either run the shell script as an NSTask, or use AppleScript Studio and 'do shell script().' The latter would be easier, but the former is the best method. Even better if you used NSFileManager.

#6
~pcwiz

~pcwiz

    InsanelyMac V.I.P.

  • Retired
  • 5,900 posts
  • Gender:Male
I just created a GUI version of this app using Platypus and CocoaDialog. I'll post pics soon :angel:

EDIT: Heres a screen:

Attached File  kinstaller1.jpg   36.07KB   522 downloads

Like it? It took a while to learn the CocoaDialog syntax and all but its fully working in .APP format. I'll post it up tomorrow :angel:

EDIT2: I couldn't wait and I posted it up today :P

#7
~pcwiz

~pcwiz

    InsanelyMac V.I.P.

  • Retired
  • 5,900 posts
  • Gender:Male
The only thing I can think of that would make this perfect is the ability to drag and drop a kernel from anywhere and install it...The only way to do that would be to implement drag and drop in some form

Headrush69,

I thought of AppleScript too, but wouldn't that mean that I would have to recode the entire thing in a different language? AppleScript isn't the same as bash is it? Or could I insert my bash code into AppleScript raw?

EDIT: Since I have nothing better to do, I will tell you how I did this:

First of all, as you know, the original version (released today evening) was just a bash script to run in Terminal. What I wanted to do was make it user friendly, so I researched a long time and tried to find a way where I could just convert the bash script into a GUI app. I finally came across the solution with an open source app called Platypus. What Platypus does is it puts a GUI wrapper around shell scripts, apple scripts, and some others. So I imported my script and changed the interpreter from "sh" to "bash". Then I set the output mode to text window, made admin priveleges required, and I set it not to shut down once finished running. Then I created my app. It ran the backup, but then it came to the part where you had to type "y" or "n" to confirm kernel installation. This is where I came across my first problem. Platypus apps don't let you import text.

Then I came across the solution for that problem in the form of a little app called CocoaDialog. What it does is it lets you put in dialog boxes, so I planned to switch the text prompts to clickable dialog boxes. Then I found instructions on how to integrate PlatyPus and CocoaDialog together. Then I was all set.

After a few long hours of reading CocoaDialog documentation and about 20 copies of the app later, I got one that actually worked. Then I refined it more and voila, the GUI edtion was born!!

#8
Deviant0ne

Deviant0ne

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 296 posts
Great tool!

#9
~pcwiz

~pcwiz

    InsanelyMac V.I.P.

  • Retired
  • 5,900 posts
  • Gender:Male
Thanks Deviant0ne!

EDIT: Lol I just noticed something. The app is "Universal" so it works with PPC and Intel. Genius! Platypus is a wonderful app I must say, maybe not by itself, but with the addition of things like CocoaDialog, it ROCKS :P

#10
Colonel

Colonel

    11 Herbs & Spices

  • Retired
  • 4,157 posts
  • Gender:Male
  • Location:KFC
I know copying mach_kernel to your HDD is a seriously difficult task that needs a custom application to accomplish... :P

#11
Deviant0ne

Deviant0ne

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 296 posts
I really wish this was around when I was new to OS X. Again, kudos.

#12
~pcwiz

~pcwiz

    InsanelyMac V.I.P.

  • Retired
  • 5,900 posts
  • Gender:Male
Thanks again Deviant0ne. :P

Colonel,

You'd be surprised how many people (AKA newbs) can't install a kernel :P

#13
Headrush69

Headrush69

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 1,441 posts

Headrush69,

I thought of AppleScript too, but wouldn't that mean that I would have to recode the entire thing in a different language? AppleScript isn't the same as bash is it? Or could I insert my bash code into AppleScript raw?

Depends. Since this is such an easy scrpt you could re-write it in Applescript. Applescript is really simple and learning it would prove useful for other things too.
You could also just have the Applescript execute the BASH script passing the "dropped" file.

All these procedural computer languages aren't terribly different once you know one. Sure their syntaxes might have differences but it shouldn't a problem.

EDIT: Since I have nothing better to do, I will tell you how I did this:

You need a girlfriend! :(

P.S. I emailed you an Applescript Primer ebook for future reference if you want to take a look. :censored2:

#14
~pcwiz

~pcwiz

    InsanelyMac V.I.P.

  • Retired
  • 5,900 posts
  • Gender:Male
Yeah I'll take a look at the ebook ;)

#15
~pcwiz

~pcwiz

    InsanelyMac V.I.P.

  • Retired
  • 5,900 posts
  • Gender:Male
Headrush,

I read over that tutorial you emailed me but theres nothing in there regarding copying and moving files and drag and drop :)

#16
SticMAC™

SticMAC™

    "Nobody likes a SmartASS"

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,590 posts
  • Gender:Male
  • Location:Da Bathroom!!
PcWizzzzzzz....
Don't you wanna make us a kext installer that you can set the "target" drive, ie, if I want to add kexts on my 10.4.11 drive while I'm in 10.5.2!
Kext helper B7 ONLY does install on the active drive and that is a real PAIN!

Also if your kernel installer can do the same as MOST of the problems is getting a kernel onto a problematic HDD which most of the time is not the one, one is currently working from!?

SticMAN

Colonel,
with the utmost respect, sometimes it is JUST the convenience of NOT having to go through the whole chmod,chown thing!

SticMAN

I know copying mach_kernel to your HDD is a seriously difficult task that needs a custom application to accomplish... :(



#17
~pcwiz

~pcwiz

    InsanelyMac V.I.P.

  • Retired
  • 5,900 posts
  • Gender:Male
Thats what I'm trying to do SticMAN...

My programming skills aren't great, but I'll work on it :(

#18
SticMAC™

SticMAC™

    "Nobody likes a SmartASS"

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 2,590 posts
  • Gender:Male
  • Location:Da Bathroom!!
:( :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents: :2cents:

Here some incentives, there is more real ones where they came from! ;)


SticMAN

Thats what I'm trying to do SticMAN...

My programming skills aren't great, but I'll work on it :)



#19
Thao

Thao

    InsanelyMac Protégé

  • Members
  • PipPip
  • 70 posts
  • Gender:Male
  • Location:Canada
Great idea, installing Kernels is kind of a scary process, even when you know how to do it, because if you mess it up, there goes your system. :(

#20
~pcwiz

~pcwiz

    InsanelyMac V.I.P.

  • Retired
  • 5,900 posts
  • Gender:Male
I believe I know how to make a version where you can SELECT the mach_kernel file you wish to install instead of just installing it from the desktop.

The only problem is that I want to make it so that you can ONLY install mach_kernel files and nothing else. The only way to to this would be to limit extensions, but the problem is that mach_kernel has no extension!

Does anyone know what the file extension for mach_kernel is?





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2017 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy