Set-Up Local data Library

Assigning ip address and cache clearing 

  • Log in as jdcorral
  • Open a terminal window
  • Type 'ifconfig' to get ip address 
  • 'sudo hostname xxx.xxx.x.xx' (where xxx....is the ip address )
  • change the hostname in /etc/hosts from localhost.localdomain to ip address)
  • 'sudo /etc/init.d/ingrid stop' (to shutdown ingrid)
  • 'sudo /usr/local/squid/sbin/squid -k reconfigure' (to flush squid cache)
  • 'sudo /etc/init.d/ingrid start' (to start up ingrid)
  • 'ps ef| grep ingrid'  (should show one ingridd process, if not, repeat ingrid start, it may take 2 or 3 times)
  • Processes that are necessary for Ingrid to work
  • ingrid (‘ps –ef | grep ingrid)
  • squid (‘ps –ef | grep squid)
  • postgresql (ps –ef | grep post)

If you change the ip address or hostname ,

Changing IP Address

Use the System Administration tool, ‘Network Devices’. To change the existing NMA
local area network ip address, click on the auto-eth1 device. Then change the ip
address from 192.168.1.250 to the new address.

Type 'ifconfig' to make sure that the new ip address is associated with eth1. You
may have to reboot the system.

Next, stop and restart ingrid and squid to allow the changes to take effect.

  • ‘sudo /etc/init.d/ingrid stop’ (to shutdown ingrid)
  • ‘sudo /etc/init.d/squid stop’ (to shutdown squid)
  • ‘cd /local/squid’ (go to where the squid cache dirs are)
  • ‘sudo rm –r *’ (remove all the squid cache dirs and files)
  • ‘sudo /usr/local/squid/sbin/squid –z’ (rebuild new cache files)
  • ‘sudo /etc/init.d/squid start’ (to start up squid)
  • ‘sudo /etc/init.d/ingrid start’ (to start up ingrid)
  • ‘ps –ef | grep ingrid’ (should show one ingridd process, if not, repeat ingrid start, it
may take 2 or 3 times)

Comments

Popular posts from this blog

Upload data to the Data Library through Ingrid scripts

Adding data to the Data library