Jump to content

Search the Community

Showing results for 'ubuntu'.

  • Search By Author

Content Type


Forums

  • Announcements
    • Rules & Guidelines
    • Community News
    • Development News
    • Ragnarok News
    • Community Crowdfunding
  • Support & Releases
    • General
    • Scripting
    • Database
    • Source
    • Graphic Enhancements
    • Web
    • Client-side
    • Third Party
    • Projects
  • Discussion & Suggestions
    • Database Discussion
    • Script Discussion
    • Source Discussion
    • Renewal Discussion
    • Archives
  • Community
    • rAthena General
    • Arts & Writings
    • Off Topic
  • International Forums
    • Filipino Support
    • German Support
    • Indonesian/Malaysian Support
    • Portuguese Support
    • Russian Support (Русский)
    • Spanish Support

Categories

  • Server Resources
    • Server Managers/Editors
    • Scripts
    • Source Modifications
  • Web Resources
    • General Website Templates
    • Forum Templates
    • FluxCP Themes
    • FluxCP Addons
    • Other Web/CP Scripts
  • Graphics Resources
    • Sprites & Palettes
    • Maps & 3D Resources
    • Other Graphics
  • Client Resources
    • GRF Files
    • Client Tools
    • Spriting & Paletting Tools
    • Texture & Mapping Tools
    • Editors
    • Patchers

Categories

  • Low Rate
  • Mid Rate
  • High Rate
  • Super High Rate

Categories

  • Records Test
  • Complete Installation Guides
  • Client Guides
    • Data Folder
  • MySQL Guides
  • Database Guides
  • Map Guides

Categories

  • rAthena Forums
  • rAthena Development
  • FluxCP Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location


Server


Github


Discord


Interests


Website URL


Yahoo


