-
-
Save hexparrot/7237456 to your computer and use it in GitHub Desktop.
Downloads, installs and configures components required for the MineOS Web User Interface on yum based systems.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# download the necessary prerequisite components for mineos | |
yum -y install screen git wget java-1.7.0-openjdk.x86_64 openssl openssl-devel | |
yum -y groupinstall "Development tools" | |
# download rdiff-backup rpm | |
mkdir -p ~/mineos-setup | |
cd ~/mineos-setup | |
wget http://pkgs.repoforge.org/rdiff-backup/rdiff-backup-1.2.8-4.el6.rf.x86_64.rpm | |
rpm -ivh rdiff-backup*.rpm | |
# download and install parallel install of python2.7 | |
cd ~/mineos-setup | |
wget http://python.org/ftp/python/2.7.5/Python-2.7.5.tar.bz2 | |
tar xf Python-2.7.5.tar.bz2 | |
cd Python-2.7.5 | |
./configure --prefix=/usr/local | |
make && make altinstall | |
# download and install python-cherrypy3 | |
cd ~/mineos-setup | |
wget http://download.cherrypy.org/cherrypy/3.2.2/CherryPy-3.2.2.tar.gz | |
tar xf CherryPy-3.2.2.tar.gz | |
cd CherryPy-3.2.2 | |
python2.7 setup.py install | |
# download the most recent mineos web-ui files from github | |
mkdir -p /usr/games | |
cd /usr/games | |
git clone git://github.com/hexparrot/mineos minecraft | |
cd minecraft | |
git config core.filemode false | |
chmod +x server.py mineos_console.py generate-sslcert.sh | |
ln -s /usr/games/minecraft/mineos_console.py /usr/local/bin/mineos | |
# distribute service related files | |
cd /usr/games/minecraft | |
cp init/mineos.centos /etc/init.d/mineos | |
chmod 744 /etc/init.d/mineos | |
chkconfig --level 345 mineos on | |
cp init/minecraft.centos /etc/init.d/minecraft | |
chmod 744 /etc/init.d/minecraft | |
chkconfig --level 345 minecraft on | |
cp mineos.conf /etc/ | |
# generate self-signed certificate | |
./generate-sslcert.sh | |
# start the background service | |
service mineos start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
does not work anymore !