<?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/index.php?action=history&amp;feed=atom&amp;title=Talk%3AInstallation_%28CentOS%29</id>
		<title>Talk:Installation (CentOS) - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=Talk%3AInstallation_%28CentOS%29"/>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Talk:Installation_(CentOS)&amp;action=history"/>
		<updated>2026-05-01T11:59:47Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.11</generator>

	<entry>
		<id>https://wiki.herc.ws/w/index.php?title=Talk:Installation_(CentOS)&amp;diff=887&amp;oldid=prev</id>
		<title>Dastgirpojee: /* Git Clone */</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Talk:Installation_(CentOS)&amp;diff=887&amp;oldid=prev"/>
				<updated>2014-02-18T04:18:05Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Git Clone&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 04:18, 18 February 2014&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 65:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 65:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Git Clone ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Git Clone ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{{&lt;/del&gt;:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Git Clone}}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Execute the following command, and it will download Hercules Repository into hercules folder&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; git clone git&lt;/ins&gt;:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;//github.com/HerculesWS/Hercules.git hercules&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== [http://dev.mysql.com/doc/refman/5.5/en/batch-commands.html Import] MySQL Tables ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== [http://dev.mysql.com/doc/refman/5.5/en/batch-commands.html Import] MySQL Tables ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dastgirpojee</name></author>	</entry>

	<entry>
		<id>https://wiki.herc.ws/w/index.php?title=Talk:Installation_(CentOS)&amp;diff=619&amp;oldid=prev</id>
		<title>Dastgirpojee: Created page with &quot;This guide covers how to install Hercules on CentOS and other versions of Linux that use [[wikiped...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Talk:Installation_(CentOS)&amp;diff=619&amp;oldid=prev"/>
				<updated>2013-09-28T05:47:47Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;This guide covers how to install &lt;a href=&quot;/wiki/Hercules&quot; title=&quot;Hercules&quot;&gt;Hercules&lt;/a&gt; on &lt;a href=&quot;http://en.wikipedia.org/wiki/CentOS&quot; class=&quot;extiw&quot; title=&quot;wikipedia:CentOS&quot;&gt;CentOS&lt;/a&gt; and other &lt;a href=&quot;http://en.wikipedia.org/wiki/List_of_Linux_distributions#RPM-based&quot; class=&quot;extiw&quot; title=&quot;wikipedia:List of Linux distributions&quot;&gt;versions of Linux&lt;/a&gt; that use [[wikiped...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This guide covers how to install [[Hercules]] on [[wikipedia:CentOS|CentOS]] and other [[wikipedia:List_of_Linux_distributions#RPM-based|versions of Linux]] that use [[wikipedia:Yellowdog_Updater,_Modified|yum]].&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
* [[wikipedia:CentOS|CentOS]] or an [[wikipedia:List_of_Linux_distributions#RPM-based|RPM-based Linux]] that has the '''[[wikipedia:Yellowdog_Updater,_Modified|yum]]''' 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;
# Type the following command (this will install GCC, Make, MySQL, MySQL header files, MySQL Server, PCRE header files, Subversion, and Zlib header files) &lt;br /&gt;
#: &amp;lt;pre&amp;gt;yum install gcc make mysql mysql-devel mysql-server pcre-devel git zlib-devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
# (Optional) type the following command to install some additional packages: &lt;br /&gt;
#: &amp;lt;pre&amp;gt;yum -y install dos2unix gdb nano screen unzip wget zip&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 Herculesas root. &lt;br /&gt;
# Type the following command to create a non-root Linux account:&lt;br /&gt;
#: &amp;lt;pre&amp;gt;useradd --create-home --shell /bin/bash hercules1234&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;code&amp;gt;--create-home&amp;lt;/code&amp;gt; = create the user's home directory&lt;br /&gt;
#: &amp;lt;code&amp;gt;--shell&amp;lt;/code&amp;gt; = sets their login shell to [[wikipedia:Bash_(Unix_shell)|Bash]]&lt;br /&gt;
#: '''&amp;lt;code&amp;gt;hercules1234&amp;lt;/code&amp;gt;''' = the login name of the new Linux account&lt;br /&gt;
#: ''&amp;lt;code&amp;gt;1234&amp;lt;/code&amp;gt;'' = pick your own random numbers to make the username more unique&lt;br /&gt;
# Set a password for the new user (run this command and follow the prompts):&lt;br /&gt;
#: &amp;lt;pre&amp;gt;passwd hercules1234&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure MySQL ===&lt;br /&gt;
&lt;br /&gt;
==== Set a root password ====&lt;br /&gt;
The default MySQL Server install creates a MySQL user 'root'@'localhost' with NO password. It is recommended you create a password for the root user. &lt;br /&gt;
# Run this command and follow the prompts: &lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql_secure_installation&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Login to your MySQL Server as root: &lt;br /&gt;
#: ''When prompted, enter your root MySQL password.''&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql --user=root -p&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Now your prompt should look like this (the MySQL command prompt): &lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql&amp;gt; &amp;lt;/pre&amp;gt;&lt;br /&gt;
#: ''In case your mysql server isn't started, you may have to start it with:''&lt;br /&gt;
#: &amp;lt;pre&amp;gt;/etc/init.d/mysqld start &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Create SQL database for Hercules====&lt;br /&gt;
# At the MySQL prompt, type this to [http://dev.mysql.com/doc/refman/5.5/en/create-database.html create a database] (replace &amp;lt;code&amp;gt;hercules1234&amp;lt;/code&amp;gt; with the Linux username you created earlier): &lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql&amp;gt; CREATE DATABASE hercules1234_rag;&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Create a separate database for logs: &lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql&amp;gt; CREATE DATABASE hercules1234_log;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Setup a MySQL user for Hercules ====&lt;br /&gt;
# At the MySQL prompt, type something like this to create a new MySQL user: &lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql&amp;gt; CREATE USER 'hercules1234'@'localhost' IDENTIFIED BY 'secretpassword';&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;code&amp;gt;hercules1234&amp;lt;/code&amp;gt; = the name of the MySQL user (we named it the same as the Linux user to make it easier to identify)&lt;br /&gt;
#: &amp;lt;code&amp;gt;localhost&amp;lt;/code&amp;gt; = the hostname or IP it will connect from&lt;br /&gt;
#: '''&amp;lt;code&amp;gt;secretpassword&amp;lt;/code&amp;gt;''' = the password for this MySQL user&lt;br /&gt;
# [http://dev.mysql.com/doc/refman/5.5/en/grant.html Grant privileges] to the 'Hercules' MySQL user:&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql&amp;gt; GRANT SELECT,INSERT,UPDATE,DELETE ON `hercules1234\_rag`.* TO 'hercules1234'@'localhost';&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql&amp;gt; GRANT SELECT,INSERT ON `hercules1234\_log`.* TO 'hercules1234'@'localhost';&amp;lt;/pre&amp;gt; (note the [http://dev.mysql.com/doc/refman/5.5/en/string-literals.html#character-escape-sequences escaped underscore])&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 hercules1234(the Linux user you created in step 2.2)&lt;br /&gt;
# Logout from root SSH (or minimize the window).&lt;br /&gt;
# Login to your server via SSH as the hercules1234Linux user.&lt;br /&gt;
&lt;br /&gt;
=== Git Clone ===&lt;br /&gt;
{{:Git Clone}}&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 trunk/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 hercules1234_rag &amp;lt; main.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercules1234_rag &amp;lt; item_db.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercules1234_rag &amp;lt; item_db2.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercules1234_rag &amp;lt; mob_db.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercules1234_rag &amp;lt; mob_db2.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercules1234_rag &amp;lt; mob_skill_db.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercules1234_rag &amp;lt; mob_skill_db2.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercules1234_log &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 hercules1234_log &amp;lt; item_db_re.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercules1234_log &amp;lt; item_db2_re.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercules1234_log &amp;lt; mob_db_re.sql&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: &amp;lt;pre&amp;gt;mysql -u root -prootpassword hercules1234_log &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&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're using CentOS 32-bit please use:&lt;br /&gt;
 ./configure --disable-64bit&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&lt;br /&gt;
&lt;br /&gt;
== Start your HerculesServer ==&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|CentOS]]&lt;/div&gt;</summary>
		<author><name>Dastgirpojee</name></author>	</entry>

	</feed>