Skip to content

Instantly share code, notes, and snippets.

@hexparrot
Forked from hexparrot/install_mineos
Last active September 8, 2018 05:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hexparrot/7237456 to your computer and use it in GitHub Desktop.
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.
#!/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
@JamesDAdams
Copy link

does not work anymore !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment