• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[Linux] Lazy Man Linux Script - Automated WoW core installer

Hyperion

Founder
mmzBO.png


LMLS v1.1 (Lazy Man Linux Script)!


Supported Cores:
  • TrinityCore
  • ArcEMU
  • SkyFire
  • OregonCore(soon)
Supported Distro(s):
  • RedHat, CentOS, Fedora,
  • Debian, Ubuntu & Mint


Brief Description:
The LazyMan script is an auto installer for World of Warcraft emulators. The script
starts out with one simple download and execute. Then it gathers information about
your server and which core you would like to install. After that It will automatically
add the user 'server' and add said user to sudoers. Then it will download step 2
of the automation and push the script to the user and then logs into the user.
From there you will just simple type './continue.sh', choose your amount of CPU cores
and then the script installs your core choice with the provided server information.

After the core and it's dependencies are installed, 5 scripts and a README file will
be downloaded to the user's home directory. The five scripts include an auto
auto compiler, './updater', a world and auth start/auto restart scripts './world.sh'
and './auth.sh'. The other two are 'check' scripts that will auto restart your
daemon when ever it goes down.


Info:
As you can see, only TrinityCore, ArcEMU & Slyfire are currently supported.
I am in the process of working on the entire multicore option. Currently I have
only tested this on CentOS 5/6, Debian and Ubuntu. Since this is Linux
I am sure there will be bugs and issues. If anyone experiences a bug
or error, please let me know so I can either fix the main source, or
just give you a quick fix for your own server.



The Features of LMLS v1.1:
  • Multi core support!
  • Multi distro support!
  • A friendly interface.
  • Auto server setup, installs needed packages and prepares server for core.
  • Information gatherer, stores information you provide that's best for your core install.
  • Auto installs of the ACE libraries and OpenSSL.
  • Fetching of core and auto setup/compile.
  • Additional scripts prepared for server and account.
  • Auto MySQL DB & User setup.
  • Auto MySQL database creation and importing.
  • Auto updates auth, characters and world DBs.
  • Start script for world and auth servers.
  • Auto restart.
  • Auto core compiler.
  • Ability to control the daemons through 'screen'.


Screen:
YPLyoAo.png
Yn7hCH6.png




Install Instructions:
1) You must be root to use this script.
2) Make sure you have bash & wget installed(they should be).
Debian:
Code:
apt-get install bash wget
CentOS:
Code:
yum install bash wget
3) Login as root and go to your home directory, cd ~/
4) Download the first setup script:
Code:
wget http://dl.emudevs.com/lmls/setup.sh
5) Set the script permissions for use:
Code:
chmod +x setup.sh
6) Run the script:
Code:
./setup.sh


Please read the on screen instructions!

The rest is just a few questions. The rest is automated, so just sit back and be lazy.

Again when and if you receive an error or issues with the setup
and installation, please let me know so I may fix accordingly!
It would be a simple, "Find this line & Replace with this line".


Note: At the end of the setup, it will open the README file. Please read it's
contents before running any of the automated scripts.



Changelog:
  • v1.1 - Fixed the unrar package for Debian based OS'
    Fixed some missing compile commands
    Added a few more package locations to apt sources list
  • v1.0 - Updated layout & headers
    Removed all extra script downloads
    Removed extra continue.sh scripts
    Everything is now only on setup.sh
    Added su commands for user side setup
    Tweaked MySQL settings (please ignore duplicate warnings still)
    Cleaned up the code, removed extra echos and sleeps
  • v0.9 - Fix more core dependencies and fixed some script errors causing the automation to cease.
    Also added the option to download maps, vmaps & dbc for TC. Script now su's to user in bash.
    Moved all file download locations & removed the need to use dos2unix.
    Last tested on Debian7 and CentOS6(Fresh Installs) 11/17/2013
  • v0.8 - Updated Core Dependencies
  • v0.7 - Added Skyfire support
  • v0.6a - Fixed a few compile errors with ArcEmu, damn those typos. I also took down the amount of sleep timers
  • v0.6 - Added ArcEmu support & updated interface for multicore option
 

Moribus

