Automatic server installer for ubuntu servers
#11
Btw I'm running mine on Ubuntu so you can't say I haven't tried it.

#12
Is this trusted im going to start running a server i want to know if its anti hacking on too

#13

I definitely have no reason to move or do anything to my script or server. Who cares. Because I dont

So stop posting useless garbage? Seems like a blunt solution to all of your problems. Don't release garbage that works the wrong way and only 1/10 times. You're destroying peoples experiences while using the garbage that you release.

 

It works fine on Ubuntu.  User error I suppose?

 

Btw I'm running mine on Ubuntu so you can't say I haven't tried it.

It's not about working it working or not. It's about shell script working properly. I presume you know nothing about Linux just as Pwesty because you would understand that single statement let alone agree with me on it. To put it in noob terms Micheal the script is going to continue to execute even if there was an error. So you can kind of grasp the severity of my words.

 

As per usual Warmonger needs to pick up the slack from teh noobies. Here's a snippet of my shell script that I may release later on. Which is the proper way of writing a shell script.

 

By the way Pwesty, If you use any my code (I'm sure you will) at least throw me credits.

#!/bin/bash

printf "\nProper LastChaos EP3 Setup Shell Script By Warmonger\n\n"
sleep 3

##################################################
# Check For Previous Installations
##################################################

if [ -d "lastchaos" ]; then
while true; do
read -p "Previous Files Found, Delete Them? " yn
case $yn in
[Yy]* ) rm -r lastchaos; sleep 1; break;;
[Nn]* ) exit;;
    * ) echo "Please Answer Yes Or No";;
esac
done
fi

##################################################
# Create The Directory For Server Files
##################################################

printf "Creating LastChaos Directory..."
mkdir lastchaos >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

##################################################
# Navigate Into Directory
##################################################

printf "Navigate Into LastChaos Directory..."
cd lastchaos >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

##################################################
# Download Server Files
##################################################

printf "Downloading Server Files..."
wget -t 1 --timeout=10 http://www.lcdownloads.com/garbage/EP3.zip >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

##################################################
# Extract Server Files
##################################################

printf "Extracting Server Files..."
unzip EP3.zip >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

...
Is this trusted im going to start running a server i want to know if its anti hacking on too

I would wait until he fixes the script using my advice. I wouldn't recommend anyone to use this script as it is because it is prone to problems.

#14
thx

#15
thx

#16

thx

 

#17

im not using your code nor will i ever. it works just fine on ubuntu, so quit the arguing and grow the [CeNsOrEd] up. If you want more of a challenge of linux go install Gentoo Linux and run the LC server off the Gentoo Hardened Kernel source, Good luck

edit

 

PS: yes it will continue and just keep doing it's thing. But its the fact if you listen to what i say IT WONT ERROR!!

#18


im not using your code nor will i ever. it works just fine on ubuntu, so quit the arguing and grow the [CeNsOrEd] up. If you want more of a challenge of linux go install Gentoo Linux and run the LC server off the Gentoo Hardened Kernel source, Good luck

 

 

 

 

 

edit

 

PS: yes it will continue and just keep doing it's thing. But its the fact if you listen to what i say IT WONT ERROR!!

I run Linux as my daily driver so I don't need a kid who can't even write shell scripts properly trying to tell me how to run it. And there is so many places that this can error it's beyond funny.

 

Everyone know's I will walk circles around you in anything that you do. So quit the ego trip as you've proven how credible your "skills" are. You need to stop acting like a leader and step back into your place and learn a thing or two. The only reason you get any kind of love here is because us big boys have moved onto bigger and better things.

 

Here's a slightly more complete snippet. I'll leave it to Pwesty to fix his garbage for you guys. Not once have I released something as half-assed.

#!/bin/bash

printf "\nProper LastChaos EP3 Setup Shell Script By Warmonger\n\n"
sleep 3

##################################################
# Check For Previous Installations
##################################################

if [ -d "lastchaos" ]; then
while true; do
read -p "Previous Files Found, Delete Them? " yn
case $yn in
[Yy]* ) rm -r lastchaos; sleep 1; break;;
[Nn]* ) exit;;
* ) echo "Please Answer Yes Or No";;
esac
done
fi

##################################################
# Create The Directory For Server Files
##################################################

printf "Creating LastChaos Directory..."
mkdir lastchaos >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

