Advertisement
abfab

Untitled

Feb 28th, 2014
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.47 KB | None | 0 0
  1. sudo apt-get -y update
  2.  
  3. sudo apt-get -y install build-essential wget zlib1g-dev libssl-dev libreadline-dev libyaml-dev libcurl4-openssl-dev curl git-core python-software-properties libxml2-dev libxslt-dev autoconf libc6-dev libncurses5-dev automake libtool bison nodejs ruby-dev openjdk-7-jdk tesseract-ocr tesseract-ocr-fra tesseract-ocr-eng tesseract-ocr-spa graphicsmagick pdftk libreoffice poppler-utils poppler-data ghostscript graphviz imagemagick qt4-default libqt4-dev libmagic1 libmagic-dev
  4.  
  5. sudo nano /etc/environment
  6.  
  7. sudo apt-get install postgresql-9.1 postgresql-server-dev-9.1 libpq-dev pgadmin3
  8. sudo nano /etc/postgresql/9.1/main/pg_hba.conf
  9. sudo service postgresql restart
  10. sudo su postgres
  11. sudo -i -u postgres
  12.  
  13. sudo apt-get install python-software-properties
  14. sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
  15. sudo apt-get update
  16. sudo apt-get install libjson0 libjson0-dev
  17. sudo apt-get install postgis postgresql-9.1-postgis-2.1
  18.  
  19. sudo apt-get -y install ruby1.9.1 ruby1.9.1-dev
  20. sudo gem install bundler
  21. git clone https://github.com/ekylibre/ekylibre.git /home/ekylibre/ekylibre
  22. cd ekylibre
  23. sudo bundle install
  24. sudo gem install rdoc-data; rdoc-data --install
  25.  
  26. cd config
  27. cp database.postgis.yml database.yml
  28. nano database.yml
  29. rake db:create db:migrate
  30. rake first_run max=50
  31. rails server
  32.  
  33. ************************************
  34. Contenu de database.yml
  35. ************************************
  36.  
  37. # PostgreSQL. Versions 7.4 and 8.x are supported.
  38. #
  39. # Install the ruby-postgres driver:
  40. # gem install ruby-postgres
  41. # On Mac OS X:
  42. # gem install ruby-postgres -- --include=/usr/local/pgsql
  43. # On Windows:
  44. # gem install ruby-postgres
  45. # Choose the win32 build.
  46. # Install PostgreSQL and put its /bin directory on your path.
  47. development:
  48. adapter: postgis
  49. host: 127.0.0.1
  50. encoding: unicode
  51. database: ekylibre_development
  52. pool: 5
  53. username: ekylibre
  54. password: ekylibre
  55. script_dir: /usr/share/postgresql/9.1/contrib/postgis-2.1
  56. postgis_extension: true
  57. su_username: ekylibre
  58. su_password: ekylibre
  59. schema_search_path: public,postgis
  60.  
  61. # Connect on a TCP socket. Omitted by default since the client uses a
  62. # domain socket that doesn't need configuration. Windows does not have
  63. # domain sockets, so uncomment these lines.
  64. #host: localhost
  65. #port: 5432
  66.  
  67. # Schema search path. The server defaults to $user,public
  68. #schema_search_path: myapp,sharedapp,public
  69.  
  70. # Minimum log levels, in increasing order:
  71. # debug5, debug4, debug3, debug2, debug1,
  72. # log, notice, warning, error, fatal, and panic
  73. # The server defaults to notice.
  74. #min_messages: warning
  75.  
  76. # Warning: The database defined as "test" will be erased and
  77. # re-generated from your development database when you run "rake".
  78. # Do not set this db to the same as development or production.
  79. test:
  80. adapter: postgis
  81. host: 127.0.0.1
  82. encoding: unicode
  83. database: ekylibre_test
  84. pool: 5
  85. username: ekylibre
  86. password: ekylibre
  87. script_dir: /usr/share/postgresql/9.1/contrib/postgis-2.1
  88. postgis_extension: true
  89. su_username: ekylibre
  90. su_password: ekylibre
  91. schema_search_path: public,postgis
  92.  
  93. production:
  94. adapter: postgis
  95. host: 127.0.0.1
  96. encoding: unicode
  97. database: ekylibre_production
  98. pool: 5
  99. username: ekylibre
  100. password: ekylibre
  101. script_dir: /usr/share/postgresql/9.1/contrib/postgis-2.1
  102. postgis_extension: true
  103. su_username: ekylibre
  104. su_password: ekylibre
  105. schema_search_path: public, postgis
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement