batch_server_setup.txt

Max_De_Groot, 09/02/2012 01:55 pm

Download (3.9 kB)

 
1
# stop existing services
2
# clear ryzom tables from MySQL database
3
# delete complete ryzom folder
4

5
# Get clean code from repository
6
hg clone http://ryzom.hg.sourceforge.net:8000/hgroot/ryzom/ryzom
7

8
# copy files, edited (from clean source) for my server
9
# visual_slot.tab same as client
10
# .sql/.php/.cfg files edited for server address
11
# primitives.cfg for exclusion urban_newbieland.primitive (for ios chaincrash problem...)
12
export RYZOM_PATH="/home/angel/ryzom/ryzom/code/ryzom"
13
cp ~/ryzomfiles/visual_slot.tab ~/ryzom/ryzom/code/ryzom/common/data_common/visual_slot.tab
14
cp ~/ryzomfiles/frontend_service.cfg $RYZOM_PATH/server/frontend_service.cfg
15
cp ~/ryzomfiles/config.php $RYZOM_PATH/tools/server/admin/config.php
16
cp ~/ryzomfiles/ryzom_admin_default_data.sql $RYZOM_PATH/tools/server/sql/ryzom_admin_default_data.sql
17
cp ~/ryzomfiles/ryzom_default_data.sql $RYZOM_PATH/tools/server/sql/ryzom_default_data.sql
18
cp ~/ryzomfiles/ryzom_tables.sql $RYZOM_PATH/tools/server/sql/ryzom_tables.sql
19
cp ~/ryzomfiles/primitives.cfg $RYZOM_PATH/common/data_leveldesign/primitives/primitives.cfg
20

21
#build core server from code
22
export RYHOME="/home/angel/ryzom/ryzom/code"
23
mkdir $RYHOME/build
24
cd $RYHOME/build
25
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 ..
26
make -j3
27

28
# copy built services to working directory
29
cd /home/angel/ryzom/ryzom/code
30
cp ./build/bin/ryzom_admin_service $RYZOM_PATH/server/src/ryzom_admin_service/ryzom_admin_service
31
cp ./build/bin/ryzom_ai_service $RYZOM_PATH/server/src/ai_service/ai_service
32
cp ./build/bin/ryzom_backup_service $RYZOM_PATH/server/src/backup_service/backup_service
33
cp ./build/bin/ryzom_dynamic_scenario_service $RYZOM_PATH/server/src/dynamic_scenario_service/dynamic_scenario_service
34
cp ./build/bin/ryzom_entities_game_service $RYZOM_PATH/server/src/entities_game_service/entities_game_service
35
cp ./build/bin/ryzom_frontend_service $RYZOM_PATH/server/src/frontend_service/frontend_service
36
cp ./build/bin/ryzom_gpm_service $RYZOM_PATH/server/src/gpm_service/gpm_service
37
cp ./build/bin/ryzom_ios_service $RYZOM_PATH/server/src/input_output_service/input_output_service
38
cp ./build/bin/ryzom_log_analyser_service $RYZOM_PATH/server/src/log_analyser_service/log_analyser_service
39
cp ./build/bin/ryzom_logger_service $RYZOM_PATH/server/src/logger_service/logger_service
40
cp ./build/bin/ryzom_mail_forum_service $RYZOM_PATH/server/src/mail_forum_service/mail_forum_service
41
cp ./build/bin/ryzom_mirror_service $RYZOM_PATH/server/src/mirror_service/mirror_service
42
cp ./build/bin/ryzom_naming_service $RYZOM_PATH/server/src/ryzom_naming_service/ryzom_naming_service
43
cp ./build/bin/ryzom_pd_support_service $RYZOM_PATH/server/src/pd_support_service/pd_support_service
44
cp ./build/bin/ryzom_persistant_data_service $RYZOM_PATH/server/src/persistant_data_service/persistant_data_service
45
cp ./build/bin/ryzom_reference_builder_service $RYZOM_PATH/server/src/pd_reference_builder/pd_reference_builder
46
cp ./build/bin/ryzom_session_browser_service $RYZOM_PATH/server/src/session_browser_server/session_browser_server
47
cp ./build/bin/ryzom_shard_unifier_service $RYZOM_PATH/server/src/shard_unifier_service/shard_unifier_service
48
cp ./build/bin/ryzom_tick_service $RYZOM_PATH/server/src/tick_service/tick_service
49
cp ./build/bin/ryzom_welcome_service $RYZOM_PATH/server/src/ryzom_welcome_service/ryzom_welcome_service
50

51

52
# makr rrd_graphs directory and set read/write rights (open up the entire folder to be sure)
53
mkdir $RYZOM_PATH/server/save_shard/rrd_graphs
54
chmod a+rwx -R $RYZOM_PATH
55

56
# populate MySQL database
57
cat $RYZOM_PATH/tools/server/sql/ryzom_admin_default_data.sql | mysql -ushard
58
cat $RYZOM_PATH/tools/server/sql/ryzom_default_data.sql | mysql -ushard
59
cat $RYZOM_PATH/tools/server/sql/ryzom_tables.sql | mysql -ushard
60

61
/etc/init.d/apache2 restart
62

63
# set neltool_domains/domain_as_host in dbase to my server address
64
# start shard