Jump to content

[Linux] rAthena Installer


Gomen

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   5
  • Joined:  01/02/12
  • Last Seen:  

Einige Leute von euch kennen das Script schon, hier einmal eine variante um die configuraton und Installation ein wenig zu Automatisieren.

Die Datei einfach Speichern Unter... " rathena.sh " speichern, auf den server laden

und mit chmod +x rathena.sh via console die nötigen rechte verpassen.

#!/bin/bash
echo "Installation starten."
apt-get -y  update
apt-get -y  install gcc
apt-get -y  install g++
apt-get -y  install c++
apt-get -y  install gpp
apt-get -y  install subversion
apt-get -y  install subversion-tools
apt-get -y  install libpcre++0
apt-get -y  install libpcrecpp0
apt-get -y  install mysql-server-5.1
apt-get -y  install mysql-common
apt-get -y  install zlibc
apt-get -y  install zlib1g
apt-get -y  install zlib1g-dev
apt-get -y  install unrar
echo "Benutzeraccount anlegen"
read userna
useradd -d /home/$userna/ -m $userna
passwd $userna
chown -R $userna /home/$userna/
echo "Benutzer angelegt";;
echo "Verzeichnis wechseln";;
cd /home/$userna/
echo "eAthena Download starten"
svn co https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/
echo "rAthena Tunk geladen"
cd /home/$userna/trunk
echo "Projektdatein entfernen"
rm -Rf *.sln *.bat *.dll *.dsw vcproj-6 vcproj-7.1 vcproj-8 vcproj-9
echo "Starte server installation"
chmod 770 configure && ./configure
echo "Nicht Vergessen, die rAthena Configs nach belieben an zu passen."
echo "version 0.1 (c) by gomen"
sleep 10

Edited by Gomen
  • Upvote 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...