Enthusiast
Can someone reupload that script? i get this with latest deb:
Code:
--2013-12-19 06:57:48--  http://dl.emudevs.com/lmls/setup.sh
Resolving dl.emudevs.com (dl.emudevs.com)... 69.64.39.62
Connecting to dl.emudevs.com (dl.emudevs.com)|69.64.39.62|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-12-19 06:57:48 ERROR 404: Not Found.
 

Ghostcrawler336

Epic Member
Can someone reupload that script? i get this with latest deb:
Code:
--2013-12-19 06:57:48--  http://dl.emudevs.com/lmls/setup.sh
Resolving dl.emudevs.com (dl.emudevs.com)... 69.64.39.62
Connecting to dl.emudevs.com (dl.emudevs.com)|69.64.39.62|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-12-19 06:57:48 ERROR 404: Not Found.

Here is Faded other thread: http://emudevs.com/showthread.php/1825-Linux-Eluna-Auto-Installer-Setup

That download's and installs Eluna.
 

Hyperion

Founder
Is your sources.list fubard? It is still 'unrar' for the package and apt-get install unrar still works for ubuntu 12 & 13
 

Vanquisher

Enthusiast
root@---:/home/server/server# apt-get install unrar
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package unrar is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'unrar' has no installation candidate
root@----:/home/server/server#
 

Vanquisher

Enthusiast
Fetching World DB...

--2013-12-29 09:27:50-- http://dl.emudevs.com/lmls/TDB.sql
Resolving dl.emudevs.com (dl.emudevs.com)... 69.64.58.165
Connecting to dl.emudevs.com (dl.emudevs.com)|69.64.58.165|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-12-29 09:27:52 ERROR 404: Not Found.


Uploading world DB...
(This may take a moment)
./continue.sh: line 216: TDB.sql: No such file or directory

Applying DB Updates...
ERROR 1060 (42S21) at line 1: Duplicate column name 'token_key'
ERROR 1146 (42S02) at line 1: Table 'world.version' doesn't exist

Ignore any 'Duplicate' Errors.
 

Hyperion

Founder
Fetching World DB...

--2013-12-29 09:27:50-- http://dl.emudevs.com/lmls/TDB.sql
Resolving dl.emudevs.com (dl.emudevs.com)... 69.64.58.165
Connecting to dl.emudevs.com (dl.emudevs.com)|69.64.58.165|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-12-29 09:27:52 ERROR 404: Not Found.


Uploading world DB...
(This may take a moment)
./continue.sh: line 216: TDB.sql: No such file or directory

Applying DB Updates...
ERROR 1060 (42S21) at line 1: Duplicate column name 'token_key'
ERROR 1146 (42S02) at line 1: Table 'world.version' doesn't exist

Ignore any 'Duplicate' Errors.


This should work now, let me know if not.

As far as your unrar problem with ubuntu, if you're running a desktop then install it from the ubuntu software center.
 

Vanquisher

Enthusiast
latest update got alot of errors and not found

- - - Updated - - -

/continue.sh: line 225: /home/server/TrinityCore/sql/updates/world/all.sql: No such file or directory

Ignore any 'Duplicate' Errors.

Cleaning up...

mv: cannot stat `/home/server/server/bin/authserver': No such file or directory
mv: cannot stat `/home/server/server/bin/worldserver': No such file or directory
mv: cannot stat `/home/server/server/etc/authserver.conf.dist': No such file or directory
mv: cannot stat `/home/server/server/etc/worldserver.conf.dist': No such file or directory
Fetching automated scripts...
--2013-12-30 19:45:02-- http://dl.emudevs.com/lmls/tc/world.sh
Resolving dl.emudevs.com (dl.emudevs.com)... 69.64.58.165
Connecting to dl.emudevs.com (dl.emudevs.com)|69.64.58.165|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1019 [application/x-sh]
Saving to: `world.sh'

100%[======================================>] 1,019 --.-K/s in 0s

2013-12-30 19:45:03 (167 MB/s) - `world.sh' saved [1019/1019]

--2013-12-30 19:45:03-- http://dl.emudevs.com/lmls/tc/wcheck.sh
Resolving dl.emudevs.com (dl.emudevs.com)... 69.64.58.165
Connecting to dl.emudevs.com (dl.emudevs.com)|69.64.58.165|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 787 [application/x-sh]
Saving to: `wcheck.sh'

100%[======================================>] 787 --.-K/s in 0s

2013-12-30 19:45:03 (141 MB/s) - `wcheck.sh' saved [787/787]

