Difference between revisions of "Nominatim for Traffic Accident Database"

From stgo
Jump to: navigation, search
(Setup of Nominatim VM)
(Setup of Nominatim VM)
Line 13: Line 13:
 
=== Setup of Nominatim VM ===
 
=== Setup of Nominatim VM ===
 
# copying basicubunutu1404.vdi file and renaming to nominatim.vdi
 
# copying basicubunutu1404.vdi file and renaming to nominatim.vdi
# creating the elgg VM on CedeusDB (ip.18):
+
# creating the nominatim VM on CedeusDB (ip.18):
#* <code>VBoxManage createvm --name elgg --ostype Ubuntu_64 --register</code>
+
#* <code>VBoxManage createvm --name nominatim --ostype Ubuntu_64 --register</code>
#* <code>VBoxManage modifyvm elgg --memory 4096</code>
+
#* <code>VBoxManage modifyvm nominatim --memory 4096</code>
#* <code>VBoxManage modifyvm elgg --cpus 4</code>
+
#* <code>VBoxManage modifyvm nominatim --cpus 4</code>
#* <code>VBoxManage modifyvm elgg --nic1 nat</code>
+
#* <code>VBoxManage modifyvm nominatim --nic1 nat</code>
#* <code>VBoxManage storagectl elgg --name "SATA Controller" --add sata --controller IntelAhci</code>
+
#* <code>VBoxManage storagectl nominatim --name "SATA Controller" --add sata --controller IntelAhci</code>
 
#* assign the (old) disk image a new uuid
 
#* assign the (old) disk image a new uuid
#*: <code>VBoxManage internalcommands sethduuid elgg.vdi</code>
+
#*: <code>VBoxManage internalcommands sethduuid nominatim.vdi</code>
 
#* attach the (old) disk image:
 
#* attach the (old) disk image:
#*: <code> VBoxManage storageattach "elgg" --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium elgg.vdi</code>
+
#*: <code> VBoxManage storageattach "nominatim" --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium nominatim.vdi</code>
#* <code> VBoxManage storagectl elgg --name "IDE Controller" --add ide --controller PIIX4</code>
+
#* <code> VBoxManage storagectl nominatim --name "IDE Controller" --add ide --controller PIIX4</code>
 
#* set the nat rules (ports):
 
#* set the nat rules (ports):
#*: <code> VBoxManage modifyvm elgg --natpf1 "ssh,tcp,,15022,,22"</code>
+
#*: <code> VBoxManage modifyvm nominatim --natpf1 "ssh,tcp,,20022,,22"</code>
#*: <code> VBoxManage modifyvm elgg --natpf1 "apache,tcp,,15080,,80"</code>
+
#*: <code> VBoxManage modifyvm nominatim --natpf1 "apache,tcp,,20080,,80"</code>
 
# optional - set VRDE port:
 
# optional - set VRDE port:
#* <code>VBoxManage modifyvm elgg --vrdeport 7765</code> (Note: 3389 is the default port anyway)
+
#* <code>VBoxManage modifyvm nominatim --vrdeport 7761</code> (Note: 3389 is the default port anyway)
 
# start the VM
 
# start the VM
#: <code>VBoxHeadless -s elgg --vrde on &</code>  
+
#: <code>VBoxHeadless -s nominatim --vrde on &</code>  
 
#: the VM will listen on port 7765
 
#: the VM will listen on port 7765
# The following step do not seem to be necessary with Ubuntu 14.04 and new VirtualBox - however, are necesary for 12.04. But if so: connect with VRD and adjust network card settings (remember the existing VM have an old password)
 
#* open ''/etc/udev/rules.d/70-persistent-net.rules'' and comment out existing network adapters
 
 
#* reboot
 
#* reboot
 
#* check if ssh connection works
 
#* check if ssh connection works

Revision as of 16:14, 2 March 2015

>> return Cedeus_IDE


Objective

Develop a script for automated geo-referencing of Chiles transit accident database.

Tools:

Installing Nominatim

Setup of Nominatim VM

  1. copying basicubunutu1404.vdi file and renaming to nominatim.vdi
  2. creating the nominatim VM on CedeusDB (ip.18):
    • VBoxManage createvm --name nominatim --ostype Ubuntu_64 --register
    • VBoxManage modifyvm nominatim --memory 4096
    • VBoxManage modifyvm nominatim --cpus 4
    • VBoxManage modifyvm nominatim --nic1 nat
    • VBoxManage storagectl nominatim --name "SATA Controller" --add sata --controller IntelAhci
    • assign the (old) disk image a new uuid
      VBoxManage internalcommands sethduuid nominatim.vdi
    • attach the (old) disk image:
      VBoxManage storageattach "nominatim" --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium nominatim.vdi
    • VBoxManage storagectl nominatim --name "IDE Controller" --add ide --controller PIIX4
    • set the nat rules (ports):
      VBoxManage modifyvm nominatim --natpf1 "ssh,tcp,,20022,,22"
      VBoxManage modifyvm nominatim --natpf1 "apache,tcp,,20080,,80"
  3. optional - set VRDE port:
    • VBoxManage modifyvm nominatim --vrdeport 7761 (Note: 3389 is the default port anyway)
  4. start the VM
    VBoxHeadless -s nominatim --vrde on &
    the VM will listen on port 7765
    • reboot
    • check if ssh connection works
  5. change the computers name in /etc/hosts and /etc/hostname
  6. restarting Apache gives the error message: "apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 ..."
=> solve this by adding ServerName elgg as the last line in /etc/apache2/apache2.conf file