Skype

  1. well.. no wonder i'm not encounter this issue on my server as i'm using Ubuntu 14.04.5 64-bit.. i think if this issue is genuine & pure, u should report it at rAthena github repository...
  2. Yes, i know that, im using g++...thats not the problem More information: This issue is a 32 bit system related. I tested on a 64 bit and 32 system (Ubuntu 16.04), but only on 32 bit the error appears.
  3. since u are using ubuntu, this might help u
  4. After I have updated the emulator and the database, I proceed to compile and get the following errors, after using the make server command: script.c: In function ‘script_getitem_randomoption’: script.c:6730:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] it->option[i].id = (short)__64BPRTSIZE(get_val2(st,reference_uid(opt_id_id,opt_id_idx+i),opt_id_ref)); ^ script.c:6732:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] it->option[i].value = (short)__64BPRTSIZE(get_val2(st,reference_uid(opt_val_id,opt_val_idx+i),opt_val_ref)); ^ script.c:6734:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] it->option[i].param = (char)__64BPRTSIZE(get_val2(st,reference_uid(opt_param_id,opt_param_idx+i),opt_param_ref)); I compiled using the following command line: ./configure --enable-packetver=20150513 --disable-64bit make clean make server I installed g ++, solved conflicts after update... Ubuntu 16.04 lts 32 bits Renewal Please help :c Regards!
  5. yeah.. it is possible.. below is the idea (based on my experience on ubuntu) 1st. u need to setup apache web server 2nd. in that apache web server, u can create virtual host server. 3rd. configure Document Root & Port for inside the virtual host server (Thor's Web folder should be place inside var/www directory while port u cannot use port 80 anymore if u already use port 80 for Flux Control Panel) this is just rough idea. based in ubuntu. but, i guess most likely the same concept to be applied in centos..
  6. I have the same error. I updated the emulator and the database, but while compiling the script.c gives me errors. I used the command that you provided but no effects... CC script.c script.c: In function ‘script_getitem_randomoption’: script.c:6730:22: warning: cast from pointer to integer of different size [-Wpoi nter-to-int-cast] it->option[i].id = (short)__64BPRTSIZE(get_val2(st,reference_uid(opt_id_id,op ^ script.c:6732:25: warning: cast from pointer to integer of different size [-Wpoi nter-to-int-cast] it->option[i].value = (short)__64BPRTSIZE(get_val2(st,reference_uid(opt_val_i ^ script.c:6734:25: warning: cast from pointer to integer of different size [-Wpoi nter-to-int-cast] it->option[i].param = (char)__64BPRTSIZE(get_val2(st,reference_uid(opt_param_ Im using ubuntu server 16.04, 32 bits.. Please help regards
  7. As of Git Hash: 4a004ad, we have added several checks on C++ compiler on your system so that the transition to C++ phase go smoothly. What does this mean to you? You have to install g++ on your system if you don't have it installed on your system. To do so, you can run the following command CentOS sudo yum install gcc-c++ Debian/Ubuntu sudo apt-get install g++ For OSX you can use your clang/llvm toolchain to compile rAthena. After that, make sure you have GCC version 5 or higher by using command below. gcc --version
  8. Hi guys, Ive been trying to add this to the end of script.c at line 23440 int viewpointmap_sub(struct block_list *bl, va_list ap) { struct map_session_data *sd; int npc_id, type, x, y, id, color; npc_id = va_arg(ap, int); type = va_arg(ap, int); x = va_arg(ap, int); y = va_arg(ap, int); id = va_arg(ap, int); color = va_arg(ap, int); sd = (struct map_session_data *)bl; clif_viewpoint(sd, npc_id, type, x, y, id, color); return 0; } BUILDIN_FUNC(viewpointmap) { int type, x, y, id, color, m; const char *map_name; map_name = script_getstr(st, 2); if ((m = map_mapname2mapid(map_name)) < 0) return true; // Invalid Map type = script_getnum(st, 3); x = script_getnum(st, 4); y = script_getnum(st, 5); id = script_getnum(st, 6); color = script_getnum(st, 7); map_foreachinmap(viewpointmap_sub, m, BL_PC, st->oid, type, x, y, id, color); return true; } // Add this to the list of script commands defined, look through the code, should be self explanitory. BUILDIN_DEF(viewpointmap,"siiiii"), but i receive this error script.c:23441:2: error: expected expression before ‘int’ int viewpointmap_sub(struct block_list *bl, va_list ap) { ^ Makefile:76: recipe for target 'obj/script.o' failed make[1]: *** [obj/script.o] Error 1 make[1]: Leaving directory '/home/rob/rathena/src/map' Makefile:51: recipe for target 'map' failed make: *** [map] Error 2 the file i got the code from ask me to add the code anywhere in between BUILDING_FUNC's i believe i have done that but obviously i haven't as it is giving errors out while compiling on Ubuntu server Any help will be appreciated Kind regards
  9. Ow sorry I didn't see about 7zip on CentOS wget https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/x86_64/p7zip-16.02-1.el6.x86_64.rpm sudo rpm -U --quiet p7zip-16.02-1.el6.x86_64.rpm The guide is actually for Debian / Ubuntu systems, well if you manage to get it working on CentOS, It would be awesome!
  10. What's your OS? Debian, Centos, Ubuntu...?
  11. Hello I managed to compile and to run a server on Raspberry Pi 3! Now me and all my friends can connect to my Raspberry Pi to play on my server. Feels so awesome to be a GM again! I've also wrote a guide on how to install it on a Raspberry Pi. Even though it says Raspberry Pi, this guide will work on any Debian / Ubuntu system. If you have any questions feel free to ask, I will gladly answer them!
  12. it was the ubuntu 17.04 x64, i think i have the same problem with ./configure also giving me permission denied. Hmm. What do you mean about custom shops? You mean npcs? I notice when I first ./athena-start start the console stops at some point.. like in "Loading NPC file: ??", I have to reboot it to see the rest. But I don't have custom npc's. So I doubt that was the case.
  13. What ubuntu version u r using previously which having configure issue anyway?
  14. Yeah, I think it compiled perfectly. I actually rebuild 7x with centos and tried ubuntu and debian once ... I kinda having the same problem when it comes to compile I might try it again if the problem persists ..
  15. well.. i'm host running rathena on digital ocean too... but never had come with this configure permission issue.. even no need to set the permission.. anyway i'm running on ubuntu... but, i don't this causing the issue..
  16. I have a problem with the hp. When I die it does at 5%, then, when I die, the HP returns to 50%. It only happens when I'm a novice. In other jobs I die when I have 1 hp, but it marks 0% I have searched for information but I do not find anything, I have reinstalled from 0 the emulator and the sql server, but nothing. I've even reinstalled Ubuntu (16.04 lts - 32 bit). It's strange because 2 months ago I used the same client and I had no problems, but I reinstalled the emulator and I got this problem. I have these errors in the console, but I do not know if it is related to this [Warning]: itemdb_read_group: Non-existant item '19031' [Error]: sv_readdb: Could not process contents of line 3566 of "db/re/item_package.txt". [Warning]: itemdb_read_group: Non-existant item '18813' [Error]: sv_readdb: Could not process contents of line 3929 of "db/re/item_package.txt". thanks for everything
  17. no need folder, just paste whole file inside html, im pretty sure youre not check your apache server is running fine or not first https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04
  18. How to "Clean" my emulator ? Congrats for the post, i should trying forever without this information. Since now Thank you Edited: "Make Clean" is the awnser but still having the error... already tryeed all of https://k3dt.eu/Ragexe/unpacked/ with nemo, xdiffv2 etc... becoming boredd and pissed =/ By "Disable Packet Encryption in the xDiffPatcher" i got another packet error with same client... Already tryed Hercules Judas pack and nothing... its like 3 entires nights, like a 10000 virus, 10000 rebuilds, 4 ro folders with kro and bro and i can't log in... Any good place to find more ragexe ? It's a server problem ? Ech new try i do in ubuntu: ./configure --enable-packetver=20130807 make clean make server chmod a+x login-server && chmod a+x char-server && chmod a+x map-server ./athena-start start Change the <version> in clientinfo.xml <?xml version="1.0" encoding="euc-kr" ?> <clientinfo> <servicetype>korea</servicetype> <servertype>primary</servertype> <connection> <display>Test</display> <desc>As DESCRIPTION</desc> <address>192.168.155.128</address> <port>6900</port> <version>45</version> <langtype>12</langtype> <registrationweb></registrationweb> <aid> <admin></admin> </aid> </connection> </clientinfo> and diff the ragexe with recomended features and after select my char it still: [Info]: clif_parse: Disconnecting session #8 with unknown packet version (p:0x0XXX,l:19). [Info]: Closed connection from '192.168.155.1'. and with some ragexes: [Info]: clif_parse: Disconnecting session #8 with unknown packet version (p:0xXXXX,l:19). [Info]: Closed connection from '192.168.155.1'. Am I missing something ?
  19. can anyone help? I'm having issue on compiling sudo make server chmod a+x login-server && chmod a+x char-server && chmod a+x map-server I keep getting this error make[1]: Leaving directory '/home/skeith/Ragnarok/rAthena/src/map' building conf/import, conf/msg_conf/import and db/import folder... make: *** No rule to make target 'chmod'. Stop. OS is Ubuntu 16.04 LTS 64-bit
  20. Захотелось мне значит перевести некоторых НПС на русский язык: может быть и квесты. У меня Ubuntu сервер. Открыл нужный файл на убунту сервере, поменял английские предложения на русские, захожу в игру, а там НПС выдает текст кракозябрами.. clientinfo langtype 14 inter_athena - кодировка стоит cp1251 В чем проблема? Помогите плиз.
  21. As what i understand Linux is the type of OS. And there are many kinds of OS under the Linux Which are CentOS,Debian,Ubuntu and many more.. Most of the user nowadays use Debian 8 (Jessie) Please correct me if im wrong. It was the hosting company who told me to use CentOS was bad to host the server, which should be used pure linux. Tell that to all the "impure" Linux users which is the majority of the world
  22. As what i understand Linux is the type of OS. And there are many kinds of OS under the Linux Which are CentOS,Debian,Ubuntu and many more.. Most of the user nowadays use Debian 8 (Jessie) Please correct me if im wrong. It was the hosting company who told me to use CentOS was bad to host the server, which should be used pure linux.
  23. As what i understand Linux is the type of OS. And there are many kinds of OS under the Linux Which are CentOS,Debian,Ubuntu and many more.. Most of the user nowadays use Debian 8 (Jessie) Please correct me if im wrong.
  24. dear mod please move this to the propper section, I wasn't sure where to post this... Note: I tested this on ubuntu server! no idea what wil happen on other linux server. so after having to change a few lines in athena-start I made a script that will install athena-start as a service called rathena currently it only does start, stop and status and it does so very poorly cause I'm a real noob but I will update this post as I improve my skills. I will add watch and the other proper functionalities soon(ish): edited athena-start #!/bin/sh L_SRV=login-server C_SRV=char-server M_SRV=map-server INST_PATH=/opt PKG=rathena PKG_PATH=$INST_PATH/$PKG PATH=./:$PATH LOG_DIR="./log" DIR=`dirname $0` check_files() { for i in ${L_SRV} ${C_SRV} ${M_SRV} do echo "" if [ ! -f $DIR/$i ]; then echo "$i does not exist in $DIR... exiting..." exit 1; fi done } check_inst_right(){ if [ ! -w $INST_PATH ]; then echo "You must have sudo right to use this install (write/read permission in /opt/ )" && exit; fi } inst_launch_workaround(){ if [ -d $PKG_PATH ]; then if [ $(pwd) != $PKG_PATH ]; then cd $PKG_PATH; fi fi } inst_launch_workaround print_start() { # more << EOF echo "Athena Starting..." echo " (c) 2013 rAthena Project" echo "" echo "" echo "checking..." #EOF } get_status(){ PIDFILE=.$1.pid if [ -e ${PIDFILE} ]; then ISRUN=$(ps ax | grep $(cat ${PIDFILE}) | grep $1) PSRUN=$(echo "$ISRUN" | awk '{ print $1 }') fi #return ${PSRUN} #seem to cause issue for some os } #cheking if already started, launch and mark in log start_serv(){ get_status $1 if [ $2 ]; then #is logging on ? LOGFILE="$LOG_DIR/$1.launch.log" LOGRUN="$LOG_DIR/$1.log" FIFO="$1_fifo" echo "stat_serv, log is enabled" echo "My logfile=${LOGFILE}" if [ -z ${PSRUN} ]; then if [ -e .{FIFO} ]; then rm "$FIFO"; fi mkfifo "$FIFO"; tee "$LOGRUN" < "$FIFO" & "./$1" > "$FIFO" 2>&1 & PID=$! #"./$1" > >(tee "$LOGRUN") 2>&1 & PID=$! #bash only echo "$PID" > .$1.pid echo "Server '$1' started at `date +"%m-%d-%H:%M-%S"`" | tee ${LOGFILE} else echo "Can't start '$1', cause is already running p${PSRUN}" | tee ${LOGFILE} fi else if [ -z ${PSRUN} ]; then $DIR/$1& echo "$!" > .$1.pid echo "Server '$1' started at `date +"%m-%d-%H:%M-%S"`" else echo "Can't start '$1', cause is already running p${PSRUN}" fi fi } watch_serv(){ ulimit -Sc unlimited #now checking status and looping count=0; while true; do for i in ${L_SRV} ${C_SRV} ${M_SRV} do LOGFILE="$LOG_DIR/$i.launch.log" LOGRUN="$LOG_DIR/$i.log" FIFO=$i"_fifo" get_status $i #echo "Echo id of $i is ${PSRUN}" if [ -z ${PSRUN} ]; then count=$((count+1)) #echo "fifo=$FIFO" echo "server '$i' is down" echo "server '$i' is down" >> ${LOGFILE} echo "restarting server at time at `date +"%m-%d-%H:%M-%S"`" echo "restarting server at time at `date +"%m-%d-%H:%M-%S"`" >> ${LOGFILE} if [ -e $FIFO ]; then rm $FIFO; fi mkfifo "$FIFO"; tee "$LOGRUN" < "$FIFO" & "./$i" > "$FIFO" 2>&1 & PID=$! echo "$PID" > .$i.pid if [ $2 ] && [ $2 -lt $count ]; then break; fi fi done sleep $1 done } restart(){ $0 stop if [ $1 ]; then sleep $1; fi for i in ${L_SRV} ${C_SRV} ${M_SRV} do FIFO="$1_fifo" while true; do get_status ${i} if [ ${PSRUN} ]; then echo "'${i}' is still running p${PSRUN} waiting end"; sleep 2; else if [ -e .{FIFO} ]; then rm "$FIFO"; fi break fi done done $0 start } case $1 in 'start') print_start check_files echo "Check complete." echo "Looks good, a nice Athena!" if [ "$2" = "--enlog" ]; then ENLOG=1 if [ ! -d "$LOG_DIR" ]; then mkdir -p $LOG_DIR; fi echo "Logging is enable in $LOG_DIR" else echo "Logging is disable" fi for i in ${L_SRV} ${C_SRV} ${M_SRV} do start_serv $i $ENLOG done echo "Now Started Athena." ;; 'watch') if [ ! -d "$LOG_DIR" ]; then mkdir -p $LOG_DIR; fi if [ -z $2 ]; then Restart_count=10; else Restart_count=$2; fi if [ -z $3 ]; then Restart_sleep=3; else Restart_sleep=$3; fi echo " Gonna watch rA for Restart_count = $Restart_count, Restart_sleep= $Restart_sleep" for i in ${L_SRV} ${C_SRV} ${M_SRV} do start_serv $i 1 done watch_serv $Restart_count $Restart_sleep echo "Now watching Athena." ;; 'stop') for i in ${L_SRV} ${C_SRV} ${M_SRV} do PIDFILE=.${i}.pid if [ -e .{PIDFILE} ]; then kill $(cat ${PIDFILE}) rm ${PIDFILE} fi done ;; 'restart') restart ;; 'status') for i in ${L_SRV} ${C_SRV} ${M_SRV} do get_status ${i} if [ ${PSRUN} ]; then echo "'${i}' is running p${PSRUN}"; else echo "'${i}' seem down"; fi done ;; 'val_runonce') for i in ${L_SRV} ${C_SRV} ${M_SRV} do valgrind --leak-check=full --show-leak-kinds=all ./$i --run-once > "log/$i.runonce.leak" done ;; 'valchk') for i in ${L_SRV} ${C_SRV} ${M_SRV} do valgrind --leak-check=full --show-leak-kinds=all ./$i > "log/$i.runonce.leak" done ;; 'help') case $2 in 'start') echo "syntax: 'start {--enlog}'" echo "This option will starts the servs" echo "--enlog will tee all terminal output into a log/$servname.log file" ;; 'stop') echo "This option will shutdowns the servs'" ;; 'restart') echo "syntax: 'restart {<delay>}'" echo "This option will wait delay then will attempt to restart the servs" echo "NB, even if delay is over it will wait the pid is finished before atetmpting to restart servs" ;; 'status') echo "syntax: 'watch {<restart_intervall> <restart_count>}'" echo "This option let you know if the server are running or not" echo "NB this option is based on PID and supposed you have launch the serv by this script" echo " If it wasn't the case please use something like 'ps ax | grep server' to know their status" ;; 'watch') echo "syntax: 'watch {<restart_intervall> <restart_count>}'" echo "The watch option allow you to auto restart the server when this one was stopped" echo "<restart_intervall> delay in second before recheking if server are down (default 10) " echo "<restart_count> how many time should we restart servs (default 3), (-1=undefinitly)" ;; 'val_runonce') echo "syntax: 'val_runonce'" echo "This option will run valgrin with run-once to check the serv" ;; 'valchk') echo "syntax: 'valchk'" echo "This option will run valgrin with the serv" ;; *) echo "Please specify a command you'll like more info { start | stop | restart | status | watch }" read -p "Enter a valid command: " readEnterKey $0 "help" $readEnterKey ;; esac ;; *) echo "Usage: athena-start { start | stop | restart | status | watch | help | val_runonce | valchk }" read -p "Enter a valid option: " readEnterKey $0 $readEnterKey ;; esac and the init bash script file: you have to change the initial variables to your own settings and then it should be ready to go #!/bin/sh - ### BEGIN INIT INFO # Provides: rathena_server # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: rathena server # Description: Startup Init-Script for rathena server ### END INIT INFO # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="rAthena service" NAME=rathena #change the user USER=root BINARY=rathena #change path of the script file BINARY_BIN=/root/rathena #change name of the script file DAEMON=./athena-start PIDFILE=$BINARY_BIN/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed [ -x "$BINARY_BIN/$DAEMON" ] || exit 0 # Define LSB log_* functions. # Depend on lsb-base (>= 3.2-14) to ensure that this file is present # and status_of_proc is working. . /lib/lsb/init-functions # # Function that starts the daemon/service # do_start() { su $USER -s /bin/sh -c "$BINARY_BIN/$DAEMON start" } # # Function that stops the daemon/service # do_stop() { su $USER -s /bin/sh -c "$BINARY_BIN/$DAEMON stop" } # # Function that shows the status of to the daemon/service # do_status() { su $USER -s /bin/sh -c "$BINARY_BIN/$DAEMON status" } case "$1" in start) log_daemon_msg "Starting $DESC" "" do_start case "$?" in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; stop) log_daemon_msg "Stopping $DESC" "" do_stop case "$?" in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; status) do_status status_of_proc "$BINARY" "$DESC" && exit 0 || exit $? ;; restart) log_daemon_msg "Restarting $DESC" "" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) echo "Usage: $SCRIPTNAME {start|stop|status|restart}" exit 3 ;; esac : if you have no idea of this stuff you should first look up what an init-script or init-bash is or you wil have trouble installing and working with this.
×
×
  • Create New...