# stop existing services # clear ryzom tables from MySQL database # delete complete ryzom folder # Get clean code from repository hg clone http://ryzom.hg.sourceforge.net:8000/hgroot/ryzom/ryzom # copy files, edited (from clean source) for my server # visual_slot.tab same as client # .sql/.php/.cfg files edited for server address # primitives.cfg for exclusion urban_newbieland.primitive (for ios chaincrash problem...) export RYZOM_PATH="/home/angel/ryzom/ryzom/code/ryzom" cp ~/ryzomfiles/visual_slot.tab ~/ryzom/ryzom/code/ryzom/common/data_common/visual_slot.tab cp ~/ryzomfiles/frontend_service.cfg $RYZOM_PATH/server/frontend_service.cfg cp ~/ryzomfiles/config.php $RYZOM_PATH/tools/server/admin/config.php cp ~/ryzomfiles/ryzom_admin_default_data.sql $RYZOM_PATH/tools/server/sql/ryzom_admin_default_data.sql cp ~/ryzomfiles/ryzom_default_data.sql $RYZOM_PATH/tools/server/sql/ryzom_default_data.sql cp ~/ryzomfiles/ryzom_tables.sql $RYZOM_PATH/tools/server/sql/ryzom_tables.sql cp ~/ryzomfiles/primitives.cfg $RYZOM_PATH/common/data_leveldesign/primitives/primitives.cfg #build core server from code export RYHOME="/home/angel/ryzom/ryzom/code" mkdir $RYHOME/build cd $RYHOME/build cmake -DWITH_NEL_TESTS=OFF -DWITH_RYZOM_CLIENT=OFF -DWITH_NEL=ON -DWITH_SOUND=OFF -DWITH_STATIC=ON -DWITH_DRIVER_OPENGL=OFF -DWITH_DRIVER_OPENAL=OFF .. make -j3 # copy built services to working directory cd /home/angel/ryzom/ryzom/code cp ./build/bin/ryzom_admin_service $RYZOM_PATH/server/src/ryzom_admin_service/ryzom_admin_service cp ./build/bin/ryzom_ai_service $RYZOM_PATH/server/src/ai_service/ai_service cp ./build/bin/ryzom_backup_service $RYZOM_PATH/server/src/backup_service/backup_service cp ./build/bin/ryzom_dynamic_scenario_service $RYZOM_PATH/server/src/dynamic_scenario_service/dynamic_scenario_service cp ./build/bin/ryzom_entities_game_service $RYZOM_PATH/server/src/entities_game_service/entities_game_service cp ./build/bin/ryzom_frontend_service $RYZOM_PATH/server/src/frontend_service/frontend_service cp ./build/bin/ryzom_gpm_service $RYZOM_PATH/server/src/gpm_service/gpm_service cp ./build/bin/ryzom_ios_service $RYZOM_PATH/server/src/input_output_service/input_output_service cp ./build/bin/ryzom_log_analyser_service $RYZOM_PATH/server/src/log_analyser_service/log_analyser_service cp ./build/bin/ryzom_logger_service $RYZOM_PATH/server/src/logger_service/logger_service cp ./build/bin/ryzom_mail_forum_service $RYZOM_PATH/server/src/mail_forum_service/mail_forum_service cp ./build/bin/ryzom_mirror_service $RYZOM_PATH/server/src/mirror_service/mirror_service cp ./build/bin/ryzom_naming_service $RYZOM_PATH/server/src/ryzom_naming_service/ryzom_naming_service cp ./build/bin/ryzom_pd_support_service $RYZOM_PATH/server/src/pd_support_service/pd_support_service cp ./build/bin/ryzom_persistant_data_service $RYZOM_PATH/server/src/persistant_data_service/persistant_data_service cp ./build/bin/ryzom_reference_builder_service $RYZOM_PATH/server/src/pd_reference_builder/pd_reference_builder cp ./build/bin/ryzom_session_browser_service $RYZOM_PATH/server/src/session_browser_server/session_browser_server cp ./build/bin/ryzom_shard_unifier_service $RYZOM_PATH/server/src/shard_unifier_service/shard_unifier_service cp ./build/bin/ryzom_tick_service $RYZOM_PATH/server/src/tick_service/tick_service cp ./build/bin/ryzom_welcome_service $RYZOM_PATH/server/src/ryzom_welcome_service/ryzom_welcome_service # makr rrd_graphs directory and set read/write rights (open up the entire folder to be sure) mkdir $RYZOM_PATH/server/save_shard/rrd_graphs chmod a+rwx -R $RYZOM_PATH # populate MySQL database cat $RYZOM_PATH/tools/server/sql/ryzom_admin_default_data.sql | mysql -ushard cat $RYZOM_PATH/tools/server/sql/ryzom_default_data.sql | mysql -ushard cat $RYZOM_PATH/tools/server/sql/ryzom_tables.sql | mysql -ushard /etc/init.d/apache2 restart # set neltool_domains/domain_as_host in dbase to my server address # start shard