Home > GIS > Install FGS di Ubuntu

Install FGS di Ubuntu

FGS Linux Installer merupakan sebuah self-extracting file yang akan menginstall MapServer dengan PHP/Mapscript dan semua dependensi pada OS Linux. FGS menyediakan sebuah stand-alone environment dengan semua paket yang diperlukan (termasuk Apache, PHP) untuk menjalankan aplikasi PHP/Mapscript webmapping. Versi Apache yang terbundle di dalam FGS dapat dikonfigurasi untuk berjalan pada port tertentu supaya tidak mengganggu instalasi Apache atau web server lain yang sudah terinstal sebelumnya.

Paket ini dibuat atas dasar ide Free Open Source Software (FOSS)  GIS Suite (FGS), tapi dengan penanganan yang agak berbeda. FGS mirip dengan MS4W (MapServer for Windows) yang juga merupakan sebuah preconfigured web server environment yang MapServer untuk platform Microsoft Windows.

Pada FGS terbundle beberapa komponen seperti :

  • mapserver-php:5.2.1
  • mapserver-base:5.2.1
  • libstdc++-lib:6.0.8
  • libgcc-lib:1
  • apache-base:2.2.8
  • expat-base:2.0.1
  • gd-lib:2.0.35
  • jpeg-lib:6b
  • freetype-lib:2.3.5
  • libpng-lib:1.2.8
  • zlib-lib:1.2.3
  • curl-lib:7.16.4
  • openssl-lib:0.9.8a
  • proj-lib:4.5.0
  • postgresql-lib:8.3.1
  • gdal-base:1.5.0
  • tiff-lib:3.8.2
  • libgeotiff-lib:1.2.4
  • xerces_c-base:2_8_0
  • unixODBC-base:2.2.10
  • libungif-base:4.1.3
  • libiconv-base:1.9.1
  • proj4_epsg42xxx-support:1.0.0
  • geos-lib:3.0.0
  • libxml2-base:2.6.19
  • agg-lib:2.4
  • php-base:5.2.5
  • python_mapscript-module:5.2.1
  • python-base:2.5.2
  • gdal_ecw-module:1.5.0
  • libecw-base:3.3.20060906
  • postgis-lib:1.3.2