--2013-12-30 19:45:03-- http://dl.emudevs.com/lmls/tc/auth.sh
Resolving dl.emudevs.com (dl.emudevs.com)... 69.64.58.165
Connecting to dl.emudevs.com (dl.emudevs.com)|69.64.58.165|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1016 [application/x-sh]
Saving to: `auth.sh'

100%[======================================>] 1,016 --.-K/s in 0s

2013-12-30 19:45:04 (214 MB/s) - `auth.sh' saved [1016/1016]

--2013-12-30 19:45:04-- http://dl.emudevs.com/lmls/tc/acheck.sh
Resolving dl.emudevs.com (dl.emudevs.com)... 69.64.58.165
Connecting to dl.emudevs.com (dl.emudevs.com)|69.64.58.165|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 793 [application/x-sh]
Saving to: `acheck.sh'

100%[======================================>] 793 --.-K/s in 0s

2013-12-30 19:45:04 (170 MB/s) - `acheck.sh' saved [793/793]

--2013-12-30 19:45:04-- http://dl.emudevs.com/lmls/tc/updater.sh
Resolving dl.emudevs.com (dl.emudevs.com)... 69.64.58.165
Connecting to dl.emudevs.com (dl.emudevs.com)|69.64.58.165|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1914 (1.9K) [application/x-sh]
Saving to: `updater.sh'

100%[======================================>] 1,914 --.-K/s in 0s

2013-12-30 19:45:04 (231 MB/s) - `updater.sh' saved [1914/1914]

--2013-12-30 19:45:04-- http://dl.emudevs.com/lmls/tc/LMLS-README.txt
Resolving dl.emudevs.com (dl.emudevs.com)... 69.64.58.165
Connecting to dl.emudevs.com (dl.emudevs.com)|69.64.58.165|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2396 (2.3K) [text/plain]
Saving to: `LMLS-README.txt'

100%[======================================>] 2,396 --.-K/s in 0s

2013-12-30 19:45:05 (263 MB/s) - `LMLS-README.txt' saved [2396/2396]

mkdir: cannot create directory `/home/server/server/scripts': No such file or directory
mv: cannot move `/home/server/world.sh' to `/home/server/server/scripts/': No such file or directory
mv: cannot move `/home/server/wcheck.sh' to `/home/server/server/scripts/': No such file or directory
mv: cannot move `/home/server/auth.sh' to `/home/server/server/scripts/': No such file or directory
mv: cannot move `/home/server/acheck.sh' to `/home/server/server/scripts/': No such file or directory
chmod: cannot access `/home/server/server/scripts/world.sh': No such file or directory
chmod: cannot access `/home/server/server/scripts/wcheck.sh': No such file or directory
chmod: cannot access `/home/server/server/scripts/auth.sh': No such file or directory
chmod: cannot access `/home/server/server/scripts/acheck.sh': No such file or directory


Would you like to download Maps, VMaps and DBC now?
(y/n)->
 

Vanquisher

Enthusiast
from the first.. some of the tools "not found" and I reinstalled the OS again (Ubuntu 12.04) still no rar unrar

and to fix those errors, gotta use this :

apt-get update && apt-get upgrade

sudo apt-get install build-essential autoconf libtool gcc g++ make cmake git-core patch wget links zip unzip
sudo apt-get install openssl libssl-dev mysql-server mysql-client libmysqlclient15-dev libmysql++-dev libreadline6-dev zlib1g-dev libbz2-dev
sudo apt-get install libncurses5-dev
 
Last edited:

Hyperion

Founder
Yeah, fresh install everything worked okay, just that one token duplicate. I'll fix it regardless and do some other updates as well.
 

Hyperion

Founder
Updated, 1/1/2014:
  • v1.0 - Updated layout & headers
    Removed all extra script downloads
    Removed extra continue.sh scripts
    Everything is now only on setup.sh
    Added su commands for user side setup
    Tweaked MySQL settings (please ignore duplicate warnings still)
    Cleaned up the code, removed extra echos and sleeps

Updated main post.
 
Top