VMUbuntuCoreServer
Version 37 (molator, 07/21/2011 05:22 pm)
1 | 10 | molator | h1. Ryzom Core Server on Ubuntu Virtual Machine |
---|---|---|---|
2 | 1 | molator | |
3 | 30 | molator | {{toc}} |
4 | 7 | molator | |
5 | 1 | molator | h2. What you need |
6 | 1 | molator | |
7 | 4 | molator | h3. Ubuntu basic knowledge |
8 | 4 | molator | |
9 | 4 | molator | You might need Ubuntu basic knowledge to adapt the Virtual Machine to your needs. |
10 | 4 | molator | |
11 | 1 | molator | h3. VirtualBox |
12 | 1 | molator | |
13 | 1 | molator | > http://www.virtualbox.org/wiki/Downloads |
14 | 1 | molator | |
15 | 1 | molator | h3. The Virtual Machine |
16 | 1 | molator | |
17 | 8 | molator | It's an english Ubuntu Server LTS 10.04 x86 based Virtual Machine. |
18 | 27 | molator | > http://ks35074.kimsufi.com:8080/server_virtualbox-0.8.0.1415.7z |
19 | 1 | molator | |
20 | 18 | molator | The file is compressed, you will need about 3.34Gb. |
21 | 18 | molator | |
22 | 1 | molator | h2. Settings |
23 | 1 | molator | |
24 | 11 | molator | h3. VirtualBox |
25 | 11 | molator | |
26 | 11 | molator | Click on New to create your Virtual Machine. |
27 | 15 | molator | The next time, you will click on Start instead. |
28 | 11 | molator | |
29 | 17 | molator | !virtualbox00b.jpg! |
30 | 1 | molator | |
31 | 13 | molator | Name your Virtual Machine, select "Linux" and "Ubuntu". |
32 | 13 | molator | |
33 | 13 | molator | !virtualbox01.jpg! |
34 | 13 | molator | |
35 | 1 | molator | You will need about 1.5Gb of memory (RAM + swap). |
36 | 1 | molator | |
37 | 1 | molator | By default, the Virtual Machine is using a 1Gb swap file, so you will need to declare at least 512Mb of RAM in VirtualBox. |
38 | 1 | molator | If you want to remove or change the swap file, follow that wiki: |
39 | 36 | molator | > http://dev.ryzom.com/projects/ryzom/wiki/MemoryToBuildLinuxServer |
40 | 1 | molator | |
41 | 14 | molator | !virtualbox02.jpg! |
42 | 14 | molator | |
43 | 19 | molator | Select the file you previously downloaded, ryzom_core_server.vdi. |
44 | 14 | molator | |
45 | 14 | molator | !virtualbox03.jpg! |
46 | 14 | molator | |
47 | 21 | molator | Validate your Virtual Machine and click on "Settings" to change the network settings. |
48 | 21 | molator | For "Adapter 1", select Attached to "Bridged Adapter". |
49 | 26 | molator | |
50 | 26 | molator | Select your ethernet adapter. |
51 | 26 | molator | |
52 | 23 | molator | Click on "Advanced" to display the advanced settings. |
53 | 21 | molator | Set the "Mac Address" to: |
54 | 21 | molator | > 080027018C16 |
55 | 21 | molator | |
56 | 22 | molator | !virtualbox010.jpg! |
57 | 21 | molator | |
58 | 21 | molator | If you don't specify the Mac Address, the Virtual Machine will detect a new network adapter and ignore the network settings. |
59 | 21 | molator | |
60 | 1 | molator | h3. Logon |
61 | 1 | molator | |
62 | 1 | molator | You can log on the Virtual Machine using: |
63 | 1 | molator | > user: ryzom |
64 | 1 | molator | |
65 | 1 | molator | > password: ryzom |
66 | 1 | molator | |
67 | 14 | molator | !virtualbox04.jpg! |
68 | 14 | molator | |
69 | 1 | molator | If you need root access, use "sudo". |
70 | 1 | molator | |
71 | 1 | molator | h3. Networking |
72 | 1 | molator | |
73 | 1 | molator | By default, the Virtual Machine is using the following static ip: |
74 | 1 | molator | > 192.168.1.100 |
75 | 1 | molator | |
76 | 4 | molator | gateway: |
77 | 4 | molator | > 192.168.1.1 |
78 | 4 | molator | |
79 | 4 | molator | and DNS |
80 | 4 | molator | > 192.168.1.1 |
81 | 4 | molator | |
82 | 1 | molator | You can connect on the Virtual Machine using "ssh" and "sftp". |
83 | 1 | molator | |
84 | 4 | molator | If you want to change the ip and gateway, edit: |
85 | 24 | Aztecmage | > /etc/network/interfaces |
86 | 4 | molator | |
87 | 1 | molator | If you want to change the DNS, edit: |
88 | 1 | molator | > /etc/resolv.conf |
89 | 1 | molator | |
90 | 35 | molator | But don't forget to update FSListenHost in: |
91 | 1 | molator | > /home/ryzom/ryzom/code/ryzom/server/frontend_service.cfg |
92 | 18 | molator | |
93 | 21 | molator | You can use "vi" or "nano" to edit the settings. |
94 | 3 | molator | |
95 | 34 | molator | If your network adapter is not recognized, delete the following file: |
96 | 32 | molator | > /etc/udev/rules.d/70-persistent-net.rules |
97 | 33 | molator | |
98 | 32 | molator | and restart the Virtual Machine. |
99 | 32 | molator | |
100 | 3 | molator | h3. MySQL |
101 | 3 | molator | |
102 | 3 | molator | You can access to the MySQL server using: |
103 | 3 | molator | > user: root |
104 | 3 | molator | |
105 | 3 | molator | > password: ryzom |
106 | 3 | molator | |
107 | 3 | molator | You can use PHPMyAdmin too: |
108 | 3 | molator | > http://192.168.1.100/phpmyadmin |
109 | 5 | molator | |
110 | 3 | molator | with the default ip. |
111 | 1 | molator | |
112 | 1 | molator | h2. Running the shard |
113 | 1 | molator | |
114 | 9 | molator | To run the shard, connect to the Virtual Machine using the "ryzom" account, and use the following command: |
115 | 1 | molator | > shard start |
116 | 14 | molator | |
117 | 14 | molator | !virtualbox05.jpg! |
118 | 1 | molator | |
119 | 16 | molator | Ignore the various warnings. |
120 | 16 | molator | |
121 | 1 | molator | To stop the shard: |
122 | 1 | molator | > shard stop |
123 | 1 | molator | |
124 | 16 | molator | To forcefully stop the Virtual Machine, click on the "Machine" menu and "Close". |
125 | 16 | molator | |
126 | 16 | molator | !virtualbox07.jpg! |
127 | 16 | molator | |
128 | 16 | molator | Then "Power off the machine". |
129 | 16 | molator | |
130 | 16 | molator | !virtualbox08.jpg! |
131 | 1 | molator | |
132 | 1 | molator | You can monitor your shard using the webtool: |
133 | 1 | molator | > http://192.168.1.100 |
134 | 5 | molator | |
135 | 1 | molator | with the default ip. |
136 | 17 | molator | |
137 | 17 | molator | !virtualbox09b.jpg! |
138 | 1 | molator | |
139 | 1 | molator | h2. Connecting a client |
140 | 1 | molator | |
141 | 6 | molator | If you don't have a client, use that one (windows): |
142 | 37 | molator | > http://ks35074.kimsufi.com:8080/client_win_x86_stlport-0.8.0.1627.7z |
143 | 1 | molator | |
144 | 1 | molator | Edit client.cfg to match your server ip: |
145 | 1 | molator | > StartupHost = "192.168.1.100:40916"; |
146 | 5 | molator | |
147 | 1 | molator | with the default ip. |
148 | 1 | molator | |
149 | 1 | molator | That's all folks!!! |