http://wiki.ba3.us/index.php?title=CentOS_7&feed=atom&action=history CentOS 7 - Revision history 2018-03-22T15:56:36Z Revision history for this page on the wiki MediaWiki 1.20.0 http://wiki.ba3.us/index.php?title=CentOS_7&diff=526&oldid=prev Bruce at 09:11, 7 May 2022 2015-05-07T09:11:42Z <p></p> <table class='diff diff-contentalign-left'> <col class='diff-marker' /> <col class='diff-content' /> <col class='diff-marker' /> <col class='diff-content' /> <tr style='vertical-align: top;'> <td colspan='2' style="background-color: white; color:black;">← Older revision</td> <td colspan='2' style="background-color: white; color:black;">Revision as of 09:11, 7 May 2015</td> </tr><tr><td colspan="2" class="diff-lineno">Line 1:</td> <td colspan="2" class="diff-lineno">Line 1:</td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== AltusMarker ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== AltusMarker ==</div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"><pre></ins></div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo yum -y install sqlite sqlite-devel</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo yum -y install sqlite sqlite-devel</div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></pre></ins></div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== AltusPackage ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== AltusPackage ==</div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"><pre></ins></div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo yum -y install sqlite sqlite-devel</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo yum -y install sqlite sqlite-devel</div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></pre></ins></div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== AltusVector ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== AltusVector ==</div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"><pre></ins></div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo yum -y install sqlite sqlite-devel</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo yum -y install sqlite sqlite-devel</div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo yum -y install http://yum.postgresql.org/9.3/redhat/rhel-7-x86_64/pgdg-centos93-9.3-1.noarch.rpm</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo yum -y install http://yum.postgresql.org/9.3/redhat/rhel-7-x86_64/pgdg-centos93-9.3-1.noarch.rpm</div></td></tr> <tr><td colspan="2" class="diff-lineno">Line 15:</td> <td colspan="2" class="diff-lineno">Line 20:</td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo yum -y install geos-devel</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo yum -y install geos-devel</div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo yum -y install proj-devel</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo yum -y install proj-devel</div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></pre></ins></div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Configuring PostgreSQL ===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Configuring PostgreSQL ===</div></td></tr> <tr><td colspan="2" class="diff-lineno">Line 20:</td> <td colspan="2" class="diff-lineno">Line 26:</td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Initialization and Configuration</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Initialization and Configuration</div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Initialize Postgres:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Initialize Postgres:</div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"><pre></ins></div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo /usr/pgsql-9.3/bin/postgresql93-setup initdb</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo /usr/pgsql-9.3/bin/postgresql93-setup initdb</div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></pre></ins></div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Enable and start Postgres service:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Enable and start Postgres service:</div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"><pre></ins></div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo systemctl enable postgresql-9.3</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo systemctl enable postgresql-9.3</div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo systemctl start postgresql-9.3</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo systemctl start postgresql-9.3</div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></pre></ins></div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Set postgres user password:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Set postgres user password:</div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"><pre></ins></div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo su - postgres</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo su - postgres</div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>psql</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>psql</div></td></tr> <tr><td colspan="2" class="diff-lineno">Line 36:</td> <td colspan="2" class="diff-lineno">Line 50:</td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>su - postgres</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>su - postgres</div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr> <tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">$ </del>createuser altusvector</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>createuser altusvector</div></td></tr> <tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>createdb altusvectordb</div></td></tr> <tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">Create database:</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"></pre></ins></div></td></tr> <tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">$ </del>createdb altusvectordb</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Set password and Grant access to the database:  </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Set password and Grant access to the database:  </div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"><pre></ins></div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>$ psql</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>$ psql</div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>psql (9.3.2)</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>psql (9.3.2)</div></td></tr> <tr><td colspan="2" class="diff-lineno">Line 52:</td> <td colspan="2" class="diff-lineno">Line 67:</td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>GRANT</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>GRANT</div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>postgres=# \quit</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>postgres=# \quit</div></td></tr> <tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline"></pre></ins></div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Networking</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Networking</div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Enable ports on firewall:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Enable ports on firewall:</div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"><pre></ins></div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo firewall-cmd --permanent --add-port=5432/tcp</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo firewall-cmd --permanent --add-port=5432/tcp</div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo firewall-cmd --reload</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo firewall-cmd --reload</div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></pre></ins></div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Configure service to listen to TCP/IP:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Configure service to listen to TCP/IP:</div></td></tr> <tr><td colspan="2" class="diff-lineno">Line 85:</td> <td colspan="2" class="diff-lineno">Line 103:</td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Modify the pg_hba.conf file in the same folder to look like this:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Modify the pg_hba.conf file in the same folder to look like this:</div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"><pre></ins></div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># TYPE  DATABASE        USER            ADDRESS                METHOD</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># TYPE  DATABASE        USER            ADDRESS                METHOD</div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr> <tr><td colspan="2" class="diff-lineno">Line 94:</td> <td colspan="2" class="diff-lineno">Line 113:</td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># IPv6 local connections:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div># IPv6 local connections:</div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>host    all            all            ::1/128                md5</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>host    all            all            ::1/128                md5</div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></pre></ins></div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Save the file.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Save the file.</div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Restart Postgres:</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Restart Postgres:</div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"><pre></ins></div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>systemctl restart postgresql-9.3</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>systemctl restart postgresql-9.3</div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></pre></ins></div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Try connecting as the postgres user from another computer.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Try connecting as the postgres user from another computer.</div></td></tr> <tr><td colspan="2" class="diff-lineno">Line 104:</td> <td colspan="2" class="diff-lineno">Line 128:</td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== AltusTerrain ===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== AltusTerrain ===</div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"><pre></ins></div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo yum install gdal</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo yum install gdal</div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo yum install gdal-devel</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo yum install gdal-devel</div></td></tr> <tr><td colspan="2" class="diff-lineno">Line 112:</td> <td colspan="2" class="diff-lineno">Line 137:</td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo yum install geos-devel</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo yum install geos-devel</div></td></tr> <tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo yum install proj-devel</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>sudo yum install proj-devel</div></td></tr> <tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></pre></ins></div></td></tr> </table> Bruce http://wiki.ba3.us/index.php?title=CentOS_7&diff=524&oldid=prev Bruce: Created page with "== AltusMarker == sudo yum -y install sqlite sqlite-devel == AltusPackage == sudo yum -y install sqlite sqlite-devel == AltusVector == sudo yum -y install sqlite sqlite-d..." 2015-05-07T09:07:53Z <p>Created page with "== AltusMarker == sudo yum -y install sqlite sqlite-devel == AltusPackage == sudo yum -y install sqlite sqlite-devel == AltusVector == sudo yum -y install sqlite sqlite-d..."</p> <p><b>New page</b></p><div>== AltusMarker ==<br /> <br /> sudo yum -y install sqlite sqlite-devel<br /> <br /> == AltusPackage ==<br /> <br /> sudo yum -y install sqlite sqlite-devel<br /> <br /> == AltusVector ==<br /> <br /> sudo yum -y install sqlite sqlite-devel<br /> sudo yum -y install http://yum.postgresql.org/9.3/redhat/rhel-7-x86_64/pgdg-centos93-9.3-1.noarch.rpm<br /> sudo yum -y install postgresql93 postgresql93-server postgresql93-libs postgresql93-contrib postgresql93-devel<br /> sudo yum -y install postgis2_93<br /> sudo yum -y install geos-devel<br /> sudo yum -y install proj-devel<br /> <br /> === Configuring PostgreSQL ===<br /> <br /> Initialization and Configuration<br /> Initialize Postgres:<br /> sudo /usr/pgsql-9.3/bin/postgresql93-setup initdb<br /> <br /> Enable and start Postgres service:<br /> sudo systemctl enable postgresql-9.3<br /> sudo systemctl start postgresql-9.3<br /> <br /> Set postgres user password:<br /> sudo su - postgres<br /> psql<br /> postgres=# \password postgres<br /> Enter new password: asdfasdf<br /> Enter it again: asdfasdf<br /> \quit<br /> Create user and database:<br /> su - postgres<br /> <br /> $ createuser altusvector<br /> <br /> Create database:<br /> $ createdb altusvectordb<br /> <br /> Set password and Grant access to the database: <br /> $ psql<br /> psql (9.3.2)<br /> Type "help" for help.<br /> <br /> postgres=# alter user altusvector with encrypted password 'asdfasdf';<br /> ALTER ROLE<br /> <br /> postgres=# grant all privileges on database altusvectordb to altusvector;<br /> GRANT<br /> postgres=# \quit<br /> <br /> <br /> Networking<br /> <br /> Enable ports on firewall:<br /> sudo firewall-cmd --permanent --add-port=5432/tcp<br /> sudo firewall-cmd --reload<br /> <br /> Configure service to listen to TCP/IP:<br /> By default, TCP/IP connection is disabled, so that the users from another computers can’t access postgresql. To allow to connect users from another computers:<br /> <br /> Log in as root and then edit this file:<br /> /var/lib/pgsql/9.3/data/postgresql.conf:<br /> <br /> sudo su - root<br /> vi /var/lib/pgsql/9.3/data/postgresql.conf<br /> <br /> Find the lines:<br /> [...]<br /> #listen_addresses = 'localhost'<br /> [...]<br /> #port = 5432<br /> [...]<br /> <br /> Uncomment both lines, and set the IP address of your postgresql server or set “*” to listen from all clients as shown below:<br /> <br /> listen_addresses = '*'<br /> port = 5432<br /> <br /> Save the file.<br /> <br /> Modify the pg_hba.conf file in the same folder to look like this:<br /> <br /> # TYPE DATABASE USER ADDRESS METHOD<br /> <br /> # "local" is for Unix domain socket connections only<br /> local all all md5<br /> # IPv4 local connections:<br /> host all all 127.0.0.1/32 md5<br /> host all all 0.0.0.0/0 md5<br /> # IPv6 local connections:<br /> host all all ::1/128 md5<br /> <br /> Save the file.<br /> <br /> Restart Postgres:<br /> systemctl restart postgresql-9.3<br /> <br /> Try connecting as the postgres user from another computer.<br /> <br /> === AltusTerrain ===<br /> <br /> sudo yum install gdal<br /> sudo yum install gdal-devel<br /> sudo yum install sqlite sqlite-devel<br /> sudo yum -y http://yum.postgresql.org/9.3/redhat/rhel-7-x86_64/pgdg-centos93-9.3-1.noarch.rpm<br /> sudo yum install postgresql93 postgresql93-server postgresql93-libs postgresql93-contrib postgresql93-devel<br /> sudo yum install postgis2_93<br /> sudo yum install geos-devel<br /> sudo yum install proj-devel</div> Bruce