Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Talisman Auto install script

Junior Spellweaver
Joined
Dec 31, 2010
Messages
144
Reaction score
16
This is only server installation script and has nothing to do with server security or hardening please test and post any issues you might face.

do this as a root user , in root folder
apt-get install screen
Press Space Button
wget
chmod 777 install
./install

And then follow , At downloading part and all the script will pause because it will be downloading the files and libs etc so dont be impatient.

Step no 15 ~ 18 are very slow ones which include installation of gnome and desktop gui so be patient if you are on a good ssd server full installation should be done in 10 mins approx ( mine his around 8 )

Things what this script will do

1. Downloads and install all necessary files for webserver , server , mysql etc
2. Configure gnome and gui
3. Install vncserver and ask user for a port for vnc the server will run on the same port after every reboot
4. Download base files and put folders in appropriate place for sever and also make the databases
5. Downloads and places a free and legit version of navicat in root folder
6. Changes web directory from /var/www to /root/public_html
7. Generates its own MySQL secure password for the server to use

STRICTLY TO BE USED FOR UBUNTU 12.04 LTS 32 BIT ONLY !!!! ( KVM based VPS ) In openVZ the script malfunctions due to errors.
 
Last edited:
Junior Spellweaver
Joined
Dec 31, 2010
Messages
144
Reaction score
16
I request this be made a sticky if its of use , i'll constantly update it a lil more nmilchev
 
Junior Spellweaver
Joined
Dec 31, 2010
Messages
144
Reaction score
16
i tested it only thing is to pass mysql pass to the mysql installation which im not able to figure out , if the mysql is alrdy installed est of it goes smooth just refering articles here and there trying to fix it up
 
Junior Spellweaver
Joined
Dec 31, 2010
Messages
144
Reaction score
16
@nmilchev The script has been written thoroughly and test it works 100% you can sticky this

Things what this script will do

1. Downloads and install all necessary files for webserver , server , mysql etc
2. Configure gnome and gui
3. Install vncserver and ask user for a port for vnc the server will run on the same port after every reboot
4. Download base files and put folders in appropriate place for sever and also make the databases
5. Downloads and places a free and legit version of navicat in root folder
6. Changes web directory from /var/www to /root/public_html
7. Generates its own MySQL secure password for the server to use

STRICTLY TO BE USED FOR UBUNTU 12.04 LTS 32 BIT ONLY !!!!
 
Initiate Mage
Joined
Nov 29, 2014
Messages
15
Reaction score
1
Hello, Would anyone be willing to partner up? i have a linux centos 6 server i use for a chat only. it;s able to run 5 or 6 games but i run nothing on it so let me know if your interested please.
 
Initiate Mage
Joined
Apr 5, 2013
Messages
4
Reaction score
1
with Ubuntu 12.04 i386 kvm . 32 bitts
 
Last edited:
Junior Spellweaver
Joined
Dec 31, 2010
Messages
144
Reaction score
16
Updated install script now it will automatically fetch ip :)
 
Initiate Mage
Joined
Mar 15, 2012
Messages
4
Reaction score
0
can you tell me your given server file is bug free and working without any crash problem ???
 
Junior Spellweaver
Joined
May 22, 2017
Messages
101
Reaction score
34
APT_PATH=/usr/bin/apt-get
WGET_PATH=/usr/bin/wget
MKDIR_PATH=/bin/mkdir
CLEAR_PATH=/usr/bin/clear
ECHO_PATH=/bin/echo
PRINTF_PATH=/usr/bin/printf
TAR_PATH=/bin/tar
PHP_PATH=/usr/bin/php
P7Z_PATH=/usr/bin/7z
DPKG_PATH=/usr/bin/dpkg
PRELOG=/tmp/install.log
MIRROR=http://talisman.servertalks.com/
function status {
echo $1;
}
function _info_msg() {
$CLEAR_PATH
_header
$ECHO_PATH " | |"
$ECHO_PATH " | Welcome to Talisman Online installer V.3.1.0 by Bharat B |"
$ECHO_PATH " | Instructions are located at the following link: |"
$ECHO_PATH " | |"
$ECHO_PATH " | |"
$ECHO_PATH " | Hit [ENTER] to continue or ctrl+c to exit |"
$ECHO_PATH " | |"
status " o----------------------------------------------------------------o\n"
read entcs
$CLEAR_PATH
}
function install {
DEBIAN_FRONTEND=noninteractive apt-get -q -y install "$1"
apt-get clean
}
function _header() {
status " o----------------------------------------------------------------o\n"
status " | :: Talisman Installer v3.1.0 BHARAT B |\n"
status " o----------------------------------------------------------------o\n"
}

_info_msg

if [ `id -u` != "0" ]; then
status "You need to be be the root user to run this installer."
exit
fi

if [ `uname -m` != "i686" ]; then
status "You need to download our 64 bit installer for this operating system"
exit
fi

_header
status "Fetching updates..."
apt-get update >> $PRELOG 2>&1
status "Please Wait, Installing Dependencies for Talisman Online...";

install="nano apache2 libapache2-mod-php5 libapache2-mod-auth-mysql php5 php5-mysql php5-gd php5-imagick php5-mcrypt php5-cli php5-curl mysql-server rar p7zip-full libwww-perl sendmail gnome-core ubuntu-desktop vnc4server"

