<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.herc.ws/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.herc.ws/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=LordOdin</id>
		<title>Hercules Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.herc.ws/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=LordOdin"/>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Special:Contributions/LordOdin"/>
		<updated>2026-05-03T07:01:52Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.21.11</generator>

	<entry>
		<id>https://wiki.herc.ws/wiki/Installation_(Debian)</id>
		<title>Installation (Debian)</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Installation_(Debian)"/>
				<updated>2014-03-02T17:54:13Z</updated>
		
		<summary type="html">&lt;p&gt;LordOdin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide covers how to install [[Hercules]] on [[wikipedia:Debian|Debian]] and other [[wikipedia:List_of_Linux_distributions#Debian-based|versions of Linux]] that use apt-get.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
* [[wikipedia:Debian|Debian]] or an [[wikipedia:List_of_Linux_distributions##Debian-based]] that has the apt-get command&lt;br /&gt;
* root access or access to an account that has [[wikipedia:Sudo|sudo privileges]]&lt;br /&gt;
* an Internet connection to download install packages&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
All of these commands will be typed at the [[wikipedia:Command-line_interface|command-line interface]].&lt;br /&gt;
=== Install Prerequisites ===&lt;br /&gt;
# Login to your server via [[wikipedia:Secure_Shell|SSH]], or if you are already logged into a [[wikipedia:Graphical_user_interface|GUI]] press Ctrl+Alt+T to open a terminal window.&lt;br /&gt;
apt-get update&lt;br /&gt;
apt-get upgrade&lt;br /&gt;
apt-get dist-update  // To update to the latest version of Debian&lt;br /&gt;
# Type the following command (this will install GCC, Make, MySQL Server, MySQL header files,  PCRE header files, git, and Zlib header files) &lt;br /&gt;
#: &amp;lt;pre&amp;gt;apt-get install git make gcc mysql-server libmysqlclient-dev zlib1g-dev libpcre3-dev screen&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create a non-root Linux user ===&lt;br /&gt;
By the [[wikipedia:Principle_of_least_privilege|principle of least privilege]], it is recommended you do '''NOT''' run Hercules as root. &lt;br /&gt;
# Type the following command to create a non-root Linux account:&lt;br /&gt;
#: &amp;lt;pre&amp;gt;useradd hercuser&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install [[Hercules]] ==&lt;br /&gt;
&lt;br /&gt;
=== Login as your non-root Linux user ===&lt;br /&gt;
The rest of the setup is done as hercuser (the Linux user you created earlier)&lt;br /&gt;
# Logout from root SSH (or minimize the window).&lt;br /&gt;
# Login to your server via SSH as the hercuser Linux user.&lt;br /&gt;
&lt;br /&gt;
=== Git Clone ===&lt;br /&gt;
&amp;lt;pre&amp;gt;git clone https://github.com/HerculesWS/Hercules.git ~/Hercules&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== [http://dev.mysql.com/doc/refman/5.5/en/batch-commands.html Import] MySQL Tables ===&lt;br /&gt;
# Change directory to the '''sql-files''' folder.&lt;br /&gt;
#: &amp;lt;pre&amp;gt;cd sql-files/&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Execute these commands: &lt;br /&gt;
#: ''When prompted, enter your MySQL root password.''&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; main.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; item_db.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; item_db2.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; mob_db.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; mob_db2.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; mob_skill_db.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; mob_skill_db2.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodblog &amp;lt; logs.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
# If you are using Renewal you also have to import the following&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; item_db_re.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; item_db2_re.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; mob_db_re.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; mob_skill_db_re.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: if you want to use different SQL DBs for login/char/map servers this is the list of databases each server use:&lt;br /&gt;
#login-server: global_reg_value, ipbanlist, login, loginlog&lt;br /&gt;
#map-server: mapreg, item_db, item_db2, mob_db, mob_db2,mob_skill_db&lt;br /&gt;
#char-server: everything else + global_reg_value once again&lt;br /&gt;
Note that global_reg_value tables are needed by both login-server and char-server (though it may be different tables)&lt;br /&gt;
&lt;br /&gt;
=== [[:Category:Configuration|Configure Hercules]]===&lt;br /&gt;
&lt;br /&gt;
=== Compile Source Code ===&lt;br /&gt;
 cd trunk&lt;br /&gt;
 ./configure&lt;br /&gt;
 make sql&lt;br /&gt;
&lt;br /&gt;
*If you have added plugins for use with Hercules please use the below syntax instead of the above:&lt;br /&gt;
 cd trunk&lt;br /&gt;
 ./configure&lt;br /&gt;
 make sql plugins&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*If you're using Debian 32-bit please use:&lt;br /&gt;
 cd trunk&lt;br /&gt;
 ./configure --disable-64bit&lt;br /&gt;
 make sql plugins&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== How to Recompile =====&lt;br /&gt;
In the future (after you update or edit any file in /src) to recompile, add ''make clean'' before make sql: &lt;br /&gt;
 cd trunk&lt;br /&gt;
 ./configure&lt;br /&gt;
 '''make clean'''&lt;br /&gt;
 make sql plugins&lt;br /&gt;
&lt;br /&gt;
== Start your Hercules Server ==&lt;br /&gt;
 //change access mode of athena-start file so that you can execute it.&lt;br /&gt;
 //Use (dos2unix athena-start) if yo uare getting ^M errors ie. newline errors &lt;br /&gt;
 chmod a+x athena-start&lt;br /&gt;
&lt;br /&gt;
 //To Start&lt;br /&gt;
 ./athena-start start&lt;br /&gt;
 //To Stop&lt;br /&gt;
 ./athena-start stop&lt;br /&gt;
 //To Restart&lt;br /&gt;
 ./athena-start restart&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation Guides|Debian Linux]]&lt;/div&gt;</summary>
		<author><name>LordOdin</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/wiki/Installation_(Debian)</id>
		<title>Installation (Debian)</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/wiki/Installation_(Debian)"/>
				<updated>2014-02-25T08:30:37Z</updated>
		
		<summary type="html">&lt;p&gt;LordOdin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide covers how to install [[Hercules]] on [[wikipedia:Debian|Debian]] and other [[wikipedia:List_of_Linux_distributions#Debian-based|versions of Linux]] that use apt-get.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
* [[wikipedia:Debian|Debian]] or an [[wikipedia:List_of_Linux_distributions##Debian-based]] that has the apt-get command&lt;br /&gt;
* root access or access to an account that has [[wikipedia:Sudo|sudo privileges]]&lt;br /&gt;
* an Internet connection to download install packages&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
All of these commands will be typed at the [[wikipedia:Command-line_interface|command-line interface]].&lt;br /&gt;
=== Install Prerequisites ===&lt;br /&gt;
# Login to your server via [[wikipedia:Secure_Shell|SSH]], or if you are already logged into a [[wikipedia:Graphical_user_interface|GUI]] press Ctrl+Alt+T to open a terminal window.&lt;br /&gt;
apt-get update&lt;br /&gt;
apt-get upgrade&lt;br /&gt;
apt-get dist-update  // To update to the latest version of Debian&lt;br /&gt;
# Type the following command (this will install GCC, Make, MySQL Server, MySQL header files,  PCRE header files, git, and Zlib header files) &lt;br /&gt;
#: &amp;lt;pre&amp;gt;apt-get install git make gcc mysql-server libmysqlclient-dev zlib1g-dev libpcre3-dev screen&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create a non-root Linux user ===&lt;br /&gt;
By the [[wikipedia:Principle_of_least_privilege|principle of least privilege]], it is recommended you do '''NOT''' run Hercules as root. &lt;br /&gt;
# Type the following command to create a non-root Linux account:&lt;br /&gt;
#: &amp;lt;pre&amp;gt;useradd hercuser&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install [[Hercules]] ==&lt;br /&gt;
&lt;br /&gt;
=== Login as your non-root Linux user ===&lt;br /&gt;
The rest of the setup is done as hercuser (the Linux user you created earlier)&lt;br /&gt;
# Logout from root SSH (or minimize the window).&lt;br /&gt;
# Login to your server via SSH as the hercuser Linux user.&lt;br /&gt;
&lt;br /&gt;
=== Git Clone ===&lt;br /&gt;
{{git clone https://github.com/HerculesWS/Hercules.git ~/Hercules}}&lt;br /&gt;
&lt;br /&gt;
=== [http://dev.mysql.com/doc/refman/5.5/en/batch-commands.html Import] MySQL Tables ===&lt;br /&gt;
# Change directory to the '''sql-files''' folder.&lt;br /&gt;
#: &amp;lt;pre&amp;gt;cd sql-files/&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Execute these commands: &lt;br /&gt;
#: ''When prompted, enter your MySQL root password.''&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; main.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; item_db.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; item_db2.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; mob_db.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; mob_db2.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; mob_skill_db.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; mob_skill_db2.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodblog &amp;lt; logs.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
# If you are using Renewal you also have to import the following&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; item_db_re.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; item_db2_re.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; mob_db_re.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercuser_rodb &amp;lt; mob_skill_db_re.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: if you want to use different SQL DBs for login/char/map servers this is the list of databases each server use:&lt;br /&gt;
#login-server: global_reg_value, ipbanlist, login, loginlog&lt;br /&gt;
#map-server: mapreg, item_db, item_db2, mob_db, mob_db2,mob_skill_db&lt;br /&gt;
#char-server: everything else + global_reg_value once again&lt;br /&gt;
Note that global_reg_value tables are needed by both login-server and char-server (though it may be different tables)&lt;br /&gt;
&lt;br /&gt;
=== [[:Category:Configuration|Configure Hercules]]===&lt;br /&gt;
&lt;br /&gt;
=== Compile Source Code ===&lt;br /&gt;
 cd trunk&lt;br /&gt;
 ./configure&lt;br /&gt;
 make sql&lt;br /&gt;
&lt;br /&gt;
*If you have added plugins for use with Hercules please use the below syntax instead of the above:&lt;br /&gt;
 cd trunk&lt;br /&gt;
 ./configure&lt;br /&gt;
 make sql plugins&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*If you're using Debian 32-bit please use:&lt;br /&gt;
 cd trunk&lt;br /&gt;
 ./configure --disable-64bit&lt;br /&gt;
 make sql plugins&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== How to Recompile =====&lt;br /&gt;
In the future (after you update or edit any file in /src) to recompile, add ''make clean'' before make sql: &lt;br /&gt;
 cd trunk&lt;br /&gt;
 ./configure&lt;br /&gt;
 '''make clean'''&lt;br /&gt;
 make sql plugins&lt;br /&gt;
&lt;br /&gt;
== Start your Hercules Server ==&lt;br /&gt;
 //change access mode of athena-start file so that you can execute it.&lt;br /&gt;
 //Use (dos2unix athena-start) if yo uare getting ^M errors ie. newline errors &lt;br /&gt;
 chmod a+x athena-start&lt;br /&gt;
&lt;br /&gt;
 //To Start&lt;br /&gt;
 ./athena-start start&lt;br /&gt;
 //To Stop&lt;br /&gt;
 ./athena-start stop&lt;br /&gt;
 //To Restart&lt;br /&gt;
 ./athena-start restart&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation Guides|Debian Linux]]&lt;/div&gt;</summary>
		<author><name>LordOdin</name></author>	</entry>

	</feed>