Step Instalasi FGS di Ubuntu II (8.10)

  1. FGS bisa didownload disini
  2. Buka terminal sebagai user biasa (default, bukan root), lalu masuk ke direktori instalasi FGS
    note :
    sebelumnya saya mencoba menginstal di direktori /opt/ sebagai user biasa maupun root, tetapi entah kenapa  hal ini masih belum berhasil (force quit) dikarenakan httpd not found atau error pada waktu instalasi paket Apache bawaan FGS (cannot create user Apache blablabla). Pada milis maptools.org pun pernah membahas tentang permasalahan yang sama (sementara ini hanya di ubuntu dan saudaranya, beberapa distro lain dikatakan disitu tidak ada masalah) dan oleh developer fgs sendiri solusi untuk sementara instalasi FGS pada ubuntu menggunakan user biasa dan diinstall pada home direktori user saja.
  3. eksekusi file .bin, untuk selanjutnya saya bold untuk diperhatikan

    jr7@roosandi77 ~/Downloads/Programs/GIS/FGS $ sh fgs-mapserver_5.0.2-fgs_1.0.0-linux-i386.bin

    * FGS – starting installation…

    * Extracting FGS modules files… ok

    * Starting FGS installation :

    ***** Welcome to the FGS Installer v0.1 *****

    This script is meant to make installing FGS components as easy as possible.

    THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR

    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS

    FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR

    COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER

    IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION

    WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    Please send any questions to <fgs@dmsolutions.ca>.

    To install the FGS suite, press ENTER.

    To cancel, press Control-C.

    Where do you want to install the FGS suite [/home/jr7/fgs] ? /home/jr7/Projects/FGS >> home direktori user jr7 (user biasa, bukan root)

    + Extracting fgs-base.tar.gz from /tmp/fgs-selfextract.S28512…ok

    + Running base’s installer

    + module : base

    * FGS runtime ready in ‘/home/jr7/Projects/FGS’, use fgs command.

    + Running fgs install mapserver-php

    * Probing last version of module ‘mapserver-php’… 5.0.2

    + Installing mapserver-php:

    + Getting and extracting module ‘mapserver-php’… ok

    + Getting and extracting module ‘mapserver-base’… ok

    + Getting and extracting module ‘libstdc++-lib’… ok

    + Getting and extracting module ‘libgcc-lib’… ok

    + Getting and extracting module ‘apache-base’… ok

    + Getting and extracting module ‘expat-base’… ok

    + Getting and extracting module ‘gd-lib’… ok

    + Getting and extracting module ‘jpeg-lib’… ok

    + Getting and extracting module ‘freetype-lib’… ok

    + Getting and extracting module ‘libpng-lib’… ok

    + Getting and extracting module ‘zlib-lib’… ok

    + Getting and extracting module ‘curl-lib’… ok

    + Getting and extracting module ‘openssl-lib’… ok

    + Getting and extracting module ‘proj-lib’… ok

    + Getting and extracting module ‘postgresql-lib’… ok

    + Getting and extracting module ‘gdal-base’… ok

    + Getting and extracting module ‘tiff-lib’… ok

    + Getting and extracting module ‘libgeotiff-lib’… ok

    + Getting and extracting module ‘xerces_c-base’… ok

    + Getting and extracting module ‘unixODBC-base’… ok

    + Getting and extracting module ‘libungif-base’… ok

    + Getting and extracting module ‘libiconv-base’… ok

    + Getting and extracting module ‘proj4_epsg42xxx-support’… ok

    + Getting and extracting module ‘geos-lib’… ok

    + Getting and extracting module ‘libxml2-base’… ok

    + Getting and extracting module ‘agg-lib’… ok

    + Getting and extracting module ‘php-base’… ok

    + Copying all files into FGS environment… ok

    + Running apache-base’s installation script :

    * *** Apache installation ***

    * Selecting TCP port… Example: 80, 8080, 8000? What TCP port do you want to use [8080] : 8000 >> terserah Anda

    + Port selected : ‘8000′

    * You can start apache with : fgs start apache

    * *** End of Apache installation ***

    + Running gdal-base’s installation script :

    + Running libgeotiff-lib’s installation script :

    + Running mapserver-base’s installation script :

    + Running php-base’s installation script :

    + php5.ini file installed in /home/jr7/Projects/FGS/www/conf/php5.ini.template

    + Running proj-lib’s installation script :

    * Module ‘mapserver-php’ installed with success.

    ! You need to reload setenv.sh, run : cd /home/jr7/Projects/FGS ; . setenv.sh

    + Running fgs install python_mapscript-module

    * Probing last version of module ‘python_mapscript-module’… 5.0.2

    + Installing python_mapscript-module:

    + Getting and extracting module ‘python_mapscript-module’… ok

    + Getting and extracting module ‘python-base’… ok

    + Copying all files into FGS environment… ok

    * Module ‘python_mapscript-module’ installed with success.

    + Running fgs install gdal_ecw-module

    * Probing last version of module ‘gdal_ecw-module’… 1.5.0

    + Installing gdal_ecw-module:

    + Getting and extracting module ‘gdal_ecw-module’… ok

    + Getting and extracting module ‘libecw-base’… ok

    + Copying all files into FGS environment… ok

    * Module ‘gdal_ecw-module’ installed with success.

    + Running fgs install postgis-lib

    * Probing last version of module ‘postgis-lib’… 1.3.2

    + Installing postgis-lib:

    + Getting and extracting module ‘postgis-lib’… ok

    + Copying all files into FGS environment… ok

    + Running postgis-lib’s installation script :

    * Module ‘postgis-lib’ installed with success.

    + Starting FGS’s daemon:

    * FGS runtime ready in ‘/home/jr7/Projects/FGS’, use fgs command.

    + Starting ‘apache’:

    111111111111111111111111111111111111111111111111111111111111111

    To start installed FGS’s daemon at boot time, do (as root) :

    $ echo “su jr7 -c \”( . /home/jr7/Projects/FGS/setenv.sh ; fgs start )\”" >> /etc/rc.d/rc.local

    222222222222222222222222222222222222222222222222222222222222222

    Before using the FGS environment, you need to set some

    environment variables (each time you login) :

    $ cd /home/jr7/Projects/FGS

    $ . setenv.sh

    OR you can do it automatically each time you log in by doing :

    echo “. /home/jr7/Projects/FGS/setenv.sh” >> ~/.bashrc

    ****************************************************************

  4. Setelah berhasil, masuk ke direktori hasil instalasi FGS untuk mengeksekusi setenv.sh jr7@roosandi77 ~/Projects/FGS $ sh setenv.sh
  5. Start FGSjr7@roosandi77 ~/Projects/FGS $ fgs start;
  6. Buka Browser, lalu browse http://localhost:8000/ , (8000 merupakan port yang saya pilih pada proses instalasi tadi)
  7. Jika berhasil, maka browser Anda akan menampilkan halaman  Index of

Segini dulu, Semoga Berguna :)

Categories: GIS Tags: , ,
  1. feedee
    June 27, 2009 at 3:26 pm | #1

    Akhirnya aku bisa mengakses postgresql-nya FGS.
    Untuk mengaksesnya bukan menggunakan user postgres spt pada postgresql yang diinstall dengan apt-get atau synaptic. Tetapi memakai user yang sama dimana installasi FGS diletakkan.

    • June 27, 2009 at 9:39 pm | #2

      ooo begitu yah, user tsb tersebut apakah otomatis sudah terdaftar pada postgres ?
      thx infonya, jujur saja saya masih kesulitan pada postgresnya, dan belum ada waktu untuk mengoprek2 lagi :p (kejar tayang)

  2. feedee
    June 27, 2009 at 1:20 pm | #3

    Bos, aku sudah ngistall fgs-mapserver_extended_5.4.0-fgs_9.5-linux-i386. Kalau fgs-nya ku-start ada postgresql yang juga start. Tapi bagaimana cara mengakses database postgresnya?
    Tolong bantuannya bos!

    • June 27, 2009 at 9:42 pm | #4

      nah, untuk postgres saya belum sempat oprek2, dulu terkendala aplikasi pgadmin crash dan gak mau backup schema
      kalau kita ketemu dan ada waktu boleh deh main2 lagi :)

  3. April 6, 2009 at 2:20 pm | #5

    wtf?@@$^^&#$#^

  4. April 6, 2009 at 2:17 am | #6

    Sotoyyyyy……. ayo lanjutkan sampai dengan 100% berhasil jok.. all run on linux ;) kamu pasti bisa.. ajari yang lainnya ya ;)

    • April 6, 2009 at 9:39 am | #7

      ok ok, gak ngeti kapan tapi, jik akeh kendala ttg masalah backup dbase nek postgres mo
      wingi aku diseneni karo bu wahyu gr2 entek wektune ge jajal2 nd linux T_T

  1. No trackbacks yet.