Home > DeployStudio, Linux, Mac administration, Unix > Modifying JAMF’s NetSUS to host DeployStudio NetBoot boot sets

Modifying JAMF’s NetSUS to host DeployStudio NetBoot boot sets

Gary Larizza updated his NetSUS appliance write-up earlier today, to include information on how to modify the NetSUS’s /var/www/webadmin/scripts/adminHelper.sh so that it can accommodate DeployStudio’s NetBoot sets.

Gary’s way is elegant and uses vim. Consider this the illustrated version that’s doing the same process the hard way with nano. See below the jump for the details.

Start up your NetSUS VM and hit the Enter key to get past the opening welcome screen

Screen Shot 2012-02-06 at 3.59.43 PM

Log in as the shelluser account

Screen Shot 2012-02-07 at 11.47.57 AM

Once at the prompt, run the following command to change to the /var/www/webadmin/scripts directory:

cd /var/www/webadmin/scripts

Screen Shot 2012-02-07 at 11.47.07 AM

Once in /var/www/webadmin/scripts, use nano to open the adminHelper.sh script for editing.

sudo nano adminHelper.sh

Screen Shot 2012-02-07 at 11.48.38 AM

In adminHelper.sh, go to line 98 and edit the following line (outlined in yellow):

From: dmgfile=`echo $files | grep dmg`

Screen Shot 2012-02-07 at 11.52.19 AM

To: dmgfile=`echo $files | egrep dmg\|sparseimage`

Screen Shot 2012-02-07 at 11.53.22 AM

Hit Control-X to exit nano, and you’ll be prompted to save your changes.

Screen Shot 2012-02-07 at 11.54.03 AM

Save changes as adminHelper.sh

Screen Shot 2012-02-07 at 11.54.10 AM  

Screen Shot 2012-02-07 at 11.54.19 AM

From here, you can use DeployStudio to generate a Netboot booter image and upload it to the NetSUS VM through the web-based GUI. Also, while you’re in here, consider installing SSH using Gary’s instructions at the linked post above. It’ll make future editing like this a lot more painless.

As Gary mentions in his post, the changes you made to the adminHelper.sh script should get propagated to /etc/dhcpd.conf when you use the GUI to set up a new Netboot image.

  1. Jason
    May 31, 2012 at 4:54 pm

    Thanks for this, worked like a charm. Am I correct in assuming you still need OSX hardware to run Deploystudio on?

    • May 31, 2012 at 4:56 pm

      Right, you need OS X or OS X Server to run the DS server software on.

  2. Jason
    May 31, 2012 at 4:58 pm

    Bummer, thanks for the quick response!

  3. Abdoulie
    July 19, 2012 at 11:43 pm

    Is there way to server multiple netboot images using the Netboot/SUS appliance

  4. Jeremy D
    May 23, 2013 at 5:38 pm

    It’s been awhile, so I imagine you’ve learned that NetSUS_1.02.ova is still limited to hosting a single .nbi at a time—unless someone has found a work-around? Rich even submitted a feature request to JAMF to allow hosting multiple .nbi via NetSUS_1.02.ova.

  5. fuzzycheck
    May 19, 2014 at 4:24 pm

    Hi,
    it didn’t work for me at first. Then I tested the command in the terminal, and it works if I add some double-quotes:
    dmgfile=`echo $files | egrep dmg\|sparseimage`
    changed to:
    dmgfile=`echo $files | egrep “dmg\|sparseimage”`

  6. fuzzycheck
    May 19, 2014 at 4:25 pm

    ignore above comment, I made a mistake. I type “grep” instead of “egrep”.

  7. Matt
    February 24, 2015 at 12:55 pm

    The specific line listed here to edit is completely different in the version version 3.0.2 version of the NetSUS appliance.

    The line in my adminHelper.sh script is showing as:
    dmgfile=’ls “/srv/NetBoot/NetbootSP0/${2}/”*.dmg 2>/dev/null’

  8. TestbeforeGo
    July 19, 2015 at 12:36 pm

    I tested 3.0.2 and DPS 1.6.15
    So far I found out that *enable netboot” will only turn green after the deploystudio.plist inside the .NBI is removed.
    But that’s obviously not enough – you have to convert the .sparebundle into compressed or read/write .dmg
    Workflows look good now.
    BUT:
    Any ideas why the “Utilities” menu is not working correctly – would love to have “Terminal”, StartupDisk, etc. back

  1. No trackbacks yet.

Leave a comment