##################################################
# Navigate Into Directory
##################################################

printf "Navigate Into LastChaos Directory..."
cd lastchaos >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

##################################################
# Download Server Files
##################################################

printf "Downloading Server Files..."
wget -t 1 --timeout=10 http://www.lcdownloads.com/garbage/EP3.zip >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

##################################################
# Extract Server Files
##################################################

printf "Extracting Server Files..."
unzip EP3.zip >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

##################################################
# CHMOD Server Files
##################################################

printf "CHMOD Connector..."
chmod +x lastchaos/EP3/Connector/Connector >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

printf "CHMOD GameServer..."
chmod +x lastchaos/EP3/GameServer1/GameServer1/GameServer_d >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

printf "CHMOD Helper..."
chmod +x lastchaos/EP3/Helper/Helper/Helper >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

printf "CHMOD LoginServer..."
chmod +x lastchaos/EP3/LoginServer/LoginServer/LoginServer >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

printf "CHMOD Messenger..."
chmod +x lastchaos/EP3/Messenger/Messenger/Messenger >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

printf "CHMOD SubHelper..."
chmod +x lastchaos/EP3/SubHelper/SubHelper >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

##################################################
# Install MySQL Server
##################################################

printf "Installing MySQL Server..."
apt-get -y install mysql-server >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

##################################################
# Configure MySQL Server
##################################################

printf "Configuring MySQL Server..."
update-rc.d mysql defaults >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

##################################################
# Download Databases
##################################################

printf "Downloading Databases..."
wget -t 1 --timeout=10 http://www.lcdownloads.com/garbage/cleandb.zip >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

##################################################
# Extract Databases
##################################################

printf "Extracting Databases..."
unzip cleandb.zip >/dev/null 2>&1
if [ "$?" = "0" ]; then
printf " DONE!\n\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi

##################################################
# Create And Restore Databases
##################################################

printf "Creating And Restoring Databases..."
mysql -e "CREATE DATABASE newproject_data;"
if [ "$?" = "0" ]; then
mysql -v newproject_data < clean_newproject_data_ep3.sql
if [ "$?" = "0" ]; then
mysql -e "CREATE DATABASE newproject_db;"
if [ "$?" = "0" ]; then
mysql -v newproject_db < clean_newproject_db_ep3.sql
if [ "$?" = "0" ]; then
mysql -e "CREATE DATABASE newproject_db_auth;"
if [ "$?" = "0" ]; then
mysql -v newproject_db_auth < clean_newproject_db_auth_ep3.sql
if [ "$?" = "0" ]; then
mysql -e "CREATE DATABASE newproject_db_post;"
if [ "$?" = "0" ]; then
mysql -v newproject_db_post < clean_newproject_post_ep3.sql
if [ "$?" = "0" ]; then
mysql -e "CREATE DATABASE newproject_db_user;"
if [ "$?" = "0" ]; then
mysql -v newproject_db_user < clean_newproject_db_user_ep3.sql
if [ "$?" = "0" ]; then
printf " DONE!\n\n"
sleep 1
else
printf " ERROR!\n\n"
exit
fi
else
printf " ERROR!\n\n"
exit
fi
else
printf " ERROR!\n\n"
exit
fi
else
printf " ERROR!\n\n"
exit
fi
else
printf " ERROR!\n\n"
exit
fi
else
printf " ERROR!\n\n"
exit
fi
else
printf " ERROR!\n\n"
exit
fi
else
printf " ERROR!\n\n"
exit
fi
else
printf " ERROR!\n\n"
exit
fi
else
printf " ERROR!\n\n"
exit
fi
#19
Good job on wasting your time on that, you may better on somethings than me, atleast i can admit that. Defeat i dont admit because i am not defeated. I learn everyday. You are not my challenge nor will you ever be my challenge, you're the kid acting like a bigger kid.

#20

Good job on wasting your time on that, you may better on somethings than me, atleast i can admit that. Defeat i dont admit because i am not defeated. I learn everyday. You are not my challenge nor will you ever be my challenge, you're the kid acting like a bigger kid.

No one's your challenge. Heck even I haven't touched LastChaos in 3+ months now. The game is dead, development for it is dead, and it's simply outdated.

 

Edit: The word filter system on here is a joke. He11 gets censored? Really? LOL How old are the admins 12?



Forum Jump:


Users browsing this thread: 1 Guest(s)