for program in $install
do
install $program
y=$(($y + 1));
status "Installing dependency : $y of 19"
done
apt-get clean

status "Configuring MySQL Server"

/etc/init.d/mysql stop >> /dev/null 2>&1
invoke-rc.d mysql stop >> /dev/null 2>&1

status "Generating secure MySQL password"
/etc/init.d/mysql start >> /dev/null 2>&1

mysqlpassword=$(< /dev/urandom tr -dc A-Z-a-z-0-9 | head -c${1:-32};)

mysqladmin -u root password $mysqlpassword >> $PRELOG 2>&1
while ! mysql -u root -p$mysqlpassword -e ";" ; do
status "Unfortunately mysql failed to install correctly.".
done
status "MySQL password generated and secured"
status "Configuring database"
mysql -uroot -p$mysqlpassword --execute "CREATE DATABASE db_misc;CREATE DATABASE db_account;CREATE DATABASE db_game;CREATE DATABASE db_log;" >> $PRELOG 2>&1
$WGET_PATH $MIRROR/db_account.txt -O /tmp/db_account.txt >> $PRELOG 2>&1
mv /tmp/db_account.txt /tmp/db_account.sql >> $PRELOG 2>&1
mysql -uroot -p$mysqlpassword db_account < /tmp/db_account.sql >> $PRELOG 2>&1
status "Configuring database successfull"
status "Downloading required files & libraries"
$WGET_PATH $MIRROR/server.7z -O /tmp/server.7z >> /dev/null 2>&1
$WGET_PATH $MIRROR/lib.deb -O /tmp/lib.deb >> /dev/null 2>&1
$WGET_PATH $MIRROR/navicat100_lite_en.tar.gz -O /tmp/navicat100_lite_en.tar.gz >> /dev/null 2>&1

mkdir /root/navicat
tar -zxvf /tmp/navicat100_lite_en.tar.gz -C /root/navicat >> /dev/null 2>&1
status "Installing libraries and arranging files";
$DPKG_PATH -i /tmp/lib.deb >> /dev/null 2>&1 && rm /tmp/lib.deb
$P7Z_PATH -y x /tmp/server.7z -o/root/ >> /dev/null 2>&1 && rm /tmp/server.7z

status "Configuring db_server"
replace "username" "root" -- /root/db/db_server_user.ini >> $PRELOG 2>&1
replace "password" $mysqlpassword -- /root/db/db_server_user.ini >> $PRELOG 2>&1
status "Configuring db_server completed"

while [[ -z "$s_name" ]]
do
read -p "Please enter your server's name: " s_name
done

$WGET_PATH $MIRROR/ip.php -O /tmp/ip.txt >> $PRELOG 2>&1
ip=$(cat /tmp/ip.txt);

status "Please wait... Configuring login_server & game_server"
replace "WAN IP" $ip -- /root/login/login_user.ini /root/game/server_user.ini >> $PRELOG 2>&1
replace "LAN IP" $ip -- /root/login/login_user.ini /root/game/server_user.ini >> $PRELOG 2>&1
replace "server_name" "$s_name" -- /root/game/server_user.ini >> $PRELOG 2>&1
status "Configuring login_server & game_server completed"

status "Please wait... Configuring Webserver"
mkdir /root/public_html >> $PRELOG 2>&1
$WGET_PATH $MIRROR/webconfig.txt >> $PRELOG 2>&1
rm /etc/apache2/sites-available/default && cp webconfig.txt default >> $PRELOG 2>&1
mv default /etc/apache2/sites-available/
chmod o+x /etc/apache2/sites-available/
chmod o+x /root -R
a2enmod rewrite >> $PRELOG 2>&1
service apache2 restart >> $PRELOG 2>&1
rm webconfig.txt
status "Configuring Webserver completed"
status "Please Configure vncserver"
while [[ -z "$vnc_pwd" ]]
do
read -p "Enter password for your vnc :" vnc_pwd
done
while [[ -z "$vnc_port" ]]
do
read -p "Which port do you want to put for vnc ?: " vnc_port
done
crontab -l > file; echo '@reboot sudo vncserver :'$vnc_port' -geometry 1280x720' >> file; crontab file >> /dev/null 2>&1 && rm file
echo -e "$vnc_pwd\n$vnc_pwd" | vncserver :1 -geometry 1280x720
vncserver -kill :1 >> /dev/null 2>&1
rm ~/.vnc/xstartup >> /dev/null 2>&1
$WGET_PATH $MIRROR/vncconfig.txt >> /dev/null 2>&1
cp vncconfig.txt xstartup && rm vncconfig.txt
mv xstartup ~/.vnc/
chmod o+x /root -R
echo -e "$vnc_pwd\n$vnc_pwd" | vncserver :$vnc_port -geometry 1280x720 2>&1
status "Configuring vncserver completed"
status "All necessary installation has been done ! Thank you for using Talisman Installer, Donate us on paypal sixtorz@yahoo.com";
status "Your MySQL User is root"
status "Your MySQL Password is $mysqlpassword"
status "Your vncport is $vnc_port"
status "Your vnc password is $vnc_pwd"
status "Put your website files in /root/public_html"
mv /tmp/install.log /root/


VPS SCRIPT
 
Junior Spellweaver
Joined
Dec 31, 2010
Messages
144
Reaction score
16
The new script is located at
 
Back
Top