(For Newbie)Rathena Server build 2018 ubuntu 14 x64

Results 1 to 1 of 1
  1. #1
    Member Kenai Fox Demon is offline
    Feb 2013 Join Date

    thumbs up (For Newbie)Rathena Server build 2018 ubuntu 14 x64

    Note: You need PortFoward for Online to make mysql can connection to database
    Text editor (Sublime or Notepad++ recommended)
    apache2 - If you're planning to use phpMyAdmin for remote mysql access and setting up your website.
    php5 - For web and phpMyAdmin.
    phpmyadmin - Remote MySQL access using a web browser.
    mysql-server - our database for the game server.
    First you need create non-root user
    adduser username
    Set password prompts:Enter new UNIX password:
    Retype new UNIX password:
    passwd: password updated successfully
    User information prompts:Changing the user information for username
    Enter the new value, or press ENTER for the default
        Full Name []:
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
    Is the information correct? [Y/n]
    Use the usermod command to add the user to the sudo group
    usermod -aG sudo username
    sudo ls -la /username
    Login as new user use this command
    sudo apt-get install php phpmyadmin mysql-server mysql-client git make gcc libmysqlclient-dev zlib1g-dev libpcre3-dev sudo apt-get update
    sudo apt-get install build-essential software-properties-common -y && \
    sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
    sudo apt-get update && \
    sudo apt-get install gcc-snapshot -y && \
    sudo apt-get update && \
    sudo apt-get install gcc-5 g++-5 -y && \
    Download Rathena files
    git clone https://github.com/rathena/rathena.git ~/rAthena
    cd rAthena
    git pull
    MySQL setupservice mysql status
    service mysql start ( If mysql not running )
    (Login into mysql)
    mysql -u root -p
    CREATE DATABASE ragnarok;
    GRANT ALL ON ragnarok.* TO username@localhost IDENTIFIED BY "YouPassword";
    mysql -u username -pYouPassword ragnarok  < /path/to/your/rathena folder/sql-files/main.sql
    mysql -u username -pYouPassword ragnarok < /path/to/your/rathena folder/sql-files/logs.sql

    Ok now we must login into phpmyadmin
    open browser ( YouIP/phpmyadmin ) if you can't access google it

    Select the ragnarok database and choose the login table. We can see that there's one record in that table. Do not delete/modify it yet. It is used by the server. To create a game account, click the SQL tab while on the login table to open the insert. Run the following
    account_id = 2000000 (Always start with 2000000, then 2000001...)
    userid = admin (Your in-game username)
    user_pass = password123 (The password for your account)
    sex = M (M or F, do not use S because its just for the server)
    email = email@email.com (Your account's email, used for deleting character slots in-game)
    group_id = 99 (refer to /rathena/conf/groups.conf and check the id lines. As for now, 99 to make this a GM account for special command usage ingame.)
    character_slots = 9 (Number of characters that can be created per account)
    Configuring the server files
    Edit char_athena.conf and map_athena.conf with your preferred text editor.
    Edit char_athena.conf from

        // Login Server IP
        // The character server connects to the login server using this IP address.
        // NOTE: This is useful when you are running behind a firewall or are on
        // a machine with multiple interfaces.
        login_ip: YouIP
        // The character server listens on the interface with this IP address.
        // NOTE: This allows you to run multiple servers on multiple interfaces
        // while using the same ports for each server.
        // Login Server Port
        login_port: 6900
        // Character Server IP
        // The IP address which clients will use to connect.
        // Set this to what your server's public IP address is.
        char_ip: YouIP

    In the inter_athena.txt file, make these changes all you info database and password
    Compiling rAthena server

    Choice you client at

    Login Filezilla or wincp go to rAthena/scr/config/packet.h change it.
    #ifndef PACKETVER    /// Do NOT edit this line! To set your client version, please do this  instead:    
    /// In Windows: Add this line in your src\custom\defines_pre.h file: 
    #define PACKETVER YYYYMMDD    
    /// In Linux: The same as above or run the following command: ./configure --enable-packetver=YYYYMMDD    
    #define PACKETVER 20171204
    ./configure --enable-packetver=YYYYMMDD
    ./configure --enable-packetver=20171204
    make server
    ( if you want to recompile back use this command below)./configure --enable-debug=gdb && make clean server

    Starting the server

    after you done compile file server use this command
    ./athena-start start
    ./athena-start stop
    ./athena-start restart

    After you done and server running perfect , you need diff you own Ragexe change ip at clientinfo in grf data
    patch find it at google (
    ROenglishRE-master )

    Last edited by Kenai Fox Demon; 22-01-18 at 05:20 AM.
    The guy who want to learn about new and the man have F result in class
    #9256 Lord Sauron Discord