forked from jnraine/munkiserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Setup on Linux
Ricky Chilcott edited this page Jun 10, 2013
·
2 revisions
Instructions for setting up Munkiserver on Linux. This was done with CentOS 6.0 x86_64 so a few package names and paths may need to be adjusted.
Since you are installing on munkiserver on Linux, you will be missing one feature of munkiserver — package introspection. On OS X installs of munkiserver, a copy of the munkitools package may be installed, and munkiserver will then generate a pkginfo file for you and parse it. In the case of a linux install, you’ll have to do this manually on a local Mac first (by running something like `/usr/local/munki/makepkginfo /path/to/my.dmg > ~/Desktop/my.dmg.pkginfo.plist`) and uploading it to munkiserver alongside the DMG.
- Install RVM (http://rvm.beginrescueend.com/rvm/install/)
-
RVM will instruct what packages are necessary after it is installed, these were necessary for CentOS 6.0
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel
- Install Ruby 1.9.3
rvm install 1.9.3
rvm use 1.9.3 --default
-
Optional: Create gemset for munkiserver
rvm gemset create munkiserver
-
rvm use 1.9.3
munkiserver —default@
- Install bundler
gem install --no-ri --no-rdoc bundler
- Clone munkiserver
cd /usr/share
git clone https://github.com/jnraine/munkiserver.git
cd munkiserver
- Prerequisites before bundle install
yum install libxml2-devel libxslt-devel sqlite-devel ImageMagick ImageMagick-devel
- Initialize munkiserver app (for production)
bundle install
rake db:migrate RAILS_ENV=production
rake bootstrap:all RAILS_ENV=production
- Test install
rails s -e production
- Connect to server
-
http://servername:3000
(development) orhttp://servername:80
(production)
-