(For Newbie)Rathena Server build 2018 ubuntu 14 x64

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

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


    RaGEZONE Recommends

    RaGEZONE Recommends

    Note: You need PortFoward for Online to make mysql can connection to database
    Requirements
    Code:
    FileZilla
    PuTTY
    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.
    mysql-client
    git
    make
    gcc
    libmysqlclient-dev
    zlib1g-dev
    libpcre3-dev
    libssl-dev
    First you need create non-root user
    Code:
    adduser username
    Code:
    Set password prompts:Enter new UNIX password:
    Retype new UNIX password:
    passwd: password updated successfully
    Code:
    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
    Code:
    usermod -aG sudo username
    Code:
    sudo ls -la /username
    Login as new user use this command
    Code:
    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 && \
    quit;
    Download Rathena files
    Code:
    git clone https://github.com/rathena/rathena.git ~/rAthena
    cd rAthena
    git pull
    Code:
    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";
    quit;
    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
    Code:
    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

    Code:
        // 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.
        //bind_ip: 127.0.0.1
    
        // 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
    https://rathena.org/board/forum/99-client-releases/

    Login Filezilla or wincp go to rAthena/scr/config/packet.h change it.
    Code:
    #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
    #endif
    Code:
    ./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
    Code:
    ./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; 3 Weeks Ago at 06:20 AM.
    The guy who want to learn about new and the man have F result in class
    #9256 Lord Sauron Discord





Advertisement