| 162 | == Change !OpenGnSys Server IP Address == |
| 163 | |
| 164 | |
| 165 | From OpenGnSys version 1.0.3, there is a script for changing the OpenGnSys Server main IP address on machines with multiple network interfaces. |
| 166 | |
| 167 | To make the change of OpenGnSys Server IP address, run the {{{setserveraddr}}} script from a terminal server: |
| 168 | {{{ |
| 169 | sudo /opt/opengnsys/bin/setserveraddr NetworkInterface |
| 170 | }}} |
| 171 | |
| 172 | Being {{{NetworkInterface}}} parameter, the name of the network interface that is assigned to the specified IP (eg eth0, eth1). To obtain the data of active network interfaces and their associated IP addresses, executing the command: |
| 173 | {{{ |
| 174 | sudo ifconfig |
| 175 | }}} |
| 176 | |
| 177 | If needed, access to OpenGnSys Web Admin Console to modify some configuration parameters. |
| 178 | 1. Modify default repository IP address. |
| 179 | Click on Servers button, right click on the repository name, select Properties and change IP address value. |
| 180 | 1. Force a netboot for updating the boot information. |
| 181 | Click on Labs button, right click on lab. name, select Advanced !NetBoot option and click on Save button. |
| 182 | |
| 183 | |
| 184 | == Configure Proxy Server for Subversion (if needed) == |
| 185 | |
| 186 | * Export proxy variable: |
| 187 | {{{ |
| 188 | export http_proxy="http://proxyserver:proxyport" |
| 189 | }}} |
| 190 | |
| 191 | * Check proxy, install subversion and wget: |
| 192 | {{{ |
| 193 | apt-get update |
| 194 | apt-get install subversion wget |
| 195 | }}} |
| 196 | |
| 197 | * Configure subversion to use proxy. |
| 198 | {{{ |
| 199 | vi /etc/subversion/servers |
| 200 | #edit [global] section: |
| 201 | |
| 202 | [global] |
| 203 | http-proxy-host = proxyserver |
| 204 | http-proxy-port = proxyport |
| 205 | http-timeout = 10 |
| 206 | }}} |
| 207 | |
| 208 | |
| 209 | |
| 210 | == Optional: Remove php cron services from Ubuntu Server == |
| 211 | |
| 212 | Remove file /etc/cron.d/php5 |
| 213 | |
184 | | == Configure Proxy Server for Subversion (if needed) == |
185 | | |
186 | | * Export proxy variable: |
187 | | {{{ |
188 | | export http_proxy="http://proxyserver:proxyport" |
189 | | }}} |
190 | | |
191 | | * Check proxy, install subversion and wget: |
192 | | {{{ |
193 | | apt-get update |
194 | | apt-get install subversion wget |
195 | | }}} |
196 | | |
197 | | * Configure subversion to use proxy. |
198 | | {{{ |
199 | | vi /etc/subversion/servers |
200 | | #edit [global] section: |
201 | | |
202 | | [global] |
203 | | http-proxy-host = proxyserver |
204 | | http-proxy-port = proxyport |
205 | | http-timeout = 10 |
206 | | }}} |
207 | | |
208 | | |
209 | | == Change !OpenGnSys Server IP == |
210 | | |
211 | | * Check operating system configuration files: |
212 | | |
213 | | {{{ |
214 | | /etc/network/interfaces |
215 | | /etc/hosts |
216 | | /etc/resolv.conf |
217 | | /etc/dhcp3/dhcpd.conf |
218 | | }}} |
219 | | |
220 | | * Check OpenGnSys configuration files: |
221 | | |
222 | | {{{ |
223 | | /opt/opengnsys/etc/ogAdmAgent.cfg |
224 | | /opt/opengnsys/etc/ogAdmRepo.cfg |
225 | | /opt/opengnsys/etc/ogAdmServer.cfg |
226 | | /opt/opengnsys/client/etc/ogAdmclient.cfg |
227 | | /opt/opengnsys/www/controlacceso.php |
228 | | }}} |
229 | | |
230 | | * Restart services, if needed: |
231 | | |
232 | | {{{ |
233 | | /etc/init.d/networking restart |
234 | | /etc/init.d/dhcp3-server restart |
235 | | /etc/init.d/opengnsys restart |
236 | | # or restart the system. |
237 | | }}} |
238 | | |
239 | | |
240 | | Access to OpenGnSys Web Admin Console to modify the config |
241 | | {{{ |
242 | | Click on University icon and select environment variable. |
243 | | Modify "IP del servidor de administración" value. |
244 | | }}} |
245 | | |
246 | | |
247 | | Modify organizational units |
248 | | {{{ |
249 | | Button Repositorios -> propiedades -> cambiar IP. |
250 | | }}} |
251 | | |
252 | | {{{ |
253 | | If needed, modify network properties and multicast direction in classroom properties. |
254 | | }}} |
255 | | |
256 | | |
257 | | {{{ |
258 | | If needed, modify clients IP. |
259 | | }}} |
260 | | |
261 | | |
262 | | {{{ |
263 | | Force a netboot for updating the boot information. |
264 | | }}} |
265 | | |
266 | | |
267 | | Update images torrent |
268 | | {{{ |
269 | | Delete files .sum and .torrent |
270 | | |
271 | | }}} |
272 | | |
273 | | |
274 | | |
275 | | == Optional: Remove php cron services from Ubuntu Server == |
276 | | Remove file /etc/cron.d/php5 |
277 | | |
278 | | |